Fix: library path

This commit is contained in:
2018-12-24 10:25:08 +09:00
parent 618bc4453a
commit 1a2dde8a94
30 changed files with 116 additions and 99 deletions
+21
View File
@@ -0,0 +1,21 @@
function HowToPlay(x, y) {
this.howToPlayText = game.add.text(
game.world.centerX, game.world.centerY - HowToPlay.TEXT_OFFSET_X,
"", this.getFontStyle()
);
this.howToPlayText.anchor.set(0.5);
this.howToPlayText.stroke = "#333";
this.howToPlayText.strokeThickness = 3;
this.howToPlayText.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
}
HowToPlay.prototype.printHowToPlay = function(text) {
this.howToPlayText.text = text;
}
HowToPlay.prototype.getFontStyle = function() {
return { font: "32px Arial", fill: "#fff" };
}
HowToPlay.TEXT_OFFSET_X = 200;