You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,15 @@
4
4
5
5
This is an implementation of DuckHunt in javascript using HTML5 audio.
6
6
7
-
All of the game logic is in the duckhunt directory. This project uses [gulp](http://gulpjs.com/) to build two concatenated js files;
7
+
All of the game logic is in the duckhunt directory. This project uses [gulp](http://gulpjs.com/) to build two concatenated js files;
8
8
one representing all of our game logic the other representing necessary javascript library dependencies.
9
9
10
10
This refactor of the game relies on custom events to control game flow which has cut down a bit on the "animation callback hell"
11
11
faced in version 1.
12
12
13
-
To work with this project on your own simply clone this git repo into a directory, and run `npm install` inside that
14
-
directory. The package.json file included in this repo helps npm install all the necessary node module dependencies. Make your edits
15
-
to the code and run `gulp`. The default gulp task will lint the javascript, concatenate, and minify it into the build
16
-
directory.
13
+
## Working With This Repo
14
+
15
+
1. Clone the repo into a directory of your choice
16
+
1.`cd` into that directory and run `npm install`
17
+
1. Use the `gulp dev` task during active development. This task automatically builds all necessary JS files and triggers the [livereload browser extension](http://livereload.com/extensions/) to do its thing and reload the page when changes are detected in the `lib` and `duckhunt` directories.
18
+
1. 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.
0 commit comments