No server needed, just open the index.html file in the browser.
But first build the JS file as described below!
I created this project to practice a bit modern javascript. To transpile it to es5 JS use babel. First install babel and the es2015 preset:
npm install
and then build into /lib
either with npm
:
npm run build
or directly with babel
:
babel src --no-comments --minified -o lib/game.js
when using babel
, simply add the -w
argument to watch for changes during editing the src files:
babel src --no-comments --minified -w -o lib/game.js
Make apps out of it for linux, mac and windows with http://appjs.com/ and phone apps with http://phonegap.com/