!function(){window.current_game||(window.current_game={});window.gmx_||(window.gmx_={});window.qyengine||(window.qyengine={});window.checkNumbers=function(n,e){if(null==n){n=-1e3;e=-1e3}else if(null!=n.x){e=n.y;n=n.x}if(isNaN(n)){console.log("checkNumbers X NaN encountered");n=-1e3}if(isNaN(e)){console.log("checkNumbers Y NaN encountered");e=-1e3}qyengine.g_b2Vec2.x=n;qyengine.g_b2Vec2.y=e;return qyengine.g_b2Vec2};qyengine.foreach=window.gmx_foreach=function(n,e){if(n&&e&&0!=n.length)for(var i=0;i<n.length;i++)e(n[i])}}();!function(){qyengine.instance_create=window.instance_create=function(n,e,i,o){var r="string"==typeof o?o:o&&o.id,a=this.getRotation&&this.getRotation()||0;i instanceof Array&&(i=i[random(i.length-1)]);return qyengine.createInstance({type:i.classId||i,id:r,position:{x:n,y:e},rotation:a},o&&o.layer&&qyengine.guardId(o.layer))};qyengine.arrayRemove=window.array_remove=qyengine.array_remove=function(n,e){n.splice(n.indexOf(e),1)}}();!function(){function n(n){n&&n.play&&n.play()}function e(n){n&&n.stop&&n.stop()}function i(n){var e=n.classId||n,i=a[e];if(i){for(var o=[],r=0;r<i.length;r++){var t=i[r];t.isEnabled()||o.push(t)}for(var r=0;r<o.length;r++)array_remove(i,o[r])}}function o(n,e){var o=n.classId||n;i(n);var r,t=qyengine.guardType(o);if(t){r=new t(e);a[o]?a[o].push(r):a[o]=[r];window[o]=r}return r}var r,a={};qyengine.play_sound=function(i,a){i.classId&&(i=i.classId);var t=o(i,a);if(t.is_background){e(r);r=t}n(t)}}();