Updated Minecraft Classic map generation algorithm (markdown)

Alex Mulkerrin 2015-12-02 16:58:34 +00:00
parent 5b493e55cd
commit 67bf739960

@ -52,13 +52,13 @@ Let heightLow be noise1.compute( x*1.3, z*1.3) / 6 - 4
Let heightHigh be noise2.compute( x*1.3, z*1.3) / 5 + 6
if noise3.compute(x,z) /8 > 0 {
set heightResult to heightLow
set heightResult to heightLow
} else {
set heightResult to the maximum of heightLow and heightHigh
set heightResult to the maximum of heightLow and heightHigh
}
if heightResult < 0 {
set heightResult to 8/10 its value
set heightResult to 8/10 its value
}
heightMap(x,z) is then set to the integer component of heightResult.