Game Development Reference
In-Depth Information
you can determine what type of tile it is. You can also use this to block characters from
entering certain tiles or, for example, to take damage when moving over a lava tile.
Note Qt refers to Nokia's Qt framework, on which Tiled is built. Because
there's also a defunct Java version of Tiled, it's important to make this differen-
tiation by writing Tiled (Qt). The Java version is no longer updated but contains
a few extra features that may be worth checking out. In this and the following
chapter, I use and discuss Tiled (Qt).
Preparing Images with TexturePacker
Before you start working with the Tiled (Qt) Map Editor, you need to prepare the
tilemap graphics. The set of tile images for a tilemap is commonly called a tileset .
Technically it's just a texture atlas containing tile images, but Tiled (Qt) can only load
tilesets in PNG (recommended) or JPG format.
In the Tilemap01 project for this chapter, you'll find a number of square tile images in
the Assets/tiles folder. Add all these tile images to TexturePacker and then un-
check Allow Rotation, set Algorithm to Basic, and set Sort by to Name. These settings
ensure that the tiles are ordered and aligned correctly for Tiled. The resulting tileset in
TexturePacker should look similar to Figure 10-4 .
Search Nedrilad ::

Custom Search