From 6bdeb24dbedd895fdc7b43b91c84116e08987790 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 15 Nov 2017 13:10:43 +0100 Subject: [PATCH] Initial Commit: CC - Mouse Down (yywxa78hfp.js) --- yywxa78hfp.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 yywxa78hfp.js diff --git a/yywxa78hfp.js b/yywxa78hfp.js new file mode 100644 index 0000000..ecf4cc8 --- /dev/null +++ b/yywxa78hfp.js @@ -0,0 +1,26 @@ +if (!this.entityLoaded) { + return; +} + +if (!this.initialized) { + /** + * Link some objects for MouseDown component + */ + this.throwerParticleEngine = this.entityLoaded.throwerParticleEngine; + this.beforeRender = this.entityLoaded.beforeRender; + this.mouseMove = this.entityLoaded.mouseMove; + this.initialized = true; +} + +this.beforeRender.mouseIsDown = true; +this.mouseMove.mouseIsDown = true; + +this.throwerParticleEngine.enabled = true; +this.throwerParticleEngine.particlesPerSecond = 50; +this.throwerParticleEngine.updateInstance('particlesPerSecond'); +this.throwerParticleEngine.templateParticle.speed = 300; +this.throwerParticleEngine.templateParticle.scale.x = 15; + + +return null; +//@ sourceURL=mouseDown.js \ No newline at end of file