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

28 lines
1.2 KiB
Lua
Raw Normal View History

--TODO:
--Make sure all resources are found in the starting area, regardless of coverup due to void.
--Small parts of the map are unreachable due to void and the pattern - unsure to fix or leave.
-- -Orange 27 May 2019
2018-05-08 22:23:07 +02:00
local b = require "map_gen.shared.builders"
local ScenarioInfo = require 'features.gui.info'
--Special thanks to the following beta testers for their help with the map and map info: T-A-R
2019-06-20 03:23:24 +02:00
ScenarioInfo.set_map_name('X-Cross')
ScenarioInfo.set_map_description('Starting on the crossroads, you must choose wise to find a to escape.\nDo not get lost in this infinite maze of crosses.\nAnd careful not to hurt your neck, since this time, the maze is slightly on an angle.')
ScenarioInfo.add_map_extra_info('Confined, but predicatable space provides a moderate challenge.')
2018-05-08 22:23:07 +02:00
2018-01-24 21:52:40 +02:00
local scale_factor = 64
local pic = require "map_gen.data.presets.crosses3"
2018-11-06 14:08:33 +02:00
local degrees = require "utils.math".degrees
2018-05-08 22:23:07 +02:00
pic = b.decompress(pic)
2018-01-24 21:52:40 +02:00
2018-05-08 22:23:07 +02:00
local shape = b.picture(pic)
shape = b.scale(shape, scale_factor, scale_factor)
2018-01-24 21:52:40 +02:00
2018-05-08 22:23:07 +02:00
local map = b.single_pattern(shape, (pic.width - 24.5 ) * scale_factor + 6, (pic.height - 21.5) * scale_factor - 6)
map = b.rotate(map, degrees(45))
map = b.translate(map, 48, -176)
2018-01-24 21:52:40 +02:00
2018-11-06 14:08:33 +02:00
return map