mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-19 22:41:52 +00:00
move waterline to params
This commit is contained in:
parent
4e091873d4
commit
8658a5eb6b
1 changed files with 1 additions and 2 deletions
|
|
@ -93,11 +93,10 @@ function DiamondSquare(size, roughness, seed) {
|
|||
}
|
||||
}
|
||||
|
||||
function generation({seed,worldHeight=80}={}) {
|
||||
function generation({seed,worldHeight=80,waterline=20}={}) {
|
||||
// Selected empirically
|
||||
var size = 10000000;
|
||||
var space = new DiamondSquare(size, size / 1000, seed);
|
||||
var waterline = 20;
|
||||
|
||||
function generateSimpleChunk(chunkX, chunkZ) {
|
||||
var chunk = new Chunk();
|
||||
|
|
|
|||
Loading…
Reference in a new issue