aboutsummaryrefslogtreecommitdiffstats
path: root/Levels/Tut01.tscn
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-07-09 17:05:34 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2023-07-09 17:05:34 +0100
commitadd9ec2b23eacfb1994da8694e51f87cc0ce7c0a (patch)
tree383133968be8f07a7cef4858f7790e16811509a4 /Levels/Tut01.tscn
parent496bede74836502c024d132e0c7d86664e753cf0 (diff)
parent041ce9927f269ce55cb5a5dfa1e3f9f668590fcf (diff)
download2023-add9ec2b23eacfb1994da8694e51f87cc0ce7c0a.tar.gz
2023-add9ec2b23eacfb1994da8694e51f87cc0ce7c0a.tar.bz2
2023-add9ec2b23eacfb1994da8694e51f87cc0ce7c0a.zip
added road smoothing
Diffstat (limited to 'Levels/Tut01.tscn')
-rw-r--r--Levels/Tut01.tscn16
1 files changed, 12 insertions, 4 deletions
diff --git a/Levels/Tut01.tscn b/Levels/Tut01.tscn
index 8cb12d0..ab2a1e1 100644
--- a/Levels/Tut01.tscn
+++ b/Levels/Tut01.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=11 format=3 uid="uid://bp56skqd5gqub"]
+[gd_scene load_steps=13 format=3 uid="uid://bp56skqd5gqub"]
[ext_resource type="Script" path="res://Scripts/scene_control.gd" id="1_lcu5v"]
[ext_resource type="PackedScene" uid="uid://c8r6i3bu37ogu" path="res://Nodes/ui.tscn" id="2_44idh"]
@@ -6,6 +6,8 @@
[ext_resource type="Texture2D" uid="uid://cxhterify3l" path="res://Assets/Images/goal.png" id="4_mfiv7"]
[ext_resource type="PackedScene" uid="uid://c1mvbh2fwqtkb" path="res://Nodes/car.tscn" id="5_mi6tb"]
[ext_resource type="Script" path="res://Scripts/drawing.gd" id="6_0pqvb"]
+[ext_resource type="Script" path="res://Scripts/Road.gd" id="7_d0og5"]
+[ext_resource type="Texture2D" uid="uid://bcn7tgs6a4fm7" path="res://Assets/road.png" id="7_w2gmt"]
[ext_resource type="TileSet" uid="uid://cl8153posdeim" path="res://Assets/grass_tile_set.tres" id="8_wphs7"]
[sub_resource type="CircleShape2D" id="CircleShape2D_6g88q"]
@@ -53,9 +55,15 @@ z_index = 3
script = ExtResource("6_0pqvb")
[node name="TrackLine" type="Line2D" parent="DrawNode"]
-z_index = 1
-points = PackedVector2Array(1636, 177)
-default_color = Color(0.870588, 0.870588, 0.870588, 0.431373)
+texture_repeat = 2
+width = 70.0
+texture = ExtResource("7_w2gmt")
+texture_mode = 1
+script = ExtResource("7_d0og5")
+
+[node name="LeftBorder" type="Line2D" parent="DrawNode/TrackLine"]
+
+[node name="RightBorder" type="Line2D" parent="DrawNode/TrackLine"]
[node name="TrackPath" type="Path2D" parent="DrawNode"]
curve = SubResource("Curve2D_0exre")