[APRESS] Beginning iPhone Games Development (Peter Bakhirev) (2010).pdf

(12738 KB) Pobierz
Essential Guide for all iPhone
and iPod touch Game Developers
iPhone Games
Development
Peter Bakhirev
|
PJ Cabrera
|
Ian Marsh
|
Scott Penberthy
Ben Britten Smith
|
Eric Wing
Beginning
Beginning iPhone
Games Development
■■■
Peter Bakhirev
PJ Cabrera
Ian Marsh
Scott Penberthy
Ben Britten Smith
Eric Wing
i
Beginning iPhone Games Development
Copyright © 2010 by Peter Bakhirev, PJ Cabrera, Ian Marsh, Scott Penberthy, Ben Britten Smith
and Eric Wing
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any
means, electronic or mechanical, including photocopying, recording, or by any information
storage or retrieval system, without the prior written permission of the copyright owner and the
publisher.
ISBN-13 (pbk): 978-1-4302-2599-7
ISBN-13 (electronic): 978-1-4302-2600-0
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
Trademarked names may appear in this book. Rather than use a trademark symbol with every
occurrence of a trademarked name, we use the names only in an editorial fashion and to the
benefit of the trademark owner, with no intention of infringement of the trademark.
Publisher and President: Paul Manning
Lead Editor: Clay Andres
Developmental Editor: leffrey Pepper
Technical Reviewer: Peter Bakhirev, Eric Wing and Ben Britten Smith
Editorial Board: Clay Andres, Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell,
lonathan Gennick, lonathan Hassell, Michelle Lowman, Matthew Moodie, Duncan
Parkes, leffrey Pepper, Frank Pohlmann, Douglas Pundick, Ben Renow-Clarke, Dominic
Shakeshaft, Matt Wade, Tom Welsh
Coordinating Editor: Kelly Moritz
Copy Editor: Marilyn Smith
Compositor: MacPS, LLC
Indexer: Potomac Indexers
Artist: April Milne
Cover Designer: Anna Ishchenko
Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th
Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax 201-348-4505, e-mail
orders-
nygspringer-sbm.com,
or visit www.
springeronline. com.
For information on translations, please e-mail
rights@apress.com,
orvisitvvww.apress.com.
Apress and friends of ED books may be purchased in bulk for academic, corporate, or
promotional use. eBook versions and licenses are also available for most titles. For more
information, reference our Special Bulk Sales-eBook Licensing web page at
www.apress.com/info/bulksales.
The information in this book is distributed on an "as is" basis, without warranty. Although every
precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall
have any liability to any person or entity with respect to any loss or damage caused or alleged to
be caused directly or indirectly by the information contained in this work.
The source code for this book is available to readers atwww.apress.com. You will need to answer
questions pertaining to this book in order to successfully download the code.
Contents at a Glance
Contents at a Glance
Contents
About the Authors
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: A Revolutionary Gaming Platform:
Games for Everyone, Anytime, Anywhere
Chapter 2: Developing iPhone Games:
Peeking Inside the iPhone Toolbox
Chapter 3: Moving Images on a Small Screen—UIKit Controls
Chapter 4: She Shoots, She Hits, She Scores!
Chapter 5: Flipping Out and Sweeping Away with Core Animation
Chapter 6: OpenGL Basics: Wrapping Your Head
Around the OpenGL API
Chapter 7: Putting It Together: Making a Game in OpenGL
Chapter 8: The Next Steps: Atlases, Sprites, and Particles—Oh My!
Chapter 9: Introduction to Core Audio
Chapter 10: Making Noise with OpenAL
Chapter 11: 3D Audio—Turning Noise into Game Sounds
Chapter 12: Streaming: Thumping, Pulse-Quickening
Game Excitement
Chapter 13: Networking for iPhone Games: Introduction
Chapter 14: Going Head to Head
Chapter 15: Party Time
Chapter 16: Connecting with the Outside World
Chapter 17: Putting It All Together: Now Comes the Fun Part
Index
iv
v
xiii
xv
xvi
xvii
1
13
21
79
137
161
203
261
315
353
423
463
537
543
583
637
649
653
Contents
Contents at a Glance
Contents
About the Authors
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: A Revolutionary Gaming Platform:
Games for Everyone, Anytime, Anywhere
The Ever-Present iPhone
Mass Appeal—There's a Gamer Born Every Minute
User Interfaces—Death of the D-Pad
Connectivity—Plays Well with Others
User Data—This Time It's Personal
Device Performance—A Multimedia Powerhouse
Dev Kit? You're Holding It!
Innovation—Good Things Come from Small Developers
Summary
iv
v
xiii
xv
xvi
xvii
1
1
2
4
5
6
8
9
10
11
Chapter 2: Developing iPhone Games:
Peeking Inside the iPhone Toolbox
Development Tools and Environment
UIKit
Quartz 2D and Core Animation
OpenGL ES
Audio APIs
Networking
Summary
13
13
14
15
16
17
18
19
Zgłoś jeśli naruszono regulamin