/GoGoTram-iOS

An iOS game about trams for learning Swift 🚃

Primary LanguageSwiftMIT LicenseMIT

GoGoTram 🚃

This project is for those interested in learning game play in Swift.

It was built with Xcode 11 in Swift 5.1.

Contents

Swift Introduction

These are playground files, which are best opened with Xcode so they can be executed.

  1. Functions, Variables, and Comments
  2. Classes, Initalisers, and Structs
  3. Optionals

Creating the GoGoTram app

  1. Creating a project
  2. Creating a tram
  3. Passengers and signal faults
  4. Collision detection
  5. Game state
  6. Labels and buttons
  7. Next steps

Images

You can find the image resources for this project here.

Solutions

This project comes with two solutions:

Solution is what you will get by following the instructions.

Solution+ is an extension on the original Solution with some added features and refinements.