Game Development Reference
In-Depth Information
What just happened?
We created our first particles. ParticleDesigner exports the particle system data as a
.plist file, which we used to create our ParticleSystemQuad objects. You should
open one of these files in Xcode to review the number of settings used in a particle system.
From Cocos2d-x you can modify any of these settings through setters inside
ParticleSystem .
The particles we'll use in this game are as follows:
_jet : This is attached to the _rocket object and it will trail behind the _rock-
et object. We set the system's angle and source position parameters to match the
_rocket sprite.
_boom : This is the particle system used when _rocket explodes.
_comet : This is a particle system that moves across the screen at set intervals and
can collide with _rocket .
_pickup : This is used when a star is collected.
_warp : This marks the initial position of the rocket.
_star : This is the particle system used for the star that the rocket must collect.
The following screenshot shows these various particles:
Search WWH ::




Custom Search