Creating tile maps
When we use tile maps, we create a large world using a set of reusable small tiles. A set of such tiles is called a tileset. Here is a tileset that we are going to create and use in our new level:
Here is a part of the level created using the tiles from this tileset:
As you have probably guessed, each tile from the set is placed on a grid that forms a tile map. The tile map can be very big, while still not consuming all of your memory since only the visible part is displayed.
Creating a tile map usually takes two steps. First, you create a tileset image and then you arrange tiles to form a tile map. Let's start by creating a tileset.