14. Particle Systems: Creating Fire, Snow, Ice, and More

In the previous chapters you learned about the Box2D and Chipmunk physics engines and how to incorporate them into Space Viking and your games. In this chapter you will learn about particle systems and how easily you can add realistic fire, smoke, snow, rain, and other effects to your games. Particle system is just a name for a technique to generate certain graphical effects, such as explosions, flames, and of course fire, smoke, or even rain. Instead of trying to model those effects, a large set of tiny images, or particles, is used to fool the player into seeing the desired effect.

Get Learning Cocos2D: A Hands-On Guide to Building iOS Games with Cocos2D, Box2D, and Chipmunk 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.