Pyxel is a game engine for Python built around the constraints of classic retro consoles: a 16-color palette, 4 sound channels, and simple pixel-based graphics. It's aimed at developers who want to make small, pixel-art-style games without wrestling with a full-featured modern engine. The core is written in Rust for speed, but you write your games entirely in Python.
The project is maintained by a single developer and has built a community around sharing finished games and tools, with a public gallery of user examples and a discussion board for showcasing work.
Pyxel fits game jams, learning projects, and anyone who wants to build a small arcade-style or platformer game without a heavy engine. It works well for teaching programming concepts through game-making, since the API is compact and the visual output is simple to reason about. It's also a good choice if you want to prototype a pixel-art game idea quickly and share it as a browser-playable demo.
It's not the right tool if you need high-resolution graphics, full RGB color ranges, 3D rendering, or a physics/animation pipeline suited for commercial-scale production. If your project needs more than 16 on-screen colors or more than 4 simultaneous sound channels, you'll be fighting the engine's design rather than using it. Teams building large, asset-heavy games with complex UI systems will likely outgrow Pyxel's intentionally minimal feature set.
Pyxel is distributed as a Python package, so the standard way to get it is through pip:
pip install pyxel
Once installed, you write your game logic in a Python script using Pyxel's API (handling update and draw loops, input, sprites, and sound), then run it with Python as you would any script. The built-in editors for images, tilemaps, and sound can be launched from the command line to create and manage game assets without leaving the toolchain.
Full API details and step-by-step tutorials are available in the official user guide, and the project's user examples page is a useful reference for seeing complete, working games built with the engine.