2D map editor

Started by
1 comment, last by TDragon 18 years, 6 months ago
I need a win32 map editor that exports a text file like this: int[] map = {{3, 4, 6, 1, 0, 0, 0, 2, 6} {4, 5, 5, 5, 8, 8, 0, 1, 6} ... ... {5, 5 ,5, 0, 0, 2, 3, 2, 2}}
Advertisement
Hey,

while I don't know of any editor which exports in the format you described, perhaps you can use Mappy, it has a customizable file format as well as a file format reader library, so maybe this fits your needs.
Else, you could write the editor yourself (shouldn't be too hard). Perhaps this is a good moment to try out C#, if you haven't already?

Greets,
Konfu
Also, I seem to recall that some compilers will choke if they're given an initialization list that's too large. If your maps start getting large enough, you'll run into this issue; Mappy is an option, but I'd recommend building your own even above that. (Use the file I/O functions, such as the ofstream/ifstream classes.)

Cheers,
Twilight Dragon
{[JohnE, Chief Architect and Senior Programmer, Twilight Dragon Media{[+++{GCC/MinGW}+++{Code::Blocks IDE}+++{wxWidgets Cross-Platform Native UI Framework}+++

This topic is closed to new replies.

Advertisement