fix(英雄): 调整死亡效果的位置、缩放和动画
- 将死亡特效的Y轴位置从0调整为20,缩放从0.4增大到0.7,使其更明显 - 缩短英雄和怪物的死亡时间,从2秒/0.5秒调整为0.1秒 - 修正死亡特效的生成逻辑,现在正确使用父节点和世界坐标 - 更新死亡动画的帧率和时长,并添加完整的精灵帧序列
This commit is contained in:
@@ -7,11 +7,11 @@
|
|||||||
"embeddedPlayerGroups": []
|
"embeddedPlayerGroups": []
|
||||||
},
|
},
|
||||||
"_native": "",
|
"_native": "",
|
||||||
"sample": 60,
|
"sample": 45,
|
||||||
"speed": 1,
|
"speed": 1,
|
||||||
"wrapMode": 1,
|
"wrapMode": 1,
|
||||||
"enableTrsBlending": false,
|
"enableTrsBlending": false,
|
||||||
"_duration": 0,
|
"_duration": 0.37777777777777777,
|
||||||
"_hash": 500763545,
|
"_hash": 500763545,
|
||||||
"_tracks": [
|
"_tracks": [
|
||||||
{
|
{
|
||||||
@@ -67,8 +67,95 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.ObjectCurve",
|
"__type__": "cc.ObjectCurve",
|
||||||
"_times": [],
|
"_times": [
|
||||||
"_values": []
|
0,
|
||||||
|
0.022222222222222223,
|
||||||
|
0.044444444444444446,
|
||||||
|
0.06666666666666667,
|
||||||
|
0.08888888888888889,
|
||||||
|
0.1111111111111111,
|
||||||
|
0.13333333333333333,
|
||||||
|
0.15555555555555556,
|
||||||
|
0.17777777777777778,
|
||||||
|
0.2,
|
||||||
|
0.2222222222222222,
|
||||||
|
0.24444444444444444,
|
||||||
|
0.26666666666666666,
|
||||||
|
0.28888888888888886,
|
||||||
|
0.3111111111111111,
|
||||||
|
0.3333333333333333,
|
||||||
|
0.35555555555555557
|
||||||
|
],
|
||||||
|
"_values": [
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@c0540",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@2c693",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@dd835",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@3dbff",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@bc740",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@1be63",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@785a5",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@ab085",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@df057",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@07942",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@3d5cc",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@1e82b",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@b780c",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@bb712",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@8dd96",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@53ccb",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@bef27",
|
||||||
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.AnimationClipAdditiveSettings",
|
"__type__": "cc.AnimationClipAdditiveSettings",
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 20,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_lrot": {
|
"_lrot": {
|
||||||
@@ -102,8 +102,8 @@
|
|||||||
},
|
},
|
||||||
"_lscale": {
|
"_lscale": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0.4,
|
"x": 0.7,
|
||||||
"y": 0.4,
|
"y": 0.7,
|
||||||
"z": 1
|
"z": 1
|
||||||
},
|
},
|
||||||
"_mobility": 0,
|
"_mobility": 0,
|
||||||
|
|||||||
@@ -31,9 +31,9 @@ export class HeroViewComp extends CCComp {
|
|||||||
status:String = "idle"
|
status:String = "idle"
|
||||||
scale: number = 1; // 显示方向
|
scale: number = 1; // 显示方向
|
||||||
box_group:number = BoxSet.HERO; // 碰撞组
|
box_group:number = BoxSet.HERO; // 碰撞组
|
||||||
realDeadTime:number=2
|
realDeadTime:number=0.1
|
||||||
deadCD:number=0
|
deadCD:number=0
|
||||||
monDeadTime:number=0.5
|
monDeadTime:number=0.1
|
||||||
// 血条显示相关
|
// 血条显示相关
|
||||||
lastBarUpdateTime:number = 0; // 最后一次血条/蓝条/护盾更新时间
|
lastBarUpdateTime:number = 0; // 最后一次血条/蓝条/护盾更新时间
|
||||||
// ==================== UI 节点引用 ====================
|
// ==================== UI 节点引用 ====================
|
||||||
@@ -317,7 +317,7 @@ export class HeroViewComp extends CCComp {
|
|||||||
this.spawnAnimEndFx("game/skill/buff/heathed", this.node, undefined);
|
this.spawnAnimEndFx("game/skill/buff/heathed", this.node, undefined);
|
||||||
}
|
}
|
||||||
private deaded(){
|
private deaded(){
|
||||||
this.spawnAnimEndFx("game/skill/end/atked", this.node, undefined);
|
this.spawnAnimEndFx("game/skill/end/dead", this.node.parent, this.node.position);
|
||||||
}
|
}
|
||||||
private createFxNode(path: string, parent: Node | null, worldPos?: Vec3): Node | null {
|
private createFxNode(path: string, parent: Node | null, worldPos?: Vec3): Node | null {
|
||||||
if (!parent || !parent.isValid) return null;
|
if (!parent || !parent.isValid) return null;
|
||||||
@@ -327,7 +327,7 @@ export class HeroViewComp extends CCComp {
|
|||||||
if (!node || !node.isValid) return null;
|
if (!node || !node.isValid) return null;
|
||||||
node.parent = parent;
|
node.parent = parent;
|
||||||
if (worldPos) {
|
if (worldPos) {
|
||||||
node.setWorldPosition(worldPos);
|
node.setPosition(worldPos);
|
||||||
}
|
}
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user