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() {