Mercurial > boomslang
comparison gamelib/main.py @ 608:a25cd1c6335a pyntnclick
Pass screens through engine by name
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 11 Feb 2012 20:57:28 +0200 |
parents | 2d2ea51b73ad |
children | cfc16ded7b34 |
comparison
equal
deleted
inserted
replaced
607:f2b1ddcc4986 | 608:a25cd1c6335a |
---|---|
8 | 8 |
9 class SuspendedSentence(GameDescription): | 9 class SuspendedSentence(GameDescription): |
10 | 10 |
11 INITIAL_SCENE = scenes.INITIAL_SCENE | 11 INITIAL_SCENE = scenes.INITIAL_SCENE |
12 SCENE_LIST = scenes.SCENE_LIST | 12 SCENE_LIST = scenes.SCENE_LIST |
13 MENU_SCREEN = MenuScreen | 13 SPECIAL_SCENES = { |
14 END_SCREEN = EndScreen | 14 'menu': MenuScreen, |
15 'end': EndScreen, | |
16 } | |
17 START_SCREEN = 'menu' | |
15 | 18 |
16 | 19 |
17 def main(): | 20 def main(): |
18 ss = SuspendedSentence() | 21 ss = SuspendedSentence() |
19 return ss.main() | 22 return ss.main() |