diff options
author | SoaS user <liveuser@localhost.localdomain> | 2009-12-20 21:25:01 (GMT) |
---|---|---|
committer | SoaS user <liveuser@localhost.localdomain> | 2009-12-20 21:25:01 (GMT) |
commit | 2b3c61cd2a8133a730344c42befa1408458eabd7 (patch) | |
tree | bad9942faa1479c9f4d3e003c7d4fc5012c29df1 | |
parent | d74b331668442ca2581dbb1371c6699f8f8cdfcc (diff) |
-rw-r--r-- | Maze.activity/game.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Maze.activity/game.py b/Maze.activity/game.py index 3d194fc..d4a6ae9 100644 --- a/Maze.activity/game.py +++ b/Maze.activity/game.py @@ -115,7 +115,15 @@ class MazeGame: pygame.K_KP9: (2, pygame.K_UP), pygame.K_KP3: (2, pygame.K_DOWN), pygame.K_KP7: (2, pygame.K_LEFT), - pygame.K_KP1: (2, pygame.K_RIGHT) + pygame.K_KP1: (2, pygame.K_RIGHT), + pygame.K_w: (1, pygame.K_UP), + pygame.K_s: (1, pygame.K_DOWN), + pygame.K_a: (1, pygame.K_LEFT), + pygame.K_d: (1, pygame.K_RIGHT), + pygame.K_i: (2, pygame.K_UP), + pygame.K_k: (2, pygame.K_DOWN), + pygame.K_j: (2, pygame.K_LEFT), + pygame.K_l: (2, pygame.K_RIGHT) } def game_running_time(self, newelapsed=None): |