Fix: login message
This commit is contained in:
@@ -26,7 +26,7 @@ class Login {
|
|||||||
|
|
||||||
this.makeStartButton(game.world.centerX, game.world.centerY + 100);
|
this.makeStartButton(game.world.centerX, game.world.centerY + 100);
|
||||||
|
|
||||||
this.makeInfoText(0, 540);
|
this.makeInfoText();
|
||||||
}
|
}
|
||||||
|
|
||||||
makeMaestroNameText(x, y) {
|
makeMaestroNameText(x, y) {
|
||||||
@@ -75,10 +75,9 @@ class Login {
|
|||||||
}
|
}
|
||||||
|
|
||||||
makeInfoText(x, y) {
|
makeInfoText(x, y) {
|
||||||
var timerTextStyle = { font: "30px Arial", fill: "#faa", align: "center", boundsAlignH: "center", boundsAlignV: "middle" };
|
var textStyle = { font: "30px Arial", fill: "#faa" };
|
||||||
this.infoText = game.add.text(0, 0, "", timerTextStyle)
|
this.infoText = game.add.text(game.world.centerX, 640, "", textStyle);
|
||||||
.setTextBounds(x, y, game.world.width, 200);
|
this.infoText.anchor.set(0.5);
|
||||||
// .setShadow(1, 1, 'rgba(0, 0, 0, 0.5)', 2);
|
|
||||||
this.infoText.stroke = "#333";
|
this.infoText.stroke = "#333";
|
||||||
this.infoText.strokeThickness = 3;
|
this.infoText.strokeThickness = 3;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user