From f43263a2a9abeb1d085933f95fae72ce7c2cb7d0 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 19 Nov 2017 15:36:50 +0100 Subject: [PATCH] Update: CC - Entity Loaded - Moorcow (xtihcyhagp.js) 3 bytes modified --- xtihcyhagp.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xtihcyhagp.js b/xtihcyhagp.js index 362eeff..4ec103f 100644 --- a/xtihcyhagp.js +++ b/xtihcyhagp.js @@ -73,6 +73,10 @@ 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) ); @@ -90,10 +94,7 @@ 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'); + GameLib.Event.Emit( GameLib.Event.PLAY_AUDIO,