Skip to content

Instantly share code, notes, and snippets.

Created October 4, 2015 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/69ad149cf150dedbbe16 to your computer and use it in GitHub Desktop.
Save anonymous/69ad149cf150dedbbe16 to your computer and use it in GitHub Desktop.
/usr/bin/env ruby
require 'rubygems'
require 'gosu'
class GameWindow < Gosu::Window
def initialize
super 640, 480
self.caption = "Gosu Tutorial Game"
@background_image = Gosu::Image.new("media/ball.png", :tileable => true)
end
def update
end
def draw
@background_image.draw(0,0,0)
end
end
window = GameWindow.new
window.show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment