From 159b1621ae9ac84e89630d0e3d5d1398de3514c3 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 15 Nov 2017 13:42:29 +0100 Subject: [PATCH] Initial Commit: CC - Mouse Down (27ihfljfb8.js) --- 27ihfljfb8.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 27ihfljfb8.js diff --git a/27ihfljfb8.js b/27ihfljfb8.js new file mode 100644 index 0000000..ecf4cc8 --- /dev/null +++ b/27ihfljfb8.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