Chapter 10. 2D Effects

IN THIS CHAPTER

After learning the basics we can now get into some more exciting 2D content creation—effects. In this chapter we are going to discuss cel animation, rotating and scaling our sprites as well as different blend modes available to use when dealing with sprite batches. We will learn how to fade to a particular color as well. We will finish out the chapter discussing fire and creating explosions.

Cel Animation

In the last chapter we saw how to render portions of a texture into multiple sprites. In this section we are going to use the same principle to create cel animation. This is taking a texture with multiple ...

Get Microsoft® XNA™ Unleashed: Graphics and Game Programming for Xbox 360 and Windows 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.