Pro Android Games Dec 2009, informatyka, android, pro android games

[ Pobierz całość w formacie PDF ]
Create and port cool games like
Space Blaster
, classic
Asteroids™
,
Doom
and
Wolfenstein™ 3D
using Android
Pro
Android Games
Vladimir Silva
                 Pro Android Games
■ ■ ■
Vladimir Silva
Pro Android Games
Copyright © 2009 by Vladimir Silva
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-2647-5
ISBN-13 (electronic): 978-1-4302-2648-2
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.
President and Publisher: Paul Manning
Lead Editor: Steve Anglin, Douglas Pundick
Technical Reviewer: Kunal Mittal and Vikram Goyal
Editorial Board: Clay Andres, Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell,
Jonathan Gennick, Jonathan Hassell, Michelle Lowman, Matthew Moodie, Duncan Parkes,
Jeffrey Pepper, Frank Pohlmann, Douglas Pundick, Ben Renow-Clarke, Dominic
Shakeshaft, Matt Wade, Tom Welsh
Coordinating Editor: Fran Parnell
Copy Editors: Heather Lang and Marilyn Smith
Formatter: Nancy Wright
Compositor: LaurelTech
Indexer: BIM Indexing and Proofreading Services
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-
or visit
For information on translations, please e-mail
or visit
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
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 at
You will need to
answer questions pertaining to this book in order to successfully download the code.
 Contents at a Glance
Contents.....................................................................................................................
About the Author ........................................................................................................
About the Technical Reviewer ...................................................................................
Introduction ..............................................................................................................

Chapter 1: Welcome to Android Gaming.................................................................

Chapter 2: Compiling Native Code in Android ......................................................

Chapter 3: Building a Java Game from Scratch ...................................................

Chapter 4: Java Games Continued: Fun with Polygons ........................................

Chapter 5: Hybrid 3D Graphics with OpenGL and JNI .........................................

Chapter 6: 3D Shooters Episode I: Wolfenstein 3D for Android ..........................

Chapter 7: 3D Shooters Episode II: Doom for Android........................................

Appendix: Deployment and Compilation Tips .....................................................

Index: .................................................................................................................
  ■
CONTENTS
Contents
Contents at a Glance..................................................................................................
About the Author ........................................................................................................
About the Technical Reviewer ...................................................................................
Introduction ..............................................................................................................

Chapter 1: Welcome to Android Gaming.................................................................
What Skills Do You Need? .................................................................................................
A Solid Foundation of Android .......................................................................................
A Basic Knowledge of Linux and Shell Scripting ...........................................................
What Software Tools Do You Need? ..................................................................................
Setting Up Your Machine ...................................................................................................
Getting the Android Source ...........................................................................................
Extracting Native Android Libraries ...............................................................................
Installing the GNU Toolchain for ARM Processors .........................................................
Writing Custom Compilation Scripts............................................................................
Setting Up Your Development Environment.....................................................................
You Have Taken the First Step.........................................................................................

Chapter 2: Compiling Native Code in Android ......................................................
Your First Native Android App..........................................................................................
Creating an AVD...........................................................................................................
   [ Pobierz całość w formacie PDF ]