O'Reilly logo

Learning Swift: Building an iOS Game by Jocelyn Harrigton, Christoffer Hallas, Clayton McIlrath, Paul Nettle, Ankur Patel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Adding visual effects

Now that we have sound in our game, let’s add some visual effects. Like in other platform games it would be great to have the character give off visual queues, such as Mr. Steve glowing when he gets a powerup or falls sideways when he is hit by an obstacle. These visual queues spice up the game and help the player understand that a collision or an action is performed on that character.

In this chapter you will learn how to implement particle effects.

Adding particle effects

The easiest way to add cool visual effects to your game is through particle effects. Have you wondered how to add a rain effect in the background of your scene, how to  add sparks coming out of a volcano,  or how to make  a planet in your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required