发现玩家并通知其他敌人做成一个单独状态, 开发中
1 parent 713e9ad commit 1e8ecbce5a41e99f821f2da2f482c63f999219b9
@小李xl 小李xl authored on 17 Nov 2023
Showing 15 changed files
View
77
DungeonShooting_Godot/prefab/role/Enemy0001.tscn
 
[sub_resource type="Animation" id="Animation_nb4pe"]
resource_name = "astonished"
length = 0.6
step = 0.05
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TipSprite:visible")
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("5_0p4q8")]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("AnimatedSprite:scale")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.05, 0.15, 0.25, 0.35, 0.45),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(1, 1), Vector2(0.8, 0.8), Vector2(1.2, 1.2), Vector2(0.9, 0.9), Vector2(1.1, 1.1), Vector2(1, 1)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("TipSprite:modulate")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0, 0.1, 0.5, 0.6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("TipSprite:position")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0, 0.2, 0.45, 0.6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, -22), Vector2(0, -28), Vector2(0, -28), Vector2(0, -35)]
}
 
[sub_resource type="Animation" id="Animation_0l5k0"]
length = 0.001
tracks/0/type = "value"
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("5_0p4q8")]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("AnimatedSprite:scale")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("TipSprite:modulate")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 0)]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("TipSprite:position")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, -22)]
}
 
[sub_resource type="Animation" id="Animation_5mflw"]
resource_name = "notify"
material = SubResource("ShaderMaterial_2kup1")
sprite_frames = ExtResource("4_qv8w5")
 
[node name="TipSprite" parent="." index="9"]
position = Vector2(0, -28)
modulate = Color(1, 1, 1, 0)
position = Vector2(0, -22)
 
[node name="AnimationPlayer" parent="." index="10"]
libraries = {
"": SubResource("AnimationLibrary_ur1ug")
View
2
■■■
DungeonShooting_Godot/prefab/role/template/AdvancedEnemyTemplate.tscn
material = SubResource("ShaderMaterial_8vxx6")
 
[node name="AnimatedSprite" parent="." index="2"]
material = SubResource("ShaderMaterial_k8mt5")
position = Vector2(0, 0)
offset = Vector2(0, -12)
 
[node name="ViewRay" type="RayCast2D" parent="." index="6"]
position = Vector2(0, -8)
enabled = false
View
2
■■■
DungeonShooting_Godot/prefab/role/template/AdvancedRoleTemplate.tscn
position = Vector2(0, -12)
 
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_yif6x")
position = Vector2(0, -12)
offset = Vector2(0, -12)
 
[node name="Collision" type="CollisionShape2D" parent="."]
position = Vector2(0, -4)
shape = SubResource("CircleShape2D_5pj80")
View
2
■■■
DungeonShooting_Godot/prefab/role/template/RoleTemplate.tscn
material = SubResource("ShaderMaterial_v2kfw")
 
[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_yif6x")
position = Vector2(0, -12)
offset = Vector2(0, -12)
 
[node name="Collision" type="CollisionShape2D" parent="."]
position = Vector2(0, -4)
shape = SubResource("CircleShape2D_5pj80")
View
DungeonShooting_Godot/resource/sprite/role/common/Role_astonished.png 0 → 100644
View
35
DungeonShooting_Godot/resource/sprite/role/common/Role_astonished.png.import 0 → 100644
[remap]
 
importer="texture"
type="CompressedTexture2D"
uid="uid://b75k7hefqy3tm"
path="res://.godot/imported/Role_astonished.png-8166b8786411283003a535d1677d0104.ctex"
metadata={
"vram_texture": false
}
 
[deps]
 
source_file="res://resource/sprite/role/common/Role_astonished.png"
dest_files=["res://.godot/imported/Role_astonished.png-8166b8786411283003a535d1677d0104.ctex"]
 
[params]
 
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
View
DungeonShooting_Godot/resource/sprite/role/common/Role_notify.png 0 → 100644
View
35
DungeonShooting_Godot/resource/sprite/role/common/Role_notify.png.import 0 → 100644
[remap]
 
importer="texture"
type="CompressedTexture2D"
uid="uid://6jka6itu76x7"
path="res://.godot/imported/Role_notify.png-be3f9ba9bf6d85ab3633bbe6cbe960e3.ctex"
metadata={
"vram_texture": false
}
 
[deps]
 
source_file="res://resource/sprite/role/common/Role_notify.png"
dest_files=["res://.godot/imported/Role_notify.png-be3f9ba9bf6d85ab3633bbe6cbe960e3.ctex"]
 
[params]
 
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
View
DungeonShooting_Godot/src/framework/activity/ActivityObject.cs
View
DungeonShooting_Godot/src/framework/map/room/RoomInfo.cs
View
DungeonShooting_Godot/src/game/activity/role/enemy/AdvancedEnemy.cs
View
DungeonShooting_Godot/src/game/activity/role/enemy/advancedState/AiAttackState.cs
View
DungeonShooting_Godot/src/game/activity/role/enemy/advancedState/AiFollowUpState.cs
View
DungeonShooting_Godot/src/game/activity/role/enemy/advancedState/AiLeaveForState.cs
View
DungeonShooting_Godot/src/game/activity/role/enemy/advancedState/AiSurroundState.cs