Skip to content

Add Support For Atlases (AxAtlas) #19

@arkeus

Description

@arkeus

Implement AxAtlas such that it supports loading texture atlases in format(s) that popular tools export to. Also support manually creating the atlas via code.

Most likely you will construct it as follows:

var atlas:AxAtlas = new AxAtlas(xmlFormat);

And it will load from formats such as the one TexturePacker exports to. You'll also be able to add your own via code (so you can create the manually):

atlas.add("player_stand", 50, 72, 32, 32);
atlas.add("player_walk", 50, 84, 32, 32, 5, 10);

Then in AxSprite you can load from an atlas. This will add all the relevant animations also.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions