comparison doc/balance.md @ 0:7af9dd4e2595

initial art and design/planning docs
author ark
date 2026-10-18 01:26 +0200
parents
children 910b26feca76
comparison
equal deleted inserted replaced
-1:000000000000 0:7af9dd4e2595
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
71
72
73 route preference
74 ----------------
75
76 on maps with several routes, a monster picks one at spawn. faster monsters
77 prefer longer or straighter routes, slower ones prefer shortcuts (decided).
78
79 proposed rule (guess):
80
81 - for each route the build calculates its length and how much it turns (sum of
82 direction changes along the route)
83 - each route gets a value between 0 and 1: the average of its length relative
84 to the longest route and its straightness relative to the straightest route
85 - each monster gets a speed factor: its speed minus the reference speed,
86 divided by the reference speed, limited to -1..1
87 - route weight = 1 + bias * speed factor * (2 * route value - 1), at least 0.1
88 - a monster at the reference speed sees all routes as equally likely
89
90 | parameter | value | source |
91 |-----------------|-------|--------|
92 | reference speed | 40 | guess |
93 | bias | 3 | guess |
94
95 with the speeds above, m2 is the only regular monster faster than the
96 reference, and the effect on it is small. the speeds may need to spread out
97 more for the preference to be visible.
98
99
100 towers
101 ------
102
103 towers have 5 levels (decided). the drawing sheet gives five damage values for
104 t0 and t1, and four for t2 and t3. level 5 of t2 and t3 continues the trend
105 (guess).
106
107 | tower | damage by level | cost | range by level | attack every | projectile speed | source |
108 |-------|------------------|------|---------------------|--------------|------------------|--------|
109 | t0 | 5,10,15,20,25 | 5 | 45,48,51,54,57 | 1.5 s | none (melee) | damage, cost: notes; rest: guess |
110 | t1 | 3,7,13,17,23 | 10 | 100,104,108,112,116 | 0.7 s | 300 | as above |
111 | t2 | 1,3,5,7,9 | 20 | 90,94,98,102,106 | 1.2 s | 220 | damage 1-4, cost: notes; rest: guess |
112 | 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 |
113
114 rules:
115
116 - attack speed stays the same at every level (decided). t0 is slower than the
117 others (decided), t1 faster than t2, t2 faster than t3 (notes)
118 - range grows about 4 % per level (decided "slightly", amount guessed)
119 - t0 damages every monster in range at once, each attack
120 - t2 slow: hit monsters move at 0.60, 0.55, 0.50, 0.45, 0.40 of their speed
121 by level, for 2 s (guess). a new hit restarts the time. slows do not add up;
122 the strongest one applies
123 - p1, p2, p3 home in on their target. if the target dies first, the
124 projectile flies on to the last position and disappears (guess)
125 - towers aim at the monster furthest along its route (guess)
126
127 costs (decided: level n costs base cost x n):
128
129 | tower | level 1 (build) | level 2 | level 3 | level 4 | level 5 | total |
130 |-------|-----------------|---------|---------|---------|---------|-------|
131 | t0 | 5 | 10 | 15 | 20 | 25 | 75 |
132 | t1 | 10 | 20 | 30 | 40 | 50 | 150 |
133 | t2 | 20 | 40 | 60 | 80 | 100 | 300 |
134 | t3 | 25 | 50 | 75 | 100 | 125 | 375 |
135
136 selling refunds half of the last purchase, rounded down (decided). this is
137 low for upgraded towers: a level 5 t1 cost 150 in total and sells for 25.
138
139 | tower | level 1 | level 2 | level 3 | level 4 | level 5 |
140 |-------|---------|---------|---------|---------|---------|
141 | t0 | 2 | 5 | 7 | 10 | 12 |
142 | t1 | 5 | 10 | 15 | 20 | 25 |
143 | t2 | 10 | 20 | 30 | 40 | 50 |
144 | t3 | 12 | 25 | 37 | 50 | 62 |
145
146 damage per second against a single target, at the guessed attack times
147 (derived):
148
149 | tower | level 1 | level 2 | level 3 | level 4 | level 5 |
150 |-------|---------|---------|---------|---------|---------|
151 | t0 | 3.3 | 6.7 | 10.0 | 13.3 | 16.7 |
152 | t1 | 4.3 | 10.0 | 18.6 | 24.3 | 32.9 |
153 | t2 | 0.8 | 2.5 | 4.2 | 5.8 | 7.5 |
154 | t3 | 0.8 | 3.8 | 5.4 | 7.7 | 10.0 |
155
156 t3 is meant to be weaker than the other towers; its range lets it reach more
157 targets (decided). to keep the gap moderate, its cost went from 40 to 25 and
158 its attack time from 2.0 s to 1.3 s, just slower than t2 as the notes require
159 (decided, amount guessed). at level 1 it deals about a fifth of t1's damage per
160 second at two and a half times the cost. its range covers more path, roughly
161 three times as much on a winding map (estimate).
162
163
164 placement
165 ---------
166
167 | parameter | value | source |
168 |--------------------------------------------|-------|--------|
169 | tower footprint radius | 16 | guess |
170 | largest gap between footprint and path edge | 14 | guess |
171 | smallest distance between tower centres | 32 | derived (two footprints) |
172 | distance from the map edge | 16 | guess |
173 | snap radius, how far a tap may be from a legal position | 48 | guess |
174 | placement grid cell | 4 | guess |
175
176 towers may not be placed on the entrance or exit areas.
177
178
179 economy
180 -------
181
182 | map | starting coins | coins dropped in total | boss coins | regular monster coins | regular monster hp |
183 |------|----------------|------------------------|------------|-----------------------|--------------------|
184 | map0 | 10 | 100 | 30 | 70 | 350 |
185 | map1 | 20 | 200 | 50 | 150 | 750 |
186 | map2 | 40 | 400 | 70 | 330 | 1650 |
187 | map3 | 60 | 600 | 100 | 500 | 2500 |
188
189 starting coins and the 10 x starting coins total are from the notes; the rest
190 is derived. early wave bonuses come on top of this total.
191
192 the source sheet gives 50 starting coins for map3. the notes raise it to 60 to
193 make the step from map1 to map3 more even (10, 20, 40, 60 instead of 10, 20,
194 40, 50). likely to change after playtesting.
195
196 share of the regular monster coins by monster level (guess). all monster
197 levels appear on all maps (decided):
198
199 | map | m0 | m1 | m2 | m3 | m4 |
200 |------|------|------|------|------|------|
201 | map0 | 40 % | 25 % | 15 % | 10 % | 10 % |
202 | map1 | 30 % | 25 % | 20 % | 15 % | 10 % |
203 | map2 | 20 % | 20 % | 20 % | 20 % | 20 % |
204 | map3 | 15 % | 15 % | 20 % | 25 % | 25 % |
205
206 resulting monster counts (derived, rounded):
207
208 | map | m0 | m1 | m2 | m3 | m4 | monsters | coins |
209 |------|----|----|----|----|----|----------|-------|
210 | map0 | 28 | 9 | 4 | 2 | 1 | 44 | 72 |
211 | map1 | 45 | 19 | 10 | 6 | 2 | 82 | 149 |
212 | map2 | 66 | 33 | 22 | 16 | 11 | 148 | 328 |
213 | map3 | 75 | 38 | 33 | 31 | 21 | 198 | 500 |
214
215 the build prints these totals from the actual wave lists and warns when a map
216 is more than 5 % off its coin total.
217
218
219 waves
220 -----
221
222 | parameter | value | source |
223 |------------------------------------|---------------------|--------|
224 | waves per map | 6, 8, 10, 12 | guess |
225 | break before the first wave | 40 s | guess |
226 | break between waves | 25 s | guess ("longer", decided) |
227 | time between spawns within a group | 1.0 s, set per group | guess |
228 | early start bonus, coins per second left | 0.05, 0.1, 0.2, 0.3 by map | guess (starting coins / 200) |
229
230 the bonus is rounded down. if every break is skipped at once, the bonus adds
231 about 6, 17, 45 and 82 coins per map (derived).
232
233 suggested shape of a map's waves (guess): the coin value of wave n grows in
234 proportion to n, so the last wave is the largest. the boss comes at the end of
235 the last wave. later waves mix monster levels; early waves are mostly m0 and
236 m1.
237
238
239 hearts
240 ------
241
242 | parameter | value | source |
243 |-------------------------|-------|--------|
244 | hearts per map | 10 | decided |
245 | heart cost of a monster | 1 | decided |
246 | heart cost of a boss | 5 | decided |
247
248
249 coins in flight
250 ---------------
251
252 | parameter | value | source |
253 |----------------------------------|-------|--------|
254 | flight time to the counter | 0.7 s | guess |
255 | most coin sprites for one death | 8 | guess |
256
257 coins are added to the counter at the moment the monster dies; the flying
258 coins only show it (guess). this keeps the counter correct for a player who
259 builds right after a kill.
260
261
262 controls
263 --------
264
265 | parameter | value | source |
266 |------------|--------|--------|
267 | game speeds | 1x, 2x | guess |