Book Image

Learning iOS 8 Game Development Using Swift

By : Siddharth Shekar
Book Image

Learning iOS 8 Game Development Using Swift

By: Siddharth Shekar

Overview of this book

<p>Game development has been simplified with Apple's new programming language—Swift. If you're looking to start learning iOS development then you'll get everything you need - from&nbsp;the absolute basics such as the Xcode interface and takes you all the way to Swift programming.</p> <p>You will take a walk through the creation of 2D and 3D games followed by an introduction to SpriteKit and SceneKit. The book also looks at how game objects are placed in 3D scenes, how to use the graphics pipeline, and how objects are displayed on mobile screens. You will also delve into essential game concepts such as collision detection, animation, particle systems, and scene transitions. Finally, you will learn how to publish and distribute games to the iTunes store.</p>
Table of Contents (18 chapters)
Learning iOS 8 Game Development Using Swift
About the Author
About the Reviewers

Chapter 1. Getting Started

So you want to create games for iOS? With the introduction of SpriteKit in Xcode 5, it has become a breeze to create two-dimensional games for iOS. Previously, even before thinking about creating games, you had to think about what framework to use to create games. There were so many frameworks available, and each had its own pros and cons. Also, what if you wanted to create your own framework? In that case, you had to write it from the ground up using OpenGLES, which required writing a whole lot of code just to display a triangle. And let's not even talk about creating three-dimensional games using the frameworks, as most of the frameworks don't even support it.

Apple solved all of these questions and issues by giving all the required tools with Xcode 6. In Xcode 6, you are really limited by your imagination. You can create 2D or 3D games using SpriteKit and SceneKit. If you want to create your own 2D or 3D engine, there is Metal available, which makes it easy to communicate with the GPU (short for Graphics Processing Unit). But if you are a veteran and have used OpenGL ES to create games, don't worry! That option is still there, so you are not tied down to using only Metal. So, let's get started with iOS 8 game development with Xcode 6.

The following topics will be covered in this chapter:

  • Downloading and installing Xcode

  • Creating an iOS developer account

  • Introducing Swift

  • Introducing Playground

  • Introducing SpriteKit

  • Looking at the default SpriteKit project

  • New features in SpriteKit

  • Looking at the default SceneKit project

  • Understanding 3D objects

  • The 2D/3D coordinate system

  • Exploring SceneKit

  • Introducing Metal

  • The graphics pipeline