Fix: show best record with DB
This commit is contained in:
@@ -34,7 +34,7 @@ class Result {
|
||||
// bottom
|
||||
let screenBottom = new ScreenBottom();
|
||||
screenBottom.makeBottomLine();
|
||||
screenBottom.printBottomLeftText("게임 진행 정보");
|
||||
screenBottom.printBottomLeftTextWithBestRecord(sessionStorageManager.bestRecord);
|
||||
screenBottom.printBottomCenterText(sessionStorageManager.playingAppKoreanName);
|
||||
screenBottom.printBottomRightText(sessionStorageManager.playerName);
|
||||
}
|
||||
@@ -54,6 +54,16 @@ class Result {
|
||||
.setTextBounds(0, posY, game.world.width, 60)
|
||||
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
|
||||
|
||||
|
||||
if(sessionStorageManager.isNewBestRecrd === true) {
|
||||
style.font = "32px Arial";
|
||||
let bestRecordText = game.add.text(0, 0, "!!! 새로운 최고 기록 !!!", style)
|
||||
.setTextBounds(0, posY + 80, game.world.width, 40);
|
||||
// .setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
|
||||
bestRecordText.stroke = "#333";
|
||||
bestRecordText.strokeThickness = 5;
|
||||
}
|
||||
/*
|
||||
if(sessionStorageManager.bestRecord === null)
|
||||
sessionStorageManager.bestRecord = 0;
|
||||
let bestRecord = NumberUtil.numberWithCommas(sessionStorageManager.bestRecord);
|
||||
@@ -63,6 +73,7 @@ class Result {
|
||||
// .setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
|
||||
bestRecordText.stroke = "#333";
|
||||
bestRecordText.strokeThickness = 5;
|
||||
*/
|
||||
}
|
||||
|
||||
uploadRecord() {
|
||||
|
||||
Reference in New Issue
Block a user