split WorldGenerator::generatePrototype

This commit is contained in:
MihailRis
2024-08-24 07:56:54 +03:00
parent 4c697c0f46
commit a1129ccf38
3 changed files with 33 additions and 9 deletions
+4 -2
View File
@@ -102,9 +102,11 @@ end
function generate_biome_parameters(x, y, w, h, seed)
local tempmap = Heightmap(w, h)
tempmap.noiseSeed = seed + 5324
tempmap:noise({x, y}, 0.8, 3)
tempmap:noise({x, y}, 0.4, 4)
local hummap = Heightmap(w, h)
hummap.noiseSeed = seed + 953
hummap:noise({x, y}, 0.2, 2)
hummap:noise({x, y}, 0.16, 4)
tempmap:pow(2)
hummap:pow(2)
return tempmap, hummap
end