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
|
pause = True
|
||||||
while pause:
|
while pause:
|
||||||
clock.tick(5)
|
clock.tick(5)
|
||||||
for event in pygame.event.get():
|
for subevent in pygame.event.get():
|
||||||
if event.type == pglocals.KEYDOWN and event.key == pglocals.K_ESCAPE:
|
if subevent.type == pglocals.KEYDOWN and subevent.key == pglocals.K_ESCAPE:
|
||||||
pause = False
|
pause = False
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue