()
| 30 | }) |
| 31 | } |
| 32 | function 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 | } |
| 37 | function moveEnemy(car) { |
| 38 | let enemy=document.querySelectorAll('.enemy'); |
| 39 | enemy .forEach(function(item){ |