summaryrefslogtreecommitdiff
path: root/src/world.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-10-14 15:34:53 +0200
committerPaweł Redman <pawel.redman@gmail.com>2017-10-14 15:34:53 +0200
commitbb0a7bfe31714ff56ce1c1ce428cdf240804db14 (patch)
treeb5c5137f80443343e9d46bda3c7b96c777142181 /src/world.cpp
parentb0edfd3fa2ad078677d43b743fdb78e5af52e99a (diff)
Oriented sprites and the human sprite.
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp12
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;