How The Nintendo Zapper Works
If you really want to know more about the Zapper, then check out this video by The 8-Bit Guy. He goes in deep about the workings of the light gun. And he even opens it up to see what is inside.
I myself was always under the impression that the Zapper worked on the curvature of the television. Apparently that is not the case.