- Home /
How to do the following
I am making a starbound type game, and so far I have cave generation. But does anyone know if each world is a different scene, or is the whole game one scene? if it is one scene, how is it generated so fast? If not, how do I create/copy scenes at runtime so that a random galaxy is created?
EDIT
I forgot to mention why Im asking, I have a military grade computer i bought yesterday, and when spawning only 1024x256 blocks, It lags for about half a second. that is terribly unoptimized, let alone having a million worlds that are loaded when first starting the game. However, i do not know this for sure. It could be loaded every time a new world is clicked, but that goes back to my question, how are scenes made? Can I use File.Create?
"only" 1024x256 are 262144 blocks. As for the rest: Impossible to answer since the way Starbound does it doesn't have to make sense in Unity (I assume that Starbound is not a Unity-made game). I could imagine having only one scene, with the current world generated from a file that holds that world's data; Other files are loaded and worlds generated in the scene as neccessary.
By the way, you might want to consider changing the thread title to something more descriptive :)
yes I will. so what's my game plan? how can I mimick this?