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