Package org.newdawn.slick.state.transition

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


    // Zustand wechseln
    if (this.states.getState(state.getID()) == null) {
      this.states.addState(state);
    }
    if (this.states.getCurrentStateID() != state.getID()) {
      this.states.enterState(state.getID(), null, new FadeInTransition(Color.white, 1000));
    }
  }
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

   * @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

TOP

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

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.