Hour 6. Treating Bitmaps as Sprites

What You’ll Learn in This Hour:

Bringing bitmaps to life

Drawing lots of bitmaps

Limitations of global variables

A simple Sprite class

Drawing a lot of sprites

This hour continues to explore the capabilities of XNA’s bitmap drawing features via the SpriteBatch class. As we learned in the preceding hour, bitmaps are the building blocks of most 2D and 3D games. Although a game could be designed using just 2D vectors or 3D wireframes—perhaps in a retro style as a homage to such games of the 1970s when graphics hardware was not yet able to rasterize bitmaps—there is little reason to use lines today in a properly designed game. Bitmaps are the name of the game today, for both 2D and 3D games. A bitmap-based ...

Get Sams Teach Yourself Windows® Phone 7 Game Programming in 24 Hours 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.