O'Reilly logo

Microsoft® XNA™ Unleashed: Graphics and Game Programming for Xbox 360 and Windows by Chad Carter

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

Chapter 9. 2D Basics

IN THIS CHAPTER

The XNA Framework not only provides easy ways for us to utilize 3D objects, but it also provides excellent 2D support. There are actually a couple of ways we can achieve 2D inside of XNA. There is true 2D, which is sprite manipulation. We will discuss this kind of 2D. The other kind is actually setting up a 3D environment, but locking the camera so that it is always looking at the same angle and cannot be moved—it is a 3D world with a stationary camera.

Whereas 3D uses models to display our scene, 2D uses images to create and animate our scene. The two dimensions are x and y—there is no z in 2D. It is very common to mix 2D and 3D into the same game. Scores, ...

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