This commit is contained in:
Aaron Fischer 2017-08-21 21:19:21 +02:00
parent 6ef19ac2f3
commit 409ec35c23
2 changed files with 2 additions and 1 deletions

View file

@ -3,7 +3,7 @@
rm -f muri-src.zip muri.zip src/muri.min.js
uglifyjs --compress --mangle --no-dead-code --output src/muri.min.js src/*.js
(cd src && zip -q -9 ../muri.zip index.html muri.min.js assets/* assets/**/* vendor/*.min.js)
(cd src && zip -q -9 ../muri-src.zip *)
(cd src && zip -q -9 ../muri-src.zip ./* ./**/* ./**/**/* ../README)
filesize=`stat --printf="%s" muri.zip`
echo $filesize "byte ->" $((100*$filesize/13000)) "%"

1
src/muri.min.js vendored Normal file
View file

@ -0,0 +1 @@
"use strict";var muri=function(){kontra.init("js13k-2017"),kontra.assets.imagePath="assets/images";var t={},r=function(t){return kontra.sprite({x:0,y:0,image:kontra.assets.images["room_"+t]})};return t.modules=[],t.start=function(){kontra.assets.load("player.png","room_stasis_dark.png","room_stasis.png").then(function(){document.getElementById("loading").style.display="none",null===kontra.store.get("current-room")&&kontra.store.set("current-room","stasis_dark");var s={stasis_dark:r("stasis_dark"),stasis:r("stasis")};kontra.gameLoop({update:function(){var r=kontra.store.get("current-room");s[r].update();for(m in t.modules)m.update()},render:function(){var r=kontra.store.get("current-room");s[r].render();for(m in t.modules)m.render()}}).start()})},t}();window.onload=muri.start;