77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.
Python agent-skillsai-agentsantigravityawesome-listclaude-codeclinecodexcursorgame-devgame-developmentgamedevgemini-cligithub-copilotgodotkirooh-my-piskillsunityunrealwindsurf
fix(tower-defense): carry leftover movement past waypoints, track path progress, check live enemies on maze placement
Kiro Crewdb2ae3555e77
diff --git a/skills/genres/tower-defense/SKILL.md b/skills/genres/tower-defense/SKILL.mdindex fa9b8b9..213977d 100644--- a/skills/genres/tower-defense/SKILL.md+++ b/skills/genres/tower-defense/SKILL.md@@ -100,7 +100,10 @@ damage_dealt = tower_dps * time_in_range- **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).+ that sever the path for the spawn or for any enemy already walking; recompute paths when+ towers change (refs §1).+- **Fast enemies slow down at corners or skip waypoints** → per-step movement stops at each+ waypoint or overshoots it. Carry the leftover distance to the next waypoint (refs §1).- **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.diff --git a/skills/genres/tower-defense/references/balancing.md b/skills/genres/tower-defense/references/balancing.mdindex 0d22882..a1c6f77 100644--- a/skills/genres/tower-defense/references/balancing.md+++ b/skills/genres/tower-defense/references/balancing.md@@ -16,16 +16,37 @@ Three common approaches:it. Scales to huge crowds (one computation for all enemies) — see `game-ai`.```python-# Waypoint following (pseudocode): move toward the next waypoint; advance when close.+# Waypoint following (pseudocode). Spend this step's whole move distance, carrying any+# leftover past a waypoint, so fast enemies don't lose time at corners or overshoot them.def update_enemy(e, dt):- target = path[e.wp_index]- e.pos = move_toward(e.pos, target, e.speed * dt)- if distance(e.pos, target) < ARRIVE_EPS:+ remaining = e.speed * dt+ while remaining > 0:+ target = path[e.wp_index]+ to_go = distance(e.pos, target)+ if to_go > remaining:+ e.pos = move_toward(e.pos, target, remaining)+ e.progress += remaining+ return+ e.pos = target # reached this waypoint exactly+ e.progress += to_go+ remaining -= to_goe.wp_index += 1if e.wp_index >= len(path):leak(e) # reached the goal: cost the player a life+ return```+`e.progress` is distance travelled along the path; "first"/"last" targeting reads it (§2).+In Godot 4.7, a `Path2D` with one `PathFollow2D` per enemy does this for you: add+`speed * delta` to `PathFollow2D.progress` (set `loop = false`) and treat+`progress_ratio >= 1.0` as a leak.++**Maze TD placement check.** Before committing a tower, mark its cell blocked and run one+breadth-first search (or flow-field build) from the goal. Reject the placement if the spawn+**or any enemy currently on the field** can no longer reach the goal; otherwise keep it and+re-path the enemies. In Godot, `AStarGrid2D.set_point_solid()` takes effect without another+`update()` call.+## 2. Tower targeting modesExpose a per-tower targeting priority; it changes optimal play more than raw stats: