Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / role / Enemy0001.tscn
@小李xl 小李xl on 21 Mar 2024 3 KB 测试特效
  1. [gd_scene load_steps=13 format=3 uid="uid://b8s1dgu63fddf"]
  2.  
  3. [ext_resource type="PackedScene" uid="uid://dbrig6dq441wo" path="res://prefab/role/template/EnemyTemplate.tscn" id="1_2vqwe"]
  4. [ext_resource type="Script" path="res://src/game/activity/role/enemy/Enemy.cs" id="2_0pcq3"]
  5. [ext_resource type="Shader" path="res://resource/shader/Blend.gdshader" id="3_x8agd"]
  6. [ext_resource type="SpriteFrames" uid="uid://cnctpyrn02rhd" path="res://resource/spriteFrames/role/Enemy0001.tres" id="4_qv8w5"]
  7. [ext_resource type="Animation" uid="uid://b4mgiysicdk2b" path="res://resource/animation/enemy/Enemy_reset.res" id="5_ffnft"]
  8. [ext_resource type="Animation" uid="uid://gvkkxspcdwrp" path="res://resource/animation/enemy/Enemy_astonished.res" id="5_jyt15"]
  9. [ext_resource type="Animation" uid="uid://16rxpnsgj5tl" path="res://resource/animation/enemy/Enemy_notify.res" id="6_x8gmo"]
  10. [ext_resource type="Animation" uid="uid://cmje7jsgrhgmx" path="res://resource/animation/enemy/Enemy_query.res" id="7_e37p2"]
  11.  
  12.  
  13. [sub_resource type="ShaderMaterial" id="ShaderMaterial_3nkur"]
  14. resource_local_to_scene = true
  15. shader = ExtResource("3_x8agd")
  16. shader_parameter/blend = Color(0, 0, 0, 0.470588)
  17. shader_parameter/schedule = 1.0
  18. shader_parameter/modulate = Color(1, 1, 1, 1)
  19. shader_parameter/show_outline = true
  20. shader_parameter/outline_color = Color(0, 0, 0, 1)
  21. shader_parameter/outline_rainbow = false
  22. shader_parameter/outline_use_blend = true
  23. shader_parameter/grey = 0.0
  24.  
  25. [sub_resource type="ShaderMaterial" id="ShaderMaterial_2kup1"]
  26. resource_local_to_scene = true
  27. shader = ExtResource("3_x8agd")
  28. shader_parameter/blend = Color(1, 1, 1, 1)
  29. shader_parameter/schedule = 0.0
  30. shader_parameter/modulate = Color(1, 1, 1, 1)
  31. shader_parameter/show_outline = true
  32. shader_parameter/outline_color = Color(0, 0, 0, 1)
  33. shader_parameter/outline_rainbow = false
  34. shader_parameter/outline_use_blend = true
  35. shader_parameter/grey = 0.0
  36.  
  37. [sub_resource type="RectangleShape2D" id="RectangleShape2D_rkrey"]
  38. size = Vector2(12, 18)
  39.  
  40. [sub_resource type="AnimationLibrary" id="AnimationLibrary_ur1ug"]
  41. _data = {
  42. "RESET": ExtResource("5_ffnft"),
  43. "astonished": ExtResource("5_jyt15"),
  44. "notify": ExtResource("6_x8gmo"),
  45. "query": ExtResource("7_e37p2")
  46. }
  47.  
  48. [node name="Enemy0001" node_paths=PackedStringArray("ViewRay", "NavigationAgent2D", "NavigationPoint", "FirePoint", "HurtArea", "HurtCollision", "InteractiveArea", "InteractiveCollision", "TipRoot", "TipSprite", "AnimationPlayer", "MountPoint", "BackMountPoint", "MeleeAttackArea", "MeleeAttackCollision", "ShadowSprite", "AnimatedSprite", "Collision") instance=ExtResource("1_2vqwe")]
  49. script = ExtResource("2_0pcq3")
  50. ViewRay = NodePath("ViewRay")
  51. NavigationAgent2D = NodePath("NavigationPoint/NavigationAgent2D")
  52. NavigationPoint = NodePath("NavigationPoint")
  53. FirePoint = NodePath("FirePoint")
  54. HurtArea = NodePath("HurtArea")
  55. HurtCollision = NodePath("HurtArea/HurtCollision")
  56. InteractiveArea = NodePath("InteractiveArea")
  57. InteractiveCollision = NodePath("InteractiveArea/InteractiveCollision")
  58. TipRoot = NodePath("TipRoot")
  59. TipSprite = NodePath("TipRoot/TipSprite")
  60. AnimationPlayer = NodePath("AnimationPlayer")
  61. MountPoint = NodePath("MountPoint")
  62. BackMountPoint = NodePath("BackMountPoint")
  63. MeleeAttackArea = NodePath("MountPoint/MeleeAttackArea")
  64. MeleeAttackCollision = NodePath("MountPoint/MeleeAttackArea/MeleeAttackCollision")
  65. ShadowSprite = NodePath("ShadowSprite")
  66. AnimatedSprite = NodePath("AnimatedSprite")
  67. Collision = NodePath("Collision")
  68.  
  69. [node name="ShadowSprite" parent="." index="0"]
  70. material = SubResource("ShaderMaterial_3nkur")
  71.  
  72. [node name="AnimatedSprite" parent="." index="2"]
  73. material = SubResource("ShaderMaterial_2kup1")
  74. sprite_frames = ExtResource("4_qv8w5")
  75.  
  76. [node name="HurtCollision" parent="HurtArea" index="0"]
  77. shape = SubResource("RectangleShape2D_rkrey")
  78.  
  79. [node name="FirePoint" parent="." index="8"]
  80. position = Vector2(2, -9)
  81.  
  82. [node name="AnimationPlayer" parent="." index="11"]
  83. libraries = {
  84. "": SubResource("AnimationLibrary_ur1ug")
  85. }