Giter Club home page Giter Club logo

alienescape's Introduction

AlienEscape

Simple runner with a few tests to demonstrate the use of JUnit/Mockito in a libGDX application.

Based on http://williammora.com/a-running-game-with-libgdx-part-1.
Added a few tests and made minor changes to the original code.

Troubleshooting

SDK version error

If you get an error similar to Could not target platform: 'Java SE 12' using tool chain: ..., you need to set the JAVA_HOME environment variable correctly, depending on your local installation (of a Java 12 SDK). On Linux, this can typically be done with export JAVA_HOME="<path>" where <path> typically looks like /usr/lib/jvm/jdk-12.0.2

Building for Android

If you want to build for Android, you will need to install the Android SDK and specify the installation path in the Gradle configuration (e.g., by adding a line similar to sdk.dir=<your_path>/Android/Sdk in a local.properties file at the root of the project).

Errors with Android SDK

If you do not want to build for Android but are getting errors related to the missing SDK (since the project is intended to be cross-platform), you will either need to install it anyway (see above) or remove the Android submodule from the Gradle project:

In settings.gradle, remove or comment out 'android' from the following line:

include 'desktop', 'android', 'html', 'core'

Then, in the top-level (at the root of the project) build.gradle file, remove or comment out:

project(":android") {
...
}

Errors with the web version

If you have errors/issues related to the web version (which hasn't been tested):

In settings.gradle, remove or comment out 'html' from the same line:

include 'desktop', 'android', 'html', 'core'

Then, in the top-level (at the root of the project) build.gradle, remove or comment out:

project(":html") {
...
}

alienescape's People

Contributors

qdrien avatar

Watchers

 avatar

Forkers

efamiliar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.