TECHNOLOGY
Pyxel: An Open-Source Python Engine for Making Retro Pixel-Art Games
Pyxel is a free, MIT-licensed Python game engine that recreates the constraints of classic consoles, limiting developers to 16 colors and 4 sound channels. The one-person project runs on Windows, Mac, Linux and the web, and includes built-in art and sound editors.
Image: Pyxel · Uploaded by IntraGoals — usage rights confirmed
A Python-based game engine called Pyxel is drawing attention on Hacker News for letting developers build retro-style games with the same constraints found on classic gaming consoles. The open-source tool limits users to a 16-color palette and four sound channels, echoing the technical limitations of 1980s-era hardware while running on modern systems.
Pyxel is developed by Takashi Kitao and distributed under the MIT License, making it free to use, modify and redistribute, including in proprietary software, as long as the license terms and copyright notice are retained. The project is maintained by a single developer who has said its continued development depends on community support through GitHub stars and sponsorships.
The engine works across Windows, Mac, Linux and the web, and can be installed via Python's pip package manager (requiring Python 3.11 or higher) or used directly in a browser through a tool called Pyxel Code Maker. A Visual Studio Code extension also allows developers to build and run Pyxel applications without installing Python separately.
Technically, Pyxel provides three 256x256 image banks, eight 256x256 tilemaps, 64 definable sounds across four channels, and eight combinable music tracks. It supports keyboard, mouse and gamepad input, and includes built-in editors for creating pixel art and sound. Developers can also generate images and audio programmatically from strings or load existing PNG, GIF or JPEG files.
Once a game is built, Pyxel allows it to be packaged into a cross-platform application file that can be run with a single command, converted into a standalone executable, or exported to HTML for web distribution. Sample projects distributed with the engine include a platformer, a jump game and titles called "30 Seconds of Daylight" and "Megaball."
The project maintains documentation, an API reference, and community resources including Discord servers in English and Japanese, alongside a user showcase for sharing finished games. Kitao is currently seeking sponsors through GitHub Sponsors to support ongoing maintenance and feature development.