Game Development Reference
In-Depth Information
the Ground layer and only overlapping and transparent tiles on the Objects layer. When
you're done, you should have a nice-looking tilemap like the one in Figure 11-11 .
Figure 11-11 . A completed isometric tilemap in Tiled using David Gervais's tileset
Isometric Game Programming
Let's use this isometric tilemap in a cocos2d game. As you might expect, some things
will have to change compared to working with orthogonal tilemaps. In particular, you
need to set up cocos2d properly to allow isometric tiles to partially occlude game char-
acters. Determining a touched tile also requires different code than orthogonal
tilemaps, and when scrolling, you can no longer stop scrolling at the borders of the
tilemap because the tilemap itself has a diamond shape.
 
 
Search Nedrilad ::




Custom Search