-
Notifications
You must be signed in to change notification settings - Fork 28
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 paused #1
Comments
updateScore, updateTimer and other consecutive functions in all the four initial games are executed only if gamePaused is == 0. |
added keyboard controls to catch the flow game
A documentation of your code would be useful to implement this. I'm half done but variables like gamephase and for what other conditional branches you are using the pauseState variable(and why?),if you can tell me that in brief, it would be very easy to fix this. |
This is the patch file . You can apply and check this. This implements the pause functionality using game.paused and separates pause and replay logic and has a better UI implementation of the same. But still the pauseState variable is there as I couldn't understand its use in other parts of the code well because of lack of documentation and use of too many global variables. Hope you can fix that further based on this patch or give me a briefing of its usage, it will take me 10-15 minutes to fix it then. |
Hi @AkshayAgarwal007 . @Deepaksharm have already worked on this issue earlier (Check for the closed pull requests) and did a good job. We didn't find any significance in using game.paused state of phaser. So we decided to go with the variable and used the same to achieve many other functionalities. PauseState variable is used to check whether the game is in Pause state or Active state. If PauseState == 1, user answers will not be evaluated. |
This issue was moved to #1 |
@deepakagg May i know what is happening here ? Can't we transfer the ownership of this repo to Tux4Kids Org. account ? I think that will be a better idea to do so. |
To Pause the game using game.paused inbuilt function in Phaser. Currently it has been done manually, as when the pause button is clicked everything else freezes.
The text was updated successfully, but these errors were encountered: