Mercurial > mamba
changeset 139:61f5668f6bb2 scratch
Further hook testing 2
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Mon, 12 Sep 2011 13:22:11 +0200 |
parents | 968dfc8d28bd |
children | 51dba97bebe3 |
files | mamba/__main__.py |
diffstat | 1 files changed, 30 insertions(+), 30 deletions(-) [+] |
line wrap: on
line diff
--- a/mamba/__main__.py Mon Sep 12 13:21:00 2011 +0200 +++ b/mamba/__main__.py Mon Sep 12 13:22:11 2011 +0200 @@ -1,30 +1,30 @@ -"""Main module for the game""" - -import sys -import os -import pygame -from pygame.locals import SWSURFACE - -from .constants import SCREEN - -# For future use -DEBUG = False -if os.environ.get('DEBUG'): - DEBUG = True - - -def main(): - """Launch the currently unnamed mamab game""" - - pygame.display.init() - pygame.font.init() - # TODO: Sound initialisation - pygame.display.set_mode(SCREEN, SWSURFACE) - pygame.display.set_caption('Mamba') - - # Placeholder to do something for some time - import time - time.sleep(2) - - - +"""Main module for the game""" + +import sys +import os +import pygame +from pygame.locals import SWSURFACE + +from .constants import SCREEN + +# For future use +DEBUG = False +if os.environ.get('DEBUG'): + DEBUG = True + + +def main(): + """Launch the currently unnamed mamab game""" + + pygame.display.init() + pygame.font.init() + # TODO: Sound initialisation + pygame.display.set_mode(SCREEN, SWSURFACE) + pygame.display.set_caption('Mamba') + + # Placeholder to do something for some time + import time + time.sleep(2) + + +