Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / effect / enemy / EbenyDead0002.tscn
@小李xl 小李xl on 21 Nov 2023 4 KB 第二种敌人死亡动画
  1. [gd_scene load_steps=19 format=3 uid="uid://nfx3lhkdhv6a"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/activity/common/AutoFreezeObject.cs" id="1_iop26"]
  4. [ext_resource type="Texture2D" uid="uid://x3tjqgdgp43n" path="res://resource/sprite/role/enemy0002/Enemy0002_dead.png" id="2_3cyjy"]
  5. [ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="2_4hojo"]
  6. [ext_resource type="Texture2D" uid="uid://h7hkgbwj1li" path="res://resource/sprite/effects/common/Smoke.png" id="4_m7xko"]
  7.  
  8. [sub_resource type="ShaderMaterial" id="ShaderMaterial_s1mj2"]
  9. resource_local_to_scene = true
  10. shader = ExtResource("2_4hojo")
  11. shader_parameter/blend = Color(0, 0, 0, 0.470588)
  12. shader_parameter/schedule = 1.0
  13. shader_parameter/modulate = Color(1, 1, 1, 1)
  14. shader_parameter/show_outline = true
  15. shader_parameter/outline_color = Color(0, 0, 0, 1)
  16. shader_parameter/outline_rainbow = false
  17. shader_parameter/outline_use_blend = true
  18. shader_parameter/grey = 0.0
  19.  
  20. [sub_resource type="ShaderMaterial" id="ShaderMaterial_08fn3"]
  21. resource_local_to_scene = true
  22. shader = ExtResource("2_4hojo")
  23. shader_parameter/blend = Color(1, 1, 1, 1)
  24. shader_parameter/schedule = 0.0
  25. shader_parameter/modulate = Color(1, 1, 1, 1)
  26. shader_parameter/show_outline = true
  27. shader_parameter/outline_color = Color(0, 0, 0, 1)
  28. shader_parameter/outline_rainbow = false
  29. shader_parameter/outline_use_blend = true
  30. shader_parameter/grey = 0.0
  31.  
  32. [sub_resource type="AtlasTexture" id="AtlasTexture_ag5h2"]
  33. atlas = ExtResource("2_3cyjy")
  34. region = Rect2(0, 0, 32, 32)
  35.  
  36. [sub_resource type="AtlasTexture" id="AtlasTexture_toly3"]
  37. atlas = ExtResource("2_3cyjy")
  38. region = Rect2(32, 0, 32, 32)
  39.  
  40. [sub_resource type="AtlasTexture" id="AtlasTexture_bqash"]
  41. atlas = ExtResource("2_3cyjy")
  42. region = Rect2(64, 0, 32, 32)
  43.  
  44. [sub_resource type="AtlasTexture" id="AtlasTexture_lx5fo"]
  45. atlas = ExtResource("2_3cyjy")
  46. region = Rect2(96, 0, 32, 32)
  47.  
  48. [sub_resource type="SpriteFrames" id="SpriteFrames_vhsqr"]
  49. animations = [{
  50. "frames": [{
  51. "duration": 1.0,
  52. "texture": SubResource("AtlasTexture_ag5h2")
  53. }, {
  54. "duration": 1.0,
  55. "texture": SubResource("AtlasTexture_toly3")
  56. }, {
  57. "duration": 1.0,
  58. "texture": SubResource("AtlasTexture_bqash")
  59. }, {
  60. "duration": 1.0,
  61. "texture": SubResource("AtlasTexture_lx5fo")
  62. }],
  63. "loop": false,
  64. "name": &"dead",
  65. "speed": 5.0
  66. }]
  67.  
  68. [sub_resource type="CircleShape2D" id="CircleShape2D_0xl2q"]
  69. radius = 4.0
  70.  
  71. [sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_p3lv8"]
  72. particles_animation = true
  73. particles_anim_h_frames = 3
  74. particles_anim_v_frames = 1
  75. particles_anim_loop = false
  76.  
  77. [sub_resource type="Gradient" id="Gradient_ryemi"]
  78. colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0.537255)
  79.  
  80. [sub_resource type="GradientTexture1D" id="GradientTexture1D_orgu0"]
  81. gradient = SubResource("Gradient_ryemi")
  82.  
  83. [sub_resource type="Curve" id="Curve_21dxk"]
  84. _data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.177419, 1), 0.0, 0.0, 0, 0, Vector2(1, 0.0272727), 0.0, 0.0, 0, 0]
  85. point_count = 3
  86.  
  87. [sub_resource type="CurveTexture" id="CurveTexture_rutlp"]
  88. curve = SubResource("Curve_21dxk")
  89.  
  90. [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ku1mm"]
  91. particle_flag_disable_z = true
  92. angle_max = 360.0
  93. gravity = Vector3(0, 0, 0)
  94. scale_min = 0.4
  95. scale_max = 1.5
  96. scale_curve = SubResource("CurveTexture_rutlp")
  97. color = Color(0.811765, 0.0980392, 0.0980392, 0.627451)
  98. color_ramp = SubResource("GradientTexture1D_orgu0")
  99. anim_offset_max = 1.0
  100.  
  101. [node name="Effect0002" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
  102. collision_layer = 128
  103. script = ExtResource("1_iop26")
  104. AnimationName = "dead"
  105. AutoToGrey = true
  106. ShadowSprite = NodePath("ShadowSprite")
  107. AnimatedSprite = NodePath("AnimatedSprite")
  108. Collision = NodePath("Collision")
  109. ThrowCollisionSize = Vector2(14, 14)
  110.  
  111. [node name="ShadowSprite" type="Sprite2D" parent="."]
  112. z_index = -1
  113. material = SubResource("ShaderMaterial_s1mj2")
  114.  
  115. [node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
  116. material = SubResource("ShaderMaterial_08fn3")
  117. sprite_frames = SubResource("SpriteFrames_vhsqr")
  118. animation = &"dead"
  119. offset = Vector2(0, -9)
  120.  
  121. [node name="Collision" type="CollisionShape2D" parent="."]
  122. shape = SubResource("CircleShape2D_0xl2q")
  123.  
  124. [node name="GPUParticles2D" type="GPUParticles2D" parent="."]
  125. material = SubResource("CanvasItemMaterial_p3lv8")
  126. emitting = false
  127. process_material = SubResource("ParticleProcessMaterial_ku1mm")
  128. texture = ExtResource("4_m7xko")
  129. fixed_fps = 20