Mercurial > boomslang
diff gamelib/gamescreen.py @ 28:0f25f7b9b37a
Add loading of initial state.
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Sun, 22 Aug 2010 18:48:32 +0200 |
parents | 5c7bbbdf9296 |
children | 6322d92dc8f0 |
line wrap: on
line diff
--- a/gamelib/gamescreen.py Sun Aug 22 18:44:19 2010 +0200 +++ b/gamelib/gamescreen.py Sun Aug 22 18:48:32 2010 +0200 @@ -2,6 +2,8 @@ # Copyright Boomslang team, 2010 (see COPYING File) # Main menu for the game +from state import initial_state + from pygame.color import Color from albow.screen import Screen from albow.controls import Button, Label @@ -57,6 +59,8 @@ self.inventory = InventoryView() self.inventory.bottomleft = self.bottomleft self.add(self.inventory) + # TODO: Randomly plonk the state here for now + self.state = initial_state() def main_menu(self): print 'Returning to menu'