I’m currently working on a project which will include a lot of procedurally generated content, the basic height map will be generated by a slightly modified diamond square algorithm.
After implementing this in C++ I was looking for a way to try new algorithms for the next steps (amongst others, adding roads and rivers) so I implemented the algorithm in JavaScript.
The demo requires a recent browser (HTML5 features like canvas are used) and does not load any resources other than the page itself and generates terrain like this:
