[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://djifkreeh0nb4" path="res://assets/textures/game_background.jpg" id="2_qk61j"]
[ext_resource type="PackedScene" path="res://assets/scenes/health_bar.tscn" id="2_x77og"]
[ext_resource type="Texture2D" uid="uid://r2ph4fobqo17" path="res://assets/textures/Light_Overlay.png" id="3_86s7d"]
[ext_resource type="PackedScene" uid="uid://ce8cu4romympf" path="res://assets/scenes/transition.tscn" id="4_yc6k4"]
[ext_resource type="AudioStream" uid="uid://c8e6a4uxb6qql" path="res://assets/audio/explosionCrunch_000.ogg" id="6_ufcvu"]

[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="Background" type="Sprite2D" parent="."]
z_index = -10
position = Vector2(640, 360)
scale = Vector2(0.5, 0.5)
texture = ExtResource("2_qk61j")

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

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

[node name="Timer" type="Timer" parent="."]
wait_time = 3.5
autostart = true

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

[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(63, 424)

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

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

[node name="BaseHitSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("6_ufcvu")

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