diff options
author | perivesta <> | 2023-07-08 10:18:16 +0200 |
---|---|---|
committer | perivesta <> | 2023-07-08 10:18:16 +0200 |
commit | f7fd3f9dacf87e4d6f95aa0fdbb0bdb309bdbc3a (patch) | |
tree | 811dc1c96117ad4f3e5be5ac2b227c003e563c51 | |
parent | 9ab7bc4c1e8bb266de9f100213e4036b1cd83c11 (diff) | |
download | 2023-f7fd3f9dacf87e4d6f95aa0fdbb0bdb309bdbc3a.tar.gz 2023-f7fd3f9dacf87e4d6f95aa0fdbb0bdb309bdbc3a.tar.bz2 2023-f7fd3f9dacf87e4d6f95aa0fdbb0bdb309bdbc3a.zip |
move/rename scene
-rw-r--r-- | Nodes/drawing_and_driving.tscn | 3 | ||||
-rw-r--r-- | Nodes/driving_test.tscn (renamed from root_scene.tscn) | 1 | ||||
-rw-r--r-- | Scripts/car_behaviour.gd | 2 | ||||
-rw-r--r-- | project.godot | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/Nodes/drawing_and_driving.tscn b/Nodes/drawing_and_driving.tscn new file mode 100644 index 0000000..9e2a36a --- /dev/null +++ b/Nodes/drawing_and_driving.tscn @@ -0,0 +1,3 @@ +[gd_scene format=3 uid="uid://bj5wruvb2hg20"] + +[node name="drawing_and_driving" type="Node2D"] diff --git a/root_scene.tscn b/Nodes/driving_test.tscn index 12d5bba..86964c5 100644 --- a/root_scene.tscn +++ b/Nodes/driving_test.tscn @@ -56,4 +56,3 @@ curve = SubResource("Curve2D_rg63l") [node name="Car" parent="." instance=ExtResource("2_22f5l")] position = Vector2(390, 202) -max_speed = 100 diff --git a/Scripts/car_behaviour.gd b/Scripts/car_behaviour.gd index c90fe05..b71ebb6 100644 --- a/Scripts/car_behaviour.gd +++ b/Scripts/car_behaviour.gd @@ -1,7 +1,7 @@ extends StaticBody2D # editor variables -@export var max_speed = 3500 +@export var max_speed = 300 @export var steer_force = 0.1 @export var look_ahead = 75 @export var num_rays = 32 diff --git a/project.godot b/project.godot index 703acfd..7531777 100644 --- a/project.godot +++ b/project.godot @@ -11,7 +11,7 @@ config_version=5 [application] config/name="CodeWithYourFriends23" -run/main_scene="res://root_scene.tscn" +run/main_scene="res://Nodes/driving_test.tscn" config/features=PackedStringArray("4.0", "Forward Plus") config/icon="res://icon.svg" |