Package org.newdawn.slick.state.transition

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


  public void update(GameContainer container, StateBasedGame game, int delta)
      throws SlickException {
    super.update(container, game, delta);

    if (gotoGame) {
      game.enterState(FuzzyMain.SELECT_STATE, new FadeOutTransition(),
          new FadeInTransition());
    }

    if (ME.playMusic && !music.playing()) {
      music.play();
View Full Code Here


  public void update(GameContainer container, StateBasedGame game, int delta)
      throws SlickException {
    super.update(container, game, delta);

    if (container.getInput().isKeyPressed(Input.KEY_ESCAPE)) {
      game.enterState(FuzzyMain.MENU_STATE, new FadeOutTransition(),
          new FadeInTransition());
    }

    if (FuzzyMain.gotoLevel > 0) {
      game.enterState(FuzzyMain.GAME_STATE, new FadeOutTransition(),
          new FadeInTransition());
    }
  }
View Full Code Here

  public void update(GameContainer container, StateBasedGame game, int delta)
      throws SlickException {
    super.update(container, game, delta);

    if (gotoMenu) {
      game.enterState(FuzzyMain.MENU_STATE, new FadeOutTransition(),
          new FadeInTransition());
      return;
    }
  }
View Full Code Here

  public void update(GameContainer container, int delta)
      throws SlickException {
    super.update(container, delta);
    if (check(CMD_START))
      Globals.game.enterState(StarCleaner.INGAME_STATE,
          new FadeOutTransition(Color.white), new FadeInTransition(
              Color.white));
  }
View Full Code Here

        ME.playMusic = ME.playMusic ? false : true;
      }
    }

    if (container.getInput().isKeyPressed(Input.KEY_ESCAPE)) {
      game.enterState(FuzzyMain.SELECT_STATE, new FadeOutTransition(),
          new FadeInTransition());
    }

    if (ME.playMusic && !musicOne.playing()) {
      musicOne.play();
View Full Code Here

      levelEnd = false;
      playerDead = false;
      enter(container, game);
    } else {
      // level finished, player have won!
      game.enterState(FuzzyMain.WIN_STATE, new FadeOutTransition(),
          new FadeInTransition());
      return;
    }
  }
View Full Code Here

    private class OpcionesButtonListener implements ComponentListener {

        @Override
        public void componentActivated(final AbstractComponent source) {
            stateBasedGame.enterState(1, new FadeOutTransition(), new FadeInTransition());
        }
View Full Code Here

    private class SalirButtonListener implements ComponentListener {

        @Override
        public void componentActivated(final AbstractComponent source) {
            stateBasedGame.enterState(0, new FadeOutTransition(), new FadeInTransition());
        }
View Full Code Here

    /**
     * Método que cambia al estado de Pasillo.
     */
    public static void entraPasillo() {
        stateBasedGame.enterState(4, new FadeOutTransition(), new EmptyTransition());
    }
View Full Code Here

            if (victoria) {
                Pasillo.borraNPC(profesorName);
            } else {
                Pasillo.retrocedeJugador(profesorName);
            }
            stateBasedGame.enterState(4, new FadeOutTransition(), new FadeInTransition());
        }
    }
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.