Created
January 17, 2013 16:48
-
-
Save lukebergen/4557435 to your computer and use it in GitHub Desktop.
super-basic game window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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