Beginning Android 4 Games Development
Copyright 2011 by Mario Zechner and Robert Green
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-3987-1
ISBN-13 (electronic): 978-1-4302-3988-8
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image, we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.
The images of the Android Robot (01 / Android Robot) are reproduced from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License. Android and all Android and Google-based marks are trademarks or registered trademarks of Google, Inc., in the U.S. and other countries. Apress Media, L.L.C. is not affiliated with Google, Inc., and this book was written without endorsement from Google, Inc.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
President and Publisher: Paul Manning
Lead Editor: Steve Anglin
Development Editor: Gary Schwartz
Editorial Board: Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell,
Morgan Engel, Jonathan Gennick, Jonathan Hassell, Robert Hutchinson,
Michelle Lowman, James Markham, Matthew Moodie, Jeff Olson, Jeffrey Pepper,
Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft, Gwenan Spearing,
Matt Wade, Tom Welsh
Coordinating Editor: Adam Heath
Copy Editor: Chandra Clarke
Compositor: MacPS, LLC
Indexer: BIM Indexing & Proofreading Services
Artist: SPi Global
Cover Designer: Anna Ishchenko
Distributed to the book trade worldwide by Springer Science+Business Media, LLC., 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com
, or visit www.springeronline.com
.
For information on translations, please e-mail rights@apress.com
, or visit www.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 SaleseBook Licensing web page at www.apress.com/bulk-sales
.
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.
Any source code or other supplementary materials referenced by the author in this text is available to readers at www.apress.com
. For detailed information about how to locate your book's source code, go to http://www.apress.com/source-code/
.
Dedicated to our idols, fans, families, and loved ones
Contents at a Glance
Contents
About the Authors
Mario Zechner is a software engineer in R&D by day, and an enthusiastic game developer by night, publishing under the name of Badlogic Games. He developed the game Newton for Android, and Quantum for Windows, Linux, and Mac OSX, besides a ton of prototypes and small-scale games. He's currently working on an open source cross-platform solution for game development called libgdx. In addition to his coding activities, he actively writes tutorials and articles on game development, which are freely available on the Web and specifically his blog (http://www.badlogicgames.com
).
Robert Green is the founder of the game studio Battery Powered Games in Portland, Oregon. He has developed nine Android games including Deadly Chambers, Antigen, Wixel, Light Racer, and Light Racer 3D. Before diving full-time into mobile video game development and publishing, Robert worked for software companies in Minneapolis and Chicago, including IBM Interactive. Robert's current focus is on cross-platform game development and high-performance mobile gaming. Robert often updates his personal blog with game programming tidbits at