Glitch or die trying
A simple game where you play a square trying to find its way out different levels. The problem is, it's almost always impossible without glitching (i.e. entering commands in the console).
npm install
npm run dev
open
dist/index.htmlin browser
open
src/unit-tests.htmlin other tab and check all tests are good before commit
To add a new test, add a new spec file and export it in src/mainSpec.js. F5 in browser must show new tests.
Default build uses uglify to minify js files. Html and css files are also minified.
npm run buildTo use google closure compiler instead of uglify for javascript minification
npm run build-googleRelease will automatically rebuild the project and create a gzip file: game.gz
npm run releaseTo deploy a fresh version on team-thirtyfour.github.io/js13kgame.
npm run deploy##debug mode To debug minified files, add "-debug" to the earlier build tasks:
npm run build-debug