add test biomes

This commit is contained in:
MihailRis
2024-08-19 20:11:55 +03:00
parent 4bd5f1b629
commit 572eaec429
5 changed files with 99 additions and 5 deletions
+21
View File
@@ -19,6 +19,20 @@ biomes = {
{block="base:stone", height=-1},
{block="base:bazalt", height=1},
}
},
desert = {
parameters = {
{value=0.0, weight=1.0},
{value=0.5, weight=1.0},
},
sea_layers = {
{block="base:water", height=-1},
},
layers = {
{block="base:sand", height=6},
{block="base:stone", height=-1},
{block="base:bazalt", height=1},
}
}
}
@@ -65,3 +79,10 @@ function generate_heightmap(x, y, w, h, seed)
map:crop(0, 0, w, h)
return map
end
function generate_biome_parameters(x, y, w, h, seed)
local tempmap = Heightmap(w, h)
tempmap:noise({x, y}, 0.4, 3)
local hummap = Heightmap(w, h)
return tempmap, hummap
end