@Override public void draw(Batch batch, float parentAlpha) { elapsedTime += Gdx.graphics.getDeltaTime(); if (playerControlled == true) { batch.draw(standingAnimation.getKeyFrame(elapsedTime, true), this.x + 16, this.y + 16); } else { batch.draw(standingAnimation.getKeyFrame(elapsedTime, true), this.x, this.y); } batch.draw(texture, x, y); bitmapFont.draw(batch, characterList.get(heroNumber - 1).name, x, y + 74); }
@Override public void draw(Batch batch, float parentAlpha) { super.draw(batch, parentAlpha); batch.draw(texture, lifePositionX, lifePositionY, 16, 16); }