From e369061a9aa9e73aa1a104507c497bea3191c244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 31 Aug 2024 23:44:06 -0400 Subject: [PATCH] Enlever les alertes --- public/javascripts/game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } }