Skip to content

Conversation

@krmbn0576
Copy link
Collaborator

stop gameloop when retry button is displayed, and resume when it's pushed.

this._stopped = false;
this.requestUpdate();
if (!Utils.isMobileSafari()) {
this._currentTime = this._getTimeInMsWithoutMobileSafari();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd better clear _accumulator too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed!

@ghost
Copy link

ghost commented May 16, 2017

🍣

@krmbn0576 krmbn0576 merged commit 9524d3b into master May 16, 2017
@krmbn0576 krmbn0576 deleted the add_pause branch May 16, 2017 13:19
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

Successfully merging this pull request may close these issues.

2 participants