{"id":3845,"date":"2010-12-28T07:00:33","date_gmt":"2010-12-28T15:00:33","guid":{"rendered":"http:\/\/www.todayifoundout.com\/?p=3845"},"modified":"2013-12-18T02:10:38","modified_gmt":"2013-12-18T10:10:38","slug":"how-the-gun-on-the-original-duck-hunt-game-worked","status":"publish","type":"post","link":"https:\/\/www.todayifoundout.com\/index.php\/2010\/12\/how-the-gun-on-the-original-duck-hunt-game-worked\/","title":{"rendered":"How the Gun on the Original Duck Hunt Game Worked"},"content":{"rendered":"<div class=\"pf-content\"><p><a href=\"http:\/\/www.todayifoundout.com\/wp-content\/uploads\/2010\/12\/NES-Zapper.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-3862\" title=\"NES-Zapper\" alt=\"\" src=\"http:\/\/www.todayifoundout.com\/wp-content\/uploads\/2010\/12\/NES-Zapper-e1293541125895.jpg\" width=\"340\" height=\"167\" \/><\/a><a title=\"Today I Found Out\" href=\"http:\/\/www.todayifoundout.com\"><a href='http:\/\/www.todayifoundout.com' title='Interesting Facts'>Today I found out<\/a><\/a> how the gun on the original Duck Hunt game worked.<\/p>\n<p>If you&#8217;ve ever played Duck Hunt or any of the other NES games that used the NES Zapper gun, you probably at one point or another wondered how the game actually knows where on the TV you are aiming the gun when you pulled the trigger. It turns out, the method for accomplishing this is incredibly simple, as is the gun itself.<\/p>\n<p>This gun primarily just consists of a button (the trigger) and a photodiode (light sensor).\u00a0 When you pull the trigger, this causes the game to make the TV screen go completely black for one frame.\u00a0 At this point, the game uses the light sensor to sample the black color it&#8217;s reading from your TV to give it a reference point; this is essential given that the ambient light in a particular room and other things of this nature can vary greatly.\u00a0 In the next frame, the game causes the target area to turn white, with the rest remaining black. If the game detects a shift from black to white from the gun&#8217;s photodiode in that split second, it knows you were aiming correctly at the target and so doesn&#8217;t specifically need to know anything about where on the screen the target is.<\/p>\n<p>For games with multiple targets at any given time, the same type of method is used except multiple target frames are shown.\u00a0 So the game will flash the black reference screen; then will flash one of the targets, leaving the rest of the screen black; then flashes the next target, again leaving the rest of the screen black; and so on.\u00a0 The game knows which target is hit, if any, by which frame is currently being shown when a light shift is detected.<\/p>\n<p>If you liked this article, you might also enjoy our new popular podcast, The BrainFood Show (<a href=\"https:\/\/itunes.apple.com\/us\/podcast\/the-brainfoodshow\/id1350586459\" rel=\"nofollow\" target=\"_blank\">iTunes<\/a>, <a href=\"https:\/\/open.spotify.com\/show\/36xpXQMPVXhWJzMoCHPJKd\" target=\"_blank\">Spotify<\/a>, <a href=\"https:\/\/playmusic.app.goo.gl\/?ibi=com.google.PlayMusic&#038;isi=691797987&#038;ius=googleplaymusic&#038;apn=com.google.android.music&#038;link=https:\/\/play.google.com\/music\/m\/Insimdi4g6puyyr4qbt6tup5b6m?t%3DThe_BrainFood_Show%26pcampaignid%3DMKT-na-all-co-pr-mu-pod-16\" rel=\"nofollow\" target=\"_blank\">Google Play Music<\/a>, <a href=\"http:\/\/www.todayifoundout.com\/index.php\/feed\/brainfood\/\" target=\"_blank\">Feed<\/a>), as well as:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.todayifoundout.com\/index.php\/2010\/12\/how-an-etch-a-sketch-works\/\" target=\"_blank\">How an Etch a Sketch Works<\/a><\/li>\n<li><a href=\"http:\/\/www.todayifoundout.com\/index.php\/2013\/09\/surprisingly-long-history-nintendo\/\" target=\"_blank\">The Surprisingly Long History of Nintendo<\/a><\/li>\n<li><a href=\"http:\/\/www.todayifoundout.com\/index.php\/2013\/10\/origin-legend-zelda\/\" target=\"_blank\">The Origin of the Legend of Zelda<\/a><\/li>\n<li><a href=\"http:\/\/www.todayifoundout.com\/index.php\/2011\/12\/the-development-of-the-video-game-pong-was-a-training-exercise-for-a-new-gaming-developer-at-atari-and-wasnt-originally-intended-to-be-released\/\" target=\"_blank\">The Development of the Video Game \u201cPong\u201d was a Training Exercise for a New Gaming Developer at Atari and Wasn\u2019t Originally Intended to Be Released<\/a><\/li>\n<li><a href=\"http:\/\/www.todayifoundout.com\/index.php\/2011\/04\/the-guy-who-did-the-voice-for-optimus-prime-also-did-the-voice-for-eeyore-and-was-the-first-person-to-voice-nintendos-mario\/\" target=\"_blank\">The Guy Who Did the Voice for Optimus Prime Also Did the Voice for Eeyore and Was the First Person to Voice Nintendo\u2019s Mario<\/a><\/li>\n<\/ul>\n<p><span id=\"bonusfacts\">Bonus<\/span> Facts:<\/p>\n<ul>\n<li>Early models of the NES Zapper gun could be tricked into thinking the target was always hit by simply pointing the gun at a bright light source and pulling the trigger.<\/li>\n<li>Interestingly, if you read over the patent for the NES Zapper Gun, one of the main features they point out which separates their gun from previously patented light detecting guns is that in the &#8220;preferred embodiment&#8221; of their system, it has the ability to distinguish between multiple targets in one frame. However, that&#8217;s not actually what they did in the NES system; rather, they used multiple frames, one per target, as described above.\u00a0 In a &#8220;one frame&#8221; system, it uses a signal from the TV itself.\u00a0 This signal is in the form of pulses which signify the start of the horizontal and vertical retracing.\u00a0 The computer hooked up to the TV can use these pulses to more or less tell what area is currently being traced on the TV; it can then time this with a shift in light detected by the photodiode.\u00a0 Thus, with precise enough timing, it is able to detect which target is being hit in just one frame. With this method, the flash can happen fast enough that it&#8217;s nearly imperceptible to most people, unlike in the actual NES system where when multiple targets are shown, most people can perceive the flash.\u00a0 The NES system did use the vertical retrace signal to be able to detect the start of each frame though, but didn&#8217;t use it to detect anything about the position of the target as in the &#8220;preferred embodiment&#8221; described in the patent.<\/li>\n<li>Although not initially very popular or critically acclaimed in any way, Duck Hunt has become something of a cult classic and was recently rated the 77th best NES game of all time by IGN.<\/li>\n<li>The NES Zapper was first released to the masses in 1985 when the NES first began being sold in the United States, being bundled with the system and Duck Hunt.<\/li>\n<\/ul>\n<span class=\"collapseomatic \" id=\"id69efbb656c607\"  tabindex=\"0\" title=\"Expand for References:\"    >Expand for References:<\/span><div id=\"target-id69efbb656c607\" class=\"collapseomatic_content \">\n<ul>\n<li><a title=\"Video Target Control Sensing Circuit for Photosensitive Gun\" href=\"http:\/\/v3.espacenet.com\/publicationDetails\/biblio?CC=US&amp;NR=4813682&amp;KC=&amp;FT=E\" target=\"_blank\">Video Target Control and Sensing Circuit for Photosensitive Gun<\/a><\/li>\n<li><a title=\"NES Zapper\" href=\"http:\/\/en.wikipedia.org\/wiki\/NES_Zapper\" target=\"_blank\">NES Zapper<\/a><\/li>\n<li><a title=\"Duck Hunt\" href=\"http:\/\/en.wikipedia.org\/wiki\/Duck_Hunt\" target=\"_blank\">Duck Hunt<\/a><\/li>\n<li><a title=\"In Nintendo's Duck Hunt, How Does the TV Know When You've Hit a Duck?\" href=\"http:\/\/www.straightdope.com\/columns\/read\/2304\/in-nintendos-duck-hunt-how-does-the-tv-know-when-youve-hit-a-duck\" target=\"_blank\">In Nintendo&#8217;s Duck Hunt, How Does the TV Know When You&#8217;ve Hit a Duck?<\/a><\/li>\n<li><a title=\"How Does the Light Gun for a Video Game Work?\" href=\"http:\/\/www.howstuffworks.com\/question273.htm\" target=\"_blank\">How Does the Light Gun for a Video Game Work?<\/a><\/li>\n<li><a title=\"Image Source\" href=\"http:\/\/www.flickr.com\/photos\/edrabbit\/282736903\/\" target=\"_blank\">Image Source<\/a><\/li>\n<\/ul>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p><a href='http:\/\/www.todayifoundout.com' title='Interesting Facts'>Today I found out<\/a> how the gun on the original Duck Hunt game worked. If you&#8217;ve ever played Duck Hunt or any of the other NES games that used the NES Zapper gun, you probably at one point or another wondered how the game actually knows where on the TV you are aiming the gun when you pulled the trigger. [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":3862,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,11],"tags":[1105,1104,1106],"class_list":["post-3845","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-today-i-found-out","category-miscellaneous","tag-duck-hunt-facts","tag-duck-hunt-gun","tag-nintendo-games"],"_links":{"self":[{"href":"https:\/\/www.todayifoundout.com\/index.php\/wp-json\/wp\/v2\/posts\/3845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.todayifoundout.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.todayifoundout.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.todayifoundout.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.todayifoundout.com\/index.php\/wp-json\/wp\/v2\/comments?post=3845"}],"version-history":[{"count":15,"href":"https:\/\/www.todayifoundout.com\/index.php\/wp-json\/wp\/v2\/posts\/3845\/revisions"}],"predecessor-version":[{"id":28574,"href":"https:\/\/www.todayifoundout.com\/index.php\/wp-json\/wp\/v2\/posts\/3845\/revisions\/28574"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.todayifoundout.com\/index.php\/wp-json\/wp\/v2\/media\/3862"}],"wp:attachment":[{"href":"https:\/\/www.todayifoundout.com\/index.php\/wp-json\/wp\/v2\/media?parent=3845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.todayifoundout.com\/index.php\/wp-json\/wp\/v2\/categories?post=3845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.todayifoundout.com\/index.php\/wp-json\/wp\/v2\/tags?post=3845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}