Using the particle system

SpriteKit includes a powerful particle system that makes it easy to add exciting graphics to your game. Particle emitter nodes create many small instances of an image that are combined to create a great-looking effect. A very easy example of a particle system is Rain. Rain is a particle system, and each rain drop is a particle, and a cloud has a lot of emitters from where the droplets or particles are created.

We will create a particle system instead of just creating individual particles, because with a particle system you can create different kinds of effects using the same particle. For example, we saw Rain, which is a particle system; what if we wanted another effect, such as water coming out of the faucet? Here, the ...

Get Swift Game Development - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.