Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / effect / activityObject / Effect0001.tscn
@小李xl 小李xl on 5 Jul 2023 6 KB 使用主动道具
  1. [gd_scene load_steps=30 format=3 uid="uid://pr88a1phtxgb"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/effects/EnemyDebris.cs" id="1_jnsw0"]
  4. [ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="2_b3d83"]
  5. [ext_resource type="Texture2D" uid="uid://d2f55lu60x64i" path="res://resource/sprite/role/enemy0001/Enemy0001_Debris.png" id="3_ntutm"]
  6. [ext_resource type="Texture2D" uid="uid://h7hkgbwj1li" path="res://resource/sprite/effects/Smoke.png" id="4_egbbr"]
  7.  
  8. [sub_resource type="ShaderMaterial" id="ShaderMaterial_s1mj2"]
  9. resource_local_to_scene = true
  10. shader = ExtResource("2_b3d83")
  11. shader_parameter/blend = Color(0, 0, 0, 0.470588)
  12. shader_parameter/schedule = 1.0
  13. shader_parameter/alpha = 1.0
  14. shader_parameter/show_outline = true
  15. shader_parameter/outline_color = Color(0, 0, 0, 1)
  16. shader_parameter/outline_rainbow = false
  17.  
  18. [sub_resource type="ShaderMaterial" id="ShaderMaterial_08fn3"]
  19. shader = ExtResource("2_b3d83")
  20. shader_parameter/blend = Color(1, 1, 1, 1)
  21. shader_parameter/schedule = 0.0
  22. shader_parameter/alpha = 1.0
  23. shader_parameter/show_outline = false
  24. shader_parameter/outline_color = Color(0, 0, 0, 1)
  25. shader_parameter/outline_rainbow = false
  26.  
  27. [sub_resource type="AtlasTexture" id="AtlasTexture_cldwb"]
  28. atlas = ExtResource("3_ntutm")
  29. region = Rect2(0, 0, 16, 16)
  30.  
  31. [sub_resource type="AtlasTexture" id="AtlasTexture_ehtnl"]
  32. atlas = ExtResource("3_ntutm")
  33. region = Rect2(16, 0, 16, 16)
  34.  
  35. [sub_resource type="AtlasTexture" id="AtlasTexture_j05gd"]
  36. atlas = ExtResource("3_ntutm")
  37. region = Rect2(32, 0, 16, 16)
  38.  
  39. [sub_resource type="AtlasTexture" id="AtlasTexture_7el6f"]
  40. atlas = ExtResource("3_ntutm")
  41. region = Rect2(48, 0, 16, 16)
  42.  
  43. [sub_resource type="AtlasTexture" id="AtlasTexture_n7sw3"]
  44. atlas = ExtResource("3_ntutm")
  45. region = Rect2(64, 0, 16, 16)
  46.  
  47. [sub_resource type="AtlasTexture" id="AtlasTexture_mumsm"]
  48. atlas = ExtResource("3_ntutm")
  49. region = Rect2(80, 0, 16, 16)
  50.  
  51. [sub_resource type="AtlasTexture" id="AtlasTexture_gx41d"]
  52. atlas = ExtResource("3_ntutm")
  53. region = Rect2(96, 0, 16, 16)
  54.  
  55. [sub_resource type="AtlasTexture" id="AtlasTexture_r4nx1"]
  56. atlas = ExtResource("3_ntutm")
  57. region = Rect2(112, 0, 16, 16)
  58.  
  59. [sub_resource type="AtlasTexture" id="AtlasTexture_s8j4o"]
  60. atlas = ExtResource("3_ntutm")
  61. region = Rect2(128, 0, 16, 16)
  62.  
  63. [sub_resource type="AtlasTexture" id="AtlasTexture_2svrb"]
  64. atlas = ExtResource("3_ntutm")
  65. region = Rect2(144, 0, 16, 16)
  66.  
  67. [sub_resource type="AtlasTexture" id="AtlasTexture_twd5t"]
  68. atlas = ExtResource("3_ntutm")
  69. region = Rect2(160, 0, 16, 16)
  70.  
  71. [sub_resource type="AtlasTexture" id="AtlasTexture_8w5ka"]
  72. atlas = ExtResource("3_ntutm")
  73. region = Rect2(176, 0, 16, 16)
  74.  
  75. [sub_resource type="AtlasTexture" id="AtlasTexture_6iumv"]
  76. atlas = ExtResource("3_ntutm")
  77. region = Rect2(192, 0, 16, 16)
  78.  
  79. [sub_resource type="AtlasTexture" id="AtlasTexture_lpilf"]
  80. atlas = ExtResource("3_ntutm")
  81. region = Rect2(208, 0, 16, 16)
  82.  
  83. [sub_resource type="AtlasTexture" id="AtlasTexture_n1a5a"]
  84. atlas = ExtResource("3_ntutm")
  85. region = Rect2(224, 0, 16, 16)
  86.  
  87. [sub_resource type="AtlasTexture" id="AtlasTexture_q0oeq"]
  88. atlas = ExtResource("3_ntutm")
  89. region = Rect2(240, 0, 16, 16)
  90.  
  91. [sub_resource type="SpriteFrames" id="SpriteFrames_15g84"]
  92. animations = [{
  93. "frames": [{
  94. "duration": 1.0,
  95. "texture": SubResource("AtlasTexture_cldwb")
  96. }, {
  97. "duration": 1.0,
  98. "texture": SubResource("AtlasTexture_ehtnl")
  99. }, {
  100. "duration": 1.0,
  101. "texture": SubResource("AtlasTexture_j05gd")
  102. }, {
  103. "duration": 1.0,
  104. "texture": SubResource("AtlasTexture_7el6f")
  105. }, {
  106. "duration": 1.0,
  107. "texture": SubResource("AtlasTexture_n7sw3")
  108. }, {
  109. "duration": 1.0,
  110. "texture": SubResource("AtlasTexture_mumsm")
  111. }, {
  112. "duration": 1.0,
  113. "texture": SubResource("AtlasTexture_gx41d")
  114. }, {
  115. "duration": 1.0,
  116. "texture": SubResource("AtlasTexture_r4nx1")
  117. }, {
  118. "duration": 1.0,
  119. "texture": SubResource("AtlasTexture_s8j4o")
  120. }, {
  121. "duration": 1.0,
  122. "texture": SubResource("AtlasTexture_2svrb")
  123. }, {
  124. "duration": 1.0,
  125. "texture": SubResource("AtlasTexture_twd5t")
  126. }, {
  127. "duration": 1.0,
  128. "texture": SubResource("AtlasTexture_8w5ka")
  129. }, {
  130. "duration": 1.0,
  131. "texture": SubResource("AtlasTexture_6iumv")
  132. }, {
  133. "duration": 1.0,
  134. "texture": SubResource("AtlasTexture_lpilf")
  135. }, {
  136. "duration": 1.0,
  137. "texture": SubResource("AtlasTexture_n1a5a")
  138. }, {
  139. "duration": 1.0,
  140. "texture": SubResource("AtlasTexture_q0oeq")
  141. }],
  142. "loop": true,
  143. "name": &"default",
  144. "speed": 5.0
  145. }]
  146.  
  147. [sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_p3lv8"]
  148. particles_animation = true
  149. particles_anim_h_frames = 3
  150. particles_anim_v_frames = 1
  151. particles_anim_loop = false
  152.  
  153. [sub_resource type="Gradient" id="Gradient_ryemi"]
  154. colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0.537255)
  155.  
  156. [sub_resource type="GradientTexture1D" id="GradientTexture1D_orgu0"]
  157. gradient = SubResource("Gradient_ryemi")
  158.  
  159. [sub_resource type="Curve" id="Curve_21dxk"]
  160. _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]
  161. point_count = 3
  162.  
  163. [sub_resource type="CurveTexture" id="CurveTexture_rutlp"]
  164. curve = SubResource("Curve_21dxk")
  165.  
  166. [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ku1mm"]
  167. particle_flag_disable_z = true
  168. gravity = Vector3(0, 0, 0)
  169. orbit_velocity_min = 0.0
  170. orbit_velocity_max = 0.0
  171. angle_max = 360.0
  172. scale_min = 0.4
  173. scale_max = 1.5
  174. scale_curve = SubResource("CurveTexture_rutlp")
  175. color = Color(0.811765, 0.0980392, 0.0980392, 0.627451)
  176. color_ramp = SubResource("GradientTexture1D_orgu0")
  177. anim_offset_max = 1.0
  178.  
  179. [node name="Effect0001" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
  180. script = ExtResource("1_jnsw0")
  181. ShadowSprite = NodePath("ShadowSprite")
  182. AnimatedSprite = NodePath("AnimatedSprite")
  183. Collision = NodePath("Collision")
  184.  
  185. [node name="ShadowSprite" type="Sprite2D" parent="."]
  186. z_index = -1
  187. material = SubResource("ShaderMaterial_s1mj2")
  188.  
  189. [node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
  190. material = SubResource("ShaderMaterial_08fn3")
  191. sprite_frames = SubResource("SpriteFrames_15g84")
  192.  
  193. [node name="Collision" type="CollisionShape2D" parent="."]
  194.  
  195. [node name="GPUParticles2D" type="GPUParticles2D" parent="."]
  196. material = SubResource("CanvasItemMaterial_p3lv8")
  197. emitting = false
  198. process_material = SubResource("ParticleProcessMaterial_ku1mm")
  199. texture = ExtResource("4_egbbr")
  200. fixed_fps = 20