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

22 lines
603 B
Lua
Raw Normal View History

2018-05-08 22:23:07 +02:00
local b = require "map_gen.shared.builders"
2018-11-06 14:08:33 +02:00
local degrees = require "utils.math".degrees
2018-02-05 00:12:36 +02:00
2018-05-08 22:23:07 +02:00
local circle = b.circle(16)
local square = b.rectangle(30)
square = b.rotate(square, degrees(45))
2018-02-05 00:12:36 +02:00
2018-05-08 22:23:07 +02:00
local heart = b.any{b.translate(circle, -14, 0), b.translate(circle, 14, 0), b.translate(square, 0, 14)}
--local hollow_heart = b.all{b.invert(heart), b.scale(heart, 2, 2)}
2018-02-05 00:12:36 +02:00
2018-05-08 22:23:07 +02:00
heart = b.translate(heart, 0, -10)
heart = b.scale(heart, 51/60, 1)
local hearts = b.grow(heart, heart, 52, 0.5)
2018-02-05 00:12:36 +02:00
2018-05-08 22:23:07 +02:00
local line = b.line_y(2)
local map = b.any{line, hearts}
map = b.translate(map, 0, 16)
map = b.scale(map, 12,12)
2018-02-05 00:12:36 +02:00
2018-11-06 14:08:33 +02:00
return map