Welcome to GameDoneSwift! Our first project tutorial on github!
All the branches in this repo are set up as different sections of a tutorial series with the final product of creating a basic game in swift. The branches are as follows:
- Brand-New-Project
- Where to go if you want to start the whole journey from the beginning.
- Reticulating-Splines
- Details how to setup and link the game scene.
- Lets-Get-Physical
- Setting up the physics of the game.
- As-The-World-Turns
- Generating random infinite content.
- Game-Over
- Adding final touches like music and reset.
This branch (master) contains the full completed game.
A simple introduction on how to use SpriteKit and Swift. Some basic Swift features such as guard
statements and do-try-catch
blocks will be used throughout the tutorial. You'll also learn
the basics of the SpriteKit physics engine and how to add physics bodies to your sprites. The
SpriteKit scene editor will be used, and instructions on how to set up a game scene using it will
be detailed. We'll also give a very basic explanation on how game scenes work.
In general the code was written to be easy to follow, so a lot of higher level functionality available
in Swift, iOS, and even SpriteKit won't be used. This also means that all code won't be optimized or
written as modualar as possible (seriously, GameScene.swift
gets pretty large by the end).
Functions are seperated out in a logical way, but not necessarily the way they would be for a
release candidate project. It is also assumed that you know how to use git. We don't plan on teaching
how to navigate branches. If any of this bothers you, this probably isn't the tutorial you're
looking for.
However, if all you want is a quick and dirty dive into SpriteKit then welcome aboard! You can start the tutorial over in the Brand-New-Project branch.
Depending on how serious you take the tutorial, it should only take ~1 hour from start to finish.
- Author: Kyle Craig
- Co-Author and Tester: Evan Compton
- Music: Evan Compton
- Unicorn: Jacob Cummings