Chapter 11. Working with Tile Maps

Some of the games require really large worlds. Just imagine an RPG where the whole dungeon should fit in one screen. This will be a very small dungeon, not larger than a dressing room of some celebrity. Alternatively, you will have to scale everything down so that your game will be pixels fighting other pixels.

The solution is pretty obvious: create a larger world and follow the player, just as the camera follows the actor during the movie shooting. However, creating and managing a large world manually can be quite a task. This is where tile maps come to the rescue and make creation and usage of large levels much easier.

In this chapter, we are going to create a new bigger level using a tile map and will demonstrate ...

Get Learning iPhone Game Development with Cocos2D 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.