@Override public void draw(SpriteBatch batch, GameTime gameTime) { batch.draw(this.texture, this.drawPosition, LColor.white); if (this.getNumRemainingLives() >= 0) { batch.drawString(this.font, "" + this.getNumRemainingLives(), this.drawPosition.x + 15f, this.drawPosition.y + 3f, LColor.white); } super.draw(batch, gameTime); }
@Override protected void loadContent() { super.loadContent(); this.font = LFont.getFont(12); this.texture = LTextures.loadTexture(this.textureFile); }