|
@@ -14,8 +14,8 @@
|
|
|
script = ExtResource( 8 )
|
|
|
|
|
|
[node name="Background" type="Panel" parent="."]
|
|
|
-margin_right = 400.0
|
|
|
-margin_bottom = 400.0
|
|
|
+anchor_right = 1.0
|
|
|
+anchor_bottom = 1.0
|
|
|
__meta__ = {
|
|
|
"_edit_use_anchors_": false
|
|
|
}
|
|
@@ -31,8 +31,8 @@ __meta__ = {
|
|
|
[node name="DeadLine" parent="." instance=ExtResource( 7 )]
|
|
|
|
|
|
[node name="UI" type="Control" parent="."]
|
|
|
-margin_right = 40.0
|
|
|
-margin_bottom = 40.0
|
|
|
+anchor_right = 1.0
|
|
|
+anchor_bottom = 1.0
|
|
|
script = ExtResource( 5 )
|
|
|
__meta__ = {
|
|
|
"_edit_use_anchors_": false
|
|
@@ -46,28 +46,34 @@ message = "Game Over!"
|
|
|
message = "Click to shoot a ball!"
|
|
|
|
|
|
[node name="ScoreCounter" parent="UI" instance=ExtResource( 6 )]
|
|
|
-margin_left = 350.0
|
|
|
-margin_top = 360.0
|
|
|
-margin_right = 390.0
|
|
|
-margin_bottom = 390.0
|
|
|
+anchor_left = 1.0
|
|
|
+anchor_top = 1.0
|
|
|
+anchor_right = 1.0
|
|
|
+anchor_bottom = 1.0
|
|
|
+margin_left = -50.0
|
|
|
+margin_top = -40.0
|
|
|
+margin_right = -10.0
|
|
|
+margin_bottom = -10.0
|
|
|
title = "Score"
|
|
|
|
|
|
[node name="BallCounter" parent="UI" instance=ExtResource( 6 )]
|
|
|
+anchor_top = 1.0
|
|
|
+anchor_bottom = 1.0
|
|
|
margin_left = 10.0
|
|
|
-margin_top = 360.0
|
|
|
+margin_top = -40.0
|
|
|
margin_right = 50.0
|
|
|
-margin_bottom = 390.0
|
|
|
+margin_bottom = -10.0
|
|
|
title = "Balls"
|
|
|
+[connection signal="start_new_game" from="." to="UI/ScoreCounter" method="reset_counter"]
|
|
|
[connection signal="start_new_game" from="." to="Grid" method="_on_Game_start_new_game"]
|
|
|
[connection signal="start_new_game" from="." to="Launcher" method="_on_Game_start_new_game"]
|
|
|
[connection signal="start_new_game" from="." to="UI/GameOverPanel" method="hide"]
|
|
|
-[connection signal="start_new_game" from="." to="UI/ScoreCounter" method="reset_counter"]
|
|
|
[connection signal="start_new_game" from="." to="UI/BallCounter" method="reset_counter"]
|
|
|
[connection signal="gain_new_bullet" from="Launcher" to="UI/BallCounter" method="increase_counter"]
|
|
|
[connection signal="get_firing" from="Launcher" to="UI" method="_on_Launcher_get_firing"]
|
|
|
[connection signal="is_full" from="Launcher" to="Grid" method="_on_Launcher_is_full"]
|
|
|
-[connection signal="has_moved" from="Grid" to="Launcher" method="_on_Grid_has_moved"]
|
|
|
[connection signal="has_moved" from="Grid" to="DeadLine" method="_on_Grid_has_moved"]
|
|
|
+[connection signal="has_moved" from="Grid" to="Launcher" method="_on_Grid_has_moved"]
|
|
|
[connection signal="kace_broken" from="Grid" to="Launcher" method="_on_Grid_kace_broken"]
|
|
|
[connection signal="kace_damaged" from="Grid" to="UI/ScoreCounter" method="increase_counter"]
|
|
|
[connection signal="game_lost" from="DeadLine" to="Launcher" method="_on_DeadLine_game_lost"]
|