Ebitengine Game
/ebitengine-game
Create, debug and package 2D games in Go with Ebitengine: a pinned v2.10.5 starter with scenes, input, text, sound and scripted capture, a project scaffolder, and a read-only checker for deprecated APIs and game-loop mistakes.
- 许可证
- Apache-2.0
- 出品
- GameSkill 出品
所属合集
Awesome Gamedev Agent Skills
77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.
我们测过
在 Ebitengine v2.10.5 (Go 1.27.3), WebAssembly build in Chrome headless 上通过 25/25 项检查(2026-11-03):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告这个 skill 做什么
什么时候触发
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. …
GameSkill 测过的版本
GameSkill 调优版:skill 文件取自提交 19d93f97c9c1,按我们的 skill 流程加上可运行示例、测试报告、自检清单和中文指南。
协议:基于 gamedev-skills/awesome-gamedev-agent-skills(作者 gamedev-skills),协议 Apache-2.0。ZIP 保留协议文件(LICENSE, NOTICE),CHANGES.md 列出了 GameSkill 加的所有文件。

自检清单
- 命令从 skill 目录解析路径,不从游戏目录 / Resolve script paths from the skill folder, not the game folder
- 规则放在 Update,Draw 只画,不推进游戏、不读输入边沿、不播音效 / Rules in Update; Draw only draws, never advances play, reads input edges or starts sounds
- 时间用 tick 或固定 dt,不用 ActualTPS / Time in ticks or a fixed dt, never ActualTPS
- 改完循环、输入、音频代码后跑 check_ebitengine.py / Run check_ebitengine.py after changing loop, input or audio code
- 浏览器版本要用 HTTP 打开并看控制台 / Open browser builds over HTTP and read the console
- 交付时写清楚跑过什么、没验证什么 / Hand off what was run and what is still unverified
中文指南
这个 skill 做什么
用 Go 和 Ebitengine 做 2D 游戏:从需求、可玩切片、完整循环(开始→游玩→结果→重来)到验证和交付的流程;自带锁定在 Ebitengine v2.10.5 的起步工程(场景、输入、文字、音效、暂停、脚本化截图),一个建项目脚本,一个只读的检查器(找过时 API 和 Update/Draw 用错的地方),以及 15 篇参考文档。
什么时候用
- 用 Go + Ebitengine 新做或修一个 2D 游戏
- 同一个游戏要出桌面版和浏览器(WebAssembly)版
怎么装
下载本页 ZIP,把 ebitengine-game/ 放进 agent 的 skills 文件夹:Claude Code 用 .claude/skills/,Codex、Gemini CLI、OpenCode 用 .agents/skills/,Cursor 用 .cursor/skills/,Copilot 用 .github/skills/,Windsurf 用 .windsurf/skills/。也可以直接对 agent 说:Install the skill from https://gameskill.dev/skills/ebitengine-game/install.md
最小示例
gameskill/examples/ 用 skill 自带的 new_game.py 新建「Lantern Hop」工程,跑规则测试、go vet 和检查器,再编译成 WebAssembly,在无头 Chrome 里运行起步工程的脚本演示并截图。
我们怎么测的
总分 25/25。13 项实际运行:new_game.py 建出工程且 go.mod 锁定 v2.10.5;拒绝非空目录和错误的模块路径;go mod tidy;起步工程 8 个规则测试不需要显卡就通过;go vet 干净;检查器在起步工程上 0 警告,在我们故意写进 Draw 的输入读取和过时的 DrawRect 上都报警;Windows 交叉编译成功;WebAssembly 编译成功,在无头 Chrome 里启动、画面正常、脚本演示在动、没有报错和缺失文件。其余是 skill 说明、触发词和中文说明检查。结果在 gameskill/test-report.json。Linux 桌面版需要 X11/OpenGL/ALSA 开发头文件,我们的测试机没有,所以桌面版没有运行;浏览器版完整运行。
搭配
game-feel、input-systems、game-ui-ux:引擎无关的手感、输入和界面
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/ebitengine-game/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/ebitengine-game.zip -o /tmp/gameskill-ebitengine-game.zip
unzip -oq /tmp/gameskill-ebitengine-game.zip -d .claude/skills
rm /tmp/gameskill-ebitengine-game.zip包含内容
- A delivery workflow from brief to playable slice, complete loop, verification and hand-off
- scripts/new_game.py: scaffolds a project from the bundled Ebitengine v2.10.5 starter (scenes, input, text, sound, pause, scripted capture)
- scripts/check_ebitengine.py: read-only scan for deprecated APIs and Update/Draw mistakes
- 15 reference docs: rendering, input, text/UI, audio, tilemaps, builds, publishing and more
适合
- Building or fixing a 2D game in Go with Ebitengine
- Desktop and browser (WebAssembly) builds of the same game
不适合
- Go software that only happens to depend on Ebitengine
- 3D games
试试这条提示词
Start a new Ebitengine game in Go called Lantern Hop, run its rule tests and build it for the browser.关于这个 Skill
Create, improve, debug and package playable 2D games in Go with Ebitengine (github.com/hajimehoshi/ebiten/v2): a game design translated into a complete loop, input, rendering, text, audio, scenes, gameplay tests and desktop, browser or mobile builds.
From the ebitengine-game SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- Delivery workflow: inspect, playable slice, complete and refine, verify, hand off
- Starting a project with the bundled starter
- Loop and resource contracts (Update, Draw, Layout)
- Essential Ebitengine choices: input, rendering, text/UI, audio, systems, state
- Verification: vet, rule tests, the checker, headless capture, target builds
环境要求
- Go 1.25+ (Ebitengine v2.10.5 is fetched by go mod tidy)
- Python 3 for new_game.py and check_ebitengine.py
- Desktop builds on Linux need X11, OpenGL and ALSA development headers; browser builds need none
常见问题
基于 gamedev-skills/awesome-gamedev-agent-skills (作者 gamedev-skills,协议 Apache-2.0)。ZIP 里保留原作者的 LICENSE 和 NOTICE,ATTRIBUTION.md 和 CHANGES.md 写明来源提交和 GameSkill 加的内容。
搭配使用
作者标注的相关 Skills,或更适合相邻任务的 Skills。
Game Feel & Juice
Add juice to actions: screen shake, hit-stop, eased motion, squash and stretch, knockback and layered audio-visual feedback.
Game Input Systems
Game input architecture: action mapping, rebinding with conflict checks, keyboard, gamepad and touch, deadzones, buffering and coyote time.
Game UI/UX
HUDs and menus that work on every screen: anchored layouts, resolution and safe-area scaling, gamepad focus and event-driven updates.
Awesome Gamedev Agent Skills 中的更多 Skills
查看全部 45 个2D Platformer
Build a 2D platformer: run/jump control with coyote time, jump buffering, and variable jump height, plus tiled levels and hazards.
Behavior Trees & Utility AI
Build a behavior-tree runtime and a Utility AI system with response curves, plus hybrid agents where the behavior tree drives utility scoring.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Card Game
Build a card game: card data, deck/hand/discard zones, draw/shuffle/reshuffle, a turn structure, costs, and effect resolution.
相似 skills
Three.js Game Skills
Nine Agent Skills for Codex and Claude Code that build playable Three.js browser games, with a director skill, a Vite scaffold and Playwright QA.
3AGameFactory (GameFactory-3A)
An Apache-2.0 framework of agent skills and pipelines that turns a game requirement into assets (image, 3D, motion, audio, CG video) and engine-ready code for UE5, Blender, Unity, Godot 4 and three.js.
open-game-skills
An MIT pack of about 190 SKILL.md agent skills for game design: combat feel, camera, traversal, world, validation, 2D/Spine and art pipeline, with a dispatcher and adapters for Three.js, PixiJS, Phaser, Cocos, Godot, Unity and Unreal.
Ludra
A 2D game engine built for AI agents: games are JSON, every error comes with a machine-readable fix, and the agent plays and tests its own game headlessly. Ships a Claude Code plugin and skill.