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

beta.r3js.org
-=yb4f310 2018-01-16 10:53:23 +01:00
parent f3b7283088
commit 8a509cb860
1 changed files with 6 additions and 1 deletions

View File

@ -3,10 +3,15 @@ if (!this.entityLoaded) {
}
if (!this.initialized) {
this.camera = this.entityLoaded.camera;
this.camera2d = this.entityLoaded.camera2d;
this.time = 0;
this.camera2d.fov = 180;
this.camera2d.updateInstance('fov');
this.camera2dAnimation = true;
this.initialized = true;
}
@ -24,7 +29,7 @@ this.camera.lookAt.z = 0;
this.camera.updateInstance('lookAt');
if (this.camera2dAnimation) {
this.camera2d.fov -= 0.2;//Math.sin(time);
this.camera2d.fov -= Math.cos(this.time) / 4;
this.camera2d.updateInstance('fov');
if (this.camera2d.fov < 75) {
this.camera2d.fov = 75;