[gd_scene load_steps=19 format=3 uid="uid://8exnor7d4r2k"]

[ext_resource type="Texture2D" uid="uid://cpefd3ejowpm1" path="res://assets/textures/game_over/failure_2.png" id="1_g6qpv"]
[ext_resource type="Script" path="res://assets/scenes/game_over.gd" id="1_o647k"]
[ext_resource type="Texture2D" uid="uid://dm5y2mjdav5m3" path="res://assets/textures/game_over/failure_1.png" id="2_icodc"]
[ext_resource type="Texture2D" uid="uid://csyxhb3cip37v" path="res://assets/textures/game_over/failure_3.png" id="3_kkw3b"]
[ext_resource type="Texture2D" uid="uid://c724uexjbodrv" path="res://assets/textures/game_over/failure_4.png" id="4_bii53"]
[ext_resource type="Texture2D" uid="uid://48pprrrgfe7d" path="res://assets/textures/game_over/failure_5.png" id="5_cw6tv"]
[ext_resource type="Texture2D" uid="uid://mlvqnk46xvvv" path="res://assets/textures/game_over/failure_6.png" id="6_bpy0b"]
[ext_resource type="Texture2D" uid="uid://ckmqguoahfdxh" path="res://assets/textures/game_over/failure_7.png" id="7_mbl13"]
[ext_resource type="Texture2D" uid="uid://ni6mhofo4bcb" path="res://assets/textures/game_over/failure_8.png" id="8_pnhfj"]
[ext_resource type="Texture2D" uid="uid://buvi4nksxorx3" path="res://assets/textures/game_over/failure_9.png" id="9_3cacg"]
[ext_resource type="Texture2D" uid="uid://dnwoqdwr8u5md" path="res://assets/textures/game_over/failure_10.png" id="10_0jp7g"]
[ext_resource type="Texture2D" uid="uid://dk7spqxunogqr" path="res://assets/textures/game_over/failure_11.png" id="11_vpf65"]
[ext_resource type="AudioStream" uid="uid://oud2xp50pbmx" path="res://assets/audio/Failure_V2.wav" id="13_upgmu"]

[sub_resource type="Animation" id="Animation_bfgqb"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Background:texture")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("1_g6qpv")]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("CloseButton:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("MessageLabel:visible")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}

[sub_resource type="Animation" id="Animation_yytoc"]
resource_name = "close"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Background:texture")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 1,
"values": [ExtResource("11_vpf65"), ExtResource("10_0jp7g"), ExtResource("9_3cacg"), ExtResource("8_pnhfj"), ExtResource("7_mbl13"), ExtResource("6_bpy0b"), ExtResource("5_cw6tv"), ExtResource("4_bii53"), ExtResource("3_kkw3b"), ExtResource("1_g6qpv"), ExtResource("2_icodc")]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("CloseButton:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("MessageLabel:visible")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}

[sub_resource type="Animation" id="Animation_a40w7"]
resource_name = "open"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Background:texture")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 1,
"values": [ExtResource("2_icodc"), ExtResource("1_g6qpv"), ExtResource("3_kkw3b"), ExtResource("4_bii53"), ExtResource("5_cw6tv"), ExtResource("6_bpy0b"), ExtResource("7_mbl13"), ExtResource("8_pnhfj"), ExtResource("9_3cacg"), ExtResource("10_0jp7g"), ExtResource("11_vpf65")]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("CloseButton:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("MessageLabel:visible")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_fmmxf"]
_data = {
"RESET": SubResource("Animation_bfgqb"),
"close": SubResource("Animation_yytoc"),
"open": SubResource("Animation_a40w7")
}

[sub_resource type="LabelSettings" id="LabelSettings_d7ov6"]
font_size = 22

[node name="GameOver" type="Control"]
process_mode = 3
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_o647k")

[node name="Background" type="TextureRect" parent="."]
layout_mode = 1
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
texture = ExtResource("1_g6qpv")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_fmmxf")
}

[node name="CloseButton" type="Button" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -152.0
offset_top = 135.0
offset_right = 153.0
offset_bottom = 188.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 32
text = "CLOSE"

[node name="MessageLabel" type="Label" parent="."]
visible = false
custom_minimum_size = Vector2(340, 180)
layout_mode = 1
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 = -11.5
offset_right = 20.0
offset_bottom = 11.5
grow_horizontal = 2
grow_vertical = 2
text = "YOU DIED AFTER
COMPLETING 9999 WAVES!"
label_settings = SubResource("LabelSettings_d7ov6")
horizontal_alignment = 1
vertical_alignment = 1

[node name="VoiceOver" type="AudioStreamPlayer" parent="."]
stream = ExtResource("13_upgmu")
autoplay = true

[connection signal="pressed" from="CloseButton" to="." method="_on_close_button_pressed"]
