Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Learning Objective-C by Developing iPhone Games
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. The Environment – Installing and Working with Xcode
Becoming an Apple developer
Registering as an Apple developer
Becoming an iOS developer
Registering as an iOS developer
Downloading and installing Xcode
The Xcode IDE
Opening Xcode for the first time
The Xcode workspace
The toolbar
The Run button
The Stop button
The Scheme pop-up menu
The Activity viewer
The Editor buttons
The View buttons
The Navigation area
The Editor area
The Debugger area
The Utility area
The iOS Simulator
Summary
2. Programming and Objective-C
Understanding Objective-C
Programming basics
Basic data types
Text data types
Numeric data types
Other data types
Variables
Constants
Comments
Operators
Arithmetic operators
Comparison operators
Logical operators
Increment and decrement operators
Compound operators
Control statements
The if statement
The if…else statement
The if…else if statement
The switch statement
Loops
The for loop
The while loop
The do while loop
The break statement
The continue statement
Functions
Variable scope
Object-oriented programming
Objects
Classes
Methods
Pointers
Objective-C data types
NSString
NSMutableString
NSNumber
NSSet
NSMutableSet
NSArray
NSMutableArray
Hello World!
Programming with Objective-C
@interface
@implementation
Model-view-controller
Summary
3. iPhone Game Development Basics – The Matching Game
Scenes and views
Understanding storyboards
The memory game code
Frameworks
Building our game scene
Summary
4. Drawing Pictures – Space Invaders
Understanding screens and graphics
Adding graphics programmatically
Moving our ship sprite
Creating our enemies
Using a sprite sheet
Creating the enemy bombs
Summary
5. The Game Engine – Space Invaders Part 2
Understanding the game logic
Understanding state machines
Learning the game state
Collision detection
Timers and frame rates
Debugging your code
Summary
6. The Audio Engine – The Simon Memory Game
Introduction to audio
File formats
Bit rates
Sample rates
Data formats
The Simon Says game
Summary
7. User Interactivity – Mini Golf
Using user input and touch events
Using gestures in iOS apps
Using touch start, move, and end
Initializing our code
Touch events
Updating the screen
Using other mechanisms
Shake
Orientation
Tilt
Motion
Summary
8. The Galaxy Game
Planning the game
Creating the game concept document
Creating the game design document
Creating the technical design document
Considering the design and flow
Focusing on resource management
Creating game screens
Building the user interface
Setting up the gameplay environment
Creating and controlling the player
Creating and controlling the enemies
Collision detection
Adding sounds
Summary
9. Releasing Your Game
Preparing your app for distribution
Selecting your identity
The bundle identifier
The version number and build string
Team
The deployment information
The deployment target
Devices
The device orientation
The status bar style
Selecting app icons and launch images
Linked frameworks and libraries
Beta testing and ad hoc distribution
Register all test devices
App ID
Ad hoc provisioning profile
Archive and create your app package
Installing on test devices
iTunes Connect app
Avoiding rejection from the App Store
Summary
10. Conclusion
Developing an app for iPad
Using Apple's game center
In-app purchasing
Implementing iAd
The social framework
Core Location and Map Kit
Saving space with iCloud
Exploring game engines
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →