summaryrefslogtreecommitdiff
path: root/game/states/preload.js
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2014-04-21 17:14:01 +0200
committerJustin Worthe <justin.worthe@gmail.com>2014-04-21 17:14:01 +0200
commita9ba8a68d61110cca347e2a4823b25880bc94923 (patch)
treecb5c6e2924157554e339134e06f58faf6b98ab2b /game/states/preload.js
parent0347cdee4f8c0cdb90848f300ff831ab30fd3007 (diff)
Added player with movement
Unfortunately, can currently go through walls. re #3
Diffstat (limited to 'game/states/preload.js')
-rw-r--r--game/states/preload.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/game/states/preload.js b/game/states/preload.js
index c8b22ad..7154c8f 100644
--- a/game/states/preload.js
+++ b/game/states/preload.js
@@ -13,6 +13,7 @@ Preload.prototype = {
this.load.onLoadComplete.addOnce(this.onLoadComplete, this);
this.load.setPreloadSprite(this.asset);
this.load.image('wall', 'assets/images/wall.svg');
+ this.load.image('player-a', 'assets/images/player-a.svg');
},
create: function() {
this.asset.cropEnabled = false;