carre_simple.tscn 6.2 KB

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