Mapgen: add peaks register from image

This commit is contained in:
Van
2026-01-09 18:44:26 +03:00
parent 395f45aeb9
commit a97d806f6b
6 changed files with 138 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ local climat0 = {
}
local v = vector.new
--[[
mapGenerator:register2DPeaks('midgard',
{
landscapeNoise = land1,
@@ -132,6 +132,21 @@ mapGenerator:register2DPeaks('midgard',
},{
v(200, 0, 100),
v(-300, 0, -200),
})--]]
mapGenerator:register2DPeaksFromFile('midgard', 'map.ff', {x=250, y=250}, {
['#396fffff'] = {noise = {
landscapeNoise = land1,
tempNoise = climat2,
humidityNoise = climat2,
}
},
['3fff26ff'] = {noise = {
landscapeNoise = land2,
tempNoise = climat2,
humidityNoise = climat2,
}
}
})
mapGenerator:registerCavern('midgard', 'cavern1', {

Binary file not shown.