<p> Game apps on iPhone and now iPad remain one of the most popular type of apps in the Apple iTunes App Store. Does Angry Birds ring a bell? What you were once able to do just for the iPhone (and iPod touch) is now possible for the popular iPad, using the new iOS 5 SDK. <br /> <br /> <em>Beg
Beginning iOS 5 Games Development: Using the iOS SDK for iPad, iPhone and iPod touch
✍ Scribed by Lucas Jordan
- Publisher
- Apress
- Year
- 2011
- Tongue
- English
- Leaves
- 341
- Category
- Library
No coin nor oath required. For personal study only.
✦ Synopsis
Game apps on iPhone and now iPad remain one of the most popular type of apps in the Apple iTunes App Store. Does Angry Birds ring a bell? What you were once able to do just for the iPhone (and iPod touch) is now possible for the popular iPad, using the new iOS 5 SDK.
Beginning iOS 5 Games Development provides a clear path for you to create games using the iOS 5 SDK platform for the iPad, iPhone, and iPad touch. You'll learn how to use classes to create game apps, including graphics, and animations. The latest version of Xcode will be used in parts of the book to guide you along the way of building your apps.
Other topics include iOS 5 game apps development with the newest iOS Game Center update, persisting user data, and designing a compelling user experience. After reading this book, you'll come away with the skills and techniques for building a game app, top to bottom, that could perhaps even be sold on the Apple iTunes App Store.
✦ Table of Contents
Title Page
Copyright Page
Contents at a Glance
Table of Contents
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Chapter-by-Chapter Overview
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Appendix A
Chapter 1 A Simple First Game
Creating a Project in Xcode: Sample 1
A Project’s File Structure
Customizing Your Project
Arranging Xcode Views to Make Life Easier
Adding a New View
Simple Navigation
Adding the Rock, Paper, Scissors View
Customizing a UIView
Summary
Chapter 2 Setting Up Your Game Project
Creating 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
Add a UIViewController to a XIB
Creating New IBOutlets from Interface Builder
Responding to Changes in Orientation
Summary
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
Reviewing GameController_iPhone.xib
Reviewing GameController.h
Bringing the Views onto the Screen
Changing Views in Response to User Actions
Using a Delegate to Communicate Application State
Declaring CoinsControllerDelegate
Implementing the Defined Tasks
HighscoreController: A Simple, Reusable Component
HighscoreController Implementation and Layout
The Highscores Class
The Score Class
Preserving Game State
Archiving and Unarchiving Game State
Implementing Life Cycle Tasks
Summary
Chapter 4 Quickly Build an Input-Driven Game
Exploring How to Get Content on the Screen
Understanding UIView
Core Graphics Type Definitions
Using Core Graphics Types
Understanding Animations
The Static Animation Tasks of UIView
Building the Game Coin Sorter
Implementing Game State
Initialization and Setup
Starting a New Game
Continuing a Game
Initializing the UIViews for Each Coin
The Model
Interpreting User Input
Animating Views with Core Animation
Summary
Chapter 5 Quickly Build a Frame-by-Frame Game
Setting Up Your First Frame-by-Frame Animation
Simple Movement
Implementing the Classes
Moving the Spaceship
Responding to a User Tap
Understanding CADisplayLink and NSRunLoop
Abstracting the UI
Understanding Actors
Example2Controller Overview
A Simple Actor
Actor Subclasses: Viper02
Actor Subclass: Asteroid02
Drawing Actors on the Screen
Updating the UIView for Each Actor
Placing UIImageView in the Screen
Actor State and Animations
The Tumbling Effect
The Rotating Effect
Summary
Chapter 6 Create Your Characters: Game Engine, Image Actors, and Behaviors
Understanding the Game Engine Classes
The GameController Class
Setting Up GameController
Calling displayLinkCalled and updateScene
Updating updateScene
Calling doAddActors and doRemoveActors
Adding and Removing Actors
Sorting Actors
Managing the UIView
The Actor Class
Implementing Actor
Working with the Power-Up Actor
Implementing Our Power-Up Actor
Inspecting ImageRepresentation
Creating the Implementation of Powerup
Finding the Correct Image for an Actor
Creating the UIImageView for an Actor
Updating Our Views
Understanding Behaviors by Example
Behavior: Linear Motion
Behavior: ExpireAfterTime
Summary
Chapter 7 Build Your Game: Vector Actors and Particles
Saucers, Bullets, Shields, and Health Bars
The Actor Classes
Instantiating the Saucer Class
Instantiating the HealthBar Class
The Behavior FollowActor Class
The Bullet Class
Drawing Actors with Core Graphics via VectorRepresentation
The VectorRepresentation Class
A UIView for Vector-Based Actors: VectorActorView
Drawing a HealthBar
Drawing the Bullet Class
Adding Particle Systems to Your Game
Simple Particle System
The Asteroid Class
Representing an Asteroid and Particle with the Same Class
Destroying an Asteroid
The Particle Class
Creating Based Vector-Based Particles
Summary
Chapter 8 Building Your Game: Understanding Gestures and Movements
Touch Input: The Basics
Extending UIView to Receive Touch Events
Looking At the Event Code
Applying Touch Events to Actors
Understanding Gesture Recognizers
Tap Gestures
The TemporaryBehavior Class
Pinch Gestures
Responding to the Pinch Gesture
Pan (or Drag) Gesture
Responding to Pan Gestures
Rotation Gesture
Long Press Gesture
Responding to the User
Adding the Bullet
Swipe Gesture
Interpreting Device Movements
Responding a to Motion Event (Shaking)
Responding to Accelerometer Data
Summary
Chapter 9 Game Center and Social Media
Game Center
Enabling Game Center in iTunes Connect
Using Game Center in Your Game
Enabling Game Center for a User
Submitting Scores to a Leaderboard
Awarding Achievements
Twitter Integration
Facebook Integration
Getting Started with the iOS and Facebook
Creating a Facebook Application
Facebook Authentication
Initializing Facebook
Authentication with Facebook
Facebook API Calls
Summary
Chapter 10 Monetizing via the Apple App Store
In-App Purchases
Overview of Purchase Types
Non-consumable
Consumable
Subscriptions
Auto-Renewing Subscriptions
Preparing for In-app Purchases
Enabling and Creating In-App Purchases
Creating a Test User
Class and Code for In-App Purchases
In-App Purchase Implementation
Driving the UI from Existing Purchases
Making the Purchase
Responding to a Successful Purchase
Summary
Chapter 11 A Completed View Belt Commander
Belt Commander: Game Recap
Implementing View-to-View Navigation
Launching the Application
The XIB Files
View Navigation
Implementing the Game
Game Classes
Actor
Representation
Behavior
Understanding BeltCommanderController
BeltCommanderController: Getting Started
Understanding the Setup
A New Game
Handling Input
BeltCommanderController One Step At a Time
Adding Actors
Collision Detection
Updating the HUD
Implementing the Actors
The Viper Actor
The Asteroid Class
The Saucer Class
The Powerup Class
Summary
Appendix A Designing and Creating Graphics
The Art in Video Games
Style in Video Games
Branding and Perception
Creating the Images Files
Naming Conventions
Support Images
Mutli-Resolution Images
A Multi-Resolution Example
Creating Final Assets
Screen Real Estate
Tools
GIMP
Blender 3D
Inkscape
Summary
Index
📜 SIMILAR VOLUMES
Game apps on iPhone and now iPad remain one of the most popular type of apps in the Apple iTunes App Store. Does Angry Birds ring a bell? What you were once able to do just for the iPhone (and iPod touch) is now possible for the popular iPad, using the new iOS 5 SDK. Beginning iOS 5 Games Develop
Game apps on iPhone and now iPad remain one of the most popular type of apps in the Apple iTunes App Store. Does Angry Birds ring a bell? What you were once able to do just for the iPhone (and iPod touch) is now possible for the popular iPad, using the new iOS 5 SDK. Beginning iOS 5 Games
Game apps on iPhone and now iPad remain one of the most popular type of apps in the Apple iTunes App Store. Does Angry Birds ring a bell? What you were once able to do just for the iPhone (and iPod touch) is now possible for the popular iPad, using the new iOS 5 SDK. Beginning iOS 5 Games
Game apps on iPhone and now iPad remain one of the most popular type of apps in the Apple iTunes App Store. Does Angry Birds ring a bell? What you were once able to do just for the iPhone (and iPod touch) is now possible for the popular iPad, using the new iOS 5 SDK. Beginning iOS 5 Games