libgdx cookbook

Sample code for the Libgdx Cross-platform Game Development Cookbook


Build Status

Examples for the Libgdx Cross-platform Game Development Cookbook

This repository contains the source code, samples and resources needed to follow the Libgdx Cross-platform Game Development Cookbook authored by David Saltares and Alberto Cejas and published by Packt Publishing.

Please read the license.


The book launched on November 2014 and used the most up to date Libgdx release at the time. However, Libgdx and other libraries have since been updated. Fortunately, we have updated this repository regularly to make sure everything is still compatible. Whenever our dependencies introduced API breaking changes, we fixed references appropriately.

Rest assured though, not much has changed since the book came out. It’s still the best Libgdx book out there!

  • cookbook-1.0.0 Libgdx 1.3.2, gdx-ai 1.2.0, Ashley 1.1.0 and box2dlights 1.2. This is the version that matches the book.
  • cookbook-1.1.0 Libgdx 1.5.5, gdx-ai 1.5.0 and Ashley 1.4.0
  • cookbook-1.2.0 Libgdx 1.6.0, gdx-ai 1.5.0 and Ashley 1.5.0
  • cookbook-1.3.0 Libgdx 1.6.5, gdx-ai 1.5.0 and Ashley 1.6.0
  • cookbook-1.4.0 Libgdx 1.7.1, gdx-ai 1.6.0, Ashley 1.7.0 and Box2DLights 1.4