Apress Advanced Android 4 Games (2012).pdf

(15713 KB) Pobierz
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
850627664.013.png
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
850627664.014.png 850627664.015.png 850627664.016.png 850627664.001.png 850627664.002.png 850627664.003.png 850627664.004.png 850627664.005.png
Contents at a Glance
Contents .............................................................................................................. v
About the Author............................................................................................... xxi
About the Technical Reviewers .......................................................................xxii
Acknowledgment ............................................................................................. xiii
Introduction ..................................................................................................... xiii
Chapter 1: Welcome to the World of the Little Green Robot ............................ 1
Chapter 2: Gaming Tricks for Phones or Tablets........................................... 19
Chapter 3: More Gaming Tricks with OpenGL and JNI................................... 59
Chapter 4: Efficient Graphics with OpenGL ES 2.0....................................... 113
Chapter 5: 3D Shooters for Doom ................................................................ 145
Chapter 6: 3D Shooters for Quake ............................................................... 193
Chapter 7: 3D Shooters for Quake II............................................................. 233
Appendix: Deployment and Compilation Tips .............................................. 261
Index ............................................................................................................... 271
iv
850627664.006.png 850627664.007.png 850627664.008.png 850627664.009.png 850627664.010.png
 
Introduction
Welcome to Advanced Android 4 Games . This book will help you create great games for the
Android platform. There are plenty of books out there that tackle this subject, but only this book
gives you a unique perspective by showing you how easy it is to bring native PC games to the
platform with minimum effort. This is done using real-world examples and source code in each
chapter. Keep in mind that before you dig into this book, you will need a solid foundation in Java
and ANSI C. I have tried to clearly and simply explain the most complicated concepts with a
combination of graphics and sample code. The source code provided for each chapter will help
you understand the concepts in detail and make the most of your time as a mobile game
developer.
The Green Robot Has Taken Off
It is hard to believe that is has been just two years since Android came onto the smartphone
scene; and it has taken off with a vengeance. Take a look at the US smartphone platform market
share, shown in Figure 1, according to a survey by Nielsen. 1 In May 2011, Android commanded 36
percent of the smartphone market in the United States—not too shabby for a two-year-old OS.
And the stats just keep getting better and better. Distimo, an analytics company specializing in
app stores, forecasted that Android Market would surpass Apple’s App Store in size by August
2011. 2 This opens a new frontier for developers looking to capitalize from the rocketing
smartphone segment. Advanced Android 4 Games is just what you need to get running quickly in
building cutting-edge games for the platform.
1
“Android Leads in U.S. Smartphone Market Share and Data Usage,” Nielsen Wire,
2
“Android to Surpass Apple's App Store In Size By August 2011,” a report by Distimo available at
xii
850627664.011.png
INTRODUCTION
Figure F–1. Smartphone market share, April 2011, Nielsen
Who’s the Target Audience?
This book targets seasoned game developers, not only in Java, but also in C. Performance is
critical in game development. Other audiences include:
Business apps developers . If you work on native applications, this book can
be a valuable tool.
Scientific developers . In the science world, raw performance matters. The
chapters dealing with JNI and OpenGL can help you achieve your goals.
Computer science students learning new mobile platforms. Android is open
and fairly portable, thus this book can help students in many platforms,
including iPhone, Blackberry, and Meego.
Anybody interested in Android development . Android has taken over the
mobile market space at a furious pace. You’ve got to expand your skill set
to include games and graphics, or you may be left behind.
xiii
850627664.012.png
Zgłoś jeśli naruszono regulamin