Beispiel #1
0
  public void update(GameContainer container, int delta) throws SlickException {
    display.update(container, delta);

    if (container.getInput().isKeyPressed(Input.KEY_ESCAPE)) container.exit();
  }
Beispiel #2
0
 public void update(GameContainer container, StateBasedGame game, int delta)
     throws SlickException {
   Display current = (mode == SINGLETON) ? singleton : indv;
   current.update(container, delta);
 }