DOOM Example

March 13, 2026 ยท View on GitHub

This example is the standalone Flutter app for running DOOM with wasd.

Run (macOS)

flutter pub get
flutter run -d macos

Run (Chrome)

The web input path uses SharedArrayBuffer, so Chrome must run with COOP/COEP response headers enabled:

flutter pub get
flutter run -d chrome \
  --web-hostname=127.0.0.1 \
  --web-port=8125 \
  --web-header=Cross-Origin-Opener-Policy=same-origin \
  --web-header=Cross-Origin-Embedder-Policy=require-corp

Without these headers, DOOM can render on web, but keyboard input will not work.