From 4805bb8e8156f6a5b4d61559cbb9ffd817b2ed41 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 30 Jan 2020 16:50:50 +0100 Subject: [PATCH] Increased the world scale back to 3, also increased the chunk spawn range by one on the y axis. --- game/scenes/World.tscn | 2 +- game/voxelman/transvoxel_mesher/TVVoxelWorld.gd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/game/scenes/World.tscn b/game/scenes/World.tscn index 71e8f566..c26d0f3e 100644 --- a/game/scenes/World.tscn +++ b/game/scenes/World.tscn @@ -60,7 +60,7 @@ use_threads = false max_concurrent_generations = 1 library = ExtResource( 2 ) level_generator = SubResource( 1 ) -voxel_scale = 2.0 +voxel_scale = 3.0 chunk_spawn_range = 3 script = ExtResource( 8 ) diff --git a/game/voxelman/transvoxel_mesher/TVVoxelWorld.gd b/game/voxelman/transvoxel_mesher/TVVoxelWorld.gd index 98b911ad..b89c39f5 100644 --- a/game/voxelman/transvoxel_mesher/TVVoxelWorld.gd +++ b/game/voxelman/transvoxel_mesher/TVVoxelWorld.gd @@ -119,7 +119,7 @@ func _create_chunk(x : int, y : int, z : int, pchunk : Node) -> VoxelChunk: func spawn() -> void: for x in range(-chunk_spawn_range, chunk_spawn_range): for z in range(-chunk_spawn_range, chunk_spawn_range): - for y in range(-1, 1): + for y in range(-1, 2): create_chunk(x, y, z) set_process(true)