Game Development Reference
In-Depth Information
Figure 10-3 . An isometric tilemap in Tiled (Qt) Map Editor
The tilemaps in Figures 10-2 and 10-3 p rove that tilemaps don't need to be flat-look-
ing. You can use the layering or stacking of tiles with some games that allow players to
interact with the game world, as many of the Farmville fan videos show to great effect.
Several Farmville users have used nothing but crop fields to build houses and even tall
skyscrapers just by stacking tiles. They make use of the optical illusion that's possible
with isometric tilemaps.
You usually edit tilemaps with an editor, and the one directly supported by cocos2d is
called Tiled (Qt) Map Editor. Tiled is free, is open source, and allows you to edit both
orthogonal and isometric tilemaps with multiple layers. Tiled also enables you to add
trigger areas (object layer), which you can use in a game to trigger certain actions when
a character enters the area. They also serve as a way to add arbitrary positions to the
map so that you can, for example, define spawn locations. By editing tile properties,
 
Search Nedrilad ::




Custom Search