Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
iOS 9 Game development Essentials

You're reading from   iOS 9 Game development Essentials Design, build, and publish an iOS game from scratch using the stunning features of iOS 9

Arrow left icon
Product type Paperback
Published in Nov 2015
Publisher
ISBN-13 9781784391430
Length 224 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Chuck Gaffney Chuck Gaffney
Author Profile Icon Chuck Gaffney
Chuck Gaffney
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. The Swift Programming Language 2. Structuring and Planning a Game Using iOS 9 Storyboards and Segues FREE CHAPTER 3. SpriteKit and 2D Game Design 4. SceneKit and 3D Game Design 5. GameplayKit 6. Exhibit the Metal in Your Game 7. Publishing Our iOS Game 8. The Future of iOS Game Development Index

Creating our SpriteKit game

Now that we know the goal of our game, here's how we go about building it in SpriteKit:

  1. First, open Xcode and create a new project.
  2. Now select the Game template and click on Next.
    Creating our SpriteKit game
  3. Next, fill in the product name. We will name this project SwiftSweeperExample and make sure that the language is Swift with SpriteKit selected as the game technology as well as the devices set to iPhone.
    Creating our SpriteKit game
  4. Then, click on Next, and we now have a brand new SpriteKit game project with a number of files already written up for us to get us started.
  5. Now click on the project's main file in the navigation pane and deselect all but the Portrait selection in the Device Orientation field.
    Creating our SpriteKit game
  6. Since we are going to work mostly with code, we can also either ignore or delete the GameScene.sks file for now. These files are Xcode's option for you to visually design your game scene. We will know more on these files later when we work with our more visually designed SpriteKit game example.
  7. Build and...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime