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