Book description
Over 75 practical recipes to help you master cross-platform 2D game development using the powerful Libgdx framework
In Detail
Libgdx is a very popular open source, cross-platform, Java-based game development framework that enables you to write your code once and deploy it to Windows, Mac, Linux, Android, iOS, and browsers.
Supported by code samples for each topic, this book will take you through the features of Libgdx, from the very basic aspects to the most advanced ones. Beginning with an overview of the framework and project creation, rich games. You will then explore input detection and audio and file handling, followed by details of how to make use of amazing features such as Box2D rigid body physics, lighting, and artifical intelligence techniques to name a few. You will also discover how to modify Libgdx to suit your needs and share your creation with the world.
What You Will Learn
- Wield the power of the 2D graphics API; get to grips with textures, atlases, particles, fonts, and shaders
- Manage input from different devices, including touch, keyboard, mouse, gamepad, and accelerometer
- Increase player immersion with the Libgdx audio API
- Quickly design maps with an editor and load them directly into your game
- Exploit the 2D stage features to build great user interfaces
- Create amazing physics simulations with Box2D
- Master the deployment process and reach a wide audience
Table of contents
-
Libgdx Cross-platform Game Development Cookbook
- Table of Contents
- Libgdx Cross-platform Game Development Cookbook
- Credits
- About the Authors
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. Diving into Libgdx
- Introduction
- Setting up a cross-platform development environment
- Creating a cross-platform project
- Understanding the project structure and application life cycle
- Updating and managing project dependencies
- Using source control on a Libgdx project with Git
- Importing and running the Libgdx official demos
- 2. Working with 2D Graphics
- 3. Advanced 2D Graphics
- 4. Detecting User Input
-
5. Audio and File I/O
- Introduction
- Playing short sound effects
- Audio streaming for background music
- Optimizing audio files to reduce download sizes
- Procedural audio generators
- Engine sounds with dynamic audio
- The 2D space sound system
- The first approach to file handling in Libgdx
- Using preferences to store game states and options
- The XML parsing primer
- JSON serialization and deserialization
- 6. Font Rendering
- 7. Asset Management
- 8. User Interfaces with Scene2D
- 9. The 2D Maps API
-
10. Rigid Body Physics with Box2D
- Introduction
- Introducing Box2D
- Introducing more complex shapes
- Introducing joints
- Real-life joints example – bike simulator
- Reacting to collisions
- Sensors and collision filtering
- Querying the world
- Building a physics world from level data
- Implementing a deferred raycaster
- The fixed timestep approach
-
11. Third-party Libraries and Extras
- Introduction
- Making libraries compatible with GWT
- Managing platform-specific code
- Smooth animations with Universal Tween Engine
- Dynamic 2D lighting with Box2DLights
- Adding support for localization
- Finite state machine and messaging
- Component-based entity systems with Ashley
- Skeletal animations with Spine
- 12. Performance and Optimizations
- 13. Giving Back
- Index
Product information
- Title: Libgdx Cross-platform Game Development Cookbook
- Author(s):
- Release date: October 2014
- Publisher(s): Packt Publishing
- ISBN: 9781783287291
You might also like
book
LibGDX Game Development By Example
Learn how to create your very own game using the libGDX cross-platform framework About This Book …
book
Learning Libgdx Game Development
Are your games limited to one platform? Use our practical guide to libGDX and before long …
book
Mastering LibGDX Game Development
Leverage the power of LibGDX to create a fully functional, customizable RPG game for your own …
book
Learning LibGDX Game Development - Second Edition
Wield the power of the LibGDX framework to create a cross-platform game In Detail LibGDX is …