Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. Inspect and decide. Read repository instructions, 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.
  2. 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).
  3. 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.
  4. 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).
  5. 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.Termination from Update for a clean stop; propagate other errors out of RunGame.
  • 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: 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/UI: keep a suitable existing bitmap or atlas renderer; new ou
Полный SKILL.md на GitHub

Установить ebitengine-game в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlassets/ci/github-actions.ymlassets/starter/assets.goassets/starter/game.goassets/starter/input.goassets/starter/licenses/Go-Fonts.txtassets/starter/main.goassets/starter/scenes.goassets/starter/sound.goassets/starter/web/index.htmlassets/starter/world/world.goassets/starter/world/world_test.goreferences/architecture-and-testing.mdreferences/assets-and-animation.mdreferences/audio.mdreferences/ci-and-release.mdreferences/design-and-quality.mdreferences/gameplay-systems.mdreferences/input.mdreferences/monetization.mdreferences/networking.mdreferences/playtest-diagnostics.mdreferences/project-and-builds.mdreferences/publishing-and-platforms.mdreferences/rendering.mdreferences/text-and-ui.mdreferences/tilemaps.mdscripts/check_ebitengine.pyscripts/new_game.pyscripts/package_macos_app.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить ebitengine-game с