godot-gdscript-patterns
بناء أنظمة Godot 4 باستخدام أنماط GDScript
تحتاج إلى أنماط موثوقة لأنظمة gameplay في Godot. توفر هذه المهارة هياكل GDScript المثبتة للآلات الحالة وإدارة المشاهد وتحسين الأداء.
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "godot-gdscript-patterns". Give me a scene management approach with loading feedback for Godot 4.
النتيجة المتوقعة:
- Use an autoload scene manager to swap scenes and emit progress signals
- Load scenes asynchronously with threaded loading for smooth feedback
- Show a loading scene while progress updates are emitted
- Play a transition before and after the scene swap
استخدام "godot-gdscript-patterns". How do I structure player states for an action game?
النتيجة المتوقعة:
- Create a StateMachine class that manages current state and transitions
- Define State base class with enter, exit, update, and physics_update methods
- Each player behavior (idle, move, attack, jump) extends State
- Use signals to communicate state changes to other systems
استخدام "godot-gdscript-patterns". What patterns help with game performance in Godot?
النتيجة المتوقعة:
- Cache node references with @onready instead of calling get_node repeatedly
- Pool frequently spawned objects like bullets and enemies to reduce allocations
- Disable processing on objects that are not currently needed
- Use resources to separate data from logic for better memory management
التدقيق الأمني
آمنThis skill is documentation-only with GDScript code examples for Godot 4 game development. All static findings are false positives - there is no executable code, no network access, and no credential exfiltration. The static scanner misinterpreted markdown code block markers as shell backticks and placeholder documentation examples as security issues.
عوامل الخطر
🌐 الوصول إلى الشبكة (5)
⚙️ الأوامر الخارجية (38)
🔑 متغيرات البيئة (1)
درجة الجودة
ماذا يمكنك بناءه
تخطيط لعبة أكشن صغيرة
اختر أنماط المشهد والحالة والمكون لمشروع Godot 4 مضغوط.
تقليل قفزات الإطارات
طبق تجميع وضوابط المعالجة لتثبيت أداء وقت التشغيل.
توحيد أنماط الفريق
تبنِ إرشادات متسقة للإشارات والموارد وأنظمة الحفظ.
جرّب هذه الموجهات
أوصِ بشجرة مشاهد وتدفق إشارات أساسي لمطلق منظور علوي في Godot 4.
صمم آلة حالة للخمول والحركة والهجوم والقفز مع انتقالات نظيفة.
أظهر كيفية استخدام تجميع الكائنات للقذائف مع استدعاءات الإنشاء والإزالة.
حدد نظام حفظ وتحميل للإحصائيات والموضع باستخدام الموارد.
أفضل الممارسات
- استخدم الإشارات لفصل المشاهد والأنظمة
- احتفظ بمراجع العقد في جاهزية للمسارات الساخنة
- احتفظ بالبيانات القابلة لإعادة الاستخدام في الموارد
تجنب
- استدعاء get_node في كل إطار
- وضع منطق gameplay داخل الموارد
- استخدام autoloads لميزات غير عامة
الأسئلة المتكررة
هل هذا متوافق مع Godot 4.x؟
ماذا لا يغطي؟
هل يمكنني دمجها في مشروع موجود؟
هل يصل إلى ملفاتي أو أسراري؟
ماذا لو لم يعمل النمط لعبتي؟
كيف يختلف هذا عن وثائق Godot؟
تفاصيل المطور
المؤلف
wshobsonالترخيص
MIT
المستودع
https://github.com/wshobson/agents/tree/main/plugins/game-development/skills/godot-gdscript-patternsمرجع
main
بنية الملفات
📄 SKILL.md