[gd_scene load_steps=9 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="PackedScene" uid="uid://cbmr1tbvbheda" path="res://assets/scenes/survivor_spot.tscn" id="6_c1csp"]

[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_yhw6y"]
blend_mode = 1
light_mode = 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="."]
wait_time = 3.5
autostart = true

[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="EnemySpawn_1" type="Marker2D" parent="." groups=["spawner"]]
position = Vector2(48, 426)

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

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

[node name="SurvivorSpot" parent="." instance=ExtResource("6_c1csp")]
position = Vector2(497, 451)

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

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

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

[node name="SurvivorSpot2" parent="." instance=ExtResource("6_c1csp")]
position = Vector2(497, 511)

[node name="SurvivorSpot3" parent="." instance=ExtResource("6_c1csp")]
position = Vector2(497, 570)

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

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

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

[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
[connection signal="area_entered" from="Base" to="." method="_on_base_area_entered"]
