aboutsummaryrefslogtreecommitdiffstats
path: root/Nodes/drawing_and_driving.tscn
blob: 5052e0475187dab8bdd52bb244086ce724759fb3 (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
[gd_scene load_steps=6 format=3 uid="uid://bj5wruvb2hg20"]

[ext_resource type="Script" path="res://Scripts/scene_control.gd" id="1_6bj13"]
[ext_resource type="PackedScene" uid="uid://c1mvbh2fwqtkb" path="res://Nodes/car.tscn" id="1_ktvsb"]
[ext_resource type="Script" path="res://Scripts/drawing.gd" id="3_el555"]
[ext_resource type="Texture2D" uid="uid://dg3v488vx0oj6" path="res://Assets/checkpoint.png" id="4_ar5ae"]
[ext_resource type="PackedScene" uid="uid://bi1dw58p4tky3" path="res://Nodes/checkpoint.tscn" id="5_lbroe"]
[ext_resource type="PackedScene" uid="uid://bunwe03ob38mr" path="res://Nodes/ui.tscn" id="6_y2lbh"]

[sub_resource type="Curve2D" id="Curve2D_wmfhm"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_uuifd"]

[sub_resource type="CanvasTexture" id="CanvasTexture_agpfu"]

[node name="drawing_and_driving" type="Node2D"]
script = ExtResource("1_6bj13")

[node name="Car" parent="." instance=ExtResource("1_ktvsb")]
max_speed = 500
acceleration = 0.05

[node name="DrawNode" type="Node2D" parent="."]
script = ExtResource("3_el555")

[node name="TrackLine" type="Line2D" parent="DrawNode"]

[node name="TrackPath" type="Path2D" parent="DrawNode"]
curve = SubResource("Curve2D_wmfhm")

[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("4_ar5ae")

[node name="Checkpoints" type="Node" parent="."]

[node name="Checkpoint" parent="Checkpoints" instance=ExtResource("5_lbroe")]

[node name="Checkpoint2" parent="Checkpoints" instance=ExtResource("5_lbroe")]
position = Vector2(349, 407)

[node name="UI" parent="." instance=ExtResource("6_y2lbh")]

[node name="FinishLine" type="Area2D" parent="."]
position = Vector2(420, 222)

[node name="CollisionShape2D" type="CollisionShape2D" parent="FinishLine"]
shape = SubResource("RectangleShape2D_uuifd")

[node name="Sprite2D" type="Sprite2D" parent="FinishLine"]
scale = Vector2(19.96, 19.76)
texture = SubResource("CanvasTexture_agpfu")