Pyxel: Make retro pixel-art games in Python, with art and music editors
Added · Updated
Made by Takashi Kitao
View profile on GitHub (opens in a new tab)Pyxel is a game engine for making small retro-style games in Python, deliberately limited like an old console: 16 colours and 4 sound channels.
It comes with its own editors for pixel art, tile maps, sound effects and music, so the art, audio and code of a game all come from one tool. The engine is written in Rust underneath, and games run on Windows, macOS, Linux and in a web browser. This is an established project, not a new one: one developer has built it since 2018, and it has over 18,000 GitHub stars.
What it does
A Pyxel game is a short Python script: set the window size with init, then run with an update function and a draw function. The pyxel command runs scripts, reloads them as you edit, opens the built-in resource editor for images, tile maps, sounds and music, and packages a finished game as a single file, a desktop program or a web page. Games work with keyboard, mouse and gamepad. Without installing anything, Pyxel Code Maker lets you write and run games in the browser, and a shared link can launch a Pyxel game hosted on GitHub straight in a browser. There is also a VS Code extension, a Pyxel MML Studio for writing chiptunes, and an MCP connector and skill for AI coding assistants. The creator posted it to Show HN on 1 October 2026; it is MIT licensed.
You could use it to…
- Draw sprites and write music for a small game in one tool
- Write a short Python game that runs in a web browser
- Package a finished game as a single file, a desktop program or a web page
Getting started
Browser demo · source checked 2026-10-21 · Source page (opens in a new tab)
- Open the Jump game example from the source’s showcase pictures.
- Play it in the browser page.
- Then open the image editor or sound editor showcase to see the built-in art and music tools.
- Try with
- Start with the Jump game, then try the Platformer or Megaball examples linked from the project's documentation.
- What to expect
- A small retro game running in the browser page; the source shows more examples and editors in the same showcase.
- Access note
- Opens in a browser. The source does not state sign-in needs or how to install Pyxel to build your own game.
Can I use this?
You'll need A web browser, or Python 3.11+ on Windows, Mac or Linux
Worth knowing The 16-colour, 4-channel limits are the point, so it suits small 2D games rather than modern 3D ones. It is maintained by one person. The creator does not recommend its Rust internals as a way to learn Rust.
Why it's here
Not trending this week
Last on the BuildTube front page on 8 October 2026. It stays on BuildTube so you can still find it.
- 18,572 people have starred it on GitHub.
- Shown on Hacker News (Show HN) on 1 October, with 105 points.
Numbers checked on 8 November 2026; not refreshed since.
Behind it
View sourceBuildTube has not run or verified this project. Everything above is written from what the creator published.
Made this?
Quick questions
- What is Pyxel?
- A Pyxel game is a short Python script: set the window size with init, then run with an update function and a draw function.
- What can I use Pyxel for?
- Draw sprites and write music for a small game in one tool; Write a short Python game that runs in a web browser; Package a finished game as a single file, a desktop program or a web page
- Can I run Pyxel on my computer?
- No install needed: it runs in your web browser.
- What do I need to use Pyxel?
- A web browser, or Python 3.11+ on Windows, Mac or Linux
- What license does Pyxel use?
- The source lists the MIT license (MIT), an OSI-approved open-source license. Read the license file on the source page for the full terms.
More from this week
- agent-desktop Let AI agents read and click desktop apps
For developers building computer-use agents: agent-desktop lets an AI agent read and operate desktop apps on Mac, Windows or Linux from a command line.
- Astryx Build React app screens from ready-made accessible components
Build React app interfaces with 150+ ready-made components and themes.
- Auto-Ontology Give AI agents checked business meanings for your database
Help AI agents answer questions about company databases using reviewed definitions and SQL, with each answer showing its steps.
Explore by topic
Post this
Download share imageFor makers
Made this? Show it’s on BuildTube — add the badge to your README or embed the card on your site.
README badge (Markdown)
[](https://buildtube.app/p/gh-kitao-pyxel/)Embed card (HTML)
<iframe src="https://buildtube.app/embed/gh-kitao-pyxel/" width="560" height="240" style="border:0;max-width:100%" loading="lazy" title="Pyxel on BuildTube"></iframe>