Libgdx Texture Packer Upd -

// 4. Or create a full Sprite (with color, rotation, etc.) Sprite playerSprite = atlas.createSprite("player_jump");

// (input directory, output directory, atlas file name) TexturePacker.process(settings, "raw-assets/player", "android/assets/", "player"); libgdx texture packer

Write a simple Java class or Gradle task to run the packer: // (input directory

dependencies // ... your other dependencies compileOnly "com.badlogicgames.gdx:gdx-tools:$gdxVersion" atlas file name) TexturePacker.process(settings

raw-assets/player/ ├── idle/ │ ├── frame1.png │ └── frame2.png └── run/ ├── run01.png └── run02.png You can access atlas.findRegion("idle/frame1") or atlas.findRegions("run") .