Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Games in the browser with Ruby
- - By nicklink483 Date 2014-12-18 06:12
Hey everyone!  I know this isn't strictly Gosu, but jlnr told me to go ahead and post this here.

I'm working on a gem called Dare which uses Opal to turn your Ruby code into Javascript.

I modeled a lot of my API after Gosu, so it won't be a big leap to a) convert your Gosu game into a Dare game, or b) learn Dare if you already know some Gosu!

Here's the repo: https://github.com/nicklink483/dare
Here's a tutorial: https://github.com/nicklink483/dare/wiki/Ruby-Tutorial

I hope I can see some cool games come out of it!
Parent - - By jahmaican Date 2014-12-18 07:35
Yeah I was wondering if something like this would be possible - and I thought why not then. Now I love how someone actually made it.

Also +1 for basing the API on gosu. Please keep working on it, this will be big.
Parent - By nicklink483 Date 2014-12-18 08:47
Thank you for your encouraging words :)  I won't let you down, and I can't wait to see what cool games get made!
Parent - By jahmaican Date 2014-12-23 10:35
I found a little while to give it a try and sadly it doesn't work for me. I tried to run your examples as well as some of my own code and the only one I got to work was the pong example.

The other ones I can rake build, but running in browser all I get is a blank rectangle where the game is supposed to be. JS console shows one of the following errors:
Uncaught NameError: uninitialized constant Dare::AnimationState
or
NoMethodError: undefined method 'on' for Dare::Window
depending on how I tamper with appending /lib folder in rakefile.

Tested with Ruby 1.9.3 and 2.0.0-p598 (32 bit) on Win8 box.
Up Topic Gosu / Gosu Exchange / Games in the browser with Ruby

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill