Snake clone build on Angular2
Branch: master
Clone or download
Latest commit 542bf4e Jun 17, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf update Jun 5, 2016
gulp_tasks Initial commit Jun 3, 2016
src implementing tests Jun 17, 2016
.gitattributes Initial commit Jun 3, 2016
.gitignore last update Jun 11, 2016
Procfile update heroku settings Jun 13, 2016
README.md Update README.md Jun 13, 2016
gulpfile.js Initial commit Jun 3, 2016
package.json implementing tests Jun 17, 2016
tslint.json implementing tests Jun 17, 2016
typings.json update Jun 5, 2016
web.js update heroku settings Jun 13, 2016

README.md

ng2snake

Snake clone build on Angular2

Check it out right now Demo.

KEYS

  • UP, DOWN, LEFT, RIGHT - to control snake
  • SPACEBAR, ENTER - to toggle play/stop game
  • ESC - to stop game

Requirements

You need at least

  • Node 4+
  • NPM 3+

Play

Clone this repo and execute in your favourite shell:

  • npm i -g gulp to install gulp globally (if you don't have it installed already)
  • npm i to install local npm dependencies
  • typings i to install local typings dependencies
  • npm run serve or gulp serve to launch

Tasks

NPM scripts

  • npm run build to build an optimized version of your application in /dist
  • npm run serve to launch a browser sync server on your source files
  • npm run serve:dist to launch a server on your optimized application

Gulp tasks

If you have gulp-cli installed in global packages you can use equivalent:

  • gulp or gulp build to build an optimized version of your application in /dist
  • gulp serve to launch a browser sync server on your source files
  • gulp serve:dist to launch a server on your optimized application

Used

Fountain Webapp Generator Angular 2 Gulp BrowserSync Karma Webpack