|
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
|
|
|
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 |-------|------------------|------|---------------------|--------------|------------------|--------|
|
|
6
|
109 | 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
|
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
|
|
6
|
136 selling refunds half of everything paid for the tower, build and upgrades,
|
|
|
137 rounded down (decided). a tower is sold whole. purchases made during the
|
|
|
138 current pause are refunded in full instead (see game_design.md).
|
|
0
|
139
|
|
|
140 | tower | level 1 | level 2 | level 3 | level 4 | level 5 |
|
|
|
141 |-------|---------|---------|---------|---------|---------|
|
|
6
|
142 | t0 | 2 | 7 | 15 | 25 | 37 |
|
|
|
143 | t1 | 5 | 15 | 30 | 50 | 75 |
|
|
|
144 | t2 | 10 | 30 | 60 | 100 | 150 |
|
|
|
145 | t3 | 12 | 37 | 75 | 125 | 187 |
|
|
0
|
146
|
|
|
147 damage per second against a single target, at the guessed attack times
|
|
|
148 (derived):
|
|
|
149
|
|
|
150 | tower | level 1 | level 2 | level 3 | level 4 | level 5 |
|
|
|
151 |-------|---------|---------|---------|---------|---------|
|
|
|
152 | t0 | 3.3 | 6.7 | 10.0 | 13.3 | 16.7 |
|
|
|
153 | t1 | 4.3 | 10.0 | 18.6 | 24.3 | 32.9 |
|
|
|
154 | t2 | 0.8 | 2.5 | 4.2 | 5.8 | 7.5 |
|
|
|
155 | t3 | 0.8 | 3.8 | 5.4 | 7.7 | 10.0 |
|
|
|
156
|
|
|
157 t3 is meant to be weaker than the other towers; its range lets it reach more
|
|
|
158 targets (decided). to keep the gap moderate, its cost went from 40 to 25 and
|
|
|
159 its attack time from 2.0 s to 1.3 s, just slower than t2 as the notes require
|
|
|
160 (decided, amount guessed). at level 1 it deals about a fifth of t1's damage per
|
|
|
161 second at two and a half times the cost. its range covers more path, roughly
|
|
|
162 three times as much on a winding map (estimate).
|
|
|
163
|
|
|
164
|
|
|
165 placement
|
|
|
166 ---------
|
|
|
167
|
|
|
168 | parameter | value | source |
|
|
|
169 |--------------------------------------------|-------|--------|
|
|
|
170 | tower footprint radius | 16 | guess |
|
|
|
171 | largest gap between footprint and path edge | 14 | guess |
|
|
|
172 | smallest distance between tower centres | 32 | derived (two footprints) |
|
|
|
173 | distance from the map edge | 16 | guess |
|
|
|
174 | snap radius, how far a tap may be from a legal position | 48 | guess |
|
|
|
175 | placement grid cell | 4 | guess |
|
|
|
176
|
|
|
177 towers may not be placed on the entrance or exit areas.
|
|
|
178
|
|
|
179
|
|
|
180 economy
|
|
|
181 -------
|
|
|
182
|
|
|
183 | map | starting coins | coins dropped in total | boss coins | regular monster coins | regular monster hp |
|
|
|
184 |------|----------------|------------------------|------------|-----------------------|--------------------|
|
|
|
185 | map0 | 10 | 100 | 30 | 70 | 350 |
|
|
|
186 | map1 | 20 | 200 | 50 | 150 | 750 |
|
|
|
187 | map2 | 40 | 400 | 70 | 330 | 1650 |
|
|
|
188 | map3 | 60 | 600 | 100 | 500 | 2500 |
|
|
|
189
|
|
|
190 starting coins and the 10 x starting coins total are from the notes; the rest
|
|
|
191 is derived. early wave bonuses come on top of this total.
|
|
|
192
|
|
|
193 the source sheet gives 50 starting coins for map3. the notes raise it to 60 to
|
|
|
194 make the step from map1 to map3 more even (10, 20, 40, 60 instead of 10, 20,
|
|
|
195 40, 50). likely to change after playtesting.
|
|
|
196
|
|
|
197 share of the regular monster coins by monster level (guess). all monster
|
|
|
198 levels appear on all maps (decided):
|
|
|
199
|
|
|
200 | map | m0 | m1 | m2 | m3 | m4 |
|
|
|
201 |------|------|------|------|------|------|
|
|
|
202 | map0 | 40 % | 25 % | 15 % | 10 % | 10 % |
|
|
|
203 | map1 | 30 % | 25 % | 20 % | 15 % | 10 % |
|
|
|
204 | map2 | 20 % | 20 % | 20 % | 20 % | 20 % |
|
|
|
205 | map3 | 15 % | 15 % | 20 % | 25 % | 25 % |
|
|
|
206
|
|
|
207 resulting monster counts (derived, rounded):
|
|
|
208
|
|
|
209 | map | m0 | m1 | m2 | m3 | m4 | monsters | coins |
|
|
|
210 |------|----|----|----|----|----|----------|-------|
|
|
|
211 | map0 | 28 | 9 | 4 | 2 | 1 | 44 | 72 |
|
|
|
212 | map1 | 45 | 19 | 10 | 6 | 2 | 82 | 149 |
|
|
|
213 | map2 | 66 | 33 | 22 | 16 | 11 | 148 | 328 |
|
|
|
214 | map3 | 75 | 38 | 33 | 31 | 21 | 198 | 500 |
|
|
|
215
|
|
|
216 the build prints these totals from the actual wave lists and warns when a map
|
|
|
217 is more than 5 % off its coin total.
|
|
|
218
|
|
|
219
|
|
|
220 waves
|
|
|
221 -----
|
|
|
222
|
|
|
223 | parameter | value | source |
|
|
|
224 |------------------------------------|---------------------|--------|
|
|
|
225 | waves per map | 6, 8, 10, 12 | guess |
|
|
|
226 | break before the first wave | 40 s | guess |
|
|
|
227 | break between waves | 25 s | guess ("longer", decided) |
|
|
|
228 | time between spawns within a group | 1.0 s, set per group | guess |
|
|
|
229 | early start bonus, coins per second left | 0.05, 0.1, 0.2, 0.3 by map | guess (starting coins / 200) |
|
|
|
230
|
|
|
231 the bonus is rounded down. if every break is skipped at once, the bonus adds
|
|
|
232 about 6, 17, 45 and 82 coins per map (derived).
|
|
|
233
|
|
|
234 suggested shape of a map's waves (guess): the coin value of wave n grows in
|
|
|
235 proportion to n, so the last wave is the largest. the boss comes at the end of
|
|
|
236 the last wave. later waves mix monster levels; early waves are mostly m0 and
|
|
|
237 m1.
|
|
|
238
|
|
|
239
|
|
|
240 hearts
|
|
|
241 ------
|
|
|
242
|
|
|
243 | parameter | value | source |
|
|
|
244 |-------------------------|-------|--------|
|
|
|
245 | hearts per map | 10 | decided |
|
|
|
246 | heart cost of a monster | 1 | decided |
|
|
|
247 | heart cost of a boss | 5 | decided |
|
|
|
248
|
|
|
249
|
|
|
250 coins in flight
|
|
|
251 ---------------
|
|
|
252
|
|
|
253 | parameter | value | source |
|
|
|
254 |----------------------------------|-------|--------|
|
|
|
255 | flight time to the counter | 0.7 s | guess |
|
|
|
256 | most coin sprites for one death | 8 | guess |
|
|
|
257
|
|
|
258 coins are added to the counter at the moment the monster dies; the flying
|
|
|
259 coins only show it (guess). this keeps the counter correct for a player who
|
|
|
260 builds right after a kill.
|
|
|
261
|
|
|
262
|
|
|
263 controls
|
|
|
264 --------
|
|
|
265
|
|
|
266 | parameter | value | source |
|
|
|
267 |------------|--------|--------|
|
|
|
268 | game speeds | 1x, 2x | guess |
|