summaryrefslogtreecommitdiffstats
path: root/world/World.gd
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-20 02:00:08 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-20 02:00:08 -0400
commit7e75beb7b1f3b1121961f8df36f0fee3cd41cb58 (patch)
tree297727d30a8cb5be309b47c1e8bfe41e0792888b /world/World.gd
parent51a0664a1c2265adddbf4c42d4eda747c8ea8aaf (diff)
downloadgame_jam49-7e75beb7b1f3b1121961f8df36f0fee3cd41cb58.tar.gz
game_jam49-7e75beb7b1f3b1121961f8df36f0fee3cd41cb58.zip
Add ability to add static monuments to the world
Diffstat (limited to 'world/World.gd')
-rw-r--r--world/World.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/world/World.gd b/world/World.gd
index 04c3ef1..3afc4eb 100644
--- a/world/World.gd
+++ b/world/World.gd
@@ -12,12 +12,12 @@ onready var lod_distance = chunk_render_distance.get_node("Radius").shape.radius
onready var lod_mid = chunk_render_mid.get_node("Radius").shape.radius
onready var lod_close = chunk_render_close.get_node("Radius").shape.radius
-onready var chunk_half_size = $"Chunks/Chunk/Size".shape.radius
+onready var chunk_half_size = $"Chunk/Size".shape.radius
onready var chunk_size = chunk_half_size * 2.0
func _ready():
ChunkLoader.world = self
- ChunkGen.chunk_half_size = self.chunk_half_size
+ ChunkGen.setup_monuments()
func _on_ChunkRenderDistance_area_entered(area:Area):
if area.lod < area.LOD.DISTANCE: