O'Reilly logo

Mastering Android Game Development by Raul Portales

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

Summary

We have learned how particle systems work and how to integrate them into our game. We included ParticleSystem and the particles themselves into our GameEngine. We also learned about initializers and modifiers and how to create new ones to extend the system if we want to.

Then we saw how to compose a GameObject that has other GameObject instances inside it. In particular, particle systems do normally belong to another GameObject. For this, the ParticleSystem hooks into the lifecycle of the GameObject. We updated the GameEngine to make it easier to add GameObjects that are compositions.

Finally, we examined two examples of one shots and two examples of emitters that covered a variety of different parameters.

All in all, these four ParticleSystem ...

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