Game Development Reference
In-Depth Information
Take a look at the following screenshot that shows all the images of our game objects
in separate image files:
You might wonder why the cloud and mountain images in the preceding screenshot
are filled with plain white color. This is because the images contain only white and
transparent pixels, so it is indeed hard or rather impossible to make out the actual
image information on a white background, as it usually appears in print media.
Therefore, all the images of our game objects that follow will be shown with an
added gray background to rectify this small display issue. However, the actual
image files still remain unchanged, as shown in the preceding screenshot.
LibGDX has a built-in TexturePacker that we will use to automate the process of
creating and refreshing the texture atlas for Canyon Bunny. We will put all the
game's object images shown in the preceding screenshot into the atlas to get the
following result:
 
Search WWH ::




Custom Search