avalanche.tscn 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. [gd_scene load_steps=13 format=3 uid="uid://drsvofasfawls"]
  2. [ext_resource type="Texture2D" uid="uid://bc6q5vpql18e1" path="res://exec/niveaux/fonds/ground20.png" id="1_v4kui"]
  3. [ext_resource type="PackedScene" uid="uid://cpo1b44exbbyf" path="res://composants/objets/raquette/raquette.tscn" id="2_jtshy"]
  4. [ext_resource type="PackedScene" uid="uid://cux4pm68s7pr8" path="res://composants/objets/lanceur/lanceur.tscn" id="3_8ttj3"]
  5. [ext_resource type="Script" path="res://composants/objets/brique/conteneur_briques.gd" id="4_66624"]
  6. [ext_resource type="PackedScene" uid="uid://brd8yid3l7wgm" path="res://composants/objets/brique/brique.tscn" id="5_rw2dy"]
  7. [ext_resource type="Script" path="res://composants/mouvements/descente_lente.gd" id="5_swb4t"]
  8. [ext_resource type="PackedScene" uid="uid://b28d5a4be36qa" path="res://composants/objets/arene/arene.tscn" id="6_rwfcj"]
  9. [ext_resource type="PackedScene" uid="uid://mj0r0qodppdk" path="res://composants/interface/perdu/perdu.tscn" id="7_4bct1"]
  10. [ext_resource type="Script" path="res://composants/mouvements/ping_pong.gd" id="7_efa4s"]
  11. [ext_resource type="PackedScene" uid="uid://byxtc8f6n5o3" path="res://composants/interface/gagne/gagne.tscn" id="8_2ii36"]
  12. [ext_resource type="PackedScene" uid="uid://ds3j5rjhys4xf" path="res://composants/interface/stock/stock.tscn" id="9_wg5u6"]
  13. [ext_resource type="AudioStream" uid="uid://1p4lhi3rprps" path="res://ressources/musiques/atelier_godot_level_main_loop.ogg" id="10_7jbeo"]
  14. [node name="CarreSimple" type="Node2D"]
  15. [node name="Fond" type="TextureRect" parent="."]
  16. offset_right = 40.0
  17. offset_bottom = 40.0
  18. texture = ExtResource("1_v4kui")
  19. metadata/_edit_lock_ = true
  20. [node name="Raquette" parent="." instance=ExtResource("2_jtshy")]
  21. position = Vector2(210, 400)
  22. [node name="Lanceur" parent="." instance=ExtResource("3_8ttj3")]
  23. position = Vector2(180, 144)
  24. [node name="Briques" type="Node2D" parent="."]
  25. position = Vector2(0, -112)
  26. script = ExtResource("4_66624")
  27. mouvement_script = ExtResource("5_swb4t")
  28. [node name="PicGauche" type="Node2D" parent="Briques"]
  29. position = Vector2(-180, 0)
  30. script = ExtResource("4_66624")
  31. [node name="Brique1" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
  32. position = Vector2(210, 224)
  33. [node name="Brique5" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
  34. position = Vector2(210, 224)
  35. [node name="Brique6" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
  36. position = Vector2(210, 240)
  37. [node name="Brique7" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
  38. position = Vector2(180, 224)
  39. [node name="Brique8" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
  40. position = Vector2(180, 240)
  41. [node name="Brique2" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
  42. position = Vector2(180, 208)
  43. [node name="Brique3" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
  44. position = Vector2(210, 256)
  45. [node name="Brique4" parent="Briques/PicGauche" instance=ExtResource("5_rw2dy")]
  46. position = Vector2(210, 208)
  47. pouvoir_type = 4
  48. [node name="PicDroit" type="Node2D" parent="Briques"]
  49. position = Vector2(180, 0)
  50. script = ExtResource("4_66624")
  51. [node name="Brique1" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
  52. position = Vector2(210, 224)
  53. [node name="Brique5" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
  54. position = Vector2(210, 224)
  55. [node name="Brique6" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
  56. position = Vector2(210, 240)
  57. [node name="Brique7" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
  58. position = Vector2(180, 224)
  59. [node name="Brique8" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
  60. position = Vector2(180, 240)
  61. [node name="Brique2" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
  62. position = Vector2(180, 208)
  63. [node name="Brique3" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
  64. position = Vector2(210, 256)
  65. [node name="Brique4" parent="Briques/PicDroit" instance=ExtResource("5_rw2dy")]
  66. position = Vector2(210, 208)
  67. pouvoir_type = 3
  68. [node name="Meca" type="Node2D" parent="Briques"]
  69. position = Vector2(90, 208)
  70. script = ExtResource("4_66624")
  71. mouvement_script = ExtResource("7_efa4s")
  72. [node name="Brique1" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
  73. position = Vector2(0, 16)
  74. [node name="Brique5" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
  75. position = Vector2(0, 16)
  76. [node name="Brique6" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
  77. position = Vector2(0, 32)
  78. [node name="Brique7" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
  79. position = Vector2(-30, 16)
  80. [node name="Brique8" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
  81. position = Vector2(-30, 32)
  82. [node name="Brique2" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
  83. position = Vector2(-30, 0)
  84. [node name="Brique3" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
  85. position = Vector2(0, 48)
  86. [node name="Brique4" parent="Briques/Meca" instance=ExtResource("5_rw2dy")]
  87. pouvoir_type = 2
  88. [node name="Arene" parent="." instance=ExtResource("6_rwfcj")]
  89. metadata/_edit_lock_ = true
  90. [node name="Message" type="PanelContainer" parent="."]
  91. visible = false
  92. offset_left = 20.0
  93. offset_top = 20.0
  94. offset_right = 400.0
  95. offset_bottom = 400.0
  96. [node name="Perdu" parent="Message" instance=ExtResource("7_4bct1")]
  97. visible = false
  98. layout_mode = 2
  99. [node name="Gagne" parent="Message" instance=ExtResource("8_2ii36")]
  100. visible = false
  101. layout_mode = 2
  102. [node name="Stock" parent="." instance=ExtResource("9_wg5u6")]
  103. offset_bottom = 420.0
  104. [node name="Musique" type="AudioStreamPlayer" parent="."]
  105. process_mode = 3
  106. stream = ExtResource("10_7jbeo")
  107. autoplay = true
  108. bus = &"Musique"
  109. [connection signal="nb_balles_change" from="Lanceur" to="Stock" method="_quand_nombre_balles_change"]
  110. [connection signal="partie_perdue" from="Lanceur" to="Message" method="show"]
  111. [connection signal="partie_perdue" from="Lanceur" to="Message/Perdu" method="show"]
  112. [connection signal="plus_de_briques" from="Briques" to="Lanceur" method="queue_free"]
  113. [connection signal="plus_de_briques" from="Briques" to="Message" method="show"]
  114. [connection signal="plus_de_briques" from="Briques" to="Message/Gagne" method="show"]
  115. [connection signal="balle_detruite" from="Arene" to="Lanceur" method="_quand_balle_detruite"]
  116. [connection signal="brique_sortie" from="Arene" to="Lanceur" method="queue_free"]
  117. [connection signal="brique_sortie" from="Arene" to="Message" method="show"]
  118. [connection signal="brique_sortie" from="Arene" to="Message/Perdu" method="show"]