For this tutorial I am assuming you have an IDE and have Java installed. If this is not the case and you're having some
difficulties getting everything set up let me know and I'll try to help as soon as possible.
Also if you are completely new to Java, Kilobolt.com has an excellent tutorial for beginners that might be interesting to take a look at.
If you haven't downloaded the LibGDX setup app go to
http://libgdx.badlogicgames.com/download.html and download the setup app. Run the setup app and for convenience you can copy the names of the game, package and Game class to match
my names (see picture) or give them your own names.
Choose a destination for your project and make sure you point the setup app to your Android SDK location.
Under sub projects I've unchecked iOS and HTML because we're only be running this project on our desktop. Android needs to be checked because assets folder in the Android module is used by defaults to store our assets (like images, music, etc.). Box2D is checked by default, but we wont be using that extension in this project so you can uncheck it. Once you press Generate the setup app will create a new LibGDX project for you with the specified sub projects.
If you are using Eclipse as your preferred IDE and you haven't installed the Gradle plug-in yet go to
Help -> Install New Software and enter:
http://dist.springsource.com/release/TOOLS/gradle as the url at the.
Only select Gradle IDE under Extensions / Gradle Integration (no need to install Spring).
Click next and accept the license agreement to install the new software. You might need to restart Eclipse.
Once you've installed the Gradle plugin import your newly created LibGDX project (File -> Import or by right-clicking on the package explorer
and selecting import) by selecting the Gradle -> Gradle Project option.
Browse to the directory where you created your project, select Build Model select the projects you want to build (usually all of them) and click on finish.
You should now at least have a Core, Android and Desktop project within your Package Explorer, plus whichever project you've checked and had the LibGDX project setup generate for you.
One thing I can recommend you to do - if you haven't yet - is to change Eclipse's launch setting so that Eclipse will always run the last launched application with the F11 hot key so you can work faster. Go to Window -> Preferences and select the Launching section under Run/Debug and under Launch Operation set Launching to "Always launch the previously launched application".
Now we've come this far we're ready to start coding. We'll do that in the next section, so if you don't have any questions let's move on.