Fix variable name
This commit is contained in:
parent
1d5b9bd148
commit
ab7212babf
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -68,8 +68,8 @@ def main():
|
|||
pause = True
|
||||
while pause:
|
||||
clock.tick(5)
|
||||
for event in pygame.event.get():
|
||||
if event.type == pglocals.KEYDOWN and event.key == pglocals.K_ESCAPE:
|
||||
for subevent in pygame.event.get():
|
||||
if subevent.type == pglocals.KEYDOWN and subevent.key == pglocals.K_ESCAPE:
|
||||
pause = False
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in a new issue