Overview of Pygame modules
mainPygame is composed of several specialized modules for different game development tasks. Key modules include:
pygame.display: Control the display window or screen.pygame.event: Manage events and the event queue.pygame.draw: Draw simple shapes onto aSurface.pygame.font: Create and render TrueType fonts.pygame.image: Save and load images.pygame.mouse: Manage the mouse.pygame.key: Manage the keyboard.pygame.joystick: Manage joystick devices.pygame.time: Control timing.pygame.transform: Scale, rotate, and flip images.pygame.cursors: Load cursor images, including standard cursors.pygame.cdrom: Playback.pygame.sndarray: Manipulate sounds withnumpy.pygame.surfarray: Manipulate images withnumpy.