Terrain generation in CoffeeScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Cakefile
README.md
index.html

README.md

Terrain Generation using the Diamond Square algorithm

This is a demonstration of terrain generation using the diamond square algorithm.

You can see it in operation on my blog. There's also some nice documentation available.

Installation

You'll need CoffeeScript installed, but then it should be as simple as:

cake build

This should create a directory 'lib/' with the compiled .js in it. Then you can open index.html and it should draw a starting grid on the canvas.

Let me know if it isn't that simple.

I've tested it in Safari, Chrome and Firefox.