ping_pong.tscn 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. [gd_scene load_steps=12 format=3 uid="uid://driwh1k1pylf2"]
  2. [ext_resource type="Texture2D" uid="uid://baalvpvl7d5av" path="res://exec/niveaux/fonds/ground12.png" id="1_a1ws5"]
  3. [ext_resource type="PackedScene" uid="uid://cpo1b44exbbyf" path="res://composants/objets/raquette/raquette.tscn" id="2_sleah"]
  4. [ext_resource type="PackedScene" uid="uid://cux4pm68s7pr8" path="res://composants/objets/lanceur/lanceur.tscn" id="3_gk5yj"]
  5. [ext_resource type="Script" path="res://composants/objets/brique/conteneur_briques.gd" id="4_78ofy"]
  6. [ext_resource type="PackedScene" uid="uid://brd8yid3l7wgm" path="res://composants/objets/brique/brique.tscn" id="5_2efjj"]
  7. [ext_resource type="Script" path="res://composants/mouvements/ping_pong.gd" id="5_rhvch"]
  8. [ext_resource type="PackedScene" uid="uid://b28d5a4be36qa" path="res://composants/objets/arene/arene.tscn" id="6_e2f67"]
  9. [ext_resource type="PackedScene" uid="uid://mj0r0qodppdk" path="res://composants/interface/perdu/perdu.tscn" id="7_4m08t"]
  10. [ext_resource type="PackedScene" uid="uid://byxtc8f6n5o3" path="res://composants/interface/gagne/gagne.tscn" id="8_ba4ka"]
  11. [ext_resource type="PackedScene" uid="uid://ds3j5rjhys4xf" path="res://composants/interface/stock/stock.tscn" id="9_s8bvw"]
  12. [ext_resource type="AudioStream" uid="uid://1p4lhi3rprps" path="res://ressources/musiques/atelier_godot_level_main_loop.ogg" id="10_xnams"]
  13. [node name="PingPong" type="Node2D"]
  14. [node name="Fond" type="TextureRect" parent="."]
  15. offset_right = 40.0
  16. offset_bottom = 40.0
  17. texture = ExtResource("1_a1ws5")
  18. metadata/_edit_lock_ = true
  19. [node name="Raquette" parent="." instance=ExtResource("2_sleah")]
  20. position = Vector2(210, 400)
  21. [node name="Lanceur" parent="." instance=ExtResource("3_gk5yj")]
  22. position = Vector2(180, 144)
  23. [node name="Briques" type="Node2D" parent="."]
  24. script = ExtResource("4_78ofy")
  25. [node name="Ligne1" type="Node2D" parent="Briques"]
  26. position = Vector2(30, 224)
  27. script = ExtResource("4_78ofy")
  28. mouvement_script = ExtResource("5_rhvch")
  29. [node name="Brique1" parent="Briques/Ligne1" instance=ExtResource("5_2efjj")]
  30. [node name="Brique4" parent="Briques/Ligne1" instance=ExtResource("5_2efjj")]
  31. position = Vector2(-30, 16)
  32. pouvoir_type = 2
  33. [node name="Brique5" parent="Briques/Ligne1" instance=ExtResource("5_2efjj")]
  34. position = Vector2(0, 16)
  35. [node name="Brique8" parent="Briques/Ligne1" instance=ExtResource("5_2efjj")]
  36. position = Vector2(0, 32)
  37. [node name="Brique11" parent="Briques/Ligne1" instance=ExtResource("5_2efjj")]
  38. position = Vector2(-30, 0)
  39. [node name="Brique12" parent="Briques/Ligne1" instance=ExtResource("5_2efjj")]
  40. position = Vector2(-30, 32)
  41. [node name="Ligne2" type="Node2D" parent="Briques"]
  42. position = Vector2(60, 112)
  43. script = ExtResource("4_78ofy")
  44. mouvement_script = ExtResource("5_rhvch")
  45. [node name="Brique1" parent="Briques/Ligne2" instance=ExtResource("5_2efjj")]
  46. position = Vector2(-30, 0)
  47. [node name="Brique2" parent="Briques/Ligne2" instance=ExtResource("5_2efjj")]
  48. [node name="Brique3" parent="Briques/Ligne2" instance=ExtResource("5_2efjj")]
  49. position = Vector2(30, 0)
  50. [node name="Brique4" parent="Briques/Ligne2" instance=ExtResource("5_2efjj")]
  51. position = Vector2(-60, 16)
  52. [node name="Brique5" parent="Briques/Ligne2" instance=ExtResource("5_2efjj")]
  53. position = Vector2(-30, 16)
  54. pouvoir_type = 2
  55. [node name="Brique6" parent="Briques/Ligne2" instance=ExtResource("5_2efjj")]
  56. position = Vector2(0, 16)
  57. pouvoir_type = 3
  58. [node name="Brique7" parent="Briques/Ligne2" instance=ExtResource("5_2efjj")]
  59. position = Vector2(30, 16)
  60. [node name="Brique8" parent="Briques/Ligne2" instance=ExtResource("5_2efjj")]
  61. position = Vector2(-30, 32)
  62. [node name="Brique9" parent="Briques/Ligne2" instance=ExtResource("5_2efjj")]
  63. position = Vector2(0, 32)
  64. [node name="Brique10" parent="Briques/Ligne2" instance=ExtResource("5_2efjj")]
  65. position = Vector2(30, 32)
  66. [node name="Brique11" parent="Briques/Ligne2" instance=ExtResource("5_2efjj")]
  67. position = Vector2(-60, 0)
  68. [node name="Brique12" parent="Briques/Ligne2" instance=ExtResource("5_2efjj")]
  69. position = Vector2(-60, 32)
  70. [node name="Ligne3" type="Node2D" parent="Briques"]
  71. position = Vector2(90, 0)
  72. script = ExtResource("4_78ofy")
  73. mouvement_script = ExtResource("5_rhvch")
  74. [node name="Brique1" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  75. position = Vector2(-60, 0)
  76. [node name="Brique2" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  77. position = Vector2(-30, 0)
  78. [node name="Brique3" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  79. [node name="Brique4" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  80. position = Vector2(-90, 16)
  81. [node name="Brique5" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  82. position = Vector2(-60, 16)
  83. pouvoir_type = 4
  84. [node name="Brique6" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  85. position = Vector2(-30, 16)
  86. [node name="Brique7" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  87. position = Vector2(0, 16)
  88. [node name="Brique8" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  89. position = Vector2(-60, 32)
  90. [node name="Brique9" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  91. position = Vector2(-30, 32)
  92. [node name="Brique10" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  93. position = Vector2(0, 32)
  94. [node name="Brique11" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  95. position = Vector2(-90, 0)
  96. [node name="Brique12" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  97. position = Vector2(-90, 32)
  98. [node name="Brique13" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  99. position = Vector2(30, 16)
  100. pouvoir_type = 4
  101. [node name="Brique14" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  102. position = Vector2(30, 0)
  103. [node name="Brique15" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  104. position = Vector2(30, 32)
  105. [node name="Brique16" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  106. position = Vector2(60, 16)
  107. [node name="Brique17" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  108. position = Vector2(60, 0)
  109. [node name="Brique18" parent="Briques/Ligne3" instance=ExtResource("5_2efjj")]
  110. position = Vector2(60, 32)
  111. [node name="Arene" parent="." instance=ExtResource("6_e2f67")]
  112. metadata/_edit_lock_ = true
  113. [node name="Message" type="PanelContainer" parent="."]
  114. visible = false
  115. offset_left = 20.0
  116. offset_top = 20.0
  117. offset_right = 400.0
  118. offset_bottom = 400.0
  119. [node name="Perdu" parent="Message" instance=ExtResource("7_4m08t")]
  120. visible = false
  121. layout_mode = 2
  122. [node name="Gagne" parent="Message" instance=ExtResource("8_ba4ka")]
  123. visible = false
  124. layout_mode = 2
  125. [node name="Stock" parent="." instance=ExtResource("9_s8bvw")]
  126. offset_bottom = 420.0
  127. [node name="Musique" type="AudioStreamPlayer" parent="."]
  128. process_mode = 3
  129. stream = ExtResource("10_xnams")
  130. autoplay = true
  131. bus = &"Musique"
  132. [connection signal="nb_balles_change" from="Lanceur" to="Stock" method="_quand_nombre_balles_change"]
  133. [connection signal="partie_perdue" from="Lanceur" to="Message" method="show"]
  134. [connection signal="partie_perdue" from="Lanceur" to="Message/Perdu" method="show"]
  135. [connection signal="plus_de_briques" from="Briques" to="Lanceur" method="queue_free"]
  136. [connection signal="plus_de_briques" from="Briques" to="Message" method="show"]
  137. [connection signal="plus_de_briques" from="Briques" to="Message/Gagne" method="show"]
  138. [connection signal="balle_detruite" from="Arene" to="Lanceur" method="_quand_balle_detruite"]