diff options
author | Justin Worthe <justin.worthe@gmail.com> | 2014-04-21 12:08:55 +0200 |
---|---|---|
committer | Justin Worthe <justin.worthe@gmail.com> | 2014-04-21 12:08:55 +0200 |
commit | 8de58b344fdb824e47c1d733d470e9e9cecf74f9 (patch) | |
tree | 7692c1f13135b2e40412e3645a8120e21467db3a /game/states/preload.js | |
parent | e63dfa8396f37f107ba4b910f555ef5fdf4a9ac7 (diff) |
Added wall sprites and hard coded a very basic map
closes #2
Diffstat (limited to 'game/states/preload.js')
-rw-r--r-- | game/states/preload.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/game/states/preload.js b/game/states/preload.js index 877027f..c8b22ad 100644 --- a/game/states/preload.js +++ b/game/states/preload.js @@ -12,13 +12,14 @@ Preload.prototype = { this.load.onLoadComplete.addOnce(this.onLoadComplete, this); this.load.setPreloadSprite(this.asset); + this.load.image('wall', 'assets/images/wall.svg'); }, create: function() { this.asset.cropEnabled = false; }, update: function() { if(!!this.ready) { - this.game.state.start('menu'); + this.game.state.start('play'); } }, onLoadComplete: function() { |