[gd_scene load_steps=17 format=3 uid="uid://sukfq8clv4s0"]

[ext_resource type="Texture2D" uid="uid://xlfmu7wr8mhb" path="res://Textures/Level01/Sky2.png" id="1_4a42c"]
[ext_resource type="Texture2D" uid="uid://88sgqxmugeto" path="res://Textures/Level01/Sky1.png" id="2_vchpd"]
[ext_resource type="Texture2D" uid="uid://w527cw3q2qhm" path="res://Textures/Level01/Sky3.png" id="3_2h5vj"]
[ext_resource type="PackedScene" uid="uid://b6gjwbfujf38y" path="res://Scenes/heads_up_display.tscn" id="4_fiy6t"]
[ext_resource type="PackedScene" uid="uid://bjbccem28ir8r" path="res://Scenes/player.tscn" id="5_dh16x"]
[ext_resource type="PackedScene" uid="uid://dguvnd4wmo35j" path="res://Scenes/enemy_waves.tscn" id="6_7y0em"]
[ext_resource type="PackedScene" uid="uid://baqm758lyy4o3" path="res://Scenes/Waves/Level 01/sample_shooting.tscn" id="7_4pyr6"]
[ext_resource type="PackedScene" uid="uid://bkm7p6iqiqm21" path="res://Scenes/Waves/Level 01/sample.tscn" id="7_gs225"]
[ext_resource type="PackedScene" uid="uid://b8vxsep2lvw3a" path="res://Scenes/Waves/begin.tscn" id="8_3hfxd"]
[ext_resource type="PackedScene" uid="uid://bd0ehge1veq56" path="res://Scenes/Waves/end.tscn" id="9_a1qi8"]
[ext_resource type="PackedScene" uid="uid://dyqnmrhflct7u" path="res://Scenes/Waves/Level 01/sample_behind.tscn" id="9_ggr54"]

[sub_resource type="Gradient" id="Gradient_ay0jx"]
colors = PackedColorArray(0, 0.172549, 1, 1, 0, 0.623529, 1, 1)

[sub_resource type="GradientTexture2D" id="GradientTexture2D_1gw3d"]
gradient = SubResource("Gradient_ay0jx")
width = 1280
height = 720
fill_from = Vector2(1, 1)

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ctueq"]
particle_flag_disable_z = true
emission_shape = 3
emission_box_extents = Vector3(1, 360, 1)
angle_min = 1.07288e-05
angle_max = 1.07288e-05
inherit_velocity_ratio = 1.0
direction = Vector3(-1, 0, 0)
spread = 0.0
initial_velocity_min = 25.0
initial_velocity_max = 75.0
gravity = Vector3(0, 0, 0)
scale_max = 2.0

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_dvhti"]
particle_flag_disable_z = true
emission_shape = 3
emission_box_extents = Vector3(1, 360, 1)
angle_min = 1.07288e-05
angle_max = 1.07288e-05
inherit_velocity_ratio = 1.0
direction = Vector3(-1, 0, 0)
spread = 0.0
initial_velocity_min = 100.0
initial_velocity_max = 250.0
gravity = Vector3(0, 0, 0)
scale_min = 0.8
scale_max = 1.3

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_4312q"]
particle_flag_disable_z = true
emission_shape = 3
emission_box_extents = Vector3(1, 360, 1)
angle_min = 1.07288e-05
angle_max = 1.07288e-05
inherit_velocity_ratio = 1.0
direction = Vector3(-1, 0, 0)
spread = 0.0
initial_velocity_min = 50.0
initial_velocity_max = 1000.0
gravity = Vector3(0, 0, 0)
scale_min = 0.3
scale_max = 1.1

[node name="Level 01" type="Node2D"]

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

[node name="TextureRect" type="TextureRect" parent="Background"]
offset_right = 40.0
offset_bottom = 40.0
texture = SubResource("GradientTexture2D_1gw3d")

[node name="SlowestClouds" type="GPUParticles2D" parent="Background"]
position = Vector2(1800, 360)
amount = 40
process_material = SubResource("ParticleProcessMaterial_ctueq")
texture = ExtResource("1_4a42c")
lifetime = 480.0
preprocess = 120.0
visibility_rect = Rect2(-2000, -2000, 4000, 4000)

[node name="SlowClouds" type="GPUParticles2D" parent="Background"]
position = Vector2(1800, 360)
amount = 20
process_material = SubResource("ParticleProcessMaterial_dvhti")
texture = ExtResource("2_vchpd")
lifetime = 120.0
preprocess = 40.0
visibility_rect = Rect2(-2000, -2000, 4000, 4000)

[node name="FastClouds" type="GPUParticles2D" parent="Background"]
position = Vector2(1800, 360)
amount = 40
process_material = SubResource("ParticleProcessMaterial_4312q")
texture = ExtResource("3_2h5vj")
lifetime = 40.0
preprocess = 10.0
visibility_rect = Rect2(-2000, -2000, 4000, 4000)

[node name="HeadsUpDisplay" parent="." instance=ExtResource("4_fiy6t")]

[node name="Player" parent="." instance=ExtResource("5_dh16x")]
position = Vector2(157, 279)
slide_on_ceiling = false

[node name="EnemyWaves" parent="." instance=ExtResource("6_7y0em")]
WaveWaits = Array[float]([0.0, 7.0, 4.0])
WaveScenes = Array[PackedScene]([ExtResource("7_4pyr6"), ExtResource("7_gs225"), ExtResource("9_ggr54")])
BeginningFade = ExtResource("8_3hfxd")
EndingFadeTime = 5.0
EndingFade = ExtResource("9_a1qi8")

[connection signal="PlayerTookDamage" from="Player" to="HeadsUpDisplay" method="_on_player_player_took_damage"]
