view gamelib/main.py @ 792:bdaffaa8b6bf pyntnclick

Loading and saving! (Plus a bunch of other stuff to make it possible.)
author Jeremy Thurgood <firxen@gmail.com>
date Sun, 27 Jan 2013 12:43:28 +0200
parents ef4bda7d623d
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()