Mercurial > pyntnclick
view gamelib/main.py @ 22:8e709824306d
Add items and things.
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Sun, 22 Aug 2010 17:52:34 +0200 |
parents | 177e3a7825e8 |
children | 9d5de13e2ac3 |
line wrap: on
line source
'''Game main module. Contains the entry point used by the run_game.py script. ''' import data import pygame from pygame.locals import SWSURFACE, SRCALPHA from albow.dialogs import alert from albow.shell import Shell from menu import MenuScreen from constants import SCREEN class MainShell(Shell): def __init__(self, display): Shell.__init__(self, display) self.menu_screen = MenuScreen(self) self.show_screen(self.menu_screen) def main(): pygame.init() display = pygame.display.set_mode(SCREEN) shell = MainShell(display) shell.run()