Package org.newdawn.slick.state.transition

Examples of org.newdawn.slick.state.transition.FadeOutTransition


   * @param game
   * @param delta
   */
  public void getInput(GameContainer container, StateBasedGame game, int delta){
    if (container.getInput().isKeyDown(Input.KEY_ESCAPE)) {
      game.enterState(MenuPauseState.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
    }
   
    // gestione controlli
    boolean keyRight = container.getInput().isKeyDown(Input.KEY_RIGHT) ;
    boolean keyLeft = container.getInput().isKeyDown(Input.KEY_LEFT) ;
View Full Code Here


   * @param game
   * @param delta
   */
  public void getInput(GameContainer container, StateBasedGame game, int delta){
    if (container.getInput().isKeyDown(Input.KEY_ESCAPE)) {
      game.enterState(MenuPauseState.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
    }
   
    // gestione controlli
    boolean keyRight = container.getInput().isKeyDown(Input.KEY_RIGHT) ;
    boolean keyLeft = container.getInput().isKeyDown(Input.KEY_LEFT) ;
View Full Code Here

        selected = options.length - 1;
      }
    }
    if (key == Input.KEY_ENTER) {
      if (selected == 0){
        game.enterState(HeroCreationState.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));       
      }
    }
  }
View Full Code Here

        selected = options.length - 1;
      }
    }
    if (key == Input.KEY_ENTER) {
      if (selected == 0){
        game.enterState(GameState.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));       
      }
      if (selected == 3){
        //game.exit();
        game.getContainer().exit();
      }
View Full Code Here

        selected = options.length - 1;
      }
    }
    if (key == Input.KEY_ENTER) {
      if (selected == 0){
        game.enterState(GameState.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));       
      }
    }


  }
View Full Code Here

   * @param game
   * @param delta
   */
  public void getInput(GameContainer container, StateBasedGame game, int delta){
    if (container.getInput().isKeyDown(Input.KEY_ESCAPE)) {
      game.enterState(MenuPauseState.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
    }
   
    // gestione controlli
    boolean keyRight = container.getInput().isKeyDown(Input.KEY_RIGHT) ;
    boolean keyLeft = container.getInput().isKeyDown(Input.KEY_LEFT) ;
View Full Code Here

        selected = options.length - 1;
      }
    }
    if (key == Input.KEY_ENTER) {
      if (selected == 0){
        game.enterState(HeroCreationState.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));       
      }
    }
  }
View Full Code Here

        selected = options.length - 1;
      }
    }
    if (key == Input.KEY_ENTER) {
      if (selected == 0){
        game.enterState(GameState.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));       
      }
      if (selected == 3){
        //game.exit();
        game.getContainer().exit();
      }
View Full Code Here

  throws SlickException {

     
    if (container.getInput().isKeyDown(Input.KEY_ESCAPE)) {
      //container.exit();
      game.enterState(MenuPauseState.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
    }
   
    //TODO: gestire meglio l'IA di gioco
    /*
    if (UPDATE_TIME > 100){
View Full Code Here

        selected = options.length - 1;
      }
    }
    if (key == Input.KEY_ENTER) {
      if (selected == 0){
        game.enterState(HeroCreationState.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));       
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.newdawn.slick.state.transition.FadeOutTransition

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.