diff --git a/public/javascripts/game.js b/public/javascripts/game.js index 2a107e6..f1c7dd4 100644 --- a/public/javascripts/game.js +++ b/public/javascripts/game.js @@ -97,7 +97,7 @@ function update() { collisionDetection(); if (bricks.length === 0) { - alert('Congratulations! You won!'); + // Gagné !! document.location.reload(); return; } @@ -126,7 +126,7 @@ function update() { ball.dx = Math.cos(angle) * speed; ball.dy = -Math.abs(Math.sin(angle) * speed); // Ensure the ball always goes up } else { - alert('GAME OVER'); + // Game over! document.location.reload(); } }