cleaned backend
This commit is contained in:
3
static/css/400.css
Normal file
3
static/css/400.css
Normal file
@@ -0,0 +1,3 @@
|
||||
section h2 {
|
||||
margin-top: 2rem !important;
|
||||
}
|
@@ -154,7 +154,7 @@ function gameLoop() {
|
||||
setTimeout(gameLoop, 100);
|
||||
} else {
|
||||
document.removeEventListener('keydown', changeDirection);
|
||||
document.getElementById('snake-score').value = score;
|
||||
document.getElementById('score').value = score;
|
||||
alert(`Game Over! Your score: ${score}`);
|
||||
menu();
|
||||
}
|
||||
|
Reference in New Issue
Block a user