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

17 lines
435 B
Lua
Raw Normal View History

2018-10-06 14:46:18 +02:00
local b = require 'map_gen.shared.builders'
local beach = require 'map_gen.presets.beach'
2018-11-06 14:08:33 +02:00
local degrees = require "utils.math".degrees
2018-10-06 14:46:18 +02:00
local start_pound = b.circle(6)
start_pound = b.translate(start_pound, 0, -16)
start_pound = b.change_tile(start_pound, true, 'water')
beach = b.translate(beach, 0, -64)
local map = b.any {start_pound, beach, b.translate(b.flip_y(beach), -51200, 0)}
map = b.rotate(map, degrees(45))
return map