Merge branch 'master' of https://git.fermdez.net/fermdez/Juegos
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<div id="game-container">
|
||||
<canvas id="gameCanvas" width="400" height="400"></canvas>
|
||||
</div>
|
||||
<div id="score">Puntaje: <span id="score-value">0</span></div>
|
||||
<div id="score">Puntuación: <span id="score-value">0</span></div>
|
||||
<button id="restart-btn">Reiniciar</button>
|
||||
<div id="game-over-message"></div>
|
||||
<script src="script.js"></script>
|
||||
|
@@ -106,7 +106,7 @@ function changeDirection(e) {
|
||||
function endGame() {
|
||||
clearInterval(gameInterval);
|
||||
gameOver = true;
|
||||
gameOverDiv.textContent = "¡Fin del juego! Puntaje final: " + score;
|
||||
gameOverDiv.textContent = "¡Fin del juego! Puntuación final: " + score;
|
||||
}
|
||||
|
||||
window.addEventListener('keydown', changeDirection);
|
||||
|
Reference in New Issue
Block a user