2D Level File Format

Started by
11 comments, last by Tarviathun 19 years, 3 months ago
I'd go with the binary map-making. I don't know anything about XML, but I've tried doing 'levels' with text, and it's [WORD:a bad place]. Just plan out the format, and go with it. It's simple, because for options and such, you can just load a structure directly from the file. That's just my opinion.
Projects:> Thacmus - CMS (PHP 5, MySQL)Paused:> dgi> MegaMan X Crossfire
Advertisement
I personally am actually using .net serialization to save and load data. I just have a class with the data I want to save and I serialize it and compress it with SharpZipLib. It's really easy, but the C++ equivalent (writing a struct directly to a file) may not be that safe.
I believe that for now, I'll stick with XML. Easy, simple, extensible, and supported. Eventually, I'll move over to a binary format, seeing as it's just better for performance and size. However, because I need a flexible file format seeing as I'm working with an in-developement engine, I'll use the XML idea.

This topic is closed to new replies.

Advertisement