Configure and generate a Scala project for libgdx using g8 and sbt 0.12.
To use this template, you will need to install g8 first. Consult g8's readme for more information.
Then, in your favorite shell, type the command:
$ g8 ajhager/libgdx-sbt-project
After filling in some information about your project, you can start placing your game's source files and assets in common/src/main/scala and common/src/main/resources, respectively.
Update to the lastest libraries:
$ sbt
> update
Run the desktop project:
> desktop/run
Package the desktop project into single jar:
> assembly
Run the android project on a device:
> android/start
Visit android-plugin for a more in-depth guide to android configuration and usage.
Run the ios project on a device:
> ios/device
Visit sbt-robovm for a more in-depth guide to ios configuration and usage.
Run all unit tests from desktop, android and common (subdirectories src/test/scala):
> test
Run specific set of unit tests:
> common/test
In most cases you will be able to open and edit each sub-project (like common, android or desktop), but you still need to use SBT to build the project.
See here for details about sbt plugins for each editor.