From 859563f6ad4370a7f5f96963d63f4d83eecad9a4 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Sun, 9 Jul 2023 16:54:44 +0100 Subject: fix crash --- Levels/Tut02.tscn | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'Levels/Tut02.tscn') diff --git a/Levels/Tut02.tscn b/Levels/Tut02.tscn index 915167e..1fbe1a9 100644 --- a/Levels/Tut02.tscn +++ b/Levels/Tut02.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=11 format=3 uid="uid://ccgojoehaouv0"] +[gd_scene load_steps=13 format=3 uid="uid://ccgojoehaouv0"] [ext_resource type="Script" path="res://Scripts/scene_control.gd" id="1_77i7n"] [ext_resource type="PackedScene" uid="uid://c8r6i3bu37ogu" path="res://Nodes/ui.tscn" id="2_wchsl"] @@ -6,6 +6,8 @@ [ext_resource type="Texture2D" uid="uid://cxhterify3l" path="res://Assets/Images/goal.png" id="4_yklwl"] [ext_resource type="PackedScene" uid="uid://c1mvbh2fwqtkb" path="res://Nodes/car.tscn" id="5_h0kjy"] [ext_resource type="Script" path="res://Scripts/drawing.gd" id="6_0m5bn"] +[ext_resource type="Texture2D" uid="uid://bcn7tgs6a4fm7" path="res://Assets/road.png" id="7_iioy2"] +[ext_resource type="Script" path="res://Scripts/Road.gd" id="8_1xa7f"] [ext_resource type="TileSet" uid="uid://cl8153posdeim" path="res://Assets/grass_tile_set.tres" id="8_a1rvy"] [sub_resource type="CircleShape2D" id="CircleShape2D_6g88q"] @@ -49,16 +51,23 @@ z_index = 3 [node name="DrawNode" type="Node2D" parent="."] script = ExtResource("6_0m5bn") -[node name="TrackLine" type="Line2D" parent="DrawNode"] -z_index = 1 -default_color = Color(0.870588, 0.870588, 0.870588, 0.431373) - [node name="TrackPath" type="Path2D" parent="DrawNode"] curve = SubResource("Curve2D_0exre") [node name="TrackFollower" type="PathFollow2D" parent="DrawNode/TrackPath"] loop = false +[node name="TrackLine" type="Line2D" parent="DrawNode"] +texture_repeat = 2 +width = 70.0 +texture = ExtResource("7_iioy2") +texture_mode = 1 +script = ExtResource("8_1xa7f") + +[node name="LeftBorder" type="Line2D" parent="DrawNode/TrackLine"] + +[node name="RightBorder" type="Line2D" parent="DrawNode/TrackLine"] + [node name="Checkpoints" type="Node" parent="."] [node name="Control" type="Control" parent="."] -- cgit