Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这其中有一个隐藏bug,小球在一定数量的积累下,标识球会消失了 #2

Open
ghost opened this issue Apr 26, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 26, 2019

在小球数多的情况下:

groundSprite.js 先发生了碰撞 this.game.isFirstBoll = true;

             this.schedule(function(){
                 this.indexBoll.enabled = false;
                 this.isFirstBoll = false;
             }.bind(this), 0.08 * (this.allBolls - 1), 1); // 延时比碰撞晚

临时办法:发生碰撞时 unschedule 这个函数就可以了。

@windstormeye
Copy link
Owner

非常感谢!可以提个 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant