Mercurial > mamba
view mamba/__main__.py @ 11:447311ee028c
Remove relative import.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sun, 11 Sep 2011 13:05:26 +0200 |
parents | 6b9fa5e2fbc6 |
children | 0196455fa432 |
line wrap: on
line source
"""Main module for the game""" import sys import os import pygame from pygame.locals import SWSURFACE from mamba.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)