ASD
This commit is contained in:
parent
6ef19ac2f3
commit
409ec35c23
2 changed files with 2 additions and 1 deletions
2
build.sh
2
build.sh
|
@ -3,7 +3,7 @@
|
||||||
rm -f muri-src.zip muri.zip src/muri.min.js
|
rm -f muri-src.zip muri.zip src/muri.min.js
|
||||||
uglifyjs --compress --mangle --no-dead-code --output src/muri.min.js src/*.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.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`
|
filesize=`stat --printf="%s" muri.zip`
|
||||||
echo $filesize "byte ->" $((100*$filesize/13000)) "%"
|
echo $filesize "byte ->" $((100*$filesize/13000)) "%"
|
||||||
|
|
1
src/muri.min.js
vendored
Normal file
1
src/muri.min.js
vendored
Normal 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;
|
Loading…
Reference in a new issue