Mercurial > mamba
view mamba/__main__.py @ 3:6b9fa5e2fbc6
Add initial window that does very little
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sun, 11 Sep 2011 12:27:30 +0200 |
parents | 08941f788c15 |
children | 557f33480a48 447311ee028c |
line wrap: on
line source
"""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)