// Instead of loading 100 textures... TextureAtlas gameAtlas = new TextureAtlas(Gdx.files.internal("ui/ui-atlas.atlas"));
// In build.gradle dependencies api "com.badlogicgames.gdx:gdx-tools:$gdxVersion" texturepacker libgdx
There are two main ways to get your images out of the atlas. // Instead of loading 100 textures
TexturePacker uses the file name (without extension) as the region name. texturepacker libgdx
// Create a sprite for the character's running state Sprite runSprite = atlas.createSprite("run");