1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00
RedMew/map_gen/presets/crosses3.lua

15 lines
422 B
Lua
Raw Normal View History

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