phaserjs / phaser-ce-examples

Contains hundreds of source code examples and related media for the Phaser HTML5 Game Framework.

Home Page:http://phaser.io/examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AudioSprite with JSON Example is Incorrect

pmcmonagle opened this issue · comments

The example code loads an audiosprite with JSON, but when it's added to the game, it's added as regular audio ('game.add.audio'), and then the markers are defined manually in code.

IMO, the correct demonstration of audiosprites with JSON would be to use 'game.add.audioSprite' and let the markers generate themselves from the JSON.