mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-03-03 14:53:01 +02:00
hearts map
This commit is contained in:
parent
74178485f7
commit
b47344c322
21
map_gen/presets/hearts.lua
Normal file
21
map_gen/presets/hearts.lua
Normal file
@ -0,0 +1,21 @@
|
||||
-- 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
|
Loading…
x
Reference in New Issue
Block a user