comparison 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
comparison
equal deleted inserted replaced
791:56ec01e51f3d 792:bdaffaa8b6bf
1 import scenes 1 import scenes
2 2
3 from constants import SSConstants 3 from constants import SSConstants
4 from menu import MenuScreen 4 from menu import SSMenuScreen
5 from endscreen import EndScreen 5 from endscreen import EndScreen
6 from ss_state import SSState 6 from ss_state import SSState
7 7
8 from pyntnclick.main import GameDescription 8 from pyntnclick.main import GameDescription
9 9
11 class SuspendedSentence(GameDescription): 11 class SuspendedSentence(GameDescription):
12 12
13 INITIAL_SCENE = scenes.INITIAL_SCENE 13 INITIAL_SCENE = scenes.INITIAL_SCENE
14 SCENE_LIST = scenes.SCENE_LIST 14 SCENE_LIST = scenes.SCENE_LIST
15 SCREENS = { 15 SCREENS = {
16 'menu': MenuScreen, 16 'menu': SSMenuScreen,
17 'end': EndScreen, 17 'end': EndScreen,
18 } 18 }
19 START_SCREEN = 'menu' 19 START_SCREEN = 'menu'
20 20
21 def game_state(self): 21 def game_state_class(self):
22 return SSState() 22 return SSState
23 23
24 def game_constants(self): 24 def game_constants(self):
25 return SSConstants() 25 return SSConstants()
26 26
27 27