From 32eefa4b7b2e0dfd4be31798bbd21442b8a0470e Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 17 Jan 2018 15:15:53 +0100 Subject: [PATCH] Initial Commit: CC - SpoonLib - Entity Loaded (x6shtke1dz.js) --- x6shtke1dz.js | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 x6shtke1dz.js diff --git a/x6shtke1dz.js b/x6shtke1dz.js new file mode 100644 index 0000000..f88bf8d --- /dev/null +++ b/x6shtke1dz.js @@ -0,0 +1,50 @@ +if (this.parentEntity === data.entity) { + console.log('Entity SpoonLib Loaded'); + + this.animationSystem = GameLib.EntityManager.Instance.queryComponents(GameLib.Component.SYSTEM_ANIMATION)[0]; + + + this.beforeRender = GameLib.EntityManager.Instance.findComponentById('98ckiy76lb'); + + this.touchStart = GameLib.EntityManager.Instance.findComponentById('3hydxnm019'); + this.touchMove = GameLib.EntityManager.Instance.findComponentById('tlfd3vbn9k'); + this.touchEnd = GameLib.EntityManager.Instance.findComponentById('ild66f6e9m'); + + this.mouseUp = GameLib.EntityManager.Instance.findComponentById('l5hb4jx1ke'); + this.mouseDown = GameLib.EntityManager.Instance.findComponentById('xcuv7akc4v'); + this.mouseWheel = GameLib.EntityManager.Instance.findComponentById('schmhl1bp5'); + this.mouseMove = GameLib.EntityManager.Instance.findComponentById('n2spe826mj'); + + this.cylinder = GameLib.EntityManager.Instance.findComponentById('2jpfk3eve6'); + + this.camera = GameLib.EntityManager.Instance.findComponentById('fa2c27w63p'); + this.textCanvas = GameLib.EntityManager.Instance.findComponentById('tba7fmj5ve'); + this.textTexture = GameLib.EntityManager.Instance.findComponentById('b1ygasug5p'); + this.particleEngine = GameLib.EntityManager.Instance.findComponentById('5qvnngmqv6'); + this.particle = GameLib.EntityManager.Instance.findComponentById('p1d8f1q774'); + + this.camera2d = GameLib.EntityManager.Instance.findComponentById('w69e7e2mmy'); + + this.audioDrone = GameLib.EntityManager.Instance.findComponentById('mau1fe4qw2'); + + this.beforeRender.entityLoaded = this; + + this.touchStart.entityLoaded = this; + this.touchMove.entityLoaded = this; + this.touchEnd.entityLoaded = this; + + this.mouseUp.entityLoaded = this; + this.mouseDown.entityLoaded = this; + this.mouseWheel.entityLoaded = this; + this.mouseMove.entityLoaded = this; + + GameLib.Event.Emit( + GameLib.Event.PLAY_AUDIO, + { + name : 'Audio - Drone' + } + ); + +} + +//@ sourceURL=SpoonLibEntityLoaded.js \ No newline at end of file