
- #DUCK HUNTING GAMES INSTALL#
- #DUCK HUNTING GAMES CODE#
To rebuild audio assets use npm run audio (there is a hard dependency on ffmpeg to run this task).This game looks and sounds then you'll need to work with audio and image sprites. If you really want to get into some leet haxing and change the way This repo ships with committed dist files to make it easy for developers to get up and running.
#DUCK HUNTING GAMES CODE#
If you want to manually cut a build of the application code run npm run build.This will also trigger automatic builds and reloads of the page when changes are detected in the src directory. Use npm start to start a local webserver which will make the site available at Cross origin errors prevent this project from being accessed in the browser with the file:// protocol.
#DUCK HUNTING GAMES INSTALL#
cd into that directory and run npm install. Clone the repo into a directory of your choice. The main chunks of business logic are implemented as ES6 classes which are transpiled to ES5 using Babel. The flow of this game is managed using Javascript. Since PixiJS doesn't provide a tweening API, Green Sock was used. The animations in this game are a combination of PixiJS MovieClips built from sprite images and tweens. Audio is loaded and controlled via HowlerJS. This game will attempt to use the WebAudioAPI and fallback to HTML5 Audio if necessary. This game supports WebGL and Canvas rendering via the PixiJS rendering engine. It uses the PixiJS rendering engine, Green Sock Animations, Howler, and Bluebird Promises. This is an implementation of DuckHunt in Javascript and HTML5.