split WorldGenerator::generatePrototype
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user