rea-ci-tests-audit
MOmorluto/rea486k8,943 new stars in the last 7 days
Designs tower defense games in any engine: lane and maze pathing, wave pacing, targeting priorities, armoured and flying counters, and the gold economy, with a wave-curve checker. Use for a Bloons- or Kingdom Rush-like, or late waves that are impossible or trivial or a dominant tower. Not for pathfinding (`game-ai`) or survival base building (`survival-crafting`).
Owns the TD loop: paths, waves, towers, targeting and the economy that links them. The core balance question is whether the DPS the player can afford keeps pace with the HP each wave sends, so design both curves together and check them with the script before playtesting.
When not to use: the player shoots directly (fps-shooter); free-form base building with
needs (survival-crafting); the A* or flow-field code itself (game-ai).
python3 scripts/td_curve_check.py waves.json. It buys a reference tower with all gold
before each wave and prints each wave's pressure (needed DPS / owned DPS x efficiency).
Errors are walls (pressure above 1.0); warnings are runs of trivial waves. Aim for 0.6-0.95
with breathers between spikes. --help shows the spec format; --json for tooling.path_length / speed (refs §1);| Lever | Start here | Why |
|---|---|---|
| Wave 1 | beatable with starting gold at pressure about 0.5-0.7 | the first wave teaches, it does not test |
| Kill bounty | most income early; wave-clear bonus grows later | late income should reward survival, not farming |
| Leaks | cost lives and the bounty | otherwise leaking can be optimal |
| Sell refund | 50-80% of money spent | repositioning possible, never free |
| Interest | optional, capped | rewards saving but snowballs |
| Upgrades | competitive gold-per-DPS with new towers, with diminishing tiers | "tall" and "wide" both viable |
| Early call | gold bonus scaled by time skipped | speeds the game for experts |
| Targeting | per tower: first (default), last, strongest, weakest, closest | changes play more than raw stats |
# A wave is data: groups spawn in order, each with its own spacing.
WAVES = [
{"groups": [{"type": "grunt", "count": 10, "spacing": 0.6},
{"type": "runner", "count": 6, "spacing": 0.3}], "clear_bonus": 30},
{"groups": [{"type": "armored", "count": 4, "spacing": 1.2}], "clear_bonus": 35,
"preview": "armored"}, # shown one wave ahead in the UI
]
Telegraph every new enemy type a wave ahead, and introduce it alone before mixing it with others, so the counter feels learnable rather than random.
references/balancing.md: read when choosing path representations and writing waypoint or
maze validation code, targeting mode code, DPS and "can this lane hold" math, HP scaling,
economy details, lives and wave pacing.scripts/td_curve_check.py --help: spec format and the pressure model's limits.Related: game-ai (A*, flow fields), level-design (map layouts), godot-tilemap or
unity-tilemap-2d (grid maps), godot-resources or unity-scriptableobjects (tower and
wave data), game-ui-ux (build menu, wave preview, HUD), game-feel and audio-design.
Last verified: 2026-11-30.
Path2D and PathFollow2D (progress, progress_ratio, loop) and
AStarGrid2D.set_point_solid() (no update() needed afterwards) used in the reference were
checked against the 4.7.2 class reference (doc/classes/*.xml); PathFollow2D.loop defaults
to true, so set it to false for leak detection.--help
example (the same spec the tests use), not from a shipped game.MOmorluto/rea486k8,943 new stars in the last 7 days
MOmorluto/rea486k8,943 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
Block dangerous git commands like push and reset --hard before they execute.
MAmattpocock/skills337k4,978 new stars in the last 7 days