What's the best way to do this for a tile based game while I need smoother hills and such. Would doing diamond square normally between 0 and 1 be good then converting the height over by multiplying...
Type: Posts; User: hobbles
What's the best way to do this for a tile based game while I need smoother hills and such. Would doing diamond square normally between 0 and 1 be good then converting the height over by multiplying...
Cool I didn't know you could do that with an array very useful. I'm looking into it now, thanks alot man.
After using "System.out.println("map="+java.util.Arrays.deepToString(map));" I found out...
I'm still having problems with the square/ diamond looking artifacts in the output. Is it because I'm not progressively making the noise value smaller? I've been trying to think of a way to do this...
This code may be difficult to understand but basically I'm just trying to do the diamond square algorithm to make some terrain for a tile based game. I never found an example of this for a tiled game...
Can you show what a bare application setup would look like for a 800,800. Maybe if I can see how some one has made a window with no errors I can see what I'm doing wrong. If there is a example in...
Sorry I'm gonna need you to elaborate a little more.
I changed this since I don't think I actually need JPanel. It fit the fillRect to the screen right for some reason but the cords for the string...
Everything is still shifted up and to the left leaving a white reversed L on the right side. Anyone got any idea of whats going on I put the project on my bros computer and it does the same thing....
Woah woah woah I moved my drawString() to 50 , 50 and its there everything isn't being placed properly. Is there a reason for this? I thought the white on the edges were kinda weird.
Alright I have programmed in Java many times and made games before but I always made applets so this is my first time using JPanel/JFrame. I have gotten everything underway and have been stuck on...