Add: ScoreManager, ScoreBoard

This commit is contained in:
2018-05-13 16:15:46 +09:00
parent b720f940ec
commit b89490facd
9 changed files with 196 additions and 27 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
class ScoreText extends Phaser.Text {
constructor(x, y, score) {
super(game, x, y, "+" + score, ScoreText.DEFAULT_TEXT_FONT);
super(game, x, y, "+" + NumberUtil.numberWithCommas(score), ScoreText.DEFAULT_TEXT_FONT);
this.anchor.set(0.5);
this.inputEnabled = false;