diff options
Diffstat (limited to 'src/world.cpp')
-rw-r--r-- | src/world.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/world.cpp b/src/world.cpp index 71098c6..d340cc1 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -39,13 +39,13 @@ void world_t::generate_tile(ssize_t x, ssize_t y, tile_t *tile) { float waterlevel, height; - waterlevel = perlin.get(x, y, 100.0f) * 0.3f + - perlin.get(x, y, 50.0f) * 0.1f; + waterlevel = perlin.get(x, y, 1000.0f) * 0.3f + + perlin.get(x, y, 500.0f) * 0.1f; - height = perlin.get(x, y, 30.0f) * 0.6f + - perlin.get(x, y, 15.0f) * 0.25f + - perlin.get(x, y, 7.0f) * 0.1f + - perlin.get(x, y, 3.0f) * 0.05f; + height = perlin.get(x, y, 60.0f) * 0.6f + + perlin.get(x, y, 30.0f) * 0.25f + + perlin.get(x, y, 14.0f) * 0.1f + + perlin.get(x, y, 6.0f) * 0.05f; if (height < waterlevel - 0.2f) tile->type = -1; |