[gd_scene load_steps=15 format=3 uid="uid://c4dloid4y3of3"]

[ext_resource type="Script" path="res://src/game/levels/level.gd" id="1_ijrq0"]
[ext_resource type="Texture2D" uid="uid://dio3rrptd6w7c" path="res://assets/bg_90_bk.png" id="2_tghpu"]
[ext_resource type="Texture2D" uid="uid://gjr7tbyrdo6e" path="res://assets/bkbg.png" id="2_ugncc"]
[ext_resource type="Texture2D" uid="uid://ds0un04pocx6i" path="res://assets/track_90_bk.png" id="3_m80eb"]
[ext_resource type="Texture2D" uid="uid://dmcrms0qu0mtt" path="res://assets/finish2.png" id="4_1w2e5"]
[ext_resource type="PackedScene" uid="uid://ckau5s2tsb3oc" path="res://src/game/player.tscn" id="5_4d0xw"]
[ext_resource type="PackedScene" uid="uid://cdlbh3smpgg42" path="res://src/gui/hud/hud.tscn" id="6_tmqkf"]
[ext_resource type="PackedScene" uid="uid://c0sexrwxdge73" path="res://src/gui/menu/level.tscn" id="7_bv3bp"]
[ext_resource type="AudioStream" uid="uid://dh5jxxwim7ra8" path="res://assets/sounds/music/death_by_waveshaper.wav" id="9_vi54e"]
[ext_resource type="PackedScene" uid="uid://da1mcxm6jcpbo" path="res://assets/arrow_light_2.tscn" id="10_k8jma"]
[ext_resource type="PackedScene" uid="uid://ebmku7hq0mxi" path="res://assets/arrow_light_1.tscn" id="10_pjhii"]
[ext_resource type="PackedScene" uid="uid://ya1ctigi23wa" path="res://assets/sign.tscn" id="10_q5p01"]
[ext_resource type="PackedScene" uid="uid://c0v3ix36w45d3" path="res://assets/arrow_light_3.tscn" id="11_t72nj"]

[sub_resource type="Curve2D" id="Curve2D_ll8bj"]
_data = {
"points": PackedVector2Array(-2802.31, 71.2753, 2802.31, -71.2753, 79, -9, 1265.43, 667.42, -1265.43, -667.42, 2775, -2219, -448.839, 1389.02, 448.839, -1389.02, 705, -4334, -1334.21, 639.09, 1334.21, -639.09, 4268, -4877, -1362.52, 285.604, 1362.52, -285.604, 5615, -7559, 42.3785, -1101.84, -42.3785, 1101.84, 8556, -1370, 3038.77, -38.3035, -3038.77, 38.3035, 2317, 1760, 497.722, 1407.91, -497.722, -1407.91, -2614, 1436, -46.8746, 2517.24, 46.8746, -2517.24, -5826, 207, -605.99, 25.7954, 605.99, -25.7954, 79, -9)
}
point_count = 10

[node name="level1" type="Node2D" node_paths=PackedStringArray("path", "line", "player", "finish", "menu")]
script = ExtResource("1_ijrq0")
starting_width = 400.0
shrink_factor = 5.0
level_nr = 2
path = NodePath("TrackPath")
line = NodePath("TrackLine")
player = NodePath("player")
finish = NodePath("FinishLine")
menu = NodePath("CanvasLayer/menu_box")

[node name="EditingBG" type="TextureRect" parent="."]
self_modulate = Color(0.0313726, 0.737255, 0, 1)
offset_left = -10462.0
offset_top = -14103.0
offset_right = 47088.0
offset_bottom = 30041.0
scale = Vector2(0.5, 0.5)
texture = ExtResource("2_ugncc")
stretch_mode = 1

[node name="Background" type="TextureRect" parent="."]
self_modulate = Color(0.0313726, 0.737255, 0, 1)
offset_left = -10462.0
offset_top = -14103.0
offset_right = 47088.0
offset_bottom = 30041.0
scale = Vector2(0.5, 0.5)
texture = ExtResource("2_tghpu")
stretch_mode = 1

[node name="TrackPath" type="Path2D" parent="."]
curve = SubResource("Curve2D_ll8bj")

[node name="TrackLine" type="Line2D" parent="."]
self_modulate = Color(0.976471, 0, 0.960784, 1)
texture_repeat = 2
texture = ExtResource("3_m80eb")
texture_mode = 2
begin_cap_mode = 2

[node name="FinishLine" type="Line2D" parent="."]
texture_repeat = 2
width = 40.0
texture = ExtResource("4_1w2e5")
texture_mode = 1
begin_cap_mode = 2
end_cap_mode = 2
round_precision = 32
antialiased = true

[node name="player" parent="." instance=ExtResource("5_4d0xw")]
position = Vector2(55, -13)
brake_strength = 800.0

[node name="CanvasLayer" type="CanvasLayer" parent="."]

[node name="hud" parent="CanvasLayer" instance=ExtResource("6_tmqkf")]
size_flags_horizontal = 3

[node name="menu_box" type="Control" parent="CanvasLayer"]
visible = false
layout_mode = 3
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2

[node name="level" parent="CanvasLayer/menu_box" instance=ExtResource("7_bv3bp")]
layout_mode = 1

[node name="Node2D" type="Node2D" parent="."]

[node name="Sign" parent="Node2D" instance=ExtResource("10_q5p01")]
light_mask = 7
position = Vector2(-8430, -12571)
rotation = -0.451921
scale = Vector2(36.1222, 29.4521)
energy = 8.0

[node name="Arrow_light_1" parent="Node2D" instance=ExtResource("10_pjhii")]
position = Vector2(2813, -771)
rotation = 0.982893

[node name="Arrow_light_2" parent="Node2D" instance=ExtResource("10_k8jma")]
position = Vector2(1730, -250)
rotation = 1.27233

[node name="Arrow_light_3" parent="Node2D" instance=ExtResource("11_t72nj")]
position = Vector2(266, -16)
rotation = 1.53565

[node name="level_music" type="AudioStreamPlayer" parent="."]
stream = ExtResource("9_vi54e")
volume_db = -29.953
autoplay = true
bus = &"Music"

[node name="Editor_Light" type="DirectionalLight2D" parent="."]
editor_only = true

[connection signal="distance_changed" from="." to="CanvasLayer/hud" method="_on_level_distance_changed"]
[connection signal="speed_changed" from="player" to="CanvasLayer/hud" method="_on_player_speed_changed"]
