Contents
Chapter 1: A Simple First Game
Creating a Project in Xcode: Sample 1
Arranging Xcode Views to Make Life Easier
Adding the Rock, Paper, Scissors View
Chapter 2: Setting up Your Game Project
Customizing a Universal Application
How an iOS Application Initializes
Understanding UIViewControllers
Customizing Behavior Based on Device Type
Graphically Designing Your UI in a Universal Way
A First Look at Interface Builder
Adding UI Elements to an XIB File
Responding to Changes in Orientation
Chapter 3: Explore the Game Application Life Cycle
Understanding the Views in a Game
Exploring the Role Each View Plays
Understanding the Project’s Structure
Configuring an Application for Multiple Views
Changing Views in Response to User Actions
Using a Delegate to Communicate Application State
HighscoreController: A Simple, Reusable Component
Archiving and Unarchiving Game State
Chapter 4: Quickly Build an Input-Driven Game
Exploring How to Get Content on the Screen
Core Graphics Type Definitions
The Static Animation Tasks of UIView
Initializing the UIViews for Each Coin
Animating Views with Core Animation
Chapter 5: Quickly Build a Frame-by-Frame Game
Setting Up Your First Frame-by-Frame Animation
Understanding CADisplayLink and NSRunLoop
Chapter 6: Create Your Characters: Game Engine, Image Actors, and Behaviors
Understanding the Game Engine Classes
Working with the Power-Up Actor
Implementing Our Power-Up Actor
Inspecting ImageRepresentation
Understanding Behaviors by Example
Chapter 7: Build Your Game: Vector Actors and Particles
Saucers, Bullets, Shields, and Health Bars
Drawing Actors with Core Graphics via VectorRepresentation
The VectorRepresentation Class
A UIView for Vector-Based Actors: VectorActorView
Adding Particle Systems to Your Game
Creating Based Vector-Based Particles
Chapter 8: Building Your Game: Understanding Gestures and Movements
Extending UIView to Receive Touch Events
Applying Touch Events to Actors
Understanding Gesture Recognizers
Responding a to Motion Event (Shaking)
Responding to Accelerometer Data
Chapter 9: Game Center and Social Media
Enabling Game Center in iTunes Connect
Using Game Center in Your Game
Creating a Facebook Application
Chapter 10: Monetizing via the Apple App Store
Preparing for In-app Purchases
Enabling and Creating In-App Purchases
Class and Code for In-App Purchases
In-App Purchase Implementation
Driving the UI from Existing Purchases
Responding to a Successful Purchase
Chapter 11: Add Sound to Your Game
Users Switch Their Devices to Silent When They Want To
Your Game May Not Be the Only Application Making Sound
Your Game Is Not the Only Application
Implementing Sound in Your Game
Responding to Other Audio Changes
Sound Effects for In-game Events
Chapter 12: A Completed Game: Belt Commander
Implementing View-to-View Navigation
Understanding BeltCommanderController
BeltCommanderController, One Step at a Time
Overview of the Physics-Based Example
Adding Box2D to an Xcode Project
18.117.152.26