jar hinzugefügt

master
Lenz Wiechers 2020-06-10 22:58:01 +02:00
parent 0bb77d4ac3
commit 3b3a465e1c
6 changed files with 2 additions and 0 deletions

BIN
Pac-Man.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -451,6 +451,7 @@ public class Game {
if (empty) { if (empty) {
fpsLabel.setText("YOU WON"); fpsLabel.setText("YOU WON");
delay(5000); delay(5000);
player.lives = 0;
// HIER DEN HIGHSCORE IMPLEMENTIEREN // HIER DEN HIGHSCORE IMPLEMENTIEREN
} }
} }

View File

@ -46,6 +46,7 @@ public class MapMenu extends JFrame {
maps[i] = maps[i].substring(0, maps[i].length() - 4); maps[i] = maps[i].substring(0, maps[i].length() - 4);
} }
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setVisible(true); this.setVisible(true);
this.setBounds(750, 300, 300, 200); this.setBounds(750, 300, 300, 200);
this.setResizable(false); // Man kann die Größe des Frame nicht verändern this.setResizable(false); // Man kann die Größe des Frame nicht verändern