Add positional sounds from the tilemap
This commit is contained in:
@@ -213,7 +213,7 @@
|
||||
"y":865
|
||||
},
|
||||
{
|
||||
"gid":17,
|
||||
"gid":11,
|
||||
"height":0,
|
||||
"name":"backgroundmusic",
|
||||
"properties":
|
||||
@@ -515,4 +515,4 @@
|
||||
"tilewidth":32,
|
||||
"version":1,
|
||||
"width":100
|
||||
}
|
||||
}
|
||||
|
||||
@@ -975,7 +975,7 @@ GameState.prototype.create = function()
|
||||
}, this)
|
||||
|
||||
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) {
|
||||
snd.update_new_values();
|
||||
}, this)
|
||||
|
||||
Reference in New Issue
Block a user