Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

phaser2 align text center

var style = { font: "bold 32px Arial", fill: "#fff", boundsAlignH: "center", boundsAlignV: "middle" };

    //  The Text is positioned at 0, 100
    text = game.add.text(0, 0, "phaser 2.4 text bounds", style);
Source by phaser.io #
 
PREVIOUS NEXT
Tagged: #align #text #center
ADD COMMENT
Topic
Name
5+8 =