Jump to content

Proper format for add.text: ,"Score: 0", fill: "#FFF") ?


Recommended Posts

In addition to what Azrael said. This is how I would do it (style variable taken from example Azrael provided)

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

var textObj = game.add.text(x,y,text,style);


Edited by Batzi
Add clarification
Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...