diff --git a/uou2i9be9r.js b/uou2i9be9r.js index 9a19cb9..c087f00 100644 --- a/uou2i9be9r.js +++ b/uou2i9be9r.js @@ -5,8 +5,9 @@ if (!this.entityLoaded) { if (!this.initialized) { this.camera = this.entityLoaded.camera; + this.camera2d = this.entityLoaded.camera2d; this.time = 0; - + this.camera2dAnimation = true; this.initialized = true; } @@ -22,6 +23,16 @@ this.camera.lookAt.y = 0; this.camera.lookAt.z = 0; this.camera.updateInstance('lookAt'); +if (this.camera2dAnimation) { + this.camera2d.fov -= 0.1; + this.camera2d.updateInstance('fov'); + if (this.camera2d.fov < 75) { + this.camera2d.fov = 75; + this.camera2d.updateInstance('fov'); + this.camera2dAnimation = false; + } +} + //console.log('camera x:' + this.camera.position.x + ',y: ' + this.camera.position.y + ',z: ' + this.camera.position.z); //@ sourceURL=mouseMove.js \ No newline at end of file