wobblyhead hg > minor_monsters
comparison doc/roadmap.md @ 9:53f015966118
map, path, tower placement adjustments
| author | ark |
|---|---|
| date | 2026-10-19 15:55 +0200 |
| parents | 2c4fed8baed9 |
| children | a77857594150 |
comparison
equal
deleted
inserted
replaced
| 8:2c4fed8baed9 | 9:53f015966118 |
|---|---|
| 54 build: | 54 build: |
| 55 | 55 |
| 56 - 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 |
| 57 takes about 5 s, most of it in the mask step | 57 takes about 5 s, most of it in the mask step |
| 58 - a step is skipped when its outputs are newer than its inputs and the build | 58 - a step is skipped when its outputs are newer than its inputs and the build |
| 59 scripts. the mask step also reruns when the placement settings in | 59 scripts. the mask step also reruns when the placement settings or the |
| 60 game.toml change; it keeps its result in temp/build/maps.json for the | 60 per map road and spawn settings in game.toml change; it keeps its result in temp/build/maps.json for the |
| 61 checks and previews | 61 checks and previews |
| 62 - map images are written as jpeg, quality 88. the maps have no transparency | 62 - map images are written as jpeg, quality 88. the maps have no transparency |
| 63 - tower strips are split at columns without ink. ink is anything darker | 63 - tower strips are split at columns without ink. ink is anything darker |
| 64 than luminance 225. outline gaps of up to about 4 pixels are closed before | 64 than luminance 225. outline gaps of up to about 4 pixels are closed before |
| 65 the fill. the white paper edge outside the outline fades to transparent | 65 the fill. the white paper edge outside the outline fades to transparent |
| 82 (hpm_empty, hpb_empty). the blue bars for slowed monsters have the hue of | 82 (hpm_empty, hpb_empty). the blue bars for slowed monsters have the hue of |
| 83 every pixel set to 220 degrees, which leaves the black outline as it is | 83 every pixel set to 220 degrees, which leaves the black outline as it is |
| 84 (hpm_slow, hpb_slow, each with its _empty copy) | 84 (hpm_slow, hpb_slow, each with its _empty copy) |
| 85 - sprite sizes go into config.js, so the game knows them before the images | 85 - sprite sizes go into config.js, so the game knows them before the images |
| 86 load | 86 load |
| 87 - mask pixels count when at least half opaque, and take the class of their | 87 - mask pixels are classified by exact colour. any pixel that is not fully |
| 88 strongest colour. entrance or exit areas under 50 pixels are ignored | 88 transparent and not one of the three colours stops the build |
| 89 - the placement test draws discs around the path edge instead of keeping a | 89 - the placement test draws discs instead of keeping a distance for every |
| 90 distance for every pixel. the result is the same. edge_distance applies to | 90 pixel. the result is the same. the road is a disc of footprint radius plus |
| 91 the tower centre | 91 road half width around each centre line pixel; centre line pixels inside |
| 92 the entrance and exit areas do not count. each spawn point gets a disc of | |
| 93 footprint radius plus spawn_distance, each exit point one of footprint | |
| 94 radius plus exit_distance. edge_distance applies to the tower centre | |
| 95 - the spawn point is the first centre line pixel outside the entrance area, | |
| 96 walking from the route start. the exit point is found the same way from | |
| 97 the route end | |
| 92 - the centre line runs through the entrance and exit areas, so routes start | 98 - the centre line runs through the entrance and exit areas, so routes start |
| 93 and end inside them. dead ends shorter than 0.8 path widths are dropped. | 99 and end inside them. dead ends shorter than 0.8 line widths are dropped. |
| 94 junctions closer together than 0.75 path widths count as one | 100 junctions closer together than 0.75 line widths count as one. the line |
| 101 width is the red area divided by the centre line length, about 11 pixels | |
| 95 - map2 has three loops (the round one at the top left, two squares at the | 102 - map2 has three loops (the round one at the top left, two squares at the |
| 96 bottom). each leaves the path at a junction and comes back to the same | 103 bottom). each leaves the path at a junction and comes back to the same |
| 97 junction, so the rule "no junction twice" would never walk them. a route | 104 junction, so the rule "no junction twice" would never walk them. a route |
| 98 may walk such a loop once. of its two directions, the one that turns less | 105 may walk such a loop once. of its two directions, the one that turns less |
| 99 is kept. map2 gives 8 routes, all kept; map1 gives 3 | 106 is kept. map2 gives 6 routes, all kept; map1 gives 3 |
| 100 - route smoothing: moving average over 17 points, applied twice, then | 107 - route smoothing: moving average over 17 points, applied twice, then |
| 101 simplified to 0.8 pixel tolerance | 108 simplified to 0.8 pixel tolerance |
| 102 - straightness for the route value is the least turning of the map's routes | 109 - straightness for the route value is the least turning of the map's routes |
| 103 divided by the route's turning. turning is the total, not per length | 110 divided by the route's turning. turning is the total, not per length |
| 104 - routes.toml names routes by their number in the build output. the numbers | 111 - routes.toml names routes by their number in the build output. the numbers |
| 105 change when a mask changes | 112 change when a mask changes |
| 106 - measured path widths are lower than in balance.md (map1 38, map2 38, map3 | 113 - the road half widths are the median distance from the centre line to the |
| 107 46) because the centre line length includes the entrance and exit areas. | 114 edge of the earlier masks, which covered the whole road. map0's route is |
| 108 map0's route is 2020 long | 115 2068 long |
| 109 - the coin check compares all coins dropped, boss included, with 10 x | 116 - the coin check compares all coins dropped, boss included, with 10 x |
| 110 starting coins | 117 starting coins |
| 111 - the build prints the early start bonus for skipping every break, including | 118 - the build prints the early start bonus for skipping every break, including |
| 112 the one before the first wave: 8, 21, 53, 94. balance.md gives 6, 17, 45, | 119 the one before the first wave: 8, 21, 53, 94. balance.md gives 6, 17, 45, |
| 113 82, which leaves that break out. the game pays the bonus before the first | 120 82, which leaves that break out. the game pays the bonus before the first |
