Array Painter -  (Screenshots added)

I just finished my first release of a program that ease the job creating 2D Arrays:

Homepage:
www.ArrayPainter.com

Direct download (Beta 0.2):
http://www.arraypainter.com/files/ArrayPainterBeta02.zip

Screenshots:

http://www.arraypainter.com/images/screenshot_main.jpg

http://www.arraypainter.com/images/screenshot_scheme.jpg

http://www.arraypainter.com/images/screenshot_generator.jpg

What do you guys think?

Great looking tool! I don’t have a use for it myself but it does look nice.

I’m surprised you registered a domain for it tho.

Kev

Clean, efficient, very useful - congratulations! Will be excellent for quick proof-of-principle tile-based games…

Thanks!

Glad ya liked it :smiley:

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] 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 :slight_smile:

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 :slight_smile:

Check out the new version: Beta 0.1b (This fix is the only difference)

What ya think?

You need to use a java.lang.StringBuffer instead of adding Strings together with “+”.

[quote] You need to use a java.lang.StringBuffer instead of adding Strings together with “+”.
[/quote]
I just used a StringBuffer and another method for compiling. It reduced the compile time to 1/5.

Check it out.

Why do you use Strings? ints are much more efficient, memory-wise and performance-wise.

[quote]Why do you use Strings? ints are much more efficient, memory-wise and performance-wise.
[/quote]
Because the user might want to use whatever he wants and then it has to be strings, you see :slight_smile:

Just added flip, rotation, copy and paste.

Anything else I should add?

Nice looking tool. I am not sure if I have a need for it at this time, but if I do find a need, it’s nice to know it’s there :slight_smile:

[quote]www.ArrayPainter.com
[/quote]
Bad Request

Your browser sent a request that this server could not understand.

With Konqueror on linux.

[quote] Bad Request

Your browser sent a request that this server could not understand.

With Konqueror on linux.
[/quote]
Well bad to hear. I dont know what it could be. I will post som screenshotsd on this forum then (Top of this post) and post a direct link for download.

Hope you can download the file.

[quote]Nice looking tool. I am not sure if I have a need for it at this time, but if I do find a need, it’s nice to know it’s there :slight_smile:
[/quote]
Well then I just have to say one thing: BOOKMARK !!! :smiley:

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

}
}

one small change I would add:

When I had a loop looking like this:
String[][] map = new String[][] //This is just to show what type map is
String code = “”;

int map0length=map[0].length;
int maplength=map.length;

for(int y = 0; y < map0length; y++){
for(int x = 0; x < maplength; x++){
code += //Some signs
code += map[x][y];
code += //Some other signs

}
}

Well I dont use inner loops (or loops at all) for the generation. I switched to recursion which gave 5-6 times faster compile times :slight_smile:

But thankyou for the reply anyway. I see this is your first post. Are you new? If so: Welcome!