Skip to content


Subversion checkout URL

You can clone with
Download ZIP
DuckHunt ported to JS and HTML5 with a level creator
JavaScript HTML CSS
Branch: master


Play the game

This is an implementation of DuckHunt in javascript using HTML5 audio.

All of the game logic is in the duckhunt directory. This project uses gulp to build two concatenated js files; one representing all of our game logic the other representing necessary javascript library dependencies.

This refactor of the game relies on custom events to control game flow which has cut down a bit on the "animation callback hell" faced in version 1.

Working With This Repo

  1. Clone the repo into a directory of your choice
  2. cd into that directory and run npm install
  3. Use the gulp dev task during active development. This task automatically builds all necessary JS files and triggers the livereload browser extension to do its thing and reload the page when changes are detected in the lib and duckhunt directories.
  4. If you want to manually cut a build of the JS the default gulp task will lint, concatenate, and minify the project's javascript files it into the build directory.
Something went wrong with that request. Please try again.