Forgot to actually make the score display use the bitmap font

This commit is contained in:
2014-07-13 23:39:37 -07:00
parent 0149ce70cd
commit a65bfd290e

View File

@@ -163,10 +163,12 @@ GameState.prototype.create = function()
// 20, SCREEN_HEIGHT - 40, '', { font : '16px Arial', fill: '#ffffff' }, this.uigroup
// );
this.scoreText = this.game.add.text(
SCREEN_WIDTH - 80, SCREEN_HEIGHT - 30, '',
{ font: '16px Arial', fill: '#ffffff' }, this.uigroup
);
this.scoreTextBitmap = bitmapText('', FONTSIZE_MEDIUM);
this.scoreText = this.game.add.image(516,
480 - 68 + 31,
this.scoreTextBitmap,
0,
this.uigroup);
this.lightbar = this.game.add.sprite(256,
hudoffset + 7 + 6,
@@ -463,8 +465,7 @@ GameState.prototype.update = function()
clockhour -= 12;
this.hud_hourhand.frame = parseInt((5 * clockhour) + (0.083 * this.clock.getMinutes()));
this.hud_minutehand.frame = this.clock.getMinutes();
// this.clockText.setText("" + this.clock.getHours() + ":" + this.clock.getMinutes() + ":" + this.clock.getSeconds());
this.scoreText.setText("" + player.score);
this.scoreTextBitmap.setText("$ " + player.score);
}
GameState.prototype.shutdown = function()