Skip to content

Instantly share code, notes, and snippets.

@lukebergen
Created January 17, 2013 16:48
Show Gist options
  • Save lukebergen/4557435 to your computer and use it in GitHub Desktop.
Save lukebergen/4557435 to your computer and use it in GitHub Desktop.
super-basic game window
require 'gosu'
class GameWindow < Gosu::Window
def initialize
super 1280, 800, false
self.caption = "neato game"
end
def draw
# drawing stuff
end
def update
# update your physics and whatnot
end
end
gw = GameWindow.new()
gw.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment