News for hackers. Stuff that matters.
Re:RoboVM: Native iOS apps in Java by talloaktrees on Saturday April 12, 2014 @09:04AM (#7577735)
I have just finished porting my Android game Superior Tactics (https://play.google.com/store/apps/details?id=org.jrenner.su...) to iOS using RoboVM.

It's amazing to me that I can write my game completely in Java and get a performant AOT compiled version that runs on iOS.

RoboVM really is amazing for indie game devs, and it's open source. I've already donated around $300 to the project.

I've also done tests to see if other JVM languages work with RoboVM. So far, I have been able to get games written in Kotlin running. Can you imagine writing a game in a nice modern JVM language like Kotlin or Scala, and then being able to publish it to PC, Android , HTML5 and iOS? That's what is possible now, and all with open source.

Obviously, for those who develop non-game apps, native UI concerns mean you can't just publish the same thing to both Android and iOS, but for games that isn't an issue.

Re:RoboVM: Native iOS apps in Java by nolok on Saturday April 12, 2014 @09:18AM (#7577759)
> native UI concerns mean you can just publish the same thing to both Android and iOS

That's a myth often seen in "deploy everywhere" mobile dev tools, in reality the design habits/guidelines between the two platforms have a lot of difference and you need a separate UI layer for each more often than not.

Doesn't change the awesomeness of RoboVM, but it had to be said.

Re:RoboVM: Native iOS apps in Java by talloaktrees on Saturday April 12, 2014 @09:20AM (#7577762)
Sorry, that was actually I a typo on my part, I meant to write "can't"
Re:RoboVM: Native iOS apps in Java by briantakita on Sunday April 13, 2014 @03:24AM (#7580587)
> the design habits/guidelines between the two platforms have a lot of difference and you need a separate UI layer for each more often than not

Phonegap is a great tool for writing code once (html5 & javascript) & deploying to many platforms with native capabilities.

I suspect it's not quite there for games, however it has great performance for most CRUD apps.

---

Re: RoboVM, I suspect there will be libraries that will properly use iOS-like UI. Some logic branches will be required, however the main flow is centralized and DRY.

---

There's also cross platform, openGL based tools. If you are making an openGL game, you minimize your need to use the native UI.

http://coronalabs.com/products/corona-sdk/

Re:RoboVM: Native iOS apps in Java by bsaul on Saturday April 12, 2014 @02:23PM (#7578653)
I'm curious : what parts of your game code were you able to reuse on the ios version ( apart from obvious things such as the game logic itself) ? Network ? Opengl libs ? Sound libs ?
Re:RoboVM: Native iOS apps in Java by philbarr on Saturday April 12, 2014 @03:59PM (#7578974)
RoboVM create bindings for most of the iOS API, and there are also bindings being created for 3rd party libs [0]. LibGDX [1] have done their own too.

I created a game [2] in LibGDX for Android, set it up on the Mac, right clicked and it just worked. Not deployed to the app store yet but I will be doing.

I just released my latest Augmented Reality "game" [3] on Google Play which uses Vuforia [4] for the AR, and am in the process of writing the RoboVM bindings for it. Once I've finished that I'll submit it back to robovm-ios-bindings so you should be able to write AR apps for iOS and Android at the same time.

[0] https://github.com/BlueRiverInteractive/robovm-ios-bindings

[1] http://libgdx.badlogicgames.com/

[2] https://play.google.com/store/apps/details?id=com.simplyappe...

[3] https://play.google.com/store/apps/details?id=com.simplyappe...

[4] https://developer.vuforia.com/

Re:RoboVM: Native iOS apps in Java by djur on Saturday April 12, 2014 @02:51PM (#7578747)
What are you using for a game framework? libgdx?
Re:RoboVM: Native iOS apps in Java by cookerware on Saturday April 12, 2014 @03:35PM (#7578894)
what tools did you use to create your game assets?