Changeset 32:8abd0d6e8c61


Ignore:
Timestamp:
Apr 3, 2011, 4:49:44 PM (9 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Message:

Quit level editor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/level-editor

    r31 r32  
    1111import pygame.key
    1212from pygame.locals import (SWSURFACE, QUIT, KEYDOWN, K_UP, K_DOWN, K_LEFT,
    13                            K_RIGHT, KMOD_SHIFT)
     13                           K_RIGHT, KMOD_SHIFT, K_q)
    1414
    1515from skaapsteker.constants import SCREEN
     
    4040                elif ev.key == K_RIGHT:
    4141                    position[0] += distance
     42                elif ev.key == K_q:
     43                    return
    4244
    4345        position[0] = max(position[0], 0)
Note: See TracChangeset for help on using the changeset viewer.