share/hedgewars/Data/Scripts/Multiplayer/DiagonalMaze.lua
author nemo
Tue, 02 Dec 2014 14:26:16 -0500
changeset 10604 f2f9928ea2e7
child 10611 58cad46782ff
permissions -rw-r--r--
Sheepluva thought this was worth adding.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10604
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
     1
HedgewarsScriptLoad("/Scripts/Draw.lua")
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
     2
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
     3
function onPreviewInit()
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
     4
onGameInit()
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
     5
end
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
     6
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
     7
function onGameInit()
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
     8
    MapGen = mgDrawn
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
     9
    TemplateFilter = 0
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
    10
    for y = 48,2048,200 do
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
    11
       for x = 48,4048,200 do
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
    12
            if GetRandom(2) == 0 then
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
    13
                AddPoint(x,y,1)
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
    14
                AddPoint(x+200,y+200)
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
    15
            else
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
    16
                AddPoint(x,y+200,1)
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
    17
                AddPoint(x+200,y)
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
    18
            end
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
    19
        end
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
    20
    end
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
    21
    FlushPoints()
f2f9928ea2e7 Sheepluva thought this was worth adding.
nemo
parents:
diff changeset
    22
end