diff --git a/Display.class b/Display.class index 231dd33..e8cc16f 100644 Binary files a/Display.class and b/Display.class differ diff --git a/Display.java b/Display.java index f44c3ba..f295366 100644 --- a/Display.java +++ b/Display.java @@ -7,6 +7,7 @@ public class Display { int tileSize = 20; JFrame game = new JFrame(); + game.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); game.setSize(boardWidth, boardHeight); game.setVisible(true); game.setLocationRelativeTo(null); diff --git a/Platformer.class b/Platformer.class index 14cd656..39a0325 100644 Binary files a/Platformer.class and b/Platformer.class differ diff --git a/Platformer.java b/Platformer.java index 7b61740..033c3eb 100644 --- a/Platformer.java +++ b/Platformer.java @@ -166,7 +166,7 @@ public class Platformer extends JPanel implements KeyListener, ActionListener { } // fall out of world - if (player.y > 2000) { + if (player.y > 1400) { loadLevel(currentLevel); player.health--; } @@ -330,7 +330,9 @@ public class Platformer extends JPanel implements KeyListener, ActionListener { for (Enemy e : enemies) e.draw(g); for (Projectile p : projectiles) p.draw(g); flag.draw(g); - + if (currentLevel == 2) { + g.drawString("Take a leap of faith....", flag.x - 25, flag.y - 400); + } // flag counter int amOnes = player.numAmendments % 10; int amTens = player.numAmendments / 10;