PacktLib: Learning Objective-C by Developing iPhone Games

Learning Objective-C by Developing iPhone Games

Credits

About the Authors

About the Reviewers

www.PacktPub.com

Preface

The Environment – Installing and Working with Xcode

Becoming an Apple developer

Becoming an iOS developer

Downloading and installing Xcode

The Xcode IDE

The Xcode workspace

The iOS Simulator

Summary

Programming and Objective-C

Understanding Objective-C

Programming basics

Object-oriented programming

Hello World!

Programming with Objective-C

Model-view-controller

Summary

iPhone Game Development Basics – The Matching Game

Scenes and views

Summary

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

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

The Audio Engine – The Simon Memory Game

Introduction to audio

File formats

Data formats

The Simon Says game

Summary

User Interactivity – Mini Golf

Using user input and touch events

Using gestures in iOS apps

Using touch start, move, and end

Using other mechanisms

Summary

The Galaxy Game

Planning the game

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

Releasing Your Game

Preparing your app for distribution

Selecting your identity

The deployment information

Selecting app icons and launch images

Beta testing and ad hoc distribution

Avoiding rejection from the App Store

Summary

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