add test biomes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user