Hey everybody, I am in the process of trying to make a file format for maps. I am doing this right now with this:
<Test_Map,the_author,the_date,version_number> <10,5> # the width and height <1> # layers 000,001,002,001,002,002,001,000,001,002, 000,001.002,002,002,002,001,000,001,002, 000,001.002,002,002,002,001,000,001,002, 000,001.002,002,002,002,001,000,001,002, 000,001.002,002,002,002,001,000,001,002 <1> Another way that might be easier to read into a file is to Have two files. One is called mapname.map and the other file will be called mapname.meta The meta file will have the info like name, author, date, version, and the width and height. The other file will have the actual map data in it. This method will be slower, since it involves opening, parsing, and closing two files. The second method will be easier to read in, but will affect performance. How do all of you implement maps? Do you use regular expressions or simple search a string ? Thanks, spot