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

Function endGame

assets/js/carAvoidanceGame.js:32–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 })
31}
32function endGame(){
33 player.start=false;
34 startScreen.classList.remove('hide');
35 startScreen.innerHTML="Game Over <br> Your Final Score is "+ player.score + "<br> Press Here To Restart The Game.";
36}
37function moveEnemy(car) {
38 let enemy=document.querySelectorAll('.enemy');
39 enemy .forEach(function(item){

Callers 1

moveEnemyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected