mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-14 10:13:13 +02:00
48 lines
1.7 KiB
Lua
48 lines
1.7 KiB
Lua
map_gen_decoratives = false -- Generate our own decoratives
|
|
map_gen_rows_per_tick = 8 -- Inclusive integer between 1 and 32. Used for map_gen_threaded, higher numbers will generate map quicker but cause more lag.
|
|
|
|
-- 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 big_circle = circle_builder(150)
|
|
local small_circle = circle_builder(140)
|
|
local crop = rectangle_builder(300,150)
|
|
crop = translate(crop,0,-75)
|
|
local arc = compound_and{big_circle, invert(small_circle), invert(crop)}
|
|
arc = scale(arc,12,4)
|
|
|
|
local circle = circle_builder(200)
|
|
local ball1 = translate(circle, 0,820)
|
|
local ball2 = translate(circle, -920,740)
|
|
local ball3 = translate(circle, 920,740)
|
|
local rectangle = rectangle_builder(25,40)
|
|
local arm1 = translate(rectangle, 0, 610)
|
|
local arm2 = translate(rectangle, -920, 530)
|
|
local arm3 = translate(rectangle, 920, 530)
|
|
|
|
local arc1 = compound_or{arc, ball1,ball2,ball3,arm1,arm2,arm3}
|
|
arc1 = single_pattern_builder(arc1, 2760,2760)
|
|
|
|
local root2 = math.sqrt(2)
|
|
circle = circle_builder(200 / root2)
|
|
ball1 = translate(circle, -0,770)
|
|
ball2 = translate(circle, -920,690)
|
|
ball3 = translate(circle, 920,690)
|
|
rectangle = rectangle_builder(25,40)
|
|
arm1 = translate(rectangle, 0, 610)
|
|
arm2 = translate(rectangle, -920, 530)
|
|
arm3 = translate(rectangle, 920, 530)
|
|
|
|
local arc2 = compound_or{arc, ball1,ball2,ball3,arm1,arm2,arm3}
|
|
arc2 = single_pattern_builder(arc2, 2760,2760)
|
|
|
|
local arc2 = rotate(arc2,degrees(45))
|
|
arc2 = scale(arc2, root2,root2)
|
|
arc2 = translate(arc2, -330,-1375)
|
|
|
|
local map = compound_or{arc1,arc2}
|
|
map = translate(map,0,-700)
|
|
--map = scale(map, .2, .2)
|
|
|
|
return map |