Setting Up a Sprite Kit Project

Start by setting up a new Sprite Kit project from Apple’s template. With Xcode open, choose File > New > Project. Make sure the iOS application templates are selected in the sidebar and choose SpriteKit Game, as shown in the following figure.

images/SpriteIntro/pick-template.png
Figure 3. Choosing the Sprite Kit project template

Name the project SpaceRun and set the device type to iPhone. Also, set the class prefix to the same as the authors’ prefix, RCW. That will make it easier when you see filenames mentioned here as you follow along.

images/SpriteIntro/firstrun.png
Figure 4. The ...

Get Build iOS Games with Sprite Kit 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.