1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00
RedMew/map_gen/maps/crosses3.lua
2019-01-31 20:15:41 -05:00

17 lines
468 B
Lua

local b = require "map_gen.shared.builders"
local scale_factor = 64
local pic = require "map_gen.data.presets.crosses3"
local degrees = require "utils.math".degrees
pic = b.decompress(pic)
local shape = b.picture(pic)
shape = b.scale(shape, scale_factor, scale_factor)
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)
return map