diff --git a/uou2i9be9r.js b/uou2i9be9r.js index 5d07758..1c67e4f 100644 --- a/uou2i9be9r.js +++ b/uou2i9be9r.js @@ -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;