[gd_scene load_steps=20 format=2]

[ext_resource path="res://Main.gd" type="Script" id=1]
[ext_resource path="res://Bad1.tscn" type="PackedScene" id=2]
[ext_resource path="res://Bloob.tscn" type="PackedScene" id=3]
[ext_resource path="res://BadLaser.tscn" type="PackedScene" id=4]
[ext_resource path="res://Prison.tscn" type="PackedScene" id=5]
[ext_resource path="res://RectangleBoss.tscn" type="PackedScene" id=6]
[ext_resource path="res://BlackHole.tscn" type="PackedScene" id=7]
[ext_resource path="res://BG.gd" type="Script" id=8]
[ext_resource path="res://art/bg.png" type="Texture" id=9]
[ext_resource path="res://Player.tscn" type="PackedScene" id=10]
[ext_resource path="res://Mothership.tscn" type="PackedScene" id=11]
[ext_resource path="res://OtherPlayer.tscn" type="PackedScene" id=12]
[ext_resource path="res://art/interface/how_to.png" type="Texture" id=13]
[ext_resource path="res://art/interface/how_to_desktop.png" type="Texture" id=14]
[ext_resource path="res://art/interface/pause.png" type="Texture" id=15]

[sub_resource type="ImageTexture" id=1]

flags = 7
storage = 0
lossy_quality = 0.7
flags = 7
size = Vector2( 0, 0 )

[sub_resource type="SpriteFrames" id=2]

animations = [ {
"frames": [ ExtResource( 13 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]

[sub_resource type="SpriteFrames" id=3]

animations = [ {
"frames": [ ExtResource( 14 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]

[sub_resource type="SpriteFrames" id=4]

animations = [ {
"frames": [ ExtResource( 15 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]

[node name="Main" type="Node" index="0"]

script = ExtResource( 1 )
_sections_unfolded = [ "Pause" ]
FirstBad = ExtResource( 2 )
BlobBad = ExtResource( 3 )
LaserBad = ExtResource( 4 )
Prison = ExtResource( 5 )
RectangleBoss = ExtResource( 6 )
BlackHole = ExtResource( 7 )

[node name="BG" type="Node2D" parent="." index="0"]

z_index = -1
script = ExtResource( 8 )
_sections_unfolded = [ "Z Index" ]

[node name="bg1" type="Sprite" parent="BG" index="0"]

position = Vector2( 577.646, 365.663 )
scale = Vector2( 0.694364, 0.694364 )
texture = ExtResource( 9 )
_sections_unfolded = [ "Transform" ]

[node name="bg2" type="Sprite" parent="BG" index="1"]

position = Vector2( 1823.66, 361.868 )
scale = Vector2( 0.6985, 0.6985 )
texture = ExtResource( 9 )
_sections_unfolded = [ "Transform" ]

[node name="Sprite" type="Sprite" parent="." index="1"]

visible = false
z_index = -5
texture = SubResource( 1 )
_sections_unfolded = [ "Z Index" ]

[node name="Player" parent="." index="2" instance=ExtResource( 10 )]

[node name="BaddieTimer" type="Timer" parent="." index="3"]

process_mode = 1
wait_time = 2.0
one_shot = false
autostart = false

[node name="Mothership" parent="." index="4" instance=ExtResource( 11 )]

position = Vector2( 18.327, 304.835 )

[node name="MoneyDisplay" type="Label" parent="." index="5"]

anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 913.0
margin_top = 536.0
margin_right = 1006.0
margin_bottom = 571.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
text = "$0"
align = 2
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
_sections_unfolded = [ "Size Flags", "custom_fonts" ]

[node name="OtherPlayer" parent="." index="6" instance=ExtResource( 12 )]

visible = false
_sections_unfolded = [ "Material", "Transform", "Visibility" ]

[node name="BossHealth" type="Line2D" parent="." index="7"]

points = PoolVector2Array( 100, 50, 900, 50 )
width = 15.0
default_color = Color( 1, 0, 0, 0 )
texture_mode = 31
sharp_limit = 2.0
round_precision = 8

[node name="ColorRect" type="ColorRect" parent="." index="8"]

visible = false
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 1026.0
margin_bottom = 601.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
color = Color( 0, 0, 0, 1 )
_sections_unfolded = [ "Visibility" ]

[node name="HowTo" type="AnimatedSprite" parent="." index="9"]

visible = false
position = Vector2( 482.397, 299.674 )
scale = Vector2( 0.42077, 0.42077 )
frames = SubResource( 2 )
animation = "default"
_sections_unfolded = [ "Transform", "Visibility" ]

[node name="HowToDesktop" type="AnimatedSprite" parent="." index="10"]

visible = false
position = Vector2( 482, 300 )
scale = Vector2( 0.42, 0.42 )
frames = SubResource( 3 )
animation = "default"
_sections_unfolded = [ "Transform", "Visibility" ]

[node name="ShootButton" type="Button" parent="." index="11"]

anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 785.0
margin_top = 269.0
margin_right = 1022.0
margin_bottom = 599.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
disabled = true
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
flat = true
align = 1
_sections_unfolded = [ "Theme" ]

[node name="PauseButton" type="Button" parent="." index="12"]

anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 940.0
margin_top = 36.0
margin_right = 1001.0
margin_bottom = 100.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
flat = true
align = 1

[node name="Pause" type="AnimatedSprite" parent="." index="13"]

position = Vector2( 972.128, 67.044 )
scale = Vector2( 0.199771, 0.199771 )
frames = SubResource( 4 )
animation = "default"

[node name="HideHowTo" type="Button" parent="." index="14"]

anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = -50.0
margin_top = -15.0
margin_right = 1044.0
margin_bottom = 623.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
action_mode = 0
enabled_focus_mode = 2
shortcut = null
group = null
flat = true
align = 1
_sections_unfolded = [ "Visibility" ]

[connection signal="body_entered" from="Player" to="Player" method="_on_Player_body_entered"]

[connection signal="double_laser_upgrade" from="Player" to="." method="double_laser_upgrade"]

[connection signal="multiplayer_movement" from="Player" to="." method="_on_Player_multiplayer_movement"]

[connection signal="other_ship_color_change" from="Player" to="." method="other_ship_color_change"]

[connection signal="other_ship_enable_rainbow" from="Player" to="." method="_on_Player_other_ship_enable_rainbow"]

[connection signal="other_shooting_upgrade" from="Player" to="." method="other_shooting_upgrade"]

[connection signal="restart_game" from="Player" to="." method="_on_Player_restart_game"]

[connection signal="restart_game" from="Player" to="Mothership" method="_on_Player_restart_game"]

[connection signal="update_display" from="Player" to="." method="_on_Player_update_display"]

[connection signal="timeout" from="BaddieTimer" to="." method="BaddieTimer"]

[connection signal="body_shape_entered" from="Mothership" to="Mothership" method="_on_Mothership_body_shape_entered"]

[connection signal="game_over" from="Mothership" to="." method="_on_Mothership_game_over"]

[connection signal="button_down" from="ShootButton" to="Player" method="shootDown"]

[connection signal="button_up" from="ShootButton" to="Player" method="shootUp"]

[connection signal="pressed" from="PauseButton" to="." method="_on_PauseButton_pressed"]

[connection signal="pressed" from="HideHowTo" to="." method="_on_HideHowTo_pressed"]


