Download message for game

This commit is contained in:
Anthony Stirling
2024-02-18 13:30:56 +00:00
parent 20cb460a7e
commit c96ebccae4
29 changed files with 77 additions and 32 deletions

View File

@@ -246,13 +246,10 @@ function initializeGame() {
function spawnPdfInterval() {
console.log("spawnPdfInterval");
if (gameOver || paused) {
console.log("spawnPdfInterval 2");
clearTimeout(spawnPdfTimeout);
return;
}
console.log("spawnPdfInterval 3");
spawnPdf();
let spawnRateReduction = Math.min(level * LEVEL_INCREASE_FACTOR_MS, MAX_SPAWN_RATE_REDUCTION_MS);
let spawnRate = BASE_SPAWN_INTERVAL_MS - spawnRateReduction;