wobblyhead hg > minor_monsters
annotate doc/balance.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 | 53f015966118 |
| rev | line source |
|---|---|
| 0 | 1 balance |
| 2 ------- | |
| 3 | |
| 4 all game numbers in one place. the values used by the game are in the config | |
| 5 file (see architecture.md); this document explains them and records where each | |
| 6 one comes from. | |
| 7 | |
| 8 source markers: | |
| 9 | |
| 10 - notes: from the original design notes or the original drawing sheet, | |
| 11 decided | |
| 12 - decided: decided after the notes were written | |
| 13 - guess: a starting value for playtesting, expected to change | |
| 14 - derived: calculated from other values | |
| 15 | |
| 16 units: distances are in map pixels, that is pixels of the map image as | |
| 17 scanned. times are in seconds, speeds in map pixels per second. | |
| 18 | |
| 19 | |
| 20 scale | |
| 21 ----- | |
| 22 | |
| 23 | item | value | source | | |
| 24 |------------------------------|-------|--------| | |
| 25 | map images | 1.0 | notes | | |
| 26 | towers, monsters, projectiles | 0.25 | notes ("maps scaled approx 400%") | | |
| 27 | coins | 0.4 | guess, 0.25 makes them about 10 pixels | | |
| 28 | hp bars | 0.25 | guess | | |
| 29 | |
| 30 measured from the masks (approximate, from red area divided by path width): | |
| 31 | |
| 32 | map | size | path width | path length, all branches | | |
| 33 |------|---------|------------|---------------------------| | |
| 34 | map0 | 705x697 | 56 | 1930 | | |
| 35 | map1 | 663x590 | 48 | 1350 | | |
| 36 | map2 | 618x537 | 42 | 2075 | | |
| 37 | map3 | 642x459 | 52 | 905 | | |
| 38 | |
| 39 a single route on map1 or map2 is shorter than the total. exact route lengths | |
| 40 come from the build (see architecture.md). | |
| 41 | |
| 42 | |
| 43 monsters | |
| 44 -------- | |
| 45 | |
| 46 | monster | hp | coins | speed | source | | |
| 47 |---------|----|-------|-------|--------| | |
| 48 | m0 | 5 | 1 | 35 | hp, coins: notes; speed: guess | | |
| 49 | m1 | 10 | 2 | 40 | as above | | |
| 50 | m2 | 15 | 3 | 45 | as above | | |
| 51 | m3 | 20 | 4 | 40 | as above | | |
| 52 | m4 | 30 | 6 | 35 | as above | | |
| 53 | b0 | 30 | 30 | 25 | as above | | |
| 54 | b1 | 50 | 50 | 25 | as above | | |
| 55 | b2 | 70 | 70 | 25 | as above | | |
| 56 | b3 | 100 | 100 | 25 | as above | | |
| 57 | |
| 58 regular monsters drop 0.2 coins per hp; bosses drop 1 coin per hp (derived). | |
| 59 | |
| 60 time to walk the whole path at 35-45 speed (derived): map0 about 50 s, map3 | |
| 61 about 23 s. | |
| 62 | |
| 63 animation (all guesses): | |
| 64 | |
| 65 - one hop takes 0.35 s | |
| 66 - hop height 5 | |
| 67 - squash on landing 6 % (wider and flatter), stretch in the air 4 % | |
| 68 - idle bob 2 % | |
| 69 - each monster starts at a random point in its hop cycle, so a group does not | |
| 70 hop in step | |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
6
diff
changeset
|
71 - the death puff shows for 0.4 s |
| 0 | 72 |
| 73 | |
| 74 route preference | |
| 75 ---------------- | |
| 76 | |
| 77 on maps with several routes, a monster picks one at spawn. faster monsters | |
| 78 prefer longer or straighter routes, slower ones prefer shortcuts (decided). | |
| 79 | |
| 80 proposed rule (guess): | |
| 81 | |
| 82 - for each route the build calculates its length and how much it turns (sum of | |
| 83 direction changes along the route) | |
| 84 - each route gets a value between 0 and 1: the average of its length relative | |
| 85 to the longest route and its straightness relative to the straightest route | |
| 86 - each monster gets a speed factor: its speed minus the reference speed, | |
| 87 divided by the reference speed, limited to -1..1 | |
| 88 - route weight = 1 + bias * speed factor * (2 * route value - 1), at least 0.1 | |
| 89 - a monster at the reference speed sees all routes as equally likely | |
| 90 | |
| 91 | parameter | value | source | | |
| 92 |-----------------|-------|--------| | |
| 93 | reference speed | 40 | guess | | |
| 94 | bias | 3 | guess | | |
| 95 | |
| 96 with the speeds above, m2 is the only regular monster faster than the | |
| 97 reference, and the effect on it is small. the speeds may need to spread out | |
| 98 more for the preference to be visible. | |
| 99 | |
| 100 | |
| 101 towers | |
| 102 ------ | |
| 103 | |
| 104 towers have 5 levels (decided). the drawing sheet gives five damage values for | |
| 105 t0 and t1, and four for t2 and t3. level 5 of t2 and t3 continues the trend | |
| 106 (guess). | |
| 107 | |
| 108 | tower | damage by level | cost | range by level | attack every | projectile speed | source | | |
| 109 |-------|------------------|------|---------------------|--------------|------------------|--------| | |
| 6 | 110 | t0 | 5,10,15,20,25 | 5 | 60,63,66,69,72 | 1.5 s | none (melee) | damage, cost: notes; range level 1: decided (was 45); rest: guess | |
| 0 | 111 | t1 | 3,7,13,17,23 | 10 | 100,104,108,112,116 | 0.7 s | 300 | as above | |
| 112 | t2 | 1,3,5,7,9 | 20 | 90,94,98,102,106 | 1.2 s | 220 | damage 1-4, cost: notes; rest: guess | | |
| 113 | t3 | 1,5,7,10,13 | 25 | 220,230,240,250,260 | 1.3 s | 800 | damage 1-4: notes; cost: decided (was 40), may go lower; rest: guess | | |
| 114 | |
| 115 rules: | |
| 116 | |
| 117 - attack speed stays the same at every level (decided). t0 is slower than the | |
| 118 others (decided), t1 faster than t2, t2 faster than t3 (notes) | |
| 119 - range grows about 4 % per level (decided "slightly", amount guessed) | |
| 120 - t0 damages every monster in range at once, each attack | |
| 121 - t2 slow: hit monsters move at 0.60, 0.55, 0.50, 0.45, 0.40 of their speed | |
| 122 by level, for 2 s (guess). a new hit restarts the time. slows do not add up; | |
| 123 the strongest one applies | |
| 124 - p1, p2, p3 home in on their target. if the target dies first, the | |
| 125 projectile flies on to the last position and disappears (guess) | |
| 126 - towers aim at the monster furthest along its route (guess) | |
| 127 | |
| 128 costs (decided: level n costs base cost x n): | |
| 129 | |
| 130 | tower | level 1 (build) | level 2 | level 3 | level 4 | level 5 | total | | |
| 131 |-------|-----------------|---------|---------|---------|---------|-------| | |
| 132 | t0 | 5 | 10 | 15 | 20 | 25 | 75 | | |
| 133 | t1 | 10 | 20 | 30 | 40 | 50 | 150 | | |
| 134 | t2 | 20 | 40 | 60 | 80 | 100 | 300 | | |
| 135 | t3 | 25 | 50 | 75 | 100 | 125 | 375 | | |
| 136 | |
| 6 | 137 selling refunds half of everything paid for the tower, build and upgrades, |
| 138 rounded down (decided). a tower is sold whole. purchases made during the | |
| 139 current pause are refunded in full instead (see game_design.md). | |
| 0 | 140 |
| 141 | tower | level 1 | level 2 | level 3 | level 4 | level 5 | | |
| 142 |-------|---------|---------|---------|---------|---------| | |
| 6 | 143 | t0 | 2 | 7 | 15 | 25 | 37 | |
| 144 | t1 | 5 | 15 | 30 | 50 | 75 | | |
| 145 | t2 | 10 | 30 | 60 | 100 | 150 | | |
| 146 | t3 | 12 | 37 | 75 | 125 | 187 | | |
| 0 | 147 |
| 148 damage per second against a single target, at the guessed attack times | |
| 149 (derived): | |
| 150 | |
| 151 | tower | level 1 | level 2 | level 3 | level 4 | level 5 | | |
| 152 |-------|---------|---------|---------|---------|---------| | |
| 153 | t0 | 3.3 | 6.7 | 10.0 | 13.3 | 16.7 | | |
| 154 | t1 | 4.3 | 10.0 | 18.6 | 24.3 | 32.9 | | |
| 155 | t2 | 0.8 | 2.5 | 4.2 | 5.8 | 7.5 | | |
| 156 | t3 | 0.8 | 3.8 | 5.4 | 7.7 | 10.0 | | |
| 157 | |
| 158 t3 is meant to be weaker than the other towers; its range lets it reach more | |
| 159 targets (decided). to keep the gap moderate, its cost went from 40 to 25 and | |
| 160 its attack time from 2.0 s to 1.3 s, just slower than t2 as the notes require | |
| 161 (decided, amount guessed). at level 1 it deals about a fifth of t1's damage per | |
| 162 second at two and a half times the cost. its range covers more path, roughly | |
| 163 three times as much on a winding map (estimate). | |
| 164 | |
| 165 | |
| 166 placement | |
| 167 --------- | |
| 168 | |
| 169 | parameter | value | source | | |
| 170 |--------------------------------------------|-------|--------| | |
| 171 | tower footprint radius | 16 | guess | | |
| 172 | largest gap between footprint and path edge | 14 | guess | | |
| 173 | smallest distance between tower centres | 32 | derived (two footprints) | | |
| 174 | distance from the map edge | 16 | guess | | |
| 175 | snap radius, how far a tap may be from a legal position | 48 | guess | | |
| 176 | placement grid cell | 4 | guess | | |
| 177 | |
| 178 towers may not be placed on the entrance or exit areas. | |
| 179 | |
| 180 | |
| 181 economy | |
| 182 ------- | |
| 183 | |
| 184 | map | starting coins | coins dropped in total | boss coins | regular monster coins | regular monster hp | | |
| 185 |------|----------------|------------------------|------------|-----------------------|--------------------| | |
| 186 | map0 | 10 | 100 | 30 | 70 | 350 | | |
| 187 | map1 | 20 | 200 | 50 | 150 | 750 | | |
| 188 | map2 | 40 | 400 | 70 | 330 | 1650 | | |
| 189 | map3 | 60 | 600 | 100 | 500 | 2500 | | |
| 190 | |
| 191 starting coins and the 10 x starting coins total are from the notes; the rest | |
| 192 is derived. early wave bonuses come on top of this total. | |
| 193 | |
| 194 the source sheet gives 50 starting coins for map3. the notes raise it to 60 to | |
| 195 make the step from map1 to map3 more even (10, 20, 40, 60 instead of 10, 20, | |
| 196 40, 50). likely to change after playtesting. | |
| 197 | |
| 198 share of the regular monster coins by monster level (guess). all monster | |
| 199 levels appear on all maps (decided): | |
| 200 | |
| 201 | map | m0 | m1 | m2 | m3 | m4 | | |
| 202 |------|------|------|------|------|------| | |
| 203 | map0 | 40 % | 25 % | 15 % | 10 % | 10 % | | |
| 204 | map1 | 30 % | 25 % | 20 % | 15 % | 10 % | | |
| 205 | map2 | 20 % | 20 % | 20 % | 20 % | 20 % | | |
| 206 | map3 | 15 % | 15 % | 20 % | 25 % | 25 % | | |
| 207 | |
| 208 resulting monster counts (derived, rounded): | |
| 209 | |
| 210 | map | m0 | m1 | m2 | m3 | m4 | monsters | coins | | |
| 211 |------|----|----|----|----|----|----------|-------| | |
| 212 | map0 | 28 | 9 | 4 | 2 | 1 | 44 | 72 | | |
| 213 | map1 | 45 | 19 | 10 | 6 | 2 | 82 | 149 | | |
| 214 | map2 | 66 | 33 | 22 | 16 | 11 | 148 | 328 | | |
| 215 | map3 | 75 | 38 | 33 | 31 | 21 | 198 | 500 | | |
| 216 | |
| 217 the build prints these totals from the actual wave lists and warns when a map | |
| 218 is more than 5 % off its coin total. | |
| 219 | |
| 220 | |
| 221 waves | |
| 222 ----- | |
| 223 | |
| 224 | parameter | value | source | | |
| 225 |------------------------------------|---------------------|--------| | |
| 226 | waves per map | 6, 8, 10, 12 | guess | | |
| 227 | break before the first wave | 40 s | guess | | |
| 228 | break between waves | 25 s | guess ("longer", decided) | | |
| 229 | time between spawns within a group | 1.0 s, set per group | guess | | |
| 230 | early start bonus, coins per second left | 0.05, 0.1, 0.2, 0.3 by map | guess (starting coins / 200) | | |
| 231 | |
| 232 the bonus is rounded down. if every break is skipped at once, the bonus adds | |
| 233 about 6, 17, 45 and 82 coins per map (derived). | |
| 234 | |
| 235 suggested shape of a map's waves (guess): the coin value of wave n grows in | |
| 236 proportion to n, so the last wave is the largest. the boss comes at the end of | |
| 237 the last wave. later waves mix monster levels; early waves are mostly m0 and | |
| 238 m1. | |
| 239 | |
| 240 | |
| 241 hearts | |
| 242 ------ | |
| 243 | |
| 244 | parameter | value | source | | |
| 245 |-------------------------|-------|--------| | |
| 246 | hearts per map | 10 | decided | | |
| 247 | heart cost of a monster | 1 | decided | | |
| 248 | heart cost of a boss | 5 | decided | | |
| 249 | |
| 250 | |
| 251 coins in flight | |
| 252 --------------- | |
| 253 | |
| 254 | parameter | value | source | | |
| 255 |----------------------------------|-------|--------| | |
| 256 | flight time to the counter | 0.7 s | guess | | |
| 257 | most coin sprites for one death | 8 | guess | | |
| 258 | |
| 259 coins are added to the counter at the moment the monster dies; the flying | |
| 260 coins only show it (guess). this keeps the counter correct for a player who | |
| 261 builds right after a kill. | |
| 262 | |
| 263 | |
| 264 controls | |
| 265 -------- | |
| 266 | |
| 267 | parameter | value | source | | |
| 268 |------------|--------|--------| | |
|
8
2c4fed8baed9
art update, persistent sound setting, tower selling as double action
ark
parents:
6
diff
changeset
|
269 | game speeds | 1x, 2x, 4x | decided | |
