From 3c7e7a46a317e009090119d6dd3abb423c219b85 Mon Sep 17 00:00:00 2001 From: MDietermann Date: Wed, 3 Jun 2026 07:46:21 +0200 Subject: [PATCH] feat(world-gen): scale world height 128->512 and sea level 64->256 --- VoxelEngine.Tests/WorldGen/WorldGeneratorTests.cs | 4 ++-- World/WorldGen/WorldConstants.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VoxelEngine.Tests/WorldGen/WorldGeneratorTests.cs b/VoxelEngine.Tests/WorldGen/WorldGeneratorTests.cs index 817aaf2..8469ed1 100644 --- a/VoxelEngine.Tests/WorldGen/WorldGeneratorTests.cs +++ b/VoxelEngine.Tests/WorldGen/WorldGeneratorTests.cs @@ -16,8 +16,8 @@ public class WorldGeneratorTests { var blocks = Blocks; var biomes = new BiomeRegistry(1, blocks); - ushort id = WorldGenerator.BlockAt(80, surfaceHeight: 70, biomes.Plains, blocks); - Assert.Equal(blocks.Air.Id, id); // 80 > 70 and 80 > SeaLevel(64) + ushort id = WorldGenerator.BlockAt(300, surfaceHeight: 290, biomes.Plains, blocks); + Assert.Equal(blocks.Air.Id, id); // 300 > 290 (above surface) and 300 > SeaLevel(256) } [Fact] diff --git a/World/WorldGen/WorldConstants.cs b/World/WorldGen/WorldConstants.cs index 5bf055a..f281132 100644 --- a/World/WorldGen/WorldConstants.cs +++ b/World/WorldGen/WorldConstants.cs @@ -4,7 +4,7 @@ namespace VoxelEngine.World.WorldGen; public static class WorldConstants { - public const int WorldHeightChunks = 8; - public const int WorldHeight = WorldConstants.WorldHeightChunks * VoxelChunk.Size; // 128 - public const int SeaLevel = 64; + public const int WorldHeightChunks = 32; + public const int WorldHeight = WorldConstants.WorldHeightChunks * VoxelChunk.Size; // 512 + public const int SeaLevel = 256; }