share/hedgewars/Data/Missions/Training/Basic_Training_-_Cluster_Bomb.lua
changeset 8679 a8bdcf7bec20
parent 8043 da083f8d95e6
child 10289 c3a77ff02a23
equal deleted inserted replaced
8678:fb62d23c70f8 8679:a8bdcf7bec20
     1 HedgewarsScriptLoad("/Scripts/Locale.lua")
     1 HedgewarsScriptLoad("/Scripts/Locale.lua")
     2 
     2 
     3 local player = nil
     3 local player = nil
     4 local scored = 0
     4 local scored = 0
     5 local end_timer = 5000
     5 local end_timer = 1000
     6 local game_lost = false
     6 local game_lost = false
     7 local time_goal = 0
     7 local time_goal = 0
     8 
     8 
     9 function spawnTarget()
     9 function spawnTarget()
    10 
    10 
    74 
    74 
    75 	if scored == 12 or game_lost then
    75 	if scored == 12 or game_lost then
    76 		if end_timer == 0 then
    76 		if end_timer == 0 then
    77 			EndGame()
    77 			EndGame()
    78 		else
    78 		else
    79 			end_timer = end_timer - 20
       
    80 			TurnTimeLeft = time_goal
    79 			TurnTimeLeft = time_goal
    81 		end
    80 		end
       
    81         end_timer = end_timer - 20
    82 	end
    82 	end
    83 
    83 
    84 end
    84 end
    85 
    85 
    86 function onNewTurn()
    86 function onNewTurn()