Skip to main content

Module webexport

Module webexport 

Source
Expand description

Web export: turn a cart into a single self-contained HTML file.

The file embeds two things, base64-encoded: the browser player (the console runtime compiled to wasm, from the pixel8-web crate) and the cart PNG itself. No server, no sidecar files — double-click the HTML and the cart boots, PICO-8-web style: cartridge art first, click to play. See docs/WEB_EXPORT.md for the details and limits.

Functions§

export_html
Export cart as a playable single-file HTML page.
web_crate_dir
Where the pixel8-web player crate lives. Defaults to this source tree; override with PIXEL8_WEB for installed binaries.