Package org.newdawn.slick.state.transition

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


        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));       
      }
    }


  }
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

  public void render(GameContainer container, StateBasedGame game, Graphics g) throws SlickException {
  }

  public void update(GameContainer container, StateBasedGame game, int deltathrows SlickException {
    game.enterState(PlayState.ID, new FadeOutTransition(), new FadeInTransition());
  }
View Full Code Here

        if (container.getInput().isKeyPressed(Input.KEY_ENTER)) {
            mainGame.playSound(Sounds.OK);
            switch (selection) {
                case 1:
                    mainGame.music.fade(1000);
                    game.enterState(MainGame.EXPLORATION, new FadeOutTransition(Color.black, 1000), new FadeInTransition(Color.black, 1000));
                    break;
                case 2:
                    break;
                case 3:
                    break;
View Full Code Here

    private class AtrasButtonListener implements ComponentListener {

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

    private class JugarButtonListener implements ComponentListener {

        @Override
        public void componentActivated(final AbstractComponent source) {
            stateBasedGame.enterState(4, new FadeOutTransition(), new FadeInTransition());
        }
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

      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

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.