Seed based terrain ?
tripulse opened this issue · 2 comments
tripulse commented
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.
twetzel59 commented
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.
tripulse commented
Thanks. I was a noob back then and don't know about noise functions.