This is the third part of procedural map generation posts, and probably the last for some time. Because I’m done with map generation on my minecraft2d prototype.
When I tweeted about the part 2 on twitter, this guy – John Shedletsky - started following me. Well I’m glad he did, I followed him back and I tracked his site. It turned out he is an awesome guy and gave me some great ideas.
The thing is, I researched about perlin noise by the time I heard minecraft was using it for map generation but I got lost in the sea of information so I gave up, at first. Following some links from John’s post about using perlin noise for terrain generation I came up with this link. It teaches perlin noise perfectly and gives you pseudo codes to adapt your language. Luckily, in AS3.0 BitmapData class has this perlinNoise function that does all the job itself. So, with really small work, I hereby present you perlin noise map generator. But first, let’s look at the features.
Feature List
- Perlin noise algorithm used for map generation. You may provide a seed value to generate same map each time.
- Added a character that you can move around with WASD keys.
- Added simple collision detection, character may not walk over sea or mountain or trees.
- Added chopping trees. (with some nice sfx.)
- Added inventory system. You can access it from left panel. Right now, you can only chop down trees and they’ll be collected in your inventory.
- Added crafting mechanism. Notice the 3×3 grid above your inventory? That’s our crafting panel. Right now, you can only craft one thing and the first guy who finds out what it is and comments here will earn a cookie. (I mean it!)
- Contacted with Jules Van Her (One of the guys from minecraft community that has made a great texture pack for minecraft) and get permission to use his textures.
So what’s coming next? More items? More recipes? A recipe manager that you can see what’s available?




Serhat Büyükçolak earned the cookie. Put 4 tree blocks in square format to craft a wooden block. [::]