Mercurial > boomslang
view gamelib/main.py @ 682:0749438e325e pyntnclick
Unified Scene widgetry.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 12 Feb 2012 23:59:26 +0200 |
parents | c77d6aa29bee |
children | 4f34b36ee7c5 |
line wrap: on
line source
import scenes from menu import MenuScreen 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': MenuScreen, 'end': EndScreen, } START_SCREEN = 'menu' def __init__(self): super(SuspendedSentence, self).__init__(SSState) def main(): ss = SuspendedSentence() return ss.main()