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