diff --git a/_map_previews/lines_and_balls_8192by8192.PNG b/_map_previews/lines_and_balls_8192by8192.PNG new file mode 100644 index 00000000..73c2161c Binary files /dev/null and b/_map_previews/lines_and_balls_8192by8192.PNG differ diff --git a/locale/gen_combined/grilledham_map_gen/presets/lines_and_balls.lua b/locale/gen_combined/grilledham_map_gen/presets/lines_and_balls.lua new file mode 100644 index 00000000..21262b38 --- /dev/null +++ b/locale/gen_combined/grilledham_map_gen/presets/lines_and_balls.lua @@ -0,0 +1,49 @@ +map_gen_decoratives = false -- Generate our own decoratives +map_gen_rows_per_tick = 4 -- Inclusive integer between 1 and 32. Used for map_gen_threaded, higher numbers will generate map quicker but cause more lag. + +-- Recommend to use map_gen, but map_gen_not_threaded may be useful for testing / debugging. +require "locale.gen_combined.grilledham_map_gen.map_gen_not_threaded" +--require "locale.gen_combined.grilledham_map_gen.map_gen" +require "locale.gen_combined.grilledham_map_gen.builders" + +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 \ No newline at end of file diff --git a/map_layout.lua b/map_layout.lua index cb306855..246d6c6e 100644 --- a/map_layout.lua +++ b/map_layout.lua @@ -33,6 +33,7 @@ in this file and your run_*type*_module(event) function will be called. --MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.turkey" --require "locale.grilledham_map_gen.presets.UK" --MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.north_america" +--MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.lines_and_balls" --shapes-- --require "locale.gen_shape.left"