diff options
Diffstat (limited to '')
-rw-r--r-- | Nodes/Level_test.tscn | 4 | ||||
-rw-r--r-- | Nodes/drawing.tscn | 2 | ||||
-rw-r--r-- | Nodes/drawing_and_driving.tscn | 26 |
3 files changed, 28 insertions, 4 deletions
diff --git a/Nodes/Level_test.tscn b/Nodes/Level_test.tscn index b3be870..4fa88fe 100644 --- a/Nodes/Level_test.tscn +++ b/Nodes/Level_test.tscn @@ -1,9 +1,9 @@ -[gd_scene load_steps=5 format=3 uid="uid://dt5grvd5n2ioj"] +[gd_scene load_steps=5 format=3 uid="uid://ct2kxw1rrjryo"] [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://covygojlfmx6x" path="res://Nodes/drawing.tscn" id="4_t4rjk"] +[ext_resource type="PackedScene" uid="uid://cfolt02ucvo3d" path="res://Nodes/drawing.tscn" id="4_t4rjk"] [node name="Level_test" type="Node2D"] diff --git a/Nodes/drawing.tscn b/Nodes/drawing.tscn index 3f65fee..1057f09 100644 --- a/Nodes/drawing.tscn +++ b/Nodes/drawing.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=4 format=3 uid="uid://covygojlfmx6x"] +[gd_scene load_steps=4 format=3 uid="uid://cfolt02ucvo3d"] [ext_resource type="Script" path="res://Scripts/drawing.gd" id="1_03nmp"] [ext_resource type="Texture2D" uid="uid://bpasf8is2xnfb" path="res://icon.svg" id="2_sgpkt"] diff --git a/Nodes/drawing_and_driving.tscn b/Nodes/drawing_and_driving.tscn index 9e2a36a..32ef3e1 100644 --- a/Nodes/drawing_and_driving.tscn +++ b/Nodes/drawing_and_driving.tscn @@ -1,3 +1,27 @@ -[gd_scene format=3 uid="uid://bj5wruvb2hg20"] +[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"] + +[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")] + +[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") |