view gamelib/main.py @ 56:78dfd429b9a6

Start adding science buttons
author Neil Muller <drnlmuller@gmail.com>
date Mon, 07 May 2012 22:54:15 +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)