Using tilesheets from individual sprites, along with the generated JSON from Aseprite, create a single tile atlas and an associated JSON file including the metadata of all sprites and individual animations.
Also generated with the atlas is a folder of the primary sprites for use in Tiled (or another map editor), with the base sprite name as the name of the image.
Output JSON:
{
"meta": {
"size": {
"w": xxx,
"h": xxx
}
},
"spritesheets": [
{
"name": "example",
"size": {
"w": xxx,
"h": xxx
},
"spriteSize": {
"w": xxx,
"h": xxx
},
"position": {
"x": xxx,
"y": xxx,
}
"animations": [
{
"name": "idle",
"direction": "down",
"numFrames": 1,
"frames": [
{
"frameNumber": 0,
"duration": 0,
"size": {
"w": xxx,
"h": xxx
},
"position": {
"x": xxx,
"y": xxx,
},
"offset": {
"x": xxx,
"y": xxx,
}
}
]
},
{
"name": "move",
"direction": "down",
"numFrames": 2,
"frames": [
{
"frameNumber": 0,
"size": {
"w": xxx,
"h": xxx
},
"position": {
"x": xxx,
"y": xxx,
},
"offset": {
"x": xxx,
"y": xxx,
}
},
{
"frameNumber": 1,
"size": {
"w": xxx,
"h": xxx
},
"position": {
"x": xxx,
"y": xxx,
},
"offset": {
"x": xxx,
"y": xxx,
}
}
]
}
]
}
]
}
In order to use this tool, make sure that Aseprite.exe is in your Path
environment variable.
Check the example to get a better idea about how this tool can be used.
AtLess [-h] [I] [O]
Texture Atlas generator for use with Aseprite
positional arguments:
I Input folder
O Base file name. A JSON and PNG file will be created
options:
-h, --help show this help message and exit