wobblyhead hg > minor_monsters
annotate doc/art.md @ 19:3a831478eda4
adjusted tower pivot and angle definitions to better match scribbled assets
| author | ark |
|---|---|
| date | 2026-10-20 00:36 +0200 |
| parents | fe680946164b |
| children | fa04481563b7 |
| rev | line source |
|---|---|
| 0 | 1 art assets |
| 2 ---------- | |
| 3 | |
| 4 b0-b3: boss monsters for each map level | |
| 5 c0-c3: coin variants | |
| 6 hpb: hp bar for bosses | |
| 7 hpm: hp bar for monsters | |
| 8 m0-m4: monster progression | |
| 9 map0-map3: map level art. maps are to be scaled approx 400% | |
| 9 | 10 map*mask: map level definitions, blue: monster entrance, red: path centre line, green: exit |
| 0 | 11 p0-p3: projectiles for defense towers |
| 12 t0-t3: defense towers | |
| 13 t*p: defense towers upgrade progression | |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
14 art_sources/: the scans the drawings were cut from |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
15 art_sources/source_sheet.jpg: the original drawing sheet with all sprites, maps, damage |
| 0 | 16 values, monster and boss coins, and starting coins per map. map numbers on the |
| 17 sheet start at 1 (M1-M4 are map0-map3) | |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
18 art_sources/source_sheet_2.jpg: the same sheet with the sprite outlines inked in black, and |
| 7 | 19 monster hp and tower costs added. m*, b*, t*, t*p, p* and the hp bars are |
| 20 cut from it by tools/cut_sheet.py | |
| 21 | |
| 22 splash.png: splash screen including play button | |
| 23 splash_play.png: play button from splash screen | |
| 24 map_won.png: map won screen | |
| 25 map_won_button.png: arrow button from map won screen | |
| 26 game_lost.png: map/game lost | |
| 27 game_lost_button.png: button from game_lost | |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
28 game_won.png: game won screen, cut from art_sources/game_won.jpg |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
29 game_won_button.png: restart button from game_won, cut from the same scan |
| 7 | 30 sound_on.png, sound_off.png: sound setting |
| 31 speed_x1.png, speed_x2.png, speed_x4.png: speed selection buttons | |
| 32 play_button.png, pause_button.png: play and pause | |
| 33 monster_icon.png: monster/wave count icon | |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
34 digits.png: sheet with all digits and a slash, in multiple variants. |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
35 tools/cut_digits.py cuts it into art/digits/ |
| 7 | 36 monster_death.png: monster death puff |
| 37 boss_death.png: boss death puff | |
| 38 upgrade_button.png, sell_button.png: upgrade and sell buttons | |
| 39 tower_popup.png: bubble for tower upgrade/sell popup | |
| 40 next_wave.png: start next wave early button | |
| 41 shop_bubble.png: tower shop items bubble | |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
42 shop_bubble_dark.png, shop_bubble_dark2.png: selected tower shop item bubble in |
| 7 | 43 2 variants |
| 44 heart.png: heart counter icon | |
| 45 coin_icon.png: coin counter icon | |
| 46 | |
| 47 notes: | |
| 48 - writing numbers should use digit variants. scale digits to same size in | |
| 49 preprocessing. | |
| 50 - start next wave early omit bonus coins count | |
| 51 | |
| 52 | |
| 0 | 53 |
| 4 | 54 files in art/ stay as supplied, apart from the sprites cut from a sheet and |
| 55 the sounds cut from the recordings. the build (see architecture.md) writes | |
| 17 | 56 processed copies to www/assets/. |
| 0 | 57 |
| 3 | 58 attn: the source_sheet_* files have the towers t0 and t1 swapped. |
| 59 | |
| 4 | 60 sound source files in art/sound_sources, all phone voice recordings, named |
| 61 after their sound event (sound.md). tools/cut_sounds.py cuts them into | |
| 62 art/sounds/; a recording with variants gives one sound per variant: | |
| 63 t0_attack: t0 attack, 4 variants | |
| 64 t1_shot: t1 tower shot, 6 variants | |
| 65 t2_shot: t2 tower shot, 4 variants | |
| 66 t3_shot: t3 shot, 7 variants | |
| 67 monster_enter: monster enters map, 3 variants | |
| 68 monster_exit: monster reaches map exit | |
| 69 monster_die: monster death, 4 variants | |
| 70 boss_enter: boss enters map | |
| 71 boss_exit: boss reaches map exit | |
| 72 boss_die: boss death | |
| 73 map_won: level win | |
| 74 map_lost: game lost | |
| 0 | 75 |
| 76 state of the files | |
| 77 ------------------ | |
| 78 | |
| 2 | 79 - t0-t3, m0-m4, b0-b3, p0-p3, hpm, hpb: cut from source_sheet_2.jpg at the |
| 80 sheet's scale. black outlines, transparent outside. inside, the paper is | |
| 81 white and drawn colour is kept (bosses, hp bars) | |
| 82 - c0-c3: cut out by hand from the first sheet, transparent outside | |
| 83 - towers have 5 levels. t0-t3 are level 1 | |
| 84 - t*p: outlines of tower levels 2-5 side by side, cut from the same sheet as | |
| 85 level 1, so the sizes follow on. the build splits them and fills any | |
| 86 inside left transparent white | |
| 87 - on the sheet, the tower row runs t1, t0, t2, t3 and the projectile row | |
| 88 p1, p0, p2, p3 | |
| 0 | 89 - t3 level 5 is a different design from levels 1-4 (square with a barrel |
| 90 instead of a triangle) | |
| 91 - maps: scans with paper edges. map and mask of the same number line up pixel | |
| 92 for pixel | |
| 9 | 93 - masks: hard edges, no anti-aliasing. every pixel is fully transparent or |
| 94 opaque pure red, blue or green; the build stops on any other pixel. red | |
| 95 marks the centre line the monsters walk, about 11 pixels wide, not the | |
| 96 whole road. map1 has branches, map2 has two entrances and loops | |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
97 - icons, buttons and screens: transparent outside, apart from splash.png, |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
98 which is opaque with white paper. the separate screen buttons are exact |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
99 crops of the buttons in their screen drawings |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
100 - art/digits/: every drawing on digits.png is one variant, named after the |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
101 character and a number (0_1, 0_2, ..., slash_1). all are scaled to the same |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
102 height, the median of the drawings, and the paper is transparent. the |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
103 10, 11 and 12 on the sheet give single digits |
| 0 | 104 |
| 105 | |
| 106 drawing direction | |
| 107 ----------------- | |
| 108 | |
| 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 | |
| 111 as on screen: 0 is right, -90 is up. | |
| 112 | |
| 113 | sprite | points to | angle | | |
| 114 |---------------|-----------|-------| | |
| 115 | t0, all levels | does not turn | - | | |
| 116 | t1, all levels | right | 0 | | |
| 117 | t2, all levels | up | -90 | | |
| 118 | t3 levels 1-4 | up-right | -45 | | |
| 119 | t3 level 5 | up | -90 | | |
| 120 | p0 | up | -90 | | |
| 121 | p1 | any (square) | - | | |
| 122 | p2 | any (round) | - | | |
| 123 | p3 | up-right | -45 | | |
| 124 | |
| 125 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 | |
| 127 the config sets another point. | |
| 128 | |
| 129 monsters and bosses face the viewer and are not rotated or mirrored. | |
| 130 | |
| 131 | |
| 132 hp bars | |
| 133 ------- | |
| 134 | |
| 135 the bar is drawn cut to the share of hp left. the empty part is drawn as a | |
| 136 darkened copy of the bar (suggestion). hpm sits above every monster, hpb above | |
| 137 the boss. | |
| 138 | |
| 6 | 139 while t2 slows a monster, its bar is drawn in blue. the build makes the blue |
| 140 bars from hpm and hpb by changing the colour of the green inside to blue; the | |
| 141 outline stays as drawn. the empty part of a blue bar is a darkened copy of the | |
| 142 blue bar. | |
| 143 | |
| 0 | 144 |
| 145 art still needed | |
| 146 ---------------- | |
| 147 | |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
148 every icon and screen in the list above is in the game. not drawn yet: |
| 0 | 149 |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
150 - cancel or close. the game has no such button so far; a second tap on the |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
151 chosen shop item cancels it |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
152 - plus sign. the early start button no longer shows the bonus, so it is not |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
153 needed for now |
| 0 | 154 |
| 155 optional: | |
| 156 | |
| 157 - t0 spike burst, if p0 alone does not read well as an attack | |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
158 - hit puffs |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
159 - a mark for a refused placement. the game draws a red cross for now |
| 0 | 160 |
| 161 drawing tips for these: dark outline, white or coloured inside, on white | |
| 162 paper with space around each item, so the build can cut them out the same way | |
| 163 as the existing sprites. | |
| 164 | |
| 165 | |
| 166 possible addition | |
| 167 ----------------- | |
| 168 | |
| 169 if decorated areas of a map, such as the lava pools on map3, should be off | |
| 170 limits for towers, a fourth mask colour (for example black) could mark them. | |
| 171 not decided. |
