From 9226def3f107bb768034029f6108d2b657182acc Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 13 Apr 2018 12:45:02 +0200 Subject: Change biomes so it's more interesting. --- src/game/worldgen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/worldgen.cpp b/src/game/worldgen.cpp index 61ceea3..44464f2 100644 --- a/src/game/worldgen.cpp +++ b/src/game/worldgen.cpp @@ -129,9 +129,9 @@ void worldgen(world_t *world, sector_index_t index, sector_t *sector, waterlevel = world->perlin.get(x, 1000.0f) * 0.3f + world->perlin.get(x, 500.0f) * 0.1f; - biome = world->perlin.get(x - v2f_t(60, 20), 160.0f) * 0.4f + + biome = world->perlin.get(-x + v2f_t(-60, 120), 160.0f) * 0.4f + world->perlin.get(x, 30.0f) * 0.2f + - world->perlin.get(x, 5.0f) * 0.03f; + world->perlin.get(x, 8.0f) * 0.03f; height = world->perlin.get(x, 40.0f) * 0.6f + -- cgit