view gamelib/main.py @ 55:86d83dcb7d42

Make text drawing easier to poke at for subclasses
author Neil Muller <drnlmuller@gmail.com>
date Mon, 07 May 2012 22:53:18 +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)