Gosu: A Cross-Platform 2D Game Development Library for Ruby and C++
Gosu claims it's the "coolest gamedev library around." That's pretty hard to qualify, but with a focus on Ruby, I won't be one to argue. It's installable as a gem, with a simple gem install gosu, is MIT licensed (although the sound component is third party closed source), and works on OS X, Linux and Windows. It supports 2D graphics (accelerated with your 3D hardware), sound, and various forms of input (keyboard, mouse, gamepad, etc).
(Note: Sorry for the slow flow of posts on Ruby Inside this week.. I still have no broadband due to the house move, but it will be back on in the next few days.. and there's a great flow of Ruby news that has built up coming your way.)
August 16, 2007 at 3:13 pm
Maybe I'm doing something wrong, but after I install gosu using gem, gosu isn't available to require. So far I've only tried this on Mac. Anyone else have this problem?
Greg
August 16, 2007 at 4:05 pm
Rubygame (http://sourceforge.net/projects/rubygame/) also looks promising.
August 16, 2007 at 5:09 pm
For a great summary of Ruby game development be sure to check out "Andrea O.K. Wright's talk at the recent Ruby Hoedown":http://rubyhoedown2007.confreaks.com/session09.html.
August 16, 2007 at 8:29 pm
Greg: had the same problem. You need to add require 'rubygems' to Tutorial.rb (or open it using ruby -rubygems Tutorial.rb).
August 16, 2007 at 8:48 pm
Oh, and to get the CptnRuby example working, you'll have to change the name of the Gem class to something that doesn't conflict the Gem module from Rubygems. Tsk, tsk... no namespacing...
That said, this looks pretty cool and I'm definitely looking forward to playing with it.
August 16, 2007 at 10:06 pm
Greg: Did you require 'rubygems' before requiring 'gosu'? Then it works for me (Mac too). Note that when installing as a gem, there's a name clash in one of the samples, CptnRuby.rb, so you'll have to add "Gem = nil" before "class Gem".
HTH!
:)
August 16, 2007 at 10:59 pm
Greg,
you have to require the guso.so file located in the folder.
PM if you have questions. aol:salve345
--Scott
August 17, 2007 at 5:09 am
@greg: I believe you have to copy gosu.so into your program folder.
August 25, 2007 at 12:41 am
Hey, gosu is good stuff. I ported some game logic i made a year ago that rendered using rmagick to it in a few hours (tho I did go spagetti, it was not gosu's fault. )
re: Ryan Daigle Says:
The link to the correct video above should be:
http://rubyhoedown2007.confreaks.com/session05.html