“This book is so great.” –Steve Wozniak, Apple Co-founder
Got a great game idea? This complete do-it-yourself guide shows you how to make your game idea a reality for the iPhone and iPad. By developing a real game hands-on through the course of this book, you’ll get a thorough introduction to Xcode and Objective-C, while learning how to implement game logic, sophisticated graphics, game physics, sounds, and computer AI.
Source Code (Xcode v6 with ARC) – Published on 6/2015
All Chapters – Download All ARC enabled code for all chapters in the book. The projects were all updated to work with Xcode 6 using Automatic Reference Counting (ARC). Now that this is the default for all new projects this is probably the best version to download. ARC is great because you no longer have to retain and release objects. This required enabling the project settings for ARC and removing any source code that referenced autorelease, release, retain, and dealloc.
Source Code (Xcode v6) – Published on 6/2015
All Chapters – Download All code for all chapters in the book. The projects were all updated to work with Xcode 6 but do not have ARC enabled so the code will look the same as it’s written in the book. The changes were mainly to the project itself to support the latest Xcode and fix a few compiler warnings. The minimum iOS target was also set to 4.3.
Source Code (Older Xcode v4)
Chapter 1: Introduction to Xcode – Download the Game code which asks math questions.
Chapter 2: Hello Pong – Download the Paddles code which implements the classic game of pong.
Chapter 4: Physics – Download the Touches code which draws circles around multiple touches.
Chapter 3-5: Graphics, Physics, Sounds – Download the AirHockey code which implements two player air hockey.
Chapter 6: Computer AI – Download the AirHockey+AI code code which adds 3 levels of computer difficulty.