Initial Commit: Custom Code - BK Flame - Mouse Wheel (ot5qabk55a.js)

beta.r3js.org
-=yb4f3410 1973-11-29 22:33:09 +01:00
parent 83d83c2b71
commit 664cc4dc45
3 changed files with 21 additions and 41 deletions

View File

@ -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

8
n3ehhvglar.js Normal file
View File

@ -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

13
ot5qabk55a.js Normal file
View File

@ -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