share/hedgewars/Data/Scripts/Multiplayer/DiagonalMaze.lua
author mikade <redgrinner@gmail.com>
Wed, 27 May 2015 22:34:11 +0900
changeset 10967 1434cec96ca3
parent 10611 58cad46782ff
child 11063 c57f815cbb14
permissions -rw-r--r--
- preview generation for rubbers, air-mines, crates, barrels - add map previews for the other 6 TechRacer maps - make TechRacer (more or less) work out the box - randomize map by clicking on preview (when map unspecified)


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