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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

View File

@@ -1,134 +0,0 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "f29bbed3-ea23-4394-90a6-5bb2b21c61db",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "f29bbed3-ea23-4394-90a6-5bb2b21c61db@6c48a",
"displayName": "BonusWuqi",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "f29bbed3-ea23-4394-90a6-5bb2b21c61db",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "f29bbed3-ea23-4394-90a6-5bb2b21c61db@f9941",
"displayName": "BonusWuqi",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 11.5,
"offsetY": -8,
"trimX": 50,
"trimY": 80,
"width": 563,
"height": 992,
"rawWidth": 640,
"rawHeight": 1136,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-281.5,
-496,
0,
281.5,
-496,
0,
-281.5,
496,
0,
281.5,
496,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
50,
1056,
613,
1056,
50,
64,
613,
64
],
"nuv": [
0.078125,
0.056338028169014086,
0.9578125,
0.056338028169014086,
0.078125,
0.9295774647887324,
0.9578125,
0.9295774647887324
],
"minPos": [
-281.5,
-496,
0
],
"maxPos": [
281.5,
496,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "f29bbed3-ea23-4394-90a6-5bb2b21c61db@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "f29bbed3-ea23-4394-90a6-5bb2b21c61db@6c48a"
}
}