Fixed an error that stopped 2 tweens from being able to run on the same object. Also refactored a lot of the classes to remove prototype properties and move them to local instance properties.

This commit is contained in:
Richard Davey
2013-09-10 20:40:34 +01:00
parent a486bf6b4a
commit e41e35fd09
23 changed files with 533 additions and 558 deletions
+15 -18
View File
@@ -7,29 +7,26 @@ Phaser.SoundManager = function (game) {
this.game = game;
this.onSoundDecode = new Phaser.Signal;
this._muted = false;
this._unlockSource = null;
this._volume = 1;
this._muted = false;
this._sounds = [];
this.context = null;
this.usingWebAudio = true;
this.usingAudioTag = false;
this.noAudio = false;
this.touchLocked = false;
this.channels = 32;
};
Phaser.SoundManager.prototype = {
game: null,
_muted: false,
_unlockSource: null,
_volume: 1,
_muted: false,
_sounds: [],
context: null,
usingWebAudio: true,
usingAudioTag: false,
noAudio: false,
touchLocked: false,
onSoundDecode: null,
channels: 32,
boot: function () {
if (this.game.device.iOS && this.game.device.webAudio == false)