Ejemplo n.º 1
0
 @Override
 public void enter(GameContainer container, StateBasedGame game) throws SlickException {
   super.enter(container, game);
   currentState = State.USED;
   ControllerUtils.clearInputQueue(container.getInput());
   view.enter();
 }
Ejemplo n.º 2
0
  @Override
  public void update(GameContainer container, StateBasedGame game, int delta)
      throws SlickException {

    Input input = container.getInput();
    boolean pressedProcced = inputManager.pressedProceed(input);

    if (pressedProcced) {
      int newState = PyromaniacsGame.MAIN_MENU_STATE;
      ControllerUtils.changeState(game, newState);
    }
  }