Drawing text

Drawing programs often print various messages along with the pictures (you have probably seen many examples yourself). Here’s how to do that in PyGame:

Single letters: In this example first each letter is displayed individually and then all letters are switched on and off 3 times. Can you copy this behavior?

Hint: The display positions of the individual letters are (0, 0), (50, 0), (100, 0), (150, 0), etc. The number of frames in a cycle is 6 plus the number of letters in the text. The rest of the ideas are very similar to those in the previous examples.

Lastly, if you wish, you can make a neon sign of your own design here.