wobblyhead hg > minor_monsters
comparison doc/roadmap.md @ 23:2f555a54c332
layout fixes and balancing
| author | ark |
|---|---|
| date | 2026-10-20 12:04 +0200 |
| parents | ad1b478fc4dc |
| children | 3f2811aebb3d |
comparison
equal
deleted
inserted
replaced
| 22:ad1b478fc4dc | 23:2f555a54c332 |
|---|---|
| 7 - directory layout, config/game.toml with the values from balance.md | 7 - directory layout, config/game.toml with the values from balance.md |
| 8 - build script: sprites, tower level split and fill, map copies, | 8 - build script: sprites, tower level split and fill, map copies, |
| 9 config.js | 9 config.js |
| 10 - check: the processed tower levels look right | 10 - check: the processed tower levels look right |
| 11 2. maps and routes | 11 2. maps and routes |
| 12 - mask classification, placement grid, route extraction, routes.toml | 12 - mask classification, placement grid, route extraction |
| 13 corrections | |
| 14 - previews in temp/preview/ | 13 - previews in temp/preview/ |
| 15 - check: routes on all four maps follow the paths, placement grid looks | 14 - check: routes on all four maps follow the paths, placement grid looks |
| 16 sensible | 15 sensible |
| 17 3. map and walking monsters | 16 3. map and walking monsters |
| 18 - index.html, main loop, scaling to the window, map drawing | 17 - index.html, main loop, scaling to the window, map drawing |
| 115 is kept. map2 gives 6 routes, all kept; map1 gives 3 | 114 is kept. map2 gives 6 routes, all kept; map1 gives 3 |
| 116 - route smoothing: moving average over 17 points, applied twice, then | 115 - route smoothing: moving average over 17 points, applied twice, then |
| 117 simplified to 0.8 pixel tolerance | 116 simplified to 0.8 pixel tolerance |
| 118 - straightness for the route value is the least turning of the map's routes | 117 - straightness for the route value is the least turning of the map's routes |
| 119 divided by the route's turning. turning is the total, not per length | 118 divided by the route's turning. turning is the total, not per length |
| 120 - routes.toml names routes by their number in the build output. the numbers | |
| 121 change when a mask changes | |
| 122 - the road half widths are the median distance from the centre line to the | 119 - the road half widths are the median distance from the centre line to the |
| 123 edge of the earlier masks, which covered the whole road. map0's route is | 120 edge of the earlier masks, which covered the whole road. map0's route is |
| 124 2068 long | 121 2068 long |
| 125 - the coin check compares all coins dropped, boss included, with 10 x | 122 - the build prints the coins dropped per map, boss included, with and |
| 126 starting coins | 123 without the starting coins. the earlier check against 10 x the starting |
| 124 coins is gone (balance.md, economy) | |
| 127 - the build prints the early start bonus for skipping every break, including | 125 - the build prints the early start bonus for skipping every break, including |
| 128 the one before the first wave: 8, 21, 53, 94. balance.md gives 6, 17, 45, | 126 the one before the first wave: 8, 21, 53, 94. balance.md gives 6, 17, 45, |
| 129 82, which leaves that break out. the game pays the bonus before the first | 127 82, which leaves that break out. the game pays the bonus before the first |
| 130 wave too. to decide | 128 wave too. to decide |
| 131 | 129 |
| 132 config: | 130 config: |
| 133 | 131 |
| 134 - per map: [map.N] holds starting_coins, early_bonus, wave_count and | 132 - per map: [map.N] holds starting_coins, early_bonus, wave_count, the |
| 135 monster_share, followed by the [[map.N.wave]] lists | 133 draft numbers monster_share, wave_size and first_wave, followed by the |
| 134 [[map.N.wave]] lists | |
| 136 - added: hit_radius in [animation] (0.4 of the monster sprite's smaller | 135 - added: hit_radius in [animation] (0.4 of the monster sprite's smaller |
| 137 side), min_weight in [route_preference] (the "at least 0.1" of the rule), | 136 side), min_weight in [route_preference] (the "at least 0.1" of the rule), |
| 138 [art.angle] and [art.pivot]. the turning towers turn around the middle of | 137 [art.angle] and [art.pivot]. the turning towers turn around the middle of |
| 139 their body, not the middle of the image. t1: the centre of the box | 138 their body, not the middle of the image. t1: the centre of the box |
| 140 measured on the cutouts. t2: the middle of the round body, found as the | 139 measured on the cutouts. t2: the middle of the round body, found as the |
| 165 and the tallest fit 92 % of the window width and 90 % of its height, at | 164 and the tallest fit 92 % of the window width and 90 % of its height, at |
| 166 most 1. the separate button image is drawn over the button in the | 165 most 1. the separate button image is drawn over the button in the |
| 167 drawing; [art.screen] in game.toml holds where, measured by matching the | 166 drawing; [art.screen] in game.toml holds where, measured by matching the |
| 168 images. its tap area is the button image. it pulses by 4 % over 1.2 s; | 167 images. its tap area is the button image. it pulses by 4 % over 1.2 s; |
| 169 under the mouse it is 8 % larger with a shadow | 168 under the mouse it is 8 % larger with a shadow |
| 170 - a break starts when all monsters of the wave are gone, killed or escaped, | 169 - a break starts when the last monster of the wave has spawned, not when |
| 171 not when the last one has spawned. during a break the wave counter shows | 170 all of them are gone. monsters of the wave may still be on the map during |
| 172 the next wave | 171 the break. during a break the wave counter shows the next wave |
| 173 - monsters move at constant speed; the hop is drawn only. a hop spends 80 % | 172 - monsters move at constant speed; the hop is drawn only. a hop spends 80 % |
| 174 of its time in the air and 20 % landing. the idle bob is a slow breathing | 173 of its time in the air and 20 % landing. the idle bob is a slow breathing |
| 175 (1.3 s) on top of the hops, as monsters never stand still | 174 (1.3 s) on top of the hops, as monsters never stand still |
| 176 - route choice weighs all routes of the map. on map2 this also picks the | 175 - route choice weighs all routes of the map. on map2 this also picks the |
| 177 entrance | 176 entrance |
| 216 afford are dimmed and do nothing | 215 afford are dimmed and do nothing |
| 217 - the preview is drawn at 45 % to 80 % opacity and 100 % to 108 % size. it | 216 - the preview is drawn at 45 % to 80 % opacity and 100 % to 108 % size. it |
| 218 grows while the chosen shop item shows shop_bubble_dark and shrinks while | 217 grows while the chosen shop item shows shop_bubble_dark and shrinks while |
| 219 it shows shop_bubble_dark2. the range circle does not pulse | 218 it shows shop_bubble_dark2. the range circle does not pulse |
| 220 - flying coins: one sprite per coin, at most 8, started 0.05 s apart, flying | 219 - flying coins: one sprite per coin, at most 8, started 0.05 s apart, flying |
| 221 in game time on an arc. they are dropped when the map ends | 220 in game time on an arc. they are dropped when the map ends. early start |
| 221 bonus coins start at the exits, taking turns on a map with several, within | |
| 222 the exit's radius | |
| 222 - top bar: coin_icon, heart and monster_icon with their counters. each | 223 - top bar: coin_icon, heart and monster_icon with their counters. each |
| 223 counter keeps the width of a usual largest value (3, 2 and 5 | 224 counter keeps the width of a usual largest value (3, 2 and 5 |
| 224 characters), so the next one does not move. pause shows pause_button | 225 characters), so the next one does not move. when the counters at those |
| 226 widths and the buttons, early start included, do not fit side by side | |
| 227 (below about 750 css pixels), the buttons get a second row under the | |
| 228 counters, right-aligned as before. pause shows pause_button | |
| 225 while the game runs and play_button while it is paused. speed shows the | 229 while the game runs and play_button while it is paused. speed shows the |
| 226 drawing of the current speed; debug speeds show their number. the early | 230 drawing of the current speed; debug speeds show their number. the early |
| 227 start button shows the countdown on next_wave, without the bonus. the top | 231 start button shows the countdown on next_wave, without the bonus. the top |
| 228 bar needs about 670 css pixels of width; narrower screens are not handled | 232 bar needs about 670 css pixels of width; narrower screens are not handled |
| 229 - numbers: the digit variant of each place depends on the digit and its | 233 - numbers: the digit variant of each place depends on the digit and its |
