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

弹幕源码添加

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