some structure experiments

This commit is contained in:
Aaron Fischer 2017-08-17 19:05:06 +02:00
parent 1412d7dc78
commit 93ee76d622
3 changed files with 28 additions and 2 deletions

1
src/bubbles.js Normal file
View file

@ -0,0 +1 @@
var muri

View file

@ -84,4 +84,4 @@
muri.init(); muri.init();
loop.start(); loop.start();
}); });
})(); }());

View file

@ -1,4 +1,29 @@
var muri = { this.muri = {
init: function(kontra) {
kontra.init('js13k-2017');
kontra.assets.imagePath = 'assets/images';
kontra.assets.load(
'player.png',
'room_stasis_dark.png',
'room_stasis.png'
).then(function() {
});
}
};
(function(m) {
var bubble = {};
bubble.show = function() {
};
m.bubble = bubble;
return bubble;
}(muri || {}));
init: function() { init: function() {
muri.bubble.playerSprite = kontra.sprite({x: 0, y: 0, image: kontra.assets.images.player }) muri.bubble.playerSprite = kontra.sprite({x: 0, y: 0, image: kontra.assets.images.player })
}, },