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

@@ -35,6 +35,7 @@ export const ROUTES = {
ROM: "rom",
EMULATORJS: "emulatorjs",
JSDOS: "jsdos",
PICO8: "pico8",
RUFFLE: "ruffle",
STREAM: "stream",
STREAM_DESKTOP: "stream-desktop",
@@ -274,6 +275,14 @@ const routes = [
v2: v2For(ROUTES.JSDOS),
},
},
{
path: "rom/:rom/pico8",
name: ROUTES.PICO8,
components: {
default: () => import("@/views/Home.vue"),
v2: v2For(ROUTES.PICO8),
},
},
{
path: "rom/:rom/ruffle",
name: ROUTES.RUFFLE,