Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (577)
games submitted by our members
Games in WIP (498)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Array Painter -  (Screenshots added)  (Read 3646 times)
0 Members and 1 Guest are viewing this topic.
Offline Danskeren

Senior Member


Projects: 2


oi?


« Posted 2005-03-10 08:48:58 »

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:






What do you guys think?

Offline kevglass

JGO Kernel


Medals: 85
Projects: 25


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2005-03-10 08:57:49 »

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

Offline digitprop

Junior Member





« Reply #2 - Posted 2005-03-10 09:03:57 »

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

Thanks!

M. Fischer . www.digitprop.com
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Danskeren

Senior Member


Projects: 2


oi?


« Reply #3 - Posted 2005-03-10 09:15:07 »

Glad ya liked it Cheesy

Offline cyberyoyo

Junior Member




Java games funk


« Reply #4 - Posted 2005-03-10 17:24:14 »

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.
Offline Danskeren

Senior Member


Projects: 2


oi?


« Reply #5 - Posted 2005-03-10 21:18:24 »

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.


Thankyou for the fine words Smiley


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
  • [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 Smiley

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

    What ya think?


Offline tom
« Reply #6 - Posted 2005-03-10 21:34:37 »

Quote

...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.

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

Offline Danskeren

Senior Member


Projects: 2


oi?


« Reply #7 - Posted 2005-03-11 11:43:57 »


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


I just used a StringBuffer and another method for compiling. It reduced the compile time to 1/5.

Check it out.

Online Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #8 - Posted 2005-03-12 09:48:33 »

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

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Danskeren

Senior Member


Projects: 2


oi?


« Reply #9 - Posted 2005-03-12 10:19:46 »

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


Because the user might want to use whatever he wants and then it has to be strings, you see Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Danskeren

Senior Member


Projects: 2


oi?


« Reply #10 - Posted 2005-03-13 09:33:51 »

Just added flip, rotation, copy and paste.

Anything else I should add?

Offline Vorax

Senior Member


Projects: 1


System shutting down in 5..4..3...


« Reply #11 - Posted 2005-03-13 14:19:37 »

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 Smiley

Offline markush

Senior Newbie




Plöp!


« Reply #12 - Posted 2005-03-14 06:59:30 »

Quote


Bad Request

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

With Konqueror on linux.
Offline Danskeren

Senior Member


Projects: 2


oi?


« Reply #13 - Posted 2005-03-14 07:09:35 »

Quote
Bad Request

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

With Konqueror on linux.


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.

Offline Danskeren

Senior Member


Projects: 2


oi?


« Reply #14 - Posted 2005-03-14 07:17:07 »

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 Smiley


Well then I just have to say one thing: BOOKMARK !!! Cheesy

Offline jgabios

Innocent Bystander




Java games rock!


« Reply #15 - Posted 2005-03-14 10:02:02 »

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
 
  }
}
Offline Danskeren

Senior Member


Projects: 2


oi?


« Reply #16 - Posted 2005-03-14 15:29:22 »

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 Smiley

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

Pages: [1]
  ignore  |  Print  
 
 

 
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!