Commit d6c04d0d authored by 张媛's avatar 张媛

弹幕源码添加

parent 68b83005
...@@ -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() {}
......
...@@ -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();
}) })
......
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