This commit is contained in:
Anthony Stirling
2023-04-30 18:28:29 +01:00
parent 2608aa4c97
commit d5dec31b39
19 changed files with 6 additions and 57 deletions

View File

@@ -194,13 +194,13 @@ function resetGame() {
score = 0;
level = 1;
lives = 3;
pdfSpeed = 1;
gameOver = false;
updateScore();
updateLives();
levelElement.textContent = 'Level: ' + level;
pdfSpeed = 1;
clearTimeout(spawnPdfTimeout); // Clear the existing spawnPdfTimeout
setTimeout(updateGame, 1000 / 60);
spawnPdfInterval();