Pug's Hunt: Webcam Duck Hunt with Hand Tracking

2 Mar 2026(Updated 2 Dec 2026)

Pug's Hunt browser game using webcam hand tracking to aim and shoot ducks

Pug's Hunt is a browser game inspired by the classic NES Duck Hunt, played with nothing but your webcam. You aim by pointing your finger and shoot by opening your mouth, which brings back the physical feel of the old light gun without any extra hardware.

Since December 2026 the game is in Season 1, its biggest update so far: a second weapon called Laser Eyes, fresh and fairer leaderboards, and much better play on phones.

Play the game: pugshunt.com

What's New in Season 1#

Season 1 started with a clean slate on the leaderboards and a list of changes that came from watching people play:

  • Laser Eyes, a new weapon that fires a beam from the pug's eyes when you open your mouth
  • Fresh leaderboards per season, with your scores from before Season 1 kept under "Before Season 1"
  • Fairer boards: every game mode, weapon and input (webcam or mouse and touch) has its own leaderboard
  • Checked scores: ranked games are replayed on the server before they go on the board
  • More reliable mouth shooting, with fewer accidental shots from talking, plus an optional calibration step
  • A short practice before your first game, including the Laser Eyes controls
  • Phones: play on iPhone straight from the browser, landscape layouts, and Tap to Play
  • Privacy: analytics only after you agree, and webcam images never leave your device

Laser Eyes#

Laser Eyes started as a separate laser eyes demo where you shoot beams from your eyes to your fingertips. It was too much fun to leave as a demo, so it became a weapon.

You aim with your hand as usual. Open your mouth and a beam fires from the pug's eyes to where you're pointing. Hold it on a duck until it roasts. A heat meter in the panel shows HEAT, FIRING and COOLING, so you can see how close a duck is, and the pug glows while the laser is on.

Laser Eyes has its own leaderboards, so laser scores never mix with the classic weapon. It needs a webcam: mouse and touch play always use the classic weapon. You can share it directly too, pugshunt.com/play?weapon=laser opens the game with Laser Eyes selected.

Want to build the effect yourself? The step-by-step laser eyes tutorial walks through it in plain JavaScript with MediaPipe.

Concept#

The original NES Duck Hunt relied on a physical light gun aimed at a CRT screen. For this project I wanted to recreate that physical interaction using only a webcam and modern browser APIs.

Instead of tracking a controller, the game tracks your hand and face in real time and turns natural movements into gameplay.

Controls:

  • Point with your index finger to aim
  • Open your mouth to shoot
  • Point with two hands to control two guns at once

There are three game modes: Game A with one duck per hunt, Game B with two ducks, and an unlimited ammo mode with five.

Technical Highlights#

Pug's Hunt runs entirely in the browser. Every frame, it reads the webcam, finds your fingertip and your mouth, and updates the game.

  • MediaPipe Hand Landmarker for aiming, using the graphics card when it can
  • MediaPipe Face Landmarker for the mouth trigger and the Laser Eyes eyebrow glow
  • Game logic kept in sync with the camera input, so a shot lands where you point
  • Server-side replay of ranked games, so a score on the leaderboard is a score that was really played

The hardest part was never the tracking itself, it was making it feel reliable. A mouth trigger that fires when you talk, or a hand that is lost for a frame, makes a game feel broken. Most of the work in Season 1 went into that.

Technology Stack#

  • Next.js for the application
  • MediaPipe Hand Landmarker and Face Landmarker for tracking
  • The webcam API (getUserMedia) for camera access
  • DOM sprites for the game scene
  • Supabase for the leaderboards
  • Tailwind CSS and TypeScript

Features#

  • Webcam play with finger aiming and mouth shooting
  • Two guns at once with two hands
  • Two weapons: Classic and Laser Eyes
  • Three game modes
  • Seasonal leaderboards per mode, weapon and input
  • Personal bests saved on your device
  • Mouse and touch play when you don't have a webcam
  • Retro pixel art

The dog in the game is inspired by my own pug, and some of the sounds come from recordings of my dog Rambo.

Why I Built This#

This project started as a weekend experiment to see if it was possible to recreate the feel of the NES Zapper using only a webcam and browser-based computer vision.

It turned into a complete browser game, and with Season 1 into one with real leaderboards and a second weapon. It's still a playful demonstration of how far a browser can go with physical interaction and no extra hardware.

Frequently Asked Questions

How do you play Pug's Hunt?

Open pugshunt.com and allow the camera. Point your index finger at the screen to aim and open your mouth to shoot. With two hands up you control two guns. You can also play with a mouse or by tapping on a phone.

What is Laser Eyes in Pug's Hunt?

Laser Eyes is the second weapon, added in Season 1. Open your mouth to fire a beam from the pug's eyes and hold it on a duck to roast it. A heat meter shows how close the duck is. It needs a webcam and has its own leaderboards. The link pugshunt.com/play?weapon=laser opens the game with Laser Eyes selected.

Does Pug's Hunt send my webcam video anywhere?

No. All hand and face tracking runs in your browser, and webcam images never leave your device.

Can I play Pug's Hunt without a webcam?

Yes. You can play with a mouse, or by tapping on a phone or tablet. Mouse and touch play use the classic weapon and have their own leaderboards, so you're only ranked against people who played the same way.

What happened to my old Pug's Hunt scores?

They are kept. Season 1 started with fresh leaderboards, and every score from before it is listed under "Before Season 1" on the leaderboard.

Does Pug's Hunt work on phones?

Yes. On iPhone you can play straight from the browser, without adding it to your home screen. Phones get a landscape layout and Tap to Play, and the camera works on phones too.

Resources

Related Projects