- name
SKILL.md
स्किल फ़ाइल पब्लिशर की रिपॉज़िटरी में ही रहती है।
कॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill ebitengine-game -a cursor -yकॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill ebitengine-game -a claude-code -yकॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill ebitengine-game -a codex -yकॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill ebitengine-game -a grok -yकॉपी किया गया संदेश Grok Bot चैट में भेजें। Bot यह SKILL.md GitHub से लाता है और उसे उन स्किल में जोड़ देता है जो आपके सभी Bot साझा करते हैं।
Install this skill: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/tree/HEAD/skills/ebitengine/ebitengine-gameपब्लिशर से
Deliver a game that is understandable, responsive and complete at the requested scope. A scaffold, a clean build or a good screenshot alone is not a finished game. For a focused fix, keep the project's design and touch only the affected behaviour.
The bundled starter targets Ebitengine v2.10.6 / Go 1.25+. Keep an existing project's versions unless an upgrade is needed and authorized, and check the pinned version's API before using newer or experimental APIs. Only the bundled scripts and starter are tested deliverables; reference snippets are patterns to adapt.
go.mod, the RunGame entry
point and existing tests and assets. For a new game, read
Design and quality. Settle the player's goal,
repeated decision, consequence, end/retry path, look, platform and inputs; infer
defaults and ask only about choices that change the product. Write a short brief with
observable acceptance criteria into the project.Run the scripts from this skill's directory (set skill_dir to where it is installed):
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 is a small platformer that demonstrates scenes, action input, text, sound,
a camera, pause and scripted capture. It is an integration example, not a template for
every genre: a puzzle or card game should drop gravity, jumping, camera scrolling and the
platformer HUD. Existing projects rarely need it. --ci adds a GitHub Actions workflow
and its tools; read its triggers, targets and release steps before enabling it. For a
macOS release, scripts/package_macos_app.py assembles a (universal) .app from built
binaries; run it with --help first, and sign and notarize separately on a Mac.
dt (30 ticks = 0.5 s at 60 TPS).ebiten.Termination from Update for a clean stop; propagate other errors out of
RunGame.Update; separate held, pressed and released;
check gamepad availability and apply stick dead zones. Input.GeoM operations apply in call order. Choose sampling deliberately for
pixel art versus smooth art. A custom final-screen transform needs matching pointer
conversion. Rendering.text/v2 with fonts that cover the shipped scripts (and their licences). Measure real
strings and check focus and long text. Text/UI.audio.Context per process; match sample rate and PCM format; give
overlapping effects their own players. Audio.Update, make reset/retry complete, split
gameplay and cosmetic randomness, and test saves when persistence is promised.
Architecture/testing.Run from the game directory and keep go.mod and go.sum. -buildvcs=false avoids
depending on surrounding Git metadata.
go vet ./...
go test ./world/... # the starter's GPU-independent rules; run your other packages too
python3 "$skill_dir/scripts/check_ebitengine.py" .
go build -buildvcs=false -o game .
Run the checker after changing loop, input or audio code or when reviewing old APIs. It is
a read-only text scan: warnings (deprecated APIs, ReadPixels, work in Draw) need a look
in context, and notes (ambiguous .At() calls the scanner cannot type) never fail
--strict. --json prints the shared checker schema with note_count and notes;
--max-issues N caps the report without changing totals. A clean result proves neither
correctness nor quality.
Capture the starter with -demo -shot frame.png -shot-tick 240. On Linux, use a virtual
display and, if there is no sound card, a null ALSA device without touching HOME:
audio_config=$(mktemp)
printf 'pcm.!default { type null }\n' > "$audio_config"
ALSA_CONFIG_PATH="$audio_config" xvfb-run -a ./game \
-demo -shot frame.png -shot-tick 240
rm "$audio_config"
Open the PNG, then capture other states that matter: first play, a busy moment, failure and
the outcome screen. Once the game differs from the template, update the scripted actions and
capture points; the template demo proves nothing about another loop. Tests that initialize
graphics need xvfb-run -a on Linux. For injected input and replay tests, v2.10's opt-in
exp/vmhost is covered in Architecture/testing.
Build only the promised targets, for example:
GOOS=windows GOARCH=amd64 go build -buildvcs=false -o game.exe .
GOOS=js GOARCH=wasm go build -buildvcs=false -o game.wasm .
Cross-compiling proves buildability, not runtime support. Serve browser builds over HTTP and check the console, input and audio. Native SDKs, store bindings and cgo dependencies add requirements beyond Ebitengine's pure-Go desktop backend.
inpututil.IsKeyJustPressed
and friends) are tick-based. Read them once per tick in Update, never in Draw, and
combine bindings before computing an action's edge.Draw, or code uses ActualTPS/ActualFPS as a delta. Advance in Update by ticks.
SetTPS changes the whole clock, so it is not a slow-motion switch.GeoM applies in call order:
translate the pivot to the origin, scale and rotate, then translate to the position.DecodeF32 does not resample, and
F32 streams need the …F32 players. Convert assets to the context rate or use
DecodeWithSampleRate with NewPlayer.audio: context is already created panic → audio.NewContext ran twice. Create one
context at start-up and pass it around (audio.CurrentContext() returns it).audio.Player is rewound for every hit.
Use a small voice pool and cap concurrent voices.ctx.IsReady(); an embedding iframe needs
allow="autoplay".text.NewGoTextFaceSource every frame, or Size is animated (glyphs are rebuilt per
size). Parse each font once and keep the source; to zoom text, scale a pre-drawn image.ReadPixels/At call → GPU readback waits for the GPU,
and ReadPixels cannot run before RunGame. Keep it to tests and screenshots.This skill owns Ebitengine and Go APIs. For portable design, pair it with the relevant
discipline (game-ui-ux, game-feel, audio-design, create-game-assets,
input-systems, performance-optimization, save-systems), a genre skill or a shipping
workflow, and bind their engine slots to this skill's references rather than another
engine's code. The folder also works on its own.
exp/vmhost.Ebitengine's own repository has agent skills under skills/ on its main branch
(run-ebitengine-app-headless, writing-kage-shaders, avoiding-blurry-ebitengine-rendering,
efficient-ebitengine-rendering). Use them when installed for headless input injection,
Kage shaders and rendering performance, and check that what they describe exists in the
project's pinned version: they track the next release.
Last verified: 2026-11-11.
go 1.25.0 in its go.mod).new_game.py (default --ebiten v2.10.6), then
go mod tidy, go vet, go test ./world/..., the checker, native, Windows and WASM
builds and the Xvfb capture above were run with Go 1.25.0.>
---name: ebitengine-gamedescription: >---# skills/ebitengine/ebitengine-game/SKILL.mdFAQ
पब्लिशर से skills/ebitengine/ebitengine-game/SKILL.md डाउनलोड करें, या पाथ कॉपी करके रिपॉज़िटरी खोलें। PlugMCP स्किल को सूचीबद्ध करता है, फ़ाइल होस्ट नहीं करता।
पब्लिशर इसे https://github.com/gamedev-skills/awesome-gamedev-agent-skills पर रखता है।
Claude, Cursor, Codex और Grok Build वह SKILL.md पढ़ सकते हैं जिसे आप पब्लिशर की रिपॉज़िटरी से जोड़ते हैं। जब आप चैट में स्किल के GitHub फ़ोल्डर का लिंक भेजते हैं, तो Grok Bot उसे इंस्टॉल कर देता है।
ebiten.DeviceScaleFactor →
ebiten.Monitor().DeviceScaleFactor(); inpututil.PressedKeys →
AppendPressedKeys; ebiten.GamepadIDs/TouchIDs → AppendGamepadIDs/AppendTouchIDs;
text.Advance → text.AdvanceAt. Deprecated code still builds; change it when touched.go: go.mod requires go >= 1.25.0 (running go 1.22…; GOTOOLCHAIN=local) → the local
Go is older than v2.10 needs. Install
Go 1.25+, or allow the toolchain download (GOTOOLCHAIN=auto, the default).