[Sugar-devel] [PATCH Maze] Avoid K_ESCAPE to quit the game SL #3461
Rafael Ortiz
rafael at activitycentral.com
Fri Jun 1 00:01:16 EDT 2012
On Thu, May 31, 2012 at 6:36 PM, Manuel Kaufmann <humitos at gmail.com> wrote:
> This is an old pygame behavior that we don't need in Sugar.
>
> Signed-off-by: Manuel Kaufmann <humitos at gmail.com>
> ---
> game.py | 4 +---
> 1 file changed, 1 insertion(+), 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()
> --
> 1.7.10
>
Thanks,
Applied as
http://git.sugarlabs.org/maze/mainline/commit/05cf8d1e113c8c6f84809ebd41562b58261450de
Will be in next version.
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120531/c4d21c20/attachment.html>
More information about the Sugar-devel
mailing list