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

After GAME OVER #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

After GAME OVER #4

wants to merge 1 commit into from

Conversation

nielsachimo
Copy link

When the game is finished .. a lot of things continue to happen:
-Every time you shoot the score continues to decrease.
-The shots sounds are still heard.
-The crosshair is still seen when you fire the shot.
-Occasionally the bat animation reappers..

I think this will solve all this issues.

Created a new global var. called gameFinished .. set it equal to false..

The code inside the handleMouseDown function will only work when the
game is still ongoing

When the game finishes .. gameFinished is set to true

Created a new global var. called gameFinished .. set it equal to false..

The code inside the handleMouseDown function will only work when the
game is still ongoing

When the game finishes .. gameFinished is set to true
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

Successfully merging this pull request may close these issues.

1 participant