dmmotor
A 90s first-person shooter, rewritten in PHP, running in your browser.
PLAYThe game
Industrial mazes, overrun bases, key card doors, secret switches, lifts and traps: dmmotor plays Freedoom Phase 1 (four episodes of nine levels) and Freedoom Phase 2 (32 levels), with their monsters, weapons, sounds and music. Save games, automap, keyboard, mouse, gamepad or touch controls.
The engine is a PHP port of the source code id Software released under the GPL v2 (linuxdoom-1.10): BSP rendering of walls, floors and ceilings, sprites, monster AI, weapons, doors and lifts, translated file by file. It runs on JumPHP, PHP compiled to WebAssembly: nothing to install.
Screenshots





Controls
- Keyboard — Arrows or WASD / ZQSD: move and turn — A/Q, D: strafe — Ctrl, F or click: fire — mouse: turn — Space or E: open, use — Shift: walk — 1 to 7: weapons — Tab: map — Esc: pause, save
- Gamepad — Stick: move — RT or X: fire — A: use — LB / RB: strafe — Y: next weapon — Start: pause
- Phone — On-screen stick, FIRE and USE buttons, MENU to pause
Licences and credits
Engine: id Software's source code released under the GNU GPL v2, ported to PHP for dmmotor; the code of this port is under the same licence and its source is public.
Game content: Freedoom (levels, graphics, sounds), BSD licence, © the contributors to the Freedoom project.
dmmotor is not affiliated with or endorsed by id Software, ZeniMax or Bethesda.
FAQ
Do I need to install anything?
No: the game runs in the browser, on a computer or a phone.
Is it free?
Yes, completely: the engine is GPL and the Freedoom content is BSD.
Is there music?
Yes: the Freedoom songs are played live by an FM synthesizer written in PHP, like the sound cards of the time.
Which games are included?
Freedoom Phase 1 (four episodes) and Freedoom Phase 2 (32 levels), chosen at start.