@Override public void render(@Nonnull Graphics g) { if (performRendering()) { super.render(g); if (showNumber && (number != null)) { number.render(g); } } showHighlight = 0; }
@Override public void render(Batch batch) { super.render(batch); float delta = Gdx.graphics.getDeltaTime(); updateCurrentSpeed(delta); doCollisionDetectionHorizontal(); doCollisionDetectionVertical(); doOutOfMapDetectionBottom(); doItemDetection(); updateLadderFlag(); updateLastXDirection(); }