Chapter 5. Writing Text

In this chapter, you will

  • Discover how text is drawn using Microsoft XNA.

  • Add some font resources to your XNA program.

  • Draw some funky text.

  • Create the biggest clock you’ve ever seen.

  • Find out how to fake 3-D images.

Introduction

Your programming skills are really coming along. Your programs can store different kinds of numbers, do things with them, and even make decisions. You also know how to add image assets to your games and place them on the screen.

In this chapter you find out how to use some XNA features to make your games even better. Then you can move on to create fully formed games. The first thing you want to do is add some text output so that your games can talk to the players.

Get Microsoft® XNA® Game Studio 4.0: Learn Programming Now! now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.