예제 #1
0
  @Override
  public void render(@Nonnull Graphics g) {
    if (performRendering()) {
      super.render(g);

      if (showNumber && (number != null)) {
        number.render(g);
      }
    }
    showHighlight = 0;
  }
예제 #2
0
  @Override
  public void render(Batch batch) {
    super.render(batch);

    float delta = Gdx.graphics.getDeltaTime();
    updateCurrentSpeed(delta);
    doCollisionDetectionHorizontal();
    doCollisionDetectionVertical();
    doOutOfMapDetectionBottom();
    doItemDetection();
    updateLadderFlag();
    updateLastXDirection();
  }