share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua
changeset 7877 b3fb94986255
parent 7165 aad1aea05f1e
child 8043 da083f8d95e6
equal deleted inserted replaced
7876:a366fbe91b58 7877:b3fb94986255
    44 	FindPlace(gear, true, 0, LAND_WIDTH)
    44 	FindPlace(gear, true, 0, LAND_WIDTH)
    45 	
    45 	
    46 	-- move the target to a higher vertical position
    46 	-- move the target to a higher vertical position
    47 	-- to ensure it's not somewhere down below
    47 	-- to ensure it's not somewhere down below
    48 	x, y = GetGearPosition(gear)
    48 	x, y = GetGearPosition(gear)
    49 	SetGearPosition(gear, x, 500)
    49 	SetGearPosition(gear, x, 0)
    50 end
    50 end
    51 
    51 
    52 -- This function is called before the game loads its
    52 -- This function is called before the game loads its
    53 -- resources.
    53 -- resources.
    54 -- It's one of the predefined function names that will
    54 -- It's one of the predefined function names that will
    82 
    82 
    83 	-- Create the player team
    83 	-- Create the player team
    84 	AddTeam(loc("'Zooka Team"), 14483456, "Simple", "Island", "Default")
    84 	AddTeam(loc("'Zooka Team"), 14483456, "Simple", "Island", "Default")
    85 	-- And add a hog to it
    85 	-- And add a hog to it
    86 	player = AddHog(loc("Hunter"), 0, 1, "NoHat")
    86 	player = AddHog(loc("Hunter"), 0, 1, "NoHat")
    87 	SetGearPosition(player, 1960, 1160)
    87 	SetGearPosition(player, 936, 136)
    88 end
    88 end
    89 
    89 
    90 -- This function is called when the round starts
    90 -- This function is called when the round starts
    91 -- it spawns the first target that has to be destroyed.
    91 -- it spawns the first target that has to be destroyed.
    92 -- In addition it shows the scenario goal(s).
    92 -- In addition it shows the scenario goal(s).