wobblyhead hg > minor_monsters
comparison doc/art.md @ 36:a464bd43b76c 1.0.0
clean documentation rewrite
| author | ark |
|---|---|
| date | 2026-10-21 22:34 +0200 |
| parents | 85d23328a215 |
| children |
comparison
equal
deleted
inserted
replaced
| 35:0d40f346059c | 36:a464bd43b76c |
|---|---|
| 1 art assets | 1 Art and sound |
| 2 ---------- | 2 ------------- |
| 3 | 3 |
| 4 b0-b3: boss monsters for each map level | 4 All drawings and voice recordings come from the artist. Files in art/ |
| 5 c0-c3: coin variants | 5 stay as supplied, apart from the files the cutting scripts write there. |
| 6 hpb: hp bar for bosses | 6 The build writes processed copies to www/ (architecture.md). Drawing tips |
| 7 hpm: hp bar for monsters | 7 for new items: dark outline, white or coloured inside, on white paper with |
| 8 m0-m4: monster progression | 8 space around each item. |
| 9 map0-map3: map level art. maps are to be scaled approx 400% | |
| 10 map*mask: map level definitions, blue: monster entrance, red: path centre line, green: exit | |
| 11 p0-p3: projectiles for defense towers | |
| 12 t0-t3: defense towers | |
| 13 t*p: defense towers upgrade progression | |
| 14 art_sources/: the scans the drawings were cut from | |
| 15 art_sources/source_sheet.jpg: the original drawing sheet with all sprites, maps, damage | |
| 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) | |
| 18 art_sources/source_sheet_2.jpg: the same sheet with the sprite outlines inked in black, and | |
| 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 | |
| 28 game_won.png: game won screen, cut from art_sources/game_won.jpg | |
| 29 game_won_button.png: restart button from game_won, cut from the same scan | |
| 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 | |
| 34 digits.png: sheet with all digits and a slash, in multiple variants. | |
| 35 tools/cut_digits.py cuts it into art/digits/ | |
| 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 | |
| 42 shop_bubble_dark.png, shop_bubble_dark2.png: selected tower shop item bubble in | |
| 43 2 variants | |
| 44 heart.png: heart counter icon | |
| 45 coin_icon.png: coin counter icon | |
| 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 | |
| 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 | 9 |
| 58 | 10 |
| 11 Scans | |
| 12 ----- | |
| 59 | 13 |
| 60 files in art/ stay as supplied, apart from the sprites cut from a sheet and | 14 The directory art/art_sources/ holds the scans the drawings were cut from. |
| 61 the sounds cut from the recordings. the build (see architecture.md) writes | |
| 62 processed copies to www/assets/. | |
| 63 | 15 |
| 64 attn: the source_sheet_* files have the towers t0 and t1 swapped. | 16 - source_sheet.jpg: the original sheet with all sprites, maps, and the |
| 17 first numbers for damage, coins and starting coins (history.md). Map | |
| 18 numbers on the sheet start at 1: M1 to M4 are map0 to map3 | |
| 19 - source_sheet_2.jpg: the same sheet with the sprite outlines inked in | |
| 20 black, and monster hit points and tower costs added. The script | |
| 21 tools/cut_sheet.py cuts the sprites from it | |
| 22 - game_won.jpg, help_info.jpg, icons.jpg, icons_and_numbers.jpg, | |
| 23 more_buttons.jpg, splash.jpg, upgrade_popup.jpg: scans of the screens, | |
| 24 icons and buttons | |
| 65 | 25 |
| 66 sound source files in art/sound_sources, all phone voice recordings, named | 26 On both sheets the towers t0 and t1 are swapped: the tower row runs t1, |
| 67 after their sound event (sound.md). tools/cut_sounds.py cuts them into | 27 t0, t2, t3, and the projectile row p1, p0, p2, p3. |
| 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 | |
| 81 intro: splash screen music, starts with a burp that the script cuts off | |
| 82 | 28 |
| 83 state of the files | |
| 84 ------------------ | |
| 85 | 29 |
| 86 - t0-t3, m0-m4, b0-b3, p0-p3, hpm, hpb: cut from source_sheet_2.jpg at the | 30 Sprites |
| 87 sheet's scale. black outlines, transparent outside. inside, the paper is | 31 ------- |
| 88 white and drawn colour is kept (bosses, hp bars) | 32 |
| 89 - c0-c3: cut out by hand from the first sheet, transparent outside | 33 | File | What | Source | |
| 90 - towers have 5 levels. t0-t3 are level 1 | 34 |------------|----------------------------------------|--------| |
| 91 - t*p: outlines of tower levels 2-5 side by side, cut from the same sheet as | 35 | m0-m4 | Regular monsters | cut_sheet.py | |
| 92 level 1, so the sizes follow on. the build splits them and fills any | 36 | b0-b3 | Bosses, one per map | cut_sheet.py | |
| 93 inside left transparent white | 37 | t0-t3 | Towers, level 1 | cut_sheet.py | |
| 94 - on the sheet, the tower row runs t1, t0, t2, t3 and the projectile row | 38 | t0p-t3p | Towers, levels 2 to 5 side by side | cut_sheet.py | |
| 95 p1, p0, p2, p3 | 39 | p0-p3 | Projectiles of t0 to t3 | cut_sheet.py | |
| 96 - t3 level 5 is a different design from levels 1-4 (square with a barrel | 40 | hpm, hpb | HP bars of monsters and bosses | cut_sheet.py | |
| 97 instead of a triangle) | 41 | c0-c3 | Coins | Cut by hand from the first sheet | |
| 98 - maps: scans with paper edges. map and mask of the same number line up pixel | 42 | freeze | t2 freeze splash, drawn where p2 lands | Supplied | |
| 99 for pixel | 43 | monster_death, boss_death | Death puffs | Supplied | |
| 100 - masks: hard edges, no anti-aliasing. every pixel is fully transparent or | 44 |
| 101 opaque pure red, blue or green; the build stops on any other pixel. red | 45 - Sprites cut by cut_sheet.py keep the sheet's scale: black outlines, |
| 102 marks the centre line the monsters walk, about 11 pixels wide, not the | 46 transparent outside, white paper inside, drawn colour kept (bosses, HP |
| 103 whole road. map1 has branches, map2 has two entrances and loops | 47 bars) |
| 104 - icons, buttons and screens: transparent outside, apart from splash.png, | 48 - The t*p strips are cut from the same sheet as level 1, so the sizes |
| 105 which is opaque with white paper. the separate screen buttons are exact | 49 follow on. The build splits them and fills any inside left transparent |
| 106 crops of the buttons in their screen drawings | 50 with white |
| 107 - art/digits/: every drawing on digits.png is one variant, named after the | 51 - Level 5 of t3 is a different design from levels 1 to 4: a square with a |
| 108 character and a number (0_1, 0_2, ..., slash_1). all are scaled to the same | 52 barrel, not a triangle |
| 109 height, the median of the drawings, and the paper is transparent. the | 53 - Monsters and bosses face the viewer and are never rotated or mirrored |
| 54 | |
| 55 | |
| 56 Maps and masks | |
| 57 -------------- | |
| 58 | |
| 59 The files map0 to map3 are the map scans, with paper edges. Each map*mask | |
| 60 is the mask of the same map and lines up with it pixel for pixel. | |
| 61 | |
| 62 Masks have hard edges. Every pixel is fully transparent or opaque pure | |
| 63 red, blue or green; the build stops on any other pixel. | |
| 64 | |
| 65 - Red: the centre line the monsters walk, about 11 pixels wide, not the | |
| 66 whole road. The road's half width is set per map in the config | |
| 67 - Blue: monster entrances | |
| 68 - Green: exits | |
| 69 | |
| 70 Where the route extraction gets a map wrong, the mask is redrawn. | |
| 71 | |
| 72 | |
| 73 Screens, buttons and icons | |
| 74 -------------------------- | |
| 75 | |
| 76 | File | Use | | |
| 77 |--------------------------|-----| | |
| 78 | splash | Splash screen with title, byline and play button; opaque with white paper | | |
| 79 | splash_play | Play button of the splash screen | | |
| 80 | wobbly_logo | Logo left of the play button, opens the game's web page | | |
| 81 | help_splash | Question mark right of the play button, opens the help popup | | |
| 82 | help_info | Help popup | | |
| 83 | map_won, map_won_button | Map won screen and its next button | | |
| 84 | game_lost, game_lost_button | Game lost screen and its button | | |
| 85 | game_won, game_won_button | Game won screen and its restart button, cut from game_won.jpg | | |
| 86 | coin_icon, heart, monster_icon | Top bar counters | | |
| 87 | help_button | Help button in the top bar | | |
| 88 | play_button, pause_button | Pause button: pause while running, play while paused | | |
| 89 | speed_x1, speed_x2, speed_x4 | Speed button | | |
| 90 | sound_on, sound_off | Sound button; sound_on also on the splash screen's sound button | | |
| 91 | next_wave | Early start button, the countdown drawn on its right part | | |
| 92 | shop_bubble | Shop item | | |
| 93 | shop_bubble_dark, shop_bubble_dark2 | Chosen shop item, in turn | | |
| 94 | tower_popup | Bubble of the tower menu | | |
| 95 | upgrade_button, sell_button | Buttons in the tower menu | | |
| 96 | digits | Sheet of digits and a slash, several variants each | | |
| 97 | |
| 98 - All are transparent outside, apart from splash | |
| 99 - The separate screen buttons are exact crops of the buttons in their | |
| 100 screen drawings | |
| 101 - The script tools/cut_digits.py cuts digits.png into art/digits/: every | |
| 102 drawing is one variant, named after the character and a number (0_1, | |
| 103 0_2, ..., slash_1), scaled to the median height, paper transparent. The | |
| 110 10, 11 and 12 on the sheet give single digits | 104 10, 11 and 12 on the sheet give single digits |
| 111 | 105 |
| 112 | 106 |
| 113 drawing direction | 107 Drawing direction |
| 114 ----------------- | 108 ----------------- |
| 115 | 109 |
| 116 turning towers and projectiles are rotated to face their target. each sprite | 110 Turning towers and projectiles are rotated to face their target. The |
| 117 records which way it points as drawn, so the game can correct for it. angles | 111 drawings are not consistent, even between levels of the same tower, so |
| 118 as on screen: 0 is right, -90 is up. | 112 each sprite's direction as drawn is set by hand in [art.angle]: 0 is right, |
| 113 -90 is up. Sprites not listed there do not turn: t0, and p2, which is | |
| 114 round. The spike p0 is listed because each t0 spike is turned to point | |
| 115 outwards. | |
| 119 | 116 |
| 120 the drawings are not consistent, even between levels of the same tower. the | 117 The whole tower sprite turns, base included. It turns around the centre of |
| 121 angle of each sprite is set by hand in [art.angle] in config/game.toml. the | 118 the trimmed image, or around the point set in [art.pivot]; the turning |
| 122 build draws temp/preview/towers.png with every turning tower turned to face | 119 towers turn around the middle of their body. |
| 123 up, so a wrong angle shows as a barrel off the vertical guide line. the table | |
| 124 gives the rough direction; config/game.toml has the exact values. | |
| 125 | 120 |
| 126 | sprite | points to | angle | | 121 The preview temp/preview/towers.png, written by the build, shows every |
| 127 |---------------|-----------|-------| | 122 turning tower turned to face up, with its pivot. A wrong angle shows as a |
| 128 | t0, all levels | does not turn | - | | 123 barrel off the vertical guide line. |
| 129 | t1, all levels | right | -6 to 0 | | |
| 130 | t2, all levels | up | -95 to -89 | | |
| 131 | t3 levels 1-2 | up-right | -48 to -43 | | |
| 132 | t3 levels 3-4 | right, a little up | -15 | | |
| 133 | t3 level 5 | up | -88 | | |
| 134 | p0 | up | -90 | | |
| 135 | p1 | right (nearly square, a little lopsided) | 0 | | |
| 136 | p2 | any (round) | - | | |
| 137 | p3 | up-right | -45 | | |
| 138 | |
| 139 the tower sheet does not show the projectiles. | |
| 140 | |
| 141 the whole tower sprite turns, base included; the drawings do not separate a | |
| 142 base from a turret. rotation is around the centre of the trimmed image unless | |
| 143 the config sets another point. | |
| 144 | |
| 145 monsters and bosses face the viewer and are not rotated or mirrored. | |
| 146 | 124 |
| 147 | 125 |
| 148 hp bars | 126 HP bars |
| 149 ------- | 127 ------- |
| 150 | 128 |
| 151 the bar is drawn cut to the share of hp left. the empty part is drawn as a | 129 The bar is drawn cut to the share of hit points left, over a darkened copy |
| 152 darkened copy of the bar (suggestion). hpm sits above every monster, hpb above | 130 for the empty part. The bar hpm sits above every monster, hpb above the |
| 153 the boss. | 131 boss. While t2 slows a monster its bar is blue: the build makes blue |
| 154 | 132 copies of both bars by changing the colour of the green inside; the |
| 155 while t2 slows a monster, its bar is drawn in blue. the build makes the blue | 133 outline stays as drawn. |
| 156 bars from hpm and hpb by changing the colour of the green inside to blue; the | |
| 157 outline stays as drawn. the empty part of a blue bar is a darkened copy of the | |
| 158 blue bar. | |
| 159 | 134 |
| 160 | 135 |
| 161 art still needed | 136 Sound |
| 162 ---------------- | 137 ----- |
| 163 | 138 |
| 164 every icon and screen in the list above is in the game. not drawn yet: | 139 The voice recordings in art/sound_sources/ were made on a phone and are |
| 140 named after their event. The script tools/cut_sounds.py turns them into | |
| 141 game sounds in art/sounds/; a recording with variants is split into | |
| 142 NAME_1, NAME_2 and so on, and the game picks one at random. The output is | |
| 143 mono MP3, which desktop and mobile browsers play. The intro recording | |
| 144 loses its first 3 s, which hold a burp, and gets a short pause at its end | |
| 145 for the loop. | |
| 165 | 146 |
| 166 - cancel or close. the game has no such button so far; a second tap on the | 147 The event name is the name of its recordings and its entry in |
| 167 chosen shop item cancels it | 148 [sound.event], which sets its volume, an optional minimum time between two |
| 168 - plus sign. the early start button no longer shows the bonus, so it is not | 149 plays, and the placeholder beep. Events without a recording play the beep. |
| 169 needed for now | |
| 170 | 150 |
| 171 optional: | 151 | Event | Name | Sound | |
| 152 |----------------------|-------------------|-------| | |
| 153 | t0 attack | t0_attack | Recorded, 4 variants | | |
| 154 | t1 shot | t1_shot | Recorded, 6 variants | | |
| 155 | t2 shot | t2_shot | Recorded, 4 variants | | |
| 156 | t3 shot | t3_shot | Recorded, 7 variants | | |
| 157 | Monster enters map | monster_enter | Recorded, 3 variants | | |
| 158 | Monster dies | monster_die | Recorded, 4 variants | | |
| 159 | Monster reaches exit | monster_exit | Recorded | | |
| 160 | Boss enters map | boss_enter | Recorded | | |
| 161 | Boss reaches exit | boss_exit | Recorded | | |
| 162 | Boss dies | boss_die | Recorded | | |
| 163 | Map won | map_won | Recorded | | |
| 164 | Map lost | map_lost | Recorded | | |
| 165 | Splash screen music | intro | Recorded, loops | | |
| 166 | Monster hit | monster_hit | Beep | | |
| 167 | Coins arrive | coins_arrive | Beep | | |
| 168 | Wave starts | wave_start | Beep | | |
| 169 | Early start bonus | early_bonus | Beep | | |
| 170 | Tower built | tower_built | Beep | | |
| 171 | Tower upgraded | tower_upgraded | Beep | | |
| 172 | Tower sold | tower_sold | Beep | | |
| 173 | Placement refused | placement_refused | Beep | | |
| 174 | Button tap | button_tap | Beep | | |
| 172 | 175 |
| 173 - t0 spike burst, if p0 alone does not read well as an attack | 176 The beeps are accepted as they are. |
| 174 - hit puffs | |
| 175 - a mark for a refused placement. the game draws a red cross for now | |
| 176 | |
| 177 drawing tips for these: dark outline, white or coloured inside, on white | |
| 178 paper with space around each item, so the build can cut them out the same way | |
| 179 as the existing sprites. | |
| 180 | 177 |
| 181 | 178 |
| 182 possible addition | 179 Optional art |
| 183 ----------------- | 180 ------------ |
| 184 | 181 |
| 185 if decorated areas of a map, such as the lava pools on map3, should be off | 182 Not needed for the game, possible additions: |
| 186 limits for towers, a fourth mask colour (for example black) could mark them. | 183 |
| 187 not decided. | 184 - A t0 spike burst, if p0 alone does not read well as an attack |
| 185 - Hit puffs | |
| 186 - A mark for a refused placement, in place of the red cross |
