The cat
The oneko engine animates a cat that walks, runs, scratches, gets tired and sleeps. It all comes from one 256x128 sprite sheet of 32x32 cells.
vanilla js · no dependencies
oneko is the pixel cat that follows your cursor. This is a small switcher
that sits on top of it, so visitors can pick which cat it is. You list your sprites in
a JSON file and add one script. That's the whole thing.
There's a cat following your cursor right now. Click it, or press C, to change it.
The oneko engine animates a cat that walks, runs, scratches, gets tired and sleeps. It all comes from one 256x128 sprite sheet of 32x32 cells.
A menu lists every sprite from your JSON file, grouped by category. Click one and the cat changes. Whatever you pick is saved in localStorage for next time.
To add a cat, add a line of JSON: a name, a sprite path, a category. Every skin shows up in the menu straight away. Nothing to unlock.
The starter kit has the script, a small stylesheet, a sample config and a demo page. If you'd rather, the full cat.js I use is on GitHub too.
Around a hundred skins, grouped by category. Click any of them to put it on your cursor.
Four short steps to drop the switcher into your own site, plus the JSON format and the small API.