O'Reilly logo

Sams Teach Yourself Windows® Phone 7 Game Programming in 24 Hours by Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required