summaryrefslogtreecommitdiffstats
path: root/Chunk.tscn
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-16 21:51:15 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-16 21:51:15 -0400
commit760fc610908ca5a5a1ebb46e1996801c08d800aa (patch)
tree7dfdcae4da7702a25113eaf605350e619104bb15 /Chunk.tscn
parent32dca307fe89880f7f26b3e20d5ef3d2dabe821e (diff)
downloadgodot_wildjam_49-760fc610908ca5a5a1ebb46e1996801c08d800aa.tar.gz
godot_wildjam_49-760fc610908ca5a5a1ebb46e1996801c08d800aa.zip
Rewrite World code to load/deload Chunks in a circle around a traveler
Diffstat (limited to 'Chunk.tscn')
-rw-r--r--Chunk.tscn30
1 files changed, 30 insertions, 0 deletions
diff --git a/Chunk.tscn b/Chunk.tscn
new file mode 100644
index 0000000..823aa51
--- /dev/null
+++ b/Chunk.tscn
@@ -0,0 +1,30 @@
+[gd_scene load_steps=5 format=2]
+
+[sub_resource type="SphereShape" id=1]
+radius = 50.0
+
+[sub_resource type="PlaneMesh" id=2]
+size = Vector2( 100, 100 )
+
+[sub_resource type="SpatialMaterial" id=3]
+flags_unshaded = true
+params_cull_mode = 2
+albedo_color = Color( 0.937255, 0, 1, 1 )
+
+[sub_resource type="PlaneMesh" id=4]
+size = Vector2( 98, 98 )
+
+[node name="Chunk" type="Area"]
+collision_layer = 32
+collision_mask = 0
+
+[node name="Size" type="CollisionShape" parent="."]
+shape = SubResource( 1 )
+
+[node name="Border" type="CSGMesh" parent="."]
+mesh = SubResource( 2 )
+material = SubResource( 3 )
+
+[node name="CSGMesh" type="CSGMesh" parent="Border"]
+operation = 2
+mesh = SubResource( 4 )