tower-defense
Agent skill fromgamedev-skills/awesome-gamedev-agent-skills
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.
How to install tower-defense
install tower-defense
# install the awesome-gamedev-agent-skills pack with the skills CLI
npx skills add gamedev-skills/awesome-gamedev-agent-skills# or add only this skill to Claude Code: copy the folder
skills/genres/tower-defense/
# into
~/.claude/skills/tower-defense/ (all projects)
.claude/skills/tower-defense/ (one project)
1# Tower Defense23A playbook for tower defense — enemy pathing, wave spawning, tower targeting, and the4economy that ties them together. This is a **compositional** skill: it orchestrates pathing,5AI, and UI into a TD loop. It does not re-teach pathfinding; it defines the systems and the6balance levers (DPS vs. HP vs. income) that decide whether a TD is tense or trivial.78## When to use910- Use when building a game where the player **places towers** that automatically attack11 **waves of enemies** following a path, spends earned currency to expand/upgrade, and loses12 if too many enemies leak through.13- Use when designing wave composition/pacing, tower targeting priorities, or the gold economy.1415**When _not_ to use:** the player directly controls a shooter → `fps-shooter`. Free-form base16building with needs → `survival-crafting`. For the pathfinding algorithm itself, use `game-ai`.1718## Core loop1920**Prepare (place/upgrade towers with current gold) → start the wave → enemies path toward the21goal while towers auto-fire → earn gold from kills → survive the wave → repeat against a22harder one.** The tension is a planning puzzle: is my current DPS enough for what's coming,23and can I afford the answer?2425## Must-have systems26271. **Enemy path** — waypoint lanes, or grid + pathfinding for maze TD (refs).282. **Wave spawner** — timed, scripted sequences of enemy types with per-wave scaling.293. **Towers** — range, fire rate, damage, projectile/hitscan, splash; placement validity.30…
Excerpt shown under the repository's Apache-2.0 license.
