Not everyone who opens the x86 playground wants a Linux shell. Some want to play. So here are five classics that boot in a browser tab with one click each. Every link starts a real PC, emulated in WebAssembly on your own machine, with nothing to install.
I’ve kept to games that are free to share: shareware, open source or hobby projects. The v86 menu has much more, but these five you can play with a clear conscience.
1. Doom, from a single floppy#
Boot it · 1993 · DOS
Doom helped turn the PC into a gaming machine, and id Software released its first episode as shareware, free to copy. Doom On One Floppy is a modern open-source project that fits that shareware Doom onto a single floppy disk. It’s a good test of how far browsers have come: a game that wanted a fast 486 in 1993 now runs on an emulated processor that is itself just code in a tab.
Click into the screen before you play, so the keyboard goes to the game.
2. Rogue, the game that named a genre#
Boot FreeDOS · 1980 · DOS
Before graphics, there was Rogue: you are an @, the monsters are letters, and every level is generated anew. Die, and you start over. Every “roguelike” since, from NetHack to the indie hits of the last decade, is named after it. The FreeDOS image includes a version of Rogue, along with tools like vim and the nasm assembler, if you want to look under the hood instead.
3. NetHack, on the heir of BeOS#
Boot Haiku · 1987 · Haiku
NetHack is Rogue’s famously deep descendant, still developed and open source. The Haiku image includes it, and 2048 if you want something quicker. Haiku itself is worth the trip: an open-source operating system that carries on BeOS, the 90s system that was nearly the foundation of macOS. It boots to a full desktop in your tab, which takes a little patience.
4. KolibriOS: an operating system with games, in 1.3 MB#
Boot it · KolibriOS
KolibriOS is written almost entirely in assembly language, and the whole system, with a desktop, apps, demos and a handful of games, fits on a floppy disk. It boots in seconds. Open the menu and look for the games; it’s also the best demonstration on this list of what software can do when every byte counts.
5. Games in a boot sector: Floppy Bird and BootChess#
Boot Floppy Bird · Boot BootChess
The boot sector is the first 512 bytes of a disk. A PC’s BIOS loads it and jumps to it, before any operating system exists. Normally it holds a few instructions that load something bigger. These two put an entire game there instead: a Flappy Bird clone, and a chess program that plays against you. No operating system, no files, just a game in less space than this paragraph.
Follow the prompt on screen to start.
Make your own, in Python#
These games were written in C and assembly for machines that were slow and tiny by today’s standards. If you want to make your own, the browser can now run real Python too, including pygame, the library many people learn to program games with.
That’s what PyCorner’s games are for: write a pygame game the way you always have, and it runs in a browser tab as written, on pygame-ce compiled to WebAssembly. No install, no server to run, and you share the game with a link. Before you write anything, you can play the sample games to see what it can do.
PyCorner is my own platform, currently in private beta: if you’re making something, ask for an invite and tell me what it is.
How does any of this work?#
A whole PC in a browser tab sounds impossible. It comes down to a BIOS and a disk image arriving over HTTP, an x86 processor that is interpreted at first and then translated to WebAssembly once code runs often, and memory paging done in software.
The emulator is v86, an open-source project started by Fabian of copy.sh, which also hosts the disk images. This blog only embeds it.
Related#
- The x86 playground: pick from more than a hundred systems, with ten Linux commands to try
- All playgrounds: more things that run entirely in your browser
- The learning page: seven tracks, each from concept to practice
