Duck Hunt

Team project @ EE3016 Digital Circuit Lab
Team project @ EE3016
Digital Circuit Lab

Design a shooting game in reality with FPGA board.

Figure 1. Demo video with instructions to play game.

In 1984, Nintendo published light gun shooter video game "Duck Hunt", which is a fashion and popular game at that time. In this project, we aimed to replicate this game on FPGA board and we designed to use a lightgun to make shooting in reality come true. The game rule is to use your flashlight as a gun and shooting in front of the camera sensor. The player has five lives and they will reduce a life when the duck flying outside the screen. The demo video (in chinese) is shown above on Figure 1. As for our design, the whole architecture is divided into three subtasks which are listed below.

Figure 2. Module Architecture.

1. Hardware Device

The device we use including FPGA board, camera, VGA screen, and a flashlight. It is easy to play our game.

2. Camera Detection

First, the camera we use can realtime capture the frames and we use SDRAM to store each frame. Second, we change the RGB color to YUV color so that we can pay more attention on white light. To decide how we move the scope, we carry out two techniques, position detection and motion detection.

3. Game Interface

For the game interface, we compress each image and use register to store every pixel information. After, we design scope controller to setup boundary constraint and shooting judgement. Also, we implement duck controller to decide its random motion. The whole game interfaces are shown below on Figure 3.

Figure 3. Game Interface.

For more information, please refer to our slide or our report. Our code is also publically available on GitHub.