mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Adding marker for each key in spritemap object
This commit is contained in:
parent
d65cf17a4d
commit
9a156ec898
1 changed files with 8 additions and 0 deletions
|
@ -11,6 +11,14 @@ var WebAudioSpriteSound = new Class({
|
|||
* @property {object} spritemap
|
||||
*/
|
||||
this.spritemap = manager.game.cache.json.get(key).spritemap;
|
||||
for (var markerName in this.spritemap) {
|
||||
this.addMarker({
|
||||
name: markerName,
|
||||
start: this.spritemap[markerName].start,
|
||||
duration: this.spritemap[markerName].end - this.spritemap[markerName].start,
|
||||
config: config
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
module.exports = WebAudioSpriteSound;
|
||||
|
|
Loading…
Reference in a new issue