Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / effect / BulletDisappear.tscn
  1. [gd_scene load_steps=15 format=3 uid="uid://vbu1phb8mchw"]
  2.  
  3. [ext_resource type="Texture2D" uid="uid://d8ot2wrdoe4j" path="res://resource/effects/Explosion.png" id="1_qqm6c"]
  4. [ext_resource type="Texture2D" uid="uid://h7hkgbwj1li" path="res://resource/effects/Smoke.png" id="1_ybsvf"]
  5.  
  6. [sub_resource type="AtlasTexture" id="AtlasTexture_tscb3"]
  7. atlas = ExtResource("1_qqm6c")
  8. region = Rect2(0, 0, 16, 16)
  9.  
  10. [sub_resource type="AtlasTexture" id="AtlasTexture_l2nv6"]
  11. atlas = ExtResource("1_qqm6c")
  12. region = Rect2(16, 0, 16, 16)
  13.  
  14. [sub_resource type="AtlasTexture" id="AtlasTexture_5133m"]
  15. atlas = ExtResource("1_qqm6c")
  16. region = Rect2(32, 0, 16, 16)
  17.  
  18. [sub_resource type="AtlasTexture" id="AtlasTexture_41eg5"]
  19. atlas = ExtResource("1_qqm6c")
  20. region = Rect2(48, 0, 16, 16)
  21.  
  22. [sub_resource type="SpriteFrames" id="SpriteFrames_ub3cw"]
  23. animations = [{
  24. "frames": [{
  25. "duration": 1.0,
  26. "texture": SubResource("AtlasTexture_tscb3")
  27. }, {
  28. "duration": 1.0,
  29. "texture": SubResource("AtlasTexture_l2nv6")
  30. }, {
  31. "duration": 1.0,
  32. "texture": SubResource("AtlasTexture_5133m")
  33. }, {
  34. "duration": 1.0,
  35. "texture": SubResource("AtlasTexture_41eg5")
  36. }],
  37. "loop": false,
  38. "name": &"default",
  39. "speed": 13.0
  40. }]
  41.  
  42. [sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_4bd3q"]
  43. particles_animation = true
  44. particles_anim_h_frames = 3
  45. particles_anim_v_frames = 1
  46. particles_anim_loop = false
  47.  
  48. [sub_resource type="Curve" id="Curve_86ye5"]
  49. _data = [Vector2(0, 0.736364), 0.0, 0.0, 0, 0, Vector2(0.396825, 1), 0.0, 0.0, 0, 0, Vector2(0.990476, 0), 0.0, 0.0, 0, 0]
  50. point_count = 3
  51.  
  52. [sub_resource type="CurveTexture" id="CurveTexture_j77i6"]
  53. curve = SubResource("Curve_86ye5")
  54.  
  55. [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_r1yeu"]
  56. lifetime_randomness = 0.3
  57. particle_flag_disable_z = true
  58. spread = 180.0
  59. gravity = Vector3(0, 0, 0)
  60. initial_velocity_min = 45.0
  61. initial_velocity_max = 65.0
  62. orbit_velocity_min = 0.0
  63. orbit_velocity_max = 0.0
  64. angle_max = 360.0
  65. scale_min = 0.3
  66. scale_max = 0.6
  67. scale_curve = SubResource("CurveTexture_j77i6")
  68. color = Color(0.909804, 0.909804, 0.909804, 0.380392)
  69. anim_offset_max = 1.0
  70.  
  71. [sub_resource type="Animation" id="Animation_jnfgg"]
  72. resource_name = "Start"
  73. length = 0.3
  74. tracks/0/type = "value"
  75. tracks/0/imported = false
  76. tracks/0/enabled = true
  77. tracks/0/path = NodePath(".:emitting")
  78. tracks/0/interp = 1
  79. tracks/0/loop_wrap = true
  80. tracks/0/keys = {
  81. "times": PackedFloat32Array(0),
  82. "transitions": PackedFloat32Array(1),
  83. "update": 1,
  84. "values": [true]
  85. }
  86. tracks/1/type = "method"
  87. tracks/1/imported = false
  88. tracks/1/enabled = true
  89. tracks/1/path = NodePath("..")
  90. tracks/1/interp = 1
  91. tracks/1/loop_wrap = true
  92. tracks/1/keys = {
  93. "times": PackedFloat32Array(0.3),
  94. "transitions": PackedFloat32Array(1),
  95. "values": [{
  96. "args": [],
  97. "method": &"queue_free"
  98. }]
  99. }
  100.  
  101. [sub_resource type="Animation" id="Animation_yr61b"]
  102. length = 0.001
  103. tracks/0/type = "value"
  104. tracks/0/imported = false
  105. tracks/0/enabled = true
  106. tracks/0/path = NodePath(".:emitting")
  107. tracks/0/interp = 1
  108. tracks/0/loop_wrap = true
  109. tracks/0/keys = {
  110. "times": PackedFloat32Array(0),
  111. "transitions": PackedFloat32Array(1),
  112. "update": 1,
  113. "values": [false]
  114. }
  115.  
  116. [sub_resource type="AnimationLibrary" id="AnimationLibrary_1spnw"]
  117. _data = {
  118. "RESET": SubResource("Animation_yr61b"),
  119. "Start": SubResource("Animation_jnfgg")
  120. }
  121.  
  122. [node name="BulletDisappear" type="AnimatedSprite2D"]
  123. modulate = Color(1, 1, 1, 0.784314)
  124. z_index = -4
  125. scale = Vector2(0.5, 0.5)
  126. sprite_frames = SubResource("SpriteFrames_ub3cw")
  127. autoplay = "default"
  128.  
  129. [node name="GPUParticles2D" type="GPUParticles2D" parent="."]
  130. material = SubResource("CanvasItemMaterial_4bd3q")
  131. emitting = false
  132. process_material = SubResource("ParticleProcessMaterial_r1yeu")
  133. texture = ExtResource("1_ybsvf")
  134. lifetime = 0.3
  135. one_shot = true
  136. explosiveness = 0.9
  137. fixed_fps = 20
  138.  
  139. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  140. root_node = NodePath("../GPUParticles2D")
  141. autoplay = "Start"
  142. libraries = {
  143. "": SubResource("AnimationLibrary_1spnw")
  144. }