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("aquarium.egg")).arrayBuffer());
mount(egg, document.querySelector("canvas"), bytes, { machine: "tank" });More templates
See all
Scenes and effectsParallax landscapeMove the pointer over the valley: five layers of mountains, hills and clouds slide at different depths, driven by a script.
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 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.