Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / role / Enemy.tscn
@小李xl 小李xl on 3 Jun 2023 4 KB 测试读取excel表格
[gd_scene load_steps=20 format=3 uid="uid://dbrig6dq441wo"]

[ext_resource type="PackedScene" uid="uid://cyrcv2jdgr8cf" path="res://prefab/role/Role.tscn" id="1_p0w41"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="2_xrpvd"]
[ext_resource type="Texture2D" uid="uid://chd2vtesap5cf" path="res://resource/sprite/role/enemy0001/Enemy0001.png" id="3_b8g1d"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_8vxx6"]
resource_local_to_scene = true
shader = ExtResource("2_xrpvd")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1

[sub_resource type="ShaderMaterial" id="ShaderMaterial_k8mt5"]
resource_local_to_scene = true
shader = ExtResource("2_xrpvd")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0

[sub_resource type="AtlasTexture" id="AtlasTexture_0rmv6"]
atlas = ExtResource("3_b8g1d")
region = Rect2(0, 0, 16, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_3ira8"]
atlas = ExtResource("3_b8g1d")
region = Rect2(0, 24, 16, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_7fx5y"]
atlas = ExtResource("3_b8g1d")
region = Rect2(16, 24, 16, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_5wd43"]
atlas = ExtResource("3_b8g1d")
region = Rect2(32, 24, 16, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_kbrex"]
atlas = ExtResource("3_b8g1d")
region = Rect2(48, 24, 16, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_bhiip"]
atlas = ExtResource("3_b8g1d")
region = Rect2(0, 48, 16, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_41c1u"]
atlas = ExtResource("3_b8g1d")
region = Rect2(16, 48, 16, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_1o2v8"]
atlas = ExtResource("3_b8g1d")
region = Rect2(32, 48, 16, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_niadr"]
atlas = ExtResource("3_b8g1d")
region = Rect2(48, 48, 16, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_j73hc"]
atlas = ExtResource("3_b8g1d")
region = Rect2(48, 48, 16, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_3bgji"]
atlas = ExtResource("3_b8g1d")
region = Rect2(32, 48, 16, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_besw3"]
atlas = ExtResource("3_b8g1d")
region = Rect2(16, 48, 16, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_350uy"]
atlas = ExtResource("3_b8g1d")
region = Rect2(0, 48, 16, 24)

[sub_resource type="SpriteFrames" id="SpriteFrames_m7t3e"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_0rmv6")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_3ira8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7fx5y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5wd43")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kbrex")
}],
"loop": true,
"name": &"idle",
"speed": 7.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_bhiip")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_41c1u")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1o2v8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_niadr")
}],
"loop": true,
"name": &"reverseRun",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_j73hc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3bgji")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_besw3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_350uy")
}],
"loop": true,
"name": &"run",
"speed": 10.0
}]

[node name="Enemy" instance=ExtResource("1_p0w41")]
collision_layer = 16
collision_mask = 25

[node name="ShadowSprite" parent="." index="0"]
material = SubResource("ShaderMaterial_8vxx6")

[node name="AnimatedSprite" parent="." index="2"]
material = SubResource("ShaderMaterial_k8mt5")
sprite_frames = SubResource("SpriteFrames_m7t3e")
animation = &"run"

[node name="ViewRay" type="RayCast2D" parent="." index="6"]
position = Vector2(0, -8)
enabled = false

[node name="NavigationPoint" type="Marker2D" parent="." index="8"]
position = Vector2(0, -5)

[node name="NavigationAgent2D" type="NavigationAgent2D" parent="NavigationPoint" index="0"]
path_desired_distance = 3.0
target_desired_distance = 3.0
radius = 20.0