feat(world-gen): scale world height 128->512 and sea level 64->256

This commit is contained in:
MDietermann
2026-06-03 07:46:21 +02:00
parent 2677b1b003
commit 3c7e7a46a3
2 changed files with 5 additions and 5 deletions

View File

@@ -16,8 +16,8 @@ public class WorldGeneratorTests
{ {
var blocks = Blocks; var blocks = Blocks;
var biomes = new BiomeRegistry(1, blocks); var biomes = new BiomeRegistry(1, blocks);
ushort id = WorldGenerator.BlockAt(80, surfaceHeight: 70, biomes.Plains, blocks); ushort id = WorldGenerator.BlockAt(300, surfaceHeight: 290, biomes.Plains, blocks);
Assert.Equal(blocks.Air.Id, id); // 80 > 70 and 80 > SeaLevel(64) Assert.Equal(blocks.Air.Id, id); // 300 > 290 (above surface) and 300 > SeaLevel(256)
} }
[Fact] [Fact]

View File

@@ -4,7 +4,7 @@ namespace VoxelEngine.World.WorldGen;
public static class WorldConstants public static class WorldConstants
{ {
public const int WorldHeightChunks = 8; public const int WorldHeightChunks = 32;
public const int WorldHeight = WorldConstants.WorldHeightChunks * VoxelChunk.Size; // 128 public const int WorldHeight = WorldConstants.WorldHeightChunks * VoxelChunk.Size; // 512
public const int SeaLevel = 64; public const int SeaLevel = 256;
} }