Game Development Reference
In-Depth Information
SuperSpaceMan
I feel the best way to learn anything is to do it. Therefore, in this topic you are going to
dive right in and create your own game. You will start off with the basic code for a 2D
game, and you will add new features to the game as I introduce new topics with each
chapter. At the end of the topic, you will have a complete game.
The game you are going to create is inspired by Sega's popular Sonic Jump Fever ( ht-
tps://itunes.apple.com/us/app/sonic-jump-fever/
id794528112?mt=8 ) . It is a vertical scroller that accelerates the main character
through obstacles and collectables, increasing your score as you collect rings.
This game will be similar, in that it is a vertical scroller, but your main character is going
to be a space man who hurtles through space collecting power orbs while trying to avoid
black holes that will destroy him.
Creating a Swift Sprite Kit Project
Before you can get started, you will need to create a Swift Sprite Kit project. So, go ahead
and open Xcode and complete the following steps:
1.
Select the menu File
New
Project.
2.
Select Application from the iOS group.
3.
Then select the Game icon. The choose template dialog should now look like
Figure 1-1 .
Search WWH ::




Custom Search