Add: show result after typing test

This commit is contained in:
2018-06-07 14:49:16 +09:00
parent 147f740622
commit c6e3411212
2 changed files with 21 additions and 24 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ class Result {
// bottom
let screenBottom = new ScreenBottom();
screenBottom.makeBottomLine();
screenBottom.printBottomLeftTextWithBestRecord(sessionStorageManager.bestRecord);
screenBottom.printBottomLeftTextWithBestRecord(Math.floor(sessionStorageManager.bestRecord));
screenBottom.printBottomCenterText(sessionStorageManager.playingAppKoreanName);
screenBottom.printBottomRightText(sessionStorageManager.playerName);
}
@@ -49,7 +49,7 @@ class Result {
let posY = 120;
if(sessionStorageManager.record === null)
sessionStorageManager.record = 0;
let record = NumberUtil.numberWithCommas(sessionStorageManager.record);
let record = NumberUtil.numberWithCommas(Math.floor(sessionStorageManager.record));
style.font = "bold 80px Arial";
game.add.text(0, 0, record, style)
.setTextBounds(0, posY, game.world.width, 60)