Book Image

Learning Cocos2d-x Game Development

By : Siddharth Shekar
Book Image

Learning Cocos2d-x Game Development

By: Siddharth Shekar

Overview of this book

Table of Contents (19 chapters)
Learning Cocos2d-x Game Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

What is a particle system?


A particle system is a collection of sprites or particles. Each particle system has an emitter from where the particles will be created. A particle system also determines the behavior of the particles in the system. Hence, it can be said that a particle is the smallest entity that creates the particle system.

A very easy example of a particle system is Rain. Rain is a particle system, and each raindrop is a particle and a cloud has a lot of emitters from where the droplets or particles are created.

We create a particle system instead of just creating individual particles, as with a particle system, you can create different kinds of effects using the same particle. For example, we saw Rain, which is a particle system; what if we wanted another effect such as water coming out of the faucet. Here, the particle is the same, a water droplet, but a rain droplet behaves differently. In the case of water falling from the faucet, each drop falls with a force and is created...