Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / effect / bullet / BulletDisappear0001.tscn
  1. [gd_scene load_steps=13 format=3 uid="uid://c6mmikwchwt"]
  2.  
  3. [ext_resource type="Texture2D" uid="uid://4be6mi1egtiy" path="res://resource/sprite/explode/Explode_circle0003.png" id="1_nag6e"]
  4. [ext_resource type="Script" path="res://src/game/effects/AutoDestroySprite.cs" id="2_db7di"]
  5. [ext_resource type="Texture2D" uid="uid://h7hkgbwj1li" path="res://resource/sprite/common/Smoke.png" id="3_2w51u"]
  6.  
  7. [sub_resource type="AtlasTexture" id="AtlasTexture_tscb3"]
  8. atlas = ExtResource("1_nag6e")
  9. region = Rect2(0, 0, 16, 16)
  10.  
  11. [sub_resource type="AtlasTexture" id="AtlasTexture_l2nv6"]
  12. atlas = ExtResource("1_nag6e")
  13. region = Rect2(16, 0, 16, 16)
  14.  
  15. [sub_resource type="AtlasTexture" id="AtlasTexture_5133m"]
  16. atlas = ExtResource("1_nag6e")
  17. region = Rect2(32, 0, 16, 16)
  18.  
  19. [sub_resource type="AtlasTexture" id="AtlasTexture_41eg5"]
  20. atlas = ExtResource("1_nag6e")
  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. "duration": 1.0,
  39. "texture": null
  40. }],
  41. "loop": false,
  42. "name": &"default",
  43. "speed": 13.0
  44. }]
  45.  
  46. [sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_4bd3q"]
  47. particles_animation = true
  48. particles_anim_h_frames = 3
  49. particles_anim_v_frames = 1
  50. particles_anim_loop = false
  51.  
  52. [sub_resource type="Curve" id="Curve_86ye5"]
  53. _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]
  54. point_count = 3
  55.  
  56. [sub_resource type="CurveTexture" id="CurveTexture_j77i6"]
  57. curve = SubResource("Curve_86ye5")
  58.  
  59. [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_r1yeu"]
  60. lifetime_randomness = 0.3
  61. particle_flag_disable_z = true
  62. angle_max = 360.0
  63. spread = 180.0
  64. initial_velocity_min = 45.0
  65. initial_velocity_max = 65.0
  66. gravity = Vector3(0, 0, 0)
  67. scale_min = 0.3
  68. scale_max = 0.6
  69. scale_curve = SubResource("CurveTexture_j77i6")
  70. color = Color(0.909804, 0.909804, 0.909804, 0.380392)
  71. anim_offset_max = 1.0
  72.  
  73. [node name="BulletDisappear0002" type="AnimatedSprite2D" node_paths=PackedStringArray("Particles2D")]
  74. modulate = Color(1, 1, 1, 0.784314)
  75. z_index = -4
  76. scale = Vector2(0.5, 0.5)
  77. sprite_frames = SubResource("SpriteFrames_ub3cw")
  78. script = ExtResource("2_db7di")
  79. DelayTime = 0.5
  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("3_2w51u")
  87. lifetime = 0.3
  88. one_shot = true
  89. explosiveness = 0.9
  90. fixed_fps = 20