I followed the instructions from the RubyGame wiki. Everything worked up until I tried to run the application:
ruby a_rubygame_app.rb
# => ruby: No such file or directory -- a_rubygame_app.rb (LoadError)
What happened?
I followed the instructions from the RubyGame wiki. Everything worked up until I tried to run the application:
ruby a_rubygame_app.rb
# => ruby: No such file or directory -- a_rubygame_app.rb (LoadError)
What happened?
Copyright © 2021 Jogjafile Inc.
 
                        
a_rubygame_app.rbis not the actual name of any file... In the install docs, they've used a common programmer technique of naming a file with something that should look like it needs to be replaced.This is often done with things like
/path/to/yourfile– which is not a path to any actual file on your computer, but is meant to be replaced with an actual path and filename – orobj.my_method, which is meant to indicate that you call a method you've created by replacingmy_methodwith the actual method name.According to the rubygame README,
Try to find your way into the
samplesdirectory, and then try runningruby image_viewer.rb,ruby demo_rubygame.rborruby chimp.rb.