Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / role / Enemy0002.tscn
@小李xl 小李xl on 19 Nov 2023 4 KB 角色攻击状态
  1. [gd_scene load_steps=10 format=3 uid="uid://daqsdld5gnwwr"]
  2.  
  3. [ext_resource type="PackedScene" uid="uid://dbrig6dq441wo" path="res://prefab/role/template/EnemyTemplate.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/material/Blend.gdshader" id="2_yunbp"]
  6. [ext_resource type="SpriteFrames" uid="uid://ctpkpxgcwb583" path="res://resource/spriteFrames/role/Enemy0002.tres" id="3_hbsqi"]
  7.  
  8. [sub_resource type="ShaderMaterial" id="ShaderMaterial_5rnql"]
  9. resource_local_to_scene = true
  10. shader = ExtResource("2_yunbp")
  11. shader_parameter/blend = Color(0, 0, 0, 0.470588)
  12. shader_parameter/schedule = 1.0
  13. shader_parameter/modulate = Color(1, 1, 1, 1)
  14. shader_parameter/show_outline = true
  15. shader_parameter/outline_color = Color(0, 0, 0, 1)
  16. shader_parameter/outline_rainbow = false
  17. shader_parameter/outline_use_blend = true
  18.  
  19. [sub_resource type="ShaderMaterial" id="ShaderMaterial_4qvs8"]
  20. resource_local_to_scene = true
  21. shader = ExtResource("2_yunbp")
  22. shader_parameter/blend = Color(1, 1, 1, 1)
  23. shader_parameter/schedule = 0.0
  24. shader_parameter/modulate = Color(1, 1, 1, 1)
  25. shader_parameter/show_outline = true
  26. shader_parameter/outline_color = Color(0, 0, 0, 1)
  27. shader_parameter/outline_rainbow = false
  28. shader_parameter/outline_use_blend = true
  29.  
  30. [sub_resource type="Animation" id="Animation_343jg"]
  31. length = 0.001
  32. tracks/0/type = "value"
  33. tracks/0/imported = false
  34. tracks/0/enabled = true
  35. tracks/0/path = NodePath("AnimatedSprite:frame")
  36. tracks/0/interp = 1
  37. tracks/0/loop_wrap = true
  38. tracks/0/keys = {
  39. "times": PackedFloat32Array(0),
  40. "transitions": PackedFloat32Array(1),
  41. "update": 1,
  42. "values": [0]
  43. }
  44.  
  45. [sub_resource type="Animation" id="Animation_bn678"]
  46. resource_name = "attack"
  47. length = 0.6
  48. tracks/0/type = "value"
  49. tracks/0/imported = false
  50. tracks/0/enabled = true
  51. tracks/0/path = NodePath("AnimatedSprite:animation")
  52. tracks/0/interp = 1
  53. tracks/0/loop_wrap = true
  54. tracks/0/keys = {
  55. "times": PackedFloat32Array(0),
  56. "transitions": PackedFloat32Array(1),
  57. "update": 1,
  58. "values": [&"attack"]
  59. }
  60. tracks/1/type = "value"
  61. tracks/1/imported = false
  62. tracks/1/enabled = true
  63. tracks/1/path = NodePath("AnimatedSprite:frame")
  64. tracks/1/interp = 1
  65. tracks/1/loop_wrap = true
  66. tracks/1/keys = {
  67. "times": PackedFloat32Array(0, 0.5),
  68. "transitions": PackedFloat32Array(1, 1),
  69. "update": 0,
  70. "values": [0, 7]
  71. }
  72. tracks/2/type = "method"
  73. tracks/2/imported = false
  74. tracks/2/enabled = true
  75. tracks/2/path = NodePath(".")
  76. tracks/2/interp = 1
  77. tracks/2/loop_wrap = true
  78. tracks/2/keys = {
  79. "times": PackedFloat32Array(0.3),
  80. "transitions": PackedFloat32Array(1),
  81. "values": [{
  82. "args": [],
  83. "method": &"ShootBullet"
  84. }]
  85. }
  86.  
  87. [sub_resource type="AnimationLibrary" id="AnimationLibrary_3ge8m"]
  88. _data = {
  89. "RESET": SubResource("Animation_343jg"),
  90. "attack": SubResource("Animation_bn678")
  91. }
  92.  
  93. [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")]
  94. script = ExtResource("2_3an4s")
  95. CanPickUpWeapon = false
  96. ViewRay = NodePath("ViewRay")
  97. NavigationAgent2D = NodePath("NavigationPoint/NavigationAgent2D")
  98. NavigationPoint = NodePath("NavigationPoint")
  99. FirePoint = NodePath("FirePoint")
  100. HurtArea = NodePath("HurtArea")
  101. HurtCollision = NodePath("HurtArea/HurtCollision")
  102. InteractiveArea = NodePath("InteractiveArea")
  103. InteractiveCollision = NodePath("InteractiveArea/InteractiveCollision")
  104. TipRoot = NodePath("TipRoot")
  105. TipSprite = NodePath("TipRoot/TipSprite")
  106. AnimationPlayer = NodePath("AnimationPlayer")
  107. MountPoint = NodePath("MountPoint")
  108. BackMountPoint = NodePath("BackMountPoint")
  109. MeleeAttackArea = NodePath("MountPoint/MeleeAttackArea")
  110. MeleeAttackCollision = NodePath("MountPoint/MeleeAttackArea/MeleeAttackCollision")
  111. ShadowSprite = NodePath("ShadowSprite")
  112. AnimatedSprite = NodePath("AnimatedSprite")
  113. Collision = NodePath("Collision")
  114.  
  115. [node name="ShadowSprite" parent="." index="0"]
  116. material = SubResource("ShaderMaterial_5rnql")
  117.  
  118. [node name="AnimatedSprite" parent="." index="2"]
  119. material = SubResource("ShaderMaterial_4qvs8")
  120. sprite_frames = ExtResource("3_hbsqi")
  121. animation = &"attack"
  122. offset = Vector2(0, -10)
  123.  
  124. [node name="HurtCollision" parent="HurtArea" index="0"]
  125. position = Vector2(0, -7)
  126.  
  127. [node name="MountPoint" parent="." index="7"]
  128. position = Vector2(4, -9)
  129.  
  130. [node name="FirePoint" parent="." index="8"]
  131. position = Vector2(7, -6)
  132.  
  133. [node name="AnimationPlayer" parent="." index="11"]
  134. libraries = {
  135. "": SubResource("AnimationLibrary_3ge8m")
  136. }