Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / role / Enemy.tscn
  1. [gd_scene load_steps=19 format=3 uid="uid://dbrig6dq441wo"]
  2.  
  3. [ext_resource type="PackedScene" path="res://prefab/role/Role.tscn" id="1_qkqsa"]
  4. [ext_resource type="Shader" path="res://resource/materlal/Blend.gdshader" id="2_in1s7"]
  5. [ext_resource type="Texture2D" uid="uid://un6gylhe011n" path="res://resource/sprite/role/role8.png" id="3_tk1tp"]
  6.  
  7. [sub_resource type="ShaderMaterial" id="ShaderMaterial_8vxx6"]
  8. resource_local_to_scene = true
  9. shader = ExtResource("2_in1s7")
  10. shader_parameter/blend = Color(0, 0, 0, 0.470588)
  11. shader_parameter/schedule = 1
  12.  
  13. [sub_resource type="ShaderMaterial" id="ShaderMaterial_k8mt5"]
  14. resource_local_to_scene = true
  15. shader = ExtResource("2_in1s7")
  16. shader_parameter/blend = Color(1, 1, 1, 1)
  17. shader_parameter/schedule = 0
  18.  
  19. [sub_resource type="AtlasTexture" id="AtlasTexture_ps4o2"]
  20. atlas = ExtResource("3_tk1tp")
  21. region = Rect2(0, 24, 16, 24)
  22.  
  23. [sub_resource type="AtlasTexture" id="AtlasTexture_00s75"]
  24. atlas = ExtResource("3_tk1tp")
  25. region = Rect2(16, 24, 16, 24)
  26.  
  27. [sub_resource type="AtlasTexture" id="AtlasTexture_ov7r3"]
  28. atlas = ExtResource("3_tk1tp")
  29. region = Rect2(32, 24, 16, 24)
  30.  
  31. [sub_resource type="AtlasTexture" id="AtlasTexture_7o5sg"]
  32. atlas = ExtResource("3_tk1tp")
  33. region = Rect2(48, 24, 16, 24)
  34.  
  35. [sub_resource type="AtlasTexture" id="AtlasTexture_3cf41"]
  36. atlas = ExtResource("3_tk1tp")
  37. region = Rect2(48, 48, 16, 24)
  38.  
  39. [sub_resource type="AtlasTexture" id="AtlasTexture_ore1n"]
  40. atlas = ExtResource("3_tk1tp")
  41. region = Rect2(32, 48, 16, 24)
  42.  
  43. [sub_resource type="AtlasTexture" id="AtlasTexture_0yx8e"]
  44. atlas = ExtResource("3_tk1tp")
  45. region = Rect2(16, 48, 16, 24)
  46.  
  47. [sub_resource type="AtlasTexture" id="AtlasTexture_v2had"]
  48. atlas = ExtResource("3_tk1tp")
  49. region = Rect2(0, 48, 16, 24)
  50.  
  51. [sub_resource type="AtlasTexture" id="AtlasTexture_myxvk"]
  52. atlas = ExtResource("3_tk1tp")
  53. region = Rect2(0, 48, 16, 24)
  54.  
  55. [sub_resource type="AtlasTexture" id="AtlasTexture_t5tkd"]
  56. atlas = ExtResource("3_tk1tp")
  57. region = Rect2(16, 48, 16, 24)
  58.  
  59. [sub_resource type="AtlasTexture" id="AtlasTexture_ia68q"]
  60. atlas = ExtResource("3_tk1tp")
  61. region = Rect2(32, 48, 16, 24)
  62.  
  63. [sub_resource type="AtlasTexture" id="AtlasTexture_ueb6d"]
  64. atlas = ExtResource("3_tk1tp")
  65. region = Rect2(48, 48, 16, 24)
  66.  
  67. [sub_resource type="SpriteFrames" id="SpriteFrames_m7t3e"]
  68. animations = [{
  69. "frames": [{
  70. "duration": 1.0,
  71. "texture": SubResource("AtlasTexture_ps4o2")
  72. }, {
  73. "duration": 1.0,
  74. "texture": SubResource("AtlasTexture_00s75")
  75. }, {
  76. "duration": 1.0,
  77. "texture": SubResource("AtlasTexture_ov7r3")
  78. }, {
  79. "duration": 1.0,
  80. "texture": SubResource("AtlasTexture_7o5sg")
  81. }],
  82. "loop": true,
  83. "name": &"idle",
  84. "speed": 7.0
  85. }, {
  86. "frames": [{
  87. "duration": 1.0,
  88. "texture": SubResource("AtlasTexture_3cf41")
  89. }, {
  90. "duration": 1.0,
  91. "texture": SubResource("AtlasTexture_ore1n")
  92. }, {
  93. "duration": 1.0,
  94. "texture": SubResource("AtlasTexture_0yx8e")
  95. }, {
  96. "duration": 1.0,
  97. "texture": SubResource("AtlasTexture_v2had")
  98. }],
  99. "loop": true,
  100. "name": &"reverseRun",
  101. "speed": 10.0
  102. }, {
  103. "frames": [{
  104. "duration": 1.0,
  105. "texture": SubResource("AtlasTexture_myxvk")
  106. }, {
  107. "duration": 1.0,
  108. "texture": SubResource("AtlasTexture_t5tkd")
  109. }, {
  110. "duration": 1.0,
  111. "texture": SubResource("AtlasTexture_ia68q")
  112. }, {
  113. "duration": 1.0,
  114. "texture": SubResource("AtlasTexture_ueb6d")
  115. }],
  116. "loop": true,
  117. "name": &"run",
  118. "speed": 10.0
  119. }]
  120.  
  121. [node name="Enemy" instance=ExtResource("1_qkqsa")]
  122. collision_layer = 16
  123. collision_mask = 25
  124.  
  125. [node name="ShadowSprite" parent="." index="0"]
  126. material = SubResource("ShaderMaterial_8vxx6")
  127.  
  128. [node name="AnimatedSprite" parent="." index="2"]
  129. material = SubResource("ShaderMaterial_k8mt5")
  130. sprite_frames = SubResource("SpriteFrames_m7t3e")
  131. animation = &"idle"
  132.  
  133. [node name="HurtArea" parent="." index="4"]
  134. visible = false
  135.  
  136. [node name="ViewRay" type="RayCast2D" parent="." index="6"]
  137. position = Vector2(0, -8)
  138. enabled = false
  139.  
  140. [node name="NavigationPoint" type="Marker2D" parent="." index="8"]
  141. position = Vector2(0, -5)
  142.  
  143. [node name="NavigationAgent2D" type="NavigationAgent2D" parent="NavigationPoint" index="0"]
  144. path_desired_distance = 3.0
  145. target_desired_distance = 3.0
  146. radius = 20.0