An Android and Desktop remake of afroman-client using libGDX.
- If not already installed, install IntelliJ IDEA, Eclipse, Android Studio, or any IDE of your choice
- If not already installed, install OpenJDK 8+ or the Oracle Java SE JDK 8+
- If not already installed, install the Android SDK (can be found under Command line tools only)
- Clone this repository with
git clone https://github.com/qwertysam/afroman-refresh.git
- Open the project in an IDE, and sync Gradle to download all the dependencies
- The main source files are found in
afroman-refresh/core/src
Now you can run the game!
- If you are getting errors from Gradle about not being able to compile the :android project, you must either configure your system's ANDROID_HOME or create the file
afroman-refresh/local.properties
and add the linesdk.dir=/path/to/your/Android/Sdk
- If running the game from an IDE is failing to load the assets, you may need to change your Run/Debug configuration to have the working directory set to
afroman-refresh/android/assets
(this is because the desktop and android modules both rely on the same Android assets folder) - When exporting as a JAR file, you may need to...
- Copy the contents of the
afroman-refresh/android/assets
into the JAR archive - In the JAR archive, edit
META-INF/MANIFEST.MF
and add the following line if it doesn't existMain-Class: afroman.game.desktop.DesktopLauncher
- Copy the contents of the