comparison doc/art.md @ 21:fa04481563b7

doc update
author ark
date 2026-10-20 00:44 +0200
parents fe680946164b
children 3f2811aebb3d
comparison
equal deleted inserted replaced
20:4348b83d3e6b 21:fa04481563b7
108 108
109 turning towers and projectiles are rotated to face their target. each sprite 109 turning towers and projectiles are rotated to face their target. each sprite
110 records which way it points as drawn, so the game can correct for it. angles 110 records which way it points as drawn, so the game can correct for it. angles
111 as on screen: 0 is right, -90 is up. 111 as on screen: 0 is right, -90 is up.
112 112
113 the drawings are not consistent, even between levels of the same tower. the
114 angle of each sprite is set by hand in [art.angle] in config/game.toml. the
115 build draws temp/preview/towers.png with every turning tower turned to face
116 up, so a wrong angle shows as a barrel off the vertical guide line. the table
117 gives the rough direction; config/game.toml has the exact values.
118
113 | sprite | points to | angle | 119 | sprite | points to | angle |
114 |---------------|-----------|-------| 120 |---------------|-----------|-------|
115 | t0, all levels | does not turn | - | 121 | t0, all levels | does not turn | - |
116 | t1, all levels | right | 0 | 122 | t1, all levels | right | -6 to 0 |
117 | t2, all levels | up | -90 | 123 | t2, all levels | up | -95 to -89 |
118 | t3 levels 1-4 | up-right | -45 | 124 | t3 levels 1-2 | up-right | -48 to -43 |
119 | t3 level 5 | up | -90 | 125 | t3 levels 3-4 | right, a little up | -15 |
126 | t3 level 5 | up | -88 |
120 | p0 | up | -90 | 127 | p0 | up | -90 |
121 | p1 | any (square) | - | 128 | p1 | right (nearly square, a little lopsided) | 0 |
122 | p2 | any (round) | - | 129 | p2 | any (round) | - |
123 | p3 | up-right | -45 | 130 | p3 | up-right | -45 |
131
132 the tower sheet does not show the projectiles.
124 133
125 the whole tower sprite turns, base included; the drawings do not separate a 134 the whole tower sprite turns, base included; the drawings do not separate a
126 base from a turret. rotation is around the centre of the trimmed image unless 135 base from a turret. rotation is around the centre of the trimmed image unless
127 the config sets another point. 136 the config sets another point.
128 137