Skip to content

A minimal command line tool for generating texture atlases from Aseprite projects

Notifications You must be signed in to change notification settings

jakehffn/AtLess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AtLess

A minimal command-line texture atlas generator for Aseprite

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,
                            }
                        }
                    ]
                }
            ]
        }
    ]
}

Usage

In order to use this tool, make sure that Aseprite.exe is in your Path environment variable.

Example

Check the example to get a better idea about how this tool can be used.

Command line

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

About

A minimal command line tool for generating texture atlases from Aseprite projects

Topics

Resources

Stars

Watchers

Forks

Languages