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

Implement a way of pausing the game #267

Open
TheRamenChef opened this issue May 12, 2019 · 2 comments
Open

Implement a way of pausing the game #267

TheRamenChef opened this issue May 12, 2019 · 2 comments
Labels
feature MAJOR This label is intended to distinguish major features from all the others.

Comments

@TheRamenChef
Copy link
Collaborator

No description provided.

@TheRamenChef TheRamenChef added feature MAJOR This label is intended to distinguish major features from all the others. labels May 12, 2019
@TheRamenChef TheRamenChef added this to the v0.5.0-beta milestone May 12, 2019
@steffen-wilke
Copy link
Contributor

steffen-wilke commented May 14, 2019

Have you tried using Game.loop().setTimeScale(0). This worked for us so far. Maybe it should be a bit more convenient to access though.

@TheRamenChef
Copy link
Collaborator Author

Ideally, I'd like to pause the Environment without pausing the entire update loop. I would also like to pause sounds.

steffen-wilke added a commit that referenced this issue Jun 30, 2019
This allows to exclude Updatable implementations from the update mechanism if they overwrite the default implementation of the isActive() method and define an appropriate condition (e.g. game is paused/freezed/...)

Issue #267
@steffen-wilke steffen-wilke removed this from the v0.5.0-beta milestone Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature MAJOR This label is intended to distinguish major features from all the others.
Projects
None yet
Development

No branches or pull requests

2 participants