There are three primary ways to run the Texture Packer. Choose the one that fits your workflow best.
Write a simple Java class or Gradle task to run the packer: libgdx texture packer
The libGDX ecosystem provides three main ways to pack your textures, depending on your preferred workflow. 1. The GUI (Recommended for Beginners) There are three primary ways to run the Texture Packer
Create a folder for your assets and add the following images: libgdx texture packer
Create a new LibGDX project and add the following code to your game's initialization method:
// 1. Load the atlas TextureAtlas atlas = new TextureAtlas(Gdx.files.internal("player.atlas"));
If you have the LibGDX tools jar, you can run the packer via the terminal. This is great for build scripts or machines without a UI.