Creating a SpriteKit particle file

Xcode provides an excellent UI for creating and editing particle systems. To use the UI, we will add a new SpriteKit particle file to our project. Follow these steps to add the new file:

  1. Start by adding a new file to your project and locating the SpriteKit Particle File type. You can find this template under the Resource category, as shown here:
    Creating a SpriteKit particle file
  2. In the following prompt, select Snow as the Particle Template.
  3. Name the file PierrePath.sks and click Create to add the new file to your project.

Xcode will open the new particle emitter in the main frame, which should look something like this:

Previewing the Snow template in ...

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.