aboutsummaryrefslogtreecommitdiffstats
path: root/Nodes/Level_test.tscn
diff options
context:
space:
mode:
authorLibravatar perivesta <>2023-07-08 15:53:37 +0200
committerLibravatar perivesta <>2023-07-08 15:53:37 +0200
commit9573d3ae4170f43f7f65224a16db7ad161a11e28 (patch)
treeaca31f8254e6e2876ade6472febf8ad003bfea18 /Nodes/Level_test.tscn
parentbf17c8a97b77cdb783a2751e7ee4a90843a00f06 (diff)
download2023-9573d3ae4170f43f7f65224a16db7ad161a11e28.tar.gz
2023-9573d3ae4170f43f7f65224a16db7ad161a11e28.tar.bz2
2023-9573d3ae4170f43f7f65224a16db7ad161a11e28.zip
add main menu, pause menu, basic level
Diffstat (limited to '')
-rw-r--r--Nodes/Level_test.tscn31
1 files changed, 28 insertions, 3 deletions
diff --git a/Nodes/Level_test.tscn b/Nodes/Level_test.tscn
index 4fa88fe..1928496 100644
--- a/Nodes/Level_test.tscn
+++ b/Nodes/Level_test.tscn
@@ -1,11 +1,16 @@
-[gd_scene load_steps=5 format=3 uid="uid://ct2kxw1rrjryo"]
+[gd_scene load_steps=8 format=3 uid="uid://ct2kxw1rrjryo"]
+[ext_resource type="Script" path="res://Scripts/scene_control.gd" id="1_0esj3"]
[ext_resource type="Texture2D" uid="uid://5xqahgawme4m" path="res://Assets/start.png" id="1_wenkl"]
[ext_resource type="Texture2D" uid="uid://b8vhe5kt6037n" path="res://Assets/end.png" id="2_gp6ng"]
[ext_resource type="Texture2D" uid="uid://dg3v488vx0oj6" path="res://Assets/checkpoint.png" id="3_cgigr"]
-[ext_resource type="PackedScene" uid="uid://cfolt02ucvo3d" path="res://Nodes/drawing.tscn" id="4_t4rjk"]
+[ext_resource type="PackedScene" uid="uid://c1mvbh2fwqtkb" path="res://Nodes/car.tscn" id="4_xvobs"]
+[ext_resource type="Script" path="res://Scripts/drawing.gd" id="5_x7h3g"]
+
+[sub_resource type="Curve2D" id="Curve2D_0exre"]
[node name="Level_test" type="Node2D"]
+script = ExtResource("1_0esj3")
[node name="Start" type="Sprite2D" parent="."]
position = Vector2(669, 515)
@@ -27,4 +32,24 @@ texture = ExtResource("3_cgigr")
position = Vector2(404, 145)
texture = ExtResource("3_cgigr")
-[node name="Drawing" parent="." instance=ExtResource("4_t4rjk")]
+[node name="Car" parent="." instance=ExtResource("4_xvobs")]
+max_speed = 500
+acceleration = 0.05
+
+[node name="DrawNode" type="Node2D" parent="."]
+script = ExtResource("5_x7h3g")
+
+[node name="TrackLine" type="Line2D" parent="DrawNode"]
+
+[node name="TrackPath" type="Path2D" parent="DrawNode"]
+curve = SubResource("Curve2D_0exre")
+
+[node name="TrackFollower" type="PathFollow2D" parent="DrawNode/TrackPath"]
+
+[node name="Sprite2D" type="Sprite2D" parent="DrawNode/TrackPath/TrackFollower"]
+scale = Vector2(0.604, 0.604)
+texture = ExtResource("3_cgigr")
+
+[node name="31005" type="Timer" parent="DrawNode/TrackPath/TrackFollower"]
+wait_time = 0.2
+one_shot = true