Jump to content

ERROR: backgound-color doenst work!


beuleal
 Share

Recommended Posts

Hi guys, im creating an interactive menu to start my simple game that i create a few minutes ago, and i cant attach some style to my 'start' option, check it:

startText = game.add.text(game.world.centerX, 400, '- START THIS GAME -', { font: "40px Arial", fill: "#ffffff", align: "center", background-color:"red"});	    

Phaser returns "Unexpected token -", cuz im using background-color css style.

 

Tks

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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