some structure experiments
This commit is contained in:
parent
1412d7dc78
commit
93ee76d622
3 changed files with 28 additions and 2 deletions
1
src/bubbles.js
Normal file
1
src/bubbles.js
Normal file
|
@ -0,0 +1 @@
|
|||
var muri
|
|
@ -84,4 +84,4 @@
|
|||
muri.init();
|
||||
loop.start();
|
||||
});
|
||||
})();
|
||||
}());
|
||||
|
|
27
src/muri.js
27
src/muri.js
|
@ -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() {
|
||||
muri.bubble.playerSprite = kontra.sprite({x: 0, y: 0, image: kontra.assets.images.player })
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue