コード例 #1
0
ファイル: RemainingLives.java プロジェクト: wethinkall/LGame
	@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
ファイル: RemainingLives.java プロジェクト: wethinkall/LGame
	@Override
	protected void loadContent() {
		super.loadContent();
		this.font = LFont.getFont(12);
		this.texture = LTextures.loadTexture(this.textureFile);
	}