feat(world-gen): scale world height 128->512 and sea level 64->256
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user