Skip to content

Commit

Permalink
final before starting js13k compo
Browse files Browse the repository at this point in the history
  • Loading branch information
Rybar committed Aug 13, 2017
1 parent 10698c0 commit 048d57d
Show file tree
Hide file tree
Showing 16 changed files with 2,445 additions and 271 deletions.
22 changes: 15 additions & 7 deletions Gruntfile.js
Expand Up @@ -22,11 +22,12 @@ module.exports = function(grunt) {
//'src/js/lib/stats.js',

'src/js/first.js',
// 'src/js/assets.js',
'src/js/lib/sonantx.js',
'src/js/assets.js',
'src/js/lib/Engine.js',
//'src/lib/sonantx.js',
'src/js/lib/sound.js',

'src/js/main.js',
'src/js/lib/sound.js',
'src/js/states/gameoverstate.js',
'src/js/states/menustate.js',
'src/js/states/gamestate.js',
Expand Down Expand Up @@ -67,10 +68,17 @@ module.exports = function(grunt) {
},
compressed: {
options: {
reserveDOMCache: true,
// nameCache: 'grunt-uglify-cache.json',
// exceptionsFiles: [ 'domprops.json' ],
mangle: true
//reserveDOMCache: true,
nameCache: 'grunt-uglify-cache.json',
mangle: {
properties: {
builtins: false,
regex: /MusicGenerator|getAudioGenerator|osc1_oct|oscSawtooth|osc1_det|osc1_detune/
//domprops: false,

}
}
//mangle: true


},
Expand Down
4 changes: 4 additions & 0 deletions README.md
@@ -1,3 +1,7 @@
# JS13K 2017 boilerplate

* includes a pico8-like framebuffer and graphics engine [game zero](https://rybar.github.io/gamezero)

* there's a bit of ugliness involving uglify to work with es6 code in this setup; I manually replaced uglifyJS with uglify-es since the API is compatible. After running npm install, you'll have to manually copy the contents of node_modules/uglify-es and replace the contents of node_modules/grunt-contrib-uglify/node_modules/uglify-js.

* I've currently left in sonant-x as my sound creator, but it brings the zip up to around 6k.

0 comments on commit 048d57d

Please sign in to comment.