bgrenat/godot-game-dev-studio/gamedev-tower-defense
Claude Code and agent skill by bgrenat/godot-game-dev-studio
- community
Checking that the SKILL.md file is still in the repository.
Imported awesome-gamedev-agent-skills guidance for tower-defense workflows in game development projects. Use when building a tower defense game: enemy pathing, wave spawning, tower targeting, and economy.
Install
npx vskill@latest install bgrenat/godot-game-dev-studio/gamedev-tower-defenseSKILL.md
The same SKILL.md was published earlier as bgrenat/godot-game-dev-studio/gamedev-tower-defense.
Tower Defense
A playbook for tower defense — enemy pathing, wave spawning, tower targeting, and the economy that ties them together. This is a compositional skill: it orchestrates pathing, AI, and UI into a TD loop. It does not re-teach pathfinding; it defines the systems and the balance levers (DPS vs. HP vs. income) that decide whether a TD is tense or trivial.
When to use
- Use when building a game where the player places towers that automatically attack
waves of enemies following a path, spends earned currency to expand/upgrade, and loses if too many enemies leak through.
- Use when designing wave composition/pacing, tower targeting priorities, or the gold economy.
When *not* to use: the player directly controls a shooter → fps-shooter. Free-form base building with needs → survival-crafting. For the pathfinding algorithm itself, use game-ai.
Core loop
Prepare (place/upgrade towers with current gold) → start the wave → enemies path toward the goal while towers auto-fire → earn gold from kills → survive the wave → repeat against a harder one. The tension is a planning puzzle: is my current DPS enough for what's coming, and can I afford the answer?
Must-have systems
- Enemy path — waypoint lanes, or grid + pathfinding for maze TD (refs).
- Wave spawner — timed, scripted sequences of enemy types with per-wave scaling.
- Towers — range, fire rate, damage, projectile/hitscan, splash; placement validity.
- Targeting — per-tower priority (first/last/closest/strongest/weakest) (refs).
- Economy — gold from kills + wave bonuses; tower/upgrade costs; sell refund.
- Lives / leak — enemies reaching the goal cost lives; 0 = game over.
- Wave/prep UI — lives, gold, next-wave preview, start-next-wave control.
Design knobs
| Knob | Effect | Notes | |
|---|---|---|---|
| Enemy HP growth/wave | upgrade pressure | Geometric ~1.1–1.2× (refs). | |
| Income vs. HP curves | difficulty | Player should almost afford each wave. | |
| Tower DPS / range / cost | tower identity | Cheap+wide vs. expensive+tall. | |
| Targeting priority | optimal placement | Changes play more than raw stats. | |
| Enemy variety | counters one-build wins | Fast / armored / flying / swarm / boss. | |
| Leak penalty | stakes | Cost lives and lost bounty. | |
| Upgrade vs. build economy | strategy depth | Diminishing upgrade returns. | |
| Wave pacing | tension curve | Spike → breather → spike, not monotonic. |
Patterns
1. Wave spawner (timed, data-driven)
2. Tower targeting (filter to range, then pick by priority)
3. "Can this lane hold?" sanity check (DPS vs. HP)
Pitfalls / failure modes
- Enemy HP scales slower than player income/DPS → game trivializes after a few waves.
Tune the HP curve against the income curve (refs).
- One dominant tower/strategy → no decisions. Add enemy types that hard-counter builds
(armored vs. rapid-fire, flying vs. ground-only) and diminishing upgrade returns.
- Maze TD that can fully block the goal → enemies get stuck/softlock. Forbid placements
that sever the path; recompute paths when towers change (refs).
- No next-wave telegraph → specials feel random and unfair. Preview upcoming composition.
- Per-frame movement unscaled by `dt` → speed varies with frame rate. Scale steering by
dt. - Leaks only cost lives, not gold → leaking is sometimes optimal. Make leaks lose bounty too.
- Monotonic difficulty ramp → exhausting. Pace spikes and breathers.
Composition (build it from these skills)
- Pathing:
game-aifor A\*/flow-field/steering; for fixed lanes, simple waypoint following. - Enemy movement:
godot-2d-movement(or engine equivalent) to move along the path;unity-navmeshfor nav-based pathing. - Map:
godot-tilemap/unity-tilemap-2dfor the grid/lanes;level-designfor map layouts. - Data:
godot-resources/unity-scriptableobjectsto define towers, enemies, and waves as assets. - UI:
game-ui-uxfor HUD layout, scaling, and the build menu;godot-ui-controlfor the concrete widgets (lives, gold, wave preview). - Polish:
audio-designfor fire/hit/leak sound cues.
References
- For path representations (waypoints / A\* / flow fields), targeting modes, DPS and economy
math, enemy scaling, and wave pacing, read references/balancing.md.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gamedev-tower-defense/SKILL.md
Popularity
- Repository stars
- 16
- Repository forks
- 2
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bgrenat/godot-game-dev-studio/gamedev-tower-defense)