fix awful mm bug with bots

This commit is contained in:
ntr
2019-03-20 19:03:36 +11:00
parent 14c779f484
commit 72f6e81d25
5 changed files with 40 additions and 31 deletions
+1 -2
View File
@@ -257,9 +257,8 @@ class ItemList extends Phaser.Scene {
} return false;
};
this.add.text(ITEM_WIDTH * 11, ITEM_HEIGHT * 1.1, `Scoreboard`, TEXT.HEADER);
this.add.text(ITEM_WIDTH * 11, ITEM_HEIGHT * 1.1, 'Scoreboard', TEXT.HEADER);
scores.forEach(([name, score], i) => {
console.log(name);
const SCORE_X = ITEM_WIDTH * 11;
const SCORE_Y = ITEM_HEIGHT * 1.1 * (i + 2);
this.add.text(SCORE_X, SCORE_Y, `${score.wins} - ${score.losses} | ${name}`, TEXT.NORMAL);