Past 2 weeks, I spent a lot of time trying to make Google Play Services library work in my LibGDX project. Even though the process is simple there are a few pit falls from which it might take some days to recover, like what happened to me. So I will outline the steps here to implement Google Play Services with minimum number of errors. (I’m not saying there won’t be any errors because LibGDX and Google updates stuff a lot)
Importing the Project
As we have succesfully created a sample project using the LibGDX setup app, let’s start working on it. We’re going to import the project into IntelliJ Idea. You can also use Eclipse instead but the recommended tool is IntelliJ. You’re supposed to have properly setup the development environment before importing the project.
Creating your first project
Sorry for this delayed update. I got caught in a frenzy the past two weeks. Anyway let’s get on with our tutorials, shall we?
Alright! Now that you have set up all the required software to start making games using LibGDX, let’s continue by creating a new project and import it into IntelliJ IDEA.
To get your code running you need to properly configure your development tools. And that’s one rough road. But once you setup your environment correctly, the successive projects will be easy to deploy. In this part, I will explain how to properly setup your development environment.
Here are the prerequisites for working with LibGDX:
LibGDX is a cross-platform game/application development framework. The codes are written in Java. Since it is Java based, it can be run in Windows, Linux and Mac OS X. You can deploy the final application in Windows, Linux, Mac OS X, Android, Blackberry, iOS, and HTML5. LibGdx development environment is really simple and since it is not a game engine per se, the applications developed are really light weight as well. That is the biggest advantage of LibGDX over others when you want to make simple 2D games.