Game Development Reference
In-Depth Information
You will need to set
rebuildAtlas
to
true
at least once and
run the game on the desktop to let TexturePacker create the
required texture atlas.
Gradle users must remember that your project folder is named
android
inside
the project root
C:/libgdx
. Hence, here you should put the destination path
../android/assets/images
in both the
TexturePacker.process()
functions.
The texture atlas for our UI will then be created in
CanyonBunny-android/assets/
images/
called
canyonbunny-ui
.
The resulting texture atlas for our UI should look like the following screenshot: