I am implementing a project like Notch's "breaking the tower", in Java. I have it mostly written, but I'm having difficulty with z-order.
When the objects "rotate" around the center they still draw on top of each other badly. For example a tree in the background might draw on top of a tree "in front" of it.
can anyone suggest an algorithm that would help me solve the problem? ...or maybe help explain the full concept of z-ordering or even possibly give another solution.
thanks