Fix: RoundRectButtonSetting x, y

This commit is contained in:
2018-06-11 09:57:32 +09:00
parent 8a820ff07f
commit cbe59fa819
4 changed files with 5 additions and 8 deletions
+2 -3
View File
@@ -107,17 +107,16 @@ class Start {
printHowToPlay(text) {
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 - 100, 200);
howToPlayText.setTextBounds(100, 100, game.world.width - 200, 200);
howToPlayText.stroke = "#333";
howToPlayText.strokeThickness = 5;
}
makeStartButton() {
let setting = new RoundRectButtonSetting(200, 100);
let setting = new RoundRectButtonSetting(game.world.centerX, game.world.centerY, 200, 100);
setting.fontStyle.fontWeight = "bold";
let startButton = new RoundRectButton(setting, RoundRectButton.NONE_ICON, "시작", this.startStage);
startButton.move(game.world.centerX, game.world.centerY);
}
printChartBaseLine() {