[gd_scene load_steps=13 format=3 uid="uid://c483fkssc36s"]

[ext_resource type="Script" path="res://screens/game.gd" id="1_4dd0q"]
[ext_resource type="Texture2D" uid="uid://ceelbowk0q0rl" path="res://assets/textures/room/Light_Overlay.png" id="2_px5xi"]
[ext_resource type="PackedScene" uid="uid://odwutyui6q5g" path="res://assets/scenes/health_bar.tscn" id="2_x77og"]
[ext_resource type="PackedScene" uid="uid://c27ceu18q8eyr" path="res://assets/scenes/room.tscn" id="3_hm7l7"]
[ext_resource type="PackedScene" uid="uid://ce8cu4romympf" path="res://assets/scenes/transition.tscn" id="4_yc6k4"]
[ext_resource type="LabelSettings" uid="uid://dcy2uk6m62egc" path="res://screens/ui_label_settings.tres" id="5_wbjut"]
[ext_resource type="PackedScene" uid="uid://cbmr1tbvbheda" path="res://assets/scenes/survivor_spot.tscn" id="6_c1csp"]
[ext_resource type="PackedScene" uid="uid://bw0opjv1ewa8b" path="res://assets/scenes/player_spawn_zone.tscn" id="7_k4x0x"]
[ext_resource type="AudioStream" uid="uid://evkshq2p1b3t" path="res://assets/audio/Begin_V2.wav" id="9_eq4qn"]

[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_yhw6y"]
blend_mode = 1
light_mode = 1

[sub_resource type="LabelSettings" id="LabelSettings_hn3kd"]
font_size = 23
outline_size = 3
outline_color = Color(0, 0, 0, 1)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_p2163"]
size = Vector2(472, 288)

[node name="Game" type="Node2D"]
script = ExtResource("1_4dd0q")

[node name="Room" parent="." instance=ExtResource("3_hm7l7")]

[node name="Light-Overlay" type="Sprite2D" parent="."]
visible = false
material = SubResource("CanvasItemMaterial_yhw6y")
position = Vector2(640, 360)
scale = Vector2(0.5, 0.5)
texture = ExtResource("2_px5xi")

[node name="HealthBar" parent="." instance=ExtResource("2_x77og")]
position = Vector2(640, 73)

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

[node name="UI" type="CanvasLayer" parent="."]
layer = 9

[node name="Root" type="Control" parent="UI"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2

[node name="WaveLabel" type="Label" parent="UI/Root"]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -46.0
offset_right = 224.0
grow_vertical = 0
text = "WAVE: 9999"
label_settings = ExtResource("5_wbjut")
vertical_alignment = 1

[node name="PhaseLabel" type="Label" parent="UI/Root"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -123.5
offset_top = -46.0
offset_right = 123.5
grow_horizontal = 2
grow_vertical = 0
text = "PHASE: SETUP"
label_settings = ExtResource("5_wbjut")
horizontal_alignment = 1
vertical_alignment = 1

[node name="NextPhaseButton" type="Button" parent="UI/Root"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -103.0
offset_top = -31.0
grow_horizontal = 0
grow_vertical = 0
theme_override_font_sizes/font_size = 34
text = "NEXT PHASE"

[node name="LeftEnemyLabel" type="Label" parent="UI/Root"]
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 24.0
offset_top = 50.0
offset_right = 70.0
offset_bottom = 78.0
grow_vertical = 2
text = "9999"
label_settings = SubResource("LabelSettings_hn3kd")
horizontal_alignment = 1

[node name="RightEnemyLabel" type="Label" parent="UI/Root"]
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 1206.0
offset_top = 48.0
offset_right = 1258.0
offset_bottom = 80.0
grow_vertical = 2
text = "9999"
label_settings = SubResource("LabelSettings_hn3kd")
horizontal_alignment = 1

[node name="TopEnemyLabel" type="Label" parent="UI/Root"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -26.0
offset_top = 190.0
offset_right = 26.0
offset_bottom = 222.0
grow_horizontal = 2
text = "9999"
label_settings = SubResource("LabelSettings_hn3kd")
horizontal_alignment = 1

[node name="Overlay" type="CanvasLayer" parent="."]
layer = 10
visible = false

[node name="Transition" parent="Overlay" instance=ExtResource("4_yc6k4")]

[node name="Base" type="Area2D" parent="." groups=["base"]]
collision_mask = 12

[node name="CollisionShape2D" type="CollisionShape2D" parent="Base"]
position = Vector2(639, 509)
shape = SubResource("RectangleShape2D_p2163")

[node name="PlayerSpawnZone" parent="." instance=ExtResource("7_k4x0x")]
position = Vector2(635, 572)

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

[node name="EnemySpawn_Left" type="Marker2D" parent="EnemySpawns" groups=["spawner"]]
position = Vector2(48, 426)

[node name="EnemySpawn_Right" type="Marker2D" parent="EnemySpawns" groups=["spawner"]]
position = Vector2(1234, 424)

[node name="EnemySpawn_Top" type="Marker2D" parent="EnemySpawns" groups=["spawner"]]
position = Vector2(641, 207)

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

[node name="SurvivorSpot" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
position = Vector2(497, 451)
rotation = -1.5708

[node name="SurvivorSpot7" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
position = Vector2(575, 451)

[node name="SurvivorSpot8" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
position = Vector2(637, 451)

[node name="SurvivorSpot9" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
position = Vector2(701, 451)

[node name="SurvivorSpot2" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
position = Vector2(497, 511)
rotation = -1.5708

[node name="SurvivorSpot3" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
position = Vector2(497, 570)
rotation = -1.5708

[node name="SurvivorSpot4" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
position = Vector2(778, 451)
rotation = 1.5708

[node name="SurvivorSpot5" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
position = Vector2(778, 511)
rotation = 1.5708

[node name="SurvivorSpot6" parent="SurvivorSpots" instance=ExtResource("6_c1csp")]
position = Vector2(778, 570)
rotation = 1.5708

[node name="Sounds" type="Node" parent="."]

[node name="CombatStartSound" type="AudioStreamPlayer" parent="Sounds"]
stream = ExtResource("9_eq4qn")

[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
[connection signal="pressed" from="UI/Root/NextPhaseButton" to="." method="_on_next_phase_button_pressed"]
[connection signal="area_entered" from="Base" to="." method="_on_base_area_entered"]
