share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua
branchspacecampaign
changeset 9615 86b82816b222
parent 9614 7fa70d381c75
child 9642 8a691e0f117a
equal deleted inserted replaced
9614:7fa70d381c75 9615:86b82816b222
     7 HedgewarsScriptLoad("/Scripts/Animate.lua")
     7 HedgewarsScriptLoad("/Scripts/Animate.lua")
     8 HedgewarsScriptLoad("/Missions/Campaign/A_Space_Adventure/global_functions.lua")
     8 HedgewarsScriptLoad("/Missions/Campaign/A_Space_Adventure/global_functions.lua")
     9 
     9 
    10 ----------------- VARIABLES --------------------
    10 ----------------- VARIABLES --------------------
    11 -- globals
    11 -- globals
    12 local missionName = loc("Chasing ghosts in moon")
    12 local missionName = loc("Chasing the blue hog")
    13 local challengeObjectives = loc("Use your available weapons in order to catch the other hog").."|"..
    13 local challengeObjectives = loc("Use your available weapons in order to catch the other hog").."|"..
    14 	loc("You have to stand very close to him")
    14 	loc("You have to stand very close to him")
    15 local currentPosition = 1
    15 local currentPosition = 1
    16 local previousTimeLeft = 0
    16 local previousTimeLeft = 0
    17 local startChallenge = false
    17 local startChallenge = false
    64 	AddTeam(teamA.name, teamA.color, "Bone", "Island", "HillBilly", "cm_birdy")
    64 	AddTeam(teamA.name, teamA.color, "Bone", "Island", "HillBilly", "cm_birdy")
    65 	hero.gear = AddHog(hero.name, 0, 1, "war_desertgrenadier1")
    65 	hero.gear = AddHog(hero.name, 0, 1, "war_desertgrenadier1")
    66 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
    66 	AnimSetGearPosition(hero.gear, hero.x, hero.y)
    67 	-- Crazy Runner
    67 	-- Crazy Runner
    68 	AddTeam(teamB.name, teamB.color, "Bone", "Island", "HillBilly", "cm_birdy")
    68 	AddTeam(teamB.name, teamB.color, "Bone", "Island", "HillBilly", "cm_birdy")
    69 	runner.gear = AddHog(runner.name, 0, 100, "war_desertgrenadier1")
    69 	runner.gear = AddHog(runner.name, 0, 100, "sth_Sonic")
    70 	AnimSetGearPosition(runner.gear, runner.places[1].x, runner.places[1].y)
    70 	AnimSetGearPosition(runner.gear, runner.places[1].x, runner.places[1].y)
    71 	HogTurnLeft(runner.gear, true)
    71 	HogTurnLeft(runner.gear, true)
    72 	
    72 	
    73 	initCheckpoint("moon02")
    73 	initCheckpoint("moon02")
    74 	
    74