7 hours, Infinite planets
So, I’m making a space empire game of some kind. So far, I have infinite worlds being generated…kinda.
The Galaxy is made up of chunks. Each chunk has a density according to this density map:

The Image itself is 516×516, and the pixel value is the ratio of planets to have in the chunk. The Center of the galaxy will have very high density, and the edges will not.

The Galaxy keeps track of where the player is. It then Generates the current chunk, and each chunk bordering the current. Once the player edges past it’s chunk boundary, the Galaxy rebalances, Centering on the current chunk and generating the borders.
Currently, there are a max of 10,000 planets per chunk, but since each chunk is 20,000×20,000…thats a very low density. I think i might decrease the chunk size.


