Escape now returns from cut scenes.
This commit is contained in:
parent
bb711fb7a5
commit
56b0b44f66
@ -92,7 +92,7 @@ def cut_scene(sounds, soundName):
|
|||||||
c.play(sounds[soundName])
|
c.play(sounds[soundName])
|
||||||
while pygame.mixer.get_busy():
|
while pygame.mixer.get_busy():
|
||||||
event = pygame.event.poll()
|
event = pygame.event.poll()
|
||||||
if event.type == pygame.KEYDOWN and event.key in [pygame.K_RETURN, pygame.K_SPACE]:
|
if event.type == pygame.KEYDOWN and event.key in [pygame.K_ESCAPE, pygame.K_RETURN, pygame.K_SPACE]:
|
||||||
pygame.mixer.stop()
|
pygame.mixer.stop()
|
||||||
pygame.event.pump()
|
pygame.event.pump()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user