Modify code to reflect latest changes to the LibGDX API.