Skip to content
FossShelf
Home / Categories / For Engineers

Pyxel

Python retro game engine with built-in editors and browser export.

Replaces Pico 8, Picotron

18.63K starsMITreviewed 6 Nov 2026last commit 12 Nov 2026
Screenshot of Pyxel

Who it's for

Python developers building their first game

Pyxel provides a minimal, documented API for drawing pixels, handling input, and playing sounds, all from Python. Developers who know Python basics can build a working game in an afternoon without touching a larger game engine. The constrained environment also prevents scope creep on a first project.

Skip if the target is a commercial product targeting modern platforms. Pyxel's retro constraints and Python-based game logic limit its fit for professional game development where performance and modern visual fidelity matter.

Educators teaching Python through game projects

Pyxel's constrained API reduces the number of concepts a student needs before seeing results on screen. A single import and a draw loop are enough for a first working example. The built-in editors mean students see the connection between assets and code without leaving the tool.

Skip if students have no prior programming exposure. Pyxel still requires writing Python code; it is not a visual programming environment suitable for complete beginners.

Game jam participants using Python

Pyxel's built-in sprite, tilemap, sound, and music editors mean a game jam participant can produce a complete game without assembling a separate asset pipeline. WebAssembly export means the entry is a single link, easy to submit and play without asking judges to install anything.

Skip if the jam requires a full browser game experience beyond the retro aesthetic, or if the submission format expects a downloadable native build that runs outside a browser.

Hobbyists wanting a free PICO-8 alternative

Pyxel replicates the fantasy console experience: a constrained environment, built-in editors, and a simple API, all for free under the MIT license. Developers who tried PICO-8 but balked at the licensing fee or wanted Python instead of Lua have a direct alternative in Pyxel.

Skip if the PICO-8 community's specific conventions, cart format, and game library are the draw. Pyxel has its own ecosystem and does not run PICO-8 cartridges.

The problem

Making retro-style games in a constrained, fantasy-console workflow typically requires buying into a proprietary tool. PICO-8 and Picotron are paid fantasy consoles that use Lua as their scripting language. Python developers who want this workflow have no first-class free option that bundles the game engine with built-in asset editors and a WebAssembly export path. Fantasy consoles combine the game engine, sprite editor, sound editor, and distribution format into one product. Replicating that in Python from scratch means assembling separate tools for each step. For hobby projects, game jams, or educational settings, that overhead is a real barrier to getting started.

How it works

Built-in image and tilemap editor

Pyxel includes a full image and tilemap editor in the package, accessible from the terminal. Draw sprites and tilemaps in the editor, save them as a Pyxel resource file, and load them directly in your game code. No external sprite tool is needed to produce a complete game.

Built-in sound and music editor

Pyxel includes a sound and music editor alongside the image tools, in the same terminal-accessible tool suite. Compose sound effects and background music tracks within the editor, then reference them by channel number in your Python game code. The whole asset workflow stays inside one tool.

WebAssembly export for browser play

Finished Pyxel games export to self-contained HTML files that run in any modern browser via WebAssembly. The bundle can be hosted on any static file server, requiring no server-side code and no proprietary runtime for the player. Sharing a game is a matter of posting a link.

Rust rendering core with OpenGL and WebGL

Pyxel's rendering layer is written in Rust and targets OpenGL for desktop and WebGL for browser export. Python handles game logic; Rust handles the rendering pipeline. This split keeps the Python interface approachable while the graphics layer stays fast across platforms.

Features

  • Built-in image and tilemap editor
  • Built-in sound and music editor
  • WebAssembly export for browser play
  • Rust rendering core with OpenGL and WebGL

Recommended for this setup

Strengths

  • MIT license with no commercial restrictions: Pyxel is MIT licensed. The license permits use, modification, distribution, and commercial deployment with no fee. The only requirement is preserving the copyright notice in distributed copies. Paid alternatives like PICO-8 and Picotron charge licensing fees before you can ship commercially.
  • Python-native workflow: Game logic is written in standard Python using Pyxel's API for drawing and input. Developers who already know Python can start building retro games without learning a new scripting language. PICO-8 and Picotron require Lua, which adds a learning curve for the Python-native developer.
  • Active maintenance with minimal open issues: Pyxel has 18,522 GitHub stars and its last commit was November 5, 2026. The project carries only 6 open issues, a low count for a tool at this activity level. Active maintenance matters for a game engine dependency: a stalled engine leaves projects stranded when language updates break compatibility.
  • Browser distribution via WebAssembly: Pyxel games export to WebAssembly and run in any modern browser. Sharing a finished game is a matter of hosting an HTML file. The export requires no server-side code and no proprietary runtime on the player's machine, which makes distribution simpler than paid fantasy consoles that require their own runtimes.

Trade-offs

  • Requires writing Python code: Pyxel provides no visual scripting, block coding, or GUI game builder. Every game is written in Python code. For beginners with no programming background, the learning curve is writing Python first and game development second. Tools designed for complete beginners with no coding experience are a better starting point.
  • Designed for retro aesthetics, not modern games: Pyxel is designed for pixel-art retro game making. Its built-in tools, palette, and API prioritize the constrained 8-bit or 16-bit aesthetic. Developers wanting modern 2D sprite animation with high-resolution assets, real-time shader effects, or large asset pipelines will find Pyxel's intentional constraints a poor fit and need a game engine without the retro focus.

Tech stack

Languages
Rust, Python, JavaScript, HTML, GLSL, CSS, Makefile, Shell, C
Frameworks
—
Databases
—
Tooling
WebAssembly

FAQ

Is Pyxel free to use?

Yes. Pyxel is MIT licensed and free to install, use, and distribute with no cost. The MIT license permits commercial use with no fee; the only requirement is preserving the copyright notice in distributed copies. There is no paid tier, no cloud dependency, and no account required.

Can Pyxel games run in a browser?

Yes. Pyxel exports games to WebAssembly, which runs in any modern browser. The export produces a self-contained HTML file. Players open it in a browser with no install or plugin required. This makes sharing a game as simple as hosting a static file and posting a link.

How does Pyxel compare to PICO-8?

Both are retro game engines with built-in asset editors, but they differ in language and cost. PICO-8 uses Lua and requires a paid license. Pyxel uses Python, is MIT licensed, and is free for any use. PICO-8 has a large dedicated community and an established game library built around its conventions. Pyxel is the better fit for Python developers who want the fantasy console approach without the licensing cost or the Lua requirement.

Can I use Pyxel for a commercial game?

Yes. The MIT license places no restrictions on commercial use. You can build, sell, and distribute games made with Pyxel without paying a licensing fee. The only requirement is that the copyright notice be included in copies of the Pyxel library itself. Your game's assets and code are yours to license as you choose.

What Python experience do I need to use Pyxel?

Basic Python knowledge is enough to start: understanding of variables, loops, and functions covers the initial API. Pyxel's API is intentionally small, with simple functions for drawing, input, and sound. Beginners who know Python fundamentals can build a working game quickly. Advanced Python features are not required for most retro game projects.

Similar tools

More in Engineers