So, I'm working on a very simple game where a series of cannonballs are shot at you, and you have to knock them out of the air. To do this on a 2D plane, I simply have the cannonball objects get larger to simulate the approach.
I have this, pretty much.
And there, a problem becomes very apparent.
In this 2D plane, when new objects are drawn, they are superimposed on top of the previously existing objects. While that is a perfectly acceptable way of doing things for a lot of games, in this case, it means that the smaller cannonballs are seen on top of the larger ones, and that completely ruins the illusion of depth.
So, here's the question: How can I make it so newly drawn objects are displayed below the older ones, not above?