The zapper, a classic light gun accessory for the NES, functions by detecting light emitted from the television screen. However, its effectiveness is impacted by the display technology used, as modern LCDs and digital displays differ significantly from the CRT screens of the zapper's original era.