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