Пример #1
0
	@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);
	}
Пример #2
0
	@Override
	protected void loadContent() {
		super.loadContent();
		this.font = LFont.getFont(12);
		this.texture = LTextures.loadTexture(this.textureFile);
	}