Open lechszym opened 11 years ago
This should be pretty easy to do. Can probably throw something together very quickly. The annoying thing will be figuring out how best to define new ones for the file(s).
I have created and pushed the initial code for a system to "name" planets and add them to a level by name. The names and the planet characteristics are hardcoded in the ObjectLoader class at the moment, but when I can be bothered getting around to it, these will be loaded from a file, so people can easily edit it without touching the code. In the mean time, people can tweak them within the code if they wish.
Once we start having planets and object with textures, it would be nice to have ability to refer to specific objects. For instance, if we create a planet with reddish texture, we might refer to it as Mars. When changes are made to that planet, we can refer to it by name. The naming scheme probably should distinguish object types: planetoids, stars...etc...and then have specific names: Sirius, Mars...whatever. Perhaps we could devise a way of storing those object and loading them in the game by type/name, so that level designers need not know all the details of what goes into making a given planet, just how to load it by name.
We could create a catalogue of available objects on the game wiki. This could also feed into adding custom level creation functionality to the game.