0
\$\begingroup\$

I'm currently building a Mars colonization game and I'm wondering if anyone can point me to resources on how to procedurally create resources and biomes within a 2d game. Much like in a game like Factorio were different resources and such are spread around the map.

Thanks in advance!

\$\endgroup\$

closed as off-topic by Alexandre Vaillancourt, congusbongus, Bálint, Philipp, jgallant Mar 14 '17 at 15:14

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about "how to get started," "what to learn next," or "which technology to use" are discussion-oriented questions which involve answers that are either based on opinion, or which are all equally valid. Those kinds of questions are outside the scope of this site. Visit our help center for more information." – Alexandre Vaillancourt, congusbongus, Bálint, jgallant
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    \$\begingroup\$ This question is off-topic here, because it asks gor resources, please refer to our help center \$\endgroup\$ – Bálint Mar 14 '17 at 6:34
  • \$\begingroup\$ There are countless ways to generate terrain and terrain features procedurally. Which one is the right method for you depends on your exact requirements. Can you write a bit more about how you want your terrain and your resource placement to look? \$\endgroup\$ – Philipp Mar 14 '17 at 11:43
1
\$\begingroup\$

Many games use noise generation such as Perlin, Value or Gradient noise for their resource spawning. Perlin is the most common type, and is used in Factorio. There is plenty more info on Perlin Noise to be found on the web.

\$\endgroup\$
  • \$\begingroup\$ Can you post a source which says that Factorio uses Perlin noise for resource field generation? Maybe it does for other terrain features, but It doesn't really look to me like the resource fields are generated that way. \$\endgroup\$ – Philipp Mar 14 '17 at 11:41
  • \$\begingroup\$ wiki.factorio.com/index.php?title=World_generator \$\endgroup\$ – Dennis Mar 14 '17 at 13:08
  • \$\begingroup\$ Ah, great! I'll get looking into that! \$\endgroup\$ – Yatoniea Mar 14 '17 at 18:05

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