From ed77e27ecd1101f02e3d7fb83cca5a4b62dd3dca Mon Sep 17 00:00:00 2001 From: perivesta <> Date: Fri, 7 Jul 2023 22:54:40 +0200 Subject: very simple drawing --- Nodes/drawing.tscn | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Nodes/drawing.tscn (limited to 'Nodes') diff --git a/Nodes/drawing.tscn b/Nodes/drawing.tscn new file mode 100644 index 0000000..4c04ea7 --- /dev/null +++ b/Nodes/drawing.tscn @@ -0,0 +1,8 @@ +[gd_scene load_steps=2 format=3 uid="uid://covygojlfmx6x"] + +[ext_resource type="Script" path="res://Scripts/drawing.gd" id="1_03nmp"] + +[node name="Drawing" type="Node2D"] +script = ExtResource("1_03nmp") + +[node name="TrackLine" type="Line2D" parent="."] -- cgit From 2236b0c2050f98aa11c6c631ee6ddc9dd7e57df0 Mon Sep 17 00:00:00 2001 From: perivesta <> Date: Fri, 7 Jul 2023 23:26:08 +0200 Subject: follow the drawn path --- Nodes/drawing.tscn | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Nodes') diff --git a/Nodes/drawing.tscn b/Nodes/drawing.tscn index 4c04ea7..3f65fee 100644 --- a/Nodes/drawing.tscn +++ b/Nodes/drawing.tscn @@ -1,8 +1,19 @@ -[gd_scene load_steps=2 format=3 uid="uid://covygojlfmx6x"] +[gd_scene load_steps=4 format=3 uid="uid://covygojlfmx6x"] [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"] + +[sub_resource type="Curve2D" id="Curve2D_dtc4h"] [node name="Drawing" type="Node2D"] script = ExtResource("1_03nmp") [node name="TrackLine" type="Line2D" parent="."] + +[node name="TrackPath" type="Path2D" parent="."] +curve = SubResource("Curve2D_dtc4h") + +[node name="TrackFollower" type="PathFollow2D" parent="TrackPath"] + +[node name="Sprite2D" type="Sprite2D" parent="TrackPath/TrackFollower"] +texture = ExtResource("2_sgpkt") -- cgit From f3c450b15226a74a8390275ce24f8a4c5b025117 Mon Sep 17 00:00:00 2001 From: perivesta <> Date: Fri, 7 Jul 2023 23:47:00 +0200 Subject: basic level ig --- Nodes/Level_test.tscn | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Nodes/Level_test.tscn (limited to 'Nodes') diff --git a/Nodes/Level_test.tscn b/Nodes/Level_test.tscn new file mode 100644 index 0000000..b3be870 --- /dev/null +++ b/Nodes/Level_test.tscn @@ -0,0 +1,30 @@ +[gd_scene load_steps=5 format=3 uid="uid://dt5grvd5n2ioj"] + +[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"] + +[node name="Level_test" type="Node2D"] + +[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="Drawing" parent="." instance=ExtResource("4_t4rjk")] -- cgit