Skip to Content
Programming 2D Games
book

Programming 2D Games

by Charles Kelly
June 2012
Beginner
438 pages
15h 26m
English
A K Peters/CRC Press
Content preview from Programming 2D Games
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 dierent 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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning 3D Game Programming

Beginning 3D Game Programming

Tom Miller

Publisher Resources

ISBN: 9781466508705