summaryrefslogtreecommitdiffstats
path: root/Main.tscn
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-14 23:45:34 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-15 09:24:03 -0400
commit22cb5141ed37ccffcc41d4b13cf1d5db39dfdaa8 (patch)
tree4b6debd3146574944d66075a9392ae621b32dd52 /Main.tscn
parent7a8c54f63230b61429f293f9a86200d0c1541f59 (diff)
downloadgame_jam49-22cb5141ed37ccffcc41d4b13cf1d5db39dfdaa8.tar.gz
game_jam49-22cb5141ed37ccffcc41d4b13cf1d5db39dfdaa8.zip
Prototype procedurally generated world with rocks
Diffstat (limited to 'Main.tscn')
-rw-r--r--Main.tscn21
1 files changed, 16 insertions, 5 deletions
diff --git a/Main.tscn b/Main.tscn
index 64f4b44..5a2d3dd 100644
--- a/Main.tscn
+++ b/Main.tscn
@@ -1,12 +1,12 @@
-[gd_scene load_steps=17 format=2]
+[gd_scene load_steps=18 format=2]
[ext_resource path="res://character/fps_controller/fps_controller.tscn" type="PackedScene" id=1]
[ext_resource path="res://ship/ship/ship.tscn" type="PackedScene" id=2]
[ext_resource path="res://water/Water.tscn" type="PackedScene" id=3]
[ext_resource path="res://Float.tscn" type="PackedScene" id=4]
[ext_resource path="res://ship/ship/crate.tscn" type="PackedScene" id=5]
-[ext_resource path="res://World.gd" type="Script" id=5]
-[ext_resource path="res://Raft.gd" type="Script" id=6]
+[ext_resource path="res://World.gd" type="Script" id=6]
+[ext_resource path="res://Raft.gd" type="Script" id=7]
[sub_resource type="BoxShape" id=19]
extents = Vector3( 1000, 0.1, 1000 )
@@ -34,6 +34,9 @@ transform_array = PoolVector3Array( 0.35759, 0, -0.933879, 0, 1, 0, 0.933879, 0,
radius = 11.4853
height = 97.7559
[sub_resource type="BoxShape" id=23]
+[sub_resource type="BoxShape" id=24]
+extents = Vector3( 500, 1000, 500 )
+
[node name="Main" type="Spatial"]
[node name="DirectionalLight" type="DirectionalLight" parent="."]
@@ -70,7 +73,7 @@ axis_lock_angular_x = true
axis_lock_angular_y = true
axis_lock_angular_z = true
linear_damp = 0.5
-script = ExtResource( 5 )
+script = ExtResource( 6 )
[node name="MultiMeshInstance" type="MultiMeshInstance" parent="World"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -3.18141, 0 )
@@ -80,6 +83,13 @@ multimesh = SubResource( 16 )
[node name="CollisionShape" type="CollisionShape" parent="World"]
shape = SubResource( 23 )
+[node name="WorldGenCull" type="Area" parent="."]
+collision_layer = 0
+collision_mask = 8
+
+[node name="CollisionShape" type="CollisionShape" parent="WorldGenCull"]
+shape = SubResource( 24 )
+
[node name="ShipRigidBody" type="RigidBody" parent="."]
collision_layer = 2
collision_mask = 8
@@ -88,7 +98,7 @@ axis_lock_linear_x = true
axis_lock_linear_z = true
linear_damp = 2.0
angular_damp = 2.0
-script = ExtResource( 6 )
+script = ExtResource( 7 )
[node name="CollisionShape" type="CollisionShape" parent="ShipRigidBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.78898, 0 )
@@ -964,6 +974,7 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -6.11794, 1.56126, 8.23821 )
[node name="crate418" parent="crates" instance=ExtResource( 5 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -6.11794, 1.56126, 6.20522 )
+[connection signal="body_exited" from="WorldGenCull" to="World" method="_on_WorldGenCull_body_exited"]
[node name="crate419" parent="crates" instance=ExtResource( 5 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -6.11794, 1.56126, 4.18901 )