[gd_scene load_steps=21 format=2]

[ext_resource path="res://scenes/support.tscn" type="PackedScene" id=1]
[ext_resource path="res://scripts/level_2.gd" type="Script" id=2]
[ext_resource path="res://sprites/clouds.png" type="Texture" id=3]
[ext_resource path="res://sprites/player.png" type="Texture" id=4]
[ext_resource path="res://scripts/player_plane.gd" type="Script" id=5]
[ext_resource path="res://animations/damage.tres" type="Animation" id=6]
[ext_resource path="res://sprites/ground.png" type="Texture" id=7]
[ext_resource path="res://scenes/fader.tscn" type="PackedScene" id=8]
[ext_resource path="res://scripts/gul.gd" type="Script" id=9]
[ext_resource path="res://scenes/pause_menu.tscn" type="PackedScene" id=10]
[ext_resource path="res://audio/sounds/hit.wav" type="AudioStream" id=11]
[ext_resource path="res://scenes/effect.tscn" type="PackedScene" id=13]

[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.14902, 0.643137, 0.164706, 1 )

[sub_resource type="StyleBoxFlat" id=2]
bg_color = Color( 0.94902, 0.396078, 0.396078, 1 )

[sub_resource type="StyleBoxFlat" id=3]
bg_color = Color( 1, 1, 1, 1 )

[sub_resource type="StyleBoxFlat" id=4]
bg_color = Color( 0.168627, 0.168627, 0.168627, 1 )

[sub_resource type="Animation" id=5]
length = 10.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:rect_position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 10 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 0, -512 ), Vector2( 0, 0 ) ]
}

[sub_resource type="Animation" id=6]
length = 10.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:rect_position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 10 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 0, -512 ), Vector2( 0, 0 ) ]
}

[sub_resource type="Animation" id=7]
length = 10.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:rect_position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 10 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 0, -512 ), Vector2( 0, 0 ) ]
}

[sub_resource type="RectangleShape2D" id=8]
extents = Vector2( 4.5, 1 )

[node name="level_2" type="Node2D"]
script = ExtResource( 2 )

[node name="gul" type="Node" parent="."]
pause_mode = 2
script = ExtResource( 9 )
normal_label_color = Color( 0.827451, 0.827451, 0.196078, 1 )
hover_label_color = Color( 0.168627, 0.168627, 0.168627, 1 )

[node name="healthbar" type="ProgressBar" parent="gul"]
margin_top = 31.0
margin_right = 16.0
margin_bottom = 32.0
custom_styles/fg = SubResource( 1 )
custom_styles/bg = SubResource( 2 )
max_value = 16.0
step = 1.0
value = 16.0
percent_visible = false
__meta__ = {
"_edit_use_anchors_": false
}

[node name="wavebar" type="ProgressBar" parent="gul"]
margin_left = 16.0
margin_top = 31.0
margin_right = 32.0
margin_bottom = 32.0
custom_styles/fg = SubResource( 3 )
custom_styles/bg = SubResource( 4 )
max_value = 16.0
step = 1.0
value = 16.0
percent_visible = false
__meta__ = {
"_edit_use_anchors_": false
}

[node name="pause_menu" parent="gul" instance=ExtResource( 10 )]

[node name="bg" type="CanvasLayer" parent="."]
layer = -1

[node name="ground" type="Control" parent="bg"]
margin_top = -512.0
margin_bottom = -512.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="sprite_1" type="Sprite" parent="bg/ground"]
texture = ExtResource( 7 )
centered = false

[node name="sprite_2" type="Sprite" parent="bg/ground"]
position = Vector2( 0, 512 )
texture = ExtResource( 7 )
centered = false

[node name="anim" type="AnimationPlayer" parent="bg/ground"]
autoplay = "move"
playback_speed = 0.1
anims/move = SubResource( 5 )

[node name="clouds2" type="Control" parent="bg"]
modulate = Color( 0.168627, 0.168627, 0.168627, 1 )
margin_top = -512.0
margin_bottom = -512.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="sprite_1" type="Sprite" parent="bg/clouds2"]
texture = ExtResource( 3 )
centered = false
flip_h = true
flip_v = true

[node name="sprite_2" type="Sprite" parent="bg/clouds2"]
position = Vector2( 0, 512 )
texture = ExtResource( 3 )
centered = false
flip_h = true
flip_v = true

[node name="anim" type="AnimationPlayer" parent="bg/clouds2"]
autoplay = "move"
playback_speed = 0.2
anims/move = SubResource( 6 )

[node name="clouds" type="Control" parent="bg"]
modulate = Color( 0.47451, 0.47451, 0.47451, 1 )
margin_top = -512.0
margin_bottom = -512.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="sprite_1" type="Sprite" parent="bg/clouds"]
texture = ExtResource( 3 )
centered = false

[node name="sprite_2" type="Sprite" parent="bg/clouds"]
position = Vector2( 0, 512 )
texture = ExtResource( 3 )
centered = false

[node name="anim" type="AnimationPlayer" parent="bg/clouds"]
autoplay = "move"
playback_speed = 0.6
anims/move = SubResource( 7 )

[node name="player" type="Area2D" parent="."]
position = Vector2( 15, 28 )
collision_layer = 2
collision_mask = 5
script = ExtResource( 5 )

[node name="sprite" type="Sprite" parent="player"]
texture = ExtResource( 4 )
offset = Vector2( 0.5, 0.5 )

[node name="bullet_time" type="Timer" parent="player"]
wait_time = 0.2
one_shot = true

[node name="bullet_pos" type="Position2D" parent="player"]
position = Vector2( 0, -1 )

[node name="left_rocket_pos" type="Position2D" parent="player"]
visible = false
position = Vector2( -3, -2 )

[node name="pol" type="Polygon2D" parent="player/left_rocket_pos"]
color = Color( 1, 1, 0, 1 )
polygon = PoolVector2Array( 1, 0, 0, 0, 0, 2, 1, 2 )

[node name="right_rocket_pos" type="Position2D" parent="player"]
visible = false
position = Vector2( 3, -2 )

[node name="pol" type="Polygon2D" parent="player/right_rocket_pos"]
position = Vector2( -6, 0 )
color = Color( 1, 1, 0, 1 )
polygon = PoolVector2Array( 6, 0, 6, 2, 7, 2, 7, 0 )

[node name="support_left" parent="player" instance=ExtResource( 1 )]
position = Vector2( -6, 2 )

[node name="support_right" parent="player" instance=ExtResource( 1 )]
position = Vector2( 6, 2 )

[node name="coll" type="CollisionShape2D" parent="player"]
position = Vector2( 0.5, 1 )
shape = SubResource( 8 )

[node name="hit" type="AudioStreamPlayer" parent="player"]
stream = ExtResource( 11 )

[node name="anim" type="AnimationPlayer" parent="player"]
anims/damage = ExtResource( 6 )

[node name="effect" parent="." instance=ExtResource( 13 )]

[node name="fader" parent="." instance=ExtResource( 8 )]
pause_mode = 2
z_index = 3
z_as_relative = false

[node name="spawn_time" type="Timer" parent="."]
one_shot = true
