O'Reilly logo

Building Android Games with Cocos2d-x by Raydelto Hernandez

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

Chapter 7. Creating Particle Systems

You can easily simulate fire, smoke, explosions, snow, and rain by using the built-in particle system bundled with the Cocos2d-x framework. This chapter will teach you how to create the effects mentioned here and will also teach you to customize them.

The following topics will be covered in this chapter:

  • Creating collections of the Cocos2d-x objects
  • Adding particle systems to our game
  • Configuring the particle systems
  • Creating customized particle systems

Creating collections of the Cocos2d-x objects

We are going to add a particle system to our game to simulate the explosions each time the player touches a bomb. In the interest of doing this, we are going to use the Vector class located in the Cocos2d-x framework to ...

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