Add positional sounds from the tilemap
This commit is contained in:
@@ -984,8 +984,8 @@ GameState.prototype.create = function()
|
|||||||
this.staticSounds = game.add.group();
|
this.staticSounds = game.add.group();
|
||||||
this.map.createFromObjects('Sounds', 11, '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) {
|
||||||
light.update_new_values();
|
snd.update_new_values();
|
||||||
console.log(light);
|
console.log(snd);
|
||||||
}, this)
|
}, this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user