3

I'm trying to write a rogue-like game for my blackberry and hopefully any other phone that supports some sort of JVM.

Because I use Java in my job I'm looking to write the game in another language but I cannot find a language that will work on multiple phones.

Am I stuck with Java?

Joachim Sauer
  • 302,674
  • 57
  • 556
  • 614
Adam Gent
  • 47,843
  • 23
  • 153
  • 203

5 Answers5

2

If you're programming for Android, you could for example use Scala, see Scala on Android. Scala compiles to Java bytecode. There are also other languages which can be compiled to Java bytecode; I don't know how well-suited they are for Android programming.

Community
  • 1
  • 1
Jesper
  • 202,709
  • 46
  • 318
  • 350
  • Do I than convert the byte code to dex or what ever the dalvik format is? – Adam Gent Apr 26 '10 at 12:51
  • This might be the best option because I really like Scala. I'll probably just have to wait for Blackberry to suck less. – Adam Gent Apr 26 '10 at 12:57
  • Yes, interestingly the dalvik compiler operates on the .class files, not on the raw code. All you have to do is run the dx tool (in the android sdk) on the class files generated by the Scala compiler. The bigger limitation is going to be Blackberry. AFAIK Java is the only language you can write Blackberry apps in... – Chris Thompson Apr 27 '10 at 04:40
  • 1
    @Chris - you can always edit your comments. Or copy-delete-paste-add them. – Stephen C Apr 27 '10 at 11:15
1

You could try to use another language for the Java platform. Unfortunately you'll be rather limited there as well, because J2ME is based on a rather ancient version of Java SE and most modern languages for the Java VM need either Java 5 or at least Java 1.4.

Joachim Sauer
  • 302,674
  • 57
  • 556
  • 614
0

Lua runs very well on small devices (I use it on my handheld), but it is designed to be coupled into a C API. You may well have to write glue code yourself, which is easy, but if the official APIs are Java APIs and there is no C API, you'll be out of luck.

Norman Ramsey
  • 198,648
  • 61
  • 360
  • 533
0

Actually C++ is pretty universally supported at this point. However you are completely stuck with Java for Blackberry.

Chris Thompson
  • 35,167
  • 12
  • 80
  • 109
0

Technically, I think the second (JavaME being first) most widely deployed runtime worldwide is Flash Lite.

Whether it would be a good idea to use it for your game development is another matter entirely of course.

Number three is Symbian OS C++ but that won't work on your Blackberry.

michael aubert
  • 6,836
  • 1
  • 16
  • 32