Game Development Reference
In-Depth Information
Figure 10-4 . Creating a texture atlas of a few square tiles using TexturePacker
For Tiled it's crucial that the tiles stay at the same position—this is why sorting by
name and disallowing rotation is so important—because Tiled refers to individual tiles
in the tileset by position (tile index) and offset only. That means that if tiles in the tex-
ture change places, the tilemap in Tiled will look completely different. The tilemap still
refers to the same tile positions in the tileset, but instead of a grass tile there might now
be a water tile at that position, for example.
Tiled (Qt) Map Editor
The most popular tool to create tilemaps for use with cocos2d is the Tiled (Qt) Map
Editor that I've already mentioned in the preceding sections. The TMX files it creates
 
Search Nedrilad ::




Custom Search