.rb file?
game.rb needs a require_relative 'player' at the top :)
assets next to the Ruby source code files, and does it contain an image named starfighter.png? How do you run your game?
> cd desktop
> cd folder
>cd ruby game.rb
ruby game.rb, right? No idea. What does this print if you run this as the first line in your Ruby script:p File.exist? "assets/starfighter.png"
true or false in the terminal when you run the game, depending on whether the file can be found.
compat.rb file overrides a few methods in Gosu, so the stack trace will usually include this file even if the error happens in a completely different file. Interpreting these errors is tough, but gets easier with time.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill