sergi
unread,Apr 28, 2011, 1:27:27 AM4/28/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ruby4kids
Hi, Group,
I'm getting the following error when trying to draw the very first
window (from 2nd video):
my_game.rb:4: udefined method 'Gosu' for main:Object (NoMethodError)
earlier, I received confirmation that Gosu is installed:
"Successfully installed gosu-0.7.29-universal-darwin"
However, now I receive this error message after typing these 2
commands:
$ ls my_game.rb
$ ruby my_game.rb
I have identical code in the my_game.rb file to what our instructor is
showing in the video. Here it is:
<!-- begin 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
<!-- end code -->
can anybody help? Thanks much! Sergi