Original Post
Hi,
I bought the book Programming role playing game with DirectX and I got a question about maps with multiple layer.
I read in that book that a good way to do thing when creating a tile-base game is to make multiple layer map...1 layer for the map, another one for sprite(ex: trees) and another one for moving objects(ex: player).
A normal map look like this
0 0 0
0 1 0
0 0 0
where each number represent a different tile. I understand that and made a map builder.
My question is how to put a sprite on that map and save it to the file ?? ex: if a tree got the number 3 and the grass number 1 how can I save this to the file if the tree is on another layer. Two map file ?(one file for each layer ?)