We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04bc524 commit 6a4fa29Copy full SHA for 6a4fa29
050-insect catch game/script.js
@@ -69,13 +69,13 @@ const increaseTime = () => {
69
s = s < 10 ? `0${s}` : s;
70
timeElement.innerHTML = `Time: ${m}:${s}`;
71
seconds++;
72
+ // Add a Game Over State
73
if (seconds > 30) {
74
clearInterval(gameInterval);
75
showGameOver();
76
}
77
};
78
-// Add a Game Over State
79
const showGameOver = () => {
80
gameOverSound.currentTime = 0;
81
gameOverSound.play();
0 commit comments