fix: 统一技能准备时间并调整贝塞尔曲线默认参数
将技能配置中所有ready值从0.1改为0.2,使技能准备时间保持一致 修改SMoveComp中贝塞尔曲线默认高度参数,并更新Skill.ts中的参数覆盖逻辑
This commit is contained in:
@@ -65,8 +65,8 @@ export class SMoveDataComp extends ecs.Comp {
|
||||
|
||||
/** 贝塞尔曲线控制点 */
|
||||
controlPoint: Vec3 = v3(0, 0, 0);
|
||||
bezierStartHeight: number = 25;
|
||||
bezierMidHeight: number = 140;
|
||||
bezierStartHeight: number = 30;
|
||||
bezierMidHeight: number = 200;
|
||||
bezierArc: number = 1;
|
||||
|
||||
/** 是否自动销毁(到达目标后) */
|
||||
@@ -77,8 +77,8 @@ export class SMoveDataComp extends ecs.Comp {
|
||||
this.targetPos.set(0, 0, 0);
|
||||
this.currentPos.set(0, 0, 0);
|
||||
this.controlPoint.set(0, 0, 0);
|
||||
this.bezierStartHeight = 18;
|
||||
this.bezierMidHeight = 140;
|
||||
this.bezierStartHeight = 30;
|
||||
this.bezierMidHeight = 200;
|
||||
this.bezierArc = 1;
|
||||
this.speed = 500;
|
||||
this.progress = 0;
|
||||
|
||||
@@ -180,9 +180,9 @@ export class Skill extends ecs.Entity {
|
||||
sMoveCom.scale = caster.node.scale.x < 0 ? -1 : 1;
|
||||
sMoveCom.runType = config.RType;
|
||||
sMoveCom.endType = config.EType;
|
||||
sMoveCom.bezierStartHeight = config.bezier_start_y ?? 18;
|
||||
sMoveCom.bezierMidHeight = config.bezier_mid_y ?? 140;
|
||||
sMoveCom.bezierArc = config.bezier_arc ?? 1;
|
||||
sMoveCom.bezierStartHeight = config.bezier_start_y ?? sMoveCom.bezierStartHeight;
|
||||
sMoveCom.bezierMidHeight = config.bezier_mid_y ?? sMoveCom.bezierMidHeight;
|
||||
sMoveCom.bezierArc = config.bezier_arc ?? sMoveCom.bezierArc;
|
||||
// 从SkillView获取移动参数,位置初始化由SMoveSystem统一处理
|
||||
sMoveCom.atk_x = SView.atk_x;
|
||||
sMoveCom.atk_y = SView.atk_y;
|
||||
|
||||
Reference in New Issue
Block a user