diff --git a/Pac-Man.jar b/Pac-Man.jar new file mode 100644 index 0000000..c649039 Binary files /dev/null and b/Pac-Man.jar differ diff --git a/bin/Game.class b/bin/Game.class index 8bceb04..b230895 100644 Binary files a/bin/Game.class and b/bin/Game.class differ diff --git a/bin/MapMenu$1.class b/bin/MapMenu$1.class index 499879e..c26cd11 100644 Binary files a/bin/MapMenu$1.class and b/bin/MapMenu$1.class differ diff --git a/bin/MapMenu.class b/bin/MapMenu.class index a1f816d..21b732c 100644 Binary files a/bin/MapMenu.class and b/bin/MapMenu.class differ diff --git a/src/Game.java b/src/Game.java index 3fbf8a7..9c66b1f 100644 --- a/src/Game.java +++ b/src/Game.java @@ -451,6 +451,7 @@ public class Game { if (empty) { fpsLabel.setText("YOU WON"); delay(5000); + player.lives = 0; // HIER DEN HIGHSCORE IMPLEMENTIEREN } } diff --git a/src/MapMenu.java b/src/MapMenu.java index b6135ac..9a9033d 100644 --- a/src/MapMenu.java +++ b/src/MapMenu.java @@ -46,6 +46,7 @@ public class MapMenu extends JFrame { maps[i] = maps[i].substring(0, maps[i].length() - 4); } + this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setVisible(true); this.setBounds(750, 300, 300, 200); this.setResizable(false); // Man kann die Größe des Frame nicht verändern