Book Image

iOS 9 Game Development Essentials

By : Chuck Gaffney
Book Image

iOS 9 Game Development Essentials

By: Chuck Gaffney

Overview of this book

Table of Contents (15 chapters)
iOS 9 Game Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Particle systems


Some of the basic assets in any game, be it SpriteKit or SceneKit built, are the various particle effects we'd add to characters, objects, or an entire scene. Particles can add to the feel of collecting that item, give the player a signal that something is happening to the player, like they are gaining or losing health, or show the presence and power of an incoming boss fight.

Collectable particle effect from the Fox demo

In the past, the process of making a particle effect would be to manually create sometimes rather complex particle emitter shader objects using OpenGL code. This can still be done if we so choose (using either Apple's fast, low-level API, Metal, or OpenGL), but over time, the process of visually creating and editing particle effects has gotten easier. Not too long ago in the iOS development history, frameworks such as Cocos2D/ Cocos3D allowed us to use third-party particle effects builders to import into our games. With both SpriteKit and SceneKit, Xcode...