summaryrefslogtreecommitdiffstats
path: root/Main.tscn
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-14 10:35:49 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-15 08:57:23 -0400
commitcdb6dc3ff78516bdc1b10c2f02ac50973969b749 (patch)
tree97e144fc1034c123bcd2fffa0e356fba82f8ffb9 /Main.tscn
parent79b829e35ae65e3c046e7081aeb2557242e93d24 (diff)
downloadgame_jam49-cdb6dc3ff78516bdc1b10c2f02ac50973969b749.tar.gz
game_jam49-cdb6dc3ff78516bdc1b10c2f02ac50973969b749.zip
Pilot ship with arrow keys
Diffstat (limited to 'Main.tscn')
-rw-r--r--Main.tscn18
1 files changed, 17 insertions, 1 deletions
diff --git a/Main.tscn b/Main.tscn
index 5b62675..887edee 100644
--- a/Main.tscn
+++ b/Main.tscn
@@ -1,10 +1,12 @@
-[gd_scene load_steps=13 format=2]
+[gd_scene load_steps=17 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]
[sub_resource type="BoxShape" id=19]
extents = Vector3( 1000, 0.1, 1000 )
@@ -69,6 +71,7 @@ axis_lock_linear_x = true
axis_lock_linear_z = true
linear_damp = 2.0
angular_damp = 2.0
+script = ExtResource( 6 )
[node name="CollisionShape" type="CollisionShape" parent="ShipRigidBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.78898, 0 )
@@ -120,6 +123,19 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 9.77011, -3.30323, -49.022 )
[node name="crates" type="Spatial" parent="."]
+[node name="World" type="RigidBody" parent="."]
+collision_layer = 0
+collision_mask = 0
+axis_lock_linear_y = true
+axis_lock_angular_x = true
+axis_lock_angular_y = true
+axis_lock_angular_z = true
+linear_damp = 0.5
+script = ExtResource( 5 )
+
+[node name="CollisionShape" type="CollisionShape" parent="World"]
+shape = SubResource( 22 )
+
[node name="crate" parent="crates" instance=ExtResource( 5 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.56126, 0 )