Im developing a 32*32 tile based game similar to Pokemon,
and I have made a map editor that uses an array of tiles[50][50]
with 5 layers [5].
What is the best way to save a map. Should I save screen
shots of each layer or save all the tile data in a text file
(which I dont know how to read properly).
2D Tile Map Editor
-
- Posts: 19
- Joined: Tue Mar 18, 2008 9:43 pm
- Location: Wagga Wagga, Australia
Yeah just save the tile data to a file because there is no need to save screenshots of the tiles unless you are going to use some ingenious process to produce tiles from those.
But what do you mean by "which I don't know how to read properly"? Are you saying that you don't know how to read from a file/write to a file?
But what do you mean by "which I don't know how to read properly"? Are you saying that you don't know how to read from a file/write to a file?
TheQuestion = 2B || !2B
You can use IrrXML to write and read files.
http://ambiera.com/irrxml/index.html
Well, you can't write them with it though.
You can use the fstream.h to read and write normal txt files
http://www.cplusplus.com/doc/tutorial/files.html
http://ambiera.com/irrxml/index.html
Well, you can't write them with it though.
You can use the fstream.h to read and write normal txt files
http://www.cplusplus.com/doc/tutorial/files.html