share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua
changeset 14382 f9d4b8222903
parent 13750 110d6c1e817f
child 14388 cf49fac6e88a
equal deleted inserted replaced
14381:32e8c81ca35c 14382:f9d4b8222903
   128 	spawnTargets()
   128 	spawnTargets()
   129 	ShowMission(loc("Basic Bazooka Training"), loc("Basic Training"), loc("Destroy all the targets!"), -amBazooka, 0)
   129 	ShowMission(loc("Basic Bazooka Training"), loc("Basic Training"), loc("Destroy all the targets!"), -amBazooka, 0)
   130 end
   130 end
   131 
   131 
   132 function newGamePhase()
   132 function newGamePhase()
       
   133 	local ctrl = ""
   133 	-- Spawn targets, update wind and ammo, show instructions
   134 	-- Spawn targets, update wind and ammo, show instructions
   134 	if gamePhase == 0 then
   135 	if gamePhase == 0 then
       
   136 		if INTERFACE == "desktop" then
       
   137 			ctrl = loc("Open ammo menu: [Right click]").."|"..
       
   138 			loc("Select weapon: [Left click]")
       
   139 		elseif INTERFACE == "touch" then
       
   140 			ctrl = loc("Open ammo menu: Tap the [suitcase]")
       
   141 		end
   135 		ShowMission(loc("Basic Bazooka Training"), loc("Select Weapon"), loc("To begin with the training, select the bazooka from the ammo menu!").."|"..
   142 		ShowMission(loc("Basic Bazooka Training"), loc("Select Weapon"), loc("To begin with the training, select the bazooka from the ammo menu!").."|"..
   136 		loc("Open ammo menu: [Right click]").."|"..
   143 		ctrl, 2, 5000)
   137 		loc("Select weapon: [Left click]"), 2, 5000)
       
   138 	elseif gamePhase == 1 then
   144 	elseif gamePhase == 1 then
   139 		ShowMission(loc("Basic Bazooka Training"), loc("My First Bazooka"), loc("Let's get started!").."|"..
   145 		if INTERFACE == "desktop" then
       
   146 			ctrl = loc("Attack: [Space]").."|"..
       
   147 			loc("Aim: [Up]/[Down]").."|"..
       
   148 			loc("Walk: [Left]/[Right]")
       
   149 		elseif INTERFACE == "touch" then
       
   150 			ctrl = loc("Attack: Tap the [bomb]").."|"..
       
   151 			loc("Aim: [Up]/[Down]").."|"..
       
   152 			loc("Walk: [Left]/[Right]")
       
   153 		end
       
   154 		ShowMission(loc("Basic Bazooka Training"), loc("My First Bazooka"),
       
   155 		loc("Let's get started!").."|"..
   140 		loc("Launch some bazookas to destroy the targets!").."|"..
   156 		loc("Launch some bazookas to destroy the targets!").."|"..
   141 		loc("Hold the Attack key pressed for more power.").."|"..
   157 		loc("Hold the Attack key pressed for more power.").."|"..
   142 		loc("Don't hit yourself!").."|"..
   158 		loc("Don't hit yourself!").."|"..
   143 		loc("Attack: [Space]").."|"..
   159 		ctrl, 2, 10000)
   144 		loc("Aim: [Up]/[Down]").."|"..
       
   145 		loc("Walk: [Left]/[Right]"), 2, 10000)
       
   146 		spawnTargets()
   160 		spawnTargets()
   147 	elseif gamePhase == 2 then
   161 	elseif gamePhase == 2 then
       
   162 		if INTERFACE == "desktop" then
       
   163 			ctrl = loc("You see the wind strength at the bottom right corner.")
       
   164 		elseif INTERFACE == "touch" then
       
   165 			ctrl = loc("You see the wind strength at the top.")
       
   166 		end
   148 		ShowMission(loc("Basic Bazooka Training"), loc("Wind"), loc("Bazookas are influenced by wind.").."|"..
   167 		ShowMission(loc("Basic Bazooka Training"), loc("Wind"), loc("Bazookas are influenced by wind.").."|"..
   149 		loc("You see the wind strength at the bottom right corner.").."|"..
   168 		ctrl.."|"..
   150 		loc("Destroy the targets!"), 2, 5000)
   169 		loc("Destroy the targets!"), 2, 5000)
   151 		SetWind(50)
   170 		SetWind(50)
   152 		spawnTargets()
   171 		spawnTargets()
   153 	elseif gamePhase == 3 then
   172 	elseif gamePhase == 3 then
   154 		-- Vaporize any bazookas still in the air
   173 		-- Vaporize any bazookas still in the air
   179 		loc("The next target is high in the sky."),
   198 		loc("The next target is high in the sky."),
   180 		2, 8000)
   199 		2, 8000)
   181 		SetWind(-33)
   200 		SetWind(-33)
   182 		spawnTargets()
   201 		spawnTargets()
   183 	elseif gamePhase == 6 then
   202 	elseif gamePhase == 6 then
       
   203 		if INTERFACE == "desktop" then
       
   204 			ctrl = loc("Precise Aim: [Left Shift] + [Up]/[Down]").."|"
       
   205 		end
   184 		ShowMission(loc("Basic Bazooka Training"), loc("Final Targets"),
   206 		ShowMission(loc("Basic Bazooka Training"), loc("Final Targets"),
   185 		loc("The final targets are quite tricky. You need to aim well.").."|"..
   207 		loc("The final targets are quite tricky. You need to aim well.").."|"..
   186 		loc("Precise Aim: [Left Shift] + [Up]/[Down]").."|"..
   208 		ctrl..
   187 		loc("Hint: It might be easier if you vary the angle only slightly."),
   209 		loc("Hint: It might be easier if you vary the angle only slightly."),
   188 		2, 12000)
   210 		2, 12000)
   189 		SetWind(75)
   211 		SetWind(75)
   190 		spawnTargets()
   212 		spawnTargets()
   191 	elseif gamePhase == 7 then
   213 	elseif gamePhase == 7 then