@petx/core
v0.1.0
Published
Shared frame math, types, and CSS variable helpers for Codex pet atlases.
Maintainers
Readme
@petx/core
Shared frame math, animation defaults, manifest helpers, and CSS variable builders for Codex pet atlases.
npm i @petx/coreimport { getCodexPetStyleVars, resolvePetSpritesheet } from '@petx/core';
const src = resolvePetSpritesheet(pet, '/pets/frieren/pet.json');
const style = getCodexPetStyleVars({ src, animation: 'idle', size: 192 });The default atlas is 8 columns by 9 rows with 192 x 208 px frames.
