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

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 GUI so that a player can go back to the main menu once the game is over. We will also create a score reset button in the options screen that will reset the score of the player.