From d79f2671126061f37568d468860ae4f4939c0315 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 19 Nov 2017 15:37:46 +0100 Subject: [PATCH] Update: CC - Entity Loaded - Moorcow (xtihcyhagp.js) 40 bytes modified --- xtihcyhagp.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/xtihcyhagp.js b/xtihcyhagp.js index 4ec103f..c0e6476 100644 --- a/xtihcyhagp.js +++ b/xtihcyhagp.js @@ -73,10 +73,6 @@ GameLib.Event.Subscribe( data.width, data.height ); - this.camera.lookAt.x = 0; - this.camera.lookAt.y = 0; - this.camera.lookAt.z = 0; - this.camera.updateInstance('lookAt'); }.bind(this) ); @@ -94,7 +90,13 @@ GameLib.Event.Subscribe( GameLib.Event.Emit(GameLib.Event.WINDOW_RESIZE, {width : window.innerWidth, height:window.innerHeight}); - + this.camera.lookAt.x = 0; + this.camera.lookAt.y = 0; + this.camera.lookAt.z = 0; + this.camera.updateInstance('lookAt'); + + this.mouse.x = 0; + this.mouse.y = 0; GameLib.Event.Emit( GameLib.Event.PLAY_AUDIO,