Commit 4c53e797 authored by Tt's avatar Tt

fix(play): 调整动画元素的偏移量和移动距离

parent 86fe499e
......@@ -238,7 +238,7 @@ export class PlayComponent implements OnInit, OnDestroy {
const countdownElements = ['dao_ji_shi_3', 'dao_ji_shi_2', 'dao_ji_shi_1'];
// 根据type计算x坐标的偏移量
const xOffset = type === 'left' ? 140 : -140;
const xOffset = type === 'left' ? 140 : -190;
countdownElements.forEach(elementName => {
// 检查元素是否已存在
......@@ -444,7 +444,7 @@ export class PlayComponent implements OnInit, OnDestroy {
// this.show321('left');
// 注释掉直接显示VS动画的代码,因为现在由show321函数在倒计时结束后调用
this.showVsAni('left');
this.showVsAni('right');
// this.initFishGame();
......@@ -1040,7 +1040,7 @@ export class PlayComponent implements OnInit, OnDestroy {
initialOffsetX: -400, // 红色面板初始X轴偏移量(屏幕外)
moveTime: 0.3, // 移动动画时间
scaleRatio: 1.5, // 放大比例
moveDistance: 40 // 移动距离
moveDistance: 210 // 移动距离
},
// 蓝色面板配置
lan: {
......@@ -1072,7 +1072,7 @@ export class PlayComponent implements OnInit, OnDestroy {
ju: {
scaleRatio: 1.5, // 放大比例
shrinkRatio: 0.8, // 缩小比例
moveDistance: 20, // 移动距离
moveDistance: 80, // 移动距离
animTime: 0.3 // 动画时间
},
// 灰猫头配置
......@@ -1194,17 +1194,17 @@ export class PlayComponent implements OnInit, OnDestroy {
moveItem(
hong_se_jian_bian_ref,
hong_se_jian_bian_ref.x - config.panel.hong.moveDistance * this.g_mapScale,
hong_se_jian_bian_ref.y + 95 * this.g_mapScale,
hong_se_jian_bian_ref.y + 92 * this.g_mapScale,
config.panel.hong.moveTime
);
}
setTimeout(() => {
this.show321();
this.show321(type);
}, 1000);
}, config.vs.v.moveTime * 1000 + 500);
}, config.common.vsAnimDelay);
}
/**
* 显示VS阴影动画效果
* 在VS动画运动后的位置创建两个VS图标,并执行放大5倍、透明度为0的动画
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment