Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / effect / weapon / BulletDisappear.tscn
  1. [gd_scene load_steps=13 format=3 uid="uid://c6mmikwchwt"]
  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/common/Smoke.png" id="1_ybsvf"]
  5. [ext_resource type="Script" path="res://src/game/effects/AutoDestroySprite.cs" id="2_l2qlq"]
  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. [node name="BulletDisappear" type="AnimatedSprite2D" node_paths=PackedStringArray("Particles2D")]
  73. modulate = Color(1, 1, 1, 0.784314)
  74. z_index = -4
  75. scale = Vector2(0.5, 0.5)
  76. sprite_frames = SubResource("SpriteFrames_ub3cw")
  77. autoplay = "default"
  78. script = ExtResource("2_l2qlq")
  79. DelayTime = 0.3
  80. Particles2D = [NodePath("GPUParticles2D")]
  81.  
  82. [node name="GPUParticles2D" type="GPUParticles2D" parent="."]
  83. material = SubResource("CanvasItemMaterial_4bd3q")
  84. emitting = false
  85. process_material = SubResource("ParticleProcessMaterial_r1yeu")
  86. texture = ExtResource("1_ybsvf")
  87. lifetime = 0.3
  88. one_shot = true
  89. explosiveness = 0.9
  90. fixed_fps = 20