Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 242 Bytes
require 'gosu'
class ImageExample < Gosu::Window
def initialize
super 640, 480
self.caption = "Image Example"
@ball = Gosu::Image.new("./ball.png")
end
def draw
@ball.draw( 100, 100, 0 )
end
end
window = ImageExample.new.show