Tower Defense
/tower-defense
Build a tower defense: enemies pathing along lanes, wave spawning, towers that auto-target and fire, an economy, and lives.
- 许可证
- 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.
我们测过
在 Godot 4.7.2 上通过 32/32 项检查(2026-10-30):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告这个 skill 做什么
什么时候触发
Build a tower defense: enemies pathing along lanes, wave spawning, towers that auto-target and fire, an economy, and lives. Use for a tower-defense/wave-defense game, or balancing waves and economy.
GameSkill 测过的版本
GameSkill 调优版:skill 文件取自提交 19d93f97c9c1,按我们的 skill 流程加上可运行示例、测试报告、自检清单和中文指南。
协议:基于 gamedev-skills/awesome-gamedev-agent-skills(作者 gamedev-skills),协议 Apache-2.0。ZIP 保留协议文件(LICENSE, NOTICE),CHANGES.md 列出了 GameSkill 加的所有文件。

自检清单
- 敌人移动乘以时间步长,跨过路点时把剩余距离带到下一段 / Enemy movement scales by delta and carries leftover distance past waypoints
- 选目标策略明确:最前、最后、最近、最强 / Targeting strategy is explicit: first, last, closest, strongest
- 只选射程内的敌人 / Only enemies inside range are targeted
- 建塔、卖塔、赏金、漏怪的钱和命都算清楚 / Build cost, sell refund, bounty and leaks all hit gold and lives
- 模拟用固定步长,同样的输入结果一样 / The simulation runs on a fixed step and is deterministic
推荐搭配
中文指南
这个 skill 做什么
塔防的规则:敌人沿路径匀速前进(和帧率无关)、按波次数据出怪、塔在射程内自动选目标(最前、最后、最近、最强)并按冷却开火、击杀给钱、建塔扣钱、卖塔返还一部分,漏怪扣命。血量按波次几何增长。
什么时候用
- 做塔防的路径、波次和出怪
- 让塔按策略自动选目标
- 平衡波次难度和经济
怎么装
下载本页的 ZIP,把 tower-defense/ 整个文件夹放进 agent 的 skills 文件夹:Claude Code 用 .claude/skills/,Codex、Gemini CLI、OpenCode 用 .agents/skills/,Cursor 用 .cursor/skills/,Copilot 用 .github/skills/,Windsurf 用 .windsurf/skills/,然后重启 agent。也可以直接对 agent 说:Install the skill from https://gameskill.dev/skills/tower-defense/install.md
最小示例
gameskill/examples/ 是一个 Godot 4.7 工程:game.gd 用固定步长模拟路径、波次、塔和经济,main.gd 画出路径、带射程圈的塔和一波中的敌人。
我们怎么测的
总分 32/32。在 Godot 4.7.2 无头模式下跑 20 项检查:移动距离和帧率无关,跨路点时不丢距离;漏怪扣命也扣钱;建塔扣钱、钱不够失败、卖塔返还 70%;四种选目标策略都选对,射程外不选;塔会开火、击杀给赏金;血量按波次 1.15 倍几何增长;出怪随时间展开、清波有奖励、能预览下一波;同样输入结果完全一致。结果在 gameskill/test-report.json。
搭配
mechanic-tower-defense-power-grid:我们原创的塔防供电玩法ccgs-balance-check:波次和经济平衡game-feel:开火和击中的手感
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/tower-defense/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/tower-defense.zip -o /tmp/gameskill-tower-defense.zip
unzip -oq /tmp/gameskill-tower-defense.zip -d .claude/skills
rm /tmp/gameskill-tower-defense.zip包含内容
- Worked steps: Wave spawner; Tower targeting; "Can this lane hold?" sanity check
- A pitfalls section with the mistakes to avoid
- Bundled 1 reference doc the agent reads when needed
适合
- A tower-defense/wave-defense game, or balancing waves and economy
试试这条提示词
Build a tower defense with lane pathing, wave spawning and a gold economy.关于这个 Skill
Build a tower defense: enemies pathing along lanes, wave spawning, towers that auto-target and fire, an economy, and lives. Use for a tower-defense/wave-defense game, or balancing waves and economy.
From the tower-defense SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- Core loop
- Must-have systems
- Design knobs
- Wave spawner (timed, data-driven)
- Tower targeting (filter to range, then pick by priority)
- "Can this lane hold?" sanity check (DPS vs. HP)
- Composition (build it from these skills)
常见问题
游戏打磨流程 Game Polish Workflow
让 AI 把游戏真正改好的可复用流程:10 步打磨循环、中英双语提示词、AI 做游戏常见问题排障清单,以及试玩和发布检查表。
- 10 步打磨循环,每步有完成标准
- 14 条中文 + 14 条英文提示词
基于 gamedev-skills/awesome-gamedev-agent-skills (作者 gamedev-skills,协议 Apache-2.0)。ZIP 里保留原作者的 LICENSE 和 NOTICE,ATTRIBUTION.md 和 CHANGES.md 写明来源提交和 GameSkill 加的内容。
Awesome Gamedev Agent Skills 中的更多 Skills
查看全部 48 个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
Novel to Game
Agent skills for source-grounded adaptation of novels into games: cited design docs, target-runtime builds and evidence-based QA.
Novel to Game: Art Direction
Direct game art and creative vision.
Novel to Game: Book Analysis
Deconstruct a novel for game adaptation.
Novel to Game: Concept
Design game concepts from a novel.