Mercurial > sypikslang
view gamelib/main.py @ 54:168cfac9a445
Power and reliability.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Mon, 07 May 2012 22:43:54 +0200 |
parents | 655a6912e0ae |
children | a253fae32a6f |
line wrap: on
line source
'''Game main module. Contains the entry point used by the run_game.py script. Feel free to put all your game code here, or in other modules in this "gamelib" package. ''' import pygame from gamelib.engine import Engine from gamelib.mainmenu import MainMenu from gamelib.constants import SCREEN pygame.init() def main(): screen = pygame.display.set_mode(SCREEN) engine = Engine(screen) window = MainMenu(screen) engine.run(window)