Commit 1b723e5b authored by 张媛's avatar 张媛

弹幕源码添加

parent ea0f85b1
......@@ -79,7 +79,7 @@ export class GoldCoinAni extends FYGE.Container {
isMinus = false,
curvature = 0.8,
goldNum = 10,
time = 500,
time = 20,
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() {}
......
......@@ -31,7 +31,7 @@ export class GoldCoinAni extends FYGE.Container {
isMinus = false,
curvature = 0.8,
goldNum = 10,
time = 500,
time = 20,
coordNum = 50,
) {
super();
......
......@@ -17,7 +17,7 @@ interface TestProps {
curvature:number;
/**动效上面金币个数 */
goldNum:number;
/**动效完成时间 */
/**每一次金币移动的时间,ms*/
time:number;
/**路线上的坐标串个数 */
coordNum?:number
......
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