Mathematical question: procedural generation of a galaxy

前端 未结 19 1513
太阳男子
太阳男子 2020-12-22 17:25

I\'m going to make a space/trading/combat game that is completely procedurally generated. But, I know that storing all of the details of the whole galaxy in memory is unfeas

19条回答
  •  离开以前
    2020-12-22 18:19

    As long as you call srandom() with the same seed, you'll get the same values out of random(). So, just base everything in a star system off a single call to srandom()... Then, you'll only need to store 1 integer (the seed) for a whole star system. Now thats compression!

提交回复
热议问题