Skip to main content
Engineering LibreTexts

8.12: The Event Handling Loop

  • Page ID
  •         for event in pygame.event.get(): # event handling loop
                if event.type == KEYUP:

    The event handling loop takes care of when the player rotates the falling piece, moves the falling piece, or pauses the game.

    • Was this article helpful?