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

What You’ll Learn in This Hour:

Translating (moving) a sprite

Using velocity as movement over time

Moving sprites in a circle

In this hour, we continue to study sprite programming, going beyond the basics into transforms. Transform simply means to change. Therefore, transforming a sprite means to change it—more specifically, to change its properties. At present, we have only three sprite properties (image, position, and color), which are already more than enough to effect changes right on the screen with the help of SpriteBatch.Draw(). In the graphics programming realm, “transform” usually refers to three things that can be done to a sprite or 3D mesh: translation, rotation, and scaling. The same three affect ...

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