demo
The Flock — unruly hacker geese
Four geese with personalities: click one to provoke it, or move onto the lawn and see who follows.
Agents describe characters; the engine draws them as pixel art at every level of detail; websites play them with one tag.
npm i @pixel-studio/coreDescribe a character as JSON; the engine draws it as pixel art at every size, with realistic motion; one tag plays it on any web page, where it can even walk around your layout. Every example on these pages is live: the code under each one is exactly what runs.
Write a character, make it move and put it on a page: the spec, figures, runtime, stage, CLI and API.
The README, what changed in each release, and how to contribute.
demo
Four geese with personalities: click one to provoke it, or move onto the lawn and see who follows.
demo
A made-up hiking site where every character is a single <pixel-sprite> tag: hover them, click them.
demo
An endless runner: a fox whose gallop is measured from Muybridge's hounds, on a trail that scrolls at the speed of its paws.
npm i @pixel-studio/core # the engine and CLI; brings @pixel-studio/runtime with it{ "extends": "./node_modules/@pixel-studio/core/examples/goose-base.json",
"name": "Marigold",
"materials": { "feather": { "color": "#e8b04a" }, "beak": { "color": "#d94b32" } } }npx pixel validate my-goose.json # errors with JSON paths and did-you-mean
npx pixel preview my-goose.json --out my-goose.png # every animation at 16, 32 and 64 px
npx pixel bundle my-goose.json --out my-goose.bundle.jsonA site that only plays sprites needs just the runtime: npm i @pixel-studio/runtime, no dependencies.
<script type="module" src="node_modules/@pixel-studio/runtime/src/pixel-sprite.js"></script>
<pixel-sprite src="my-goose.bundle.json" anim="idle" size="128" hover-anim="waddle" click-anim="honk"></pixel-sprite>