[quote] Interesting to see how your map editor evolved into something bigger.
Nice presentation also (the domain name is a plus).
I’ll give it a try.
My 2d engine already has a tilemap editor but I will try to modify it to make it work with arrayPainter too.
[/quote]
Thankyou for the fine words
I just fixed a bug that made the machine freeze when generating maps bigger than 100x100.
When I had a loop looking like this:
String[][] map = new String[][] //This is just to show what type map is
String code = “”;
for(int y = 0; y < map[0].length; y++){
for(int x = 0; x < map.length; x++){
code += //Some signs
code += map[x][y];
code += //Some other signs
}
}
…it got really slow when the code got bigger and adding one letter to a String with 10.000 chars in it really takes time, so I made a timer creating each line in a String[] array and then I used a recursive method putting the lines together.
This resulted in a major performance boost when generating the map.
Plus: Now you can see the progress while the program generates
Check out the new version: Beta 0.1b (This fix is the only difference)
What ya think?