Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / role / Enemy0002.tscn
  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/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. [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. [sub_resource type="ShaderMaterial" id="ShaderMaterial_y5nia"]
  13. resource_local_to_scene = true
  14. shader = ExtResource("2_yunbp")
  15. shader_parameter/blend = Color(0, 0, 0, 0.470588)
  16. shader_parameter/schedule = 1.0
  17. shader_parameter/modulate = Color(1, 1, 1, 1)
  18. shader_parameter/show_outline = true
  19. shader_parameter/outline_color = Color(0, 0, 0, 1)
  20. shader_parameter/outline_rainbow = false
  21. shader_parameter/outline_use_blend = true
  22. shader_parameter/grey = 0.0
  23.  
  24. [sub_resource type="ShaderMaterial" id="ShaderMaterial_4qvs8"]
  25. resource_local_to_scene = true
  26. shader = ExtResource("2_yunbp")
  27. shader_parameter/blend = Color(1, 1, 1, 1)
  28. shader_parameter/schedule = 0.0
  29. shader_parameter/modulate = Color(1, 1, 1, 1)
  30. shader_parameter/show_outline = true
  31. shader_parameter/outline_color = Color(0, 0, 0, 1)
  32. shader_parameter/outline_rainbow = false
  33. shader_parameter/outline_use_blend = true
  34. shader_parameter/grey = 0.0
  35.  
  36. [sub_resource type="Animation" id="Animation_bn678"]
  37. resource_name = "attack"
  38. length = 1.8
  39. tracks/0/type = "value"
  40. tracks/0/imported = false
  41. tracks/0/enabled = true
  42. tracks/0/path = NodePath("AnimatedSprite:animation")
  43. tracks/0/interp = 1
  44. tracks/0/loop_wrap = true
  45. tracks/0/keys = {
  46. "times": PackedFloat32Array(0),
  47. "transitions": PackedFloat32Array(1),
  48. "update": 1,
  49. "values": [&"attack"]
  50. }
  51. tracks/1/type = "value"
  52. tracks/1/imported = false
  53. tracks/1/enabled = true
  54. tracks/1/path = NodePath("AnimatedSprite:frame")
  55. tracks/1/interp = 1
  56. tracks/1/loop_wrap = true
  57. tracks/1/keys = {
  58. "times": PackedFloat32Array(0, 1.7),
  59. "transitions": PackedFloat32Array(1, 1),
  60. "update": 0,
  61. "values": [0, 12]
  62. }
  63. tracks/2/type = "method"
  64. tracks/2/imported = false
  65. tracks/2/enabled = true
  66. tracks/2/path = NodePath(".")
  67. tracks/2/interp = 1
  68. tracks/2/loop_wrap = true
  69. tracks/2/keys = {
  70. "times": PackedFloat32Array(1.3),
  71. "transitions": PackedFloat32Array(1),
  72. "values": [{
  73. "args": [],
  74. "method": &"OnAttack"
  75. }]
  76. }
  77.  
  78. [sub_resource type="AnimationLibrary" id="AnimationLibrary_3ge8m"]
  79. _data = {
  80. "RESET": ExtResource("6_pt7v0"),
  81. "astonished": ExtResource("5_p7gwr"),
  82. "attack": SubResource("Animation_bn678"),
  83. "notify": ExtResource("8_0688j"),
  84. "query": ExtResource("7_h4cls")
  85. }
  86.  
  87. [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")]
  88. script = ExtResource("2_3an4s")
  89. ViewRay = NodePath("ViewRay")
  90. NavigationAgent2D = NodePath("NavigationPoint/NavigationAgent2D")
  91. NavigationPoint = NodePath("NavigationPoint")
  92. FirePoint = NodePath("FirePoint")
  93. HurtArea = NodePath("HurtArea")
  94. HurtCollision = NodePath("HurtArea/HurtCollision")
  95. InteractiveArea = NodePath("InteractiveArea")
  96. InteractiveCollision = NodePath("InteractiveArea/InteractiveCollision")
  97. TipRoot = NodePath("TipRoot")
  98. TipSprite = NodePath("TipRoot/TipSprite")
  99. AnimationPlayer = NodePath("AnimationPlayer")
  100. MountPoint = NodePath("MountPoint")
  101. BackMountPoint = NodePath("BackMountPoint")
  102. MeleeAttackArea = NodePath("MountPoint/MeleeAttackArea")
  103. MeleeAttackCollision = NodePath("MountPoint/MeleeAttackArea/MeleeAttackCollision")
  104. ShadowSprite = NodePath("ShadowSprite")
  105. AnimatedSprite = NodePath("AnimatedSprite")
  106. Collision = NodePath("Collision")
  107.  
  108. [node name="ShadowSprite" parent="." index="0"]
  109. material = SubResource("ShaderMaterial_y5nia")
  110.  
  111. [node name="AnimatedSprite" parent="." index="2"]
  112. material = SubResource("ShaderMaterial_4qvs8")
  113. sprite_frames = ExtResource("3_hbsqi")
  114. offset = Vector2(0, -9)
  115.  
  116. [node name="HurtCollision" parent="HurtArea" index="0"]
  117. position = Vector2(0, -7)
  118.  
  119. [node name="MountPoint" parent="." index="7"]
  120. position = Vector2(4, -9)
  121.  
  122. [node name="FirePoint" parent="." index="8"]
  123. position = Vector2(7, -6)
  124.  
  125. [node name="AnimationPlayer" parent="." index="11"]
  126. libraries = {
  127. "": SubResource("AnimationLibrary_3ge8m")
  128. }