Mercurial > mamba
comparison 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 |
comparison
equal
deleted
inserted
replaced
2:97d5921e974b | 3:6b9fa5e2fbc6 |
---|---|
1 """Main module for the game""" | |
2 | |
3 import sys | |
4 import os | |
5 import pygame | |
6 from pygame.locals import SWSURFACE | |
7 | |
8 from .constants import SCREEN | |
9 | |
10 # For future use | |
11 DEBUG = False | |
12 if os.environ.get('DEBUG'): | |
13 DEBUG = True | |
14 | |
1 | 15 |
2 def main(): | 16 def main(): |
3 """ your app starts here | 17 """Launch the currently unnamed mamab game""" |
4 """ | 18 |
19 pygame.display.init() | |
20 pygame.font.init() | |
21 # TODO: Sound initialisation | |
22 pygame.display.set_mode(SCREEN, SWSURFACE) | |
23 pygame.display.set_caption('Mamba') | |
24 | |
25 # Placeholder to do something for some time | |
26 import time | |
27 time.sleep(2) | |
28 | |
29 | |
30 |