[gd_scene load_steps=6 format=2]

[ext_resource path="res://scripts/game.gd" type="Script" id=1]
[ext_resource path="res://scenes/character.tscn" type="PackedScene" id=2]
[ext_resource path="res://scenes/ui/HUD.tscn" type="PackedScene" id=3]
[ext_resource path="res://scenes/ui/scoreboard.tscn" type="PackedScene" id=4]
[ext_resource path="res://scenes/background.tscn" type="PackedScene" id=5]

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

script = ExtResource( 1 )

[node name="Level" type="Node" parent="." index="0"]

[node name="Guys" type="Node" parent="." index="1"]

editor/display_folded = true

[node name="Player" parent="Guys" index="0" instance=ExtResource( 2 )]

visible = false
position = Vector2( 560, 272 )
z_index = 1
is_bot = false
nickname = "Player"
skin_color = Color( 1, 1, 1, 1 )
helment_color = Color( 0.804688, 0.606659, 0.0125732, 1 )
armor_color = Color( 0.222656, 0.20662, 0.187866, 1 )

[node name="Particles" type="Node" parent="." index="2"]

_sections_unfolded = [ "Z Index" ]

[node name="Shots" type="Node" parent="." index="3"]

[node name="GUI" parent="." index="4" instance=ExtResource( 3 )]

editor/display_folded = true

[node name="Scoreboard" parent="GUI" index="3" instance=ExtResource( 4 )]

_sections_unfolded = [ "Anchor", "Margin", "Visibility" ]

[node name="QuitDialog" type="ConfirmationDialog" parent="GUI" index="4"]

pause_mode = 2
visible = false
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -100.0
margin_top = -35.0
margin_right = 100.0
margin_bottom = 35.0
rect_min_size = Vector2( 200, 70 )
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
popup_exclusive = true
window_title = "Quit"
resizable = false
dialog_text = "Quit to menu?"
dialog_hide_on_ok = true
_sections_unfolded = [ "Dialog", "Pause", "Popup" ]

[node name="ParallaxBackground" parent="." index="5" instance=ExtResource( 5 )]

[connection signal="on_change_weapon" from="Guys/Player" to="." method="_on_Player_change_weapon"]

[connection signal="on_health_change" from="Guys/Player" to="." method="_on_Player_on_health_change"]

[connection signal="on_shoot" from="Guys/Player" to="." method="_on_Player_shoot"]

[connection signal="confirmed" from="GUI/QuitDialog" to="." method="_on_QuitDialog_confirmed"]

[connection signal="hide" from="GUI/QuitDialog" to="." method="_on_QuitDialog_hide"]


