Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

This question already has an answer here:

You may have played NES Console games when you were younger -- I know I did. I remember playing Duck Hunt, for one:

Duck Hunt came with a peripheral called the NES Zapper:

How does it work? How did the NES, which was far less advanced than modern pointing consoles like the Wii, know where we were aiming?

share|improve this question

marked as duplicate by BlueRaja - Danny Pflughoeft, OrigamiRobot, MBraedley, Fluttershy, Zommuter Aug 20 '13 at 14:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

10  
I always assumed magic, and still do. –  Doozer Blake Aug 20 '13 at 1:00
5  
Related: gaming.stackexchange.com/questions/17148/… –  kotekzot Aug 20 '13 at 1:41

3 Answers 3

up vote 20 down vote accepted

It's a light gun. It has a single light sensor in the tip, which picks up light from the part of the screen it is aimed at. Given that the CRT TVs used at the time essentially instantaneously displayed the signal sent from the console, this was quite sufficient.

I've never used a Zapper myself, but according to the Wikipedia article, it worked as follows: when the trigger is pulled, the console would display a flash of light from the location of each target in sequence. Whichever flash produced a pulse from the sensor indicated a hit target.

Using even finer timing (which, again according to the Wikipedia article, the Zapper was not capable of), arbitrary locations on the screen can be identified by detecting the pulses resulting from the sweep of the electron beam across the screen.

All of this is fundamentally dependent on the low-persistence nature of CRTs: each location on the screen emits light only when the input signal passes them as it sweeps out the entire image. This is very different from modern LCD displays, where each individual pixel is a device which changes state (slowly!) between passing or blocking light from the backlight, and the timing of the display change is dependent on the internal digital processing in the display.

share|improve this answer
    
Thanks for Description. –  Amirreza Nasiri Aug 20 '13 at 1:33
7  
"I've never used a Zapper myself". Gol' durn kids on mah lawn! –  SevenSidedDie Aug 20 '13 at 1:41
    
@KevinReid : So maybe he didn't have NES Console! There is no Fun without the Zapper. :) –  Amirreza Nasiri Aug 20 '13 at 1:48
4  
This answer sort-of implies that a NES Zapper would not work on one of those new-fangled LCD TVs. Is that in fact the case? –  Joachim Sauer Aug 20 '13 at 8:26
    
@JoachimSauer yes, see the related link in the OP's comments –  Ender Aug 20 '13 at 12:32

The NES Zapper is a simple photodiode connected to a switch. A photodiode allows current to pass, but only if there is light present. When you pull the trigger, the following happens in quick succession:

  • The image of the game is replaced with a totally black screen
  • The photodiode is checked to see if it is absorbing light.
  • The entire screen is set to black, except for white boxes where the ducks were.
  • The photodiode is checked again to see if it is now absorbing light

The hit or miss is registered based on if the first check was "it's dark," and the second was "it's light." In this way, the game can tell whether or not you were just aiming at a static light source, or the "flickering duck" that you were supposed to hit.

If there are multiple targets, and the game had to be able to tell which one you hit, the later steps were repeated, with just one of the objects set to white at a time.

The NES isn't particularly fast at doing these flashes, so it's actually possible to see them if you're watching close enough.

share|improve this answer
    
Summery and useful. Thanks –  Amirreza Nasiri Aug 20 '13 at 1:32

This link has it covered. Essentially,

When you point at a duck and pull the trigger, the computer in the NES blacks out the screen and the Zapper diode begins reception. Then, the computer flashes a solid white block around the targets you’re supposed to be shooting at. The photodiode in the Zapper detects the change in light intensity and tells the computer that it’s pointed at a lit target block.

...This target flashing method helped Nintendo overcome a weakness of older light gun games: cheaters racking up high scores by pointing the gun at a steady light source, like a lamp, and hitting the first target right out of the gate.

And you can find more detail in the patent, filed by Nintendo.

share|improve this answer
    
I See the links so I knew how it works. –  Amirreza Nasiri Aug 20 '13 at 1:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.