From 664cc4dc45a4b853a13a81fd809939eeb4e86b78 Mon Sep 17 00:00:00 2001 From: -=yb4f3410 Date: Thu, 29 Nov 1973 22:33:09 +0100 Subject: [PATCH] Initial Commit: Custom Code - BK Flame - Mouse Wheel (ot5qabk55a.js) --- mccud019kb.js | 41 ----------------------------------------- n3ehhvglar.js | 8 ++++++++ ot5qabk55a.js | 13 +++++++++++++ 3 files changed, 21 insertions(+), 41 deletions(-) delete mode 100644 mccud019kb.js create mode 100644 n3ehhvglar.js create mode 100644 ot5qabk55a.js diff --git a/mccud019kb.js b/mccud019kb.js deleted file mode 100644 index ce161a2..0000000 --- a/mccud019kb.js +++ /dev/null @@ -1,41 +0,0 @@ -if (this.parentEntity === data.entity) { - console.log('my entity loaded :)'); -} else { - return; -} - -this.enemies = []; - -/** - * Min and max spawn time is in seconds - */ -GameLib.D3.CustomCode.MIN_SPAWN_TIME = 1; -GameLib.D3.CustomCode.MAX_SPAWN_TIME = 4; - -this.beforeRender = GameLib.EntityManager.Instance.findComponentById('dywmtohrda'); -//this.materialRusted = GameLib.EntityManager.Instance.findComponentById('0mrd2dx5np'); - -GameLib.Event.Emit( - GameLib.Event.GET_GRAPHICS_IMPLEMENTATION, - null, - function(graphics) { - this.graphics = graphics - }.bind(this) -); - -if ( - !this.beforeRender -) { - console.error('components not available at runtime', this); -} - -/** - * Updates the displacement scale of materialRusted - */ -//this.updateMaterialRusted = function(totalTime) { -// this.materialRusted.displacementScale = Math.sin(totalTime); -// this.materialRusted.updateInstance(); -//} - -return null; -//# sourceURL=entityLoaded.js \ No newline at end of file diff --git a/n3ehhvglar.js b/n3ehhvglar.js new file mode 100644 index 0000000..1072394 --- /dev/null +++ b/n3ehhvglar.js @@ -0,0 +1,8 @@ +this.beforeRender = GameLib.EntityManager.Instance.findComponentById('dywmtohrda'); +this.entityLoaded = GameLib.EntityManager.Instance.findComponentById('mccud019kb'); + +this.beforeRender.entityLoaded = this.entityLoaded; + +return null; + +//@ sourceURL=gameStart.js \ No newline at end of file diff --git a/ot5qabk55a.js b/ot5qabk55a.js new file mode 100644 index 0000000..5e872b3 --- /dev/null +++ b/ot5qabk55a.js @@ -0,0 +1,13 @@ +if (GameLib.Utils.UndefinedOrNull(this.camera)) { + this.camera = GameLib.EntityManager.Instance.findComponentById('yv62w8sx9r'); +} + +if (data.event.deltaY < 0 && this.camera.fov > 30) { + this.camera.fov -= 30; + this.camera.updateInstance(); +} else if (data.event.deltaY > 0 && this.camera.fov < 90) { + this.camera.fov += 30; + this.camera.updateInstance(); +} + +//@ sourceURL=mouseWheel.js \ No newline at end of file