Build A Simple Game With Swift 3

Written by: Reinder de Vries, November 17 2016, in App Development, App Projects

Build A Simple Game With Swift 3

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!
Got a killer app idea?

Grab the App Toolbox 2017 to learn how to save time building your app, and how to 10x your app installs in the App Store. With the toolbox, you’ll immediately know how to move forward to build better, more profitable apps.

Get 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!

Written By: Reinder de Vries

Reinder de Vries is an indie app developer who teaches aspiring app developers and marketers how to build their own apps at LearnAppMaking.com. Since 2009 he has developed over 50 apps for iOS, Android and the web, and his code is used by millions of users all over the globe. When Reinder isn't building apps, he enjoys strong espresso and traveling.

Got a killer app idea?

Grab the App Toolbox 2017 to learn how to save time building your app,
and how to 10x your app installs in the App Store. With the toolbox, you'll immediately know how to move forward to build better, more profitable apps.

Get The App Toolbox

Comments & Thoughts


Leave a Reply

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

On The Blog


  • Using In-App Deeplinking To Promote Native App Content
    Using In-App Deeplinking To Promote Native App Content

    April 19 2015, in App Marketing

    In a sense, the app industry is still in its nineties. The Apple App Store is a rich-media example of that first web directory from Yahoo!’s Jerry and David: it’s a huge list of apps. Apart from text, images and catalog-style links there’s not much contextual information available. Each day about 300 apps get published in the iOS App Store alone, but most of them never even get close to the Top 100 list. Many perfectly good apps go by largely unnoticed, due to the nature of the app stores.
    Learn more...
  • As a Beginner App Developer, Should I Learn Swift or Objective-C?
    As a Beginner App Developer, Should I Learn Swift or Objective-C?

    January 13 2015, in App Development

    On Quora, several times each week I get asked the same question: Should I learn Objective-C or Swift? Together with Dale Grant I dove in to come up with a good answer to this question -- read on.
    Learn more...
  • Apple WWDC 2015: What Did You Miss?
    Apple WWDC 2015: What Did You Miss?

    June 14 2015, in App Development

    One week ago, the main keynote of the World Wide Developer Conference 2015 happened. Every year, Apple presents new technologies and products for developers during WWDC. This year, Apple announced a lot of exciting stuff for app developers – what did you miss?
    Learn more...
  • Mentorship Opportunities at LearnAppMaking
    Mentorship Opportunities at LearnAppMaking

    October 10 2016, in Indie App Business

    At LearnAppMaking we're always inventing new education products for app makers. In an ongoing attempt to serve aspiring app developers better, we're currently offering limited mentorship opportunities to select app developers. Read on to find out how you can apply.
    Learn more...