Пример #1
0
  public void initResources() {
    super.initResources();

    Resources.loadInt("Height", HEIGHT);
    Resources.loadInt("Width", WIDTH);

    initControls();
  }
  @Override
  public void initResources() {

    super.initResources();

    myPlayState = new PlayState();
    stateManager.addGameState(myPlayState);
    stateManager.activateOnly(myPlayState);
  }
Пример #3
0
  public void initGameStates() {
    super.initGameStates();

    initLevelManager();
    stateManager.addGameState(myMenuState = new MenuState(), 0);
    myPlayState = new PlayState(levelManager, this);
    stateManager.addGameState(myPlayState);
    stateManager.addGameState(myLevelCompleteState = new LevelCompleteState());
    stateManager.addGameState(myGameCompleteState = new GameCompleteState());
    stateManager.addGameState(myGameOverState = new GameOverState());
    stateManager.addGameState(myPauseState = new PauseGameState(myPlayState, "Paused"));
    stateManager.activateOnly(myMenuState);
  }
Пример #4
0
 public void update(long elapsedTime) {
   super.update(elapsedTime);
   gameControl.update();
 }