author | sheepluva |
Wed, 02 Sep 2015 04:59:17 +0200 | |
changeset 11063 | c57f815cbb14 |
parent 10611 | 58cad46782ff |
child 11064 | 884f40b6f640 |
permissions | -rw-r--r-- |
10604 | 1 |
|
2 |
function onPreviewInit() |
|
3 |
onGameInit() |
|
4 |
end |
|
5 |
||
6 |
function onGameInit() |
|
7 |
MapGen = mgDrawn |
|
8 |
TemplateFilter = 0 |
|
11063 | 9 |
local step = 80 + 10 * MapFeatureSize; |
10 |
for y = 48,2048,step do |
|
11 |
for x = 48,4048,step do |
|
10604 | 12 |
if GetRandom(2) == 0 then |
13 |
AddPoint(x,y,1) |
|
11063 | 14 |
AddPoint(x+step,y+step) |
10604 | 15 |
else |
11063 | 16 |
AddPoint(x,y+step,1) |
17 |
AddPoint(x+step,y) |
|
10604 | 18 |
end |
19 |
end |
|
20 |
end |
|
21 |
FlushPoints() |
|
22 |
end |