blob: 865fd4e2b6020bb614144f5e5081dea4e351d81a (
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
|
[gd_scene load_steps=6 format=3 uid="uid://cb06k14t2slax"]
[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"]
[sub_resource type="Curve2D" id="Curve2D_wmfhm"]
[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")
|