Fix: save score, highScore

This commit is contained in:
2018-05-15 21:57:23 +09:00
parent ade28f781b
commit 3ed621d9f3
4 changed files with 40 additions and 14 deletions
+5 -5
View File
@@ -57,14 +57,14 @@ class Result {
.setTextBounds(0, posY, game.world.width, 60)
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
let highscore = NumberUtil.numberWithCommas(sessionStorageManager.highscore);
console.log(highscore);
let highScore = NumberUtil.numberWithCommas(sessionStorageManager.highScore);
console.log(highScore);
style.font = "32px Arial";
let highscoreText = game.add.text(0, 0, "오늘 최고 기록 : " + highscore, style)
let highScoreText = game.add.text(0, 0, "오늘 최고 기록 : " + highScore, style)
.setTextBounds(0, posY + 80, game.world.width, 40);
// .setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
highscoreText.stroke = "#333";
highscoreText.strokeThickness = 5;
highScoreText.stroke = "#333";
highScoreText.strokeThickness = 5;
}