Package org.newdawn.slick.state.transition

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


        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

                gameReady = false;
            }
        }
        if (key == Input.KEY_SPACE && actionArea.isReady() && profeReto) {
            escondeDialogo();
            stateBasedGame.enterState(5, new FadeOutTransition(), new EmptyTransition());
        }
    }
View Full Code Here

    /**
     * Método que cambia al estado de Aula.
     */
    public static void entraClase() {
        stateBasedGame.enterState(2, new FadeOutTransition(), new EmptyTransition());
    }
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

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.