It's very simple method. It lines Z axis with 64 sprites on which vertical section of terrain are drawn. If you break execution of this game with SELECT button and you see GRP4 layer with smile tool, you can see sprite fragments of background image.
Weak point of this method is so slow execution. It costs approx 2 sec to draw an image with legacy 3DS.