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
8cd9f868
Commit
8cd9f868
authored
Aug 15, 2025
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(动画效果): 添加闪光旋转效果并移除鱼雨延迟
parent
7f337bd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
4 deletions
+27
-4
play.component.ts
src/app/play/play.component.ts
+27
-4
No files found.
src/app/play/play.component.ts
View file @
8cd9f868
...
@@ -858,10 +858,9 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -858,10 +858,9 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
updateCat
();
this
.
updateCat
();
this
.
startNextQuestion
();
this
.
startNextQuestion
();
// setTimeout(() => {
setTimeout
(()
=>
{
// this.showFishRain('center');
this
.
showFishRain
(
'
center
'
);
// }, 500);
},
500
);
}
}
nextBattle
(
playTime
)
{
nextBattle
(
playTime
)
{
...
@@ -1755,6 +1754,30 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -1755,6 +1754,30 @@ export class PlayComponent implements OnInit, OnDestroy {
// 渲染猫咪元素,确保在光束和鱼之间
// 渲染猫咪元素,确保在光束和鱼之间
this
.
render
(
catWave
.
ref
,
zIndexMap
.
cat
+
9.5
);
this
.
render
(
catWave
.
ref
,
zIndexMap
.
cat
+
9.5
);
// 创建闪光旋转效果
const
shanGuang
=
this
.
g_cartoon
.
createCartoonElement
(
'
shan_guang
'
,
'
MySprite
'
);
shanGuang
.
ref
.
init
(
this
.
g_cartoon
.
images
.
get
(
'
shan_guang
'
));
shanGuang
.
ref
.
scaleX
=
this
.
g_mapScale
;
shanGuang
.
ref
.
scaleY
=
this
.
g_mapScale
;
shanGuang
.
ref
.
x
=
fishX
;
shanGuang
.
ref
.
y
=
525
*
this
.
g_mapScale
;
this
.
render
(
shanGuang
.
ref
,
zIndexMap
.
cat
+
9.2
);
// 在猫咪动画后面
let
keepRotating
=
true
;
const
rotateShanGuang
=
()
=>
{
if
(
!
keepRotating
)
{
return
;
}
rotateItem
(
shanGuang
.
ref
,
360
,
3
,
()
=>
{
if
(
keepRotating
)
{
shanGuang
.
ref
.
rotation
=
0
;
const
timeoutId
=
setTimeout
(
rotateShanGuang
,
0
);
this
.
m_setTimeoutIDs
.
push
(
timeoutId
);
}
});
};
rotateShanGuang
();
// 创建猫咪帧动画函数
// 创建猫咪帧动画函数
const
playCatAnimation
=
()
=>
{
const
playCatAnimation
=
()
=>
{
if
(
currentCatFrame
<=
maxFrame
)
{
if
(
currentCatFrame
<=
maxFrame
)
{
...
...
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