wobblyhead hg > minor_monsters
changeset 21:fa04481563b7
doc update
| author | ark |
|---|---|
| date | 2026-10-20 00:44 +0200 |
| parents | 4348b83d3e6b |
| children | ad1b478fc4dc |
| files | config/game.toml doc/architecture.md doc/art.md doc/roadmap.md |
| diffstat | 4 files changed, 22 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/config/game.toml Tue Oct 20 00:41:30 2026 +0200 +++ b/config/game.toml Tue Oct 20 00:44:02 2026 +0200 @@ -212,7 +212,8 @@ # sprite drawing direction (art.md): angle the drawing points to as drawn, -# 0 right, -90 up. sprites not listed do not turn. +# 0 right, -90 up. sprites not listed do not turn. set by hand, the towers +# checked in temp/preview/towers.png. [art.angle] t1 = -2 t1_2 = -3 @@ -238,7 +239,7 @@ # temp/preview/towers.png. t1: the centre of the base square measured on # source_sheet_2 cutouts. t2: the middle of the rows at least 60 % as wide as # the widest row, which leaves out the barrel. t3: the centroid of the shape -# with parts narrower than 41 pixels removed, an estimate to adjust by hand. +# with parts narrower than 41 pixels removed, an estimate adjusted by hand. [art.pivot] t1 = [0.37, 0.5] t1_2 = [0.30, 0.5]
--- a/doc/architecture.md Tue Oct 20 00:41:30 2026 +0200 +++ b/doc/architecture.md Tue Oct 20 00:44:02 2026 +0200 @@ -125,7 +125,9 @@ 7. checks: print a summary per map (routes with length and turning, monster counts, coins and hp per map against the target) and warn on problems 8. previews: draw each map with its routes, entrances, exits and placement - grid into temp/preview/, for checking without starting the game + grid into temp/preview/, for checking without starting the game. towers.png + shows the tower levels, each turned by its drawing direction to face up, + with its pivot and footprint 9. game files: copy the files in game/ to www/. a file is copied when its time or size differs from the copy. files no longer in game/ are removed from www/, apart from www/assets/ and www/data/
--- a/doc/art.md Tue Oct 20 00:41:30 2026 +0200 +++ b/doc/art.md Tue Oct 20 00:44:02 2026 +0200 @@ -110,18 +110,27 @@ records which way it points as drawn, so the game can correct for it. angles as on screen: 0 is right, -90 is up. +the drawings are not consistent, even between levels of the same tower. the +angle of each sprite is set by hand in [art.angle] in config/game.toml. the +build draws temp/preview/towers.png with every turning tower turned to face +up, so a wrong angle shows as a barrel off the vertical guide line. the table +gives the rough direction; config/game.toml has the exact values. + | sprite | points to | angle | |---------------|-----------|-------| | t0, all levels | does not turn | - | -| t1, all levels | right | 0 | -| t2, all levels | up | -90 | -| t3 levels 1-4 | up-right | -45 | -| t3 level 5 | up | -90 | +| t1, all levels | right | -6 to 0 | +| t2, all levels | up | -95 to -89 | +| t3 levels 1-2 | up-right | -48 to -43 | +| t3 levels 3-4 | right, a little up | -15 | +| t3 level 5 | up | -88 | | p0 | up | -90 | -| p1 | any (square) | - | +| p1 | right (nearly square, a little lopsided) | 0 | | p2 | any (round) | - | | p3 | up-right | -45 | +the tower sheet does not show the projectiles. + the whole tower sprite turns, base included; the drawings do not separate a base from a turret. rotation is around the centre of the trimmed image unless the config sets another point.
--- a/doc/roadmap.md Tue Oct 20 00:41:30 2026 +0200 +++ b/doc/roadmap.md Tue Oct 20 00:44:02 2026 +0200 @@ -138,7 +138,8 @@ measured on the cutouts. t2: the middle of the round body, found as the rows at least 60 % as wide as the widest row. t3: an estimate, the centroid of the shape once the barrel and star tips are removed, to adjust - by hand. temp/preview/towers.png marks them + by hand. temp/preview/towers.png marks them. the angles are set by hand on + the same sheet, which shows every turning tower turned to face up - draft waves: monster counts per level from the coin shares. each level is spread over the waves by the coin budget still open, with wave n worth n shares. higher levels start later: m1 after 15 % of the waves, m2 35 %, m3
