I want to change the text color in my game that is build in phaser.js. But i have no idea how to do this, because i am not a coder.

Can somebody help me to change the color of my game text?

My Game is http://games.eyebraingym.com/slotreading/

I want to change the color on the canvas where the heading is 'Slot Reading'.


1 Answer 1


In your source code "game.js" (http://games.eyebraingym.com/slotreading/states/game.js) there are multiple lines that look like


here, the "#e6e6e6" is the color. If you aren't familiar with CSS hexadecimal colors, there are sites like https://htmlcolorcodes.com/ where you can pick out a color.

You'll have to find a new color, for example, "#FF0000" for red, and replace all the old instances of "#e6e6e6" with "#FF0000".

  • \$\begingroup\$ Thanks for your reply jimmy. I have made the changes and refreshed page with ctr+f5 but no changes are made. Can you please advice me on this ? \$\endgroup\$ Mar 10, 2018 at 21:16
  • \$\begingroup\$ look at the example pages on github for phaser. that would be your best reference for code resource tactics. \$\endgroup\$
    – klewis
    May 24, 2018 at 3:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .