I’m test SciTe editor, and Gosu for ruby game development. I decided to make a class to control my sprites. The class was written in a separate .rb file, in the same folder as the main .rb file. However, I can’t use Sprite.new in the main file. How can I do that?
I’m test SciTe editor, and Gosu for ruby game development. I decided to make
Share
I don’t know why. But just
requiresimply doesn’t always work on different OS. But the above code always works for me.