Templates / Characters
Livecharacter-follow.egg · 16 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("character-follow.egg")).arrayBuffer());
mount(egg, document.querySelector("canvas"), bytes, { machine: "milo" });

More templates

See all