|
1 ------------------- ABOUT ---------------------- |
|
2 -- |
|
3 -- In the desert planet Hero will have to explore |
|
4 -- the dunes below the surface and find the hidden |
|
5 -- crates. It is told that one crate contains the |
|
6 -- lost part. |
|
7 |
|
8 |
|
9 HedgewarsScriptLoad("/Scripts/Locale.lua") |
|
10 HedgewarsScriptLoad("/Scripts/Animate.lua") |
|
11 |
|
12 ----------------- VARIABLES -------------------- |
|
13 -- hogs |
|
14 local hero = {} |
|
15 local bandit1 = {} |
|
16 -- teams |
|
17 local teamA = {} |
|
18 local teamB = {} |
|
19 local teamC = {} |
|
20 local teamD = {} |
|
21 -- hedgehogs values |
|
22 hero.name = "Hog Solo" |
|
23 hero.x = 340 |
|
24 hero.y = 200 |
|
25 bandit1.name = "Thanta" |
|
26 bandit1.x = 200 |
|
27 bandit1.y = 1280 |
|
28 teamB.name = loc("Frozen Bandits") |
|
29 teamB.color = tonumber("0033FF",16) -- blues |
|
30 teamC.name = loc("Hog Solo") |
|
31 teamC.color = tonumber("38D61C",16) -- green |
|
32 |
|
33 -------------- LuaAPI EVENT HANDLERS ------------------ |
|
34 |
|
35 function onGameInit() |
|
36 Seed = 1 |
|
37 --GameFlags = gfDisableWind |
|
38 TurnTime = 25000 |
|
39 CaseFreq = 0 |
|
40 MinesNum = 0 |
|
41 MinesTime = 1 |
|
42 Explosives = 0 |
|
43 Delay = 3 |
|
44 Map = "desert01_map" |
|
45 Theme = "Desert" |
|
46 |
|
47 -- Hog Solo |
|
48 AddTeam(teamC.name, teamC.color, "Bone", "Island", "HillBilly", "cm_birdy") |
|
49 hero.gear = AddHog(hero.name, 0, 100, "war_desertgrenadier1") |
|
50 AnimSetGearPosition(hero.gear, hero.x, hero.y) |
|
51 HogTurnLeft(hero.gear, true) |
|
52 -- Frozen Bandits |
|
53 AddTeam(teamB.name, teamB.color, "Bone", "Island", "HillBilly", "cm_birdy") |
|
54 bandit1.gear = AddHog(bandit1.name, 1, 120, "tophats") |
|
55 AnimSetGearPosition(bandit1.gear, bandit1.x, bandit1.y) |
|
56 HogTurnLeft(bandit1.gear, true) |
|
57 |
|
58 |
|
59 --AnimInit() |
|
60 --AnimationSetup() |
|
61 end |
|
62 |
|
63 function onGameStart() |
|
64 AnimWait(hero.gear, 3000) |
|
65 FollowGear(hero.gear) |
|
66 |
|
67 end |
|
68 |