
8
Text
ere are several ways we may add text to our games. One simple technique that we used
in earlier examples is to display a picture that contains prerendered text. Displaying text
as part of a picture works just ne for an opening screen, a winning or losing message, or
simple dialogs. In this chapter, we will examine two dierent techniques for displaying text.
e rst technique we will examine uses sprites to display individual letters from a larger
texture image.
8.1 Sprite Text
In a sprite text system, individual letters are contained in a larger texture image. e pro-
gram determines which part of the larger texture image to display ...