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

Game doesn't run without tab focus #11

Open
daanheskes opened this issue Nov 4, 2019 · 2 comments
Open

Game doesn't run without tab focus #11

daanheskes opened this issue Nov 4, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@daanheskes
Copy link
Owner

If there is no focus on the tab, the game quits running. This is due to setInterval() throttling done by browsers.

Using WebWorkers should be the fix to this.

@daanheskes daanheskes added the bug Something isn't working label Nov 4, 2019
@Shoopdafloop
Copy link

Hey, I'm not sure if this is why my game won't run but if I try to open the webpage its just blank and I have no idea why.

@daanheskes
Copy link
Owner Author

daanheskes commented Nov 15, 2019

Hey, I'm not sure if this is why my game won't run but if I try to open the webpage its just blank and I have no idea why.

What's causing it is something with the saveGame() and loadGame() functions. And more specifically with something that has to do with the currently selected attack style.

Please post the error in your Dveloper Tools console to #13 if you want to.

Clearing your localStorage through the Developer Tools and re-opening the game should fix your issue for now.

This issue is not about the same thing though, so I opened a new Issue #13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants