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

Configuring the particle systems

In the previous section, we created a realistic explosion by simply adding three lines of code. We can customize many parameters of a particle system. For instance, we could modify how much we would like our particle system to expand by modifying the life property.

We could also modify how big or how small we would want our particle system to be at the beginning and the size that we want it to have at the end, by setting the values to the startSize property and the endSize property. For example, if we would like to simulate the turbine of a rocket, then we could configure the emitter to start with a small size and to end with a big size.

We can adjust the angle to which the particle is going to move by modifying ...

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