diff options
Diffstat (limited to '')
-rw-r--r-- | Levels/Level4.tscn | 47 |
1 files changed, 32 insertions, 15 deletions
diff --git a/Levels/Level4.tscn b/Levels/Level4.tscn index 0977738..f7746a8 100644 --- a/Levels/Level4.tscn +++ b/Levels/Level4.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=12 format=3 uid="uid://sblw8ttno2ct"] +[gd_scene load_steps=14 format=3 uid="uid://sblw8ttno2ct"] [ext_resource type="Script" path="res://Scripts/scene_control.gd" id="1_0hoti"] [ext_resource type="PackedScene" uid="uid://c8r6i3bu37ogu" path="res://Nodes/ui.tscn" id="2_6h1wh"] @@ -8,22 +8,25 @@ [ext_resource type="Script" path="res://Scripts/drawing.gd" id="6_rbt70"] [ext_resource type="TileSet" uid="uid://cl8153posdeim" path="res://Assets/grass_tile_set.tres" id="7_35s5k"] [ext_resource type="PackedScene" uid="uid://wkfai2lvnp7n" path="res://Nodes/checkpoint.tscn" id="7_yy012"] +[ext_resource type="Texture2D" uid="uid://x8c4q8wv8u4o" path="res://Assets/road.png" id="9_ff8cx"] +[ext_resource type="Script" path="res://Scripts/Road.gd" id="10_w2ggh"] [sub_resource type="CircleShape2D" id="CircleShape2D_6g88q"] radius = 17.0 -[sub_resource type="Curve2D" id="Curve2D_0exre"] - [sub_resource type="LabelSettings" id="LabelSettings_q0xx8"] outline_size = 3 outline_color = Color(0, 0, 0, 1) +[sub_resource type="Curve2D" id="Curve2D_idkoi"] + [node name="Level_test2" type="Node2D"] script = ExtResource("1_0hoti") [node name="UI" parent="." instance=ExtResource("2_6h1wh")] [node name="Start" type="Node2D" parent="."] +z_index = 2 position = Vector2(572, 212) [node name="Start" type="TextureButton" parent="Start"] @@ -34,6 +37,7 @@ offset_bottom = 8.0 texture_normal = ExtResource("3_2kakl") [node name="FinishLine" type="Sprite2D" parent="."] +z_index = 2 position = Vector2(570, 117) texture = ExtResource("4_elpol") @@ -43,18 +47,7 @@ texture = ExtResource("4_elpol") shape = SubResource("CircleShape2D_6g88q") [node name="Car" parent="." instance=ExtResource("5_hyjpi")] - -[node name="DrawNode" type="Node2D" parent="."] -script = ExtResource("6_rbt70") - -[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 +z_index = 3 [node name="Checkpoints" type="Node" parent="."] @@ -115,4 +108,28 @@ offset_bottom = 26.0 text = "Level 04" label_settings = SubResource("LabelSettings_q0xx8") +[node name="DrawNode" type="Node2D" parent="."] +script = ExtResource("6_rbt70") + +[node name="TrackPath" type="Path2D" parent="DrawNode"] +curve = SubResource("Curve2D_idkoi") + +[node name="TrackFollower" type="PathFollow2D" parent="DrawNode/TrackPath"] +loop = false + +[node name="55886" type="Timer" parent="DrawNode/TrackPath/TrackFollower"] +wait_time = 0.2 +one_shot = true + +[node name="TrackLine" type="Line2D" parent="DrawNode"] +texture_repeat = 2 +width = 70.0 +texture = ExtResource("9_ff8cx") +texture_mode = 1 +script = ExtResource("10_w2ggh") + +[node name="LeftBorder" type="Line2D" parent="DrawNode/TrackLine"] + +[node name="RightBorder" type="Line2D" parent="DrawNode/TrackLine"] + [connection signal="mouse_entered" from="FinishLine/Area2D" to="DrawNode" method="_end_drawing"] |