Common code for LibGDX games.