← Catalog

pi-doom

Play DOOM in your terminal with pi

Extension

Install

Install with PiG

pig install npm:pi-doom

Install with Pi

pi install npm:pi-doom
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Video

Declared by the package manifest. Open the file ↗

Pi manifest JSON

The pi field of package.json.

{
  "video": "https://sink.mariozechner.at/api/share/f90ba774c4f13b0274bd5655dcb44922/file/doom.mp4",
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.2 (README.md). PiG does not review it.

pi-doom

Play DOOM in your terminal with pi.

DOOM in terminal

Run as pi Extension

git clone https://github.com/badlogic/pi-doom.git
pi --extensions /path/to/pi-doom

Then in pi:

/doom

Press Q to pause and return to pi. Run /doom again to resume.

Run Standalone

git clone https://github.com/badlogic/pi-doom.git
cd pi-doom
npm install
npm start

Press Q or Ctrl+C to quit.

Controls

ActionKeys
MoveWASD or Arrow Keys
RunShift + WASD
FireF or Ctrl
Use/OpenSpace
Weapons1-7
MapTab
MenuEscape
Pause/QuitQ

How It Works

DOOM runs as WebAssembly compiled from doomgeneric. Each frame is rendered using half-block characters (▀) with 24-bit color, where the top pixel is the foreground color and the bottom pixel is the background color.

The WASM module and shareware WAD are bundled in the repo, so there are no external dependencies.

Credits

License

GPL-2.0 (DOOM source code license)