Check it out, not that complicated actually, but many useful techniques:
Spelunky level generation:
http://tinysubversions.com/spelunkyGen/index.html
thnx very informative xoros
Very nice!
Nice, does it have an increase in difficulty, or is it just how many levels you can make it through?
Develop games in your browser. Powerful, performant & highly capable.
I think difficulty increase is another topic, could be achieved by spawning more or harder enemies/obstacles.