Skip to content

Instantly share code, notes, and snippets.

@IuryAlves
Created September 6, 2015 22:29
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 IuryAlves/51861b3f34400e489cd6 to your computer and use it in GitHub Desktop.
Save IuryAlves/51861b3f34400e489cd6 to your computer and use it in GitHub Desktop.
WHITE = (255, 255, 255)
class Game(object):
SCREEN_SIZE = (800, 600)
def __init__(self):
pygame.init()
self.screen = pygame.display.set_mode(Game.SCREEN_SIZE)
self.screen.fill(WHITE)
def run(self):
while True:
pygame.display.update()
if __name__ == '__main__':
Game().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment