Looking for a 2d Terrain Generation Noise Algorithm

Could someone point me to a tutorial or forum post, which could direct me on how to generate random worlds that look like the picture in this http://www.java-gaming.org/topics/wip-metallum-miner-2d-mining-game/26980/view.html

I have searched the forums and every noise generator seems to be for full maps, not in the way i want it to generate worlds. The link above was the closest i came, and even still that does not help me.

Anyone have any ideas, or could help me?

Thanks

go here for simplex noise. Copy and paste the 1d simlex noise into a class. Have your x increase and multiply it by a random number for random maps.


for(int x=0;x<mapSize*BlockSize;x+=BlockSize){
int y=SimplexNoise.noise(x);
newBlock(x,y);
}

It’s not exactly what you asked for, but I use classes from com.ardor3d.math.functions to generate worlds like the one in my avatar <------

http://ardor3d.com/

You will notice there is a search bar in the top left corner of the page :point:

Just saying…

Would you like to look again at the original post?

So yes I have searched the forums HereoGrave, didn’t find what I was looking for so I asked.

I’ll take a look at this when I get the chance, can’t open pdf’s on my phone.

What’s the difference between generating a full world and what you want to do?

There have been tons of posts about noise algorithms. I’m highly skeptical you couldn’t find anything.
http://www.java-gaming.org/topics/noise/27073/view.html There’s even a wiki on it! Anyways, you need to be more specific. What special type of noise to you need to be like the link you posted? What do you mean by worlds versus full maps? ???

When I think of a world I think of: the image in http://www.java-gaming.org/topics/tiny-world/28766/view.html

I want to be able to create a map, that has hills, top couple of layers could be dirt, then below that stone. When i say top couple of layers, i basically mean, the very top blocks of stone must be able to have a dirt block on top.

Almost like a 2d Minecraft.

When you get the y value from Simplex Noise, make grass at the y, dirt between y - 1 and y - 4, and put stone down to zero. You can even put a couple of random elements if you want.

Thanks I’ll try that when I get the chance