MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / endGame

Function endGame

assets/js/AppleGameController.js:114–122  ·  view source on GitHub ↗

* Ends the game by setting IsPlaying to false, * finally resets the score, time and enables btnStart.

()

Source from the content-addressed store, hash-verified

112 * finally resets the score, time and enables btnStart.
113 */
114function endGame() {
115 IsPlaying = false;
116 alert("Your score is " + score);
117 //reset score and time for next game.
118 score = 0;
119 time = 30;
120 //enable the button to make it clickable
121 btnStart.removeAttribute('disabled');
122}

Callers 1

countDownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected