falling_dart.tscn 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. [gd_scene load_steps=12 format=3 uid="uid://b2578e5i8ubvg"]
  2. [ext_resource type="Texture2D" uid="uid://bkofjydij1plu" path="res://exec/niveaux/fonds/ground03.png" id="1_vbsyh"]
  3. [ext_resource type="PackedScene" uid="uid://cpo1b44exbbyf" path="res://composants/objets/raquette/raquette.tscn" id="2_7tgxw"]
  4. [ext_resource type="PackedScene" uid="uid://cux4pm68s7pr8" path="res://composants/objets/lanceur/lanceur.tscn" id="3_03gbi"]
  5. [ext_resource type="Script" path="res://composants/objets/brique/conteneur_briques.gd" id="4_d6rir"]
  6. [ext_resource type="PackedScene" uid="uid://brd8yid3l7wgm" path="res://composants/objets/brique/brique.tscn" id="5_7a1ew"]
  7. [ext_resource type="Script" path="res://composants/mouvements/descente_lente.gd" id="5_bjyla"]
  8. [ext_resource type="PackedScene" uid="uid://b28d5a4be36qa" path="res://composants/objets/arene/arene.tscn" id="6_ehlvm"]
  9. [ext_resource type="PackedScene" uid="uid://mj0r0qodppdk" path="res://composants/interface/perdu/perdu.tscn" id="7_llkas"]
  10. [ext_resource type="PackedScene" uid="uid://byxtc8f6n5o3" path="res://composants/interface/gagne/gagne.tscn" id="8_6oiwq"]
  11. [ext_resource type="PackedScene" uid="uid://ds3j5rjhys4xf" path="res://composants/interface/stock/stock.tscn" id="9_2ypka"]
  12. [ext_resource type="AudioStream" uid="uid://bka2du234amq5" path="res://ressources/musiques/atelier_godot_layer_level_main_loop.ogg" id="11_ql2qq"]
  13. [node name="FallingDart" type="Node2D"]
  14. [node name="Fond" type="TextureRect" parent="."]
  15. offset_right = 40.0
  16. offset_bottom = 40.0
  17. texture = ExtResource("1_vbsyh")
  18. [node name="Raquette" parent="." instance=ExtResource("2_7tgxw")]
  19. position = Vector2(210, 400)
  20. [node name="Lanceur" parent="." instance=ExtResource("3_03gbi")]
  21. position = Vector2(210, 336)
  22. nombre_de_balles = 2
  23. [node name="Briques" type="Node2D" parent="."]
  24. position = Vector2(0, -272)
  25. script = ExtResource("4_d6rir")
  26. mouvement_script = ExtResource("5_bjyla")
  27. [node name="SpaceShip1" type="Node2D" parent="Briques"]
  28. position = Vector2(210, 272)
  29. script = ExtResource("4_d6rir")
  30. [node name="Brique1" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  31. position = Vector2(30, 0)
  32. [node name="Brique2" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  33. position = Vector2(60, 0)
  34. pouvoir_type = 4
  35. [node name="Brique3" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  36. position = Vector2(90, 0)
  37. pouvoir_type = 1
  38. [node name="Brique4" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  39. position = Vector2(120, 0)
  40. pouvoir_type = 4
  41. [node name="Brique5" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  42. position = Vector2(0, 16)
  43. [node name="Brique6" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  44. position = Vector2(30, 16)
  45. [node name="Brique7" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  46. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  47. position = Vector2(60, 16)
  48. nombre_de_vies = 2
  49. [node name="Brique8" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  50. position = Vector2(90, 16)
  51. pouvoir_type = 2
  52. [node name="Brique9" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  53. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  54. position = Vector2(120, 16)
  55. nombre_de_vies = 2
  56. [node name="Brique10" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  57. position = Vector2(150, 16)
  58. [node name="Brique11" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  59. position = Vector2(30, 32)
  60. [node name="Brique12" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  61. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  62. position = Vector2(60, 32)
  63. nombre_de_vies = 2
  64. [node name="Brique13" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  65. position = Vector2(90, 32)
  66. [node name="Brique18" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  67. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  68. position = Vector2(60, 48)
  69. nombre_de_vies = 2
  70. [node name="Brique19" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  71. position = Vector2(90, 48)
  72. [node name="Brique21" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  73. position = Vector2(90, 64)
  74. [node name="Brique20" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  75. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  76. position = Vector2(120, 48)
  77. nombre_de_vies = 2
  78. [node name="Brique14" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  79. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  80. position = Vector2(120, 32)
  81. nombre_de_vies = 2
  82. [node name="Brique15" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  83. position = Vector2(150, 0)
  84. [node name="Brique16" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  85. position = Vector2(180, 16)
  86. [node name="Brique17" parent="Briques/SpaceShip1" instance=ExtResource("5_7a1ew")]
  87. position = Vector2(150, 32)
  88. [node name="SpaceShip2" type="Node2D" parent="Briques"]
  89. script = ExtResource("4_d6rir")
  90. [node name="Brique1" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  91. position = Vector2(30, 0)
  92. [node name="Brique2" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  93. position = Vector2(60, 0)
  94. pouvoir_type = 4
  95. [node name="Brique3" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  96. position = Vector2(90, 0)
  97. pouvoir_type = 1
  98. [node name="Brique4" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  99. position = Vector2(120, 0)
  100. pouvoir_type = 4
  101. [node name="Brique5" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  102. position = Vector2(0, 16)
  103. [node name="Brique6" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  104. position = Vector2(30, 16)
  105. [node name="Brique7" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  106. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  107. position = Vector2(60, 16)
  108. nombre_de_vies = 2
  109. [node name="Brique8" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  110. position = Vector2(90, 16)
  111. pouvoir_type = 2
  112. [node name="Brique9" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  113. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  114. position = Vector2(120, 16)
  115. nombre_de_vies = 2
  116. [node name="Brique10" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  117. position = Vector2(150, 16)
  118. [node name="Brique11" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  119. position = Vector2(30, 32)
  120. [node name="Brique12" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  121. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  122. position = Vector2(60, 32)
  123. nombre_de_vies = 2
  124. [node name="Brique13" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  125. position = Vector2(90, 32)
  126. [node name="Brique18" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  127. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  128. position = Vector2(60, 48)
  129. nombre_de_vies = 2
  130. [node name="Brique19" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  131. position = Vector2(90, 48)
  132. [node name="Brique21" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  133. position = Vector2(90, 64)
  134. [node name="Brique20" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  135. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  136. position = Vector2(120, 48)
  137. nombre_de_vies = 2
  138. [node name="Brique14" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  139. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  140. position = Vector2(120, 32)
  141. nombre_de_vies = 2
  142. [node name="Brique15" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  143. position = Vector2(150, 0)
  144. [node name="Brique16" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  145. position = Vector2(180, 16)
  146. [node name="Brique17" parent="Briques/SpaceShip2" instance=ExtResource("5_7a1ew")]
  147. position = Vector2(150, 32)
  148. [node name="Arene" parent="." instance=ExtResource("6_ehlvm")]
  149. metadata/_edit_lock_ = true
  150. [node name="Message" type="PanelContainer" parent="."]
  151. visible = false
  152. offset_left = 20.0
  153. offset_top = 20.0
  154. offset_right = 400.0
  155. offset_bottom = 400.0
  156. [node name="Perdu" parent="Message" instance=ExtResource("7_llkas")]
  157. visible = false
  158. layout_mode = 2
  159. [node name="Gagne" parent="Message" instance=ExtResource("8_6oiwq")]
  160. visible = false
  161. layout_mode = 2
  162. [node name="Stock" parent="." instance=ExtResource("9_2ypka")]
  163. offset_bottom = 420.0
  164. [node name="Musique" type="AudioStreamPlayer" parent="."]
  165. process_mode = 3
  166. stream = ExtResource("11_ql2qq")
  167. autoplay = true
  168. bus = &"Musique"
  169. [connection signal="nb_balles_change" from="Lanceur" to="Stock" method="_quand_nombre_balles_change"]
  170. [connection signal="partie_perdue" from="Lanceur" to="Message" method="show"]
  171. [connection signal="partie_perdue" from="Lanceur" to="Message/Perdu" method="show"]
  172. [connection signal="plus_de_briques" from="Briques" to="Lanceur" method="queue_free"]
  173. [connection signal="plus_de_briques" from="Briques" to="Message" method="show"]
  174. [connection signal="plus_de_briques" from="Briques" to="Message/Gagne" method="show"]
  175. [connection signal="balle_detruite" from="Arene" to="Lanceur" method="_quand_balle_detruite"]
  176. [connection signal="brique_sortie" from="Arene" to="Lanceur" method="queue_free"]
  177. [connection signal="brique_sortie" from="Arene" to="Message" method="show"]
  178. [connection signal="brique_sortie" from="Arene" to="Message/Perdu" method="show"]