About the Reviewers
Hvard Kindem is a game developer from Norway who has a long-lived passion for games and game development. He started programming at an early age, which later resulted in an MSc in game technology. During his studies, Hvard became the founding member and CEO of Fallen Leaves Interactive, a group focusing on PC, Xbox, and Android development. The company made games for clients such as KLM Royal Dutch Airlines and contributed to Games4Health.
Currently, Hvard is employed at the National Lottery Association in Norway, where he works as a concept developer. In order to find new exciting products for its about 2.8 million customers, he has, among other things, worked on and published multiple mobile games. Hvard remains an avid gamer, and when he is not busy releasing a new project, he loves to return to the old classics or spend the evenings playing his bass guitar.
I would like to thank my mentor, Simon McCallum, for always challenging me and pushing me toward new technologies. I would also like to thank my nephew and niece for being my motivation and allowing me to stay a kid forever; I love you guys! Last but not least, I would like to thank my partner in crime, Sara, for her support and striving for perfection.
Jos Rodriguez-Rivas is a young game developer. He loves to dream big about his future, often picturing himself as a head developer for a huge game company that he started. He first started developing games using RPG Maker VX Ace when he was in the eighth grade. As soon as he got into high school, he wanted to learn how to actually program a video game. He first learned Java with the libGDX framework, which allows him to port his games to both PC and Android. He is really into web design as well, and has designed two websites, one for his own company, Tiny Country Games (https://tinycountrygames.com/), and another for the Young Entrepreneurs Association of California, YEACAL (http://yeacal.org/). He enjoys learning new things, even if they don't directly relate to game development. For example, he likes to practice instruments such as the guitar, ukulele, and electric bass.
First of all, I would thank my computer science teacher, Mark Sheinberg, for always pushing me to improve my coding skills and learn new things. I would like to thank my best friend, Charli-Anne Hanna-Baker, for always supporting my work and keeping my morale high with her amazing attitude. Annika Paeta, thank you for giving me the opportunity of being the webmaster of YEACAL, which inspired me to learn ASP.NET and C#. Last but not least, I would like to thank my family for their constant support and love.
www.PacktPub.com
Support files, eBooks, discount offers, and more
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at > for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.
Why subscribe?
- Fully searchable across every book published by Packt
- Copy and paste, print, and bookmark content
- On demand and accessible via a web browser
Free access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view 9 entirely free books. Simply use your login credentials for immediate access.
Preface
Making games is addictive and very rewarding, it can be hard to stop once you get started. The problem comes when we reach a stumbling block because we don't know how to implement a feature, or perhaps integrate it into our game. This book is a whirlwind tour of as many Android 2D gaming features that can possibly be squeezed into 11 chapters.
Every line of the code used to build three games of increasing difficulty is shown in the text of the book and explained in a straightforward manner.
Steadily build up to implement a flexible and advanced game engine that uses OpenGL ES 2 for fast smooth frame rates. This is achieved by starting with a simple game and gradually increasing the complexity of the three complete games built step by step.
Implement cool features like sprite sheet character animation and scrolling parallax backgrounds. Design and implement genuinely challenging and playable platform game levels.
Learn to code both basic and advanced collision detection. Make simple the math behind 2D rotation, velocity, and collision. Run your game designs at 60 frames per second or better.
Process multi-touch screen input. Implement a multitude of other game features like pickups, firing weapons, HUDs, generating and playing sound FX, scenery, level transition, high scores, and more.