Duck Hunt is a shooter game in which the objective is to shoot moving targets on the television screen in mid-flight. The game is played from a first-person perspective and requires the NES Zapper light gun, which the player aims and fires at the screen. It also requires a CRT television screen since the Zapper gun will not work with LCD or HDTV's. Each round consists of a total of ten targets to shoot. Depending on the game mode the player selects prior to beginning play, one or two targets will appear on the screen at any given time, and the player has three attempts to hit them before they disappear.
The player is required to successfully shoot a minimum number of targets in order to advance to the next round. Therefore, failure will result directly in a game over. The difficulty increases as the player advances to higher rounds; targets will move faster, and the minimum number of targets to shoot will increase. The player receives points upon shooting a target and will also receive bonus points for shooting all ten targets in a single round. Duck Hunt keeps track of the players' highest score for all games played in a single session; it is lost, however, upon shutting the game off.
In this project we try to recreate a duck hunt game with HTML and CSS . Objects are considred as X and Y coordinates and the mouse cursor points need to be interacted with the object coordinates to HIT the objects.