O'Reilly logo

Swift by Example by Giordano Scalzo

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

Building the skeleton of the app

Let's start implementing the skeleton of our game using the SpriteKit game template.

Creating the project

For implementing a SpriteKit game, Xcode provides a convenient template, which prepares a project with all the useful settings:

  1. Go to New| Project and select the Game template, as shown in this screenshot:
    Creating the project
  2. In the following screen, after filling in all the fields, pay attention and select SpriteKit under Game Technology, like this:
    Creating the project
  3. By running the app and touching the screen, you will be delighted by the cute, rotating ...

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