Fix: RoundRectButtonSetting x, y
This commit is contained in:
@@ -68,11 +68,10 @@ class Login {
|
|||||||
}
|
}
|
||||||
|
|
||||||
makeStartButton(x, y) {
|
makeStartButton(x, y) {
|
||||||
let setting = new RoundRectButtonSetting(200, 100);
|
let setting = new RoundRectButtonSetting(x, y, 200, 100);
|
||||||
setting.fontStyle.fontWeight = "bold";
|
setting.fontStyle.fontWeight = "bold";
|
||||||
|
|
||||||
let startButton = new RoundRectButton(setting, RoundRectButton.NONE_ICON, "시작", this.startMenu);
|
let startButton = new RoundRectButton(setting, RoundRectButton.NONE_ICON, "시작", this.startMenu);
|
||||||
startButton.move(x, y);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
makeInfoText(x, y) {
|
makeInfoText(x, y) {
|
||||||
|
|||||||
@@ -93,11 +93,10 @@ class Result {
|
|||||||
}
|
}
|
||||||
|
|
||||||
makeStartButton() {
|
makeStartButton() {
|
||||||
let setting = new RoundRectButtonSetting(200, 100);
|
let setting = new RoundRectButtonSetting(game.world.centerX, game.world.height / 2 - 70, 200, 100);
|
||||||
setting.fontStyle.fontWeight = "bold";
|
setting.fontStyle.fontWeight = "bold";
|
||||||
|
|
||||||
let startButton = new RoundRectButton(setting, RoundRectButton.NONE_ICON, "다시 시작", this.startStage);
|
let startButton = new RoundRectButton(setting, RoundRectButton.NONE_ICON, "다시 시작", this.startStage);
|
||||||
startButton.move(game.world.centerX, game.world.height / 2 - 70);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
startStage() {
|
startStage() {
|
||||||
|
|||||||
@@ -107,17 +107,16 @@ class Start {
|
|||||||
printHowToPlay(text) {
|
printHowToPlay(text) {
|
||||||
const style = { font: "32px Arial", fill: "#fff", align: "left", boundsAlignH: "center", boundsAlignV: "middle" };
|
const style = { font: "32px Arial", fill: "#fff", align: "left", boundsAlignH: "center", boundsAlignV: "middle" };
|
||||||
let howToPlayText = game.add.text(0, 0, text, style);
|
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.stroke = "#333";
|
||||||
howToPlayText.strokeThickness = 5;
|
howToPlayText.strokeThickness = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
makeStartButton() {
|
makeStartButton() {
|
||||||
let setting = new RoundRectButtonSetting(200, 100);
|
let setting = new RoundRectButtonSetting(game.world.centerX, game.world.centerY, 200, 100);
|
||||||
setting.fontStyle.fontWeight = "bold";
|
setting.fontStyle.fontWeight = "bold";
|
||||||
|
|
||||||
let startButton = new RoundRectButton(setting, RoundRectButton.NONE_ICON, "시작", this.startStage);
|
let startButton = new RoundRectButton(setting, RoundRectButton.NONE_ICON, "시작", this.startStage);
|
||||||
startButton.move(game.world.centerX, game.world.centerY);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
printChartBaseLine() {
|
printChartBaseLine() {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class TypingPractice {
|
|||||||
|
|
||||||
|
|
||||||
// typing content
|
// typing content
|
||||||
let typingAreaPositionY = 160;
|
let typingAreaPositionY = 140;
|
||||||
let bar = game.add.graphics();
|
let bar = game.add.graphics();
|
||||||
bar.beginFill(0x000000, 0.2);
|
bar.beginFill(0x000000, 0.2);
|
||||||
bar.drawRect(0, typingAreaPositionY, GAME_SCREEN_SIZE.x, 120);
|
bar.drawRect(0, typingAreaPositionY, GAME_SCREEN_SIZE.x, 120);
|
||||||
|
|||||||
Reference in New Issue
Block a user