Created
September 6, 2015 22:29
-
-
Save IuryAlves/51861b3f34400e489cd6 to your computer and use it in GitHub Desktop.
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
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