O'Reilly logo

Swift 2 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 by implementing the skeleton of our game using the SpriteKit game template.

Creating the project

To implement 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 the following screenshot. Click Next:
    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. After running the app and touching the screen, you will be delighted ...

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