Package org.newdawn.slick.state.transition

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


      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


      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

      }
    }

    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

      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

            if (victoria) {
                Pasillo.borraNPC(profesorName);
            } else {
                Pasillo.retrocedeJugador(profesorName);
            }
            stateBasedGame.enterState(4, new FadeOutTransition(), new FadeInTransition());
        }
    }
View Full Code Here

  /**
   * @see org.newdawn.slick.state.BasicGameState#keyReleased(int, char)
   */
  public void keyReleased(int key, char c) {
    if (key == Input.KEY_1) {
      game.enterState(TestState1.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
    }
    if (key == Input.KEY_3) {
      game.enterState(TestState3.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
    }
  }
View Full Code Here

      if (selected < 0) {
        selected = options.length - 1;
      }
    }
    if (key == Input.KEY_1) {
      game.enterState(TestState1.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
    }
    if (key == Input.KEY_2) {
      game.enterState(TestState2.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
    }
  }
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.