rubygame

Rubygame + OSX hello world crashes at startup

I have this crash-at-startup problem with rubygame and OSX. Anybody knows what might be causing it, and how to fix it? Versions: OSX 10.5.7, ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9], rubygame 2.5.3 installed from a rubygem, most software installed with MacPorts (up to date). Different versions of ruby and rubygame seem to...

Why rubygame and gosu are slower than pure opengl ?

I'm looking for a good graphic framework to make a nice 2D game in Ruby. I made 3 very simple test to see which graphic Ruby framework is faster between Gosu and Rubygame. The test creates 1000 instances of a "Square" class that move and draw a red square by the simplest way using the framework's method. The 3rd test is the same thing bu...

Rubygame on OS X shebang problem

I'm playing around with Rubygame. I installed it with the Mac Pack, and now I have the rsdl executable. rsdl game.rb works fine, but when I chmod +x the rb file, add the shebang to rsdl (tried direct path and /usr/bin/env rsdl) and try to execute it (./game.rb), it starts to flicker between the Terminal and rsdl which is trying to open, ...

Simple 'or' isn't working as expected

I'm running into an interesting issue with the relatively simple assignment below. Each of the parenthesized chunks in the beginning evaluate to nil, leaving Rubygame::Surface.new as the value that @image ought to be assigned to. Unfortunately on the next line where I set @rect, it throws a NoMethodError because @image is nil. @image = ...