Package jsalis.framework

Examples of jsalis.framework.StateManager


  private GameView gameView;
  private StateManager stateManager;
 
  public GameController() {
    gameView = new GameView(this);
    stateManager = new StateManager(GameView.WIDTH, GameView.HEIGHT, gameView.getContentPane());
    stateManager.addState(new GameState(StateType.GAME, stateManager));
    stateManager.addState(new MenuState(StateType.MENU, stateManager));
    gameView.start();
    stateManager.startCurrentState();
  }
View Full Code Here

TOP

Related Classes of jsalis.framework.StateManager

Copyright © 2018 www.massapicom. 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.