Yes, it was all done using the same 3D code. All the movement, however, is handled by making use of different variables that are toggled on and off.
This method is used not just for Stage 2, but the other stages as well.
Again, thanks for your inquiry.

