ebitengine-game
БесплатноЗапускает вложенные скриптыНе проверенCreates, debugs and packages 2D games in Go with Ebitengine v2: a play-and-retry loop, input, pixel-art scaling, text, audio and desktop, WASM or mobile…
от gamedev-skills★ 12 656 звёзд на GitHubОб этом скилле
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.
Delivery workflow
- Inspect and decide. Read repository instructions,
go.mod, theRunGameentry 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. - Build a representative playable slice. Make the central interaction and its feedback work with the intended controls and look before adding content. Calibrate content against what the player can actually do. For an art set, fix perspective, scale, anchors and palette first (Assets and animation).
- Complete and refine. Implement the promised start → play → outcome → retry/continue loop (or the right persistent/sandbox loop). Refine hierarchy, animation, sound, difficulty and transitions in context, reading only the references for the systems you use. Fix the defects you find within this delivery.
- Verify the product with the commands under Verification: rules and transitions in tests, real input paths, rendered states at important moments, and every promised target built. Include failure/retry and boundary cases. For multi-step scripted interactions, pair each image with the game state at the same tick (Playtest diagnostics).
- Hand off. Give launch/build instructions, actual artifact paths and asset licences. State what was run and observed and what was not. A scripted demo cannot judge control feel and a null audio sink cannot judge sound, so ask the user to play a session and report on feel, audio and difficulty. Publishing, purchases and uploads are separate actions that need the user's go-ahead.
Starting a 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.
Loop and resource contracts
| Method | Responsibility | Important distinction |
|---|---|---|
Update() error |
Sample actions, advance simulation, apply scene changes, trigger event audio | 60 fixed ticks/s by default. Catch-up updates, focus pauses and slow machines change the real schedule. |
Draw(screen *ebiten.Image) |
Render the state the updates produced | Not one call per tick. Never advance gameplay, consume input edges or start sounds here. |
Layout(outsideW, outsideH int) (int, int) |
Choose the logical size for rendering and input | Fixed and responsive designs are both valid; check small windows, aspect ratio and readability. |
- Express durations in ticks or an explicit fixed
dt(30 ticks = 0.5 s at 60 TPS). - Return
ebiten.TerminationfromUpdatefor a clean stop; propagate other errors out ofRunGame. - Decode images and parse font sources once; reuse offscreens and hot-path slices.
- Keep rules apart from device and GPU code so they are testable. A small game does not need an ECS, scene stack or service layer.
Essential Ebitengine choices
- Input: map devices to actions in
Update; separate held, pressed and released; check gamepad availability and apply stick dead zones. Input. - Rendering:
GeoMoperations apply in call order. Choose sampling deliberately for pixel art versus smooth art. A custom final-screen transform needs matching pointer conversion. Rendering. - Text/UI: keep a suitable existing bitmap or atlas renderer; new ou
Установить ebitengine-game в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ebitengine-game?
Creates, debugs and packages 2D games in Go with Ebitengine v2: a play-and-retry loop, input, pixel-art scaling, text, audio and desktop, WASM or mobile builds. Use when go.mod requires ebiten/v2 or the user wants a game in Go, or on blurry pixel art, missed key presses or stutter. Not for engine patches; pair with `game-feel`, `game-ui-ux` or a genre skill for design.
Как установить скилл ebitengine-game?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ebitengine-game запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic