pygame
Package — Game DevPython 3.7+Beginner
2D game development: sprites, sounds, input handling, rendering
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.7+
- Dependencies
- None (SDL2 bundled)
- Install
pip install pygame
Learn by Difficulty
Quick Example
python
# Install: pip install pygame import pygame # Basic pygame usage print(f"Using pygame") # See documentation for detailed examples
pygame is a third-party package. 2D game development: sprites, sounds, input handling, rendering. Install with: pip install pygame
Try in PlaygroundTags
packagegame-development2dgraphicsinteractivemultimedia
Related Items
pyglet
Package — Game Dev
Windowing and multimedia for games and visualization
arcade
Package — Game Dev
Modern 2D game framework with a Pythonic API
pyxel
Package — Game Dev
Retro game engine for making 8-bit style games
kivy
Package — GUI
Cross-platform GUI for multi-touch apps (desktop, mobile)
tkinter
Stdlib — GUI
Standard Python GUI toolkit (Tcl/Tk bindings)