Learning Objective-C by Developing iPhone Games

Leverage Xcode and Objective-C to develop iPhone games.

Learning Objective-C by Developing iPhone Games

Learning
Joseph D. Walters, Amy M. Booker

Leverage Xcode and Objective-C to develop iPhone games.
$29.99
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781849696104
Paperback284 pages

About This Book

  • Get started with the Xcode development environment
  • Dive deep into programming with Objective-C
  • A practical and engaging tutorial to create vintage games such as Space Invaders and Galaga

Who This Book Is For

If you are a beginner and an enthusiast who dreams about creating games and is in need of some additional inspiration and knowledge, then this book is for you. No programming experience is expected.

Table of Contents

Chapter 1: 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
Chapter 2: Programming and Objective-C
Understanding Objective-C
Programming basics
Object-oriented programming
Hello World!
Programming with Objective-C
Model-view-controller
Summary
Chapter 3: iPhone Game Development Basics – The Matching Game
Scenes and views
Summary
Chapter 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
Chapter 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
Chapter 6: The Audio Engine – The Simon Memory Game
Introduction to audio
File formats
Data formats
The Simon Says game
Summary
Chapter 7: 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
Chapter 8: 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
Chapter 9: 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
Chapter 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

What You Will Learn

  • Understand the basics of Objective-C and develop code in the iOS language
  • Set up multiple screens in iOS and make easy transitions from one screen to another
  • Create a simple audio-based memory game using basic game logic
  • Display a background image for your game and program your aliens to drop bombs
  • Build a simple user interface using Xcode's interface builder
  • Program your graphics to move using buttons, gestures, and multitouch interactivity
  • Overcome common issues that developers run in to at one point or another
  • Explore the Apple Store and iTunes Connect's submission process and prepare your app for distribution

In Detail

The introduction of the Apple Store has empowered thousands, even millions of people to embrace software development. Using Objective-C and the Xcode IDE, you can produce awesome games and launch them on the Apple Store allowing you to make and sell games quickly and easily.

From learning the basics of Objective-C to deploying to the App Store, you'll use this book to learn about game development in a matter-of-fact, helpful manner. Whether you're new to game development, or just want to learn how to leverage Apple's own tools to expand your skill set, you'll quickly move from a beginner to an expert.

The book kicks off with the basics of game development, and you will take your first steps with using Xcode, the official Apple programming IDE, before moving on to the most important concepts involved in programming games using Objective-C. This book is a hands-on guide to developing the game of your dreams in no time for the Apple Store.

Authors

Table of Contents

Chapter 1: 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
Chapter 2: Programming and Objective-C
Understanding Objective-C
Programming basics
Object-oriented programming
Hello World!
Programming with Objective-C
Model-view-controller
Summary
Chapter 3: iPhone Game Development Basics – The Matching Game
Scenes and views
Summary
Chapter 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
Chapter 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
Chapter 6: The Audio Engine – The Simon Memory Game
Introduction to audio
File formats
Data formats
The Simon Says game
Summary
Chapter 7: 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
Chapter 8: 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
Chapter 9: 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
Chapter 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

Book Details

ISBN 139781849696104
Paperback284 pages
Read More