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