Update: CC - SpoonLib - Before Render (uou2i9be9r.js) 126 bytes modified

beta.r3js.org
-=yb4f310 2018-01-17 15:02:36 +01:00
parent 51eda0251a
commit 7c96855e04
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,7 @@ if (!this.initialized) {
this.camera2d = this.entityLoaded.camera2d;
this.particleEngine = this.entityLoaded.particleEngine;
this.particle = this.entityLoaded.particle;
this.audioDrone = this.entityLoaded.audioDrone;
this.particleEngine.pulse = true;
this.particleEngine.particlesPerSecond = 22;
@ -36,6 +37,10 @@ this.camera.lookAt.y = 0;
this.camera.lookAt.z = 0;
this.camera.updateInstance('lookAt');
if (this.audioDrone.volume < 0.5) {
this.audioDrone.volume += this.time;
}
if (this.camera2dAnimation) {
this.camera2d.fov -= Math.abs(Math.cos(this.time * 5));