Do the screencasts work with ruby 2.0?

16 views
Skip to first unread message

DigitalNative

unread,
Jul 30, 2013, 8:36:17 AM7/30/13
to ruby...@googlegroups.com
I'm currently using ruby version 2.0 and whenever I try to run the following code:

require 'rubygems'
require 'gosu'

class MyGame < Gosu:Window
  def initialize
    super(300, 400, false)
  end
  def update
  end
  def draw
  end
end

window = MyGame.new
window.show

I get this error:

undefined method `Gosu' for main:Object (NoMethodError)

I used RVM to install a newer version of Ruby and from what I've heard gosu is compatible with ruby 2 if on a mac?!?

Please help!

Reply all
Reply to author
Forward
0 new messages