Fix: save score, highScore
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user