diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-09-15 10:28:24 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-09-15 10:28:24 -0400 |
commit | a2c28a27280c186c2717f303ef52a865da6dd94f (patch) | |
tree | 24c862acddc9ff0b705bf00c53c8affe3d8c5c85 | |
parent | 79a4d45d970a2cb44baee39aeff6294cb3156c01 (diff) | |
download | game_jam49-a2c28a27280c186c2717f303ef52a865da6dd94f.tar.gz game_jam49-a2c28a27280c186c2717f303ef52a865da6dd94f.zip |
Update movement scripts after Main scene reorganization merge
-rw-r--r-- | Main.tscn | 2 | ||||
-rw-r--r-- | Ship.gd (renamed from Raft.gd) | 0 | ||||
-rw-r--r-- | World.gd | 2 |
3 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ [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=6] -[ext_resource path="res://Raft.gd" type="Script" id=7] +[ext_resource path="res://Ship.gd" type="Script" id=7] [sub_resource type="BoxShape" id=19] extents = Vector3( 1000, 0.1, 1000 ) @@ -53,7 +53,7 @@ func _ready(): generate_location(Vector2(i,j)) func travel(direction:Vector3): - var boat = $"/root/Main/Raft" + var boat = $"/root/Main/ShipRigidBody" var boat_direction = boat.global_transform.basis boat_direction = Basis(Vector3.UP*boat_direction.get_euler().y) direction = -direction |