2018-05-08 22:23:07 +02:00
|
|
|
local b = require "map_gen.shared.builders"
|
|
|
|
|
2018-01-24 21:52:40 +02:00
|
|
|
local scale_factor = 64
|
|
|
|
|
|
|
|
local pic = require "map_gen.data.presets.crosses3"
|
2018-05-08 22:23:07 +02:00
|
|
|
pic = b.decompress(pic)
|
2018-01-24 21:52:40 +02:00
|
|
|
|
2018-05-08 22:23:07 +02:00
|
|
|
local shape = b.picture(pic)
|
|
|
|
shape = b.scale(shape, scale_factor, scale_factor)
|
2018-01-24 21:52:40 +02:00
|
|
|
|
2018-05-08 22:23:07 +02:00
|
|
|
local map = b.single_pattern(shape, (pic.width - 24.5 ) * scale_factor + 6, (pic.height - 21.5) * scale_factor - 6)
|
|
|
|
map = b.rotate(map, degrees(45))
|
|
|
|
map = b.translate(map, 48, -176)
|
2018-01-24 21:52:40 +02:00
|
|
|
|
|
|
|
return map
|