package blocksthatfall;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;
public class BlocksThatFall extends StateBasedGame {
public static final int MAINMENUSTATE = 0;
public static final int GAMEPLAYSTATE = 1;
public static final int GAMEOVERSTATE = 2;
public static int score;
BlocksThatFall() {
super("Blocks That Fall");
}
public static void main(String[] args) throws SlickException {
AppGameContainer app = new AppGameContainer(new BlocksThatFall());
app.setDisplayMode(800, 600, false);
app.setShowFPS(false);
app.start();
}
@Override
public void initStatesList(GameContainer gc) throws SlickException {
this.addState(new MainMenuState(MAINMENUSTATE));
this.addState(new GamePlayState(GAMEPLAYSTATE));
this.addState(new GameOverState(GAMEOVERSTATE));
}
}