Book Image

iOS Game Programming Cookbook

Book Image

iOS Game Programming Cookbook

Overview of this book

Table of Contents (19 chapters)
iOS Game Programming Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Learning the basics of SpriteKit – The FlyingSpaceship tutorial


In this section we will learn and explore basic concepts of SpriteKit. We will also develop a mini game, which will help in understanding the concepts with some robust implementation. The best way to learn SpriteKit is to see it in action.

Getting ready

To build a SpriteKit game, firstly you need to understand the basic structure of a SpriteKit project. You can get started with a starter project having a SKScene and an SKNode placed on it. This would equip you with the setup to build your basic game.

How to do it...

To understand the basic concepts of game programming, let's create a new project with the SpriteKit game template with project name FlyingSpaceship. The project will demonstrate the structure of a SpriteKit project. The end goal of the project is that a Spaceship is visible on the screen and in the upcoming topics we can make it fly.

We will follow some of the same steps we performed in Chapter 1, iOS Game Development...