Mercurial > boomslang
view gamelib/main.py @ 732:4f34b36ee7c5 pyntnclick
Add constants subclass to gamelib, and get the title + icon from it
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Tue, 15 Jan 2013 23:15:11 +0200 |
parents | c77d6aa29bee |
children | ef4bda7d623d |
line wrap: on
line source
import scenes from constants import SSConstants 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 game_constants(self): return SSConstants() def main(): ss = SuspendedSentence() return ss.main()