wobblyhead hg > minor_monsters
comparison doc/roadmap.md @ 6:910b26feca76
full game flow
| author | ark |
|---|---|
| date | 2026-10-19 01:05 +0200 |
| parents | 2d46729a022e |
| children | 2c4fed8baed9 |
comparison
equal
deleted
inserted
replaced
| 5:67bf3c505145 | 6:910b26feca76 |
|---|---|
| 23 5. towers | 23 5. towers |
| 24 - shop, placement with snapping and preview, targeting, projectiles, | 24 - shop, placement with snapping and preview, targeting, projectiles, |
| 25 damage, hp bars, coin drops and flying coins | 25 damage, hp bars, coin drops and flying coins |
| 26 - first playable version of map0 | 26 - first playable version of map0 |
| 27 6. tower details | 27 6. tower details |
| 28 - upgrades, selling with the pause refund rule, t0 melee and spike sides, | 28 - upgrades, selling the whole tower with the pause refund rule, t0 melee |
| 29 t2 slow, boss with its bar | 29 and spike sides, t2 slow with the blue hp bar, boss with its bar |
| 30 7. game flow | 30 7. game flow |
| 31 - title and map selection, unlocking, localStorage, restart | 31 - splash screen with title, byline and play button over the paused first |
| 32 map; the play button starts the sound | |
| 33 - map won with next, game won after the last map with restart to the | |
| 34 splash screen, map lost back to the first map | |
| 35 - no map selection, unlocking or localStorage | |
| 32 8. tuning on all maps | 36 8. tuning on all maps |
| 33 - wave lists for maps 1-3, playtesting, balance changes in config only | 37 - wave lists for maps 1-3, playtesting, balance changes in config only |
| 34 9. supplied art and sound | 38 9. supplied art and sound |
| 35 - icons, screens and digits as the drawings arrive (art.md) | 39 - icons, screens and digits as the drawings arrive (art.md) |
| 36 - voice recordings as they arrive (sound.md) | 40 - voice recordings as they arrive (sound.md) |
| 42 | 46 |
| 43 | 47 |
| 44 prototype notes | 48 prototype notes |
| 45 --------------- | 49 --------------- |
| 46 | 50 |
| 47 decisions taken while building steps 1-5 that the other documents do not | 51 decisions taken while building steps 1-7 that the other documents do not |
| 48 cover. values marked proto in config/game.toml refer to this list. | 52 cover. values marked proto in config/game.toml refer to this list. |
| 49 | 53 |
| 50 build: | 54 build: |
| 51 | 55 |
| 52 - runs on python 3.11 or later with pillow; numpy is not used. a full build | 56 - runs on python 3.11 or later with pillow; numpy is not used. a full build |
| 64 the largest connected outline is the drawing and other ink is dropped. | 68 the largest connected outline is the drawing and other ink is dropped. |
| 65 outline ink is darker than luminance 150. sprites stay at the sheet's | 69 outline ink is darker than luminance 150. sprites stay at the sheet's |
| 66 scale, which is the scale the first cutouts had, so [scale] is unchanged. | 70 scale, which is the scale the first cutouts had, so [scale] is unchanged. |
| 67 coins and maps are not on the inked sheet and stay as they were | 71 coins and maps are not on the inked sheet and stay as they were |
| 68 - the empty part of the hp bars is a darkened copy made by the build | 72 - the empty part of the hp bars is a darkened copy made by the build |
| 69 (hpm_empty, hpb_empty) | 73 (hpm_empty, hpb_empty). the blue bars for slowed monsters have the hue of |
| 74 every pixel set to 220 degrees, which leaves the black outline as it is | |
| 75 (hpm_slow, hpb_slow, each with its _empty copy) | |
| 70 - sprite sizes go into config.js, so the game knows them before the images | 76 - sprite sizes go into config.js, so the game knows them before the images |
| 71 load | 77 load |
| 72 - mask pixels count when at least half opaque, and take the class of their | 78 - mask pixels count when at least half opaque, and take the class of their |
| 73 strongest colour. entrance or exit areas under 50 pixels are ignored | 79 strongest colour. entrance or exit areas under 50 pixels are ignored |
| 74 - the placement test draws discs around the path edge instead of keeping a | 80 - the placement test draws discs around the path edge instead of keeping a |
| 115 map3. 2 s between groups, 4 s before the boss. totals: 102, 199, 398, 600 | 121 map3. 2 s between groups, 4 s before the boss. totals: 102, 199, 398, 600 |
| 116 coins | 122 coins |
| 117 | 123 |
| 118 game: | 124 game: |
| 119 | 125 |
| 120 - scripts share the namespace object MM. storage.js is not written yet | 126 - scripts share the namespace object MM. storage.js is not written until |
| 127 there are settings to store (architecture.md, persistence) | |
| 121 - the simulation runs on wall clock time: at 60 frames per second, 2x gives | 128 - the simulation runs on wall clock time: at 60 frames per second, 2x gives |
| 122 two steps per frame. at most 4 steps per frame and speed step; a longer | 129 two steps per frame. at most 4 steps per frame and speed step; a longer |
| 123 frame drops the rest | 130 frame drops the rest |
| 124 - there is no title or map selection yet. the game starts on | 131 - game flow: the first map is debug.start_map, and only the first map |
| 125 debug.start_map. the won and lost screens offer a restart only | 132 starts at debug.start_wave; the next maps start at wave 1. |
| 133 debug.start_coins applies to every map. the splash screen pauses the | |
| 134 first map without counting the pause for the sell refund, and only its | |
| 135 play button responds. the next map starts with its break running, as | |
| 136 does the first map after a lost map. the screens use placeholders: a | |
| 137 pale veil with the title and byline in the system font, a play | |
| 138 triangle, one star for a won map and three for the game, a broken heart | |
| 139 for a lost map, an arrow for next and a circular arrow for restart | |
| 126 - a break starts when all monsters of the wave are gone, killed or escaped, | 140 - a break starts when all monsters of the wave are gone, killed or escaped, |
| 127 not when the last one has spawned. during a break the wave counter shows | 141 not when the last one has spawned. during a break the wave counter shows |
| 128 the next wave | 142 the next wave |
| 129 - monsters move at constant speed; the hop is drawn only. a hop spends 80 % | 143 - monsters move at constant speed; the hop is drawn only. a hop spends 80 % |
| 130 of its time in the air and 20 % landing. the idle bob is a slow breathing | 144 of its time in the air and 20 % landing. the idle bob is a slow breathing |
| 134 - "furthest along" means the least distance left to the exit. a monster is in | 148 - "furthest along" means the least distance left to the exit. a monster is in |
| 135 range when its centre is. projectiles hit on reaching the target's hit | 149 range when its centre is. projectiles hit on reaching the target's hit |
| 136 radius. a new tower attacks at once | 150 radius. a new tower attacks at once |
| 137 - turning towers face their target at once and keep the last direction when | 151 - turning towers face their target at once and keep the last direction when |
| 138 idle | 152 idle |
| 139 - t0's melee attack is in place, since without it t0 does nothing. it draws | 153 - t0's attack stretches each spike from under the tower until its tip |
| 140 spikes on all four sides and pushes them out for 0.3 s. spike sides, t2 | 154 reaches the range, and back, over 0.3 s |
| 141 slow, upgrades, selling and the boss bar are left for step 6; the boss uses | 155 - t0 spike sides: each side covers a quarter of the directions around the |
| 142 hpm for now | 156 tower. the route centre lines are sampled every 4 pixels; a side gets a |
| 157 spike when it holds at least 20 % of the samples within t0's level 5 | |
| 158 range. with no sample in that range, only the side towards the nearest | |
| 159 one gets a spike. the preview shows the same sides. on map0 about half the | |
| 160 placement cells give one side, most of the rest two, a few three | |
| 161 - t2 slow: each running slow keeps its own time, and the strongest one | |
| 162 applies. a slowed monster also hops slower, by the same factor | |
| 163 - tower menu: tapping a built tower shows an upgrade and a sell button above | |
| 164 it, or below it when there is no room above, kept inside the map. the | |
| 165 upgrade button shows the cost of the next level and is dimmed when it | |
| 166 cannot be afforded; at level 5 it is left out. the sell button shows the | |
| 167 refund. selling clears the selection; upgrading keeps it | |
| 168 - the pause refund counts pauses: each purchase records the pause it was | |
| 169 made in. a purchase made during the current pause is refunded in full | |
| 143 - placement: a tap within the footprint radius or 28 css pixels of the | 170 - placement: a tap within the footprint radius or 28 css pixels of the |
| 144 preview builds. the shop choice is cleared after building, and a second tap | 171 preview builds. the shop choice is cleared after building, and a second tap |
| 145 on the chosen shop button cancels it. a tap on a built tower selects it and | 172 on the chosen shop button cancels it. a tap on a built tower selects it and |
| 146 shows its range. a refused tap shows a red cross for 0.5 s. shop buttons | 173 shows its range. a refused tap shows a red cross for 0.5 s. shop buttons |
| 147 the player cannot afford are dimmed and do nothing | 174 the player cannot afford are dimmed and do nothing |
| 149 in game time on an arc. they are dropped when the map ends | 176 in game time on an arc. they are dropped when the map ends |
| 150 - placeholder icons: c0 for coins, m0 for waves, a drawn heart, one triangle | 177 - placeholder icons: c0 for coins, m0 for waves, a drawn heart, one triangle |
| 151 per game speed step (digits for debug speeds), a skip icon with countdown | 178 per game speed step (digits for debug speeds), a skip icon with countdown |
| 152 and bonus for the early start. the top bar needs about 500 css pixels of | 179 and bonus for the early start. the top bar needs about 500 css pixels of |
| 153 width; narrower screens are not handled | 180 width; narrower screens are not handled |
| 154 - debug switches: all from architecture.md except unlocking maps, which waits | 181 - debug switches: all from architecture.md. start_coins -1 means the map's own value, seed 0 a new seed per |
| 155 for step 7. start_coins -1 means the map's own value, seed 0 a new seed per | |
| 156 run | 182 run |
| 157 - sound: the first pointer or touch event anywhere unlocks audio, as there | 183 - sound: the play button on the splash screen starts the sound; taps |
| 158 is no title screen yet. sound is switched off only in the config. beeps | 184 before it leave sound off. later pointer and touch events resume audio |
| 185 if the browser has suspended it. sound is switched off only in the | |
| 186 config. beeps | |
| 159 use a square wave. variants are picked with Math.random, not the seeded | 187 use a square wave. variants are picked with Math.random, not the seeded |
| 160 generator, so sound does not change a repeated run. a sound that cannot be | 188 generator, so sound does not change a repeated run. a sound that cannot be |
| 161 played at once (audio still locked) is dropped, not queued | 189 played at once (audio still locked) is dropped, not queued |
| 162 - towers at scale 0.25 are small: t1 level 1 is about 43 x 30 map pixels. | 190 - towers at scale 0.25 are small: t1 level 1 is about 43 x 30 map pixels. |
| 163 worth a look with the hop and squash check of step 3 | 191 worth a look with the hop and squash check of step 3 |
