It's none of business of the ground, Just the cube seems to render on the Z=0?
And you are right, the sub-images of sprite draw step by step. (I scribbles some pattern in the sp_cube)
This is the one image sprite. And the projection on the ground rotates automatically, although making the rotation of the cube self fixed.