Phaser now running on iOS. Also fixed a legacy bug where a pending sound wouldn't play once it was touch unlocked. Also fixed Input not working on WebGL contexts. Added WebGL texture updates to the Group/World swap functions.

This commit is contained in:
Richard Davey
2013-09-10 16:46:39 +01:00
parent 5da0e42be4
commit a486bf6b4a
17 changed files with 338 additions and 201 deletions
+4 -2
View File
@@ -167,7 +167,7 @@ Phaser.Cache.prototype = {
decoded = true;
}
this._sounds[key] = { url: url, data: data, locked: locked, isDecoding: false, decoded: decoded, webAudio: webAudio, audioTag: audioTag };
this._sounds[key] = { url: url, data: data, isDecoding: false, decoded: decoded, webAudio: webAudio, audioTag: audioTag };
},
@@ -354,7 +354,9 @@ Phaser.Cache.prototype = {
* @return {object} The sound data you want.
*/
isSoundReady: function (key) {
return (this._sounds[key] && this._sounds[key].decoded == true && this._sounds[key].locked == false);
return (this._sounds[key] && this._sounds[key].decoded && this.game.sound.touchLocked == false);
},
/**