changeset 182:d63951985313

Make 'i' take you from the main menu to the instructions.
author Simon Cross <hodgestar@gmail.com>
date Fri, 04 Sep 2009 16:49:38 +0000
parents 7e556ef40100
children 2b9176c35397
files gamelib/engine.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/engine.py	Fri Sep 04 16:48:01 2009 +0000
+++ b/gamelib/engine.py	Fri Sep 04 16:49:38 2009 +0000
@@ -2,7 +2,7 @@
 
 from pgu.engine import Game, State, Quit
 import pygame
-from pygame.locals import USEREVENT, QUIT, KEYDOWN, K_ESCAPE, K_n, K_d, K_s
+from pygame.locals import USEREVENT, QUIT, KEYDOWN, K_ESCAPE, K_n, K_d, K_s, K_i
 
 import gameboard
 import gameover
@@ -65,6 +65,8 @@
             elif e.key == K_s:
                 self.game.create_game_board()
                 return DayState(self.game)
+            elif e.key == K_i:
+                return HelpScreenState(self.game)
         elif e.type is not QUIT:
             self.game.main_app.event(e)