8.21: The Same Old terminate() Function

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.21: The Same Old terminate() Function
    def terminate():
        pygame.quit()
        sys.exit()
    

    The terminate() function works the same as in the previous game programs.


    This page titled 8.21: The Same Old terminate() Function was last modified on Fri, 08 Nov 2019 04:34:18 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.