Yet another spritesheet packer
$ npm install spitepack
Create a manifest.json
file in the folder containing your sprites following the JSON Schema, then run spritepack
.
Here's an example:
{
"sources": [
"**/*.{gif,jpg,png,svg}"
],
"frames": [
{
"path": "**",
"anchor": [0.5, 1]
}
],
"animations": {
"clap": {
"frames": [
{
"path": "clap/*"
}
]
},
"idle": {
"frames": [
{
"path": "idle/*"
}
]
},
"jump": {
"frames": [
{
"path": "jump-prepare/*"
},
{
"path": "jump/*"
},
{
"path": "jump-land/*"
}
]
}
}
}
Alexandre Breteau - @0xSeldszar
MIT © Alexandre Breteau