From c7641ee2b4bbeec78e4ec1d965588afbd0706ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=A2=E1=84=91=E1=85=B3=E1=86=AF=20=E1=84=82?= =?UTF-8?q?=E1=85=A9=E1=84=90=E1=85=B3=E1=84=87=E1=85=AE=E1=86=A8?= Date: Thu, 23 Aug 2018 13:42:45 +0900 Subject: [PATCH] Fix: login message --- src/game/login/login.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; }