Пример #1
0
  @Override
  public void show() {
    super.show();

    gameTimeLabel.setPosition(
        SCREEN_WIDTH / 2 - (gameTimeLabel.getPrefWidth() / 2), SCREEN_HEIGHT * 0.8f);
    uiStage.addActor(gameTimeLabel);

    infoLabel.setPosition(SCREEN_WIDTH / 2 - (infoLabel.getPrefWidth() / 2), SCREEN_HEIGHT * 0.5f);
    infoLabel.setVisible(false);
    uiStage.addActor(infoLabel);

    Gdx.input.setInputProcessor(game);
  }
Пример #2
0
 @Override
 public void render(float delta) {
   super.render(delta);
   if (game.getGameState() == Game.GameState.END)
     reaktio.setScreen(new ScoreScreen(reaktio, game, skin));
 }