Fix: RoundRectButtonSetting x, y
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user