March 17, 2013

Scala 2.10 + ScalaIDE + LibGDX + Android = True

I decided to do an experiment since I'm tired of working on PaintParty for the moment. I wanted to see if I could integrate LibGDX with Scala and run it on an android device without any issues.

It worked flawlessly, and ScalaIDE has certainly improved over the last year so I might start to seriously consider doing development with Scala now. I admit I've become a bit rusty, but I have already learnt Scala once, I'm sure it wouldn't take much to relearn the basics. (The advanced topics in Scala scare me, but with time, I will learn to love them). The biggest thing missing with ScalaIDE was some basic error suggestions and a customizable Syntax Highlighter. The suggestions still has some work, but it is a huge improvement over the old version I used.

Scala is one of those things were you can use it interchangeably with Java. This means for better or for worse you can use all the Java libraries with it, the syntax might get a bit funny because of crossing languages but it does work perfectly well.

The means, when I get back into working on Combatics Evolution I may start on it in Scala. However, before I go through with that kind of investment I will need to write a small game that can run on Android using Scala. In fact, I have a very simple idea I would like to make which could turn out to be a simple new game. I guess we will have to see in the next few weeks, until then I will be going full tilt with PaintParty.

Edit:

I've noticed this post has gotten a decent number of views. For people who are actually interested in setting this up correctly I will point you to my answer on StackOverflow until I get around to actually writing a tutorial. From my initial tests it works perfectly fine, but because of linking source to the android target, it likes to rebuild the android project when you make changes (its also blocking when android builds so pretty dang annoying).

No comments :

Post a Comment