How to use the samples

Check out how to download and use the samples

To start your game from scratch, check out the official instructions available on LibGDX´s wiki


  • At the end of each code sample you will find the link to the code repository.
  • Download the code from GitHub.
  • Start Android Studio, click import project.
  • Select the file build.gradle from the root folder.
    • Click Run-> Edit Configurations
    • Add Application
    • Name: Desktop
    • Main Class: Desktop Launcher
    • Working directory: Android-Asset
    • Use Classpath of module: Desktop