diff options
author | cel 🌸 <cel@blos.sm> | 2023-07-09 17:05:34 +0100 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2023-07-09 17:05:34 +0100 |
commit | add9ec2b23eacfb1994da8694e51f87cc0ce7c0a (patch) | |
tree | 383133968be8f07a7cef4858f7790e16811509a4 /Levels/Level2.tscn | |
parent | 496bede74836502c024d132e0c7d86664e753cf0 (diff) | |
parent | 041ce9927f269ce55cb5a5dfa1e3f9f668590fcf (diff) | |
download | 2023-add9ec2b23eacfb1994da8694e51f87cc0ce7c0a.tar.gz 2023-add9ec2b23eacfb1994da8694e51f87cc0ce7c0a.tar.bz2 2023-add9ec2b23eacfb1994da8694e51f87cc0ce7c0a.zip |
added road smoothing
Diffstat (limited to '')
-rw-r--r-- | Levels/Level2.tscn | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Levels/Level2.tscn b/Levels/Level2.tscn index 812749e..fd2e379 100644 --- a/Levels/Level2.tscn +++ b/Levels/Level2.tscn @@ -6,8 +6,10 @@ [ext_resource type="Texture2D" uid="uid://cxhterify3l" path="res://Assets/Images/goal.png" id="4_euu0i"] [ext_resource type="PackedScene" uid="uid://c1mvbh2fwqtkb" path="res://Nodes/car.tscn" id="5_5co3o"] [ext_resource type="Script" path="res://Scripts/drawing.gd" id="6_hv33l"] +[ext_resource type="Texture2D" uid="uid://bcn7tgs6a4fm7" path="res://Assets/road.png" id="7_k0xyq"] [ext_resource type="TileSet" uid="uid://cl8153posdeim" path="res://Assets/grass_tile_set.tres" id="7_lgn1k"] [ext_resource type="PackedScene" uid="uid://wkfai2lvnp7n" path="res://Nodes/checkpoint.tscn" id="7_vm5ky"] +[ext_resource type="Script" path="res://Scripts/Road.gd" id="8_ni64o"] [sub_resource type="CircleShape2D" id="CircleShape2D_6g88q"] radius = 17.0 @@ -49,15 +51,23 @@ shape = SubResource("CircleShape2D_6g88q") [node name="DrawNode" type="Node2D" parent="."] script = ExtResource("6_hv33l") -[node name="TrackLine" type="Line2D" parent="DrawNode"] -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_k0xyq") +texture_mode = 1 +script = ExtResource("8_ni64o") + +[node name="LeftBorder" type="Line2D" parent="DrawNode/TrackLine"] + +[node name="RightBorder" type="Line2D" parent="DrawNode/TrackLine"] + [node name="Checkpoints" type="Node" parent="."] [node name="Checkpoint" parent="Checkpoints" instance=ExtResource("7_vm5ky")] |