Templates / Characters
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("slime-crowd.egg")).arrayBuffer());
mount(egg, document.querySelector("canvas"), bytes, { machine: "slimes" });More templates
See all
CharactersOwl mascotAn owl that watches your pointer (a script turns its head and eyes), blinks, dozes off when left alone and hops when tapped.
CharactersHatchAn egg in a nest at sunset: hover it, click to hatch it (Trim Path crack, elastic chick), click the chick to make it chirp, the sky for a new egg.
CharactersCharacter posesA little goblin wizard with eight moods: click a button to pop the wizard into a new pose.
CharactersWalking personA person on a bone skeleton: idle, walk and run cycles, switched by buttons.