Book Image

iOS Game Programming Cookbook

Book Image

iOS Game Programming Cookbook

Overview of this book

Table of Contents (19 chapters)
iOS Game Programming Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Using the particle system in games


Now as a complete tour of particle editor is over, we can have a usage of the particle emitters. We will build some stuff for our game that is, the thrust of spaceship using the same FireParticle file and a collision effect when the coin is picked by the spaceship with a default template of smoke.

In this section, editing of the particle file using the particle editor of Xcode will be done to produce a game particle effect such as the thrust of spaceship and a new particle file will be formed named SmokeParticle for the collision effect between the coin and spaceship. Also, we will discuss and understand some initial code-level classes.

Getting ready

We should have hands on the particle editor of Xcode with changing values of any particle file and creating some good particle systems that could be used at some places in the game. As the basic elements of particle editor are covered in the previous section, now we will be changing some values of the FireParticle...