Skip to content

Instantly share code, notes, and snippets.

@extrasleepy
Created November 13, 2023 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save extrasleepy/cd5b04bfbf8b5f281bdda62e4134d4aa to your computer and use it in GitHub Desktop.
Save extrasleepy/cd5b04bfbf8b5f281bdda62e4134d4aa to your computer and use it in GitHub Desktop.
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
elif event.type == pygame.KEYDOWN and event.key == pygame.K_ESCAPE:
running = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment