aboutsummaryrefslogtreecommitdiffstats
path: root/Nodes/Level_test_2.tscn
diff options
context:
space:
mode:
authorLibravatar IcECreAm777 <hgk.1998@googlemail.com>2023-07-08 18:17:15 +0200
committerLibravatar IcECreAm777 <hgk.1998@googlemail.com>2023-07-08 18:17:15 +0200
commit179ad5a11b5a5780df494db61ed72baae4b7cec2 (patch)
tree350388f9cb5423b1c9fca0adfed257d97edd1fdc /Nodes/Level_test_2.tscn
parent516635e22464699fa940ed981a186088352ba734 (diff)
download2023-179ad5a11b5a5780df494db61ed72baae4b7cec2.tar.gz
2023-179ad5a11b5a5780df494db61ed72baae4b7cec2.tar.bz2
2023-179ad5a11b5a5780df494db61ed72baae4b7cec2.zip
resetting level and loading next level
Diffstat (limited to 'Nodes/Level_test_2.tscn')
-rw-r--r--Nodes/Level_test_2.tscn71
1 files changed, 71 insertions, 0 deletions
diff --git a/Nodes/Level_test_2.tscn b/Nodes/Level_test_2.tscn
new file mode 100644
index 0000000..3ea0ac4
--- /dev/null
+++ b/Nodes/Level_test_2.tscn
@@ -0,0 +1,71 @@
+[gd_scene load_steps=11 format=3 uid="uid://b7nxnsf8dirqk"]
+
+[ext_resource type="Script" path="res://Scripts/scene_control.gd" id="1_amd1r"]
+[ext_resource type="PackedScene" uid="uid://c8r6i3bu37ogu" path="res://Nodes/ui.tscn" id="2_veexm"]
+[ext_resource type="Texture2D" uid="uid://5xqahgawme4m" path="res://Assets/start.png" id="3_sl2tq"]
+[ext_resource type="Texture2D" uid="uid://b8vhe5kt6037n" path="res://Assets/end.png" id="4_1x7qu"]
+[ext_resource type="PackedScene" uid="uid://c1mvbh2fwqtkb" path="res://Nodes/car.tscn" id="5_vbxx6"]
+[ext_resource type="Script" path="res://Scripts/drawing.gd" id="6_6cnd6"]
+[ext_resource type="Texture2D" uid="uid://dg3v488vx0oj6" path="res://Assets/checkpoint.png" id="7_alupw"]
+[ext_resource type="PackedScene" uid="uid://wkfai2lvnp7n" path="res://Nodes/checkpoint.tscn" id="8_8dt61"]
+
+[sub_resource type="CircleShape2D" id="CircleShape2D_6g88q"]
+radius = 18.0278
+
+[sub_resource type="Curve2D" id="Curve2D_0exre"]
+
+[node name="Level_test" type="Node2D"]
+script = ExtResource("1_amd1r")
+
+[node name="UI" parent="." instance=ExtResource("2_veexm")]
+
+[node name="Start" type="TextureButton" parent="."]
+offset_left = 329.0
+offset_top = 574.0
+offset_right = 361.0
+offset_bottom = 606.0
+texture_normal = ExtResource("3_sl2tq")
+
+[node name="FinishLine" type="Sprite2D" parent="."]
+position = Vector2(694, 598)
+texture = ExtResource("4_1x7qu")
+
+[node name="Area2D" type="Area2D" parent="FinishLine"]
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="FinishLine/Area2D"]
+shape = SubResource("CircleShape2D_6g88q")
+
+[node name="Car" parent="." instance=ExtResource("5_vbxx6")]
+max_speed = 500
+acceleration = 0.05
+
+[node name="DrawNode" type="Node2D" parent="."]
+script = ExtResource("6_6cnd6")
+
+[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("7_alupw")
+
+[node name="31005" type="Timer" parent="DrawNode/TrackPath/TrackFollower"]
+wait_time = 0.2
+one_shot = true
+
+[node name="Checkpoints" type="Node" parent="."]
+
+[node name="Checkpoint" parent="Checkpoints" instance=ExtResource("8_8dt61")]
+position = Vector2(1023, 342)
+
+[node name="Checkpoint2" parent="Checkpoints" instance=ExtResource("8_8dt61")]
+position = Vector2(113, 279)
+
+[node name="Checkpoint3" parent="Checkpoints" instance=ExtResource("8_8dt61")]
+position = Vector2(517, 172)
+
+[connection signal="mouse_entered" from="FinishLine/Area2D" to="DrawNode" method="_end_drawing"]