In the ruby version of Gosu, if I require 'gosu' then try to call Gosu.transform(-x,-y), the function is evidently defined, but I get a window that's just black, regardless of what parameters I pass to the method. However, if I also include Gosu, I can call transform(-x,-y) and it works fine.
Is this a limitation of the way Gosu is built, or can you change it so I can call Gosu.transform() ?
I can and will change it later, for now the only supported form of calling transform is Window#transform. In fact, I have no idea why Gosu.transform is defined at all right now :)
Ah crud, sorry just realized that transform and translate are not the same thing >.<
To clarify, I was calling translate(-x,-y) and was ending up with a black screen. Using both require and include solved this problem. However, I just removed the include, tried to explicitly call self.translate() and it worked. Then, just now, I removed the explicit self and now it works fine o_O so strange...
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill