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

Implementing Cube Runner

After experimenting a bit with SceneKit, let's start implementing our game.

The game skeleton

As usual, let's start by selecting the correct Xcode project template—the Game template in this case, which looks like this:

The game skeleton

In the next screen, we add the requested data and select SceneKit as the technology, as shown here:

The game skeleton

After selecting only Portrait as the Device Orientation, as shown in the following screenshot, we can run the example project:

The demo app shows a gorgeous rotating 3D airplane, thus showing us what we can achieve ...

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