share/hedgewars/Data/Scripts/Multiplayer/DiagonalMaze.lua
changeset 10604 f2f9928ea2e7
child 10611 58cad46782ff
equal deleted inserted replaced
10603:bda5c7caf396 10604:f2f9928ea2e7
       
     1 HedgewarsScriptLoad("/Scripts/Draw.lua")
       
     2 
       
     3 function onPreviewInit()
       
     4 onGameInit()
       
     5 end
       
     6 
       
     7 function onGameInit()
       
     8     MapGen = mgDrawn
       
     9     TemplateFilter = 0
       
    10     for y = 48,2048,200 do
       
    11        for x = 48,4048,200 do
       
    12             if GetRandom(2) == 0 then
       
    13                 AddPoint(x,y,1)
       
    14                 AddPoint(x+200,y+200)
       
    15             else
       
    16                 AddPoint(x,y+200,1)
       
    17                 AddPoint(x+200,y)
       
    18             end
       
    19         end
       
    20     end
       
    21     FlushPoints()
       
    22 end