mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
6aed6d6317
Add map loader
16 lines
460 B
Lua
16 lines
460 B
Lua
local b = require 'map_gen.shared.builders'
|
|
|
|
local size = 8 * 32
|
|
|
|
local concrete = b.tile('concrete')
|
|
local hazard = b.change_tile(b.rectangle(size - 4, size - 4), true, 'hazard-concrete-left')
|
|
local stone = b.change_tile(b.rectangle(size - 6, size - 6), true, 'stone-path')
|
|
local empty = b.rectangle(size - 8, size - 8)
|
|
|
|
local shape = b.any {stone, hazard, concrete}
|
|
shape = b.subtract(shape, empty)
|
|
|
|
shape = b.single_pattern(shape, size, size)
|
|
|
|
return shape
|