Update: CC - Mouse Down (zjg1mprub2.js) 70 bytes modified
parent
7646d5b480
commit
da322487f1
|
@ -21,14 +21,8 @@ this.throwerParticleEngine.updateInstance('particlesPerSecond');
|
||||||
this.throwerParticleEngine.templateParticle.speed = 300;
|
this.throwerParticleEngine.templateParticle.speed = 300;
|
||||||
this.throwerParticleEngine.templateParticle.scale.x = 15;
|
this.throwerParticleEngine.templateParticle.scale.x = 15;
|
||||||
|
|
||||||
GameLib.Event.Emit(
|
if (GameLib.Utils.UndefinedOrNull(this.subscription)) {
|
||||||
GameLib.Event.PLAY_AUDIO,
|
this.subscription = GameLib.Event.Subscribe(
|
||||||
{
|
|
||||||
name : 'Audio - Flamethrower'
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
this.subscription = GameLib.Event.Subscribe(
|
|
||||||
GameLib.Event.AUDIO_ENDED,
|
GameLib.Event.AUDIO_ENDED,
|
||||||
function(data) {
|
function(data) {
|
||||||
if (data.audio.name === 'Audio - Flamethrower') {
|
if (data.audio.name === 'Audio - Flamethrower') {
|
||||||
|
@ -39,6 +33,14 @@ this.subscription = GameLib.Event.Subscribe(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
GameLib.Event.Emit(
|
||||||
|
GameLib.Event.PLAY_AUDIO,
|
||||||
|
{
|
||||||
|
name : 'Audio - Flamethrower'
|
||||||
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue