Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Learning Cocos2d-x Game Development
  • Toc
  • feedback
Learning Cocos2d-x Game Development

Learning Cocos2d-x Game Development

By : Siddharth Shekar
3 (1)
close
Learning Cocos2d-x Game Development

Learning Cocos2d-x Game Development

3 (1)
By: Siddharth Shekar

Overview of this book

If you are a hobbyist, novice game developer, or programmer who wants to learn about developing games/apps using Cocos2d-x, this book is ideal for you.
Table of Contents (13 chapters)
close
12
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.

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete