Templates / Scenes and effects
Liveparallax.egg · 20 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("parallax.egg")).arrayBuffer());
mount(egg, document.querySelector("canvas"), bytes, { machine: "scene" });

More templates

See all