feat: 更新复刻英雄配置与任务提示动画
``` 本次提交包含以下变更: 1. 更新英雄配置规则,将触发技能解锁等级从 lv6 调整为 lv4,大招成长档从 lv9/lv16 调整为 lv8/lv16,品质统一设为 1,英雄编号范围扩展至 5001~5018 2. 重写技能配置说明文档,细化各字段含义与数值口径,新增增益/减益类型说明 3. 修改任务提示动画,从左右位移飞入改为原地缩放弹入,优化动画时长与效果 4. 新增全英雄数值评审文档,包含属性模板、成长节奏、阵容推荐等内容 (注:因要求使用中文撰写 commit message,故按指定语言生成)
This commit is contained in:
@@ -411,22 +411,20 @@ export class MissionComp extends CCComp {
|
||||
|
||||
Tween.stopAllByTarget(this.tooltip);
|
||||
|
||||
// 动感动画设计:右侧进入 -> 屏幕中央(带有轻微的弹跳和滑动) -> 左侧飞出
|
||||
// 假设屏幕宽度适配下,1200是一个足够的屏幕外距离,适配横竖屏
|
||||
const startPos = v3(1200, this.tooltip.position.y, this.tooltip.position.z);
|
||||
const centerPos = v3(0, this.tooltip.position.y, this.tooltip.position.z);
|
||||
const driftPos = v3(-50, this.tooltip.position.y, this.tooltip.position.z); // 在中央时的缓慢漂移
|
||||
const endPos = v3(-1200, this.tooltip.position.y, this.tooltip.position.z);
|
||||
|
||||
this.tooltip.setPosition(startPos);
|
||||
// 动感动画设计:原地缩放弹入(0 -> 1,带轻微回弹)-> 短暂停留 -> 收缩消失
|
||||
// 相比位移飞入飞出,缩放动画更轻快,避免横幅长时间占用屏幕
|
||||
this.tooltip.setPosition(0, this.tooltip.position.y, this.tooltip.position.z);
|
||||
this.tooltip.setScale(0, 0, 1);
|
||||
|
||||
tween(this.tooltip)
|
||||
// 1. 从右侧快速飞入并带回弹效果 (0.5秒)
|
||||
.to(0.5, { position: centerPos }, { easing: "backOut" })
|
||||
// 2. 在屏幕中央缓慢向左漂移,增强动感停留 (1.0秒)
|
||||
.to(1.0, { position: driftPos }, { easing: "sineInOut" })
|
||||
// 3. 快速向左飞出并消失 (0.4秒)
|
||||
.to(0.4, { position: endPos }, { easing: "backIn" })
|
||||
// 1. 缩放从 0 快速弹到 1.1,制造轻微"冲出来"的动感 (0.18秒)
|
||||
.to(0.18, { scale: v3(1.1, 1.1, 1) }, { easing: "sineOut" })
|
||||
// 2. 回弹收缩到标准大小 1.0 (0.1秒)
|
||||
.to(0.1, { scale: v3(1, 1, 1) }, { easing: "sineIn" })
|
||||
// 3. 停留展示 (0.5秒)
|
||||
.delay(0.5)
|
||||
// 4. 向上轻弹并收缩消失,带背入加速感 (0.2秒)
|
||||
.to(0.2, { scale: v3(0, 0, 1) }, { easing: "backIn" })
|
||||
.call(() => {
|
||||
this.tooltip.active = false;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user