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

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.