Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Kaufmann <humitos@gmail.com>2012-05-31 23:36:12 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2012-06-01 03:58:55 (GMT)
commit05cf8d1e113c8c6f84809ebd41562b58261450de (patch)
treecf0ce952db997c0adbd5e0be0e8b847fdb94978c
parent2b3d4a2d06820bebb0a197b306dcec6a3e4b4d08 (diff)
Avoid K_ESCAPE to quit the game SL #3461
This is an old pygame behavior that we don't need in Sugar. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Signed-off-by: Rafael Ortiz <rafael@activitycentral.com>
-rw-r--r--game.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/game.py b/game.py
index 85f6d7f..4f904d5 100644
--- a/game.py
+++ b/game.py
@@ -175,9 +175,7 @@ class MazeGame:
if event.type == pygame.QUIT:
self.running = False
elif event.type == pygame.KEYDOWN:
- if event.key == pygame.K_ESCAPE:
- self.running = False
- elif event.key in (pygame.K_PLUS, pygame.K_EQUALS):
+ if event.key in (pygame.K_PLUS, pygame.K_EQUALS):
self.harder()
elif event.key == pygame.K_MINUS:
self.easier()