aboutsummaryrefslogtreecommitdiffstats
path: root/Levels/LevelTemplate.tscn
blob: 86ea2212d8d10a2c0c75bbad81f7b719c22da52f (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
56
57
58
59
60
61
62
63
64
65
66
[gd_scene load_steps=10 format=3 uid="uid://dliou1u4o6bib"]

[ext_resource type="Script" path="res://Scripts/scene_control.gd" id="1_2b4bf"]
[ext_resource type="PackedScene" uid="uid://c8r6i3bu37ogu" path="res://Nodes/ui.tscn" id="2_2w0c4"]
[ext_resource type="Texture2D" uid="uid://5xqahgawme4m" path="res://Assets/start.png" id="3_ckyv7"]
[ext_resource type="Texture2D" uid="uid://b8vhe5kt6037n" path="res://Assets/end.png" id="4_2vjhv"]
[ext_resource type="PackedScene" uid="uid://c1mvbh2fwqtkb" path="res://Nodes/car.tscn" id="5_v816p"]
[ext_resource type="Script" path="res://Scripts/drawing.gd" id="6_ihf71"]
[ext_resource type="Texture2D" uid="uid://dg3v488vx0oj6" path="res://Assets/checkpoint.png" id="7_bofa3"]

[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_2b4bf")

[node name="UI" parent="." instance=ExtResource("2_2w0c4")]

[node name="Start" type="Node2D" parent="."]
position = Vector2(256, 422)

[node name="Start" type="TextureButton" parent="Start"]
offset_left = -16.0
offset_top = -16.0
offset_right = 16.0
offset_bottom = 16.0
texture_normal = ExtResource("3_ckyv7")

[node name="FinishLine" type="Sprite2D" parent="."]
position = Vector2(793, 96)
texture = ExtResource("4_2vjhv")

[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_v816p")]
max_speed = 500
acceleration = 0.05

[node name="DrawNode" type="Node2D" parent="."]
script = ExtResource("6_ihf71")

[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"]
loop = false

[node name="Sprite2D" type="Sprite2D" parent="DrawNode/TrackPath/TrackFollower"]
visible = false
scale = Vector2(0.604, 0.604)
texture = ExtResource("7_bofa3")

[node name="31005" type="Timer" parent="DrawNode/TrackPath/TrackFollower"]
wait_time = 0.2
one_shot = true

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

[connection signal="mouse_entered" from="FinishLine/Area2D" to="DrawNode" method="_end_drawing"]