mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-16 10:19:27 +02:00
6aed6d6317
Add map loader
14 lines
363 B
Lua
14 lines
363 B
Lua
local b = require "map_gen.shared.builders"
|
|
local degrees = require "utils.math".degrees
|
|
local pic = require "map_gen.data.presets.manhattan"
|
|
pic = b.decompress(pic)
|
|
|
|
local shape = b.picture(pic)
|
|
shape = b.translate(shape, 10, -96)
|
|
shape = b.scale(shape,2,2)
|
|
shape = b.rotate(shape, degrees(-22.5))
|
|
|
|
shape = b.change_tile(shape, false, "deepwater")
|
|
|
|
return shape
|