wobblyhead hg > minor_monsters
annotate doc/game_design.md @ 20:4348b83d3e6b
more art adjustment
| author | ark |
|---|---|
| date | 2026-10-20 00:41 +0200 |
| parents | c1c7e4f54bf6 |
| children | ad1b478fc4dc |
| rev | line source |
|---|---|
| 0 | 1 tower defense game design notes |
| 2 ------------------------------- | |
| 3 | |
| 4 numbers marked as guesses, and all speeds, ranges and timings, are collected in | |
| 5 balance.md. technical details are in architecture.md. | |
| 6 | |
| 7 - working title "minor monsters" | |
| 8 - runs as a plain html/javascript page, on desktop (mouse) and on tablets | |
| 9 (touch) | |
| 10 - the player only manages towers: build, upgrade, sell. everything else, such | |
| 11 as collecting coins, happens on its own | |
| 12 - no text in the game where an icon will do. icons, ui elements and any | |
| 13 remaining text are supplied as scribbles; see art.md for the list | |
| 14 | |
| 15 maps | |
| 16 ---- | |
| 17 | |
| 18 - map levels 0-3: home, mine entrance, mine, lava depths | |
| 19 *mask images define play areas | |
| 20 monster enter from blue entrance, walk to green exit on red path | |
| 21 towers are placed along path | |
| 6 | 22 - maps are played in order. after a won map the only way on is the next map. |
| 23 a lost map sends the player back to the first map. there is no map | |
| 24 selection. to be reviewed after playtesting | |
| 25 - the first map is map0, or the map set by the debug start switch | |
| 26 (architecture.md) | |
| 27 - nothing is stored in the browser for now. a reload starts again at the | |
| 28 splash screen with a fresh game | |
| 0 | 29 - coins do not carry over between maps; each map starts with its own starting |
| 30 coins | |
| 31 - map1 and map2 have branching paths, map2 has two entrances. a monster picks | |
| 32 its route when it spawns: | |
| 33 - faster monsters prefer longer or straighter routes | |
| 34 - slower monsters prefer shortcuts | |
| 35 - otherwise all routes are equally likely | |
| 14 | 36 - bosses take the shortest route |
| 0 | 37 - later maps have shorter paths and many more monsters |
| 38 | |
| 39 towers | |
| 40 ------ | |
| 41 | |
| 42 - towers: | |
| 43 - t0 is close range and projects spikes (p0) from all four sides | |
| 44 damage per tower level: 5,10,15,20 | |
| 45 cost 5 | |
| 46 melee tower: each attack damages every monster in range at once | |
| 47 slower attack than the other towers | |
| 48 spikes are only drawn on the sides that face the path | |
| 49 - t1 is the default generic towers, turns, shoots projectile p1 | |
| 50 damage: 3,7,13,17 | |
| 51 cost 10 | |
| 52 - t2 shoots projectile p2, turns, slows down monsters | |
| 53 slower than t1 | |
| 6 | 54 a slowed monster's hp bar turns blue |
| 0 | 55 damage: 1,3,5,7 |
| 56 cost 20 | |
| 57 - t3 is long range sniper tower, turns, shoots p3 | |
| 58 slower than t2 | |
| 59 damage 1,5,7,10 | |
| 60 cost 25 (first planned as 40, lowered for balance) | |
| 61 - art assets for tower levels still need to be processed, contain upgrades 1-4 | |
| 62 for each tower | |
| 63 - towers have 5 levels: t0-t3 are level 1 (the base), the four drawings in | |
| 64 each t*p strip are levels 2-5 | |
| 65 the original drawing sheet gives five damage values for t0 (5,10,15,20,25) | |
| 66 and t1 (3,7,13,17,23), and four for t2 and t3, as above. level 5 of t2 | |
| 15 | 67 and t3 is guessed in balance.md. the game fills in the levels between |
| 68 level 1 and level 5 in equal steps, so some values differ from the sheet | |
| 0 | 69 - t3 is meant to be weaker than the other towers; its range lets it reach |
| 70 more targets | |
| 71 - towers are placed next to the path, never on it. a tap or click snaps to the | |
| 72 nearest legal position, so the player does not have to hit an exact spot | |
| 11 | 73 - placing: pick a tower in the shop, press on the map and drag. a preview |
| 74 with its range follows, snapped to the nearest legal position, and stays | |
| 75 where the pointer is let go. tapping the preview builds the tower. | |
| 76 dragging the preview, or pressing elsewhere and dragging, moves it again. | |
| 77 changed after user testing, where players wanted to drag the preview | |
| 78 - the preview pulses in time with the chosen shop item. some testers took | |
| 79 the preview for a built tower | |
| 0 | 80 - tapping a built tower shows its range and the upgrade and sell buttons |
| 15 | 81 - each level has its own cost: building is level 1, an upgrade costs the |
| 82 price of the new level. the costs started as tower base cost * tower | |
| 83 level, so the first upgrade (to level 2) cost twice the base cost. | |
| 84 balance.md has the current values | |
| 0 | 85 - upgrades mainly raise damage. range grows slightly, and so does the slowing |
| 86 of t2. attack speed stays the same at all levels | |
| 6 | 87 - selling a tower refunds half of everything paid for it: the build and all |
| 88 its upgrades. a tower is always sold whole; upgrades cannot be sold one by | |
| 89 one | |
| 0 | 90 |
| 91 monsters | |
| 92 -------- | |
| 93 | |
| 94 - monsters m0-m4 are monster levels, drop 1/2/3/4/6 coins on death | |
| 95 hp 5/10/15/20/30 | |
| 96 - all monster levels appear on all maps, in different amounts and proportions. | |
| 97 low levels stay in the mix on later maps to balance the larger numbers | |
| 98 - monsters emulate animation with slight bobbing, squish/stretch on x and y by a | |
| 99 few percent; walking animation is by small hops; hops and animation may | |
| 100 overlap out of red path | |
| 10 | 101 - monsters do not walk in single file: each walks a little to the side of the |
| 102 path, drifting from side to side, and at a slightly different speed | |
| 0 | 103 - bosses are map-specific, b0 belongs to map0 etc; boss hp 30/50/70/100 coin |
| 104 drop equal to hp | |
| 105 - hp bars are always shown above every monster. the boss uses its own bar, also | |
| 6 | 106 above the boss. the bar turns blue while t2 slows the monster |
| 0 | 107 - dropped coins fly to the coin counter on their own. each coin uses a random |
| 108 one of c0-c3 | |
| 109 | |
| 110 economy and waves | |
| 111 ----------------- | |
| 112 | |
| 113 - starting coins per map level: 10, 20, 40, 60 | |
| 114 - balance of monster speed vs tower fire frequency tbd | |
| 115 - several monster waves per map with breaks between them, total 10*map | |
| 116 starting coins, last wave includes boss | |
| 117 - the break between waves counts down, and the next wave starts on its own | |
| 118 when it runs out. a button starts the next wave early and pays a coin bonus | |
| 119 based on the seconds left. this is how most tower defense games handle it | |
| 120 - the breaks are longer than first planned, to give time to build | |
| 121 | |
| 122 hearts | |
| 123 ------ | |
| 124 | |
| 125 - each map starts with a number of hearts | |
| 126 - a monster that reaches the exit costs one heart, a boss costs more | |
| 6 | 127 - at zero hearts the map is lost, and play starts again at the first map |
| 0 | 128 - the map is won when the last wave, including the boss, is cleared |
| 129 | |
| 6 | 130 screens |
| 131 ------- | |
| 132 | |
| 133 - splash: title "minor monsters", byline "By M.A. and J.A. Juszczyk" and a | |
| 134 play button, drawn over the first map with the game paused. the play button | |
| 135 also starts the sound | |
| 136 - map won, on maps before the last: one button, next, which starts the next | |
| 137 map | |
| 138 - game won, after the last map: one button, restart, which goes back to the | |
| 139 splash screen | |
| 140 - map lost: one button, which starts the first map | |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
6
diff
changeset
|
141 - all screens are drawn at one scale, so the splash and game won screens, |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
6
diff
changeset
|
142 which are drawn larger, stay larger than map won and map lost |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
6
diff
changeset
|
143 - the screen buttons pulse slowly as a cue to tap. with a mouse they grow |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
6
diff
changeset
|
144 under the pointer |
| 6 | 145 |
| 0 | 146 controls |
| 147 -------- | |
| 148 | |
|
13
8df95050fc8b
no more build during pause; tower popup closes on any click outside it
ark
parents:
11
diff
changeset
|
149 - pause. towers cannot be built, upgraded or sold while paused. building |
|
8df95050fc8b
no more build during pause; tower popup closes on any click outside it
ark
parents:
11
diff
changeset
|
150 during a pause was allowed at first, but it clashed with starting waves |
|
8df95050fc8b
no more build during pause; tower popup closes on any click outside it
ark
parents:
11
diff
changeset
|
151 early |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
6
diff
changeset
|
152 - game speed 1x, 2x and 4x (decided) |
|
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
6
diff
changeset
|
153 - sound on and off, kept in the browser |
| 0 | 154 - input via pointer events, so mouse and touch work the same. no part of the |
| 155 game depends on mouse hover | |
| 156 | |
| 157 sound | |
| 158 ----- | |
| 159 | |
| 4 | 160 - voice recordings for most events, placeholder beeps generated in the |
| 161 browser for the rest; see sound.md |
