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

How can i restart the game without having to refresh the page? #21

Open
pokhrelashok opened this issue Sep 20, 2021 · 0 comments
Open

Comments

@pokhrelashok
Copy link

game.setVariable(constant.successCount, 0) game.setVariable(constant.failedCount, 0) game.setVariable(constant.gameScore, 0) game.setVariable(constant.hardMode, false) game.setVariable(constant.gameStartNow, true)

I can use these variables to reset the values but how do i go about starting the game from start without creating a new instance of the game?

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