summaryrefslogtreecommitdiffstats
path: root/world/chunk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--world/chunk/Chunk.gd (renamed from Chunk.gd)0
-rw-r--r--world/chunk/Chunk.tscn (renamed from Chunk.tscn)8
-rw-r--r--world/chunk/ChunkGen.gd (renamed from ChunkGen.gd)2
-rw-r--r--world/chunk/ChunkLoader.gd (renamed from ChunkLoader.gd)2
-rw-r--r--world/chunk/helper/ChunkedCSGMesh.gd (renamed from ChunkedCSGMesh.gd)0
-rw-r--r--world/chunk/helper/ChunkedMeshInstance.gd (renamed from ChunkedMeshInstance.gd)0
-rw-r--r--world/chunk/helper/ChunkedSprite3D.gd (renamed from ChunkedSprite3D.gd)0
7 files changed, 6 insertions, 6 deletions
diff --git a/Chunk.gd b/world/chunk/Chunk.gd
index 7c5c1c3..7c5c1c3 100644
--- a/Chunk.gd
+++ b/world/chunk/Chunk.gd
diff --git a/Chunk.tscn b/world/chunk/Chunk.tscn
index 8f5ea84..4ce985b 100644
--- a/Chunk.tscn
+++ b/world/chunk/Chunk.tscn
@@ -1,7 +1,7 @@
[gd_scene load_steps=7 format=2]
-[ext_resource path="res://Chunk.gd" type="Script" id=1]
-[ext_resource path="res://ChunkedCSGMesh.gd" type="Script" id=3]
+[ext_resource path="res://world/chunk/Chunk.gd" type="Script" id=1]
+[ext_resource path="res://world/chunk/helper/ChunkedCSGMesh.gd" type="Script" id=2]
[sub_resource type="SphereShape" id=1]
radius = 50.0
@@ -27,10 +27,10 @@ shape = SubResource( 1 )
[node name="Border" type="CSGMesh" parent="."]
material_override = SubResource( 3 )
-script = ExtResource( 3 )
+script = ExtResource( 2 )
_mesh = SubResource( 2 )
[node name="CSGMesh" type="CSGMesh" parent="Border"]
operation = 2
-script = ExtResource( 3 )
+script = ExtResource( 2 )
_mesh = SubResource( 4 )
diff --git a/ChunkGen.gd b/world/chunk/ChunkGen.gd
index ef29365..5e99be8 100644
--- a/ChunkGen.gd
+++ b/world/chunk/ChunkGen.gd
@@ -35,7 +35,7 @@ func iterate_chunk(chunk,step:Vector2,cb:FuncRef):
for y in range(-chunk_size_rounded.y,chunk_size_rounded.y,step.y):
cb.call_func(chunk,Vector2(x,y))
-onready var Rock = preload("res://Rock.tscn")
+onready var Rock = preload("res://world/obstacles/Rock.tscn")
const rock_size = 5.0
func make_rock(chunk,xform:Transform):
var rock = Rock.instance()
diff --git a/ChunkLoader.gd b/world/chunk/ChunkLoader.gd
index 90cac4f..9f1d9b3 100644
--- a/ChunkLoader.gd
+++ b/world/chunk/ChunkLoader.gd
@@ -2,7 +2,7 @@ extends Node
var world = null
-var Chunk = preload("res://Chunk.tscn")
+var Chunk = preload("res://world/chunk/Chunk.tscn")
var chunks = {}
var loaded_chunks = {}
var chunk_thread = Thread.new()
diff --git a/ChunkedCSGMesh.gd b/world/chunk/helper/ChunkedCSGMesh.gd
index 2b8c6db..2b8c6db 100644
--- a/ChunkedCSGMesh.gd
+++ b/world/chunk/helper/ChunkedCSGMesh.gd
diff --git a/ChunkedMeshInstance.gd b/world/chunk/helper/ChunkedMeshInstance.gd
index dde7eda..dde7eda 100644
--- a/ChunkedMeshInstance.gd
+++ b/world/chunk/helper/ChunkedMeshInstance.gd
diff --git a/ChunkedSprite3D.gd b/world/chunk/helper/ChunkedSprite3D.gd
index c9e0be9..c9e0be9 100644
--- a/ChunkedSprite3D.gd
+++ b/world/chunk/helper/ChunkedSprite3D.gd