Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / role / Enemy.tscn
@小李xl 小李xl on 6 Apr 2023 4 KB 调整模板房间
  1. [gd_scene load_steps=20 format=3 uid="uid://dbrig6dq441wo"]
  2.  
  3. [ext_resource type="PackedScene" uid="uid://b515ti0qinck8" 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_b4gmf"]
  20. atlas = ExtResource("3_tk1tp")
  21. region = Rect2(0, 0, 16, 24)
  22.  
  23. [sub_resource type="AtlasTexture" id="AtlasTexture_ps4o2"]
  24. atlas = ExtResource("3_tk1tp")
  25. region = Rect2(0, 24, 16, 24)
  26.  
  27. [sub_resource type="AtlasTexture" id="AtlasTexture_00s75"]
  28. atlas = ExtResource("3_tk1tp")
  29. region = Rect2(16, 24, 16, 24)
  30.  
  31. [sub_resource type="AtlasTexture" id="AtlasTexture_ov7r3"]
  32. atlas = ExtResource("3_tk1tp")
  33. region = Rect2(32, 24, 16, 24)
  34.  
  35. [sub_resource type="AtlasTexture" id="AtlasTexture_7o5sg"]
  36. atlas = ExtResource("3_tk1tp")
  37. region = Rect2(48, 24, 16, 24)
  38.  
  39. [sub_resource type="AtlasTexture" id="AtlasTexture_3cf41"]
  40. atlas = ExtResource("3_tk1tp")
  41. region = Rect2(48, 48, 16, 24)
  42.  
  43. [sub_resource type="AtlasTexture" id="AtlasTexture_ore1n"]
  44. atlas = ExtResource("3_tk1tp")
  45. region = Rect2(32, 48, 16, 24)
  46.  
  47. [sub_resource type="AtlasTexture" id="AtlasTexture_0yx8e"]
  48. atlas = ExtResource("3_tk1tp")
  49. region = Rect2(16, 48, 16, 24)
  50.  
  51. [sub_resource type="AtlasTexture" id="AtlasTexture_v2had"]
  52. atlas = ExtResource("3_tk1tp")
  53. region = Rect2(0, 48, 16, 24)
  54.  
  55. [sub_resource type="AtlasTexture" id="AtlasTexture_myxvk"]
  56. atlas = ExtResource("3_tk1tp")
  57. region = Rect2(0, 48, 16, 24)
  58.  
  59. [sub_resource type="AtlasTexture" id="AtlasTexture_t5tkd"]
  60. atlas = ExtResource("3_tk1tp")
  61. region = Rect2(16, 48, 16, 24)
  62.  
  63. [sub_resource type="AtlasTexture" id="AtlasTexture_ia68q"]
  64. atlas = ExtResource("3_tk1tp")
  65. region = Rect2(32, 48, 16, 24)
  66.  
  67. [sub_resource type="AtlasTexture" id="AtlasTexture_ueb6d"]
  68. atlas = ExtResource("3_tk1tp")
  69. region = Rect2(48, 48, 16, 24)
  70.  
  71. [sub_resource type="SpriteFrames" id="SpriteFrames_m7t3e"]
  72. animations = [{
  73. "frames": [{
  74. "duration": 1.0,
  75. "texture": SubResource("AtlasTexture_b4gmf")
  76. }],
  77. "loop": true,
  78. "name": &"default",
  79. "speed": 5.0
  80. }, {
  81. "frames": [{
  82. "duration": 1.0,
  83. "texture": SubResource("AtlasTexture_ps4o2")
  84. }, {
  85. "duration": 1.0,
  86. "texture": SubResource("AtlasTexture_00s75")
  87. }, {
  88. "duration": 1.0,
  89. "texture": SubResource("AtlasTexture_ov7r3")
  90. }, {
  91. "duration": 1.0,
  92. "texture": SubResource("AtlasTexture_7o5sg")
  93. }],
  94. "loop": true,
  95. "name": &"idle",
  96. "speed": 7.0
  97. }, {
  98. "frames": [{
  99. "duration": 1.0,
  100. "texture": SubResource("AtlasTexture_3cf41")
  101. }, {
  102. "duration": 1.0,
  103. "texture": SubResource("AtlasTexture_ore1n")
  104. }, {
  105. "duration": 1.0,
  106. "texture": SubResource("AtlasTexture_0yx8e")
  107. }, {
  108. "duration": 1.0,
  109. "texture": SubResource("AtlasTexture_v2had")
  110. }],
  111. "loop": true,
  112. "name": &"reverseRun",
  113. "speed": 10.0
  114. }, {
  115. "frames": [{
  116. "duration": 1.0,
  117. "texture": SubResource("AtlasTexture_myxvk")
  118. }, {
  119. "duration": 1.0,
  120. "texture": SubResource("AtlasTexture_t5tkd")
  121. }, {
  122. "duration": 1.0,
  123. "texture": SubResource("AtlasTexture_ia68q")
  124. }, {
  125. "duration": 1.0,
  126. "texture": SubResource("AtlasTexture_ueb6d")
  127. }],
  128. "loop": true,
  129. "name": &"run",
  130. "speed": 10.0
  131. }]
  132.  
  133. [node name="Enemy" instance=ExtResource("1_qkqsa")]
  134. collision_layer = 16
  135. collision_mask = 25
  136.  
  137. [node name="ShadowSprite" parent="." index="0"]
  138. material = SubResource("ShaderMaterial_8vxx6")
  139.  
  140. [node name="AnimatedSprite" parent="." index="2"]
  141. material = SubResource("ShaderMaterial_k8mt5")
  142. sprite_frames = SubResource("SpriteFrames_m7t3e")
  143.  
  144. [node name="HurtArea" parent="." index="4"]
  145. visible = false
  146.  
  147. [node name="ViewRay" type="RayCast2D" parent="." index="6"]
  148. position = Vector2(0, -8)
  149. enabled = false
  150.  
  151. [node name="NavigationPoint" type="Marker2D" parent="." index="8"]
  152. position = Vector2(0, -5)
  153.  
  154. [node name="NavigationAgent2D" type="NavigationAgent2D" parent="NavigationPoint" index="0"]
  155. path_desired_distance = 3.0
  156. target_desired_distance = 3.0
  157. radius = 20.0