Add: show result after typing test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user