Fix: remove game argument for ScreenBottom constructor

This commit is contained in:
2018-05-16 10:26:40 +09:00
parent 3ed621d9f3
commit c307c69d8b
5 changed files with 14 additions and 24 deletions
+5 -13
View File
@@ -30,7 +30,7 @@ class Result {
// bottom
let screenBottom = new ScreenBottom(game);
let screenBottom = new ScreenBottom();
screenBottom.makeBottomLine();
screenBottom.printBottomLeftText("게임 진행 정보");
let playingAppName = appInfoManager.getAppNameKorean(sessionStorageManager.playingAppName);
@@ -44,12 +44,12 @@ class Result {
}
printScore() {
const style = { font: "52px Arial", fill: "#fff", align: "left", boundsAlignH: "center", boundsAlignV: "middle" };
const style = { font: "64px Arial", fill: "#fff", align: "left", boundsAlignH: "center", boundsAlignV: "middle" };
game.add.text(0, 0, "결과", style)
.setTextBounds(0, 0, game.world.width, 80)
.setTextBounds(0, 0, game.world.width, 100)
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
let posY = 100;
let posY = 120;
let score = NumberUtil.numberWithCommas(sessionStorageManager.score);
console.log(score);
style.font = "bold 80px Arial";
@@ -68,20 +68,12 @@ class Result {
}
printHowToPlay(text) {
const style = { font: "32px Arial", fill: "#fff", align: "left", boundsAlignH: "center", boundsAlignV: "middle" };
let howToPlayText = game.add.text(0, 0, appInfoManager.getHowToPlayText(sessionStorageManager.playingAppName), style);
howToPlayText.setTextBounds(100, 100, game.world.width - 100, 200);
howToPlayText.stroke = "#333";
howToPlayText.strokeThickness = 5;
}
makeStartButton() {
let setting = new RoundRectButtonSetting(200, 100);
setting.fontStyle.fontWeight = "bold";
let startButton = new RoundRectButton(setting, "다시 시작", this.startStage);
startButton.move(game.world.centerX, game.world.height / 2 - 60);
startButton.move(game.world.centerX, game.world.height / 2 - 70);
}
loadHistoryRecords() {