Appearance
LibGDX
Packrat writes one atlas.atlas file that lists every page image. Copy the file and images into your game's assets directory. Load the file with LibGDX's TextureAtlas; its Sprite class applies the original size and trim offsets.
java
TextureAtlas atlas = new TextureAtlas(Gdx.files.internal("atlas.atlas"));
Sprite player = atlas.createSprite("player");
Array<Sprite> run = atlas.createSprites("run_side");
batch.begin();
player.setCenter(320, 180);
player.draw(batch);
batch.end();
atlas.dispose(); // When finishedUse findRegion(name) or createSprite(name) to select a frame. createSprites(name) returns animation frames sorted by index. A region stores its name, index, originalWidth, originalHeight, offsetX, offsetY, packedWidth, and packedHeight.
Names containing newlines or delimiters that the atlas parser could misread are rejected during export.
See Output files for filenames and effect maps.