Created
November 13, 2023 22:19
-
-
Save extrasleepy/cd5b04bfbf8b5f281bdda62e4134d4aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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