aboutsummaryrefslogtreecommitdiffstats
path: root/Nodes/Level_test.tscn
blob: 1928496d907c292012182e7d12065b82c787b3aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[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://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)
texture = ExtResource("1_wenkl")

[node name="End" type="Sprite2D" parent="."]
position = Vector2(616, 86)
texture = ExtResource("2_gp6ng")

[node name="cp1" type="Sprite2D" parent="."]
position = Vector2(270, 338)
texture = ExtResource("3_cgigr")

[node name="cp2" type="Sprite2D" parent="."]
position = Vector2(621, 323)
texture = ExtResource("3_cgigr")

[node name="cp3" type="Sprite2D" parent="."]
position = Vector2(404, 145)
texture = ExtResource("3_cgigr")

[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