Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SSIWB2504
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
SSIWB2504
Commits
4c53e797
Commit
4c53e797
authored
Aug 09, 2025
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(play): 调整动画元素的偏移量和移动距离
parent
86fe499e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
play.component.ts
src/app/play/play.component.ts
+7
-7
No files found.
src/app/play/play.component.ts
View file @
4c53e797
...
...
@@ -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
:
-
1
4
0
;
const
xOffset
=
type
===
'
left
'
?
140
:
-
1
9
0
;
countdownElements
.
forEach
(
elementName
=>
{
// 检查元素是否已存在
...
...
@@ -444,7 +444,7 @@ export class PlayComponent implements OnInit, OnDestroy {
// this.show321('left');
// 注释掉直接显示VS动画的代码,因为现在由show321函数在倒计时结束后调用
this
.
showVsAni
(
'
lef
t
'
);
this
.
showVsAni
(
'
righ
t
'
);
// this.initFishGame();
...
...
@@ -1040,7 +1040,7 @@ export class PlayComponent implements OnInit, OnDestroy {
initialOffsetX
:
-
400
,
// 红色面板初始X轴偏移量(屏幕外)
moveTime
:
0.3
,
// 移动动画时间
scaleRatio
:
1.5
,
// 放大比例
moveDistance
:
4
0
// 移动距离
moveDistance
:
21
0
// 移动距离
},
// 蓝色面板配置
lan
:
{
...
...
@@ -1072,7 +1072,7 @@ export class PlayComponent implements OnInit, OnDestroy {
ju
:
{
scaleRatio
:
1.5
,
// 放大比例
shrinkRatio
:
0.8
,
// 缩小比例
moveDistance
:
2
0
,
// 移动距离
moveDistance
:
8
0
,
// 移动距离
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
+
9
5
*
this
.
g_mapScale
,
hong_se_jian_bian_ref
.
y
+
9
2
*
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的动画
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment