Commit eaec7ca0 authored by Nicholas Bindela's avatar Nicholas Bindela
Browse files

Added Levels

parent 6ee05db4
......@@ -46,6 +46,7 @@ public class GameOver extends BasicGameState {
@Override
public void init(GameContainer container, StateBasedGame game) throws SlickException {
gameOver = new Image("Images/gameOver.png");
loseMusic = new Music("Music/loseMusic.ogg");
......
......@@ -166,6 +166,7 @@ public class Level1 extends Level {
//g.setColor(Color.black);
g.drawString(Integer.toString(pointCounter / 20) + meters, 0, 0);
g.drawString(Integer.toString(getTopScore()) + meters, 0, 20);
g.drawString("Level " + Integer.toString(this.getID()), WIDTH - 70, 0);
Input input = container.getInput();
......
......@@ -169,6 +169,7 @@ public class Level2 extends Level {
//g.setColor(Color.black);
g.drawString(Integer.toString(pointCounter / 20) + meters, 0, 0);
g.drawString(Integer.toString(getTopScore()) + meters, 0, 20);
g.drawString("Level " + Integer.toString(this.getID()), WIDTH - 70, 0);
Input input = container.getInput();
......
......@@ -162,6 +162,7 @@ public class Level3 extends Level {
//g.setColor(Color.black);
g.drawString(Integer.toString(pointCounter / 20) + meters, 0, 0);
g.drawString(Integer.toString(getTopScore()) + meters, 0, 20);
g.drawString("Level " + Integer.toString(this.getID()), WIDTH - 70, 0);
Input input = container.getInput();
......
......@@ -162,6 +162,7 @@ public class Level4 extends Level {
//g.setColor(Color.black);
g.drawString(Integer.toString(pointCounter / 20) + meters, 0, 0);
g.drawString(Integer.toString(getTopScore()) + meters, 0, 20);
g.drawString("Level " + Integer.toString(this.getID()), WIDTH - 70, 0);
Input input = container.getInput();
......
......@@ -161,6 +161,7 @@ public class Level5 extends Level {
//g.setColor(Color.black);
g.drawString(Integer.toString(pointCounter / 20) + meters, 0, 0);
g.drawString(Integer.toString(getTopScore()) + meters, 0, 20);
g.drawString("Level " + Integer.toString(this.getID()), WIDTH - 70, 0);
Input input = container.getInput();
......
......@@ -162,6 +162,7 @@ public class Level6 extends Level {
//g.setColor(Color.black);
g.drawString(Integer.toString(pointCounter / 20) + meters, 0, 0);
g.drawString(Integer.toString(getTopScore()) + meters, 0, 20);
g.drawString("Level " + Integer.toString(this.getID()), WIDTH - 70, 0);
Input input = container.getInput();
......
Supports Markdown
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