Forgot to actually make the score display use the bitmap font
This commit is contained in:
@@ -163,10 +163,12 @@ GameState.prototype.create = function()
|
|||||||
// 20, SCREEN_HEIGHT - 40, '', { font : '16px Arial', fill: '#ffffff' }, this.uigroup
|
// 20, SCREEN_HEIGHT - 40, '', { font : '16px Arial', fill: '#ffffff' }, this.uigroup
|
||||||
// );
|
// );
|
||||||
|
|
||||||
this.scoreText = this.game.add.text(
|
this.scoreTextBitmap = bitmapText('', FONTSIZE_MEDIUM);
|
||||||
SCREEN_WIDTH - 80, SCREEN_HEIGHT - 30, '',
|
this.scoreText = this.game.add.image(516,
|
||||||
{ font: '16px Arial', fill: '#ffffff' }, this.uigroup
|
480 - 68 + 31,
|
||||||
);
|
this.scoreTextBitmap,
|
||||||
|
0,
|
||||||
|
this.uigroup);
|
||||||
|
|
||||||
this.lightbar = this.game.add.sprite(256,
|
this.lightbar = this.game.add.sprite(256,
|
||||||
hudoffset + 7 + 6,
|
hudoffset + 7 + 6,
|
||||||
@@ -463,8 +465,7 @@ GameState.prototype.update = function()
|
|||||||
clockhour -= 12;
|
clockhour -= 12;
|
||||||
this.hud_hourhand.frame = parseInt((5 * clockhour) + (0.083 * this.clock.getMinutes()));
|
this.hud_hourhand.frame = parseInt((5 * clockhour) + (0.083 * this.clock.getMinutes()));
|
||||||
this.hud_minutehand.frame = this.clock.getMinutes();
|
this.hud_minutehand.frame = this.clock.getMinutes();
|
||||||
// this.clockText.setText("" + this.clock.getHours() + ":" + this.clock.getMinutes() + ":" + this.clock.getSeconds());
|
this.scoreTextBitmap.setText("$ " + player.score);
|
||||||
this.scoreText.setText("" + player.score);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GameState.prototype.shutdown = function()
|
GameState.prototype.shutdown = function()
|
||||||
|
|||||||
Reference in New Issue
Block a user