Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / role / enemy / Enemy0002.tscn
@小李xl 小李xl on 30 Mar 2024 4 KB 商店开发中
  1. [gd_scene load_steps=13 format=3 uid="uid://daqsdld5gnwwr"]
  2.  
  3. [ext_resource type="PackedScene" uid="uid://dbrig6dq441wo" path="res://prefab/role/template/AiTemplate.tscn" id="1_fanet"]
  4. [ext_resource type="Script" path="res://src/game/activity/role/enemy/NoWeaponEnemy.cs" id="2_3an4s"]
  5. [ext_resource type="Shader" path="res://resource/shader/Blend.gdshader" id="2_yunbp"]
  6. [ext_resource type="SpriteFrames" uid="uid://ctpkpxgcwb583" path="res://resource/spriteFrames/role/Enemy0002.tres" id="3_hbsqi"]
  7. [ext_resource type="Animation" uid="uid://gvkkxspcdwrp" path="res://resource/animation/enemy/Enemy_astonished.res" id="5_p7gwr"]
  8. [ext_resource type="Animation" uid="uid://b4mgiysicdk2b" path="res://resource/animation/enemy/Enemy_reset.res" id="6_pt7v0"]
  9. [ext_resource type="Animation" uid="uid://cmje7jsgrhgmx" path="res://resource/animation/enemy/Enemy_query.res" id="7_h4cls"]
  10. [ext_resource type="Animation" uid="uid://16rxpnsgj5tl" path="res://resource/animation/enemy/Enemy_notify.res" id="8_0688j"]
  11.  
  12.  
  13. [sub_resource type="ShaderMaterial" id="ShaderMaterial_y5nia"]
  14. resource_local_to_scene = true
  15. shader = ExtResource("2_yunbp")
  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_4qvs8"]
  26. resource_local_to_scene = true
  27. shader = ExtResource("2_yunbp")
  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="Animation" id="Animation_bn678"]
  38. resource_name = "attack"
  39. length = 1.8
  40. tracks/0/type = "value"
  41. tracks/0/imported = false
  42. tracks/0/enabled = true
  43. tracks/0/path = NodePath("AnimatedSprite:animation")
  44. tracks/0/interp = 1
  45. tracks/0/loop_wrap = true
  46. tracks/0/keys = {
  47. "times": PackedFloat32Array(0),
  48. "transitions": PackedFloat32Array(1),
  49. "update": 1,
  50. "values": [&"attack"]
  51. }
  52. tracks/1/type = "value"
  53. tracks/1/imported = false
  54. tracks/1/enabled = true
  55. tracks/1/path = NodePath("AnimatedSprite:frame")
  56. tracks/1/interp = 1
  57. tracks/1/loop_wrap = true
  58. tracks/1/keys = {
  59. "times": PackedFloat32Array(0, 1.7),
  60. "transitions": PackedFloat32Array(1, 1),
  61. "update": 0,
  62. "values": [0, 12]
  63. }
  64. tracks/2/type = "method"
  65. tracks/2/imported = false
  66. tracks/2/enabled = true
  67. tracks/2/path = NodePath(".")
  68. tracks/2/interp = 1
  69. tracks/2/loop_wrap = true
  70. tracks/2/keys = {
  71. "times": PackedFloat32Array(1.3),
  72. "transitions": PackedFloat32Array(1),
  73. "values": [{
  74. "args": [],
  75. "method": &"OnAttack"
  76. }]
  77. }
  78.  
  79. [sub_resource type="AnimationLibrary" id="AnimationLibrary_3ge8m"]
  80. _data = {
  81. "RESET": ExtResource("6_pt7v0"),
  82. "astonished": ExtResource("5_p7gwr"),
  83. "attack": SubResource("Animation_bn678"),
  84. "notify": ExtResource("8_0688j"),
  85. "query": ExtResource("7_h4cls")
  86. }
  87.  
  88. [node name="Enemy0002" node_paths=PackedStringArray("ViewRay", "NavigationAgent2D", "NavigationPoint", "FirePoint", "HurtArea", "HurtCollision", "InteractiveArea", "InteractiveCollision", "TipRoot", "TipSprite", "AnimationPlayer", "MountPoint", "BackMountPoint", "MeleeAttackArea", "MeleeAttackCollision", "ShadowSprite", "AnimatedSprite", "Collision") instance=ExtResource("1_fanet")]
  89. script = ExtResource("2_3an4s")
  90. ViewRay = NodePath("ViewRay")
  91. NavigationAgent2D = NodePath("NavigationPoint/NavigationAgent2D")
  92. NavigationPoint = NodePath("NavigationPoint")
  93. FirePoint = NodePath("FirePoint")
  94. HurtArea = NodePath("HurtArea")
  95. HurtCollision = NodePath("HurtArea/HurtCollision")
  96. InteractiveArea = NodePath("InteractiveArea")
  97. InteractiveCollision = NodePath("InteractiveArea/InteractiveCollision")
  98. TipRoot = NodePath("TipRoot")
  99. TipSprite = NodePath("TipRoot/TipSprite")
  100. AnimationPlayer = NodePath("AnimationPlayer")
  101. MountPoint = NodePath("MountPoint")
  102. BackMountPoint = NodePath("BackMountPoint")
  103. MeleeAttackArea = NodePath("MountPoint/MeleeAttackArea")
  104. MeleeAttackCollision = NodePath("MountPoint/MeleeAttackArea/MeleeAttackCollision")
  105. ShadowSprite = NodePath("ShadowSprite")
  106. AnimatedSprite = NodePath("AnimatedSprite")
  107. Collision = NodePath("Collision")
  108.  
  109. [node name="ShadowSprite" parent="." index="0"]
  110. material = SubResource("ShaderMaterial_y5nia")
  111.  
  112. [node name="AnimatedSprite" parent="." index="2"]
  113. material = SubResource("ShaderMaterial_4qvs8")
  114. sprite_frames = ExtResource("3_hbsqi")
  115. offset = Vector2(0, -9)
  116.  
  117. [node name="HurtCollision" parent="HurtArea" index="0"]
  118. position = Vector2(0, -7)
  119.  
  120. [node name="MountPoint" parent="." index="7"]
  121. position = Vector2(4, -9)
  122.  
  123. [node name="FirePoint" parent="." index="8"]
  124. position = Vector2(7, -6)
  125.  
  126. [node name="AnimationPlayer" parent="." index="11"]
  127. libraries = {
  128. "": SubResource("AnimationLibrary_3ge8m")
  129. }