summaryrefslogtreecommitdiffstats
path: root/world/World.tscn
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-18 19:38:35 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-18 19:42:01 -0400
commit32bf9d2024362d45dc351c8f1d0b3b301caf1131 (patch)
treefb6540bce94cb55c6123ecfe1327abeabea2925f /world/World.tscn
parentffc92ed12c6e680776d355ff9fcef70e5e28d7c8 (diff)
downloadgame_jam49-32bf9d2024362d45dc351c8f1d0b3b301caf1131.tar.gz
game_jam49-32bf9d2024362d45dc351c8f1d0b3b301caf1131.zip
Organize World Gen Stuff
Diffstat (limited to 'world/World.tscn')
-rw-r--r--world/World.tscn64
1 files changed, 64 insertions, 0 deletions
diff --git a/world/World.tscn b/world/World.tscn
new file mode 100644
index 0000000..81b2201
--- /dev/null
+++ b/world/World.tscn
@@ -0,0 +1,64 @@
+[gd_scene load_steps=7 format=2]
+
+[ext_resource path="res://world/World.gd" type="Script" id=1]
+[ext_resource path="res://world/chunk/Chunk.tscn" type="PackedScene" id=3]
+
+[sub_resource type="SphereShape" id=24]
+radius = 500.0
+
+[sub_resource type="SphereShape" id=25]
+radius = 300.0
+
+[sub_resource type="SphereShape" id=26]
+radius = 150.0
+
+[sub_resource type="BoxShape" id=23]
+
+[node name="World" type="Spatial"]
+script = ExtResource( 1 )
+acceleration = 50.0
+
+[node name="ChunkRenderDistance" type="Area" parent="."]
+collision_layer = 0
+collision_mask = 32
+
+[node name="Radius" type="CollisionShape" parent="ChunkRenderDistance"]
+shape = SubResource( 24 )
+
+[node name="ChunkRenderMid" type="Area" parent="."]
+collision_layer = 0
+collision_mask = 32
+
+[node name="Radius" type="CollisionShape" parent="ChunkRenderMid"]
+shape = SubResource( 25 )
+
+[node name="ChunkRenderClose" type="Area" parent="."]
+collision_layer = 0
+collision_mask = 32
+
+[node name="Radius" type="CollisionShape" parent="ChunkRenderClose"]
+shape = SubResource( 26 )
+
+[node name="Chunks" type="RigidBody" parent="."]
+collision_layer = 0
+collision_mask = 0
+can_sleep = false
+axis_lock_linear_y = true
+axis_lock_angular_x = true
+axis_lock_angular_y = true
+axis_lock_angular_z = true
+linear_damp = 0.5
+
+[node name="CollisionShape" type="CollisionShape" parent="Chunks"]
+shape = SubResource( 23 )
+
+[node name="Chunk" parent="Chunks" instance=ExtResource( 3 )]
+visible = false
+collision_layer = 0
+
+[connection signal="area_entered" from="ChunkRenderDistance" to="." method="_on_ChunkRenderDistance_area_entered"]
+[connection signal="area_exited" from="ChunkRenderDistance" to="." method="_on_ChunkRenderDistance_area_exited"]
+[connection signal="area_entered" from="ChunkRenderMid" to="." method="_on_ChunkRenderMid_area_entered"]
+[connection signal="area_exited" from="ChunkRenderMid" to="." method="_on_ChunkRenderMid_area_exited"]
+[connection signal="area_entered" from="ChunkRenderClose" to="." method="_on_ChunkRenderClose_area_entered"]
+[connection signal="area_exited" from="ChunkRenderClose" to="." method="_on_ChunkRenderClose_area_exited"]