10413
|
1 |
HedgewarsScriptLoad("/Scripts/Locale.lua")
|
|
2 |
|
|
3 |
isSinglePlayer = true
|
|
4 |
|
|
5 |
-- trying to allow random theme, but fixed theme objects...
|
|
6 |
-- Also skip some ugly themes, or ones where the sky is "meh"
|
|
7 |
--local themes = { "Art","Cake","City","EarthRise","Halloween","Olympics","Underwater","Bamboo","Castle","Compost","Eyes","Hell","Planes","Bath","Cave","CrazyMission","Freeway","Island","Sheep","Blox","Cheese","Deepspace","Fruit","Jungle","Snow","Brick","Christmas","Desert","Golf","Nature","Stage" }
|
|
8 |
local themes = {"Christmas","Hell","Bamboo","City","Island","Bath","Compost","Jungle","Desert","Nature","Olympics","Brick","EarthRise","Sheep","Cake","Freeway","Snow","Castle","Fruit","Stage","Cave","Golf","Cheese","Halloween"}
|
|
9 |
|
|
10 |
function onGameInit()
|
|
11 |
-- Ensure people get same map for same theme
|
|
12 |
Theme = themes[GetRandom(#themes)+1]
|
|
13 |
Seed = ClimbHome
|
|
14 |
TurnTime = 999999999
|
|
15 |
EnableGameFlags(gfOneClanMode)
|
|
16 |
DisableGameFlags(gfBottomBorder+gfBorder)
|
|
17 |
CaseFreq = 0
|
|
18 |
Explosives = 0
|
|
19 |
Map = "ClimbHome"
|
10581
|
20 |
AddTeam(loc("Lonely Hog"), 0xDD0000, "Simple", "Island", "Default")
|
10413
|
21 |
player = AddHog(loc("Climber"), 0, 1, "NoHat")
|
10581
|
22 |
AddTeam(loc("Water Gods"), 0x4980C1, "Simple", "Island", "Default")
|
|
23 |
dummyHog = AddHog("Poseidon", 5, 1, "NoHat")
|
|
24 |
--HideHog(dummyHog)
|
10413
|
25 |
end
|