Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wangjin-front-end
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
张媛
wangjin-front-end
Commits
d6c04d0d
Commit
d6c04d0d
authored
Jul 09, 2021
by
张媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
弹幕源码添加
parent
68b83005
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
goldCoinAni.ts
src/canvasCom/goldCoinCom/goldCoinAni.ts
+1
-1
goldCoinCom.tsx
src/canvasCom/goldCoinCom/goldCoinCom.tsx
+1
-1
No files found.
src/canvasCom/goldCoinCom/goldCoinAni.ts
View file @
d6c04d0d
...
@@ -43,7 +43,7 @@ export class GoldCoinAni extends FYGE.Container {
...
@@ -43,7 +43,7 @@ export class GoldCoinAni extends FYGE.Container {
this
.
goldNum
=
goldNum
;
this
.
goldNum
=
goldNum
;
this
.
callback
=
callback
;
this
.
callback
=
callback
;
this
.
coordNum
=
goldNum
>
coordNum
?
goldNum
:
coordNum
;
this
.
coordNum
=
goldNum
>
coordNum
?
goldNum
:
coordNum
;
this
.
time
=
Math
.
floor
(
time
/
this
.
coordNum
)
;
this
.
time
=
time
;
this
.
initUi
();
this
.
initUi
();
}
}
initUi
()
{}
initUi
()
{}
...
...
src/canvasCom/goldCoinCom/goldCoinCom.tsx
View file @
d6c04d0d
...
@@ -26,7 +26,7 @@ export const GoldCoinCom = (pros:TestProps)=>{
...
@@ -26,7 +26,7 @@ export const GoldCoinCom = (pros:TestProps)=>{
createStage
()
createStage
()
isExistStage
(()
=>
{
isExistStage
(()
=>
{
window
.
stage
.
removeAllChildren
();
window
.
stage
.
removeAllChildren
();
const
goldCoinAni
=
new
GoldCoinAni
(
pros
.
start
,
pros
.
end
,
pros
.
imgUrl
,
pros
.
callBack
,
pros
.
isMinus
,
pros
.
curvature
,
pros
.
goldNum
,
pros
.
coordNum
);
const
goldCoinAni
=
new
GoldCoinAni
(
pros
.
start
,
pros
.
end
,
pros
.
imgUrl
,
pros
.
callBack
,
pros
.
isMinus
,
pros
.
curvature
,
pros
.
goldNum
,
pros
.
time
,
pros
.
coordNum
);
window
.
stage
.
addChild
(
goldCoinAni
);
window
.
stage
.
addChild
(
goldCoinAni
);
goldCoinAni
.
triggerAni
();
goldCoinAni
.
triggerAni
();
})
})
...
...
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