Applications open until spots fill up - Apply now.

Setting up a new project

Setting up a new project

April 12, 2017

Project: Learn to buid Conway's Game of Life with SpriteKit and Swift 3

Create a new SpriteKit project

Create a new Game project in Xcode named Gameoflife and check the Language is set to Swift and Game Technology is set to SpriteKit.

Xcode new project

Importing Resources

Download the Game of Life Art Pack we created for you. Once the download is complete, unpack the folder. Click on the Assets.xcassets folder and drag across the assets.

Xcode add assets

These assets were designed with the iPhone 5 retina resolution.

Adding extra functionality

SpriteKit is missing some useful functionality, thankfully we've bundled some together for you.

Download the MakeSchool Utilities, unpack and drag the folder into the project. Ensure Copy items if needed is checked.

Xcode add utils

Your project structure should hopefully look similar to this:

Xcode project structure

Device orientation

The game assets were designed for landscape orientation, so you should ensure that the game will not accidentally use portrait.

Open the target settings settings.

Uncheck any Portrait options and check the Landscape options.

Xcode Target Settings

Clean project

To ensure a clean starting point, ensure your GameScene.swift reads as follows:

import SpriteKit

class GameScene: SKScene {

    override func didMove(to view: SKView) {
        /* Setup your scene here */

    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        /* Called when a touch begins */

    override func update(_ currentTime: TimeInterval) {
        /* Called before each frame is rendered */


Great, now you have a new project ready to begin building the Game of Life. In the next chapter you will focus on creating the user interface.


If you have feedback on this tutorial or find any mistakes, please open issues on the GitHub Repository.

Join Make School

Prepare for your career as a founder or software developer

Apply Now

Talk to Us

If you have any questions, please send us an email

Email Us