1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-12 02:28:02 +02:00

Added template

This commit is contained in:
grilledham 2017-12-24 16:07:07 +00:00
parent b03567f507
commit b92ac4e95b
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,27 @@
return {
height = 20,
width = 20,
data =
{
{6,10,14,10},
{6,10,14,10},
{6,10,14,10},
{6,10,14,10},
{6,10,14,10},
{6,10,14,10},
{6,10,14,10},
{6,10,14,10},
{6,10,14,10},
{6,10,14,10},
{23,10,27,10},
{23,10,27,10},
{23,10,27,10},
{23,10,27,10},
{23,10,27,10},
{23,10,27,10},
{23,10,27,10},
{23,10,27,10},
{23,10,27,10},
{23,10,27,10},
}
}

View File

@ -0,0 +1,17 @@
--require "locale.gen_combined.grilledham_map_gen.map_gen_no_thread"
require "locale.gen_combined.grilledham_map_gen.map_gen"
local pic = require "locale.gen_combined.grilledham_map_gen.data.template"
local pic = decompress(pic)
local map = picture_builder(pic)
-- this changes the size of the map
--map = scale(map, 2, 2)
-- this moves the map, effectively changing the spawn point.
--map = translate(map, 0, -200)
-- this sets the tile outside the bounds of the map to deepwater, remove this and it will be void.
--map = change_tile(map, false, "deepwater")
return map

View File

@ -18,6 +18,7 @@ in this file and your run_*type*_module(event) function will be called.
-- Need to copy the file you want from the _locale folder to this one for it to be included
-- only get what you need, otherwise the save file is too big!
--MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.template"
--MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.mobius_strip"
--MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.antfarm"
--MAP_GEN = require "locale.gen_combined.grilledham_map_gen.presets.creation_of_adam"