wobblyhead hg > minor_monsters
annotate doc/art.md @ 26:28e1fc486be5
get_version.sh
| author | ark |
|---|---|
| date | 2026-10-20 16:06 +0200 |
| parents | 3f2811aebb3d |
| children | 85d23328a215 |
| 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 | |
| 24 | 46 freeze.png: t2 freeze splash, drawn where p2 lands |
| 47 wobbly_logo.png: logo on the splash screen, left of the play button, links to | |
| 48 a web page | |
| 49 help_splash.png: question mark on the splash screen, right of the play | |
| 50 button, opens the help popup | |
| 51 help_button.png: help button in the top bar, opens the help popup | |
| 7 | 52 |
| 53 notes: | |
| 54 - writing numbers should use digit variants. scale digits to same size in | |
| 55 preprocessing. | |
| 56 - start next wave early omit bonus coins count | |
| 57 | |
| 58 | |
| 0 | 59 |
| 4 | 60 files in art/ stay as supplied, apart from the sprites cut from a sheet and |
| 61 the sounds cut from the recordings. the build (see architecture.md) writes | |
| 17 | 62 processed copies to www/assets/. |
| 0 | 63 |
| 3 | 64 attn: the source_sheet_* files have the towers t0 and t1 swapped. |
| 65 | |
| 4 | 66 sound source files in art/sound_sources, all phone voice recordings, named |
| 67 after their sound event (sound.md). tools/cut_sounds.py cuts them into | |
| 68 art/sounds/; a recording with variants gives one sound per variant: | |
| 69 t0_attack: t0 attack, 4 variants | |
| 70 t1_shot: t1 tower shot, 6 variants | |
| 71 t2_shot: t2 tower shot, 4 variants | |
| 72 t3_shot: t3 shot, 7 variants | |
| 73 monster_enter: monster enters map, 3 variants | |
| 74 monster_exit: monster reaches map exit | |
| 75 monster_die: monster death, 4 variants | |
| 76 boss_enter: boss enters map | |
| 77 boss_exit: boss reaches map exit | |
| 78 boss_die: boss death | |
| 79 map_won: level win | |
| 80 map_lost: game lost | |
| 0 | 81 |
| 82 state of the files | |
| 83 ------------------ | |
| 84 | |
| 2 | 85 - t0-t3, m0-m4, b0-b3, p0-p3, hpm, hpb: cut from source_sheet_2.jpg at the |
| 86 sheet's scale. black outlines, transparent outside. inside, the paper is | |
| 87 white and drawn colour is kept (bosses, hp bars) | |
| 88 - c0-c3: cut out by hand from the first sheet, transparent outside | |
| 89 - towers have 5 levels. t0-t3 are level 1 | |
| 90 - t*p: outlines of tower levels 2-5 side by side, cut from the same sheet as | |
| 91 level 1, so the sizes follow on. the build splits them and fills any | |
| 92 inside left transparent white | |
| 93 - on the sheet, the tower row runs t1, t0, t2, t3 and the projectile row | |
| 94 p1, p0, p2, p3 | |
| 0 | 95 - t3 level 5 is a different design from levels 1-4 (square with a barrel |
| 96 instead of a triangle) | |
| 97 - maps: scans with paper edges. map and mask of the same number line up pixel | |
| 98 for pixel | |
| 9 | 99 - masks: hard edges, no anti-aliasing. every pixel is fully transparent or |
| 100 opaque pure red, blue or green; the build stops on any other pixel. red | |
| 101 marks the centre line the monsters walk, about 11 pixels wide, not the | |
| 102 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
|
103 - 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
|
104 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
|
105 crops of the buttons in their screen drawings |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
106 - 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
|
107 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
|
108 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
|
109 10, 11 and 12 on the sheet give single digits |
| 0 | 110 |
| 111 | |
| 112 drawing direction | |
| 113 ----------------- | |
| 114 | |
| 115 turning towers and projectiles are rotated to face their target. each sprite | |
| 116 records which way it points as drawn, so the game can correct for it. angles | |
| 117 as on screen: 0 is right, -90 is up. | |
| 118 | |
| 21 | 119 the drawings are not consistent, even between levels of the same tower. the |
| 120 angle of each sprite is set by hand in [art.angle] in config/game.toml. the | |
| 121 build draws temp/preview/towers.png with every turning tower turned to face | |
| 122 up, so a wrong angle shows as a barrel off the vertical guide line. the table | |
| 123 gives the rough direction; config/game.toml has the exact values. | |
| 124 | |
| 0 | 125 | sprite | points to | angle | |
| 126 |---------------|-----------|-------| | |
| 127 | t0, all levels | does not turn | - | | |
| 21 | 128 | t1, all levels | right | -6 to 0 | |
| 129 | t2, all levels | up | -95 to -89 | | |
| 130 | t3 levels 1-2 | up-right | -48 to -43 | | |
| 131 | t3 levels 3-4 | right, a little up | -15 | | |
| 132 | t3 level 5 | up | -88 | | |
| 0 | 133 | p0 | up | -90 | |
| 21 | 134 | p1 | right (nearly square, a little lopsided) | 0 | |
| 0 | 135 | p2 | any (round) | - | |
| 136 | p3 | up-right | -45 | | |
| 137 | |
| 21 | 138 the tower sheet does not show the projectiles. |
| 139 | |
| 0 | 140 the whole tower sprite turns, base included; the drawings do not separate a |
| 141 base from a turret. rotation is around the centre of the trimmed image unless | |
| 142 the config sets another point. | |
| 143 | |
| 144 monsters and bosses face the viewer and are not rotated or mirrored. | |
| 145 | |
| 146 | |
| 147 hp bars | |
| 148 ------- | |
| 149 | |
| 150 the bar is drawn cut to the share of hp left. the empty part is drawn as a | |
| 151 darkened copy of the bar (suggestion). hpm sits above every monster, hpb above | |
| 152 the boss. | |
| 153 | |
| 6 | 154 while t2 slows a monster, its bar is drawn in blue. the build makes the blue |
| 155 bars from hpm and hpb by changing the colour of the green inside to blue; the | |
| 156 outline stays as drawn. the empty part of a blue bar is a darkened copy of the | |
| 157 blue bar. | |
| 158 | |
| 0 | 159 |
| 160 art still needed | |
| 161 ---------------- | |
| 162 | |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
163 every icon and screen in the list above is in the game. not drawn yet: |
| 0 | 164 |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
165 - 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
|
166 chosen shop item cancels it |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
167 - 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
|
168 needed for now |
| 0 | 169 |
| 170 optional: | |
| 171 | |
| 172 - 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
|
173 - hit puffs |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
174 - a mark for a refused placement. the game draws a red cross for now |
| 0 | 175 |
| 176 drawing tips for these: dark outline, white or coloured inside, on white | |
| 177 paper with space around each item, so the build can cut them out the same way | |
| 178 as the existing sprites. | |
| 179 | |
| 180 | |
| 181 possible addition | |
| 182 ----------------- | |
| 183 | |
| 184 if decorated areas of a map, such as the lava pools on map3, should be off | |
| 185 limits for towers, a fourth mask colour (for example black) could mark them. | |
| 186 not decided. |
