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 paused #1

Open
Vigneshsekar opened this issue Jul 1, 2015 · 6 comments
Open

Game paused #1

Vigneshsekar opened this issue Jul 1, 2015 · 6 comments

Comments

@Vigneshsekar
Copy link
Member

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.

@Vigneshsekar
Copy link
Member Author

updateScore, updateTimer and other consecutive functions in all the four initial games are executed only if gamePaused is == 0.
when the pause button is clicked gamePaused becomes 1 and it stops all functions from executing.

@AkshayAgarwal007
Copy link

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.

@AkshayAgarwal007
Copy link

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.

pause1
pause2

@Vigneshsekar
Copy link
Member Author

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.

@deepakagg
Copy link
Member

This issue was moved to #1

@Vigneshsekar
Copy link
Member Author

Vigneshsekar commented Apr 20, 2016

@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.

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

3 participants