input/images/ ├── character/ │ ├── idle.png │ ├── run.png │ └── jump.png ├── background/ │ ├── sky.png │ └── ground.png └── ui/ ├── button.png └── icon.png
TextureAtlas atlas = new TextureAtlas(Gdx.files.internal("my_sprites.atlas")); AtlasRegion playerSprite = atlas.findRegion("player_walk_01"); // In your render method: batch.begin(); batch.draw(playerSprite, x, y); batch.end(); Use code with caution. libgdx texturepacker
For a studio moving from prototypes to production, moving raw assets into a TexturePacker workflow is the standard step to ensure the game runs at 60fps on mobile hardware. input/images/ ├── character/ │ ├── idle
}
Adds extra pixels around the edge of sprites to prevent "texture bleeding" (where a tiny line of the neighboring sprite appears on your image). Allows the packer to rotate sprites by 90
Allows the packer to rotate sprites by 90 degrees to fit them more tightly. LibGDX handles the rotation automatically when you draw them.