Summary

In this chapter, we saw Cocos2d-x's inbuilt particle system, as well as a couple of other ways in which you can design a particle system from the ground up. We included particles for effects such as smoke, explosion, and jet in the game. We also created a mock particle system in which we created an effect to show as if the enemy is falling down after getting hit by the rocket.

If you want, as an exercise, you can also create a hit effect for the player when she gets hit by the enemy. You can use any of the single images we used to create the spritesheet for the player and pass it on as the image into the PlayerSpin class and add it to HelloWorldScene.cpp file.

In the next chapter, we will add a game screen and options screen and create a ...

Get Learning Cocos2d-x Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.