Add positional sounds from the tilemap

This commit is contained in:
2014-06-14 00:16:17 -07:00
parent 1fa11e2300
commit 95b2a39492
2 changed files with 3 additions and 3 deletions

View File

@@ -213,7 +213,7 @@
"y":865 "y":865
}, },
{ {
"gid":17, "gid":11,
"height":0, "height":0,
"name":"backgroundmusic", "name":"backgroundmusic",
"properties": "properties":

View File

@@ -975,7 +975,7 @@ GameState.prototype.create = function()
}, this) }, this)
this.staticSounds = game.add.group(); this.staticSounds = game.add.group();
this.map.createFromObjects('Sounds', null, 'player', 0, true, false, this.staticSounds, SoundSprite); this.map.createFromObjects('Sounds', 11, 'player', 0, true, false, this.staticSounds, SoundSprite);
this.staticSounds.forEach(function(snd) { this.staticSounds.forEach(function(snd) {
snd.update_new_values(); snd.update_new_values();
}, this) }, this)