They're drawn using the "sprite stacking" method. The sprite consists of several layers that are drawn one pixel above one another and that gives the illusion of 3D when the sprite is being rotated.
Very cool! I haven't heard of that method so I'll check it out