DUCK HUNT JS v3.0
This game supports WebGL and Canvas rendering via the PixiJS rendering engine.
This game will attempt to use the WebAudioAPI and fallback to HTML5 Audio if necessary. Audio is loaded and controlled via HowlerJS.
The animations in this game are a combination of PixiJS MovieClips built from sprite images and tweens. Since PixiJS doesn't provide a tweening API, Green Sock was used.
Working With This Repo
- You must have nodejs installed. This project also uses
gulp. Installing it globally with
npm install -g gulpis optional, though if you choose not to install it globally you'll have to use
npm run gulp -- TASKinstead of just
gulp TASKwhen following the rest of this README.
- Clone the repo into a directory of your choice
cdinto that directory and run
gulp serveto start a local webserver which will make the site available at http://localhost:8080/. Cross origin errors prevent this project from being accessed in the browser with the
- If you're interested in modifying the code, use the
gulp devtask to serve the site on http://localhost:8080/ and trigger automatic builds and reloads of the page when changes are detected in the
- If you want to manually cut a build of the JS, the default gulp task will run jshint, ensure code style compliance via JSCS, transpile to ES5 and browserify everything into a single
duckhunt.jsfile in the
distfolder. The default task also constructs new image and audio sprite sheets and their respecitve manifests.
Please report bugs as issues.
Pull requests are welcome! Please ensure
jshint compliance and include any built files.