Changeset 182:d63951985313


Ignore:
Timestamp:
Sep 4, 2009, 4:49:38 PM (11 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@183
Message:

Make 'i' take you from the main menu to the instructions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/engine.py

    r180 r182  
    33from pgu.engine import Game, State, Quit
    44import pygame
    5 from pygame.locals import USEREVENT, QUIT, KEYDOWN, K_ESCAPE, K_n, K_d, K_s
     5from pygame.locals import USEREVENT, QUIT, KEYDOWN, K_ESCAPE, K_n, K_d, K_s, K_i
    66
    77import gameboard
     
    6666                self.game.create_game_board()
    6767                return DayState(self.game)
     68            elif e.key == K_i:
     69                return HelpScreenState(self.game)
    6870        elif e.type is not QUIT:
    6971            self.game.main_app.event(e)
Note: See TracChangeset for help on using the changeset viewer.