Spaces:
Running
Running
Update main.js
Browse files
main.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
// snake.js
|
| 2 |
let snakeBody = [];
|
| 3 |
let food;
|
| 4 |
let score = 0;
|
|
@@ -93,6 +92,6 @@ function checkFood() {
|
|
| 93 |
}
|
| 94 |
|
| 95 |
function gameOver() {
|
| 96 |
-
alert('Game Over! Your score is'+ score);
|
| 97 |
initGame();
|
| 98 |
}
|
|
|
|
|
|
|
| 1 |
let snakeBody = [];
|
| 2 |
let food;
|
| 3 |
let score = 0;
|
|
|
|
| 92 |
}
|
| 93 |
|
| 94 |
function gameOver() {
|
| 95 |
+
alert('Game Over! Your score is '+ score);
|
| 96 |
initGame();
|
| 97 |
}
|