feat(player): 改进玩家动画系统,支持四方向动画

- 添加新的动画文件支持上下左右四个方向的站立和行走动画
- 重构PlayerDirection枚举,支持左上、左下、右上、右下四个象限
- 优化动画切换逻辑,增加动画候选机制和兜底策略
- 改进方向判断算法,基于移动增量精确计算朝向
- 移除BonusWuqi相关资源和节点引用
- 更新场景文件,添加新动画剪辑引用
This commit is contained in:
richarjiang
2025-10-16 09:18:22 +08:00
parent 0e803bc5f0
commit 3908bb6935
219 changed files with 14387 additions and 270 deletions

View File

@@ -52,7 +52,7 @@
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 244
"__id__": 241
},
"_id": "58132e64-0171-4c7f-89be-a2984ca7de6b"
},
@@ -113,20 +113,17 @@
{
"__id__": 52
},
{
"__id__": 230
},
{
"__id__": 63
},
{
"__id__": 233
"__id__": 230
},
{
"__id__": 235
"__id__": 232
},
{
"__id__": 239
"__id__": 236
},
{
"__id__": 56
@@ -135,13 +132,13 @@
"_active": true,
"_components": [
{
"__id__": 242
"__id__": 239
},
{
"__id__": 51
},
{
"__id__": 243
"__id__": 240
}
],
"_prefab": null,
@@ -553,10 +550,26 @@
"__uuid__": "12f98c9c-40ed-45d2-9d21-6efa4edf52ef",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "19bb80ce-1f29-4a1d-b36a-fdd888d6bf8f",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "bf7eff9d-f5ae-405b-891f-14c99ce74a55",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "1f7e2309-4e29-468e-8af8-8e3d006e26d5",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "495b4937-61a8-4250-8359-3bea4d1b459b",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "0a88ef1a-5736-434f-bcc7-04c986eae496",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "91bc629d-cd8a-46f7-ac0c-632d0e2e490f",
"__expectedType__": "cc.AnimationClip"
@@ -8206,115 +8219,6 @@
},
"_id": "8fSg2JDOJHeagIqakOhwiB"
},
{
"__type__": "cc.Node",
"_name": "BonusWuqi",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 231
},
{
"__id__": 232
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 11.74799999999999,
"y": -197.824,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.9999999999999999,
"y": 0.9999999999999999,
"z": 1.9029520000000002
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "48MV2w3MpOcoVUavsiuIDH"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 230
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 563,
"height": 992
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "53LpNLe5tIZ7RugGiaS8lV"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 230
},
"_enabled": true,
"__prefab": null,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "f29bbed3-ea23-4394-90a6-5bb2b21c61db@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "25m0zgmgJNBJjvJHAtSkq0"
},
{
"__type__": "cc.Node",
"_name": "Bgm",
@@ -8327,7 +8231,7 @@
"_active": true,
"_components": [
{
"__id__": 234
"__id__": 231
}
],
"_prefab": null,
@@ -8366,7 +8270,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 233
"__id__": 230
},
"_enabled": true,
"__prefab": null,
@@ -8391,13 +8295,13 @@
"_active": true,
"_components": [
{
"__id__": 236
"__id__": 233
},
{
"__id__": 237
"__id__": 234
},
{
"__id__": 238
"__id__": 235
}
],
"_prefab": null,
@@ -8436,7 +8340,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 235
"__id__": 232
},
"_enabled": true,
"__prefab": null,
@@ -8458,7 +8362,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 235
"__id__": 232
},
"_enabled": true,
"__prefab": null,
@@ -8481,7 +8385,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 235
"__id__": 232
},
"_enabled": true,
"__prefab": null,
@@ -8526,10 +8430,10 @@
"_active": false,
"_components": [
{
"__id__": 240
"__id__": 237
},
{
"__id__": 241
"__id__": 238
}
],
"_prefab": null,
@@ -8568,7 +8472,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 239
"__id__": 236
},
"_enabled": true,
"__prefab": null,
@@ -8590,7 +8494,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 239
"__id__": 236
},
"_enabled": true,
"__prefab": null,
@@ -8678,28 +8582,28 @@
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 245
"__id__": 242
},
"shadows": {
"__id__": 246
"__id__": 243
},
"_skybox": {
"__id__": 247
"__id__": 244
},
"fog": {
"__id__": 248
"__id__": 245
},
"octree": {
"__id__": 249
"__id__": 246
},
"skin": {
"__id__": 250
"__id__": 247
},
"lightProbeInfo": {
"__id__": 251
"__id__": 248
},
"postSettings": {
"__id__": 252
"__id__": 249
},
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false