Skip to main content
Engineering LibreTexts

8.21: The Same Old terminate() Function

  • Page ID
    14597
  • def terminate():
        pygame.quit()
        sys.exit()
    

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