mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-16 10:19:27 +02:00
6aed6d6317
Add map loader
22 lines
603 B
Lua
22 lines
603 B
Lua
local b = require "map_gen.shared.builders"
|
|
local degrees = require "utils.math".degrees
|
|
|
|
local circle = b.circle(16)
|
|
local square = b.rectangle(30)
|
|
square = b.rotate(square, degrees(45))
|
|
|
|
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)}
|
|
|
|
heart = b.translate(heart, 0, -10)
|
|
heart = b.scale(heart, 51/60, 1)
|
|
local hearts = b.grow(heart, heart, 52, 0.5)
|
|
|
|
local line = b.line_y(2)
|
|
|
|
local map = b.any{line, hearts}
|
|
map = b.translate(map, 0, 16)
|
|
map = b.scale(map, 12,12)
|
|
|
|
return map
|