Mercurial > boomslang
view gamelib/main.py @ 793:0e5b80b3128c pyntnclick
Putting the new MenuScreen in the repo might be a good idea. I should totally do that.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 27 Jan 2013 12:47:54 +0200 |
parents | bdaffaa8b6bf |
children | f95830b58336 |
line wrap: on
line source
import scenes from constants import SSConstants from menu import SSMenuScreen from endscreen import EndScreen from ss_state import SSState from pyntnclick.main import GameDescription class SuspendedSentence(GameDescription): INITIAL_SCENE = scenes.INITIAL_SCENE SCENE_LIST = scenes.SCENE_LIST SCREENS = { 'menu': SSMenuScreen, 'end': EndScreen, } START_SCREEN = 'menu' def game_state_class(self): return SSState def game_constants(self): return SSConstants() def main(): ss = SuspendedSentence() return ss.main()