iPhone® Game Development
iPhone® Game Development
Published byWiley Publishing, Inc.10475 Crosspoint BoulevardIndianapolis, IN 46256www.wiley.com
Copyright © 2010 by Wiley Publishing, Inc., Indianapolis, Indiana
Published by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
ISBN: 978-0-470-49666-4
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, 201-748-6011, fax 201-748-6008, or online at http://www.wiley.com/go/permissions.
Limit of Liability/Disclaimer of Warranty: The publisher and the authors make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the authors shall be liable for damages arising herefrom. The fact that an organization or Website is referred to in this work as a citation and/or a potential source of further information does not mean that the authors or the publisher endorses the information the organization or Website may provide or recommendations it may make. Further, readers should be aware that Internet Websites listed in this work may have changed or disappeared between when this work was written and when it is read.
For general information on our other products and services or to obtain technical support, please contact our Customer Care Department within the U.S. at (877) 762-2974, outside the U.S. at (317) 572-3993 or fax (317) 572-4002.
Library of Congress Control Number: 2009936818
Trademarks: Wiley, the Wiley logo, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. iPhone is a registered trademark of Apple, Inc. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books.
This book is dedicated to the two most important women in my life: Mom, without your many sacrifices, nothing would have been possible; and Kathy, the love of my life, your love and patience strengthens me. —Chris
To my wife and kids, who made this possible, I thank God for all of you. —Jamey
About the Authors
Chris Craft is a software developer focusing primarily on device application development. He is a frequent CodeProject.com article author. Chris currently serves as a senior software architect for ACS Technologies Group, Inc., where he concentrates on his passion: mobile development. He previously was a senior developer for Taylor Data Systems, where he worked on sales force automation, field service, inventory, and data collection mobile applications. In the technical community, Chris is cofounder of a local developer user group and is also a member of Revolution Church. He has recently become engaged to Kathy Gulledge of Florence, South Carolina.
Jamey McElveen has been a game development enthusiast since 1995. He began coding games back in the days of DOS. With the release of the iPhone SDK he was one of the developers in the original gold rush to the App Store. Jamey works in Florence, South Carolina, as lead software architect at ACS Technologies Group, Inc. He is passionate about software and its role in Christianity and the field of Ministry. Jamey obtained his degree in Computer Engineering from Clemson University. He lives with his wife, Connie, and three boys, Jake, Slater, and Seth, in Timmonsville, South Carolina.
Chris and Jamey are the founders of the popular iPhone development site, http://appsamuck.com. They released their first training example the first day the NDA was lifted from the 2.0 SDK: 10/1/2008. They continued the series every day for 31 days until 10/31/2008.
Credits
Acquisitions Editor
Aaron Black
Executive Editor
Jody Lefevere
Project Editor
Lynn Northrup
Technical Editor
Jesse David Hollington
Editorial Director
Robyn Siesky
Editorial Manager
Cricket Krengel
Business Manager
Amy Knies
Senior Marketing Manager
Sandy Smith
Vice President and Executive Group Publisher
Richard Swadley
Vice President and Executive Publisher
Barry Pruett
Project Coordinator
Kristie Rees
Graphics and Production Specialists
Andrea HornbergerJennifer Mayberry
Proofreading
Laura L. Bowman
Indexing
BIM Indexing & Proofreading Services
Media Development Project Manager
Laura Moss
Media Development Assistant Project Manager
Jenny Swisher
Media Development Associate Producer
Doug Kuhn