share/hedgewars/Data/Scripts/Multiplayer/DiagonalMaze.lua
changeset 10604 f2f9928ea2e7
child 10611 58cad46782ff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/share/hedgewars/Data/Scripts/Multiplayer/DiagonalMaze.lua	Tue Dec 02 14:26:16 2014 -0500
@@ -0,0 +1,22 @@
+HedgewarsScriptLoad("/Scripts/Draw.lua")
+
+function onPreviewInit()
+onGameInit()
+end
+
+function onGameInit()
+    MapGen = mgDrawn
+    TemplateFilter = 0
+    for y = 48,2048,200 do
+       for x = 48,4048,200 do
+            if GetRandom(2) == 0 then
+                AddPoint(x,y,1)
+                AddPoint(x+200,y+200)
+            else
+                AddPoint(x,y+200,1)
+                AddPoint(x+200,y)
+            end
+        end
+    end
+    FlushPoints()
+end