Code Monkey home page Code Monkey logo

Comments (6)

Vigneshsekar avatar Vigneshsekar commented on August 30, 2024

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.

from tux4me.

AkshayAgarwal007 avatar AkshayAgarwal007 commented on August 30, 2024

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.

from tux4me.

AkshayAgarwal007 avatar AkshayAgarwal007 commented on August 30, 2024

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

from tux4me.

Vigneshsekar avatar Vigneshsekar commented on August 30, 2024

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.

from tux4me.

deepakagg avatar deepakagg commented on August 30, 2024

This issue was moved to #1

from tux4me.

Vigneshsekar avatar Vigneshsekar commented on August 30, 2024

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

from tux4me.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.