Rob Norris
A little toy for a tired evening...
A little toy for a tired evening…

At startup we’re just initialising stuff and loading models and other assets.
Once in you’re in the game, we generate everything random numbers, beginning with the same seed. We use a basic image of a galaxy spiral to work out density at any given place, then put a bunch of stars there. Choose one, and we generate some planets and things based on the a few theories of how starsystems might be created. And so on, all the way down.
The key is using the same seed so that each time you generate a thing, it comes out the same as last time.