Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu on iPad, iPhone & iPod Touch / Gosu + RubyMotion?
- - By jontebol Date 2012-05-04 11:19
Ok, so this sounds pretty exciting: http://www.rubymotion.com/

If that could be made to work with Gosu (or perhaps it already does?!), writing games in Ruby + Gosu for iOS would be a reality...

What say you Gosu-gurus, can it be done?
Parent - By jlnr (dev) Date 2012-05-05 02:15
I'll let you know once I find out, but anyone else is welcome to beat me to it.
Parent - - By RavensKrag Date 2012-05-05 04:31
Nice! Now all we need it this for android.  Though, that would be much more difficult I imagine.  Not like Gosu would really work in that environment anyway =/
Parent - - By jlnr (dev) Date 2012-05-06 04:24
Gosu uses OpenGL ES, OpenAL and libsndfile which are all perfectly portable. I actually have an HTC One X at home now, just waiting for a chance to toy around with it. Hope the SDK is not too much of a hassle. :(
Parent - By Basic Date 2012-05-06 15:52
Oh, curious do you expect any problems with it?

A friend of mine was asking me this last week, about getting Gosu working on Chorme (Native Client) and Android.
Parent - - By bigtunacan Date 2012-09-10 16:21
I know this is an old thread, but I was looking to see if anyone had tested with RubyMotion and came across this...

On the Android front I wonder if Gosu would possibly work with Ruboto.  https://github.com/ruboto It is an implementation of Ruby on Android running on JRuby.
Parent - - By RunnerPack Date 2012-09-11 18:53
I have no idea if it's directly related, but I found this (from 2008): http://code.google.com/p/jruby-jogl-applet-launcher/

I tried to run it and (after a LOOONG wait) got this:

[code]
load: class org.jdesktop.applet.util.JNLPAppletLauncher not found.
java.lang.ClassNotFoundException: org.jdesktop.applet.util.JNLPAppletLauncher
  at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
  at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
  at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
  at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
  at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
  at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: org.jdesktop.applet.util.JNLPAppletLauncher
[/code]

I really want Ruby+Gosu on Android (preferably in a compact form that can be uploaded to the Marketplace).
Parent - By jlnr (dev) Date 2012-09-13 02:08
I have an Android 4 phone and some NDK experience, so I might be able to help with a port (via this forum and github - I still check both - but I don't have time for more right now). I think it would be easiest to port over iOS Gosu to the NDK, then wrap it up for Ruboto. The alternative would be to rewrite all of Gosu in Java, but it'd be slower and impossible to maintain in the long run.

The biggest "AAAAHHH!!!!!!!" moment is that Android does not come with OpenAL, and OpenSL ES is pure insanity. But maybe someone has compiled and packaged OpenAL by now.
Parent - By shawn42 Date 2012-12-20 17:56
This looks like a more "RubyMotion" approach that may give us some better performance than ruboto: https://github.com/headius/fastruby
Parent - By jlnr (dev) Date 2016-05-21 09:02
If anyone is still finding this thread via Google - Gosu has supported RubyMotion for a while now, check out this example project: https://github.com/jlnr/Trikus

It's a normal MRI project, and there are RubyMotion wrapper projects in osx/ and ios/. They use the RubyMotion-CocoaPods bridge to install C++ Gosu. (No Android, sorry...)
Up Topic Gosu / Gosu on iPad, iPhone & iPod Touch / Gosu + RubyMotion?

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill