This commit is contained in:
2026-02-16 19:12:07 +01:00
parent da1962145a
commit 7bb44b019e

View File

@@ -55,6 +55,13 @@ public class ZoneDessin extends JPanel {
obj.Afficher(g); 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 // Affichage de l'écran Game Over
if (isGameOver) { if (isGameOver) {
g2D.setColor(new Color(0, 0, 0, 150)); // Fond sombre g2D.setColor(new Color(0, 0, 0, 150)); // Fond sombre