8.12: The Event Handling Loop

Making Games with Python and Pygame · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-NC-SA 3.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    8.12: The Event Handling Loop
            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.


    This page titled 8.12: The Event Handling Loop was last modified on Mon, 18 May 2020 08:25:50 GMT and is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by Al Sweigart via source content that was edited to the style and standards of the LibreTexts platform.