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

21 lines
673 B
Lua

-- Recommend to use generate, but generate_not_threaded may be useful for testing / debugging.
require "map_gen.shared.generate_not_threaded"
--require "map_gen.shared.generate"
local circle = circle_builder(16)
local square = rectangle_builder(30)
square = rotate(square, degrees(45))
local heart = compound_or{translate(circle, -14, 0), translate(circle, 14, 0), translate(square, 0, 14)}
--local hollow_heart = compound_and{invert(heart), scale(heart, 2, 2)}
heart = translate(heart, 0, -10)
heart = scale(heart, 51/60, 1)
local hearts = grow(heart, heart, 52, 0.5)
local line = line_y_builder(4)
map = compound_or{line, hearts}
--map = scale(map, 6, 6)
return map