ebitengine-game
ما الذي تفعله
ترشد هذه المهارة بناء لعبة ثنائية الأبعاد كاملة بلغة Go بمكتبة Ebitengine. وهي لمطورين يريدون لعبة قابلة للعب، بقواعد واضحة وإدخال ورسم وصوت وبناء لعدة منصات.
متى تستخدمها
- ✓عندما تريد صنع لعبة ثنائية الأبعاد بلغة Go بمكتبة Ebitengine.
- ✓عندما تحتوي لعبة Ebitengine موجودة على خطأ في الإدخال أو الرسم أو النص أو الصوت.
- ✓عندما تحتاج إلى تغليف لعبة Ebitengine للحاسوب أو المتصفح أو الهاتف.
رابط المهارة
https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/ebitengine/ebitengine-game/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل تساعدني في صنع لعبة صغيرة ثنائية الأبعاد بلغة Go باستعمال Ebitengine، يجمع فيها اللاعب العملات ويتجنب الأعداء؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يحدد الوكيل هدف اللاعب والقرار الرئيسي، ثم يبني نسخة قابلة للعب فيها إدخال ورسم ونص وصوت ومشاهد. يختبر اللعب ويحسّنه، ويستهدف نسخة Ebitengine المثبتة في المشروع.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Ebitengine game
Deliver a game that is understandable, responsive and complete at the requested scope. One request can include several internal build/play/refine passes. A scaffold, successful build or attractive screenshot alone is not a finished game. For a focused fix, preserve the project's design and limit the workflow to the affected behavior.
The bundled starter targets Ebitengine v2.10.5 / Go 1.25+. This is a pinned baseline, not a claim about the latest release. Keep an existing project's versions unless an upgrade is needed and authorized. Check the pinned version's public API before using newer or experimental APIs. References contain patterns to adapt; only the bundled scripts and starter are executable deliverables. Their checks do not validate every reference snippet.
Delivery workflow
- Inspect and decide. Read repository instructions,
go.mod, theRunGameentrypoint and existing tests/assets. For new games, read Design and quality. Establish the player's goal, repeated decision, consequence, end/retry path, intended look, platform and supported input. Infer reasonable defaults; ask only for missing choices that materially change the product. Record a short brief and observable acceptance criteria in the project. - Build a representative playable slice. Make the central interaction and its feedback work with the intended controls and visual direction. Check the feel before expanding content. Keep scope small enough to finish; choose authored or procedural content based on the game, not the template. Calibrate content against actual player capabilities before multiplying levels. For an art set, establish shared perspective, scale, anchors and palette roles using Assets and animation.
- Complete and refine. Implement the promised start → play → outcome → retry/continue loop (or the appropriate persistent/sandbox loop). Refine hierarchy, animation, sound, difficulty and transitions in context. Read only the technical references needed for the selected systems. Fix discovered defects within this delivery rather than asking the user to iterate for you.
- Verify the product. Test rules and important transitions, exercise real input, inspect representative rendered states, and build/run requested targets. Include failure/retry and boundary cases. A scripted demo cannot establish control feel; a silent audio sink cannot establish sound quality. For automated multi-step interactions, pair observed images with actual state at the same tick; see Playtest diagnostics.
- Hand off. Supply launch/build instructions, actual artifact paths and asset licences. State what was run and observed, what remains unverified, and any material limitations. Publishing, purchases and external uploads are separate actions within the user's requested scope.
Starting a project
Resolve commands relative to this skill's directory, not the game's working
directory. Set skill_dir to the actual installed location, then for example:
python3 "$skill_dir/scripts/new_game.py" --out mygame \
--module example.com/mygame --title "My Game"
cd mygame
go mod tidy
go test ./world/...
The starter demonstrates scenes, action input, text, sound, a camera, pause and
scripted capture using a small platformer. It is an integration example,
not a genre or architecture requirement. Replace its rules, controls, level,
presentation and scene flow to fit the brief; a puzzle or card game should not
inherit gravity, jumping, camera scrolling or a platformer HUD. Existing projects
rarely need a scaffold. --ci adds a workflow and tools; inspect its triggers,
targets and release behavior before enabling it.
Loop and resource contracts
| Method | Responsibility | Important distinction |
|---|---|---|
Update() error |
Sample actions, advance simulation, apply scene changes and trigger event audio | Default target is 60 fixed ticks/s. Catch-up updates, focus pauses and slow machines affect actual scheduling. |
Draw(screen *ebiten.Image) |
Render the state produced by updates | Calls are not one-to-one with ticks. Do not advance gameplay, consume input edges or start sounds here. Renderer-owned caches are separate from simulation state. |
Layout(outsideW, outsideH int) (int, int) |
Choose logical dim |
الأسئلة الشائعة
أي إصدار من Ebitengine تستهدف؟
الهيكل الجاهز يستهدف Ebitengine v2.10.5 مع Go 1.25 أو أحدث، والمشروع القائم يحتفظ بإصداره.
هل يكفي الهيكل الأولي لاعتبار اللعبة منتهية؟
لا. تقول المهارة إن الهيكل أو البناء الناجح أو لقطة الشاشة وحدها لا تعني أن اللعبة منتهية.
هل تستطيع إصلاح مشكلة صغيرة في لعبتي؟
نعم. في الإصلاح المحدد تحصر العمل في السلوك المتأثر وتحافظ على التصميم.
التفاصيل
الوصف الأصلي من المؤلف
Create, improve, debug and package playable 2D games in Go with Ebitengine (github.com/hajimehoshi/ebiten/v2). Use for Ebitengine game requests: game design translated into a complete loop, input, rendering, text, audio, scenes, gameplay tests and desktop, browser or mobile builds. Also use when fixing these systems in an existing Ebitengine game. Do not apply to unrelated Go software or engine-internal patches merely because they depend on Ebitengine.
الشعبية
- نجوم GitHub
- 6.6k
- الترتيب
- #13806
- الترخيص
- Apache-2.0
- آخر تحديث
- 28/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
router
6.6kيساعد وكيلك على اختيار مهارة تطوير الألعاب المناسبة لطلبك، بعد التعرف على المحرك ونوع المهمة التي تحتاجها.
ai-behavior-trees-utility-ai
6.6kيساعد وكيلك على بناء شجرة سلوك ونظام ذكاء اصطناعي بالتقييم لأعداء اللعبة والشخصيات، فتختار الإجراء حسب الأولوية والنقاط.
audio-design
6.6kيعلّم وكيلك مزج صوت اللعبة: المسارات، والديسيبل، وخفض الموسيقى تحت الحوار، والموسيقى المتكيفة، وتنويع المؤثرات الصوتية.
camera-systems
6.6kيساعد وكيلك على بناء كاميرات للألعاب تتبع اللاعب بسلاسة، وتبقى داخل حدود المرحلة، وتدور حول الشخصية أو تنظر حولها في ثلاثة أبعاد.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.