I'm working through the learn game programming book by pragmatic programmers and I can't even manage to get the sample code running. I've dowloaded and when I try to run it, I see the following....
❯ ruby WhackARuby/WhackARuby_1/whack_a_ruby.rb
initialize': Cannot open file ruby.png (RuntimeError)initialize'
This is the offending line: @image = Gosu::Image.new('ruby.png')
And I tried changing it to @image = Gosu::Image.new('./ruby.png') but that didn't help. Any thought son what might be causing this?
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill