Package blocksthatfall

Source Code of blocksthatfall.BlocksThatFall

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));
    }
}
TOP

Related Classes of blocksthatfall.BlocksThatFall

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.