I happened to see an article about this just the other day, if you’re curious!
My naive assumption is that the 3D effect here is tracking the Z coordinate of each object and using sspr()
to change a the sprite’s size, as well as to scale how fast objects move left to right as the camera shifts (farther Z = slower horizontal movement, closer Z = faster horizontal movement). So, not as hard as you might think!