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 or comment below.

Summer academy

An iOS Development Summer Course

Design, code and launch your own app. Locations in San Francisco and Asia

Find your location

Product College

A computer science college

Graduate into a successful career as a founder or software engineer.

Learn more

Cookies on Make School's website

We have placed cookies on your device to ensure that we give you the best experience on our website.

This site uses cookies to deliver our services. By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Your use of Make School’s Products and Services is subject to these policies and terms.

Please note that Make School no longer supports Internet Explorer

We recommend upgrading to a modern web browser. Learn more