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 Game Development By Example

You're reading from   iOS Game Development By Example Learn how to develop an ace game for your iOS device, using Sprite Kit

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher Packt
ISBN-13 9781785284694
Length 220 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Samanyu Chopra Samanyu Chopra
Author Profile Icon Samanyu Chopra
Samanyu Chopra
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. An Introduction to Sprite Kit FREE CHAPTER 2. Scenes in Sprite Kit 3. Sprites 4. Nodes in Sprite Kit 5. Physics in Sprite Kit 6. Animating Sprites, Controls, and SceneKit 7. Particle Effects and Shaders 8. Handling Multiple Scenes and Levels 9. Performance Enhancement and Extras 10. Revisiting Our Game and More on iOS 9 Index

Setting up a project

We have discussed many things about Sprite Kit, now it's time to see a project in action and gain some practical knowledge.

The Hello World project

We'll need to create a new project to build Hello World. An Xcode project organizes everything your app needs into one convenient place. Let's begin by creating a brand new game project in Xcode by carrying out either of the first two points, and then continuing as shown in the list:

  1. Click on Create a new Xcode project on the welcome screen:
    The Hello World project
  2. Instead, you can also select File | New | Project… from the file menu:
    The Hello World project
  3. Select Game from the new project selection window:
    The Hello World project
  4. The next window asks you to customize options for your project. Fill out the fields as shown in the following screenshot:
    The Hello World project
    • Product Name: It is the name of the game
    • Organization Name: If you are an individual, then your name, or the name of the organization
    • Organization Identifier: A unique identifier of your organization
    • Bundle Identifier: It is a default ID generated automatically using organization identifier and product name.
    • Language: The programming language you are using, that is, Objective-C or Swift
    • Game Technology: The game framework being used, like Scene Kit, Sprite Kit, Metal, and so on
    • Devices: The devices you want your game to run on; iPad, iPhone, or both
    • These fields can be anything you want
  5. Press Next and Xcode will ask where to save your new project. Choose a directory and then click on Create.
  6. After saving, it should open Xcode to your brand new Hello World project, specifically to the project properties screen. On this screen, unselect the Portrait option under Device Orientation. This file will be automatically saved, so you won't have to do anything further:
    The Hello World project
You have been reading a chapter from
iOS Game Development By Example
Published in: Aug 2015
Publisher: Packt
ISBN-13: 9781785284694
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 €18.99/month. Cancel anytime