Reputation: 33
Hello I try to do game like terraria but I don't have idea how to generate random terrain :(. Someone can help me ?. I search in internet but I don't find anything, only some thing with perlin noise. And sorry from my English.
Upvotes: 0
Views: 1415
Reputation: 42
There is no 'answer' for such a complex problem. It takes a lot of time to develop a program to create such a terrain generator. If you really want to make it, you should research Diamond-square, Simplex Noise and Perlin Noise algorithms (although it's university grade stuff).
The terraria generator is most likely comprised of a series of complex algorithms, e.g.: one to generate a rough hill type terrain, then to generate caves, create dungeons, etc.
If you expect someone to just post you some code, I'm afraid that won't be possible. It will require a lot of programming which you'll have to complete yourself. Good luck!
Upvotes: 1
Reputation: 12695
Depending upon what kind of terrain you want to generate, an algorithm such as the Diamond-square will generate realistic seeming ground surfaces.
Upvotes: 1