Fix: remove aftereffect of ScreenBottom text

This commit is contained in:
2018-08-09 16:19:14 +09:00
parent 802736b5f9
commit 9e0dcb6860
3 changed files with 91 additions and 45 deletions
+3 -7
View File
@@ -70,21 +70,16 @@ class Start {
screenBottom.printBottomCenterText(sessionStorageManager.playingAppKoreanName);
screenBottom.printBottomRightText(sessionStorageManager.playerName);
this.dbConnectManager.requestTodayBestRecord(
sessionStorageManager.maestroID,
sessionStorageManager.playerID,
sessionStorageManager.playingAppID,
replyJSON => {
sessionStorageManager.bestRecord = Number(replyJSON["BestRecord"]);
// let highScoreWithCommas = NumberUtil.numberWithCommas(sessionStorageManager.bestRecord);
// screenBottom.printBottomLeftText("오늘의 최고 기록 : " + highScoreWithCommas);
screenBottom.printBottomLeftTextWithBestRecord(sessionStorageManager.bestRecord);
},
replyJSON => { // no data
sessionStorageManager.bestRecord = 0;
// let highScoreWithCommas = NumberUtil.numberWithCommas(sessionStorageManager.bestRecord);
// screenBottom.printBottomLeftText("오늘의 최고 기록 : " + highScoreWithCommas);
screenBottom.printBottomLeftTextWithBestRecord(sessionStorageManager.bestRecord);
}
);
@@ -108,8 +103,9 @@ class Start {
const style = { font: "32px Arial", fill: "#fff", align: "left", boundsAlignH: "center", boundsAlignV: "middle" };
let howToPlayText = game.add.text(0, 0, text, style);
howToPlayText.setTextBounds(100, 100, game.world.width - 200, 200);
howToPlayText.stroke = "#333";
howToPlayText.strokeThickness = 5;
// howToPlayText.stroke = "#333";
// howToPlayText.strokeThickness = 5;
howToPlayText.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
}
makeStartButton() {