This is a port to Scala from the Java example provided with Libgdx. I claim no right whatsoever of the game, it was developed by Notch.
The code conversion was done quickly and naively without caring much for the 'Scala way' or optimizing the code. I just went on and converted line by line without thinking much except for a few cases. I plan on re-working it now that I finished porting it to 100% Scala code.
The Desktop and Android builds are working. Web builds are not done yet but the project is setup to allow independent development from the build by having a "common" and "resources" project.
Help is welcomed!
- Make sure you have Scala and SBT 0.11.2 working
Checkout this repository and go the the root folder from the command line.
To run Desktop version in the command-line:
$ sbt
...
> project desktop
...
> run
And the game should be running...
To run Android version in the command-line (replace 'device-name' for appropriate device name):
$ sbt
...
> project android
...
> android:package-debug
...
> android:emulator-start device-name
...
> android:start-emulator
And the game should deployed to your device and running...
- Make sure you have Scala support working properly in Netbeans 7.0 (older versions work fine too but those do not have Git support ;))
Using Netbeans open the scala project in the common folder. All sources were added to that project and it is ready to be run (the Desktop build main file will be executed)
I do the development using Netbeans but I compile and run with SBT from the command-line.