eclatement_effet.tscn 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. [gd_scene load_steps=29 format=3 uid="uid://766ld28y11ur"]
  2. [ext_resource type="Script" path="res://effets/eclatement_brique/eclatement_animation.gd" id="1_jaiil"]
  3. [ext_resource type="Texture2D" uid="uid://dl4u6xp80b3pl" path="res://effets/eclatement_brique/sprite.png" id="2_r88cx"]
  4. [ext_resource type="AudioStream" uid="uid://dx5m18liryte6" path="res://effets/eclatement_brique/explosion.wav" id="3_aawn6"]
  5. [sub_resource type="AtlasTexture" id="AtlasTexture_k8omh"]
  6. atlas = ExtResource("2_r88cx")
  7. region = Rect2(0, 0, 64, 44)
  8. [sub_resource type="AtlasTexture" id="AtlasTexture_axaps"]
  9. atlas = ExtResource("2_r88cx")
  10. region = Rect2(0, 44, 64, 44)
  11. [sub_resource type="AtlasTexture" id="AtlasTexture_r2k7b"]
  12. atlas = ExtResource("2_r88cx")
  13. region = Rect2(0, 88, 64, 44)
  14. [sub_resource type="AtlasTexture" id="AtlasTexture_1vipe"]
  15. atlas = ExtResource("2_r88cx")
  16. region = Rect2(0, 132, 64, 44)
  17. [sub_resource type="AtlasTexture" id="AtlasTexture_3b7g4"]
  18. atlas = ExtResource("2_r88cx")
  19. region = Rect2(0, 176, 64, 44)
  20. [sub_resource type="AtlasTexture" id="AtlasTexture_al584"]
  21. atlas = ExtResource("2_r88cx")
  22. region = Rect2(0, 220, 64, 44)
  23. [sub_resource type="AtlasTexture" id="AtlasTexture_4fl5y"]
  24. atlas = ExtResource("2_r88cx")
  25. region = Rect2(0, 264, 64, 44)
  26. [sub_resource type="AtlasTexture" id="AtlasTexture_u8am2"]
  27. atlas = ExtResource("2_r88cx")
  28. region = Rect2(0, 308, 64, 44)
  29. [sub_resource type="AtlasTexture" id="AtlasTexture_hfto7"]
  30. atlas = ExtResource("2_r88cx")
  31. region = Rect2(0, 352, 64, 44)
  32. [sub_resource type="AtlasTexture" id="AtlasTexture_fpyx8"]
  33. atlas = ExtResource("2_r88cx")
  34. region = Rect2(0, 396, 64, 44)
  35. [sub_resource type="AtlasTexture" id="AtlasTexture_o1mv6"]
  36. atlas = ExtResource("2_r88cx")
  37. region = Rect2(0, 440, 64, 44)
  38. [sub_resource type="AtlasTexture" id="AtlasTexture_1ni3y"]
  39. atlas = ExtResource("2_r88cx")
  40. region = Rect2(0, 484, 64, 44)
  41. [sub_resource type="AtlasTexture" id="AtlasTexture_6rhyi"]
  42. atlas = ExtResource("2_r88cx")
  43. region = Rect2(0, 528, 64, 44)
  44. [sub_resource type="AtlasTexture" id="AtlasTexture_p6ild"]
  45. atlas = ExtResource("2_r88cx")
  46. region = Rect2(0, 572, 64, 44)
  47. [sub_resource type="AtlasTexture" id="AtlasTexture_saikk"]
  48. atlas = ExtResource("2_r88cx")
  49. region = Rect2(0, 616, 64, 44)
  50. [sub_resource type="AtlasTexture" id="AtlasTexture_0gepx"]
  51. atlas = ExtResource("2_r88cx")
  52. region = Rect2(0, 660, 64, 44)
  53. [sub_resource type="AtlasTexture" id="AtlasTexture_bvtoy"]
  54. atlas = ExtResource("2_r88cx")
  55. region = Rect2(0, 704, 64, 44)
  56. [sub_resource type="AtlasTexture" id="AtlasTexture_idyqk"]
  57. atlas = ExtResource("2_r88cx")
  58. region = Rect2(0, 748, 64, 44)
  59. [sub_resource type="AtlasTexture" id="AtlasTexture_arijn"]
  60. atlas = ExtResource("2_r88cx")
  61. region = Rect2(0, 792, 64, 44)
  62. [sub_resource type="AtlasTexture" id="AtlasTexture_lcw4i"]
  63. atlas = ExtResource("2_r88cx")
  64. region = Rect2(0, 836, 64, 44)
  65. [sub_resource type="AtlasTexture" id="AtlasTexture_toy66"]
  66. atlas = ExtResource("2_r88cx")
  67. region = Rect2(0, 880, 64, 44)
  68. [sub_resource type="AtlasTexture" id="AtlasTexture_n5cob"]
  69. atlas = ExtResource("2_r88cx")
  70. region = Rect2(0, 924, 64, 44)
  71. [sub_resource type="AtlasTexture" id="AtlasTexture_rpyjl"]
  72. atlas = ExtResource("2_r88cx")
  73. region = Rect2(0, 968, 64, 44)
  74. [sub_resource type="AtlasTexture" id="AtlasTexture_s5tlm"]
  75. atlas = ExtResource("2_r88cx")
  76. region = Rect2(0, 1012, 64, 44)
  77. [sub_resource type="SpriteFrames" id="SpriteFrames_dmg24"]
  78. animations = [{
  79. "frames": [{
  80. "duration": 1.0,
  81. "texture": SubResource("AtlasTexture_k8omh")
  82. }, {
  83. "duration": 1.0,
  84. "texture": SubResource("AtlasTexture_axaps")
  85. }, {
  86. "duration": 1.0,
  87. "texture": SubResource("AtlasTexture_r2k7b")
  88. }, {
  89. "duration": 1.0,
  90. "texture": SubResource("AtlasTexture_1vipe")
  91. }, {
  92. "duration": 1.0,
  93. "texture": SubResource("AtlasTexture_3b7g4")
  94. }, {
  95. "duration": 1.0,
  96. "texture": SubResource("AtlasTexture_al584")
  97. }, {
  98. "duration": 1.0,
  99. "texture": SubResource("AtlasTexture_4fl5y")
  100. }, {
  101. "duration": 1.0,
  102. "texture": SubResource("AtlasTexture_u8am2")
  103. }, {
  104. "duration": 1.0,
  105. "texture": SubResource("AtlasTexture_hfto7")
  106. }, {
  107. "duration": 1.0,
  108. "texture": SubResource("AtlasTexture_fpyx8")
  109. }, {
  110. "duration": 1.0,
  111. "texture": SubResource("AtlasTexture_o1mv6")
  112. }, {
  113. "duration": 1.0,
  114. "texture": SubResource("AtlasTexture_1ni3y")
  115. }, {
  116. "duration": 1.0,
  117. "texture": SubResource("AtlasTexture_6rhyi")
  118. }, {
  119. "duration": 1.0,
  120. "texture": SubResource("AtlasTexture_p6ild")
  121. }, {
  122. "duration": 1.0,
  123. "texture": SubResource("AtlasTexture_saikk")
  124. }, {
  125. "duration": 1.0,
  126. "texture": SubResource("AtlasTexture_0gepx")
  127. }, {
  128. "duration": 1.0,
  129. "texture": SubResource("AtlasTexture_bvtoy")
  130. }, {
  131. "duration": 1.0,
  132. "texture": SubResource("AtlasTexture_idyqk")
  133. }, {
  134. "duration": 1.0,
  135. "texture": SubResource("AtlasTexture_arijn")
  136. }, {
  137. "duration": 1.0,
  138. "texture": SubResource("AtlasTexture_lcw4i")
  139. }, {
  140. "duration": 1.0,
  141. "texture": SubResource("AtlasTexture_toy66")
  142. }, {
  143. "duration": 1.0,
  144. "texture": SubResource("AtlasTexture_n5cob")
  145. }, {
  146. "duration": 1.0,
  147. "texture": SubResource("AtlasTexture_rpyjl")
  148. }, {
  149. "duration": 1.0,
  150. "texture": SubResource("AtlasTexture_s5tlm")
  151. }],
  152. "loop": false,
  153. "name": &"eclate",
  154. "speed": 24.0
  155. }]
  156. [node name="EclatementBrique" type="Node2D"]
  157. script = ExtResource("1_jaiil")
  158. [node name="Animation" type="AnimatedSprite2D" parent="."]
  159. position = Vector2(-15, -8)
  160. sprite_frames = SubResource("SpriteFrames_dmg24")
  161. animation = &"eclate"
  162. autoplay = "eclate"
  163. centered = false
  164. [node name="Bruit" type="AudioStreamPlayer2D" parent="."]
  165. stream = ExtResource("3_aawn6")
  166. autoplay = true
  167. bus = &"Bruits"
  168. [connection signal="animation_finished" from="Animation" to="." method="_quand_sous_effet_termine"]
  169. [connection signal="finished" from="Bruit" to="." method="_quand_sous_effet_termine"]