MapGenV: create mapgen

This commit is contained in:
Van
2025-09-25 14:42:40 +00:00
parent c0eb6b5920
commit e17b2d522f
7 changed files with 347 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
local MapGen = Mod:new()
MapGen.Class = MapGen.require('MapGen')
Api.addModToGlobalSpace(MapGen, 'Core.MapGen')
-- DEBUG MAPGEN
---@type MapGenV
local MapGen = MapGen.Class:new()
MapGen:RegisterLayer("world", -1000, 500)
MapGen:RegisterRegion("world",
{x = -1000, y = 0, z = -1000},
{x = 1000, y = 0, z = 1000},
{
landscapeNoise = {
offset = 0,
scale = 10,
spread = {x = 10, y = 10, z = 10},
seed = 47,
octaves = 4,
persistence = 0.3,
lacunarity = 3,
}
},
true)
MapGen:enable()