Chapter 7. Particle Systems
In this chapter, we will look at Cocos2d-x's inbuilt particle system and the different particles you can create with just a few lines of code. Later, we will look at how to create a mock particle system of our own using a basic creation system. We will also look at the software that can be used to create complex particle systems.
Using these different methods and techniques, we will create particles for the game. These particles will be used to spawn particles when the player shoots, for a jet particle effect while boosting the hero up, and for a small explosion particle effect when the enemy is hit by a rocket.
You will learn the following in this chapter:
- What is a particle system?
- Cocos2d-x's inbuilt particle system
- Adding the gun muzzle particle system
- Particle designing
- Adding an explosion particle system
- Adding a particle for jetpack when the player moves up
- Creating your own particle system