Window
reference to Gosu::Image.new
etc. (for 10 years!) - that has changed in Gosu 0.9, half a year ago.Player
class wanted to load images, and Image.new
required a window
reference. That is not the case in Gosu 0.9+.$window
throughout your app, and set it in YourWindowClass#initialize
(right after the super call). You could also use the Singleton
module from the Ruby standard library, but I am not sure if it has any practical advantage over a global variable.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill