Posted July 08, 2024 by Not Jam
Planet layers are the simplest type of layer available in space generator, with very limited parameters available. They spawn planets randomly selected from a range of sprites at random positions along the x-axis, which will then slowly descend across the screen at a user-specified pace.
Available parameters include:
Planet layers have been kept intentionally simple, and will not be exported with .png format exports. Instead, all planet sprites used within the project are available to download (under CC0 licence terms) with the intention that the user would design their own system to spawn random planets in their own projects rather than relying on a repeated texture with a handful of planets in the same location.
Need inspiration for how to implement this in your own projects? Feel free to download the source code for space generator to see how this is handled in Godot - you're more than welcome to copy, adapt or improve however you see fit!