share/hedgewars/Data/Missions/Training/Basic_Training_-_Grenade.lua
changeset 14388 cf49fac6e88a
parent 14382 f9d4b8222903
child 14464 ead8928a59f8
equal deleted inserted replaced
14386:35af3d1ccdfc 14388:cf49fac6e88a
   125 	if gamePhase == 0 then
   125 	if gamePhase == 0 then
   126 		if INTERFACE == "desktop" then
   126 		if INTERFACE == "desktop" then
   127 			ctrl = loc("Open ammo menu: [Right click]").."|"..
   127 			ctrl = loc("Open ammo menu: [Right click]").."|"..
   128 			loc("Select weapon: [Left click]")
   128 			loc("Select weapon: [Left click]")
   129 		else
   129 		else
   130 			ctrl = loc("Open ammo menu: Tap the [suitcase]")
   130 			ctrl = loc("Open ammo menu: Tap the [Suitcase]")
   131 		end
   131 		end
   132 		ShowMission(loc("Basic Grenade Training"), loc("Select Weapon"), loc("To begin with the training, select the grenade from the ammo menu!").."|"..
   132 		ShowMission(loc("Basic Grenade Training"), loc("Select Weapon"), loc("To begin with the training, select the grenade from the ammo menu!").."|"..
   133 		ctrl, 2, 5000)
   133 		ctrl, 2, 5000)
   134 	elseif gamePhase == 1 then
   134 	elseif gamePhase == 1 then
   135 		if INTERFACE == "desktop" then
   135 		if INTERFACE == "desktop" then
   136 			ctrl = loc("Attack: [Space]").."|"..
   136 			ctrl = loc("Attack: [Space]").."|"..
   137 			loc("Aim: [Up]/[Down]").."|"..
   137 			loc("Aim: [Up]/[Down]").."|"..
   138 			loc("Change direction: [Left]/[Right]")
   138 			loc("Change direction: [Left]/[Right]")
   139 		elseif INTERFACE == "touch" then
   139 		elseif INTERFACE == "touch" then
   140 			ctrl = loc("Attack: Tap the [bomb]").."|"..
   140 			ctrl = loc("Attack: Tap the [Bomb]").."|"..
   141 			loc("Aim: [Up]/[Down]").."|"..
   141 			loc("Aim: [Up]/[Down]").."|"..
   142 			loc("Change direction: [Left]/[Right]")
   142 			loc("Change direction: [Left]/[Right]")
   143 		end
   143 		end
   144 		ShowMission(loc("Basic Grenade Training"), loc("Warming Up"),
   144 		ShowMission(loc("Basic Grenade Training"), loc("Warming Up"),
   145 		loc("Throw a grenade to destroy the target!").."|"..
   145 		loc("Throw a grenade to destroy the target!").."|"..
   149 		spawnTargets()
   149 		spawnTargets()
   150 	elseif gamePhase == 2 then
   150 	elseif gamePhase == 2 then
   151 		if INTERFACE == "desktop" then
   151 		if INTERFACE == "desktop" then
   152 			ctrl = loc("Set detonation timer: [1]-[5]")
   152 			ctrl = loc("Set detonation timer: [1]-[5]")
   153 		elseif INTERFACE == "touch" then
   153 		elseif INTERFACE == "touch" then
   154 			ctrl = loc("Change detonation timer: Tap the [clock]")
   154 			ctrl = loc("Change detonation timer: Tap the [Clock]")
   155 		end
   155 		end
   156 		ShowMission(loc("Basic Grenade Training"), loc("Timer"),
   156 		ShowMission(loc("Basic Grenade Training"), loc("Timer"),
   157 		loc("You can change the detonation timer of grenades.").."|"..
   157 		loc("You can change the detonation timer of grenades.").."|"..
   158 		loc("Grenades explode after 1 to 5 seconds (you decide).").."|"..
   158 		loc("Grenades explode after 1 to 5 seconds (you decide).").."|"..
   159 		ctrl, 2, 15000)
   159 		ctrl, 2, 15000)
   171 			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.").."|"..
   172 			loc("Try out different bounciness levels to reach difficult targets.").."|"..
   172 			loc("Try out different bounciness levels to reach difficult targets.").."|"..
   173 			loc("Set bounciness: [Left Shift] + [1]-[5]")
   173 			loc("Set bounciness: [Left Shift] + [1]-[5]")
   174 		elseif INTERFACE == "touch" then
   174 		elseif INTERFACE == "touch" then
   175 			-- FIXME: Bounciness can't be set in touch yet. :(
   175 			-- FIXME: Bounciness can't be set in touch yet. :(
   176 			caption = loc("Well done!")
   176 			caption = loc("Well done.")
   177 			ctrl = loc("You're getting pretty good! Here are more targets for you.")
   177 			ctrl = loc("You're doing well! Here are more targets for you.")
   178 		end
   178 		end
   179 
   179 
   180 		ShowMission(loc("Basic Grenade Training"), caption, ctrl, 2, 20000)
   180 		ShowMission(loc("Basic Grenade Training"), caption, ctrl, 2, 20000)
   181 		spawnTargets()
   181 		spawnTargets()
   182 	elseif gamePhase == 5 then
   182 	elseif gamePhase == 5 then