Build A Game With Swift 3

Written by: Reinder de Vries, November 17 2016, in Guide, Programming

Aw yiss! It’s app makin’ time. Fire up your Xcode, get your Swift hat on and get hacking with this game called Add-1.

During the coming days, you’ll be learning how to create a game for iOS with Swift. We’ll dive in Xcode, variables, working with input and output, optionals, using Interface Builder, all you need to get started with iPhone app coding.

Updated for Xcode 8 and Swift 3

Add 1

The game we’ll create is called “Add 1”, and as far as I know it’s an invention of Daniel Kahneman. He’s the author of “Thinking Fast and Slow”, and used the game as an assignment in his research of cognitive strain.

The game is perfect for creating a small and simple app with enough functionality to make it a worthwhile learning experience. By the end of this mini course, you’ll know how to make a simple app and you’ll be able to challenge your friends to see who can make the most add-1’s in 60 seconds.

Prerequisites

There’s not much to setup before you can follow this mini course, but you at least need:

  1. A Mac
  2. With Xcode 8 installed
  3. An hour or so of time in total
  4. No programming experience required!
Supercharge your next app project

Grab the App Toolbox 2017 to learn how to save time building your app
and how to get thousands of app installs in the App Store.

Grab The App Toolbox

Project Code, Assets and This Series

This code guide is part of a series with 3 parts in total. Check out all 3 parts here:

  1. Add 1: Creating A Simple iOS Game With Swift in Xcode (Part 1)
  2. Add 1: Creating A Simple iOS Game With Swift in Xcode (Part 2)
  3. Add 1: Creating A Simple iOS Game With Swift in Xcode (Part 3)

Download the Xcode project and assets with these links:

Unzip, and save in a convenient folder.

This project makes use of the following free assets:

Join 11.000+ app developers and marketers
  • Get a weekly curated list of app development tools, articles and resources in your inbox
  • 10x your app installs with relevant App Store Optimization and app marketing strategies
  • BONUS: Grab a free copy of the App Toolbox 2017 to supercharge your next app project
Yes, Sign Me Up!

Most Popular Content

Written By: Reinder de Vries

Reinder de Vries is an indie app maker who teaches aspiring app developers and marketers how to build their own apps at LearnAppMaking.com. He has developed 50+ apps and his code is used by millions of users all over the globe. When he’s not coding, he enjoys strong espresso and traveling.

Supercharge your next app project

Grab the App Toolbox 2017 to learn how to save time building your app
and how to get thousands of app installs in the App Store

Grab The App Toolbox

Comments & Thoughts


Leave a Reply

Markdown is supported (Learn more). Your email address will not be published. Required fields are marked with *

On The Blog


  • App Store Publishing Worksheet
    App Store Publishing Worksheet

    October 26 2015, in Guide, Marketing

    Keep this resource handy! It'll help you with publishing your app in the App Store. How? We've outlined the most important App Store fields for you, and gave neat tips for each single one of them. Fill out the fields, share them with your team, and before you know it you've got a shiny App Store page up and running.
    Learn more...
  • App Store Optimization: A Hands-On Guide for App Developers
    App Store Optimization: A Hands-On Guide for App Developers

    July 5 2015, in Guide, Marketing, Stories

    With App Store Optimization, you can rank your apps. See, with ASO you’re focusing on metrics that make your app rank better: its rank in the App Store top list (and in the search results) rises. Master ASO, and you can double or triple your app installs in a matter of minutes.
    Learn more...
  • Grand Central Dispatch: Multi-Threading With Swift 3
    Grand Central Dispatch: Multi-Threading With Swift 3

    January 9 2017, in Guide, Programming

    Multithreading is a mechanism computers can't live without. You know why? CPUs are kinda dumb – they can only do one thing at a time! Fortunately, as an app developer you can use Grand Central Dispatch to make your app execute multiple tasks concurrently. How?
    Learn more...
  • Don't Copy-and-Paste Your Code
    Don't Copy-and-Paste Your Code

    February 5 2017, in Careers, Programming

    A trend among beginner developers is growing at an alarming rate. In this article we'll explore the phenomenon of copying-and-pasting code, and how you can use it and avoid it to become a more self-sufficient coder.
    Learn more...