Further uses of Pygame
We have used only some basic functions of the pygame.display
and pygame.event
modules. Pygame provides much more functionality, including:
- Drawing 2D geometry
- Drawing text
- Managing groups of drawable AI entities (sprites)
- Capturing various input events relating to the window, keyboard, mouse, and joysticks/gamepads
- Creating custom events
- Playback and synthesis of sounds and music
For example, Pygame might be a suitable backend for a game that uses computer vision, whereas HighGUI would not be.
Get OpenCV: Computer Vision Projects with Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.