fogleman/Craft

Seed based terrain ?

tripulse opened this issue · 2 comments

I appreciate the work you did. Getting good FPS and no lags at all.
But what about seed based world generation ?

srand(seed);
rand(); // Numbers around seed.

The terrain is generated using the noise functions, not just rand(). Luckily, the noise lib has a function called seed(). If you call it somewhere in main() before terrain is generated, you should be able to get new terrain.

Thanks. I was a noob back then and don't know about noise functions.