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 some techniques to move your character through this world.
In this chapter, we will cover the following topics:
- Creating the tileset from a set of separate images
- Creating a tile map that contains several layers
- Making the tile map...