main.tscn 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. [gd_scene load_steps=10 format=2]
  2. [ext_resource path="res://component/ui/message_panel/MessagePanel.tscn" type="PackedScene" id=1]
  3. [ext_resource path="res://component/entity/launcher/Launcher.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://component/entity/catcher/Catcher.tscn" type="PackedScene" id=3]
  5. [ext_resource path="res://component/entity/brick/Grid.tscn" type="PackedScene" id=4]
  6. [ext_resource path="res://component/ui/UI.gd" type="Script" id=5]
  7. [ext_resource path="res://component/ui/number_panel/NumberPanel.tscn" type="PackedScene" id=6]
  8. [ext_resource path="res://component/entity/death/Death.tscn" type="PackedScene" id=7]
  9. [ext_resource path="res://main.gd" type="Script" id=8]
  10. [ext_resource path="res://component/entity/border/Border.tscn" type="PackedScene" id=13]
  11. [node name="Game" type="Node"]
  12. script = ExtResource( 8 )
  13. [node name="Background" type="Panel" parent="."]
  14. margin_right = 400.0
  15. margin_bottom = 400.0
  16. __meta__ = {
  17. "_edit_use_anchors_": false
  18. }
  19. [node name="Border" parent="." instance=ExtResource( 13 )]
  20. [node name="Catcher" parent="." instance=ExtResource( 3 )]
  21. [node name="Launcher" parent="." instance=ExtResource( 2 )]
  22. [node name="Grid" parent="." instance=ExtResource( 4 )]
  23. [node name="DeadLine" parent="." instance=ExtResource( 7 )]
  24. [node name="UI" type="Control" parent="."]
  25. margin_right = 40.0
  26. margin_bottom = 40.0
  27. script = ExtResource( 5 )
  28. __meta__ = {
  29. "_edit_use_anchors_": false
  30. }
  31. [node name="GameOverPanel" parent="UI" instance=ExtResource( 1 )]
  32. visible = false
  33. message = "Game Over!"
  34. [node name="TutorialPanel" parent="UI" instance=ExtResource( 1 )]
  35. message = "Click to shoot a ball!"
  36. [node name="ScoreCounter" parent="UI" instance=ExtResource( 6 )]
  37. margin_left = 350.0
  38. margin_top = 360.0
  39. margin_right = 390.0
  40. margin_bottom = 390.0
  41. title = "Score"
  42. [node name="BallCounter" parent="UI" instance=ExtResource( 6 )]
  43. margin_left = 10.0
  44. margin_top = 360.0
  45. margin_right = 50.0
  46. margin_bottom = 390.0
  47. title = "Balls"
  48. [connection signal="start_new_game" from="." to="Grid" method="_on_Game_start_new_game"]
  49. [connection signal="start_new_game" from="." to="Launcher" method="_on_Game_start_new_game"]
  50. [connection signal="start_new_game" from="." to="UI/GameOverPanel" method="hide"]
  51. [connection signal="start_new_game" from="." to="UI/ScoreCounter" method="reset_counter"]
  52. [connection signal="start_new_game" from="." to="UI/BallCounter" method="reset_counter"]
  53. [connection signal="gain_new_bullet" from="Launcher" to="UI/BallCounter" method="increase_counter"]
  54. [connection signal="get_firing" from="Launcher" to="UI" method="_on_Launcher_get_firing"]
  55. [connection signal="is_full" from="Launcher" to="Grid" method="_on_Launcher_is_full"]
  56. [connection signal="has_moved" from="Grid" to="Launcher" method="_on_Grid_has_moved"]
  57. [connection signal="has_moved" from="Grid" to="DeadLine" method="_on_Grid_has_moved"]
  58. [connection signal="kace_broken" from="Grid" to="Launcher" method="_on_Grid_kace_broken"]
  59. [connection signal="kace_damaged" from="Grid" to="UI/ScoreCounter" method="increase_counter"]
  60. [connection signal="game_lost" from="DeadLine" to="Launcher" method="_on_DeadLine_game_lost"]
  61. [connection signal="game_lost" from="DeadLine" to="." method="_on_game_lost"]
  62. [connection signal="game_lost" from="DeadLine" to="UI" method="_on_DeadLine_game_lost"]