diff doc/architecture.md @ 14:7fda634d15ad

adjustments to wave logic, tower pivot points
author ark
date 2026-10-19 22:50 +0200
parents 8df95050fc8b
children fe680946164b
line wrap: on
line diff
--- a/doc/architecture.md	Mon Oct 19 21:59:53 2026 +0200
+++ b/doc/architecture.md	Mon Oct 19 22:50:52 2026 +0200
@@ -172,16 +172,16 @@
 switches. the build converts it into game/data/config.js. toml allows comments,
 so each value can carry its source note (guess, decided).
 
-wave format (sketch):
+wave format:
 
     [[map.0.wave]]
-    groups = [
-        { monster = "m0", count = 6, interval = 1.0 },
-        { monster = "m1", count = 2, interval = 1.5, delay = 3.0 },
-    ]
+    monsters = { m0 = 5, m1 = 1, m2 = 1, b0 = 1 }
 
-a group starts after the previous one has finished spawning plus its delay.
-the boss is a group in the last wave.
+a wave lists how many of each monster it holds. when the wave starts, the
+boss spawns first: it is the slowest monster and the others overtake it. the
+rest follow one per spawn interval, each drawn at random from the monsters
+left in the wave. the spawn interval is set per map. the boss is in the last
+wave.
 
 debug switches, all off by default: