wobblyhead hg > minor_monsters
annotate doc/art.md @ 37:a88effe4831e default tip
Added tag 1.0.0 for changeset a464bd43b76c
| author | ark |
|---|---|
| date | 2026-10-21 22:36 +0200 |
| parents | a464bd43b76c |
| children |
| rev | line source |
|---|---|
| 36 | 1 Art and sound |
| 2 ------------- | |
| 0 | 3 |
| 36 | 4 All drawings and voice recordings come from the artist. Files in art/ |
| 5 stay as supplied, apart from the files the cutting scripts write there. | |
| 6 The build writes processed copies to www/ (architecture.md). Drawing tips | |
| 7 for new items: dark outline, white or coloured inside, on white paper with | |
| 8 space around each item. | |
| 9 | |
| 10 | |
| 11 Scans | |
| 12 ----- | |
| 7 | 13 |
| 36 | 14 The directory art/art_sources/ holds the scans the drawings were cut from. |
| 7 | 15 |
| 36 | 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 | |
| 25 | |
| 26 On both sheets the towers t0 and t1 are swapped: the tower row runs t1, | |
| 27 t0, t2, t3, and the projectile row p1, p0, p2, p3. | |
| 7 | 28 |
| 29 | |
| 36 | 30 Sprites |
| 31 ------- | |
| 0 | 32 |
| 36 | 33 | File | What | Source | |
| 34 |------------|----------------------------------------|--------| | |
| 35 | m0-m4 | Regular monsters | cut_sheet.py | | |
| 36 | b0-b3 | Bosses, one per map | cut_sheet.py | | |
| 37 | t0-t3 | Towers, level 1 | cut_sheet.py | | |
| 38 | t0p-t3p | Towers, levels 2 to 5 side by side | cut_sheet.py | | |
| 39 | p0-p3 | Projectiles of t0 to t3 | cut_sheet.py | | |
| 40 | hpm, hpb | HP bars of monsters and bosses | cut_sheet.py | | |
| 41 | c0-c3 | Coins | Cut by hand from the first sheet | | |
| 42 | freeze | t2 freeze splash, drawn where p2 lands | Supplied | | |
| 43 | monster_death, boss_death | Death puffs | Supplied | | |
| 3 | 44 |
| 36 | 45 - Sprites cut by cut_sheet.py keep the sheet's scale: black outlines, |
| 46 transparent outside, white paper inside, drawn colour kept (bosses, HP | |
| 47 bars) | |
| 48 - The t*p strips are cut from the same sheet as level 1, so the sizes | |
| 49 follow on. The build splits them and fills any inside left transparent | |
| 50 with white | |
| 51 - Level 5 of t3 is a different design from levels 1 to 4: a square with a | |
| 52 barrel, not a triangle | |
| 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. | |
| 0 | 64 |
| 36 | 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 -------------------------- | |
| 0 | 75 |
| 36 | 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 | |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
7
diff
changeset
|
104 10, 11 and 12 on the sheet give single digits |
| 0 | 105 |
| 106 | |
| 36 | 107 Drawing direction |
| 0 | 108 ----------------- |
| 109 | |
| 36 | 110 Turning towers and projectiles are rotated to face their target. The |
| 111 drawings are not consistent, even between levels of the same tower, so | |
| 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. | |
| 21 | 116 |
| 36 | 117 The whole tower sprite turns, base included. It turns around the centre of |
| 118 the trimmed image, or around the point set in [art.pivot]; the turning | |
| 119 towers turn around the middle of their body. | |
| 0 | 120 |
| 36 | 121 The preview temp/preview/towers.png, written by the build, shows every |
| 122 turning tower turned to face up, with its pivot. A wrong angle shows as a | |
| 123 barrel off the vertical guide line. | |
| 0 | 124 |
| 125 | |
| 36 | 126 HP bars |
| 0 | 127 ------- |
| 128 | |
| 36 | 129 The bar is drawn cut to the share of hit points left, over a darkened copy |
| 130 for the empty part. The bar hpm sits above every monster, hpb above the | |
| 131 boss. While t2 slows a monster its bar is blue: the build makes blue | |
| 132 copies of both bars by changing the colour of the green inside; the | |
| 133 outline stays as drawn. | |
| 6 | 134 |
| 0 | 135 |
| 36 | 136 Sound |
| 137 ----- | |
| 0 | 138 |
| 36 | 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. | |
| 146 | |
| 147 The event name is the name of its recordings and its entry in | |
| 148 [sound.event], which sets its volume, an optional minimum time between two | |
| 149 plays, and the placeholder beep. Events without a recording play the beep. | |
| 0 | 150 |
| 36 | 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 | | |
| 0 | 175 |
| 36 | 176 The beeps are accepted as they are. |
| 0 | 177 |
| 178 | |
| 36 | 179 Optional art |
| 180 ------------ | |
| 0 | 181 |
| 36 | 182 Not needed for the game, possible additions: |
| 183 | |
| 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 |
