feat(hero): 添加新英雄资源并优化动画系统

- 新增英雄 ha2、ha3、hk2、hk3、hk4、hm3、hm4、hm5、mo5、mo6 的目录元数据
- 为新增英雄添加完整的动画剪辑(atk0、dead、idle、max0、max1、move)
- 移除旧版英雄的冗余动画文件(atk1、atk2、buff、stun)
- 更新现有英雄的动画配置,统一使用 atk0 作为攻击动画
- 优化 hm1 英雄的动画时长和采样率,提升流畅度
- 在 HeroViewComp 中增加英雄等级显示逻辑
- 重构 HeroAnmComp,简化动画状态管理
This commit is contained in:
walkpan
2026-03-21 16:43:43 +08:00
parent 870819b9f1
commit f9e3fc9106
279 changed files with 78870 additions and 42526 deletions

View File

@@ -30,24 +30,24 @@
],
"_active": true,
"_components": [
{
"__id__": 35
},
{
"__id__": 37
},
{
"__id__": 39
},
{
"__id__": 41
},
{
"__id__": 43
},
{
"__id__": 45
},
{
"__id__": 47
},
{
"__id__": 49
},
{
"__id__": 51
}
],
"_prefab": {
"__id__": 53
"__id__": 45
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -111,7 +111,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -56.615,
"y": -41.572,
"z": 0
},
"_lrot": {
@@ -151,8 +151,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 259.2,
"height": 259.2
"width": 192,
"height": 192
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -195,10 +195,7 @@
"__prefab": {
"__id__": 8
},
"_customMaterial": {
"__uuid__": "2fcd55a9-38ca-45aa-9164-68e48aaf51ce",
"__expectedType__": "cc.Material"
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
@@ -209,7 +206,7 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "437557e6-b0c2-4171-913a-ae72d3057e79@33dd2",
"__uuid__": "9726c7d5-91b6-4111-9c53-05efd7810d4f@33dd2",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
@@ -225,7 +222,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": {
"__uuid__": "437557e6-b0c2-4171-913a-ae72d3057e79",
"__uuid__": "9726c7d5-91b6-4111-9c53-05efd7810d4f",
"__expectedType__": "cc.SpriteAtlas"
},
"_id": ""
@@ -253,46 +250,27 @@
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "2b4bbee1-70b3-4426-ab59-6508624602f6",
"__uuid__": "a3e9a552-e9f0-41fb-a694-72c923f64afb",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "64a2a3c0-1185-4845-a740-9a52ea601461",
"__uuid__": "5ec58338-c602-4cae-bd84-2b2079af1f6c",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "27dbf9be-fbe8-45bb-8bdb-031f00dc38a9",
"__uuid__": "7988a07a-a6fe-4d17-b53b-93ed6c1894c1",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "43a02b73-373b-4c39-adda-e635a4068f24",
"__uuid__": "bd49d214-e07e-4caa-820e-48ea9a61d00c",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "0e63ed29-0a1e-4392-892f-ef4072c5b412",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "6116b73c-2c10-4e11-abdb-fb0925e6b48a",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "02ded580-d6e9-4a29-8cf0-dfbdf6563013",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "bdb22484-acec-4ea7-88a7-2222ed101b9d",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "4653a64d-dfc0-4861-bb45-9e3f5a11c1d5",
"__uuid__": "d5e2fdf7-fa71-43bd-95cc-9444058c5532",
"__expectedType__": "cc.AnimationClip"
}
],
"_defaultClip": {
"__uuid__": "0e63ed29-0a1e-4392-892f-ef4072c5b412",
"__expectedType__": "cc.AnimationClip"
},
"_defaultClip": null,
"_id": ""
},
{
@@ -532,195 +510,31 @@
"prefabRootNode": {
"__id__": 1
},
"mountedChildren": [
{
"__id__": 29
}
],
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 37
"__id__": 29
},
{
"__id__": 39
},
{
"__id__": 40
},
{
"__id__": 41
},
{
"__id__": 42
}
],
"removedComponents": []
},
{
"__type__": "cc.MountedChildrenInfo",
"targetInfo": {
"__id__": 30
},
"nodes": [
{
"__id__": 31
}
]
},
{
"__type__": "cc.TargetInfo",
"localID": [
"5fqU0L3/FOhKaco5UkHuWT"
]
},
{
"__type__": "cc.Node",
"_name": "ItemIcon_Skull_Boss_Red",
"_objFlags": 0,
"__editorExtras__": {
"mountedRoot": {
"__id__": 26
}
},
"_parent": {
"__id__": 26
},
"_children": [],
"_active": true,
"_components": [
},
{
"__id__": 32
},
{
"__id__": 33
},
{
"__id__": 34
}
],
"_prefab": {
"__id__": 36
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 5.735,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.3,
"y": 0.3,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 31
},
"_enabled": true,
"__prefab": {
"__id__": 33
},
"_contentSize": {
"__type__": "cc.Size",
"width": 126,
"height": 98
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "0cUIDHRMpO+I/pJNcH8snV"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 31
},
"_enabled": true,
"__prefab": {
"__id__": 35
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@c31a4",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4",
"__expectedType__": "cc.SpriteAtlas"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "30AqRrtoFFO7TtXORONOsR"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "8b9AqR/NNJ34v2wVDvcXCR",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 38
"__id__": 30
},
"propertyPath": [
"_name"
@@ -736,7 +550,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 38
"__id__": 30
},
"propertyPath": [
"_lpos"
@@ -744,14 +558,14 @@
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 204.845,
"y": 146.597,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 38
"__id__": 30
},
"propertyPath": [
"_lrot"
@@ -767,7 +581,7 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 38
"__id__": 30
},
"propertyPath": [
"_euler"
@@ -782,15 +596,15 @@
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 38
"__id__": 30
},
"propertyPath": [
"_lscale"
],
"value": {
"__type__": "cc.Vec3",
"x": 1.3,
"y": 1.3,
"x": 1,
"y": 1,
"z": 1
}
},
@@ -804,7 +618,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 44
"__id__": 36
},
"_contentSize": {
"__type__": "cc.Size",
@@ -832,7 +646,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 46
"__id__": 38
},
"anm": {
"__id__": 5
@@ -853,7 +667,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 48
"__id__": 40
},
"debugMode": false,
"_id": ""
@@ -872,7 +686,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 50
"__id__": 42
},
"enabledContactListener": true,
"bullet": false,
@@ -906,7 +720,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 52
"__id__": 44
},
"tag": 0,
"_group": 4,