Templates / Interface
Liveonboarding.egg · 183 KB

Use it in your site

Put the web player next to the file and mount it on a canvas. Apps and games have runtimes too: see Runtimes.

main.jsweb runtime
import init, * as egg from "./player/egg_web.js";
import { mount } from "./player/egg-player.js";

await init();
const bytes = new Uint8Array(await (await fetch("onboarding.egg")).arrayBuffer());
mount(egg, document.querySelector("canvas"), bytes, { machine: "tour" });

More templates

See all