Skip to content
Snippets Groups Projects
Commit 599691bc authored by SYMKO TRISTAN's avatar SYMKO TRISTAN
Browse files

update

parent ee5f8d55
Branches
No related merge requests found
......@@ -91,21 +91,21 @@ public class Panel extends JPanel {
Font currentFont = g.getFont();
Font font = currentFont.deriveFont(Font.BOLD);
g.setFont(font);
g.drawString(""+lvl.joueur.getVie(), 40, 27);
g.drawString("" + lvl.joueur.getVie(), 40, 27);
currentFont = g.getFont();
font = currentFont.deriveFont(Font.BOLD, 24);
g.setFont(font);
g.setColor(Color.WHITE);
g.drawString("Niveau 1", 415, 33);
g.drawString("Niveau " + lvl.getNumLvl(), 415, 33);
} else {
for (int i = 0; i < maxLignes; i++) {
for (int j = 0; j < maxColonnes; j++) {
int x = offsetX + j * tailleFinale;
int y = offsetY + i * tailleFinale;
for (int j = 0; j < maxColonnes; j++) {
int x = offsetX + j * tailleFinale;
int y = offsetY + i * tailleFinale;
g.setColor(Color.BLACK);
g.fillRect(x, y, tailleFinale, tailleFinale);
}
g.setColor(Color.BLACK);
g.fillRect(x, y, tailleFinale, tailleFinale);
}
}
Font currentFont = g.getFont();
Font font = currentFont.deriveFont(Font.BOLD, 70);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment