2

I've been trying to find a good tutorial on how to program randomized tile generation (2D). However it seems that i cannot find any proper tutorials on that.

Is there any books and/or websites with proper tutorials on how to program it and the math behind it?

I know this is not a programming question per se however it is programming related, so hopefully someone can help me out with a link or two.

tshepang
  • 12,111
  • 21
  • 91
  • 136
Etarnalazure
  • 200
  • 1
  • 2
  • 14
  • what tutorials did you look at, and why did you think they weren't proper ? – Lyuben Todorov Apr 01 '12 at 01:27
  • I havent really found any tutorials that touch the subject "Randomized terrain generation". Other then just randomizing an array. Which is not proper terrain generation in my eyes, since theres no way to control the generation to make sure roads connect and so on. – Etarnalazure Apr 01 '12 at 05:04
  • You should ask questions like this on http://gamedev.stackexchange.com/. Also duplicate of http://gamedev.stackexchange.com/questions/18735/how-can-i-create-a-random-world-in-a-tile-engine. – ClassicThunder Apr 01 '12 at 17:53

1 Answers1

2
  • A good introduction to random terrains
  • Very basic 2D terrain tutorial
  • And .this one i found a little more confusing, but it has a lot of example code.

But remember if you use other people's code give them credit :) hope these help.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Lyuben Todorov
  • 13,987
  • 5
  • 50
  • 69
  • I was gonna suggest Riemers XNA Tutorial, but then I checked out your links. ;) – Kendall Frey Apr 01 '12 at 01:43
  • Hmm, unfortunately those arent using tiles. Though they seem quite interesting i will give them a look. – Etarnalazure Apr 01 '12 at 02:18
  • Right, I've read through your suggestions Lyuben, unfortunately i cant use them, they arent tilebased (Other then the last one, and thats really just randomizing the terrain, not making proper terrain based on randomized generation (I.e if there was beach terrain and forest terrain, it would be able to accidentally put beach terrain and forest terrain together.)) – Etarnalazure Apr 01 '12 at 02:34
  • @Etarnalazure please look at this [stackoverflow](http://stackoverflow.com/questions/9460807/c-sharp-xna-random-tile-engine) question, it might be of some value for you as they are talking about generating diffrent tiles, and then re-drawing them. – Lyuben Todorov Apr 02 '12 at 21:02