main.tscn 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. [gd_scene load_steps=9 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://component/entity/border/Border.tscn" type="PackedScene" id=13]
  10. [node name="Game" type="Node"]
  11. [node name="Background" type="Panel" parent="."]
  12. margin_right = 400.0
  13. margin_bottom = 400.0
  14. __meta__ = {
  15. "_edit_use_anchors_": false
  16. }
  17. [node name="Border" parent="." instance=ExtResource( 13 )]
  18. [node name="Catcher" parent="." instance=ExtResource( 3 )]
  19. [node name="Launcher" parent="." instance=ExtResource( 2 )]
  20. [node name="Grid" parent="." instance=ExtResource( 4 )]
  21. [node name="DeadLine" parent="." instance=ExtResource( 7 )]
  22. [node name="UI" type="Control" parent="."]
  23. margin_right = 40.0
  24. margin_bottom = 40.0
  25. script = ExtResource( 5 )
  26. __meta__ = {
  27. "_edit_use_anchors_": false
  28. }
  29. [node name="GameOverPanel" parent="UI" instance=ExtResource( 1 )]
  30. visible = false
  31. message = "Game Over!"
  32. [node name="TutorialPanel" parent="UI" instance=ExtResource( 1 )]
  33. message = "Click to shoot a ball!"
  34. [node name="ScoreCounter" parent="UI" instance=ExtResource( 6 )]
  35. margin_left = 350.0
  36. margin_top = 360.0
  37. margin_right = 390.0
  38. margin_bottom = 390.0
  39. title = "Score"
  40. [node name="BallCounter" parent="UI" instance=ExtResource( 6 )]
  41. margin_left = 10.0
  42. margin_top = 360.0
  43. margin_right = 50.0
  44. margin_bottom = 390.0
  45. title = "Balls"
  46. [connection signal="ready" from="." to="UI/BallCounter" method="increase_counter"]
  47. [connection signal="gain_new_bullet" from="Launcher" to="UI/BallCounter" method="increase_counter"]
  48. [connection signal="get_firing" from="Launcher" to="UI" method="_on_Launcher_get_firing"]
  49. [connection signal="is_full" from="Launcher" to="Grid" method="_on_Launcher_is_full"]
  50. [connection signal="kace_contact" from="Launcher" to="Grid" method="_on_Ball_kace_contact"]
  51. [connection signal="has_moved" from="Grid" to="Launcher" method="_on_Grid_has_moved"]
  52. [connection signal="has_moved" from="Grid" to="DeadLine" method="_on_Grid_has_moved"]
  53. [connection signal="kace_broken" from="Grid" to="Launcher" method="_on_Grid_kace_broken"]
  54. [connection signal="kace_damaged" from="Grid" to="UI/ScoreCounter" method="increase_counter"]
  55. [connection signal="game_lost" from="DeadLine" to="Launcher" method="_on_DeadLine_game_lost"]
  56. [connection signal="game_lost" from="DeadLine" to="UI" method="_on_DeadLine_game_lost"]