-4
\$\begingroup\$

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?

\$\endgroup\$
2
  • 3
    \$\begingroup\$ pcg.wikidot.com/pcg-algorithm:map-generation \$\endgroup\$ Commented Apr 9, 2012 at 23:37
  • 2
    \$\begingroup\$ -1 for being so broad and showing complete lack of research. \$\endgroup\$ Commented Apr 10, 2012 at 4:15

1 Answer 1

6
\$\begingroup\$

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.

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

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.