96 AddGear(945, 498, gtTarget, 0, 0, 0, 0) |
96 AddGear(945, 498, gtTarget, 0, 0, 0, 0) |
97 -- Bounciness |
97 -- Bounciness |
98 elseif gamePhase == 4 then |
98 elseif gamePhase == 4 then |
99 AddGear(1318, 208, gtTarget, 0, 0, 0, 0) |
99 AddGear(1318, 208, gtTarget, 0, 0, 0, 0) |
100 AddGear(1697, 250, gtTarget, 0, 0, 0, 0) |
100 AddGear(1697, 250, gtTarget, 0, 0, 0, 0) |
101 if INTERFACE ~= "touch" then |
101 AddGear(323, 960, gtTarget, 0, 0, 0, 0) |
102 -- These targets may be too hard in touch interface because you cannot set bounciness yet |
102 AddGear(1852, 100, gtTarget, 0, 0, 0, 0) |
103 -- FIXME: Allow these targets in touch when bounciness can be set |
|
104 AddGear(323, 960, gtTarget, 0, 0, 0, 0) |
|
105 AddGear(1852, 100, gtTarget, 0, 0, 0, 0) |
|
106 end |
|
107 -- Grand Final |
103 -- Grand Final |
108 elseif gamePhase == 5 then |
104 elseif gamePhase == 5 then |
109 AddGear(186, 473, gtTarget, 0, 0, 0, 0) |
105 AddGear(186, 473, gtTarget, 0, 0, 0, 0) |
110 AddGear(950, 250, gtTarget, 0, 0, 0, 0) |
106 AddGear(950, 250, gtTarget, 0, 0, 0, 0) |
111 AddGear(1102, 345, gtTarget, 0, 0, 0, 0) |
107 AddGear(1102, 345, gtTarget, 0, 0, 0, 0) |
163 loc("Destroy the targets!"), 2, 6000) |
159 loc("Destroy the targets!"), 2, 6000) |
164 SetWind(50) |
160 SetWind(50) |
165 spawnTargets() |
161 spawnTargets() |
166 elseif gamePhase == 4 then |
162 elseif gamePhase == 4 then |
167 local caption = loc("Bounciness") |
163 local caption = loc("Bounciness") |
168 if INTERFACE == "desktop" then |
164 ctrl = loc("You can set the bounciness of grenades (and grenade-like weapons).").."|".. |
169 ctrl = loc("You can set the bounciness of grenades (and grenade-like weapons).").."|".. |
165 loc("Grenades with high bounciness bounce a lot and behave chaotic.").."|".. |
170 loc("Grenades with high bounciness bounce a lot and behave chaotic.").."|".. |
166 loc("With low bounciness, it barely bounces at all, but it is much more predictable.").."|".. |
171 loc("With low bounciness, it barely bounces at all, but it is much more predictable.").."|".. |
167 loc("Try out different bounciness levels to reach difficult targets.").."|" |
172 loc("Try out different bounciness levels to reach difficult targets.").."|".. |
168 if INTERFACE == "desktop" then |
173 loc("Set bounciness: [Left Shift] + [1]-[5]") |
169 ctrl = ctrl .. loc("Set bounciness: [Left Shift] + [1]-[5]") |
174 elseif INTERFACE == "touch" then |
170 elseif INTERFACE == "touch" then |
175 -- FIXME: Bounciness can't be set in touch yet. :( |
171 ctrl = ctrl .. loc("Change bounciness: Tap [B]") |
176 caption = loc("Well done.") |
|
177 ctrl = loc("You're doing well! Here are more targets for you.") |
|
178 end |
172 end |
179 |
173 |
180 ShowMission(loc("Basic Grenade Training"), caption, ctrl, 2, 20000) |
174 ShowMission(loc("Basic Grenade Training"), caption, ctrl, 2, 20000) |
181 spawnTargets() |
175 spawnTargets() |
182 elseif gamePhase == 5 then |
176 elseif gamePhase == 5 then |