//the seed determines the swaps that occur between the default order and the order we're actually going to usefor(inti=0;i<NUMBEROFSWAPS;i++){intswapFrom=rand.nextInt(p.length);intswapTo=rand.nextInt(p.length);

Noise cannot be generated every render cycle. Its too expensive. You can create an array of tiles, which would contain tiles with x,y coordinates. Now, you put those x,y tile coordinates into PerlinNoise.noise(double xin, double yin) method, and it will give you a height. You need to divide the x,y by some factor, because otherwise your tiles will look completely random. Simplex/Perlin noise basically interpolates data. You should just take a look at Perlin noise tutorial I put a link to. So, when you put in x,y coordinates, do something like .noise((float) x / 30, (float) y / 30). Now that you have a height from this method, you can use it to determine what kind of tile it should be. Lets say that height values from -1 to 0 will be dirt tiles, and tiles with height 0 to 1 will be grass tiles. You just check that height and put in the tile into your array of tiles.

Its just I don't think you realize that you don't understand a thing in my code, because you're asking such simple question. I can make the whole game for you if you want, if you pay me of course

This isn't the place to ask to make games. This is a place to discuss / ask for help. And the help should be technical, such as "How can I change opengl rendering color?" or "how can I render a quad using opengl?" although you should first try to google such question, and if you can't find the answers, then post a question here!

You should try to make your own games / implementations. If you can't generate terraria looking terrain, then its not the time to do it yet.

I mean, your first question was how to generate terrain from perlin / simplex noise and I answered that question If your background is green, you need to change the color of the tile that is being rendered in the "back ground". So when you render background tile, you could try rendering it with color 1f, 1f, 1f.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org