diff --git a/src/game/login/login.js b/src/game/login/login.js index d47601c..c58556a 100644 --- a/src/game/login/login.js +++ b/src/game/login/login.js @@ -26,7 +26,7 @@ class Login { this.makeStartButton(game.world.centerX, game.world.centerY + 100); - this.makeInfoText(0, 540); + this.makeInfoText(); } makeMaestroNameText(x, y) { @@ -75,10 +75,9 @@ class Login { } makeInfoText(x, y) { - var timerTextStyle = { font: "30px Arial", fill: "#faa", align: "center", boundsAlignH: "center", boundsAlignV: "middle" }; - this.infoText = game.add.text(0, 0, "", timerTextStyle) - .setTextBounds(x, y, game.world.width, 200); - // .setShadow(1, 1, 'rgba(0, 0, 0, 0.5)', 2); + var textStyle = { font: "30px Arial", fill: "#faa" }; + this.infoText = game.add.text(game.world.centerX, 640, "", textStyle); + this.infoText.anchor.set(0.5); this.infoText.stroke = "#333"; this.infoText.strokeThickness = 3; }