A tutorial on creating a library of Text Styles for use in Phaser 3 games.

Article by Richard Davey. Posted on 6th Dec 2018.   @photonstorm

image

This is a new tutorial from the Phaser Games site: "When I’m writing a game, I’m really into the logic of it. If I have to stop and look up fonts and colors all the time, my brain has to shift focus.

In any case, I don’t like to throw things away. I did something in Phaser 2, similar to the text style library I’m about to show you, for a project for my office. It got too complex for me to keep setting the fonts, colors, font sizes and origins (anchors) of the text fields over and again. Too many variations kept creeping in, so I came up with the TextUtil, which is basically a library of styles."

Read More