2018-05-10 21:42:24 +02:00
|
|
|
local b = require "map_gen.shared.builders"
|
2017-09-23 18:08:18 +02:00
|
|
|
|
2018-05-10 21:42:24 +02:00
|
|
|
local size = 8 * 32
|
2017-09-23 18:08:18 +02:00
|
|
|
|
2018-05-10 21:42:24 +02:00
|
|
|
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)
|
2017-09-23 18:08:18 +02:00
|
|
|
|
2018-05-10 21:42:24 +02:00
|
|
|
local shape = b.any{stone, hazard, concrete}
|
|
|
|
shape = b.subtract(shape, empty)
|
2017-09-28 17:43:42 +02:00
|
|
|
|
2018-05-10 21:42:24 +02:00
|
|
|
shape = b.single_pattern(shape, size, size)
|
2017-09-23 18:08:18 +02:00
|
|
|
|
2018-05-10 21:42:24 +02:00
|
|
|
return shape
|