Initial Commit: CC - Mouse Up (lf6lcf3rv4.js)

beta.r3js.org
-=yb4f310 2017-11-27 10:33:54 +01:00
parent 7944546f57
commit 81b084c482
1 changed files with 31 additions and 0 deletions

31
lf6lcf3rv4.js Normal file
View File

@ -0,0 +1,31 @@
if (!this.entityLoaded) {
return;
}
if (!this.initialized) {
this.throwerParticleEngine = this.entityLoaded.throwerParticleEngine;
this.beforeRender = this.entityLoaded.beforeRender;
this.mouseMove = this.entityLoaded.mouseMove;
// this.renderer = this.entityLoaded.renderer;
this.initialized = true;
}
this.beforeRender.mouseIsDown = false;
this.mouseMove.mouseIsDown = false;
this.throwerParticleEngine.templateParticle.speed = 5;
this.throwerParticleEngine.particlesPerSecond = 5;
this.throwerParticleEngine.updateInstance('particlesPerSecond');
this.throwerParticleEngine.templateParticle.positionOffset.x = 0.3;
this.throwerParticleEngine.templateParticle.positionOffset.y = 0.3;
this.throwerParticleEngine.templateParticle.scale.x = 3;
GameLib.Event.Emit(
GameLib.Event.STOP_AUDIO,
{
name : 'Audio - Flamethrower'
}
);
return null;
//@ sourceURL=mouseUp.js