Zum Inhalt springen
Skillpedia
Allgemeines Programmieren6.6k · #13806

ebitengine-game

Was er macht

Dieser Skill führt durch den Bau eines vollständigen 2D-Spiels in Go mit der Bibliothek Ebitengine. Er ist für Entwickler gedacht, die ein spielbares Spiel mit klaren Regeln, Eingabe, Darstellung, Ton und Builds für mehrere Plattformen wollen.

Wann du ihn nutzt

  • ✓Wenn du ein 2D-Spiel in Go mit der Bibliothek Ebitengine machen willst.
  • ✓Wenn ein bestehendes Ebitengine-Spiel einen Fehler bei Eingabe, Darstellung, Text oder Ton hat.
  • ✓Wenn du ein Ebitengine-Spiel für Desktop, Browser oder Mobilgeräte verpacken musst.

Link zum Skill

https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/ebitengine/ebitengine-game/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/ebitengine/ebitengine-game/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Kannst du mir helfen, ein kleines 2D-Spiel in Go mit Ebitengine zu machen, in dem der Spieler Münzen sammelt und Gegnern ausweicht?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Dein Agent legt das Ziel des Spielers und die zentrale Entscheidung fest und baut dann einen spielbaren Ausschnitt mit Eingabe, Zeichnen, Text, Ton und Szenen. Er testet das Gameplay, verfeinert es und richtet sich nach der im Projekt festgelegten Ebitengine-Version.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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

  1. Inspect and decide. Read repository instructions, go.mod, the RunGame entrypoint 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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
Häufige Fragen

Welche Ebitengine-Version zielt er an?

Die mitgelieferte Vorlage zielt auf Ebitengine v2.10.5 mit Go 1.25 oder neuer. Ein bestehendes Projekt behält seine eigene Version.

Reicht ein Grundgerüst, um das Spiel als fertig zu betrachten?

Nein. Der Skill sagt, dass ein Grundgerüst, ein erfolgreicher Build oder ein Screenshot allein kein fertiges Spiel ergeben.

Kann er einen kleinen Fehler in meinem Spiel beheben?

Ja. Für eine gezielte Korrektur begrenzt er die Arbeit auf das betroffene Verhalten und behält das Design bei.

Details

Originalbeschreibung des Autors

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.

repo: gamedev-skills/awesome-gamedev-agent-skills

Beliebtheit

GitHub-Sterne
6.6k
Platz im Ranking
#13806
Lizenz
Apache-2.0
Aktualisiert
28.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills