From 93ee76d6228414b4574a42dbf7d2706f888cf48b Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Thu, 17 Aug 2017 19:05:06 +0200 Subject: [PATCH] some structure experiments --- src/bubbles.js | 1 + src/main.js | 2 +- src/muri.js | 27 ++++++++++++++++++++++++++- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 src/bubbles.js diff --git a/src/bubbles.js b/src/bubbles.js new file mode 100644 index 0000000..e3f268b --- /dev/null +++ b/src/bubbles.js @@ -0,0 +1 @@ +var muri diff --git a/src/main.js b/src/main.js index 59fcde4..7a8fef0 100644 --- a/src/main.js +++ b/src/main.js @@ -84,4 +84,4 @@ muri.init(); loop.start(); }); -})(); +}()); diff --git a/src/muri.js b/src/muri.js index cea7f2a..544f927 100644 --- a/src/muri.js +++ b/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 }) },