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
1b723e5b
Commit
1b723e5b
authored
Jul 09, 2021
by
张媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
弹幕源码添加
parent
ea0f85b1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
codeCom.tsx
src/canvasCom/goldCoinCom/codeCom.tsx
+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/codeCom.tsx
View file @
1b723e5b
...
...
@@ -79,7 +79,7 @@ export class GoldCoinAni extends FYGE.Container {
isMinus = false,
curvature = 0.8,
goldNum = 10,
time =
50
0,
time =
2
0,
coordNum = 50,
) {
super();
...
...
@@ -91,7 +91,7 @@ export class GoldCoinAni extends FYGE.Container {
this.goldNum = goldNum;
this.callback = callback;
this.coordNum = goldNum > coordNum? goldNum:coordNum;
this.time =
Math.floor( time / this.coordNum )
;
this.time =
time
;
this.initUi();
}
initUi() {}
...
...
src/canvasCom/goldCoinCom/goldCoinAni.ts
View file @
1b723e5b
...
...
@@ -31,7 +31,7 @@ export class GoldCoinAni extends FYGE.Container {
isMinus
=
false
,
curvature
=
0.8
,
goldNum
=
10
,
time
=
50
0
,
time
=
2
0
,
coordNum
=
50
,
)
{
super
();
...
...
src/canvasCom/goldCoinCom/goldCoinCom.tsx
View file @
1b723e5b
...
...
@@ -17,7 +17,7 @@ interface TestProps {
curvature
:
number
;
/**动效上面金币个数 */
goldNum
:
number
;
/**
动效完成时间
*/
/**
每一次金币移动的时间,ms
*/
time
:
number
;
/**路线上的坐标串个数 */
coordNum
?:
number
...
...
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