From b3db0d094a3032c3afc2654b91ea4ebd7b3a4375 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 19 Nov 2017 12:23:15 +0100 Subject: [PATCH] Update: CC - Entity Loaded - Moorcow (xtihcyhagp.js) 8 bytes modified --- xtihcyhagp.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/xtihcyhagp.js b/xtihcyhagp.js index 2322b40..1744b8d 100644 --- a/xtihcyhagp.js +++ b/xtihcyhagp.js @@ -76,15 +76,17 @@ GameLib.Event.Subscribe( GameLib.Event.Emit(GameLib.Event.WINDOW_RESIZE, {width : window.innerWidth, height:window.innerHeight}); - GameLib.Event.Emit( - GameLib.Event.PLAY_AUDIO, - { - name : 'Audio - Xmas' - } - ); + }.bind(this) ); +GameLib.Event.Emit( + GameLib.Event.PLAY_AUDIO, + { + name : 'Audio - Xmas' + } +); + GameLib.Event.Subscribe( GameLib.Event.GAME_OVER, function() {