Bear in mind, my code was a quick knock-up, based merely to give an example, I stated so in the post, ofcourse it could be optimised.
I agree with star recycling, and yes, arrays would be better suited. Simplicity is key, I need to re-evaluate my want to overcomplicate things , so yes, my code above is probably overkill :)
One nice thing though is that the starfield could be inherited from to provide diff types of starfield behavior.
I agree with star recycling, and yes, arrays would be better suited. Simplicity is key, I need to re-evaluate my want to overcomplicate things , so yes, my code above is probably overkill :)
One nice thing though is that the starfield could be inherited from to provide diff types of starfield behavior.