carre_simple.tscn 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. [node name="Brique2" parent="Briques" instance=ExtResource("2_j0emn")]
  26. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  27. position = Vector2(30, 0)
  28. [node name="Brique3" parent="Briques" instance=ExtResource("2_j0emn")]
  29. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  30. position = Vector2(60, 0)
  31. [node name="Brique4" parent="Briques" instance=ExtResource("2_j0emn")]
  32. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  33. position = Vector2(90, 0)
  34. [node name="Brique5" parent="Briques" instance=ExtResource("2_j0emn")]
  35. position = Vector2(120, 0)
  36. [node name="Brique6" parent="Briques" instance=ExtResource("2_j0emn")]
  37. position = Vector2(150, 0)
  38. [node name="Brique7" parent="Briques" instance=ExtResource("2_j0emn")]
  39. position = Vector2(180, 0)
  40. [node name="Brique8" parent="Briques" instance=ExtResource("2_j0emn")]
  41. position = Vector2(210, 0)
  42. [node name="Brique9" parent="Briques" instance=ExtResource("2_j0emn")]
  43. position = Vector2(240, 0)
  44. [node name="Brique10" parent="Briques" instance=ExtResource("2_j0emn")]
  45. position = Vector2(270, 0)
  46. [node name="Brique11" parent="Briques" instance=ExtResource("2_j0emn")]
  47. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  48. position = Vector2(300, 0)
  49. [node name="Brique12" parent="Briques" instance=ExtResource("2_j0emn")]
  50. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  51. position = Vector2(330, 0)
  52. [node name="Brique13" parent="Briques" instance=ExtResource("2_j0emn")]
  53. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  54. position = Vector2(360, 0)
  55. [node name="Brique14" parent="Briques" instance=ExtResource("2_j0emn")]
  56. modulate = Color(0.666667, 0.666667, 0.666667, 1)
  57. position = Vector2(390, 0)
  58. [node name="Brique15" parent="Briques" instance=ExtResource("2_j0emn")]
  59. position = Vector2(120, 96)
  60. [node name="Brique16" parent="Briques" instance=ExtResource("2_j0emn")]
  61. position = Vector2(150, 96)
  62. [node name="Brique17" parent="Briques" instance=ExtResource("2_j0emn")]
  63. position = Vector2(180, 96)
  64. [node name="Brique18" parent="Briques" instance=ExtResource("2_j0emn")]
  65. position = Vector2(210, 96)
  66. [node name="Brique19" parent="Briques" instance=ExtResource("2_j0emn")]
  67. position = Vector2(240, 96)
  68. [node name="Brique20" parent="Briques" instance=ExtResource("2_j0emn")]
  69. position = Vector2(270, 96)
  70. [node name="Brique35" parent="Briques" instance=ExtResource("2_j0emn")]
  71. position = Vector2(120, 112)
  72. [node name="Brique36" parent="Briques" instance=ExtResource("2_j0emn")]
  73. position = Vector2(150, 112)
  74. [node name="Brique37" parent="Briques" instance=ExtResource("2_j0emn")]
  75. position = Vector2(180, 112)
  76. [node name="Brique38" parent="Briques" instance=ExtResource("2_j0emn")]
  77. position = Vector2(210, 112)
  78. [node name="Brique39" parent="Briques" instance=ExtResource("2_j0emn")]
  79. position = Vector2(240, 112)
  80. [node name="Brique40" parent="Briques" instance=ExtResource("2_j0emn")]
  81. position = Vector2(270, 112)
  82. [node name="Arene" parent="." instance=ExtResource("4_imfht")]
  83. metadata/_edit_lock_ = true
  84. [node name="Message" type="PanelContainer" parent="."]
  85. visible = false
  86. offset_left = 20.0
  87. offset_top = 20.0
  88. offset_right = 400.0
  89. offset_bottom = 400.0
  90. [node name="Perdu" parent="Message" instance=ExtResource("5_4gti5")]
  91. visible = false
  92. layout_mode = 2
  93. [node name="Stock" parent="." instance=ExtResource("8_f28fe")]
  94. offset_bottom = 420.0
  95. [node name="Musique" type="AudioStreamPlayer" parent="."]
  96. process_mode = 3
  97. stream = ExtResource("10_4so2q")
  98. autoplay = true
  99. bus = &"Musique"
  100. [connection signal="nb_balles_change" from="Lanceur" to="Stock" method="_quand_nombre_balles_change"]
  101. [connection signal="partie_perdue" from="Lanceur" to="Message" method="show"]
  102. [connection signal="partie_perdue" from="Lanceur" to="Message/Perdu" method="show"]
  103. [connection signal="balle_detruite" from="Arene" to="Lanceur" method="_quand_balle_detruite"]