suppresion de bordures rouges

This commit is contained in:
2026-02-23 08:59:04 +01:00
parent dcd4cd3d07
commit bbb26bcb3d

View File

@@ -55,13 +55,6 @@ public class ZoneDessin extends JPanel {
obj.Afficher(g);
}
// bordures haut et bas
g2D.setColor(Color.RED);
int yTop = (int)(getHeight() * 0.05);
int yBottom = (int)(getHeight() * 0.95);
g2D.drawLine(0, yTop, getWidth(), yTop);
g2D.drawLine(0, yBottom, getWidth(), yBottom);
// Affichage de l'écran Game Over
if (isGameOver) {
g2D.setColor(new Color(0, 0, 0, 150)); // Fond sombre