I'll just start off by saying I'm fairly new to C++ so apologies if I say anything stupid.
I'm working with Allegro to make a simple game based on the Solar System. Currently, I find myself doing the same thing for every planet individually. For example;
To me, this seems stupid, and I'm sure there must be a way to avoid this. I've had a look through the documentation to no avail. I've also tried using a string array to define each of the planets
Now in all honesty this was little more than a guess at how it might work, so unsurprisingly it doesn't. If anyone could suggest a fix, or point me in the right direction, that would be appreciated.