carre_simple.tscn 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. [gd_scene load_steps=11 format=3 uid="uid://cyyb8weydthjc"]
  2. [ext_resource type="PackedScene" uid="uid://cpo1b44exbbyf" path="res://composants/objets/raquette/raquette.tscn" id="1_dbta1"]
  3. [ext_resource type="Texture2D" uid="uid://byid0wqsvr6xg" path="res://exec/niveaux/fonds/ground01.png" id="1_hdm68"]
  4. [ext_resource type="PackedScene" uid="uid://brd8yid3l7wgm" path="res://composants/objets/brique/brique.tscn" id="2_j0emn"]
  5. [ext_resource type="PackedScene" uid="uid://cux4pm68s7pr8" path="res://composants/objets/lanceur/lanceur.tscn" id="2_s5baa"]
  6. [ext_resource type="Script" path="res://composants/objets/brique/conteneur_briques.gd" id="3_dsde7"]
  7. [ext_resource type="PackedScene" uid="uid://b28d5a4be36qa" path="res://composants/objets/arene/arene.tscn" id="4_imfht"]
  8. [ext_resource type="PackedScene" uid="uid://mj0r0qodppdk" path="res://composants/interface/perdu/perdu.tscn" id="5_4gti5"]
  9. [ext_resource type="PackedScene" uid="uid://byxtc8f6n5o3" path="res://composants/interface/gagne/gagne.tscn" id="7_16b2w"]
  10. [ext_resource type="PackedScene" uid="uid://ds3j5rjhys4xf" path="res://composants/interface/stock/stock.tscn" id="8_f28fe"]
  11. [ext_resource type="AudioStream" uid="uid://bka2du234amq5" path="res://ressources/musiques/atelier_godot_layer_level_main_loop.ogg" id="10_wlenu"]
  12. [node name="CarreSimple" type="Node2D"]
  13. [node name="Fond" type="TextureRect" parent="."]
  14. offset_right = 40.0
  15. offset_bottom = 40.0
  16. texture = ExtResource("1_hdm68")
  17. [node name="Raquette" parent="." instance=ExtResource("1_dbta1")]
  18. position = Vector2(210, 400)
  19. [node name="Lanceur" parent="." instance=ExtResource("2_s5baa")]
  20. position = Vector2(195, 144)
  21. nombre_de_balles = 2
  22. [node name="Briques" type="Node2D" parent="."]
  23. script = ExtResource("3_dsde7")
  24. [node name="Brique1" parent="Briques" instance=ExtResource("2_j0emn")]
  25. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  26. nombre_de_vies = 2
  27. [node name="Brique2" parent="Briques" instance=ExtResource("2_j0emn")]
  28. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  29. position = Vector2(30, 0)
  30. nombre_de_vies = 2
  31. [node name="Brique3" parent="Briques" instance=ExtResource("2_j0emn")]
  32. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  33. position = Vector2(60, 0)
  34. nombre_de_vies = 2
  35. [node name="Brique4" parent="Briques" instance=ExtResource("2_j0emn")]
  36. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  37. position = Vector2(90, 0)
  38. nombre_de_vies = 2
  39. [node name="Brique5" parent="Briques" instance=ExtResource("2_j0emn")]
  40. position = Vector2(120, 0)
  41. pouvoir_type = 1
  42. [node name="Brique6" parent="Briques" instance=ExtResource("2_j0emn")]
  43. position = Vector2(150, 0)
  44. pouvoir_type = 1
  45. [node name="Brique7" parent="Briques" instance=ExtResource("2_j0emn")]
  46. position = Vector2(180, 0)
  47. pouvoir_type = 1
  48. [node name="Brique8" parent="Briques" instance=ExtResource("2_j0emn")]
  49. position = Vector2(210, 0)
  50. pouvoir_type = 1
  51. [node name="Brique9" parent="Briques" instance=ExtResource("2_j0emn")]
  52. position = Vector2(240, 0)
  53. pouvoir_type = 1
  54. [node name="Brique10" parent="Briques" instance=ExtResource("2_j0emn")]
  55. position = Vector2(270, 0)
  56. pouvoir_type = 1
  57. [node name="Brique11" parent="Briques" instance=ExtResource("2_j0emn")]
  58. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  59. position = Vector2(300, 0)
  60. nombre_de_vies = 2
  61. [node name="Brique12" parent="Briques" instance=ExtResource("2_j0emn")]
  62. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  63. position = Vector2(330, 0)
  64. nombre_de_vies = 2
  65. [node name="Brique13" parent="Briques" instance=ExtResource("2_j0emn")]
  66. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  67. position = Vector2(360, 0)
  68. nombre_de_vies = 2
  69. [node name="Brique14" parent="Briques" instance=ExtResource("2_j0emn")]
  70. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  71. position = Vector2(390, 0)
  72. nombre_de_vies = 2
  73. [node name="Brique15" parent="Briques" instance=ExtResource("2_j0emn")]
  74. modulate = Color(0, 0, 0, 1)
  75. position = Vector2(120, 96)
  76. nombre_de_vies = 4
  77. [node name="Brique16" parent="Briques" instance=ExtResource("2_j0emn")]
  78. modulate = Color(0, 0, 0, 1)
  79. position = Vector2(150, 96)
  80. nombre_de_vies = 4
  81. [node name="Brique17" parent="Briques" instance=ExtResource("2_j0emn")]
  82. modulate = Color(0, 0, 0, 1)
  83. position = Vector2(180, 96)
  84. nombre_de_vies = 4
  85. [node name="Brique18" parent="Briques" instance=ExtResource("2_j0emn")]
  86. modulate = Color(0, 0, 0, 1)
  87. position = Vector2(210, 96)
  88. nombre_de_vies = 4
  89. [node name="Brique19" parent="Briques" instance=ExtResource("2_j0emn")]
  90. modulate = Color(0, 0, 0, 1)
  91. position = Vector2(240, 96)
  92. nombre_de_vies = 4
  93. [node name="Brique20" parent="Briques" instance=ExtResource("2_j0emn")]
  94. modulate = Color(0, 0, 0, 1)
  95. position = Vector2(270, 96)
  96. nombre_de_vies = 4
  97. [node name="Brique35" parent="Briques" instance=ExtResource("2_j0emn")]
  98. modulate = Color(0, 0, 0, 1)
  99. position = Vector2(120, 112)
  100. nombre_de_vies = 4
  101. [node name="Brique36" parent="Briques" instance=ExtResource("2_j0emn")]
  102. modulate = Color(0, 0, 0, 1)
  103. position = Vector2(150, 112)
  104. nombre_de_vies = 4
  105. [node name="Brique37" parent="Briques" instance=ExtResource("2_j0emn")]
  106. modulate = Color(0, 0, 0, 1)
  107. position = Vector2(180, 112)
  108. nombre_de_vies = 4
  109. [node name="Brique38" parent="Briques" instance=ExtResource("2_j0emn")]
  110. modulate = Color(0, 0, 0, 1)
  111. position = Vector2(210, 112)
  112. nombre_de_vies = 4
  113. [node name="Brique39" parent="Briques" instance=ExtResource("2_j0emn")]
  114. modulate = Color(0, 0, 0, 1)
  115. position = Vector2(240, 112)
  116. nombre_de_vies = 4
  117. [node name="Brique40" parent="Briques" instance=ExtResource("2_j0emn")]
  118. modulate = Color(0, 0, 0, 1)
  119. position = Vector2(270, 112)
  120. nombre_de_vies = 4
  121. [node name="Arene" parent="." instance=ExtResource("4_imfht")]
  122. metadata/_edit_lock_ = true
  123. [node name="Message" type="PanelContainer" parent="."]
  124. visible = false
  125. offset_left = 20.0
  126. offset_top = 20.0
  127. offset_right = 400.0
  128. offset_bottom = 400.0
  129. [node name="Perdu" parent="Message" instance=ExtResource("5_4gti5")]
  130. visible = false
  131. layout_mode = 2
  132. [node name="Gagne" parent="Message" instance=ExtResource("7_16b2w")]
  133. visible = false
  134. layout_mode = 2
  135. [node name="Stock" parent="." instance=ExtResource("8_f28fe")]
  136. offset_bottom = 420.0
  137. [node name="Musique" type="AudioStreamPlayer" parent="."]
  138. process_mode = 3
  139. stream = ExtResource("10_wlenu")
  140. autoplay = true
  141. bus = &"Musique"
  142. [connection signal="nb_balles_change" from="Lanceur" to="Stock" method="_quand_nombre_balles_change"]
  143. [connection signal="partie_perdue" from="Lanceur" to="Message" method="show"]
  144. [connection signal="partie_perdue" from="Lanceur" to="Message/Perdu" method="show"]
  145. [connection signal="plus_de_briques" from="Briques" to="Lanceur" method="queue_free"]
  146. [connection signal="plus_de_briques" from="Briques" to="Message" method="show"]
  147. [connection signal="plus_de_briques" from="Briques" to="Message/Gagne" method="show"]
  148. [connection signal="balle_detruite" from="Arene" to="Lanceur" method="_quand_balle_detruite"]