wobblyhead hg > minor_monsters
view doc/game_design.md @ 8:2c4fed8baed9
art update, persistent sound setting, tower selling as double action
| author | ark |
|---|---|
| date | 2026-10-19 13:37 +0200 |
| parents | 910b26feca76 |
| children | 22b604680c5a |
line wrap: on
line source
tower defense game design notes ------------------------------- numbers marked as guesses, and all speeds, ranges and timings, are collected in balance.md. technical details are in architecture.md. - working title "minor monsters" - runs as a plain html/javascript page, on desktop (mouse) and on tablets (touch) - the player only manages towers: build, upgrade, sell. everything else, such as collecting coins, happens on its own - no text in the game where an icon will do. icons, ui elements and any remaining text are supplied as scribbles; see art.md for the list maps ---- - map levels 0-3: home, mine entrance, mine, lava depths *mask images define play areas monster enter from blue entrance, walk to green exit on red path towers are placed along path - maps are played in order. after a won map the only way on is the next map. a lost map sends the player back to the first map. there is no map selection. to be reviewed after playtesting - the first map is map0, or the map set by the debug start switch (architecture.md) - nothing is stored in the browser for now. a reload starts again at the splash screen with a fresh game - coins do not carry over between maps; each map starts with its own starting coins - map1 and map2 have branching paths, map2 has two entrances. a monster picks its route when it spawns: - faster monsters prefer longer or straighter routes - slower monsters prefer shortcuts - otherwise all routes are equally likely - later maps have shorter paths and many more monsters towers ------ - towers: - t0 is close range and projects spikes (p0) from all four sides damage per tower level: 5,10,15,20 cost 5 melee tower: each attack damages every monster in range at once slower attack than the other towers spikes are only drawn on the sides that face the path - t1 is the default generic towers, turns, shoots projectile p1 damage: 3,7,13,17 cost 10 - t2 shoots projectile p2, turns, slows down monsters slower than t1 a slowed monster's hp bar turns blue damage: 1,3,5,7 cost 20 - t3 is long range sniper tower, turns, shoots p3 slower than t2 damage 1,5,7,10 cost 25 (first planned as 40, lowered for balance) - art assets for tower levels still need to be processed, contain upgrades 1-4 for each tower - towers have 5 levels: t0-t3 are level 1 (the base), the four drawings in each t*p strip are levels 2-5 the original drawing sheet gives five damage values for t0 (5,10,15,20,25) and t1 (3,7,13,17,23), and four for t2 and t3, as above. level 5 of t2 and t3 is guessed in balance.md - t3 is meant to be weaker than the other towers; its range lets it reach more targets - towers are placed next to the path, never on it. a tap or click snaps to the nearest legal position, so the player does not have to hit an exact spot - placing: pick a tower in the shop, tap the map. a preview with its range appears at the snapped position; tapping the preview builds the tower, tapping elsewhere moves the preview (suggestion) - tapping a built tower shows its range and the upgrade and sell buttons - tower upgrades cost tower base cost * tower level the level is the new level: building is level 1 and costs the base cost, the first upgrade (to level 2) costs twice the base cost - upgrades mainly raise damage. range grows slightly, and so does the slowing of t2. attack speed stays the same at all levels - selling a tower refunds half of everything paid for it: the build and all its upgrades. a tower is always sold whole; upgrades cannot be sold one by one exception: purchases made during the current pause are refunded in full. a tower built and sold during the same pause, never used, costs nothing. an upgrade bought during a pause comes back in full if the tower is sold before the game resumes; the rest of the tower sells at half monsters -------- - monsters m0-m4 are monster levels, drop 1/2/3/4/6 coins on death hp 5/10/15/20/30 - all monster levels appear on all maps, in different amounts and proportions. low levels stay in the mix on later maps to balance the larger numbers - monsters emulate animation with slight bobbing, squish/stretch on x and y by a few percent; walking animation is by small hops; hops and animation may overlap out of red path - bosses are map-specific, b0 belongs to map0 etc; boss hp 30/50/70/100 coin drop equal to hp - hp bars are always shown above every monster. the boss uses its own bar, also above the boss. the bar turns blue while t2 slows the monster - dropped coins fly to the coin counter on their own. each coin uses a random one of c0-c3 economy and waves ----------------- - starting coins per map level: 10, 20, 40, 60 - balance of monster speed vs tower fire frequency tbd - several monster waves per map with breaks between them, total 10*map starting coins, last wave includes boss - the break between waves counts down, and the next wave starts on its own when it runs out. a button starts the next wave early and pays a coin bonus based on the seconds left. this is how most tower defense games handle it - the breaks are longer than first planned, to give time to build hearts ------ - each map starts with a number of hearts - a monster that reaches the exit costs one heart, a boss costs more - at zero hearts the map is lost, and play starts again at the first map - the map is won when the last wave, including the boss, is cleared screens ------- - splash: title "minor monsters", byline "By M.A. and J.A. Juszczyk" and a play button, drawn over the first map with the game paused. the play button also starts the sound - map won, on maps before the last: one button, next, which starts the next map - game won, after the last map: one button, restart, which goes back to the splash screen - map lost: one button, which starts the first map - all screens are drawn at one scale, so the splash and game won screens, which are drawn larger, stay larger than map won and map lost - the screen buttons pulse slowly as a cue to tap. with a mouse they grow under the pointer controls -------- - pause, with building, upgrading and selling allowed while paused - game speed 1x, 2x and 4x (decided) - sound on and off, kept in the browser - input via pointer events, so mouse and touch work the same. no part of the game depends on mouse hover sound ----- - voice recordings for most events, placeholder beeps generated in the browser for the rest; see sound.md
