wobblyhead hg > minor_monsters
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 13:8df95050fc8b | 14:7fda634d15ad |
|---|---|
| 170 | 170 |
| 171 config/game.toml holds every number in balance.md, the wave lists, and debug | 171 config/game.toml holds every number in balance.md, the wave lists, and debug |
| 172 switches. the build converts it into game/data/config.js. toml allows comments, | 172 switches. the build converts it into game/data/config.js. toml allows comments, |
| 173 so each value can carry its source note (guess, decided). | 173 so each value can carry its source note (guess, decided). |
| 174 | 174 |
| 175 wave format (sketch): | 175 wave format: |
| 176 | 176 |
| 177 [[map.0.wave]] | 177 [[map.0.wave]] |
| 178 groups = [ | 178 monsters = { m0 = 5, m1 = 1, m2 = 1, b0 = 1 } |
| 179 { monster = "m0", count = 6, interval = 1.0 }, | 179 |
| 180 { monster = "m1", count = 2, interval = 1.5, delay = 3.0 }, | 180 a wave lists how many of each monster it holds. when the wave starts, the |
| 181 ] | 181 boss spawns first: it is the slowest monster and the others overtake it. the |
| 182 | 182 rest follow one per spawn interval, each drawn at random from the monsters |
| 183 a group starts after the previous one has finished spawning plus its delay. | 183 left in the wave. the spawn interval is set per map. the boss is in the last |
| 184 the boss is a group in the last wave. | 184 wave. |
| 185 | 185 |
| 186 debug switches, all off by default: | 186 debug switches, all off by default: |
| 187 | 187 |
| 188 - start coins override, unlimited coins | 188 - start coins override, unlimited coins |
| 189 - start at a given map and wave. that map counts as the first map: the play | 189 - start at a given map and wave. that map counts as the first map: the play |
