feat: add browser PICO-8 player

Add v2 browser playback for .p8 and .p8.png cartridges, backed by the
FAKE-08 WebAssembly runtime, with canvas rendering, audio, fullscreen and
keyboard, gamepad, mouse and touch input. Wires up platform detection,
play actions, routing, localization, gallery navigation, play-session
tracking and lifecycle cleanup.

The runtime is fetched in the emulator stage of docker/Dockerfile, pinned
by source commit and verified with sha256, so it is provisioned the same
way as EmulatorJS, Ruffle and js-dos rather than committed to the repo.

DISABLE_PICO8 gates the player, matching the existing DISABLE_EMULATOR_JS,
DISABLE_RUFFLE_RS and DISABLE_JSDOS toggles.

Based on #4383.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bee
2026-09-08 17:59:52 -04:00
committed by Georges-Antoine Assi
parent 08f294d0fa
commit f50eacfcbd
44 changed files with 1137 additions and 17 deletions

View File

@@ -6,5 +6,6 @@ export type EmulationDict = {
DISABLE_EMULATOR_JS: boolean;
DISABLE_RUFFLE_RS: boolean;
DISABLE_JSDOS: boolean;
DISABLE_PICO8: boolean;
};