Templates / Scenes and effects
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
Scenes and effectsBrand splashA logo reveal: the egg draws itself, fills, the yolk pops and the name rises letter by letter. Tap to replay.
Scenes and effectsAquariumClick a fish: a food pellet drops and the fish swims over and eats it. The fish turn round in depth, facing you on the way.
Scenes and effectsEffects cardGradient, drop and inner shadows, a feathered glow and a Screen blend on one card.
GamesStar CatcherA real little game: catch falling stars in the fox's basket with the mouse or the arrow keys, dodge bombs, grab hearts; combos, levels, a best score.