Applications open until spots fill up - Apply now.

What You Learned

What You Learned

April 12, 2017
Expand

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

Congrats again on finishing Game of Life and building another great iPhone game!

Let's take a look at what you have learned.

The game

What you learned

  • The Grid Class: Sub classing SKSpriteNode and built a self contained simulation node.

  • Creature generator: Adding methods to spawn creatures at a give grid position and automate this to produce creatures at every entry in the grid.

  • Touch input: Translating user touch into grid row / column position.

  • 2D arrays: Creation and manipulation of 2D array. Implementing functionality to traverse all neighbors of a specified cell to calculate neighborCount

  • Build a scheduler: Using SKActions to build a simulation scheduler allowing you to automate the running of the simulation.

  • Game of Life ruleset: Translating the Game of Life ruleset into code logic.

Solution

Download the Game of Life solution.

GitHub Cat

Feedback

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