Chapter 13. Sprite Animations and Special Effects

Topics in This Chapter

13.1 Implement Sprite Animations

13.2 Create Special Effects

13.3 Choreograph Effects

13.4 Conclusion

13.5 Exercises

Sprites often animate through a temporary sequence of images; for example, Figure 13.1 shows, from top to bottom, the explosion animation that Snail Bait displays when the runner runs into a bee.

Image

Figure 13.1 The runner exploding after a collision

In addition to special effects, such as exploding bees, that affect one or more sprites at a time, games often implement special effects that affect the game as a whole. When the runner loses her life, ...

Get Core HTML5 2D Game Programming 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.