initialize': Wrong arguments for overloaded method 'Image.new'. (ArgumentError)
Possible C/C++ prototypes are:
Image.new(Gosu::Window &window, VALUE source, bool tileable)
Image.new(Gosu::Window &window, VALUE source, bool tileable, unsigned int srcX, unsigned int srcY, unsigned int srcWidth, unsigned int srcHeight)
from main.rb:12:in
new'block in initialize'
from main.rb:11:in
times'initialize'
from main.rb:24:in
new'class Game < Window
def initialize
@image = Image.new(self, 'sprite.png')
super(640, 480, false)
end
end
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill