wobblyhead hg > minor_monsters
diff doc/roadmap.md @ 9:53f015966118
map, path, tower placement adjustments
| author | ark |
|---|---|
| date | 2026-10-19 15:55 +0200 |
| parents | 2c4fed8baed9 |
| children | a77857594150 |
line wrap: on
line diff
--- a/doc/roadmap.md Mon Oct 19 13:37:52 2026 +0200 +++ b/doc/roadmap.md Mon Oct 19 15:55:37 2026 +0200 @@ -56,8 +56,8 @@ - runs on python 3.11 or later with pillow; numpy is not used. a full build takes about 5 s, most of it in the mask step - a step is skipped when its outputs are newer than its inputs and the build - scripts. the mask step also reruns when the placement settings in - game.toml change; it keeps its result in temp/build/maps.json for the + scripts. the mask step also reruns when the placement settings or the + per map road and spawn settings in game.toml change; it keeps its result in temp/build/maps.json for the checks and previews - map images are written as jpeg, quality 88. the maps have no transparency - tower strips are split at columns without ink. ink is anything darker @@ -84,28 +84,35 @@ (hpm_slow, hpb_slow, each with its _empty copy) - sprite sizes go into config.js, so the game knows them before the images load -- mask pixels count when at least half opaque, and take the class of their - strongest colour. entrance or exit areas under 50 pixels are ignored -- the placement test draws discs around the path edge instead of keeping a - distance for every pixel. the result is the same. edge_distance applies to - the tower centre +- mask pixels are classified by exact colour. any pixel that is not fully + transparent and not one of the three colours stops the build +- the placement test draws discs instead of keeping a distance for every + pixel. the result is the same. the road is a disc of footprint radius plus + road half width around each centre line pixel; centre line pixels inside + the entrance and exit areas do not count. each spawn point gets a disc of + footprint radius plus spawn_distance, each exit point one of footprint + radius plus exit_distance. edge_distance applies to the tower centre +- the spawn point is the first centre line pixel outside the entrance area, + walking from the route start. the exit point is found the same way from + the route end - the centre line runs through the entrance and exit areas, so routes start - and end inside them. dead ends shorter than 0.8 path widths are dropped. - junctions closer together than 0.75 path widths count as one + and end inside them. dead ends shorter than 0.8 line widths are dropped. + junctions closer together than 0.75 line widths count as one. the line + width is the red area divided by the centre line length, about 11 pixels - map2 has three loops (the round one at the top left, two squares at the bottom). each leaves the path at a junction and comes back to the same junction, so the rule "no junction twice" would never walk them. a route may walk such a loop once. of its two directions, the one that turns less - is kept. map2 gives 8 routes, all kept; map1 gives 3 + is kept. map2 gives 6 routes, all kept; map1 gives 3 - route smoothing: moving average over 17 points, applied twice, then simplified to 0.8 pixel tolerance - straightness for the route value is the least turning of the map's routes divided by the route's turning. turning is the total, not per length - routes.toml names routes by their number in the build output. the numbers change when a mask changes -- measured path widths are lower than in balance.md (map1 38, map2 38, map3 - 46) because the centre line length includes the entrance and exit areas. - map0's route is 2020 long +- the road half widths are the median distance from the centre line to the + edge of the earlier masks, which covered the whole road. map0's route is + 2068 long - the coin check compares all coins dropped, boss included, with 10 x starting coins - the build prints the early start bonus for skipping every break, including
