main.tscn 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. [gd_scene load_steps=12 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/ui/background/background_texture.png" type="Texture" id=9]
  11. [ext_resource path="res://component/ui/pause/PausePopup.gd" type="Script" id=10]
  12. [ext_resource path="res://component/entity/border/Border.tscn" type="PackedScene" id=13]
  13. [node name="Game" type="Node"]
  14. script = ExtResource( 8 )
  15. [node name="Background" type="TextureRect" parent="."]
  16. anchor_right = 1.0
  17. anchor_bottom = 1.0
  18. texture = ExtResource( 9 )
  19. stretch_mode = 2
  20. [node name="Border" parent="." instance=ExtResource( 13 )]
  21. [node name="Catcher" parent="." instance=ExtResource( 3 )]
  22. [node name="Launcher" parent="." instance=ExtResource( 2 )]
  23. [node name="Grid" parent="." instance=ExtResource( 4 )]
  24. [node name="DeadLine" parent="." instance=ExtResource( 7 )]
  25. [node name="UI" type="Control" parent="."]
  26. anchor_right = 1.0
  27. anchor_bottom = 1.0
  28. script = ExtResource( 5 )
  29. __meta__ = {
  30. "_edit_use_anchors_": false
  31. }
  32. [node name="GameOverPanel" parent="UI" instance=ExtResource( 1 )]
  33. visible = false
  34. message = "Game Over!"
  35. [node name="TutorialPanel" parent="UI" instance=ExtResource( 1 )]
  36. message = "Click to shoot a ball!"
  37. [node name="ScoreCounter" parent="UI" instance=ExtResource( 6 )]
  38. anchor_left = 1.0
  39. anchor_top = 1.0
  40. anchor_right = 1.0
  41. anchor_bottom = 1.0
  42. margin_left = -50.0
  43. margin_top = -40.0
  44. margin_right = -10.0
  45. margin_bottom = -10.0
  46. title = "Score"
  47. [node name="BallCounter" parent="UI" instance=ExtResource( 6 )]
  48. anchor_top = 1.0
  49. anchor_bottom = 1.0
  50. margin_left = 10.0
  51. margin_top = -40.0
  52. margin_right = 50.0
  53. margin_bottom = -10.0
  54. title = "Balls"
  55. [node name="PausePopup" type="Popup" parent="UI"]
  56. pause_mode = 2
  57. anchor_left = 0.5
  58. anchor_top = 0.5
  59. anchor_right = 0.5
  60. anchor_bottom = 0.5
  61. margin_left = -100.0
  62. margin_top = -25.0
  63. margin_right = 100.0
  64. margin_bottom = 25.0
  65. script = ExtResource( 10 )
  66. [node name="PauseMessage" parent="UI/PausePopup" instance=ExtResource( 1 )]
  67. message = "PAUSE"
  68. [connection signal="start_new_game" from="." to="Grid" method="_on_Game_start_new_game"]
  69. [connection signal="start_new_game" from="." to="Launcher" method="_on_Game_start_new_game"]
  70. [connection signal="start_new_game" from="." to="UI/GameOverPanel" method="hide"]
  71. [connection signal="start_new_game" from="." to="UI/ScoreCounter" method="reset_counter"]
  72. [connection signal="start_new_game" from="." to="UI/BallCounter" method="reset_counter"]
  73. [connection signal="gain_new_bullet" from="Launcher" to="UI/BallCounter" method="increase_counter"]
  74. [connection signal="get_firing" from="Launcher" to="UI" method="_on_Launcher_get_firing"]
  75. [connection signal="is_full" from="Launcher" to="Grid" method="_on_Launcher_is_full"]
  76. [connection signal="has_moved" from="Grid" to="DeadLine" method="_on_Grid_has_moved"]
  77. [connection signal="has_moved" from="Grid" to="Launcher" method="_on_Grid_has_moved"]
  78. [connection signal="kace_broken" from="Grid" to="Launcher" method="_on_Grid_kace_broken"]
  79. [connection signal="kace_damaged" from="Grid" to="UI/ScoreCounter" method="increase_counter"]
  80. [connection signal="game_lost" from="DeadLine" to="Launcher" method="_on_DeadLine_game_lost"]
  81. [connection signal="game_lost" from="DeadLine" to="." method="_on_game_lost"]
  82. [connection signal="game_lost" from="DeadLine" to="UI" method="_on_DeadLine_game_lost"]
  83. [connection signal="popup_hide" from="UI/PausePopup" to="UI/PausePopup" method="_on_self_popup_hide"]