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

Go back to menu when screen turned off #494

Open
vertigo220 opened this issue Feb 7, 2024 · 2 comments
Open

Go back to menu when screen turned off #494

vertigo220 opened this issue Feb 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@vertigo220
Copy link

Is your feature request related to a problem? Please describe.
Was in the middle of a game and turned the screen off to go do something, when I came back to it later I found I'd lost. I'm guessing either the screen came back on and I tapped a mine or maybe when I messed with my phone later, when I first unlocked it maybe I accidentally tapped a mine.

Describe the solution you'd like
If the game automatically paused (went back to menu) when the screen turns off (not when the phone locks, as it doesn't always lock when turning the screen off), it would prevent this.

Describe alternatives you've considered
N/A

Additional context
N/A

@vertigo220 vertigo220 added the enhancement New feature or request label Feb 7, 2024
@lucasnlm
Copy link
Owner

I think I can do something to avoid this problem. The screen can't screen off (or shouldn't) because the app keeps the screen on when in game. But if you turn your screen off during the game, I can get it back to menu if it takes more than X seconds to return to the game.
What do you think?

@vertigo220
Copy link
Author

That would probably work, though I'm not sure it's necessary to wait at all. If the screen turns off, it should just immediately go to the menu, or pause the game and block the screen, so it has to be unpaused to unblock it and continue playing.

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

No branches or pull requests

2 participants