Commit ea23c04c authored by limingzhe's avatar limingzhe

fix: 闪屏调试

parent 3ff863a6
......@@ -743,6 +743,9 @@ export default class GameLogic {
}
snowing(time=5000) {
console.log(' in snowing 1')
const parent = this.g_cartoon.getCartoonElement("snow_container")
const downHeigth = parent.node.height / 2 + 50
console.log(downHeigth, this.g_systemOption.mapScaleMax)
......@@ -760,9 +763,15 @@ export default class GameLogic {
return node;
}
console.log(' in snowing 2')
const downTime = Math.ceil((cc.winSize.height / 100) * 1000) / 1000
console.log(downTime)
this.intervalID = setInterval(() => {
console.log(' in snowing 3')
let snow = getSnow( Math.ceil(Math.random()*4) )
// this.g_cartoon.tweenChange(snow, {y: -cc.winSize.height / 2}, downTime)
cc.tween(snow).to(downTime, {y: -cc.winSize.height / 2}).call(()=>snow.destroy()).start()
......
This diff is collapsed.
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