Libgdx Cross-platform Game Development Cookbook
Copyright 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: October 2014
Production reference: 1221014
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78328-729-1
www.packtpub.com
Cover image by Pratyush Mohanta ()
Credits
Authors
David Saltares Mrquez
Alberto Cejas Snchez
Reviewers
Si Fleming (PhD)
Joost van Ham (Xoppa)
Manuel Palomo-Duarte
Jon Renner
Andr Schmode
Commissioning Editor
Ashwin Nair
Acquisition Editor
Nikhil Karkal
Content Development Editor
Mohammed Fahad
Technical Editors
Taabish Khan
Venu Manthena
Copy Editors
Dipti Kapadia
Sayanee Mukherjee
Laxmi Subramanian
Project Coordinator
Danuta Jones
Proofreaders
Simran Bhogal
Maria Gould
Ameesha Green
Paul Hindle
Indexers
Hemangini Bari
Rekha Nair
Graphics
Ronak Dhruv
Abhinash Sahu
Production Coordinator
Nilesh R. Mohite
Cover Work
Nilesh R. Mohite
About the Authors
David Saltares Mrquez is a C++ software developer at a top-tier financial data company. He was an Artificial Intelligence programmer at Crytek, UK, for two years, where he developed emergent systems for Homefront: The Revolution . He then moved to Sony Computer Entertainment Europe to work on multimedia applications for PlayStation 4. He is part of the Libgdx core team, works on small indie games in his spare time, loves game jams, and often delivers presentations at universities. Find out more about his work on his personal blog at http://siondream.com.
To Anda, who stood by me during good and bad times, and my parents, who unconditionally encouraged me from afar.
Alberto Cejas Snchez is an indie game programming enthusiast who graduated with an MSc in Computer Science and whose work revolves around games and simulations across 2D/3D technologies with different target platforms. He has also worked on automatic game code generation tools.
To those responsible for making me feel proud as a son.
About the Reviewers
Si Fleming (PhD) is currently a senior engineer at Sony Computer Entertainment Europe with a career spanning over a decade. He holds a PhD in Computer Science from the University of Sussex where his research focused on distributed systems, ad hoc social networks, Q & A, security, and privacy. He has taken part in game jams including #OneGameAMonth and is currently working on several games using Libgdx.
Joost van Ham (Xoppa) founded the Xoppa company in 2001 and graduated in Computer Science in the Netherlands in 2004. Since then, he has served a wide variety of companies with their business automation. He's been working on Libgdx since 2012, where his main focus is on the 3D API, linear algebra, and 3D physics wrapper. He's also the author of a series of comprehensive tutorials covering 3D game development with libGDX, which can be found at http://blog.xoppa.com.
Manuel Palomo-Duarte is currently a Lecturer and Degree Coordinator for Computer Science at the University of Cadiz (Spain), where he received his PhD in 2011. He has been working for several years as a Director to the Free Software and Open Knowledge office at the same university and is a board member of Wikimedia Spain. His teaching focuses on subjects related to open data and video game development using open source software. His main research interests are learning technologies, serious games, and collaborative development. In these fields, he has published different contributions in peer-reviewed journals and research conferences.
Andr Schmode is a 40-year-old German developer with a passion for video games. He lives in Berlin and holds a degree in Business Computer Science. He started developing with Commodore C16, C64, and Amiga, turned over to Visual Basic, and finally fell in love with Java. He started development with Libgdx in 2012 and released the game bubblr dummy in trouble for Android devices and OUYA consoles. Game development is just a hobby for him. He loves to be creative and bring his fantasies to life. The only limit when developing a video game is his imagination! (and minor technical difficulties).
www.PacktPub.com
Support files, eBooks, discount offers, and more
You might want to visit www.PacktPub.com for support files and downloads related to your book.
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 www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us 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.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across 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 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 nine entirely free books. Simply use your login credentials for immediate access.
Preface
Libgdx is a powerful Java-based open source cross-platform game framework. It allows developers to target Windows, Mac, Linux, Android, iOS, and HTML5 with a single codebase, sparing them the hassle of dealing with low-level, platform-specific details.
For more information, please refer to http://libgdx.badlogicgames.com/.