Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm a new game developer. I am working on my first game at the moment. It's sort of a Risk like game, but I have added my own elements. Also sort of Starcraft inspired. I want a random world generator for maps, but I'm having a little trouble making a generator. Tips?

share|improve this question
2  
What have you tried so far and are there any specific problems you're having? –  Tetrad Apr 9 '12 at 23:29
3  
2  
-1 for being so broad and showing complete lack of research. –  Byte56 Apr 10 '12 at 4:15

1 Answer 1

up vote 5 down vote accepted

Basically you will want some sort of random that you can use to generate your world. In the realm of games Perlin Noise is fairly common as a starting point for such a thing. Minecraft is a pretty well known game that use/used this kind of technique as well.

I am not sure if you are doing 2D or 3D but the algorithm follows in suit. There is an article about the world generation for the game Realm of the Mad God that is also very useful to gather information on random world generation.

Another noise algorithm you may come across is Simplex Noise. Here is an article on it in C++/Python (since I am not sure which language you are interested in).

There is actually quite a bit of information out there. I find all this stuff fascinating and so have collected a good amount of URLs on the topics around it. I hope some of these will help you out.. The article on the Realm of the Mad God generation is fairly interesting in a thought provoking way as well (ie, what can I do with this set of algorithms).

Hope this helps.

share|improve this answer
2  
Definitely check out Amit Patel’s posts on this topic (www-cs-students.stanford.edu/~amitp/game-programming/…) Wonderful reading/resource. –  Tim Holt Apr 9 '12 at 23:57
1  
@TimHolt Same article is linked in the answer :) But it is probably good enough to mention twice. –  Byte56 Apr 10 '12 at 4:35
    
@James I think you forgot to link to the C++/Python article. –  Byte56 Apr 10 '12 at 4:37
    
@Byte56 That I did, article has been linked into the answer. –  James Apr 10 '12 at 5:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.