diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/sdk.enjoy4fun.com/v1/gamebridge.js b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/sdk.enjoy4fun.com/v1/gamebridge.js new file mode 100644 index 000000000..e54b39a14 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/sdk.enjoy4fun.com/v1/gamebridge.js @@ -0,0 +1 @@ +function a1_0x4d8e(){const _0x3effdc=['forEach','showStart','1805337vPbZGr','.js','querySelector','body','exports','gamebridge','gamebridge-sdk-core','createElement','data-test','456121mLeCNt','toStringTag','defineProperty','data-version','__esModule','text/javascript','getAttribute','type','325424HlGDZf','2576270zsTBXf','showAd','2304999TIUVWg','script','src','4761568ieqtSX','#gamebridge-sdk','30lNhdWP','parentNode','object','lastChild','2XkcgvI','setAttribute','Module','showPause','data-gameid','https://sdk.enjoy4fun.com/sdk-','arguments','1.0.6','nextSibling','insertBefore','appendChild','6QzvgDe','ready','4421179IPNulM'];a1_0x4d8e=function(){return _0x3effdc;};return a1_0x4d8e();}function a1_0x3a78(_0x160704,_0x4e3442){const _0x4d8ecc=a1_0x4d8e();return a1_0x3a78=function(_0x3a78b5,_0xd2139a){_0x3a78b5=_0x3a78b5-0xe2;let _0xf0e6f4=_0x4d8ecc[_0x3a78b5];return _0xf0e6f4;},a1_0x3a78(_0x160704,_0x4e3442);}(function(_0x51858a,_0x5885e5){const _0x3e5b43=a1_0x3a78,_0x523311=_0x51858a();while(!![]){try{const _0x48d793=parseInt(_0x3e5b43(0xe5))/0x1+parseInt(_0x3e5b43(0xf9))/0x2*(parseInt(_0x3e5b43(0x109))/0x3)+parseInt(_0x3e5b43(0xed))/0x4*(parseInt(_0x3e5b43(0xf5))/0x5)+-parseInt(_0x3e5b43(0x104))/0x6*(parseInt(_0x3e5b43(0x106))/0x7)+-parseInt(_0x3e5b43(0xf3))/0x8+-parseInt(_0x3e5b43(0xf0))/0x9+parseInt(_0x3e5b43(0xee))/0xa;if(_0x48d793===_0x5885e5)break;else _0x523311['push'](_0x523311['shift']());}catch(_0x33df42){_0x523311['push'](_0x523311['shift']());}}}(a1_0x4d8e,0x4e4f7),!function(_0x2e79ce,_0x322150){const _0x39f90d=a1_0x3a78;if('object'==typeof exports&&_0x39f90d(0xf7)==typeof module)module[_0x39f90d(0x10d)]=_0x322150();else{if('function'==typeof define&&define['amd'])define([],_0x322150);else{var _0x3946d2=_0x322150();for(var _0x4dc77d in _0x3946d2)('object'==typeof exports?exports:_0x2e79ce)[_0x4dc77d]=_0x3946d2[_0x4dc77d];}}}(self,()=>((()=>{'use strict';var _0x1f23ae={'r':_0x5a73b4=>{const _0x435e90=a1_0x3a78;'undefined'!=typeof Symbol&&Symbol[_0x435e90(0xe6)]&&Object[_0x435e90(0xe7)](_0x5a73b4,Symbol[_0x435e90(0xe6)],{'value':_0x435e90(0xfb)}),Object[_0x435e90(0xe7)](_0x5a73b4,_0x435e90(0xe9),{'value':!0x0});}},_0x318e58={};_0x1f23ae['r'](_0x318e58);const _0xd621db=[];function _0x57378f(){const _0xcc2ea6=a1_0x3a78,_0x1da90d=document[_0xcc2ea6(0x10b)](_0xcc2ea6(0xf4)),_0x53eb0f=_0x1da90d[_0xcc2ea6(0xf6)],_0x5c1730=document[_0xcc2ea6(0xe3)](_0xcc2ea6(0xf1)),_0x3010cb=_0x1da90d['getAttribute'](_0xcc2ea6(0xe8))||_0xcc2ea6(0x100);_0x5c1730['id']=_0xcc2ea6(0xe2),_0x5c1730[_0xcc2ea6(0xf2)]=_0xcc2ea6(0xfe)+_0x3010cb+_0xcc2ea6(0x10a),_0x5c1730[_0xcc2ea6(0xec)]=_0xcc2ea6(0xea),function(_0x4326c5){const _0x305d45=_0xcc2ea6,_0xf0f2d7=[_0x305d45(0xef),'showPreroll',_0x305d45(0x108),_0x305d45(0xfc),'showNext','showBrowse','showReward'];if(!window[_0x305d45(0x10e)]){const _0x119d61={'version':_0x4326c5,'ready':!0x1};_0xf0f2d7['forEach'](_0x124a64=>{_0x119d61[_0x124a64]=function(){_0xd621db['push']({'fn':_0x124a64,'arguments':arguments});};}),window[_0x305d45(0x10e)]=_0x119d61;}}(_0x3010cb),[_0xcc2ea6(0xfd),'data-ad-frequency',_0xcc2ea6(0xe4)][_0xcc2ea6(0x107)](_0x15c94f=>{const _0x21bc3e=_0xcc2ea6;_0x1da90d['getAttribute'](_0x15c94f)&&_0x21bc3e(0xe8)!==_0x15c94f&&_0x5c1730[_0x21bc3e(0xfa)](_0x15c94f,_0x1da90d[_0x21bc3e(0xeb)](_0x15c94f));}),_0x5c1730['onload']=()=>{const _0xd41718=setInterval(()=>{const _0x2ad371=a1_0x3a78;window['gamebridge'][_0x2ad371(0x105)]&&(window['clearInterval'](_0xd41718),_0xd621db['length']&&_0xd621db['forEach'](_0x61374b=>{const _0xa169b4=_0x2ad371;window[_0xa169b4(0x10e)][_0x61374b['fn']](..._0x61374b[_0xa169b4(0xff)]);}));},0x64);},_0x53eb0f&&_0x53eb0f[_0xcc2ea6(0xf8)]?_0x53eb0f['lastChild']===_0x1da90d?_0x53eb0f[_0xcc2ea6(0x103)](_0x5c1730):_0x53eb0f[_0xcc2ea6(0x102)](_0x5c1730,_0x1da90d[_0xcc2ea6(0x101)]):document[_0xcc2ea6(0x10c)][_0xcc2ea6(0x103)](_0x5c1730);}return _0x57378f(),_0x318e58;})()))); \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/sdk.enjoy4fun.com/v1/pk-sdk.js b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/sdk.enjoy4fun.com/v1/pk-sdk.js new file mode 100644 index 000000000..daca78ad4 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/sdk.enjoy4fun.com/v1/pk-sdk.js @@ -0,0 +1 @@ +function a2_0x21c4(_0x44dac4,_0x26084e){var _0x257e25=a2_0x257e();return a2_0x21c4=function(_0x21c442,_0x456ba2){_0x21c442=_0x21c442-0x19e;var _0x498f31=_0x257e25[_0x21c442];return _0x498f31;},a2_0x21c4(_0x44dac4,_0x26084e);}function a2_0x257e(){var _0x31717e=['removeEventListener','gameLoadingFinished','displayAd','contentDocument','random','togglePlayerAdvertisingConsent','_fbc','exports','object','layer','defineProperty','createElement','#ads-iframe\x20{\x0a\x20\x20display:\x20none;\x0a\x20\x20width:\x20100vw\x20!important;\x0a\x20\x20height:\x20100vh\x20!important;\x0a\x20\x20inset:\x200\x20auto\x20auto\x200\x20!important;\x0a\x20\x20clear:\x20none\x20!important;\x0a\x20\x20float:\x20none\x20!important;\x0a\x20\x20margin:\x200\x20!important;\x0a\x20\x20max-height:\x20none\x20!important;\x0a\x20\x20max-width:\x20none\x20!important;\x0a\x20\x20opacity:\x201\x20!important;\x0a\x20\x20overflow:\x20visible\x20!important;\x0a\x20\x20padding:\x200\x20!important;\x0a\x20\x20position:\x20fixed\x20!important;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20vertical-align:\x20baseline\x20!important;\x0a\x20\x20visibility:\x20visible\x20!important;\x0a\x20\x20z-index:\x202147483647\x20!important;\x0a\x20\x20background:\x20#262626\x20!important;\x0a}\x0a','splice','appendChild','setPlayerAge','2163903XCzewe','ads','gameInteractive','references','setAttribute','domAPI','__esModule','googletag','defineSlot','slot','1835930GApPtO','href','gameplayStart','@supports\x20(','join','nonLink_after','muteAd','getSharableURL','initWithVideoHB','PokiSDK','Module','stringify','background:#169fe6;height:18px;line-height:18px;padding:1px;border-radius:0\x203px\x203px\x200;color:#fff','document','tagIndex','HTMLIFrameElement','css','rewardedBreak','nonLink_error','readySto','#f90','setCentering','@layer','no-referrer','gameLoadingStart','5776263jisdgX','update','POST','Couldn\x27t\x20find\x20a\x20style\x20target.\x20This\x20probably\x20means\x20that\x20the\x20value\x20for\x20the\x20\x27insert\x27\x20parameter\x20is\x20invalid.','options','toString','commercialBreak','game_event','cookie','6088795GVeRcd','getElementsByTagName','src','prototype','addEventListener','locals','sourceMap','nodeType','updater','undefined','setDebugTouchOverlayControllers','assign','hasOwnProperty','https://www.googletagmanager.com/gtm.js?id=GTM-TZCNGV2','enableServices','destroyAd','\x20*/','gamebridge','log','insert','base','insertBefore','ready','map','cmd','1676024eyuBph','remove','setAttributes','supports','1323988cfElYe','function','roundEnd','background:','same-origin','parentNode','frames','concat',')\x20{','showBrowse','insertStyleElement','%c\x20pk-SDK\x20%c\x20','apiReady','toStringTag','cookie\x20error','split','xxxxxxxx-xxxx-4fun-xxxx-xxxxxxxxxxxx','innerHTML','byIndex','_fbp','location','display','push','fetch','length','string','removeChild','sendHighscore','addService','event','uid','10530726JCGhPZ','4wkbcUW','#gamebridge-sdk-core','pubads','\x0a/*#\x20sourceMappingURL=data:application/json;base64,','/22719832207/ingame','gameplayStop','reduce','styleSheet','attributes','firstChild','happyTime','roundStart','#333','getLeaderboard','default','dataLayer','nonce','nonLink_before','slotOnload','style','gameLoadingProgress','logError','getAttribute','now','getElementById','setConsentString','bind','gtm.js','forEach','head','querySelector','63AbSudU','toggleNonPersonalized','div-gpt-ad-1651731535139-','application/json','showReward','media','replace'];a2_0x257e=function(){return _0x31717e;};return a2_0x257e();}(function(_0x3a1251,_0x4f50a7){var _0x4f6071=a2_0x21c4,_0x32456e=_0x3a1251();while(!![]){try{var _0x5809f6=parseInt(_0x4f6071(0x208))/0x1+parseInt(_0x4f6071(0x1c9))/0x2+parseInt(_0x4f6071(0x1bf))/0x3+-parseInt(_0x4f6071(0x228))/0x4*(parseInt(_0x4f6071(0x1eb))/0x5)+parseInt(_0x4f6071(0x227))/0x6+parseInt(_0x4f6071(0x1a8))/0x7*(-parseInt(_0x4f6071(0x204))/0x8)+-parseInt(_0x4f6071(0x1e2))/0x9;if(_0x5809f6===_0x4f50a7)break;else _0x32456e['push'](_0x32456e['shift']());}catch(_0x34300a){_0x32456e['push'](_0x32456e['shift']());}}}(a2_0x257e,0xed9e2),!function(_0x113a8a,_0x2111af){var _0x1968b5=a2_0x21c4;if('object'==typeof exports&&_0x1968b5(0x1b7)==typeof module)module[_0x1968b5(0x1b6)]=_0x2111af();else{if(_0x1968b5(0x209)==typeof define&&define['amd'])define([],_0x2111af);else{var _0x59de4a=_0x2111af();for(var _0x182e65 in _0x59de4a)(_0x1968b5(0x1b7)==typeof exports?exports:_0x113a8a)[_0x182e65]=_0x59de4a[_0x182e65];}}}(self,()=>((()=>{'use strict';var _0x1ce548=a2_0x21c4;var _0x421c2d={0x29a:(_0x5c6fa2,_0x47f493,_0xf770d9)=>{var _0x29c4db=a2_0x21c4;_0xf770d9['d'](_0x47f493,{'Z':()=>_0x2cdcb6});var _0x363bd5=_0xf770d9(0x1dc),_0x451aab=_0xf770d9['n'](_0x363bd5)()(function(_0x3e05ed){return _0x3e05ed[0x1];});_0x451aab['push']([_0x5c6fa2['id'],_0x29c4db(0x1bb),'']);const _0x2cdcb6=_0x451aab;},0x1dc:_0x3076c9=>{var _0x113e31=a2_0x21c4;_0x3076c9[_0x113e31(0x1b6)]=function(_0x369414){var _0x5805b7=_0x113e31,_0x911e85=[];return _0x911e85[_0x5805b7(0x1e7)]=function(){var _0x29c5f2=_0x5805b7;return this[_0x29c5f2(0x202)](function(_0x2727f4){var _0x5d1572=_0x29c5f2,_0x475621=_0x369414(_0x2727f4);return _0x2727f4[0x2]?'@media\x20'[_0x5d1572(0x20f)](_0x2727f4[0x2],'\x20{')[_0x5d1572(0x20f)](_0x475621,'}'):_0x475621;})[_0x29c5f2(0x1cd)]('');},_0x911e85['i']=function(_0x56431f,_0x232b47,_0x56267c){var _0x1909e5=_0x5805b7;_0x1909e5(0x221)==typeof _0x56431f&&(_0x56431f=[[null,_0x56431f,'']]);var _0x461645={};if(_0x56267c)for(var _0x12b755=0x0;_0x12b755{var _0x401420=a2_0x21c4,_0x20fae6=[];function _0x5e75e5(_0xf1efc){var _0x74e175=a2_0x21c4;for(var _0x4a35df=-0x1,_0x29b342=0x0;_0x29b342<_0x20fae6[_0x74e175(0x220)];_0x29b342++)if(_0x20fae6[_0x29b342]['identifier']===_0xf1efc){_0x4a35df=_0x29b342;break;}return _0x4a35df;}function _0x2a0288(_0x5f2398,_0x34ae12){var _0x5148f1=a2_0x21c4;for(var _0x196ff1={},_0x1fc98d=[],_0x2c5873=0x0;_0x2c5873<_0x5f2398[_0x5148f1(0x220)];_0x2c5873++){var _0x5d425b=_0x5f2398[_0x2c5873],_0x564d00=_0x34ae12[_0x5148f1(0x1ff)]?_0x5d425b[0x0]+_0x34ae12[_0x5148f1(0x1ff)]:_0x5d425b[0x0],_0x53bad7=_0x196ff1[_0x564d00]||0x0,_0x17b751=''[_0x5148f1(0x20f)](_0x564d00,'\x20')[_0x5148f1(0x20f)](_0x53bad7);_0x196ff1[_0x564d00]=_0x53bad7+0x1;var _0x2b895b=_0x5e75e5(_0x17b751),_0x1aac02={'css':_0x5d425b[0x1],'media':_0x5d425b[0x2],'sourceMap':_0x5d425b[0x3],'supports':_0x5d425b[0x4],'layer':_0x5d425b[0x5]};if(-0x1!==_0x2b895b)_0x20fae6[_0x2b895b][_0x5148f1(0x1c2)]++,_0x20fae6[_0x2b895b]['updater'](_0x1aac02);else{var _0x2d7550=_0x1676c8(_0x1aac02,_0x34ae12);_0x34ae12[_0x5148f1(0x21a)]=_0x2c5873,_0x20fae6[_0x5148f1(0x1bc)](_0x2c5873,0x0,{'identifier':_0x17b751,'updater':_0x2d7550,'references':0x1});}_0x1fc98d[_0x5148f1(0x21e)](_0x17b751);}return _0x1fc98d;}function _0x1676c8(_0x14113a,_0x3e5ac8){var _0x7e6f1b=a2_0x21c4,_0x39eb55=_0x3e5ac8[_0x7e6f1b(0x1c4)](_0x3e5ac8);return _0x39eb55[_0x7e6f1b(0x1e3)](_0x14113a),function(_0x26463c){var _0x3aff65=_0x7e6f1b;if(_0x26463c){if(_0x26463c[_0x3aff65(0x1d9)]===_0x14113a[_0x3aff65(0x1d9)]&&_0x26463c[_0x3aff65(0x1ad)]===_0x14113a[_0x3aff65(0x1ad)]&&_0x26463c['sourceMap']===_0x14113a[_0x3aff65(0x1f1)]&&_0x26463c['supports']===_0x14113a[_0x3aff65(0x207)]&&_0x26463c[_0x3aff65(0x1b8)]===_0x14113a[_0x3aff65(0x1b8)])return;_0x39eb55['update'](_0x14113a=_0x26463c);}else _0x39eb55[_0x3aff65(0x205)]();};}_0x2d720a[_0x401420(0x1b6)]=function(_0x1d7949,_0x2f80c2){var _0x16b58f=_0x2a0288(_0x1d7949=_0x1d7949||[],_0x2f80c2=_0x2f80c2||{});return function(_0x25d379){var _0x391011=a2_0x21c4;_0x25d379=_0x25d379||[];for(var _0x2a166f=0x0;_0x2a166f<_0x16b58f['length'];_0x2a166f++){var _0x6b92e5=_0x5e75e5(_0x16b58f[_0x2a166f]);_0x20fae6[_0x6b92e5][_0x391011(0x1c2)]--;}for(var _0x45f2c9=_0x2a0288(_0x25d379,_0x2f80c2),_0x3651bd=0x0;_0x3651bd<_0x16b58f[_0x391011(0x220)];_0x3651bd++){var _0x52d84f=_0x5e75e5(_0x16b58f[_0x3651bd]);0x0===_0x20fae6[_0x52d84f]['references']&&(_0x20fae6[_0x52d84f][_0x391011(0x1f3)](),_0x20fae6['splice'](_0x52d84f,0x1));}_0x16b58f=_0x45f2c9;};};},0x137:_0x380ee9=>{var _0x445e9f=a2_0x21c4,_0x1d97cd={};_0x380ee9[_0x445e9f(0x1b6)]=function(_0xdc1410,_0x5b4b50){var _0x43fb0a=_0x445e9f,_0x106e3c=function(_0x592166){var _0xc9eef1=a2_0x21c4;if(void 0x0===_0x1d97cd[_0x592166]){var _0x14a43f=document[_0xc9eef1(0x1a7)](_0x592166);if(window[_0xc9eef1(0x1d8)]&&_0x14a43f instanceof window[_0xc9eef1(0x1d8)])try{_0x14a43f=_0x14a43f[_0xc9eef1(0x1b2)]['head'];}catch(_0x3cc26c){_0x14a43f=null;}_0x1d97cd[_0x592166]=_0x14a43f;}return _0x1d97cd[_0x592166];}(_0xdc1410);if(!_0x106e3c)throw new Error(_0x43fb0a(0x1e5));_0x106e3c[_0x43fb0a(0x1bd)](_0x5b4b50);};},0x3c:_0x245965=>{var _0x3c6f0d=a2_0x21c4;_0x245965[_0x3c6f0d(0x1b6)]=function(_0x51b8b3){var _0x30d443=_0x3c6f0d,_0x3f8dde=document[_0x30d443(0x1ba)](_0x30d443(0x23b));return _0x51b8b3['setAttributes'](_0x3f8dde,_0x51b8b3[_0x30d443(0x230)]),_0x51b8b3['insert'](_0x3f8dde,_0x51b8b3[_0x30d443(0x1e6)]),_0x3f8dde;};},0xc0:(_0x341acc,_0x3dec70,_0x53b5ab)=>{var _0x80162=a2_0x21c4;_0x341acc[_0x80162(0x1b6)]=function(_0x34054b){var _0x531345=_0x80162,_0x1a62ae=_0x53b5ab['nc'];_0x1a62ae&&_0x34054b[_0x531345(0x1c3)](_0x531345(0x238),_0x1a62ae);};},0x2f8:_0x596fee=>{_0x596fee['exports']=function(_0x546f71){var _0xf53f34=a2_0x21c4,_0x2e728b=_0x546f71[_0xf53f34(0x212)](_0x546f71);return{'update':function(_0xe0eac9){!function(_0x154d44,_0x2e7803,_0x456bbd){var _0xcf5f97=a2_0x21c4,_0x365103='';_0x456bbd[_0xcf5f97(0x207)]&&(_0x365103+=_0xcf5f97(0x1cc)['concat'](_0x456bbd['supports'],_0xcf5f97(0x210))),_0x456bbd[_0xcf5f97(0x1ad)]&&(_0x365103+='@media\x20'[_0xcf5f97(0x20f)](_0x456bbd[_0xcf5f97(0x1ad)],'\x20{'));var _0x416055=void 0x0!==_0x456bbd[_0xcf5f97(0x1b8)];_0x416055&&(_0x365103+=_0xcf5f97(0x1df)[_0xcf5f97(0x20f)](_0x456bbd[_0xcf5f97(0x1b8)][_0xcf5f97(0x220)]>0x0?'\x20'['concat'](_0x456bbd[_0xcf5f97(0x1b8)]):'','\x20{')),_0x365103+=_0x456bbd[_0xcf5f97(0x1d9)],_0x416055&&(_0x365103+='}'),_0x456bbd[_0xcf5f97(0x1ad)]&&(_0x365103+='}'),_0x456bbd['supports']&&(_0x365103+='}');var _0x546982=_0x456bbd[_0xcf5f97(0x1f1)];_0x546982&&_0xcf5f97(0x1f4)!=typeof btoa&&(_0x365103+=_0xcf5f97(0x22b)[_0xcf5f97(0x20f)](btoa(unescape(encodeURIComponent(JSON['stringify'](_0x546982)))),_0xcf5f97(0x1fb))),_0x2e7803['styleTagTransform'](_0x365103,_0x154d44,_0x2e7803[_0xcf5f97(0x1e6)]);}(_0x2e728b,_0x546f71,_0xe0eac9);},'remove':function(){!function(_0xbbf54e){var _0x12fcfa=a2_0x21c4;if(null===_0xbbf54e[_0x12fcfa(0x20d)])return!0x1;_0xbbf54e[_0x12fcfa(0x20d)][_0x12fcfa(0x222)](_0xbbf54e);}(_0x2e728b);}};};},0x361:_0x2c7048=>{_0x2c7048['exports']=function(_0x28b481,_0x1108b6){var _0x567a71=a2_0x21c4;if(_0x1108b6[_0x567a71(0x22f)])_0x1108b6['styleSheet']['cssText']=_0x28b481;else{for(;_0x1108b6[_0x567a71(0x231)];)_0x1108b6[_0x567a71(0x222)](_0x1108b6[_0x567a71(0x231)]);_0x1108b6[_0x567a71(0x1bd)](document['createTextNode'](_0x28b481));}};}},_0x2e5796={};function _0x1cc695(_0x2d80ed){var _0xc326c8=a2_0x21c4,_0x3162bf=_0x2e5796[_0x2d80ed];if(void 0x0!==_0x3162bf)return _0x3162bf[_0xc326c8(0x1b6)];var _0x26b8ef=_0x2e5796[_0x2d80ed]={'id':_0x2d80ed,'exports':{}};return _0x421c2d[_0x2d80ed](_0x26b8ef,_0x26b8ef['exports'],_0x1cc695),_0x26b8ef[_0xc326c8(0x1b6)];}_0x1cc695['n']=_0x2ef421=>{var _0x45d4f3=a2_0x21c4,_0x4b0ddc=_0x2ef421&&_0x2ef421[_0x45d4f3(0x1c5)]?()=>_0x2ef421[_0x45d4f3(0x236)]:()=>_0x2ef421;return _0x1cc695['d'](_0x4b0ddc,{'a':_0x4b0ddc}),_0x4b0ddc;},_0x1cc695['d']=(_0x11d4db,_0x1bc081)=>{var _0x1d3a06=a2_0x21c4;for(var _0x274293 in _0x1bc081)_0x1cc695['o'](_0x1bc081,_0x274293)&&!_0x1cc695['o'](_0x11d4db,_0x274293)&&Object[_0x1d3a06(0x1b9)](_0x11d4db,_0x274293,{'enumerable':!0x0,'get':_0x1bc081[_0x274293]});},_0x1cc695['o']=(_0x3d536d,_0x2eb3fc)=>Object[_0x1ce548(0x1ee)][_0x1ce548(0x1f7)]['call'](_0x3d536d,_0x2eb3fc),_0x1cc695['r']=_0x20c6e2=>{var _0x5e2978=_0x1ce548;'undefined'!=typeof Symbol&&Symbol[_0x5e2978(0x215)]&&Object[_0x5e2978(0x1b9)](_0x20c6e2,Symbol[_0x5e2978(0x215)],{'value':_0x5e2978(0x1d3)}),Object['defineProperty'](_0x20c6e2,'__esModule',{'value':!0x0});},_0x1cc695['nc']=void 0x0;var _0x19ba5d={};return((()=>{var _0x375b8b=_0x1ce548;_0x1cc695['r'](_0x19ba5d),window[_0x375b8b(0x237)]=window['dataLayer']||[];const _0xd274d=new class{constructor(){var _0x3f190a=_0x375b8b;!function(_0x1aa614,_0x52275f,_0x4022c7,_0x5ad5eb,_0x30023b){var _0x351dac=a2_0x21c4;_0x1aa614[_0x5ad5eb]=_0x1aa614[_0x5ad5eb]||[],_0x1aa614[_0x5ad5eb][_0x351dac(0x21e)]({'gtm.start':new Date()['getTime'](),'event':_0x351dac(0x1a4)});var _0x436c09=_0x52275f[_0x351dac(0x1ec)](_0x4022c7)[0x0],_0x471c10=_0x52275f['createElement'](_0x4022c7);_0x471c10['async']=!0x0,_0x471c10[_0x351dac(0x1ed)]=_0x351dac(0x1f8),_0x436c09[_0x351dac(0x20d)][_0x351dac(0x200)](_0x471c10,_0x436c09);}(window,document,'script',_0x3f190a(0x237));}[_0x375b8b(0x225)](_0x5986dd,_0x373bdb){var _0x5e15a9=_0x375b8b;window['dataLayer'][_0x5e15a9(0x21e)](Object[_0x5e15a9(0x1f6)]({'event':_0x5986dd},_0x373bdb));}}(),_0xe1355e=_0x47a258=>{var _0x5810a2=_0x375b8b;try{const _0x12701f=document[_0x5810a2(0x1ea)]['split'](';\x20'),_0x23b722={};return _0x12701f[_0x5810a2(0x1a5)](_0x300b44=>{var _0xa830fd=_0x5810a2;const _0x2094de=_0x300b44[_0xa830fd(0x217)]('=');_0x23b722[_0x2094de[0x0]]=_0x2094de[0x1];}),_0x23b722[_0x47a258]||'';}catch(_0x498360){return console['error'](_0x5810a2(0x216),_0x498360),'';}};let _0x2518a9,_0x28dc3a=Date[_0x375b8b(0x1a0)]();const _0x22cdc7=(_0x29fcab,_0x2584f7={})=>{var _0xf69a0c=_0x375b8b;_0x2518a9||(_0x2518a9=_0x1ec847());try{const _0x19105c=window[_0xf69a0c(0x21c)]['search']['replace'](/^\?/,'')[_0xf69a0c(0x217)]('&')[_0xf69a0c(0x22e)]((_0x2e5d28,_0x5eb948)=>{var _0x3d2ca6=_0xf69a0c;let [_0x579c6c,_0x1a830a='']=_0x5eb948[_0x3d2ca6(0x217)]('=');return Object[_0x3d2ca6(0x1f6)](Object[_0x3d2ca6(0x1f6)]({},_0x2e5d28),{[_0x579c6c]:_0x1a830a});},{}),_0x3a6f7f={'game_id':document['querySelector'](_0xf69a0c(0x229))[_0xf69a0c(0x19f)]('data-gameid'),'event_name':_0x29fcab,'page_url':window[_0xf69a0c(0x21c)][_0xf69a0c(0x1ca)],'custom_data':Object[_0xf69a0c(0x1f6)](Object[_0xf69a0c(0x1f6)]({},_0x2584f7),{'sessionId':_0x2518a9,'distance':(Date['now']()-_0x28dc3a)[_0xf69a0c(0x1e7)](),'_fbp':_0xe1355e(_0xf69a0c(0x21b)),'_fbc':_0xe1355e(_0xf69a0c(0x1b5))})};window[_0xf69a0c(0x21f)]('https://service.gamebridge.games/gamebridge/v1/track',{'method':_0xf69a0c(0x1e4),'mode':'cors','cache':'no-cache','credentials':_0xf69a0c(0x20c),'headers':{'Content-Type':_0xf69a0c(0x1ab),'uid':_0x19105c[_0xf69a0c(0x226)]||''},'referrerPolicy':_0xf69a0c(0x1e0),'body':JSON[_0xf69a0c(0x1d4)](_0x3a6f7f)});}catch(_0x2d84bc){console[_0xf69a0c(0x1fd)]('track\x20game\x20error');}},_0x1ec847=()=>{var _0x1a6b67=_0x375b8b;let _0x4340c3=Date[_0x1a6b67(0x1a0)]();return _0x1a6b67(0x1f4)!=typeof performance&&_0x1a6b67(0x209)==typeof performance[_0x1a6b67(0x1a0)]&&(_0x4340c3+=performance[_0x1a6b67(0x1a0)]()),_0x1a6b67(0x218)[_0x1a6b67(0x1ae)](/[x]/g,function(_0x29c99d){var _0x4b5fec=_0x1a6b67;const _0x100ad7=(_0x4340c3+0x10*Math[_0x4b5fec(0x1b3)]())%0x10|0x0;return _0x4340c3=Math['floor'](_0x4340c3/0x10),('x'===_0x29c99d?_0x100ad7:0x3&_0x100ad7|0x8)[_0x4b5fec(0x1e7)](0x10);});};var _0x147728=_0x1cc695(0x37c),_0x2e4e32=_0x1cc695['n'](_0x147728),_0x4c6622=_0x1cc695(0x2f8),_0x5be4a7=_0x1cc695['n'](_0x4c6622),_0x59d349=_0x1cc695(0x137),_0x251f30=_0x1cc695['n'](_0x59d349),_0x3acdb1=_0x1cc695(0xc0),_0x26ef34=_0x1cc695['n'](_0x3acdb1),_0x4c480b=_0x1cc695(0x3c),_0x517601=_0x1cc695['n'](_0x4c480b),_0x11e1e6=_0x1cc695(0x361),_0x22d1a5=_0x1cc695['n'](_0x11e1e6),_0x4248ae=_0x1cc695(0x29a),_0x47560b={};_0x47560b['styleTagTransform']=_0x22d1a5(),_0x47560b[_0x375b8b(0x206)]=_0x26ef34(),_0x47560b[_0x375b8b(0x1fe)]=_0x251f30()[_0x375b8b(0x1a3)](null,_0x375b8b(0x1a6)),_0x47560b[_0x375b8b(0x1c4)]=_0x5be4a7(),_0x47560b[_0x375b8b(0x212)]=_0x517601(),_0x2e4e32()(_0x4248ae['Z'],_0x47560b),_0x4248ae['Z']&&_0x4248ae['Z']['locals']&&_0x4248ae['Z'][_0x375b8b(0x1f0)];const _0x17b546=()=>window[_0x375b8b(0x20e)]['ads-iframe'],_0x48186e=()=>_0x17b546()['contentWindow'],_0x177ece=()=>_0x48186e()[_0x375b8b(0x1d6)],_0xf16f1b=()=>{var _0x1472d8=_0x375b8b;const _0x2ca47e=_0x17b546(),_0x327927=_0x177ece()[_0x1472d8(0x1a1)]('gamebridge-ads-wrap');_0x327927&&_0x327927['remove'](),_0x2ca47e[_0x1472d8(0x23b)][_0x1472d8(0x21d)]='none',window['focus']();},_0xd856a5=[],_0x511879={'errorNum':0x0,'usable':!0x0,'ready':!0x1,'readySto':null},_0x120680=_0x51b120=>{var _0x3e845d=_0x375b8b;_0x51b120?(_0x511879[_0x3e845d(0x1dc)]&&clearTimeout(_0x511879[_0x3e845d(0x1dc)]),_0x511879[_0x3e845d(0x1dc)]=setTimeout(()=>{var _0x3dd447=_0x3e845d;clearTimeout(_0x511879[_0x3dd447(0x1dc)]),_0x511879[_0x3dd447(0x201)]=!0x0;},0x3a98)):_0x511879['ready']=!0x1;};window[_0x375b8b(0x1d7)]=0x0;const _0x33371e={'970x250':[0x3ca,0xfa],'728x90':[0x2d8,0x5a],'160x600':[0xa0,0x258],'300x250':[0x12c,0xfa],'320x50':[0x140,0x32],'pc':[[0x2ee,0x12c],[0x12c,0xfa],[0x1e0,0x140]],'pc-vertical':[[0x12c,0x258],[0xa0,0x258],[0x12c,0xfa],[0x150,0x118]],'mobile-vertical':[[0x12c,0x258],[0xa0,0x258],[0x12c,0xfa],[0x150,0x118]],'mobile-horizontal':[[0x2ee,0xc8],[0x140,0x64],[0x12c,0x64]]},_0x489d95=async(_0x36271c,_0xa04a8a,_0x249239)=>{var _0x51befc=_0x375b8b;if(!_0x36271c||!_0x36271c[_0x51befc(0x214)])return!0x1;const _0x50a513=_0x33371e[_0x249239];if(!_0xa04a8a[_0x51befc(0x1f2)]||0x1!==_0xa04a8a[_0x51befc(0x1f2)]||!_0x50a513)return!0x1;_0x120680(!0x1);const _0x131fe3=((()=>{var _0x488bed=_0x51befc;const _0x2f3fca=_0x488bed(0x1aa)+window[_0x488bed(0x1d7)];return window[_0x488bed(0x1d7)]++,_0x2f3fca;})());let _0x1db12f;return _0x36271c[_0x51befc(0x203)][_0x51befc(0x21e)](()=>{var _0x3fcd60=_0x51befc;_0x1db12f=_0x36271c[_0x3fcd60(0x1c7)](_0x3fcd60(0x22c),_0x50a513,_0x131fe3)[_0x3fcd60(0x224)](_0x36271c['pubads']()),_0x36271c[_0x3fcd60(0x22a)]()['enableSingleRequest'](),_0x36271c[_0x3fcd60(0x22a)]()[_0x3fcd60(0x1de)](!0x0),_0x36271c[_0x3fcd60(0x1f9)]();}),_0xa04a8a[_0x51befc(0x219)]='',_0x36271c['cmd'][_0x51befc(0x21e)](()=>{var _0x533d95=_0x51befc;_0x36271c[_0x533d95(0x21d)](_0x131fe3);}),new Promise(_0x2d4f79=>{var _0x2c1bca=_0x51befc;const _0x513331=function(_0x3e1133){var _0x5339d1=a2_0x21c4;_0x2d4f79(_0x1db12f===_0x3e1133[_0x5339d1(0x1c8)]);};_0xd856a5[_0x2c1bca(0x21e)](_0x513331),_0x36271c[_0x2c1bca(0x22a)]()[_0x2c1bca(0x1ef)](_0x2c1bca(0x23a),_0x513331);});},_0xf96f9d=_0x16586a=>{var _0x46b31a=_0x375b8b;_0x16586a[_0x46b31a(0x219)]='',_0x120680(!0x0),_0xf16f1b(),_0xd856a5[_0x46b31a(0x1a5)](_0x2d9ed5=>{var _0x359946=_0x46b31a;window['googletag'][_0x359946(0x22a)]()[_0x359946(0x1af)]('slotOnload',_0x2d9ed5);});},_0x24fc63=(_0x3f7664,_0x1c2601,_0x4ea480)=>{var _0x5297c4=_0x375b8b,_0x5b61a5;console[_0x5297c4(0x1fd)](_0x5297c4(0x213)+_0x3f7664+'\x20',...(_0x5b61a5=_0x1c2601?_0x5297c4(0x1dd):_0x5297c4(0x234),[_0x5297c4(0x20b)+_0x5b61a5+';height:18px;line-height:18px;padding:1px;border-radius:3px\x200\x200\x203px;color:#fff',_0x5297c4(0x1d5)])),_0x4ea480&&(_0xd274d[_0x5297c4(0x225)](_0x5297c4(0x1e9),{'event_category':'pk','event_label':_0x3f7664,'value':0x0}),_0x22cdc7(_0x3f7664));};window[_0x375b8b(0x1d2)]=new class{['init'](){return new Promise((_0x597ac0,_0x2d22e3)=>_0x597ac0());}['initWithVideoHB'](){var _0x17ab05=_0x375b8b;_0x24fc63(_0x17ab05(0x1d1),!0x1,!0x0);}['customEvent'](){_0x24fc63('initWithVideoHB',!0x1,!0x0);}[_0x375b8b(0x1e8)](){var _0x34f653=_0x375b8b;return _0x24fc63(_0x34f653(0x1e8),!0x0,!0x0),new Promise((_0x2d9862,_0x44afe2)=>{var _0x99e620=_0x34f653;window[_0x99e620(0x1fc)]['showBrowse'](),_0x2d9862();});}[_0x375b8b(0x1da)](){var _0x1cecc4=_0x375b8b;return _0x24fc63(_0x1cecc4(0x1da),!0x0,!0x0),new Promise((_0x38c3a7,_0x1ba419)=>{var _0x1af910=_0x1cecc4;window[_0x1af910(0x1fc)][_0x1af910(0x1ac)](function(){_0x38c3a7(!0x0);},function(){_0x38c3a7(!0x1);},function(_0x258728){'viewed'===_0x258728['breakStatus']?_0x38c3a7(!0x0):_0x38c3a7(!0x1);});});}[_0x375b8b(0x1b1)](_0x2b65b0,_0xf3a79e){var _0x1e0c1e=_0x375b8b;(async(_0x51ffe2,_0x15c678)=>{var _0x1cf54c=a2_0x21c4;_0xd274d[_0x1cf54c(0x225)](_0x1cf54c(0x1c0),{'event_category':_0x1cf54c(0x239),'event_label':_0x15c678,'value':0x0}),await _0x489d95(window[_0x1cf54c(0x1c6)],_0x51ffe2,_0x15c678)?_0xd274d['event'](_0x1cf54c(0x1c0),{'event_category':_0x1cf54c(0x1ce),'event_label':_0x15c678,'value':0x1}):_0xd274d[_0x1cf54c(0x225)]('ads',{'event_category':_0x1cf54c(0x1db),'event_label':_0x15c678,'value':0x0});})(_0x2b65b0,_0xf3a79e),_0x24fc63(_0x1e0c1e(0x1b1),!0x0,!0x0);}[_0x375b8b(0x1fa)](_0x41cbf0){var _0x349c93=_0x375b8b;_0xf96f9d(_0x41cbf0),_0x24fc63(_0x349c93(0x1fa));}['getLeaderboard'](){var _0x1b9702=_0x375b8b;_0x24fc63(_0x1b9702(0x235),!0x0,!0x0),window['gamebridge']['showPause']();}['getSharableURL'](){var _0x178fde=_0x375b8b;return _0x24fc63(_0x178fde(0x1d0),!0x1,!0x0),new Promise((_0x47374b,_0x43a23f)=>_0x47374b());}[_0x375b8b(0x1e1)](){var _0x3ca6f0=_0x375b8b;_0x24fc63('gameLoadingStart',!0x0,!0x0),window[_0x3ca6f0(0x1fc)]['showPreroll'](_0x4bf7c1=>{});}[_0x375b8b(0x1b0)](){var _0x4a7ad0=_0x375b8b;_0x24fc63(_0x4a7ad0(0x1b0),!0x1,!0x0);}[_0x375b8b(0x1c1)](){var _0xfa74b4=_0x375b8b;_0x24fc63(_0xfa74b4(0x1c1),!0x0,!0x0),window['gamebridge']['showPause']();}[_0x375b8b(0x233)](){var _0x26d1fd=_0x375b8b;_0x24fc63('roundStart',!0x0,!0x0),window[_0x26d1fd(0x1fc)][_0x26d1fd(0x211)]();}['roundEnd'](){var _0x149dd6=_0x375b8b;_0x24fc63(_0x149dd6(0x20a),!0x0,!0x0),window[_0x149dd6(0x1fc)]['showBrowse']();}[_0x375b8b(0x1cf)](){var _0x1503f5=_0x375b8b;_0x24fc63(_0x1503f5(0x1cf),!0x0,!0x0),window[_0x1503f5(0x1fc)][_0x1503f5(0x211)]();}['setDebug'](){_0x24fc63('setDebug');}['gameplayStart'](){var _0x56adf2=_0x375b8b;_0x24fc63(_0x56adf2(0x1cb),!0x1,!0x0);}[_0x375b8b(0x22d)](){var _0x413acd=_0x375b8b;_0x24fc63(_0x413acd(0x22d),!0x1,!0x0);}[_0x375b8b(0x23c)](){var _0x34db05=_0x375b8b;_0x24fc63(_0x34db05(0x23c));}[_0x375b8b(0x232)](){_0x24fc63('happyTime',!0x1,!0x0);}[_0x375b8b(0x1be)](){var _0x2bdf08=_0x375b8b;_0x24fc63(_0x2bdf08(0x1be),!0x1,!0x0);}[_0x375b8b(0x1b4)](){var _0x26d1b7=_0x375b8b;_0x24fc63(_0x26d1b7(0x1b4));}[_0x375b8b(0x1a9)](){var _0x13010e=_0x375b8b;_0x24fc63(_0x13010e(0x1a9));}['setConsentString'](){var _0x21ea29=_0x375b8b;_0x24fc63(_0x21ea29(0x1a2));}[_0x375b8b(0x19e)](){var _0x49767d=_0x375b8b;_0x24fc63(_0x49767d(0x19e));}[_0x375b8b(0x223)](){var _0xaef1a7=_0x375b8b;_0x24fc63(_0xaef1a7(0x223));}['setDebugTouchOverlayController'](){var _0xb48687=_0x375b8b;_0x24fc63(_0xb48687(0x1f5));}}();})()),_0x19ba5d;})()))); \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/cars_game.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/cars_game.json new file mode 100644 index 000000000..789d16873 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/cars_game.json @@ -0,0 +1,323 @@ +{"frames": { + +"Car1FrameExploded0000": +{ + "frame": {"x":2,"y":2,"w":117,"h":66}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":117,"h":66}, + "sourceSize": {"w":117,"h":66} +}, +"Car3FrameExploded0000": +{ + "frame": {"x":91,"y":132,"w":87,"h":52}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":87,"h":52}, + "sourceSize": {"w":87,"h":52} +}, +"Car5FrameExploded0000": +{ + "frame": {"x":121,"y":2,"w":107,"h":67}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":107,"h":67}, + "sourceSize": {"w":107,"h":67} +}, +"RocketAnim0000": +{ + "frame": {"x":2,"y":186,"w":128,"h":28}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":28}, + "sourceSize": {"w":128,"h":28} +}, +"RocketAnim0001": +{ + "frame": {"x":2,"y":216,"w":128,"h":28}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":28}, + "sourceSize": {"w":128,"h":28} +}, +"RocketAnim0002": +{ + "frame": {"x":2,"y":246,"w":128,"h":28}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":28}, + "sourceSize": {"w":128,"h":28} +}, +"RocketAnim0003": +{ + "frame": {"x":2,"y":276,"w":128,"h":28}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":28}, + "sourceSize": {"w":128,"h":28} +}, +"RocketAnim0004": +{ + "frame": {"x":2,"y":306,"w":128,"h":28}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":28}, + "sourceSize": {"w":128,"h":28} +}, +"RocketAnim0005": +{ + "frame": {"x":2,"y":336,"w":128,"h":28}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":28}, + "sourceSize": {"w":128,"h":28} +}, +"Wheel_1_00000": +{ + "frame": {"x":180,"y":132,"w":42,"h":41}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":42,"h":41}, + "sourceSize": {"w":42,"h":41} +}, +"Wheel_3_00000": +{ + "frame": {"x":215,"y":71,"w":39,"h":39}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":39,"h":39}, + "sourceSize": {"w":39,"h":39} +}, +"Wheel_5_00000": +{ + "frame": {"x":180,"y":175,"w":37,"h":37}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":37,"h":37}, + "sourceSize": {"w":37,"h":37} +}, +"bike_1_base0000": +{ + "frame": {"x":2,"y":70,"w":110,"h":55}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":110,"h":55}, + "sourceSize": {"w":110,"h":55} +}, +"bike_3_base0000": +{ + "frame": {"x":2,"y":127,"w":87,"h":53}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":87,"h":53}, + "sourceSize": {"w":87,"h":53} +}, +"bike_5_base0000": +{ + "frame": {"x":114,"y":71,"w":99,"h":59}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":99,"h":59}, + "sourceSize": {"w":99,"h":59} +}, +"driver_arm10000": +{ + "frame": {"x":132,"y":186,"w":20,"h":13}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":20,"h":13}, + "sourceSize": {"w":20,"h":13} +}, +"driver_arm30000": +{ + "frame": {"x":230,"y":53,"w":20,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":20,"h":14}, + "sourceSize": {"w":20,"h":14} +}, +"driver_arm50000": +{ + "frame": {"x":191,"y":294,"w":20,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":20,"h":14}, + "sourceSize": {"w":20,"h":14} +}, +"driver_corpse10000": +{ + "frame": {"x":223,"y":211,"w":18,"h":33}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":18,"h":33}, + "sourceSize": {"w":18,"h":33} +}, +"driver_corpse30000": +{ + "frame": {"x":230,"y":2,"w":21,"h":35}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":21,"h":35}, + "sourceSize": {"w":21,"h":35} +}, +"driver_corpse50000": +{ + "frame": {"x":223,"y":246,"w":18,"h":33}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":18,"h":33}, + "sourceSize": {"w":18,"h":33} +}, +"driver_forearm10000": +{ + "frame": {"x":224,"y":164,"w":22,"h":9}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":22,"h":9}, + "sourceSize": {"w":22,"h":9} +}, +"driver_forearm30000": +{ + "frame": {"x":230,"y":39,"w":24,"h":12}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":24,"h":12}, + "sourceSize": {"w":24,"h":12} +}, +"driver_forearm50000": +{ + "frame": {"x":154,"y":200,"w":23,"h":10}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":23,"h":10}, + "sourceSize": {"w":23,"h":10} +}, +"driver_head10000": +{ + "frame": {"x":173,"y":249,"w":34,"h":27}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":34,"h":27}, + "sourceSize": {"w":34,"h":27} +}, +"driver_head30000": +{ + "frame": {"x":132,"y":241,"w":39,"h":29}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":39,"h":29}, + "sourceSize": {"w":39,"h":29} +}, +"driver_head50000": +{ + "frame": {"x":184,"y":214,"w":37,"h":33}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":37,"h":33}, + "sourceSize": {"w":37,"h":33} +}, +"driver_hip10000": +{ + "frame": {"x":213,"y":296,"w":19,"h":12}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":12}, + "sourceSize": {"w":19,"h":12} +}, +"driver_hip30000": +{ + "frame": {"x":218,"y":281,"w":23,"h":13}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":23,"h":13}, + "sourceSize": {"w":23,"h":13} +}, +"driver_hip50000": +{ + "frame": {"x":154,"y":186,"w":20,"h":12}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":20,"h":12}, + "sourceSize": {"w":20,"h":12} +}, +"driver_shin10000": +{ + "frame": {"x":219,"y":175,"w":21,"h":34}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":21,"h":34}, + "sourceSize": {"w":21,"h":34} +}, +"driver_shin30000": +{ + "frame": {"x":172,"y":278,"w":17,"h":33}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":17,"h":33}, + "sourceSize": {"w":17,"h":33} +}, +"driver_shin50000": +{ + "frame": {"x":224,"y":112,"w":19,"h":34}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":34}, + "sourceSize": {"w":19,"h":34} +}, +"suspend_back10000": +{ + "frame": {"x":132,"y":272,"w":38,"h":16}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":38,"h":16}, + "sourceSize": {"w":38,"h":16} +}, +"suspend_back30000": +{ + "frame": {"x":132,"y":308,"w":36,"h":12}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":36,"h":12}, + "sourceSize": {"w":36,"h":12} +}, +"suspend_back50000": +{ + "frame": {"x":132,"y":290,"w":33,"h":16}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":33,"h":16}, + "sourceSize": {"w":33,"h":16} +}, +"suspend_front10000": +{ + "frame": {"x":191,"y":278,"w":25,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":25,"h":14}, + "sourceSize": {"w":25,"h":14} +}, +"suspend_front30000": +{ + "frame": {"x":224,"y":148,"w":26,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":26,"h":14}, + "sourceSize": {"w":26,"h":14} +}, +"suspend_front50000": +{ + "frame": {"x":132,"y":214,"w":50,"h":25}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":50,"h":25}, + "sourceSize": {"w":50,"h":25} +}}, +"meta": { + "app": "Adobe Flash Professional", + "version": "15.0.1.179", + "image": "cars_game.png", + "format": "RGBA8888", + "size": {"w":256,"h":512}, + "scale": "1" +} +} diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/cars_game.png b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/cars_game.png new file mode 100644 index 000000000..13b95bbc7 Binary files /dev/null and b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/cars_game.png differ diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/garage.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/garage.json new file mode 100644 index 000000000..17544d8ec --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/garage.json @@ -0,0 +1,363 @@ +{"frames": { + +"0bg_garage0000": +{ + "frame": {"x":2,"y":2,"w":720,"h":480}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":720,"h":480}, + "sourceSize": {"w":720,"h":480} +}, +"0bg_garage_l0000": +{ + "frame": {"x":838,"y":975,"w":30,"h":480}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":30,"h":480}, + "sourceSize": {"w":30,"h":480} +}, +"0bg_garage_r0000": +{ + "frame": {"x":838,"y":975,"w":30,"h":480}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":30,"h":480}, + "sourceSize": {"w":30,"h":480} +}, +"0logo0000": +{ + "frame": {"x":724,"y":2,"w":271,"h":179}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":271,"h":179}, + "sourceSize": {"w":271,"h":179} +}, +"0popup_bg0000": +{ + "frame": {"x":2,"y":484,"w":680,"h":436}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":680,"h":436}, + "sourceSize": {"w":680,"h":436} +}, +"InGameMusicButton0000": +{ + "frame": {"x":155,"y":1084,"w":53,"h":44}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":53,"h":44}, + "sourceSize": {"w":53,"h":44} +}, +"InGameMusicButton0001": +{ + "frame": {"x":991,"y":480,"w":27,"h":33}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":0,"y":8,"w":53,"h":44}, + "sourceSize": {"w":53,"h":44} +}, +"InGameMusicButton0002": +{ + "frame": {"x":252,"y":1093,"w":53,"h":33}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":0,"y":8,"w":53,"h":44}, + "sourceSize": {"w":53,"h":44} +}, +"InGamePauseButton0000": +{ + "frame": {"x":307,"y":1093,"w":33,"h":49}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":33,"h":49}, + "sourceSize": {"w":33,"h":49} +}, +"LeveMapItemLocked0000": +{ + "frame": {"x":304,"y":1012,"w":63,"h":79}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":63,"h":79}, + "sourceSize": {"w":63,"h":79} +}, +"LeveMapItemLocked0001": +{ + "frame": {"x":46,"y":1075,"w":60,"h":46}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":2,"y":22,"w":63,"h":79}, + "sourceSize": {"w":63,"h":79} +}, +"LeveMapItemLocked0002": +{ + "frame": {"x":2,"y":2,"w":0,"h":0}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":31,"y":39,"w":63,"h":79}, + "sourceSize": {"w":63,"h":79} +}, +"LeveMapItemLocked0003": +{ + "frame": {"x":997,"y":2,"w":25,"h":26}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":1,"y":2,"w":63,"h":79}, + "sourceSize": {"w":63,"h":79} +}, +"LeveMapItemLocked0004": +{ + "frame": {"x":731,"y":1115,"w":42,"h":28}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":1,"y":0,"w":63,"h":79}, + "sourceSize": {"w":63,"h":79} +}, +"LeveMapItemLocked0005": +{ + "frame": {"x":540,"y":1115,"w":61,"h":28}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":1,"y":0,"w":63,"h":79}, + "sourceSize": {"w":63,"h":79} +}, +"arrow_btn0000": +{ + "frame": {"x":964,"y":975,"w":54,"h":86}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":54,"h":86}, + "sourceSize": {"w":54,"h":86} +}, +"arrow_btn0001": +{ + "frame": {"x":2,"y":1075,"w":42,"h":68}, + "rotated": false, + "trimmed": true, + "spriteSourceSize": {"x":6,"y":9,"w":54,"h":86}, + "sourceSize": {"w":54,"h":86} +}, +"arrow_key0000": +{ + "frame": {"x":918,"y":415,"w":78,"h":63}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":78,"h":63}, + "sourceSize": {"w":78,"h":63} +}, +"arrow_key20000": +{ + "frame": {"x":540,"y":1060,"w":83,"h":53}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":83,"h":53}, + "sourceSize": {"w":83,"h":53} +}, +"bg0000": +{ + "frame": {"x":997,"y":30,"w":10,"h":10}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":10,"h":10}, + "sourceSize": {"w":10,"h":10} +}, +"black0000": +{ + "frame": {"x":689,"y":1115,"w":40,"h":40}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":40,"h":40}, + "sourceSize": {"w":40,"h":40} +}, +"btn_body0000": +{ + "frame": {"x":918,"y":317,"w":96,"h":96}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":96,"h":96}, + "sourceSize": {"w":96,"h":96} +}, +"btn_body0001": +{ + "frame": {"x":918,"y":317,"w":96,"h":96}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":96,"h":96}, + "sourceSize": {"w":96,"h":96} +}, +"btn_credits0000": +{ + "frame": {"x":949,"y":1063,"w":62,"h":60}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":62,"h":60}, + "sourceSize": {"w":62,"h":60} +}, +"exit_btn0000": +{ + "frame": {"x":870,"y":975,"w":92,"h":80}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":92,"h":80}, + "sourceSize": {"w":92,"h":80} +}, +"frame_space0000": +{ + "frame": {"x":2,"y":922,"w":366,"h":88}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":366,"h":88}, + "sourceSize": {"w":366,"h":88} +}, +"improved_bg0000": +{ + "frame": {"x":724,"y":183,"w":153,"h":136}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":153,"h":136}, + "sourceSize": {"w":153,"h":136} +}, +"logo_mad0000": +{ + "frame": {"x":684,"y":484,"w":305,"h":404}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":305,"h":404}, + "sourceSize": {"w":305,"h":404} +}, +"next_btn0000": +{ + "frame": {"x":870,"y":1057,"w":77,"h":76}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":77,"h":76}, + "sourceSize": {"w":77,"h":76} +}, +"orange_btn0000": +{ + "frame": {"x":724,"y":321,"w":192,"h":99}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":192,"h":99}, + "sourceSize": {"w":192,"h":99} +}, +"orange_btn_big0000": +{ + "frame": {"x":684,"y":890,"w":327,"h":83}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":327,"h":83}, + "sourceSize": {"w":327,"h":83} +}, +"orange_btn_big_green0000": +{ + "frame": {"x":370,"y":975,"w":327,"h":83}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":327,"h":83}, + "sourceSize": {"w":327,"h":83} +}, +"pause_bg0000": +{ + "frame": {"x":369,"y":1060,"w":89,"h":54}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":89,"h":54}, + "sourceSize": {"w":89,"h":54} +}, +"play_btn0000": +{ + "frame": {"x":625,"y":1060,"w":62,"h":65}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":62,"h":65}, + "sourceSize": {"w":62,"h":65} +}, +"restart_btn0000": +{ + "frame": {"x":108,"y":1075,"w":45,"h":52}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":45,"h":52}, + "sourceSize": {"w":45,"h":52} +}, +"select_level0000": +{ + "frame": {"x":208,"y":1012,"w":94,"h":70}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":94,"h":70}, + "sourceSize": {"w":94,"h":70} +}, +"shop_btn0000": +{ + "frame": {"x":460,"y":1060,"w":78,"h":57}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":78,"h":57}, + "sourceSize": {"w":78,"h":57} +}, +"space_key0000": +{ + "frame": {"x":370,"y":922,"w":143,"h":40}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":143,"h":40}, + "sourceSize": {"w":143,"h":40} +}, +"space_key0001": +{ + "frame": {"x":515,"y":922,"w":143,"h":40}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":143,"h":40}, + "sourceSize": {"w":143,"h":40} +}, +"star00000": +{ + "frame": {"x":699,"y":975,"w":137,"h":138}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":137,"h":138}, + "sourceSize": {"w":137,"h":138} +}, +"star10000": +{ + "frame": {"x":879,"y":183,"w":131,"h":132}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":131,"h":132}, + "sourceSize": {"w":131,"h":132} +}, +"timer_bg0000": +{ + "frame": {"x":724,"y":422,"w":168,"h":48}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":168,"h":48}, + "sourceSize": {"w":168,"h":48} +}, +"top_bg0000": +{ + "frame": {"x":2,"y":1012,"w":204,"h":61}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":204,"h":61}, + "sourceSize": {"w":204,"h":61} +}, +"w_star0000": +{ + "frame": {"x":210,"y":1084,"w":40,"h":44}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":40,"h":44}, + "sourceSize": {"w":40,"h":44} +}}, +"meta": { + "app": "Adobe Flash Professional", + "version": "15.0.1.179", + "image": "garage.png", + "format": "RGBA8888", + "size": {"w":1024,"h":2048}, + "scale": "1" +} +} diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/garage.png b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/garage.png new file mode 100644 index 000000000..7e20d0c71 Binary files /dev/null and b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/garage.png differ diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/theme0.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/theme0.json new file mode 100644 index 000000000..bc729059c --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/theme0.json @@ -0,0 +1,1555 @@ +{"frames": { + +"Ball98E0000": +{ + "frame": {"x":308,"y":1422,"w":98,"h":98}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":98,"h":98}, + "sourceSize": {"w":98,"h":98} +}, +"BarrelE0000": +{ + "frame": {"x":966,"y":1459,"w":54,"h":54}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":54,"h":54}, + "sourceSize": {"w":54,"h":54} +}, +"Bg0_00000": +{ + "frame": {"x":2,"y":516,"w":427,"h":160}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":427,"h":160}, + "sourceSize": {"w":427,"h":160} +}, +"Bg2_00000": +{ + "frame": {"x":1598,"y":1224,"w":360,"h":105}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":360,"h":105}, + "sourceSize": {"w":360,"h":105} +}, +"CarExplode0000": +{ + "frame": {"x":1808,"y":447,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0001": +{ + "frame": {"x":689,"y":516,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0002": +{ + "frame": {"x":917,"y":516,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0003": +{ + "frame": {"x":1145,"y":516,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0004": +{ + "frame": {"x":2,"y":678,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0005": +{ + "frame": {"x":1808,"y":706,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0006": +{ + "frame": {"x":1373,"y":710,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0007": +{ + "frame": {"x":230,"y":774,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0008": +{ + "frame": {"x":458,"y":774,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0009": +{ + "frame": {"x":686,"y":775,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0010": +{ + "frame": {"x":914,"y":775,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0011": +{ + "frame": {"x":1142,"y":775,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0012": +{ + "frame": {"x":1142,"y":775,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0013": +{ + "frame": {"x":2,"y":937,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0014": +{ + "frame": {"x":2,"y":937,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0015": +{ + "frame": {"x":1601,"y":965,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0016": +{ + "frame": {"x":1601,"y":965,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0017": +{ + "frame": {"x":1370,"y":969,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0018": +{ + "frame": {"x":1370,"y":969,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0019": +{ + "frame": {"x":230,"y":1033,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0020": +{ + "frame": {"x":230,"y":1033,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0021": +{ + "frame": {"x":458,"y":1033,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0022": +{ + "frame": {"x":458,"y":1033,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0023": +{ + "frame": {"x":686,"y":1034,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0024": +{ + "frame": {"x":686,"y":1034,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0025": +{ + "frame": {"x":914,"y":1034,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"CarExplode0026": +{ + "frame": {"x":914,"y":1034,"w":226,"h":257}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":226,"h":257}, + "sourceSize": {"w":226,"h":257} +}, +"Dec130000": +{ + "frame": {"x":2,"y":1196,"w":172,"h":214}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":172,"h":214}, + "sourceSize": {"w":172,"h":214} +}, +"Dec140000": +{ + "frame": {"x":1829,"y":965,"w":167,"h":246}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":167,"h":246}, + "sourceSize": {"w":167,"h":246} +}, +"Dec150000": +{ + "frame": {"x":1824,"y":168,"w":198,"h":236}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":198,"h":236}, + "sourceSize": {"w":198,"h":236} +}, +"Dec160000": +{ + "frame": {"x":1601,"y":710,"w":177,"h":243}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":177,"h":243}, + "sourceSize": {"w":177,"h":243} +}, +"Dec360000": +{ + "frame": {"x":1998,"y":965,"w":42,"h":245}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":42,"h":245}, + "sourceSize": {"w":42,"h":245} +}, +"Dec370000": +{ + "frame": {"x":1343,"y":1228,"w":101,"h":283}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":101,"h":283}, + "sourceSize": {"w":101,"h":283} +}, +"Dec380000": +{ + "frame": {"x":1584,"y":1497,"w":32,"h":25}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":32,"h":25}, + "sourceSize": {"w":32,"h":25} +}, +"Dec400000": +{ + "frame": {"x":818,"y":1459,"w":86,"h":60}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":86,"h":60}, + "sourceSize": {"w":86,"h":60} +}, +"Dec410000": +{ + "frame": {"x":1446,"y":1228,"w":71,"h":303}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":71,"h":303}, + "sourceSize": {"w":71,"h":303} +}, +"Dec420000": +{ + "frame": {"x":1960,"y":1213,"w":71,"h":304}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":71,"h":304}, + "sourceSize": {"w":71,"h":304} +}, +"Dec500000": +{ + "frame": {"x":1620,"y":1331,"w":99,"h":164}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":99,"h":164}, + "sourceSize": {"w":99,"h":164} +}, +"Dec510000": +{ + "frame": {"x":1275,"y":1233,"w":59,"h":164}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":59,"h":164}, + "sourceSize": {"w":59,"h":164} +}, +"Dec520000": +{ + "frame": {"x":566,"y":1292,"w":99,"h":164}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":99,"h":164}, + "sourceSize": {"w":99,"h":164} +}, +"Dec530000": +{ + "frame": {"x":667,"y":1293,"w":99,"h":164}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":99,"h":164}, + "sourceSize": {"w":99,"h":164} +}, +"Dec540000": +{ + "frame": {"x":1373,"y":516,"w":115,"h":164}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":115,"h":164}, + "sourceSize": {"w":115,"h":164} +}, +"Dec550000": +{ + "frame": {"x":768,"y":1293,"w":99,"h":164}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":99,"h":164}, + "sourceSize": {"w":99,"h":164} +}, +"Dec560000": +{ + "frame": {"x":869,"y":1293,"w":99,"h":164}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":99,"h":164}, + "sourceSize": {"w":99,"h":164} +}, +"Dec570000": +{ + "frame": {"x":1721,"y":1331,"w":94,"h":164}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":94,"h":164}, + "sourceSize": {"w":94,"h":164} +}, +"Dec580000": +{ + "frame": {"x":970,"y":1293,"w":99,"h":164}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":99,"h":164}, + "sourceSize": {"w":99,"h":164} +}, +"Dec590000": +{ + "frame": {"x":1519,"y":1331,"w":99,"h":164}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":99,"h":164}, + "sourceSize": {"w":99,"h":164} +}, +"Dec600000": +{ + "frame": {"x":1544,"y":2,"w":500,"h":164}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":500,"h":164}, + "sourceSize": {"w":500,"h":164} +}, +"GeyserBase0000": +{ + "frame": {"x":1490,"y":516,"w":25,"h":128}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":25,"h":128}, + "sourceSize": {"w":25,"h":128} +}, +"GlassCrashed00000": +{ + "frame": {"x":1373,"y":682,"w":136,"h":22}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":136,"h":22}, + "sourceSize": {"w":136,"h":22} +}, +"GlassCrashed0_00000": +{ + "frame": {"x":1601,"y":955,"w":40,"h":6}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":40,"h":6}, + "sourceSize": {"w":40,"h":6} +}, +"GlassCrashed0_10000": +{ + "frame": {"x":1519,"y":1497,"w":63,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":63,"h":14}, + "sourceSize": {"w":63,"h":14} +}, +"GlassCrashed0_20000": +{ + "frame": {"x":1618,"y":1497,"w":56,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":56,"h":14}, + "sourceSize": {"w":56,"h":14} +}, +"GlassCrashed0_30000": +{ + "frame": {"x":1178,"y":1502,"w":34,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":34,"h":14}, + "sourceSize": {"w":34,"h":14} +}, +"GlassCrashed0_40000": +{ + "frame": {"x":176,"y":1280,"w":36,"h":10}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":36,"h":10}, + "sourceSize": {"w":36,"h":10} +}, +"GlassCrashed0_50000": +{ + "frame": {"x":1676,"y":1497,"w":78,"h":10}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":78,"h":10}, + "sourceSize": {"w":78,"h":10} +}, +"GlassCrashed10000": +{ + "frame": {"x":1883,"y":1483,"w":70,"h":22}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":70,"h":22}, + "sourceSize": {"w":70,"h":22} +}, +"Motor00000": +{ + "frame": {"x":176,"y":1196,"w":48,"h":48}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":48,"h":48}, + "sourceSize": {"w":48,"h":48} +}, +"Motor10000": +{ + "frame": {"x":176,"y":1246,"w":32,"h":32}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":32,"h":32}, + "sourceSize": {"w":32,"h":32} +}, +"Pivot00000": +{ + "frame": {"x":411,"y":712,"w":16,"h":16}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":16,"h":16}, + "sourceSize": {"w":16,"h":16} +}, +"Plank00000": +{ + "frame": {"x":1519,"y":1305,"w":74,"h":21}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":74,"h":21}, + "sourceSize": {"w":74,"h":21} +}, +"PlankWipe00000": +{ + "frame": {"x":408,"y":1488,"w":86,"h":18}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":86,"h":18}, + "sourceSize": {"w":86,"h":18} +}, +"Removed00000": +{ + "frame": {"x":2024,"y":256,"w":18,"h":75}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":18,"h":75}, + "sourceSize": {"w":18,"h":75} +}, +"Removed10000": +{ + "frame": {"x":1524,"y":630,"w":18,"h":51}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":18,"h":51}, + "sourceSize": {"w":18,"h":51} +}, +"RemovedBlue0000": +{ + "frame": {"x":2024,"y":168,"w":18,"h":86}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":18,"h":86}, + "sourceSize": {"w":18,"h":86} +}, +"RoadLine0_40000": +{ + "frame": {"x":1490,"y":646,"w":32,"h":32}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":32,"h":32}, + "sourceSize": {"w":32,"h":32} +}, +"RoadLine0_80000": +{ + "frame": {"x":1780,"y":950,"w":20,"h":7}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":20,"h":7}, + "sourceSize": {"w":20,"h":7} +}, +"RoadLine0_Bg0000": +{ + "frame": {"x":1923,"y":1331,"w":30,"h":64}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":30,"h":64}, + "sourceSize": {"w":30,"h":64} +}, +"RoadPillar0_00000": +{ + "frame": {"x":1178,"y":1488,"w":128,"h":12}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":12}, + "sourceSize": {"w":128,"h":12} +}, +"RoadTile0_10000": +{ + "frame": {"x":176,"y":1292,"w":128,"h":128}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, + "sourceSize": {"w":128,"h":128} +}, +"SafePointAnim0000": +{ + "frame": {"x":334,"y":678,"w":75,"h":75}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":75,"h":75}, + "sourceSize": {"w":75,"h":75} +}, +"SafePointAnim0001": +{ + "frame": {"x":1519,"y":1228,"w":75,"h":75}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":75,"h":75}, + "sourceSize": {"w":75,"h":75} +}, +"Sign10000": +{ + "frame": {"x":538,"y":1458,"w":74,"h":74}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":74,"h":74}, + "sourceSize": {"w":74,"h":74} +}, +"Sign150000": +{ + "frame": {"x":1824,"y":406,"w":112,"h":36}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":112,"h":36}, + "sourceSize": {"w":112,"h":36} +}, +"Sign20000": +{ + "frame": {"x":744,"y":1459,"w":72,"h":72}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":72,"h":72}, + "sourceSize": {"w":72,"h":72} +}, +"Sign210000": +{ + "frame": {"x":230,"y":678,"w":102,"h":91}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":102,"h":91}, + "sourceSize": {"w":102,"h":91} +}, +"SignPillar0000": +{ + "frame": {"x":2036,"y":447,"w":10,"h":130}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":10,"h":130}, + "sourceSize": {"w":10,"h":130} +}, +"SphereE0000": +{ + "frame": {"x":1544,"y":168,"w":278,"h":277}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":278,"h":277}, + "sourceSize": {"w":278,"h":277} +}, +"SpikeBall137E0000": +{ + "frame": {"x":1142,"y":1034,"w":199,"h":197}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":199,"h":197}, + "sourceSize": {"w":199,"h":197} +}, +"SpikeBall200E0000": +{ + "frame": {"x":1544,"y":447,"w":262,"h":261}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":262,"h":261}, + "sourceSize": {"w":262,"h":261} +}, +"SpikeBall52E0000": +{ + "frame": {"x":1817,"y":1331,"w":104,"h":104}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":104,"h":104}, + "sourceSize": {"w":104,"h":104} +}, +"Tnt10000": +{ + "frame": {"x":906,"y":1459,"w":58,"h":58}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":58,"h":58}, + "sourceSize": {"w":58,"h":58} +}, +"UnLine00000": +{ + "frame": {"x":1817,"y":1483,"w":64,"h":32}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":64,"h":32}, + "sourceSize": {"w":64,"h":32} +}, +"bg0000": +{ + "frame": {"x":1531,"y":516,"w":11,"h":11}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":11,"h":11}, + "sourceSize": {"w":11,"h":11} +}, +"boost_anim0000": +{ + "frame": {"x":1071,"y":1363,"w":100,"h":101}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":100,"h":101}, + "sourceSize": {"w":100,"h":101} +}, +"boost_anim0001": +{ + "frame": {"x":1071,"y":1363,"w":100,"h":101}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":100,"h":101}, + "sourceSize": {"w":100,"h":101} +}, +"boost_anim0002": +{ + "frame": {"x":1173,"y":1363,"w":100,"h":101}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":100,"h":101}, + "sourceSize": {"w":100,"h":101} +}, +"boost_anim0003": +{ + "frame": {"x":1173,"y":1363,"w":100,"h":101}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":100,"h":101}, + "sourceSize": {"w":100,"h":101} +}, +"boost_anim0004": +{ + "frame": {"x":2,"y":1412,"w":100,"h":101}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":100,"h":101}, + "sourceSize": {"w":100,"h":101} +}, +"boost_anim0005": +{ + "frame": {"x":2,"y":1412,"w":100,"h":101}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":100,"h":101}, + "sourceSize": {"w":100,"h":101} +}, +"boost_anim0006": +{ + "frame": {"x":104,"y":1422,"w":100,"h":101}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":100,"h":101}, + "sourceSize": {"w":100,"h":101} +}, +"boost_anim0007": +{ + "frame": {"x":104,"y":1422,"w":100,"h":101}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":100,"h":101}, + "sourceSize": {"w":100,"h":101} +}, +"boost_anim0008": +{ + "frame": {"x":206,"y":1422,"w":100,"h":101}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":100,"h":101}, + "sourceSize": {"w":100,"h":101} +}, +"boost_anim0009": +{ + "frame": {"x":206,"y":1422,"w":100,"h":101}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":100,"h":101}, + "sourceSize": {"w":100,"h":101} +}, +"finish0000": +{ + "frame": {"x":1275,"y":1399,"w":64,"h":64}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":64,"h":64}, + "sourceSize": {"w":64,"h":64} +}, +"geyser_anim0000": +{ + "frame": {"x":2024,"y":333,"w":12,"h":112}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":12,"h":112}, + "sourceSize": {"w":12,"h":112} +}, +"geyser_anim0001": +{ + "frame": {"x":2024,"y":333,"w":12,"h":112}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":12,"h":112}, + "sourceSize": {"w":12,"h":112} +}, +"geyser_anim0002": +{ + "frame": {"x":1517,"y":516,"w":12,"h":112}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":12,"h":112}, + "sourceSize": {"w":12,"h":112} +}, +"geyser_anim0003": +{ + "frame": {"x":1517,"y":516,"w":12,"h":112}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":12,"h":112}, + "sourceSize": {"w":12,"h":112} +}, +"geyser_anim0004": +{ + "frame": {"x":1780,"y":710,"w":12,"h":112}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":12,"h":112}, + "sourceSize": {"w":12,"h":112} +}, +"geyser_anim0005": +{ + "frame": {"x":1780,"y":710,"w":12,"h":112}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":12,"h":112}, + "sourceSize": {"w":12,"h":112} +}, +"glass_explode_anim0000": +{ + "frame": {"x":1938,"y":406,"w":76,"h":38}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":76,"h":38}, + "sourceSize": {"w":76,"h":38} +}, +"glass_explode_anim0001": +{ + "frame": {"x":1938,"y":406,"w":76,"h":38}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":76,"h":38}, + "sourceSize": {"w":76,"h":38} +}, +"glass_explode_anim0002": +{ + "frame": {"x":1022,"y":1466,"w":76,"h":38}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":76,"h":38}, + "sourceSize": {"w":76,"h":38} +}, +"glass_explode_anim0003": +{ + "frame": {"x":1022,"y":1466,"w":76,"h":38}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":76,"h":38}, + "sourceSize": {"w":76,"h":38} +}, +"glass_explode_anim0004": +{ + "frame": {"x":1100,"y":1466,"w":76,"h":38}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":76,"h":38}, + "sourceSize": {"w":76,"h":38} +}, +"glass_explode_anim0005": +{ + "frame": {"x":1100,"y":1466,"w":76,"h":38}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":76,"h":38}, + "sourceSize": {"w":76,"h":38} +}, +"ground_part_anim0000": +{ + "frame": {"x":210,"y":1246,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0001": +{ + "frame": {"x":210,"y":1246,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0002": +{ + "frame": {"x":210,"y":1262,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0003": +{ + "frame": {"x":210,"y":1262,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0004": +{ + "frame": {"x":538,"y":1422,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0005": +{ + "frame": {"x":538,"y":1422,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0006": +{ + "frame": {"x":538,"y":1438,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0007": +{ + "frame": {"x":538,"y":1438,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0008": +{ + "frame": {"x":1790,"y":1497,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0009": +{ + "frame": {"x":1790,"y":1497,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0010": +{ + "frame": {"x":1214,"y":1502,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0011": +{ + "frame": {"x":1214,"y":1502,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0012": +{ + "frame": {"x":1230,"y":1502,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0013": +{ + "frame": {"x":1230,"y":1502,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0014": +{ + "frame": {"x":1246,"y":1502,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0015": +{ + "frame": {"x":1246,"y":1502,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0016": +{ + "frame": {"x":1262,"y":1502,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0017": +{ + "frame": {"x":1262,"y":1502,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0018": +{ + "frame": {"x":1278,"y":1502,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0019": +{ + "frame": {"x":1278,"y":1502,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0020": +{ + "frame": {"x":614,"y":1503,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0021": +{ + "frame": {"x":614,"y":1503,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0022": +{ + "frame": {"x":630,"y":1503,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0023": +{ + "frame": {"x":630,"y":1503,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0024": +{ + "frame": {"x":646,"y":1503,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"ground_part_anim0025": +{ + "frame": {"x":646,"y":1503,"w":14,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":14,"h":14}, + "sourceSize": {"w":14,"h":14} +}, +"hell_rider_head0000": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0001": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0002": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0003": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0004": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0005": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0006": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0007": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0008": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0009": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0010": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0011": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0012": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0013": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0014": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0015": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0016": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0017": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0018": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"hell_rider_head0019": +{ + "frame": {"x":1071,"y":1293,"w":68,"h":68}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":68,"h":68}, + "sourceSize": {"w":68,"h":68} +}, +"line0000": +{ + "frame": {"x":1308,"y":1465,"w":30,"h":64}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":30,"h":64}, + "sourceSize": {"w":30,"h":64} +}, +"line_alum0000": +{ + "frame": {"x":334,"y":755,"w":64,"h":14}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":64,"h":14}, + "sourceSize": {"w":64,"h":14} +}, +"line_metal_g0000": +{ + "frame": {"x":614,"y":1459,"w":128,"h":42}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":42}, + "sourceSize": {"w":128,"h":42} +}, +"line_red_pool0000": +{ + "frame": {"x":411,"y":748,"w":16,"h":16}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":16,"h":16}, + "sourceSize": {"w":16,"h":16} +}, +"line_shape_bg0000": +{ + "frame": {"x":1343,"y":1202,"w":16,"h":16}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":16,"h":16}, + "sourceSize": {"w":16,"h":16} +}, +"line_spike0000": +{ + "frame": {"x":408,"y":1422,"w":128,"h":64}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":64}, + "sourceSize": {"w":128,"h":64} +}, +"line_stone_shape0000": +{ + "frame": {"x":411,"y":730,"w":16,"h":16}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":16,"h":16}, + "sourceSize": {"w":16,"h":16} +}, +"line_tube_blick0000": +{ + "frame": {"x":411,"y":678,"w":16,"h":32}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":16,"h":32}, + "sourceSize": {"w":16,"h":32} +}, +"line_tube_bot0000": +{ + "frame": {"x":1923,"y":1397,"w":32,"h":32}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":32,"h":32}, + "sourceSize": {"w":32,"h":32} +}, +"line_tube_top0000": +{ + "frame": {"x":496,"y":1488,"w":32,"h":32}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":32,"h":32}, + "sourceSize": {"w":32,"h":32} +}, +"line_wood0000": +{ + "frame": {"x":1178,"y":1466,"w":128,"h":20}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":20}, + "sourceSize": {"w":128,"h":20} +}, +"line_wood_g0000": +{ + "frame": {"x":1817,"y":1437,"w":128,"h":44}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":44}, + "sourceSize": {"w":128,"h":44} +}, +"line_wood_pather_pool0000": +{ + "frame": {"x":1756,"y":1497,"w":32,"h":16}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":32,"h":16}, + "sourceSize": {"w":32,"h":16} +}, +"particle_boost0000": +{ + "frame": {"x":1829,"y":1213,"w":69,"h":9}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":69,"h":9}, + "sourceSize": {"w":69,"h":9} +}, +"smoke_part_anim0000": +{ + "frame": {"x":1511,"y":683,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"smoke_part_anim0001": +{ + "frame": {"x":1780,"y":824,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"smoke_part_anim0002": +{ + "frame": {"x":1780,"y":845,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"smoke_part_anim0003": +{ + "frame": {"x":1780,"y":866,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"smoke_part_anim0004": +{ + "frame": {"x":1780,"y":887,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"smoke_part_anim0005": +{ + "frame": {"x":1780,"y":908,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"smoke_part_anim0006": +{ + "frame": {"x":1780,"y":929,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"smoke_part_anim0007": +{ + "frame": {"x":1343,"y":1034,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"smoke_part_anim0008": +{ + "frame": {"x":1343,"y":1055,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"smoke_part_anim0009": +{ + "frame": {"x":1343,"y":1076,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"smoke_part_anim0010": +{ + "frame": {"x":1343,"y":1097,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"smoke_part_anim0011": +{ + "frame": {"x":1343,"y":1118,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"smoke_part_anim0012": +{ + "frame": {"x":1343,"y":1139,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"smoke_part_anim0013": +{ + "frame": {"x":1343,"y":1160,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"smoke_part_anim0014": +{ + "frame": {"x":1343,"y":1181,"w":19,"h":19}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":19,"h":19}, + "sourceSize": {"w":19,"h":19} +}, +"tile0000": +{ + "frame": {"x":2,"y":2,"w":512,"h":512}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":512,"h":512}, + "sourceSize": {"w":512,"h":512} +}, +"tile_bg0000": +{ + "frame": {"x":516,"y":2,"w":512,"h":512}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":512,"h":512}, + "sourceSize": {"w":512,"h":512} +}, +"tile_red_pool0000": +{ + "frame": {"x":1142,"y":1233,"w":128,"h":128}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, + "sourceSize": {"w":128,"h":128} +}, +"tile_saw0000": +{ + "frame": {"x":431,"y":516,"w":256,"h":256}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":256,"h":256}, + "sourceSize": {"w":256,"h":256} +}, +"tile_shape_bg0000": +{ + "frame": {"x":436,"y":1292,"w":128,"h":128}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, + "sourceSize": {"w":128,"h":128} +}, +"tile_stone0000": +{ + "frame": {"x":306,"y":1292,"w":128,"h":128}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, + "sourceSize": {"w":128,"h":128} +}, +"tile_water_bg0000": +{ + "frame": {"x":1030,"y":2,"w":512,"h":512}, + "rotated": false, + "trimmed": false, + "spriteSourceSize": {"x":0,"y":0,"w":512,"h":512}, + "sourceSize": {"w":512,"h":512} +}}, +"meta": { + "app": "Adobe Flash Professional", + "version": "15.0.1.179", + "image": "theme0.png", + "format": "RGBA8888", + "size": {"w":2048,"h":2048}, + "scale": "1" +} +} diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/theme0.png b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/theme0.png new file mode 100644 index 000000000..dc465236c Binary files /dev/null and b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/atlases/x1/theme0.png differ diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/css/AllerDisplay.css b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/css/AllerDisplay.css new file mode 100644 index 000000000..6415b142c --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/css/AllerDisplay.css @@ -0,0 +1,9 @@ +@font-face { + font-family:"Aller Display"; + src: url("../fonts/AllerDisplay/AllerDisplay.eot?") format("eot"), + url("../fonts/AllerDisplay/AllerDisplay.woff") format("woff"), + url("../fonts/AllerDisplay/AllerDisplay.ttf") format("truetype"), + url("../fonts/AllerDisplay/AllerDisplay.svg#AllerDisplay") format("svg"); + font-weight:normal; + font-style:normal; +} diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/css/CfCrackBold.css b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/css/CfCrackBold.css new file mode 100644 index 000000000..6f93fb14b --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/css/CfCrackBold.css @@ -0,0 +1,9 @@ +@font-face { + font-family:"CfCrackBold"; + src: url("../fonts/CfCrackBold/cfcrackandbold.eot?") format("eot"), + url("../fonts/CfCrackBold/cfcrackandbold.woff") format("woff"), + url("../fonts/CfCrackBold/cfcrackandbold.ttf") format("truetype"), + url("../fonts/CfCrackBold/cfcrackandbold.svg#cfcrackandbold") format("svg"); + font-weight:normal; + font-style:normal; +} diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/css/app.css b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/css/app.css new file mode 100644 index 000000000..9fa2f42e8 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/css/app.css @@ -0,0 +1,84 @@ +/*Stylesheet*/ +body, html { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + -webkit-touch-callout: none; + -webkit-text-size-adjust: none; + -webkit-user-select: none; + margin: 0; + padding: 0; + font-family: Arial, Verdana, sans-serif; + font-size: 12px; + font-weight: normal; + color: #ccc; + background-color: #000000; + overflow: hidden; +} +#orientation { + margin: 0 auto; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-image: url(../images/rotate.png); + background-repeat: no-repeat; + background-position: center; + background-color: rgb(0, 0, 0); + background-size: 25%; + z-index: 999; + display: none; +} +#loader { + width: 100%; + height: 50px; + position: absolute; + text-align: center; + margin-top: 250px; + display: block; +} +#loader, +#loader:after { + border-radius: 50%; + width: 10em; + height: 10em; +} +#loader { + margin: 60px auto; + font-size: 10px; + position: absolute; + z-index: 99; + left: 50%; + top: 50%; + margin-left: -5em; + margin-top: -5em; + text-indent: -9999em; + border-top: 1.1em solid rgba(255, 255, 255, 0.2); + border-right: 1.1em solid rgba(255, 255, 255, 0.2); + border-bottom: 1.1em solid rgba(255, 255, 255, 0.2); + border-left: 1.1em solid #ffffff; + -webkit-transform: translateZ(0); + -ms-transform: translateZ(0); + transform: translateZ(0); + -webkit-animation: load8 1.1s infinite linear; + animation: load8 1.1s infinite linear; +} +@-webkit-keyframes load8 { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes load8 { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/css/impact.css b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/css/impact.css new file mode 100644 index 000000000..afaa57b1f --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/css/impact.css @@ -0,0 +1,9 @@ +@font-face { + font-family:"Impact"; + src: url("../fonts/Impact/impact.eot?") format("eot"), + url("../fonts/Impact/impact.woff") format("woff"), + url("../fonts/Impact/impact.ttf") format("truetype"), + url("../fonts/Impact/impact.svg#impact") format("svg"); + font-weight:normal; + font-style:normal; +} diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/fonts/AllerDisplay/AllerDisplay.woff b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/fonts/AllerDisplay/AllerDisplay.woff new file mode 100644 index 000000000..0f3666a81 Binary files /dev/null and b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/fonts/AllerDisplay/AllerDisplay.woff differ diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/fonts/CfCrackBold/cfcrackandbold.woff b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/fonts/CfCrackBold/cfcrackandbold.woff new file mode 100644 index 000000000..edf5ce2bf Binary files /dev/null and b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/fonts/CfCrackBold/cfcrackandbold.woff differ diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/fonts/Impact/impact.woff b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/fonts/Impact/impact.woff new file mode 100644 index 000000000..604daf871 Binary files /dev/null and b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/fonts/Impact/impact.woff differ diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/images/x1/bikes_texture.png b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/images/x1/bikes_texture.png new file mode 100644 index 000000000..6c0c842ff Binary files /dev/null and b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/images/x1/bikes_texture.png differ diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/images/x1/menu_texture.png b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/images/x1/menu_texture.png new file mode 100644 index 000000000..81a782cad Binary files /dev/null and b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/images/x1/menu_texture.png differ diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/1.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/1.json new file mode 100644 index 000000000..5fcd854f7 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/1.json @@ -0,0 +1 @@ +{"maxSpeed":700,"maxTorque":600000,"torque":400000,"handlingPct":0,"bodyDensity":1,"weapon":0,"boostValue":0,"bodyMassType":1,"health":0,"wheelFrictionPct":0,"bodyW":96,"wheelRadiusValue":0,"bodyH":24,"engineCount":3,"handlingCount":3,"boostCount":3,"wheelBackDensity":1,"wheelBackFriction":6,"wheelFrontDensity":3,"wheelFrontFriction":5,"wheelsCount":3,"baseHealth":2700,"healthCount":3,"healthValue":900,"wheelBackR":19,"wheelFrontR":19,"wheelBackDx":34,"wheelFrontDx":45,"axisBackY":13,"driverDensity":1,"axisFrontY":13,"wd":0,"axisBackLen":14,"driverW":32,"flipTorque":200000,"axisFrontLen":14,"driverH":32,"maxFlipSpeed":0.2,"damperBackY":12,"boostForce":0,"damperFrontY":12,"damperBackLen":12,"damperFrontLen":12,"driverDy":-16,"skinId":1,"damperBackFreq":5,"maxSpeedPct":2,"damperFrontFreq":5,"torquePct":5,"damperBackDamp":0,"damperFrontDamp":0,"driverDx":45,"axisBackAngle":1.5707963267948966,"axisFrontAngle":1.0995574287564276,"wheels":0} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/bike.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/bike.json new file mode 100644 index 000000000..d5bad56bb --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/bike.json @@ -0,0 +1 @@ +{"forearm_joint":{"y":-35.15,"x":0.85},"driver_hip":{"r":0.5235966450694268,"h":9.1,"x":-7.4,"y":-18.5,"w":13.1},"firepoint":{"r":0,"x":-29.8,"y":-8.65},"driver_shin":{"r":0.05238118284855052,"h":31.2,"x":-1.8,"y":-2.7,"w":9.1},"hip_joint":{"y":-15,"x":-3},"arm_joint":{"y":-43.65,"x":-7.75},"shin_joint":{"y":10,"x":-1},"top":[],"corpse_joint":{"y":-23.2,"x":-11},"steer_joint":{"y":-30.5,"x":16.05},"driver_arm":{"r":0.785390440230287,"h":10.1,"x":-4.25,"y":-39.4,"w":16.1},"suspend_back":{"y":12,"x":-6},"driver_corpse":{"r":0.274591615779236,"h":30.2,"x":-8.35,"y":-33.75,"w":14.1},"suspend_front":{},"driver_forearm":{"r":0.19200219668591673,"h":6,"x":8.8,"y":-33.35,"w":19.1},"driver_head":{"r":0.2617948604252963,"h":23.1,"x":-1.8,"y":-59.5,"w":25.2},"suspend_back_w":28.1,"points":[{"y":6.75,"x":-12.45},{"y":-17,"x":-40.1},{"y":-28.5,"x":23.5},{"y":8.85,"x":15.8}],"rect":{"height":133.2,"x":-69,"y":-95,"width":155.2,"top":-95,"size":{"x":155.2,"y":133.2,"length":204.52207704793142},"topLeft":{"x":-69,"y":-95,"length":117.41379816699569},"bottom":38.19999999999999,"bottomRight":{"x":86.19999999999999,"y":38.19999999999999,"length":94.28509956509563},"right":86.19999999999999,"left":-69},"head_joint":{"y":-48.5,"x":-5.6}} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/bikes_skeleton.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/bikes_skeleton.json new file mode 100644 index 000000000..6e4ae67b3 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/bikes_skeleton.json @@ -0,0 +1 @@ +{"frameRate":24,"name":"bikes","version":"5.5","compatibleVersion":"5.5","armature":[{"name":"biker0_anim_btn","bone":[{"inheritScale":false,"name":"wheel back","transform":{"x":-42.9,"y":-17.95}},{"inheritScale":false,"name":"wheel front","transform":{"x":40.2,"y":-17.95}},{"inheritScale":false,"name":"suspend_back","transform":{"x":-15.8,"y":-28.05,"skX":161.71,"skY":161.71}},{"inheritScale":false,"name":"base","transform":{"x":-9.8,"y":-40.05}},{"inheritScale":false,"name":"suspend_front","transform":{"x":40.15,"y":-17.5,"skX":63,"skY":63}},{"inheritScale":false,"name":"driver_corpse","transform":{"x":-18.2,"y":-73.8,"skX":15.73,"skY":15.73}},{"inheritScale":false,"name":"driver_hip","transform":{"x":-17.15,"y":-58.55,"skX":30,"skY":30}},{"inheritScale":false,"name":"driver_shin","transform":{"x":-11.6,"y":-42.8,"skX":3,"skY":3}},{"inheritScale":false,"name":"driver_arm","transform":{"x":-14.15,"y":-79.65,"skX":45,"skY":45}},{"inheritScale":false,"name":"driver_forearm","transform":{"x":-1.1,"y":-73.5,"skX":11,"skY":11}},{"inheritScale":false,"name":"driver_head","transform":{"x":-11.6,"y":-99.55,"skX":15,"skY":15}},{"inheritScale":false,"name":"fx","transform":{"x":-104.2,"y":-4.9,"scX":1.4022,"scY":1.4022}}],"slot":[{"name":"wheel back","parent":"wheel back"},{"name":"wheel front","parent":"wheel front"},{"name":"suspend_back","parent":"suspend_back"},{"name":"base","parent":"base"},{"name":"suspend_front","parent":"suspend_front"},{"name":"driver_corpse","parent":"driver_corpse"},{"name":"driver_hip","parent":"driver_hip"},{"name":"driver_shin","parent":"driver_shin"},{"name":"driver_arm","parent":"driver_arm"},{"name":"driver_forearm","parent":"driver_forearm"},{"name":"driver_head","parent":"driver_head"},{"name":"fx","parent":"fx"}],"skin":[{"slot":[{"name":"wheel back","display":[{"name":"wheel"}]},{"name":"wheel front","display":[{"name":"wheel"}]},{"name":"suspend_back","display":[{"name":"supend_back0","transform":{"x":13.55,"y":1.4}}]},{"name":"base","display":[{"name":"base","transform":{"x":4.1,"y":-7.55}}]},{"name":"suspend_front","display":[{"name":"suspend_front0","transform":{"x":-7.4,"y":1.45}}]},{"name":"driver_corpse","display":[{"name":"driver_corpse","transform":{"y":-0.95}}]},{"name":"driver_hip","display":[{"name":"drive_hip","transform":{"y":-0.45}}]},{"name":"driver_shin","display":[{"name":"driver_shin","transform":{"x":1.75}}]},{"name":"driver_arm","display":[{"name":"driver_arm","transform":{"x":1.15,"y":-0.3}}]},{"name":"driver_forearm","display":[{"name":"driver_forearm","transform":{"x":0.55,"y":0.75}}]},{"name":"driver_head","display":[{"name":"driver_head","transform":{"x":6.05,"y":0.1}}]},{"name":"fx","display":[{"name":"dust1","transform":{"x":-2.45}},{"name":"dust2","transform":{"x":-5.95,"y":-2}},{"name":"dust3","transform":{"x":-7.55,"y":-4}},{"name":"dust4","transform":{"x":-10.1,"y":-6.05}},{"name":"dust5","transform":{"x":-11.1,"y":-6.5}},{"name":"dust6","transform":{"x":-12.2,"y":-6.3}},{"name":"dust7","transform":{"x":-12.9,"y":-6.5}},{"name":"dust8","transform":{"x":-13.7,"y":-6.05}},{"name":"dust9","transform":{"x":-13.8,"y":-7.3}},{"name":"dust10","transform":{"x":-26.45,"y":-3.55}}]}]}],"animation":[{"duration":89,"playTimes":0,"fadeInTime":0.3,"name":"animation","bone":[{"name":"wheel back","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":33.1},{"duration":18,"tweenEasing":1,"x":-27},{"duration":11,"tweenEasing":-1,"x":66.05},{"duration":4,"tweenEasing":1,"x":49.1},{"duration":3,"tweenEasing":0,"x":49.1,"y":1},{"duration":19,"tweenEasing":1,"x":49.1},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0,"clockwise":2},{"duration":13,"tweenEasing":0,"clockwise":-2},{"duration":18,"tweenEasing":1,"clockwise":-4},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":7,"tweenEasing":1},{"duration":19,"tweenEasing":1,"clockwise":2},{"tweenEasing":0,"clockwise":2}],"scaleFrame":[{"duration":62,"tweenEasing":0},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"y":0.9435},{"duration":20}]},{"name":"wheel front","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":33.1},{"duration":18,"tweenEasing":1,"x":-27},{"duration":11,"tweenEasing":-1,"x":34.7,"y":-65},{"duration":4,"tweenEasing":1,"x":49.1},{"duration":3,"tweenEasing":0,"x":49.1,"y":1},{"duration":19,"tweenEasing":1,"x":49.1},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0,"clockwise":2},{"duration":13,"tweenEasing":0,"clockwise":-2},{"duration":18,"tweenEasing":1,"clockwise":-2},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":7,"tweenEasing":1},{"duration":19,"tweenEasing":1,"clockwise":2},{"tweenEasing":0}],"scaleFrame":[{"duration":62,"tweenEasing":0},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"y":0.9435},{"duration":20}]},{"name":"suspend_back","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":33.1},{"duration":18,"tweenEasing":1,"x":-27},{"duration":11,"tweenEasing":-1,"x":47.9,"y":-17.4},{"duration":4,"tweenEasing":1,"x":49.1},{"duration":3,"tweenEasing":0,"x":49.1,"y":1.5},{"duration":19,"tweenEasing":1,"x":49.1},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":-1.98},{"duration":18,"tweenEasing":1},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":27}],"scaleFrame":[{"duration":89}]},{"name":"base","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":34.1,"y":-1.75},{"duration":18,"tweenEasing":1,"x":-27},{"duration":11,"tweenEasing":-1,"x":36.25,"y":-17.6},{"duration":4,"tweenEasing":1,"x":49.1},{"duration":3,"tweenEasing":0,"x":50.15,"y":7.4},{"duration":19,"tweenEasing":1,"x":49.1},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":1.48},{"duration":18,"tweenEasing":1},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":1.98},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"suspend_front","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":33.5,"y":-0.45},{"duration":18,"tweenEasing":1,"x":-27},{"duration":11,"tweenEasing":-1,"x":35.05,"y":-65.1},{"duration":4,"tweenEasing":1,"x":49.1},{"duration":3,"tweenEasing":0,"x":46.85,"y":0.1},{"duration":19,"tweenEasing":1,"x":49.1},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":1.48},{"duration":18,"tweenEasing":1},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":1.98},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"driver_corpse","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":36.63,"y":-3.65},{"duration":18,"tweenEasing":1,"x":-27.36,"y":3.75},{"duration":11,"tweenEasing":-1,"x":12.99,"y":1.82},{"duration":4,"tweenEasing":1,"x":49.09,"y":0.05},{"duration":3,"tweenEasing":0,"x":50.3,"y":6.7},{"duration":19,"tweenEasing":1,"x":49.09,"y":0.05},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":5.18},{"duration":18,"tweenEasing":1,"rotate":-8.7},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":13.9},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"driver_hip","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":35.21,"y":-3.73},{"duration":18,"tweenEasing":1,"x":-26.99,"y":0.17},{"duration":11,"tweenEasing":-1,"x":24.52,"y":-4.79},{"duration":4,"tweenEasing":1,"x":49.17,"y":-0.02},{"duration":3,"tweenEasing":0,"x":50.83,"y":7.16},{"duration":19,"tweenEasing":1,"x":49.17,"y":-0.02},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":5.17},{"duration":18,"tweenEasing":1,"rotate":-15},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":1.98},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"driver_shin","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":34.15,"y":-1.8},{"duration":18,"tweenEasing":1,"x":-27},{"duration":11,"tweenEasing":-1,"x":34.75,"y":-15.17},{"duration":4,"tweenEasing":1,"x":49.1},{"duration":3,"tweenEasing":0,"x":50.3,"y":7.35},{"duration":19,"tweenEasing":1,"x":49.1},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":1.49},{"duration":18,"tweenEasing":1},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":1.98},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"driver_arm","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":37.19,"y":-3.23},{"duration":18,"tweenEasing":1,"x":-28.23,"y":3.14},{"duration":11,"tweenEasing":-1,"x":7,"y":0.74},{"duration":4,"tweenEasing":1,"x":49.17},{"duration":3,"tweenEasing":0,"x":51.58,"y":8.02},{"duration":19,"tweenEasing":1,"x":49.17},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":5.17},{"duration":18,"tweenEasing":1,"rotate":-8.71},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":13.9},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"driver_forearm","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":36.6,"y":-2.25},{"duration":18,"tweenEasing":1,"x":-27.55,"y":1.1},{"duration":11,"tweenEasing":-1,"x":6.78,"y":-11.71},{"duration":4,"tweenEasing":1,"x":49.11,"y":-0.05},{"duration":3,"tweenEasing":0,"x":51.2,"y":7.75},{"duration":19,"tweenEasing":1,"x":49.11,"y":-0.05},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":5.17},{"duration":18,"tweenEasing":1,"rotate":-8.7},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":-13.02},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"driver_head","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":38.95,"y":-3},{"duration":18,"tweenEasing":1,"x":-31.3,"y":3},{"duration":11,"tweenEasing":-1,"x":-9.6,"y":6.3},{"duration":4,"tweenEasing":1,"x":49.1},{"duration":3,"tweenEasing":0,"x":56.3,"y":9},{"duration":19,"tweenEasing":1,"x":49.1},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":5.17},{"duration":18,"tweenEasing":1,"rotate":-8.71},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":13.9},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"fx","translateFrame":[{"duration":33,"tweenEasing":0,"x":104.2,"y":4.9},{"tweenEasing":0},{"tweenEasing":0,"x":13.4,"y":0.3},{"tweenEasing":0,"x":24.65,"y":0.65},{"tweenEasing":0,"x":33.9,"y":0.9},{"tweenEasing":0,"x":43.2,"y":1.15},{"tweenEasing":0,"x":51.75,"y":1.35},{"tweenEasing":0,"x":57.7,"y":1.45},{"tweenEasing":0,"x":67.2,"y":1.5},{"tweenEasing":0,"x":76.85,"y":0.9},{"tweenEasing":0,"x":81.9,"y":1.15},{"tweenEasing":0,"x":90.4,"y":1.35},{"tweenEasing":0,"x":92.1,"y":1.45},{"tweenEasing":0,"x":97.3,"y":1.5},{"tweenEasing":0,"x":102.65,"y":0.9},{"tweenEasing":0,"x":103.35,"y":1.15},{"tweenEasing":0,"x":107.6,"y":1.35},{"tweenEasing":0,"x":109.25,"y":1.45},{"tweenEasing":0,"x":110.2,"y":1.5},{"tweenEasing":0,"x":111.25,"y":0.9},{"tweenEasing":0,"x":111.95,"y":1.15},{"tweenEasing":0,"x":107.6,"y":1.35},{"tweenEasing":0,"x":109.25,"y":1.45},{"tweenEasing":0,"x":110.2,"y":1.5},{"tweenEasing":0,"x":100.45,"y":1.6},{"x":110.05,"y":1.6},{"duration":31,"tweenEasing":0,"x":104.2,"y":4.9}],"scaleFrame":[{"duration":33,"tweenEasing":0,"x":0.7132,"y":0.7132},{"tweenEasing":0},{"tweenEasing":0,"x":0.9325,"y":0.9325},{"tweenEasing":0,"x":0.873,"y":0.873},{"tweenEasing":0,"x":0.8214,"y":0.8214},{"tweenEasing":0,"x":0.7778,"y":0.7778},{"tweenEasing":0,"x":0.742,"y":0.742},{"tweenEasing":0,"x":0.7143,"y":0.7143},{"tweenEasing":0,"x":0.6944,"y":0.6944},{"tweenEasing":0,"x":0.8214,"y":0.8214},{"tweenEasing":0,"x":0.7778,"y":0.7778},{"tweenEasing":0,"x":0.742,"y":0.742},{"tweenEasing":0,"x":0.7143,"y":0.7143},{"tweenEasing":0,"x":0.6944,"y":0.6944},{"tweenEasing":0,"x":0.8214,"y":0.8214},{"tweenEasing":0,"x":0.7778,"y":0.7778},{"tweenEasing":0,"x":0.742,"y":0.742},{"tweenEasing":0,"x":0.7143,"y":0.7143},{"tweenEasing":0,"x":0.6944,"y":0.6944},{"tweenEasing":0,"x":0.8214,"y":0.8214},{"tweenEasing":0,"x":0.7778,"y":0.7778},{"tweenEasing":0,"x":0.742,"y":0.742},{"tweenEasing":0,"x":0.7143,"y":0.7143},{"tweenEasing":0,"x":0.6944,"y":0.6944},{"tweenEasing":0,"x":0.6825,"y":0.6825},{"x":0.6786,"y":0.6786},{"duration":31,"tweenEasing":0,"x":0.7132,"y":0.7132}]}],"slot":[{"name":"fx","displayFrame":[{"duration":33,"value":-1},{},{"value":1},{"value":2},{"value":3},{"value":4},{"value":5},{"value":6},{"value":7},{"value":3},{"value":4},{"value":5},{"value":6},{"value":7},{"value":3},{"value":4},{"value":5},{"value":6},{"value":7},{"value":3},{"value":4},{"value":5},{"value":6},{"value":7},{"value":8},{"value":9},{"duration":31,"value":-1}]}]}]},{"name":"biker1_anim_btn","bone":[{"inheritScale":false,"name":"wheel back","transform":{"x":-42.9,"y":-17.95}},{"inheritScale":false,"name":"wheel front","transform":{"x":40.2,"y":-17.95}},{"inheritScale":false,"name":"suspend_front","transform":{"x":40.15,"y":-17.5,"skX":63,"skY":63}},{"inheritScale":false,"name":"suspend_back","transform":{"x":-15.8,"y":-28.05,"skX":161.71,"skY":161.71}},{"inheritScale":false,"name":"base","transform":{"x":-9.8,"y":-40.05}},{"inheritScale":false,"name":"driver_hip","transform":{"x":-17.15,"y":-58.55,"skX":30,"skY":30}},{"inheritScale":false,"name":"driver_corpse","transform":{"x":-18.2,"y":-73.8,"skX":15.73,"skY":15.73}},{"inheritScale":false,"name":"driver_shin","transform":{"x":-11.6,"y":-42.8,"skX":3,"skY":3}},{"inheritScale":false,"name":"driver_arm","transform":{"x":-14.15,"y":-79.65,"skX":45,"skY":45}},{"inheritScale":false,"name":"driver_forearm","transform":{"x":-1.1,"y":-73.5,"skX":11,"skY":11}},{"inheritScale":false,"name":"driver_head","transform":{"x":-11.6,"y":-99.55,"skX":15,"skY":15}},{"inheritScale":false,"name":"fx","transform":{"x":-104.2,"y":-4.9,"scX":1.4022,"scY":1.4022}}],"slot":[{"name":"wheel back","parent":"wheel back"},{"name":"wheel front","parent":"wheel front"},{"name":"suspend_front","parent":"suspend_front"},{"name":"suspend_back","parent":"suspend_back"},{"name":"base","parent":"base"},{"name":"driver_hip","parent":"driver_hip"},{"name":"driver_corpse","parent":"driver_corpse"},{"name":"driver_shin","parent":"driver_shin"},{"name":"driver_arm","parent":"driver_arm"},{"name":"driver_forearm","parent":"driver_forearm"},{"name":"driver_head","parent":"driver_head"},{"name":"fx","parent":"fx"}],"skin":[{"slot":[{"name":"wheel back","display":[{"name":"wheel1"}]},{"name":"wheel front","display":[{"name":"wheel1"}]},{"name":"suspend_front","display":[{"name":"suspend_front","transform":{"x":-14.35,"y":-1.4}}]},{"name":"suspend_back","display":[{"name":"supend_back1","transform":{"x":20.4,"y":-0.65}}]},{"name":"base","display":[{"name":"base1","transform":{"x":-2.15,"y":-5.3}}]},{"name":"driver_hip","display":[{"name":"drive_hip1","transform":{"x":0.1,"y":0.4}}]},{"name":"driver_corpse","display":[{"name":"driver_corpse1","transform":{"x":-0.05,"y":-0.1}}]},{"name":"driver_shin","display":[{"name":"driver_shin1","transform":{"x":3.25,"y":0.2}}]},{"name":"driver_arm","display":[{"name":"driver_arm1","transform":{"x":0.2,"y":0.35}}]},{"name":"driver_forearm","display":[{"name":"driver_forearm1","transform":{"x":0.5,"y":0.55}}]},{"name":"driver_head","display":[{"name":"driver_head1","transform":{"x":-1.25,"y":-2.2}}]},{"name":"fx","display":[{"name":"dust1","transform":{"x":-2.45}},{"name":"dust2","transform":{"x":-5.95,"y":-2}},{"name":"dust3","transform":{"x":-7.55,"y":-4}},{"name":"dust4","transform":{"x":-10.1,"y":-6.05}},{"name":"dust5","transform":{"x":-11.1,"y":-6.5}},{"name":"dust6","transform":{"x":-12.2,"y":-6.3}},{"name":"dust7","transform":{"x":-12.9,"y":-6.5}},{"name":"dust8","transform":{"x":-13.7,"y":-6.05}},{"name":"dust9","transform":{"x":-13.8,"y":-7.3}},{"name":"dust10","transform":{"x":-26.45,"y":-3.55}}]}]}],"animation":[{"duration":89,"playTimes":0,"fadeInTime":0.3,"name":"animation","bone":[{"name":"wheel back","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":33.1},{"duration":18,"tweenEasing":1,"x":-27},{"duration":11,"tweenEasing":-1,"x":66.05},{"duration":4,"tweenEasing":1,"x":49.1},{"duration":3,"tweenEasing":0,"x":49.1,"y":1},{"duration":19,"tweenEasing":1,"x":49.1},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0,"clockwise":2},{"duration":13,"tweenEasing":0,"clockwise":-2},{"duration":18,"tweenEasing":1,"clockwise":-4},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":7,"tweenEasing":1},{"duration":19,"tweenEasing":1,"clockwise":2},{"tweenEasing":0,"clockwise":2}],"scaleFrame":[{"duration":62,"tweenEasing":0},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"y":0.9435},{"duration":20}]},{"name":"wheel front","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":33.1},{"duration":18,"tweenEasing":1,"x":-27},{"duration":11,"tweenEasing":-1,"x":34.7,"y":-65},{"duration":4,"tweenEasing":1,"x":49.1},{"duration":3,"tweenEasing":0,"x":49.1,"y":1},{"duration":19,"tweenEasing":1,"x":49.1},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0,"clockwise":2},{"duration":13,"tweenEasing":0,"clockwise":-2},{"duration":18,"tweenEasing":1,"clockwise":-2},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":7,"tweenEasing":1},{"duration":19,"tweenEasing":1,"clockwise":2},{"tweenEasing":0}],"scaleFrame":[{"duration":62,"tweenEasing":0},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"y":0.9435},{"duration":20}]},{"name":"suspend_front","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":33.5,"y":-0.45},{"duration":18,"tweenEasing":1,"x":-27},{"duration":11,"tweenEasing":-1,"x":35.05,"y":-65.1},{"duration":4,"tweenEasing":1,"x":49.1},{"duration":3,"tweenEasing":0,"x":46.85,"y":0.1},{"duration":19,"tweenEasing":1,"x":49.1},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":1.48},{"duration":18,"tweenEasing":1},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":1.98},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"suspend_back","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":33.1},{"duration":18,"tweenEasing":1,"x":-27},{"duration":11,"tweenEasing":-1,"x":47.9,"y":-17.4},{"duration":4,"tweenEasing":1,"x":49.1},{"duration":3,"tweenEasing":0,"x":49.1,"y":1.5},{"duration":19,"tweenEasing":1,"x":49.1},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":-1.98},{"duration":18,"tweenEasing":1},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":27}],"scaleFrame":[{"duration":89}]},{"name":"base","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":34.1,"y":-1.75},{"duration":18,"tweenEasing":1,"x":-27},{"duration":11,"tweenEasing":-1,"x":36.25,"y":-17.6},{"duration":4,"tweenEasing":1,"x":49.1},{"duration":3,"tweenEasing":0,"x":50.15,"y":7.4},{"duration":19,"tweenEasing":1,"x":49.1},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":1.48},{"duration":18,"tweenEasing":1},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":1.98},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"driver_hip","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":35.21,"y":-3.73},{"duration":18,"tweenEasing":1,"x":-26.99,"y":0.17},{"duration":11,"tweenEasing":-1,"x":24.52,"y":-4.79},{"duration":4,"tweenEasing":1,"x":49.17,"y":-0.02},{"duration":3,"tweenEasing":0,"x":50.83,"y":7.16},{"duration":19,"tweenEasing":1,"x":49.17,"y":-0.02},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":5.17},{"duration":18,"tweenEasing":1,"rotate":-15},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":1.98},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"driver_corpse","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":36.63,"y":-3.65},{"duration":18,"tweenEasing":1,"x":-27.36,"y":3.75},{"duration":11,"tweenEasing":-1,"x":12.99,"y":1.82},{"duration":4,"tweenEasing":1,"x":49.09,"y":0.05},{"duration":3,"tweenEasing":0,"x":50.3,"y":6.7},{"duration":19,"tweenEasing":1,"x":49.09,"y":0.05},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":5.18},{"duration":18,"tweenEasing":1,"rotate":-8.7},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":13.9},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"driver_shin","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":34.15,"y":-1.8},{"duration":18,"tweenEasing":1,"x":-27},{"duration":11,"tweenEasing":-1,"x":34.75,"y":-15.17},{"duration":4,"tweenEasing":1,"x":49.1},{"duration":3,"tweenEasing":0,"x":50.3,"y":7.35},{"duration":19,"tweenEasing":1,"x":49.1},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":1.49},{"duration":18,"tweenEasing":1},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":1.98},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"driver_arm","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":37.19,"y":-3.23},{"duration":18,"tweenEasing":1,"x":-28.23,"y":3.14},{"duration":11,"tweenEasing":-1,"x":7,"y":0.74},{"duration":4,"tweenEasing":1,"x":49.17},{"duration":3,"tweenEasing":0,"x":51.58,"y":8.02},{"duration":19,"tweenEasing":1,"x":49.17},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":5.17},{"duration":18,"tweenEasing":1,"rotate":-8.71},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":13.9},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"driver_forearm","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":36.6,"y":-2.25},{"duration":18,"tweenEasing":1,"x":-27.55,"y":1.1},{"duration":11,"tweenEasing":-1,"x":6.78,"y":-11.71},{"duration":4,"tweenEasing":1,"x":49.11,"y":-0.05},{"duration":3,"tweenEasing":0,"x":51.2,"y":7.75},{"duration":19,"tweenEasing":1,"x":49.11,"y":-0.05},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":5.17},{"duration":18,"tweenEasing":1,"rotate":-8.7},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":-13.02},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"driver_head","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"x":38.95,"y":-3},{"duration":18,"tweenEasing":1,"x":-31.3,"y":3},{"duration":11,"tweenEasing":-1,"x":-9.6,"y":6.3},{"duration":4,"tweenEasing":1,"x":49.1},{"duration":3,"tweenEasing":0,"x":56.3,"y":9},{"duration":19,"tweenEasing":1,"x":49.1},{"tweenEasing":0}],"rotateFrame":[{"duration":20,"tweenEasing":0},{"duration":13,"tweenEasing":0,"rotate":5.17},{"duration":18,"tweenEasing":1,"rotate":-8.71},{"duration":11,"tweenEasing":-1,"rotate":-51.47},{"duration":4,"tweenEasing":1},{"duration":3,"tweenEasing":0,"rotate":13.9},{"duration":20}],"scaleFrame":[{"duration":89}]},{"name":"fx","translateFrame":[{"duration":33,"tweenEasing":0,"x":104.2,"y":4.9},{"tweenEasing":0},{"tweenEasing":0,"x":13.4,"y":0.3},{"tweenEasing":0,"x":24.65,"y":0.65},{"tweenEasing":0,"x":33.9,"y":0.9},{"tweenEasing":0,"x":43.2,"y":1.15},{"tweenEasing":0,"x":51.75,"y":1.35},{"tweenEasing":0,"x":57.7,"y":1.45},{"tweenEasing":0,"x":67.2,"y":1.5},{"tweenEasing":0,"x":76.85,"y":0.9},{"tweenEasing":0,"x":81.9,"y":1.15},{"tweenEasing":0,"x":90.4,"y":1.35},{"tweenEasing":0,"x":92.1,"y":1.45},{"tweenEasing":0,"x":97.3,"y":1.5},{"tweenEasing":0,"x":102.65,"y":0.9},{"tweenEasing":0,"x":103.35,"y":1.15},{"tweenEasing":0,"x":107.6,"y":1.35},{"tweenEasing":0,"x":109.25,"y":1.45},{"tweenEasing":0,"x":110.2,"y":1.5},{"tweenEasing":0,"x":111.25,"y":0.9},{"tweenEasing":0,"x":111.95,"y":1.15},{"tweenEasing":0,"x":107.6,"y":1.35},{"tweenEasing":0,"x":109.25,"y":1.45},{"tweenEasing":0,"x":110.2,"y":1.5},{"tweenEasing":0,"x":100.45,"y":1.6},{"x":110.05,"y":1.6},{"duration":31,"tweenEasing":0,"x":104.2,"y":4.9}],"scaleFrame":[{"duration":33,"tweenEasing":0,"x":0.7132,"y":0.7132},{"tweenEasing":0},{"tweenEasing":0,"x":0.9325,"y":0.9325},{"tweenEasing":0,"x":0.873,"y":0.873},{"tweenEasing":0,"x":0.8214,"y":0.8214},{"tweenEasing":0,"x":0.7778,"y":0.7778},{"tweenEasing":0,"x":0.742,"y":0.742},{"tweenEasing":0,"x":0.7143,"y":0.7143},{"tweenEasing":0,"x":0.6944,"y":0.6944},{"tweenEasing":0,"x":0.8214,"y":0.8214},{"tweenEasing":0,"x":0.7778,"y":0.7778},{"tweenEasing":0,"x":0.742,"y":0.742},{"tweenEasing":0,"x":0.7143,"y":0.7143},{"tweenEasing":0,"x":0.6944,"y":0.6944},{"tweenEasing":0,"x":0.8214,"y":0.8214},{"tweenEasing":0,"x":0.7778,"y":0.7778},{"tweenEasing":0,"x":0.742,"y":0.742},{"tweenEasing":0,"x":0.7143,"y":0.7143},{"tweenEasing":0,"x":0.6944,"y":0.6944},{"tweenEasing":0,"x":0.8214,"y":0.8214},{"tweenEasing":0,"x":0.7778,"y":0.7778},{"tweenEasing":0,"x":0.742,"y":0.742},{"tweenEasing":0,"x":0.7143,"y":0.7143},{"tweenEasing":0,"x":0.6944,"y":0.6944},{"tweenEasing":0,"x":0.6825,"y":0.6825},{"x":0.6786,"y":0.6786},{"duration":31,"tweenEasing":0,"x":0.7132,"y":0.7132}]}],"slot":[{"name":"fx","displayFrame":[{"duration":33,"value":-1},{},{"value":1},{"value":2},{"value":3},{"value":4},{"value":5},{"value":6},{"value":7},{"value":3},{"value":4},{"value":5},{"value":6},{"value":7},{"value":3},{"value":4},{"value":5},{"value":6},{"value":7},{"value":3},{"value":4},{"value":5},{"value":6},{"value":7},{"value":8},{"value":9},{"duration":31,"value":-1}]}]}]}]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/bikes_texture.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/bikes_texture.json new file mode 100644 index 000000000..e342dcf77 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/bikes_texture.json @@ -0,0 +1 @@ +{"name":"bikes","imagePath":"bikes_texture.png","SubTexture":[{"name":"wheel","x":0,"height":38,"width":38,"y":58},{"name":"supend_back0","x":40,"height":16,"width":35,"y":96},{"name":"base","x":98,"height":51,"width":85,"y":0},{"name":"suspend_front0","x":151,"height":25,"width":28,"y":87},{"name":"driver_corpse","x":151,"height":34,"width":21,"y":52},{"name":"drive_hip","x":83,"height":15,"width":23,"y":118},{"name":"driver_shin","x":235,"height":32,"width":17,"y":33},{"name":"driver_arm","x":76,"height":13,"width":20,"y":103},{"name":"driver_forearm","x":107,"height":11,"width":23,"y":118},{"name":"driver_head","x":185,"height":46,"width":49,"y":49},{"name":"dust1","x":132,"height":12,"width":14,"y":94},{"name":"dust2","x":235,"height":16,"width":18,"y":87},{"name":"dust3","x":210,"height":20,"width":24,"y":96},{"name":"dust4","x":29,"height":23,"width":26,"y":113},{"name":"dust5","x":132,"height":24,"width":26,"y":113},{"name":"dust6","x":56,"height":24,"width":26,"y":117},{"name":"dust7","x":0,"height":22,"width":28,"y":98},{"name":"dust8","x":180,"height":21,"width":29,"y":96},{"name":"dust9","x":210,"height":16,"width":31,"y":117},{"name":"dust10","x":173,"height":8,"width":7,"y":52},{"name":"wheel1","x":40,"height":36,"width":36,"y":58},{"name":"suspend_front","x":98,"height":41,"width":52,"y":52},{"name":"supend_back1","x":97,"height":23,"width":34,"y":94},{"name":"base1","x":0,"height":57,"width":97,"y":0},{"name":"drive_hip1","x":78,"height":11,"width":18,"y":91},{"name":"driver_corpse1","x":78,"height":32,"width":16,"y":58},{"name":"driver_shin1","x":235,"height":32,"width":19,"y":0},{"name":"driver_arm1","x":235,"height":20,"width":20,"y":66},{"name":"driver_forearm1","x":159,"height":8,"width":21,"y":118},{"name":"driver_head1","x":185,"height":48,"width":49,"y":0}]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map1.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map1.json new file mode 100644 index 000000000..764d289d9 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map1.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"36,44,52"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4890,"safeId":-1,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"physic":false,"vertices":[{"x":0,"y":0,"length":0},{"x":1745,"y":0,"length":1745},{"x":1745,"y":710,"length":1883.91215294132},{"x":0,"y":710,"length":710}],"y":-288}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":4910,"viscosity":1.5,"rotation":0,"y":-288,"vertices":[{"x":0,"y":0,"length":0},{"x":295,"y":0,"length":295},{"x":311,"y":64,"length":317.5169286825507},{"x":332,"y":114,"length":351.0270644836378},{"x":369,"y":194,"length":416.8896736547932},{"x":412,"y":260,"length":487.17963832656227},{"x":457,"y":315,"length":555.0441423886932},{"x":511,"y":372,"length":632.0640790299667},{"x":574,"y":422,"length":712.4324529385225},{"x":642,"y":466,"length":793.2969179317414},{"x":716,"y":504,"length":875.598081313567},{"x":795,"y":529,"length":954.9167502981608},{"x":883,"y":549,"length":1039.7547787819972},{"x":961,"y":555,"length":1109.7504223923504},{"x":1050,"y":554,"length":1187.1882748747141},{"x":1137,"y":541,"length":1259.1465363491257},{"x":1212,"y":521,"length":1319.2365216290823},{"x":1284,"y":493,"length":1375.3926712033913},{"x":1341,"y":463,"length":1418.6789629792922},{"x":1391,"y":429,"length":1455.6517440651799},{"x":1433,"y":397,"length":1486.9761262374054},{"x":1480,"y":358,"length":1522.6831581126785},{"x":1517,"y":316,"length":1549.5628415782305},{"x":1566,"y":256,"length":1586.7866901382806},{"x":1607,"y":196,"length":1618.9085829656967},{"x":1640,"y":129,"length":1645.0656521853466},{"x":1667,"y":66,"length":1668.3060270825613},{"x":1679,"y":28,"length":1679.2334560745269},{"x":1686,"y":0,"length":1686},{"x":1720,"y":1,"length":1720.00029069765},{"x":1723,"y":23,"length":1723.153504479505},{"x":1839,"y":749,"length":1985.6792288786223},{"x":-13,"y":772,"length":772.1094482001888}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2130,"safeId":-1,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"physic":false,"vertices":[{"x":0,"y":0,"length":0},{"x":1390,"y":0,"length":1390},{"x":1390,"y":175,"length":1400.9728762542122},{"x":0,"y":175,"length":175}],"y":70}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":11476,"safeId":-1,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"physic":false,"vertices":[{"x":20,"y":0,"length":20},{"x":6210,"y":0,"length":6210},{"x":6210,"y":2150,"length":6571.651238463587},{"x":-20,"y":2145,"length":2145.0932380668214},{"x":-20,"y":280,"length":280.713376952364},{"x":0,"y":280,"length":280},{"x":0,"y":70,"length":70}],"y":-1060}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":890,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"height":93,"originOffsetRatio":0,"width":17878,"stretchTexture":false,"straightSides":true,"repeatTexture":true,"textureOffset":0,"rotation":0,"line":true,"wireframe":false,"shape":true,"lineId":0,"directed":true,"physic":true,"vertices":[{"x":-835,"y":0,"length":835},{"x":17030,"y":25,"length":17030.018349960756}],"thick":128,"isRoad":true,"smoothing":true,"camera":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1649,"safeId":-10,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":83,"rem":true,"plr":false,"density":0.3,"isStatic":false,"ignore":false,"layer":6,"physic":true,"vertices":[{"x":440,"y":-160,"length":468.187996428785},{"x":160,"y":100,"length":188.67962264113208},{"x":-220,"y":100,"length":241.66091947189145}],"y":-41}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2012,"safeId":-10,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":83,"rem":true,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"physic":true,"vertices":[{"x":100,"y":0,"length":100},{"x":99,"y":12,"length":99.72462083156798},{"x":96,"y":24,"length":98.95453501482385},{"x":93,"y":36,"length":99.72462083156798},{"x":88,"y":47,"length":99.76472322419383},{"x":81,"y":57,"length":99.04544411531506},{"x":73,"y":67,"length":99.08582138732059},{"x":65,"y":75,"length":99.24716620639605},{"x":55,"y":83,"length":99.56907150315303},{"x":44,"y":89,"length":99.28242543370907},{"x":33,"y":94,"length":99.62429422585637},{"x":21,"y":97,"length":99.24716620639605},{"x":9,"y":99,"length":99.40824915468535},{"x":-3,"y":99,"length":99.04544411531506},{"x":-15,"y":98,"length":99.14131328563285},{"x":-27,"y":96,"length":99.72462083156798},{"x":-38,"y":92,"length":99.53893710503444},{"x":-50,"y":86,"length":99.4786409235671},{"x":-60,"y":79,"length":99.20181449953424},{"x":-69,"y":71,"length":99.00505037623081},{"x":-77,"y":62,"length":98.85848471426213},{"x":-85,"y":52,"length":99.64436762808022},{"x":-90,"y":41,"length":98.89893831583835},{"x":-95,"y":30,"length":99.62429422585637},{"x":-98,"y":18,"length":99.6393496566492},{"x":-99,"y":6,"length":99.18165152889924},{"x":-99,"y":-6,"length":99.18165152889924},{"x":-98,"y":-18,"length":99.6393496566492},{"x":-95,"y":-30,"length":99.62429422585637},{"x":-90,"y":-41,"length":98.89893831583835},{"x":-85,"y":-52,"length":99.64436762808022},{"x":-77,"y":-62,"length":98.85848471426213},{"x":-69,"y":-71,"length":99.00505037623081},{"x":-60,"y":-79,"length":99.20181449953424},{"x":-49,"y":-86,"length":98.97979591815695},{"x":-38,"y":-92,"length":99.53893710503444},{"x":-27,"y":-96,"length":99.72462083156798},{"x":-15,"y":-98,"length":99.14131328563285},{"x":-3,"y":-99,"length":99.04544411531506},{"x":9,"y":-99,"length":99.40824915468535},{"x":21,"y":-97,"length":99.24716620639605},{"x":33,"y":-94,"length":99.62429422585637},{"x":44,"y":-89,"length":99.28242543370907},{"x":55,"y":-83,"length":99.56907150315303},{"x":65,"y":-75,"length":99.24716620639605},{"x":73,"y":-67,"length":99.08582138732059},{"x":81,"y":-57,"length":99.04544411531506},{"x":88,"y":-47,"length":99.76472322419383},{"x":93,"y":-36,"length":99.72462083156798},{"x":96,"y":-24,"length":98.95453501482385},{"x":99,"y":-12,"length":99.72462083156798}],"y":-600}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":11530,"viscosity":1.5,"rotation":0,"y":-1060,"vertices":[{"x":0,"y":0,"length":0},{"x":1860,"y":0,"length":1860},{"x":1857,"y":1455,"length":2359.125685503},{"x":1847,"y":1525,"length":2395.2106379189286},{"x":1811,"y":1591,"length":2410.6019995013694},{"x":1770,"y":1644,"length":2415.706107952704},{"x":1710,"y":1684,"length":2399.9908333158273},{"x":1655,"y":1700,"length":2372.556637890864},{"x":1594,"y":1711,"length":2338.451838289598},{"x":1514,"y":1714,"length":2286.9175761273077},{"x":1407,"y":1712,"length":2215.9857851529646},{"x":645,"y":1720,"length":1836.9608052432693},{"x":571,"y":1708,"length":1800.9178215565528},{"x":507,"y":1684,"length":1758.6656873891638},{"x":452,"y":1647,"length":1707.8972451526467},{"x":404,"y":1602,"length":1652.1561669527491},{"x":360,"y":1544,"length":1585.4135107283525},{"x":334,"y":1485,"length":1522.0975658610062},{"x":320,"y":1421,"length":1456.585390562462},{"x":322,"y":1367,"length":1404.4119765937628},{"x":328,"y":1308,"length":1348.4984241740885},{"x":344,"y":1258,"length":1304.1855696180662},{"x":372,"y":1204,"length":1260.158720161869},{"x":411,"y":1152,"length":1223.1210079137713},{"x":454,"y":1115,"length":1203.8857919254633},{"x":500,"y":1082,"length":1191.941273721151},{"x":562,"y":1057,"length":1197.118624030217},{"x":634,"y":1044,"length":1221.4303091048625},{"x":730,"y":1038,"length":1268.993301794773},{"x":781,"y":1025,"length":1288.637264710283},{"x":865,"y":997,"length":1319.9371197144203},{"x":935,"y":955,"length":1336.506640462366},{"x":995,"y":902,"length":1342.9925539629771},{"x":1050,"y":840,"length":1344.6560898608982},{"x":1081,"y":790,"length":1338.9029091013283},{"x":1111,"y":724,"length":1326.0833307149292},{"x":1132,"y":642,"length":1301.3792683149675},{"x":1143,"y":578,"length":1280.8329321187834},{"x":1140,"y":501,"length":1245.2313038146767},{"x":1128,"y":438,"length":1210.0528914059914},{"x":1110,"y":373,"length":1170.994876163},{"x":1081,"y":315,"length":1125.9600348147353},{"x":1041,"y":260,"length":1072.9776325720868},{"x":998,"y":206,"length":1019.0387627563537},{"x":948,"y":164,"length":962.0810776644555},{"x":885,"y":127,"length":894.0659930899956},{"x":803,"y":93,"length":808.3674906872493},{"x":741,"y":78,"length":745.0939538071692},{"x":655,"y":65,"length":658.2172893505609},{"x":0,"y":70,"length":70}],"id":-10,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":14083,"safeId":-1,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"physic":false,"vertices":[{"x":-57,"y":-51,"length":76.48529270389177},{"x":235,"y":-20,"length":235.8495283014151},{"x":286,"y":-3,"length":286.01573383294846},{"x":325,"y":38,"length":327.2139972556186},{"x":345,"y":75,"length":353.0580688781946},{"x":348,"y":128,"length":370.7937432050331},{"x":340,"y":177,"length":383.3131878764413},{"x":317,"y":214,"length":382.47222121351507},{"x":280,"y":242,"length":370.08647638085887},{"x":247,"y":254,"length":354.29507476113747},{"x":202,"y":261,"length":330.037876614185},{"x":152,"y":248,"length":290.8745434031655},{"x":-102,"y":137,"length":170.8010538609174}],"y":-1495}},{"className":"FinishZone","params":{"x":12270,"rotation":0,"y":-2370,"width":1237,"height":2314}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":13610,"viscosity":1.5,"rotation":0,"y":-1060,"vertices":[{"x":0,"y":0,"length":0},{"x":4080,"y":0,"length":4080},{"x":4080,"y":1980,"length":4535.063395367258},{"x":-2144,"y":1965,"length":2908.257382007308},{"x":-2145,"y":285,"length":2163.850734223597},{"x":-1422,"y":284,"length":1450.082756259104},{"x":-1357,"y":296,"length":1388.9078443150936},{"x":-1295,"y":315,"length":1332.760293526184},{"x":-1247,"y":352,"length":1295.7287524786968},{"x":-1210,"y":397,"length":1273.4633877736728},{"x":-1181,"y":441,"length":1260.6514189100808},{"x":-1156,"y":504,"length":1261.0915906467699},{"x":-1152,"y":573,"length":1286.6363122498915},{"x":-1163,"y":637,"length":1326.023378376113},{"x":-1189,"y":685,"length":1372.2047952109772},{"x":-1222,"y":735,"length":1426.011570780546},{"x":-1267,"y":772,"length":1483.668763572247},{"x":-1317,"y":802,"length":1541.9769777788513},{"x":-1372,"y":816,"length":1596.3207697702865},{"x":-1434,"y":825,"length":1654.382362091666},{"x":-1504,"y":830,"length":1717.8230409445555},{"x":-1583,"y":849,"length":1796.298972888422},{"x":-1656,"y":877,"length":1873.890338306914},{"x":-1730,"y":918,"length":1958.4749168677142},{"x":-1803,"y":976,"length":2050.215842295635},{"x":-1854,"y":1038,"length":2124.796460840426},{"x":-1907,"y":1114,"length":2208.5391099095345},{"x":-1941,"y":1184,"length":2273.61760197268},{"x":-1965,"y":1263,"length":2335.8925488986},{"x":-1973,"y":1339,"length":2384.4601066069445},{"x":-1977,"y":1402,"length":2423.66107366521},{"x":-1970,"y":1468,"length":2456.8117551005002},{"x":-1951,"y":1548,"length":2490.5230374361126},{"x":-1922,"y":1625,"length":2516.8847808352293},{"x":-1865,"y":1717,"length":2535.017554179852},{"x":-1798,"y":1789,"length":2536.4000078851914},{"x":-1732,"y":1842,"length":2528.3963296920047},{"x":-1653,"y":1888,"length":2509.3730292644814},{"x":-1561,"y":1919,"length":2473.718253965071},{"x":-1489,"y":1933,"length":2440.0020491794676},{"x":-458,"y":1928,"length":1981.6528454802572},{"x":-380,"y":1916,"length":1953.3192263426888},{"x":-297,"y":1892,"length":1915.1691831271721},{"x":-222,"y":1850,"length":1863.2723901780973},{"x":-163,"y":1806,"length":1813.340839445249},{"x":-114,"y":1755,"length":1758.6986666282544},{"x":-71,"y":1695,"length":1696.4863689402282},{"x":-43,"y":1637,"length":1637.5646552121232},{"x":-25,"y":1584,"length":1584.1972730692348},{"x":-10,"y":1531,"length":1531.0326580448896},{"x":0,"y":1455,"length":1455}],"id":-10,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":11480,"safeId":-1,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"physic":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1905,"y":0,"length":1905},{"x":1905,"y":65,"length":1906.1086013131571},{"x":1455,"y":65,"length":1456.451166362951},{"x":1455,"y":1890,"length":2385.188671782591},{"x":1365,"y":1890,"length":2331.3783476733242},{"x":1365,"y":65,"length":1366.5467427058616},{"x":705,"y":65,"length":707.9901129253147},{"x":705,"y":245,"length":746.3578230312858},{"x":640,"y":245,"length":685.2919086053768},{"x":640,"y":65,"length":643.2923130272893},{"x":575,"y":65,"length":578.6622503671723},{"x":575,"y":245,"length":625.0199996800102},{"x":510,"y":245,"length":565.795899596312},{"x":510,"y":65,"length":514.1254710671316},{"x":450,"y":65,"length":454.6702101523697},{"x":450,"y":245,"length":512.3719352189383},{"x":385,"y":245,"length":456.3441683641854},{"x":385,"y":65,"length":390.4484601070927},{"x":320,"y":65,"length":326.5348373451139},{"x":320,"y":245,"length":403.01985062773275},{"x":255,"y":245,"length":353.62409420173844},{"x":255,"y":65,"length":263.1539473388153},{"x":195,"y":65,"length":205.54804791094466},{"x":195,"y":245,"length":313.12936623702353},{"x":125,"y":245,"length":275.04545078950133},{"x":125,"y":65,"length":140.8900280360537},{"x":65,"y":65,"length":91.92388155425118},{"x":65,"y":245,"length":253.4758371127315},{"x":0,"y":245,"length":245}],"y":-1240}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":2128,"viscosity":1.5,"rotation":0,"y":71,"vertices":[{"x":0,"y":0,"length":0},{"x":1645,"y":0,"length":1645},{"x":1645,"y":135,"length":1650.530217839104},{"x":0,"y":135,"length":135}],"id":-10,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":525,"safeId":-10,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":52,"rem":true,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"physic":true,"vertices":[{"x":100,"y":0,"length":100},{"x":100,"y":100,"length":141.4213562373095},{"x":55,"y":125,"length":136.56500283747664},{"x":0,"y":100,"length":100},{"x":-200,"y":100,"length":223.60679774997897},{"x":-200,"y":-45,"length":205},{"x":-145,"y":-45,"length":151.82226450688975},{"x":-145,"y":0,"length":145}],"y":692}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":476,"safeId":-10,"rotation":-179.99999999999994,"graphic":true,"line":true,"isWheel":true,"id":52,"rem":true,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"physic":true,"vertices":[{"x":150,"y":-6,"length":150.11995203836165},{"x":148,"y":27,"length":150.44268011438774},{"x":140,"y":55,"length":150.41608956491322},{"x":127,"y":78,"length":149.04026301640775},{"x":110,"y":101,"length":149.33519344079613},{"x":90,"y":119,"length":149.20120642943877},{"x":66,"y":134,"length":149.37201879870273},{"x":41,"y":144,"length":149.7230777134908},{"x":13,"y":149,"length":149.56603892595405},{"x":-13,"y":149,"length":149.56603892595405},{"x":-41,"y":144,"length":149.7230777134908},{"x":-66,"y":134,"length":149.37201879870273},{"x":-90,"y":119,"length":149.20120642943877},{"x":-110,"y":101,"length":149.33519344079613},{"x":-127,"y":78,"length":149.04026301640775},{"x":-139,"y":54,"length":149.12075643584967},{"x":-147,"y":27,"length":149.4590244849738},{"x":-147,"y":-40,"length":152.34500319997372},{"x":-93,"y":-40,"length":101.23734488813898},{"x":-92,"y":20,"length":94.14881836751856},{"x":-86,"y":37,"length":93.62157870918435},{"x":-77,"y":55,"length":94.62557793746889},{"x":-62,"y":70,"length":93.50935782048768},{"x":-47,"y":82,"length":94.51454914456292},{"x":-23,"y":91,"length":93.86160024205851},{"x":0,"y":94,"length":94},{"x":21,"y":92,"length":94.36630754670864},{"x":42,"y":84,"length":93.91485505499116},{"x":59,"y":73,"length":93.86160024205851},{"x":72,"y":62,"length":95.01578816175763},{"x":81,"y":49,"length":94.66784036831093},{"x":89,"y":33,"length":94.92101980067429},{"x":92,"y":11,"length":92.65527507918802},{"x":94,"y":-5,"length":94.13288479590966}],"y":652}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5346,"safeId":-1,"rotation":0,"graphic":true,"snapToGrid":false,"wireframe":false,"action":0,"id":-1,"vertices":[{"x":-4,"y":-24,"length":24.331050121192877},{"x":19,"y":47,"length":50.695167422546305},{"x":45,"y":105,"length":114.23659658795863},{"x":81,"y":163,"length":182.0164827701052},{"x":114,"y":210,"length":238.94769302087852},{"x":155,"y":251,"length":295.0016949103852},{"x":199,"y":289,"length":350.88744634141585},{"x":249,"y":326,"length":410.2157968679412},{"x":302,"y":357,"length":467.60346448673795},{"x":363,"y":384,"length":528.4174486142562},{"x":426,"y":403,"length":586.4170870634655},{"x":487,"y":414,"length":639.1908948037354},{"x":543,"y":416,"length":684.0358177756483},{"x":600,"y":415,"length":729.5375247374188},{"x":661,"y":408,"length":776.7786042367542},{"x":713,"y":393,"length":814.1363522162611},{"x":766,"y":375,"length":852.8663435732471},{"x":818,"y":352,"length":890.5211957050769},{"x":872,"y":321,"length":929.2066508586774},{"x":916,"y":286,"length":959.6103375850012},{"x":957,"y":246,"length":988.1118357756878},{"x":995,"y":206,"length":1016.1008808184353},{"x":1025,"y":166,"length":1038.3549489456868},{"x":1061,"y":108,"length":1066.4825361908183},{"x":1084,"y":54,"length":1085.3441850399347},{"x":1109,"y":-15,"length":1109.101438102034}],"width":1143.25,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"textureMode":true,"stretchTexture":false,"height":462.5,"smoothing":true,"repeatTexture":true,"physic":false,"type":10,"textureOffset":0,"y":-285}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":14419,"safeId":-1,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"physic":false,"vertices":[{"x":180,"y":0,"length":180},{"x":177,"y":31,"length":179.6941846582688},{"x":169,"y":61,"length":179.6719232378838},{"x":155,"y":89,"length":178.73443988218946},{"x":137,"y":115,"length":178.86866690396056},{"x":115,"y":137,"length":178.86866690396056},{"x":90,"y":155,"length":179.2344832893492},{"x":61,"y":169,"length":179.6719232378838},{"x":31,"y":177,"length":179.6941846582688},{"x":0,"y":180,"length":180},{"x":-31,"y":177,"length":179.6941846582688},{"x":-61,"y":169,"length":179.6719232378838},{"x":-89,"y":155,"length":178.73443988218946},{"x":-115,"y":137,"length":178.86866690396056},{"x":-137,"y":115,"length":178.86866690396056},{"x":-155,"y":89,"length":178.73443988218946},{"x":-169,"y":61,"length":179.6719232378838},{"x":-177,"y":31,"length":179.6941846582688},{"x":-180,"y":0,"length":180},{"x":-177,"y":-31,"length":179.6941846582688},{"x":-169,"y":-61,"length":179.6719232378838},{"x":-155,"y":-90,"length":179.2344832893492},{"x":-137,"y":-115,"length":178.86866690396056},{"x":-115,"y":-137,"length":178.86866690396056},{"x":-90,"y":-155,"length":179.2344832893492},{"x":-61,"y":-169,"length":179.6719232378838},{"x":-31,"y":-177,"length":179.6941846582688},{"x":0,"y":-180,"length":180},{"x":31,"y":-177,"length":179.6941846582688},{"x":61,"y":-169,"length":179.6719232378838},{"x":90,"y":-155,"length":179.2344832893492},{"x":115,"y":-137,"length":178.86866690396056},{"x":137,"y":-115,"length":178.86866690396056},{"x":155,"y":-90,"length":179.2344832893492},{"x":169,"y":-61,"length":179.6719232378838},{"x":177,"y":-31,"length":179.6941846582688}],"y":-1213}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1157,"safeId":-1,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"physic":true,"vertices":[{"x":-510,"y":-735,"length":894.6088530749067},{"x":970,"y":-735,"length":1217.01479037849},{"x":1150,"y":-605,"length":1299.4325684697917},{"x":2350,"y":-605,"length":2426.6283192940778},{"x":2350,"y":-1150,"length":2616.295090390226},{"x":3760,"y":-1150,"length":3931.933366678535},{"x":3760,"y":-415,"length":3782.8329331335794},{"x":5470,"y":-415,"length":5485.72009858323},{"x":5470,"y":-1085,"length":5576.569285860259},{"x":6640,"y":-1085,"length":6728.062499709705},{"x":7220,"y":-1580,"length":7390.859219333027},{"x":8075,"y":-1575,"length":8227.165368460755},{"x":8446,"y":-1440,"length":8567.876983243865},{"x":8898,"y":-1441,"length":9013.92727949366},{"x":9290,"y":-1580,"length":9423.401721246952},{"x":10315,"y":-1580,"length":10435.306655772029},{"x":10315,"y":110,"length":10315.586507804584},{"x":-510,"y":100,"length":519.7114584074513},{"x":-510,"y":65,"length":514.1254710671316},{"x":-485,"y":45,"length":487.08315511830216},{"x":-485,"y":25,"length":485.64390246352315},{"x":-510,"y":0,"length":510},{"x":-510,"y":-10,"length":510.09802979427394},{"x":-485,"y":-30,"length":485.92694924237327},{"x":-485,"y":-50,"length":487.5705077217038},{"x":-510,"y":-75,"length":515.4852083231875},{"x":-510,"y":-85,"length":517.0348150753487},{"x":-485,"y":-105,"length":496.2358310319802},{"x":-485,"y":-125,"length":500.8492787256462},{"x":-510,"y":-150,"length":531.6013544000805},{"x":-510,"y":-160,"length":534.5091205957107},{"x":-485,"y":-180,"length":517.3248495867949},{"x":-485,"y":-200,"length":524.6189093046495},{"x":-510,"y":-225,"length":557.4271252818614},{"x":-510,"y":-235,"length":561.5380663855301},{"x":-485,"y":-255,"length":547.9507277118993},{"x":-485,"y":-275,"length":557.5392362874562},{"x":-510,"y":-300,"length":591.6924876994806},{"x":-510,"y":-310,"length":596.8249324550709},{"x":-485,"y":-330,"length":586.6216838815285},{"x":-485,"y":-350,"length":598.1011620119125},{"x":-510,"y":-375,"length":633.0284353802758},{"x":-510,"y":-385,"length":639.0031298827886},{"x":-485,"y":-405,"length":631.8623267769649},{"x":-485,"y":-425,"length":644.864326816114},{"x":-510,"y":-450,"length":680.147042925278},{"x":-510,"y":-460,"length":686.804193347711},{"x":-485,"y":-480,"length":682.367203197809},{"x":-485,"y":-500,"length":696.5809357138623},{"x":-510,"y":-525,"length":731.9323739253512},{"x":-510,"y":-535,"length":739.1380114701178},{"x":-485,"y":-555,"length":737.0549504616328},{"x":-485,"y":-575,"length":752.2300180131075},{"x":-510,"y":-600,"length":787.4642849044012},{"x":-510,"y":-610,"length":795.1100552753688},{"x":-485,"y":-630,"length":795.0628905941969},{"x":-485,"y":-650,"length":811.0024660874959},{"x":-510,"y":-675,"length":846.0053191322145}],"y":796}},{"className":"OvalTemplate","params":{"x":12190,"rotation":0,"y":-503,"width":819.1,"height":819.1}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":11471,"safeId":-1,"rotation":0,"graphic":true,"snapToGrid":false,"wireframe":false,"action":0,"id":-1,"vertices":[{"x":0,"y":0,"length":0},{"x":711,"y":-1,"length":711.0007032345327},{"x":743,"y":2,"length":743.0026917851644},{"x":771,"y":8,"length":771.0415034224811},{"x":809,"y":19,"length":809.2230841986652},{"x":844,"y":33,"length":844.6448957994122},{"x":877,"y":54,"length":878.660912980656},{"x":904,"y":77,"length":907.2733876842194},{"x":928,"y":106,"length":934.034260613603},{"x":950,"y":134,"length":959.403981646939},{"x":968,"y":169,"length":982.6418472668463},{"x":980,"y":205,"length":1001.2117658118086},{"x":986,"y":240,"length":1014.7886479459652},{"x":988,"y":275,"length":1025.557896951703},{"x":986,"y":309,"length":1033.284568741835},{"x":981,"y":336,"length":1036.9459966652073},{"x":973,"y":364,"length":1038.857545575908},{"x":962,"y":392,"length":1038.8012321902588},{"x":947,"y":415,"length":1033.941004119674},{"x":924,"y":446,"length":1026.007797241327},{"x":901,"y":469,"length":1015.756860670899},{"x":875,"y":492,"length":1003.8371381852736},{"x":848,"y":510,"length":989.5473712763832},{"x":812,"y":527,"length":968.0253095864798},{"x":776,"y":537,"length":943.6869184215706},{"x":739,"y":541,"length":915.8613432174109},{"x":695,"y":545,"length":883.2043931050162},{"x":656,"y":549,"length":855.4162729338273},{"x":619,"y":553,"length":830.0421676035502},{"x":581,"y":561,"length":807.6397711851491},{"x":540,"y":573,"length":787.3557010652809},{"x":512,"y":583,"length":775.9078553539717},{"x":469,"y":603,"length":763.9175348164224},{"x":432,"y":623,"length":758.1246599339715},{"x":403,"y":643,"length":758.8530819598745},{"x":371,"y":666,"length":762.3627745371622},{"x":341,"y":692,"length":771.4564148414348},{"x":309,"y":727,"length":789.9430359209454},{"x":278,"y":764,"length":813.0067650395044},{"x":251,"y":803,"length":841.314447754227},{"x":231,"y":836,"length":867.3275044641441},{"x":207,"y":887,"length":910.8336840499477},{"x":192,"y":930,"length":949.612552570784},{"x":180,"y":969,"length":985.5764810505575},{"x":173,"y":1014,"length":1028.6520305720492},{"x":168,"y":1055,"length":1068.2925629245951},{"x":166,"y":1099,"length":1111.466148832253},{"x":168,"y":1148,"length":1160.227563885637},{"x":173,"y":1187,"length":1199.5407454521917},{"x":182,"y":1232,"length":1245.3706275643408},{"x":198,"y":1284,"length":1299.1766623519682},{"x":214,"y":1325,"length":1342.1702574561843},{"x":237,"y":1367,"length":1387.3925183595304},{"x":261,"y":1408,"length":1431.986382616818},{"x":284,"y":1438,"length":1465.7762448614044},{"x":310,"y":1468,"length":1500.3746198866468},{"x":333,"y":1491,"length":1527.7336155233347},{"x":365,"y":1519,"length":1562.2374979496556},{"x":395,"y":1545,"length":1594.6943280767007},{"x":430,"y":1567,"length":1624.9273829928525},{"x":464,"y":1589,"length":1655.360081674075},{"x":504,"y":1608,"length":1685.135009428028},{"x":543,"y":1622,"length":1710.4774187343135},{"x":596,"y":1635,"length":1740.2416498865898},{"x":646,"y":1645,"length":1767.2976546128273},{"x":705,"y":1648,"length":1792.464504530006},{"x":1679,"y":1641,"length":2347.7482829298374},{"x":1744,"y":1633,"length":2389.189193010884},{"x":1800,"y":1617,"length":2419.6464617790757},{"x":1851,"y":1597,"length":2444.710616821549},{"x":1902,"y":1571,"length":2466.9100105192324},{"x":1948,"y":1537,"length":2481.3449981814297},{"x":1995,"y":1496,"length":2493.6000080205326},{"x":2034,"y":1450,"length":2497.9303433042323},{"x":2063,"y":1408,"length":2497.685528644469},{"x":2091,"y":1351,"length":2489.474241682368},{"x":2110,"y":1302,"length":2479.375727879903},{"x":2124,"y":1248,"length":2463.509691476776},{"x":2131,"y":1187,"length":2439.288830786547},{"x":2129,"y":-466,"length":2179.4028998787717}],"width":2146.5,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"textureMode":true,"stretchTexture":false,"height":2129.5,"smoothing":true,"repeatTexture":true,"physic":true,"type":9,"textureOffset":0,"y":-776}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":11470,"safeId":-1,"rotation":0,"graphic":true,"snapToGrid":false,"wireframe":false,"action":0,"id":-1,"vertices":[{"x":0,"y":0,"length":0},{"x":715,"y":0,"length":715},{"x":778,"y":7,"length":778.0314903652679},{"x":839,"y":20,"length":839.2383451678076},{"x":898,"y":40,"length":898.890427137813},{"x":942,"y":60,"length":943.9088939087288},{"x":990,"y":87,"length":993.8153752080916},{"x":1030,"y":120,"length":1036.9667304209909},{"x":1060,"y":148,"length":1070.2822057756543},{"x":1090,"y":184,"length":1105.4211866976316},{"x":1119,"y":220,"length":1140.4214133380694},{"x":1144,"y":260,"length":1173.1734739585618},{"x":1162,"y":302,"length":1200.6031817382461},{"x":1181,"y":352,"length":1232.3412676689845},{"x":1192,"y":403,"length":1258.2817649477402},{"x":1197,"y":447,"length":1277.739410051987},{"x":1199,"y":493,"length":1296.3988583765415},{"x":1196,"y":540,"length":1312.2560725712035},{"x":1188,"y":584,"length":1323.782459469833},{"x":1178,"y":626,"length":1334.0014992495323},{"x":1164,"y":667,"length":1341.5606583378926},{"x":1143,"y":710,"length":1345.5664234812045},{"x":1125,"y":741,"length":1347.110240477742},{"x":1103,"y":772,"length":1346.325740673482},{"x":1074,"y":807,"length":1343.4005359534438},{"x":1046,"y":835,"length":1338.4098774291826},{"x":1008,"y":869,"length":1330.8737731280153},{"x":976,"y":891,"length":1321.5358489273},{"x":935,"y":915,"length":1308.2239869380167},{"x":893,"y":932,"length":1290.7645021459182},{"x":856,"y":945,"length":1275.0533322179115},{"x":812,"y":957,"length":1255.0669304861792},{"x":778,"y":962,"length":1237.2259292465544},{"x":732,"y":965,"length":1211.2179820329618},{"x":677,"y":970,"length":1182.890104785732},{"x":623,"y":983,"length":1163.794655426807},{"x":579,"y":997,"length":1152.9310473744733},{"x":543,"y":1017,"length":1152.8824744959913},{"x":502,"y":1046,"length":1160.2241162809883},{"x":466,"y":1083,"length":1179.001696351621},{"x":437,"y":1117,"length":1199.4407029945248},{"x":413,"y":1156,"length":1227.5605891360312},{"x":395,"y":1200,"length":1263.3388302430983},{"x":385,"y":1239,"length":1297.4382451585122},{"x":380,"y":1280,"length":1335.2153384379615},{"x":378,"y":1317,"length":1370.1726168625617},{"x":380,"y":1355,"length":1407.275737018158},{"x":388,"y":1403,"length":1455.662392177527},{"x":400,"y":1438,"length":1492.5963955470347},{"x":419,"y":1477,"length":1535.281733103081},{"x":439,"y":1508,"length":1570.600203743779},{"x":471,"y":1544,"length":1614.2419273454645},{"x":508,"y":1578,"length":1657.7539021217835},{"x":544,"y":1604,"length":1693.739059005253},{"x":587,"y":1627,"length":1729.652566268729},{"x":632,"y":1641,"length":1758.4950952447948},{"x":679,"y":1649,"length":1783.323302152473},{"x":732,"y":1652,"length":1806.9111765662417},{"x":1648,"y":1644,"length":2327.7972420294686},{"x":1703,"y":1637,"length":2362.19770552763},{"x":1745,"y":1625,"length":2384.4601066069445},{"x":1784,"y":1609,"length":2402.4023393262005},{"x":1820,"y":1584,"length":2412.7693632007185},{"x":1857,"y":1550,"length":2418.873498139165},{"x":1885,"y":1511,"length":2415.8530584454015},{"x":1906,"y":1468,"length":2405.7971651824682},{"x":1917,"y":1422,"length":2386.8332576868456},{"x":1920,"y":1375,"length":2361.5725692851365},{"x":1920,"y":-253,"length":1936.5972735703208}],"width":1935.5,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"textureMode":true,"stretchTexture":false,"height":1920.5,"smoothing":true,"repeatTexture":true,"physic":true,"type":8,"textureOffset":0,"y":-989}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":585,"safeId":-10,"rotation":0,"graphic":true,"line":true,"isWheel":true,"id":52,"rem":true,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"physic":true,"vertices":[{"x":60,"y":0,"length":60},{"x":82,"y":20,"length":84.40379138403677},{"x":76,"y":36,"length":84.09518416651456},{"x":46,"y":38,"length":59.665735560705194},{"x":37,"y":46,"length":59.033888572581766},{"x":35,"y":77,"length":84.581321815162},{"x":18,"y":82,"length":83.95236744726142},{"x":-1,"y":59,"length":59.00847396772772},{"x":-13,"y":58,"length":59.43904440685432},{"x":-38,"y":75,"length":84.07734534343957},{"x":-52,"y":66,"length":84.02380615040002},{"x":-47,"y":36,"length":59.20304046246274},{"x":-54,"y":26,"length":59.93329625508679},{"x":-83,"y":17,"length":84.72307831990054},{"x":-85,"y":0,"length":85},{"x":-58,"y":-14,"length":59.665735560705194},{"x":-54,"y":-26,"length":59.93329625508679},{"x":-65,"y":-54,"length":84.50443775329198},{"x":-52,"y":-66,"length":84.02380615040002},{"x":-25,"y":-54,"length":59.50630218724736},{"x":-13,"y":-58,"length":59.43904440685432},{"x":1,"y":-84,"length":84.00595217006948},{"x":18,"y":-82,"length":83.95236744726142},{"x":26,"y":-53,"length":59.033888572581766},{"x":37,"y":-46,"length":59.033888572581766},{"x":67,"y":-51,"length":84.20213774008353},{"x":76,"y":-36,"length":84.09518416651456},{"x":58,"y":-12,"length":59.22837157984339}],"y":800}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":690,"y":420,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"height":1583,"originOffsetRatio":0,"width":14838,"stretchTexture":false,"straightSides":true,"repeatTexture":true,"textureOffset":0,"rotation":0,"line":false,"wireframe":false,"shape":false,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":-880,"y":395,"length":964.5854031655258},{"x":-190,"y":275,"length":334.2528982671654},{"x":855,"y":-195,"length":876.954958934608},{"x":2710,"y":-185,"length":2716.307235936318},{"x":3485,"y":-315,"length":3499.207053033587},{"x":5215,"y":-135,"length":5216.747070732872},{"x":5585,"y":-200,"length":5588.579873277289},{"x":7125,"y":-600,"length":7150.218528129053},{"x":7755,"y":-1030,"length":7823.102006237679},{"x":9255,"y":-1025,"length":9311.586867983351},{"x":10135,"y":-1115,"length":10196.14878275126},{"x":10790,"y":-770,"length":10817.439623127091},{"x":11035,"y":455,"length":11044.376397062897},{"x":12495,"y":455,"length":12503.281569252129},{"x":12620,"y":410,"length":12626.658306931411},{"x":12725,"y":345,"length":12729.675958169555},{"x":13945,"y":-625,"length":13958.99888960523}],"thick":128,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":15259,"safeId":-1,"rotation":-90,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"physic":false,"vertices":[{"x":250,"y":0,"length":250},{"x":245,"y":45,"length":249.09837414162303},{"x":233,"y":90,"length":249.77790134437433},{"x":212,"y":131,"length":249.2087478400387},{"x":184,"y":168,"length":249.15858403835898},{"x":150,"y":199,"length":249.20072231034965},{"x":111,"y":223,"length":249.09837414162303},{"x":68,"y":240,"length":249.44738924270183},{"x":23,"y":248,"length":249.06424873915566},{"x":-23,"y":248,"length":249.06424873915566},{"x":-68,"y":240,"length":249.44738924270183},{"x":-111,"y":223,"length":249.09837414162303},{"x":-150,"y":199,"length":249.20072231034965},{"x":-184,"y":168,"length":249.15858403835898},{"x":-212,"y":131,"length":249.2087478400387},{"x":-233,"y":90,"length":249.77790134437433},{"x":-245,"y":45,"length":249.09837414162303},{"x":-250,"y":0,"length":250}],"y":-2207}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":13993,"safeId":-1,"rotation":0,"graphic":false,"snapToGrid":false,"wireframe":false,"action":0,"id":-1,"vertices":[{"x":16,"y":-33,"length":36.6742416417845},{"x":374,"y":40,"length":376.1329552166361}],"width":371,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"textureMode":true,"stretchTexture":false,"height":92.6,"smoothing":true,"repeatTexture":true,"physic":true,"type":0,"textureOffset":0,"y":-1565}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":15259,"safeId":-1,"rotation":-90,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"physic":false,"vertices":[{"x":350,"y":0,"length":350},{"x":344,"y":64,"length":349.9028436580646},{"x":326,"y":126,"length":349.502503567571},{"x":297,"y":184,"length":349.3780187705002},{"x":258,"y":235,"length":348.98280759945754},{"x":210,"y":279,"length":349.2005154635371},{"x":156,"y":313,"length":349.72131762304684},{"x":95,"y":336,"length":349.1718774471965},{"x":32,"y":348,"length":349.46816736292305},{"x":-32,"y":348,"length":349.46816736292305},{"x":-95,"y":336,"length":349.1718774471965},{"x":-156,"y":313,"length":349.72131762304684},{"x":-210,"y":279,"length":349.2005154635371},{"x":-258,"y":235,"length":348.98280759945754},{"x":-297,"y":184,"length":349.3780187705002},{"x":-326,"y":126,"length":349.502503567571},{"x":-344,"y":64,"length":349.9028436580646},{"x":-350,"y":0,"length":350}],"y":-1577}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":14253,"safeId":-1,"rotation":0,"graphic":false,"snapToGrid":false,"wireframe":false,"action":0,"id":-1,"vertices":[{"x":-283,"y":-120,"length":307.3906309567681},{"x":49,"y":-10,"length":50.00999900019995},{"x":91,"y":-18,"length":92.76313923105448},{"x":127,"y":-40,"length":133.15029102484155}],"width":423,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"textureMode":true,"stretchTexture":false,"height":129.8,"smoothing":true,"repeatTexture":true,"physic":true,"type":0,"textureOffset":0,"y":-1255}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":15270,"safeId":-1,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"physic":false,"vertices":[{"x":0,"y":0,"length":0},{"x":305,"y":45,"length":308.3018001893599},{"x":0,"y":100,"length":100}],"y":-2610}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":11510,"safeId":-1,"rotation":0,"graphic":true,"snapToGrid":false,"wireframe":false,"action":0,"id":-1,"vertices":[{"x":0,"y":0,"length":0},{"x":628,"y":-1,"length":628.0007961778392},{"x":689,"y":3,"length":689.0065311736893},{"x":749,"y":12,"length":749.0961220030445},{"x":803,"y":28,"length":803.4880210681426},{"x":863,"y":50,"length":864.4472222177592},{"x":915,"y":81,"length":918.5782492526154},{"x":957,"y":115,"length":963.884847894187},{"x":996,"y":155,"length":1007.9885912052774},{"x":1027,"y":199,"length":1046.1022894535697},{"x":1049,"y":240,"length":1076.1045488241373},{"x":1073,"y":299,"length":1113.8806040146314},{"x":1087,"y":365,"length":1146.6446703316594},{"x":1089,"y":434,"length":1172.2956111834592},{"x":1081,"y":492,"length":1187.6973520219703},{"x":1064,"y":562,"length":1203.3037854174647},{"x":1025,"y":634,"length":1205.2306833133648},{"x":990,"y":683,"length":1202.7422832843286},{"x":942,"y":732,"length":1192.9744339255558},{"x":883,"y":774,"length":1174.2082438818081},{"x":819,"y":803,"length":1146.982999002165},{"x":764,"y":819,"length":1120.0254461395061},{"x":710,"y":825,"length":1088.4507338414542},{"x":654,"y":829,"length":1055.9152428107097},{"x":586,"y":838,"length":1022.565401331377},{"x":540,"y":852,"length":1008.7140328160405},{"x":488,"y":875,"length":1001.8827276682636},{"x":442,"y":903,"length":1005.3720704296494},{"x":392,"y":944,"length":1022.154587134451},{"x":349,"y":994,"length":1053.4880160685266},{"x":316,"y":1045,"length":1091.7330259729254},{"x":293,"y":1095,"length":1133.522827295507},{"x":274,"y":1160,"length":1191.921138330888},{"x":268,"y":1228,"length":1256.904133178024},{"x":271,"y":1291,"length":1319.1368389973802},{"x":284,"y":1362,"length":1391.2943613772034},{"x":311,"y":1427,"length":1460.496490923549},{"x":344,"y":1478,"length":1517.5045304709965},{"x":383,"y":1525,"length":1572.359373680203},{"x":424,"y":1564,"length":1620.4542572994771},{"x":480,"y":1601,"length":1671.4068924113003},{"x":542,"y":1631,"length":1718.6986355961303},{"x":610,"y":1647,"length":1756.3339659643323},{"x":682,"y":1654,"length":1789.0891537315854},{"x":744,"y":1655,"length":1814.541539893755},{"x":1624,"y":1647,"length":2313.003458709044},{"x":1693,"y":1636,"length":2354.3035063474717},{"x":1758,"y":1613,"length":2385.8610604978658},{"x":1807,"y":1583,"length":2402.3192960137503},{"x":1851,"y":1549,"length":2413.6283889613164},{"x":1889,"y":1510,"length":2418.350884383819},{"x":1914,"y":1464,"length":2409.7078661115747},{"x":1939,"y":1404,"length":2393.9375513993677},{"x":1950,"y":1353,"length":2373.4171567594267},{"x":1950,"y":-287,"length":1971.0071029806056}],"width":1972.5,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"textureMode":true,"stretchTexture":false,"height":1964.5,"smoothing":true,"repeatTexture":true,"physic":false,"type":10,"textureOffset":0,"y":-920}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":14333,"safeId":-1,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"physic":false,"vertices":[{"x":-57,"y":-51,"length":76.48529270389177},{"x":235,"y":-20,"length":235.8495283014151},{"x":286,"y":-3,"length":286.01573383294846},{"x":325,"y":38,"length":327.2139972556186},{"x":345,"y":75,"length":353.0580688781946},{"x":348,"y":128,"length":370.7937432050331},{"x":340,"y":177,"length":383.3131878764413},{"x":317,"y":214,"length":382.47222121351507},{"x":280,"y":242,"length":370.08647638085887},{"x":247,"y":254,"length":354.29507476113747},{"x":202,"y":261,"length":330.037876614185},{"x":152,"y":248,"length":290.8745434031655},{"x":-102,"y":137,"length":170.8010538609174}],"y":-1765}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":14669,"safeId":-1,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"physic":false,"vertices":[{"x":180,"y":0,"length":180},{"x":177,"y":31,"length":179.6941846582688},{"x":169,"y":61,"length":179.6719232378838},{"x":155,"y":89,"length":178.73443988218946},{"x":137,"y":115,"length":178.86866690396056},{"x":115,"y":137,"length":178.86866690396056},{"x":90,"y":155,"length":179.2344832893492},{"x":61,"y":169,"length":179.6719232378838},{"x":31,"y":177,"length":179.6941846582688},{"x":0,"y":180,"length":180},{"x":-31,"y":177,"length":179.6941846582688},{"x":-61,"y":169,"length":179.6719232378838},{"x":-89,"y":155,"length":178.73443988218946},{"x":-115,"y":137,"length":178.86866690396056},{"x":-137,"y":115,"length":178.86866690396056},{"x":-155,"y":89,"length":178.73443988218946},{"x":-169,"y":61,"length":179.6719232378838},{"x":-177,"y":31,"length":179.6941846582688},{"x":-180,"y":0,"length":180},{"x":-177,"y":-31,"length":179.6941846582688},{"x":-169,"y":-61,"length":179.6719232378838},{"x":-155,"y":-90,"length":179.2344832893492},{"x":-137,"y":-115,"length":178.86866690396056},{"x":-115,"y":-137,"length":178.86866690396056},{"x":-90,"y":-155,"length":179.2344832893492},{"x":-61,"y":-169,"length":179.6719232378838},{"x":-31,"y":-177,"length":179.6941846582688},{"x":0,"y":-180,"length":180},{"x":31,"y":-177,"length":179.6941846582688},{"x":61,"y":-169,"length":179.6719232378838},{"x":90,"y":-155,"length":179.2344832893492},{"x":115,"y":-137,"length":178.86866690396056},{"x":137,"y":-115,"length":178.86866690396056},{"x":155,"y":-90,"length":179.2344832893492},{"x":169,"y":-61,"length":179.6719232378838},{"x":177,"y":-31,"length":179.6941846582688}],"y":-1483}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":14613,"safeId":-1,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"physic":false,"vertices":[{"x":-57,"y":-51,"length":76.48529270389177},{"x":235,"y":-20,"length":235.8495283014151},{"x":286,"y":-3,"length":286.01573383294846},{"x":325,"y":38,"length":327.2139972556186},{"x":345,"y":75,"length":353.0580688781946},{"x":348,"y":128,"length":370.7937432050331},{"x":340,"y":177,"length":383.3131878764413},{"x":317,"y":214,"length":382.47222121351507},{"x":280,"y":242,"length":370.08647638085887},{"x":247,"y":254,"length":354.29507476113747},{"x":202,"y":261,"length":330.037876614185},{"x":152,"y":248,"length":290.8745434031655},{"x":-102,"y":137,"length":170.8010538609174}],"y":-2005}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":14949,"safeId":-1,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"physic":false,"vertices":[{"x":180,"y":0,"length":180},{"x":177,"y":31,"length":179.6941846582688},{"x":169,"y":61,"length":179.6719232378838},{"x":155,"y":89,"length":178.73443988218946},{"x":137,"y":115,"length":178.86866690396056},{"x":115,"y":137,"length":178.86866690396056},{"x":90,"y":155,"length":179.2344832893492},{"x":61,"y":169,"length":179.6719232378838},{"x":31,"y":177,"length":179.6941846582688},{"x":0,"y":180,"length":180},{"x":-31,"y":177,"length":179.6941846582688},{"x":-61,"y":169,"length":179.6719232378838},{"x":-89,"y":155,"length":178.73443988218946},{"x":-115,"y":137,"length":178.86866690396056},{"x":-137,"y":115,"length":178.86866690396056},{"x":-155,"y":89,"length":178.73443988218946},{"x":-169,"y":61,"length":179.6719232378838},{"x":-177,"y":31,"length":179.6941846582688},{"x":-180,"y":0,"length":180},{"x":-177,"y":-31,"length":179.6941846582688},{"x":-169,"y":-61,"length":179.6719232378838},{"x":-155,"y":-90,"length":179.2344832893492},{"x":-137,"y":-115,"length":178.86866690396056},{"x":-115,"y":-137,"length":178.86866690396056},{"x":-90,"y":-155,"length":179.2344832893492},{"x":-61,"y":-169,"length":179.6719232378838},{"x":-31,"y":-177,"length":179.6941846582688},{"x":0,"y":-180,"length":180},{"x":31,"y":-177,"length":179.6941846582688},{"x":61,"y":-169,"length":179.6719232378838},{"x":90,"y":-155,"length":179.2344832893492},{"x":115,"y":-137,"length":178.86866690396056},{"x":137,"y":-115,"length":178.86866690396056},{"x":155,"y":-90,"length":179.2344832893492},{"x":169,"y":-61,"length":179.6719232378838},{"x":177,"y":-31,"length":179.6941846582688}],"y":-1723}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":11580,"y":-1100,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"height":13,"originOffsetRatio":0,"width":3058,"stretchTexture":false,"straightSides":true,"repeatTexture":true,"textureOffset":0,"rotation":0,"line":false,"wireframe":false,"shape":false,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":0,"y":0,"length":0},{"x":3045,"y":0,"length":3045}],"thick":128,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":14243,"safeId":-1,"rotation":0,"graphic":false,"snapToGrid":false,"wireframe":false,"action":0,"id":-1,"vertices":[{"x":16,"y":-33,"length":36.6742416417845},{"x":374,"y":40,"length":376.1329552166361}],"width":371,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"textureMode":true,"stretchTexture":false,"height":92.6,"smoothing":true,"repeatTexture":true,"physic":true,"type":0,"textureOffset":0,"y":-1842}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":14503,"safeId":-1,"rotation":0,"graphic":false,"snapToGrid":false,"wireframe":false,"action":0,"id":-1,"vertices":[{"x":-283,"y":-120,"length":307.3906309567681},{"x":49,"y":-10,"length":50.00999900019995},{"x":91,"y":-18,"length":92.76313923105448},{"x":127,"y":-40,"length":133.15029102484155}],"width":423,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"textureMode":true,"stretchTexture":false,"height":129.8,"smoothing":true,"repeatTexture":true,"physic":true,"type":0,"textureOffset":0,"y":-1525}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":14523,"safeId":-1,"rotation":0,"graphic":false,"snapToGrid":false,"wireframe":false,"action":0,"id":-1,"vertices":[{"x":16,"y":-33,"length":36.6742416417845},{"x":374,"y":40,"length":376.1329552166361}],"width":371,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"textureMode":true,"stretchTexture":false,"height":92.6,"smoothing":true,"repeatTexture":true,"physic":true,"type":0,"textureOffset":0,"y":-2079}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":14783,"safeId":-1,"rotation":0,"graphic":false,"snapToGrid":false,"wireframe":false,"action":0,"id":-1,"vertices":[{"x":-283,"y":-120,"length":307.3906309567681},{"x":49,"y":-10,"length":50.00999900019995},{"x":91,"y":-18,"length":92.76313923105448},{"x":127,"y":-40,"length":133.15029102484155}],"width":423,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"textureMode":true,"stretchTexture":false,"height":129.8,"smoothing":true,"repeatTexture":true,"physic":true,"type":0,"textureOffset":0,"y":-1765}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":14010,"safeId":-1,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"physic":true,"vertices":[{"x":0,"y":0,"length":0},{"x":405,"y":0,"length":405},{"x":1155,"y":-705,"length":1353.1629613612693},{"x":1155,"y":-1420,"length":1830.416619242734},{"x":1285,"y":-1420,"length":1915.10443579456},{"x":1285,"y":0,"length":1285},{"x":2850,"y":0,"length":2850},{"x":2420,"y":260,"length":2433.926868252208},{"x":255,"y":260,"length":364.17715469260287}],"y":-1200}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5210,"safeId":-1,"rotation":0,"graphic":true,"snapToGrid":false,"wireframe":false,"action":0,"id":-1,"vertices":[{"x":0,"y":0,"length":0},{"x":18,"y":64,"length":66.48308055437865},{"x":42,"y":125,"length":131.86735759845953},{"x":74,"y":193,"length":206.70026608594387},{"x":116,"y":257,"length":281.966310044303},{"x":157,"y":309,"length":346.5977495599185},{"x":204,"y":358,"length":412.0436870041816},{"x":270,"y":415,"length":495.1009997970111},{"x":337,"y":459,"length":569.4295391003175},{"x":396,"y":490,"length":630.012698284725},{"x":456,"y":515,"length":687.866992957214},{"x":526,"y":534,"length":749.5545343735838},{"x":598,"y":547,"length":810.4400039484724},{"x":662,"y":552,"length":861.9443137465436},{"x":746,"y":550,"length":926.8311604601995},{"x":819,"y":540,"length":981},{"x":892,"y":523,"length":1034.0178915279948},{"x":959,"y":500,"length":1081.5179147845865},{"x":1021,"y":470,"length":1123.9844304971489},{"x":1086,"y":430,"length":1168.030821511145},{"x":1151,"y":378,"length":1211.4804992239867},{"x":1201,"y":330,"length":1245.5123443788102},{"x":1248,"y":275,"length":1277.9393569336535},{"x":1290,"y":218,"length":1308.290487621155},{"x":1325,"y":153,"length":1333.8043334762413},{"x":1355,"y":84,"length":1357.6011932817385},{"x":1384,"y":-7,"length":1384.0177021989277}],"width":1401.25,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"textureMode":true,"stretchTexture":false,"height":574.5,"smoothing":true,"repeatTexture":true,"physic":true,"type":9,"textureOffset":0,"y":-289}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":5426,"viscosity":1.5,"rotation":0,"y":-288,"vertices":[{"x":0,"y":0,"length":0},{"x":950,"y":0,"length":950},{"x":930,"y":55,"length":931.624924527033},{"x":900,"y":110,"length":906.697303403953},{"x":860,"y":165,"length":875.6854458080253},{"x":808,"y":216,"length":836.373122475848},{"x":740,"y":270,"length":787.7182237323192},{"x":670,"y":305,"length":736.1555542139175},{"x":595,"y":330,"length":680.3859199013453},{"x":510,"y":345,"length":615.7312725532138},{"x":430,"y":343,"length":550.0445436507847},{"x":361,"y":332,"length":490.4538714293119},{"x":293,"y":310,"length":426.5548030441106},{"x":230,"y":280,"length":362.3534186398688},{"x":180,"y":246,"length":304.8212591011329},{"x":133,"y":208,"length":246.88661365088225},{"x":87,"y":161,"length":183.0027322200409},{"x":48,"y":107,"length":117.27318534089538},{"x":16,"y":48,"length":50.59644256269407}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4900,"safeId":-1,"rotation":0,"graphic":true,"line":true,"isWheel":false,"id":-1,"rem":true,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"physic":true,"vertices":[{"x":0,"y":-940,"length":940},{"x":35,"y":-970,"length":970.6312379065491},{"x":1586,"y":-965,"length":1856.5077430487597},{"x":1616,"y":-930,"length":1864.4988602839103},{"x":1603,"y":46,"length":1603.659876657142},{"x":1580,"y":75,"length":1581.7790616897164},{"x":1420,"y":76,"length":1422.0323484365606},{"x":1395,"y":53,"length":1396.0064469765173},{"x":1395,"y":1,"length":1395.000358422893},{"x":1393,"y":-45,"length":1393.7266589973804},{"x":1381,"y":-119,"length":1386.1175996285451},{"x":1364,"y":-167,"length":1374.1852131354055},{"x":1338,"y":-220,"length":1355.9660762718217},{"x":1315,"y":-265,"length":1341.435797941892},{"x":1279,"y":-317,"length":1317.698751612067},{"x":1244,"y":-356,"length":1293.936629051052},{"x":1206,"y":-391,"length":1267.800063101434},{"x":1168,"y":-421,"length":1241.5574896073076},{"x":1127,"y":-447,"length":1212.4099966595459},{"x":1084,"y":-466,"length":1179.9203362939381},{"x":1024,"y":-488,"length":1134.3368106519333},{"x":966,"y":-501,"length":1088.1897812422244},{"x":904,"y":-506,"length":1035.9787642611213},{"x":846,"y":-504,"length":984.749714394475},{"x":788,"y":-500,"length":933.2438052299088},{"x":736,"y":-487,"length":882.5332854912613},{"x":679,"y":-467,"length":824.0934413038366},{"x":628,"y":-443,"length":768.5265122297343},{"x":576,"y":-409,"length":706.4396647980633},{"x":526,"y":-367,"length":641.3774239868441},{"x":473,"y":-310,"length":565.5342606774589},{"x":441,"y":-266,"length":515.0116503536594},{"x":409,"y":-205,"length":457.4997267758747},{"x":385,"y":-145,"length":411.40004861448426},{"x":373,"y":-93,"length":384.419042192241},{"x":367,"y":-24,"length":367.78390394360656},{"x":352,"y":-4,"length":352.0227265390688},{"x":26,"y":0,"length":26},{"x":2,"y":-29,"length":29.068883707497267}],"y":-850}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5415,"safeId":-1,"rotation":0,"graphic":true,"snapToGrid":false,"wireframe":false,"action":0,"id":-1,"vertices":[{"x":0,"y":0,"length":0},{"x":19,"y":55,"length":58.18934610390462},{"x":38,"y":98,"length":105.1094667477673},{"x":68,"y":148,"length":162.87418457201866},{"x":99,"y":188,"length":212.47352776287215},{"x":130,"y":221,"length":256.40007800310826},{"x":166,"y":255,"length":304.27126055544585},{"x":204,"y":283,"length":348.8624370722649},{"x":246,"y":309,"length":394.9645553717447},{"x":292,"y":332,"length":442.1402492422512},{"x":339,"y":349,"length":486.5408513167214},{"x":386,"y":360,"length":527.8219396728408},{"x":440,"y":367,"length":572.9650949228932},{"x":496,"y":369,"length":618.2046586689556},{"x":545,"y":366,"length":656.4914317795777},{"x":595,"y":358,"length":694.398300689165},{"x":643,"y":345,"length":729.7081608424014},{"x":694,"y":325,"length":766.3295635690953},{"x":738,"y":301,"length":797.0225843726137},{"x":778,"y":274,"length":824.8393783034368},{"x":812,"y":247,"length":848.7361191795716},{"x":843,"y":217,"length":870.4814759660311},{"x":873,"y":184,"length":892.1799145912219},{"x":897,"y":153,"length":909.9549439395338},{"x":920,"y":116,"length":927.2842067025622},{"x":940,"y":76,"length":943.0673358779849},{"x":955,"y":40,"length":955.8373292563961},{"x":970,"y":-5,"length":970.012886512339}],"width":987.05,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"textureMode":true,"stretchTexture":false,"height":389.5,"smoothing":true,"repeatTexture":true,"physic":true,"type":8,"textureOffset":0,"y":-310}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5420,"safeId":-1,"rotation":0,"graphic":false,"snapToGrid":false,"wireframe":false,"action":0,"id":-1,"vertices":[{"x":0,"y":0,"length":0},{"x":69,"y":0,"length":69}],"width":82,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"textureMode":true,"stretchTexture":false,"height":20,"smoothing":true,"repeatTexture":true,"physic":true,"type":0,"textureOffset":0,"y":-304}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6310,"safeId":-1,"rotation":0,"graphic":false,"snapToGrid":false,"wireframe":false,"action":0,"id":-1,"vertices":[{"x":0,"y":0,"length":0},{"x":69,"y":0,"length":69}],"width":82,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"textureMode":true,"stretchTexture":false,"height":20,"smoothing":true,"repeatTexture":true,"physic":true,"type":0,"textureOffset":0,"y":-314}}],[{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":0.9305980812410695,"x":13483,"y":359,"width":75.25,"height":227.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":0.9305980812410695,"x":13486,"y":-164,"width":75.25,"height":227.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":0.9305980812410695,"x":13486,"y":-1225,"width":75.25,"height":227.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":0.9305980812410695,"x":13486,"y":-745,"width":75.25,"height":227.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-179.99999999999994,"scaleY":-1,"x":11489,"y":-894.35,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-179.99999999999994,"scaleY":-1,"x":11829,"y":-894,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-179.99999999999994,"scaleY":-1,"x":12149,"y":-894.35,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-143.99999999999994,"scaleY":-1,"x":12420,"y":-812,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-92.99999999999994,"scaleY":-1,"x":12570.05,"y":-512.55,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-44.99999999999994,"scaleY":1,"x":12446,"y":-244,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-11.999999999999943,"scaleY":1,"x":12096,"y":-125,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-62.99999999999994,"scaleY":1,"x":11778,"y":134,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-134.99999999999994,"scaleY":-1,"x":11854.6,"y":596.75,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-179.99999999999994,"scaleY":-1,"x":12232,"y":757,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-179.99999999999994,"scaleY":-1,"x":13022,"y":757,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-179.99999999999994,"scaleY":-1,"x":12652,"y":757,"width":75.25,"height":244.95}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":3780,"y":-416,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":7003,"y":-352,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":11104,"y":-848,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":0.6649785742111414,"x":12874,"y":821,"width":9.3,"height":85.35}},{"className":"SpikeBall52E","params":{"x":2465,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":1,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall52E","params":{"x":2535,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":2,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall52E","params":{"x":2603,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":3,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall52E","params":{"x":2671,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":4,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall52E","params":{"x":2947,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":8,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall52E","params":{"x":2879,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":7,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall52E","params":{"x":2811,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":6,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall52E","params":{"x":2741,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":5,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall52E","params":{"x":3430,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":15,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall52E","params":{"x":3362,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":14,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall52E","params":{"x":3292,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":13,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall52E","params":{"x":3222,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":12,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall52E","params":{"x":3154,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":11,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall52E","params":{"x":3086,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":10,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall52E","params":{"x":3016,"safeId":-10,"ag":true,"y":114,"rotation":0,"id":9,"ad":2,"width":128,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":128,"active":false}},{"className":"SpikeBall137E","params":{"x":8860,"safeId":-1,"ag":true,"y":-850,"rotation":0,"id":48,"ad":-1,"width":254.25,"plr":false,"btg":false,"scaleX":1,"scaleY":1,"sgos":true,"height":254.9,"active":false}},{"className":"SpikeBall137E","params":{"x":9000,"safeId":-1,"ag":true,"y":-850,"rotation":0,"id":48,"ad":-1,"width":254.25,"plr":false,"btg":false,"scaleX":1,"scaleY":1,"sgos":true,"height":254.9,"active":false}},{"className":"SpikeBall137E","params":{"x":10430,"safeId":-1,"ag":true,"y":-945,"rotation":0,"id":49,"ad":-1,"width":254.25,"plr":false,"btg":false,"scaleX":1,"scaleY":1,"sgos":true,"height":254.9,"active":false}},{"className":"SpikeBall137E","params":{"x":10540,"safeId":-1,"ag":true,"y":-850,"rotation":0,"id":49,"ad":-1,"width":254.25,"plr":false,"btg":false,"scaleX":1,"scaleY":1,"sgos":true,"height":254.9,"active":false}},{"className":"SpikeBall200E","params":{"x":14280,"safeId":-1,"ag":true,"y":-1380,"rotation":0,"id":61,"ad":-1,"width":260.3,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":false,"height":260.3,"active":false}},{"className":"SpikeBall200E","params":{"x":14535,"safeId":-1,"ag":true,"y":-1649,"rotation":0,"id":62,"ad":-1,"width":260.3,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":false,"height":260.3,"active":false}},{"className":"SpikeBall200E","params":{"x":14813,"safeId":-1,"ag":true,"y":-1896,"rotation":0,"id":63,"ad":-1,"width":260.3,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":false,"height":260.3,"active":false}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":660,"y":-110,"width":640,"height":256}},{"className":"Dec51","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":1220,"y":-110,"width":256,"height":256}},{"className":"SpikeBall200E","params":{"x":5100,"safeId":-1,"ag":true,"y":-228,"rotation":0,"id":-1,"ad":3,"width":260.3,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":260.3,"active":true}},{"className":"SpikeBall200E","params":{"x":5590,"safeId":-1,"ag":true,"y":-228,"rotation":0,"id":-1,"ad":3,"width":260.3,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":260.3,"active":true}},{"className":"SpikeBall200E","params":{"x":5850,"safeId":-1,"ag":true,"y":-228,"rotation":0,"id":-1,"ad":3,"width":260.3,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":260.3,"active":true}},{"className":"SpikeBall200E","params":{"x":6150,"safeId":-1,"ag":true,"y":-328,"rotation":0,"id":-1,"ad":3,"width":260.3,"plr":false,"btg":true,"scaleX":1,"scaleY":1,"sgos":true,"height":260.3,"active":true}},{"className":"Dec36","params":{"scaleX":1,"rotation":-96.99999999999991,"scaleY":0.8979383547662788,"x":5305,"y":-283,"width":75.25,"height":219.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-132.99999999999991,"scaleY":0.8979383547662788,"x":5488,"y":17,"width":75.25,"height":219.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-177.99999999999991,"scaleY":0.8979383547662788,"x":5885,"y":173,"width":75.25,"height":219.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-45.999999999999886,"scaleY":0.8979383547662788,"x":6320,"y":-27,"width":75.25,"height":219.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-78.99999999999989,"scaleY":0.8979383547662788,"x":6475,"y":-303,"width":75.25,"height":219.95}}],[{"className":"Tnt1","params":{"x":2010,"safeId":-10,"rotation":0,"y":-725,"id":51,"count":43,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":11000}},{"className":"Tnt1","params":{"x":2465,"safeId":-10,"rotation":0,"y":164,"id":1,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":950}},{"className":"Tnt1","params":{"x":2534,"safeId":-10,"rotation":0,"y":164,"id":2,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":960}},{"className":"Tnt1","params":{"x":2603,"safeId":-10,"rotation":0,"y":164,"id":3,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":920}},{"className":"Tnt1","params":{"x":2672,"safeId":-10,"rotation":0,"y":164,"id":4,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":1000}},{"className":"Tnt1","params":{"x":2741,"safeId":-10,"rotation":0,"y":164,"id":5,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":940}},{"className":"Tnt1","params":{"x":2810,"safeId":-10,"rotation":0,"y":164,"id":6,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":950}},{"className":"Tnt1","params":{"x":2879,"safeId":-10,"rotation":0,"y":164,"id":7,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":980}},{"className":"Tnt1","params":{"x":2948,"safeId":-10,"rotation":0,"y":164,"id":8,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":910}},{"className":"Tnt1","params":{"x":3017,"safeId":-10,"rotation":0,"y":164,"id":9,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":970}},{"className":"Tnt1","params":{"x":3086,"safeId":-10,"rotation":0,"y":164,"id":10,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":1000}},{"className":"Tnt1","params":{"x":3155,"safeId":-10,"rotation":0,"y":164,"id":11,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":920}},{"className":"Tnt1","params":{"x":3224,"safeId":-10,"rotation":0,"y":164,"id":12,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":950}},{"className":"Tnt1","params":{"x":3293,"safeId":-10,"rotation":0,"y":164,"id":13,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":980}},{"className":"Tnt1","params":{"x":3362,"safeId":-10,"rotation":0,"y":164,"id":14,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":940}},{"className":"Tnt1","params":{"x":3431,"safeId":-10,"rotation":0,"y":164,"id":15,"count":40,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":910}},{"className":"Tnt1","params":{"x":9100,"safeId":-1,"rotation":0,"y":-850,"id":48,"count":12,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":6000}},{"className":"Tnt1","params":{"x":10635,"safeId":-1,"rotation":0,"y":-838,"id":49,"count":40,"width":53.2,"radius":100,"physic":false,"stones":false,"height":53.2,"impulse":7000}},{"className":"GeyserE","params":{"x":12302,"safeId":-1,"rotation":108,"y":-861,"speed":1000,"id":80,"rate":1,"width":203,"height":128}},{"className":"GeyserE","params":{"x":12563,"safeId":-1,"rotation":-179.99999999999994,"y":-501,"speed":1000,"id":80,"rate":1,"width":203,"height":128}},{"className":"GeyserE","params":{"x":12488,"safeId":-1,"rotation":143.00000000000009,"y":-729,"speed":1000,"id":80,"rate":1,"width":203,"height":128}},{"className":"GeyserE","params":{"x":12381,"safeId":-1,"rotation":-121.99999999999996,"y":-179,"speed":1000,"id":80,"rate":1,"width":203,"height":128}},{"className":"GeyserE","params":{"x":12515,"safeId":-1,"rotation":-147.9999999999999,"y":-309,"speed":1000,"id":80,"rate":1,"width":203,"height":128}},{"className":"GeyserE","params":{"x":12209,"safeId":-1,"rotation":-94.99999999999996,"y":-126,"speed":1000,"id":80,"rate":1,"width":203,"height":128}},{"className":"BoostE","params":{"x":13140,"safeId":-1,"rotation":0,"y":780,"time":6,"width":64.1,"force":4500,"height":64.1}},{"className":"Tnt1","params":{"x":14396,"safeId":1,"rotation":0,"y":-1305,"id":61,"count":25,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":55000}},{"className":"GeyserE","params":{"x":13492,"safeId":-1,"rotation":0,"y":-961,"speed":1000,"id":82,"rate":1,"width":203,"height":128}},{"className":"GeyserE","params":{"x":13492,"safeId":-1,"rotation":0,"y":-431,"speed":1000,"id":82,"rate":1,"width":203,"height":128}},{"className":"GeyserE","params":{"x":13492,"safeId":-1,"rotation":0,"y":119,"speed":1000,"id":82,"rate":1,"width":203,"height":128}},{"className":"Tnt1","params":{"x":10515,"safeId":-1,"rotation":0,"y":-934,"id":49,"count":40,"width":53.2,"radius":100,"physic":false,"stones":false,"height":53.2,"impulse":2000}},{"className":"Tnt1","params":{"x":14646,"safeId":1,"rotation":0,"y":-1575,"id":62,"count":25,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":60000}},{"className":"Tnt1","params":{"x":14926,"safeId":1,"rotation":0,"y":-1815,"id":63,"count":25,"width":53.2,"radius":64,"physic":false,"stones":false,"height":53.2,"impulse":80000}},{"className":"GlassCrashed0","params":{"x":4982,"safeId":-1,"rotation":0,"y":-343,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5112,"safeId":-1,"rotation":0,"y":-343,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5242,"safeId":-1,"rotation":0,"y":-343,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5372,"safeId":-1,"rotation":0,"y":-343,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5502,"safeId":-1,"rotation":0,"y":-343,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5632,"safeId":-1,"rotation":0,"y":-343,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5762,"safeId":-1,"rotation":0,"y":-343,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5890,"safeId":-1,"rotation":-13.000000000000004,"y":-357,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":6009,"safeId":-1,"rotation":-28.000000000000004,"y":-401,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":6113,"safeId":-1,"rotation":-42.99999999999999,"y":-475,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":6195,"safeId":-1,"rotation":-56.000000000000014,"y":-571,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":6250,"safeId":-1,"rotation":-72.00000000000001,"y":-683,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":6273,"safeId":-1,"rotation":-87,"y":-806,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5962,"safeId":-1,"rotation":-159,"y":-1303,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":6072,"safeId":-1,"rotation":-144,"y":-1243,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":6162,"safeId":-1,"rotation":-128,"y":-1157,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":6228,"safeId":-1,"rotation":-115,"y":-1048,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":6266,"safeId":-1,"rotation":-100,"y":-927,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5850,"safeId":-1,"rotation":-172,"y":-1333,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5722,"safeId":-1,"rotation":173,"y":-1335,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5599,"safeId":-1,"rotation":160,"y":-1306,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5489,"safeId":-1,"rotation":144,"y":-1247,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5398,"safeId":-1,"rotation":129,"y":-1160,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5332,"safeId":-1,"rotation":115,"y":-1056,"ttl":0.3,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":5296,"safeId":-1,"rotation":98,"y":-935,"ttl":0.3,"width":132,"height":18}},{"className":"BoostE","params":{"x":6080,"safeId":-1,"rotation":0,"y":-510,"time":2,"width":64.1,"force":4000,"height":64.1}}],[{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":0.9679772282512008,"x":13485,"y":358,"width":99.95,"height":272.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":0.9679772282512008,"x":13488,"y":-165,"width":99.95,"height":272.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":0.9430706280021348,"x":13488,"y":-1226,"width":99.95,"height":265.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":0.9537448852517346,"x":13488,"y":-746,"width":99.95,"height":268.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-180,"scaleY":-0.9679772282512008,"x":11488,"y":-891.35,"width":99.95,"height":272.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-180,"scaleY":-0.9679772282512008,"x":11828,"y":-891,"width":99.95,"height":272.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-180,"scaleY":-0.9679772282512008,"x":12148,"y":-891.35,"width":99.95,"height":272.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-144,"scaleY":-0.9679772282512008,"x":12419,"y":-810,"width":99.95,"height":272.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-93,"scaleY":-0.9679772282512008,"x":12568.1,"y":-511.45,"width":99.95,"height":272.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-45,"scaleY":0.9679772282512008,"x":12443,"y":-244,"width":99.95,"height":272.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-12,"scaleY":0.9679772282512008,"x":12093,"y":-127,"width":99.95,"height":272.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-63,"scaleY":0.9679772282512008,"x":11774,"y":135,"width":99.95,"height":272.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-135,"scaleY":-0.9679772282512008,"x":11853.5,"y":595.85,"width":99.95,"height":272.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":180,"scaleY":-0.9679772282512008,"x":12230,"y":757,"width":99.95,"height":272.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":180,"scaleY":-0.9679772282512008,"x":13020,"y":757,"width":99.95,"height":272.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":180,"scaleY":-0.9679772282512008,"x":12650,"y":757,"width":99.95,"height":272.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-97,"scaleY":0.900373599003736,"x":5308,"y":-284,"width":99.95,"height":253.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-133,"scaleY":0.900373599003736,"x":5491,"y":15,"width":99.95,"height":253.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-178,"scaleY":0.900373599003736,"x":5886,"y":169,"width":99.95,"height":253.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-46,"scaleY":0.900373599003736,"x":6322,"y":-25,"width":99.95,"height":253.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-79,"scaleY":0.900373599003736,"x":6478,"y":-303,"width":99.95,"height":253.05}}],[{"className":"PlayerWP","params":{"x":476,"rotation":0,"y":635,"width":64,"height":32}},{"className":"CameraZoneE","params":{"x":12000,"rotation":0,"y":-50,"id":0,"width":1542,"height":1911}},{"className":"SafePointE","params":{"x":3780,"rotation":0,"y":-500,"id":0,"width":128,"height":2076}},{"className":"SafePointE","params":{"x":7003,"rotation":0,"y":-434,"id":0,"width":128,"height":2076}},{"className":"SafePointE","params":{"x":11104,"rotation":0,"y":-932,"id":0,"width":128,"height":2076}},{"className":"SafePointE","params":{"x":12876,"rotation":0,"y":760,"id":0,"width":128,"height":2076}},{"className":"CameraZoneE","params":{"x":13550,"rotation":0,"y":-510,"id":71,"width":1726,"height":2199}}],[{"className":"ToggleE","params":{"x":3092,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":12,"off":false,"y":-472,"width":60,"rotation":0,"height":1344}},{"className":"ToggleE","params":{"x":3161,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":13,"off":false,"y":-472,"width":60,"rotation":0,"height":1344}},{"className":"ToggleE","params":{"x":12100,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":0,"off":true,"y":-430,"width":1144,"rotation":0,"height":1243}},{"className":"ToggleE","params":{"x":3230,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":14,"off":false,"y":-472,"width":60,"rotation":0,"height":1344}},{"className":"ToggleE","params":{"x":3299,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":15,"off":false,"y":-472,"width":60,"rotation":0,"height":1344}},{"className":"ToggleE","params":{"x":2333,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":1,"off":false,"y":-472,"width":60,"rotation":0,"height":1361}},{"className":"ToggleE","params":{"x":2402,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":2,"off":false,"y":-472,"width":60,"rotation":0,"height":1364}},{"className":"ToggleE","params":{"x":2471,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":3,"off":false,"y":-472,"width":60,"rotation":0,"height":1369}},{"className":"ToggleE","params":{"x":2540,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":4,"off":false,"y":-472,"width":60,"rotation":0,"height":1354}},{"className":"ToggleE","params":{"x":2609,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":5,"off":false,"y":-472,"width":60,"rotation":0,"height":1333}},{"className":"PivotJointE","params":{"x":2010,"safeId":-10,"rotation":0,"graphic":0,"id":51,"y":-680,"width":17,"height":17}},{"className":"ToggleE","params":{"x":2678,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":6,"off":false,"y":-472,"width":60,"rotation":0,"height":1333}},{"className":"PivotJointE","params":{"x":2030,"safeId":-10,"rotation":0,"graphic":0,"id":51,"y":-160,"width":17,"height":17}},{"className":"ToggleE","params":{"x":2747,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":7,"off":false,"y":-472,"width":60,"rotation":0,"height":1361}},{"className":"ToggleE","params":{"x":1565,"safeId":-1,"sndId":-1,"hint":-1,"id_off":52,"id":51,"off":false,"y":-160,"width":64,"rotation":0,"height":559}},{"className":"ToggleE","params":{"x":2816,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":8,"off":false,"y":-472,"width":60,"rotation":0,"height":1345}},{"className":"ToggleE","params":{"x":2885,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":9,"off":false,"y":-472,"width":60,"rotation":0,"height":1328}},{"className":"ToggleE","params":{"x":2954,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":10,"off":false,"y":-472,"width":60,"rotation":0,"height":1336}},{"className":"ToggleE","params":{"x":3023,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":11,"off":false,"y":-472,"width":60,"rotation":0,"height":1344}},{"className":"MotorJointE","params":{"x":354,"safeId":-10,"rotation":0,"graphic":0,"id":21,"y":656,"useWeld":false,"height":17,"width":17,"time":0.4,"snd":false,"rate":-150}},{"className":"ToggleE","params":{"x":457,"safeId":-1,"sndId":-1,"hint":-1,"id_off":22,"id":21,"off":false,"y":36,"width":677,"rotation":0,"height":64}},{"className":"ToggleE","params":{"x":477,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":22,"off":false,"y":666,"width":237,"rotation":0,"height":64}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":472,"safeId":-10,"active":0,"startTime":"0","snapToGrid":true,"cycle":0,"body":false,"id":22,"position":0,"y":735,"height":637,"sideWait":0,"width":13,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-624,"length":624}],"stopOnEnd":true,"accelDist":70,"rotation":0,"speed":200}},{"className":"PivotJointE","params":{"x":585,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":800,"width":17,"height":17}},{"className":"ToggleE","params":{"x":8350,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":48,"off":false,"y":-950,"width":64,"rotation":0,"height":1381}},{"className":"ToggleE","params":{"x":9800,"safeId":-1,"sndId":-1,"hint":-1,"id_off":48,"id":49,"off":false,"y":-892,"width":64,"rotation":0,"height":1023}},{"className":"ToggleE","params":{"x":13507,"safeId":1,"sndId":-1,"hint":-1,"id_off":82,"id":61,"off":false,"y":-1445,"width":2409,"rotation":0,"height":64}},{"className":"ToggleE","params":{"x":13550,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":71,"off":true,"y":-453,"width":1624,"rotation":0,"height":1590}},{"className":"ToggleE","params":{"x":13557,"safeId":1,"sndId":-1,"hint":-1,"id_off":-1,"id":62,"off":false,"y":-1685,"width":2409,"rotation":0,"height":64}},{"className":"ToggleE","params":{"x":13607,"safeId":1,"sndId":-1,"hint":-1,"id_off":-1,"id":63,"off":false,"y":-1925,"width":2409,"rotation":0,"height":64}},{"className":"ToggleE","params":{"x":2960,"safeId":-1,"sndId":0,"hint":-1,"id_off":-2,"id":83,"off":false,"y":-1230,"width":64,"rotation":0,"height":2850}},{"className":"ToggleE","params":{"x":5900,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":91,"off":false,"y":-930,"width":64,"rotation":0,"height":2850}},{"className":"ToggleE","params":{"x":8640,"safeId":-1,"sndId":0,"hint":-1,"id_off":40,"id":91,"off":false,"y":-1310,"width":64,"rotation":0,"height":2850}},{"className":"ToggleE","params":{"x":11750,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":91,"off":false,"y":440,"width":770,"rotation":0,"height":71}},{"className":"ToggleE","params":{"x":13530,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":91,"off":false,"y":-450,"width":770,"rotation":0,"height":71}},{"className":"ToggleE","params":{"x":13289,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":82,"off":false,"y":730,"width":38,"rotation":0,"height":214}},{"className":"ToggleE","params":{"x":10740,"safeId":-1,"sndId":-1,"hint":-1,"id_off":49,"id":-2,"off":false,"y":-952,"width":64,"rotation":0,"height":1023}},{"className":"ToggleE","params":{"x":11759,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":80,"off":false,"y":-880,"width":38,"rotation":0,"height":214}},{"className":"ToggleE","params":{"x":11889,"safeId":-1,"sndId":-1,"hint":-1,"id_off":80,"id":-2,"off":false,"y":20,"width":38,"rotation":0,"height":214}},{"className":"ToggleE","params":{"x":3780,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":84,"off":false,"y":-740,"width":64,"rotation":0,"height":804}},{"className":"ToggleE","params":{"x":7528,"safeId":-1,"sndId":-1,"hint":-1,"id_off":84,"id":-2,"off":false,"y":-529,"width":64,"rotation":0,"height":700}},{"className":"ToggleE","params":{"x":2890,"safeId":-1,"sndId":0,"hint":-1,"id_off":-2,"id":84,"off":false,"y":-1250,"width":64,"rotation":0,"height":2850}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map10.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map10.json new file mode 100644 index 000000000..fb29a4f0a --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map10.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"27,36,44"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6260,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-324,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":-45,"length":45},{"x":690,"y":-45,"length":691.4658342969666},{"x":685,"y":-1,"length":685.0007299266184},{"x":2910,"y":0,"length":2910},{"x":2915,"y":835,"length":3032.2351491927534},{"x":5,"y":835,"length":835.0149699256895}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2030,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-170,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":2910,"y":0,"length":2910},{"x":2910,"y":660,"length":2983.90683500675},{"x":0,"y":660,"length":660}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":746,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-1474,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":5,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":20,"y":0,"length":20},{"x":20,"y":985,"length":985.2030247619016},{"x":0,"y":985,"length":985}],"line":true,"id":80,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":6890,"viscosity":1.5,"rotation":0,"y":-120,"vertices":[{"x":-15,"y":5,"length":15.811388300841896},{"x":900,"y":0,"length":900},{"x":900,"y":330,"length":958.5927185202274},{"x":455,"y":330,"length":562.072059437222}],"id":-10,"bg":false,"sf":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":6520,"viscosity":1.5,"rotation":0,"y":0,"vertices":[{"x":0,"y":0,"length":0},{"x":130,"y":5,"length":130.09611831257686},{"x":750,"y":425,"length":862.0469824783333},{"x":765,"y":500,"length":913.9064503547395},{"x":5,"y":450,"length":450.0277769204919}],"id":-1,"bg":false,"sf":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":8290,"viscosity":1.5,"rotation":0,"y":-330,"vertices":[{"x":-285,"y":0,"length":285},{"x":740,"y":0,"length":740},{"x":740,"y":760,"length":1060.7544484940895},{"x":-285,"y":760,"length":811.6803558051655}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":1380,"y":240,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":13054.3,"textureOffset":0,"height":933.55,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":-2165,"y":-510,"length":2224.2583033451847},{"x":-1240,"y":-675,"length":1411.816206168494},{"x":-785,"y":-590,"length":982.0005091648375},{"x":-315,"y":-480,"length":574.1297762701391},{"x":3795,"y":-325,"length":3808.8909146889464},{"x":4480,"y":-35,"length":4480.136716663901},{"x":5890,"y":190,"length":5893.063719322912},{"x":6640,"y":185,"length":6642.5766837877},{"x":7150,"y":-540,"length":7170.362612866939},{"x":7815,"y":-540,"length":7833.634214079695},{"x":10875,"y":180,"length":10876.489553160063}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":1380,"y":420,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":12723,"textureOffset":0,"height":78,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":true,"physic":true,"vertices":[{"x":-1885,"y":0,"length":1885},{"x":10825,"y":10,"length":10825.004618936659}],"line":true,"shape":true,"isRoad":true,"smoothing":true,"camera":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2155,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":34,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-95,"y":-370,"length":382.00130889828114},{"x":180,"y":-370,"length":411.4608122288197},{"x":180,"y":-310,"length":358.4689665786984},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-95,"y":-310,"length":324.2298567374695}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2235,"safeId":-10,"rotation":-180,"graphic":true,"isWheel":false,"y":-708,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-100,"y":-370,"length":383.275357934736},{"x":175,"y":-370,"length":409.2981798151563},{"x":175,"y":-310,"length":355.9845502265513},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-100,"y":-310,"length":325.7299494980466}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2432,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":34,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-95,"y":-370,"length":382.00130889828114},{"x":180,"y":-370,"length":411.4608122288197},{"x":180,"y":-310,"length":358.4689665786984},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-95,"y":-310,"length":324.2298567374695}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2512,"safeId":-10,"rotation":-180,"graphic":true,"isWheel":false,"y":-708,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-100,"y":-370,"length":383.275357934736},{"x":175,"y":-370,"length":409.2981798151563},{"x":175,"y":-310,"length":355.9845502265513},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-100,"y":-310,"length":325.7299494980466}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2709,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":34,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-95,"y":-370,"length":382.00130889828114},{"x":180,"y":-370,"length":411.4608122288197},{"x":180,"y":-310,"length":358.4689665786984},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-95,"y":-310,"length":324.2298567374695}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2789,"safeId":-10,"rotation":-180,"graphic":true,"isWheel":false,"y":-708,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-100,"y":-370,"length":383.275357934736},{"x":175,"y":-370,"length":409.2981798151563},{"x":175,"y":-310,"length":355.9845502265513},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-100,"y":-310,"length":325.7299494980466}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2986,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":34,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-95,"y":-370,"length":382.00130889828114},{"x":180,"y":-370,"length":411.4608122288197},{"x":180,"y":-310,"length":358.4689665786984},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-95,"y":-310,"length":324.2298567374695}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3066,"safeId":-10,"rotation":-180,"graphic":true,"isWheel":false,"y":-708,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-100,"y":-370,"length":383.275357934736},{"x":175,"y":-370,"length":409.2981798151563},{"x":175,"y":-310,"length":355.9845502265513},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-100,"y":-310,"length":325.7299494980466}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3263,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":34,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-95,"y":-370,"length":382.00130889828114},{"x":180,"y":-370,"length":411.4608122288197},{"x":180,"y":-310,"length":358.4689665786984},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-95,"y":-310,"length":324.2298567374695}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3343,"safeId":-10,"rotation":-180,"graphic":true,"isWheel":false,"y":-708,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-100,"y":-370,"length":383.275357934736},{"x":175,"y":-370,"length":409.2981798151563},{"x":175,"y":-310,"length":355.9845502265513},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-100,"y":-310,"length":325.7299494980466}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3540,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":34,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-95,"y":-370,"length":382.00130889828114},{"x":180,"y":-370,"length":411.4608122288197},{"x":180,"y":-310,"length":358.4689665786984},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-95,"y":-310,"length":324.2298567374695}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3620,"safeId":-10,"rotation":-180,"graphic":true,"isWheel":false,"y":-708,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-100,"y":-370,"length":383.275357934736},{"x":175,"y":-370,"length":409.2981798151563},{"x":175,"y":-310,"length":355.9845502265513},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-100,"y":-310,"length":325.7299494980466}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3817,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":34,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-95,"y":-370,"length":382.00130889828114},{"x":180,"y":-370,"length":411.4608122288197},{"x":180,"y":-310,"length":358.4689665786984},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-95,"y":-310,"length":324.2298567374695}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3897,"safeId":-10,"rotation":-180,"graphic":true,"isWheel":false,"y":-708,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-100,"y":-370,"length":383.275357934736},{"x":175,"y":-370,"length":409.2981798151563},{"x":175,"y":-310,"length":355.9845502265513},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-100,"y":-310,"length":325.7299494980466}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4094,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":34,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-95,"y":-370,"length":382.00130889828114},{"x":180,"y":-370,"length":411.4608122288197},{"x":180,"y":-310,"length":358.4689665786984},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-95,"y":-310,"length":324.2298567374695}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4174,"safeId":-10,"rotation":-180,"graphic":true,"isWheel":false,"y":-708,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-100,"y":-370,"length":383.275357934736},{"x":175,"y":-370,"length":409.2981798151563},{"x":175,"y":-310,"length":355.9845502265513},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-100,"y":-310,"length":325.7299494980466}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4451,"safeId":-10,"rotation":-180,"graphic":true,"isWheel":false,"y":-708,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-100,"y":-370,"length":383.275357934736},{"x":175,"y":-370,"length":409.2981798151563},{"x":175,"y":-310,"length":355.9845502265513},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-100,"y":-310,"length":325.7299494980466}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4371,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":34,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-95,"y":-370,"length":382.00130889828114},{"x":180,"y":-370,"length":411.4608122288197},{"x":180,"y":-310,"length":358.4689665786984},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-95,"y":-310,"length":324.2298567374695}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4728,"safeId":-10,"rotation":-180,"graphic":true,"isWheel":false,"y":-708,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-100,"y":-370,"length":383.275357934736},{"x":175,"y":-370,"length":409.2981798151563},{"x":175,"y":-310,"length":355.9845502265513},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-100,"y":-310,"length":325.7299494980466}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4648,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":34,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-95,"y":-370,"length":382.00130889828114},{"x":180,"y":-370,"length":411.4608122288197},{"x":180,"y":-310,"length":358.4689665786984},{"x":70,"y":-310,"length":317.80497164141406},{"x":70,"y":100,"length":122.06555615733703},{"x":10,"y":100,"length":100.4987562112089},{"x":10,"y":-310,"length":310.16124838541646},{"x":-95,"y":-310,"length":324.2298567374695}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":2030,"viscosity":1.5,"rotation":0,"y":-170,"vertices":[{"x":0,"y":0,"length":0},{"x":3080,"y":0,"length":3080},{"x":3080,"y":595,"length":3136.945170065935},{"x":0,"y":595,"length":595}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1643,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":320,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-2320,"y":-1815,"length":2945.6111420212956},{"x":-1220,"y":-2084,"length":2414.8407815009255},{"x":396,"y":-2096,"length":2133.0804016726606},{"x":407,"y":-861,"length":952.349725678545},{"x":-687,"y":-862,"length":1102.2762811564078},{"x":-682,"y":-1575,"length":1716.3184436461668},{"x":-683,"y":-1602,"length":1741.5203128301432},{"x":-687,"y":-1625,"length":1764.254516786056},{"x":-694,"y":-1652,"length":1791.853788678083},{"x":-712,"y":-1686,"length":1830.1748550343489},{"x":-733,"y":-1716,"length":1865.9970525164288},{"x":-766,"y":-1747,"length":1907.554717432766},{"x":-797,"y":-1767,"length":1938.4266816157892},{"x":-831,"y":-1779,"length":1963.51776156978},{"x":-868,"y":-1785,"length":1984.8549065359916},{"x":-904,"y":-1785,"length":2000.860065072018},{"x":-944,"y":-1778,"length":2013.062343793654},{"x":-986,"y":-1761,"length":2018.246020682315},{"x":-1020,"y":-1738,"length":2015.2032155591653},{"x":-1046,"y":-1709,"length":2003.6958352005427},{"x":-1066,"y":-1683,"length":1992.196024491566},{"x":-1080,"y":-1653,"length":1974.5401996414255},{"x":-1089,"y":-1621,"length":1952.8343503738354},{"x":-1093,"y":-1583,"length":1923.6782475247778},{"x":-1100,"y":-1087,"length":1546.4698509831996},{"x":-1147,"y":-1037,"length":1546.2787588271399},{"x":-1173,"y":-1006,"length":1545.3041771767785},{"x":-1193,"y":-974,"length":1540.105515865715},{"x":-1209,"y":-943,"length":1533.2742742249345},{"x":-1220,"y":-906,"length":1519.617057024565},{"x":-1228,"y":-865,"length":1502.0682407933402},{"x":-1232,"y":-825,"length":1482.7167632423934},{"x":-1233,"y":-790,"length":1464.3732447706084},{"x":-1228,"y":-751,"length":1439.4391268824118},{"x":-1220,"y":-715,"length":1414.0809736362341},{"x":-1208,"y":-681,"length":1386.731769305081},{"x":-1186,"y":-638,"length":1346.7145206018981},{"x":-1162,"y":-603,"length":1309.1420854895773},{"x":-1132,"y":-570,"length":1267.4083793316186},{"x":410,"y":-565,"length":698.0866708367952},{"x":410,"y":100,"length":422.0189569201839},{"x":-2145,"y":100,"length":2147.329737138663}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5933,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":370,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1000,"y":-565,"length":1148.5752043292593},{"x":-195,"y":-565,"length":597.7039400907443},{"x":60,"y":-770,"length":772.3341245859851},{"x":725,"y":-770,"length":1057.6034228386366},{"x":725,"y":60,"length":727.4785220197226},{"x":-1000,"y":60,"length":1001.7983829094555}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6867,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-720,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":-800,"length":800},{"x":100,"y":-800,"length":806.2257748298549},{"x":100,"y":245,"length":264.62237244798484},{"x":820,"y":245,"length":855.818321841733},{"x":920,"y":350,"length":984.3271813782245},{"x":920,"y":610,"length":1103.8568747804218},{"x":0,"y":610,"length":610}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7407,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-480,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-5,"y":5,"length":7.0710678118654755},{"x":110,"y":-100,"length":148.66068747318505},{"x":225,"y":5,"length":225.055548698538}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7419,"safeId":-1,"rotation":42.00000000000006,"graphic":true,"isWheel":false,"y":-708,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":315,"y":0,"length":315},{"x":315,"y":30,"length":316.4253466459348},{"x":0,"y":30,"length":30}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6655,"safeId":-1,"rotation":0,"graphic":true,"height":1089.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":-3,"y":-345,"length":345.0130432317016},{"x":-4,"y":51,"length":51.15662224971465},{"x":612,"y":470,"length":771.6501798094782},{"x":1347,"y":470,"length":1426.642562101664},{"x":1347,"y":-407,"length":1407.1453371986847},{"x":1170,"y":-604,"length":1316.7064972878352}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1369,"type":9,"textureOffset":0,"y":-50}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6870,"safeId":-1,"rotation":0,"graphic":true,"height":731.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":4,"y":-250,"length":250.0319979522621},{"x":4,"y":38,"length":38.2099463490856},{"x":471,"y":360,"length":592.824594631498},{"x":921,"y":360,"length":988.8584327394898},{"x":921,"y":-221,"length":947.1441284197458},{"x":795,"y":-356,"length":871.0688836136899}],"smoothing":true,"id":-1,"repeatTexture":true,"width":935,"type":8,"textureOffset":0,"y":-150}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6857,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-480,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":110,"y":5,"length":110.11357772772621},{"x":110,"y":-135,"length":174.14074767268},{"x":245,"y":5,"length":245.05101509685693}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7990,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-660,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-40,"length":40},{"x":410,"y":-40,"length":411.9465984809196},{"x":410,"y":0,"length":410},{"x":305,"y":115,"length":325.96012026013244},{"x":305,"y":1085,"length":1127.0536810640388},{"x":105,"y":1085,"length":1090.0688051678205},{"x":105,"y":115,"length":155.72411502397438}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8920,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-440,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-40,"length":40},{"x":410,"y":-40,"length":411.9465984809196},{"x":410,"y":0,"length":410},{"x":305,"y":115,"length":325.96012026013244},{"x":305,"y":870,"length":921.9137703711774},{"x":105,"y":870,"length":876.3133001387118},{"x":105,"y":115,"length":155.72411502397438}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9980,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-170,"plr":false,"density":0.1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-40,"length":40},{"x":410,"y":-40,"length":411.9465984809196},{"x":410,"y":0,"length":410},{"x":305,"y":115,"length":325.96012026013244},{"x":305,"y":600,"length":673.0713186579859},{"x":105,"y":600,"length":609.1182151274086},{"x":105,"y":115,"length":155.72411502397438}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":552,"safeId":-10,"rotation":-10,"graphic":true,"isWheel":false,"y":-1585,"plr":false,"density":1,"isStatic":false,"ignore":true,"layer":5,"rem":true,"vertices":[{"x":95,"y":315,"length":329.013677527242},{"x":102,"y":297,"length":314.02706889693445},{"x":114,"y":283,"length":305.09834480049216},{"x":130,"y":274,"length":303.2754523531372},{"x":146,"y":270,"length":306.94624936623677},{"x":167,"y":273,"length":320.0281237641467},{"x":181,"y":282,"length":335.08954027244715},{"x":193,"y":293,"length":350.85324567402824},{"x":202,"y":308,"length":368.33137254380057},{"x":204,"y":322,"length":381.18237105091833},{"x":205,"y":335,"length":392.7467377331096},{"x":202,"y":348,"length":402.3779318004406},{"x":193,"y":360,"length":408.471541236351},{"x":178,"y":373,"length":413.2952939485278},{"x":160,"y":381,"length":413.2323801446348},{"x":174,"y":506,"length":535.0813022335951},{"x":69,"y":486,"length":490.87371084628273},{"x":121,"y":375,"length":394.03806922681974},{"x":109,"y":367,"length":382.8446159997552},{"x":101,"y":356,"length":370.0499966220781},{"x":94,"y":341,"length":353.7188148798421},{"x":93,"y":329,"length":341.891795748304}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9980,"safeId":-1,"rotation":0,"graphic":true,"height":65,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"0.1","isStatic":false,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":411,"y":1,"length":411.0012165432117}],"smoothing":true,"id":-1,"repeatTexture":true,"width":424,"type":5,"textureOffset":0,"y":-212}},{"className":"FinishZone","params":{"x":11280,"rotation":0,"y":-490,"width":1047,"height":1844}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":550,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-1150,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":400,"y":0,"length":400},{"x":400,"y":65,"length":405.2468383590426},{"x":0,"y":65,"length":65}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6800,"safeId":-1,"rotation":0,"graphic":true,"height":856.3,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":-1,"y":310,"length":310.0016128990299},{"x":519,"y":661,"length":840.405854334678},{"x":1060,"y":658,"length":1247.623340596031},{"x":1063,"y":-21,"length":1063.2074115618268},{"x":918,"y":-168,"length":933.24594829016}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1096.1,"type":10,"textureOffset":0,"y":-380}}],[{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":0.9428454786691164,"x":6750,"y":-396,"width":75.25,"height":230.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":0.9673402735252092,"x":6750,"y":-126,"width":75.25,"height":236.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-144,"scaleY":1,"x":6857,"y":30,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-144,"scaleY":1,"x":7247,"y":297,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-177,"scaleY":1,"x":7740,"y":328,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":90,"scaleY":1,"x":7913,"y":137,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":90,"scaleY":1,"x":7913,"y":-123,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":90,"scaleY":1,"x":7903,"y":-363,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-132,"scaleY":1,"x":7741,"y":-568,"width":75.25,"height":244.95}},{"className":"SignPillar","params":{"scaleX":2.21505376344086,"rotation":-90,"scaleY":1.218153486560187,"x":8020,"y":-280,"width":20.7,"height":156.35}},{"className":"Sign1","params":{"x":7920,"rotation":0,"y":-280,"width":68.8,"height":69.8}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":5340,"y":-257,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":0.7117257499026102,"x":7550,"y":370,"width":9.3,"height":91.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1.0779119594857811,"x":7190,"y":-540,"width":9.3,"height":138.3}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":8190,"y":-760,"width":9.3,"height":128.35}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":500,"y":-420,"width":640,"height":256}},{"className":"Dec51","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":1050,"y":-420,"width":256,"height":256}},{"className":"Dec50","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":1120,"y":-420,"width":256,"height":256}}],[{"className":"GeyserE","params":{"x":7900,"safeId":-1,"rotation":-90,"y":-54,"speed":1000,"id":-1,"rate":1,"width":938,"height":128}}],[{"className":"Dec37","params":{"scaleX":1,"rotation":-90,"scaleY":0.9573029710016013,"x":6754,"y":-396,"width":99.95,"height":269.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-90,"scaleY":0.9644191425013343,"x":6754,"y":-126,"width":99.95,"height":271.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-146.99999999999994,"scaleY":-1,"x":6870,"y":9,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-146.99999999999994,"scaleY":-1,"x":7260,"y":279,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-179.99999999999994,"scaleY":-1,"x":7741,"y":306,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":87.00000000000006,"scaleY":-1,"x":7891,"y":137,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":87.00000000000006,"scaleY":-1,"x":7891,"y":-123,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":87.00000000000006,"scaleY":-1,"x":7881,"y":-363,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-134.99999999999994,"scaleY":-1,"x":7756,"y":-583,"width":99.95,"height":281.05}}],[{"className":"PlayerWP","params":{"x":760,"rotation":0,"y":-1220,"width":64,"height":32}},{"className":"SafePointE","params":{"x":5340,"rotation":0,"y":-330,"id":0,"width":128,"height":1659}},{"className":"SafePointE","params":{"x":7550,"rotation":0,"y":310,"id":0,"width":128,"height":325}},{"className":"SafePointE","params":{"x":7190,"rotation":0,"y":-610,"id":0,"width":128,"height":1140}},{"className":"SafePointE","params":{"x":8190,"rotation":0,"y":-840,"id":0,"width":128,"height":1766}}],[{"className":"frg.game.editor.objects::MoverPather","params":{"x":2195,"safeId":-10,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-514,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":2195,"safeId":-10,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-165,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"ToggleE","params":{"x":1170,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":1,"off":false,"y":-340,"width":64,"rotation":0,"height":816}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":2472,"safeId":-10,"rotation":0,"startTime":"0.3","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-165,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":2472,"safeId":-10,"rotation":0,"startTime":"0.3","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-514,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":2749,"safeId":-10,"rotation":0,"startTime":"0.6","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-165,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":2749,"safeId":-10,"rotation":0,"startTime":"0.6","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-514,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":3026,"safeId":-10,"rotation":0,"startTime":"0.9","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-165,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":3026,"safeId":-10,"rotation":0,"startTime":"0.9","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-514,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":3303,"safeId":-10,"rotation":0,"startTime":"1.2","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-165,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":3303,"safeId":-10,"rotation":0,"startTime":"1.2","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-514,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":3580,"safeId":-10,"rotation":0,"startTime":"1.5","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-165,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":3580,"safeId":-10,"rotation":0,"startTime":"1.5","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-514,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":3857,"safeId":-10,"rotation":0,"startTime":"1.8","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-165,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":3857,"safeId":-10,"rotation":0,"startTime":"1.8","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-514,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":4134,"safeId":-10,"rotation":0,"startTime":"2.1","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-165,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":4134,"safeId":-10,"rotation":0,"startTime":"2.1","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-514,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":4411,"safeId":-10,"rotation":0,"startTime":"2.4","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-165,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":4411,"safeId":-10,"rotation":0,"startTime":"2.4","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-514,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":4688,"safeId":-10,"rotation":0,"startTime":"2.7","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-165,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":4688,"safeId":-10,"rotation":0,"startTime":"2.7","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-514,"height":173,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-160,"length":160}],"stopOnEnd":false,"id":1,"accelDist":10,"width":13,"speed":142}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":756,"safeId":1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":true,"position":0,"y":-1285,"height":797,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":784,"length":784}],"stopOnEnd":true,"id":7,"accelDist":0,"width":13,"speed":250}},{"className":"MotorJointE","params":{"x":756,"safeId":-10,"rotation":0,"graphic":0,"y":-1285,"useWeld":false,"time":2,"snd":false,"id":6,"rate":45,"width":17,"height":17}},{"className":"ToggleE","params":{"x":756,"safeId":1,"sndId":-1,"hint":-1,"id_off":-1,"id":7,"off":false,"y":-1165,"width":247,"rotation":0,"height":172}},{"className":"PivotJointE","params":{"x":799,"safeId":-10,"rotation":-9,"graphic":0,"id":-1,"y":-1126,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":714,"safeId":-10,"rotation":-9,"graphic":0,"id":-1,"y":-1126,"width":17,"height":17}},{"className":"ToggleE","params":{"x":756,"safeId":1,"sndId":-1,"hint":-1,"id_off":-1,"id":6,"off":false,"y":-635,"width":876,"rotation":0,"height":172}},{"className":"PivotJointE","params":{"x":9990,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-204,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":10380,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-204,"width":17,"height":17}},{"className":"ToggleE","params":{"x":4260,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-570,"width":64,"rotation":0,"height":1776}},{"className":"ToggleE","params":{"x":7390,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":390,"width":64,"rotation":0,"height":1113}},{"className":"ToggleE","params":{"x":9110,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-680,"width":64,"rotation":0,"height":1113}},{"className":"ToggleE","params":{"x":1770,"safeId":-1,"sndId":-1,"hint":-1,"id_off":6,"id":80,"off":false,"y":-390,"width":28,"rotation":0,"height":270}},{"className":"ToggleE","params":{"x":1100,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":81,"off":false,"y":-370,"width":28,"rotation":0,"height":680}},{"className":"ToggleE","params":{"x":5910,"safeId":-1,"sndId":-1,"hint":-1,"id_off":81,"id":0,"off":false,"y":-740,"width":64,"rotation":0,"height":1776}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map11.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map11.json new file mode 100644 index 000000000..0a94d18b8 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map11.json @@ -0,0 +1 @@ +{"settings":{"countdown":0,"gravityY":500,"prizes":"29,36,44","theme":7},"layers":[[{"params":{"density":1,"layer":7,"vertices":[{"x":0,"y":0,"length":0},{"x":3090,"y":0,"length":3090},{"x":3090,"y":410,"length":3117.081968765018},{"x":0,"y":410,"length":410}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":1330,"isStatic":true,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":false,"y":70},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":7,"vertices":[{"x":0,"y":0,"length":0},{"x":2140,"y":0,"length":2140},{"x":2140,"y":1140,"length":2424.7061677654883},{"x":0,"y":1140,"length":1140}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":12020,"isStatic":true,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":false,"y":-1530},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":7,"vertices":[{"x":0,"y":0,"length":0},{"x":2140,"y":0,"length":2140},{"x":2140,"y":1140,"length":2424.7061677654883},{"x":0,"y":1140,"length":1140}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":8580,"isStatic":true,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":false,"y":-1620},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":0.5,"layer":6,"vertices":[{"x":0,"y":0,"length":0},{"x":1015,"y":0,"length":1015},{"x":1015,"y":135,"length":1023.9384747141793},{"x":0,"y":135,"length":135}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":12990,"isStatic":false,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":-1580},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1.5,"bg":false,"x":12090,"vertices":[{"x":0,"y":0,"length":0},{"x":2065,"y":0,"length":2065},{"x":2065,"y":1115,"length":2346.7956877410525},{"x":0,"y":1115,"length":1115}],"id":-1,"sf":true,"viscosity":1.5,"y":-1530,"rotation":0},"className":"frg.game.editor.objects::WaterShaper"},{"params":{"density":1,"layer":8,"vertices":[{"x":0,"y":0,"length":0},{"x":280,"y":-75,"length":289.8706608127149},{"x":280,"y":25,"length":281.1138559374119},{"x":0,"y":100,"length":100}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":15307,"isStatic":true,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":-1580},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":"1","type":2,"straightSides":true,"shapeH":20,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":675,"length":675}],"originOffsetRatio":0,"safeId":-1,"stretchTexture":false,"width":20,"textureOffset":0,"repeatTexture":true,"snapToGrid":true,"height":688,"x":10210,"isStatic":true,"smoothing":true,"id":-1,"rotation":0,"action":0,"wireframe":false,"graphic":true,"physic":true,"y":-1750,"textureMode":true},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"density":"1","type":2,"straightSides":true,"shapeH":20,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":675,"length":675}],"originOffsetRatio":0,"safeId":-1,"stretchTexture":false,"width":20,"textureOffset":0,"repeatTexture":true,"snapToGrid":true,"height":688,"x":9070,"isStatic":true,"smoothing":true,"id":-1,"rotation":0,"action":0,"wireframe":false,"graphic":true,"physic":true,"y":-1750,"textureMode":true},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"density":1,"layer":6,"vertices":[{"x":-45,"y":-10,"length":46.09772228646444},{"x":55,"y":45,"length":71.06335201775947},{"x":260,"y":45,"length":263.86549603917524},{"x":365,"y":-15,"length":365.3080891521566},{"x":490,"y":95,"length":499.1242330322181},{"x":490,"y":180,"length":522.0153254455275},{"x":-170,"y":185,"length":251.24689052802225},{"x":-170,"y":100,"length":197.2308292331602}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":9510,"isStatic":false,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":-1690},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":6,"vertices":[{"x":0,"y":0,"length":0},{"x":175,"y":0,"length":175},{"x":140,"y":65,"length":154.35349040433132}],"safeId":-1,"rotation":0,"isWheel":true,"line":true,"x":8455,"isStatic":false,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":-1660},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1.5,"bg":false,"x":8630,"vertices":[{"x":0,"y":0,"length":0},{"x":2065,"y":0,"length":2065},{"x":2065,"y":1115,"length":2346.7956877410525},{"x":0,"y":1115,"length":1115}],"id":-1,"sf":true,"viscosity":1.5,"y":-1620,"rotation":0},"className":"frg.game.editor.objects::WaterShaper"},{"params":{"density":1,"layer":6,"vertices":[{"x":20,"y":-5,"length":20.615528128088304},{"x":195,"y":0,"length":195},{"x":305,"y":-110,"length":324.2298567374695},{"x":325,"y":-90,"length":337.23137457834497},{"x":215,"y":20,"length":215.92822881689185},{"x":215,"y":190,"length":286.9233347080715},{"x":325,"y":300,"length":442.2951503238533},{"x":305,"y":320,"length":442.06899913927464},{"x":195,"y":210,"length":286.574597618142},{"x":20,"y":215,"length":215.92822881689185},{"x":-90,"y":325,"length":337.23137457834497},{"x":-110,"y":305,"length":324.2298567374695},{"x":0,"y":195,"length":195},{"x":0,"y":15,"length":15},{"x":-105,"y":-90,"length":138.2931668593933},{"x":-85,"y":-110,"length":139.01438774457844}],"safeId":-10,"rotation":45,"isWheel":false,"line":true,"x":2265,"isStatic":false,"rem":false,"id":1,"plr":true,"ignore":false,"graphic":true,"physic":true,"y":-126},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":9,"vertices":[{"x":250,"y":0,"length":250},{"x":246,"y":43,"length":249.7298540423231},{"x":234,"y":85,"length":248.95983611819798},{"x":216,"y":124,"length":249.06224121692955},{"x":191,"y":160,"length":249.16059078433733},{"x":160,"y":191,"length":249.16059078433733},{"x":125,"y":216,"length":249.56161563830284},{"x":85,"y":234,"length":248.95983611819798},{"x":43,"y":246,"length":249.7298540423231},{"x":0,"y":250,"length":250},{"x":-43,"y":246,"length":249.7298540423231},{"x":-85,"y":234,"length":248.95983611819798},{"x":-124,"y":216,"length":249.06224121692955},{"x":-160,"y":191,"length":249.16059078433733},{"x":-191,"y":160,"length":249.16059078433733},{"x":-216,"y":124,"length":249.06224121692955},{"x":-234,"y":85,"length":248.95983611819798},{"x":-246,"y":43,"length":249.7298540423231},{"x":-250,"y":0,"length":250},{"x":-246,"y":-43,"length":249.7298540423231},{"x":-234,"y":-85,"length":248.95983611819798},{"x":-216,"y":-125,"length":249.56161563830284},{"x":-191,"y":-160,"length":249.16059078433733},{"x":-160,"y":-191,"length":249.16059078433733},{"x":-125,"y":-216,"length":249.56161563830284},{"x":-85,"y":-234,"length":248.95983611819798},{"x":-43,"y":-246,"length":249.7298540423231},{"x":0,"y":-250,"length":250},{"x":43,"y":-246,"length":249.7298540423231},{"x":85,"y":-234,"length":248.95983611819798},{"x":125,"y":-216,"length":249.56161563830284},{"x":160,"y":-191,"length":249.16059078433733},{"x":191,"y":-160,"length":249.16059078433733},{"x":216,"y":-125,"length":249.56161563830284},{"x":234,"y":-85,"length":248.95983611819798},{"x":246,"y":-43,"length":249.7298540423231}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":14382,"isStatic":false,"rem":true,"id":-1,"plr":true,"ignore":false,"graphic":true,"physic":true,"y":-1267},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":6,"vertices":[{"x":20,"y":-5,"length":20.615528128088304},{"x":195,"y":0,"length":195},{"x":305,"y":-110,"length":324.2298567374695},{"x":325,"y":-90,"length":337.23137457834497},{"x":215,"y":20,"length":215.92822881689185},{"x":215,"y":190,"length":286.9233347080715},{"x":325,"y":300,"length":442.2951503238533},{"x":305,"y":320,"length":442.06899913927464},{"x":195,"y":210,"length":286.574597618142},{"x":20,"y":215,"length":215.92822881689185},{"x":-90,"y":325,"length":337.23137457834497},{"x":-110,"y":305,"length":324.2298567374695},{"x":0,"y":195,"length":195},{"x":0,"y":15,"length":15},{"x":-105,"y":-90,"length":138.2931668593933},{"x":-85,"y":-110,"length":139.01438774457844}],"safeId":-10,"rotation":120,"isWheel":false,"line":true,"x":3251.15,"isStatic":false,"rem":false,"id":1,"plr":true,"ignore":false,"graphic":true,"physic":true,"y":-12.5},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":6,"vertices":[{"x":20,"y":-5,"length":20.615528128088304},{"x":195,"y":0,"length":195},{"x":305,"y":-110,"length":324.2298567374695},{"x":325,"y":-90,"length":337.23137457834497},{"x":215,"y":20,"length":215.92822881689185},{"x":215,"y":190,"length":286.9233347080715},{"x":325,"y":300,"length":442.2951503238533},{"x":305,"y":320,"length":442.06899913927464},{"x":195,"y":210,"length":286.574597618142},{"x":20,"y":215,"length":215.92822881689185},{"x":-90,"y":325,"length":337.23137457834497},{"x":-110,"y":305,"length":324.2298567374695},{"x":0,"y":195,"length":195},{"x":0,"y":15,"length":15},{"x":-105,"y":-90,"length":138.2931668593933},{"x":-85,"y":-110,"length":139.01438774457844}],"safeId":-10,"rotation":21,"isWheel":false,"line":true,"x":3882.85,"isStatic":false,"rem":false,"id":1,"plr":true,"ignore":false,"graphic":true,"physic":true,"y":-112.5},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":"1","type":7,"straightSides":true,"shapeH":16,"vertices":[{"x":0,"y":0,"length":0},{"x":777,"y":-149,"length":791.1573800452095}],"originOffsetRatio":0,"safeId":-1,"stretchTexture":false,"width":790,"textureOffset":0,"repeatTexture":true,"snapToGrid":false,"height":164.7,"x":14370,"isStatic":false,"smoothing":true,"id":-1,"rotation":0,"action":0,"wireframe":false,"graphic":true,"physic":true,"y":-1270,"textureMode":true},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"density":1,"layer":0,"vertices":[{"x":0,"y":-15,"length":15},{"x":55,"y":-15,"length":57.0087712549569},{"x":55,"y":420,"length":423.5858826731599},{"x":0,"y":420,"length":420}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":3080,"isStatic":true,"rem":true,"id":-1,"plr":true,"ignore":false,"graphic":true,"physic":false,"y":10},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":0,"vertices":[{"x":0,"y":-15,"length":15},{"x":55,"y":-15,"length":57.0087712549569},{"x":55,"y":420,"length":423.5858826731599},{"x":0,"y":420,"length":420}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":2240,"isStatic":true,"rem":true,"id":-1,"plr":true,"ignore":false,"graphic":true,"physic":false,"y":10},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":0,"vertices":[{"x":0,"y":-15,"length":15},{"x":55,"y":-15,"length":57.0087712549569},{"x":55,"y":420,"length":423.5858826731599},{"x":0,"y":420,"length":420}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":3920,"isStatic":true,"rem":true,"id":-1,"plr":true,"ignore":false,"graphic":true,"physic":false,"y":10},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1.5,"bg":false,"x":1360,"vertices":[{"x":0,"y":0,"length":0},{"x":3425,"y":0,"length":3425},{"x":3425,"y":460,"length":3455.7524506248997},{"x":0,"y":460,"length":460}],"id":-1,"sf":true,"viscosity":1.5,"y":70,"rotation":0},"className":"frg.game.editor.objects::WaterShaper"},{"params":{"density":1,"layer":6,"vertices":[{"x":0,"y":0,"length":0},{"x":160,"y":-60,"length":170.88007490635061},{"x":160,"y":100,"length":188.67962264113208},{"x":0,"y":100,"length":100}],"safeId":-10,"rotation":0,"isWheel":false,"line":true,"x":1210,"isStatic":true,"rem":true,"id":80,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":60},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":6,"vertices":[{"x":0,"y":0,"length":0},{"x":175,"y":0,"length":175},{"x":140,"y":65,"length":154.35349040433132}],"safeId":-1,"rotation":0,"isWheel":true,"line":true,"x":11930,"isStatic":false,"rem":false,"id":6,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":-1653},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":0,"vertices":[{"x":0,"y":0,"length":0},{"x":1510,"y":0,"length":1510},{"x":1520,"y":2100,"length":2592.373429890069},{"x":10,"y":2100,"length":2100.0238093888365}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":10600,"isStatic":true,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":-1660},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"textureOffset":0,"isRoad":true,"vertices":[{"x":-835,"y":0,"length":835},{"x":8745,"y":15,"length":8745.012864484534}],"shape":true,"camera":false,"width":9593,"cameraOffsetY":100,"direction":90,"rotation":0,"height":83,"snapToGrid":true,"wireframe":false,"straightSides":true,"originOffsetRatio":0,"textureMode":true,"stretchTexture":false,"repeatTexture":true,"line":true,"x":660,"smoothing":true,"y":420,"lineId":0,"thick":128,"physic":true,"directed":true},"className":"frg.game.editor.objects::GroundPather"},{"params":{"density":1,"layer":0,"vertices":[{"x":-1000,"y":-945,"length":1375.872450483692},{"x":-900,"y":-945,"length":1305},{"x":-900,"y":-260,"length":936.8030742904295},{"x":410,"y":-260,"length":485.4894437575342},{"x":410,"y":100,"length":422.0189569201839},{"x":-1000,"y":100,"length":1004.987562112089}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":960,"isStatic":true,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":320},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"textureOffset":0,"isRoad":false,"vertices":[{"x":-835,"y":0,"length":835},{"x":4040,"y":-5,"length":4040.003094058221},{"x":5225,"y":-625,"length":5262.2476186511785},{"x":6490,"y":-1685,"length":6705.1715116020705},{"x":10335,"y":-1695,"length":10473.072615044737},{"x":14930,"y":-620,"length":14942.867863967746},{"x":17635,"y":-1730,"length":17719.65363656976}],"shape":false,"camera":true,"width":18483,"cameraOffsetY":100,"direction":90,"rotation":0,"height":1743,"snapToGrid":true,"wireframe":false,"straightSides":true,"originOffsetRatio":0,"textureMode":true,"stretchTexture":false,"repeatTexture":true,"line":false,"x":660,"smoothing":true,"y":130,"lineId":0,"thick":128,"physic":false,"directed":false},"className":"frg.game.editor.objects::GroundPather"},{"params":{"density":"1","type":7,"straightSides":true,"shapeH":16,"vertices":[{"x":-58,"y":-21,"length":61.68468205316454},{"x":68,"y":-22,"length":71.47027354082255}],"originOffsetRatio":0,"safeId":-1,"stretchTexture":false,"width":139,"textureOffset":0,"repeatTexture":true,"snapToGrid":false,"height":17,"x":5768,"isStatic":true,"smoothing":true,"id":2,"rotation":0,"action":0,"wireframe":false,"graphic":true,"physic":false,"y":-620,"textureMode":true},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"density":"1","type":0,"straightSides":true,"shapeH":20,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"originOffsetRatio":0,"safeId":-1,"stretchTexture":false,"width":56,"textureOffset":0,"repeatTexture":true,"snapToGrid":false,"height":20,"x":9052,"isStatic":true,"smoothing":true,"id":-1,"rotation":0,"action":0,"wireframe":false,"graphic":false,"physic":true,"y":-1752,"textureMode":true},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"density":"1","type":0,"straightSides":true,"shapeH":20,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"originOffsetRatio":0,"safeId":-1,"stretchTexture":false,"width":56,"textureOffset":0,"repeatTexture":true,"snapToGrid":false,"height":20,"x":9052,"isStatic":true,"smoothing":true,"id":-1,"rotation":0,"action":0,"wireframe":false,"graphic":false,"physic":true,"y":-2032,"textureMode":true},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"density":1,"layer":5,"vertices":[{"x":0,"y":0,"length":0},{"x":11,"y":-5,"length":12.083045973594572},{"x":26,"y":-6,"length":26.68332812825267},{"x":100,"y":0,"length":100},{"x":100,"y":100,"length":141.4213562373095},{"x":0,"y":100,"length":100},{"x":-7,"y":37,"length":37.656340767525464},{"x":-9,"y":22,"length":23.769728648009426},{"x":-6,"y":10,"length":11.661903789690601}],"safeId":-1,"rotation":27,"isWheel":false,"line":true,"x":5836,"isStatic":true,"rem":true,"id":2,"plr":false,"ignore":false,"graphic":true,"physic":false,"y":-652},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":"1","type":0,"straightSides":true,"shapeH":20,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"originOffsetRatio":0,"safeId":-1,"stretchTexture":false,"width":56,"textureOffset":0,"repeatTexture":true,"snapToGrid":false,"height":20,"x":10192,"isStatic":true,"smoothing":true,"id":-1,"rotation":0,"action":0,"wireframe":false,"graphic":false,"physic":true,"y":-1762,"textureMode":true},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"density":"1","type":0,"straightSides":true,"shapeH":20,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"originOffsetRatio":0,"safeId":-1,"stretchTexture":false,"width":56,"textureOffset":0,"repeatTexture":true,"snapToGrid":false,"height":20,"x":10192,"isStatic":true,"smoothing":true,"id":-1,"rotation":0,"action":0,"wireframe":false,"graphic":false,"physic":true,"y":-2042,"textureMode":true},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"density":1,"layer":0,"vertices":[{"x":-285,"y":-950,"length":991.8291183465022},{"x":-5,"y":-950,"length":950.013157803617},{"x":1255,"y":-1995,"length":2356.9153569867544},{"x":2780,"y":-1995,"length":3421.7575893099147},{"x":2785,"y":120,"length":2787.5840794494434},{"x":-1435,"y":115,"length":1439.6006390662656},{"x":-1435,"y":-275,"length":1461.1125897753398},{"x":-1150,"y":-275,"length":1182.4233590385468}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":5850,"isStatic":true,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":330},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"height":1905,"x":15110,"y":-420,"rotation":0,"width":895},"className":"FinishZone"},{"params":{"density":1,"layer":9,"vertices":[{"x":250,"y":0,"length":250},{"x":246,"y":43,"length":249.7298540423231},{"x":234,"y":85,"length":248.95983611819798},{"x":216,"y":124,"length":249.06224121692955},{"x":191,"y":160,"length":249.16059078433733},{"x":160,"y":191,"length":249.16059078433733},{"x":125,"y":216,"length":249.56161563830284},{"x":85,"y":234,"length":248.95983611819798},{"x":43,"y":246,"length":249.7298540423231},{"x":0,"y":250,"length":250},{"x":-43,"y":246,"length":249.7298540423231},{"x":-85,"y":234,"length":248.95983611819798},{"x":-124,"y":216,"length":249.06224121692955},{"x":-160,"y":191,"length":249.16059078433733},{"x":-191,"y":160,"length":249.16059078433733},{"x":-216,"y":124,"length":249.06224121692955},{"x":-234,"y":85,"length":248.95983611819798},{"x":-246,"y":43,"length":249.7298540423231},{"x":-250,"y":0,"length":250},{"x":-246,"y":-43,"length":249.7298540423231},{"x":-234,"y":-85,"length":248.95983611819798},{"x":-216,"y":-125,"length":249.56161563830284},{"x":-191,"y":-160,"length":249.16059078433733},{"x":-160,"y":-191,"length":249.16059078433733},{"x":-125,"y":-216,"length":249.56161563830284},{"x":-85,"y":-234,"length":248.95983611819798},{"x":-43,"y":-246,"length":249.7298540423231},{"x":0,"y":-250,"length":250},{"x":43,"y":-246,"length":249.7298540423231},{"x":85,"y":-234,"length":248.95983611819798},{"x":125,"y":-216,"length":249.56161563830284},{"x":160,"y":-191,"length":249.16059078433733},{"x":191,"y":-160,"length":249.16059078433733},{"x":216,"y":-125,"length":249.56161563830284},{"x":234,"y":-85,"length":248.95983611819798},{"x":246,"y":-43,"length":249.7298540423231}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":17192,"isStatic":false,"rem":true,"id":-1,"plr":true,"ignore":false,"graphic":true,"physic":true,"y":-2087},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":0,"vertices":[{"x":0,"y":0,"length":0},{"x":1510,"y":0,"length":1510},{"x":1510,"y":305,"length":1540.4950503003897},{"x":630,"y":310,"length":702.1395872616783},{"x":625,"y":1935,"length":2033.433057663812},{"x":1485,"y":1925,"length":2431.223971583038},{"x":1475,"y":1220,"length":1914.1643085169046},{"x":3520,"y":-525,"length":3558.9359364843867},{"x":4645,"y":-505,"length":4672.370918495234},{"x":1595,"y":2115,"length":2649.0092487569764},{"x":10,"y":2100,"length":2100.0238093888365}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":14080,"isStatic":true,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":-1580},"className":"frg.game.editor.objects::LandscapeShaper"}],[{"params":{"height":128.35,"x":4560,"y":-9,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":302.1,"x":9072,"y":-1892,"rotation":0,"width":68.25},"className":"Dec42"},{"params":{"height":302.1,"x":10212,"y":-1902,"rotation":0,"width":68.25},"className":"Dec42"},{"params":{"height":128.35,"x":7570,"y":-1730,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":128.35,"x":10920,"y":-1721,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":128.35,"x":14503,"y":-1643,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":256,"x":360,"y":-110,"rotation":0,"scaleX":1,"scaleY":1,"width":640},"className":"Dec60"},{"params":{"height":256,"x":910,"y":-110,"rotation":0,"scaleX":1,"scaleY":1,"width":256},"className":"Dec51"},{"params":{"height":256,"x":990,"y":-110,"rotation":0,"scaleX":1,"scaleY":1,"width":256},"className":"Dec51"},{"params":{"btg":true,"safeId":-1,"scaleX":1,"ag":false,"rotation":0,"height":260.3,"x":5845,"ad":0,"id":-1,"active":true,"plr":true,"scaleY":1,"y":-624,"sgos":true,"width":260.3},"className":"SpikeBall200E"}],[{"params":{"stones":false,"physic":true,"safeId":-1,"impulse":1,"rotation":0,"height":53.2,"x":5708,"count":1,"id":2,"width":53.2,"radius":1,"y":-640},"className":"Tnt1"},{"params":{"stones":false,"physic":false,"safeId":-1,"impulse":22000,"rotation":0,"height":53.2,"x":13470,"count":40,"id":6,"width":53.2,"radius":64,"y":-1650},"className":"Tnt1"}],[{"params":{"height":301.7,"x":9072,"y":-1892,"rotation":0,"width":69.2},"className":"Dec41"},{"params":{"height":301.7,"x":10212,"y":-1902,"rotation":0,"width":69.2},"className":"Dec41"}],[{"params":{"height":32,"x":540,"y":10,"rotation":0,"width":64},"className":"PlayerWP"},{"params":{"height":5457,"x":4560,"y":-80,"width":128,"id":0,"rotation":0},"className":"SafePointE"},{"params":{"height":2597,"x":7570,"y":-1810,"width":128,"id":0,"rotation":0},"className":"SafePointE"},{"params":{"height":2597,"x":10920,"y":-1801,"width":128,"id":0,"rotation":0},"className":"SafePointE"},{"params":{"height":2597,"x":14503,"y":-1723,"width":128,"id":0,"rotation":0},"className":"SafePointE"}],[{"params":{"height":914,"x":1049,"id_off":-1,"id":1,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-111,"width":64},"className":"ToggleE"},{"params":{"graphic":1,"safeId":-10,"rotation":0,"rate":50,"height":17,"x":2267,"id":1,"useWeld":false,"snd":false,"time":0,"y":25,"width":17},"className":"MotorJointE"},{"params":{"graphic":1,"safeId":-10,"rotation":75,"rate":50,"height":17,"x":3106.35,"id":1,"useWeld":false,"snd":false,"time":0,"y":28,"width":17},"className":"MotorJointE"},{"params":{"graphic":1,"safeId":-10,"rotation":-24,"rate":50,"height":17,"x":3946,"id":1,"useWeld":false,"snd":false,"time":0,"y":24,"width":17},"className":"MotorJointE"},{"params":{"snapToGrid":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1248,"y":-1040,"length":1624.5319325885841}],"safeId":-1,"stopOnEnd":true,"speed":620,"accelDist":0,"width":1261,"sideWait":0,"height":1053,"x":5845,"startTime":"0","id":2,"rotation":0,"cycle":0,"position":0,"y":-624,"body":true,"active":0},"className":"frg.game.editor.objects::MoverPather"},{"params":{"graphic":0,"safeId":-1,"rotation":0,"rate":180,"height":17,"x":5845,"id":3,"useWeld":false,"snd":false,"time":0,"y":-624,"width":17},"className":"MotorJointE"},{"params":{"height":620,"x":5400,"id_off":1,"id":3,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-610,"width":64},"className":"ToggleE"},{"params":{"height":620,"x":6090,"id_off":-1,"id":2,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-930,"width":64},"className":"ToggleE"},{"params":{"graphic":0,"safeId":-1,"rotation":0,"rate":-120,"height":17,"x":8468,"id":5,"useWeld":false,"snd":false,"time":0.2,"y":-1656,"width":17},"className":"MotorJointE"},{"params":{"height":1123,"x":8350,"id_off":81,"id":5,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-2080,"width":64},"className":"ToggleE"},{"params":{"graphic":0,"safeId":-1,"rotation":0,"rate":-123,"height":17,"x":11943,"id":6,"useWeld":false,"snd":false,"time":0.2,"y":-1649,"width":17},"className":"MotorJointE"},{"params":{"height":1123,"x":11825,"id_off":-1,"id":6,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-2073,"width":64},"className":"ToggleE"},{"params":{"height":17,"x":14380,"id":-1,"rotation":0,"safeId":-1,"graphic":0,"y":-1270,"width":17},"className":"PivotJointE"},{"params":{"graphic":0,"safeId":-1,"rotation":0,"rate":150,"height":17,"x":15130,"id":8,"useWeld":false,"snd":false,"time":0,"y":-1418,"width":17},"className":"MotorJointE"},{"params":{"height":1603,"x":15380,"id_off":-1,"id":8,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-1790,"width":64},"className":"ToggleE"},{"params":{"height":17,"x":17210,"id":9,"rotation":0,"safeId":-1,"graphic":0,"y":-2160,"width":17},"className":"PivotJointE"},{"params":{"height":2877,"x":16460,"id_off":-1,"id":9,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-2340,"width":64},"className":"ToggleE"},{"params":{"height":968,"x":1830,"id_off":-1,"id":80,"rotation":0,"safeId":-1,"off":false,"sndId":0,"hint":-1,"y":-180,"width":64},"className":"ToggleE"},{"params":{"height":968,"x":7070,"id_off":-1,"id":0,"rotation":0,"safeId":-1,"off":false,"sndId":0,"hint":-1,"y":-1600,"width":64},"className":"ToggleE"},{"params":{"height":968,"x":10220,"id_off":-1,"id":0,"rotation":0,"safeId":-1,"off":false,"sndId":0,"hint":-1,"y":-1980,"width":64},"className":"ToggleE"},{"params":{"height":968,"x":13750,"id_off":6,"id":0,"rotation":0,"safeId":-1,"off":false,"sndId":0,"hint":-1,"y":-1960,"width":64},"className":"ToggleE"},{"params":{"height":914,"x":4829,"id_off":-1,"id":81,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-541,"width":64},"className":"ToggleE"}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map12.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map12.json new file mode 100644 index 000000000..791a2357b --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map12.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"29,36,45"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":12110,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":410,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":605,"y":0,"length":605},{"x":605,"y":540,"length":810.9408116502708},{"x":0,"y":540,"length":540}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8900,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":620,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1820,"y":0,"length":1820},{"x":1820,"y":335,"length":1850.574235203765},{"x":0,"y":335,"length":335}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":150,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":400,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1185,"y":0,"length":1185},{"x":1185,"y":480,"length":1278.5245402416022},{"x":0,"y":480,"length":480}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5010,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":360,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":5,"y":0,"length":5},{"x":55,"y":0,"length":55},{"x":55,"y":85,"length":101.24228365658294},{"x":135,"y":0,"length":135},{"x":185,"y":0,"length":185},{"x":60,"y":135,"length":147.73286702694156},{"x":60,"y":495,"length":498.62310415783986},{"x":0,"y":495,"length":495},{"x":0,"y":135,"length":135},{"x":-125,"y":0,"length":125},{"x":-70,"y":0,"length":70},{"x":5,"y":85,"length":85.14693182963201}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::FinishShaper","params":{"x":11300,"rotation":0,"y":-250,"vertices":[{"x":0,"y":0,"length":0},{"x":665,"y":0,"length":665},{"x":665,"y":595,"length":892.3284148787374},{"x":0,"y":595,"length":595}]}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":9840,"viscosity":1.5,"rotation":0,"y":620,"vertices":[{"x":-975,"y":0,"length":975},{"x":825,"y":0,"length":825},{"x":825,"y":295,"length":876.1563787361249},{"x":-975,"y":295,"length":1018.6510688160103}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10540,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":590,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-250,"y":0,"length":250},{"x":0,"y":0,"length":0},{"x":75,"y":-70,"length":102.59142264341595},{"x":110,"y":-70,"length":130.38404810405297},{"x":110,"y":130,"length":170.29386365926402},{"x":80,"y":130,"length":152.64337522473747},{"x":0,"y":55,"length":55},{"x":-250,"y":55,"length":255.9785147234041}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6757,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":356,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":255,"y":510,"length":570.1973342624464},{"x":-265,"y":510,"length":574.7390712314589}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":250,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":250,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":100,"y":0,"length":100},{"x":100,"y":495,"length":505},{"x":0,"y":495,"length":495}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1060,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":250,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":100,"y":0,"length":100},{"x":100,"y":495,"length":505},{"x":0,"y":495,"length":495}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":-170,"y":470,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":14888,"textureOffset":0,"height":453.25,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":0,"y":0,"length":0},{"x":3190,"y":10,"length":3190.0156739426848},{"x":3815,"y":180,"length":3819.2440351462224},{"x":10480,"y":215,"length":10482.205159221032},{"x":10770,"y":105,"length":10770.511826278267},{"x":10940,"y":-170,"length":10941.320761224397},{"x":12285,"y":-155,"length":12285.977779566427},{"x":12870,"y":10,"length":12870.003885003298},{"x":14875,"y":40,"length":14875.05378141538}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":660,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":250,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":100,"y":0,"length":100},{"x":100,"y":495,"length":505},{"x":0,"y":495,"length":495}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":150,"viscosity":1.5,"rotation":0,"y":400,"vertices":[{"x":0,"y":0,"length":0},{"x":1185,"y":0,"length":1185},{"x":1185,"y":505,"length":1288.1187833425922},{"x":0,"y":505,"length":505}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5700,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":360,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":5,"y":0,"length":5},{"x":55,"y":0,"length":55},{"x":55,"y":85,"length":101.24228365658294},{"x":135,"y":0,"length":135},{"x":185,"y":0,"length":185},{"x":60,"y":135,"length":147.73286702694156},{"x":60,"y":495,"length":498.62310415783986},{"x":0,"y":495,"length":495},{"x":0,"y":135,"length":135},{"x":-125,"y":0,"length":125},{"x":-70,"y":0,"length":70},{"x":5,"y":85,"length":85.14693182963201}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1310,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":360,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1245,"y":0,"length":1245},{"x":1245,"y":495,"length":1339.7947604017565},{"x":1095,"y":495,"length":1201.686315142184},{"x":1095,"y":115,"length":1101.0222522728593},{"x":905,"y":115,"length":912.2773701018787},{"x":905,"y":495,"length":1031.5279928339319},{"x":0,"y":495,"length":495}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":12110,"viscosity":1.5,"rotation":0,"y":410,"vertices":[{"x":0,"y":0,"length":0},{"x":595,"y":0,"length":595},{"x":595,"y":500,"length":777.1904528492356},{"x":0,"y":500,"length":500}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3030,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":360,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":5,"y":0,"length":5},{"x":55,"y":0,"length":55},{"x":55,"y":85,"length":101.24228365658294},{"x":135,"y":0,"length":135},{"x":185,"y":0,"length":185},{"x":60,"y":135,"length":147.73286702694156},{"x":60,"y":495,"length":498.62310415783986},{"x":0,"y":495,"length":495},{"x":0,"y":135,"length":135},{"x":-125,"y":0,"length":125},{"x":-70,"y":0,"length":70},{"x":5,"y":85,"length":85.14693182963201}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4280,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":360,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":5,"y":0,"length":5},{"x":55,"y":0,"length":55},{"x":55,"y":85,"length":101.24228365658294},{"x":135,"y":0,"length":135},{"x":185,"y":0,"length":185},{"x":60,"y":135,"length":147.73286702694156},{"x":60,"y":495,"length":498.62310415783986},{"x":0,"y":495,"length":495},{"x":0,"y":135,"length":135},{"x":-125,"y":0,"length":125},{"x":-70,"y":0,"length":70},{"x":5,"y":85,"length":85.14693182963201}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4120,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":210,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":435,"y":-425,"length":608.1529412902646},{"x":1385,"y":-425,"length":1448.7408325853178},{"x":2020,"y":160,"length":2026.3267258761605},{"x":1975,"y":160,"length":1981.4704136070263},{"x":-160,"y":150,"length":219.31712199461307}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6124,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":294,"plr":false,"density":0.5,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-65,"y":0,"length":65},{"x":1335,"y":0,"length":1335},{"x":1245,"y":65,"length":1246.6956324620696},{"x":5,"y":65,"length":65.19202405202648}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7470,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":288,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":-460,"length":460},{"x":100,"y":-460,"length":470.7440918375928},{"x":100,"y":10,"length":100.4987562112089},{"x":320,"y":10,"length":320.1562118716424},{"x":320,"y":-460,"length":560.357029044876},{"x":425,"y":-460,"length":626.2786919575022},{"x":425,"y":10,"length":425.1176307799995},{"x":660,"y":10,"length":660.07575322837},{"x":660,"y":-460,"length":804.4874144447507},{"x":760,"y":-460,"length":888.3692925805124},{"x":760,"y":10,"length":760.0657866263946},{"x":985,"y":10,"length":985.0507601134066},{"x":985,"y":-470,"length":1091.386732556338},{"x":1105,"y":-470,"length":1200.80181545499},{"x":1105,"y":10,"length":1105.0452479423636},{"x":1330,"y":10,"length":1330.0375934536587},{"x":1330,"y":-455,"length":1405.675993961624},{"x":1440,"y":-455,"length":1510.1738310538956},{"x":1440,"y":100,"length":1443.4680460612906},{"x":0,"y":100,"length":100}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7310,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":1058,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":85,"y":-460,"length":467.78734484806233},{"x":1600,"y":-460,"length":1664.8123017325406},{"x":1600,"y":100,"length":1603.1219541881396},{"x":1315,"y":100,"length":1318.7968001174404},{"x":1315,"y":-275,"length":1343.4470588750419},{"x":270,"y":-275,"length":385.3894134508627},{"x":270,"y":100,"length":287.92360097775935},{"x":0,"y":100,"length":100},{"x":0,"y":-440,"length":440}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7430,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-310,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":435,"y":-425,"length":608.1529412902646},{"x":1135,"y":-425,"length":1211.9612205017122},{"x":1755,"y":150,"length":1761.3985920285052},{"x":-160,"y":150,"length":219.31712199461307}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":1220,"y":850,"direction":90,"snapToGrid":true,"cameraOffsetY":170,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":11048,"textureOffset":0,"height":68,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":true,"physic":true,"vertices":[{"x":-1400,"y":0,"length":1400},{"x":85,"y":0,"length":85},{"x":3120,"y":0,"length":3120},{"x":9635,"y":0,"length":9635}],"line":true,"shape":true,"isRoad":true,"smoothing":true,"camera":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10635,"safeId":-10,"rotation":0,"graphic":true,"isWheel":true,"y":621,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":60,"y":0,"length":60},{"x":82,"y":20,"length":84.40379138403677},{"x":76,"y":36,"length":84.09518416651456},{"x":46,"y":38,"length":59.665735560705194},{"x":37,"y":46,"length":59.033888572581766},{"x":35,"y":77,"length":84.581321815162},{"x":18,"y":82,"length":83.95236744726142},{"x":-1,"y":59,"length":59.00847396772772},{"x":-13,"y":58,"length":59.43904440685432},{"x":-38,"y":75,"length":84.07734534343957},{"x":-52,"y":66,"length":84.02380615040002},{"x":-47,"y":36,"length":59.20304046246274},{"x":-54,"y":26,"length":59.93329625508679},{"x":-83,"y":17,"length":84.72307831990054},{"x":-85,"y":0,"length":85},{"x":-58,"y":-14,"length":59.665735560705194},{"x":-54,"y":-26,"length":59.93329625508679},{"x":-65,"y":-54,"length":84.50443775329198},{"x":-52,"y":-66,"length":84.02380615040002},{"x":-25,"y":-54,"length":59.50630218724736},{"x":-13,"y":-58,"length":59.43904440685432},{"x":1,"y":-84,"length":84.00595217006948},{"x":18,"y":-82,"length":83.95236744726142},{"x":26,"y":-53,"length":59.033888572581766},{"x":37,"y":-46,"length":59.033888572581766},{"x":67,"y":-51,"length":84.20213774008353},{"x":76,"y":-36,"length":84.09518416651456},{"x":58,"y":-12,"length":59.22837157984339}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10660,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":780,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":-1010,"length":1010},{"x":170,"y":-1010,"length":1024.2070103255494},{"x":170,"y":-495,"length":523.3784481615573},{"x":465,"y":-495,"length":679.1538853603063},{"x":465,"y":-1020,"length":1120.9928634920027},{"x":645,"y":-1020,"length":1206.8243451306407},{"x":645,"y":-495,"length":813.0498139720592},{"x":1475,"y":-495,"length":1555.8438224963327},{"x":1475,"y":120,"length":1479.8733053879985},{"x":1240,"y":120,"length":1245.792920191795},{"x":1240,"y":-370,"length":1294.0247292845681},{"x":170,"y":-370,"length":407.18546143004664},{"x":170,"y":-80,"length":187.88294228055935},{"x":1020,"y":-80,"length":1023.132444994293},{"x":1020,"y":100,"length":1024.8902380255165},{"x":0,"y":100,"length":100}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8820,"safeId":-1,"rotation":0,"graphic":false,"isWheel":false,"y":603,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-155,"y":0,"length":155},{"x":145,"y":0,"length":145},{"x":145,"y":50,"length":153.37861650177967},{"x":-155,"y":50,"length":162.8649747490233}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10630,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-330,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":305,"y":-140,"length":335.5964838909967},{"x":1410,"y":-140,"length":1416.9333082400174},{"x":1775,"y":100,"length":1777.8146697561026},{"x":0,"y":100,"length":100}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":12040,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-570,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":175,"y":45,"length":180.6931099959265},{"x":190,"y":225,"length":294.49108645254444},{"x":0,"y":100,"length":100}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":12710,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-612,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":-460,"length":460},{"x":100,"y":-460,"length":470.7440918375928},{"x":100,"y":540,"length":549.1812087098392},{"x":320,"y":540,"length":627.6941930590086},{"x":320,"y":-460,"length":560.357029044876},{"x":425,"y":-460,"length":626.2786919575022},{"x":425,"y":540,"length":687.1862920635132},{"x":660,"y":540,"length":852.7602242131137},{"x":660,"y":-460,"length":804.4874144447507},{"x":760,"y":-460,"length":888.3692925805124},{"x":760,"y":540,"length":932.3089616645332},{"x":985,"y":540,"length":1123.3098414952128},{"x":985,"y":-470,"length":1091.386732556338},{"x":1105,"y":-470,"length":1200.80181545499},{"x":1105,"y":540,"length":1229.8882063016947},{"x":1330,"y":540,"length":1435.4441821262155},{"x":1330,"y":-455,"length":1405.675993961624},{"x":1440,"y":-455,"length":1510.1738310538956},{"x":1440,"y":630,"length":1571.7824276915683},{"x":0,"y":630,"length":630}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":12690,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":858,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":1600,"y":-460,"length":1664.8123017325406},{"x":1600,"y":100,"length":1603.1219541881396},{"x":1315,"y":100,"length":1318.7968001174404},{"x":1315,"y":-275,"length":1343.4470588750419},{"x":270,"y":-275,"length":385.3894134508627},{"x":270,"y":100,"length":287.92360097775935},{"x":0,"y":100,"length":100},{"x":0,"y":-460,"length":460}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":12730,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":292,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":580,"y":-270,"length":639.7655820689325},{"x":1085,"y":-270,"length":1118.0898890518597},{"x":1085,"y":100,"length":1089.5985499256137},{"x":0,"y":100,"length":100}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":12670,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1210,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":435,"y":-425,"length":608.1529412902646},{"x":1135,"y":-425,"length":1211.9612205017122},{"x":1755,"y":150,"length":1761.3985920285052},{"x":-160,"y":150,"length":219.31712199461307}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":-180,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":750,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":-1410,"length":1410},{"x":450,"y":-1410,"length":1480.0675660252812},{"x":450,"y":-620,"length":766.0939890117922},{"x":345,"y":-520,"length":624.0392615853589},{"x":345,"y":100,"length":359.2005011132362},{"x":0,"y":100,"length":100}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1320,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":210,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":435,"y":-425,"length":608.1529412902646},{"x":1385,"y":-425,"length":1448.7408325853178},{"x":2005,"y":150,"length":2010.6031433378394},{"x":-160,"y":150,"length":219.31712199461307}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":310,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":100,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":805,"y":0,"length":805},{"x":975,"y":150,"length":986.4709828474429},{"x":-160,"y":150,"length":219.31712199461307}],"line":true,"id":-1,"physic":true}}],[{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":4970,"y":-280,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":0.633813790416829,"x":7920,"y":559,"width":9.3,"height":81.4}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":11440,"y":-534,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":7410,"y":220,"width":9.3,"height":128.35}},{"className":"Sign1","params":{"x":7320,"rotation":-90,"y":220,"width":68.8,"height":69.8}},{"className":"SignPillar","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":12650,"y":-710,"width":9.3,"height":128.35}},{"className":"Sign1","params":{"x":12560,"rotation":-90,"y":-710,"width":68.8,"height":69.8}},{"className":"RemovedWipe0","params":{"x":2257,"safeId":-1,"active":true,"y":-257,"id":-1,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":2295,"safeId":-1,"active":true,"y":-257,"id":-1,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":2276,"safeId":-1,"active":true,"y":-309,"id":-1,"rotation":90,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":2276,"safeId":-1,"active":true,"y":-328,"id":-1,"rotation":90,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":2276,"safeId":-1,"active":true,"y":-257,"id":-1,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":5266,"safeId":-1,"active":true,"y":-257,"id":-1,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":5285,"safeId":-1,"active":true,"y":-257,"id":-1,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":5247,"safeId":-1,"active":true,"y":-257,"id":-1,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":5266,"safeId":-1,"active":true,"y":-328,"id":-1,"rotation":90,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":5266,"safeId":-1,"active":true,"y":-309,"id":-1,"rotation":90,"width":18,"type":0,"height":85.1}},{"className":"PlankWipe0","params":{"x":3436,"safeId":-1,"active":false,"y":364,"id":55,"rotation":0,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":3715,"safeId":-1,"active":false,"y":364,"id":55,"rotation":0,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":3785,"safeId":-1,"active":false,"y":364,"id":55,"rotation":0,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":3506,"safeId":-1,"active":false,"y":364,"id":55,"rotation":0,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":3366,"safeId":-1,"active":false,"y":364,"id":55,"rotation":0,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":3926,"safeId":-1,"active":false,"y":364,"id":55,"rotation":0,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":3856,"safeId":-1,"active":false,"y":365,"id":55,"rotation":0,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":3577,"safeId":-1,"active":false,"y":364,"id":55,"rotation":0,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":3645,"safeId":-1,"active":false,"y":364,"id":55,"rotation":0,"width":85.1,"height":18}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":330,"y":-70,"width":640,"height":256}},{"className":"Dec51","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":900,"y":-70,"width":256,"height":256}},{"className":"Dec52","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":980,"y":-70,"width":256,"height":256}}],[{"className":"Tnt1","params":{"x":8884,"safeId":-1,"rotation":0,"y":625,"count":1,"radius":1,"physic":false,"stones":false,"impulse":1,"id":3,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":13850,"safeId":-1,"rotation":0,"y":370,"count":1,"radius":1,"physic":true,"stones":false,"impulse":1,"id":5,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":13850,"safeId":-1,"rotation":0,"y":320,"count":1,"radius":1,"physic":true,"stones":false,"impulse":1,"id":5,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":13850,"safeId":-1,"rotation":0,"y":270,"count":1,"radius":1,"physic":true,"stones":false,"impulse":1,"id":5,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":13850,"safeId":-1,"rotation":0,"y":220,"count":1,"radius":1,"physic":true,"stones":false,"impulse":1,"id":5,"width":53.2,"height":53.2}}],null,[{"className":"PlayerWP","params":{"x":580,"rotation":0,"y":20,"width":64,"height":32}},{"className":"SafePointE","params":{"x":4970,"rotation":0,"y":-360,"id":0,"width":128,"height":1200}},{"className":"SafePointE","params":{"x":7920,"rotation":0,"y":500,"id":0,"width":128,"height":254}},{"className":"SafePointE","params":{"x":11440,"rotation":0,"y":-600,"id":0,"width":128,"height":1441}}],[{"className":"PivotJointE","params":{"x":3331,"safeId":1,"rotation":0,"graphic":0,"id":-1,"y":364,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3961,"safeId":1,"rotation":0,"graphic":0,"id":-1,"y":364,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6758,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":330,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":10635,"safeId":-10,"rotation":0,"graphic":1,"y":621,"useWeld":false,"time":4.5,"snd":false,"id":2,"rate":120,"width":17,"height":17}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":10528,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":607,"height":749,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-736,"length":736}],"stopOnEnd":true,"id":2,"accelDist":50,"width":13,"speed":200}},{"className":"ToggleE","params":{"x":9852,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":2,"off":false,"y":404,"width":773,"rotation":-90,"height":90}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":8830,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":623,"height":285,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":16,"y":-48,"length":50.59644256269407},{"x":64,"y":224,"length":232.96351645697658}],"stopOnEnd":true,"id":3,"accelDist":0,"width":77,"speed":450}},{"className":"ToggleE","params":{"x":8880,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":3,"off":false,"y":460,"width":64,"rotation":0,"height":619}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":13420,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":222,"height":13,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-656,"y":0,"length":656}],"stopOnEnd":true,"id":5,"accelDist":0,"width":669,"speed":1000}},{"className":"ToggleE","params":{"x":12510,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":5,"off":false,"y":-120,"width":1223,"rotation":0,"height":64}},{"className":"PivotJointE","params":{"x":6108,"safeId":-1,"rotation":0,"graphic":0,"id":7,"y":310,"width":17,"height":17}},{"className":"ToggleE","params":{"x":7143,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":7,"off":false,"y":300,"width":611,"rotation":0,"height":64}},{"className":"PivotJointE","params":{"x":3681,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":363,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3961,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":364,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3752,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":363,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3543,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":365,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3822,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":364,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3402,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":364,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3891,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":364,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3472,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":364,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3612,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":364,"width":17,"height":17}},{"className":"ToggleE","params":{"x":2170,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":55,"off":false,"y":-420,"width":64,"rotation":0,"height":1572}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map13.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map13.json new file mode 100644 index 000000000..60137e0fa --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map13.json @@ -0,0 +1 @@ +{"settings":{"gravityY":500,"theme":7,"countdown":0,"prizes":"39,46,52"},"layers":[[{"params":{"type":2,"vertices":[{"x":11,"y":0,"length":11},{"x":11,"y":-470,"length":470.1287057817253},{"x":146,"y":-467,"length":489.2903023768201},{"x":146,"y":0,"length":146}],"wireframe":false,"repeatTexture":true,"textureOffset":0,"height":483,"x":7660,"snapToGrid":true,"textureMode":true,"y":-1400,"width":148,"straightSides":true,"originOffsetRatio":0,"smoothing":true,"stretchTexture":false,"rotation":0},"className":"frg.game.editor.objects::PillarPather"},{"params":{"type":2,"vertices":[{"x":9,"y":0,"length":9},{"x":9,"y":-466,"length":466.086901768329},{"x":139,"y":-463,"length":483.41493564018066},{"x":139,"y":0,"length":139}],"wireframe":false,"repeatTexture":true,"textureOffset":0,"height":479,"x":7380,"snapToGrid":true,"textureMode":true,"y":-1400,"width":143,"straightSides":true,"originOffsetRatio":0,"smoothing":true,"stretchTexture":false,"rotation":0},"className":"frg.game.editor.objects::PillarPather"},{"params":{"layer":7,"vertices":[{"x":0,"y":0,"length":0},{"x":1385,"y":0,"length":1385},{"x":1385,"y":180,"length":1396.6477723463422},{"x":0,"y":180,"length":180}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":2890,"isStatic":true,"physic":false,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":750},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"type":2,"vertices":[{"x":8,"y":0,"length":8},{"x":8,"y":-464,"length":464.06896039274164},{"x":134,"y":-461,"length":480.0802016330188},{"x":134,"y":0,"length":134}],"wireframe":false,"repeatTexture":true,"textureOffset":0,"height":477,"x":8670,"snapToGrid":true,"textureMode":true,"y":-1400,"width":139,"straightSides":true,"originOffsetRatio":0,"smoothing":true,"stretchTexture":false,"rotation":0},"className":"frg.game.editor.objects::PillarPather"},{"params":{"type":2,"vertices":[{"x":10,"y":0,"length":10},{"x":10,"y":-468,"length":468.10682541488325},{"x":141,"y":-465,"length":485.9073985853683},{"x":141,"y":0,"length":141}],"wireframe":false,"repeatTexture":true,"textureOffset":0,"height":481,"x":8950,"snapToGrid":true,"textureMode":true,"y":-1400,"width":144,"straightSides":true,"originOffsetRatio":0,"smoothing":true,"stretchTexture":false,"rotation":0},"className":"frg.game.editor.objects::PillarPather"},{"params":{"type":2,"vertices":[{"x":12,"y":-1,"length":12.041594578792296},{"x":12,"y":-472,"length":472.1525177312941},{"x":148,"y":-469,"length":491.7977226462115},{"x":148,"y":0,"length":148}],"wireframe":false,"repeatTexture":true,"textureOffset":0,"height":485,"x":9240,"snapToGrid":true,"textureMode":true,"y":-1400,"width":149,"straightSides":true,"originOffsetRatio":0,"smoothing":true,"stretchTexture":false,"rotation":0},"className":"frg.game.editor.objects::PillarPather"},{"params":{"type":2,"vertices":[{"x":13,"y":-2,"length":13.152946437965905},{"x":13,"y":-474,"length":474.17823653137015},{"x":153,"y":-471,"length":495.22722057657535},{"x":153,"y":0,"length":153}],"wireframe":false,"repeatTexture":true,"textureOffset":0,"height":487,"x":7950,"snapToGrid":true,"textureMode":true,"y":-1400,"width":153,"straightSides":true,"originOffsetRatio":0,"smoothing":true,"stretchTexture":false,"rotation":0},"className":"frg.game.editor.objects::PillarPather"},{"params":{"height":318,"x":8800,"y":-780,"rotation":0,"width":613},"className":"FinishZone"},{"params":{"layer":8,"vertices":[{"x":-15,"y":50,"length":52.20153254455275},{"x":100,"y":50,"length":111.80339887498948},{"x":100,"y":0,"length":100},{"x":150,"y":0,"length":150},{"x":150,"y":50,"length":158.11388300841898},{"x":265,"y":50,"length":269.675731203236},{"x":185,"y":155,"length":241.3503677229434},{"x":65,"y":155,"length":168.0773631397161}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":3640,"isStatic":true,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":640},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"sf":true,"x":2800,"vertices":[{"x":0,"y":0,"length":0},{"x":1530,"y":0,"length":1530},{"x":1530,"y":200,"length":1543.0165261590687},{"x":0,"y":230,"length":230}],"id":-1,"bg":false,"density":1.5,"viscosity":1.5,"y":750,"rotation":0},"className":"frg.game.editor.objects::WaterShaper"},{"params":{"layer":6,"vertices":[{"x":0,"y":0,"length":0},{"x":15,"y":-9,"length":17.4928556845359},{"x":31,"y":-11,"length":32.89376840679705},{"x":54,"y":-1,"length":54.00925846556311},{"x":82,"y":9,"length":82.49242389456137},{"x":121,"y":16,"length":122.05326705991938},{"x":161,"y":19,"length":162.1172415260018},{"x":200,"y":15,"length":200.5617112013158},{"x":238,"y":6,"length":238.0756182392477},{"x":269,"y":-6,"length":269.0669061776271},{"x":301,"y":-25,"length":302.0364216448076},{"x":329,"y":-47,"length":332.34018715767735},{"x":356,"y":-76,"length":364.0219773585106},{"x":380,"y":-108,"length":395.04936400404443},{"x":397,"y":-143,"length":421.96919318831794},{"x":409,"y":-182,"length":447.66617026529934},{"x":414,"y":-223,"length":470.2393007820593},{"x":413,"y":-267,"length":491.79060584765136},{"x":408,"y":-301,"length":507.0157788471676},{"x":395,"y":-338,"length":519.8740232017753},{"x":377,"y":-375,"length":531.7461800520997},{"x":353,"y":-406,"length":538.0009293672271},{"x":330,"y":-431,"length":542.8268600576063},{"x":304,"y":-454,"length":546.3808195755045},{"x":274,"y":-471,"length":544.9009084228068},{"x":242,"y":-485,"length":542.0230622399752},{"x":205,"y":-494,"length":534.8467070105228},{"x":162,"y":-498,"length":523.6869293767031},{"x":127,"y":-496,"length":512.0009765615687},{"x":96,"y":-492,"length":501.27836578093013},{"x":67,"y":-484,"length":488.6153906704127},{"x":40,"y":-473,"length":474.6883187945539},{"x":16,"y":-458,"length":458.27939076506595},{"x":-7,"y":-440,"length":440.05567829537205},{"x":-31,"y":-419,"length":420.14521299188925},{"x":-52,"y":-394,"length":397.4166579296847},{"x":-69,"y":-370,"length":376.3787985527346},{"x":-82,"y":-345,"length":354.6110545372211},{"x":-91,"y":-318,"length":330.76426651015373},{"x":-97,"y":-296,"length":311.4883625434504},{"x":-100,"y":-271,"length":288.8615585362649},{"x":-102,"y":-249,"length":269.08177195789386},{"x":-111,"y":-233,"length":258.08913189051566},{"x":-123,"y":-222,"length":253.7971631047124},{"x":-140,"y":-218,"length":259.0829982843336},{"x":-156,"y":-221,"length":270.51247660690257},{"x":-168,"y":-231,"length":285.63088068344433},{"x":-176,"y":-244,"length":300.8521231435803},{"x":-178,"y":-263,"length":317.57361351346555},{"x":-176,"y":-290,"length":339.22853653547486},{"x":-170,"y":-324,"length":365.8906940603983},{"x":-160,"y":-353,"length":387.5680585394003},{"x":-146,"y":-388,"length":414.56000771902734},{"x":-126,"y":-422,"length":440.40890090914377},{"x":-106,"y":-448,"length":460.36941688170384},{"x":-83,"y":-473,"length":480.227029643272},{"x":-58,"y":-496,"length":499.3796151226039},{"x":-31,"y":-519,"length":519.9249945905659},{"x":-6,"y":-534,"length":534.0337068013591},{"x":23,"y":-549,"length":549.4815738493876},{"x":53,"y":-559,"length":561.5069011152044},{"x":88,"y":-567,"length":573.7882884827818},{"x":122,"y":-572,"length":584.8657965721709},{"x":157,"y":-574,"length":595.0840276801251},{"x":191,"y":-572,"length":603.0464327064708},{"x":222,"y":-568,"length":609.8426026443217},{"x":258,"y":-559,"length":615.6663057208832},{"x":289,"y":-548,"length":619.5361167841629},{"x":320,"y":-532,"length":620.8252572181644},{"x":351,"y":-512,"length":620.7616289688016},{"x":379,"y":-489,"length":618.6776220294379},{"x":402,"y":-466,"length":615.4348056455696},{"x":420,"y":-446,"length":612.6303942835353},{"x":439,"y":-420,"length":607.5532898437799},{"x":457,"y":-387,"length":598.8472259266131},{"x":473,"y":-352,"length":589.6041044633255},{"x":483,"y":-316,"length":577.1871446939891},{"x":488,"y":-282,"length":563.6204396577541},{"x":491,"y":-250,"length":550.9818508807708},{"x":490,"y":-220,"length":537.1219600798314},{"x":487,"y":-189,"length":522.3887441360122},{"x":481,"y":-156,"length":505.6649088081948},{"x":473,"y":-130,"length":490.5394989193021},{"x":460,"y":-101,"length":470.9575352407051},{"x":445,"y":-71,"length":450.62845005614105},{"x":426,"y":-44,"length":428.26627231198114},{"x":407,"y":-21,"length":407.54140893901814},{"x":386,"y":2,"length":386.00518131237567},{"x":364,"y":21,"length":364.6052660069517},{"x":336,"y":41,"length":338.49224511057855},{"x":306,"y":59,"length":311.6360056219435},{"x":273,"y":74,"length":282.85155117128136},{"x":243,"y":82,"length":256.46247288833507},{"x":211,"y":89,"length":229.00218339570478},{"x":180,"y":93,"length":202.60552805883654},{"x":144,"y":95,"length":172.51376756653366},{"x":111,"y":91,"length":143.5339681051144},{"x":77,"y":85,"length":114.69088891450794},{"x":45,"y":76,"length":88.32326986700618},{"x":17,"y":65,"length":67.1863081289633},{"x":5,"y":54,"length":54.230987451824994},{"x":-5,"y":39,"length":39.319206502675},{"x":-7,"y":18,"length":19.313207915827967}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":454,"isStatic":true,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-140},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":6,"vertices":[{"x":39,"y":30,"length":49.20365840057018},{"x":60,"y":16,"length":62.0966987850401},{"x":88,"y":20,"length":90.24411338142782},{"x":113,"y":40,"length":119.87076374162301},{"x":143,"y":59,"length":154.69324484281788},{"x":178,"y":77,"length":193.94071259021402},{"x":218,"y":94,"length":237.40261161158273},{"x":257,"y":107,"length":278.38462601228537},{"x":298,"y":116,"length":319.7811751807789},{"x":341,"y":121,"length":361.8314524747676},{"x":379,"y":123,"length":398.4595337044905},{"x":418,"y":123,"length":435.7212411622826},{"x":455,"y":120,"length":470.5581791872287},{"x":496,"y":112,"length":508.48795462626254},{"x":533,"y":103,"length":542.8609398363452},{"x":572,"y":90,"length":579.0371317972622},{"x":612,"y":72,"length":616.2207396704529},{"x":644,"y":53,"length":646.1772202732003},{"x":676,"y":32,"length":676.7569726275452},{"x":708,"y":6,"length":708.0254232723568},{"x":737,"y":-21,"length":737.2991251859722},{"x":770,"y":-54,"length":771.8911840408595},{"x":795,"y":-85,"length":799.5311125903731},{"x":818,"y":-118,"length":826.4671802316169},{"x":840,"y":-155,"length":854.1808941904519},{"x":856,"y":-190,"length":876.8329373375524},{"x":872,"y":-232,"length":902.3347494139855},{"x":883,"y":-275,"length":924.8318766132577},{"x":891,"y":-318,"length":946.0470389996472},{"x":895,"y":-352,"length":961.7322912328566},{"x":897,"y":-395,"length":980.1193804838266},{"x":895,"y":-438,"length":996.4281208396319},{"x":891,"y":-484,"length":1013.9709068804686},{"x":884,"y":-527,"length":1029.1671390012411},{"x":871,"y":-567,"length":1039.2930289384221},{"x":857,"y":-609,"length":1051.3467553571468},{"x":836,"y":-650,"length":1058.959867039351},{"x":817,"y":-685,"length":1066.167904225221},{"x":794,"y":-717,"length":1069.8247520038037},{"x":770,"y":-746,"length":1072.1082034944047},{"x":746,"y":-771,"length":1072.8266402359702},{"x":722,"y":-794,"length":1073.1821839743707},{"x":696,"y":-818,"length":1074.029794745006},{"x":663,"y":-841,"length":1070.910827286754},{"x":625,"y":-864,"length":1066.3587576420987},{"x":586,"y":-884,"length":1060.5904016160055},{"x":546,"y":-899,"length":1051.8160485560202},{"x":505,"y":-911,"length":1041.6074116479779},{"x":459,"y":-918,"length":1026.3552016724034},{"x":415,"y":-922,"length":1011.0929729752849},{"x":370,"y":-922,"length":993.4706840163931},{"x":325,"y":-919,"length":974.774845797736},{"x":281,"y":-913,"length":955.2643613157564},{"x":238,"y":-901,"length":931.9039650092707},{"x":197,"y":-887,"length":908.6132290474313},{"x":157,"y":-868,"length":882.0844630759574},{"x":115,"y":-841,"length":848.8262484160113},{"x":85,"y":-820,"length":824.3937166184613},{"x":62,"y":-800,"length":802.3989032893801},{"x":35,"y":-774,"length":774.7909395443393},{"x":9,"y":-747,"length":747.0542149000968},{"x":-11,"y":-722,"length":722.0837901518078},{"x":-31,"y":-694,"length":694.6920180914706},{"x":-47,"y":-668,"length":669.6514018502463},{"x":-60,"y":-644,"length":646.7889918667447},{"x":-73,"y":-618,"length":622.2965530998866},{"x":-83,"y":-593,"length":598.780427201825},{"x":-93,"y":-564,"length":571.6161299333671},{"x":-101,"y":-539,"length":548.3812542383264},{"x":-109,"y":-518,"length":529.3439335630475},{"x":-121,"y":-505,"length":519.2937511659466},{"x":-136,"y":-497,"length":515.2717729509351},{"x":-155,"y":-495,"length":518.700298823897},{"x":-169,"y":-503,"length":530.6316990154282},{"x":-178,"y":-520,"length":549.6216880728052},{"x":-178,"y":-546,"length":574.2821606144491},{"x":-171,"y":-574,"length":598.9298790342656},{"x":-161,"y":-605,"length":626.0559080465578},{"x":-145,"y":-645,"length":661.0975722236469},{"x":-130,"y":-674,"length":686.4226103502127},{"x":-110,"y":-708,"length":716.4942428240439},{"x":-87,"y":-744,"length":749.0694226839058},{"x":-61,"y":-778,"length":780.3877241474266},{"x":-37,"y":-804,"length":804.8509178723722},{"x":-6,"y":-835,"length":835.0215566079717},{"x":22,"y":-861,"length":861.2810226633349},{"x":53,"y":-884,"length":885.5873757004443},{"x":86,"y":-907,"length":911.0680545381887},{"x":123,"y":-927,"length":935.1245906295054},{"x":162,"y":-945,"length":958.785168846494},{"x":207,"y":-962,"length":984.0188006334025},{"x":261,"y":-977,"length":1011.2615883143194},{"x":317,"y":-985,"length":1034.753110650072},{"x":384,"y":-988,"length":1060},{"x":444,"y":-987,"length":1082.2684509861683},{"x":494,"y":-980,"length":1097.46799497753},{"x":541,"y":-970,"length":1110.6669167666785},{"x":587,"y":-957,"length":1122.6833925911615},{"x":623,"y":-942,"length":1129.3772620342593},{"x":661,"y":-924,"length":1136.0884648653027},{"x":705,"y":-897,"length":1140.8917564782384},{"x":747,"y":-866,"length":1143.6629748313094},{"x":787,"y":-831,"length":1144.521734175459},{"x":828,"y":-788,"length":1143.0345576578163},{"x":867,"y":-741,"length":1140.5130424506333},{"x":905,"y":-684,"length":1134.4077750086165},{"x":929,"y":-636,"length":1125.8494570767443},{"x":948,"y":-583,"length":1112.9209316029599},{"x":960,"y":-537,"length":1099.9859090006562},{"x":970,"y":-479,"length":1081.8229984613934},{"x":976,"y":-408,"length":1057.8468698256852},{"x":972,"y":-346,"length":1031.746092796091},{"x":967,"y":-296,"length":1011.2887817038218},{"x":960,"y":-262,"length":995.1100441659706},{"x":950,"y":-221,"length":975.3671103743452},{"x":935,"y":-179,"length":951.9800418076001},{"x":919,"y":-144,"length":930.2134163728235},{"x":901,"y":-110,"length":907.6899250294673},{"x":881,"y":-78,"length":884.4461543813733},{"x":856,"y":-43,"length":857.079342884893},{"x":827,"y":-9,"length":827.0489707387344},{"x":800,"y":19,"length":800.2255931923197},{"x":767,"y":50,"length":768.6279984491848},{"x":733,"y":76,"length":736.9294403129787},{"x":697,"y":101,"length":704.2797739535049},{"x":658,"y":124,"length":669.5819591356983},{"x":616,"y":145,"length":632.8356816741609},{"x":577,"y":159,"length":598.5064744846125},{"x":534,"y":171,"length":560.7111555872596},{"x":495,"y":179,"length":526.3705918837031},{"x":450,"y":186,"length":486.92504556656354},{"x":412,"y":187,"length":452.45220742085013},{"x":363,"y":188,"length":408.794569435554},{"x":322,"y":185,"length":371.36101033899615},{"x":280,"y":179,"length":332.3266465392145},{"x":238,"y":170,"length":292.4790590794493},{"x":194,"y":157,"length":249.56962956257317},{"x":149,"y":139,"length":203.7694775966214},{"x":112,"y":120,"length":164.14627622946554},{"x":79,"y":100,"length":127.4401820463232},{"x":55,"y":85,"length":101.24228365658294},{"x":39,"y":69,"length":79.25906888173743},{"x":35,"y":51,"length":61.85466837676846}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":220,"isStatic":true,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":20},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":7,"vertices":[{"x":0,"y":0,"length":0},{"x":1275,"y":0,"length":1275},{"x":1275,"y":280,"length":1305.3830855346641},{"x":0,"y":280,"length":280}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":70,"isStatic":true,"physic":false,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":520},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":8,"vertices":[{"x":0,"y":25,"length":25},{"x":865,"y":25,"length":865.3611962643114},{"x":865,"y":120,"length":873.2840316872856},{"x":815,"y":120,"length":823.786987030021},{"x":815,"y":65,"length":817.5879157619687},{"x":710,"y":65,"length":712.9691437923524},{"x":710,"y":120,"length":720.0694410957876},{"x":655,"y":120,"length":665.9016443890193},{"x":655,"y":65,"length":658.2172893505609},{"x":540,"y":65,"length":543.8979683727455},{"x":540,"y":120,"length":553.1726674375732},{"x":490,"y":120,"length":504.47993022517755},{"x":490,"y":65,"length":494.2924235713107},{"x":375,"y":65,"length":380.5916446797013},{"x":375,"y":120,"length":393.7321424522006},{"x":320,"y":120,"length":341.76014981270123},{"x":320,"y":65,"length":326.5348373451139},{"x":210,"y":65,"length":219.82947936980608},{"x":210,"y":125,"length":244.38698819699874},{"x":160,"y":125,"length":203.03940504246953},{"x":160,"y":65,"length":172.69916039170545},{"x":45,"y":65,"length":79.05694150420949},{"x":45,"y":125,"length":132.85330255586422},{"x":0,"y":125,"length":125}],"rem":false,"plr":false,"rotation":-180,"safeId":-1,"line":true,"x":1144,"isStatic":false,"physic":true,"id":-1,"isWheel":false,"density":0.5,"ignore":false,"graphic":true,"y":594},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":6,"vertices":[{"x":0,"y":0,"length":0},{"x":865,"y":5,"length":865.0144507463444},{"x":865,"y":45,"length":866.1697293256098},{"x":187,"y":40,"length":191.23022773609824},{"x":0,"y":80,"length":80}],"rem":false,"plr":false,"rotation":-180,"safeId":-1,"line":true,"x":1144,"isStatic":false,"physic":true,"id":-1,"isWheel":false,"density":0.5,"ignore":false,"graphic":true,"y":497},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"sf":true,"x":40,"vertices":[{"x":0,"y":0,"length":0},{"x":1515,"y":0,"length":1515},{"x":1525,"y":270,"length":1548.7172111137656},{"x":5,"y":275,"length":275.04545078950133}],"id":-1,"bg":false,"density":1.5,"viscosity":1.5,"y":520,"rotation":0},"className":"frg.game.editor.objects::WaterShaper"},{"params":{"vertices":[{"x":0,"y":0,"length":0},{"x":2325,"y":5,"length":2325.00537633787},{"x":2845,"y":420,"length":2875.8346614504803},{"x":4295,"y":420,"length":4315.4866469495655},{"x":4630,"y":270,"length":4637.865888531061},{"x":4690,"y":-210,"length":4694.69913839002},{"x":4960,"y":-385,"length":4974.919597340242},{"x":5350,"y":-410,"length":5365.687281234344},{"x":5550,"y":-525,"length":5574.775780244439},{"x":5925,"y":-1155,"length":6036.526319001682},{"x":6540,"y":-1870,"length":6802.095265431086},{"x":6910,"y":-1965,"length":7183.96304277799},{"x":9395,"y":-1960,"length":9597.271747741646},{"x":10095,"y":-1945,"length":10280.663889068643},{"x":10450,"y":-1830,"length":10609.024460335644},{"x":10815,"y":-1690,"length":10946.247073769164}],"textureMode":true,"isRoad":false,"shape":false,"repeatTexture":true,"rotation":0,"direction":90,"height":2398,"width":10828,"wireframe":false,"cameraOffsetY":120,"directed":false,"textureOffset":0,"thick":128,"camera":true,"lineId":-1,"x":-250,"snapToGrid":true,"smoothing":true,"y":590,"straightSides":true,"line":false,"originOffsetRatio":0,"physic":false,"stretchTexture":false},"className":"frg.game.editor.objects::GroundPather"},{"params":{"layer":8,"vertices":[{"x":2485,"y":-767,"length":2600.675681433577},{"x":2513,"y":-766,"length":2627.151499247807},{"x":2564,"y":-763,"length":2675.119623493499},{"x":2617,"y":-754,"length":2723.4546076628485},{"x":2687,"y":-734,"length":2785.4487968727767},{"x":2729,"y":-715,"length":2821.1107741455316},{"x":2776,"y":-687,"length":2859.7456180576623},{"x":2827,"y":-648,"length":2900.3160172643256},{"x":2875,"y":-601,"length":2937.145893550404},{"x":2912,"y":-553,"length":2964.043353259193},{"x":2944,"y":-500,"length":2986.157397057295},{"x":2969,"y":-439,"length":3001.2800602409634},{"x":2986,"y":-382,"length":3010.335529471756},{"x":2994,"y":-318,"length":3010.8404142365303},{"x":2995,"y":-251,"length":3005.4992929628183},{"x":2987,"y":-179,"length":2992.3586015048395},{"x":2965,"y":-109,"length":2967.0028648452635},{"x":2937,"y":-48,"length":2937.392210788338},{"x":2899,"y":10,"length":2899.017247275359},{"x":2854,"y":63,"length":2854.695255189247},{"x":2795,"y":113,"length":2797.2833249422556},{"x":2737,"y":151,"length":2741.1621622954012},{"x":2677,"y":178,"length":2682.9112918618835},{"x":2617,"y":197,"length":2624.40431336332},{"x":2555,"y":204,"length":2563.1310930188492},{"x":2498,"y":208,"length":2506.6447694079034},{"x":1943,"y":206,"length":1953.88971029585},{"x":1939,"y":173,"length":1946.702339855788},{"x":1933,"y":139,"length":1937.9912280503233},{"x":1919,"y":105,"length":1921.8704430840285},{"x":1903,"y":74,"length":1904.4382373813019},{"x":1880,"y":44,"length":1880.514823126901},{"x":1851,"y":16,"length":1851.069150518154},{"x":1813,"y":-10,"length":1813.0275783892532},{"x":1770,"y":-31,"length":1770.2714481118426},{"x":1735,"y":-40,"length":1735.461033846626},{"x":1699,"y":-45,"length":1699.5958343088512},{"x":1662,"y":-45,"length":1662.6090941649513},{"x":1625,"y":-38,"length":1625.444246967579},{"x":1586,"y":-27,"length":1586.229806806063},{"x":1555,"y":-14,"length":1555.0630212309725},{"x":1524,"y":7,"length":1524.016076030696},{"x":1495,"y":32,"length":1495.3424356982584},{"x":1471,"y":62,"length":1472.3060143869548},{"x":1452,"y":94,"length":1455.0395183636765},{"x":1436,"y":129,"length":1441.7825772286194},{"x":1428,"y":165,"length":1437.500956521421},{"x":1423,"y":206,"length":1437.8334395888837},{"x":810,"y":205,"length":835.5387483534201},{"x":715,"y":195,"length":741.1140263144397},{"x":661,"y":178,"length":684.5472956633457},{"x":604,"y":154,"length":623.3233510787159},{"x":563,"y":132,"length":578.2672392588049},{"x":515,"y":97,"length":524.0553405891404},{"x":478,"y":64,"length":482.26548705044195},{"x":442,"y":21,"length":442.49858756836727},{"x":412,"y":-20,"length":412.48515124789645},{"x":387,"y":-63,"length":392.0943763942554},{"x":366,"y":-112,"length":382.7531841800928},{"x":351,"y":-161,"length":386.1631779442468},{"x":342,"y":-212,"length":402.3779318004406},{"x":337,"y":-267,"length":429.95116001704196},{"x":340,"y":-326,"length":471.03715352400815},{"x":347,"y":-375,"length":510.91486570660675},{"x":361,"y":-426,"length":558.3878580341803},{"x":382,"y":-480,"length":613.4525246504411},{"x":406,"y":-530,"length":667.6346306176755},{"x":441,"y":-574,"length":723.8487411054881},{"x":476,"y":-616,"length":778.4805713696393},{"x":520,"y":-656,"length":837.0997551068809},{"x":558,"y":-685,"length":883.5094792926673},{"x":601,"y":-710,"length":930.2155664145811},{"x":653,"y":-733,"length":981.6812109845029},{"x":710,"y":-751,"length":1033.4897193489637},{"x":778,"y":-760,"length":1087.6047076029047}],"rem":true,"plr":false,"rotation":0,"safeId":3,"line":true,"x":6698,"isStatic":false,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-1952},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"action":0,"type":2,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":983,"y":666,"length":1187.3689401361314}],"snapToGrid":false,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":682.6,"x":10153,"isStatic":true,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":20,"y":-241,"width":996},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"action":0,"type":2,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":983,"y":666,"length":1187.3689401361314}],"snapToGrid":false,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":682.6,"x":10193,"isStatic":true,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":20,"y":-291,"width":996},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"action":0,"type":2,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":983,"y":666,"length":1187.3689401361314}],"snapToGrid":false,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":682.6,"x":10243,"isStatic":true,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":20,"y":-341,"width":996},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"action":0,"type":2,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":983,"y":666,"length":1187.3689401361314}],"snapToGrid":false,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":682.6,"x":10283,"isStatic":true,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":20,"y":-391,"width":996},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"action":0,"type":2,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":983,"y":666,"length":1187.3689401361314}],"snapToGrid":false,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":682.6,"x":10323,"isStatic":true,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":20,"y":-441,"width":996},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"action":0,"type":2,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":983,"y":666,"length":1187.3689401361314}],"snapToGrid":false,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":682.6,"x":10363,"isStatic":true,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":20,"y":-491,"width":996},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"action":0,"type":2,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":983,"y":666,"length":1187.3689401361314}],"snapToGrid":false,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":682.6,"x":10413,"isStatic":true,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":20,"y":-541,"width":996},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"action":0,"type":2,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":983,"y":666,"length":1187.3689401361314}],"snapToGrid":false,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":682.6,"x":10453,"isStatic":true,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":20,"y":-591,"width":996},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"action":0,"type":2,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":983,"y":666,"length":1187.3689401361314}],"snapToGrid":false,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":682.6,"x":10503,"isStatic":true,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":20,"y":-641,"width":996},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"action":0,"type":2,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":983,"y":666,"length":1187.3689401361314}],"snapToGrid":false,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":682.6,"x":10543,"isStatic":true,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":20,"y":-691,"width":996},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"action":0,"type":2,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":983,"y":666,"length":1187.3689401361314}],"snapToGrid":false,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":682.6,"x":10583,"isStatic":true,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":20,"y":-731,"width":996},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"action":0,"type":2,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":481,"y":-549,"length":729.9054733319925}],"snapToGrid":false,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":562.2,"x":10130,"isStatic":true,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":20,"y":-210,"width":496},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"layer":0,"vertices":[{"x":-1320,"y":-2670,"length":2978.472763011272},{"x":2970,"y":-4500,"length":5391.743688270058},{"x":14281,"y":-4440,"length":14955.285386778816},{"x":12420,"y":-254,"length":12422.59699096771},{"x":10720,"y":-1393,"length":10810.127150038523},{"x":10698,"y":-2687,"length":11030.284357168677},{"x":9960,"y":-3512,"length":10561.048432802494},{"x":7046,"y":-3500,"length":7867.408467850134},{"x":7040,"y":-2840,"length":7591.258130244288},{"x":5966,"y":-2846,"length":6610.058396111187},{"x":5444,"y":-2240,"length":5886.827328875886},{"x":5443,"y":-1990,"length":5795.373068232968},{"x":5046,"y":-1520,"length":5269.963567236495},{"x":5046,"y":-1250,"length":5198.52055877439},{"x":4248,"y":-1252,"length":4428.657584415395},{"x":4128,"y":-1104,"length":4273.078515543565},{"x":4133,"y":-606,"length":4177.191041836607},{"x":3031,"y":-205,"length":3037.9246205263225},{"x":2434,"y":-205,"length":2442.6176532564405},{"x":1130,"y":-1735,"length":2070.5373698631956},{"x":345,"y":-1735,"length":1768.9686260643516},{"x":-20,"y":-1335,"length":1335.1498043290874},{"x":-20,"y":-495,"length":495.40387564087547},{"x":-5,"y":-465,"length":465.02688094345683},{"x":20,"y":-445,"length":445.44921147084773},{"x":230,"y":-320,"length":394.0812099047606},{"x":230,"y":90,"length":246.9817807045694},{"x":1445,"y":85,"length":1447.4978411037441},{"x":1445,"y":-195,"length":1458.0980762623617},{"x":2110,"y":-195,"length":2118.991505410062},{"x":2385,"y":70,"length":2386.0270325375614},{"x":3025,"y":70,"length":3025.8098089602395},{"x":3025,"y":270,"length":3037.025683131442},{"x":4386,"y":272,"length":4394.426014851087},{"x":4380,"y":-405,"length":4398.6844624273745},{"x":4397,"y":-438,"length":4418.761478061471},{"x":4418,"y":-455,"length":4441.36791990936},{"x":4443,"y":-465,"length":4467.266949713214},{"x":4470,"y":-468,"length":4494.432555951864},{"x":5130,"y":-480,"length":5152.407204404559},{"x":5194,"y":-485,"length":5216.5947705375775},{"x":5246,"y":-498,"length":5269.584423842169},{"x":5298,"y":-520,"length":5323.457898772188},{"x":5352,"y":-547,"length":5379.880389004945},{"x":5396,"y":-585,"length":5427.618354306058},{"x":5445,"y":-637,"length":5482.134073515532},{"x":5481,"y":-695,"length":5524.887872165371},{"x":5514,"y":-788,"length":5570.021543943973},{"x":5522,"y":-866,"length":5589.493715892344},{"x":5516,"y":-942,"length":5595.857396324534},{"x":5490,"y":-1020,"length":5583.950214677778},{"x":5495,"y":-1080,"length":5600.127230697532},{"x":5520,"y":-1114,"length":5631.287241830237},{"x":5556,"y":-1148,"length":5673.362318766535},{"x":5608,"y":-1174,"length":5729.567173879716},{"x":5694,"y":-1198,"length":5818.663076686947},{"x":5752,"y":-1220,"length":5879.9578229779845},{"x":5812,"y":-1260,"length":5947.011350249804},{"x":5855,"y":-1301,"length":5997.801763979866},{"x":5891,"y":-1347,"length":6043.036488388929},{"x":5922,"y":-1396,"length":6084.315902383768},{"x":5941,"y":-1452,"length":6115.863389579594},{"x":5953,"y":-1510,"length":6141.523345229585},{"x":5956,"y":-1563,"length":6157.670419890951},{"x":5955,"y":-1611,"length":6169.06362424639},{"x":5938,"y":-1681,"length":6171.353579240133},{"x":5915,"y":-1748,"length":6167.878808796425},{"x":5933,"y":-1791,"length":6197.4325329123185},{"x":5980,"y":-1824,"length":6251.989763267371},{"x":6053,"y":-1855,"length":6330.863606175701},{"x":6777,"y":-2040,"length":7077.381507309042},{"x":9358,"y":-2040,"length":9577.774480535652},{"x":9425,"y":-2049,"length":9645.155571581},{"x":9489,"y":-2065,"length":9711.093965151404},{"x":9547,"y":-2089,"length":9772.877263119597},{"x":9598,"y":-2110,"length":9827.19207098345},{"x":9647,"y":-2145,"length":9882.592473637675},{"x":9696,"y":-2189,"length":9940.027012035733},{"x":9736,"y":-2236,"length":9989.46404968755},{"x":9771,"y":-2292,"length":10036.219656822981},{"x":9802,"y":-2356,"length":10081.167591107689},{"x":10244,"y":-2356,"length":10511.435296856467},{"x":10245,"y":-1505,"length":10354.95292118704},{"x":10237,"y":-1449,"length":10339.04105804789},{"x":10222,"y":-1399,"length":10317.290584257089},{"x":10201,"y":-1358,"length":10290.99436400584},{"x":10173,"y":-1318,"length":10258.023835027876},{"x":10140,"y":-1284,"length":10220.971382407839},{"x":10098,"y":-1253,"length":10175.441661176186},{"x":10046,"y":-1220,"length":10119.80810094737},{"x":9991,"y":-1204,"length":10063.284602951464},{"x":9927,"y":-1194,"length":9998.548144605797},{"x":9125,"y":-1192,"length":9202.52622924814},{"x":9131,"y":-1224,"length":9212.672630675639},{"x":9141,"y":-1249,"length":9225.935291340385},{"x":9144,"y":-1283,"length":9233.570544486029},{"x":9141,"y":-1324,"length":9236.38765968601},{"x":9130,"y":-1369,"length":9232.066994990884},{"x":9112,"y":-1404,"length":9219.53144145623},{"x":9080,"y":-1440,"length":9193.475947648963},{"x":9043,"y":-1469,"length":9161.539717754871},{"x":8987,"y":-1486,"length":9109.026567092666},{"x":8932,"y":-1487,"length":9054.931971031036},{"x":8880,"y":-1475,"length":9001.667901005902},{"x":8841,"y":-1455,"length":8959.927789887595},{"x":8800,"y":-1416,"length":8913.195611002824},{"x":8773,"y":-1376,"length":8880.253656287077},{"x":8758,"y":-1330,"length":8858.412047314123},{"x":8753,"y":-1295,"length":8848.278589646688},{"x":8757,"y":-1250,"length":8845.764466681216},{"x":8760,"y":-1222,"length":8844.82244027544},{"x":8731,"y":-1193,"length":8812.128573732909},{"x":8697,"y":-1182,"length":8776.954654092728},{"x":8613,"y":-1183,"length":8693.863237939737},{"x":8559,"y":-1179,"length":8639.82187316382},{"x":8517,"y":-1163,"length":8596.037342869096},{"x":8479,"y":-1142,"length":8555.559888166292},{"x":8443,"y":-1115,"length":8516.306358979813},{"x":8407,"y":-1084,"length":8476.59748955912},{"x":8378,"y":-1049,"length":8443.416666255433},{"x":8350,"y":-1007,"length":8410.50230366772},{"x":8330,"y":-965,"length":8385.709570453773},{"x":8318,"y":-921,"length":8368.83295328566},{"x":8311,"y":-872,"length":8356.620429336252},{"x":8309,"y":-825,"length":8349.856645476017},{"x":8313,"y":-782,"length":8349.700174257756},{"x":8324,"y":-738,"length":8356.651243171513},{"x":8340,"y":-696,"length":8368.991337072826},{"x":8358,"y":-660,"length":8384.018368300489},{"x":8384,"y":-622,"length":8407.041096604678},{"x":8416,"y":-589,"length":8436.585624528445},{"x":8451,"y":-558,"length":8469.401690792567},{"x":8487,"y":-535,"length":8503.84583585568},{"x":8530,"y":-515,"length":8545.5324585423},{"x":8573,"y":-501,"length":8587.626563841723},{"x":8624,"y":-492,"length":8638.022921942265},{"x":8670,"y":-490,"length":8683.835558092978},{"x":8714,"y":-495,"length":8728.047948997531},{"x":8758,"y":-505,"length":8772.54746353646},{"x":8802,"y":-520,"length":8817.346766459852},{"x":8848,"y":-545,"length":8864.76897612115},{"x":8883,"y":-573,"length":8901.461565383519},{"x":8921,"y":-607,"length":8941.626809479358},{"x":8955,"y":-647,"length":8978.342497365535},{"x":8980,"y":-692,"length":9006.62334063105},{"x":9000,"y":-744,"length":9030.699640670151},{"x":9009,"y":-809,"length":9045.250798070776},{"x":9007,"y":-841,"length":9046.17764583473},{"x":10247,"y":-843,"length":10281.617479754826},{"x":12060,"y":371,"length":12065.705159666384},{"x":7220,"y":1404,"length":7355.244115595348},{"x":3020,"y":1140,"length":3228.0024783137947},{"x":-1320,"y":1125,"length":1734.3658783543915}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":-130,"isStatic":true,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":630},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"vertices":[{"x":0,"y":0,"length":0},{"x":2170,"y":-30,"length":2170.2073633641558},{"x":3090,"y":-1165,"length":3302.321153370762}],"textureMode":true,"isRoad":false,"shape":false,"repeatTexture":true,"rotation":0,"direction":90,"height":1178,"width":3103,"wireframe":false,"cameraOffsetY":120,"directed":false,"textureOffset":0,"thick":128,"camera":true,"lineId":-1,"x":7800,"snapToGrid":true,"smoothing":true,"y":240,"straightSides":true,"line":false,"originOffsetRatio":0,"physic":false,"stretchTexture":false},"className":"frg.game.editor.objects::GroundPather"}],[{"params":{"height":128.35,"x":1890,"y":375,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":128.35,"x":8180,"y":-1470,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":70.65,"x":8180,"y":-1520,"rotation":0,"width":70.65},"className":"Sign2"},{"params":{"height":128.35,"x":1760,"y":375,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":90.05,"x":1760,"y":290,"rotation":0,"width":102},"className":"Sign21"},{"params":{"height":128.35,"x":1650,"y":370,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":128.35,"x":4510,"y":95,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":128.35,"x":6867,"y":-1471,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":128.35,"x":9960,"y":-1790,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":90.05,"x":1890,"y":290,"rotation":0,"width":102},"className":"Sign21"},{"params":{"height":18,"x":3529,"id":3,"width":85.1,"safeId":-1,"y":490,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3595,"id":3,"width":85.1,"safeId":-1,"y":466,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":2943,"id":3,"width":85.1,"safeId":-1,"y":717,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3661,"id":3,"width":85.1,"safeId":-1,"y":441,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3726,"id":3,"width":85.1,"safeId":-1,"y":415,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3072,"id":3,"width":85.1,"safeId":-1,"y":665,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3922,"id":3,"width":85.1,"safeId":-1,"y":340,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3988,"id":3,"width":85.1,"safeId":-1,"y":315,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3138,"id":3,"width":85.1,"safeId":-1,"y":640,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3792,"id":3,"width":85.1,"safeId":-1,"y":390,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3007,"id":3,"width":85.1,"safeId":-1,"y":691,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3204,"id":3,"width":85.1,"safeId":-1,"y":616,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":4053,"id":3,"width":85.1,"safeId":-1,"y":290,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":4118,"id":3,"width":85.1,"safeId":-1,"y":264,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3268,"id":3,"width":85.1,"safeId":-1,"y":591,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3334,"id":3,"width":85.1,"safeId":-1,"y":566,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3399,"id":3,"width":85.1,"safeId":-1,"y":540,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3465,"id":3,"width":85.1,"safeId":-1,"y":516,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":3858,"id":3,"width":85.1,"safeId":-1,"y":366,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":4183,"id":3,"width":85.1,"safeId":-1,"y":240,"rotation":-21,"active":false},"className":"PlankWipe0"},{"params":{"height":18,"x":4248,"id":3,"width":85.1,"safeId":-1,"y":215,"rotation":-21,"active":false},"className":"PlankWipe0"}],[{"params":{"impulse":1,"stones":false,"width":53.2,"safeId":1,"height":53.2,"x":3765,"physic":false,"id":21,"radius":1,"count":1,"y":615,"rotation":0},"className":"Tnt1"},{"params":{"rate":1,"height":128,"x":5035,"id":-1,"rotation":0,"speed":1500,"y":-750,"width":230,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":5427,"id":-1,"rotation":0,"speed":1500,"y":-1498,"width":225,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":10249,"id":-1,"rotation":-144,"speed":1000,"y":-659,"width":398,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":10370,"id":-1,"rotation":-180,"speed":1000,"y":-1200,"width":454,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":10360,"id":-1,"rotation":-180,"speed":1000,"y":-970,"width":454,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":9900,"id":-1,"rotation":-90,"speed":1000,"y":-380,"width":339,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":9700,"id":-1,"rotation":-90,"speed":1000,"y":-380,"width":339,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":9480,"id":-1,"rotation":-90,"speed":1000,"y":-380,"width":339,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":9280,"id":-1,"rotation":-90,"speed":1000,"y":-380,"width":339,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":9060,"id":-1,"rotation":-90,"speed":1000,"y":-380,"width":339,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":10350,"id":-1,"rotation":-180,"speed":1000,"y":-1640,"width":454,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":10350,"id":-1,"rotation":-180,"speed":1000,"y":-1420,"width":454,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":10155,"id":-1,"rotation":-144,"speed":1000,"y":-537,"width":391,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":10110,"id":-1,"rotation":-144,"speed":1000,"y":-380,"width":236,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":10420,"id":-1,"rotation":-144,"speed":1000,"y":-730,"width":236,"safeId":-1},"className":"GeyserE"}],null,[{"params":{"height":32,"x":616,"y":-211,"rotation":0,"width":64},"className":"PlayerWP"},{"params":{"height":1389,"x":1650,"y":300,"width":128,"id":1,"rotation":0},"className":"SafePointE"},{"params":{"height":1331,"x":4510,"y":20,"width":128,"id":2,"rotation":0},"className":"SafePointE"},{"params":{"height":1514,"x":6870,"y":-1540,"width":128,"id":3,"rotation":0},"className":"SafePointE"},{"params":{"height":1918,"x":9960,"y":-1860,"width":128,"id":4,"rotation":0},"className":"SafePointE"}],[{"params":{"height":17,"x":308,"y":483,"rotation":0,"graphic":1,"id":61,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":462,"y":483,"rotation":0,"graphic":1,"id":61,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":632,"y":483,"rotation":0,"graphic":1,"id":61,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":796,"y":483,"rotation":0,"graphic":1,"id":61,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":959,"y":483,"rotation":0,"graphic":1,"id":61,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":1119,"y":483,"rotation":0,"graphic":1,"id":61,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":630,"x":4214,"id_off":-1,"id":21,"safeId":1,"rotation":-18,"off":false,"sndId":-1,"y":194,"width":45,"hint":-1},"className":"ToggleE"},{"params":{"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":464,"length":464}],"width":13,"speed":250,"stopOnEnd":false,"rotation":0,"safeId":3,"height":477,"x":8388,"sideWait":1.5,"id":51,"active":0,"accelDist":0,"startTime":"0","snapToGrid":true,"position":0,"cycle":0,"y":-2360,"body":false},"className":"frg.game.editor.objects::MoverPather"},{"params":{"height":1398,"x":7400,"id_off":-1,"id":51,"safeId":3,"rotation":0,"off":false,"sndId":-1,"y":-1570,"width":64,"hint":-1},"className":"ToggleE"},{"params":{"height":808,"x":604,"id_off":-1,"id":0,"safeId":-1,"rotation":0,"off":false,"sndId":0,"y":-1159,"width":122,"hint":-1},"className":"ToggleE"},{"params":{"height":808,"x":4354,"id_off":-1,"id":0,"safeId":-1,"rotation":0,"off":false,"sndId":0,"y":-239,"width":122,"hint":-1},"className":"ToggleE"},{"params":{"height":808,"x":9774,"id_off":-1,"id":0,"safeId":-1,"rotation":0,"off":false,"sndId":0,"y":-2239,"width":122,"hint":-1},"className":"ToggleE"},{"params":{"height":388,"x":9084,"id_off":-1,"id":0,"safeId":-1,"rotation":0,"off":false,"sndId":0,"y":-599,"width":122,"hint":-1},"className":"ToggleE"},{"params":{"height":17,"x":3040,"y":680,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3171,"y":629,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3105,"y":655,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":2974,"y":705,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3236,"y":605,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3300,"y":579,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3431,"y":530,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3496,"y":504,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3365,"y":555,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3693,"y":429,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3628,"y":455,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3562,"y":479,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3759,"y":403,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3954,"y":329,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3888,"y":353,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3824,"y":379,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":4019,"y":304,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":4084,"y":278,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":4150,"y":253,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":4218,"y":225,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":4283,"y":200,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":2910,"y":728,"rotation":-21,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":1550,"x":1760,"id_off":-1,"id":3,"safeId":-1,"rotation":0,"off":false,"sndId":-1,"y":170,"width":64,"hint":-1},"className":"ToggleE"},{"params":{"height":808,"x":1994,"id_off":61,"id":0,"safeId":-1,"rotation":0,"off":false,"sndId":-1,"y":291,"width":122,"hint":-1},"className":"ToggleE"}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map14.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map14.json new file mode 100644 index 000000000..0addadf1c --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map14.json @@ -0,0 +1 @@ +{"settings":{"gravityY":500,"theme":7,"countdown":0,"prizes":"26,33,42"},"layers":[[{"params":{"layer":7,"vertices":[{"x":0,"y":0,"length":0},{"x":1735,"y":0,"length":1735},{"x":1735,"y":735,"length":1884.2637819583542},{"x":0,"y":735,"length":735}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":6010,"isStatic":true,"physic":false,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-230},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":7,"vertices":[{"x":0,"y":0,"length":0},{"x":1800,"y":0,"length":1800},{"x":1800,"y":310,"length":1826.4993840677855},{"x":0,"y":310,"length":310}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":3150,"isStatic":true,"physic":false,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":160},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":5,"vertices":[{"x":-65,"y":-10,"length":65.76473218982953},{"x":95,"y":-10,"length":95.524865872714},{"x":95,"y":5,"length":95.13148795220224},{"x":30,"y":5,"length":30.4138126514911},{"x":30,"y":295,"length":296.52150006365474},{"x":5,"y":295,"length":295.0423698386386},{"x":5,"y":5,"length":7.0710678118654755},{"x":-65,"y":5,"length":65.19202405202648}],"rem":true,"plr":false,"rotation":0,"safeId":-10,"line":true,"x":1430,"isStatic":true,"physic":false,"id":83,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":70},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":6,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"rem":false,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":3663,"isStatic":false,"physic":true,"id":84,"isWheel":false,"density":0.8,"ignore":false,"graphic":true,"y":180},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":5,"vertices":[{"x":-220,"y":-360,"length":421.90046219457975},{"x":-220,"y":-225,"length":314.6823795511913},{"x":20,"y":15,"length":25},{"x":15,"y":65,"length":66.70832032063167},{"x":-260,"y":-215,"length":337.37960815674677},{"x":-260,"y":-360,"length":444.07206622349037}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":4950,"isStatic":true,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":true,"graphic":true,"y":-170},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":6,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"rem":false,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":4546,"isStatic":false,"physic":true,"id":84,"isWheel":false,"density":0.8,"ignore":false,"graphic":true,"y":160},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":6,"vertices":[{"x":0,"y":0,"length":0},{"x":380,"y":-385,"length":540.9482415166908},{"x":590,"y":-385,"length":704.5033711771719},{"x":955,"y":-5,"length":955.0130889155395},{"x":955,"y":95,"length":959.713498915171},{"x":0,"y":100,"length":100}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":8820,"isStatic":true,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-330},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":6,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"rem":false,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":3969,"isStatic":false,"physic":true,"id":84,"isWheel":false,"density":0.8,"ignore":false,"graphic":true,"y":170},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":6,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"rem":false,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":4266,"isStatic":false,"physic":true,"id":84,"isWheel":false,"density":0.8,"ignore":false,"graphic":true,"y":170},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":6,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"rem":false,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":4834,"isStatic":false,"physic":true,"id":84,"isWheel":false,"density":0.8,"ignore":false,"graphic":true,"y":160},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":6,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"rem":false,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":3363,"isStatic":false,"physic":true,"id":-1,"isWheel":false,"density":0.8,"ignore":false,"graphic":true,"y":170},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"sf":true,"x":3150,"vertices":[{"x":0,"y":0,"length":0},{"x":2130,"y":0,"length":2130},{"x":2130,"y":365,"length":2161.0471998547373},{"x":0,"y":365,"length":365}],"id":-1,"bg":false,"density":1.5,"viscosity":1.5,"y":160,"rotation":0},"className":"frg.game.editor.objects::WaterShaper"},{"params":{"vertices":[{"x":-835,"y":0,"length":835},{"x":10400,"y":10,"length":10400.004807691197}],"textureMode":true,"isRoad":true,"shape":true,"repeatTexture":true,"rotation":0,"direction":90,"height":78,"width":11248,"wireframe":false,"cameraOffsetY":100,"directed":true,"textureOffset":0,"thick":128,"camera":false,"lineId":0,"x":660,"snapToGrid":true,"smoothing":true,"y":420,"straightSides":true,"line":true,"originOffsetRatio":0,"physic":true,"stretchTexture":false},"className":"frg.game.editor.objects::GroundPather"},{"params":{"layer":0,"vertices":[{"x":-990,"y":-1170,"length":1532.644772933376},{"x":-385,"y":-1165,"length":1226.9678072386414},{"x":-385,"y":-260,"length":464.5696933722647},{"x":410,"y":-260,"length":485.4894437575342},{"x":410,"y":45,"length":412.4621194728069},{"x":565,"y":45,"length":566.7892024377317},{"x":565,"y":-260,"length":621.9525705389439},{"x":2200,"y":-260,"length":2215.310362003482},{"x":2200,"y":105,"length":2202.5042565225613},{"x":1540,"y":100,"length":1543.243337908834},{"x":1540,"y":-195,"length":1552.296685559819},{"x":660,"y":-195,"length":688.2041848172678},{"x":660,"y":100,"length":667.5327707311454},{"x":-1000,"y":100,"length":1004.987562112089}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":960,"isStatic":true,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":320},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"vertices":[{"x":-835,"y":0,"length":835},{"x":3785,"y":0,"length":3785},{"x":4375,"y":-165,"length":4378.110322958982},{"x":4685,"y":-505,"length":4712.138580305125},{"x":8235,"y":-630,"length":8259.06320353586},{"x":10280,"y":-2165,"length":10505.504509541654}],"textureMode":true,"isRoad":false,"shape":false,"repeatTexture":true,"rotation":0,"direction":90,"height":2178,"width":11128,"wireframe":false,"cameraOffsetY":100,"directed":false,"textureOffset":0,"thick":128,"camera":true,"lineId":0,"x":600,"snapToGrid":true,"smoothing":true,"y":360,"straightSides":true,"line":false,"originOffsetRatio":0,"physic":false,"stretchTexture":false},"className":"frg.game.editor.objects::GroundPather"},{"params":{"layer":6,"vertices":[{"x":50,"y":-90,"length":102.95630140987001},{"x":340,"y":-90,"length":351.7101079013795},{"x":400,"y":-15,"length":400.2811511925087},{"x":515,"y":-15,"length":515.2184002925361},{"x":540,"y":15,"length":540.2082931610732},{"x":515,"y":40,"length":516.5510623355642},{"x":400,"y":40,"length":401.9950248448356},{"x":330,"y":100,"length":344.81879299133334},{"x":285,"y":100,"length":302.03476621077914},{"x":285,"y":70,"length":293.47061181658376},{"x":270,"y":45,"length":273.72431386341987},{"x":270,"y":-30,"length":271.6615541441225},{"x":120,"y":-30,"length":123.69316876852982},{"x":120,"y":100,"length":156.20499351813308},{"x":-35,"y":100,"length":105.94810050208545},{"x":-35,"y":40,"length":53.150729063673246},{"x":-10,"y":40,"length":41.23105625617661},{"x":0,"y":10,"length":10},{"x":15,"y":40,"length":42.720018726587654},{"x":50,"y":40,"length":64.03124237432849}],"rem":true,"plr":true,"rotation":0,"safeId":-10,"line":true,"x":1250,"isStatic":false,"physic":true,"id":83,"isWheel":false,"density":0.2,"ignore":false,"graphic":true,"y":-42},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":0,"vertices":[{"x":30,"y":0,"length":30},{"x":29,"y":6,"length":29.614185789921695},{"x":27,"y":12,"length":29.546573405388315},{"x":24,"y":17,"length":29.410882339705484},{"x":20,"y":22,"length":29.732137494637012},{"x":15,"y":25,"length":29.154759474226502},{"x":9,"y":28,"length":29.410882339705484},{"x":3,"y":29,"length":29.154759474226502},{"x":-3,"y":29,"length":29.154759474226502},{"x":-9,"y":28,"length":29.410882339705484},{"x":-14,"y":25,"length":28.653097563788805},{"x":-20,"y":22,"length":29.732137494637012},{"x":-24,"y":17,"length":29.410882339705484},{"x":-27,"y":12,"length":29.546573405388315},{"x":-29,"y":6,"length":29.614185789921695},{"x":-30,"y":0,"length":30},{"x":-29,"y":-6,"length":29.614185789921695},{"x":-27,"y":-12,"length":29.546573405388315},{"x":-24,"y":-17,"length":29.410882339705484},{"x":-20,"y":-22,"length":29.732137494637012},{"x":-15,"y":-25,"length":29.154759474226502},{"x":-9,"y":-28,"length":29.410882339705484},{"x":-3,"y":-29,"length":29.154759474226502},{"x":3,"y":-29,"length":29.154759474226502},{"x":9,"y":-28,"length":29.410882339705484},{"x":15,"y":-25,"length":29.154759474226502},{"x":20,"y":-22,"length":29.732137494637012},{"x":24,"y":-17,"length":29.410882339705484},{"x":27,"y":-12,"length":29.546573405388315},{"x":29,"y":-6,"length":29.614185789921695}],"rem":true,"plr":false,"rotation":0,"safeId":-10,"line":true,"x":1220,"isStatic":false,"physic":true,"id":83,"isWheel":false,"density":0.3,"ignore":false,"graphic":true,"y":34},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":0,"vertices":[{"x":30,"y":0,"length":30},{"x":29,"y":6,"length":29.614185789921695},{"x":27,"y":12,"length":29.546573405388315},{"x":24,"y":17,"length":29.410882339705484},{"x":20,"y":22,"length":29.732137494637012},{"x":15,"y":25,"length":29.154759474226502},{"x":9,"y":28,"length":29.410882339705484},{"x":3,"y":29,"length":29.154759474226502},{"x":-3,"y":29,"length":29.154759474226502},{"x":-9,"y":28,"length":29.410882339705484},{"x":-14,"y":25,"length":28.653097563788805},{"x":-20,"y":22,"length":29.732137494637012},{"x":-24,"y":17,"length":29.410882339705484},{"x":-27,"y":12,"length":29.546573405388315},{"x":-29,"y":6,"length":29.614185789921695},{"x":-30,"y":0,"length":30},{"x":-29,"y":-6,"length":29.614185789921695},{"x":-27,"y":-12,"length":29.546573405388315},{"x":-24,"y":-17,"length":29.410882339705484},{"x":-20,"y":-22,"length":29.732137494637012},{"x":-15,"y":-25,"length":29.154759474226502},{"x":-9,"y":-28,"length":29.410882339705484},{"x":-3,"y":-29,"length":29.154759474226502},{"x":3,"y":-29,"length":29.154759474226502},{"x":9,"y":-28,"length":29.410882339705484},{"x":15,"y":-25,"length":29.154759474226502},{"x":20,"y":-22,"length":29.732137494637012},{"x":24,"y":-17,"length":29.410882339705484},{"x":27,"y":-12,"length":29.546573405388315},{"x":29,"y":-6,"length":29.614185789921695}],"rem":true,"plr":false,"rotation":0,"safeId":-10,"line":true,"x":1283,"isStatic":false,"physic":true,"id":83,"isWheel":false,"density":0.3,"ignore":false,"graphic":true,"y":34},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":0,"vertices":[{"x":30,"y":0,"length":30},{"x":29,"y":6,"length":29.614185789921695},{"x":27,"y":12,"length":29.546573405388315},{"x":24,"y":17,"length":29.410882339705484},{"x":20,"y":22,"length":29.732137494637012},{"x":15,"y":25,"length":29.154759474226502},{"x":9,"y":28,"length":29.410882339705484},{"x":3,"y":29,"length":29.154759474226502},{"x":-3,"y":29,"length":29.154759474226502},{"x":-9,"y":28,"length":29.410882339705484},{"x":-14,"y":25,"length":28.653097563788805},{"x":-20,"y":22,"length":29.732137494637012},{"x":-24,"y":17,"length":29.410882339705484},{"x":-27,"y":12,"length":29.546573405388315},{"x":-29,"y":6,"length":29.614185789921695},{"x":-30,"y":0,"length":30},{"x":-29,"y":-6,"length":29.614185789921695},{"x":-27,"y":-12,"length":29.546573405388315},{"x":-24,"y":-17,"length":29.410882339705484},{"x":-20,"y":-22,"length":29.732137494637012},{"x":-15,"y":-25,"length":29.154759474226502},{"x":-9,"y":-28,"length":29.410882339705484},{"x":-3,"y":-29,"length":29.154759474226502},{"x":3,"y":-29,"length":29.154759474226502},{"x":9,"y":-28,"length":29.410882339705484},{"x":15,"y":-25,"length":29.154759474226502},{"x":20,"y":-22,"length":29.732137494637012},{"x":24,"y":-17,"length":29.410882339705484},{"x":27,"y":-12,"length":29.546573405388315},{"x":29,"y":-6,"length":29.614185789921695}],"rem":true,"plr":false,"rotation":0,"safeId":-10,"line":true,"x":1346,"isStatic":false,"physic":true,"id":83,"isWheel":false,"density":0.3,"ignore":false,"graphic":true,"y":34},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":0,"vertices":[{"x":30,"y":0,"length":30},{"x":29,"y":6,"length":29.614185789921695},{"x":27,"y":12,"length":29.546573405388315},{"x":24,"y":17,"length":29.410882339705484},{"x":20,"y":22,"length":29.732137494637012},{"x":15,"y":25,"length":29.154759474226502},{"x":9,"y":28,"length":29.410882339705484},{"x":3,"y":29,"length":29.154759474226502},{"x":-3,"y":29,"length":29.154759474226502},{"x":-9,"y":28,"length":29.410882339705484},{"x":-14,"y":25,"length":28.653097563788805},{"x":-20,"y":22,"length":29.732137494637012},{"x":-24,"y":17,"length":29.410882339705484},{"x":-27,"y":12,"length":29.546573405388315},{"x":-29,"y":6,"length":29.614185789921695},{"x":-30,"y":0,"length":30},{"x":-29,"y":-6,"length":29.614185789921695},{"x":-27,"y":-12,"length":29.546573405388315},{"x":-24,"y":-17,"length":29.410882339705484},{"x":-20,"y":-22,"length":29.732137494637012},{"x":-15,"y":-25,"length":29.154759474226502},{"x":-9,"y":-28,"length":29.410882339705484},{"x":-3,"y":-29,"length":29.154759474226502},{"x":3,"y":-29,"length":29.154759474226502},{"x":9,"y":-28,"length":29.410882339705484},{"x":15,"y":-25,"length":29.154759474226502},{"x":20,"y":-22,"length":29.732137494637012},{"x":24,"y":-17,"length":29.410882339705484},{"x":27,"y":-12,"length":29.546573405388315},{"x":29,"y":-6,"length":29.614185789921695}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":1567,"isStatic":false,"physic":true,"id":-1,"isWheel":false,"density":0.3,"ignore":false,"graphic":true,"y":34},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":8,"vertices":[{"x":-175,"y":0,"length":175},{"x":100,"y":0,"length":100},{"x":100,"y":100,"length":141.4213562373095},{"x":-115,"y":100,"length":152.3975065412817},{"x":-145,"y":145,"length":205.0609665440988},{"x":-175,"y":100,"length":201.55644370746373}],"rem":true,"plr":true,"rotation":0,"safeId":-10,"line":true,"x":1190,"isStatic":false,"physic":true,"id":83,"isWheel":false,"density":0.2,"ignore":false,"graphic":true,"y":-102},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":0,"vertices":[{"x":30,"y":0,"length":30},{"x":29,"y":6,"length":29.614185789921695},{"x":27,"y":12,"length":29.546573405388315},{"x":24,"y":17,"length":29.410882339705484},{"x":20,"y":22,"length":29.732137494637012},{"x":15,"y":25,"length":29.154759474226502},{"x":9,"y":28,"length":29.410882339705484},{"x":3,"y":29,"length":29.154759474226502},{"x":-3,"y":29,"length":29.154759474226502},{"x":-9,"y":28,"length":29.410882339705484},{"x":-14,"y":25,"length":28.653097563788805},{"x":-20,"y":22,"length":29.732137494637012},{"x":-24,"y":17,"length":29.410882339705484},{"x":-27,"y":12,"length":29.546573405388315},{"x":-29,"y":6,"length":29.614185789921695},{"x":-30,"y":0,"length":30},{"x":-29,"y":-6,"length":29.614185789921695},{"x":-27,"y":-12,"length":29.546573405388315},{"x":-24,"y":-17,"length":29.410882339705484},{"x":-20,"y":-22,"length":29.732137494637012},{"x":-15,"y":-25,"length":29.154759474226502},{"x":-9,"y":-28,"length":29.410882339705484},{"x":-3,"y":-29,"length":29.154759474226502},{"x":3,"y":-29,"length":29.154759474226502},{"x":9,"y":-28,"length":29.410882339705484},{"x":15,"y":-25,"length":29.154759474226502},{"x":20,"y":-22,"length":29.732137494637012},{"x":24,"y":-17,"length":29.410882339705484},{"x":27,"y":-12,"length":29.546573405388315},{"x":29,"y":-6,"length":29.614185789921695}],"rem":true,"plr":false,"rotation":0,"safeId":-10,"line":true,"x":1043,"isStatic":false,"physic":true,"id":83,"isWheel":false,"density":0.3,"ignore":false,"graphic":true,"y":34},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":6,"vertices":[{"x":0,"y":0,"length":0},{"x":150,"y":0,"length":150},{"x":150,"y":40,"length":155.24174696260025},{"x":0,"y":40,"length":40}],"rem":true,"plr":false,"rotation":0,"safeId":-10,"line":true,"x":1372,"isStatic":false,"physic":true,"id":83,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":318},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":8,"vertices":[{"x":60,"y":0,"length":60},{"x":59,"y":10,"length":59.841457201508724},{"x":56,"y":20,"length":59.464274989274024},{"x":51,"y":29,"length":58.66856057549052},{"x":45,"y":38,"length":58.89821729050889},{"x":38,"y":45,"length":58.89821729050889},{"x":30,"y":51,"length":59.16924876994806},{"x":20,"y":56,"length":59.464274989274024},{"x":10,"y":59,"length":59.841457201508724},{"x":0,"y":60,"length":60},{"x":-10,"y":59,"length":59.841457201508724},{"x":-20,"y":56,"length":59.464274989274024},{"x":-29,"y":51,"length":58.66856057549052},{"x":-38,"y":45,"length":58.89821729050889},{"x":-45,"y":38,"length":58.89821729050889},{"x":-51,"y":29,"length":58.66856057549052},{"x":-56,"y":20,"length":59.464274989274024},{"x":-59,"y":10,"length":59.841457201508724},{"x":-60,"y":0,"length":60},{"x":-59,"y":-10,"length":59.841457201508724},{"x":-56,"y":-20,"length":59.464274989274024},{"x":-51,"y":-30,"length":59.16924876994806},{"x":-45,"y":-38,"length":58.89821729050889},{"x":-38,"y":-45,"length":58.89821729050889},{"x":-30,"y":-51,"length":59.16924876994806},{"x":-20,"y":-56,"length":59.464274989274024},{"x":-10,"y":-59,"length":59.841457201508724},{"x":0,"y":-60,"length":60},{"x":10,"y":-59,"length":59.841457201508724},{"x":20,"y":-56,"length":59.464274989274024},{"x":30,"y":-51,"length":59.16924876994806},{"x":38,"y":-45,"length":58.89821729050889},{"x":45,"y":-38,"length":58.89821729050889},{"x":51,"y":-30,"length":59.16924876994806},{"x":56,"y":-20,"length":59.464274989274024},{"x":59,"y":-10,"length":59.841457201508724}],"rem":true,"plr":false,"rotation":0,"safeId":-10,"line":true,"x":1746,"isStatic":false,"physic":true,"id":83,"isWheel":false,"density":0.1,"ignore":false,"graphic":true,"y":-27},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":5,"vertices":[{"x":30,"y":-30,"length":42.42640687119285},{"x":65,"y":-5,"length":65.19202405202648},{"x":-15,"y":100,"length":101.11874208078342},{"x":-75,"y":100,"length":125}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":8699,"isStatic":true,"physic":false,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-801},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":8,"vertices":[{"x":0,"y":0,"length":0},{"x":55,"y":0,"length":55},{"x":95,"y":55,"length":109.77249200050075},{"x":0,"y":55,"length":55}],"rem":true,"plr":true,"rotation":0,"safeId":-10,"line":true,"x":1530,"isStatic":false,"physic":true,"id":83,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-110},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":8,"vertices":[{"x":0,"y":0,"length":0},{"x":95,"y":0,"length":95},{"x":65,"y":50,"length":82.00609733428362},{"x":0,"y":50,"length":50}],"rem":true,"plr":true,"rotation":0,"safeId":-10,"line":true,"x":1530,"isStatic":false,"physic":true,"id":83,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-50},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":0,"vertices":[{"x":0,"y":-210,"length":210},{"x":1070,"y":-210,"length":1090.4127658827183},{"x":1070,"y":550,"length":1203.0793822520607},{"x":0,"y":555,"length":555}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":4950,"isStatic":true,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-120},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":8,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"rem":false,"plr":true,"rotation":0,"safeId":-1,"line":true,"x":6146,"isStatic":false,"physic":true,"id":21,"isWheel":false,"density":0.8,"ignore":false,"graphic":true,"y":-240},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":8,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"rem":false,"plr":true,"rotation":0,"safeId":-1,"line":true,"x":6350,"isStatic":false,"physic":true,"id":21,"isWheel":false,"density":0.8,"ignore":false,"graphic":true,"y":-240},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":8,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"rem":false,"plr":true,"rotation":0,"safeId":-1,"line":true,"x":6555,"isStatic":false,"physic":true,"id":21,"isWheel":false,"density":0.8,"ignore":false,"graphic":true,"y":-240},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":6,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"rem":false,"plr":true,"rotation":0,"safeId":-1,"line":true,"x":6763,"isStatic":false,"physic":true,"id":21,"isWheel":false,"density":0.8,"ignore":false,"graphic":true,"y":-240},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":6,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"rem":false,"plr":true,"rotation":0,"safeId":-1,"line":true,"x":6972,"isStatic":false,"physic":true,"id":21,"isWheel":false,"density":0.8,"ignore":false,"graphic":true,"y":-241},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":8,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"rem":false,"plr":true,"rotation":0,"safeId":-1,"line":true,"x":7175,"isStatic":false,"physic":true,"id":21,"isWheel":false,"density":0.8,"ignore":false,"graphic":true,"y":-240},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":8,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"rem":false,"plr":true,"rotation":0,"safeId":-1,"line":true,"x":7383,"isStatic":false,"physic":true,"id":21,"isWheel":false,"density":0.8,"ignore":false,"graphic":true,"y":-240},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":8,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"rem":false,"plr":true,"rotation":0,"safeId":-1,"line":true,"x":7592,"isStatic":false,"physic":true,"id":21,"isWheel":false,"density":0.8,"ignore":false,"graphic":true,"y":-241},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":0,"vertices":[{"x":0,"y":-210,"length":210},{"x":3360,"y":-215,"length":3366.871693427001},{"x":3360,"y":545,"length":3403.9131892573287},{"x":0,"y":555,"length":555}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":7700,"isStatic":true,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-120},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"sf":true,"x":6020,"vertices":[{"x":0,"y":0,"length":0},{"x":1680,"y":0,"length":1680},{"x":1680,"y":660,"length":1804.9930747789588},{"x":0,"y":660,"length":660}],"id":-1,"bg":false,"density":1.5,"viscosity":1.5,"y":-230,"rotation":0},"className":"frg.game.editor.objects::WaterShaper"},{"params":{"layer":6,"vertices":[{"x":-90,"y":-5,"length":90.13878188659973},{"x":280,"y":-385,"length":476.0514678057405},{"x":480,"y":-385,"length":615.3251173160413},{"x":845,"y":-5,"length":845.0147927699254}],"rem":true,"plr":false,"rotation":-179.99999999999994,"safeId":-1,"line":true,"x":9680,"isStatic":true,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-1285},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":6,"vertices":[{"x":0,"y":-1035,"length":1035},{"x":1301,"y":-1043,"length":1667.4681406251814},{"x":1298,"y":-456,"length":1375.768875938106},{"x":1267,"y":-437,"length":1340.2454998991789},{"x":1236,"y":-410,"length":1302.227322705218},{"x":1212,"y":-382,"length":1270.7745669472615},{"x":1194,"y":-354,"length":1245.3722335109292},{"x":1182,"y":-320,"length":1224.5505297863376},{"x":1173,"y":-283,"length":1206.655708974188},{"x":1172,"y":-238,"length":1195.921402099653},{"x":1176,"y":-201,"length":1193.0536450637917},{"x":1188,"y":-167,"length":1199.6803740997016},{"x":1206,"y":-133,"length":1213.3115840541539},{"x":1231,"y":-103,"length":1235.3015826104977},{"x":1271,"y":-68,"length":1272.8177402912013},{"x":2060,"y":550,"length":2132.1585306913744},{"x":1790,"y":550,"length":1872.5917868024521},{"x":0,"y":-830,"length":830}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":6630,"isStatic":true,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-1250},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"height":806,"x":9300,"y":-1680,"rotation":0,"width":862},"className":"FinishZone"},{"params":{"layer":6,"vertices":[{"x":0,"y":0,"length":0},{"x":380,"y":-385,"length":540.9482415166908},{"x":590,"y":-385,"length":704.5033711771719},{"x":955,"y":-5,"length":955.0130889155395},{"x":955,"y":95,"length":959.713498915171},{"x":0,"y":100,"length":100}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":8830,"isStatic":false,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-2100},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"action":0,"type":5,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":925,"y":0,"length":925}],"snapToGrid":true,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":64,"x":8840,"isStatic":true,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":64,"y":-1293,"width":938},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"layer":8,"vertices":[{"x":0,"y":0,"length":0},{"x":335,"y":0,"length":335},{"x":335,"y":320,"length":463.2763753959401},{"x":0,"y":320,"length":320}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":9134,"isStatic":true,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-963},"className":"frg.game.editor.objects::LandscapeShaper"}],[{"params":{"type":0,"x":1877,"id":80,"rotation":0,"safeId":-10,"height":85.1,"y":18,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1944,"id":80,"rotation":0,"safeId":-10,"height":85.1,"y":18,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1911,"id":80,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-34,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1877,"id":80,"rotation":0,"safeId":-10,"height":85.1,"y":-86,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1944,"id":80,"rotation":0,"safeId":-10,"height":85.1,"y":-86,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1911,"id":80,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-138,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1877,"id":80,"rotation":0,"safeId":-10,"height":85.1,"y":-294,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1911,"id":80,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-346,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1911,"id":80,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-242,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1944,"id":80,"rotation":0,"safeId":-10,"height":85.1,"y":-294,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1944,"id":80,"rotation":0,"safeId":-10,"height":85.1,"y":-190,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1877,"id":80,"rotation":0,"safeId":-10,"height":85.1,"y":-190,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1877,"id":80,"rotation":0,"safeId":-10,"height":85.1,"y":-503,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1911,"id":80,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-555,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1911,"id":80,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-451,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1944,"id":80,"rotation":0,"safeId":-10,"height":85.1,"y":-503,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1944,"id":80,"rotation":0,"safeId":-10,"height":85.1,"y":-399,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":1877,"id":80,"rotation":0,"safeId":-10,"height":85.1,"y":-399,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2144,"id":81,"rotation":0,"safeId":-10,"height":85.1,"y":-86,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2111,"id":81,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-555,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2144,"id":81,"rotation":0,"safeId":-10,"height":85.1,"y":-294,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2111,"id":81,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-346,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2111,"id":81,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-451,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2144,"id":81,"rotation":0,"safeId":-10,"height":85.1,"y":-503,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2144,"id":81,"rotation":0,"safeId":-10,"height":85.1,"y":-190,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2111,"id":81,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-242,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2111,"id":81,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-138,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2077,"id":81,"rotation":0,"safeId":-10,"height":85.1,"y":-190,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2144,"id":81,"rotation":0,"safeId":-10,"height":85.1,"y":-399,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2111,"id":81,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-34,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2144,"id":81,"rotation":0,"safeId":-10,"height":85.1,"y":18,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2077,"id":81,"rotation":0,"safeId":-10,"height":85.1,"y":-399,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2077,"id":81,"rotation":0,"safeId":-10,"height":85.1,"y":-503,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2077,"id":81,"rotation":0,"safeId":-10,"height":85.1,"y":-294,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2077,"id":81,"rotation":0,"safeId":-10,"height":85.1,"y":-86,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2077,"id":81,"rotation":0,"safeId":-10,"height":85.1,"y":18,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2354,"id":82,"rotation":0,"safeId":-10,"height":85.1,"y":-86,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2321,"id":82,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-555,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2354,"id":82,"rotation":0,"safeId":-10,"height":85.1,"y":-294,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2321,"id":82,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-346,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2321,"id":82,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-451,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2354,"id":82,"rotation":0,"safeId":-10,"height":85.1,"y":-503,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2354,"id":82,"rotation":0,"safeId":-10,"height":85.1,"y":-190,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2321,"id":82,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-242,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2321,"id":82,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-138,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2287,"id":82,"rotation":0,"safeId":-10,"height":85.1,"y":-190,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2354,"id":82,"rotation":0,"safeId":-10,"height":85.1,"y":-399,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2321,"id":82,"rotation":90.00000000000006,"safeId":-10,"height":85.1,"y":-34,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2354,"id":82,"rotation":0,"safeId":-10,"height":85.1,"y":18,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2287,"id":82,"rotation":0,"safeId":-10,"height":85.1,"y":-399,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2287,"id":82,"rotation":0,"safeId":-10,"height":85.1,"y":-503,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2287,"id":82,"rotation":0,"safeId":-10,"height":85.1,"y":-294,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2287,"id":82,"rotation":0,"safeId":-10,"height":85.1,"y":-86,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"type":0,"x":2287,"id":82,"rotation":0,"safeId":-10,"height":85.1,"y":18,"width":18,"active":false},"className":"RemovedWipe0"},{"params":{"height":128.35,"x":8570,"y":-875,"rotation":39,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":69.8,"x":8630,"y":-945,"rotation":39,"width":68.8},"className":"Sign1"},{"params":{"height":128.35,"x":8430,"y":-985,"rotation":39,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":69.8,"x":8490,"y":-1055,"rotation":39,"width":68.8},"className":"Sign1"},{"params":{"height":128.35,"x":8290,"y":-1095,"rotation":39,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":69.8,"x":8350,"y":-1165,"rotation":39,"width":68.8},"className":"Sign1"},{"params":{"height":128.35,"x":2790,"y":-2,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":128.35,"x":5110,"y":-390,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":128.35,"x":8570,"y":-393,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"}],[{"params":{"impulse":30000,"stones":false,"width":53.2,"safeId":-10,"height":53.2,"x":2522,"physic":false,"id":1,"radius":70,"count":40,"y":83,"rotation":0},"className":"Tnt1"},{"params":{"impulse":8000,"stones":false,"width":53.2,"safeId":-1,"height":53.2,"x":4835,"physic":false,"id":7,"radius":200,"count":40,"y":348,"rotation":0},"className":"Tnt1"},{"params":{"rate":1,"height":128,"x":4878,"id":7,"rotation":0,"speed":1000,"y":-460,"width":295,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":8268,"id":85,"rotation":-142,"speed":1700,"y":-1110,"width":1075,"safeId":-1},"className":"GeyserE"}],null,[{"params":{"height":32,"x":1451,"y":276,"rotation":0,"width":64},"className":"PlayerWP"},{"params":{"height":1342,"x":2790,"y":-80,"width":128,"id":0,"rotation":0},"className":"SafePointE"},{"params":{"height":1760,"x":5110,"y":-460,"width":128,"id":0,"rotation":0},"className":"SafePointE"},{"params":{"height":527,"x":8570,"y":-470,"width":128,"id":0,"rotation":0},"className":"SafePointE"}],[{"params":{"height":17,"x":1220,"y":34,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-10},"className":"PivotJointE"},{"params":{"height":17,"x":1283,"y":34,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-10},"className":"PivotJointE"},{"params":{"height":17,"x":1346,"y":34,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-10},"className":"PivotJointE"},{"params":{"height":17,"x":1567,"y":34,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-10},"className":"PivotJointE"},{"params":{"height":17,"x":1043,"y":34,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-10},"className":"PivotJointE"},{"params":{"height":17,"x":1252,"y":-18,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-10},"className":"PivotJointE"},{"params":{"height":676,"x":2454,"id_off":5,"id":1,"safeId":-1,"rotation":0,"off":false,"sndId":-1,"y":-90,"width":64,"hint":-1},"className":"ToggleE"},{"params":{"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-256,"length":256}],"width":13,"speed":100,"stopOnEnd":true,"rotation":0,"safeId":-10,"height":269,"x":1449,"sideWait":0,"id":-1,"active":1,"accelDist":20,"startTime":"0","snapToGrid":true,"position":0,"cycle":0,"y":338,"body":false},"className":"frg.game.editor.objects::MoverPather"},{"params":{"useWeld":false,"rotation":0,"safeId":-10,"rate":180,"height":17,"x":1746,"id":5,"width":17,"snd":false,"graphic":0,"time":0,"y":-27},"className":"MotorJointE"},{"params":{"height":64,"x":1450,"id_off":-1,"id":5,"safeId":-1,"rotation":0,"off":false,"sndId":-1,"y":220,"width":431,"hint":-1},"className":"ToggleE"},{"params":{"height":17,"x":1540,"y":-100,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-10},"className":"PivotJointE"},{"params":{"height":17,"x":1601,"y":-64,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-10},"className":"PivotJointE"},{"params":{"height":17,"x":1540,"y":-10,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-10},"className":"PivotJointE"},{"params":{"height":17,"x":1601,"y":-42,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-10},"className":"PivotJointE"},{"params":{"height":528,"x":4860,"id_off":-1,"id":7,"safeId":-1,"rotation":0,"off":false,"sndId":-1,"y":-40,"width":64,"hint":-1},"className":"ToggleE"},{"params":{"useWeld":false,"rotation":0,"safeId":-1,"rate":-250,"height":17,"x":6146,"id":21,"width":17,"snd":false,"graphic":0,"time":0,"y":-240},"className":"MotorJointE"},{"params":{"useWeld":false,"rotation":0,"safeId":-1,"rate":-250,"height":17,"x":6350,"id":21,"width":17,"snd":false,"graphic":0,"time":0,"y":-240},"className":"MotorJointE"},{"params":{"useWeld":false,"rotation":0,"safeId":-1,"rate":-250,"height":17,"x":6555,"id":21,"width":17,"snd":false,"graphic":0,"time":0,"y":-240},"className":"MotorJointE"},{"params":{"useWeld":false,"rotation":0,"safeId":-1,"rate":250,"height":17,"x":6763,"id":21,"width":17,"snd":false,"graphic":0,"time":0,"y":-240},"className":"MotorJointE"},{"params":{"useWeld":false,"rotation":0,"safeId":-1,"rate":250,"height":17,"x":6972,"id":21,"width":17,"snd":false,"graphic":0,"time":0,"y":-241},"className":"MotorJointE"},{"params":{"height":1413,"x":5050,"id_off":-1,"id":21,"safeId":-1,"rotation":-42,"off":false,"sndId":-1,"y":-470,"width":64,"hint":-1},"className":"ToggleE"},{"params":{"useWeld":false,"rotation":0,"safeId":-1,"rate":-250,"height":17,"x":7175,"id":21,"width":17,"snd":false,"graphic":0,"time":0,"y":-240},"className":"MotorJointE"},{"params":{"useWeld":false,"rotation":0,"safeId":-1,"rate":-250,"height":17,"x":7592,"id":21,"width":17,"snd":false,"graphic":0,"time":0,"y":-241},"className":"MotorJointE"},{"params":{"useWeld":false,"rotation":0,"safeId":-1,"rate":-250,"height":17,"x":7383,"id":21,"width":17,"snd":false,"graphic":0,"time":0,"y":-240},"className":"MotorJointE"},{"params":{"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":768,"length":768}],"width":13,"speed":1200,"stopOnEnd":true,"rotation":0,"safeId":-1,"height":781,"x":9320,"sideWait":0,"id":32,"active":0,"accelDist":0,"startTime":"0","snapToGrid":true,"position":0,"cycle":0,"y":-2250,"body":false},"className":"frg.game.editor.objects::MoverPather"},{"params":{"height":729,"x":8900,"id_off":-1,"id":32,"safeId":-1,"rotation":0,"off":false,"sndId":-1,"y":-1640,"width":64,"hint":-1},"className":"ToggleE"},{"params":{"height":209,"x":1660,"id_off":-1,"id":0,"safeId":-1,"rotation":0,"off":false,"sndId":0,"y":-20,"width":64,"hint":-1},"className":"ToggleE"},{"params":{"height":1346,"x":4560,"id_off":-1,"id":0,"safeId":-1,"rotation":0,"off":false,"sndId":0,"y":-340,"width":64,"hint":-1},"className":"ToggleE"},{"params":{"height":686,"x":7890,"id_off":-1,"id":0,"safeId":-1,"rotation":0,"off":false,"sndId":0,"y":-1530,"width":64,"hint":-1},"className":"ToggleE"},{"params":{"height":193,"x":1589,"id_off":-1,"id":80,"safeId":-1,"rotation":0,"off":false,"sndId":-1,"y":-40,"width":40,"hint":-1},"className":"ToggleE"},{"params":{"height":193,"x":1789,"id_off":-1,"id":81,"safeId":-1,"rotation":0,"off":false,"sndId":-1,"y":-40,"width":40,"hint":-1},"className":"ToggleE"},{"params":{"height":193,"x":1999,"id_off":-1,"id":82,"safeId":-1,"rotation":0,"off":false,"sndId":-1,"y":-40,"width":40,"hint":-1},"className":"ToggleE"},{"params":{"height":193,"x":2969,"id_off":-1,"id":83,"safeId":-1,"rotation":0,"off":false,"sndId":-1,"y":-40,"width":40,"hint":-1},"className":"ToggleE"},{"params":{"height":193,"x":2799,"id_off":-1,"id":84,"safeId":-1,"rotation":0,"off":false,"sndId":-1,"y":-40,"width":40,"hint":-1},"className":"ToggleE"},{"params":{"height":326,"x":8560,"id_off":21,"id":85,"safeId":-1,"rotation":0,"off":false,"sndId":-1,"y":-480,"width":64,"hint":-1},"className":"ToggleE"},{"params":{"height":1521,"x":5720,"id_off":84,"id":0,"safeId":-1,"rotation":0,"off":false,"sndId":-1,"y":-570,"width":64,"hint":-1},"className":"ToggleE"}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map15.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map15.json new file mode 100644 index 000000000..506da18d9 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map15.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"29,37,43"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9380,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":250,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":2165,"y":5,"length":2165.0057736643566},{"x":2165,"y":230,"length":2177.182812719226},{"x":0,"y":225,"length":225}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5810,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-240,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":3445,"y":0,"length":3445},{"x":3445,"y":710,"length":3517.403161424633},{"x":0,"y":710,"length":710}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":5800,"viscosity":1.5,"rotation":0,"y":-240,"vertices":[{"x":0,"y":0,"length":0},{"x":320,"y":0,"length":320},{"x":290,"y":65,"length":297.1952220342716},{"x":249,"y":220,"length":332.26645933647893},{"x":217,"y":365,"length":424.6339600173307},{"x":203,"y":400,"length":448.5632619820754},{"x":176,"y":425,"length":460.00108695523755},{"x":145,"y":438,"length":461.3772859601998},{"x":99,"y":438,"length":449.0489950996439},{"x":41,"y":437,"length":438.91912694709487},{"x":1,"y":437,"length":437.00114416326187}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1360,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-60,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":2610,"y":0,"length":2610},{"x":2610,"y":610,"length":2680.335799857921},{"x":0,"y":610,"length":610}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":8257,"viscosity":1.5,"rotation":0,"y":-240,"vertices":[{"x":0,"y":0,"length":0},{"x":1000,"y":0,"length":1000},{"x":1000,"y":680,"length":1209.2973166264778},{"x":-2285,"y":697,"length":2388.9399322712156},{"x":-2285,"y":656,"length":2377.301200941942},{"x":-2223,"y":645,"length":2314.6822676125553},{"x":-2175,"y":617,"length":2260.8215320984536},{"x":-2124,"y":583,"length":2202.5587392848347},{"x":-2085,"y":545,"length":2155.052203544035},{"x":-2055,"y":497,"length":2114.245491895395},{"x":-2027,"y":430,"length":2072.1073813873645},{"x":-1322,"y":428,"length":1389.5567638639309},{"x":-1181,"y":580,"length":1315.7359157520934},{"x":-1104,"y":628,"length":1270.1181047445941},{"x":-1025,"y":652,"length":1214.7958676255037},{"x":-543,"y":648,"length":845.4306594866312},{"x":-420,"y":610,"length":740.607858451421},{"x":-360,"y":582,"length":684.342019753281},{"x":-311,"y":555,"length":636.1965105217098},{"x":-265,"y":518,"length":581.8496369338044},{"x":-222,"y":472,"length":521.6013803662717},{"x":-125,"y":345,"length":366.94686263817545}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5120,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-80,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":33,"y":-1,"length":33.015148038438355},{"x":59,"y":-7,"length":59.413803110051795},{"x":83,"y":-17,"length":84.72307831990054},{"x":107,"y":-34,"length":112.27199116431488},{"x":130,"y":-53,"length":140.38874598770374},{"x":148,"y":-74,"length":165.46903033498444},{"x":160,"y":-97,"length":187.1069213043708},{"x":170,"y":-120,"length":208.08652046684813},{"x":177,"y":-146,"length":229.44498251214821},{"x":180,"y":-175,"length":251.04780421266383},{"x":265,"y":-175,"length":317.56889016400834},{"x":265,"y":85,"length":278.29840100151495},{"x":0,"y":85,"length":85}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4940,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":330,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":180,"y":-590,"length":616.8468205316454},{"x":875,"y":-590,"length":1055.3317014095617},{"x":875,"y":-130,"length":884.604431370316},{"x":290,"y":-130,"length":317.80497164141406},{"x":271,"y":-130,"length":300.56779601281306},{"x":254,"y":-134,"length":287.17938644686876},{"x":237,"y":-141,"length":275.77164466275354},{"x":221,"y":-151,"length":267.6602323842674},{"x":205,"y":-166,"length":263.78210705049725},{"x":194,"y":-181,"length":265.32432983049256},{"x":185,"y":-200,"length":272.44265451650557},{"x":180,"y":-220,"length":284.2534080710379}],"line":false,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":1370,"viscosity":1.5,"rotation":0,"y":-60,"vertices":[{"x":0,"y":0,"length":0},{"x":3220,"y":0,"length":3220},{"x":3225,"y":490,"length":3262.012415672264},{"x":5,"y":490,"length":490.02550954006466}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4940,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":330,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1000,"y":-590,"length":1161.077086157504},{"x":-30,"y":-590,"length":590.7622195096772},{"x":-29,"y":-239,"length":240.75298544358697},{"x":-28,"y":-206,"length":207.8942038634074},{"x":-24,"y":-173,"length":174.6568063374571},{"x":-17,"y":-144,"length":145},{"x":-7,"y":-114,"length":114.21471008587291},{"x":7,"y":-85,"length":85.28774824088158},{"x":21,"y":-62,"length":65.45991139621256},{"x":42,"y":-35,"length":54.67174773134658},{"x":62,"y":-12,"length":63.150613615387776},{"x":90,"y":13,"length":90.93404203047393},{"x":119,"y":34,"length":123.76186811776881},{"x":147,"y":49,"length":154.95160534825058},{"x":183,"y":62,"length":193.2174940319846},{"x":212,"y":72,"length":223.89283150650448},{"x":245,"y":80,"length":257.73047937719747},{"x":875,"y":80,"length":878.6495319523024},{"x":875,"y":100,"length":880.6957476904269},{"x":-1000,"y":100,"length":1004.987562112089}],"line":false,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":2280,"safeId":-1,"rotation":0,"graphic":true,"height":529,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":516,"length":516}],"smoothing":true,"id":-1,"repeatTexture":true,"width":20,"type":2,"textureOffset":0,"y":-90}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":1910,"safeId":-1,"rotation":0,"graphic":true,"height":529,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":516,"length":516}],"smoothing":true,"id":-1,"repeatTexture":true,"width":20,"type":2,"textureOffset":0,"y":-90}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":2980,"safeId":-1,"rotation":0,"graphic":true,"height":529,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":516,"length":516}],"smoothing":true,"id":-1,"repeatTexture":true,"width":20,"type":2,"textureOffset":0,"y":-90}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":2630,"safeId":-1,"rotation":0,"graphic":true,"height":529,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":516,"length":516}],"smoothing":true,"id":-1,"repeatTexture":true,"width":20,"type":2,"textureOffset":0,"y":-90}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9400,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":330,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":-85,"length":85},{"x":900,"y":-85,"length":904.0049778624009},{"x":900,"y":100,"length":905.5385138137417},{"x":0,"y":100,"length":100}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3360,"safeId":-1,"rotation":0,"graphic":true,"height":529,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":516,"length":516}],"smoothing":true,"id":-1,"repeatTexture":true,"width":20,"type":2,"textureOffset":0,"y":-90}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3730,"safeId":-1,"rotation":0,"graphic":true,"height":529,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":516,"length":516}],"smoothing":true,"id":-1,"repeatTexture":true,"width":20,"type":2,"textureOffset":0,"y":-90}},{"className":"FinishZone","params":{"x":9850,"rotation":0,"y":-590,"width":898,"height":108}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":10290,"viscosity":1.5,"rotation":0,"y":252,"vertices":[{"x":-945,"y":0,"length":945},{"x":1285,"y":0,"length":1285},{"x":1285,"y":190,"length":1298.9707463988557},{"x":-945,"y":190,"length":963.9113029734634}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":7038,"viscosity":1.5,"rotation":0,"y":-240,"vertices":[{"x":0,"y":0,"length":0},{"x":990,"y":0,"length":990},{"x":905,"y":235,"length":935.0133688883811},{"x":880,"y":281,"length":923.7754056046307},{"x":857,"y":312,"length":912.0268636394435},{"x":823,"y":344,"length":892.0005605379405},{"x":765,"y":389,"length":858.2225818515847},{"x":708,"y":415,"length":820.6637557489669},{"x":650,"y":433,"length":781.017925530522},{"x":264,"y":440,"length":513.1237667463864},{"x":220,"y":429,"length":482.12135401784474},{"x":189,"y":407,"length":448.7426879627121},{"x":167,"y":374,"length":409.59125967237145}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":420,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":14353,"textureOffset":0,"height":78,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":true,"physic":true,"vertices":[{"x":-835,"y":0,"length":835},{"x":13505,"y":10,"length":13505.003702331962}],"line":true,"shape":true,"isRoad":true,"smoothing":true,"camera":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":960,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":320,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1000,"y":-1220,"length":1577.4663229368796},{"x":-895,"y":-1220,"length":1513.084597767091},{"x":-895,"y":-590,"length":1071.9724809900672},{"x":410,"y":-590,"length":718.4705978674423},{"x":410,"y":100,"length":422.0189569201839},{"x":-1000,"y":100,"length":1004.987562112089}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5620,"safeId":-1,"rotation":-90,"graphic":true,"isWheel":false,"y":-764,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":33,"y":-1,"length":33.015148038438355},{"x":59,"y":-7,"length":59.413803110051795},{"x":83,"y":-17,"length":84.72307831990054},{"x":107,"y":-34,"length":112.27199116431488},{"x":130,"y":-53,"length":140.38874598770374},{"x":148,"y":-74,"length":165.46903033498444},{"x":160,"y":-97,"length":187.1069213043708},{"x":170,"y":-120,"length":208.08652046684813},{"x":177,"y":-146,"length":229.44498251214821},{"x":180,"y":-175,"length":251.04780421266383},{"x":265,"y":-175,"length":317.56889016400834},{"x":265,"y":85,"length":278.29840100151495},{"x":0,"y":85,"length":85}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":-20,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":13718,"textureOffset":0,"height":980,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":-835,"y":0,"length":835},{"x":3346,"y":0,"length":3346},{"x":3560,"y":10,"length":3560.0140449161154},{"x":3735,"y":40,"length":3735.214183952508},{"x":3900,"y":120,"length":3901.845717093386},{"x":4450,"y":430,"length":4470.727010229992},{"x":5055,"y":430,"length":5073.255857927925},{"x":7260,"y":440,"length":7273.321112119277},{"x":7935,"y":-140,"length":7936.234938558712},{"x":8565,"y":-455,"length":8577.077007932248},{"x":8610,"y":-190,"length":8612.096144377396},{"x":8780,"y":15,"length":8780.012813202495},{"x":8980,"y":130,"length":8980.940930659772},{"x":9705,"y":250,"length":9708.219455698352},{"x":10500,"y":215,"length":10502.200959798856},{"x":12870,"y":-185,"length":12871.329573901836}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4796,"safeId":-1,"rotation":-180,"graphic":true,"isWheel":false,"y":-944,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":33,"y":-1,"length":33.015148038438355},{"x":59,"y":-7,"length":59.413803110051795},{"x":83,"y":-17,"length":84.72307831990054},{"x":107,"y":-34,"length":112.27199116431488},{"x":130,"y":-53,"length":140.38874598770374},{"x":148,"y":-74,"length":165.46903033498444},{"x":160,"y":-97,"length":187.1069213043708},{"x":170,"y":-120,"length":208.08652046684813},{"x":177,"y":-146,"length":229.44498251214821},{"x":180,"y":-175,"length":251.04780421266383},{"x":265,"y":-175,"length":317.56889016400834},{"x":265,"y":85,"length":278.29840100151495},{"x":0,"y":85,"length":85}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1270,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-310,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-150,"y":40,"length":155.24174696260025},{"x":100,"y":-20,"length":101.9803902718557},{"x":100,"y":40,"length":107.70329614269008}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5813,"safeId":-1,"rotation":0,"graphic":true,"height":681.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":111,"y":0,"length":111},{"x":141,"y":-2,"length":141.01418368376991},{"x":171,"y":-6,"length":171.10523077919038},{"x":202,"y":-13,"length":202.41788458533006},{"x":233,"y":-24,"length":234.23279018958897},{"x":263,"y":-39,"length":265.8759109058209},{"x":289,"y":-55,"length":294.1870153490803},{"x":316,"y":-76,"length":325.01076905235004},{"x":339,"y":-97,"length":352.60459441136044},{"x":359,"y":-121,"length":378.8429753869009},{"x":376,"y":-146,"length":403.3509638019971},{"x":392,"y":-172,"length":428.0747598258977},{"x":422,"y":-233,"length":482.0508271956392},{"x":1115,"y":-234,"length":1139.289690991716},{"x":1231,"y":-112,"length":1236.0845440341045},{"x":1262,"y":-79,"length":1264.4702448061007},{"x":1293,"y":-55,"length":1294.1692315922212},{"x":1330,"y":-36,"length":1330.4871288366528},{"x":1369,"y":-21,"length":1369.1610569980437},{"x":1411,"y":-12,"length":1411.051026717319},{"x":1459,"y":-9,"length":1459.0277584748003},{"x":1858,"y":-10,"length":1858.0269104617403},{"x":1915,"y":-19,"length":1915.0942535551612},{"x":1971,"y":-33,"length":1971.2762363504512},{"x":2033,"y":-55,"length":2033.7438383434626},{"x":2085,"y":-79,"length":2086.4961059153693},{"x":2129,"y":-105,"length":2131.587671197223},{"x":2178,"y":-146,"length":2182.8879952943075},{"x":2223,"y":-192,"length":2231.276092284413},{"x":2260,"y":-234,"length":2272.0818647223077},{"x":2298,"y":-285,"length":2315.6055363554474},{"x":2326,"y":-339,"length":2350.5737597446287},{"x":2442,"y":-666,"length":2531.1894437200863}],"smoothing":true,"id":-1,"repeatTexture":true,"width":2457,"type":9,"textureOffset":0,"y":419}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4900,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-60,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-10,"y":0,"length":10},{"x":220,"y":0,"length":220},{"x":220,"y":100,"length":241.66091947189145},{"x":-10,"y":100,"length":100.4987562112089}],"line":false,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4900,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-160,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-10,"y":0,"length":10},{"x":220,"y":0,"length":220},{"x":220,"y":100,"length":241.66091947189145},{"x":-10,"y":100,"length":100.4987562112089}],"line":false,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4900,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-260,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-10,"y":15,"length":18.027756377319946},{"x":220,"y":15,"length":220.51077071199947},{"x":220,"y":100,"length":241.66091947189145},{"x":-10,"y":100,"length":100.4987562112089}],"line":false,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4900,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":40,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-10,"y":0,"length":10},{"x":240,"y":0,"length":240},{"x":240,"y":100,"length":260},{"x":-10,"y":100,"length":100.4987562112089}],"line":false,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5814,"safeId":-1,"rotation":0,"graphic":true,"height":723,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":119,"y":0,"length":119},{"x":141,"y":-3,"length":141.0319112825179},{"x":162,"y":-12,"length":162.4438364481706},{"x":180,"y":-25,"length":181.72781845386248},{"x":196,"y":-43,"length":200.66140635408692},{"x":272,"y":-349,"length":442.47598804906914},{"x":292,"y":-405,"length":499.2884937588688},{"x":310,"y":-443,"length":540.6930737488691},{"x":327,"y":-469,"length":571.7429492350561},{"x":348,"y":-498,"length":607.5425910995871},{"x":373,"y":-526,"length":644.8294348120285},{"x":399,"y":-552,"length":681.1057186663462},{"x":435,"y":-586,"length":729.8088790909576},{"x":472,"y":-613,"length":773.6620709327814},{"x":508,"y":-636,"length":813.977886677519},{"x":546,"y":-656,"length":853.4939952922927},{"x":587,"y":-673,"length":893.0274351888636},{"x":628,"y":-686,"length":930.0430097581509},{"x":671,"y":-696,"length":966.7766029440307},{"x":715,"y":-702,"length":1002.012474972243},{"x":757,"y":-705,"length":1034.4438119105357},{"x":808,"y":-704,"length":1071.6715914868696},{"x":859,"y":-699,"length":1107.4664780479814},{"x":911,"y":-689,"length":1142.2092627885663},{"x":964,"y":-673,"length":1175.680653919252},{"x":1015,"y":-652,"length":1206.3701753607804},{"x":1073,"y":-619,"length":1238.7453329881812},{"x":1128,"y":-576,"length":1266.5543809880412},{"x":1164,"y":-537,"length":1281.8989819794695},{"x":1199,"y":-483,"length":1292.629103803562},{"x":1222,"y":-433,"length":1296.4462966123972},{"x":1388,"y":-62,"length":1389.3840361829411},{"x":1405,"y":-38,"length":1405.5137850622455},{"x":1425,"y":-20,"length":1425.1403439661653},{"x":1441,"y":-10,"length":1441.0346977085596},{"x":1462,"y":-3,"length":1462.0030779721362},{"x":1485,"y":-1,"length":1485.0003367002985},{"x":1825,"y":-1,"length":1825.0002739725821},{"x":1869,"y":-6,"length":1869.0096307938063},{"x":1914,"y":-17,"length":1914.0754948538472},{"x":1961,"y":-36,"length":1961.3304158147346},{"x":1997,"y":-55,"length":1997.7572425097098},{"x":2036,"y":-84,"length":2037.7320726729508},{"x":2085,"y":-131,"length":2089.111294306744},{"x":2115,"y":-172,"length":2121.982327918873},{"x":2137,"y":-215,"length":2147.788164600969},{"x":2240,"y":-514,"length":2298.215829725311}],"smoothing":true,"id":-1,"repeatTexture":true,"width":2255,"type":8,"textureOffset":0,"y":201}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8390,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":330,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":10,"y":-605,"length":605.0826389841309},{"x":595,"y":-1055,"length":1211.218394840501},{"x":1915,"y":-1070,"length":2193.6556247506123},{"x":1915,"y":-950,"length":2137.691511888467},{"x":1670,"y":-950,"length":1921.3016421166146},{"x":1515,"y":-950,"length":1788.2183871104783},{"x":1015,"y":-950,"length":1390.224801965495},{"x":1010,"y":100,"length":1014.9384217774002},{"x":860,"y":100,"length":865.7944328765345},{"x":860,"y":-940,"length":1274.0486646906388},{"x":640,"y":-940,"length":1137.18951806636},{"x":135,"y":-540,"length":556.6192594583841},{"x":135,"y":90,"length":162.24980739587951},{"x":10,"y":90,"length":90.55385138137417}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4900,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":140,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-10,"y":0,"length":10},{"x":240,"y":0,"length":240},{"x":240,"y":100,"length":260},{"x":-10,"y":100,"length":100.4987562112089}],"line":false,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4900,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":240,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-10,"y":0,"length":10},{"x":240,"y":0,"length":240},{"x":240,"y":100,"length":260},{"x":-10,"y":100,"length":100.4987562112089}],"line":false,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4900,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":340,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-10,"y":0,"length":10},{"x":240,"y":0,"length":240},{"x":240,"y":90,"length":256.3201123595259},{"x":-10,"y":90,"length":90.55385138137417}],"line":false,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10930,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-570,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":625,"y":0,"length":625},{"x":625,"y":70,"length":628.9077833832239},{"x":0,"y":70,"length":70}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5150,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":140,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-10,"y":0,"length":10},{"x":665,"y":0,"length":665},{"x":665,"y":275,"length":719.617954195141},{"x":-10,"y":275,"length":275.1817581163403}],"line":false,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10838,"safeId":-1,"rotation":-90,"graphic":true,"isWheel":false,"y":137,"plr":false,"density":0.1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":5,"length":5},{"x":1455,"y":5,"length":1455.0085910399291},{"x":1455,"y":95,"length":1458.0980762623617},{"x":0,"y":95,"length":95}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10944,"safeId":-1,"rotation":-90,"graphic":true,"isWheel":false,"y":-541,"plr":false,"density":0.1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10100,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-840,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-5,"y":100,"length":100.12492197250393},{"x":200,"y":-15,"length":200.5617112013158},{"x":200,"y":100,"length":223.60679774997897}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":11420,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1100,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":115,"y":-20,"length":116.72617529928752},{"x":-700,"y":-775,"length":1044.3299287102711},{"x":-685,"y":-1835,"length":1958.6857838867365},{"x":2260,"y":-1570,"length":2751.817581163403},{"x":2750,"y":1525,"length":3144.538916916119},{"x":115,"y":1535,"length":1539.3017897735324},{"x":120,"y":85,"length":147.05441169852742},{"x":70,"y":40,"length":80.62257748298549}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":10302,"safeId":-1,"rotation":0,"graphic":true,"height":67,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":3,"y":9,"length":9.486832980505138},{"x":-895,"y":12,"length":895.0804433122198}],"smoothing":true,"id":-1,"repeatTexture":true,"width":911,"type":5,"textureOffset":0,"y":-629}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":11503,"safeId":-1,"rotation":0,"graphic":true,"height":784.7,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":2,"y":-4,"length":4.47213595499958},{"x":-786,"y":-742,"length":1080.907026529109}],"smoothing":true,"id":-1,"repeatTexture":true,"width":831.7,"type":5,"textureOffset":0,"y":-1130}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":218,"safeId":-10,"rotation":-179.99999999999994,"graphic":true,"isWheel":false,"y":-312,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":151,"y":-44,"length":157.2800050864699},{"x":150,"y":20,"length":151.32745950421557},{"x":140,"y":55,"length":150.41608956491322},{"x":127,"y":78,"length":149.04026301640775},{"x":110,"y":101,"length":149.33519344079613},{"x":90,"y":119,"length":149.20120642943877},{"x":66,"y":134,"length":149.37201879870273},{"x":41,"y":144,"length":149.7230777134908},{"x":37,"y":269,"length":271.53268679847736},{"x":-39,"y":268,"length":270.8228203087768},{"x":-41,"y":144,"length":149.7230777134908},{"x":-66,"y":134,"length":149.37201879870273},{"x":-90,"y":119,"length":149.20120642943877},{"x":-110,"y":101,"length":149.33519344079613},{"x":-127,"y":78,"length":149.04026301640775},{"x":-139,"y":54,"length":149.12075643584967},{"x":-147,"y":27,"length":149.4590244849738},{"x":-148,"y":-45,"length":154.69001260585637},{"x":-93,"y":-45,"length":103.31505214633539},{"x":-92,"y":20,"length":94.14881836751856},{"x":-86,"y":37,"length":93.62157870918435},{"x":-77,"y":55,"length":94.62557793746889},{"x":-62,"y":70,"length":93.50935782048768},{"x":-47,"y":82,"length":94.51454914456292},{"x":-23,"y":91,"length":93.86160024205851},{"x":0,"y":94,"length":94},{"x":21,"y":92,"length":94.36630754670864},{"x":42,"y":84,"length":93.91485505499116},{"x":59,"y":73,"length":93.86160024205851},{"x":72,"y":62,"length":95.01578816175763},{"x":81,"y":49,"length":94.66784036831093},{"x":89,"y":33,"length":94.92101980067429},{"x":95,"y":10,"length":95.524865872714},{"x":96,"y":-44,"length":105.60303025955268}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5120,"safeId":-1,"rotation":0,"graphic":true,"height":467.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":691,"y":-1,"length":691.0007235886226},{"x":691,"y":452,"length":825.7027310115911}],"smoothing":true,"id":-1,"repeatTexture":true,"width":705.5,"type":6,"textureOffset":0,"y":-253}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":4890,"safeId":-1,"rotation":0,"graphic":true,"height":16,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":16,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":229,"y":0,"length":229}],"smoothing":true,"id":-1,"repeatTexture":true,"width":242,"type":6,"textureOffset":0,"y":-253}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5860,"safeId":-1,"rotation":0,"graphic":true,"height":723.05,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":64,"y":1,"length":64.00781202322104},{"x":99,"y":-2,"length":99.02019995940222},{"x":139,"y":-13,"length":139.60659010233005},{"x":175,"y":-35,"length":178.46568297574746},{"x":200,"y":-61,"length":209.0956718825141},{"x":220,"y":-92,"length":238.46173697262208},{"x":235,"y":-141,"length":274.05473905772914},{"x":295,"y":-373,"length":475.5565160945647},{"x":314,"y":-418,"length":522.8001530221658},{"x":336,"y":-464,"length":572.880441278981},{"x":363,"y":-508,"length":624.3660785148405},{"x":392,"y":-540,"length":667.2810502329585},{"x":427,"y":-575,"length":716.2080703259354},{"x":467,"y":-609,"length":767.4438090179632},{"x":509,"y":-635,"length":813.8218478266604},{"x":554,"y":-655,"length":857.8700367771332},{"x":611,"y":-672,"length":908.2428089448327},{"x":666,"y":-684,"length":954.6790036446805},{"x":720,"y":-688,"length":995.8634444541078},{"x":770,"y":-685,"length":1030.5944886326533},{"x":818,"y":-676,"length":1061.1785900591851},{"x":870,"y":-660,"length":1092.0164833920778},{"x":913,"y":-643,"length":1116.6996015043617},{"x":947,"y":-624,"length":1134.1009655229116},{"x":983,"y":-599,"length":1151.1255361601532},{"x":1017,"y":-571,"length":1166.331856720033},{"x":1053,"y":-532,"length":1179.7597212992143},{"x":1084,"y":-491,"length":1190.0155461169404},{"x":1263,"y":-91,"length":1266.2740619628912},{"x":1288,"y":-56,"length":1289.21681652079},{"x":1317,"y":-27,"length":1317.2767363010705},{"x":1345,"y":-12,"length":1345.0535305332646},{"x":1381,"y":-2,"length":1381.0014482251638},{"x":1434,"y":3,"length":1434.0031380718801},{"x":1788,"y":-2,"length":1788.0011185678827},{"x":1864,"y":-13,"length":1864.0453320667928},{"x":1911,"y":-28,"length":1911.2051171970004},{"x":1959,"y":-50,"length":1959.6379767701992},{"x":1998,"y":-71,"length":1999.2611135116892},{"x":2044,"y":-105,"length":2046.6951409528483},{"x":2075,"y":-137,"length":2079.51773255243},{"x":2114,"y":-189,"length":2122.4318599191824},{"x":2144,"y":-233,"length":2156.6235183731073},{"x":2165,"y":-278,"length":2182.7755267090565},{"x":2265,"y":-556,"length":2332.243769420341}],"smoothing":true,"id":-1,"repeatTexture":true,"width":2286.55,"type":10,"textureOffset":0,"y":270}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":4791,"safeId":-1,"rotation":0,"graphic":true,"height":691.55,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":true,"stretchTexture":false,"vertices":[{"x":-851,"y":674,"length":1085.576805205417},{"x":-851,"y":-3,"length":851.0052878801636},{"x":100,"y":0,"length":100}],"smoothing":true,"id":-1,"repeatTexture":true,"width":965.5,"type":6,"textureOffset":0,"y":-251}}],[{"className":"Dec36","params":{"scaleX":1,"rotation":178,"scaleY":-1,"x":5841.45,"y":300.75,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":109,"scaleY":-1,"x":6096,"y":178,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-129,"scaleY":-1.1796284956113492,"x":7067,"y":115,"width":75.25,"height":288.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":178,"scaleY":-1,"x":7289,"y":286,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":178,"scaleY":-1,"x":7649,"y":284,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":130,"scaleY":-1,"x":7980,"y":105,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":109,"scaleY":-1,"x":8135,"y":-258,"width":75.25,"height":244.95}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":4160,"y":-320,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":6580,"y":120,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":9340,"y":-790,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":-138,"scaleY":1,"x":11380,"y":-1200,"width":9.3,"height":128.35}},{"className":"Sign1","params":{"x":11330,"rotation":-45,"y":-1150,"width":68.8,"height":69.8}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":380,"y":-440,"width":640,"height":256}},{"className":"Dec51","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":920,"y":-440,"width":256,"height":256}},{"className":"Dec55","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":990,"y":-440,"width":256,"height":256}}],[{"className":"SphereE","params":{"x":1910,"damp":1,"rotation":0,"y":-220,"freq":5,"lenSpring":128,"dySpring":2,"scale":1,"density":1,"active":false,"pos":1,"id":81,"len":64,"width":276.35,"height":276.35}},{"className":"SphereE","params":{"x":2627,"damp":1,"rotation":0,"y":-220,"freq":1,"lenSpring":128,"dySpring":2,"scale":1,"density":1,"active":false,"pos":1,"id":81,"len":64,"width":276.35,"height":276.35}},{"className":"SphereE","params":{"x":2981,"damp":1,"rotation":0,"y":-220,"freq":1,"lenSpring":128,"dySpring":2,"scale":1,"density":1,"active":false,"pos":1,"id":81,"len":64,"width":276.35,"height":276.35}},{"className":"SphereE","params":{"x":2280,"damp":1,"rotation":0,"y":-220,"freq":5,"lenSpring":128,"dySpring":2,"scale":1,"density":1,"active":false,"pos":1,"id":81,"len":64,"width":276.35,"height":276.35}},{"className":"SphereE","params":{"x":3361,"damp":1,"rotation":0,"y":-220,"freq":1,"lenSpring":128,"dySpring":2,"scale":1,"density":1,"active":false,"pos":1,"id":81,"len":64,"width":276.35,"height":276.35}},{"className":"SphereE","params":{"x":3731,"damp":1,"rotation":0,"y":-220,"freq":1,"lenSpring":128,"dySpring":2,"scale":1,"density":1,"active":false,"pos":1,"id":81,"len":64,"width":276.35,"height":276.35}}],[{"className":"Dec37","params":{"scaleX":1,"rotation":178.00000000000006,"scaleY":-1,"x":5841.5,"y":301.7,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":109.00000000000006,"scaleY":-1,"x":6097,"y":177,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-129,"scaleY":-1.1885785447429282,"x":7065,"y":117,"width":99.95,"height":334.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":178.00000000000006,"scaleY":-1,"x":7290,"y":287,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":178.00000000000006,"scaleY":-1,"x":7650,"y":285,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":130.00000000000006,"scaleY":-1,"x":7981,"y":105,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":109.00000000000006,"scaleY":-1,"x":8136,"y":-259,"width":99.95,"height":281.05}}],[{"className":"PlayerWP","params":{"x":215,"rotation":0,"y":-331,"width":64,"height":32}},{"className":"SafePointE","params":{"x":4160,"rotation":0,"y":-390,"id":0,"width":128,"height":1569}},{"className":"SafePointE","params":{"x":6580,"rotation":0,"y":50,"id":0,"width":128,"height":1244}},{"className":"SafePointE","params":{"x":9340,"rotation":0,"y":-850,"id":0,"width":128,"height":1680}}],[{"className":"ToggleE","params":{"x":5150,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":1,"off":false,"y":-250,"width":321,"rotation":90,"height":56}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":5007,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-202,"height":13,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-256,"y":0,"length":256}],"stopOnEnd":true,"id":1,"accelDist":0,"width":269,"speed":250}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":5007,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-110,"height":13,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-256,"y":0,"length":256}],"stopOnEnd":true,"id":2,"accelDist":0,"width":269,"speed":300}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":5007,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-10,"height":13,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-256,"y":0,"length":256}],"stopOnEnd":true,"id":3,"accelDist":0,"width":269,"speed":350}},{"className":"ToggleE","params":{"x":5270,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":2,"off":false,"y":-352,"width":321,"rotation":27,"height":56}},{"className":"ToggleE","params":{"x":5306,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":3,"off":false,"y":-471,"width":321,"rotation":0,"height":56}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":5284,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-83,"height":205,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-192,"length":192}],"stopOnEnd":true,"id":11,"accelDist":0,"width":13,"speed":400}},{"className":"ToggleE","params":{"x":4730,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":11,"off":false,"y":-330,"width":64,"rotation":0,"height":575}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":5600,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":false,"cycle":0,"body":false,"position":0,"y":-910,"height":324,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-314,"y":311,"length":441.94682938109196}],"stopOnEnd":true,"id":11,"accelDist":0,"width":327,"speed":480}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":4650,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":false,"cycle":0,"body":false,"position":0,"y":-930,"height":341,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":311,"y":328,"length":452.0011061933367}],"stopOnEnd":true,"id":11,"accelDist":0,"width":324,"speed":450}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":5017,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":90,"height":13,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-256,"y":0,"length":256}],"stopOnEnd":true,"id":4,"accelDist":0,"width":269,"speed":400}},{"className":"ToggleE","params":{"x":5126,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":4,"off":false,"y":-641,"width":321,"rotation":-90,"height":56}},{"className":"ToggleE","params":{"x":4976,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":7,"off":false,"y":-221,"width":321,"rotation":-180,"height":56}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":5017,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":190,"height":13,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-256,"y":0,"length":256}],"stopOnEnd":true,"id":5,"accelDist":0,"width":269,"speed":400}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":5017,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":290,"height":13,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-256,"y":0,"length":256}],"stopOnEnd":true,"id":6,"accelDist":0,"width":269,"speed":400}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":5017,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":380,"height":13,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-256,"y":0,"length":256}],"stopOnEnd":true,"id":7,"accelDist":0,"width":269,"speed":400}},{"className":"ToggleE","params":{"x":4966,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":5,"off":false,"y":-571,"width":321,"rotation":-147,"height":56}},{"className":"ToggleE","params":{"x":4966,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":6,"off":false,"y":-451,"width":321,"rotation":-180,"height":56}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":5477,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":276,"height":285,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-272,"length":272}],"stopOnEnd":true,"id":8,"accelDist":0,"width":13,"speed":400}},{"className":"ToggleE","params":{"x":5006,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":8,"off":false,"y":-121,"width":321,"rotation":-180,"height":56}},{"className":"PivotJointE","params":{"x":10898,"safeId":-1,"rotation":-90,"graphic":0,"id":-1,"y":-603,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":10868,"safeId":-1,"rotation":-90,"graphic":0,"id":-1,"y":-543,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":10898,"safeId":-1,"rotation":-90,"graphic":0,"id":-1,"y":-473,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":10945,"safeId":-1,"rotation":-90,"graphic":1,"id":-1,"y":-541,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":10860,"safeId":-1,"rotation":-90,"graphic":0,"id":51,"y":123,"width":17,"height":17}},{"className":"ToggleE","params":{"x":10870,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":51,"off":false,"y":-660,"width":64,"rotation":0,"height":1533}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":9850,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":330,"height":797,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-784,"length":784}],"stopOnEnd":true,"id":41,"accelDist":0,"width":13,"speed":600}},{"className":"ToggleE","params":{"x":10210,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":41,"off":false,"y":-130,"width":64,"rotation":0,"height":1082}},{"className":"ToggleE","params":{"x":210,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":27,"off":false,"y":-290,"width":247,"rotation":0,"height":64}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":220,"safeId":-10,"rotation":0,"startTime":"0.5","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-430,"height":317,"active":0,"vertices":[{"x":0,"y":16,"length":16},{"x":0,"y":-288,"length":288}],"stopOnEnd":true,"id":27,"accelDist":0,"width":13,"speed":300}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":5007,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-253,"height":13,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-256,"y":0,"length":256}],"stopOnEnd":true,"id":1,"accelDist":0,"width":269,"speed":250}},{"className":"ToggleE","params":{"x":3390,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":80,"off":false,"y":-510,"width":64,"rotation":0,"height":1940}},{"className":"ToggleE","params":{"x":5190,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":320,"width":64,"rotation":0,"height":568}},{"className":"ToggleE","params":{"x":6590,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-520,"width":64,"rotation":0,"height":568}},{"className":"ToggleE","params":{"x":8280,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-490,"width":64,"rotation":0,"height":568}},{"className":"ToggleE","params":{"x":10270,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-20,"width":64,"rotation":0,"height":568}},{"className":"ToggleE","params":{"x":1360,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":81,"off":false,"y":-531,"width":64,"rotation":0,"height":396}},{"className":"ToggleE","params":{"x":4000,"safeId":-1,"sndId":-1,"hint":-1,"id_off":81,"id":-2,"off":false,"y":-461,"width":64,"rotation":0,"height":396}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map16.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map16.json new file mode 100644 index 000000000..161e23a71 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map16.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"28,36,43"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":750,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":505,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":-475,"y":0,"length":475},{"x":1210,"y":0,"length":1210},{"x":1210,"y":600,"length":1350.5924625881785},{"x":-475,"y":600,"length":765.2613932506983}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":535,"viscosity":1.5,"rotation":0,"y":506,"vertices":[{"x":-350,"y":0,"length":350},{"x":1420,"y":0,"length":1420},{"x":1670,"y":660,"length":1795.6892826989863},{"x":-350,"y":660,"length":747.0609078247904}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9280,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":750,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1940,"y":0,"length":1940},{"x":1945,"y":785,"length":2097.43891448595},{"x":5,"y":785,"length":785.0159234053791}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2610,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":557,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":915,"y":0,"length":915},{"x":815,"y":585,"length":1003.2198163912035},{"x":100,"y":595,"length":603.3448433524562}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7640,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-483,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":580,"y":0,"length":580},{"x":580,"y":445,"length":731.0437743391294},{"x":0,"y":445,"length":445}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6991,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-483,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":580,"y":0,"length":580},{"x":580,"y":445,"length":731.0437743391294},{"x":0,"y":445,"length":445}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6821,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1124,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":-445,"y":0,"length":445},{"x":100,"y":0,"length":100},{"x":100,"y":450,"length":460.9772228646444},{"x":-190,"y":450,"length":488.4669896727925}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6990,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1120,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":580,"y":0,"length":580},{"x":580,"y":445,"length":731.0437743391294},{"x":0,"y":445,"length":445}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":9130,"viscosity":1.5,"rotation":0,"y":750,"vertices":[{"x":0,"y":0,"length":0},{"x":2230,"y":0,"length":2230},{"x":2250,"y":715,"length":2360.873778921694},{"x":15,"y":710,"length":710.1584330274477}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":890,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":278,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":150,"y":-70,"length":165.5294535724685},{"x":150,"y":35,"length":154.02921800749363},{"x":0,"y":35,"length":35}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8290,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-483,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":625,"y":0,"length":625},{"x":745,"y":440,"length":865.2311829794393},{"x":0,"y":445,"length":445}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::FinishShaper","params":{"x":11770,"rotation":0,"y":-1720,"vertices":[{"x":0,"y":0,"length":0},{"x":565,"y":5,"length":565.022123460666},{"x":565,"y":2445,"length":2509.432206695371},{"x":0,"y":2440,"length":2440}]}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6342,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-483,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":65,"y":0,"length":65},{"x":580,"y":0,"length":580},{"x":580,"y":445,"length":731.0437743391294},{"x":65,"y":445,"length":449.7221364353772}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":6775,"viscosity":1.5,"rotation":0,"y":726,"vertices":[{"x":0,"y":0,"length":0},{"x":2225,"y":-5,"length":2225.0056179704357},{"x":2225,"y":525,"length":2286.099297930866},{"x":0,"y":530,"length":530}],"id":-1,"bg":true,"sf":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9083,"safeId":-1,"rotation":123.00000000000006,"graphic":false,"height":651.1,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":-58,"y":-188,"length":196.74348782107123},{"x":-88,"y":-224,"length":240.66574330386118},{"x":-119,"y":-253,"length":279.58898404622454},{"x":-161,"y":-284,"length":326.4613300224086},{"x":-205,"y":-305,"length":367.4914965002592},{"x":-255,"y":-320,"length":409.1760012512953},{"x":-313,"y":-326,"length":451.9347298006649},{"x":-368,"y":-323,"length":489.64579034236573},{"x":-423,"y":-309,"length":523.8415791057445},{"x":-475,"y":-287,"length":554.9720713693617},{"x":-521,"y":-256,"length":580.4972006823117},{"x":-560,"y":-217,"length":600.5738922064462},{"x":-589,"y":-177,"length":615.0203248673981},{"x":-610,"y":-138,"length":625.4150621787103},{"x":-624,"y":-100,"length":631.9620241755038},{"x":-633,"y":-61,"length":635.9323863430766},{"x":-636,"y":-23,"length":636.4157446198201},{"x":-635,"y":22,"length":635.380988069363},{"x":-628,"y":61,"length":630.955624430118},{"x":-617,"y":96,"length":624.423734334306},{"x":-601,"y":134,"length":615.7572573668946},{"x":-581,"y":167,"length":604.5246066125018},{"x":-555,"y":201,"length":590.2762065338565},{"x":-530,"y":226,"length":576.1735849550897},{"x":-499,"y":250,"length":558.1227463560323},{"x":-467,"y":270,"length":539.4339625941251},{"x":-422,"y":289,"length":511.47336196521513},{"x":-374,"y":301,"length":480.0802016330188},{"x":-328,"y":305,"length":447.89396066479844},{"x":-274,"y":301,"length":407.03439658092776},{"x":-231,"y":290,"length":370.7573330360439},{"x":-187,"y":269,"length":327.6125760711881}],"smoothing":true,"id":-1,"repeatTexture":true,"width":595.7,"type":1,"textureOffset":0,"y":-526}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8290,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1120,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":580,"y":0,"length":580},{"x":580,"y":445,"length":731.0437743391294},{"x":0,"y":445,"length":445}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3485,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":576,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":9,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":30,"y":-12,"length":32.31098884280702},{"x":490,"y":-220,"length":537.1219600798314},{"x":520,"y":-230,"length":568.59475903318},{"x":555,"y":-225,"length":598.8739433303139},{"x":930,"y":-130,"length":939.0420650854785},{"x":950,"y":-125,"length":958.18839483684},{"x":950,"y":-90,"length":954.2536350467835},{"x":945,"y":75,"length":947.9715185594977},{"x":21,"y":77,"length":79.81227975693966},{"x":0,"y":80,"length":80},{"x":0,"y":55,"length":55},{"x":0,"y":20,"length":20}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":185,"y":406,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":12853,"textureOffset":0,"height":1233.05,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":-5,"y":80,"length":80.15609770940699},{"x":1920,"y":80,"length":1921.6659439142902},{"x":2670,"y":265,"length":2683.118521422414},{"x":4235,"y":45,"length":4235.239072354711},{"x":5200,"y":285,"length":5207.804239792429},{"x":5405,"y":295,"length":5413.0444298934035},{"x":5605,"y":150,"length":5607.0067772386365},{"x":6370,"y":-765,"length":6415.771582592385},{"x":8515,"y":-770,"length":8549.744148218706},{"x":9105,"y":380,"length":9112.926258891817},{"x":12835,"y":395,"length":12841.076668254886}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":2625,"viscosity":1.5,"rotation":0,"y":556,"vertices":[{"x":0,"y":0,"length":0},{"x":865,"y":0,"length":865},{"x":865,"y":225,"length":893.7840902589394},{"x":0,"y":225,"length":225}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":11195,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":676,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1250,"y":0,"length":1250},{"x":1250,"y":855,"length":1514.4388399668044},{"x":852,"y":897,"length":1237.1390382653035},{"x":400,"y":950,"length":1030.7764064044152},{"x":0,"y":840,"length":840}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":865,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":277,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-800,"y":-620,"length":1012.1264743103997},{"x":-535,"y":-620,"length":818.91696770796},{"x":-535,"y":0,"length":535},{"x":175,"y":0,"length":175},{"x":175,"y":80,"length":192.41881404893857},{"x":-535,"y":80,"length":540.9482415166908},{"x":-535,"y":810,"length":970.7342581777981},{"x":-800,"y":810,"length":1138.4638773364748}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2470,"safeId":-1,"rotation":0,"graphic":false,"isWheel":false,"y":501,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-40,"y":-15,"length":42.720018726587654},{"x":170,"y":60,"length":180.27756377319946},{"x":155,"y":100,"length":184.45866745696716},{"x":-55,"y":25,"length":60.41522986797286}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9118,"safeId":-1,"rotation":36,"graphic":false,"isWheel":false,"y":406,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-65,"y":-25,"length":69.6419413859206},{"x":165,"y":60,"length":175.57049866079439},{"x":235,"y":30,"length":236.90715480964266},{"x":185,"y":115,"length":217.83020910791964},{"x":-80,"y":15,"length":81.39410298049853}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1945,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":296,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1160,"y":435,"length":1238.880543071042},{"x":2060,"y":25,"length":2060.151693443956},{"x":3390,"y":370,"length":3410.1319622560063},{"x":3450,"y":380,"length":3470.864445638867},{"x":3510,"y":382,"length":3530.725704440944},{"x":3561,"y":379,"length":3581.1118385216623},{"x":3608,"y":371,"length":3627.024262394725},{"x":3653,"y":357,"length":3670.4029751513663},{"x":3694,"y":339,"length":3709.5224760068513},{"x":3734,"y":315,"length":3747.2631346090443},{"x":3773,"y":290,"length":3784.128565469202},{"x":3810,"y":257,"length":3818.6580103486617},{"x":3843,"y":223,"length":3849.464638102291},{"x":3874,"y":182,"length":3878.2728114458373},{"x":3900,"y":139,"length":3902.476265142429},{"x":3921,"y":95,"length":3922.15068552956},{"x":3935,"y":45,"length":3935.2572978142102},{"x":4120,"y":-745,"length":4186.8156157156},{"x":4160,"y":-780,"length":4232.493354985923},{"x":4470,"y":-780,"length":4537.54338822231},{"x":4470,"y":-375,"length":4485.702286153195},{"x":6360,"y":-375,"length":6371.04583251447},{"x":7080,"y":-370,"length":7089.661486982294},{"x":7290,"y":280,"length":7295.375247374189},{"x":7540,"y":1035,"length":7610.704632292597},{"x":7310,"y":1340,"length":7431.803280496598},{"x":1055,"y":1060,"length":1495.535021321801},{"x":0,"y":670,"length":670}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6923,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-570,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":-305,"length":305},{"x":65,"y":-305,"length":311.8493225902535},{"x":65,"y":100,"length":119.26860441876563},{"x":0,"y":100,"length":100}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7573,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-570,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":-305,"length":305},{"x":65,"y":-305,"length":311.8493225902535},{"x":65,"y":100,"length":119.26860441876563},{"x":0,"y":100,"length":100}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8222,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-570,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":-305,"length":305},{"x":65,"y":-305,"length":311.8493225902535},{"x":65,"y":100,"length":119.26860441876563},{"x":0,"y":100,"length":100}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7640,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1120,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":580,"y":0,"length":580},{"x":580,"y":445,"length":731.0437743391294},{"x":0,"y":445,"length":445}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9470,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1130,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":480,"y":-905,"length":1024.414466902923},{"x":480,"y":695,"length":844.6448957994122},{"x":-200,"y":695,"length":723.2046736574647},{"x":-200,"y":650,"length":680.0735254367721},{"x":-155,"y":645,"length":663.3626459185051},{"x":-104,"y":632,"length":640.4998048399391},{"x":-61,"y":615,"length":618.0177990964338},{"x":-25,"y":591,"length":591.52852847517},{"x":10,"y":561,"length":561.0891194810322},{"x":40,"y":524,"length":525.5244999046191},{"x":61,"y":493,"length":496.75949915426884},{"x":82,"y":450,"length":457.41010045690945},{"x":95,"y":407,"length":417.94018710815544},{"x":104,"y":358,"length":372.8002145922129},{"x":103,"y":315,"length":331.41213013406735},{"x":97,"y":280,"length":296.3258341758275},{"x":83,"y":233,"length":247.34186867572583},{"x":67,"y":196,"length":207.13522153414664},{"x":47,"y":165,"length":171.56339936011994},{"x":25,"y":137,"length":139.26234236145822},{"x":0,"y":111,"length":111},{"x":-33,"y":87,"length":93.04837451562494},{"x":-71,"y":64,"length":95.58765610684259},{"x":-109,"y":49,"length":119.50732195141852},{"x":-150,"y":40,"length":155.24174696260025},{"x":-190,"y":35,"length":193.19679086361657},{"x":-234,"y":36,"length":236.7530358833863},{"x":-270,"y":41,"length":273.09522148876937},{"x":-300,"y":50,"length":304.138126514911},{"x":-333,"y":63,"length":338.90706690772913},{"x":-369,"y":82,"length":378.00132274900835},{"x":-403,"y":108,"length":417.2205651690722},{"x":-434,"y":138,"length":455.411901469428},{"x":-461,"y":174,"length":492.74435562469915},{"x":-482,"y":213,"length":526.9658432953696},{"x":-496,"y":257,"length":558.627783054155},{"x":-501,"y":299,"length":583.4397998080008},{"x":-600,"y":300,"length":670.820393249937},{"x":-600,"y":20,"length":600.3332407921454},{"x":-3090,"y":20,"length":3090.064724241225},{"x":-4125,"y":-1790,"length":4496.634852864973}],"line":true,"id":-1,"physic":true}}],[{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":6191,"y":-544,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":0.6493961823139852,"x":8590,"y":-524,"width":9.3,"height":83.4}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":340,"y":370,"width":640,"height":256}},{"className":"Dec51","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":880,"y":370,"width":256,"height":256}},{"className":"Dec56","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":950,"y":370,"width":256,"height":256}}],[{"className":"GlassCrashed0","params":{"x":9075,"safeId":-1,"rotation":0,"y":-474,"ttl":1,"width":132,"height":18}},{"className":"Tnt1","params":{"x":2557,"safeId":-1,"rotation":21,"y":553,"count":1,"radius":1,"physic":false,"stones":false,"impulse":1,"id":1,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":9178,"safeId":-1,"rotation":75,"y":507,"count":1,"radius":1,"physic":false,"stones":false,"impulse":1,"id":3,"width":53.2,"height":53.2}},{"className":"GlassCrashed0","params":{"x":9205,"safeId":-1,"rotation":0,"y":-474,"ttl":1,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":8945,"safeId":-1,"rotation":0,"y":-474,"ttl":1,"width":132,"height":18}},{"className":"Removed0","params":{"x":11921,"safeId":-1,"active":true,"y":640,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11990,"safeId":-1,"active":true,"y":640,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11955,"safeId":-1,"active":true,"y":600,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12025,"safeId":-1,"active":true,"y":600,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12059,"safeId":-1,"active":true,"y":640,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12060,"safeId":-1,"active":true,"y":560,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11920,"safeId":-1,"active":true,"y":560,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12025,"safeId":-1,"active":true,"y":520,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11990,"safeId":-1,"active":true,"y":560,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11955,"safeId":-1,"active":true,"y":520,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12055,"safeId":-1,"active":true,"y":480,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11925,"safeId":-1,"active":true,"y":480,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12025,"safeId":-1,"active":true,"y":440,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11990,"safeId":-1,"active":true,"y":480,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11955,"safeId":-1,"active":true,"y":440,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12055,"safeId":-1,"active":true,"y":400,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11925,"safeId":-1,"active":true,"y":400,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12025,"safeId":-1,"active":true,"y":360,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11990,"safeId":-1,"active":true,"y":400,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11955,"safeId":-1,"active":true,"y":360,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12055,"safeId":-1,"active":true,"y":320,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11925,"safeId":-1,"active":true,"y":320,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12025,"safeId":-1,"active":true,"y":280,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11990,"safeId":-1,"active":true,"y":320,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11955,"safeId":-1,"active":true,"y":280,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11885,"safeId":-1,"active":true,"y":600,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11851,"safeId":-1,"active":true,"y":640,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11815,"safeId":-1,"active":true,"y":600,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11781,"safeId":-1,"active":true,"y":640,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11885,"safeId":-1,"active":true,"y":520,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":11851,"safeId":-1,"active":true,"y":560,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12095,"safeId":-1,"active":true,"y":600,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12129,"safeId":-1,"active":true,"y":640,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12199,"safeId":-1,"active":true,"y":640,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12165,"safeId":-1,"active":true,"y":600,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12129,"safeId":-1,"active":true,"y":560,"id":-1,"rotation":0,"width":12.3,"type":0,"height":72}},{"className":"Removed0","params":{"x":12095,"safeId":-1,"active":true,"y":520,"id":-1,"rotation":90.00000000000006,"width":12.3,"type":0,"height":72}},{"className":"GlassCrashed0","params":{"x":6930,"safeId":-1,"rotation":15,"y":-460,"ttl":1,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":7580,"safeId":-1,"rotation":15,"y":-460,"ttl":1,"width":132,"height":18}},{"className":"GlassCrashed0","params":{"x":8229,"safeId":-1,"rotation":15,"y":-460,"ttl":1,"width":132,"height":18}}],null,[{"className":"PlayerWP","params":{"x":595,"rotation":0,"y":216,"width":64,"height":32}},{"className":"SafePointE","params":{"x":6190,"rotation":0,"y":-620,"id":0,"width":128,"height":2377}},{"className":"SafePointE","params":{"x":8590,"rotation":0,"y":-570,"id":0,"width":128,"height":494}}],[{"className":"frg.game.editor.objects::MoverPather","params":{"x":9138,"safeId":-1,"rotation":54,"startTime":"0","sideWait":0,"snapToGrid":false,"cycle":0,"body":false,"position":0,"y":475,"height":312,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":95,"y":-155,"length":181.79658962697843},{"x":64,"y":144,"length":157.58172482873766}],"stopOnEnd":true,"id":3,"accelDist":0,"width":108,"speed":600}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":2525,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":false,"cycle":0,"body":false,"position":0,"y":539,"height":231,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":33,"y":-74,"length":81.02468759581859},{"x":64,"y":144,"length":157.58172482873766}],"stopOnEnd":true,"id":1,"accelDist":0,"width":77,"speed":820}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":4008,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":547,"height":61,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-48,"length":48}],"stopOnEnd":true,"id":2,"accelDist":0,"width":13,"speed":90}},{"className":"ToggleE","params":{"x":3245,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":2,"off":false,"y":256,"width":64,"rotation":0,"height":1097}},{"className":"ToggleE","params":{"x":9305,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":3,"off":false,"y":282,"width":64,"rotation":75,"height":891}},{"className":"ToggleE","params":{"x":2685,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":1,"off":false,"y":316,"width":64,"rotation":21,"height":891}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map17.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map17.json new file mode 100644 index 000000000..f85da0960 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map17.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"28,37,46"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5490,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":175,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":2095,"y":0,"length":2095},{"x":2095,"y":285,"length":2114.296573331187},{"x":0,"y":285,"length":285}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2870,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-570,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":2540,"y":0,"length":2540},{"x":2545,"y":1005,"length":2736.247430332279},{"x":5,"y":1005,"length":1005.0124377339815}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5620,"safeId":-1,"rotation":0,"graphic":true,"height":1003,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":990,"length":990}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":18}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5830,"safeId":-1,"rotation":0,"graphic":true,"height":1003,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":990,"length":990}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":68}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6040,"safeId":-1,"rotation":0,"graphic":true,"height":1003,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":990,"length":990}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":118}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6250,"safeId":-1,"rotation":0,"graphic":true,"height":1003,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":990,"length":990}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":168}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6450,"safeId":-1,"rotation":0,"graphic":true,"height":1003,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":990,"length":990}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":208}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3918,"safeId":-1,"rotation":0,"graphic":true,"height":763,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":750,"length":750}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":-632}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":2978,"safeId":-1,"rotation":0,"graphic":true,"height":763,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":750,"length":750}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":-642}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":4327,"safeId":-1,"rotation":0,"graphic":true,"height":1143,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":1130,"length":1130}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":-876}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3358,"safeId":-1,"rotation":0,"graphic":true,"height":763,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":750,"length":750}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":-642}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":4887,"safeId":-1,"rotation":0,"graphic":true,"height":1208,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":1195,"length":1195}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":-806}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":4527,"safeId":-1,"rotation":0,"graphic":true,"height":1143,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":1130,"length":1130}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":-876}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3728,"safeId":-1,"rotation":0,"graphic":true,"height":763,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":750,"length":750}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":-642}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":4707,"safeId":-1,"rotation":0,"graphic":true,"height":1203,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":1190,"length":1190}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":-866}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5067,"safeId":-1,"rotation":0,"graphic":true,"height":1178,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":1165,"length":1165}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":-736}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3178,"safeId":-1,"rotation":0,"graphic":true,"height":763,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":750,"length":750}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":-642}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5252,"safeId":-1,"rotation":0,"graphic":true,"height":1108,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":1095,"length":1095}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":-666}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3538,"safeId":-1,"rotation":0,"graphic":true,"height":763,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":750,"length":750}],"smoothing":true,"id":-1,"repeatTexture":true,"width":16,"type":6,"textureOffset":0,"y":-642}},{"className":"frg.game.editor.objects::FinishShaper","params":{"x":6230,"rotation":0,"y":-243,"vertices":[{"x":0,"y":0,"length":0},{"x":595,"y":-305,"length":668.6179776224985},{"x":665,"y":-305,"length":731.6078184382668},{"x":1260,"y":-10,"length":1260.0396819148198},{"x":1177,"y":38,"length":1177.6132641916022},{"x":1117,"y":68,"length":1119.0679157227232},{"x":1044,"y":98,"length":1048.5895288433887},{"x":970,"y":124,"length":977.8936547498404},{"x":880,"y":148,"length":892.3586722837404},{"x":783,"y":162,"length":799.5830163278857},{"x":703,"y":173,"length":723.9737564304386},{"x":635,"y":180,"length":660.0189391222043},{"x":518,"y":173,"length":546.1254434651438},{"x":443,"y":165,"length":472.73036712273944},{"x":368,"y":152,"length":398.15574842013774},{"x":285,"y":132,"length":314.08438356594553},{"x":206,"y":105,"length":231.21634890292685},{"x":127,"y":72,"length":145.98972566588375},{"x":60,"y":38,"length":71.02112361825881}]}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6800,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1760,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":100,"y":1205,"length":1209.1422579663652},{"x":727,"y":1500,"length":1666.892018098353},{"x":686,"y":1530,"length":1676.7516214395023},{"x":637,"y":1558,"length":1683.191314141087},{"x":594,"y":1582,"length":1689.8402291341038},{"x":551,"y":1604,"length":1696.0002948112951},{"x":508,"y":1625,"length":1702.5536702259933},{"x":440,"y":1650,"length":1707.6592165886027},{"x":395,"y":1664,"length":1710.2400416315834},{"x":331,"y":1680,"length":1712.296995266884},{"x":270,"y":1694,"length":1715.3821731614212},{"x":198,"y":1704,"length":1715.4649515510364},{"x":130,"y":1711,"length":1715.9315254403364},{"x":56,"y":1713,"length":1713.9151087495552},{"x":-9,"y":1711,"length":1711.0236702044774},{"x":-81,"y":1707,"length":1708.9207120285014},{"x":-149,"y":1697,"length":1703.5286906888302},{"x":-205,"y":1687,"length":1699.409897582099},{"x":-263,"y":1674,"length":1694.5338592073042},{"x":-318,"y":1659,"length":1689.2024745423505},{"x":-359,"y":1645,"length":1683.7179098649513},{"x":-415,"y":1623,"length":1675.2175978063267},{"x":-467,"y":1600,"length":1666.7600307182795},{"x":-533,"y":1566,"length":1654.2203601697086},{"x":-610,"y":1514,"length":1632.2671349996606},{"x":0,"y":1205,"length":1205}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6168,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-705,"plr":false,"density":0.5,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":-20,"y":0,"length":20},{"x":85,"y":-40,"length":93.94147114027967},{"x":85,"y":35,"length":91.92388155425118},{"x":-20,"y":35,"length":40.311288741492746}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":2870,"viscosity":1.5,"rotation":0,"y":-570,"vertices":[{"x":0,"y":0,"length":0},{"x":2545,"y":0,"length":2545},{"x":2540,"y":1055,"length":2750.386336498929},{"x":-5,"y":1055,"length":1055.0118482747007}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3475,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-750,"plr":false,"density":0.5,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":-20,"y":0,"length":20},{"x":85,"y":-70,"length":110.11357772772621},{"x":185,"y":0,"length":185},{"x":185,"y":35,"length":188.2817038376273},{"x":-20,"y":35,"length":40.311288741492746}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6147,"safeId":-1,"rotation":0,"graphic":true,"height":329.5,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":675,"y":-315,"length":744.8825410761082}],"smoothing":true,"id":-1,"repeatTexture":true,"width":688,"type":6,"textureOffset":0,"y":-326}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":420,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":9593,"textureOffset":0,"height":83,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":true,"physic":true,"vertices":[{"x":-835,"y":0,"length":835},{"x":8745,"y":15,"length":8745.012864484534}],"line":true,"shape":true,"isRoad":true,"smoothing":true,"camera":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2480,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":320,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-2485,"y":-2190,"length":3312.299050508574},{"x":-1670,"y":-2190,"length":2754.0878707840825},{"x":-1668,"y":-1071,"length":1982.237372263978},{"x":410,"y":-1070,"length":1145.8621208504974},{"x":410,"y":100,"length":422.0189569201839},{"x":-2485,"y":100,"length":2487.0112585189477}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":2180,"y":240,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":9783.9,"textureOffset":0,"height":1464.6,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":-2275,"y":-885,"length":2441.0755826069785},{"x":1135,"y":-750,"length":1360.4135400678722},{"x":3785,"y":0,"length":3785},{"x":5880,"y":-5,"length":5880.0021258499555},{"x":7480,"y":-1405,"length":7610.809746669535}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3110,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-790,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":0,"y":40,"length":40},{"x":555,"y":40,"length":556.4395744373328},{"x":555,"y":100,"length":563.9370532249145},{"x":0,"y":100,"length":100}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2190,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-800,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-85,"y":50,"length":98.6154146165801},{"x":100,"y":-60,"length":116.61903789690601},{"x":265,"y":50,"length":269.675731203236}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3763,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-1077,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":100,"y":0,"length":100},{"x":149,"y":13,"length":149.56603892595405},{"x":90,"y":43,"length":99.74467404327912},{"x":128,"y":76,"length":148.86235252742716},{"x":62,"y":78,"length":99.6393496566492},{"x":82,"y":125,"length":149.4958193395387},{"x":22,"y":97,"length":99.46356116689167},{"x":20,"y":148,"length":149.34523762075577},{"x":-22,"y":97,"length":99.46356116689167},{"x":-46,"y":142,"length":149.26486525636233},{"x":-62,"y":78,"length":99.6393496566492},{"x":-103,"y":108,"length":149.24141516348604},{"x":-90,"y":43,"length":99.74467404327912},{"x":-140,"y":52,"length":149.34523762075577},{"x":-100,"y":0,"length":100},{"x":-149,"y":-13,"length":149.56603892595405},{"x":-90,"y":-43,"length":99.74467404327912},{"x":-128,"y":-76,"length":148.86235252742716},{"x":-62,"y":-78,"length":99.6393496566492},{"x":-82,"y":-125,"length":149.4958193395387},{"x":-22,"y":-97,"length":99.46356116689167},{"x":-20,"y":-148,"length":149.34523762075577},{"x":22,"y":-97,"length":99.46356116689167},{"x":46,"y":-142,"length":149.26486525636233},{"x":62,"y":-78,"length":99.6393496566492},{"x":103,"y":-108,"length":149.24141516348604},{"x":90,"y":-43,"length":99.74467404327912},{"x":140,"y":-52,"length":149.34523762075577}],"line":true,"id":2,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4173,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-716,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":100,"y":0,"length":100},{"x":149,"y":13,"length":149.56603892595405},{"x":90,"y":43,"length":99.74467404327912},{"x":128,"y":76,"length":148.86235252742716},{"x":62,"y":78,"length":99.6393496566492},{"x":82,"y":125,"length":149.4958193395387},{"x":22,"y":97,"length":99.46356116689167},{"x":20,"y":148,"length":149.34523762075577},{"x":-22,"y":97,"length":99.46356116689167},{"x":-46,"y":142,"length":149.26486525636233},{"x":-62,"y":78,"length":99.6393496566492},{"x":-103,"y":108,"length":149.24141516348604},{"x":-90,"y":43,"length":99.74467404327912},{"x":-140,"y":52,"length":149.34523762075577},{"x":-100,"y":0,"length":100},{"x":-149,"y":-13,"length":149.56603892595405},{"x":-90,"y":-43,"length":99.74467404327912},{"x":-128,"y":-76,"length":148.86235252742716},{"x":-62,"y":-78,"length":99.6393496566492},{"x":-82,"y":-125,"length":149.4958193395387},{"x":-22,"y":-97,"length":99.46356116689167},{"x":-20,"y":-148,"length":149.34523762075577},{"x":22,"y":-97,"length":99.46356116689167},{"x":46,"y":-142,"length":149.26486525636233},{"x":62,"y":-78,"length":99.6393496566492},{"x":103,"y":-108,"length":149.24141516348604},{"x":90,"y":-43,"length":99.74467404327912},{"x":140,"y":-52,"length":149.34523762075577}],"line":true,"id":2,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4655,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-980,"plr":false,"density":0.5,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":-35,"y":0,"length":35},{"x":80,"y":-110,"length":136.01470508735443},{"x":185,"y":0,"length":185},{"x":185,"y":35,"length":188.2817038376273},{"x":-35,"y":35,"length":49.49747468305833}],"line":true,"id":2,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4290,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-1020,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":0,"y":40,"length":40},{"x":555,"y":40,"length":556.4395744373328},{"x":555,"y":100,"length":563.9370532249145},{"x":0,"y":100,"length":100}],"line":true,"id":2,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4953,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-1287,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":100,"y":0,"length":100},{"x":149,"y":13,"length":149.56603892595405},{"x":90,"y":43,"length":99.74467404327912},{"x":128,"y":76,"length":148.86235252742716},{"x":62,"y":78,"length":99.6393496566492},{"x":82,"y":125,"length":149.4958193395387},{"x":22,"y":97,"length":99.46356116689167},{"x":20,"y":148,"length":149.34523762075577},{"x":-22,"y":97,"length":99.46356116689167},{"x":-46,"y":142,"length":149.26486525636233},{"x":-62,"y":78,"length":99.6393496566492},{"x":-103,"y":108,"length":149.24141516348604},{"x":-90,"y":43,"length":99.74467404327912},{"x":-140,"y":52,"length":149.34523762075577},{"x":-100,"y":0,"length":100},{"x":-149,"y":-13,"length":149.56603892595405},{"x":-90,"y":-43,"length":99.74467404327912},{"x":-128,"y":-76,"length":148.86235252742716},{"x":-62,"y":-78,"length":99.6393496566492},{"x":-82,"y":-125,"length":149.4958193395387},{"x":-22,"y":-97,"length":99.46356116689167},{"x":-20,"y":-148,"length":149.34523762075577},{"x":22,"y":-97,"length":99.46356116689167},{"x":46,"y":-142,"length":149.26486525636233},{"x":62,"y":-78,"length":99.6393496566492},{"x":103,"y":-108,"length":149.24141516348604},{"x":90,"y":-43,"length":99.74467404327912},{"x":140,"y":-52,"length":149.34523762075577}],"line":true,"id":2,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5283,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-1157,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":100,"y":0,"length":100},{"x":149,"y":13,"length":149.56603892595405},{"x":90,"y":43,"length":99.74467404327912},{"x":128,"y":76,"length":148.86235252742716},{"x":62,"y":78,"length":99.6393496566492},{"x":82,"y":125,"length":149.4958193395387},{"x":22,"y":97,"length":99.46356116689167},{"x":20,"y":148,"length":149.34523762075577},{"x":-22,"y":97,"length":99.46356116689167},{"x":-46,"y":142,"length":149.26486525636233},{"x":-62,"y":78,"length":99.6393496566492},{"x":-103,"y":108,"length":149.24141516348604},{"x":-90,"y":43,"length":99.74467404327912},{"x":-140,"y":52,"length":149.34523762075577},{"x":-100,"y":0,"length":100},{"x":-149,"y":-13,"length":149.56603892595405},{"x":-90,"y":-43,"length":99.74467404327912},{"x":-128,"y":-76,"length":148.86235252742716},{"x":-62,"y":-78,"length":99.6393496566492},{"x":-82,"y":-125,"length":149.4958193395387},{"x":-22,"y":-97,"length":99.46356116689167},{"x":-20,"y":-148,"length":149.34523762075577},{"x":22,"y":-97,"length":99.46356116689167},{"x":46,"y":-142,"length":149.26486525636233},{"x":62,"y":-78,"length":99.6393496566492},{"x":103,"y":-108,"length":149.24141516348604},{"x":90,"y":-43,"length":99.74467404327912},{"x":140,"y":-52,"length":149.34523762075577}],"line":true,"id":2,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6551,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-705,"plr":false,"density":0.5,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":-20,"y":0,"length":20},{"x":85,"y":-65,"length":107.00467279516349},{"x":185,"y":0,"length":185},{"x":185,"y":35,"length":188.2817038376273},{"x":-20,"y":35,"length":40.311288741492746}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6190,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-745,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-60,"y":45,"length":75},{"x":-45,"y":40,"length":60.207972893961475},{"x":545,"y":40,"length":546.465918424928},{"x":555,"y":50,"length":557.2477007579305},{"x":555,"y":100,"length":563.9370532249145},{"x":-70,"y":100,"length":122.06555615733703},{"x":-70,"y":60,"length":92.19544457292888}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":7520,"safeId":-1,"rotation":0,"graphic":true,"height":268.2,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":3,"y":1,"length":3.1622776601683795},{"x":-29,"y":26,"length":38.948684188300895},{"x":-75,"y":56,"length":93.60021367496978},{"x":-124,"y":84,"length":149.77316181479245},{"x":-185,"y":114,"length":217.30393461693234},{"x":-249,"y":138,"length":284.6840353795766},{"x":-321,"y":162,"length":359.5622338344226},{"x":-398,"y":182,"length":437.6391207376233},{"x":-467,"y":194,"length":505.69259436934607},{"x":-517,"y":202,"length":555.0612578806055},{"x":-583,"y":210,"length":619.6684597427886},{"x":-650,"y":212,"length":683.6987640766948},{"x":-715,"y":212,"length":745.7673900084395},{"x":-783,"y":209,"length":810.4134747152222},{"x":-842,"y":202,"length":865.8914481619506},{"x":-895,"y":194,"length":915.7843632646279},{"x":-949,"y":182,"length":966.2944685757028},{"x":-1010,"y":167,"length":1023.7133387819073},{"x":-1071,"y":148,"length":1081.177598732049},{"x":-1141,"y":121,"length":1147.3979257432882},{"x":-1190,"y":100,"length":1194.1942890501527},{"x":-1247,"y":69,"length":1248.9075225972497},{"x":-1290,"y":43,"length":1290.7164677031126},{"x":-1331,"y":16,"length":1331.0961648205587}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1371.3,"type":5,"textureOffset":0,"y":-260}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6800,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1760,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":100,"y":0,"length":100},{"x":100,"y":1235,"length":1239.0419686193038},{"x":0,"y":1235,"length":1235}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6200,"safeId":-1,"rotation":0,"graphic":true,"height":369.9,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":-3,"y":1,"length":3.1622776601683795},{"x":605,"y":-312,"length":680.7121271139512}],"smoothing":true,"id":-1,"repeatTexture":true,"width":637.3,"type":5,"textureOffset":0,"y":-250}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6800,"safeId":-1,"rotation":0,"graphic":true,"height":1212,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":-1,"y":12,"length":12.041594578792296},{"x":-2,"y":-1187,"length":1187.0016849187705}],"smoothing":true,"id":-1,"repeatTexture":true,"width":65,"type":5,"textureOffset":0,"y":-570}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6890,"safeId":-1,"rotation":0,"graphic":true,"height":352.8,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":6,"y":0,"length":6},{"x":625,"y":295,"length":691.1222757226104}],"smoothing":true,"id":-1,"repeatTexture":true,"width":646.5,"type":5,"textureOffset":0,"y":-560}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":5490,"viscosity":1.5,"rotation":0,"y":190,"vertices":[{"x":1,"y":-15,"length":15.033296378372908},{"x":3244,"y":-15,"length":3244.034679222773},{"x":3239,"y":310,"length":3253.8010080519675},{"x":0,"y":310,"length":310}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5400,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-710,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":725,"y":0,"length":725},{"x":725,"y":105,"length":732.5639903789976},{"x":105,"y":105,"length":148.49242404917499},{"x":105,"y":1140,"length":1144.8253141855312},{"x":0,"y":1145,"length":1145}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7580,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":40,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":5,"length":5},{"x":45,"y":-3,"length":45.09988913511872},{"x":90,"y":-15,"length":91.2414379544733},{"x":128,"y":-33,"length":132.1854757528224},{"x":161,"y":-52,"length":169.1892431568863},{"x":198,"y":-82,"length":214.30818929756276},{"x":227,"y":-108,"length":251.38217916153087},{"x":254,"y":-139,"length":289.54619665953135},{"x":276,"y":-168,"length":323.10988842807024},{"x":293,"y":-200,"length":354.7520260689148},{"x":308,"y":-231,"length":385},{"x":323,"y":-271,"length":421.62779794505957},{"x":333,"y":-318,"length":460.4486942103322},{"x":336,"y":-364,"length":495.3705683627157},{"x":336,"y":-411,"length":530.8643894630718},{"x":332,"y":-456,"length":564.0567347350797},{"x":317,"y":-505,"length":596.2499475890962},{"x":302,"y":-540,"length":618.7115644627955},{"x":283,"y":-576,"length":641.7670917085107},{"x":256,"y":-613,"length":664.3079105354685},{"x":234,"y":-639,"length":680.4976120457735},{"x":210,"y":-668,"length":700.2313903275117},{"x":1155,"y":-670,"length":1335.2621465465124},{"x":1155,"y":395,"length":1220.6760421995673},{"x":0,"y":395,"length":395}],"line":true,"id":-1,"physic":true}}],[{"className":"Ball98E","params":{"x":6250,"safeId":-1,"ag":true,"y":174,"ad":-1,"btg":false,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":81,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":6450,"safeId":-1,"ag":true,"y":214,"ad":-1,"btg":false,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":81,"width":128,"rotation":0,"height":128}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":1035,"y":-810,"width":9.3,"height":128.35}},{"className":"Sign1","params":{"x":1035,"rotation":-179.99999999999994,"y":-890,"width":68.8,"height":69.8}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":2.137514608492404,"x":7120,"y":300,"width":9.3,"height":274.35}},{"className":"Sign1","params":{"x":7120,"rotation":150.00000000000006,"y":150,"width":68.8,"height":69.8}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":5913,"y":-773,"width":9.3,"height":128.35}},{"className":"Ball98E","params":{"x":2978,"safeId":-10,"ag":true,"y":-637,"ad":-1,"btg":false,"scaleX":1,"active":true,"scaleY":1,"sgos":true,"id":80,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":3178,"safeId":-10,"ag":true,"y":-637,"ad":-1,"btg":false,"scaleX":1,"active":true,"scaleY":1,"sgos":true,"id":80,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":3358,"safeId":-10,"ag":true,"y":-637,"ad":-1,"btg":false,"scaleX":1,"active":true,"scaleY":1,"sgos":true,"id":80,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":3538,"safeId":-10,"ag":true,"y":-635,"ad":-1,"btg":false,"scaleX":1,"active":true,"scaleY":1,"sgos":true,"id":80,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":3728,"safeId":-10,"ag":true,"y":-634,"ad":-1,"btg":false,"scaleX":1,"active":true,"scaleY":1,"sgos":true,"id":80,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":3918,"safeId":-10,"ag":true,"y":-630,"ad":-1,"btg":false,"scaleX":1,"active":true,"scaleY":1,"sgos":true,"id":80,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":4328,"safeId":-10,"ag":true,"y":-868,"ad":-1,"btg":false,"scaleX":1,"active":true,"scaleY":1,"sgos":true,"id":2,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":4528,"safeId":-10,"ag":true,"y":-868,"ad":-1,"btg":false,"scaleX":1,"active":true,"scaleY":1,"sgos":true,"id":2,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":4708,"safeId":-10,"ag":true,"y":-867,"ad":-1,"btg":false,"scaleX":1,"active":true,"scaleY":1,"sgos":true,"id":2,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":4888,"safeId":-10,"ag":true,"y":-806,"ad":-1,"btg":false,"scaleX":1,"active":true,"scaleY":1,"sgos":true,"id":2,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":5066,"safeId":-10,"ag":true,"y":-735,"ad":-1,"btg":false,"scaleX":1,"active":true,"scaleY":1,"sgos":true,"id":2,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":5253,"safeId":-10,"ag":true,"y":-661,"ad":-1,"btg":false,"scaleX":1,"active":true,"scaleY":1,"sgos":true,"id":2,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":6723,"safeId":-1,"ag":true,"y":-595,"ad":-1,"btg":false,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":82,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":6549,"safeId":-1,"ag":true,"y":-508,"ad":-1,"btg":false,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":82,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":6363,"safeId":-1,"ag":true,"y":-422,"ad":-1,"btg":false,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":82,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":6144,"safeId":-1,"ag":true,"y":-324,"ad":-1,"btg":false,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":82,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":5620,"safeId":-1,"ag":true,"y":24,"ad":-1,"btg":false,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":81,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":5830,"safeId":-1,"ag":true,"y":74,"ad":-1,"btg":false,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":81,"width":128,"rotation":0,"height":128}},{"className":"Ball98E","params":{"x":6040,"safeId":-1,"ag":true,"y":124,"ad":-1,"btg":false,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":81,"width":128,"rotation":0,"height":128}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":1120,"y":-920,"width":640,"height":256}},{"className":"Dec51","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":1660,"y":-920,"width":256,"height":256}},{"className":"Dec57","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":1730,"y":-920,"width":256,"height":256}}],[{"className":"Tnt1","params":{"x":6824,"safeId":-1,"rotation":0,"y":-550,"count":1,"radius":1,"physic":false,"stones":false,"impulse":1,"id":5,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":6874,"safeId":-1,"rotation":0,"y":-550,"count":1,"radius":1,"physic":false,"stones":false,"impulse":1,"id":5,"width":53.2,"height":53.2}}],null,[{"className":"PlayerWP","params":{"x":1260,"rotation":0,"y":-820,"width":64,"height":32}},{"className":"SafePointE","params":{"x":5914,"rotation":0,"y":-850,"id":0,"width":128,"height":644}}],[{"className":"PivotJointE","params":{"x":3178,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-637,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3358,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-637,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3538,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-635,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3728,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-634,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2978,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-637,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3918,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-631,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":4708,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-867,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":5066,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-735,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":4888,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-806,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":5253,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-661,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":4328,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-868,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":4528,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-868,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":3763,"safeId":-10,"rotation":0,"graphic":2,"y":-1078,"useWeld":false,"time":0,"snd":false,"id":2,"rate":-200,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":4173,"safeId":-10,"rotation":0,"graphic":2,"y":-717,"useWeld":false,"time":0,"snd":false,"id":2,"rate":200,"width":17,"height":17}},{"className":"ToggleE","params":{"x":2740,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":2,"off":false,"y":-890,"width":64,"rotation":0,"height":870}},{"className":"PivotJointE","params":{"x":3480,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-730,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3630,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-730,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":4660,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-960,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":4810,"safeId":-10,"rotation":0,"graphic":1,"id":-1,"y":-960,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":4953,"safeId":-10,"rotation":0,"graphic":2,"y":-1288,"useWeld":false,"time":0,"snd":false,"id":2,"rate":200,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":5283,"safeId":-10,"rotation":0,"graphic":2,"y":-1158,"useWeld":false,"time":0,"snd":false,"id":2,"rate":200,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6710,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-685,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6561,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-685,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6723,"safeId":-1,"rotation":0,"graphic":1,"id":-1,"y":-596,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6549,"safeId":-1,"rotation":0,"graphic":1,"id":-1,"y":-508,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6363,"safeId":-1,"rotation":0,"graphic":1,"id":-1,"y":-423,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6144,"safeId":-1,"rotation":0,"graphic":1,"id":-1,"y":-324,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":5620,"safeId":-1,"rotation":0,"graphic":1,"id":-1,"y":24,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6141,"safeId":-1,"rotation":0,"graphic":0,"id":3,"y":-655,"width":17,"height":17}},{"className":"ToggleE","params":{"x":6518,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":3,"off":false,"y":-715,"width":576,"rotation":0,"height":87}},{"className":"PivotJointE","params":{"x":5830,"safeId":-1,"rotation":0,"graphic":1,"id":-1,"y":74,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6040,"safeId":-1,"rotation":0,"graphic":1,"id":-1,"y":124,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6250,"safeId":-1,"rotation":0,"graphic":1,"id":-1,"y":174,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6151,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-685,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6220,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-685,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6450,"safeId":-1,"rotation":0,"graphic":1,"id":-1,"y":214,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6240,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-219,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":7460,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-224,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6820,"safeId":-1,"rotation":0,"graphic":0,"id":5,"y":-540,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6880,"safeId":-1,"rotation":0,"graphic":0,"id":5,"y":-540,"width":17,"height":17}},{"className":"ToggleE","params":{"x":7250,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":5,"off":false,"y":-830,"width":97,"rotation":0,"height":1112}},{"className":"PivotJointE","params":{"x":6232,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-259,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6772,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-537,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6924,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-539,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":7464,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-279,"width":17,"height":17}},{"className":"ToggleE","params":{"x":4100,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-1020,"width":64,"rotation":0,"height":1404}},{"className":"ToggleE","params":{"x":5760,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":450,"width":64,"rotation":0,"height":1404}},{"className":"ToggleE","params":{"x":7910,"safeId":-1,"sndId":0,"hint":-1,"id_off":81,"id":0,"off":false,"y":-150,"width":64,"rotation":0,"height":1404}},{"className":"ToggleE","params":{"x":2450,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":80,"off":false,"y":-1177,"width":64,"rotation":0,"height":870}},{"className":"ToggleE","params":{"x":5340,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":81,"off":false,"y":-887,"width":1314,"rotation":0,"height":480}},{"className":"ToggleE","params":{"x":6128,"safeId":-1,"sndId":-1,"hint":-1,"id_off":2,"id":-2,"off":false,"y":-970,"width":153,"rotation":0,"height":749}},{"className":"ToggleE","params":{"x":5450,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":82,"off":false,"y":-1017,"width":986,"rotation":0,"height":701}},{"className":"ToggleE","params":{"x":5930,"safeId":-1,"sndId":-1,"hint":-1,"id_off":80,"id":-2,"off":false,"y":-990,"width":85,"rotation":0,"height":749}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map18.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map18.json new file mode 100644 index 000000000..b92b5329a --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map18.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"26,31,38"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6790,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-320,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":-225,"y":0,"length":225},{"x":2290,"y":0,"length":2290},{"x":2290,"y":-270,"length":2305.8620947489467},{"x":4340,"y":-270,"length":4348.390506842733},{"x":4335,"y":750,"length":4399.400527344606},{"x":-225,"y":750,"length":783.0229881682912}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6680,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-42,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-905,"y":0,"length":905},{"x":-790,"y":0,"length":790},{"x":-770,"y":25,"length":770.4057372579724},{"x":-745,"y":25,"length":745.4193450669227},{"x":-725,"y":0,"length":725},{"x":-695,"y":0,"length":695},{"x":-680,"y":25,"length":680.4594036384536},{"x":-640,"y":25,"length":640.4880951274582},{"x":-625,"y":0,"length":625},{"x":-595,"y":0,"length":595},{"x":-580,"y":25,"length":580.538543078752},{"x":-130,"y":25,"length":132.38202294873727},{"x":-110,"y":0,"length":110},{"x":105,"y":0,"length":105},{"x":105,"y":95,"length":141.59802258506295},{"x":-905,"y":95,"length":909.9725270578227}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5250,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":50,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":975,"y":0,"length":975},{"x":980,"y":335,"length":1035.676107670733},{"x":5,"y":330,"length":330.037876614185}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1160,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":140,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":-940,"y":0,"length":940},{"x":3295,"y":5,"length":3295.0037936245235},{"x":3295,"y":365,"length":3315.1545966968115},{"x":-940,"y":360,"length":1006.5783625729296}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9506,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-755,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":130,"y":0,"length":130},{"x":240,"y":110,"length":264.0075756488817},{"x":-40,"y":115,"length":121.75795661885921},{"x":-40,"y":50,"length":64.03124237432849},{"x":0,"y":50,"length":50}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9430,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-790,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":50,"y":0,"length":50},{"x":49,"y":134,"length":142.67795905464865},{"x":340,"y":135,"length":365.8209944768069},{"x":445,"y":100,"length":456.0975772792484},{"x":470,"y":95,"length":479.5049530505394},{"x":485,"y":110,"length":497.31780583445834},{"x":490,"y":130,"length":506.951674225463},{"x":485,"y":150,"length":507.66622893393253},{"x":335,"y":205,"length":392.7467377331096},{"x":50,"y":205,"length":211.00947846009194},{"x":0,"y":170,"length":170}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":9290,"viscosity":1.5,"rotation":0,"y":-590,"vertices":[{"x":0,"y":0,"length":0},{"x":1825,"y":0,"length":1825},{"x":1830,"y":1025,"length":2097.5044696019127},{"x":-2736,"y":1017,"length":2918.901334406492},{"x":-2734,"y":707,"length":2823.9343122671958},{"x":-2704,"y":711,"length":2795.914340604876},{"x":-2700,"y":742,"length":2800.1007124744638},{"x":-2684,"y":794,"length":2798.9805286925452},{"x":-2658,"y":838,"length":2786.971115745551},{"x":-2626,"y":878,"length":2768.891474940829},{"x":-2588,"y":909,"length":2742.995625224364},{"x":-2545,"y":936,"length":2711.6638803509554},{"x":-2501,"y":957,"length":2677.8442822539178},{"x":-2448,"y":970,"length":2633.173750438812},{"x":-1182,"y":971,"length":1529.6944139271739},{"x":-1125,"y":963,"length":1480.8760920482173},{"x":-1068,"y":939,"length":1422.0917691907227},{"x":-1019,"y":910,"length":1366.184833761523},{"x":-971,"y":870,"length":1303.7411552911874},{"x":-940,"y":826,"length":1251.3496713548934},{"x":-916,"y":783,"length":1205.0497915024093},{"x":-903,"y":726,"length":1158.6565496297858},{"x":-897,"y":668,"length":1118.4064556322983},{"x":-900,"y":267,"length":938.7699398681234},{"x":-847,"y":270,"length":888.9932508180251},{"x":-850,"y":691,"length":1095.4364427021771},{"x":-840,"y":746,"length":1123.4393619595141},{"x":-826,"y":792,"length":1144.3513446490113},{"x":-797,"y":836,"length":1155.0346315154363},{"x":-760,"y":883,"length":1165.027467487355},{"x":-716,"y":918,"length":1164.2078852163818},{"x":-660,"y":949,"length":1155.9416075217641},{"x":-603,"y":967,"length":1139.6043172961395},{"x":-327,"y":970,"length":1023.6351889223035},{"x":-213,"y":956,"length":979.4411671968868},{"x":-153,"y":930,"length":942.5014588848126},{"x":-102,"y":896,"length":901.7871145675125},{"x":-57,"y":852,"length":853.9045614118711},{"x":-33,"y":807,"length":807.6744393627918},{"x":-12,"y":760,"length":760.0947309381903},{"x":0,"y":695,"length":695}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":8380,"safeId":-1,"rotation":0,"graphic":true,"height":851.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":841,"y":-489,"length":972.8319484885352},{"x":845,"y":22,"length":845.2863420167157},{"x":845,"y":109,"length":852.0011737081118},{"x":840,"y":152,"length":853.6416109820327},{"x":833,"y":185,"length":853.2959627233683},{"x":820,"y":214,"length":847.4644535318281},{"x":807,"y":235,"length":840.520077095128},{"x":780,"y":268,"length":824.756933890222},{"x":749,"y":295,"length":805.0006211177728},{"x":720,"y":313,"length":785.0917143875612},{"x":695,"y":325,"length":767.2352963726318},{"x":663,"y":335,"length":742.8283785639857},{"x":630,"y":340,"length":715.8910531638177},{"x":369,"y":339,"length":501.08083180261445},{"x":331,"y":335,"length":470.94160996879435},{"x":301,"y":329,"length":445.9170326417236},{"x":278,"y":321,"length":424.64691215173104},{"x":250,"y":307,"length":395.9153950025182},{"x":222,"y":288,"length":363.6316817880422},{"x":199,"y":266,"length":332.20024081869656},{"x":178,"y":242,"length":300.4130489842277},{"x":161,"y":215,"length":268.6000744601535},{"x":147,"y":178,"length":230.85276693165278},{"x":140,"y":148,"length":203.7253052519495},{"x":136,"y":121,"length":182.03571078225283},{"x":134,"y":94,"length":163.682619724881},{"x":135,"y":-304,"length":332.62741919450957}],"smoothing":true,"id":-1,"repeatTexture":true,"width":743,"type":10,"textureOffset":0,"y":-30}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":6800,"viscosity":1.5,"rotation":0,"y":-320,"vertices":[{"x":0,"y":0,"length":0},{"x":310,"y":0,"length":310},{"x":235,"y":90,"length":251.6445906432324},{"x":75,"y":90,"length":117.15374513859982},{"x":40,"y":105,"length":112.36102527122117},{"x":25,"y":130,"length":132.38202294873727},{"x":25,"y":415,"length":415.7523301197481},{"x":40,"y":440,"length":441.81444068749045},{"x":75,"y":450,"length":456.20718977236646},{"x":375,"y":450,"length":585.768725692999},{"x":380,"y":485,"length":616.1371600544801},{"x":65,"y":485,"length":489.33628518637363},{"x":20,"y":455,"length":455.4393483220351},{"x":0,"y":420,"length":420}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6061,"safeId":-1,"rotation":0,"graphic":true,"height":717.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":2188,"y":-360,"length":2217.418318676023},{"x":2190,"y":69,"length":2191.086716677366},{"x":2188,"y":89,"length":2189.809352432307},{"x":2180,"y":115,"length":2183.031149571623},{"x":2167,"y":138,"length":2171.3896472075203},{"x":2148,"y":163,"length":2154.1757124245923},{"x":2131,"y":179,"length":2138.5046177177173},{"x":2108,"y":194,"length":2116.9081227110446},{"x":2085,"y":205,"length":2095.0536985958142},{"x":2059,"y":213,"length":2069.987922670082},{"x":821,"y":215,"length":848.6848649528281},{"x":789,"y":211,"length":816.7263923738476},{"x":765,"y":203,"length":791.4758366494835},{"x":741,"y":190,"length":764.971241289501},{"x":724,"y":177,"length":745.3220780306995},{"x":704,"y":160,"length":721.9529070514226},{"x":690,"y":140,"length":704.0596565632773},{"x":677,"y":119,"length":687.3790802752146},{"x":668,"y":92,"length":674.3055687149558},{"x":665,"y":61,"length":667.7918837482229},{"x":667,"y":-480,"length":821.7596972351467}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1557,"type":10,"textureOffset":0,"y":25}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":1130,"viscosity":1.5,"rotation":0,"y":140,"vertices":[{"x":-55,"y":0,"length":55},{"x":2130,"y":0,"length":2130},{"x":2130,"y":295,"length":2150.331369812569},{"x":-530,"y":310,"length":614.00325732035}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":3473,"viscosity":1.5,"rotation":0,"y":140,"vertices":[{"x":0,"y":0,"length":0},{"x":1045,"y":0,"length":1045},{"x":1045,"y":300,"length":1087.2097313766099},{"x":0,"y":295,"length":295}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":420,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":11348,"textureOffset":0,"height":68,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":true,"physic":true,"vertices":[{"x":-835,"y":0,"length":835},{"x":10500,"y":0,"length":10500}],"line":true,"shape":true,"isRoad":true,"smoothing":true,"camera":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":960,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":320,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1000,"y":-260,"length":1033.2473082471593},{"x":-165,"y":-260,"length":307.9366818032564},{"x":-420,"y":-95,"length":430.6100323959023},{"x":-300,"y":105,"length":317.8443015062564},{"x":-1000,"y":100,"length":1004.987562112089}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":8667,"viscosity":1.5,"rotation":0,"y":-290,"vertices":[{"x":0,"y":0,"length":0},{"x":405,"y":0,"length":405},{"x":410,"y":365,"length":548.9307788783573},{"x":402,"y":407,"length":572.0603115057013},{"x":380,"y":435,"length":577.6028047023318},{"x":357,"y":448,"length":572.8464017518133},{"x":325,"y":455,"length":559.1511423577707},{"x":85,"y":455,"length":462.87147244132467},{"x":43,"y":448,"length":450.05888503616944},{"x":20,"y":433,"length":433.4616476690873},{"x":6,"y":413,"length":413.0435812356851},{"x":0,"y":383,"length":383},{"x":-5,"y":350,"length":350.03571246374275}],"id":-1,"bg":false,"sf":false}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":240,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":11483,"textureOffset":0,"height":1033.35,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":-835,"y":0,"length":835},{"x":-20,"y":130,"length":131.52946437965906},{"x":2390,"y":-20,"length":2390.083680543424},{"x":2980,"y":-15,"length":2980.0377514387296},{"x":3575,"y":-65,"length":3575.5908602635172},{"x":3775,"y":-115,"length":3776.7512494205916},{"x":4305,"y":-395,"length":4323.083390359247},{"x":4360,"y":-415,"length":4379.706040363896},{"x":4500,"y":-415,"length":4519.095595359762},{"x":4770,"y":-280,"length":4778.210962274478},{"x":6125,"y":125,"length":6126.275377421423},{"x":6215,"y":140,"length":6216.576630268463},{"x":8480,"y":145,"length":8481.239591003192},{"x":9535,"y":-820,"length":9570.194616620918},{"x":10635,"y":-795,"length":10664.672990767227}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::FinishShaper","params":{"x":6940,"rotation":0,"y":-230,"vertices":[{"x":-100,"y":15,"length":101.11874208078342},{"x":-60,"y":-5,"length":60.207972893961475},{"x":100,"y":0,"length":100},{"x":265,"y":130,"length":295.16944286290885},{"x":265,"y":315,"length":411.6430492550554},{"x":250,"y":350,"length":430.11626335213134},{"x":230,"y":365,"length":431.4220671222092},{"x":-65,"y":360,"length":365.8209944768069},{"x":-105,"y":345,"length":360.62445840513925},{"x":-115,"y":315,"length":335.3356527421443},{"x":-115,"y":45,"length":123.4908903522847}]}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":5230,"viscosity":1.5,"rotation":0,"y":50,"vertices":[{"x":0,"y":0,"length":0},{"x":925,"y":0,"length":925},{"x":925,"y":315,"length":977.1642645942391},{"x":0,"y":315,"length":315}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":651,"safeId":-1,"rotation":0,"graphic":true,"height":323.1,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":478,"y":-308,"length":568.6369667898844}],"smoothing":true,"id":-1,"repeatTexture":true,"width":491,"type":9,"textureOffset":0,"y":411}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":541,"safeId":-1,"rotation":0,"graphic":true,"height":304.2,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":453,"y":-289,"length":537.3360214986521}],"smoothing":true,"id":-1,"repeatTexture":true,"width":466,"type":8,"textureOffset":0,"y":231}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7810,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-455,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":15,"y":0,"length":15},{"x":145,"y":0,"length":145},{"x":145,"y":50,"length":153.37861650177967},{"x":185,"y":50,"length":191.637678967368},{"x":185,"y":115,"length":217.83020910791964},{"x":-90,"y":110,"length":142.12670403551894}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4440,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":50,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":1710,"y":-75,"length":1711.6439466197403},{"x":1710,"y":-280,"length":1732.7723451163456},{"x":1455,"y":-470,"length":1529.0274686872044},{"x":1530,"y":-470,"length":1600.5624011577931},{"x":1530,"y":-510,"length":1612.7616066858734},{"x":2150,"y":-510,"length":2209.660607423683},{"x":2151,"y":-484,"length":2204.780487939786},{"x":2140,"y":-485,"length":2194.2709495411},{"x":2140,"y":-95,"length":2142.1076070076406},{"x":1925,"y":-95,"length":1927.342730289556},{"x":1900,"y":-75,"length":1901.4796869806419}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3260,"safeId":-1,"rotation":0,"graphic":true,"height":313,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":2,"y":-3,"length":3.605551275463989},{"x":2,"y":-303,"length":303.00660058817203}],"smoothing":true,"id":-1,"repeatTexture":true,"width":18,"type":8,"textureOffset":0,"y":410}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3470,"safeId":-1,"rotation":0,"graphic":true,"height":316,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":2,"y":0,"length":2},{"x":2,"y":-303,"length":303.00660058817203}],"smoothing":true,"id":-1,"repeatTexture":true,"width":18,"type":9,"textureOffset":0,"y":400}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5255,"safeId":-1,"rotation":-90,"graphic":true,"isWheel":false,"y":-423,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":40,"length":40},{"x":630,"y":40,"length":631.2685640834652},{"x":630,"y":80,"length":635.0590523722971},{"x":400,"y":80,"length":407.9215610874228},{"x":400,"y":245,"length":469.0682253148256},{"x":365,"y":245,"length":439.6020928066653},{"x":365,"y":80,"length":373.6642878306676},{"x":0,"y":80,"length":80}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5448,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-183,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":120,"y":0,"length":120},{"x":148,"y":18,"length":149.09057649630307},{"x":138,"y":57,"length":149.30840565755165},{"x":104,"y":59,"length":119.57006314291216},{"x":84,"y":84,"length":118.79393923933998},{"x":92,"y":118,"length":149.6262009141447},{"x":57,"y":138,"length":149.30840565755165},{"x":31,"y":115,"length":119.10499569707393},{"x":0,"y":120,"length":120},{"x":-18,"y":148,"length":149.09057649630307},{"x":-57,"y":138,"length":149.30840565755165},{"x":-59,"y":104,"length":119.57006314291216},{"x":-84,"y":84,"length":118.79393923933998},{"x":-118,"y":92,"length":149.6262009141447},{"x":-138,"y":57,"length":149.30840565755165},{"x":-115,"y":31,"length":119.10499569707393},{"x":-120,"y":0,"length":120},{"x":-148,"y":-18,"length":149.09057649630307},{"x":-138,"y":-57,"length":149.30840565755165},{"x":-104,"y":-59,"length":119.57006314291216},{"x":-84,"y":-84,"length":118.79393923933998},{"x":-92,"y":-118,"length":149.6262009141447},{"x":-57,"y":-138,"length":149.30840565755165},{"x":-31,"y":-115,"length":119.10499569707393},{"x":0,"y":-120,"length":120},{"x":18,"y":-148,"length":149.09057649630307},{"x":57,"y":-138,"length":149.30840565755165},{"x":59,"y":-104,"length":119.57006314291216},{"x":84,"y":-84,"length":118.79393923933998},{"x":118,"y":-92,"length":149.6262009141447},{"x":138,"y":-57,"length":149.30840565755165},{"x":115,"y":-31,"length":119.10499569707393}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5954,"safeId":-1,"rotation":-2,"graphic":true,"isWheel":true,"y":-167,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":120,"y":0,"length":120},{"x":148,"y":18,"length":149.09057649630307},{"x":138,"y":57,"length":149.30840565755165},{"x":104,"y":59,"length":119.57006314291216},{"x":84,"y":84,"length":118.79393923933998},{"x":92,"y":118,"length":149.6262009141447},{"x":57,"y":138,"length":149.30840565755165},{"x":31,"y":115,"length":119.10499569707393},{"x":0,"y":120,"length":120},{"x":-18,"y":148,"length":149.09057649630307},{"x":-57,"y":138,"length":149.30840565755165},{"x":-59,"y":104,"length":119.57006314291216},{"x":-84,"y":84,"length":118.79393923933998},{"x":-118,"y":92,"length":149.6262009141447},{"x":-138,"y":57,"length":149.30840565755165},{"x":-115,"y":31,"length":119.10499569707393},{"x":-120,"y":0,"length":120},{"x":-148,"y":-18,"length":149.09057649630307},{"x":-138,"y":-57,"length":149.30840565755165},{"x":-104,"y":-59,"length":119.57006314291216},{"x":-84,"y":-84,"length":118.79393923933998},{"x":-92,"y":-118,"length":149.6262009141447},{"x":-57,"y":-138,"length":149.30840565755165},{"x":-31,"y":-115,"length":119.10499569707393},{"x":0,"y":-120,"length":120},{"x":18,"y":-148,"length":149.09057649630307},{"x":57,"y":-138,"length":149.30840565755165},{"x":59,"y":-104,"length":119.57006314291216},{"x":84,"y":-84,"length":118.79393923933998},{"x":118,"y":-92,"length":149.6262009141447},{"x":138,"y":-57,"length":149.30840565755165},{"x":115,"y":-31,"length":119.10499569707393}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5488,"safeId":-1,"rotation":0,"graphic":true,"isWheel":true,"y":-804,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":120,"y":0,"length":120},{"x":148,"y":18,"length":149.09057649630307},{"x":138,"y":57,"length":149.30840565755165},{"x":104,"y":59,"length":119.57006314291216},{"x":84,"y":84,"length":118.79393923933998},{"x":92,"y":118,"length":149.6262009141447},{"x":57,"y":138,"length":149.30840565755165},{"x":31,"y":115,"length":119.10499569707393},{"x":0,"y":120,"length":120},{"x":-18,"y":148,"length":149.09057649630307},{"x":-57,"y":138,"length":149.30840565755165},{"x":-59,"y":104,"length":119.57006314291216},{"x":-84,"y":84,"length":118.79393923933998},{"x":-118,"y":92,"length":149.6262009141447},{"x":-138,"y":57,"length":149.30840565755165},{"x":-115,"y":31,"length":119.10499569707393},{"x":-120,"y":0,"length":120},{"x":-148,"y":-18,"length":149.09057649630307},{"x":-138,"y":-57,"length":149.30840565755165},{"x":-104,"y":-59,"length":119.57006314291216},{"x":-84,"y":-84,"length":118.79393923933998},{"x":-92,"y":-118,"length":149.6262009141447},{"x":-57,"y":-138,"length":149.30840565755165},{"x":-31,"y":-115,"length":119.10499569707393},{"x":0,"y":-120,"length":120},{"x":18,"y":-148,"length":149.09057649630307},{"x":57,"y":-138,"length":149.30840565755165},{"x":59,"y":-104,"length":119.57006314291216},{"x":84,"y":-84,"length":118.79393923933998},{"x":118,"y":-92,"length":149.6262009141447},{"x":138,"y":-57,"length":149.30840565755165},{"x":115,"y":-31,"length":119.10499569707393}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5448,"safeId":-1,"rotation":0,"graphic":true,"height":89,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":-1,"y":76,"length":76.00657866263946}],"smoothing":true,"id":-1,"repeatTexture":true,"width":21,"type":2,"textureOffset":0,"y":-208}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5954,"safeId":-1,"rotation":0,"graphic":true,"height":89,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":-1,"y":76,"length":76.00657866263946}],"smoothing":true,"id":-1,"repeatTexture":true,"width":21,"type":2,"textureOffset":0,"y":-208}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5290,"safeId":-1,"rotation":0,"graphic":true,"height":20,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":860,"y":0,"length":860}],"smoothing":true,"id":-1,"repeatTexture":true,"width":873,"type":2,"textureOffset":0,"y":-210}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5290,"safeId":-1,"rotation":0,"graphic":true,"height":20,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":860,"y":0,"length":860}],"smoothing":true,"id":-1,"repeatTexture":true,"width":873,"type":2,"textureOffset":0,"y":-130}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6793,"safeId":-1,"rotation":0,"graphic":true,"height":616,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":100,"y":0,"length":100},{"x":141,"y":-4,"length":141.05672617780408},{"x":176,"y":-11,"length":176.34341496069538},{"x":213,"y":-24,"length":214.34784813475503},{"x":248,"y":-41,"length":251.3662666309861},{"x":284,"y":-66,"length":291.5681738461864},{"x":315,"y":-96,"length":329.3038110924318},{"x":340,"y":-126,"length":362.5961941333637},{"x":358,"y":-153,"length":389.3237727136631},{"x":375,"y":-187,"length":419.03937762458554},{"x":387,"y":-223,"length":446.65198980862044},{"x":394,"y":-264,"length":474.2699653151146},{"x":396,"y":-298,"length":495.600645681581},{"x":394,"y":-332,"length":515.228104823485},{"x":388,"y":-366,"length":533.3854141237834},{"x":379,"y":-402,"length":552.4898189107198},{"x":363,"y":-435,"length":566.5633239100463},{"x":346,"y":-464,"length":578.8022114677863},{"x":326,"y":-491,"length":589.3700026299268},{"x":303,"y":-516,"length":598.3853273602219},{"x":279,"y":-536,"length":604.2656700491929},{"x":255,"y":-554,"length":609.8696582057514},{"x":229,"y":-568,"length":612.4255056739554},{"x":199,"y":-581,"length":614.135164275748},{"x":170,"y":-590,"length":614.00325732035},{"x":133,"y":-596,"length":610.6594795792496},{"x":93,"y":-598,"length":605.1884004175889},{"x":54,"y":-595,"length":597.4453949943877},{"x":17,"y":-588,"length":588.2456969668372},{"x":-16,"y":-577,"length":577.221794460327},{"x":-46,"y":-563,"length":564.8760926079276},{"x":-76,"y":-544,"length":549.2831692305891},{"x":-109,"y":-516,"length":527.3869547116235},{"x":-137,"y":-486,"length":504.9405905648703},{"x":-160,"y":-453,"length":480.42585275981975},{"x":-179,"y":-416,"length":452.8763628188161},{"x":-190,"y":-386,"length":430.22784661153673},{"x":-199,"y":-347,"length":400.0124998046936},{"x":-201,"y":-305,"length":365.2752386899501},{"x":-200,"y":-262,"length":329.61189298931555}],"smoothing":true,"id":-1,"repeatTexture":true,"width":615,"type":9,"textureOffset":0,"y":-451}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6584,"safeId":-1,"rotation":0,"graphic":true,"height":729.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":-4,"y":507,"length":507.0157788471676},{"x":0,"y":548,"length":548},{"x":6,"y":590,"length":590.0305076858315},{"x":15,"y":625,"length":625.1799740874623},{"x":28,"y":659,"length":659.5945724458321},{"x":42,"y":682,"length":683.2920312721347},{"x":56,"y":704,"length":706.223760574508},{"x":73,"y":726,"length":729.6608801354229},{"x":93,"y":746,"length":751.7745672739934},{"x":118,"y":766,"length":775.035483058679},{"x":146,"y":786,"length":799.4448073507014},{"x":181,"y":805,"length":825.0975699879378},{"x":225,"y":820,"length":850.3087674486251},{"x":270,"y":827,"length":869.9591944453487},{"x":304,"y":829,"length":882.9818797687753},{"x":1504,"y":831,"length":1718.306433672411},{"x":1558,"y":824,"length":1762.4812055735517},{"x":1598,"y":815,"length":1793.8308169947354},{"x":1639,"y":798,"length":1822.9440474134142},{"x":1672,"y":778,"length":1844.1442459851128},{"x":1701,"y":756,"length":1861.4341245394637},{"x":1728,"y":731,"length":1876.2582444855504},{"x":1747,"y":709,"length":1885.3885541182221},{"x":1767,"y":678,"length":1892.6101024775282},{"x":1783,"y":646,"length":1896.418993788029},{"x":1795,"y":612,"length":1896.4622326848485},{"x":1802,"y":577,"length":1892.123938858129},{"x":1805,"y":540,"length":1884.0448508461789},{"x":1805,"y":117,"length":1808.7879919990623}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1826.95,"type":9,"textureOffset":0,"y":-450}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":8444,"safeId":-1,"rotation":0,"graphic":true,"height":980.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":116,"length":116},{"x":0,"y":548,"length":548},{"x":6,"y":590,"length":590.0305076858315},{"x":15,"y":625,"length":625.1799740874623},{"x":28,"y":659,"length":659.5945724458321},{"x":42,"y":682,"length":683.2920312721347},{"x":56,"y":704,"length":706.223760574508},{"x":73,"y":726,"length":729.6608801354229},{"x":93,"y":746,"length":751.7745672739934},{"x":118,"y":766,"length":775.035483058679},{"x":146,"y":786,"length":799.4448073507014},{"x":181,"y":805,"length":825.0975699879378},{"x":225,"y":820,"length":850.3087674486251},{"x":270,"y":827,"length":869.9591944453487},{"x":550,"y":827,"length":993.1913209447614},{"x":598,"y":821,"length":1015.6992665154386},{"x":638,"y":812,"length":1032.6606412563617},{"x":679,"y":795,"length":1045.4979674776991},{"x":712,"y":775,"length":1052.4110413711935},{"x":741,"y":753,"length":1056.4516079783305},{"x":768,"y":728,"length":1058.2098090643462},{"x":787,"y":706,"length":1057.2629758011958},{"x":807,"y":675,"length":1052.0807953764768},{"x":823,"y":643,"length":1044.403178853837},{"x":835,"y":609,"length":1033.4921383348787},{"x":842,"y":574,"length":1019.0387627563537},{"x":845,"y":537,"length":1001.1962844517552},{"x":846,"y":-138,"length":857.1814277036104}],"smoothing":true,"id":-1,"repeatTexture":true,"width":864,"type":9,"textureOffset":0,"y":-450}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8690,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-500,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-35,"y":-65,"length":73.824115301167},{"x":390,"y":-85,"length":399.15535822534065},{"x":390,"y":215,"length":445.3369510831096},{"x":-35,"y":215,"length":217.83020910791964}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7880,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-370,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-190,"y":15,"length":190.59118552545917},{"x":100,"y":15,"length":101.11874208078342},{"x":100,"y":-120,"length":156.20499351813308},{"x":150,"y":-120,"length":192.09372712298546},{"x":150,"y":50,"length":158.11388300841898},{"x":100,"y":85,"length":131.24404748406687},{"x":-185,"y":85,"length":203.59273071502332},{"x":-335,"y":30,"length":336.34060117684277},{"x":-340,"y":10,"length":340.14702703389895},{"x":-335,"y":-10,"length":335.1492204973779},{"x":-320,"y":-25,"length":320.97507691408066},{"x":-295,"y":-20,"length":295.67718883945037}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":6798,"viscosity":1.5,"rotation":0,"y":-320,"vertices":[{"x":620,"y":0,"length":620},{"x":1375,"y":0,"length":1375},{"x":1375,"y":405,"length":1433.4050369661745},{"x":1371,"y":426,"length":1435.659082094353},{"x":1363,"y":446,"length":1434.1147094985115},{"x":1343,"y":466,"length":1421.5502101579107},{"x":1320,"y":480,"length":1404.563989286355},{"x":1295,"y":485,"length":1382.8412779491362},{"x":375,"y":485,"length":613.0660649554826},{"x":375,"y":455,"length":589.6185207403173},{"x":405,"y":425,"length":587.0689908349784},{"x":405,"y":220,"length":460.89586676384937}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6793,"safeId":-1,"rotation":0,"graphic":true,"height":625.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":8,"length":8},{"x":1,"y":530,"length":530.0009433953868},{"x":5,"y":556,"length":556.0224815598737},{"x":18,"y":580,"length":580.2792431235155},{"x":32,"y":593,"length":593.8627787629058},{"x":59,"y":609,"length":611.851289121793},{"x":84,"y":616,"length":621.7008927128865},{"x":111,"y":618,"length":627.8893214572136},{"x":1292,"y":618,"length":1432.1969138355241},{"x":1315,"y":616,"length":1452.1298151336196},{"x":1336,"y":608,"length":1467.841953345114},{"x":1355,"y":595,"length":1479.8817520329117},{"x":1371,"y":577,"length":1487.4710081208307},{"x":1380,"y":559,"length":1488.919406818247},{"x":1386,"y":542,"length":1488.2069748526244},{"x":1388,"y":525,"length":1483.9706870420318},{"x":1388,"y":116,"length":1392.838827718412}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1406,"type":8,"textureOffset":0,"y":-450}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":8661,"safeId":-1,"rotation":0,"graphic":true,"height":758.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":-1,"y":411,"length":411.0012165432117},{"x":4,"y":444,"length":444.01801765243715},{"x":14,"y":470,"length":470.2084644070117},{"x":32,"y":487,"length":488.0502023357843},{"x":54,"y":498,"length":500.9191551538032},{"x":88,"y":501,"length":508.6698339787804},{"x":336,"y":501,"length":603.2387587017266},{"x":364,"y":496,"length":615.2332890863432},{"x":390,"y":478,"length":616.9149049909557},{"x":408,"y":457,"length":612.6279458202996},{"x":420,"y":425,"length":597.5156901705594},{"x":419,"y":-242,"length":483.86465049639656}],"smoothing":true,"id":-1,"repeatTexture":true,"width":439,"type":8,"textureOffset":0,"y":-333}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6800,"safeId":-1,"rotation":0,"graphic":true,"height":198.1,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":148,"y":-158,"length":216.4901845350038},{"x":131,"y":-171,"length":215.41123461880997},{"x":112,"y":-178,"length":210.304541082688},{"x":94,"y":-180,"length":203.06649157357302},{"x":77,"y":-179,"length":194.85892332659543},{"x":56,"y":-174,"length":182.78949641595932},{"x":40,"y":-165,"length":169.77926846349644},{"x":25,"y":-154,"length":156.01602481796542},{"x":11,"y":-136,"length":136.444127759314},{"x":4,"y":-119,"length":119.06720791217035},{"x":1,"y":-100,"length":100.00499987500625},{"x":1,"y":-81,"length":81.00617260431454},{"x":3,"y":-62,"length":62.07253821135398},{"x":10,"y":-46,"length":47.07440918375928},{"x":19,"y":-32,"length":37.21558813185679},{"x":30,"y":-20,"length":36.05551275463989},{"x":43,"y":-12,"length":44.64302857109943},{"x":60,"y":-4,"length":60.13318551349163},{"x":82,"y":0,"length":82},{"x":107,"y":-1,"length":107.00467279516349},{"x":131,"y":-9,"length":131.30879635424276},{"x":149,"y":-21,"length":150.4725888658795},{"x":163,"y":-37,"length":167.14664220378464},{"x":173,"y":-56,"length":181.8378398463862},{"x":178,"y":-73,"length":192.38762953994728},{"x":179,"y":-91,"length":200.8033864256278},{"x":177,"y":-110,"length":208.39625716408634},{"x":171,"y":-128,"length":213.60009363293827},{"x":161,"y":-144,"length":216.00231480241132},{"x":148,"y":-156,"length":215.0348808914498}],"smoothing":true,"id":-1,"repeatTexture":true,"width":196.05,"type":8,"textureOffset":0,"y":-660}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4440,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":50,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":-10,"length":10},{"x":560,"y":-510,"length":757.4298647399639},{"x":850,"y":-510,"length":991.2618221237011},{"x":850,"y":-470,"length":971.2878049270463},{"x":945,"y":-470,"length":1055.4264540933204},{"x":850,"y":-400,"length":939.4147114027968},{"x":850,"y":210,"length":875.5569655939013},{"x":1710,"y":210,"length":1722.8464818433474},{"x":1710,"y":10,"length":1710.0292395160966},{"x":2140,"y":10,"length":2140.023364358436},{"x":2140,"y":375,"length":2172.6078799452052},{"x":0,"y":385,"length":385}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6580,"safeId":-1,"rotation":0,"graphic":true,"height":416,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":403,"length":403}],"smoothing":true,"id":-1,"repeatTexture":true,"width":18,"type":9,"textureOffset":0,"y":-450}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":7926,"safeId":-1,"rotation":0,"graphic":true,"height":921.95,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":718,"y":-279,"length":770.3018888721487},{"x":-46,"y":-215,"length":219.86586820150143},{"x":-96,"y":-209,"length":229.99347816840373},{"x":-143,"y":-201,"length":246.6779276708802},{"x":-193,"y":-192,"length":272.237029075767},{"x":-235,"y":-182,"length":297.2355967915014},{"x":-275,"y":-172,"length":324.3593686021725},{"x":-320,"y":-159,"length":357.32478223599327},{"x":-354,"y":-149,"length":384.0794188706289},{"x":-394,"y":-133,"length":415.84251826863493},{"x":-435,"y":-116,"length":450.2010661915407},{"x":-473,"y":-96,"length":482.643760966616},{"x":-509,"y":-77,"length":514.7912198163446},{"x":-552,"y":-51,"length":554.350971858082},{"x":-591,"y":-27,"length":591.6164297921416},{"x":-622,"y":-4,"length":622.0128616033594},{"x":-653,"y":21,"length":653.3375850201793},{"x":-688,"y":49,"length":689.7427056518974},{"x":-720,"y":78,"length":724.2126759454021},{"x":-746,"y":102,"length":752.9409007352436},{"x":-773,"y":128,"length":783.5260046737441},{"x":-795,"y":153,"length":809.5887845072954},{"x":-818,"y":181,"length":837.7857721398711},{"x":-838,"y":205,"length":862.7102642254814},{"x":-859,"y":231,"length":889.5178469260749},{"x":-884,"y":262,"length":922.0086767487603},{"x":-1050,"y":262,"length":1082.1940676237327},{"x":-1076,"y":271,"length":1109.6021809639706},{"x":-1095,"y":290,"length":1132.7510759209192},{"x":-1101,"y":318,"length":1146.0039266948434},{"x":-1101,"y":570,"length":1239.7987739951996},{"x":-1097,"y":596,"length":1248.4490378065098},{"x":-1078,"y":617,"length":1242.0841356365518},{"x":-1048,"y":625,"length":1220.2167840183154},{"x":-782,"y":625,"length":1001.0739233443253},{"x":-756,"y":624,"length":980.2611896836476},{"x":-733,"y":608,"length":952.3408003440785},{"x":-724,"y":579,"length":927.0474637255635},{"x":-724,"y":391,"length":822.8347343178945},{"x":-665,"y":327,"length":741.0492561226953},{"x":-603,"y":260,"length":656.6650592196908},{"x":-560,"y":217,"length":600.5738922064462},{"x":-503,"y":168,"length":530.3140578939992},{"x":-448,"y":130,"length":466.4804390325494},{"x":-393,"y":97,"length":404.7937746556881},{"x":-321,"y":65,"length":327.5148851579116},{"x":-242,"y":37,"length":244.8121728999602},{"x":-140,"y":10,"length":140.356688476182},{"x":-46,"y":-6,"length":46.389654018972806},{"x":730,"y":-64,"length":732.8001091702976}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1846.5,"type":9,"textureOffset":0,"y":-493}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3330,"safeId":-1,"rotation":0,"graphic":true,"height":313,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":true,"stretchTexture":false,"vertices":[{"x":2,"y":-3,"length":3.605551275463989},{"x":2,"y":-303,"length":303.00660058817203}],"smoothing":true,"id":-1,"repeatTexture":true,"width":32,"type":10,"textureOffset":0,"y":420}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":580,"safeId":-1,"rotation":0,"graphic":true,"height":310,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":444,"y":-283,"length":526.5216044950103}],"smoothing":true,"id":-1,"repeatTexture":true,"width":461.2,"type":10,"textureOffset":0,"y":290}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":7090,"safeId":-1,"rotation":0,"graphic":true,"height":548.25,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":52,"y":-62,"length":80.91971329657564},{"x":102,"y":-120,"length":157.49285698088025},{"x":152,"y":-173,"length":230.28894893155424},{"x":203,"y":-218,"length":297.8808486626826},{"x":263,"y":-265,"length":373.35505889166683},{"x":309,"y":-299,"length":429.97906925802795},{"x":369,"y":-334,"length":497.711763975898},{"x":435,"y":-365,"length":567.8468103282786},{"x":502,"y":-393,"length":637.5366656122611},{"x":578,"y":-416,"length":712.1376271480113},{"x":665,"y":-439,"length":796.8349891916142},{"x":749,"y":-452,"length":874.8171237464434},{"x":820,"y":-461,"length":940.7023971480035},{"x":1558,"y":-522,"length":1643.1214197374459}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1576.75,"type":10,"textureOffset":0,"y":-180}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6990,"safeId":-1,"rotation":0,"graphic":true,"height":352.1,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":3,"y":-3,"length":4.242640687119285},{"x":20,"y":14,"length":24.413111231467404},{"x":34,"y":32,"length":46.69047011971501},{"x":44,"y":50,"length":66.60330322138685},{"x":52,"y":70,"length":87.20091742636656},{"x":57,"y":92,"length":108.2266141020775},{"x":60,"y":114,"length":128.82546332150332},{"x":59,"y":137,"length":149.164338901763},{"x":56,"y":158,"length":167.6305461424021},{"x":48,"y":180,"length":186.29009635512028},{"x":35,"y":205,"length":207.9663434308542},{"x":23,"y":222,"length":223.1882613400624},{"x":2,"y":243,"length":243.00823031329617},{"x":-17,"y":257,"length":257.5616431070434},{"x":-40,"y":268,"length":270.9686328710392},{"x":-63,"y":275,"length":282.1240861748603},{"x":-92,"y":280,"length":294.72699231661835},{"x":-116,"y":279,"length":302.15393427853957},{"x":-143,"y":274,"length":309.0711892105118},{"x":-162,"y":267,"length":312.3027377401614},{"x":-182,"y":255,"length":313.28740798187215},{"x":-203,"y":241,"length":315.1031577118833},{"x":-217,"y":230,"length":316.2103730113862},{"x":-228,"y":217,"length":314.75863768926183},{"x":-239,"y":200,"length":311.64242329952447},{"x":-248,"y":184,"length":308.8041450499005},{"x":-254,"y":164,"length":302.34417474130373},{"x":-259,"y":142,"length":295.3726459914662},{"x":-260,"y":119,"length":285.9388046418324},{"x":-259,"y":99,"length":277.2760357477725},{"x":-256,"y":80,"length":268.2088738278434},{"x":-251,"y":62,"length":258.54400012377005},{"x":-241,"y":43,"length":244.80604567698077},{"x":-230,"y":26,"length":231.46490014686893},{"x":-215,"y":8,"length":215.14878572745886},{"x":-201,"y":-4,"length":201.03979705520993},{"x":-184,"y":-17,"length":184.78365728602733},{"x":-163,"y":-28,"length":165.38742394752995},{"x":-143,"y":-35,"length":147.220922426128},{"x":-117,"y":-39,"length":123.3288287465668},{"x":-93,"y":-40,"length":101.23734488813898},{"x":-64,"y":-37,"length":73.92563831310488},{"x":-40,"y":-29,"length":49.4064773081425},{"x":-17,"y":-18,"length":24.758836806279895},{"x":1,"y":-4,"length":4.123105625617661}],"smoothing":true,"id":-1,"repeatTexture":true,"width":352.05,"type":10,"textureOffset":0,"y":-870}}],[{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":3350,"y":90,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-36,"scaleY":1,"x":1055,"y":6,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":3350,"y":250,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":6588,"y":-592,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":6898,"y":-572,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":87,"scaleY":-1,"x":7067.9,"y":-757.45,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":6880.6,"y":-947.7,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":6686,"y":-757,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":6676,"y":-427,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":6676,"y":-107,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-135,"scaleY":-1,"x":6750,"y":205,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":7183,"y":266,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":8073,"y":256,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":7633,"y":266,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":8270.95,"y":20.95,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":8271,"y":-339,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":8531,"y":-349,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":8541,"y":11,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":9171,"y":-579,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":8744,"y":259,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":9171,"y":-289,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":9004,"y":259,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-6,"scaleY":1,"x":8663,"y":-687,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-9,"scaleY":1,"x":7871,"y":-617,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-6,"scaleY":1,"x":8263,"y":-650,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-30,"scaleY":1,"x":7469,"y":-495,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-48,"scaleY":1,"x":7137,"y":-205,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":9171,"y":31,"width":75.25,"height":244.95}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":5120,"y":-524,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":0.633813790416829,"x":7810,"y":336,"width":9.3,"height":81.4}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":0.6493961823139852,"x":8870,"y":330,"width":9.3,"height":83.4}},{"className":"SignPillar","params":{"scaleX":1,"rotation":-90,"scaleY":0.7195169458511882,"x":8610,"y":-480,"width":9.3,"height":92.35}},{"className":"Sign1","params":{"x":8560,"rotation":-90,"y":-480,"width":68.8,"height":69.8}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":0.7195169458511882,"x":9012,"y":-628,"width":9.3,"height":92.35}},{"className":"Sign1","params":{"x":9012,"rotation":0,"y":-698,"width":68.8,"height":69.8}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":8880,"y":-640,"width":9.3,"height":128.35}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":1800,"y":-50,"width":640,"height":256}},{"className":"Dec51","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":2360,"y":-50,"width":256,"height":256}},{"className":"Dec58","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":2430,"y":-50,"width":256,"height":256}}],[{"className":"GeyserE","params":{"x":762,"safeId":-1,"rotation":-33,"y":217,"speed":2500,"id":80,"rate":1,"width":397,"height":172}},{"className":"GeyserE","params":{"x":3363,"safeId":-1,"rotation":-90,"y":-21,"speed":2100,"id":81,"rate":1,"width":529,"height":198}},{"className":"GlassCrashed1","params":{"x":6757,"safeId":-1,"rotation":0,"y":-451,"ttl":1,"width":66,"height":18}},{"className":"GeyserE","params":{"x":8172,"safeId":-1,"rotation":0,"y":-422,"speed":1000,"id":-1,"rate":1,"width":294,"height":128}},{"className":"GeyserE","params":{"x":9234,"safeId":-1,"rotation":-177,"y":-722,"speed":1000,"id":-1,"rate":1,"width":422,"height":128}},{"className":"BoostE","params":{"x":9090,"safeId":-1,"rotation":0,"y":270,"time":1,"width":64.1,"force":4500,"height":64.1}},{"className":"GlassCrashed0","params":{"x":6658,"safeId":-1,"rotation":0,"y":-451,"ttl":1,"width":132,"height":18}}],[{"className":"Dec37","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":3353,"y":90,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-36,"scaleY":1,"x":1057,"y":8,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":3353,"y":250,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":177.00000000000006,"scaleY":-1,"x":6589,"y":-590,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":177.00000000000006,"scaleY":-1,"x":6899,"y":-570,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":87.00000000000006,"scaleY":-1,"x":7069.9,"y":-758.3,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":5.684341886080804e-14,"scaleY":1,"x":6879.5,"y":-945.75,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":1,"x":6689,"y":-756,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":1,"x":6679,"y":-426,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":1,"x":6679,"y":-106,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-134.99999999999994,"scaleY":-1,"x":6748,"y":207,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":177.00000000000006,"scaleY":-1,"x":7183,"y":269,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":177.00000000000006,"scaleY":-1,"x":8073,"y":259,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":177.00000000000006,"scaleY":-1,"x":7633,"y":269,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":1,"x":8273.9,"y":20.95,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":1,"x":8274,"y":-339,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":1,"x":8534,"y":-349,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":1,"x":8544,"y":11,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":1,"x":9174,"y":-579,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":5.684341886080804e-14,"scaleY":1,"x":8744,"y":262,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":1,"x":9174,"y":-289,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":5.684341886080804e-14,"scaleY":1,"x":9004,"y":262,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-5.999999999999943,"scaleY":1,"x":8663,"y":-684,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-8.999999999999943,"scaleY":1,"x":7871,"y":-614,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-5.999999999999943,"scaleY":1,"x":8263,"y":-647,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-29.999999999999943,"scaleY":1,"x":7470,"y":-492,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-47.99999999999994,"scaleY":1,"x":7139,"y":-203,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":1,"x":9174,"y":31,"width":99.95,"height":281.05}}],[{"className":"PlayerWP","params":{"x":660,"rotation":-27,"y":310,"width":64,"height":32}},{"className":"SafePointE","params":{"x":5120,"rotation":0,"y":-600,"id":0,"width":128,"height":1949}},{"className":"SafePointE","params":{"x":7810,"rotation":0,"y":280,"id":0,"width":128,"height":354}},{"className":"SafePointE","params":{"x":8870,"rotation":0,"y":280,"id":0,"width":128,"height":508}},{"className":"SafePointE","params":{"x":8880,"rotation":0,"y":-700,"id":0,"width":128,"height":780}}],[{"className":"PivotJointE","params":{"x":5487,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-804,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":5322,"safeId":-1,"rotation":0,"graphic":0,"id":3,"y":-913,"width":17,"height":17}},{"className":"ToggleE","params":{"x":5325,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":3,"off":false,"y":-840,"width":64,"rotation":0,"height":918}},{"className":"ToggleE","params":{"x":4070,"safeId":-1,"sndId":-1,"hint":-1,"id_off":81,"id":2,"off":false,"y":-540,"width":64,"rotation":0,"height":2322}},{"className":"MotorJointE","params":{"x":5448,"safeId":-1,"rotation":0,"graphic":0,"y":-183,"useWeld":false,"time":0,"snd":false,"id":2,"rate":180,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":5953,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-167,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":5329,"safeId":-1,"rotation":0,"graphic":0,"y":-429,"useWeld":false,"time":3,"snd":false,"id":3,"rate":35,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":5994,"safeId":-1,"rotation":0,"graphic":0,"id":4,"y":-279,"width":17,"height":17}},{"className":"ToggleE","params":{"x":5460,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":4,"off":false,"y":-770,"width":258,"rotation":0,"height":598}},{"className":"ToggleE","params":{"x":1770,"safeId":-1,"sndId":1,"hint":-1,"id_off":80,"id":81,"off":false,"y":-260,"width":64,"rotation":0,"height":1681}},{"className":"ToggleE","params":{"x":8410,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-430,"width":64,"rotation":0,"height":171}},{"className":"ToggleE","params":{"x":9190,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-750,"width":64,"rotation":0,"height":171}},{"className":"ToggleE","params":{"x":5120,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":2,"off":false,"y":-790,"width":64,"rotation":0,"height":2322}},{"className":"ToggleE","params":{"x":660,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":80,"off":false,"y":310,"width":64,"rotation":0,"height":64}},{"className":"ToggleE","params":{"x":6690,"safeId":-1,"sndId":-1,"hint":-1,"id_off":2,"id":0,"off":false,"y":-700,"width":64,"rotation":0,"height":466}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map19.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map19.json new file mode 100644 index 000000000..b860abdb3 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map19.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"28,34,41"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9900,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1090,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1620,"y":0,"length":1620},{"x":1620,"y":130,"length":1625.207679036744},{"x":0,"y":130,"length":130}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1592,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":376,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1015,"y":0,"length":1015},{"x":1015,"y":825,"length":1307.9946483070946},{"x":0,"y":825,"length":825}],"line":true,"id":-1,"physic":false}},{"className":"FinishZone","params":{"x":10490,"rotation":0,"y":-2670,"width":741,"height":691}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10648,"safeId":2,"rotation":0,"graphic":true,"isWheel":false,"y":-1112,"plr":false,"density":0.5,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":30,"y":0,"length":30},{"x":57,"y":-2,"length":57.0350769263968},{"x":81,"y":-7,"length":81.30190649671138},{"x":114,"y":-18,"length":115.41230437002807},{"x":142,"y":-35,"length":146.24978632463024},{"x":166,"y":-56,"length":175.1913239860924},{"x":190,"y":-84,"length":207.74022239325728},{"x":208,"y":-113,"length":236.7129062810053},{"x":217,"y":-137,"length":256.62813563598206},{"x":250,"y":-138,"length":285.5591007129697},{"x":263,"y":-112,"length":285.8548582760139},{"x":277,"y":-90,"length":291.2541845192958},{"x":297,"y":-63,"length":303.608300281794},{"x":321,"y":-42,"length":323.736003558455},{"x":351,"y":-24,"length":351.81955602268613},{"x":379,"y":-10,"length":379.1319031682773},{"x":410,"y":-2,"length":410.0048780197621},{"x":440,"y":0,"length":440},{"x":473,"y":0,"length":473},{"x":494,"y":20,"length":494.404692534365},{"x":437,"y":84,"length":445},{"x":50,"y":85,"length":98.6154146165801},{"x":-15,"y":22,"length":26.627053911388696}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":9890,"viscosity":1.5,"rotation":0,"y":-1090,"vertices":[{"x":0,"y":0,"length":0},{"x":1635,"y":0,"length":1635},{"x":1635,"y":220,"length":1649.7348271767798},{"x":-10,"y":225,"length":225.22211259110415}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7486,"safeId":1,"rotation":0,"graphic":true,"isWheel":false,"y":-1168,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":35,"y":-35,"length":49.49747468305833},{"x":95,"y":3,"length":95.04735661763561},{"x":140,"y":-15,"length":140.80127840328723},{"x":156,"y":-85,"length":177.65415840897168},{"x":211,"y":-85,"length":227.477471412006},{"x":222,"y":-15,"length":222.50617968946392},{"x":272,"y":2,"length":272.0073528417936},{"x":329,"y":-35,"length":330.8564643467013},{"x":366,"y":5,"length":366.0341514121326},{"x":331,"y":59,"length":336.21719170797917},{"x":347,"y":105,"length":362.5382738415353},{"x":419,"y":124,"length":436.9633851937711},{"x":418,"y":175,"length":453.15449903978663},{"x":348,"y":189,"length":396.01136347332255},{"x":328,"y":232,"length":401.756144943671},{"x":366,"y":302,"length":474.51027386137804},{"x":330,"y":335,"length":470.2393007820593},{"x":272,"y":293,"length":399.7911955008514},{"x":227,"y":314,"length":387.45967532118743},{"x":205,"y":385,"length":436.1765697512878},{"x":157,"y":384,"length":414.85539649376625},{"x":141,"y":314,"length":344.2048808486016},{"x":99,"y":297,"length":313.06548835666956},{"x":34,"y":332,"length":333.73642294481436},{"x":0,"y":299,"length":299},{"x":37,"y":234,"length":236.90715480964266},{"x":20,"y":192,"length":193.03885619221847},{"x":-50,"y":174,"length":181.0414317221337},{"x":-52,"y":124,"length":134.46189051177288},{"x":17,"y":106,"length":107.35455276791944},{"x":37,"y":64,"length":73.92563831310488}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7404,"safeId":1,"rotation":-90,"graphic":true,"isWheel":false,"y":-889,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-5,"y":-110,"length":110.11357772772621},{"x":890,"y":-110,"length":896.7719888578144},{"x":890,"y":70,"length":892.7485648266257},{"x":838,"y":70,"length":840.9185454013962},{"x":838,"y":23,"length":838.3155730391748},{"x":587,"y":24,"length":587.4904254538963},{"x":555,"y":80,"length":560.7361233236182},{"x":515,"y":80,"length":521.1765535785354},{"x":480,"y":23,"length":480.5507257303853},{"x":425,"y":24,"length":425.677107676699},{"x":395,"y":80,"length":403.01985062773275},{"x":355,"y":80,"length":363.90245945857527},{"x":319,"y":26,"length":320.0578072786227},{"x":266,"y":27,"length":267.36678926149375},{"x":236,"y":81,"length":249.51352668743232},{"x":192,"y":81,"length":208.38665984174708},{"x":160,"y":27,"length":162.2621335986927},{"x":104,"y":28,"length":107.70329614269008},{"x":75,"y":85,"length":113.35784048754634},{"x":30,"y":85,"length":90.13878188659973},{"x":0,"y":35,"length":35}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6290,"safeId":1,"rotation":-27,"graphic":true,"isWheel":false,"y":-1425,"plr":false,"density":1,"isStatic":false,"ignore":true,"layer":5,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":10,"y":-10,"length":14.142135623730951},{"x":27,"y":-20,"length":33.60059523282288},{"x":189,"y":65,"length":199.86495440671933},{"x":219,"y":76,"length":231.81242417092315},{"x":243,"y":85,"length":257.4373710244882},{"x":273,"y":90,"length":287.452604789033},{"x":302,"y":94,"length":316.29100524675056},{"x":330,"y":95,"length":343.4020966738555},{"x":356,"y":92,"length":367.6955262170047},{"x":382,"y":86,"length":391.56097864828155},{"x":413,"y":76,"length":419.934518705},{"x":439,"y":66,"length":443.93355358657},{"x":606,"y":-24,"length":606.4750613174461},{"x":617,"y":-18,"length":617.262504936109},{"x":627,"y":-8,"length":627.0510346056371},{"x":637,"y":0,"length":637},{"x":640,"y":10,"length":640.0781202322104},{"x":643,"y":24,"length":643.4477445760456},{"x":640,"y":40,"length":641.2487816752559},{"x":498,"y":115,"length":511.1056642221841},{"x":482,"y":125,"length":497.944776054534},{"x":462,"y":138,"length":482.1700944687466},{"x":446,"y":152,"length":471.1899829155964},{"x":432,"y":164,"length":462.0822437618654},{"x":418,"y":180,"length":455.1087782058263},{"x":405,"y":198,"length":450.809272309255},{"x":392,"y":218,"length":448.5398533017997},{"x":383,"y":236,"length":449.87220407577973},{"x":374,"y":255,"length":452.6599164936078},{"x":365,"y":274,"length":456.40004382120736},{"x":360,"y":298,"length":467.3371374072469},{"x":356,"y":321,"length":479.350602377842},{"x":352,"y":349,"length":495.68639279286253},{"x":355,"y":381,"length":520.7552208091629},{"x":359,"y":521,"length":632.7100441750549},{"x":346,"y":530,"length":632.9423354461289},{"x":333,"y":534,"length":629.3210627334827},{"x":319,"y":536,"length":623.7443386516626},{"x":308,"y":535,"length":617.3240640052841},{"x":294,"y":530,"length":606.0825026347486},{"x":280,"y":520,"length":590.592922409336},{"x":280,"y":364,"length":459.2341450719883},{"x":280,"y":331,"length":433.54469204454574},{"x":276,"y":303,"length":409.8597321035576},{"x":272,"y":281,"length":391.0818328687744},{"x":264,"y":260,"length":370.5347487078641},{"x":254,"y":240,"length":349.4509979954271},{"x":242,"y":218,"length":325.7115288103877},{"x":229,"y":198,"length":302.72925197278175},{"x":214,"y":182,"length":280.9270367906941},{"x":198,"y":163,"length":256.46247288833507},{"x":181,"y":147,"length":233.173754955398},{"x":161,"y":132,"length":208.19462048765814},{"x":139,"y":118,"length":182.33211456021672},{"x":0,"y":49,"length":49},{"x":-7,"y":23,"length":24.041630560342615}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6670,"safeId":1,"rotation":0,"graphic":true,"height":167.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":16,"physic":true,"stretchTexture":false,"vertices":[{"x":2,"y":40,"length":40.049968789001575},{"x":124,"y":-113,"length":167.7647161950331},{"x":140,"y":-113,"length":179.91386828146406},{"x":265,"y":38,"length":267.7106647109898}],"smoothing":true,"id":-1,"repeatTexture":true,"width":276,"type":7,"textureOffset":0,"y":-1000}},{"className":"frg.game.editor.objects::PillarPather","params":{"x":2630,"rotation":0,"y":368,"snapToGrid":true,"wireframe":false,"textureMode":true,"straightSides":true,"stretchTexture":false,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-690,"length":690},{"x":15,"y":-705,"length":705.1595564125895},{"x":335,"y":-705,"length":780.544681616626},{"x":350,"y":-690,"length":773.6924453553879},{"x":351,"y":77,"length":359.3466293149276}],"smoothing":true,"repeatTexture":true,"width":364,"type":2,"textureOffset":0,"height":795}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":1580,"viscosity":1.5,"rotation":0,"y":370,"vertices":[{"x":0,"y":5,"length":5},{"x":1025,"y":5,"length":1025.0121950494054},{"x":1025,"y":945,"length":1394.148485635587},{"x":0,"y":945,"length":945}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":-40,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":400,"plr":false,"density":0.5,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":5,"y":-675,"length":675.0185182644992},{"x":260,"y":-675,"length":723.3429338840602},{"x":260,"y":0,"length":260},{"x":1320,"y":0,"length":1320},{"x":1375,"y":-2,"length":1375.0014545446852},{"x":1432,"y":-13,"length":1432.0590071641602},{"x":1487,"y":-35,"length":1487.4118461273595},{"x":1527,"y":-57,"length":1528.0634803567552},{"x":1564,"y":-82,"length":1566.1481411411885},{"x":1600,"y":-115,"length":1604.1274886990748},{"x":1623,"y":-128,"length":1628.039618682543},{"x":1646,"y":-128,"length":1650.9694121939388},{"x":1646,"y":764,"length":1814.6658094536306},{"x":2627,"y":765,"length":2736.120245895637},{"x":2628,"y":-33,"length":2628.2071836139553},{"x":2678,"y":-33,"length":2678.203315657719},{"x":2687,"y":-22,"length":2687.0900617582583},{"x":3551,"y":136,"length":3553.6033824837573},{"x":3597,"y":138,"length":3599.6462326178666},{"x":3645,"y":137,"length":3647.573714128338},{"x":3698,"y":132,"length":3700.3551180933973},{"x":3781,"y":117,"length":3782.809802250174},{"x":3860,"y":100,"length":3861.2951195162486},{"x":3924,"y":76,"length":3924.735914682668},{"x":3974,"y":53,"length":3974.3534065304257},{"x":4022,"y":26,"length":4022.0840369141965},{"x":4101,"y":-31,"length":4101.117164871055},{"x":4152,"y":-73,"length":4152.641689334634},{"x":4223,"y":-141,"length":4225.353239671211},{"x":4660,"y":-550,"length":4692.344829613442},{"x":4785,"y":-550,"length":4816.505475964914},{"x":4827,"y":-556,"length":4858.916031379838},{"x":4859,"y":-564,"length":4891.623145746205},{"x":4887,"y":-579,"length":4921.17973660788},{"x":4919,"y":-597,"length":4955.095357306456},{"x":4947,"y":-619,"length":4985.576195386046},{"x":4982,"y":-659,"length":5025.396004296576},{"x":5625,"y":-1415,"length":5800.245684451651},{"x":5660,"y":-1430,"length":5837.850631867863},{"x":5705,"y":-1425,"length":5880.276354050037},{"x":5929,"y":-1174,"length":6044.114244453028},{"x":6004,"y":-1122,"length":6107.937458749885},{"x":6128,"y":-1058,"length":6218.661270723788},{"x":6240,"y":-1020,"length":6322.81582841063},{"x":6334,"y":-1004,"length":6413.078200053388},{"x":6434,"y":-997,"length":6510.788354723259},{"x":6537,"y":-1002,"length":6613.348093061487},{"x":6624,"y":-1010,"length":6700.5578872210335},{"x":6702,"y":-1035,"length":6781.447411873073},{"x":6782,"y":-1070,"length":6865.888434864056},{"x":6859,"y":-1107,"length":6947.757192072849},{"x":6936,"y":-1159,"length":7032.1673046081605},{"x":7001,"y":-1213,"length":7105.305764004812},{"x":7059,"y":-1271,"length":7172.511554539316},{"x":7112,"y":-1333,"length":7235.843627387203},{"x":7161,"y":-1404,"length":7297.3376652036595},{"x":7196,"y":-1474,"length":7345.412990431511},{"x":7229,"y":-1559,"length":7395.19587299755},{"x":7253,"y":-1644,"length":7436.984940148796},{"x":7268,"y":-1680,"length":7459.639669581903},{"x":7297,"y":-1697,"length":7491.729973777752},{"x":7323,"y":-1696,"length":7516.830781652598},{"x":7325,"y":-800,"length":7368.556507213608},{"x":7560,"y":-800,"length":7602.2102049338255},{"x":7558,"y":-1220,"length":7655.83202532553},{"x":7605,"y":-1191,"length":7697.694849758595},{"x":7662,"y":-1174,"length":7751.420514976594},{"x":7718,"y":-1171,"length":7806.32852242333},{"x":7762,"y":-1176,"length":7850.580870228649},{"x":7808,"y":-1188,"length":7897.860976239072},{"x":7847,"y":-1209,"length":7939.590039794246},{"x":7882,"y":-1238,"length":7978.631962937005},{"x":7912,"y":-1273,"length":8013.755237090786},{"x":7937,"y":-1314,"length":8045.033561148145},{"x":7953,"y":-1362,"length":8068.782621932505},{"x":7959,"y":-1402,"length":8081.539766653382},{"x":7958,"y":-1446,"length":8088.305137666358},{"x":7953,"y":-1485,"length":8090.453262951341},{"x":7936,"y":-1535,"length":8083.08858048704},{"x":7906,"y":-1577,"length":8061.747019102001},{"x":7851,"y":-1630,"length":8018.422600486956},{"x":7797,"y":-1658,"length":7971.334455409584},{"x":7721,"y":-1670,"length":7899.540556260218},{"x":7658,"y":-1667,"length":7837.337111544966},{"x":7537,"y":-1665,"length":7718.717121387465},{"x":7537,"y":-1701,"length":7726.562625126389},{"x":8560,"y":-1705,"length":8728.151293372497},{"x":8663,"y":-1704,"length":8828.996828632346},{"x":8776,"y":-1692,"length":8937.619369832215},{"x":8872,"y":-1671,"length":9027.99119405862},{"x":8970,"y":-1642,"length":9119.049511873483},{"x":9138,"y":-1581,"length":9273.758946619218},{"x":9326,"y":-1505,"length":9446.655545747395},{"x":9421,"y":-1477,"length":9536.077285760639},{"x":9513,"y":-1466,"length":9625.296099341567},{"x":9596,"y":-1467,"length":9707.487058966393},{"x":9692,"y":-1480,"length":9804.349238985727},{"x":9775,"y":-1505,"length":9890.179472587946},{"x":9864,"y":-1538,"length":9983.182859188746},{"x":9927,"y":-1565,"length":10049.604668841457},{"x":9955,"y":-1565,"length":10077.264013610044},{"x":9955,"y":-1405,"length":10053.658538064637},{"x":12405,"y":-1405,"length":12484.3121556616},{"x":14340,"y":-1445,"length":14412.620337745666},{"x":14380,"y":-520,"length":14389.398875561134},{"x":10860,"y":1080,"length":10913.569535216238},{"x":5921,"y":2180,"length":6309.567417818753},{"x":4392,"y":1952,"length":4806.242607276499},{"x":902,"y":1402,"length":1667.0956781180857},{"x":-5,"y":1375,"length":1375.0090908790385},{"x":5,"y":580,"length":580.0215513237417}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::PillarPather","params":{"x":6170,"rotation":0,"y":-630,"snapToGrid":true,"wireframe":false,"textureMode":true,"straightSides":true,"stretchTexture":false,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":432,"y":-795,"length":904.7922413460451}],"smoothing":true,"repeatTexture":true,"width":445,"type":2,"textureOffset":0,"height":808}},{"className":"frg.game.editor.objects::PillarPather","params":{"x":6716,"rotation":0,"y":-1437,"snapToGrid":true,"wireframe":false,"textureMode":true,"straightSides":true,"stretchTexture":false,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":382,"y":470,"length":605.6599706105728}],"smoothing":true,"repeatTexture":true,"width":395,"type":2,"textureOffset":0,"height":483}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":-40,"y":490,"direction":90,"snapToGrid":true,"cameraOffsetY":120,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":11816,"textureOffset":0,"height":2375.05,"rotation":0,"wireframe":false,"thick":128,"lineId":-1,"directed":false,"physic":false,"vertices":[{"x":5,"y":-80,"length":80.15609770940699},{"x":2630,"y":65,"length":2630.8031093185214},{"x":3660,"y":220,"length":3666.606060105176},{"x":3845,"y":200,"length":3850.1980468542133},{"x":3970,"y":130,"length":3972.1278932078712},{"x":5215,"y":-750,"length":5268.654951693079},{"x":6120,"y":-1090,"length":6216.309194369276},{"x":7740,"y":-1095,"length":7817.072661808895},{"x":8390,"y":-1715,"length":8563.487899214899},{"x":9500,"y":-1550,"length":9625.61686334959},{"x":10665,"y":-1580,"length":10781.401810525384},{"x":10805,"y":-1620,"length":10925.7688516644},{"x":11800,"y":-2090,"length":11983.65970811922}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2429,"safeId":-1,"rotation":12,"graphic":true,"isWheel":false,"y":235,"plr":false,"density":0.5,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":15,"y":-9,"length":17.4928556845359},{"x":31,"y":-11,"length":32.89376840679705},{"x":54,"y":-1,"length":54.00925846556311},{"x":82,"y":9,"length":82.49242389456137},{"x":121,"y":16,"length":122.05326705991938},{"x":161,"y":19,"length":162.1172415260018},{"x":200,"y":15,"length":200.5617112013158},{"x":238,"y":6,"length":238.0756182392477},{"x":269,"y":-6,"length":269.0669061776271},{"x":301,"y":-25,"length":302.0364216448076},{"x":329,"y":-47,"length":332.34018715767735},{"x":356,"y":-76,"length":364.0219773585106},{"x":380,"y":-108,"length":395.04936400404443},{"x":397,"y":-143,"length":421.96919318831794},{"x":409,"y":-182,"length":447.66617026529934},{"x":414,"y":-223,"length":470.2393007820593},{"x":413,"y":-267,"length":491.79060584765136},{"x":408,"y":-301,"length":507.0157788471676},{"x":395,"y":-338,"length":519.8740232017753},{"x":377,"y":-375,"length":531.7461800520997},{"x":353,"y":-406,"length":538.0009293672271},{"x":330,"y":-431,"length":542.8268600576063},{"x":304,"y":-454,"length":546.3808195755045},{"x":274,"y":-471,"length":544.9009084228068},{"x":242,"y":-485,"length":542.0230622399752},{"x":205,"y":-494,"length":534.8467070105228},{"x":162,"y":-498,"length":523.6869293767031},{"x":127,"y":-496,"length":512.0009765615687},{"x":96,"y":-492,"length":501.27836578093013},{"x":67,"y":-484,"length":488.6153906704127},{"x":40,"y":-473,"length":474.6883187945539},{"x":16,"y":-458,"length":458.27939076506595},{"x":-7,"y":-440,"length":440.05567829537205},{"x":-29,"y":-411,"length":412.0218440811118},{"x":-50,"y":-405,"length":408.0747480548141},{"x":-73,"y":-412,"length":418.4172558583119},{"x":-89,"y":-434,"length":443.0316015816479},{"x":-89,"y":-456,"length":464.60413256879235},{"x":-83,"y":-473,"length":480.227029643272},{"x":-58,"y":-496,"length":499.3796151226039},{"x":-31,"y":-519,"length":519.9249945905659},{"x":-6,"y":-534,"length":534.0337068013591},{"x":23,"y":-549,"length":549.4815738493876},{"x":53,"y":-559,"length":561.5069011152044},{"x":88,"y":-567,"length":573.7882884827818},{"x":122,"y":-572,"length":584.8657965721709},{"x":157,"y":-574,"length":595.0840276801251},{"x":191,"y":-572,"length":603.0464327064708},{"x":222,"y":-568,"length":609.8426026443217},{"x":258,"y":-559,"length":615.6663057208832},{"x":289,"y":-548,"length":619.5361167841629},{"x":320,"y":-532,"length":620.8252572181644},{"x":351,"y":-512,"length":620.7616289688016},{"x":379,"y":-489,"length":618.6776220294379},{"x":402,"y":-466,"length":615.4348056455696},{"x":420,"y":-446,"length":612.6303942835353},{"x":439,"y":-420,"length":607.5532898437799},{"x":457,"y":-387,"length":598.8472259266131},{"x":473,"y":-352,"length":589.6041044633255},{"x":483,"y":-316,"length":577.1871446939891},{"x":488,"y":-282,"length":563.6204396577541},{"x":491,"y":-250,"length":550.9818508807708},{"x":490,"y":-220,"length":537.1219600798314},{"x":487,"y":-189,"length":522.3887441360122},{"x":481,"y":-156,"length":505.6649088081948},{"x":473,"y":-130,"length":490.5394989193021},{"x":460,"y":-101,"length":470.9575352407051},{"x":445,"y":-71,"length":450.62845005614105},{"x":426,"y":-44,"length":428.26627231198114},{"x":407,"y":-21,"length":407.54140893901814},{"x":386,"y":2,"length":386.00518131237567},{"x":364,"y":21,"length":364.6052660069517},{"x":336,"y":41,"length":338.49224511057855},{"x":306,"y":59,"length":311.6360056219435},{"x":273,"y":74,"length":282.85155117128136},{"x":243,"y":82,"length":256.46247288833507},{"x":211,"y":89,"length":229.00218339570478},{"x":180,"y":93,"length":202.60552805883654},{"x":144,"y":95,"length":172.51376756653366},{"x":111,"y":91,"length":143.5339681051144},{"x":77,"y":85,"length":114.69088891450794},{"x":45,"y":76,"length":88.32326986700618},{"x":17,"y":65,"length":67.1863081289633},{"x":5,"y":54,"length":54.230987451824994},{"x":-5,"y":39,"length":39.319206502675},{"x":-7,"y":18,"length":19.313207915827967}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":2643,"safeId":-1,"rotation":0,"graphic":true,"height":233,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":765,"y":141,"length":777.8855957015787},{"x":830,"y":151,"length":843.6237312925709},{"x":897,"y":155,"length":910.2933593078662},{"x":964,"y":155,"length":976.3815852421634},{"x":1031,"y":150,"length":1041.854596380896},{"x":1096,"y":138,"length":1104.653791918536},{"x":1181,"y":116,"length":1186.68319276882},{"x":1257,"y":87,"length":1260.0071428368967},{"x":1313,"y":60,"length":1314.3701913844516},{"x":1372,"y":23,"length":1372.192770714086},{"x":1432,"y":-20,"length":1432.1396579942893}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1457.15,"type":5,"textureOffset":0,"y":368}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6660,"safeId":1,"rotation":0,"graphic":true,"isWheel":false,"y":-980,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":60,"y":25,"length":65},{"x":225,"y":25,"length":226.38462845343543},{"x":285,"y":0,"length":285},{"x":285,"y":65,"length":292.31831964486935},{"x":230,"y":90,"length":246.9817807045694},{"x":60,"y":90,"length":108.16653826391968},{"x":0,"y":65,"length":65}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6190,"safeId":1,"rotation":0,"graphic":true,"height":167.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":16,"physic":true,"stretchTexture":false,"vertices":[{"x":2,"y":40,"length":40.049968789001575},{"x":125,"y":-113,"length":168.50519279832298},{"x":143,"y":-113,"length":182.25805880673698},{"x":265,"y":38,"length":267.7106647109898}],"smoothing":true,"id":-1,"repeatTexture":true,"width":276,"type":7,"textureOffset":0,"y":-1300}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6180,"safeId":1,"rotation":0,"graphic":true,"isWheel":false,"y":-1280,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":60,"y":25,"length":65},{"x":225,"y":25,"length":226.38462845343543},{"x":285,"y":0,"length":285},{"x":285,"y":65,"length":292.31831964486935},{"x":230,"y":90,"length":246.9817807045694},{"x":60,"y":90,"length":108.16653826391968},{"x":0,"y":65,"length":65}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6687,"safeId":1,"rotation":9,"graphic":true,"height":167.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":16,"physic":true,"stretchTexture":false,"vertices":[{"x":2,"y":40,"length":40.049968789001575},{"x":124,"y":-113,"length":167.7647161950331},{"x":143,"y":-113,"length":182.25805880673698},{"x":265,"y":38,"length":267.7106647109898}],"smoothing":true,"id":-1,"repeatTexture":true,"width":276,"type":7,"textureOffset":0,"y":-1603}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6674,"safeId":1,"rotation":9,"graphic":true,"isWheel":false,"y":-1585,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":60,"y":25,"length":65},{"x":225,"y":25,"length":226.38462845343543},{"x":285,"y":0,"length":285},{"x":285,"y":65,"length":292.31831964486935},{"x":230,"y":90,"length":246.9817807045694},{"x":60,"y":90,"length":108.16653826391968},{"x":0,"y":65,"length":65}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5630,"safeId":-1,"rotation":0,"graphic":true,"height":717.85,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":49,"y":-20,"length":52.92447448959697},{"x":258,"y":213,"length":334.5638952427473},{"x":334,"y":268,"length":428.2289107475113},{"x":454,"y":329,"length":560.6754854637395},{"x":572,"y":368,"length":680.1529239810706},{"x":665,"y":383,"length":767.4073233948188},{"x":814,"y":385,"length":900.4559955933438},{"x":908,"y":383,"length":985.4709534024836},{"x":960,"y":377,"length":1031.3723866770915},{"x":1032,"y":354,"length":1091.0270390783173},{"x":1111,"y":319,"length":1155.8901331874063},{"x":1185,"y":282,"length":1218.092361030148},{"x":1266,"y":228,"length":1286.3669771880807},{"x":1332,"y":175,"length":1343.4466866980617},{"x":1388,"y":118,"length":1393.0068197966584},{"x":1442,"y":57,"length":1443.1261206145498},{"x":1492,"y":-20,"length":1492.1340422361525},{"x":1527,"y":-88,"length":1529.5335890394824},{"x":1550,"y":-146,"length":1556.8609443363912},{"x":1567,"y":-199,"length":1579.5853886384236},{"x":1583,"y":-256,"length":1603.5663378856516},{"x":1597,"y":-288,"length":1622.7609189279856}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1601.1,"type":5,"textureOffset":0,"y":-990}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10879,"safeId":2,"rotation":3,"graphic":true,"isWheel":false,"y":-1366,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-11,"y":-9,"length":14.212670403551895},{"x":-24,"y":-35,"length":42.43819034784589},{"x":-40,"y":-60,"length":72.11102550927978},{"x":-35,"y":-80,"length":87.32124598286491},{"x":-20,"y":-85,"length":87.32124598286491},{"x":-4,"y":-80,"length":80.09993757800315},{"x":9,"y":-55,"length":55.731499172371095},{"x":21,"y":-42,"length":46.95742752749558},{"x":36,"y":-35,"length":50.20956084253277},{"x":51,"y":-37,"length":63.00793600809346},{"x":65,"y":-40,"length":76.32168761236873},{"x":103,"y":-61,"length":119.70797801316336},{"x":118,"y":-63,"length":133.76471881628578},{"x":133,"y":-61,"length":146.32156368765337},{"x":145,"y":-52,"length":154.042202009709},{"x":152,"y":-42,"length":157.69590990257166},{"x":156,"y":-31,"length":159.05030650709227},{"x":157,"y":-16,"length":157.8131806916013},{"x":152,"y":-1,"length":152.00328943809077},{"x":143,"y":9,"length":143.28293687665675},{"x":128,"y":18,"length":129.2594290564522},{"x":74,"y":26,"length":78.43468620451031},{"x":58,"y":33,"length":66.73080248281148},{"x":45,"y":46,"length":64.35060217278468},{"x":39,"y":66,"length":76.66159403508382},{"x":32,"y":105,"length":109.7679370308106},{"x":20,"y":110,"length":111.80339887498948},{"x":10,"y":110,"length":110.45361017187261},{"x":0,"y":98,"length":98},{"x":1,"y":54,"length":54.00925846556311},{"x":-2,"y":20,"length":20.09975124224178}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::PillarPather","params":{"x":11000,"rotation":0,"y":-1390,"snapToGrid":false,"wireframe":false,"textureMode":true,"straightSides":true,"stretchTexture":false,"originOffsetRatio":0,"vertices":[{"x":652,"y":-539,"length":845.9462157844315},{"x":35,"y":-221,"length":223.75432956704995},{"x":2,"y":-226,"length":226.00884938426637},{"x":-23,"y":-259,"length":260.0192300580863},{"x":-45,"y":-282,"length":285.56785533389433},{"x":-75,"y":-312,"length":320.887830869293},{"x":-95,"y":-313,"length":327.099373279742},{"x":-126,"y":-282,"length":308.86890422961},{"x":-130,"y":-262,"length":292.4790590794493},{"x":-107,"y":-236,"length":259.12352266824405},{"x":-67,"y":-191,"length":202.41047403728888},{"x":-48,"y":-162,"length":168.96153408394468},{"x":-29,"y":-124,"length":127.3459854098275},{"x":-12,"y":-74,"length":74.96665925596525},{"x":-5,"y":-36,"length":36.345563690772494},{"x":-5,"y":0,"length":5},{"x":9,"y":11,"length":14.212670403551895},{"x":60,"y":3,"length":60.07495318350236},{"x":71,"y":-14,"length":72.3671196055225},{"x":71,"y":-39,"length":81.00617260431454},{"x":66,"y":-68,"length":94.76286192385707},{"x":59,"y":-104,"length":119.57006314291216},{"x":46,"y":-145,"length":152.12166183683374},{"x":57,"y":-179,"length":187.85632808079689},{"x":663,"y":-510,"length":836.462192809693}],"smoothing":true,"repeatTexture":true,"width":806,"type":2,"textureOffset":0,"height":563}},{"className":"frg.game.editor.objects::PillarPather","params":{"x":6595,"rotation":0,"y":-1420,"snapToGrid":false,"wireframe":false,"textureMode":true,"straightSides":true,"stretchTexture":false,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":6,"y":-19,"length":19.924858845171276},{"x":17,"y":-32,"length":36.235341863986875},{"x":28,"y":-42,"length":50.47771785649585},{"x":42,"y":-47,"length":63.0317380372777},{"x":58,"y":-50,"length":76.57675887630658},{"x":75,"y":-48,"length":89.04493247793498},{"x":90,"y":-40,"length":98.48857801796105},{"x":104,"y":-29,"length":107.96758772891057},{"x":114,"y":-16,"length":115.11733144926528},{"x":119,"y":0,"length":119},{"x":119,"y":10,"length":119.41942890501528},{"x":116,"y":28,"length":119.33147112141039},{"x":106,"y":47,"length":115.95257651298655},{"x":88,"y":59,"length":105.94810050208545},{"x":73,"y":65,"length":97.74456506629922},{"x":55,"y":66,"length":85.9127464349732},{"x":38,"y":64,"length":74.43117626371358},{"x":24,"y":56,"length":60.92618484691127},{"x":12,"y":45,"length":46.57252408878007},{"x":2,"y":31,"length":31.064449134018133},{"x":0,"y":19,"length":19},{"x":0,"y":0,"length":0}],"smoothing":true,"repeatTexture":true,"width":132,"type":2,"textureOffset":0,"height":129}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10180,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-2050,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-211,"y":-192,"length":285.2805636562014},{"x":-213,"y":-246,"length":325.39975414864716},{"x":-210,"y":-280,"length":350},{"x":-198,"y":-318,"length":374.6037906909112},{"x":-184,"y":-351,"length":396.30417610719167},{"x":-163,"y":-381,"length":414.40318531594323},{"x":-135,"y":-413,"length":434.50431528351936},{"x":-101,"y":-439,"length":450.46864485777473},{"x":-65,"y":-459,"length":463.57955088636083},{"x":-32,"y":-470,"length":471.08810216349127},{"x":0,"y":-476,"length":476},{"x":41,"y":-478,"length":479.75514588172996},{"x":613,"y":-468,"length":771.2282411841517},{"x":613,"y":-731,"length":954.007337497988},{"x":-6,"y":-733,"length":733.0245562053157},{"x":-86,"y":-718,"length":723.1320764563},{"x":-189,"y":-682,"length":707.7040341837823},{"x":-229,"y":-657,"length":695.7657651825074},{"x":-271,"y":-629,"length":684.8956124841216},{"x":-305,"y":-599,"length":672.1800354071817},{"x":-335,"y":-567,"length":658.569662222608},{"x":-367,"y":-531,"length":645.4843142943134},{"x":-395,"y":-491,"length":630.1634708549838},{"x":-417,"y":-453,"length":615.70934701367},{"x":-438,"y":-401,"length":593.8392038254127},{"x":-454,"y":-350,"length":573.2503815960353},{"x":-463,"y":-302,"length":552.7865772610619},{"x":-467,"y":-260,"length":534.4988306816022},{"x":-465,"y":-191,"length":502.6987169269482},{"x":-451,"y":-96,"length":461.1041097192694},{"x":-426,"y":-24,"length":426.6755207414646},{"x":-387,"y":46,"length":389.72426149779284},{"x":-336,"y":102,"length":351.14099732158877},{"x":-260,"y":165,"length":307.9366818032564},{"x":-168,"y":226,"length":281.60255680657446},{"x":-80,"y":275,"length":286.40006983239374},{"x":5,"y":315,"length":315.03968004046726},{"x":90,"y":350,"length":361.386219991853},{"x":90,"y":495,"length":503.1152949374527},{"x":-730,"y":495,"length":882.0005668932419},{"x":-1333,"y":-80,"length":1335.3984424133496},{"x":-2306,"y":-80,"length":2307.3872670186943},{"x":-2710,"y":256,"length":2722.064657571528},{"x":-2891,"y":262,"length":2902.8477397204283},{"x":-3328,"y":-48,"length":3328.34613584585},{"x":-4040,"y":-40,"length":4040.1980149492674},{"x":-5865,"y":-1800,"length":6135},{"x":-2246,"y":-2280,"length":3200.455592568033},{"x":4720,"y":-1470,"length":4943.612039794385},{"x":4865,"y":1085,"length":4984.52104018029},{"x":2685,"y":1055,"length":2884.831017581446},{"x":1330,"y":1050,"length":1694.5205811674286},{"x":1330,"y":170,"length":1340.820644232479},{"x":553,"y":171,"length":578.8350369492158},{"x":480,"y":160,"length":505.9644256269407},{"x":310,"y":110,"length":328.93768406797057},{"x":225,"y":85,"length":240.52026941611388},{"x":125,"y":55,"length":136.56500283747664},{"x":35,"y":25,"length":43.01162633521314},{"x":-60,"y":-13,"length":61.39218191268331},{"x":-107,"y":-35,"length":112.57886124845996},{"x":-150,"y":-64,"length":163.0828010551695},{"x":-179,"y":-97,"length":203.59273071502332},{"x":-200,"y":-144,"length":246.4467488119898}],"line":true,"id":-1,"physic":true}}],[{"className":"Sign2","params":{"x":2630,"rotation":0,"y":50,"width":70.65,"height":70.65}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":4675,"y":-216,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":8140,"y":-1368,"width":9.3,"height":128.35}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":280,"y":230,"width":640,"height":256}},{"className":"Dec51","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":840,"y":230,"width":256,"height":256}},{"className":"Dec59","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":910,"y":230,"width":256,"height":256}}],[{"className":"Tnt1","params":{"x":2990,"safeId":-1,"rotation":0,"y":30,"count":1,"radius":1,"physic":false,"stones":false,"impulse":1,"id":1,"width":53.2,"height":53.2}},{"className":"GeyserE","params":{"x":10085,"safeId":-1,"rotation":-63,"y":-1932,"speed":1000,"id":-1,"rate":1,"width":246,"height":128}},{"className":"GeyserE","params":{"x":9956,"safeId":-1,"rotation":-51,"y":-2014,"speed":1000,"id":-1,"rate":1,"width":246,"height":128}},{"className":"GeyserE","params":{"x":9844,"safeId":-1,"rotation":0,"y":-2305,"speed":1000,"id":-1,"rate":1,"width":246,"height":128}},{"className":"GeyserE","params":{"x":9897,"safeId":-1,"rotation":30,"y":-2464,"speed":1000,"id":-1,"rate":1,"width":246,"height":128}},{"className":"GeyserE","params":{"x":10003,"safeId":-1,"rotation":54,"y":-2588,"speed":1000,"id":-1,"rate":1,"width":246,"height":128}},{"className":"GeyserE","params":{"x":10270,"safeId":-1,"rotation":-69,"y":-1848,"speed":1000,"id":-1,"rate":1,"width":288,"height":128}},{"className":"GeyserE","params":{"x":9861,"safeId":-1,"rotation":-21,"y":-2152,"speed":1000,"id":-1,"rate":1,"width":246,"height":128}}],null,[{"className":"PlayerWP","params":{"x":517,"rotation":0,"y":331,"width":64,"height":32}},{"className":"SafePointE","params":{"x":4673,"rotation":0,"y":-290,"id":1,"width":128,"height":685}},{"className":"SafePointE","params":{"x":8140,"rotation":0,"y":-1440,"id":2,"width":128,"height":1612}}],[{"className":"ToggleE","params":{"x":2450,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":1,"off":false,"y":10,"width":64,"rotation":0,"height":693}},{"className":"PivotJointE","params":{"x":2930,"safeId":-1,"rotation":0,"graphic":0,"id":1,"y":30,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6673,"safeId":1,"rotation":0,"graphic":1,"id":-1,"y":-963,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6933,"safeId":1,"rotation":0,"graphic":1,"id":-1,"y":-963,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6803,"safeId":1,"rotation":0,"graphic":1,"id":-1,"y":-1113,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":6660,"safeId":1,"rotation":0,"graphic":0,"y":-1410,"useWeld":false,"time":0,"snd":false,"id":5,"rate":-22,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6323,"safeId":1,"rotation":0,"graphic":1,"id":-1,"y":-1413,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6193,"safeId":1,"rotation":0,"graphic":1,"id":-1,"y":-1263,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6453,"safeId":1,"rotation":0,"graphic":1,"id":-1,"y":-1263,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6836,"safeId":1,"rotation":9,"graphic":1,"id":-1,"y":-1694,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6941,"safeId":1,"rotation":9,"graphic":1,"id":-1,"y":-1526,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6685,"safeId":1,"rotation":9,"graphic":1,"id":-1,"y":-1566,"width":17,"height":17}},{"className":"ToggleE","params":{"x":5270,"safeId":1,"sndId":-1,"hint":-1,"id_off":-1,"id":5,"off":false,"y":-580,"width":877,"rotation":45,"height":64}},{"className":"PivotJointE","params":{"x":7670,"safeId":1,"rotation":0,"graphic":1,"id":-1,"y":-1019,"width":17,"height":17}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":7373,"safeId":1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-1350,"height":525,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":512,"length":512}],"stopOnEnd":true,"id":7,"accelDist":0,"width":13,"speed":150}},{"className":"ToggleE","params":{"x":7110,"safeId":1,"sndId":-1,"hint":-1,"id_off":-1,"id":7,"off":false,"y":-1020,"width":630,"rotation":30.000000000000057,"height":64}},{"className":"PivotJointE","params":{"x":6390,"safeId":1,"rotation":0,"graphic":0,"id":5,"y":-1420,"width":17,"height":17}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":10938,"safeId":2,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":false,"cycle":0,"body":true,"position":0,"y":-1368,"height":253,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-10,"y":-66,"length":66.75327707311455},{"x":-23,"y":-112,"length":114.33722053644648},{"x":-51,"y":-164,"length":171.74690681348528},{"x":-78,"y":-203,"length":217.46953809671828},{"x":-112,"y":-240,"length":264.8471257159496}],"stopOnEnd":true,"id":9,"accelDist":0,"width":125,"speed":600}},{"className":"ToggleE","params":{"x":10900,"safeId":2,"sndId":-1,"hint":-1,"id_off":-1,"id":9,"off":false,"y":-1372,"width":200,"rotation":0,"height":64}},{"className":"MotorJointE","params":{"x":10938,"safeId":2,"rotation":0,"graphic":0,"y":-1369,"useWeld":false,"time":0.5,"snd":false,"id":9,"rate":-50,"width":17,"height":17}},{"className":"ToggleE","params":{"x":4312,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-65,"width":174,"rotation":0,"height":963}},{"className":"ToggleE","params":{"x":5662,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-1335,"width":55,"rotation":0,"height":963}},{"className":"ToggleE","params":{"x":10522,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-1695,"width":701,"rotation":0,"height":165}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map2.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map2.json new file mode 100644 index 000000000..044a93ebb --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map2.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"26,33,42"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2200,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-670,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":-10,"y":5,"length":11.180339887498949},{"x":5090,"y":0,"length":5090},{"x":5105,"y":1190,"length":5241.862741430759},{"x":-40,"y":1185,"length":1185.6749132877865}],"line":false,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5680,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-710,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":25,"y":0,"length":25},{"x":210,"y":-110,"length":237.06539182259397},{"x":385,"y":-10,"length":385.12984823303424},{"x":515,"y":-10,"length":515.097078228949},{"x":685,"y":-110,"length":693.7759004174186},{"x":870,"y":0,"length":870},{"x":460,"y":240,"length":518.8448708429139}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":5543,"viscosity":1.5,"rotation":0,"y":-669,"vertices":[{"x":-45,"y":0,"length":45},{"x":1280,"y":0,"length":1280},{"x":1315,"y":50,"length":1315.9502270222838},{"x":1341,"y":115,"length":1345.921988824018},{"x":1350,"y":182,"length":1362.2129055327584},{"x":1350,"y":250,"length":1372.953021774598},{"x":1335,"y":317,"length":1372.1202571203444},{"x":1287,"y":388,"length":1344.21464059874},{"x":1249,"y":429,"length":1320.6218232332828},{"x":1211,"y":461,"length":1295.7785304595843},{"x":1131,"y":495,"length":1234.579280564841},{"x":1073,"y":504,"length":1185.4724796468283},{"x":1015,"y":504,"length":1133.2435748769988},{"x":960,"y":495,"length":1080.1041616436814},{"x":895,"y":476,"length":1013.7065650374373},{"x":834,"y":446,"length":945.7652985809957}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8634,"safeId":-1,"rotation":12,"graphic":true,"isWheel":false,"y":-812,"plr":false,"density":0.3,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1460,"y":10,"length":1460.0342461736984},{"x":1460,"y":100,"length":1463.4206503941373},{"x":0,"y":100,"length":100}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4890,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-710,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":0,"y":0,"length":0},{"x":100,"y":0,"length":100},{"x":100,"y":100,"length":141.4213562373095},{"x":0,"y":100,"length":100}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4780,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-710,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":0,"y":0,"length":0},{"x":100,"y":0,"length":100},{"x":100,"y":100,"length":141.4213562373095},{"x":0,"y":100,"length":100}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":-190,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":140,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":2250,"y":0,"length":2250},{"x":2250,"y":205,"length":2259.319587840552},{"x":0,"y":205,"length":205}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":790,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-210,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":50,"y":0,"length":50},{"x":305,"y":510,"length":594.2432162002357},{"x":-195,"y":515,"length":550.6813960903346}],"line":true,"id":80,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":3800,"viscosity":1.5,"rotation":0,"y":-670,"vertices":[{"x":0,"y":0,"length":0},{"x":1200,"y":0,"length":1200},{"x":2580,"y":680,"length":2668.107943843352},{"x":2645,"y":705,"length":2737.343602838343},{"x":2720,"y":720,"length":2813.680863211036},{"x":2800,"y":725,"length":2892.3390188565377},{"x":2885,"y":715,"length":2972.2802694227876},{"x":2978,"y":688,"length":3056.4404132912523},{"x":3041,"y":657,"length":3111.1621622795556},{"x":3106,"y":617,"length":3166.6899121953825},{"x":3154,"y":571,"length":3205.2701914191257},{"x":3217,"y":502,"length":3255.931971033793},{"x":3258,"y":435,"length":3286.9117724697144},{"x":3280,"y":390,"length":3303.1046002208286},{"x":3299,"y":328,"length":3315.2654494022045},{"x":3312,"y":251,"length":3321.497403280635},{"x":3314,"y":188,"length":3319.328245293014},{"x":3310,"y":121,"length":3312.210893044101},{"x":3296,"y":57,"length":3296.4928333002636},{"x":3275,"y":-1,"length":3275.000152671752},{"x":3488,"y":0,"length":3488},{"x":3360,"y":975,"length":3498.60329274412},{"x":-850,"y":980,"length":1297.2663566130127},{"x":-980,"y":965,"length":1375.3635882922015},{"x":-925,"y":950,"length":1325.943060617612},{"x":-885,"y":935,"length":1287.4199004209931},{"x":-832,"y":912,"length":1234.4909882214613},{"x":-797,"y":892,"length":1196.1910382543417},{"x":-765,"y":870,"length":1158.5011868789777},{"x":-730,"y":840,"length":1112.8791488746656}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":-190,"viscosity":1.5,"rotation":0,"y":140,"vertices":[{"x":0,"y":0,"length":0},{"x":2265,"y":0,"length":2265},{"x":2260,"y":180,"length":2267.1568097509266},{"x":-5,"y":180,"length":180.06943105369106}],"id":-10,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::FinishShaper","params":{"x":11050,"rotation":0,"y":-290,"vertices":[{"x":-20,"y":-350,"length":350.5709628591621},{"x":1005,"y":135,"length":1014.0266268693342},{"x":1005,"y":590,"length":1165.3862020806664},{"x":-20,"y":585,"length":585.3417805009309}]}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8010,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-370,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":2865,"y":0,"length":2865},{"x":2865,"y":695,"length":2948.0926037015865},{"x":0,"y":695,"length":695}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":2220,"viscosity":1.5,"rotation":0,"y":-120,"vertices":[{"x":0,"y":-35,"length":35},{"x":10,"y":5,"length":11.180339887498949},{"x":25,"y":55,"length":60.41522986797286},{"x":40,"y":106,"length":113.29607230614837},{"x":55,"y":141,"length":151.34728276384746},{"x":83,"y":186,"length":203.67866849525504},{"x":115,"y":230,"length":257.14781741247583},{"x":160,"y":277,"length":319.8890432634416},{"x":200,"y":313,"length":371.44178547923224},{"x":245,"y":344,"length":422.3280715273376},{"x":293,"y":372,"length":473.5324698476336},{"x":344,"y":390,"length":520.0346142325528},{"x":434,"y":419,"length":603.2553356581275},{"x":-2,"y":421,"length":421.0047505670215}],"id":-10,"bg":false,"sf":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":2446,"viscosity":1.5,"rotation":0,"y":-670,"vertices":[{"x":0,"y":0,"length":0},{"x":1065,"y":0,"length":1065},{"x":480,"y":670,"length":824.1965784932621},{"x":441,"y":701,"length":828.1799321403532},{"x":400,"y":725,"length":828.0247580839597},{"x":354,"y":740,"length":820.3145738069024},{"x":295,"y":747,"length":803.140087406923},{"x":240,"y":745,"length":782.7036476214992},{"x":182,"y":732,"length":754.2864177485898},{"x":134,"y":706,"length":718.6042026039091},{"x":100,"y":679,"length":686.3242673838657},{"x":69,"y":648,"length":651.6632565980684},{"x":36,"y":605,"length":606.0701279555032},{"x":17,"y":567,"length":567.2547928400429},{"x":6,"y":526,"length":526.0342194192314},{"x":0,"y":480,"length":480}],"id":-10,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2040,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-790,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":-300,"length":300},{"x":185,"y":-300,"length":352.4556709715422},{"x":185,"y":1090,"length":1105.5880788069308},{"x":0,"y":1090,"length":1090}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9373,"safeId":-1,"rotation":12,"graphic":true,"isWheel":false,"y":-546,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":100,"y":0,"length":100},{"x":98,"y":17,"length":99.46356116689167},{"x":93,"y":34,"length":99.02019995940222},{"x":86,"y":49,"length":98.97979591815695},{"x":76,"y":64,"length":99.35793878699377},{"x":64,"y":76,"length":99.35793878699377},{"x":50,"y":86,"length":99.4786409235671},{"x":34,"y":93,"length":99.02019995940222},{"x":17,"y":98,"length":99.46356116689167},{"x":0,"y":100,"length":100},{"x":-17,"y":98,"length":99.46356116689167},{"x":-34,"y":93,"length":99.02019995940222},{"x":-49,"y":86,"length":98.97979591815695},{"x":-64,"y":76,"length":99.35793878699377},{"x":-76,"y":64,"length":99.35793878699377},{"x":-86,"y":49,"length":98.97979591815695},{"x":-93,"y":34,"length":99.02019995940222},{"x":-98,"y":17,"length":99.46356116689167},{"x":-100,"y":0,"length":100},{"x":-98,"y":-17,"length":99.46356116689167},{"x":-93,"y":-34,"length":99.02019995940222},{"x":-86,"y":-50,"length":99.4786409235671},{"x":-76,"y":-64,"length":99.35793878699377},{"x":-64,"y":-76,"length":99.35793878699377},{"x":-50,"y":-86,"length":99.4786409235671},{"x":-34,"y":-93,"length":99.02019995940222},{"x":-17,"y":-98,"length":99.46356116689167},{"x":0,"y":-100,"length":100},{"x":17,"y":-98,"length":99.46356116689167},{"x":34,"y":-93,"length":99.02019995940222},{"x":50,"y":-86,"length":99.4786409235671},{"x":64,"y":-76,"length":99.35793878699377},{"x":76,"y":-64,"length":99.35793878699377},{"x":86,"y":-50,"length":99.4786409235671},{"x":93,"y":-34,"length":99.02019995940222},{"x":98,"y":-17,"length":99.46356116689167}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":390,"safeId":-1,"rotation":0,"graphic":true,"height":311.8,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":16,"physic":true,"stretchTexture":false,"vertices":[{"x":7,"y":34,"length":34.713109915419565},{"x":1,"y":20,"length":20.024984394500787},{"x":43,"y":-249,"length":252.68557536986555},{"x":63,"y":-262,"length":269.4679943889441},{"x":83,"y":-251,"length":264.3671689147501},{"x":115,"y":13,"length":115.73245007343446},{"x":109,"y":29,"length":112.79184367674819}],"smoothing":true,"id":-1,"repeatTexture":true,"width":130.45,"type":7,"textureOffset":0,"y":53}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":425,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-228,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":735,"y":0,"length":735},{"x":735,"y":55,"length":737.0549504616328},{"x":0,"y":55,"length":55}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":295,"safeId":-10,"rotation":0,"graphic":false,"isWheel":false,"y":102,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":4,"rem":true,"vertices":[{"x":72,"y":2,"length":72.02777242147643},{"x":68,"y":-22,"length":71.47027354082255},{"x":74,"y":-43,"length":85.58621384311844},{"x":99,"y":-70,"length":121.24768039018313},{"x":130,"y":-48,"length":138.57849761056005},{"x":119,"y":-42,"length":126.19429464123962},{"x":107,"y":-41,"length":114.58621208504974},{"x":97,"y":-35,"length":103.12128781197411},{"x":91,"y":-27,"length":94.92101980067429},{"x":92,"y":-16,"length":93.38094023943002},{"x":94,"y":-8,"length":94.33981132056604},{"x":102,"y":-1,"length":102.00490184299969},{"x":114,"y":1,"length":114.00438588054409},{"x":130,"y":-1,"length":130.00384609695206},{"x":141,"y":-3,"length":141.0319112825179},{"x":157,"y":-6,"length":157.1146078504478},{"x":176,"y":-4,"length":176.0454486773231},{"x":195,"y":0,"length":195},{"x":210,"y":-2,"length":210.00952359357422},{"x":217,"y":-11,"length":217.27862297059966},{"x":221,"y":-22,"length":222.0923231451281},{"x":218,"y":-33,"length":220.4835594777987},{"x":212,"y":-42,"length":216.1203368496357},{"x":201,"y":-46,"length":206.196508214858},{"x":193,"y":-47,"length":198.64037857394453},{"x":174,"y":-50,"length":181.0414317221337},{"x":206,"y":-76,"length":219.57231155134292},{"x":233,"y":-52,"length":238.73206738936435},{"x":241,"y":-35,"length":243.52823244954578},{"x":239,"y":-16,"length":239.5349661322956},{"x":235,"y":1,"length":235.00212764994276},{"x":228,"y":13,"length":228.3703133071372},{"x":212,"y":23,"length":213.243991709028},{"x":192,"y":27,"length":193.8891435846783},{"x":110,"y":26,"length":113.03096920755833},{"x":85,"y":20,"length":87.32124598286491}],"line":false,"id":1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9323,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-569,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":100,"y":0,"length":100},{"x":100,"y":880,"length":885.6635930193811},{"x":0,"y":880,"length":880}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2040,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-2400,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":518,"y":351,"length":625.7195857570706},{"x":596,"y":336,"length":684.1871089110055},{"x":665,"y":332,"length":743.2691302617108},{"x":756,"y":335,"length":826.8984218149168},{"x":826,"y":345,"length":895.1541766645565},{"x":900,"y":365,"length":971.1977141653496},{"x":976,"y":395,"length":1052.901229935648},{"x":1035,"y":424,"length":1118.4815599731628},{"x":1078,"y":451,"length":1168.5396869597541},{"x":1119,"y":481,"length":1217.9991789816609},{"x":1165,"y":523,"length":1277.009788529438},{"x":1212,"y":572,"length":1340.1970004443376},{"x":1252,"y":621,"length":1397.5496413365788},{"x":1283,"y":669,"length":1446.9450576991512},{"x":1309,"y":714,"length":1491.0657262508585},{"x":1330,"y":764,"length":1533.8174598041319},{"x":1347,"y":814,"length":1573.850374082619},{"x":1361,"y":871,"length":1615.8471462363016},{"x":1372,"y":932,"length":1658.616290767699},{"x":1377,"y":998,"length":1700.6272372274884},{"x":1375,"y":1065,"length":1739.2095905899323},{"x":1367,"y":1135,"length":1776.7706661243594},{"x":1351,"y":1212,"length":1814.977961298704},{"x":1330,"y":1274,"length":1841.7317937202474},{"x":1302,"y":1335,"length":1864.786582963316},{"x":1261,"y":1402,"length":1885.6630133722197},{"x":1199,"y":1479,"length":1903.9543061743893},{"x":1157,"y":1524,"length":1913.432779064893},{"x":1111,"y":1565,"length":1919.256626926165},{"x":1056,"y":1606,"length":1922.0749204960769},{"x":992,"y":1639,"length":1915.824887613688},{"x":931,"y":1668,"length":1910.231661343723},{"x":862,"y":1686,"length":1893.5786226085254},{"x":802,"y":1699,"length":1878.7775280751046},{"x":732,"y":1705,"length":1855.4915790700857},{"x":654,"y":1706,"length":1827.061027990034},{"x":404,"y":1703,"length":1750.2642657610306},{"x":403,"y":1512,"length":1564.7852887856532},{"x":710,"y":1516,"length":1674.023894692068},{"x":767,"y":1511,"length":1694.523531851948},{"x":840,"y":1494,"length":1713.9533249187389},{"x":895,"y":1475,"length":1725.297075868385},{"x":946,"y":1446,"length":1727.9560179587904},{"x":996,"y":1412,"length":1727.935183969584},{"x":1051,"y":1363,"length":1721.1536828534518},{"x":1088,"y":1320,"length":1710.597556411209},{"x":1118,"y":1278,"length":1698.001177855893},{"x":1151,"y":1216,"length":1674.3527107512323},{"x":1177,"y":1138,"length":1637.1844734177025},{"x":1188,"y":1065,"length":1595.483939123174},{"x":1190,"y":1019,"length":1566.6719503457002},{"x":1188,"y":968,"length":1532.438579519584},{"x":1180,"y":908,"length":1488.9136979690932},{"x":1162,"y":852,"length":1440.8844506066405},{"x":1145,"y":808,"length":1401.3882402817571},{"x":1118,"y":761,"length":1352.4219016268555},{"x":1094,"y":726,"length":1312.9782938038238},{"x":1067,"y":692,"length":1271.751941221243},{"x":1036,"y":660,"length":1228.371279377697},{"x":1010,"y":636,"length":1193.5644096570575},{"x":985,"y":617,"length":1162.288260286578},{"x":954,"y":596,"length":1124.8697702400932},{"x":924,"y":578,"length":1089.889902696598},{"x":890,"y":562,"length":1052.5891886201377},{"x":842,"y":544,"length":1002.4470060806207},{"x":799,"y":533,"length":960.4634298087565},{"x":751,"y":525,"length":916.3110825478431},{"x":700,"y":522,"length":873.2032982072388},{"x":645,"y":524,"length":831.024067040179},{"x":590,"y":531,"length":793.7638187773489},{"x":547,"y":541,"length":769.3438762997987},{"x":499,"y":557,"length":747.8301946297702},{"x":454,"y":578,"length":734.9829930005184},{"x":410,"y":605,"length":730.8385594644004},{"x":371,"y":634,"length":734.5726648875522},{"x":335,"y":667,"length":746.4006966770596},{"x":298,"y":709,"length":769.0806199612625},{"x":266,"y":752,"length":797.6590750439689},{"x":237,"y":801,"length":835.3262835563119},{"x":215,"y":852,"length":878.7087116900572},{"x":200,"y":900,"length":921.9544457292888},{"x":188,"y":960,"length":978.235145555505},{"x":185,"y":1016,"length":1032.7056695883875},{"x":185,"y":1090,"length":1105.5880788069308},{"x":0,"y":1090,"length":1090},{"x":0,"y":990,"length":990},{"x":10,"y":910,"length":910.0549433962765},{"x":24,"y":838,"length":838.3436049735216},{"x":46,"y":775,"length":776.3639610388932},{"x":71,"y":713,"length":716.5263428513986},{"x":104,"y":651,"length":659.2548824240895},{"x":153,"y":586,"length":605.6442850386685},{"x":196,"y":534,"length":568.8338949113353},{"x":245,"y":490,"length":547.8366544874485},{"x":287,"y":460,"length":542.1890814097975},{"x":338,"y":424,"length":542.2361109332354},{"x":393,"y":392,"length":555.0792736177419},{"x":448,"y":371,"length":581.6743074951823}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":2440,"safeId":-1,"rotation":0,"graphic":true,"height":988.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":692,"length":692},{"x":4,"y":731,"length":731.0109438305284},{"x":8,"y":762,"length":762.0419935935289},{"x":20,"y":795,"length":795.2515325354614},{"x":37,"y":828,"length":828.8262785409256},{"x":58,"y":856,"length":857.962703152066},{"x":82,"y":884,"length":887.795021387257},{"x":113,"y":913,"length":919.9663037307399},{"x":147,"y":936,"length":947.4729547591319},{"x":191,"y":958,"length":976.8546463010758},{"x":239,"y":969,"length":998.0390773912612},{"x":279,"y":973,"length":1012.2104524257788},{"x":324,"y":971,"length":1023.629327442312},{"x":369,"y":963,"length":1031.2759087654476},{"x":413,"y":947,"length":1033.139874363583},{"x":454,"y":922,"length":1027.7159140540737},{"x":493,"y":887,"length":1014.7994875836309},{"x":1250,"y":23,"length":1250.2115820932072}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1265.75,"type":9,"textureOffset":0,"y":-890}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":2220,"safeId":-1,"rotation":0,"graphic":true,"height":1199.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":1,"y":-23,"length":23.021728866442675},{"x":5,"y":675,"length":675.0185182644992},{"x":17,"y":749,"length":749.1928990587137},{"x":29,"y":805,"length":805.5221908799285},{"x":48,"y":858,"length":859.3416084421841},{"x":71,"y":905,"length":907.7808105484495},{"x":102,"y":951,"length":956.4543899214432},{"x":130,"y":985,"length":993.5416448242116},{"x":159,"y":1016,"length":1028.366179918418},{"x":191,"y":1048,"length":1065.2628783544465},{"x":231,"y":1078,"length":1102.4722218722793},{"x":277,"y":1105,"length":1139.1900631589094},{"x":330,"y":1128,"length":1175.2803920767162},{"x":380,"y":1145,"length":1206.409963486708},{"x":428,"y":1156,"length":1232.688119517666},{"x":485,"y":1160,"length":1257.3086335502512},{"x":536,"y":1161,"length":1278.7560361538865},{"x":589,"y":1158,"length":1299.1862837945912},{"x":642,"y":1146,"length":1313.5752738233161},{"x":696,"y":1129,"length":1326.2944620256847},{"x":749,"y":1104,"length":1334.0978225002843},{"x":796,"y":1075,"length":1337.625134333233},{"x":845,"y":1036,"length":1336.9072518316295},{"x":1635,"y":136,"length":1640.646518906495}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1649.75,"type":8,"textureOffset":0,"y":-870}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":2370,"safeId":-1,"rotation":0,"graphic":true,"height":1064.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":2,"y":700,"length":700.0028571370262},{"x":10,"y":765,"length":765.0653566852965},{"x":22,"y":815,"length":815.2968784436747},{"x":45,"y":864,"length":865.1710813474986},{"x":82,"y":910,"length":913.6870361343648},{"x":124,"y":956,"length":964.0082987194664},{"x":166,"y":989,"length":1002.8344828534766},{"x":206,"y":1011,"length":1031.7737155016114},{"x":256,"y":1029,"length":1060.3664460930477},{"x":302,"y":1037,"length":1080.080089622987},{"x":353,"y":1042,"length":1100.1695323903493},{"x":409,"y":1041,"length":1118.4641254863743},{"x":457,"y":1032,"length":1128.6598247479176},{"x":514,"y":1010,"length":1133.2678412449548},{"x":561,"y":985,"length":1133.554586246291},{"x":596,"y":958,"length":1128.2641534676177},{"x":658,"y":887,"length":1104.415229884123},{"x":1380,"y":64,"length":1381.4832608468334}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1408.05,"type":10,"textureOffset":0,"y":-890}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5050,"safeId":-1,"rotation":0,"graphic":true,"height":850.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":-28,"y":-11,"length":30.083217912982647},{"x":1332,"y":660,"length":1486.5476783473848},{"x":1404,"y":685,"length":1562.1910894637697},{"x":1454,"y":695,"length":1611.5647675473674},{"x":1505,"y":700,"length":1659.8267981931126},{"x":1552,"y":700,"length":1702.5580753677684},{"x":1603,"y":697,"length":1747.9754002845693},{"x":1652,"y":689,"length":1789.923182709247},{"x":1702,"y":675,"length":1830.9639537686153},{"x":1744,"y":661,"length":1865.0621973542866},{"x":1792,"y":635,"length":1901.1809487789426},{"x":1835,"y":610,"length":1933.7334356110202},{"x":1880,"y":575,"length":1965.9666833392675},{"x":1918,"y":539,"length":1992.296413689489},{"x":1951,"y":498,"length":2013.5553133698613},{"x":1984,"y":451,"length":2034.6147055400932},{"x":2008,"y":407,"length":2048.8321063474186},{"x":2029,"y":360,"length":2060.689447733452},{"x":2045,"y":309,"length":2068.213238522566},{"x":2054,"y":264,"length":2070.8964242568964},{"x":2060,"y":212,"length":2070.880006180947},{"x":2060,"y":169,"length":2066.9206564355586},{"x":2055,"y":115,"length":2058.2152462752774},{"x":2048,"y":66,"length":2049.063200587039},{"x":2032,"y":6,"length":2032.0088582484084},{"x":2014,"y":-38,"length":2014.358458666183},{"x":1989,"y":-84,"length":1990.772965458392},{"x":1954,"y":-135,"length":1958.6579589096204}],"smoothing":true,"id":-1,"repeatTexture":true,"width":2103.5,"type":8,"textureOffset":0,"y":-650}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5176,"safeId":-1,"rotation":0,"graphic":true,"height":675.05,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":20,"y":8,"length":21.540659228538015},{"x":1240,"y":624,"length":1388.1556108736513},{"x":1293,"y":644,"length":1444.5016441665964},{"x":1348,"y":660,"length":1500.9010626953398},{"x":1403,"y":666,"length":1553.0502245581113},{"x":1460,"y":664,"length":1603.9002462746864},{"x":1513,"y":652,"length":1647.505083451945},{"x":1556,"y":634,"length":1680.205939758576},{"x":1602,"y":603,"length":1711.7280741987029},{"x":1643,"y":565,"length":1737.4331641821507},{"x":1674,"y":523,"length":1753.7973086990412},{"x":1706,"y":466,"length":1768.4999293186302},{"x":1723,"y":396,"length":1767.921095524345},{"x":1722,"y":332,"length":1753.7126332441128},{"x":1715,"y":284,"length":1738.3558323887546},{"x":1698,"y":236,"length":1714.322023425004},{"x":1674,"y":189,"length":1684.6355688991016},{"x":1647,"y":150,"length":1653.8164952617929}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1718.5,"type":9,"textureOffset":0,"y":-827}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5110,"safeId":-1,"rotation":0,"graphic":true,"height":725.35,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":6,"y":-11,"length":12.529964086141668},{"x":1320,"y":649,"length":1470.918420579469},{"x":1360,"y":663,"length":1513},{"x":1404,"y":675,"length":1557.832147569179},{"x":1452,"y":682,"length":1604.1907617238044},{"x":1497,"y":684,"length":1645.862995513296},{"x":1547,"y":676,"length":1688.249092995462},{"x":1595,"y":665,"length":1728.0769658785455},{"x":1648,"y":642,"length":1768.6345015293577},{"x":1691,"y":617,"length":1800.047221602811},{"x":1725,"y":587,"length":1822.1399507172878},{"x":1757,"y":557,"length":1843.1760632126275},{"x":1790,"y":523,"length":1864.8402076317423},{"x":1814,"y":487,"length":1878.2345433944079},{"x":1835,"y":445,"length":1888.1869610819792},{"x":1848,"y":405,"length":1891.858609938914},{"x":1857,"y":357,"length":1891.0044949708606},{"x":1861,"y":315,"length":1887.4707944760364},{"x":1858,"y":273,"length":1877.9491473413225},{"x":1852,"y":214,"length":1864.3229333996833},{"x":1837,"y":165,"length":1844.3952938564987},{"x":1819,"y":125,"length":1823.2898836992433},{"x":1802,"y":87,"length":1804.0989440715273}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1878.25,"type":10,"textureOffset":0,"y":-770}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":8020,"viscosity":1.5,"rotation":0,"y":-370,"vertices":[{"x":0,"y":0,"length":0},{"x":2990,"y":0,"length":2990},{"x":2995,"y":805,"length":3101.298115305912},{"x":5,"y":805,"length":805.0155278005512}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7935,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-776,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":100,"y":0,"length":100},{"x":100,"y":100,"length":141.4213562373095},{"x":-205,"y":100,"length":228.08989455914087}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":-260,"y":300,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":13038,"textureOffset":0,"height":918,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":0,"y":0,"length":0},{"x":3220,"y":0,"length":3220},{"x":4105,"y":-625,"length":4152.306587909905},{"x":4265,"y":-735,"length":4327.868990623446},{"x":4395,"y":-785,"length":4464.554849030304},{"x":4525,"y":-830,"length":4600.491821533868},{"x":4675,"y":-850,"length":4751.6444521870535},{"x":4855,"y":-850,"length":4928.846213871964},{"x":5015,"y":-820,"length":5081.596697889356},{"x":5145,"y":-770,"length":5202.299972127713},{"x":6575,"y":-190,"length":6577.744674278563},{"x":6690,"y":-175,"length":6692.288472563029},{"x":6850,"y":-170,"length":6852.109164337649},{"x":6955,"y":-190,"length":6957.5947711835015},{"x":7085,"y":-230,"length":7088.732256193628},{"x":7165,"y":-275,"length":7170.275447986639},{"x":7665,"y":-600,"length":7688.4475025846405},{"x":8035,"y":-760,"length":8070.862717206878},{"x":8145,"y":-775,"length":8181.787701963429},{"x":8210,"y":-765,"length":8245.563958881163},{"x":8595,"y":-705,"length":8623.865142730376},{"x":13025,"y":-40,"length":13025.061420200675}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":11056,"safeId":-1,"rotation":0,"graphic":true,"height":757,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":-8,"length":8},{"x":0,"y":736,"length":736}],"smoothing":true,"id":-1,"repeatTexture":true,"width":64,"type":5,"textureOffset":0,"y":-640}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":-270,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1030,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":100,"y":0,"length":100},{"x":100,"y":1330,"length":1333.7541002748594},{"x":0,"y":1330,"length":1330}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7160,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-680,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":875,"y":5,"length":875.0142855976695},{"x":875,"y":985,"length":1317.5166033109413},{"x":0,"y":980,"length":980}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10860,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-670,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":5,"length":5},{"x":190,"y":0,"length":190},{"x":190,"y":765,"length":788.2417141968573},{"x":1210,"y":770,"length":1434.2245291445827},{"x":1210,"y":15,"length":1210.0929716348244},{"x":2685,"y":15,"length":2685.041899114425},{"x":2685,"y":-1450,"length":3051.51192034375},{"x":2865,"y":-1450,"length":3211.03176564792},{"x":2865,"y":980,"length":3027.9737449324093},{"x":0,"y":985,"length":985}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":12047,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-669,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1120,"y":0,"length":1120},{"x":1120,"y":760,"length":1353.5139452550904},{"x":0,"y":760,"length":760}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":12045,"safeId":-1,"rotation":0,"graphic":true,"height":777,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-764,"length":764}],"smoothing":true,"id":-1,"repeatTexture":true,"width":64,"type":5,"textureOffset":0,"y":96}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2723,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1384,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":3,"rem":true,"vertices":[{"x":250,"y":0,"length":250},{"x":246,"y":43,"length":249.7298540423231},{"x":234,"y":85,"length":248.95983611819798},{"x":216,"y":124,"length":249.06224121692955},{"x":191,"y":160,"length":249.16059078433733},{"x":160,"y":191,"length":249.16059078433733},{"x":125,"y":216,"length":249.56161563830284},{"x":85,"y":234,"length":248.95983611819798},{"x":43,"y":246,"length":249.7298540423231},{"x":0,"y":250,"length":250},{"x":-43,"y":246,"length":249.7298540423231},{"x":-85,"y":234,"length":248.95983611819798},{"x":-124,"y":216,"length":249.06224121692955},{"x":-160,"y":191,"length":249.16059078433733},{"x":-191,"y":160,"length":249.16059078433733},{"x":-216,"y":124,"length":249.06224121692955},{"x":-234,"y":85,"length":248.95983611819798},{"x":-246,"y":43,"length":249.7298540423231},{"x":-250,"y":0,"length":250},{"x":-246,"y":-43,"length":249.7298540423231},{"x":-234,"y":-85,"length":248.95983611819798},{"x":-216,"y":-125,"length":249.56161563830284},{"x":-191,"y":-160,"length":249.16059078433733},{"x":-160,"y":-191,"length":249.16059078433733},{"x":-125,"y":-216,"length":249.56161563830284},{"x":-85,"y":-234,"length":248.95983611819798},{"x":-43,"y":-246,"length":249.7298540423231},{"x":0,"y":-250,"length":250},{"x":43,"y":-246,"length":249.7298540423231},{"x":85,"y":-234,"length":248.95983611819798},{"x":125,"y":-216,"length":249.56161563830284},{"x":160,"y":-191,"length":249.16059078433733},{"x":191,"y":-160,"length":249.16059078433733},{"x":216,"y":-125,"length":249.56161563830284},{"x":234,"y":-85,"length":248.95983611819798},{"x":246,"y":-43,"length":249.7298540423231}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":-260,"y":300,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":14003,"textureOffset":0,"height":78,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":true,"physic":true,"vertices":[{"x":0,"y":0,"length":0},{"x":13990,"y":10,"length":13990.00357398096}],"line":true,"shape":true,"isRoad":true,"smoothing":true,"camera":false}}],[{"className":"RemovedWipe0","params":{"x":2058,"safeId":-10,"active":true,"y":-1132,"id":-1,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":2135,"safeId":-10,"active":true,"y":-1132,"id":-1,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":2214,"safeId":-10,"active":true,"y":-1132,"id":-1,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":2092,"safeId":-10,"active":true,"y":-1184,"id":-1,"rotation":90.00000000000006,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":2178,"safeId":-10,"active":true,"y":-1184,"id":-1,"rotation":90.00000000000006,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":2091,"safeId":-10,"active":true,"y":-1288,"id":-1,"rotation":90.00000000000006,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":2177,"safeId":-10,"active":true,"y":-1288,"id":-1,"rotation":90.00000000000006,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":2057,"safeId":-10,"active":true,"y":-1236,"id":-1,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":2134,"safeId":-10,"active":true,"y":-1236,"id":-1,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":2213,"safeId":-10,"active":true,"y":-1236,"id":-1,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"Dec36","params":{"scaleX":1,"rotation":-48,"scaleY":1,"x":3080,"y":-30,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-48,"scaleY":1,"x":3758,"y":-802,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-48,"scaleY":1,"x":6892.65,"y":-219.3,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":0.946843853820598,"rotation":-89.00000000000001,"scaleY":0.971422739334558,"x":2320,"y":-882,"width":71.25,"height":237.95}},{"className":"Dec36","params":{"scaleX":0.946843853820598,"rotation":-89.00000000000001,"scaleY":0.971422739334558,"x":2320,"y":-532,"width":71.25,"height":237.95}},{"className":"Dec36","params":{"scaleX":0.946843853820598,"rotation":-89.00000000000001,"scaleY":0.971422739334558,"x":2320,"y":-182,"width":71.25,"height":237.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":2736,"y":172,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-48,"scaleY":1,"x":3390,"y":-390,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":45,"scaleY":1,"x":5124,"y":-753,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":27,"scaleY":1,"x":6399,"y":-108,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":27,"scaleY":1,"x":5959,"y":-328,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":27,"scaleY":1,"x":5529,"y":-538,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-123,"scaleY":1,"x":6903,"y":-724,"width":75.25,"height":244.95}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":0.6649785742111414,"x":2640,"y":240,"width":9.3,"height":85.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":7460,"y":-740,"width":9.3,"height":128.35}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":1370,"y":-880,"width":640,"height":256}},{"className":"Dec52","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":1930,"y":-880,"width":256,"height":256}}],null,[{"className":"Dec37","params":{"scaleX":1,"rotation":-48,"scaleY":1,"x":3080,"y":-30,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-48,"scaleY":1,"x":3758,"y":-802,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-48,"scaleY":1,"x":6895.75,"y":-217.45,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-123,"scaleY":1,"x":6909,"y":-728,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.00000000000001,"scaleY":0.9501867995018681,"x":2322,"y":-882,"width":99.95,"height":267.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.00000000000001,"scaleY":0.9501867995018681,"x":2322,"y":-532,"width":99.95,"height":267.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.00000000000001,"scaleY":0.9501867995018681,"x":2322,"y":-182,"width":99.95,"height":267.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":2736,"y":172,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-48,"scaleY":1,"x":3390,"y":-390,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":45,"scaleY":1,"x":5123,"y":-750,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":27,"scaleY":1,"x":6398,"y":-104,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":27,"scaleY":1,"x":5958,"y":-324,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":27,"scaleY":1,"x":5528,"y":-534,"width":99.95,"height":281.05}}],[{"className":"PlayerWP","params":{"x":445,"rotation":0,"y":22,"width":64,"height":32}},{"className":"SafePointE","params":{"x":2640,"rotation":0,"y":190,"id":0,"width":128,"height":409}},{"className":"SafePointE","params":{"x":7460,"rotation":0,"y":-810,"id":0,"width":128,"height":2408}}],[{"className":"ToggleE","params":{"x":455,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":2,"off":false,"y":122,"width":206,"rotation":0,"height":64}},{"className":"ToggleE","params":{"x":905,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":1,"off":false,"y":-568,"width":64,"rotation":0,"height":691}},{"className":"PivotJointE","params":{"x":455,"safeId":-10,"rotation":0,"graphic":0,"id":-1,"y":-208,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":396,"safeId":-10,"rotation":0,"graphic":0,"id":1,"y":49,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":502,"safeId":-10,"rotation":0,"graphic":0,"id":5,"y":44,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":843,"safeId":-10,"rotation":0,"graphic":0,"y":-197,"useWeld":false,"time":1,"snd":false,"id":2,"rate":115,"width":17,"height":17}},{"className":"ToggleE","params":{"x":725,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":5,"off":false,"y":-568,"width":64,"rotation":0,"height":691}},{"className":"ToggleE","params":{"x":573,"safeId":-1,"sndId":1,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-633,"width":102,"rotation":0,"height":2024}},{"className":"PivotJointE","params":{"x":9316,"safeId":-1,"rotation":12,"graphic":0,"id":-1,"y":-605,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9443,"safeId":-1,"rotation":12,"graphic":0,"id":-1,"y":-578,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9390,"safeId":-1,"rotation":12,"graphic":0,"id":-1,"y":-620,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9373,"safeId":-1,"rotation":12,"graphic":1,"id":-1,"y":-545,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8653,"safeId":-1,"rotation":12,"graphic":0,"id":51,"y":-785,"width":17,"height":17}},{"className":"ToggleE","params":{"x":8670,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":51,"off":false,"y":-980,"width":64,"rotation":0,"height":1416}},{"className":"PivotJointE","params":{"x":12053,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":30,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":12055,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-640,"width":17,"height":17}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":12053,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-279,"height":13,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-944,"y":0,"length":944}],"stopOnEnd":true,"id":21,"accelDist":0,"width":957,"speed":600}},{"className":"ToggleE","params":{"x":11570,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":21,"off":false,"y":-610,"width":1327,"rotation":0,"height":64}},{"className":"MotorJointE","params":{"x":2721,"safeId":-10,"rotation":0,"graphic":0,"y":-1382,"useWeld":false,"time":0,"snd":false,"id":1,"rate":100,"width":17,"height":17}},{"className":"ToggleE","params":{"x":3980,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-830,"width":64,"rotation":0,"height":2330}},{"className":"ToggleE","params":{"x":9770,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-840,"width":64,"rotation":0,"height":2330}},{"className":"ToggleE","params":{"x":2330,"safeId":-1,"sndId":-1,"hint":-1,"id_off":1,"id":80,"off":false,"y":-280,"width":198,"rotation":0,"height":64}},{"className":"ToggleE","params":{"x":3470,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":81,"off":false,"y":-430,"width":64,"rotation":0,"height":239}},{"className":"ToggleE","params":{"x":5740,"safeId":-1,"sndId":-1,"hint":-1,"id_off":81,"id":-2,"off":false,"y":-440,"width":64,"rotation":0,"height":239}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map20.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map20.json new file mode 100644 index 000000000..d0b4f3ed7 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map20.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"33,41,48"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1870,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":1280,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":415,"y":0,"length":415},{"x":415,"y":585,"length":717.2516991963142},{"x":0,"y":585,"length":585}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::FinishShaper","params":{"x":3690,"rotation":0,"y":310,"vertices":[{"x":0,"y":0,"length":0},{"x":21,"y":-36,"length":41.677331968349414},{"x":50,"y":-68,"length":84.40379138403677},{"x":79,"y":-90,"length":119.75391434103521},{"x":117,"y":-111,"length":161.27616066858735},{"x":157,"y":-122,"length":198.82907232092595},{"x":205,"y":-126,"length":240.62626623043462},{"x":255,"y":-119,"length":281.40007107319644},{"x":298,"y":-102,"length":314.97301471713416},{"x":333,"y":-77,"length":341.7864830563081},{"x":359,"y":-52,"length":362.7464679359401},{"x":377,"y":-30,"length":378.1917503066401},{"x":394,"y":-1,"length":394.0012690334893},{"x":405,"y":31,"length":406.184687057501},{"x":410,"y":62,"length":414.6613075752306},{"x":413,"y":90,"length":422.6925596695546},{"x":411,"y":118,"length":427.6037885706814},{"x":405,"y":148,"length":431.19485154625863},{"x":391,"y":186,"length":432.9861429653379},{"x":375,"y":213,"length":431.27021691742175},{"x":352,"y":239,"length":425.47032799009617},{"x":327,"y":262,"length":419.01431956437955},{"x":297,"y":282,"length":409.552194475869},{"x":258,"y":297,"length":393.41199778349414},{"x":225,"y":304,"length":378.20761494184643},{"x":191,"y":306,"length":360.7173408640067},{"x":152,"y":300,"length":336.3093813737583},{"x":110,"y":288,"length":308.2920693109052},{"x":82,"y":272,"length":284.09153454476603},{"x":59,"y":256,"length":262.71086768537003},{"x":38,"y":235,"length":238.05251521460553},{"x":19,"y":211,"length":211.85372312045877},{"x":4,"y":189,"length":189.04232330353963},{"x":-7,"y":161,"length":161.15210206509875},{"x":-14,"y":132,"length":132.74034804836094},{"x":-17,"y":100,"length":101.43470806385751},{"x":-16,"y":61,"length":63.06346010171025},{"x":-10,"y":30,"length":31.622776601683793}]}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":1910,"safeId":-1,"rotation":0,"graphic":true,"height":236.05,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":182,"y":-211,"length":278.6485241303101},{"x":222,"y":-218,"length":311.13983994339264},{"x":457,"y":0,"length":457}],"smoothing":true,"id":-1,"repeatTexture":true,"width":471.35,"type":2,"textureOffset":0,"y":550}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":1860,"viscosity":1.5,"rotation":0,"y":1280,"vertices":[{"x":0,"y":0,"length":0},{"x":440,"y":0,"length":440},{"x":440,"y":570,"length":720.0694410957876},{"x":0,"y":570,"length":570}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":410,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":1560,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":9,"rem":true,"vertices":[{"x":85,"y":0,"length":85},{"x":83,"y":14,"length":84.17244204607586},{"x":79,"y":29,"length":84.15461959987698},{"x":73,"y":42,"length":84.21995013059554},{"x":65,"y":54,"length":84.50443775329198},{"x":54,"y":65,"length":84.50443775329198},{"x":42,"y":73,"length":84.21995013059554},{"x":29,"y":79,"length":84.15461959987698},{"x":14,"y":83,"length":84.17244204607586},{"x":0,"y":85,"length":85},{"x":-14,"y":83,"length":84.17244204607586},{"x":-29,"y":79,"length":84.15461959987698},{"x":-42,"y":73,"length":84.21995013059554},{"x":-54,"y":65,"length":84.50443775329198},{"x":-65,"y":54,"length":84.50443775329198},{"x":-73,"y":42,"length":84.21995013059554},{"x":-79,"y":29,"length":84.15461959987698},{"x":-83,"y":14,"length":84.17244204607586},{"x":-85,"y":0,"length":85},{"x":-83,"y":-14,"length":84.17244204607586},{"x":-79,"y":-29,"length":84.15461959987698},{"x":-73,"y":-42,"length":84.21995013059554},{"x":-65,"y":-54,"length":84.50443775329198},{"x":-54,"y":-65,"length":84.50443775329198},{"x":-42,"y":-73,"length":84.21995013059554},{"x":-29,"y":-79,"length":84.15461959987698},{"x":-14,"y":-83,"length":84.17244204607586},{"x":0,"y":-85,"length":85},{"x":14,"y":-83,"length":84.17244204607586},{"x":29,"y":-79,"length":84.15461959987698},{"x":42,"y":-73,"length":84.21995013059554},{"x":54,"y":-65,"length":84.50443775329198},{"x":65,"y":-54,"length":84.50443775329198},{"x":73,"y":-42,"length":84.21995013059554},{"x":79,"y":-29,"length":84.15461959987698},{"x":83,"y":-14,"length":84.17244204607586}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":550,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":170,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-170,"y":104,"length":199.28873525616044},{"x":-153,"y":79,"length":172.19175357722565},{"x":-132,"y":56,"length":143.38758663147937},{"x":-109,"y":37,"length":115.10864433221339},{"x":-82,"y":21,"length":84.64632301523794},{"x":-45,"y":7,"length":45.5411901469428},{"x":0,"y":0,"length":0},{"x":1240,"y":0,"length":1240},{"x":1320,"y":310,"length":1355.912976558599},{"x":1370,"y":310,"length":1404.6351839534705},{"x":1360,"y":590,"length":1482.4641648282768},{"x":1355,"y":615,"length":1488.0356178532825},{"x":1340,"y":645,"length":1487.153320945759},{"x":1320,"y":670,"length":1480.3040228277432},{"x":1295,"y":690,"length":1467.353059082919},{"x":230,"y":910,"length":938.6160024205852},{"x":267,"y":554,"length":614.9837396224391},{"x":324,"y":555,"length":642.6515385494693},{"x":631,"y":555,"length":840.3487371323884},{"x":676,"y":547,"length":869.5889833708796},{"x":711,"y":536,"length":890.4027178754566},{"x":743,"y":519,"length":906.316721681775},{"x":769,"y":497,"length":915.6254692831562},{"x":792,"y":474,"length":923.0059588106677},{"x":812,"y":445,"length":925.942222819545},{"x":829,"y":410,"length":924.846473745778},{"x":839,"y":371,"length":917.3668840763766},{"x":841,"y":332,"length":904.1598310033464},{"x":839,"y":296,"length":889.6836516425375},{"x":831,"y":261,"length":871.0235358473386},{"x":818,"y":230,"length":849.719953867155},{"x":800,"y":204,"length":825.6003875968082},{"x":778,"y":177,"length":797.880316839562},{"x":752,"y":155,"length":767.807918688001},{"x":721,"y":136,"length":733.7145221405939},{"x":682,"y":123,"length":693.0028859968767},{"x":637,"y":113,"length":646.9451290488244},{"x":327,"y":114,"length":346.30189141845585},{"x":291,"y":116,"length":313.2682556532021},{"x":257,"y":123,"length":284.91753192810023},{"x":226,"y":135,"length":263.2508309578528},{"x":198,"y":152,"length":249.61570463414355},{"x":173,"y":171,"length":243.24884377936928},{"x":150,"y":196,"length":246.81166909204273},{"x":131,"y":221,"length":256.90854403853524},{"x":116,"y":252,"length":277.41665415039523},{"x":104,"y":290,"length":308.084404019418},{"x":27,"y":947,"length":947.3848214954681},{"x":-45,"y":963,"length":964.0508285355082},{"x":-82,"y":964,"length":967.4812659684941},{"x":-114,"y":957,"length":963.7660504500042},{"x":-142,"y":942,"length":952.6426402381956},{"x":-167,"y":921,"length":936.0181622169519},{"x":-181,"y":896,"length":914.099009954611},{"x":-190,"y":864,"length":884.644561391749},{"x":-195,"y":836,"length":858.441028842401},{"x":-195,"y":199,"length":278.61442891566116},{"x":-191,"y":165,"length":252.40047543536838},{"x":-183,"y":134,"length":226.81490250863146}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":70,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":1640,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1191,"y":-1726,"length":2097.0352882104776},{"x":-140,"y":-2507,"length":2510.9060117814047},{"x":275,"y":-2505,"length":2520.0496026864234},{"x":273,"y":-1840,"length":1860.1421988654524},{"x":228,"y":-1840,"length":1854.0722747509062},{"x":181,"y":-1835,"length":1843.9050951716576},{"x":133,"y":-1821,"length":1825.8504867595266},{"x":92,"y":-1801,"length":1803.3482747378555},{"x":55,"y":-1777,"length":1777.8509498830322},{"x":20,"y":-1747,"length":1747.1144782182992},{"x":-11,"y":-1708,"length":1708.0354211783783},{"x":-33,"y":-1669,"length":1669.3262113799087},{"x":-52,"y":-1625,"length":1625.8317871169822},{"x":-65,"y":-1579,"length":1580.337305767348},{"x":-70,"y":-1530,"length":1531.6004700965589},{"x":-70,"y":-80,"length":106.30145812734649},{"x":65,"y":-80,"length":103.07764064044152},{"x":77,"y":-91,"length":119.20570456148481},{"x":98,"y":-80,"length":126.50691680694776},{"x":147,"y":-60,"length":158.7734234687909},{"x":197,"y":-50,"length":203.24615617521528},{"x":240,"y":-50,"length":245.15301344262525},{"x":1805,"y":-375,"length":1843.542784965947},{"x":1805,"y":335,"length":1835.8240656446358},{"x":-1120,"y":1015,"length":1511.4976017182428}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":550,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":490,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":98,"y":-3,"length":98.04590761474952},{"x":102,"y":42,"length":110.30865786510141},{"x":110,"y":75,"length":133.13526955694348},{"x":123,"y":110,"length":165.01212076693034},{"x":142,"y":144,"length":202.23748416156684},{"x":163,"y":168,"length":234.07904647789388},{"x":193,"y":196,"length":275.0727176584403},{"x":225,"y":215,"length":311.20732639190874},{"x":256,"y":226,"length":341.4849923495907},{"x":291,"y":233,"length":372.7868023414992},{"x":249,"y":586,"length":636.7079393254022},{"x":15,"y":630,"length":630.1785461280001},{"x":0,"y":100,"length":100}],"line":false,"id":7,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2280,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":1270,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":205,"y":0,"length":205},{"x":261,"y":-4,"length":261.03064954139006},{"x":304,"y":-18,"length":304.53242848668845},{"x":345,"y":-39,"length":347.1973502203034},{"x":379,"y":-64,"length":384.365711269879},{"x":409,"y":-92,"length":419.2195129046357},{"x":435,"y":-127,"length":453.16001588842767},{"x":456,"y":-165,"length":484.9340161300298},{"x":470,"y":-204,"length":512.3631524612206},{"x":479,"y":-251,"length":540.7790676422304},{"x":480,"y":-300,"length":566.0388679233962},{"x":475,"y":-348,"length":588.836989327267},{"x":457,"y":-393,"length":602.742067554605},{"x":433,"y":-437,"length":615.189401729256},{"x":408,"y":-470,"length":622.385732484285},{"x":371,"y":-503,"length":625.0199996800102},{"x":341,"y":-524,"length":625.1855724502925},{"x":293,"y":-546,"length":619.6490942460903},{"x":250,"y":-557,"length":610.5317354568884},{"x":209,"y":-561,"length":598.6668522642623},{"x":158,"y":-561,"length":582.8250166216271},{"x":120,"y":-570,"length":582.494635168428},{"x":95,"y":-590,"length":597.599364122821},{"x":80,"y":-630,"length":635.0590523722971},{"x":80,"y":-955,"length":958.3449274660977},{"x":135,"y":-965,"length":974.3972495856092},{"x":110,"y":-1115,"length":1120.4128703295048},{"x":494,"y":-1114,"length":1218.6188903836999},{"x":1370,"y":-540,"length":1472.582765076381},{"x":1412,"y":-512,"length":1501.9613843238446},{"x":1456,"y":-491,"length":1536.5601192273605},{"x":1500,"y":-478,"length":1574.320170740374},{"x":1543,"y":-468,"length":1612.4121681505633},{"x":1594,"y":-463,"length":1659.8810198324456},{"x":1635,"y":-464,"length":1699.5649443313428},{"x":1675,"y":-469,"length":1739.4211680901208},{"x":1717,"y":-479,"length":1782.5627618684287},{"x":1761,"y":-492,"length":1828.437857844778},{"x":1804,"y":-513,"length":1875.5225938388478},{"x":1842,"y":-538,"length":1918.9601350731598},{"x":1876,"y":-565,"length":1959.234799609276},{"x":1911,"y":-601,"length":2003.2778139838717},{"x":1941,"y":-637,"length":2042.8533965999616},{"x":1965,"y":-676,"length":2078.0281518786023},{"x":1988,"y":-728,"length":2117.103681920184},{"x":2004,"y":-781,"length":2150.8084526521648},{"x":2012,"y":-834,"length":2178.003673091485},{"x":2014,"y":-886,"length":2200.270892413023},{"x":2009,"y":-938,"length":2217.18853505966},{"x":1996,"y":-989,"length":2227.5854641292667},{"x":1978,"y":-1039,"length":2234.279525932241},{"x":1949,"y":-1088,"length":2232.116708418267},{"x":1918,"y":-1131,"length":2226.6308629856003},{"x":1886,"y":-1165,"length":2216.8042313203932},{"x":1851,"y":-1195,"length":2203.23080951588},{"x":1597,"y":-1372,"length":2105.4199106116575},{"x":1583,"y":-1435,"length":2136.612739829097},{"x":1591,"y":-1485,"length":2176.3515341047273},{"x":1602,"y":-1530,"length":2215.243553201318},{"x":1626,"y":-1570,"length":2260.2601620167534},{"x":1673,"y":-1600,"length":2314.936068231691},{"x":3234,"y":-1658,"length":3634.242699655597},{"x":3781,"y":-1109,"length":3940.284507494351},{"x":3845,"y":-187,"length":3849.5446483967426},{"x":2840,"y":300,"length":2855.801113523139},{"x":620,"y":575,"length":845.5915089450698},{"x":0,"y":575,"length":575}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1850,"safeId":-1,"rotation":-9,"graphic":true,"isWheel":false,"y":354,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":560,"y":0,"length":560},{"x":560,"y":40,"length":561.426753904728},{"x":0,"y":40,"length":40}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3100,"safeId":-1,"rotation":0,"graphic":true,"height":1417.25,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":-13,"y":-818,"length":818.1032942116784},{"x":-8,"y":-248,"length":248.12899870833317},{"x":-6,"y":-185,"length":185.09727172489605},{"x":2,"y":-132,"length":132.015150645674},{"x":14,"y":-93,"length":94.04786015641186},{"x":33,"y":-48,"length":58.249463516842795},{"x":56,"y":-10,"length":56.88585061331157},{"x":85,"y":30,"length":90.13878188659973},{"x":118,"y":64,"length":134.23859355639868},{"x":153,"y":94,"length":179.56892826989863},{"x":189,"y":120,"length":223.87719848166762},{"x":558,"y":335,"length":650.8371532111546},{"x":576,"y":360,"length":679.2466415080755},{"x":572,"y":422,"length":710.8220593087977},{"x":578,"y":466,"length":742.4553858650363},{"x":591,"y":513,"length":782.5918476447349},{"x":618,"y":558,"length":832.6391775553202},{"x":651,"y":585,"length":875.2291128613125}],"smoothing":true,"id":-1,"repeatTexture":true,"width":680.5,"type":2,"textureOffset":0,"y":-20}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":-40,"y":1700,"direction":90,"snapToGrid":true,"cameraOffsetY":50,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":6566.8,"textureOffset":0,"height":2171.3,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":-690,"y":-105,"length":697.9434074479105},{"x":350,"y":-90,"length":361.386219991853},{"x":1885,"y":-385,"length":1923.9152787999788},{"x":2570,"y":-425,"length":2604.9040289423333},{"x":2665,"y":-460,"length":2704.408438087709},{"x":2820,"y":-585,"length":2880.039062235094},{"x":2955,"y":-775,"length":3054.938624588062},{"x":3125,"y":-895,"length":3250.6383988379885},{"x":3270,"y":-925,"length":3398.312081019046},{"x":3580,"y":-915,"length":3695.081189906387},{"x":3875,"y":-885,"length":3974.776723288995},{"x":3980,"y":-885,"length":4077.2079907701545},{"x":4100,"y":-920,"length":4201.951927378513},{"x":4225,"y":-990,"length":4339.438327710166},{"x":5850,"y":-2200,"length":6250}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":650,"safeId":-1,"rotation":0,"graphic":true,"height":261.4,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":-7,"y":-5,"length":8.602325267042627},{"x":-6,"y":29,"length":29.614185789921695},{"x":-1,"y":59,"length":59.00847396772772},{"x":5,"y":85,"length":85.14693182963201},{"x":18,"y":113,"length":114.42464769445436},{"x":35,"y":143,"length":147.220922426128},{"x":54,"y":167,"length":175.5135322418189},{"x":77,"y":189,"length":204.08331631958552},{"x":104,"y":210,"length":234.34163095788165},{"x":135,"y":226,"length":263.2508309578528},{"x":170,"y":237,"length":291.6659047609096},{"x":206,"y":242,"length":317.80497164141406}],"smoothing":true,"id":7,"repeatTexture":true,"width":227.5,"type":6,"textureOffset":0,"y":490}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":800,"safeId":-1,"rotation":0,"graphic":true,"height":60.7,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":2,"y":9,"length":9.219544457292887},{"x":-239,"y":54,"length":245.0244885720609}],"smoothing":true,"id":7,"repeatTexture":true,"width":254,"type":6,"textureOffset":0,"y":1060}}],[{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":601,"y":108,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":2590,"y":92,"width":9.3,"height":128.35}},{"className":"Dec60","params":{"scaleX":1,"rotation":-12,"scaleY":1,"x":802,"y":1091,"width":640,"height":256}},{"className":"Dec52","params":{"scaleX":1,"rotation":-12,"scaleY":1,"x":1340,"y":977,"width":256,"height":256}},{"className":"Dec50","params":{"scaleX":1,"rotation":-12,"scaleY":1,"x":1447,"y":954,"width":256,"height":256}},{"className":"SpikeBall200E","params":{"x":1173,"safeId":-1,"ag":true,"y":505,"ad":-1,"btg":true,"scaleX":1,"active":true,"scaleY":1,"sgos":true,"id":-1,"width":260.3,"rotation":0,"height":260.3}},{"className":"SpikeBall200E","params":{"x":873,"safeId":-1,"ag":true,"y":505,"ad":-1,"btg":true,"scaleX":1,"active":true,"scaleY":1,"sgos":true,"id":-1,"width":260.3,"rotation":0,"height":260.3}}],[{"className":"GeyserE","params":{"x":1023,"safeId":-1,"rotation":-90,"y":397,"speed":1000,"id":-1,"rate":1,"width":216,"height":128}},{"className":"Tnt1","params":{"x":300,"safeId":-1,"rotation":0,"y":1580,"count":1,"radius":1,"physic":false,"stones":false,"impulse":1,"id":2,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":640,"safeId":-1,"rotation":0,"y":610,"count":1,"radius":1,"physic":false,"stones":false,"impulse":1,"id":3,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":700,"safeId":-1,"rotation":0,"y":720,"count":1,"radius":1,"physic":false,"stones":false,"impulse":1,"id":4,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":750,"safeId":-1,"rotation":0,"y":840,"count":1,"radius":1,"physic":false,"stones":false,"impulse":1,"id":5,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":660,"safeId":-1,"rotation":0,"y":910,"count":1,"radius":1,"physic":false,"stones":false,"impulse":1,"id":6,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":730,"safeId":-1,"rotation":0,"y":1010,"count":1,"radius":1,"physic":false,"stones":false,"impulse":1,"id":7,"width":53.2,"height":53.2}},{"className":"GeyserE","params":{"x":67,"safeId":-1,"rotation":-90,"y":910,"speed":1200,"id":-1,"rate":1,"width":1303,"height":128}},{"className":"GlassCrashed1","params":{"x":-7,"safeId":-1,"rotation":81.00000000000004,"y":1323,"ttl":1,"width":66,"height":18}},{"className":"GlassCrashed1","params":{"x":8,"safeId":-1,"rotation":71.00000000000006,"y":1384,"ttl":1,"width":66,"height":18}},{"className":"GlassCrashed1","params":{"x":34,"safeId":-1,"rotation":60.00000000000006,"y":1441,"ttl":1,"width":66,"height":18}},{"className":"GlassCrashed1","params":{"x":70,"safeId":-1,"rotation":48.00000000000006,"y":1491,"ttl":1,"width":66,"height":18}},{"className":"GlassCrashed1","params":{"x":116,"safeId":-1,"rotation":38.00000000000006,"y":1534,"ttl":1,"width":66,"height":18}}],null,[{"className":"PlayerWP","params":{"x":1030,"rotation":0,"y":630,"width":64,"height":32}},{"className":"SafePointE","params":{"x":600,"rotation":0,"y":30,"id":0,"width":128,"height":1298}},{"className":"SafePointE","params":{"x":2590,"rotation":0,"y":20,"id":0,"width":128,"height":885}}],[{"className":"frg.game.editor.objects::MoverPather","params":{"x":410,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":true,"position":0,"y":1560,"height":317,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":1472,"y":-304,"length":1503.0635382444748}],"stopOnEnd":true,"id":2,"accelDist":200,"width":1485,"speed":700}},{"className":"MotorJointE","params":{"x":410,"safeId":-1,"rotation":0,"graphic":0,"y":1560,"useWeld":false,"time":0,"snd":false,"id":1,"rate":150,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":873,"safeId":-1,"rotation":0,"graphic":0,"y":505,"useWeld":false,"time":0,"snd":false,"id":1,"rate":150,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":1173,"safeId":-1,"rotation":0,"graphic":0,"y":505,"useWeld":false,"time":0,"snd":false,"id":1,"rate":-150,"width":17,"height":17}},{"className":"ToggleE","params":{"x":1010,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":1,"off":false,"y":680,"width":260,"rotation":0,"height":103}},{"className":"ToggleE","params":{"x":1000,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":2,"off":false,"y":1480,"width":428,"rotation":-12,"height":186}},{"className":"ToggleE","params":{"x":870,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":7,"off":false,"y":700,"width":64,"rotation":0,"height":389}},{"className":"ToggleE","params":{"x":840,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":6,"off":false,"y":690,"width":64,"rotation":6,"height":389}},{"className":"ToggleE","params":{"x":820,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":5,"off":false,"y":700,"width":64,"rotation":18,"height":389}},{"className":"ToggleE","params":{"x":790,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":4,"off":false,"y":700,"width":74,"rotation":18,"height":391}},{"className":"ToggleE","params":{"x":760,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":3,"off":false,"y":700,"width":64,"rotation":21,"height":389}},{"className":"PivotJointE","params":{"x":2114,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":334,"width":17,"height":17}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map21.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map21.json new file mode 100644 index 000000000..286c0e92e --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map21.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"31,38,45"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4420,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-482,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1835,"y":0,"length":1835},{"x":1832,"y":856,"length":2022.1177018165881},{"x":2360,"y":855,"length":2510.104579494647},{"x":2360,"y":985,"length":2557.3081550724387},{"x":0,"y":975,"length":975}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6310,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-144,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":5,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":265,"y":0,"length":265},{"x":665,"y":-375,"length":763.4461343146614},{"x":685,"y":-360,"length":773.8378383098102},{"x":285,"y":20,"length":285.70089254323307},{"x":685,"y":385,"length":785.7798673928978},{"x":665,"y":400,"length":776.0315715227055},{"x":260,"y":30,"length":261.72504656604804},{"x":0,"y":30,"length":30}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":5833,"viscosity":1.5,"rotation":0,"y":-480,"vertices":[{"x":0,"y":0,"length":0},{"x":385,"y":0,"length":385},{"x":377,"y":912,"length":986.8500392663517},{"x":-44,"y":910,"length":911.063115266994},{"x":-45,"y":892,"length":893.1343683903335},{"x":37,"y":864,"length":864.7918824780908},{"x":83,"y":837,"length":841.1052252839712},{"x":136,"y":798,"length":809.5060222135472},{"x":166,"y":760,"length":777.9177334397256},{"x":205,"y":704,"length":733.2400698270656},{"x":223,"y":658,"length":694.7611100227185},{"x":236,"y":602,"length":646.6065264130884},{"x":238,"y":543,"length":592.8684508388012},{"x":234,"y":480,"length":534},{"x":216,"y":414,"length":466.9603837586225},{"x":186,"y":358,"length":403.43524883182926},{"x":145,"y":304,"length":336.8100354799423},{"x":102,"y":262,"length":281.15476165272395},{"x":61,"y":237,"length":244.72433471152803},{"x":20,"y":210,"length":210.95023109728987},{"x":0,"y":185,"length":185}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":5190,"viscosity":1.5,"rotation":0,"y":-481,"vertices":[{"x":0,"y":0,"length":0},{"x":425,"y":0,"length":425},{"x":425,"y":100,"length":436.6062299143245},{"x":424,"y":138,"length":445.8923636933021},{"x":418,"y":183,"length":456.30362698536595},{"x":404,"y":205,"length":453.03531871146646},{"x":371,"y":229,"length":435.98394465851607},{"x":327,"y":258,"length":416.5249092191246},{"x":281,"y":294,"length":406.69029985973356},{"x":243,"y":332,"length":411.42800099166806},{"x":209,"y":385,"length":438.0707705382773},{"x":193,"y":425,"length":466.7697505194611},{"x":178,"y":466,"length":498.8386512691253},{"x":169,"y":510,"length":537.271812028139},{"x":169,"y":557,"length":582.0738784724839},{"x":177,"y":615,"length":639.9640614909559},{"x":209,"y":677,"length":708.5266402895519},{"x":-380,"y":678,"length":777.2284091565361},{"x":-415,"y":669,"length":787.2648855372631},{"x":-453,"y":649,"length":791.4606749548584},{"x":-474,"y":621,"length":781.2278796868427},{"x":-487,"y":589,"length":764.257809904485},{"x":-491,"y":552,"length":738.7726307870372},{"x":-483,"y":516,"length":706.7849743733946},{"x":-466,"y":484,"length":671.8720116212611},{"x":-432,"y":452,"length":625.2423530120141},{"x":-148,"y":288,"length":323.8024088854189},{"x":-102,"y":253,"length":272.7874630550312},{"x":-64,"y":215,"length":224.32342722060932},{"x":-25,"y":155,"length":157.00318468107582},{"x":0,"y":100,"length":100}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":4422,"viscosity":1.5,"rotation":0,"y":-483,"vertices":[{"x":0,"y":0,"length":0},{"x":525,"y":0,"length":525},{"x":523,"y":70,"length":527.6637186693813},{"x":508,"y":95,"length":516.8065402062942},{"x":198,"y":285,"length":347.0288172472136},{"x":168,"y":307,"length":349.9614264458299},{"x":134,"y":344,"length":369.17746410093883},{"x":106,"y":384,"length":398.3616447400528},{"x":87,"y":426,"length":434.7930542223507},{"x":70,"y":471,"length":476.17328778502474},{"x":59,"y":522,"length":525.3237097257271},{"x":57,"y":565,"length":567.8679423950607},{"x":61,"y":609,"length":612.0473837865824},{"x":76,"y":662,"length":666.3482572949373},{"x":99,"y":726,"length":732.718909268759},{"x":132,"y":773,"length":784.1893903898471},{"x":171,"y":812,"length":829.8102192670322},{"x":243,"y":866,"length":899.4470523605045},{"x":341,"y":896,"length":958.6954678102948},{"x":1365,"y":895,"length":1632.2530441080512},{"x":1366,"y":920,"length":1646.9231918945097},{"x":-1,"y":915,"length":915.0005464479243}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3970,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":110,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":345,"y":0,"length":345},{"x":345,"y":365,"length":502.24496015390736},{"x":0,"y":365,"length":365}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1340,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":110,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1845,"y":0,"length":1845},{"x":1845,"y":390,"length":1885.7690738794079},{"x":0,"y":390,"length":390}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6468,"safeId":-1,"rotation":0,"graphic":true,"isWheel":true,"y":-583,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":25,"y":0,"length":25},{"x":25,"y":70,"length":74.33034373659252},{"x":0,"y":70,"length":70}],"line":false,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6656,"safeId":-1,"rotation":0,"graphic":true,"isWheel":true,"y":-583,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":25,"y":0,"length":25},{"x":25,"y":70,"length":74.33034373659252},{"x":0,"y":70,"length":70}],"line":false,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6527,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-620,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":-70,"y":0,"length":70},{"x":-30,"y":0,"length":30},{"x":-15,"y":150,"length":150.74813431681335},{"x":105,"y":150,"length":183.09833423600554},{"x":125,"y":0,"length":125},{"x":165,"y":0,"length":165},{"x":165,"y":150,"length":222.9910312097776},{"x":200,"y":165,"length":259.2778432492835},{"x":265,"y":165,"length":312.1698255757593},{"x":265,"y":150,"length":304.50779957170226},{"x":305,"y":175,"length":351.63901945034485},{"x":265,"y":200,"length":332.00150602068055},{"x":265,"y":185,"length":323.18725222384626},{"x":200,"y":185,"length":272.44265451650557},{"x":165,"y":195,"length":255.44079548889601},{"x":65,"y":195,"length":205.54804791094466},{"x":65,"y":530,"length":533.9709729938511},{"x":35,"y":530,"length":531.1544031635245},{"x":35,"y":195,"length":198.11612756158948},{"x":-70,"y":195,"length":207.18349355100662}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":6280,"viscosity":1.5,"rotation":0,"y":372,"vertices":[{"x":0,"y":0,"length":0},{"x":790,"y":0,"length":790},{"x":790,"y":295,"length":843.2822777694312},{"x":0,"y":295,"length":295}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3690,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-400,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-35,"y":100,"length":105.94810050208545},{"x":105,"y":0,"length":105},{"x":230,"y":100,"length":250.79872407968904}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4143,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":89,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":9,"rem":true,"vertices":[{"x":120,"y":0,"length":120},{"x":118,"y":20,"length":119.68291440301745},{"x":112,"y":41,"length":119.26860441876563},{"x":103,"y":59,"length":118.70130580579136},{"x":91,"y":77,"length":119.20570456148481},{"x":77,"y":91,"length":119.20570456148481},{"x":60,"y":103,"length":119.20151005754919},{"x":41,"y":112,"length":119.26860441876563},{"x":20,"y":118,"length":119.68291440301745},{"x":0,"y":120,"length":120},{"x":-20,"y":118,"length":119.68291440301745},{"x":-41,"y":112,"length":119.26860441876563},{"x":-59,"y":103,"length":118.70130580579136},{"x":-77,"y":91,"length":119.20570456148481},{"x":-91,"y":77,"length":119.20570456148481},{"x":-103,"y":59,"length":118.70130580579136},{"x":-112,"y":41,"length":119.26860441876563},{"x":-118,"y":20,"length":119.68291440301745},{"x":-120,"y":0,"length":120},{"x":-118,"y":-20,"length":119.68291440301745},{"x":-112,"y":-41,"length":119.26860441876563},{"x":-103,"y":-60,"length":119.20151005754919},{"x":-91,"y":-77,"length":119.20570456148481},{"x":-77,"y":-91,"length":119.20570456148481},{"x":-60,"y":-103,"length":119.20151005754919},{"x":-41,"y":-112,"length":119.26860441876563},{"x":-20,"y":-118,"length":119.68291440301745},{"x":0,"y":-120,"length":120},{"x":20,"y":-118,"length":119.68291440301745},{"x":41,"y":-112,"length":119.26860441876563},{"x":60,"y":-103,"length":119.20151005754919},{"x":77,"y":-91,"length":119.20570456148481},{"x":91,"y":-77,"length":119.20570456148481},{"x":103,"y":-60,"length":119.20151005754919},{"x":112,"y":-41,"length":119.26860441876563},{"x":118,"y":-20,"length":119.68291440301745}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3680,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":100,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-35,"y":100,"length":105.94810050208545},{"x":105,"y":0,"length":105},{"x":230,"y":100,"length":250.79872407968904}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4300,"safeId":-1,"rotation":-90,"graphic":true,"isWheel":false,"y":-40,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-35,"y":100,"length":105.94810050208545},{"x":105,"y":0,"length":105},{"x":230,"y":100,"length":250.79872407968904}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4300,"safeId":-1,"rotation":-90,"graphic":true,"isWheel":false,"y":-386,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-35,"y":100,"length":105.94810050208545},{"x":105,"y":0,"length":105},{"x":230,"y":100,"length":250.79872407968904}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":3980,"viscosity":1.5,"rotation":0,"y":110,"vertices":[{"x":0,"y":0,"length":0},{"x":330,"y":0,"length":330},{"x":330,"y":375,"length":499.52477416040136},{"x":0,"y":375,"length":375}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1840,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":80,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":290,"y":0,"length":290},{"x":290,"y":70,"length":298.328677803526},{"x":0,"y":70,"length":70}],"line":true,"id":1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2160,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":80,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":290,"y":0,"length":290},{"x":290,"y":70,"length":298.328677803526},{"x":0,"y":70,"length":70}],"line":true,"id":1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2800,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":80,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":290,"y":0,"length":290},{"x":290,"y":70,"length":298.328677803526},{"x":0,"y":70,"length":70}],"line":true,"id":1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2480,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":80,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":290,"y":0,"length":290},{"x":290,"y":70,"length":298.328677803526},{"x":0,"y":70,"length":70}],"line":true,"id":1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1520,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":80,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":290,"y":0,"length":290},{"x":290,"y":70,"length":298.328677803526},{"x":0,"y":70,"length":70}],"line":true,"id":1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":1390,"viscosity":1.5,"rotation":0,"y":110,"vertices":[{"x":-225,"y":0,"length":225},{"x":1965,"y":0,"length":1965},{"x":1965,"y":355,"length":1996.8099559046675},{"x":-225,"y":355,"length":420.2975136733502}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":420,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":9593,"textureOffset":0,"height":83,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":true,"physic":true,"vertices":[{"x":-835,"y":0,"length":835},{"x":8745,"y":15,"length":8745.012864484534}],"line":true,"shape":true,"isRoad":true,"smoothing":true,"camera":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":960,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":320,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1000,"y":-765,"length":1259.057186945851},{"x":-885,"y":-765,"length":1169.8076765007145},{"x":-885,"y":-260,"length":922.4017562862725},{"x":410,"y":-260,"length":485.4894437575342},{"x":410,"y":100,"length":422.0189569201839},{"x":-1000,"y":100,"length":1004.987562112089}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":240,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":7988,"textureOffset":0,"height":433,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":-825,"y":-175,"length":843.35638967165},{"x":705,"y":-170,"length":725.2068670386402},{"x":865,"y":-80,"length":868.691544795965},{"x":3715,"y":-125,"length":3717.102366091093},{"x":4060,"y":190,"length":4064.443381325418},{"x":7150,"y":185,"length":7152.392956207034}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3150,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-150,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":-885,"length":885},{"x":95,"y":-885,"length":890.0842656737619},{"x":95,"y":-260,"length":276.81221071332817},{"x":845,"y":-260,"length":884.0955830678038},{"x":845,"y":-140,"length":856.5191182921722},{"x":0,"y":-140,"length":140}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3150,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":350,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":-260,"length":260},{"x":845,"y":-260,"length":884.0955830678038},{"x":845,"y":100,"length":850.8965859609498},{"x":0,"y":100,"length":100}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4300,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-190,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":-425,"length":425},{"x":645,"y":-425,"length":772.4312267121261},{"x":645,"y":-320,"length":720.017360901805},{"x":125,"y":-320,"length":343.5476677260377},{"x":125,"y":620,"length":632.4752959602454},{"x":0,"y":620,"length":620}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5200,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-421,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":-965,"length":965},{"x":130,"y":-965,"length":973.7171047075224},{"x":130,"y":-200,"length":238.53720883753127},{"x":415,"y":-200,"length":460.6788469204984},{"x":415,"y":-100,"length":426.8782027698299},{"x":130,"y":-100,"length":164.01219466856725},{"x":130,"y":620,"length":633.4824385884742},{"x":0,"y":620,"length":620}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":4950,"safeId":-1,"rotation":0,"graphic":true,"height":1021.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":-2,"y":-3,"length":3.605551275463989},{"x":3,"y":18,"length":18.24828759089466},{"x":3,"y":136,"length":136.03308421115798},{"x":2,"y":150,"length":150.0133327407934},{"x":-4,"y":166,"length":166.04818577750254},{"x":-17,"y":183,"length":183.7879212570837},{"x":-43,"y":198,"length":202.6153992173349},{"x":-314,"y":366,"length":482.23645652314593},{"x":-346,"y":390,"length":521.359760626},{"x":-371,"y":416,"length":557.402009325406},{"x":-399,"y":449,"length":600.6679615228367},{"x":-416,"y":476,"length":632.164535544347},{"x":-433,"y":507,"length":666.7368296412011},{"x":-449,"y":546,"length":706.906641643718},{"x":-458,"y":583,"length":741.3858644457689},{"x":-462,"y":613,"length":767.6021104713041},{"x":-464,"y":646,"length":795.3690967091945},{"x":-462,"y":676,"length":818.7917928264792},{"x":-457,"y":709,"length":843.5223767037837},{"x":-450,"y":742,"length":867.7926019504891},{"x":-440,"y":769,"length":885.9802480868295},{"x":-429,"y":796,"length":904.2438830315635},{"x":-412,"y":824,"length":921.2600067299134},{"x":-393,"y":850,"length":936.455551534615},{"x":-372,"y":876,"length":951.7142428271209},{"x":-348,"y":899,"length":964.0046680384903},{"x":-321,"y":920,"length":974.3926313350281},{"x":-291,"y":941,"length":984.9680197854142},{"x":-258,"y":956,"length":990.2019995940223},{"x":-223,"y":968,"length":993.354418120743},{"x":-188,"y":976,"length":993.9416481866529},{"x":-149,"y":980,"length":991.2623265311761},{"x":769,"y":982,"length":1247.2710210695989},{"x":826,"y":980,"length":1281.669224098012},{"x":876,"y":971,"length":1307.7526524538193},{"x":938,"y":945,"length":1331.4912692165879},{"x":987,"y":909,"length":1341.8084811179276},{"x":1021,"y":880,"length":1347.9024445411471},{"x":1056,"y":838,"length":1348.1023700001422},{"x":1078,"y":806,"length":1346.0014858832808},{"x":1096,"y":769,"length":1338.8715397677254},{"x":1111,"y":719,"length":1323.3601172772285},{"x":1118,"y":680,"length":1308.5579849590158},{"x":1120,"y":629,"length":1284.5392169957288},{"x":1115,"y":569,"length":1251.793113897021},{"x":1103,"y":523,"length":1220.7120872671},{"x":1090,"y":490,"length":1195.0732195141852},{"x":1072,"y":457,"length":1165.34672951873},{"x":1052,"y":428,"length":1135.7323628390625},{"x":1031,"y":403,"length":1106.9643174014238},{"x":1000,"y":371,"length":1066.6025501563363},{"x":969,"y":347,"length":1029.2570135782414},{"x":940,"y":328,"length":995.5822417058272},{"x":913,"y":311,"length":964.515422375402},{"x":893,"y":297,"length":941.0940441847456},{"x":884,"y":277,"length":926.3827502711824},{"x":882,"y":251,"length":917.0196290156498},{"x":882,"y":-24,"length":882.3264701911645}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1602,"type":9,"textureOffset":0,"y":-570}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5200,"safeId":-1,"rotation":0,"graphic":true,"height":801.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":3,"y":-9,"length":9.486832980505138},{"x":-5,"y":13,"length":13.92838827718412},{"x":-11,"y":159,"length":159.38004893963358},{"x":-21,"y":205,"length":206.0728026693479},{"x":-45,"y":255,"length":258.940147524481},{"x":-70,"y":297,"length":305.1376738457577},{"x":-101,"y":329,"length":344.15403528071556},{"x":-138,"y":358,"length":383.67694744407044},{"x":-443,"y":538,"length":696.9167812587095},{"x":-464,"y":556,"length":724.1767739992771},{"x":-481,"y":573,"length":748.124321219408},{"x":-494,"y":598,"length":775.6545622891675},{"x":-503,"y":624,"length":801.4892388547709},{"x":-504,"y":647,"length":820.137183646736},{"x":-502,"y":666,"length":834.002398078087},{"x":-496,"y":687,"length":847.339955389807},{"x":-488,"y":707,"length":859.0651896101948},{"x":-475,"y":726,"length":867.5834253834037},{"x":-456,"y":745,"length":873.4763877747355},{"x":-438,"y":756,"length":873.7162010630225},{"x":-416,"y":766,"length":871.6719566442413},{"x":-388,"y":770,"length":862.2319873444733},{"x":207,"y":770,"length":797.3386984211917},{"x":186,"y":742,"length":764.9575151601558},{"x":175,"y":715,"length":736.10461213064},{"x":167,"y":682,"length":702.1488446191448},{"x":164,"y":646,"length":666.4923105332874},{"x":164,"y":615,"length":636.4911625466609},{"x":166,"y":582,"length":605.2107071095157},{"x":177,"y":539,"length":567.3182528352141},{"x":190,"y":503,"length":537.6885715728018},{"x":205,"y":473,"length":515.5133363939289},{"x":221,"y":448,"length":499.5447927863927},{"x":236,"y":428,"length":488.7535166113897},{"x":252,"y":409,"length":480.4008742706449},{"x":272,"y":388,"length":473.8438561382853},{"x":292,"y":369,"length":470.5581791872287},{"x":311,"y":354,"length":471.2080220030215},{"x":332,"y":338,"length":473.7805399127322},{"x":356,"y":324,"length":481.36472658473843},{"x":389,"y":305,"length":494.31366560110393},{"x":404,"y":290,"length":497.30875721225743},{"x":414,"y":267,"length":492.630693319042},{"x":414,"y":-16,"length":414.3090633814327}],"smoothing":true,"id":-1,"repeatTexture":true,"width":936,"type":8,"textureOffset":0,"y":-570}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5630,"safeId":-1,"rotation":0,"graphic":true,"height":293.05,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":107,"y":-31,"length":111.40017953306898},{"x":137,"y":-24,"length":139.08630414242805},{"x":165,"y":-11,"length":165.36626016210198},{"x":186,"y":6,"length":186.09674903124989},{"x":204,"y":29,"length":206.0509645694482},{"x":217,"y":50,"length":222.6858774148015},{"x":224,"y":76,"length":236.5417510715603},{"x":228,"y":97,"length":247.7761086142084},{"x":227,"y":121,"length":257.2353008434107},{"x":221,"y":147,"length":265.42418879973997},{"x":211,"y":171,"length":271.5916051721776},{"x":195,"y":194,"length":275.0654467576762},{"x":176,"y":213,"length":276.3059898011623},{"x":152,"y":229,"length":274.85450696686786},{"x":130,"y":237,"length":270.31278179176064},{"x":100,"y":243,"length":262.7717640843475},{"x":69,"y":242,"length":251.6445906432324},{"x":43,"y":235,"length":238.9016534057477},{"x":21,"y":226,"length":226.97356674291393},{"x":2,"y":212,"length":212.00943375236866},{"x":-14,"y":198,"length":198.4943324127921},{"x":-26,"y":181,"length":182.8578683021324},{"x":-37,"y":159,"length":163.24827717314508},{"x":-46,"y":137,"length":144.51643505151932},{"x":-49,"y":114,"length":124.08464852672147},{"x":-48,"y":91,"length":102.88342918079665},{"x":-45,"y":74,"length":86.6083136886985},{"x":-37,"y":50,"length":62.20128616033595},{"x":-25,"y":29,"length":38.28837943815329},{"x":-12,"y":13,"length":17.69180601295413},{"x":3,"y":-1,"length":3.1622776601683795},{"x":23,"y":-16,"length":28.0178514522438},{"x":44,"y":-24,"length":50.11985634456667},{"x":64,"y":-30,"length":70.68238818828917},{"x":81,"y":-32,"length":87.09190547921202},{"x":105,"y":-31,"length":109.48059188732951}],"smoothing":true,"id":-1,"repeatTexture":true,"width":295.1,"type":9,"textureOffset":0,"y":-40}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3245,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-534,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":120,"y":125,"length":173.27723451163456},{"x":0,"y":125,"length":125}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5630,"safeId":-1,"rotation":0,"graphic":true,"height":436.05,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":89,"y":-15,"length":90.2551937563706},{"x":117,"y":-15,"length":117.957619508025},{"x":142,"y":-11,"length":142.42541907960108},{"x":168,"y":-3,"length":168.02678357928536},{"x":194,"y":10,"length":194.25756098540927},{"x":216,"y":25,"length":217.44194627532195},{"x":236,"y":44,"length":240.06665740997852},{"x":254,"y":64,"length":261.9389241789009},{"x":269,"y":86,"length":282.412818405964},{"x":280,"y":109,"length":300.46796834271703},{"x":288,"y":132,"length":316.80909077865806},{"x":293,"y":162,"length":334.8029271078734},{"x":295,"y":191,"length":351.4342043683284},{"x":292,"y":219,"length":365},{"x":284,"y":250,"length":378.35961729550365},{"x":273,"y":279,"length":390.3460003637798},{"x":252,"y":310,"length":399.50469333913964},{"x":222,"y":340,"length":406.0591089976926},{"x":191,"y":362,"length":409.2981798151563},{"x":152,"y":379,"length":408.3442175420144},{"x":115,"y":387,"length":403.72515403427616},{"x":83,"y":388,"length":396.7782756149837},{"x":46,"y":384,"length":386.7453942841466},{"x":12,"y":374,"length":374.1924638471491},{"x":-21,"y":357,"length":357.6171136844544},{"x":-46,"y":338,"length":341.11581610942636},{"x":-65,"y":318,"length":324.5751068705054},{"x":-84,"y":294,"length":305.76461534978176},{"x":-99,"y":266,"length":283.82565070831777},{"x":-109,"y":239,"length":262.682317638626},{"x":-113,"y":212,"length":240.23530131935232},{"x":-115,"y":187,"length":219.5313189501671},{"x":-114,"y":158,"length":194.83326204732086},{"x":-109,"y":133,"length":171.95929750961417},{"x":-103,"y":114,"length":153.63918770938616},{"x":-93,"y":93,"length":131.52186130069785},{"x":-80,"y":72,"length":107.62899237658968},{"x":-64,"y":52,"length":82.46211251235322},{"x":-45,"y":32,"length":55.21775076911409},{"x":-24,"y":16,"length":28.844410203711913},{"x":1,"y":1,"length":1.4142135623730951},{"x":35,"y":-11,"length":36.68787265568828},{"x":64,"y":-16,"length":65.96969000988257},{"x":88,"y":-16,"length":89.44271909999159}],"smoothing":true,"id":-1,"repeatTexture":true,"width":442.05,"type":10,"textureOffset":0,"y":-120}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5330,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-720,"plr":false,"density":0.8,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":40,"length":40},{"x":290,"y":40,"length":292.7456233660889},{"x":290,"y":85,"length":302.2002647252315},{"x":250,"y":85,"length":264.0549185302179},{"x":250,"y":100,"length":269.2582403567252},{"x":35,"y":100,"length":105.94810050208545},{"x":35,"y":85,"length":91.92388155425118},{"x":0,"y":85,"length":85}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5840,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-620,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":615,"y":0,"length":615},{"x":615,"y":100,"length":623.0770417853638},{"x":475,"y":100,"length":485.41219597368996},{"x":475,"y":1050,"length":1152.443057161611},{"x":360,"y":1050,"length":1110},{"x":360,"y":100,"length":373.6308338453881},{"x":0,"y":100,"length":100}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6660,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-742,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-10,"y":-735,"length":735.0680240630795},{"x":2635,"y":-730,"length":2734.250354301888},{"x":2625,"y":1175,"length":2875.9780944923764},{"x":65,"y":1170,"length":1171.8041645257965},{"x":65,"y":1115,"length":1116.8930118860983},{"x":137,"y":1086,"length":1094.6072354959106},{"x":198,"y":1054,"length":1072.4364783053586},{"x":246,"y":1019,"length":1048.2733422156646},{"x":284,"y":987,"length":1027.046737008594},{"x":320,"y":949,"length":1001.4993759359014},{"x":360,"y":899,"length":968.4012598091764},{"x":385,"y":856,"length":938.5952269215948},{"x":404,"y":816,"length":910.5339093081597},{"x":421,"y":769,"length":876.6994924145902},{"x":436,"y":712,"length":834.8892142074899},{"x":442,"y":655,"length":790.1828902222574},{"x":446,"y":597,"length":745.2013150820387},{"x":441,"y":540,"length":697.1950946471153},{"x":430,"y":484,"length":647.4225822443947},{"x":411,"y":423,"length":589.788097540125},{"x":390,"y":380,"length":544.5181356024792},{"x":368,"y":338,"length":499.6678897027505},{"x":344,"y":303,"length":458.4157501657202},{"x":304,"y":256,"length":397.4317551479751},{"x":265,"y":218,"length":343.14574163174456},{"x":225,"y":186,"length":291.92636057745796},{"x":180,"y":158,"length":239.50782868207042},{"x":137,"y":136,"length":193.04144632694815},{"x":96,"y":121,"length":154.45711378890906},{"x":40,"y":105,"length":112.36102527122117},{"x":40,"y":-305,"length":307.6117683054405},{"x":-10,"y":-305,"length":305.16389039334257}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6190,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-620,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":70,"y":-25,"length":74.33034373659252},{"x":135,"y":0,"length":135}],"line":true,"id":-1,"physic":true}},{"className":"FinishZone","params":{"x":6515,"rotation":0,"y":308,"width":402,"height":128}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6724,"safeId":-1,"rotation":0,"graphic":true,"height":1071.15,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":56,"y":-19,"length":59.135437767890075},{"x":109,"y":-45,"length":117.92370414806346},{"x":153,"y":-74,"length":169.95587662684687},{"x":195,"y":-106,"length":221.94819215303377},{"x":236,"y":-145,"length":276.9855591903665},{"x":269,"y":-183,"length":325.3459696999488},{"x":300,"y":-223,"length":373.80342427538034},{"x":327,"y":-272,"length":425.3386885765272},{"x":348,"y":-324,"length":475.47870614781476},{"x":364,"y":-376,"length":523.3278131343681},{"x":373,"y":-421,"length":562.4677768548169},{"x":378,"y":-476,"length":607.8322136905874},{"x":380,"y":-536,"length":657.0357676717456},{"x":367,"y":-621,"length":721.3390326330608},{"x":347,"y":-683,"length":766.0926836878159},{"x":328,"y":-723,"length":793.922540302264},{"x":310,"y":-762,"length":822.6445161793762},{"x":287,"y":-802,"length":851.8057290251105},{"x":256,"y":-838,"length":876.2305632651717},{"x":223,"y":-872,"length":900.0627755884586},{"x":182,"y":-911,"length":929.0021528500351},{"x":140,"y":-940,"length":950.3683496413378},{"x":100,"y":-962,"length":967.183539975738},{"x":56,"y":-983,"length":984.5938248841499},{"x":11,"y":-1000,"length":1000.0604981699857},{"x":-25,"y":-1010,"length":1010.3093585630096}],"smoothing":true,"id":-1,"repeatTexture":true,"width":445.65,"type":5,"textureOffset":0,"y":371}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5110,"safeId":-1,"rotation":0,"graphic":true,"height":824.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":1,"y":104,"length":104.00480758118829},{"x":-4,"y":139,"length":139.05754204644924},{"x":-18,"y":176,"length":176.91806012954132},{"x":-33,"y":206,"length":208.62646045025065},{"x":-52,"y":227,"length":232.8797973204202},{"x":-76,"y":250,"length":261.29676614914314},{"x":-395,"y":441,"length":592.0354719102564},{"x":-427,"y":470,"length":635.0031495984882},{"x":-449,"y":497,"length":669.7835471254874},{"x":-465,"y":521,"length":698.3308671396389},{"x":-476,"y":551,"length":728.1325428793854},{"x":-482,"y":583,"length":756.4476188078062},{"x":-483,"y":615,"length":781.9936061119681},{"x":-479,"y":646,"length":804.2120367166858},{"x":-471,"y":675,"length":823.0832278694543},{"x":-462,"y":697,"length":836.213489486985},{"x":-444,"y":726,"length":851.0064629601823},{"x":-424,"y":749,"length":860.6840302921856},{"x":-398,"y":769,"length":865.8897158414575},{"x":-373,"y":783,"length":867.3050213160304},{"x":-342,"y":795,"length":865.4415058223173},{"x":-310,"y":801,"length":858.8952206177422},{"x":369,"y":802,"length":882.8165154775935}],"smoothing":true,"id":-1,"repeatTexture":true,"width":874.55,"type":10,"textureOffset":0,"y":-530}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5770,"safeId":-1,"rotation":0,"graphic":true,"height":289,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":276,"length":276}],"smoothing":true,"id":-1,"repeatTexture":true,"width":32,"type":10,"textureOffset":0,"y":-560}}],[{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":5060,"y":-570,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":5712,"y":-587,"width":75.25,"height":244.95}},{"className":"PlankWipe0","params":{"x":6673,"safeId":-1,"active":false,"y":-674,"id":81,"rotation":-90,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":6673,"safeId":-1,"active":false,"y":-740,"id":81,"rotation":-90,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":6673,"safeId":-1,"active":false,"y":-810,"id":81,"rotation":-90,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":6673,"safeId":-1,"active":false,"y":-880,"id":81,"rotation":-90,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":6673,"safeId":-1,"active":false,"y":-950,"id":81,"rotation":-90,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":6673,"safeId":-1,"active":false,"y":-1020,"id":81,"rotation":-90,"width":85.1,"height":18}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":270,"y":0,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":3350,"y":30,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":4630,"y":-680,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":-69,"scaleY":0.7195169458511882,"x":4260,"y":-10,"width":9.3,"height":92.35}},{"className":"Sign1","params":{"x":4200,"rotation":90.00000000000006,"y":-30,"width":68.8,"height":69.8}},{"className":"SignPillar","params":{"scaleX":1,"rotation":-90,"scaleY":0.7039345539540319,"x":5160,"y":-780,"width":9.3,"height":90.35}},{"className":"Sign1","params":{"x":5090,"rotation":-90,"y":-780,"width":68.8,"height":69.8}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":0.5948578106739384,"x":5260,"y":370,"width":9.3,"height":76.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":6090,"y":-680,"width":9.3,"height":128.35}},{"className":"Dec36","params":{"scaleX":1,"rotation":-51,"scaleY":1,"x":5017,"y":-330,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-36,"scaleY":1,"x":4703,"y":-137,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-144,"scaleY":-1,"x":4697,"y":259,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":5354,"y":290,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":5035,"y":297,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":87,"scaleY":-1,"x":5949,"y":78,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":5725,"y":289,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":5463,"y":61,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":5712,"y":-357,"width":75.25,"height":244.95}},{"className":"Sign1","params":{"x":270,"rotation":180,"y":-70,"width":68.8,"height":69.8}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":330,"y":-110,"width":640,"height":256}},{"className":"Dec52","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":890,"y":-110,"width":256,"height":256}},{"className":"Dec51","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":1010,"y":-110,"width":256,"height":256}}],[{"className":"GlassCrashed1","params":{"x":5810,"safeId":-1,"rotation":12,"y":-280,"ttl":1,"width":66,"height":18}},{"className":"GlassCrashed1","params":{"x":5749,"safeId":-1,"rotation":5,"y":-289,"ttl":1,"width":66,"height":18}},{"className":"GlassCrashed1","params":{"x":5686,"safeId":-1,"rotation":-4,"y":-290,"ttl":1,"width":66,"height":18}},{"className":"GlassCrashed1","params":{"x":5626,"safeId":-1,"rotation":-15.000000000000002,"y":-280,"ttl":1,"width":66,"height":18}},{"className":"GeyserE","params":{"x":5716,"safeId":-1,"rotation":-90,"y":-343,"speed":1200,"id":82,"rate":1,"width":552,"height":128}},{"className":"Tnt1","params":{"x":5304,"safeId":-1,"rotation":0,"y":-659,"count":12,"radius":64,"physic":false,"stones":false,"impulse":9000,"id":5,"width":53.2,"height":53.2}}],[{"className":"Dec37","params":{"scaleX":1,"rotation":-90.00000000000006,"scaleY":1,"x":5060,"y":-570,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-90.00000000000006,"scaleY":1,"x":5714,"y":-587,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-51,"scaleY":1,"x":5020,"y":-328,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-36,"scaleY":1,"x":4706,"y":-135,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-144,"scaleY":-1,"x":4700,"y":262,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":5359,"y":291,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":5040,"y":298,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":87,"scaleY":-1,"x":5950,"y":73,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":5727,"y":291,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":5467,"y":60,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-90.00000000000006,"scaleY":1,"x":5714,"y":-357,"width":99.95,"height":281.05}}],[{"className":"PlayerWP","params":{"x":490,"rotation":0,"y":10,"width":64,"height":32}},{"className":"SafePointE","params":{"x":3350,"rotation":0,"y":-50,"id":0,"width":128,"height":517}},{"className":"SafePointE","params":{"x":4630,"rotation":0,"y":-750,"id":0,"width":128,"height":999}},{"className":"SafePointE","params":{"x":5261,"rotation":0,"y":320,"id":0,"width":128,"height":307}},{"className":"SafePointE","params":{"x":6090,"rotation":0,"y":-760,"id":0,"width":128,"height":1104}}],[{"className":"frg.game.editor.objects::MoverPather","params":{"x":3780,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":160,"height":109,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-96,"length":96}],"stopOnEnd":true,"id":1,"accelDist":0,"width":13,"speed":300}},{"className":"ToggleE","params":{"x":3480,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":1,"off":false,"y":0,"width":64,"rotation":0,"height":512}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":4370,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-130,"height":13,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-96,"y":0,"length":96}],"stopOnEnd":true,"id":2,"accelDist":0,"width":109,"speed":200}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":4370,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-480,"height":13,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-96,"y":0,"length":96}],"stopOnEnd":true,"id":2,"accelDist":0,"width":109,"speed":200}},{"className":"ToggleE","params":{"x":4010,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":2,"off":false,"y":-50,"width":64,"rotation":0,"height":512}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":3790,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-340,"height":109,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-96,"length":96}],"stopOnEnd":true,"id":3,"accelDist":0,"width":13,"speed":200}},{"className":"ToggleE","params":{"x":3570,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":3,"off":false,"y":-460,"width":121,"rotation":-75,"height":773}},{"className":"ToggleE","params":{"x":5650,"safeId":-1,"sndId":-1,"hint":-1,"id_off":82,"id":5,"off":false,"y":-810,"width":643,"rotation":0,"height":64}},{"className":"PivotJointE","params":{"x":6577,"safeId":-1,"rotation":0,"graphic":0,"id":11,"y":-129,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6527,"safeId":-1,"rotation":0,"graphic":0,"id":7,"y":-445,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":6480,"safeId":-1,"rotation":0,"graphic":0,"y":-524,"useWeld":true,"time":0.35,"snd":false,"id":7,"rate":240,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":6668,"safeId":-1,"rotation":0,"graphic":0,"y":-524,"useWeld":true,"time":0.35,"snd":false,"id":7,"rate":-240,"width":17,"height":17}},{"className":"ToggleE","params":{"x":6577,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":7,"off":false,"y":-445,"width":271,"rotation":0,"height":64}},{"className":"PivotJointE","params":{"x":6673,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-705,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6673,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-775,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6673,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-845,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6673,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-915,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6673,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-985,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6673,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-1055,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6673,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-641,"width":17,"height":17}},{"className":"ToggleE","params":{"x":2370,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":80,"off":false,"y":-180,"width":64,"rotation":0,"height":1516}},{"className":"ToggleE","params":{"x":7440,"safeId":-1,"sndId":0,"hint":-1,"id_off":81,"id":0,"off":false,"y":-360,"width":64,"rotation":-90,"height":1516}},{"className":"ToggleE","params":{"x":5730,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-470,"width":609,"rotation":0,"height":74}},{"className":"ToggleE","params":{"x":3590,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-750,"width":341,"rotation":93.00000000000006,"height":74}},{"className":"ToggleE","params":{"x":6010,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":81,"off":false,"y":-690,"width":209,"rotation":0,"height":136}},{"className":"ToggleE","params":{"x":5260,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":82,"off":false,"y":310,"width":64,"rotation":0,"height":192}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map22.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map22.json new file mode 100644 index 000000000..6ebe3626f --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map22.json @@ -0,0 +1 @@ +{"settings":{"gravityY":500,"theme":7,"countdown":0,"prizes":"38,45,53"},"layers":[[{"params":{"layer":7,"vertices":[{"x":0,"y":0,"length":0},{"x":1030,"y":0,"length":1030},{"x":1030,"y":245,"length":1058.7374556517777},{"x":0,"y":245,"length":245}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":6390,"isStatic":true,"physic":false,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":870},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":7,"vertices":[{"x":0,"y":0,"length":0},{"x":1500,"y":0,"length":1500},{"x":1500,"y":215,"length":1515.329997063346},{"x":0,"y":215,"length":215}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":2380,"isStatic":true,"physic":false,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":390},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":5,"vertices":[{"x":0,"y":0,"length":0},{"x":40,"y":0,"length":40},{"x":40,"y":255,"length":258.11818998280614},{"x":0,"y":255,"length":255}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":4184,"isStatic":true,"physic":false,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-35},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"x":9630,"vertices":[{"x":0,"y":0,"length":0},{"x":275,"y":-10,"length":275.1817581163403},{"x":335,"y":93,"length":347.66938317890464},{"x":355,"y":131,"length":378.3992600415598},{"x":366,"y":169,"length":403.133972768359},{"x":369,"y":203,"length":421.15317878415686},{"x":368,"y":238,"length":438.25563316402446},{"x":360,"y":274,"length":452.411317276657},{"x":346,"y":309,"length":463.8933066988572},{"x":324,"y":342,"length":471.10508381888644},{"x":296,"y":370,"length":473.8311935700308},{"x":258,"y":396,"length":472.6309342393915},{"x":218,"y":412,"length":466.120156182931},{"x":179,"y":420,"length":456.55339227739836},{"x":139,"y":419,"length":441.45441440764864},{"x":99,"y":412,"length":423.72750677764594},{"x":60,"y":400,"length":404.4749683231337},{"x":-100,"y":245,"length":264.62237244798484}],"y":1070,"rotation":0},"className":"frg.game.editor.objects::FinishShaper"},{"params":{"sf":true,"x":6390,"vertices":[{"x":0,"y":0,"length":0},{"x":1220,"y":0,"length":1220},{"x":1220,"y":410,"length":1287.0508925446577},{"x":-20,"y":425,"length":425.47032799009617}],"id":-1,"bg":false,"density":1.5,"viscosity":1.5,"y":870,"rotation":0},"className":"frg.game.editor.objects::WaterShaper"},{"params":{"layer":3,"vertices":[{"x":-11,"y":14,"length":17.804493814764857},{"x":47,"y":-31,"length":56.302753041036986},{"x":115,"y":-65,"length":132.09844813622905},{"x":188,"y":-83,"length":205.50669088864237},{"x":271,"y":-82,"length":283.1342437784593},{"x":350,"y":-68,"length":356.5445273735105},{"x":411,"y":-41,"length":413.0399496416781},{"x":471,"y":0,"length":471},{"x":535,"y":65,"length":538.9341332667657},{"x":578,"y":140,"length":594.7133763419148},{"x":594,"y":211,"length":630.3625940678904},{"x":602,"y":285,"length":666.0548025500605},{"x":593,"y":357,"length":692.1690544946372},{"x":566,"y":433,"length":712.6324438306187},{"x":527,"y":497,"length":724.3880175706939},{"x":480,"y":549,"length":729.2468717793721},{"x":420,"y":592,"length":725.8539798058559},{"x":351,"y":624,"length":715.944830276747},{"x":272,"y":641,"length":696.3224827621179},{"x":187,"y":638,"length":664.8405823955093},{"x":108,"y":622,"length":631.3065816225901},{"x":42,"y":585,"length":586.5057544474735},{"x":-17,"y":533,"length":533.2710380285057},{"x":-68,"y":474,"length":478.85279575251514},{"x":-105,"y":395,"length":408.71750635371615},{"x":-125,"y":303,"length":327.77126170547655},{"x":-120,"y":220,"length":250.59928172283335},{"x":-97,"y":138,"length":168.6801707374047},{"x":-61,"y":67,"length":90.60905032059435}],"rem":true,"plr":false,"rotation":0,"safeId":2,"line":true,"x":8148,"isStatic":false,"physic":true,"id":-1,"isWheel":false,"density":0.7,"ignore":false,"graphic":true,"y":1820},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":3,"vertices":[{"x":-11,"y":14,"length":17.804493814764857},{"x":47,"y":-31,"length":56.302753041036986},{"x":115,"y":-65,"length":132.09844813622905},{"x":188,"y":-83,"length":205.50669088864237},{"x":271,"y":-82,"length":283.1342437784593},{"x":350,"y":-68,"length":356.5445273735105},{"x":411,"y":-41,"length":413.0399496416781},{"x":471,"y":0,"length":471},{"x":535,"y":65,"length":538.9341332667657},{"x":578,"y":140,"length":594.7133763419148},{"x":594,"y":211,"length":630.3625940678904},{"x":602,"y":285,"length":666.0548025500605},{"x":593,"y":357,"length":692.1690544946372},{"x":566,"y":433,"length":712.6324438306187},{"x":527,"y":497,"length":724.3880175706939},{"x":480,"y":549,"length":729.2468717793721},{"x":420,"y":592,"length":725.8539798058559},{"x":351,"y":624,"length":715.944830276747},{"x":272,"y":641,"length":696.3224827621179},{"x":187,"y":638,"length":664.8405823955093},{"x":108,"y":622,"length":631.3065816225901},{"x":42,"y":585,"length":586.5057544474735},{"x":-17,"y":533,"length":533.2710380285057},{"x":-68,"y":474,"length":478.85279575251514},{"x":-105,"y":395,"length":408.71750635371615},{"x":-125,"y":303,"length":327.77126170547655},{"x":-120,"y":220,"length":250.59928172283335},{"x":-97,"y":138,"length":168.6801707374047},{"x":-61,"y":67,"length":90.60905032059435}],"rem":true,"plr":false,"rotation":0,"safeId":2,"line":true,"x":9278,"isStatic":false,"physic":true,"id":-1,"isWheel":false,"density":0.7,"ignore":false,"graphic":true,"y":1610},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":6,"vertices":[{"x":5,"y":-2,"length":5.385164807134504},{"x":31,"y":-32,"length":44.553338819890925},{"x":71,"y":-58,"length":91.67878707749138},{"x":112,"y":-70,"length":132.07573584879245},{"x":152,"y":-65,"length":165.3148511174964},{"x":192,"y":-54,"length":199.44924166313595},{"x":224,"y":-30,"length":226},{"x":258,"y":7,"length":258.0949437706985},{"x":293,"y":45,"length":296.4354904528134},{"x":338,"y":87,"length":349.01719155365396},{"x":402,"y":134,"length":423.7452064625628},{"x":463,"y":168,"length":492.5373082315694},{"x":533,"y":197,"length":568.2411459934946},{"x":592,"y":216,"length":630.1745789858553},{"x":661,"y":230,"length":699.8721311782604},{"x":732,"y":239,"length":770.0292202247912},{"x":803,"y":240,"length":838.098442905128},{"x":864,"y":234,"length":895.1268066592577},{"x":927,"y":220,"length":952.748130410131},{"x":1002,"y":197,"length":1021.1821580893392},{"x":1062,"y":171,"length":1075.6788554210777},{"x":1140,"y":125,"length":1146.8325945838826},{"x":1198,"y":84,"length":1200.941297482937},{"x":1248,"y":39,"length":1248.6092262994055},{"x":1280,"y":1,"length":1280.0003906249403},{"x":1313,"y":-38,"length":1313.5497706596427},{"x":1335,"y":-59,"length":1336.3031093281195},{"x":1367,"y":-73,"length":1368.947771100125},{"x":1396,"y":-77,"length":1398.1219546234156},{"x":1430,"y":-75,"length":1431.965432543677},{"x":1465,"y":-67,"length":1466.5312816302282},{"x":1492,"y":-51,"length":1492.8713943270532},{"x":1516,"y":-27,"length":1516.240416292878},{"x":1537,"y":2,"length":1537.0013012356235},{"x":1547,"y":32,"length":1547.3309277591527},{"x":1553,"y":68,"length":1554.4880186093426},{"x":1549,"y":99,"length":1552.160429852533},{"x":1537,"y":134,"length":1542.8301915635434},{"x":1510,"y":169,"length":1519.427852844616},{"x":1483,"y":191,"length":1495.249143119634},{"x":1449,"y":204,"length":1463.2897867476559},{"x":1412,"y":213,"length":1427.9751398396263},{"x":1353,"y":228,"length":1372.0761640667038},{"x":1303,"y":247,"length":1326.2043583098346},{"x":1249,"y":270,"length":1277.850147709034},{"x":1207,"y":292,"length":1241.8184247304434},{"x":1165,"y":317,"length":1207.3582732561201},{"x":1121,"y":349,"length":1174.070696338172},{"x":1080,"y":381,"length":1145.2340372168476},{"x":1047,"y":413,"length":1125.5123277867729},{"x":1012,"y":452,"length":1108.3537341480833},{"x":980,"y":497,"length":1098.8216415779223},{"x":950,"y":545,"length":1095.2282867055617},{"x":928,"y":589,"length":1099.1382988505131},{"x":906,"y":635,"length":1106.3729027773593},{"x":887,"y":684,"length":1120.100441924741},{"x":873,"y":743,"length":1146.3760290585285},{"x":863,"y":800,"length":1176.7620830057365},{"x":857,"y":870,"length":1221.2080084899542},{"x":861,"y":950,"length":1282.1158294007605},{"x":877,"y":1032,"length":1354.3090489249491},{"x":894,"y":1097,"length":1415.1484021119481},{"x":915,"y":1150,"length":1469.6002857920246},{"x":922,"y":1187,"length":1503.0146373206085},{"x":917,"y":1229,"length":1533.4047084837061},{"x":898,"y":1266,"length":1552.146900264276},{"x":871,"y":1296,"length":1561.4919148045565},{"x":841,"y":1316,"length":1561.7736711828638},{"x":809,"y":1326,"length":1553.3051857249432},{"x":774,"y":1331,"length":1539.687305916367},{"x":747,"y":1328,"length":1523.677459306923},{"x":714,"y":1315,"length":1496.3358580211864},{"x":682,"y":1294,"length":1462.7234871977685},{"x":660,"y":1268,"length":1429.4838229235054},{"x":642,"y":1237,"length":1393.676074272641},{"x":635,"y":1207,"length":1363.8452991450313},{"x":633,"y":1175,"length":1334.6587578853255},{"x":650,"y":1102,"length":1279.4154915429156},{"x":665,"y":1041,"length":1235.275677733517},{"x":674,"y":987,"length":1195.1757192982127},{"x":681,"y":907,"length":1134.2001587021578},{"x":681,"y":825,"length":1069.7597861202298},{"x":672,"y":756,"length":1011.4939446185529},{"x":660,"y":700,"length":962.0810776644555},{"x":641,"y":651,"length":913.6093256967116},{"x":619,"y":600,"length":862.0678627579153},{"x":590,"y":547,"length":804.5551565927597},{"x":556,"y":497,"length":745.7512990266929},{"x":523,"y":456,"length":693.8767902156693},{"x":485,"y":411,"length":635.7247832199088},{"x":443,"y":372,"length":578.474718548702},{"x":392,"y":331,"length":513.0545779934139},{"x":342,"y":300,"length":454.9329620944167},{"x":286,"y":274,"length":396.0707007593468},{"x":227,"y":251,"length":338.42281246984516},{"x":172,"y":234,"length":290.4134983088768},{"x":131,"y":225,"length":260.357446599862},{"x":88,"y":214,"length":231.38712150852302},{"x":53,"y":198,"length":204.97072961767003},{"x":25,"y":177,"length":178.7568180517879},{"x":5,"y":153,"length":153.08167754502824},{"x":-8,"y":128,"length":128.2497563350512},{"x":-17,"y":98,"length":99.46356116689167},{"x":-15,"y":69,"length":70.61161377563892},{"x":-12,"y":37,"length":38.897300677553446}],"rem":true,"plr":false,"rotation":-27,"safeId":1,"line":true,"x":5703,"isStatic":false,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-69},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":5,"vertices":[{"x":0,"y":0,"length":0},{"x":40,"y":0,"length":40},{"x":40,"y":240,"length":243.3105012119288},{"x":0,"y":240,"length":240}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":2084,"isStatic":true,"physic":false,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":-8},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":5,"vertices":[{"x":19,"y":11,"length":21.95449840010015},{"x":36,"y":1,"length":36.013886210738214},{"x":63,"y":0,"length":63},{"x":86,"y":10,"length":86.57944328765345},{"x":99,"y":26,"length":102.35721762533407},{"x":159,"y":27,"length":161.27616066858735},{"x":181,"y":23,"length":182.45547402037573},{"x":204,"y":6,"length":204.08821622033938},{"x":217,"y":-18,"length":217.74526401279087},{"x":217,"y":-38,"length":220.30206535572924},{"x":237,"y":-24,"length":238.2120903732638},{"x":253,"y":11,"length":253.23901753086943},{"x":256,"y":58,"length":262.48809496813374},{"x":248,"y":113,"length":272.5307322119838},{"x":217,"y":130,"length":252.96047122030745},{"x":215,"y":106,"length":239.71024175032656},{"x":201,"y":86,"length":218.62525014279572},{"x":180,"y":72,"length":193.86593305684215},{"x":159,"y":68,"length":172.93062192682936},{"x":98,"y":71,"length":121.01652779682617},{"x":82,"y":90,"length":121.75385004179539},{"x":60,"y":100,"length":116.61903789690601},{"x":35,"y":98,"length":104.06248123122954},{"x":17,"y":86,"length":87.66413177577246},{"x":5,"y":71,"length":71.17583859709698},{"x":1,"y":49,"length":49.01020301937138},{"x":5,"y":30,"length":30.4138126514911}],"rem":true,"plr":false,"rotation":102,"safeId":2,"line":true,"x":8971,"isStatic":false,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":true,"graphic":true,"y":1764},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"type":2,"vertices":[{"x":0,"y":0,"length":0},{"x":-55,"y":-1050,"length":1051.439489461947},{"x":-35,"y":-1060,"length":1060.5776727802636},{"x":866,"y":-377,"length":944.5025145546199}],"wireframe":false,"repeatTexture":true,"textureOffset":0,"height":1073.55,"x":6640,"snapToGrid":true,"textureMode":true,"y":1050,"width":934,"straightSides":true,"originOffsetRatio":0,"smoothing":true,"stretchTexture":false,"rotation":0},"className":"frg.game.editor.objects::PillarPather"},{"params":{"type":2,"vertices":[{"x":0,"y":0,"length":0},{"x":-34,"y":70,"length":77.82030583337487}],"wireframe":false,"repeatTexture":true,"textureOffset":0,"height":83,"x":8780,"snapToGrid":true,"textureMode":true,"y":1960,"width":47,"straightSides":true,"originOffsetRatio":0,"smoothing":true,"stretchTexture":false,"rotation":0},"className":"frg.game.editor.objects::PillarPather"},{"params":{"type":2,"vertices":[{"x":0,"y":0,"length":0},{"x":-9,"y":80,"length":80.50465825031493}],"wireframe":false,"repeatTexture":true,"textureOffset":0,"height":93,"x":8880,"snapToGrid":true,"textureMode":true,"y":2000,"width":22,"straightSides":true,"originOffsetRatio":0,"smoothing":true,"stretchTexture":false,"rotation":0},"className":"frg.game.editor.objects::PillarPather"},{"params":{"sf":true,"x":2160,"vertices":[{"x":0,"y":0,"length":0},{"x":1965,"y":0,"length":1965},{"x":1965,"y":415,"length":2008.3450898687706},{"x":0,"y":415,"length":415}],"id":-1,"bg":false,"density":1.5,"viscosity":1.5,"y":390,"rotation":0},"className":"frg.game.editor.objects::WaterShaper"},{"params":{"type":2,"vertices":[{"x":0,"y":0,"length":0},{"x":16,"y":65,"length":66.94027188471824}],"wireframe":false,"repeatTexture":true,"textureOffset":0,"height":78,"x":9000,"snapToGrid":true,"textureMode":true,"y":1990,"width":29,"straightSides":true,"originOffsetRatio":0,"smoothing":true,"stretchTexture":false,"rotation":0},"className":"frg.game.editor.objects::PillarPather"},{"params":{"type":2,"vertices":[{"x":0,"y":0,"length":0},{"x":41,"y":55,"length":68.60029154456998}],"wireframe":false,"repeatTexture":true,"textureOffset":0,"height":68,"x":9080,"snapToGrid":true,"textureMode":true,"y":1930,"width":54,"straightSides":true,"originOffsetRatio":0,"smoothing":true,"stretchTexture":false,"rotation":0},"className":"frg.game.editor.objects::PillarPather"},{"params":{"layer":6,"vertices":[{"x":150,"y":-142,"length":206.55265672462312},{"x":182,"y":-120,"length":218},{"x":211,"y":-92,"length":230.18470844085192},{"x":234,"y":-61,"length":241.82018112638985},{"x":250,"y":-27,"length":251.45377308761942},{"x":261,"y":12,"length":261.27571643763605},{"x":264,"y":57,"length":270.08332047721865},{"x":259,"y":98,"length":276.9205662279348},{"x":244,"y":142,"length":282.3118842698621},{"x":222,"y":178,"length":284.5487655921213},{"x":195,"y":208,"length":285.112258592997},{"x":167,"y":232,"length":285.8548582760139},{"x":138,"y":248,"length":283.8097954616789},{"x":107,"y":260,"length":281.1565400270817},{"x":66,"y":270,"length":277.94963572561124},{"x":20,"y":268,"length":268.7452325158532},{"x":23,"y":231,"length":232.14219780126146},{"x":65,"y":230,"length":239.0083680543424},{"x":104,"y":220,"length":243.34337878808208},{"x":139,"y":201,"length":244.38085031360376},{"x":167,"y":180,"length":245.5381844031596},{"x":187,"y":160,"length":246.10770000144245},{"x":201,"y":138,"length":243.81345327934633},{"x":215,"y":107,"length":240.15411718311222},{"x":223,"y":75,"length":235.27430798963155},{"x":224,"y":45,"length":228.47538160598398},{"x":218,"y":4,"length":218.03669415949233},{"x":209,"y":-26,"length":210.61101585624624},{"x":190,"y":-56,"length":198.08079159777205},{"x":170,"y":-79,"length":187.4593289223025},{"x":147,"y":-98,"length":176.67201249773547},{"x":119,"y":-115,"length":165.48715962273326},{"x":89,"y":-126,"length":154.26276284314372},{"x":55,"y":-131,"length":142.0774436706967},{"x":18,"y":-130,"length":131.24023773218335},{"x":-11,"y":-125,"length":125.4830665866913},{"x":-15,"y":-165,"length":165.6804152578089},{"x":38,"y":-171,"length":175.17134468856486},{"x":79,"y":-167,"length":184.74306482247175},{"x":111,"y":-160,"length":194.7331507473753}],"rem":true,"plr":false,"rotation":102,"safeId":2,"line":true,"x":8971,"isStatic":false,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":1764},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"type":2,"vertices":[{"x":0,"y":0,"length":0},{"x":-30,"y":415,"length":416.08292442733097}],"wireframe":false,"repeatTexture":true,"textureOffset":0,"height":428,"x":9193,"snapToGrid":true,"textureMode":true,"y":1934,"width":43,"straightSides":true,"originOffsetRatio":0,"smoothing":true,"stretchTexture":false,"rotation":0},"className":"frg.game.editor.objects::PillarPather"},{"params":{"type":2,"vertices":[{"x":0,"y":0,"length":0},{"x":168,"y":330,"length":370.30257898102735}],"wireframe":false,"repeatTexture":true,"textureOffset":0,"height":343,"x":8703,"snapToGrid":true,"textureMode":true,"y":2024,"width":181,"straightSides":true,"originOffsetRatio":0,"smoothing":true,"stretchTexture":false,"rotation":0},"className":"frg.game.editor.objects::PillarPather"},{"params":{"vertices":[{"x":-690,"y":-80,"length":694.6221994724903},{"x":715,"y":135,"length":727.6331493273242},{"x":1025,"y":105,"length":1030.3640133467395},{"x":2170,"y":-15,"length":2170.0518426986946},{"x":2390,"y":-65,"length":2390.8837278295237},{"x":2550,"y":-140,"length":2553.8402455909413},{"x":2680,"y":-235,"length":2690.2834423160693},{"x":2755,"y":-325,"length":2774.103458777268},{"x":2835,"y":-465,"length":2872.8818284085405},{"x":2865,"y":-630,"length":2933.449334827517},{"x":2905,"y":-1255,"length":3164.498380470434},{"x":3130,"y":-1330,"length":3400.852834216735},{"x":3365,"y":-1495,"length":3682.152902854524},{"x":3525,"y":-1665,"length":3898.4419964903927},{"x":4855,"y":-2040,"length":5266.177456182046}],"textureMode":true,"isRoad":true,"shape":true,"repeatTexture":true,"rotation":0,"direction":90,"height":2241.95,"width":5560.75,"wireframe":false,"cameraOffsetY":120,"directed":true,"textureOffset":0,"thick":128,"camera":true,"lineId":-1,"x":7430,"snapToGrid":true,"smoothing":true,"y":2500,"straightSides":true,"line":true,"originOffsetRatio":0,"physic":true,"stretchTexture":false},"className":"frg.game.editor.objects::GroundPather"},{"params":{"type":2,"vertices":[{"x":36,"y":-50,"length":61.61168720299745},{"x":18,"y":142,"length":143.13629868066312},{"x":16,"y":191,"length":191.66898549321954},{"x":18,"y":236,"length":236.6854452643846},{"x":26,"y":282,"length":283.1960451701259},{"x":43,"y":325,"length":327.8322741891042},{"x":62,"y":360,"length":365.2998768135571},{"x":87,"y":392,"length":401.538292071877},{"x":108,"y":414,"length":427.85511566416966},{"x":138,"y":442,"length":463.04211471528157},{"x":171,"y":466,"length":496.38392399432115},{"x":207,"y":482,"length":524.5693471791885},{"x":251,"y":498,"length":557.6782226338051},{"x":307,"y":506,"length":591.8487982584742},{"x":362,"y":504,"length":620.5320297937891},{"x":407,"y":496,"length":641.6112530185237},{"x":452,"y":479,"length":658.5931976569451},{"x":490,"y":459,"length":671.4022639223076},{"x":529,"y":430,"length":681.7191503837926},{"x":562,"y":397,"length":688.0792105564591},{"x":586,"y":364,"length":689.8492588964635},{"x":605,"y":330,"length":689.1480247377917},{"x":620,"y":295,"length":686.6039615382364},{"x":629,"y":261,"length":681.0007342139949},{"x":635,"y":221,"length":672.3585353068703},{"x":636,"y":179,"length":660.7094671638965},{"x":632,"y":141,"length":647.5376436933994},{"x":634,"y":125,"length":646.2050758079822},{"x":645,"y":118,"length":655.7049641416481},{"x":661,"y":121,"length":671.9836307530118},{"x":684,"y":135,"length":697.1950946471153},{"x":709,"y":149,"length":724.487404997492},{"x":740,"y":162,"length":757.52491708194},{"x":771,"y":171,"length":789.7353987254212},{"x":799,"y":177,"length":818.370331818059},{"x":847,"y":179,"length":865.7078028988765},{"x":897,"y":175,"length":913.9113742590142},{"x":947,"y":162,"length":960.756472785898},{"x":991,"y":142,"length":1001.1218707030628},{"x":1031,"y":115,"length":1037.39384999141},{"x":1075,"y":76,"length":1077.6831630864426},{"x":1097,"y":48,"length":1098.049634579421},{"x":1115,"y":30,"length":1115.403514428747},{"x":1132,"y":30,"length":1132.397456726215},{"x":1143,"y":48,"length":1144.0074300458018},{"x":1153,"y":75,"length":1155.4367139744174},{"x":1166,"y":112,"length":1171.3667231059621},{"x":1184,"y":147,"length":1193.0905246459718},{"x":1207,"y":181,"length":1220.4958008940464},{"x":1233,"y":207,"length":1250.2551739545013},{"x":1260,"y":233,"length":1281.3621658219818},{"x":1298,"y":259,"length":1323.58792681106},{"x":1340,"y":278,"length":1368.5335216939336},{"x":1395,"y":292,"length":1425.2329634133503},{"x":1447,"y":297,"length":1477.1655289777107},{"x":1498,"y":294,"length":1526.5778722358057},{"x":1544,"y":284,"length":1569.9019077636667},{"x":1586,"y":268,"length":1608.4837580777744},{"x":1622,"y":247,"length":1640.698936429228},{"x":1651,"y":222,"length":1665.8586374599736},{"x":1680,"y":194,"length":1691.1640961184105},{"x":1707,"y":163,"length":1714.7647068912981},{"x":1729,"y":126,"length":1733.5850137792493},{"x":1744,"y":87,"length":1746.1686631021644},{"x":1755,"y":51,"length":1755.7408692628876},{"x":1759,"y":3,"length":1759.002558269885},{"x":1758,"y":-32,"length":1758.29121592528},{"x":1754,"y":-66,"length":1755.2412939536262},{"x":1745,"y":-99,"length":1747.8060533136966},{"x":1733,"y":-137,"length":1738.4067418184964},{"x":1710,"y":-178,"length":1719.239366696796},{"x":1688,"y":-207,"length":1700.6448776861089},{"x":1530,"y":-389,"length":1578.6769777253357},{"x":1534,"y":-432,"length":1593.6687234177623},{"x":1565,"y":-448,"length":1627.8602519872522},{"x":1622,"y":-415,"length":1674.248786769756},{"x":1647,"y":-392,"length":1693.0070879946131},{"x":1756,"y":-160,"length":1763.2742271127313},{"x":1772,"y":-120,"length":1776.0585575931893},{"x":1784,"y":-78,"length":1785.704342829462},{"x":1790,"y":-35,"length":1790.3421460715267},{"x":1791,"y":0,"length":1791},{"x":1789,"y":32,"length":1789.2861705160524},{"x":1783,"y":68,"length":1784.296219802082},{"x":1774,"y":101,"length":1776.8728148069574},{"x":1765,"y":125,"length":1769.4208091915275},{"x":1750,"y":156,"length":1756.9393842702714},{"x":1730,"y":184,"length":1739.7574543596588},{"x":1705,"y":216,"length":1718.627650190698},{"x":1681,"y":241,"length":1698.1878576883066},{"x":1652,"y":263,"length":1672.8039335200046},{"x":1616,"y":287,"length":1641.2876042912162},{"x":1580,"y":303,"length":1608.7911610895928},{"x":1547,"y":316,"length":1578.9442675408147},{"x":1502,"y":325,"length":1536.7592524530314},{"x":1457,"y":328,"length":1493.4634243931118},{"x":1414,"y":327,"length":1451.318366176078},{"x":1377,"y":322,"length":1414.1474463435559},{"x":1334,"y":310,"length":1369.5459101468632},{"x":1297,"y":294,"length":1329.9041318831971},{"x":1266,"y":277,"length":1295.949458891048},{"x":1236,"y":255,"length":1262.030506762812},{"x":1211,"y":232,"length":1233.0227086311104},{"x":1185,"y":204,"length":1202.4312870180981},{"x":1161,"y":172,"length":1173.6715895002314},{"x":1142,"y":140,"length":1150.5494339662246},{"x":1137,"y":114,"length":1142.7007482276363},{"x":1126,"y":101,"length":1130.5206765026458},{"x":1111,"y":103,"length":1115.7643120300988},{"x":1084,"y":122,"length":1090.8437101620011},{"x":1061,"y":142,"length":1070.4601814173193},{"x":1029,"y":164,"length":1041.987044065328},{"x":997,"y":182,"length":1013.4757027181263},{"x":954,"y":200,"length":974.7389394089065},{"x":914,"y":210,"length":937.814480587712},{"x":873,"y":215,"length":899.0850905225823},{"x":829,"y":217,"length":856.9305689494336},{"x":792,"y":214,"length":820.4023403184561},{"x":753,"y":205,"length":780.4063044337865},{"x":721,"y":195,"length":746.9042776688322},{"x":690,"y":182,"length":713.5993273539431},{"x":669,"y":194,"length":696.560837256876},{"x":665,"y":236,"length":705.6351748602106},{"x":661,"y":267,"length":712.8884905789965},{"x":652,"y":296,"length":716.0446913426564},{"x":639,"y":330,"length":719.1807839479584},{"x":624,"y":361,"length":720.9001317797077},{"x":603,"y":395,"length":720.8564350826036},{"x":579,"y":424,"length":717.6468490838652},{"x":554,"y":451,"length":714.3647527698997},{"x":528,"y":470,"length":706.8833001281046},{"x":504,"y":487,"length":700.8459174454824},{"x":479,"y":501,"length":693.1392356518278},{"x":449,"y":515,"length":683.2466611700346},{"x":415,"y":526,"length":670.0007462682411},{"x":385,"y":532,"length":656.6955154407558},{"x":341,"y":537,"length":636.121057661197},{"x":302,"y":536,"length":615.223536610881},{"x":261,"y":531,"length":591.6772769001697},{"x":222,"y":520,"length":565.4060487826425},{"x":179,"y":505,"length":535.7854048030797},{"x":146,"y":485,"length":506.4987660399579},{"x":112,"y":461,"length":474.4101600935629},{"x":88,"y":438,"length":446.75272802748503},{"x":60,"y":407,"length":411.3988332506547},{"x":38,"y":378,"length":379.905251345648},{"x":20,"y":348,"length":348.5742388645495},{"x":5,"y":313,"length":313.0399335548102},{"x":-2,"y":281,"length":281.0071173475861},{"x":-8,"y":240,"length":240.13329631685815},{"x":-11,"y":194,"length":194.31160541768986},{"x":-10,"y":160,"length":160.31219541881399},{"x":0,"y":31,"length":31},{"x":3,"y":-32,"length":32.14031735997639}],"wireframe":false,"repeatTexture":true,"textureOffset":0,"height":998.35,"x":8060,"snapToGrid":false,"textureMode":true,"y":1900,"width":1815,"straightSides":true,"originOffsetRatio":0,"smoothing":true,"stretchTexture":false,"rotation":0},"className":"frg.game.editor.objects::PillarPather"},{"params":{"layer":6,"vertices":[{"x":162,"y":-166,"length":231.94827009486403},{"x":197,"y":-140,"length":241.6795398870165},{"x":229,"y":-106,"length":252.3430205097815},{"x":254,"y":-69,"length":263.20524310887123},{"x":271,"y":-29,"length":272.5472436110848},{"x":283,"y":12,"length":283.2543027034188},{"x":286,"y":65,"length":293.29336848964044},{"x":281,"y":114,"length":303.2441260766645},{"x":265,"y":166,"length":312.69953629642623},{"x":241,"y":208,"length":318.34729463276426},{"x":211,"y":244,"length":322.57867257461396},{"x":181,"y":272,"length":326.71853329739344},{"x":149,"y":291,"length":326.9281266578329},{"x":115,"y":306,"length":326.8960079291272},{"x":85,"y":315,"length":326.266762021509},{"x":20,"y":275,"length":275.72631357924473},{"x":70,"y":270,"length":278.9265136196271},{"x":112,"y":258,"length":281.26144421160893},{"x":150,"y":235,"length":278.792037189013},{"x":181,"y":210,"length":277.2381647609146},{"x":202,"y":186,"length":274.5906043549196},{"x":218,"y":160,"length":270.4144966528237},{"x":233,"y":123,"length":263.47295876427245},{"x":242,"y":86,"length":256.82678987987214},{"x":243,"y":52,"length":248.50150904974402},{"x":236,"y":2,"length":236.00847442411893},{"x":226,"y":-28,"length":227.72790781983662},{"x":206,"y":-64,"length":215.7127719909046},{"x":184,"y":-91,"length":205.27298896834918},{"x":159,"y":-114,"length":195.64508682816444},{"x":129,"y":-133,"length":185.28356645962967},{"x":96,"y":-146,"length":174.73408368146153},{"x":59,"y":-153,"length":163.98170629676957},{"x":19,"y":-152,"length":153.18289721767243},{"x":-11,"y":-145,"length":145.41664278891878},{"x":-40,"y":-128,"length":134.1044369139217},{"x":-64,"y":-103,"length":121.26417442921878},{"x":-79,"y":-110,"length":135.4289481610191},{"x":-88,"y":-119,"length":148.00337833982033},{"x":-90,"y":-134,"length":161.4187101918486},{"x":-64,"y":-160,"length":172.32527382830412},{"x":-30,"y":-180,"length":182.4828759089466},{"x":7,"y":-192,"length":192.12756179163884},{"x":52,"y":-197,"length":203.74739262135355},{"x":85,"y":-195,"length":212.72047386182646},{"x":120,"y":-186,"length":221.3504009483606}],"rem":true,"plr":false,"rotation":-84,"safeId":1,"line":true,"x":7781,"isStatic":true,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":1904},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"layer":0,"vertices":[{"x":-68,"y":30,"length":74.32361670424818},{"x":-1,"y":11,"length":11.045361017187261},{"x":60,"y":-16,"length":62.0966987850401},{"x":105,"y":-45,"length":114.23659658795863},{"x":173,"y":-94,"length":196.88829320200833},{"x":240,"y":-148,"length":281.9645367772337},{"x":296,"y":-217,"length":367.02179771779225},{"x":340,"y":-289,"length":446.22976144582736},{"x":380,"y":-374,"length":533.1753932806727},{"x":405,"y":-462,"length":614.3850584120678},{"x":423,"y":-557,"length":699.412610695575},{"x":428,"y":-695,"length":816.2162703597619},{"x":428,"y":-852,"length":953.4610637042291},{"x":426,"y":-955,"length":1045.7059816219853},{"x":422,"y":-1091,"length":1169.7713451781933},{"x":444,"y":-1148,"length":1230.869611291139},{"x":481,"y":-1176,"length":1270.5656220754597},{"x":549,"y":-1193,"length":1313.2593041741604},{"x":1467,"y":-1193,"length":1890.8564197209687},{"x":1545,"y":-1200,"length":1956.2783544270994},{"x":1609,"y":-1215,"length":2016.2108024708132},{"x":1673,"y":-1238,"length":2081.2431381268266},{"x":1727,"y":-1267,"length":2141.9192328376903},{"x":1787,"y":-1308,"length":2214.5502929488866},{"x":1835,"y":-1351,"length":2278.6895356761524},{"x":1885,"y":-1406,"length":2351.6081731444974},{"x":1922,"y":-1462,"length":2414.855689270065},{"x":1951,"y":-1517,"length":2471.374111703851},{"x":1971,"y":-1571,"length":2520.492412208376},{"x":1984,"y":-1624,"length":2563.9095147840144},{"x":1991,"y":-1675,"length":2601.8658689486665},{"x":1995,"y":-1704,"length":2623.6693770366724},{"x":2006,"y":-1721,"length":2643.0809673560893},{"x":2021,"y":-1731,"length":2660.977639891023},{"x":2038,"y":-1731,"length":2673.911928242963},{"x":2052,"y":-1724,"length":2680.0895507426612},{"x":2067,"y":-1701,"length":2676.918003973973},{"x":2625,"y":-600,"length":2692.698460652436},{"x":2562,"y":-588,"length":2628.609518357567},{"x":2460,"y":-565,"length":2524.0493259839436},{"x":2377,"y":-540,"length":2437.5662042291283},{"x":2316,"y":-512,"length":2371.9190542680835},{"x":2263,"y":-485,"length":2314.388472145504},{"x":2207,"y":-449,"length":2252.2100257302827},{"x":2138,"y":-400,"length":2175.096319706325},{"x":2074,"y":-340,"length":2101.6840866314806},{"x":2018,"y":-278,"length":2037.0586638582602},{"x":1965,"y":-200,"length":1975.1518928933035},{"x":1920,"y":-116,"length":1923.5009747853003},{"x":1867,"y":-14,"length":1867.0524898888086},{"x":1790,"y":80,"length":1791.7868176767013},{"x":1704,"y":170,"length":1712.4590506052984},{"x":1609,"y":235,"length":1626.070724169155},{"x":1538,"y":278,"length":1562.9229027690394},{"x":1415,"y":326,"length":1452.067835880955},{"x":1278,"y":329,"length":1319.6685189849761},{"x":1136,"y":301,"length":1175.2008339003169},{"x":1004,"y":264,"length":1038.1290863856962},{"x":860,"y":233,"length":891.0044893265128},{"x":794,"y":221,"length":824.1826253931831},{"x":718,"y":216,"length":749.7866363172926},{"x":624,"y":220,"length":661.6464312606847},{"x":549,"y":240,"length":599.1669216503861},{"x":474,"y":266,"length":543.5365673071132},{"x":404,"y":304,"length":505.60063291099624},{"x":334,"y":354,"length":486.69497634555466},{"x":283,"y":401,"length":490.8054604423223},{"x":240,"y":449,"length":509.11786454611865},{"x":211,"y":486,"length":529.827330363393},{"x":179,"y":540,"length":568.894542072606},{"x":152,"y":601,"length":619.9233823626917},{"x":130,"y":679,"length":691.3327708130145},{"x":115,"y":752,"length":760.7424005535645},{"x":112,"y":821,"length":828.6042481184851},{"x":115,"y":884,"length":891.4488207407086},{"x":122,"y":947,"length":954.8261621886992},{"x":140,"y":1011,"length":1020.6473436011089},{"x":156,"y":1074,"length":1085.2704732001143},{"x":187,"y":1140,"length":1155.2354738320669},{"x":228,"y":1214,"length":1235.2246759193245},{"x":277,"y":1282,"length":1311.5841566594192},{"x":316,"y":1320,"length":1357.2973145188198},{"x":363,"y":1340,"length":1388.2971583922515},{"x":425,"y":1348,"length":1413.4104145647152},{"x":480,"y":1343,"length":1426.2008974895507},{"x":521,"y":1327,"length":1425.6121492187137},{"x":560,"y":1296,"length":1411.8130187811698},{"x":681,"y":1318,"length":1483.538000861454},{"x":716,"y":1395,"length":1568.0181759150626},{"x":762,"y":1448,"length":1636.2603704789774},{"x":807,"y":1486,"length":1690.9893553774962},{"x":876,"y":1516,"length":1750.8946284685437},{"x":942,"y":1537,"length":1802.7015837348122},{"x":1055,"y":1557,"length":1880.7642063799492},{"x":1157,"y":1560,"length":1942.2278445125844},{"x":1255,"y":1556,"length":1999.0400196094124},{"x":1347,"y":1535,"length":2042.2130153341006},{"x":1414,"y":1510,"length":2068.6942741739294},{"x":1504,"y":1472,"length":2104.471430074545},{"x":1578,"y":1427,"length":2127.536838693986},{"x":1651,"y":1370,"length":2145.390640419595},{"x":1698,"y":1330,"length":2156.8736634304755},{"x":1745,"y":1294,"length":2172.4320472686827},{"x":2025,"y":1287,"length":2399.373668272618},{"x":2114,"y":1310,"length":2486.985323639848},{"x":2196,"y":1334,"length":2569.430287048084},{"x":2265,"y":1352,"length":2637.826567460416},{"x":2334,"y":1365,"length":2703.845594703958},{"x":2415,"y":1375,"length":2779.0016192870416},{"x":2510,"y":1384,"length":2866.279121090617},{"x":2595,"y":1382,"length":2940.0593531423815},{"x":2687,"y":1362,"length":3012.476223972564},{"x":2774,"y":1337,"length":3079.390361743701},{"x":2847,"y":1300,"length":3129.7618120234006},{"x":2908,"y":1252,"length":3166.065065661159},{"x":2963,"y":1202,"length":3197.526074952322},{"x":3019,"y":1150,"length":3230.613099707237},{"x":3068,"y":1082,"length":3253.205803511361},{"x":3107,"y":1006,"length":3265.8054136766937},{"x":3137,"y":920,"length":3269.1235828582558},{"x":3157,"y":830,"length":3264.2838418250335},{"x":3165,"y":727,"length":3247.4226703649156},{"x":3153,"y":635,"length":3216.3075101737395},{"x":3133,"y":553,"length":3181.4301815378567},{"x":3100,"y":462,"length":3134.237387308115},{"x":3047,"y":382,"length":3070.8521618599616},{"x":2827,"y":95,"length":2828.5957646860747},{"x":2793,"y":61,"length":2793.6660501928286},{"x":2747,"y":30,"length":2747.1638101867898},{"x":2691,"y":16,"length":2691.04756554023},{"x":2645,"y":13,"length":2645.0319468770126},{"x":2606,"y":19,"length":2606.069262318252},{"x":2570,"y":32,"length":2570.199214068824},{"x":2538,"y":47,"length":2538.435147881466},{"x":2506,"y":75,"length":2507.1220552657583},{"x":2478,"y":111,"length":2480.4848316407824},{"x":2460,"y":155,"length":2464.8782931414685},{"x":2450,"y":204,"length":2458.478391200541},{"x":2449,"y":246,"length":2461.3242370723933},{"x":2456,"y":284,"length":2472.3656687472426},{"x":2474,"y":321,"length":2494.737861980693},{"x":2497,"y":356,"length":2522.2499876102684},{"x":2536,"y":394,"length":2566.4239712097456},{"x":2583,"y":417,"length":2616.443769699628},{"x":2603,"y":432,"length":2638.6043659480288},{"x":2620,"y":456,"length":2659.3863953927416},{"x":2624,"y":484,"length":2668.26385501884},{"x":2610,"y":534,"length":2664.0675667107243},{"x":2584,"y":513,"length":2634.430678533789},{"x":2544,"y":490,"length":2590.7597341320557},{"x":2510,"y":479,"length":2555.2966559677566},{"x":2475,"y":470,"length":2519.2310334703325},{"x":2450,"y":458,"length":2492.4413734328837},{"x":2423,"y":439,"length":2462.447968993457},{"x":2403,"y":416,"length":2438.742503832662},{"x":2379,"y":376,"length":2408.5300496360846},{"x":2366,"y":352,"length":2392.040969548808},{"x":2356,"y":319,"length":2377.498054678489},{"x":2348,"y":282,"length":2364.873780987053},{"x":2341,"y":236,"length":2352.8656995247306},{"x":2342,"y":205,"length":2350.9549123707156},{"x":2345,"y":168,"length":2351.010208399785},{"x":2358,"y":116,"length":2360.851541287592},{"x":2378,"y":72,"length":2379.089741897098},{"x":2411,"y":23,"length":2411.1097030205824},{"x":2442,"y":-7,"length":2442.0100327394234},{"x":2472,"y":-35,"length":2472.2477626645755},{"x":2510,"y":-56,"length":2510.624623475202},{"x":2551,"y":-77,"length":2552.1618287248166},{"x":2595,"y":-88,"length":2596.4916714674823},{"x":2656,"y":-95,"length":2657.6984403803226},{"x":2703,"y":-91,"length":2704.531382698304},{"x":2748,"y":-82,"length":2749.223163004415},{"x":2788,"y":-71,"length":2788.9039065554052},{"x":2827,"y":-51,"length":2827.4599908752025},{"x":2862,"y":-31,"length":2862.1678846636514},{"x":2884,"y":-13,"length":2884.0292994350802},{"x":2941,"y":51,"length":2941.442163293373},{"x":2970,"y":86,"length":2971.2448569581065},{"x":3031,"y":128,"length":3033.701534429516},{"x":3081,"y":150,"length":3084.649250725275},{"x":3137,"y":158,"length":3140.9764405356495},{"x":3188,"y":161,"length":3192.0628126651895},{"x":3245,"y":157,"length":3248.795776899496},{"x":3295,"y":148,"length":3298.322149214658},{"x":3345,"y":129,"length":3347.4865197637464},{"x":3403,"y":98,"length":3404.410815398165},{"x":3456,"y":59,"length":3456.503580209342},{"x":3497,"y":22,"length":3497.0692014885835},{"x":3533,"y":-22,"length":3533.068496364032},{"x":3562,"y":-70,"length":3562.687749438617},{"x":3587,"y":-138,"length":3589.6536044582353},{"x":3597,"y":-212,"length":3603.24201241049},{"x":3592,"y":-291,"length":3603.768166794307},{"x":3575,"y":-357,"length":3592.780817138724},{"x":3555,"y":-408,"length":3578.336065827244},{"x":3527,"y":-455,"length":3556.2274955351213},{"x":3500,"y":-490,"length":3534.1335571820146},{"x":3470,"y":-520,"length":3508.7462148180507},{"x":3430,"y":-551,"length":3473.974812804491},{"x":3378,"y":-581,"length":3427.60047263388},{"x":3328,"y":-601,"length":3381.831604323314},{"x":3278,"y":-611,"length":3334.4572271960546},{"x":3230,"y":-617,"length":3288.4021955959097},{"x":3175,"y":-615,"length":3234.0145330533073},{"x":2944,"y":-628,"length":3010.235871156943},{"x":1635,"y":-3470,"length":3835.8995033759684},{"x":6670,"y":-6800,"length":9525.171914459077},{"x":7190,"y":690,"length":7223.032604107502},{"x":6630,"y":2990,"length":7273.03237996367},{"x":405,"y":3005,"length":3032.1691905301063},{"x":-2785,"y":3010,"length":4100.771268920031},{"x":-6067,"y":1924,"length":6364.767474150175},{"x":-6905,"y":865,"length":6958.969032838126},{"x":-6905,"y":-1335,"length":7032.869257991364},{"x":-6375,"y":-1335,"length":6513.282582538547},{"x":-6375,"y":-485,"length":6393.42240118702},{"x":-5525,"y":-486,"length":5546.334014463969},{"x":-5485,"y":-492,"length":5507.021790405409},{"x":-5443,"y":-503,"length":5466.19227616446},{"x":-5406,"y":-517,"length":5430.665244700689},{"x":-5366,"y":-537,"length":5392.803074468787},{"x":-5338,"y":-558,"length":5367.085615117388},{"x":-5298,"y":-595,"length":5331.306500286773},{"x":-5080,"y":-835,"length":5148.167149578576},{"x":-4987,"y":-835,"length":5056.421066327447},{"x":-4484,"y":-516,"length":4513.591917752424},{"x":-3435,"y":-513,"length":3473.0957372350103},{"x":-3140,"y":-768,"length":3232.5568827168377},{"x":-3073,"y":-811,"length":3178.2149077744884},{"x":-2988,"y":-840,"length":3103.82731478412},{"x":-2890,"y":-850,"length":3012.4076749337896},{"x":-2775,"y":-845,"length":2900.801613347593},{"x":-2652,"y":-822,"length":2776.4704212362863},{"x":-2512,"y":-785,"length":2631.799574435713},{"x":-2355,"y":-715,"length":2461.148106067573},{"x":-2242,"y":-642,"length":2332.108059245969},{"x":-1601,"y":-133,"length":1606.5148614314155},{"x":-1515,"y":-67,"length":1516.4807944711993},{"x":-1440,"y":-30,"length":1440.3124660989365},{"x":-1356,"y":0,"length":1356},{"x":-1249,"y":21,"length":1249.1765287580454},{"x":-1160,"y":25,"length":1160.269365276874},{"x":-1082,"y":21,"length":1082.2037700913816},{"x":-1010,"y":0,"length":1010},{"x":-926,"y":-42,"length":926.9519944419991},{"x":-882,"y":-83,"length":885.8967208427854},{"x":-845,"y":-128,"length":854.6396901618833},{"x":-822,"y":-176,"length":840.6307155939521},{"x":-809,"y":-221,"length":838.6429514400035},{"x":-769,"y":-215,"length":798.4898246064254},{"x":-732,"y":-186,"length":755.2615441024387},{"x":-700,"y":-156,"length":717.172224782862},{"x":-653,"y":-106,"length":661.5474283828787},{"x":-608,"y":-77,"length":612.8564269060087},{"x":-551,"y":-41,"length":552.5233026760047},{"x":-496,"y":-10,"length":496.1007962098025},{"x":-431,"y":24,"length":431.6676962664684},{"x":-348,"y":40,"length":350.2913073429028},{"x":-270,"y":48,"length":274.2334771686345},{"x":-181,"y":53,"length":188.6001060445089}],"rem":true,"plr":false,"rotation":0,"safeId":-1,"line":true,"x":7130,"isStatic":true,"physic":true,"id":-1,"isWheel":false,"density":1,"ignore":false,"graphic":true,"y":1056},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"vertices":[{"x":-50,"y":150,"length":158.11388300841898},{"x":2175,"y":155,"length":2180.5159939794066},{"x":5020,"y":95,"length":5020.898823915893},{"x":5105,"y":130,"length":5106.654971701143},{"x":5576,"y":525,"length":5600.660764588407},{"x":5670,"y":593,"length":5700.9252757776085},{"x":5758,"y":636,"length":5793.018211606105},{"x":5825,"y":658,"length":5862.046485656694},{"x":5928,"y":679,"length":5966.760008580872},{"x":6012,"y":683,"length":6050.672111426961},{"x":6097,"y":677,"length":6134.471289361456},{"x":6175,"y":655,"length":6209.641696587654},{"x":6255,"y":615,"length":6285.161095787442},{"x":6380,"y":570,"length":6405.4117744294945},{"x":7025,"y":515,"length":7043.8519291648945},{"x":7280,"y":480,"length":7295.807014991556},{"x":7500,"y":325,"length":7507.0383640953905},{"x":7760,"y":-295,"length":7765.605256514137},{"x":8910,"y":-340,"length":8916.484733346433},{"x":9015,"y":-370,"length":9022.589705843882},{"x":9145,"y":-370,"length":9152.481903833517},{"x":9225,"y":-325,"length":9230.723156936298},{"x":10150,"y":700,"length":10174.109297624043},{"x":10270,"y":765,"length":10298.45255366067},{"x":10390,"y":770,"length":10418.49317319928},{"x":10540,"y":745,"length":10566.296654930715},{"x":10640,"y":690,"length":10662.34964724005},{"x":11225,"y":85,"length":11225.321821667298}],"textureMode":true,"isRoad":false,"shape":false,"repeatTexture":true,"rotation":0,"direction":90,"height":1153,"width":11288,"wireframe":false,"cameraOffsetY":120,"directed":false,"textureOffset":0,"thick":128,"camera":true,"lineId":0,"x":-40,"snapToGrid":true,"smoothing":true,"y":448,"straightSides":true,"line":false,"originOffsetRatio":0,"physic":false,"stretchTexture":false},"className":"frg.game.editor.objects::GroundPather"},{"params":{"action":0,"type":7,"originOffsetRatio":0,"vertices":[{"x":0,"y":0,"length":0},{"x":677,"y":270,"length":728.8545808321438}],"snapToGrid":false,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":284.9,"x":2100,"isStatic":false,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":16,"y":0,"width":690},"className":"frg.game.editor.objects::DynamicPather"},{"params":{"action":0,"type":7,"originOffsetRatio":0,"vertices":[{"x":291,"y":28,"length":292.3439754809392},{"x":826,"y":-269,"length":868.6984517080712}],"snapToGrid":false,"textureMode":true,"straightSides":true,"repeatTexture":true,"rotation":0,"safeId":-1,"height":311,"x":3380,"isStatic":false,"smoothing":true,"id":-1,"textureOffset":0,"wireframe":false,"stretchTexture":false,"density":"1","physic":true,"graphic":true,"shapeH":16,"y":240,"width":548},"className":"frg.game.editor.objects::DynamicPather"}],[{"params":{"height":128.35,"x":8000,"y":-200,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":128.35,"x":8990,"y":2286,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":90.05,"x":8790,"y":2190,"rotation":-27,"width":102},"className":"Sign21"},{"params":{"height":90.05,"x":9175,"y":2126,"rotation":9,"width":102},"className":"Sign21"},{"params":{"height":18,"x":3366,"id":-1,"width":85.1,"safeId":-1,"y":265,"rotation":0,"active":true},"className":"PlankWipe0"},{"params":{"height":18,"x":3296,"id":-1,"width":85.1,"safeId":-1,"y":264,"rotation":0,"active":true},"className":"PlankWipe0"},{"params":{"height":18,"x":3647,"id":-1,"width":85.1,"safeId":-1,"y":265,"rotation":0,"active":true},"className":"PlankWipe0"},{"params":{"height":18,"x":3227,"id":-1,"width":85.1,"safeId":-1,"y":264,"rotation":0,"active":true},"className":"PlankWipe0"},{"params":{"height":18,"x":2876,"id":-1,"width":85.1,"safeId":-1,"y":265,"rotation":0,"active":true},"className":"PlankWipe0"},{"params":{"height":18,"x":3017,"id":-1,"width":85.1,"safeId":-1,"y":265,"rotation":0,"active":true},"className":"PlankWipe0"},{"params":{"height":18,"x":3576,"id":-1,"width":85.1,"safeId":-1,"y":264,"rotation":0,"active":true},"className":"PlankWipe0"},{"params":{"height":18,"x":3157,"id":-1,"width":85.1,"safeId":-1,"y":264,"rotation":0,"active":true},"className":"PlankWipe0"},{"params":{"height":18,"x":3506,"id":-1,"width":85.1,"safeId":-1,"y":264,"rotation":0,"active":true},"className":"PlankWipe0"},{"params":{"height":18,"x":3436,"id":-1,"width":85.1,"safeId":-1,"y":265,"rotation":0,"active":true},"className":"PlankWipe0"},{"params":{"height":18,"x":2806,"id":-1,"width":85.1,"safeId":-1,"y":264,"rotation":0,"active":true},"className":"PlankWipe0"},{"params":{"height":18,"x":3087,"id":-1,"width":85.1,"safeId":-1,"y":264,"rotation":0,"active":true},"className":"PlankWipe0"},{"params":{"height":18,"x":2946,"id":-1,"width":85.1,"safeId":-1,"y":265,"rotation":0,"active":true},"className":"PlankWipe0"}],[{"params":{"rate":1,"height":128,"x":9700,"id":-1,"rotation":-98,"speed":1000,"y":722,"width":492,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":9496,"id":-1,"rotation":-121,"speed":1000,"y":799,"width":492,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":9334,"id":-1,"rotation":-145.00000000000006,"speed":1000,"y":951,"width":492,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":7997,"id":-1,"rotation":-71,"speed":1000,"y":1473,"width":363,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":7787,"id":-1,"rotation":-98,"speed":1000,"y":1453,"width":363,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":7585,"id":-1,"rotation":-128,"speed":1000,"y":1539,"width":363,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":7455,"id":-1,"rotation":-155,"speed":1000,"y":1700,"width":363,"safeId":-1},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":7768,"id":-1,"rotation":-80,"speed":2000,"y":2284,"width":166,"safeId":-1},"className":"GeyserE"},{"params":{"height":18,"x":9774,"y":513,"rotation":63.00000000000003,"ttl":1,"width":132,"safeId":-1},"className":"GlassCrashed0"},{"params":{"height":18,"x":9833,"y":629,"rotation":63.00000000000003,"ttl":1,"width":132,"safeId":-1},"className":"GlassCrashed0"},{"params":{"height":18,"x":9951,"y":861,"rotation":63.00000000000003,"ttl":1,"width":132,"safeId":-1},"className":"GlassCrashed0"},{"params":{"height":18,"x":9892,"y":745,"rotation":63.00000000000003,"ttl":1,"width":132,"safeId":-1},"className":"GlassCrashed0"},{"params":{"height":18,"x":10010,"y":977,"rotation":63.00000000000003,"ttl":1,"width":132,"safeId":-1},"className":"GlassCrashed0"},{"params":{"height":18,"x":10069,"y":1093,"rotation":63.00000000000003,"ttl":1,"width":132,"safeId":-1},"className":"GlassCrashed0"}],null,[{"params":{"height":32,"x":1050,"y":520,"rotation":0,"width":64},"className":"PlayerWP"},{"params":{"height":2311,"x":8000,"y":-280,"width":128,"id":2,"rotation":0},"className":"SafePointE"},{"params":{"height":387,"x":8990,"y":2210,"width":128,"id":3,"rotation":0},"className":"SafePointE"}],[{"params":{"height":1592,"x":6150,"id_off":-1,"id":3,"safeId":1,"rotation":0,"off":false,"sndId":-1,"y":570,"width":144,"hint":-1},"className":"ToggleE"},{"params":{"useWeld":false,"rotation":0,"safeId":1,"rate":28,"height":17,"x":6589,"id":3,"width":17,"snd":false,"graphic":1,"time":0,"y":-24},"className":"MotorJointE"},{"params":{"height":64,"x":8947,"id_off":-1,"id":12,"safeId":2,"rotation":105,"off":false,"sndId":-1,"y":1969,"width":87,"hint":-1},"className":"ToggleE"},{"params":{"height":17,"x":8819,"y":1967,"rotation":-168,"graphic":0,"id":-1,"width":17,"safeId":2},"className":"PivotJointE"},{"params":{"height":17,"x":9109,"y":1834,"rotation":-168,"graphic":0,"id":12,"width":17,"safeId":2},"className":"PivotJointE"},{"params":{"useWeld":false,"rotation":-168,"safeId":2,"rate":-150,"height":17,"x":8909,"id":12,"width":17,"snd":false,"graphic":2,"time":0.4,"y":1802},"className":"MotorJointE"},{"params":{"height":17,"x":8936,"y":1989,"rotation":-168,"graphic":0,"id":-1,"width":17,"safeId":2},"className":"PivotJointE"},{"params":{"useWeld":false,"rotation":0,"safeId":2,"rate":30,"height":17,"x":8387,"id":41,"width":17,"snd":false,"graphic":0,"time":0,"y":2099},"className":"MotorJointE"},{"params":{"useWeld":false,"rotation":0,"safeId":2,"rate":-30,"height":17,"x":9517,"id":41,"width":17,"snd":false,"graphic":0,"time":0,"y":1889},"className":"MotorJointE"},{"params":{"height":1428,"x":9370,"id_off":-1,"id":41,"safeId":2,"rotation":0,"off":false,"sndId":-1,"y":620,"width":64,"hint":-1},"className":"ToggleE"},{"params":{"height":17,"x":7000,"y":-690,"rotation":0,"graphic":0,"id":3,"width":17,"safeId":1},"className":"PivotJointE"},{"params":{"height":17,"x":2104,"y":1,"rotation":0,"graphic":1,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":4204,"y":-25,"rotation":0,"graphic":1,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":584,"x":3777,"id_off":-1,"id":0,"safeId":-1,"rotation":0,"off":false,"sndId":0,"y":131,"width":179,"hint":-1},"className":"ToggleE"},{"params":{"height":1854,"x":7037,"id_off":-1,"id":0,"safeId":-1,"rotation":0,"off":false,"sndId":0,"y":-989,"width":179,"hint":-1},"className":"ToggleE"},{"params":{"height":944,"x":8917,"id_off":-1,"id":0,"safeId":-1,"rotation":0,"off":false,"sndId":0,"y":1501,"width":179,"hint":-1},"className":"ToggleE"},{"params":{"height":144,"x":7837,"id_off":-1,"id":0,"safeId":-1,"rotation":0,"off":false,"sndId":0,"y":1801,"width":179,"hint":-1},"className":"ToggleE"},{"params":{"height":17,"x":3470,"y":265,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3400,"y":265,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3611,"y":266,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3120,"y":265,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3330,"y":265,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3681,"y":265,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3540,"y":266,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3260,"y":265,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":2770,"y":266,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3191,"y":265,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":2981,"y":266,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":3051,"y":265,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":2911,"y":265,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"},{"params":{"height":17,"x":2840,"y":265,"rotation":0,"graphic":0,"id":-1,"width":17,"safeId":-1},"className":"PivotJointE"}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map3.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map3.json new file mode 100644 index 000000000..57bd471d8 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map3.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"26,33,42"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5030,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-490,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":3130,"y":10,"length":3130.0159744001307},{"x":3130,"y":525,"length":3173.724153104677},{"x":0,"y":515,"length":515}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":5035,"viscosity":1.5,"rotation":0,"y":-490,"vertices":[{"x":0,"y":0,"length":0},{"x":1265,"y":0,"length":1265},{"x":1260,"y":500,"length":1355.5810562264435},{"x":-5,"y":500,"length":500.02499937503126}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9744,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":201,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":975,"y":5,"length":975.0128204285315},{"x":1040,"y":-110,"length":1045.8011283222063},{"x":3280,"y":-105,"length":3281.6802098924873},{"x":3280,"y":250,"length":3289.513641862578},{"x":0,"y":250,"length":250}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1460,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":70,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1700,"y":0,"length":1700},{"x":1700,"y":375,"length":1740.8690358553683},{"x":0,"y":375,"length":375}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":10790,"viscosity":1.5,"rotation":0,"y":90,"vertices":[{"x":0,"y":0,"length":0},{"x":400,"y":0,"length":400},{"x":400,"y":30,"length":401.1234224026316},{"x":390,"y":55,"length":393.8591118661596},{"x":370,"y":85,"length":379.63798545456433},{"x":340,"y":110,"length":357.35136770411276},{"x":315,"y":120,"length":337.08307581366347},{"x":285,"y":125,"length":311.20732639190874},{"x":0,"y":125,"length":125}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":6755,"viscosity":1.5,"rotation":0,"y":-480,"vertices":[{"x":0,"y":0,"length":0},{"x":1420,"y":0,"length":1420},{"x":1415,"y":500,"length":1500.7414834007889},{"x":-5,"y":500,"length":500.02499937503126}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":11407,"viscosity":1.5,"rotation":0,"y":90,"vertices":[{"x":0,"y":0,"length":0},{"x":1615,"y":5,"length":1615.0077399195336},{"x":1615,"y":345,"length":1651.4387666516734},{"x":-265,"y":340,"length":431.07423954581185},{"x":-200,"y":320,"length":377.35924528226417},{"x":-160,"y":295,"length":335.5964838909967},{"x":-120,"y":265,"length":290.90376415577714},{"x":-85,"y":230,"length":245.20399670478457},{"x":-55,"y":195,"length":202.6079958935481},{"x":-25,"y":145,"length":147.13938969562162},{"x":-10,"y":100,"length":100.4987562112089},{"x":0,"y":55,"length":55}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8816,"safeId":-1,"rotation":-5.684341886080802e-14,"graphic":true,"isWheel":false,"y":-167,"plr":true,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":-15,"length":15},{"x":195,"y":-15,"length":195.57607215607945},{"x":195,"y":275,"length":337.12015662075146},{"x":0,"y":275,"length":275}],"line":true,"id":-1,"physic":true}},{"className":"FinishZone","params":{"x":10020,"rotation":0,"y":-1330,"width":343,"height":1278}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9380,"safeId":-1,"rotation":-45,"graphic":true,"isWheel":false,"y":-40,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":510,"y":0,"length":510},{"x":510,"y":95,"length":518.7725898695883},{"x":105,"y":475,"length":486.46685395821163},{"x":5,"y":375,"length":375.0333318519835}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4770,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-510,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":225,"y":0,"length":225},{"x":225,"y":45,"length":229.4558781116753},{"x":0,"y":45,"length":45}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":1470,"viscosity":1.5,"rotation":0,"y":70,"vertices":[{"x":0,"y":0,"length":0},{"x":1665,"y":0,"length":1665},{"x":1665,"y":420,"length":1717.156079102887},{"x":0,"y":420,"length":420}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6410,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-510,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":225,"y":0,"length":225},{"x":225,"y":45,"length":229.4558781116753},{"x":0,"y":45,"length":45}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2490,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":320,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":640,"y":-450,"length":782.368199762746},{"x":1025,"y":-830,"length":1318.9105352524864},{"x":2515,"y":-830,"length":2648.4193399082405},{"x":3180,"y":-385,"length":3203.221035145717},{"x":3830,"y":-830,"length":3918.9029077026134},{"x":4230,"y":-830,"length":4310.661202182328},{"x":4960,"y":-380,"length":4974.535154162648},{"x":5690,"y":-820,"length":5748.782479795178},{"x":6870,"y":-820,"length":6918.76434054521},{"x":6405,"y":-360,"length":6415.1091183237095},{"x":6865,"y":100,"length":6865.72829348788},{"x":7245,"y":100,"length":7245.690098258412},{"x":7245,"y":115,"length":7245.912640930747},{"x":1920,"y":105,"length":1922.868950292765},{"x":635,"y":105,"length":643.622560201241}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":940,"safeId":-1,"rotation":0,"graphic":true,"height":18,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":16,"physic":true,"stretchTexture":false,"vertices":[{"x":-90,"y":-2,"length":90.0222194794152},{"x":-358,"y":0,"length":358}],"smoothing":true,"id":-1,"repeatTexture":true,"width":281,"type":7,"textureOffset":0,"y":90}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":858,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":65,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":-35,"y":0,"length":35},{"x":560,"y":0,"length":560},{"x":560,"y":50,"length":562.2277118748239},{"x":-35,"y":50,"length":61.032778078668514}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":490,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":78,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":-50,"y":-15,"length":52.20153254455275},{"x":-35,"y":-15,"length":38.07886552931954},{"x":-35,"y":30,"length":46.09772228646444},{"x":-25,"y":40,"length":47.16990566028302},{"x":45,"y":40,"length":60.207972893961475},{"x":65,"y":35,"length":73.824115301167},{"x":80,"y":20,"length":82.46211251235322},{"x":95,"y":0,"length":95},{"x":115,"y":0,"length":115},{"x":115,"y":60,"length":129.71121771072848},{"x":-50,"y":65,"length":82.00609733428362}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":960,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":320,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1000,"y":-980,"length":1400.142849854971},{"x":-900,"y":-975,"length":1326.88545097156},{"x":-905,"y":-260,"length":941.6076677682696},{"x":510,"y":-260,"length":572.4508712544684},{"x":510,"y":100,"length":519.7114584074513},{"x":-1000,"y":100,"length":1004.987562112089}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":420,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":13238,"textureOffset":0,"height":83,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":true,"physic":true,"vertices":[{"x":-835,"y":0,"length":835},{"x":12390,"y":15,"length":12390.00907989982}],"line":true,"shape":true,"isRoad":true,"smoothing":true,"camera":false}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":240,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":13048.7,"textureOffset":0,"height":1479.75,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":-835,"y":0,"length":835},{"x":2475,"y":-125,"length":2478.154555309253},{"x":3005,"y":-585,"length":3061.413072422603},{"x":4325,"y":-605,"length":4367.1100283826145},{"x":7485,"y":-435,"length":7497.629625421624},{"x":8695,"y":195,"length":8697.18632662311},{"x":10545,"y":190,"length":10546.711572807895},{"x":12185,"y":-1225,"length":12246.42192642406}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9740,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-490,"plr":true,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":5,"y":-1575,"length":1575.0079364879405},{"x":105,"y":-1575,"length":1578.4961197291555},{"x":107,"y":-235,"length":258.21309029559285},{"x":1050,"y":-230,"length":1074.8953437428222},{"x":1048,"y":-95,"length":1052.297011304318},{"x":901,"y":-137,"length":911.3561323653888},{"x":859,"y":-148,"length":871.6564690289404},{"x":814,"y":-155,"length":828.6259711112125},{"x":773,"y":-157,"length":788.7826062990994},{"x":733,"y":-156,"length":749.4164396382027},{"x":688,"y":-151,"length":704.3756100263552},{"x":640,"y":-139,"length":654.9206058752466},{"x":599,"y":-124,"length":611.7000899133496},{"x":556,"y":-101,"length":565.0991063521512},{"x":520,"y":-73,"length":525.0990382775425},{"x":483,"y":-42,"length":484.8226479858382},{"x":453,"y":-10,"length":453.1103618325231},{"x":427,"y":25,"length":427.7312240180742},{"x":403,"y":62,"length":407.74133957694306},{"x":385,"y":102,"length":398.2825630127435},{"x":370,"y":147,"length":398.1318876955223},{"x":362,"y":191,"length":409.2981798151563},{"x":358,"y":241,"length":431.5611196574594},{"x":359,"y":288,"length":460.2445002387318},{"x":366,"y":340,"length":499.55580268874866},{"x":379,"y":387,"length":541.6733332923081},{"x":400,"y":434,"length":590.2169092799697},{"x":426,"y":480,"length":641.775661738586},{"x":455,"y":517,"length":688.7045810795802},{"x":495,"y":558,"length":745.9148744997649},{"x":543,"y":596,"length":806.2660851108647},{"x":589,"y":622,"length":856.6241883113038},{"x":649,"y":645,"length":915.0005464479243},{"x":709,"y":658,"length":967.287444351471},{"x":752,"y":663,"length":1002.5332912178029},{"x":811,"y":663,"length":1047.5161096613265},{"x":861,"y":653,"length":1080.6155653145108},{"x":914,"y":638,"length":1114.6479264772352},{"x":961,"y":617,"length":1142.0201399274883},{"x":1050,"y":564,"length":1191.8875785912026},{"x":1050,"y":714,"length":1269.7621824578018},{"x":0,"y":709,"length":709}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9210,"safeId":-1,"rotation":-45,"graphic":true,"isWheel":false,"y":-497,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":195,"y":0,"length":195},{"x":195,"y":190,"length":272.2590678012396},{"x":0,"y":190,"length":190}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8950,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-90,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":480,"y":0,"length":480},{"x":480,"y":100,"length":490.3060268852505},{"x":0,"y":100,"length":100},{"x":-50,"y":50,"length":70.71067811865476}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9640,"safeId":-1,"rotation":0,"graphic":true,"height":590.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":96,"y":0,"length":96},{"x":1440,"y":0,"length":1440},{"x":1473,"y":-1,"length":1473.0003394432738},{"x":1505,"y":-5,"length":1505.0083056249225},{"x":1540,"y":-15,"length":1540.073050215476},{"x":1581,"y":-33,"length":1581.344364773214},{"x":1620,"y":-57,"length":1621.0024676107066},{"x":1650,"y":-82,"length":1652.0363192133518},{"x":1679,"y":-111,"length":1682.6651479126797},{"x":1706,"y":-146,"length":1712.235965046874},{"x":1730,"y":-183,"length":1739.6519766895906},{"x":1746,"y":-223,"length":1760.1832290986072},{"x":1755,"y":-261,"length":1774.301552724339},{"x":1762,"y":-309,"length":1788.88932022079},{"x":1762,"y":-355,"length":1797.4061867034952},{"x":1756,"y":-394,"length":1799.6588565614318},{"x":1748,"y":-431,"length":1800.3513545972075},{"x":1732,"y":-469,"length":1794.3759360847437},{"x":1712,"y":-504,"length":1784.645623085995},{"x":1686,"y":-542,"length":1770.9771314164393},{"x":1657,"y":-575,"length":1753.9310134666073}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1681.5,"type":9,"textureOffset":0,"y":430}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9740,"safeId":-1,"rotation":0,"graphic":true,"height":234.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":1335,"y":2,"length":1335.0014981265003},{"x":1368,"y":-2,"length":1368.0014619875228},{"x":1390,"y":-12,"length":1390.0517975960465},{"x":1409,"y":-27,"length":1409.2586703653803},{"x":1424,"y":-43,"length":1424.6490795982006},{"x":1437,"y":-63,"length":1438.380339131483},{"x":1445,"y":-80,"length":1447.2128385279063},{"x":1450,"y":-99,"length":1453.375725681422},{"x":1450,"y":-119,"length":1454.8749087120857},{"x":1448,"y":-141,"length":1454.848789393592},{"x":1444,"y":-157,"length":1452.5098966960604},{"x":1435,"y":-174,"length":1445.51063641884},{"x":1419,"y":-199,"length":1432.8858991559655},{"x":1404,"y":-217,"length":1420.6706162935868}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1465.5,"type":8,"textureOffset":0,"y":217}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9740,"safeId":-1,"rotation":0,"graphic":true,"height":187,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":1424,"y":-43,"length":1424.6490795982006},{"x":1437,"y":-63,"length":1438.380339131483},{"x":1445,"y":-80,"length":1447.2128385279063},{"x":1450,"y":-99,"length":1453.375725681422},{"x":1450,"y":-119,"length":1454.8749087120857},{"x":1448,"y":-141,"length":1454.848789393592},{"x":1444,"y":-157,"length":1452.5098966960604},{"x":1435,"y":-174,"length":1445.51063641884},{"x":1419,"y":-199,"length":1432.8858991559655},{"x":1404,"y":-217,"length":1420.6706162935868}],"smoothing":true,"id":-1,"repeatTexture":true,"width":61.9,"type":8,"textureOffset":0,"y":-273}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9640,"safeId":-1,"rotation":0,"graphic":true,"height":501,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":1655,"y":-87,"length":1657.2851293606661},{"x":1679,"y":-111,"length":1682.6651479126797},{"x":1706,"y":-146,"length":1712.235965046874},{"x":1730,"y":-183,"length":1739.6519766895906},{"x":1746,"y":-223,"length":1760.1832290986072},{"x":1755,"y":-261,"length":1774.301552724339},{"x":1762,"y":-309,"length":1788.88932022079},{"x":1762,"y":-355,"length":1797.4061867034952},{"x":1756,"y":-394,"length":1799.6588565614318},{"x":1748,"y":-431,"length":1800.3513545972075},{"x":1732,"y":-469,"length":1794.3759360847437},{"x":1712,"y":-504,"length":1784.645623085995},{"x":1686,"y":-542,"length":1770.9771314164393},{"x":1657,"y":-575,"length":1753.9310134666073}],"smoothing":true,"id":-1,"repeatTexture":true,"width":122.5,"type":9,"textureOffset":0,"y":-60}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9849,"safeId":-1,"rotation":0,"graphic":true,"height":69,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":940,"y":5,"length":940.0132977782814}],"smoothing":true,"id":-1,"repeatTexture":true,"width":953,"type":5,"textureOffset":0,"y":-729}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10509,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-237,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":9,"rem":false,"vertices":[{"x":180,"y":0,"length":180},{"x":177,"y":31,"length":179.6941846582688},{"x":169,"y":61,"length":179.6719232378838},{"x":155,"y":89,"length":178.73443988218946},{"x":137,"y":115,"length":178.86866690396056},{"x":115,"y":137,"length":178.86866690396056},{"x":90,"y":155,"length":179.2344832893492},{"x":61,"y":169,"length":179.6719232378838},{"x":31,"y":177,"length":179.6941846582688},{"x":0,"y":180,"length":180},{"x":-31,"y":177,"length":179.6941846582688},{"x":-61,"y":169,"length":179.6719232378838},{"x":-89,"y":155,"length":178.73443988218946},{"x":-115,"y":137,"length":178.86866690396056},{"x":-137,"y":115,"length":178.86866690396056},{"x":-155,"y":89,"length":178.73443988218946},{"x":-169,"y":61,"length":179.6719232378838},{"x":-177,"y":31,"length":179.6941846582688},{"x":-180,"y":0,"length":180},{"x":-177,"y":-31,"length":179.6941846582688},{"x":-169,"y":-61,"length":179.6719232378838},{"x":-155,"y":-90,"length":179.2344832893492},{"x":-137,"y":-115,"length":178.86866690396056},{"x":-115,"y":-137,"length":178.86866690396056},{"x":-90,"y":-155,"length":179.2344832893492},{"x":-61,"y":-169,"length":179.6719232378838},{"x":-31,"y":-177,"length":179.6941846582688},{"x":0,"y":-180,"length":180},{"x":31,"y":-177,"length":179.6941846582688},{"x":61,"y":-169,"length":179.6719232378838},{"x":90,"y":-155,"length":179.2344832893492},{"x":115,"y":-137,"length":178.86866690396056},{"x":137,"y":-115,"length":178.86866690396056},{"x":155,"y":-90,"length":179.2344832893492},{"x":169,"y":-61,"length":179.6719232378838},{"x":177,"y":-31,"length":179.6941846582688}],"line":true,"id":13,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9790,"safeId":-1,"rotation":0,"graphic":true,"height":335.65,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":1284,"y":1,"length":1284.0003894080407},{"x":1317,"y":-1,"length":1317.0003796506667},{"x":1352,"y":-12,"length":1352.0532533890816},{"x":1384,"y":-28,"length":1384.2832080177814},{"x":1414,"y":-52,"length":1414.9558296992877},{"x":1442,"y":-87,"length":1444.6220959129762},{"x":1457,"y":-116,"length":1461.6104132086634},{"x":1468,"y":-150,"length":1475.643588404734},{"x":1471,"y":-183,"length":1482.3393673514847},{"x":1469,"y":-215,"length":1484.650127134336},{"x":1462,"y":-255,"length":1484.0717637634643},{"x":1447,"y":-282,"length":1474.2228461124864},{"x":1429,"y":-310,"length":1462.2383526634774}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1493.55,"type":10,"textureOffset":0,"y":290}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9790,"safeId":-1,"rotation":0,"graphic":true,"height":239,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":1442,"y":-87,"length":1444.6220959129762},{"x":1457,"y":-116,"length":1461.6104132086634},{"x":1468,"y":-150,"length":1475.643588404734},{"x":1471,"y":-183,"length":1482.3393673514847},{"x":1469,"y":-215,"length":1484.650127134336},{"x":1462,"y":-255,"length":1484.0717637634643},{"x":1447,"y":-282,"length":1474.2228461124864},{"x":1429,"y":-310,"length":1462.2383526634774}],"smoothing":true,"id":-1,"repeatTexture":true,"width":71.5,"type":10,"textureOffset":0,"y":-200}}],[{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":3710,"y":-570,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":8320,"y":-560,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":9430,"y":360,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":9680,"y":-830,"width":9.3,"height":128.35}},{"className":"Sign1","params":{"x":9580,"rotation":-90,"y":-830,"width":68.8,"height":69.8}},{"className":"Dec36","params":{"scaleX":1,"rotation":179.99999999999997,"scaleY":-0.9265156154317208,"x":9752,"y":312,"width":75.25,"height":226.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":180,"scaleY":-0.9673402735252092,"x":10183,"y":313,"width":75.25,"height":236.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":180,"scaleY":-0.9673402735252092,"x":10603,"y":313,"width":75.25,"height":236.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":180,"scaleY":-0.9673402735252092,"x":11003,"y":313,"width":75.25,"height":236.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-132,"scaleY":-0.9673402735252092,"x":11230,"y":-73,"width":75.25,"height":236.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":135,"scaleY":-0.9673402735252092,"x":11226,"y":-246,"width":75.25,"height":236.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-132,"scaleY":-0.9673402735252092,"x":11238,"y":-559,"width":75.25,"height":236.95}},{"className":"SpikeBall200E","params":{"x":5500,"safeId":-1,"ag":true,"y":-290,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":49,"width":260.3,"rotation":0,"height":260.3}},{"className":"SpikeBall200E","params":{"x":5810,"safeId":-1,"ag":true,"y":-310,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":49,"width":260.3,"rotation":0,"height":260.3}},{"className":"SpikeBall200E","params":{"x":6020,"safeId":-1,"ag":true,"y":-430,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":49,"width":260.3,"rotation":0,"height":260.3}},{"className":"SpikeBall200E","params":{"x":5650,"safeId":-1,"ag":true,"y":-410,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":49,"width":260.3,"rotation":0,"height":260.3}},{"className":"SpikeBall200E","params":{"x":5320,"safeId":-1,"ag":true,"y":-420,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":49,"width":260.3,"rotation":0,"height":260.3}},{"className":"SpikeBall200E","params":{"x":5510,"safeId":-1,"ag":true,"y":-550,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":49,"width":260.3,"rotation":0,"height":260.3}},{"className":"SpikeBall200E","params":{"x":5810,"safeId":-1,"ag":true,"y":-540,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":49,"width":260.3,"rotation":0,"height":260.3}},{"className":"SpikeBall200E","params":{"x":7330,"safeId":-1,"ag":true,"y":-570,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":22,"width":260.3,"rotation":0,"height":260.3}},{"className":"SpikeBall200E","params":{"x":7540,"safeId":-1,"ag":true,"y":-570,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":22,"width":260.3,"rotation":0,"height":260.3}},{"className":"SpikeBall200E","params":{"x":7442,"safeId":-1,"ag":true,"y":-390,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":22,"width":260.3,"rotation":0,"height":260.3}},{"className":"SpikeBall200E","params":{"x":7240,"safeId":-1,"ag":true,"y":-390,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":22,"width":260.3,"rotation":0,"height":260.3}},{"className":"SpikeBall200E","params":{"x":7642,"safeId":-1,"ag":true,"y":-390,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":22,"width":260.3,"rotation":0,"height":260.3}},{"className":"SpikeBall200E","params":{"x":7340,"safeId":-1,"ag":true,"y":-236,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":22,"width":260.3,"rotation":0,"height":260.3}},{"className":"SpikeBall200E","params":{"x":7550,"safeId":-1,"ag":true,"y":-236,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":22,"width":260.3,"rotation":0,"height":260.3}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":300,"y":-110,"width":640,"height":256}},{"className":"Dec53","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":850,"y":-110,"width":256,"height":256}}],[{"className":"BoostE","params":{"x":11100,"safeId":-1,"rotation":0,"y":380,"time":3,"width":64.1,"force":5000,"height":64.1}}],[{"className":"Dec37","params":{"scaleX":1,"rotation":180,"scaleY":-0.8825831702544032,"x":9750,"y":314,"width":99.95,"height":248.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":179.99999999999997,"scaleY":-0.9573029710016011,"x":10183,"y":315,"width":99.95,"height":269.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":179.99999999999997,"scaleY":-0.9573029710016011,"x":10603,"y":315,"width":99.95,"height":269.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":179.99999999999997,"scaleY":-0.9573029710016011,"x":11003,"y":315,"width":99.95,"height":269.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-132.00000000000003,"scaleY":-0.9573029710016011,"x":11228,"y":-73,"width":99.95,"height":269.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":134.99999999999994,"scaleY":-0.9573029710016011,"x":11228,"y":-243,"width":99.95,"height":269.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-132.00000000000003,"scaleY":-0.9573029710016011,"x":11236,"y":-559,"width":99.95,"height":269.05}}],[{"className":"PlayerWP","params":{"x":470,"rotation":0,"y":10,"width":64,"height":32}},{"className":"SafePointE","params":{"x":3710,"rotation":0,"y":-640,"id":0,"width":128,"height":1835}},{"className":"SafePointE","params":{"x":8320,"rotation":0,"y":-620,"id":0,"width":128,"height":1583}},{"className":"SafePointE","params":{"x":9430,"rotation":0,"y":280,"id":0,"width":128,"height":719}}],[{"className":"PivotJointE","params":{"x":842,"safeId":-10,"rotation":0,"graphic":0,"id":-1,"y":90,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":1390,"safeId":-10,"rotation":0,"graphic":0,"y":90,"useWeld":false,"time":1.3,"snd":false,"id":1,"rate":130,"width":17,"height":17}},{"className":"ToggleE","params":{"x":640,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":1,"off":false,"y":30,"width":64,"rotation":0,"height":379}},{"className":"PivotJointE","params":{"x":452,"safeId":-10,"rotation":0,"graphic":0,"id":1,"y":130,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":592,"safeId":-10,"rotation":0,"graphic":0,"id":-1,"y":90,"width":17,"height":17}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":4880,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-487,"height":45,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-32,"length":32}],"stopOnEnd":true,"id":11,"accelDist":0,"width":13,"speed":550}},{"className":"ToggleE","params":{"x":4910,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":11,"off":false,"y":-640,"width":45,"rotation":0,"height":359}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":6520,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-487,"height":45,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-32,"length":32}],"stopOnEnd":true,"id":12,"accelDist":0,"width":13,"speed":600}},{"className":"ToggleE","params":{"x":6559,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":12,"off":false,"y":-640,"width":45,"rotation":0,"height":359}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":9190,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-40,"height":13,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":304,"y":0,"length":304}],"stopOnEnd":true,"id":13,"accelDist":0,"width":317,"speed":50}},{"className":"ToggleE","params":{"x":8420,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":13,"off":false,"y":-890,"width":64,"rotation":0,"height":1811}},{"className":"PivotJointE","params":{"x":9347,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-497,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9240,"safeId":-1,"rotation":0,"graphic":0,"id":14,"y":-480,"width":17,"height":17}},{"className":"ToggleE","params":{"x":9310,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-2,"id":14,"off":false,"y":-630,"width":64,"rotation":0,"height":1012}},{"className":"MotorJointE","params":{"x":9863,"safeId":-1,"rotation":0,"graphic":0,"y":-721,"useWeld":false,"time":2,"snd":false,"id":19,"rate":-100,"width":17,"height":17}},{"className":"ToggleE","params":{"x":10520,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":19,"off":false,"y":-1290,"width":64,"rotation":0,"height":1243}},{"className":"MotorJointE","params":{"x":10509,"safeId":-1,"rotation":0,"graphic":0,"y":-237,"useWeld":false,"time":0,"snd":false,"id":13,"rate":100,"width":17,"height":17}},{"className":"ToggleE","params":{"x":9530,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":13,"off":false,"y":300,"width":64,"rotation":0,"height":237}},{"className":"ToggleE","params":{"x":1110,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-360,"width":64,"rotation":0,"height":1606}},{"className":"ToggleE","params":{"x":9270,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-80,"width":1020,"rotation":0,"height":64}},{"className":"ToggleE","params":{"x":10970,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-830,"width":1020,"rotation":0,"height":64}},{"className":"ToggleE","params":{"x":10220,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-200,"width":591,"rotation":0,"height":64}},{"className":"ToggleE","params":{"x":4090,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":49,"off":false,"y":-700,"width":64,"rotation":0,"height":1741}},{"className":"ToggleE","params":{"x":3550,"safeId":-1,"sndId":-1,"hint":-1,"id_off":1,"id":80,"off":false,"y":-800,"width":64,"rotation":0,"height":543}},{"className":"ToggleE","params":{"x":6039,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":22,"off":false,"y":-670,"width":45,"rotation":0,"height":1133}},{"className":"ToggleE","params":{"x":8780,"safeId":-1,"sndId":-1,"hint":-1,"id_off":22,"id":33,"off":false,"y":-870,"width":64,"rotation":0,"height":1811}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map4.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map4.json new file mode 100644 index 000000000..22b07ebb4 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map4.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"27,34,41"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5300,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-170,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":815,"y":0,"length":815},{"x":815,"y":650,"length":1042.4610304467021},{"x":0,"y":650,"length":650}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":1498,"safeId":-1,"rotation":0,"graphic":true,"height":488,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":475,"length":475}],"smoothing":true,"id":-1,"repeatTexture":true,"width":20,"type":2,"textureOffset":0,"y":-48}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":1788,"safeId":-1,"rotation":0,"graphic":true,"height":548,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":535,"length":535}],"smoothing":true,"id":-1,"repeatTexture":true,"width":20,"type":2,"textureOffset":0,"y":-108}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":2078,"safeId":-1,"rotation":0,"graphic":true,"height":488,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":475,"length":475}],"smoothing":true,"id":-1,"repeatTexture":true,"width":20,"type":2,"textureOffset":0,"y":-58}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3058,"safeId":-1,"rotation":0,"graphic":true,"height":488,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":475,"length":475}],"smoothing":true,"id":-1,"repeatTexture":true,"width":20,"type":2,"textureOffset":0,"y":102}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3348,"safeId":-1,"rotation":0,"graphic":true,"height":548,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":535,"length":535}],"smoothing":true,"id":-1,"repeatTexture":true,"width":20,"type":2,"textureOffset":0,"y":42}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3638,"safeId":-1,"rotation":0,"graphic":true,"height":488,"snapToGrid":true,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":475,"length":475}],"smoothing":true,"id":-1,"repeatTexture":true,"width":20,"type":2,"textureOffset":0,"y":92}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7390,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":30,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":-570,"y":55,"length":572.647360947381},{"x":-485,"y":5,"length":485.02577251111103},{"x":6010,"y":5,"length":6010.002079866528},{"x":6155,"y":660,"length":6190.284726892617},{"x":-610,"y":535,"length":811.3722943261004}],"line":true,"id":-1,"physic":false}},{"className":"FinishZone","params":{"x":11685,"rotation":0,"y":-580,"width":725,"height":862}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":12598,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-29,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-355,"y":-85,"length":365.0342449688796},{"x":-230,"y":0,"length":230},{"x":295,"y":0,"length":295},{"x":410,"y":-95,"length":420.86221023037933},{"x":410,"y":80,"length":417.73197148410844},{"x":-355,"y":85,"length":365.0342449688796}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":12920,"viscosity":2.5,"rotation":0,"y":10,"vertices":[{"x":-800,"y":0,"length":800},{"x":100,"y":0,"length":100},{"x":100,"y":35,"length":105.94810050208545},{"x":90,"y":90,"length":127.27922061357856},{"x":55,"y":135,"length":145.7737973711325},{"x":10,"y":170,"length":170.29386365926402},{"x":-40,"y":200,"length":203.9607805437114},{"x":-90,"y":215,"length":233.0772404161333},{"x":-135,"y":210,"length":249.64975465639858},{"x":-210,"y":185,"length":279.8660393831306},{"x":-790,"y":45,"length":791.2806076228584}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1350,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":230,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":3190,"y":0,"length":3190},{"x":3190,"y":220,"length":3197.577207824699},{"x":0,"y":220,"length":220}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::DevPather","params":{"x":12026,"rotation":0,"y":-32,"snapToGrid":false,"wireframe":false,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"vertices":[{"x":-859,"y":-69,"length":861.7667897987251},{"x":691,"y":304,"length":754.9152270288366},{"x":718,"y":313,"length":783.2579396341923},{"x":749,"y":319,"length":814.1019592164116},{"x":777,"y":322,"length":841.0784743411283},{"x":807,"y":322,"length":868.8688048261372},{"x":835,"y":319,"length":893.8601680352469},{"x":862,"y":314,"length":917.4093960713504},{"x":892,"y":306,"length":943.0270409696639},{"x":920,"y":294,"length":965.8343543279044},{"x":949,"y":276,"length":988.3202922130052},{"x":970,"y":259,"length":1003.9825695698108},{"x":991,"y":240,"length":1019.6474881055707},{"x":1010,"y":219,"length":1033.4703672578135},{"x":1027,"y":198,"length":1045.9125202424914},{"x":1043,"y":173,"length":1057.2502069046855},{"x":1055,"y":146,"length":1065.0544587015258},{"x":1066,"y":115,"length":1072.1851519210663},{"x":1072,"y":85,"length":1075.3645893370303},{"x":1072,"y":-163,"length":1084.321446804406},{"x":1068,"y":-195,"length":1085.6560228728067},{"x":1057,"y":-223,"length":1080.2675594499726},{"x":1042,"y":-243,"length":1069.9593450220434},{"x":996,"y":-291,"length":1037.6401110211575}],"smoothing":true,"repeatTexture":true,"width":2108.7,"stretchTexture":false,"textureOffset":0,"height":856.65}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5533,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-126,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":150,"y":0,"length":150},{"x":198,"y":24,"length":199.44924166313595},{"x":184,"y":76,"length":199.07787421006887},{"x":130,"y":74,"length":149.58609561052123},{"x":106,"y":106,"length":149.90663761154806},{"x":122,"y":157,"length":198.82907232092595},{"x":76,"y":184,"length":199.07787421006887},{"x":39,"y":144,"length":149.18780110987626},{"x":0,"y":150,"length":150},{"x":-24,"y":198,"length":199.44924166313595},{"x":-76,"y":184,"length":199.07787421006887},{"x":-74,"y":130,"length":149.58609561052123},{"x":-106,"y":106,"length":149.90663761154806},{"x":-157,"y":122,"length":198.82907232092595},{"x":-184,"y":76,"length":199.07787421006887},{"x":-144,"y":39,"length":149.18780110987626},{"x":-150,"y":0,"length":150},{"x":-198,"y":-24,"length":199.44924166313595},{"x":-184,"y":-76,"length":199.07787421006887},{"x":-130,"y":-74,"length":149.58609561052123},{"x":-106,"y":-106,"length":149.90663761154806},{"x":-122,"y":-157,"length":198.82907232092595},{"x":-76,"y":-184,"length":199.07787421006887},{"x":-39,"y":-144,"length":149.18780110987626},{"x":0,"y":-150,"length":150},{"x":24,"y":-198,"length":199.44924166313595},{"x":76,"y":-184,"length":199.07787421006887},{"x":74,"y":-130,"length":149.58609561052123},{"x":106,"y":-106,"length":149.90663761154806},{"x":157,"y":-122,"length":198.82907232092595},{"x":184,"y":-76,"length":199.07787421006887},{"x":144,"y":-39,"length":149.18780110987626}],"line":true,"id":1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5894,"safeId":-10,"rotation":39,"graphic":true,"isWheel":false,"y":-127,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":150,"y":0,"length":150},{"x":198,"y":24,"length":199.44924166313595},{"x":184,"y":76,"length":199.07787421006887},{"x":130,"y":74,"length":149.58609561052123},{"x":106,"y":106,"length":149.90663761154806},{"x":122,"y":157,"length":198.82907232092595},{"x":76,"y":184,"length":199.07787421006887},{"x":39,"y":144,"length":149.18780110987626},{"x":0,"y":150,"length":150},{"x":-24,"y":198,"length":199.44924166313595},{"x":-76,"y":184,"length":199.07787421006887},{"x":-74,"y":130,"length":149.58609561052123},{"x":-106,"y":106,"length":149.90663761154806},{"x":-157,"y":122,"length":198.82907232092595},{"x":-184,"y":76,"length":199.07787421006887},{"x":-144,"y":39,"length":149.18780110987626},{"x":-150,"y":0,"length":150},{"x":-198,"y":-24,"length":199.44924166313595},{"x":-184,"y":-76,"length":199.07787421006887},{"x":-130,"y":-74,"length":149.58609561052123},{"x":-106,"y":-106,"length":149.90663761154806},{"x":-122,"y":-157,"length":198.82907232092595},{"x":-76,"y":-184,"length":199.07787421006887},{"x":-39,"y":-144,"length":149.18780110987626},{"x":0,"y":-150,"length":150},{"x":24,"y":-198,"length":199.44924166313595},{"x":76,"y":-184,"length":199.07787421006887},{"x":74,"y":-130,"length":149.58609561052123},{"x":106,"y":-106,"length":149.90663761154806},{"x":157,"y":-122,"length":198.82907232092595},{"x":184,"y":-76,"length":199.07787421006887},{"x":144,"y":-39,"length":149.18780110987626}],"line":true,"id":1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9393,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":320,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":405,"y":-190,"length":447.3533279187716},{"x":830,"y":-430,"length":934.7726996441435},{"x":1260,"y":-185,"length":1273.5089320456295}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":9400,"viscosity":1.5,"rotation":0,"y":30,"vertices":[{"x":0,"y":0,"length":0},{"x":1710,"y":0,"length":1710},{"x":3320,"y":395,"length":3343.415170151622},{"x":3380,"y":405,"length":3404.1775805618604},{"x":3450,"y":405,"length":3473.690400712188},{"x":3513,"y":394,"length":3535.025459597144},{"x":3578,"y":377,"length":3597.8066929728175},{"x":3629,"y":353,"length":3646.1280833234587},{"x":3682,"y":316,"length":3695.5351439270607},{"x":3724,"y":276,"length":3734.213705721728},{"x":3762,"y":230,"length":3769.0242769183646},{"x":3792,"y":185,"length":3796.510107980749},{"x":3816,"y":143,"length":3818.6784363179886},{"x":3838,"y":56,"length":3838.408524375695},{"x":3861,"y":53,"length":3861.363748729197},{"x":4245,"y":560,"length":4281.778252081721},{"x":-2617,"y":485,"length":2661.562323147816},{"x":-2530,"y":43,"length":2530.3653886346137},{"x":-1842,"y":344,"length":1873.8463117342362},{"x":-1800,"y":358,"length":1835.2558404756542},{"x":-1758,"y":368,"length":1796.1035604886483},{"x":-1707,"y":377,"length":1748.135578266171},{"x":-1653,"y":377,"length":1695.446253940242},{"x":-1598,"y":369,"length":1640.050304106554},{"x":-1556,"y":358,"length":1596.6527487215246},{"x":-1518,"y":346,"length":1556.9328823041794},{"x":-1480,"y":328,"length":1515.9102875830088},{"x":-1450,"y":309,"length":1482.5589364338944},{"x":-1414,"y":280,"length":1441.4562081450827},{"x":-1380,"y":249,"length":1402.2842079977938},{"x":-1348,"y":212,"length":1364.5687963602275},{"x":-1320,"y":180,"length":1332.2161986704712},{"x":-1299,"y":146,"length":1307.1790236995084},{"x":-1284,"y":113,"length":1288.9627612929708},{"x":-1271,"y":72,"length":1273.0377056474015},{"x":-1257,"y":6,"length":1257.0143197275042},{"x":-1241,"y":5,"length":1241.0100724812833},{"x":-1227,"y":70,"length":1228.9951179724028},{"x":-1212,"y":115,"length":1217.4436331921079},{"x":-1194,"y":157,"length":1204.2777918736192},{"x":-1166,"y":194,"length":1182.028764455417},{"x":-1137,"y":229,"length":1159.8318843694547},{"x":-1094,"y":275,"length":1128.0341306893156},{"x":-1054,"y":304,"length":1096.9649037229951},{"x":-994,"y":338,"length":1049.895232868499},{"x":-936,"y":360,"length":1002.8439559572566},{"x":-883,"y":369,"length":957.0005224658971},{"x":-812,"y":376,"length":894.8295927158422},{"x":-747,"y":368,"length":832.7262455333085},{"x":-670,"y":350,"length":755.9100475585703}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":5310,"viscosity":1.5,"rotation":0,"y":-170,"vertices":[{"x":0,"y":0,"length":0},{"x":825,"y":0,"length":825},{"x":825,"y":635,"length":1041.0811687856044},{"x":0,"y":635,"length":635}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3800,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":180,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":0,"y":0,"length":0},{"x":440,"y":0,"length":440},{"x":440,"y":100,"length":451.22056690713913},{"x":0,"y":100,"length":100}],"line":true,"id":82,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2330,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":160,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-5,"y":0,"length":5},{"x":25,"y":0,"length":25},{"x":260,"y":245,"length":357.24641355792505},{"x":495,"y":0,"length":495},{"x":525,"y":0,"length":525},{"x":275,"y":270,"length":385.3894134508627},{"x":245,"y":270,"length":364.58880948268285}],"line":false,"id":81,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":7820,"viscosity":2.5,"rotation":0,"y":30,"vertices":[{"x":-500,"y":0,"length":500},{"x":100,"y":0,"length":100},{"x":83,"y":44,"length":93.94147114027967},{"x":60,"y":78,"length":98.40731680114035},{"x":25,"y":114,"length":116.70903992407786},{"x":-13,"y":138,"length":138.61096637712328},{"x":-55,"y":153,"length":162.58536219475602},{"x":-98,"y":158,"length":185.9247159470736},{"x":-141,"y":154,"length":208.79894635749483},{"x":-185,"y":140,"length":232.0021551624036}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":8870,"viscosity":2.5,"rotation":0,"y":30,"vertices":[{"x":-490,"y":0,"length":490},{"x":65,"y":0,"length":65},{"x":-185,"y":129,"length":225.53491969094276},{"x":-237,"y":150,"length":280.47994580718245},{"x":-274,"y":154,"length":314.3119469571591},{"x":-310,"y":154,"length":346.1444785057245},{"x":-341,"y":148,"length":371.7324306540929},{"x":-375,"y":137,"length":399.2417813806566},{"x":-404,"y":120,"length":421.4451328464952},{"x":-438,"y":88,"length":446.75272802748503},{"x":-465,"y":55,"length":468.2413907377262},{"x":-480,"y":25,"length":480.6506007486103}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":1360,"viscosity":1.5,"rotation":0,"y":230,"vertices":[{"x":0,"y":0,"length":0},{"x":3220,"y":0,"length":3220},{"x":3220,"y":260,"length":3230.4798405190522},{"x":0,"y":260,"length":260}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":420,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":14433,"textureOffset":0,"height":88,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":true,"physic":true,"vertices":[{"x":-835,"y":0,"length":835},{"x":13585,"y":20,"length":13585.014722112008}],"line":true,"shape":true,"isRoad":true,"smoothing":true,"camera":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":960,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":320,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1000,"y":-835,"length":1302.7758824909217},{"x":-890,"y":-835,"length":1220.3790394791283},{"x":-890,"y":-260,"length":927.200086281273},{"x":410,"y":-260,"length":485.4894437575342},{"x":410,"y":100,"length":422.0189569201839},{"x":-1000,"y":100,"length":1004.987562112089}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":240,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":14023,"textureOffset":0,"height":493.05,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":-775,"y":-160,"length":791.3437938089867},{"x":655,"y":-155,"length":673.0898899849856},{"x":1655,"y":-20,"length":1655.1208415097672},{"x":3785,"y":-15,"length":3785.029722472467},{"x":4610,"y":-215,"length":4615.010834223469},{"x":5500,"y":-225,"length":5504.600348799175},{"x":7050,"y":195,"length":7052.696292908125},{"x":13235,"y":200,"length":13236.51105843228}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1270,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-40,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-160,"y":100,"length":188.67962264113208},{"x":100,"y":-25,"length":103.07764064044152},{"x":100,"y":100,"length":141.4213562373095}],"line":true,"id":82,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4570,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":80,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-40,"y":85,"length":93.94147114027967},{"x":755,"y":-350,"length":832.1808697632985},{"x":755,"y":360,"length":836.4358911476719},{"x":-40,"y":350,"length":352.27829907617075}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6110,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":70,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":-335,"length":335},{"x":760,"y":-15,"length":760.1480119029451},{"x":755,"y":360,"length":836.4358911476719},{"x":0,"y":360,"length":360}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":1480,"safeId":-1,"rotation":0,"graphic":false,"height":20,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"smoothing":true,"id":-1,"repeatTexture":true,"width":56,"type":0,"textureOffset":0,"y":-330}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":1770,"safeId":-1,"rotation":0,"graphic":false,"height":20,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"smoothing":true,"id":-1,"repeatTexture":true,"width":56,"type":0,"textureOffset":0,"y":-400}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":2060,"safeId":-1,"rotation":0,"graphic":false,"height":20,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"smoothing":true,"id":-1,"repeatTexture":true,"width":56,"type":0,"textureOffset":0,"y":-340}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":2060,"safeId":-1,"rotation":0,"graphic":false,"height":20,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"smoothing":true,"id":-1,"repeatTexture":true,"width":56,"type":0,"textureOffset":0,"y":-60}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":1770,"safeId":-1,"rotation":0,"graphic":false,"height":20,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"smoothing":true,"id":-1,"repeatTexture":true,"width":56,"type":0,"textureOffset":0,"y":-120}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":1480,"safeId":-1,"rotation":0,"graphic":false,"height":20,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"smoothing":true,"id":-1,"repeatTexture":true,"width":56,"type":0,"textureOffset":0,"y":-50}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3040,"safeId":-1,"rotation":0,"graphic":false,"height":20,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"smoothing":true,"id":-1,"repeatTexture":true,"width":56,"type":0,"textureOffset":0,"y":-180}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3040,"safeId":-1,"rotation":0,"graphic":false,"height":20,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"smoothing":true,"id":-1,"repeatTexture":true,"width":56,"type":0,"textureOffset":0,"y":100}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3330,"safeId":-1,"rotation":0,"graphic":false,"height":20,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"smoothing":true,"id":-1,"repeatTexture":true,"width":56,"type":0,"textureOffset":0,"y":50}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3330,"safeId":-1,"rotation":0,"graphic":false,"height":20,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"smoothing":true,"id":-1,"repeatTexture":true,"width":56,"type":0,"textureOffset":0,"y":-230}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3620,"safeId":-1,"rotation":0,"graphic":false,"height":20,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"smoothing":true,"id":-1,"repeatTexture":true,"width":56,"type":0,"textureOffset":0,"y":-170}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3620,"safeId":-1,"rotation":0,"graphic":false,"height":20,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":43,"y":0,"length":43}],"smoothing":true,"id":-1,"repeatTexture":true,"width":56,"type":0,"textureOffset":0,"y":110}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6864,"safeId":-1,"rotation":0,"graphic":true,"height":410.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":703,"y":309,"length":767.9127554611918},{"x":744,"y":323,"length":811.0887744260797},{"x":787,"y":332,"length":854.1621625897509},{"x":825,"y":337,"length":891.1756280329932},{"x":867,"y":337,"length":930.1924532052493},{"x":907,"y":334,"length":966.54280815699},{"x":947,"y":328,"length":1002.1940929780019},{"x":989,"y":317,"length":1038.5615051599013},{"x":1021,"y":305,"length":1065.5824698257757},{"x":1058,"y":287,"length":1096.235832291574},{"x":1092,"y":266,"length":1123.9306028398728},{"x":1125,"y":239,"length":1150.10695154842},{"x":1158,"y":207,"length":1176.355813519022},{"x":1187,"y":175,"length":1199.8308214077517},{"x":1209,"y":145,"length":1217.6641573110378},{"x":1226,"y":119,"length":1231.7617464428745},{"x":1244,"y":83,"length":1246.7658160215976},{"x":1255,"y":53,"length":1256.1186249713837},{"x":1264,"y":24,"length":1264.227827569066},{"x":1270,"y":-8,"length":1270.0251966004455},{"x":1275,"y":-58,"length":1276.3185339091492}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1290.45,"type":9,"textureOffset":0,"y":63}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":8160,"safeId":-1,"rotation":0,"graphic":true,"height":417.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":1,"y":-2,"length":2.23606797749979},{"x":4,"y":40,"length":40.19950248448356},{"x":10,"y":76,"length":76.6550715869472},{"x":23,"y":118,"length":120.22063050907694},{"x":40,"y":157,"length":162.0154313638056},{"x":58,"y":193,"length":201.52667317256046},{"x":80,"y":224,"length":237.8570999570961},{"x":108,"y":257,"length":278.7705149401565},{"x":137,"y":287,"length":318.0220118167923},{"x":165,"y":313,"length":353.82764165621654},{"x":199,"y":337,"length":391.3693907295255},{"x":232,"y":357,"length":425.7616704213755},{"x":271,"y":373,"length":461.0531422732091},{"x":308,"y":385,"length":493.04056628232934},{"x":352,"y":394,"length":528.3370136570028},{"x":399,"y":399,"length":564.2712113868649},{"x":439,"y":400,"length":593.9031907642861},{"x":486,"y":395,"length":626.2754984828961},{"x":525,"y":389,"length":653.4110497994352},{"x":563,"y":377,"length":677.5677087937412},{"x":1269,"y":9,"length":1269.031914492303}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1283.5,"type":9,"textureOffset":0,"y":0}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6950,"safeId":-1,"rotation":0,"graphic":true,"height":334.3,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":4,"y":-6,"length":7.211102550927978},{"x":690,"y":296,"length":750.8102290192909},{"x":726,"y":307,"length":788.2417141968573},{"x":761,"y":311,"length":822.0961014382686},{"x":796,"y":309,"length":853.8717702325098},{"x":826,"y":304,"length":880.1658934541829},{"x":860,"y":292,"length":908.220237607597},{"x":889,"y":274,"length":930.2671659260043},{"x":916,"y":251,"length":949.766813486342},{"x":940,"y":224,"length":966.3208576865139},{"x":959,"y":195,"length":978.6245449609365},{"x":974,"y":156,"length":986.4137063119105},{"x":980,"y":119,"length":987.1985615872827}],"smoothing":true,"id":-1,"repeatTexture":true,"width":991.4,"type":8,"textureOffset":0,"y":-120}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":8370,"safeId":-1,"rotation":0,"graphic":true,"height":380.95,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":2,"y":-2,"length":2.8284271247461903},{"x":7,"y":29,"length":29.832867780352597},{"x":16,"y":58,"length":60.166435825965294},{"x":29,"y":86,"length":90.75791976461338},{"x":49,"y":112,"length":122.24974437601087},{"x":70,"y":134,"length":151.18200951171406},{"x":96,"y":155,"length":182.3211452355431},{"x":121,"y":171,"length":209.4803093371785},{"x":149,"y":181,"length":234.4397577204003},{"x":177,"y":188,"length":258.2111539031573},{"x":203,"y":190,"length":278.044960393099},{"x":229,"y":190,"length":297.5583976297762},{"x":259,"y":186,"length":318.8683113763423},{"x":282,"y":179,"length":334.0134727821619},{"x":319,"y":164,"length":358.687886608957},{"x":955,"y":-174,"length":970.7218963225255}],"smoothing":true,"id":-1,"repeatTexture":true,"width":968.4,"type":8,"textureOffset":0,"y":0}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8267,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-30,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":105,"y":0,"length":105},{"x":103,"y":18,"length":104.5609869884557},{"x":98,"y":35,"length":104.06248123122954},{"x":90,"y":52,"length":103.94229168149026},{"x":80,"y":67,"length":104.35037134576953},{"x":67,"y":80,"length":104.35037134576953},{"x":52,"y":90,"length":103.94229168149026},{"x":35,"y":98,"length":104.06248123122954},{"x":18,"y":103,"length":104.5609869884557},{"x":0,"y":105,"length":105},{"x":-18,"y":103,"length":104.5609869884557},{"x":-35,"y":98,"length":104.06248123122954},{"x":-52,"y":90,"length":103.94229168149026},{"x":-67,"y":80,"length":104.35037134576953},{"x":-80,"y":67,"length":104.35037134576953},{"x":-90,"y":52,"length":103.94229168149026},{"x":-98,"y":35,"length":104.06248123122954},{"x":-103,"y":18,"length":104.5609869884557},{"x":-105,"y":0,"length":105},{"x":-103,"y":-18,"length":104.5609869884557},{"x":-98,"y":-35,"length":104.06248123122954},{"x":-90,"y":-52,"length":103.94229168149026},{"x":-80,"y":-67,"length":104.35037134576953},{"x":-67,"y":-80,"length":104.35037134576953},{"x":-52,"y":-90,"length":103.94229168149026},{"x":-35,"y":-98,"length":104.06248123122954},{"x":-18,"y":-103,"length":104.5609869884557},{"x":0,"y":-105,"length":105},{"x":18,"y":-103,"length":104.5609869884557},{"x":35,"y":-98,"length":104.06248123122954},{"x":52,"y":-90,"length":103.94229168149026},{"x":67,"y":-80,"length":104.35037134576953},{"x":80,"y":-67,"length":104.35037134576953},{"x":90,"y":-52,"length":103.94229168149026},{"x":98,"y":-35,"length":104.06248123122954},{"x":103,"y":-18,"length":104.5609869884557}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":12050,"safeId":-1,"rotation":0,"graphic":true,"height":513.55,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":-808,"y":-64,"length":810.5306903504642},{"x":726,"y":307,"length":788.2417141968573},{"x":761,"y":311,"length":822.0961014382686},{"x":796,"y":309,"length":853.8717702325098},{"x":826,"y":304,"length":880.1658934541829},{"x":860,"y":292,"length":908.220237607597},{"x":889,"y":274,"length":930.2671659260043},{"x":916,"y":251,"length":949.766813486342},{"x":940,"y":224,"length":966.3208576865139},{"x":959,"y":195,"length":978.6245449609365},{"x":974,"y":156,"length":986.4137063119105},{"x":978,"y":106,"length":983.7276045735425},{"x":980,"y":-94,"length":984.4978415415648},{"x":972,"y":-131,"length":980.7879485393364},{"x":952,"y":-161,"length":965.5179956893605},{"x":928,"y":-187,"length":946.6535797217481}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1803.5,"type":8,"textureOffset":0,"y":-90}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":11964,"safeId":-1,"rotation":0,"graphic":true,"height":796.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":-851,"y":-65,"length":853.4787636491021},{"x":744,"y":323,"length":811.0887744260797},{"x":787,"y":332,"length":854.1621625897509},{"x":825,"y":337,"length":891.1756280329932},{"x":867,"y":337,"length":930.1924532052493},{"x":907,"y":334,"length":966.54280815699},{"x":947,"y":328,"length":1002.1940929780019},{"x":989,"y":317,"length":1038.5615051599013},{"x":1021,"y":305,"length":1065.5824698257757},{"x":1058,"y":287,"length":1096.235832291574},{"x":1092,"y":266,"length":1123.9306028398728},{"x":1125,"y":239,"length":1150.10695154842},{"x":1158,"y":207,"length":1176.355813519022},{"x":1187,"y":175,"length":1199.8308214077517},{"x":1209,"y":145,"length":1217.6641573110378},{"x":1226,"y":119,"length":1231.7617464428745},{"x":1244,"y":83,"length":1246.7658160215976},{"x":1255,"y":53,"length":1256.1186249713837},{"x":1264,"y":24,"length":1264.227827569066},{"x":1270,"y":-20,"length":1270.1574705523722},{"x":1272,"y":-64,"length":1273.6090451940108},{"x":1270,"y":-318,"length":1309.2073938074136},{"x":1260,"y":-365,"length":1311.8021954547874},{"x":1246,"y":-406,"length":1310.477775469695},{"x":1225,"y":-444,"length":1302.981580836813}],"smoothing":true,"id":-1,"repeatTexture":true,"width":2138.5,"type":9,"textureOffset":0,"y":93}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":11270,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-160,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-15,"y":0,"length":15},{"x":890,"y":5,"length":890.0140448330015},{"x":890,"y":225,"length":918.0005446621478},{"x":765,"y":195,"length":789.461842016446},{"x":765,"y":50,"length":766.6322456041097},{"x":185,"y":50,"length":191.637678967368}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":13240,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-240,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":835,"y":5,"length":835.0149699256895},{"x":835,"y":-1235,"length":1490.7883820314673},{"x":985,"y":-1230,"length":1575.7934509319425},{"x":985,"y":685,"length":1199.7708114469197},{"x":0,"y":680,"length":680}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6960,"safeId":-1,"rotation":0,"graphic":true,"height":341.6,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":658,"y":293,"length":720.2867484550858},{"x":685,"y":302,"length":748.6180601615218},{"x":711,"y":308,"length":774.8451458194728},{"x":745,"y":311,"length":807.3078718803627},{"x":784,"y":310,"length":843.0634614309886},{"x":819,"y":304,"length":873.6000228937726},{"x":853,"y":296,"length":902.8981116382955},{"x":888,"y":283,"length":932.0048283136734},{"x":916,"y":265,"length":953.5622685488347},{"x":945,"y":240,"length":975},{"x":969,"y":216,"length":992.782453511342},{"x":996,"y":184,"length":1012.8533951169834},{"x":1016,"y":151,"length":1027.159675999793},{"x":1030,"y":113,"length":1036.1800036673164},{"x":1040,"y":77,"length":1042.8465850737587}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1061.9,"type":10,"textureOffset":0,"y":-50}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":8310,"safeId":-1,"rotation":0,"graphic":true,"height":374.15,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":4,"y":-1,"length":4.123105625617661},{"x":7,"y":36,"length":36.6742416417845},{"x":14,"y":62,"length":63.56099432828282},{"x":32,"y":92,"length":97.40636529508737},{"x":52,"y":117,"length":128.03515142334936},{"x":73,"y":140,"length":157.88920165736477},{"x":101,"y":165,"length":193.45800577903205},{"x":127,"y":185,"length":224.39696967650877},{"x":158,"y":201,"length":255.66579747787932},{"x":189,"y":212,"length":284.01584462842914},{"x":222,"y":219,"length":311.8413057951111},{"x":257,"y":222,"length":339.60712595586097},{"x":292,"y":221,"length":366.2034953410467},{"x":331,"y":216,"length":395.2429632517194},{"x":369,"y":206,"length":422.60738280347164},{"x":399,"y":192,"length":442.7922763554035},{"x":993,"y":-122,"length":1000.4663912396059}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1012.45,"type":10,"textureOffset":0,"y":40}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":11220,"safeId":-1,"rotation":0,"graphic":true,"height":605.95,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":1517,"y":370,"length":1561.4701406046802},{"x":1567,"y":377,"length":1611.712753563736},{"x":1612,"y":380,"length":1656.1835647053138},{"x":1657,"y":375,"length":1698.9037641961947},{"x":1705,"y":362,"length":1743.0057372252106},{"x":1741,"y":344,"length":1774.6596856862445},{"x":1782,"y":315,"length":1809.626757096612},{"x":1817,"y":280,"length":1838.4474428169003},{"x":1843,"y":240,"length":1858.5610024962862},{"x":1860,"y":204,"length":1871.1536548343645},{"x":1875,"y":164,"length":1882.1586011811014},{"x":1879,"y":116,"length":1882.5772228516948},{"x":1878,"y":-115,"length":1881.5177384228934},{"x":1873,"y":-142,"length":1878.375095661141},{"x":1860,"y":-172,"length":1867.9357590666762},{"x":1843,"y":-202,"length":1854.0369467731757}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1901.5,"type":10,"textureOffset":0,"y":-90}}],[{"className":"PlankWipe0","params":{"x":2380,"safeId":-10,"active":false,"y":170,"id":81,"rotation":0,"width":85.1,"height":18}},{"className":"Dec42","params":{"x":1500,"rotation":0,"y":-190,"width":68.25,"height":302.1}},{"className":"Dec42","params":{"x":1790,"rotation":0,"y":-260,"width":68.25,"height":302.1}},{"className":"Dec42","params":{"x":2080,"rotation":0,"y":-200,"width":68.25,"height":302.1}},{"className":"Dec42","params":{"x":3640,"rotation":0,"y":-30,"width":68.25,"height":302.1}},{"className":"Dec42","params":{"x":3060,"rotation":0,"y":-40,"width":68.25,"height":302.1}},{"className":"Dec42","params":{"x":3350,"rotation":0,"y":-90,"width":68.25,"height":302.1}},{"className":"PlankWipe0","params":{"x":2440,"safeId":-10,"active":false,"y":170,"id":81,"rotation":0,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":2500,"safeId":-10,"active":false,"y":170,"id":81,"rotation":0,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":2560,"safeId":-10,"active":false,"y":170,"id":81,"rotation":0,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":2620,"safeId":-10,"active":false,"y":170,"id":81,"rotation":0,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":2680,"safeId":-10,"active":false,"y":170,"id":81,"rotation":0,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":2740,"safeId":-10,"active":false,"y":170,"id":81,"rotation":0,"width":85.1,"height":18}},{"className":"RemovedWipe0","params":{"x":4165,"safeId":-10,"active":false,"y":170,"id":82,"rotation":90,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":4165,"safeId":-10,"active":false,"y":150,"id":82,"rotation":90,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":4095,"safeId":-10,"active":false,"y":150,"id":82,"rotation":57,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":4015,"safeId":-10,"active":false,"y":170,"id":82,"rotation":90,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":3929,"safeId":-10,"active":false,"y":170,"id":82,"rotation":90,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":3844,"safeId":-10,"active":false,"y":170,"id":82,"rotation":90,"width":18,"type":0,"height":85.1}},{"className":"PlankWipe0","params":{"x":2800,"safeId":-10,"active":false,"y":170,"id":81,"rotation":0,"width":85.1,"height":18}},{"className":"Dec36","params":{"scaleX":1,"rotation":-87,"scaleY":0.971422739334558,"x":8017,"y":1,"width":75.25,"height":237.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":0.971422739334558,"x":8253,"y":3,"width":75.25,"height":237.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-30,"scaleY":0.971422739334558,"x":9365,"y":-100,"width":75.25,"height":237.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-156,"scaleY":-1,"x":11178,"y":-80,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-120,"scaleY":1,"x":13063,"y":-323,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-150,"scaleY":-0.971422739334558,"x":6918,"y":-53,"width":75.25,"height":237.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-156,"scaleY":-0.971422739334558,"x":7319,"y":137,"width":75.25,"height":237.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":180,"scaleY":-0.971422739334558,"x":7711,"y":282,"width":75.25,"height":237.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-30,"scaleY":0.971422739334558,"x":8927,"y":140,"width":75.25,"height":237.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":0,"scaleY":0.971422739334558,"x":8588,"y":277,"width":75.25,"height":237.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-162,"scaleY":-1,"x":11657,"y":43.85,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-162,"scaleY":-1,"x":12088,"y":151,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-165,"scaleY":-1,"x":12517,"y":252,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":153,"scaleY":-1,"x":12946.85,"y":289.6,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":13118,"y":-2,"width":75.25,"height":244.95}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":6410,"y":-200,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":0.7273081417997662,"x":8491,"y":343,"width":9.3,"height":93.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":0.6961433580054538,"x":12818,"y":382,"width":9.3,"height":89.3}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":170,"y":0,"width":9.3,"height":128.35}},{"className":"Sign1","params":{"x":170,"rotation":-179.99999999999994,"y":-70,"width":68.8,"height":69.8}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":210,"y":-110,"width":640,"height":256}},{"className":"Dec54","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":740,"y":-110,"width":256,"height":256}}],[{"className":"Tnt1","params":{"x":8335,"safeId":-1,"rotation":0,"y":58,"count":12,"radius":64,"physic":false,"stones":false,"impulse":9000,"id":2,"width":53.2,"height":53.2}}],[{"className":"Dec41","params":{"x":1500,"rotation":0,"y":-190,"width":69.2,"height":301.7}},{"className":"Dec41","params":{"x":1790,"rotation":0,"y":-260,"width":69.2,"height":301.7}},{"className":"Dec41","params":{"x":2080,"rotation":0,"y":-200,"width":69.2,"height":301.7}},{"className":"Dec41","params":{"x":3060,"rotation":0,"y":-40,"width":69.2,"height":301.7}},{"className":"Dec41","params":{"x":3350,"rotation":0,"y":-90,"width":69.2,"height":301.7}},{"className":"Dec41","params":{"x":3640,"rotation":0,"y":-30,"width":69.2,"height":301.7}},{"className":"Dec37","params":{"scaleX":0.9799899949974987,"rotation":-87,"scaleY":0.9501867995018681,"x":8019,"y":-1,"width":97.95,"height":267.05}},{"className":"Dec37","params":{"scaleX":0.9799899949974987,"rotation":-90,"scaleY":0.9501867995018681,"x":8261,"y":2,"width":97.95,"height":267.05}},{"className":"Dec37","params":{"scaleX":0.9799899949974987,"rotation":-30,"scaleY":0.9501867995018681,"x":9370,"y":-94,"width":97.95,"height":267.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-155.99999999999994,"scaleY":-1,"x":11180,"y":-78,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-119.99999999999994,"scaleY":1,"x":13066,"y":-324,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":0.9799899949974987,"rotation":-150,"scaleY":-0.9501867995018681,"x":6915,"y":-50,"width":97.95,"height":267.05}},{"className":"Dec37","params":{"scaleX":0.9799899949974987,"rotation":-156,"scaleY":-0.9501867995018681,"x":7316,"y":141,"width":97.95,"height":267.05}},{"className":"Dec37","params":{"scaleX":0.9799899949974987,"rotation":180,"scaleY":-0.9501867995018681,"x":7710,"y":287,"width":97.95,"height":267.05}},{"className":"Dec37","params":{"scaleX":0.9799899949974987,"rotation":-30,"scaleY":0.9501867995018681,"x":8932,"y":146,"width":97.95,"height":267.05}},{"className":"Dec37","params":{"scaleX":0.9799899949974987,"rotation":0,"scaleY":0.9501867995018681,"x":8589,"y":284,"width":97.95,"height":267.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-161.99999999999994,"scaleY":-1,"x":11659.1,"y":45.75,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-161.99999999999994,"scaleY":-1,"x":12090,"y":153,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-164.99999999999994,"scaleY":-1,"x":12519,"y":254,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":153.00000000000006,"scaleY":-1,"x":12949.85,"y":289.75,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-89.99999999999994,"scaleY":1,"x":13121,"y":-2,"width":99.95,"height":281.05}}],[{"className":"PlayerWP","params":{"x":380,"rotation":0,"y":10,"width":64,"height":32}},{"className":"SafePointE","params":{"x":6410,"rotation":0,"y":-270,"id":0,"width":128,"height":1983}},{"className":"SafePointE","params":{"x":8493,"rotation":0,"y":280,"id":0,"width":128,"height":356}},{"className":"SafePointE","params":{"x":12819,"rotation":0,"y":326,"id":0,"width":128,"height":415}}],[{"className":"PivotJointE","params":{"x":2350,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":170,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2410,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":170,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2470,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":170,"width":17,"height":17}},{"className":"ToggleE","params":{"x":5550,"safeId":-1,"sndId":0,"hint":-1,"id_off":82,"id":0,"off":false,"y":-610,"width":64,"rotation":0,"height":2061}},{"className":"PivotJointE","params":{"x":2530,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":170,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2590,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":170,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2650,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":170,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2710,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":170,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2770,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":170,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2830,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":170,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":5894,"safeId":-1,"rotation":0,"graphic":0,"y":-127,"useWeld":false,"time":0,"snd":false,"id":1,"rate":-180,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":5533,"safeId":-1,"rotation":0,"graphic":0,"y":-126,"useWeld":false,"time":0,"snd":false,"id":1,"rate":180,"width":17,"height":17}},{"className":"ToggleE","params":{"x":4750,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":1,"off":false,"y":-240,"width":64,"rotation":0,"height":1443}},{"className":"ToggleE","params":{"x":8170,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":2,"off":false,"y":-400,"width":627,"rotation":0,"height":64}},{"className":"ToggleE","params":{"x":1790,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":80,"off":false,"y":-250,"width":64,"rotation":0,"height":2061}},{"className":"ToggleE","params":{"x":2970,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":82,"off":false,"y":-270,"width":64,"rotation":0,"height":2061}},{"className":"ToggleE","params":{"x":10610,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-420,"width":64,"rotation":0,"height":2061}},{"className":"ToggleE","params":{"x":1700,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":81,"off":false,"y":-230,"width":64,"rotation":0,"height":403}},{"className":"ToggleE","params":{"x":6590,"safeId":-1,"sndId":-1,"hint":-1,"id_off":1,"id":-2,"off":false,"y":-230,"width":64,"rotation":0,"height":1443}},{"className":"ToggleE","params":{"x":3780,"safeId":-1,"sndId":0,"hint":-1,"id_off":81,"id":83,"off":false,"y":-290,"width":64,"rotation":0,"height":2061}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map5.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map5.json new file mode 100644 index 000000000..f02b15e92 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map5.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"26,33,42"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5160,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-220,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":2220,"y":0,"length":2220},{"x":2275,"y":65,"length":2275.9283820015075},{"x":3950,"y":65,"length":3950.5347739261833},{"x":4195,"y":65,"length":4195.503545463882},{"x":4820,"y":30,"length":4820.093360091691},{"x":4855,"y":705,"length":4905.919893353335},{"x":-5,"y":690,"length":690.0181157042183}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2320,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-270,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1640,"y":5,"length":1640.007621933508},{"x":1640,"y":740,"length":1799.222054111165},{"x":0,"y":735,"length":735}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5362,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-432,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":5,"y":20,"length":20.615528128088304},{"x":70,"y":20,"length":72.80109889280519},{"x":276,"y":126,"length":303.4007251144928},{"x":311,"y":142,"length":341.8844834150857},{"x":344,"y":155,"length":377.30756684699554},{"x":382,"y":166,"length":416.50930361757827},{"x":425,"y":174,"length":459.23958888580154},{"x":465,"y":177,"length":497.54798763536365},{"x":511,"y":177,"length":540.7864643276494},{"x":550,"y":174,"length":576.8674024418436},{"x":593,"y":167,"length":616.0665548461465},{"x":631,"y":156,"length":649.9976923035958},{"x":671,"y":141,"length":685.6544319115862},{"x":710,"y":121,"length":720.2367666260866},{"x":744,"y":100,"length":750.6903489455556},{"x":785,"y":65,"length":787.6864858558893},{"x":875,"y":-30,"length":875.5141346660258},{"x":940,"y":-30,"length":940.4786015641185},{"x":940,"y":345,"length":1001.3116398005169},{"x":5,"y":345,"length":345.03622998172233}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6470,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-186,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":120,"y":0,"length":120},{"x":148,"y":18,"length":149.09057649630307},{"x":138,"y":57,"length":149.30840565755165},{"x":104,"y":59,"length":119.57006314291216},{"x":84,"y":84,"length":118.79393923933998},{"x":92,"y":118,"length":149.6262009141447},{"x":57,"y":138,"length":149.30840565755165},{"x":31,"y":115,"length":119.10499569707393},{"x":0,"y":120,"length":120},{"x":-18,"y":148,"length":149.09057649630307},{"x":-57,"y":138,"length":149.30840565755165},{"x":-59,"y":104,"length":119.57006314291216},{"x":-84,"y":84,"length":118.79393923933998},{"x":-118,"y":92,"length":149.6262009141447},{"x":-138,"y":57,"length":149.30840565755165},{"x":-115,"y":31,"length":119.10499569707393},{"x":-120,"y":0,"length":120},{"x":-148,"y":-18,"length":149.09057649630307},{"x":-138,"y":-57,"length":149.30840565755165},{"x":-104,"y":-59,"length":119.57006314291216},{"x":-84,"y":-84,"length":118.79393923933998},{"x":-92,"y":-118,"length":149.6262009141447},{"x":-57,"y":-138,"length":149.30840565755165},{"x":-31,"y":-115,"length":119.10499569707393},{"x":0,"y":-120,"length":120},{"x":18,"y":-148,"length":149.09057649630307},{"x":57,"y":-138,"length":149.30840565755165},{"x":59,"y":-104,"length":119.57006314291216},{"x":84,"y":-84,"length":118.79393923933998},{"x":118,"y":-92,"length":149.6262009141447},{"x":138,"y":-57,"length":149.30840565755165},{"x":115,"y":-31,"length":119.10499569707393}],"line":true,"id":5,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7226,"safeId":-1,"rotation":-15,"graphic":true,"isWheel":true,"y":-182,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":120,"y":0,"length":120},{"x":148,"y":18,"length":149.09057649630307},{"x":138,"y":57,"length":149.30840565755165},{"x":104,"y":59,"length":119.57006314291216},{"x":84,"y":84,"length":118.79393923933998},{"x":92,"y":118,"length":149.6262009141447},{"x":57,"y":138,"length":149.30840565755165},{"x":31,"y":115,"length":119.10499569707393},{"x":0,"y":120,"length":120},{"x":-18,"y":148,"length":149.09057649630307},{"x":-57,"y":138,"length":149.30840565755165},{"x":-59,"y":104,"length":119.57006314291216},{"x":-84,"y":84,"length":118.79393923933998},{"x":-118,"y":92,"length":149.6262009141447},{"x":-138,"y":57,"length":149.30840565755165},{"x":-115,"y":31,"length":119.10499569707393},{"x":-120,"y":0,"length":120},{"x":-148,"y":-18,"length":149.09057649630307},{"x":-138,"y":-57,"length":149.30840565755165},{"x":-104,"y":-59,"length":119.57006314291216},{"x":-84,"y":-84,"length":118.79393923933998},{"x":-92,"y":-118,"length":149.6262009141447},{"x":-57,"y":-138,"length":149.30840565755165},{"x":-31,"y":-115,"length":119.10499569707393},{"x":0,"y":-120,"length":120},{"x":18,"y":-148,"length":149.09057649630307},{"x":57,"y":-138,"length":149.30840565755165},{"x":59,"y":-104,"length":119.57006314291216},{"x":84,"y":-84,"length":118.79393923933998},{"x":118,"y":-92,"length":149.6262009141447},{"x":138,"y":-57,"length":149.30840565755165},{"x":115,"y":-31,"length":119.10499569707393}],"line":true,"id":5,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":7730,"viscosity":1.5,"rotation":0,"y":-156,"vertices":[{"x":25,"y":0,"length":25},{"x":1385,"y":0,"length":1385},{"x":1385,"y":195,"length":1398.6600730699365},{"x":1380,"y":225,"length":1398.222085364124},{"x":1370,"y":260,"length":1394.4532978913278},{"x":1350,"y":290,"length":1380.7968713753664},{"x":1325,"y":315,"length":1361.9287793420037},{"x":1285,"y":335,"length":1327.949547234382},{"x":1240,"y":345,"length":1287.0994522568953},{"x":400,"y":345,"length":528.2281703960894},{"x":360,"y":340,"length":495.17673612559787},{"x":325,"y":330,"length":463.1684358848301},{"x":300,"y":315,"length":435},{"x":270,"y":285,"length":392.587569849072}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6848,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-380,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":270,"y":0,"length":270},{"x":298,"y":26,"length":299.1320778519081},{"x":294,"y":58,"length":299.66648127543397},{"x":259,"y":76,"length":269.92035862453946},{"x":249,"y":103,"length":269.462427807663},{"x":265,"y":139,"length":299.2423766781704},{"x":249,"y":166,"length":299.2607558635111},{"x":210,"y":169,"length":269.5570440556136},{"x":190,"y":190,"length":268.70057685088807},{"x":192,"y":230,"length":299.6064084761873},{"x":166,"y":249,"length":299.2607558635111},{"x":129,"y":236,"length":268.9553866350328},{"x":103,"y":249,"length":269.462427807663},{"x":89,"y":286,"length":299.5279619668254},{"x":58,"y":294,"length":299.66648127543397},{"x":28,"y":268,"length":269.45871668958864},{"x":0,"y":270,"length":270},{"x":-26,"y":298,"length":299.1320778519081},{"x":-58,"y":294,"length":299.66648127543397},{"x":-76,"y":259,"length":269.92035862453946},{"x":-103,"y":249,"length":269.462427807663},{"x":-139,"y":265,"length":299.2423766781704},{"x":-166,"y":249,"length":299.2607558635111},{"x":-169,"y":210,"length":269.5570440556136},{"x":-190,"y":190,"length":268.70057685088807},{"x":-230,"y":192,"length":299.6064084761873},{"x":-249,"y":166,"length":299.2607558635111},{"x":-236,"y":129,"length":268.9553866350328},{"x":-249,"y":103,"length":269.462427807663},{"x":-286,"y":89,"length":299.5279619668254},{"x":-294,"y":58,"length":299.66648127543397},{"x":-268,"y":28,"length":269.45871668958864},{"x":-270,"y":0,"length":270},{"x":-298,"y":-26,"length":299.1320778519081},{"x":-294,"y":-58,"length":299.66648127543397},{"x":-259,"y":-76,"length":269.92035862453946},{"x":-249,"y":-103,"length":269.462427807663},{"x":-265,"y":-139,"length":299.2423766781704},{"x":-249,"y":-166,"length":299.2607558635111},{"x":-210,"y":-169,"length":269.5570440556136},{"x":-190,"y":-190,"length":268.70057685088807},{"x":-192,"y":-230,"length":299.6064084761873},{"x":-166,"y":-249,"length":299.2607558635111},{"x":-129,"y":-236,"length":268.9553866350328},{"x":-103,"y":-249,"length":269.462427807663},{"x":-89,"y":-286,"length":299.5279619668254},{"x":-58,"y":-294,"length":299.66648127543397},{"x":-28,"y":-268,"length":269.45871668958864},{"x":0,"y":-270,"length":270},{"x":26,"y":-298,"length":299.1320778519081},{"x":58,"y":-294,"length":299.66648127543397},{"x":76,"y":-259,"length":269.92035862453946},{"x":103,"y":-249,"length":269.462427807663},{"x":139,"y":-265,"length":299.2423766781704},{"x":166,"y":-249,"length":299.2607558635111},{"x":169,"y":-210,"length":269.5570440556136},{"x":190,"y":-190,"length":268.70057685088807},{"x":230,"y":-192,"length":299.6064084761873},{"x":249,"y":-166,"length":299.2607558635111},{"x":236,"y":-129,"length":268.9553866350328},{"x":249,"y":-103,"length":269.462427807663},{"x":286,"y":-89,"length":299.5279619668254},{"x":294,"y":-58,"length":299.66648127543397},{"x":268,"y":-28,"length":269.45871668958864}],"line":true,"id":5,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":5190,"viscosity":1.5,"rotation":0,"y":-220,"vertices":[{"x":0,"y":0,"length":0},{"x":2195,"y":0,"length":2195},{"x":2690,"y":530,"length":2741.7147918775213},{"x":2740,"y":570,"length":2798.660393831306},{"x":2785,"y":595,"length":2847.8500662780684},{"x":2826,"y":608,"length":2890.6642835168527},{"x":2871,"y":617,"length":2936.550697672356},{"x":2930,"y":623,"length":2995.5014605237634},{"x":3794,"y":621,"length":3844.4865717023904},{"x":3835,"y":616,"length":3884.157695047924},{"x":3880,"y":608,"length":3927.3482147627296},{"x":3928,"y":586,"length":3971.470760310341},{"x":3975,"y":561,"length":4014.392357505679},{"x":4021,"y":528,"length":4055.517846095613},{"x":4059,"y":491,"length":4088.589243247602},{"x":4086,"y":452,"length":4110.924470237807},{"x":4111,"y":405,"length":4130.901354426174},{"x":4127,"y":358,"length":4142.498400723892},{"x":4138,"y":309,"length":4149.5210567004},{"x":4141,"y":248,"length":4148.419578586525},{"x":4142,"y":106,"length":4143.356127585463},{"x":4723,"y":102,"length":4724.101290192665},{"x":4725,"y":718,"length":4779.241467011267},{"x":0,"y":655,"length":655}],"id":-1,"bg":false,"sf":true}},{"className":"FinishZone","params":{"x":10564,"rotation":0,"y":-410,"width":247,"height":320}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10250,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-240,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":65,"y":-60,"length":88.45903006477066},{"x":130,"y":0,"length":130},{"x":190,"y":-65,"length":200.81085628023203},{"x":255,"y":0,"length":255},{"x":320,"y":-65,"length":326.5348373451139},{"x":385,"y":0,"length":385},{"x":450,"y":-65,"length":454.6702101523697},{"x":510,"y":0,"length":510},{"x":510,"y":260,"length":572.4508712544684},{"x":0,"y":260,"length":260}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10760,"safeId":-1,"rotation":-180,"graphic":true,"isWheel":false,"y":-523,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":60,"y":65,"length":88.45903006477066},{"x":125,"y":0,"length":125},{"x":190,"y":65,"length":200.81085628023203},{"x":255,"y":0,"length":255},{"x":320,"y":65,"length":326.5348373451139},{"x":385,"y":0,"length":385},{"x":445,"y":60,"length":449.02672526253934},{"x":510,"y":0,"length":510},{"x":510,"y":260,"length":572.4508712544684},{"x":0,"y":260,"length":260}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9331,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-308,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1730,"y":0,"length":1730},{"x":1730,"y":750,"length":1885.5768348173988},{"x":580,"y":750,"length":948.1033698917012},{"x":580,"y":195,"length":611.9027700541974},{"x":0,"y":195,"length":195}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9315,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-619,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":-510,"length":510},{"x":1740,"y":-510,"length":1813.201588351389},{"x":1740,"y":105,"length":1743.1652245269236},{"x":0,"y":105,"length":105}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3218,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-436,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":300,"y":0,"length":300},{"x":534,"y":128,"length":549.1265792146652},{"x":444,"y":323,"length":549.0582847020888},{"x":194,"y":228,"length":299.3659967330959},{"x":92,"y":285,"length":299.4812181089158},{"x":43,"y":548,"length":549.6844549375578},{"x":-169,"y":523,"length":549.6271463455931},{"x":-156,"y":255,"length":298.93310288424067},{"x":-242,"y":176,"length":299.23235119217975},{"x":-508,"y":210,"length":549.6944605869701},{"x":-550,"y":0,"length":550},{"x":-291,"y":-70,"length":299.3008519867593},{"x":-242,"y":-176,"length":299.23235119217975},{"x":-357,"y":-418,"length":549.7026468919356},{"x":-169,"y":-523,"length":549.6271463455931},{"x":-23,"y":-299,"length":299.88331063932185},{"x":92,"y":-285,"length":299.4812181089158},{"x":287,"y":-468,"length":548.9927139771529},{"x":444,"y":-323,"length":549.0582847020888},{"x":277,"y":-114,"length":299.5413160150032}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":2330,"viscosity":1.5,"rotation":0,"y":-270,"vertices":[{"x":0,"y":0,"length":0},{"x":1805,"y":0,"length":1805},{"x":1805,"y":840,"length":1990.8854813876162},{"x":0,"y":840,"length":840}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":1630,"y":420,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":12943,"textureOffset":0,"height":83,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":true,"physic":true,"vertices":[{"x":-1880,"y":0,"length":1880},{"x":9430,"y":15,"length":9430.011930003058},{"x":11050,"y":5,"length":11050.001131221661}],"line":true,"shape":true,"isRoad":true,"smoothing":true,"camera":false}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":1770,"y":-270,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":11788.2,"textureOffset":0,"height":778.35,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":-1285,"y":705,"length":1465.6909633343585},{"x":-490,"y":545,"length":732.8881224307022},{"x":-144,"y":-6,"length":144.12494579357175},{"x":3355,"y":-5,"length":3355.0037257803456},{"x":3500,"y":195,"length":3505.4279339333166},{"x":5585,"y":185,"length":5588.063170723824},{"x":6160,"y":630,"length":6192.132104533946},{"x":6285,"y":680,"length":6321.678970020544},{"x":7310,"y":680,"length":7341.559779774323},{"x":8710,"y":25,"length":8710.035878226909},{"x":10490,"y":30,"length":10490.04289791038}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5080,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":320,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1000,"y":-735,"length":1241.0580163715151},{"x":115,"y":-735,"length":743.9422020560469},{"x":115,"y":100,"length":152.3975065412817},{"x":-1225,"y":100,"length":1229.0748553281855},{"x":-1225,"y":-600,"length":1364.047286570374}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3480,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1094,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-870,"y":-1490,"length":1725.3985046939156},{"x":2900,"y":-1495,"length":3262.6714514336254},{"x":3665,"y":-760,"length":3742.9700773583536},{"x":3660,"y":65,"length":3660.577140288127},{"x":2670,"y":65,"length":2670.7910813090566},{"x":2670,"y":410,"length":2701.29598526337},{"x":1834,"y":407,"length":1878.6178429898935},{"x":1855,"y":385,"length":1894.5316043814103},{"x":1879,"y":354,"length":1912.0557000254987},{"x":1908,"y":306,"length":1932.38194982255},{"x":1929,"y":246,"length":1944.6225854905624},{"x":1935,"y":200,"length":1945.3084588311438},{"x":1935,"y":142,"length":1940.2033398589954},{"x":1931,"y":95,"length":1933.3354597689456},{"x":1919,"y":48,"length":1919.6002187955698},{"x":1893,"y":-1,"length":1893.0002641309904},{"x":1865,"y":-46,"length":1865.5672059724893},{"x":1824,"y":-91,"length":1826.2686001790646},{"x":1777,"y":-127,"length":1781.5324863723367},{"x":1728,"y":-151,"length":1734.5849647682296},{"x":1680,"y":-166,"length":1688.1812698878045},{"x":1636,"y":-173,"length":1645.1215760544872},{"x":1596,"y":-174,"length":1605.4569442996594},{"x":1546,"y":-170,"length":1555.318616875655},{"x":1504,"y":-161,"length":1512.5928070700322},{"x":1460,"y":-146,"length":1467.28184068365},{"x":1417,"y":-122,"length":1422.2422437826829},{"x":1377,"y":-92,"length":1380.0699257646331},{"x":1345,"y":-61,"length":1346.3825607902088},{"x":1313,"y":-20,"length":1313.1523140900297},{"x":1290,"y":22,"length":1290.1875832606668},{"x":1273,"y":72,"length":1275.0345093369042},{"x":1262,"y":122,"length":1267.8832753846073},{"x":1261,"y":169,"length":1272.2743414845716},{"x":1264,"y":214,"length":1281.9875194400295},{"x":1274,"y":261,"length":1300.460303123475},{"x":1288,"y":300,"length":1322.4764648189396},{"x":1310,"y":340,"length":1353.4031180694094},{"x":1334,"y":374,"length":1385.4356715488452},{"x":1365,"y":410,"length":1425.2455928716286},{"x":242,"y":411,"length":476.95387617672213},{"x":207,"y":347,"length":404.0519768544636},{"x":158,"y":286,"length":326.7414880299103},{"x":109,"y":239,"length":262.682317638626},{"x":61,"y":201,"length":210.05237442123808},{"x":16,"y":170,"length":170.75128110793196},{"x":-47,"y":138,"length":145.7840869230932},{"x":-121,"y":115,"length":166.93112352104984},{"x":-195,"y":101,"length":219.6041893953756},{"x":-267,"y":96,"length":283.73403038761495},{"x":-330,"y":102,"length":345.4041111509821},{"x":-397,"y":115,"length":413.3206987316266},{"x":-457,"y":132,"length":475.6816162098342},{"x":-521,"y":159,"length":544.7219474190479},{"x":-574,"y":192,"length":605.2602745926747},{"x":-629,"y":235,"length":671.4655612911208},{"x":-668,"y":273,"length":721.6321777747996},{"x":-716,"y":328,"length":787.5531728080333},{"x":-757,"y":391,"length":852.0152580793374},{"x":-788,"y":458,"length":911.431840567357},{"x":-1820,"y":454,"length":1875.7707749082776},{"x":-1855,"y":415,"length":1900.8550707510553},{"x":-1891,"y":388,"length":1930.3950372915901},{"x":-1927,"y":366,"length":1961.4497189578938},{"x":-1967,"y":345,"length":1997.0262892611104},{"x":-2006,"y":332,"length":2033.2879776362226},{"x":-2049,"y":323,"length":2074.302292338318},{"x":-2097,"y":321,"length":2121.4264069253027},{"x":-2146,"y":324,"length":2170.3207136273663},{"x":-2199,"y":333,"length":2224.0705924048366},{"x":-2242,"y":348,"length":2268.847284415591},{"x":-2290,"y":372,"length":2320.018103377644},{"x":-2340,"y":409,"length":2375.474899888441},{"x":-2376,"y":446,"length":2417.4970527386376},{"x":-2406,"y":487,"length":2454.7922519023887},{"x":-2431,"y":533,"length":2488.744663479964},{"x":-2447,"y":575,"length":2513.649538022355},{"x":-2458,"y":616,"length":2534.012628224256},{"x":-2464,"y":680,"length":2556.109543818496},{"x":-2600,"y":679,"length":2687.1994715688675},{"x":-2600,"y":-580,"length":2663.906905280288}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4730,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-514,"plr":false,"density":0.5,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-30,"y":100,"length":104.4030650891055},{"x":570,"y":-170,"length":594.8108943185221},{"x":265,"y":100,"length":283.24018076537095}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":7380,"safeId":-1,"rotation":0,"graphic":true,"height":716.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":15,"length":15},{"x":484,"y":522,"length":711.8567271579303},{"x":520,"y":552,"length":758.3561168738603},{"x":554,"y":576,"length":799.1820818812193},{"x":588,"y":595,"length":836.5219662387832},{"x":627,"y":609,"length":874.0766556772924},{"x":670,"y":620,"length":912.8526715741156},{"x":717,"y":626,"length":951.8219371289989},{"x":1603,"y":626,"length":1720.8965686525148},{"x":1640,"y":623,"length":1754.3457469951584},{"x":1674,"y":616,"length":1783.7410125912338},{"x":1711,"y":605,"length":1814.812938018682},{"x":1748,"y":590,"length":1844.8859043312136},{"x":1788,"y":567,"length":1875.7486505392988},{"x":1822,"y":541,"length":1900.622266522204},{"x":1851,"y":513,"length":1920.7732817800231},{"x":1879,"y":481,"length":1939.5881006028058},{"x":1905,"y":439,"length":1954.92864319903},{"x":1923,"y":396,"length":1963.3504526701288},{"x":1936,"y":350,"length":1967.383033371997},{"x":1943,"y":312,"length":1967.8904949208936},{"x":1947,"y":270,"length":1965.6319594471393},{"x":1947,"y":-75,"length":1948.4439945761849}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1962.5,"type":9,"textureOffset":0,"y":-230}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":7536,"safeId":-1,"rotation":0,"graphic":true,"height":562.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":41,"y":13,"length":43.01162633521314},{"x":464,"y":501,"length":682.8594291653297},{"x":486,"y":523,"length":713.9502783807848},{"x":511,"y":540,"length":743.4520831903022},{"x":537,"y":552,"length":770.1123294688899},{"x":571,"y":559,"length":799.0757160620012},{"x":644,"y":560,"length":853.4260366311776},{"x":1413,"y":560,"length":1519.9240112584575},{"x":1443,"y":559,"length":1547.49151855511},{"x":1467,"y":555,"length":1568.4750555874327},{"x":1490,"y":547,"length":1587.2331271744551},{"x":1515,"y":535,"length":1606.6891423047584},{"x":1537,"y":516,"length":1621.3034879380232},{"x":1553,"y":495,"length":1629.9797544754965},{"x":1568,"y":470,"length":1636.925166279754},{"x":1577,"y":439,"length":1636.9636526203017},{"x":1581,"y":411,"length":1633.5488973397767},{"x":1582,"y":95,"length":1584.8498351578928}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1556.8,"type":8,"textureOffset":0,"y":-372}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1249,"safeId":-10,"rotation":2,"graphic":true,"isWheel":false,"y":-472,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":80,"y":0,"length":80},{"x":116,"y":30,"length":119.81652640600127},{"x":103,"y":59,"length":118.70130580579136},{"x":57,"y":56,"length":79.90619500389191},{"x":40,"y":69,"length":79.75587752636166},{"x":32,"y":115,"length":119.36917525056458},{"x":0,"y":120,"length":120},{"x":-20,"y":77,"length":79.55501241279521},{"x":-39,"y":69,"length":79.25906888173743},{"x":-84,"y":85,"length":119.50313803411188},{"x":-103,"y":59,"length":118.70130580579136},{"x":-77,"y":21,"length":79.81227975693966},{"x":-80,"y":0,"length":80},{"x":-116,"y":-30,"length":119.81652640600127},{"x":-103,"y":-60,"length":119.20151005754919},{"x":-57,"y":-56,"length":79.90619500389191},{"x":-40,"y":-69,"length":79.75587752636166},{"x":-32,"y":-115,"length":119.36917525056458},{"x":0,"y":-120,"length":120},{"x":20,"y":-77,"length":79.55501241279521},{"x":40,"y":-69,"length":79.75587752636166},{"x":84,"y":-85,"length":119.50313803411188},{"x":103,"y":-60,"length":119.20151005754919},{"x":77,"y":-21,"length":79.81227975693966}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1034,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":-414,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":-15,"length":15},{"x":3,"y":-36,"length":36.124783736376884},{"x":5,"y":-68,"length":68.18357573492314},{"x":12,"y":-94,"length":94.76286192385707},{"x":22,"y":-124,"length":125.93649193144932},{"x":34,"y":-152,"length":155.7562197795003},{"x":50,"y":-181,"length":187.77912557044246},{"x":70,"y":-210,"length":221.35943621178654},{"x":98,"y":-241,"length":260.16341018675166},{"x":124,"y":-265,"length":292.5764857263823},{"x":151,"y":-286,"length":323.4145945995635},{"x":174,"y":-301,"length":347.67369759589235},{"x":201,"y":-315,"length":373.6656259277805},{"x":230,"y":-326,"length":398.9686704491971},{"x":275,"y":-338,"length":435.7396011381109},{"x":313,"y":-343,"length":464.3468531173653},{"x":350,"y":-344,"length":490.7504457461042},{"x":383,"y":-342,"length":513.4715181974556},{"x":417,"y":-337,"length":536.1510981057486},{"x":450,"y":-329,"length":557.441476748905},{"x":482,"y":-317,"length":576.8994713119436},{"x":509,"y":-303,"length":592.3596880274687},{"x":537,"y":-284,"length":607.4742792909013},{"x":562,"y":-267,"length":622.2001285760073},{"x":585,"y":-246,"length":634.6187832076829},{"x":606,"y":-224,"length":646.0742991328474},{"x":628,"y":-197,"length":658.1739891548434},{"x":646,"y":-169,"length":667.7402189474586},{"x":661,"y":-138,"length":675.2518048846667},{"x":672,"y":-110,"length":680.943463145069},{"x":681,"y":-77,"length":685.3393320100635},{"x":688,"y":-41,"length":689.2205742721267},{"x":688,"y":0,"length":688},{"x":612,"y":0,"length":612},{"x":575,"y":-20,"length":575.3477209479498},{"x":573,"y":-42,"length":574.5372050616044},{"x":607,"y":-70,"length":611.0229128273342},{"x":599,"y":-99,"length":607.1260165731658},{"x":557,"y":-106,"length":566.9964726521674},{"x":543,"y":-129,"length":558.11289180595},{"x":564,"y":-166,"length":587.921763502594},{"x":541,"y":-190,"length":573.3942797063814},{"x":498,"y":-177,"length":528.5196306666385},{"x":477,"y":-194,"length":514.9417442779329},{"x":479,"y":-235,"length":533.5410012360812},{"x":451,"y":-251,"length":516.141453479567},{"x":417,"y":-223,"length":472.88264929049785},{"x":388,"y":-230,"length":451.047669321104},{"x":373,"y":-269,"length":459.8804192396106},{"x":342,"y":-269,"length":435.1149273467873},{"x":321,"y":-233,"length":396.6484589658707},{"x":295,"y":-228,"length":372.83910739084223},{"x":263,"y":-256,"length":367.02179771779225},{"x":233,"y":-245,"length":338.10353443878694},{"x":231,"y":-205,"length":308.8462400612965},{"x":210,"y":-190,"length":283.1960451701259},{"x":167,"y":-205,"length":264.41255643406953},{"x":142,"y":-183,"length":231.63117234085743},{"x":160,"y":-145,"length":215.92822881689185},{"x":143,"y":-122,"length":187.97074240423694},{"x":104,"y":-120,"length":158.79546593023366},{"x":90,"y":-91,"length":127.98828071350908},{"x":121,"y":-63,"length":136.41847382227965},{"x":117,"y":-37,"length":122.71104269787622},{"x":77,"y":-19,"length":79.30952023559341},{"x":75,"y":-5,"length":75.16648189186454}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1878,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-154,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1000,"y":-260,"length":1033.2473082471593},{"x":-740,"y":-260,"length":784.3468620451031},{"x":-726,"y":-236,"length":763.3950484513244},{"x":-707,"y":-218,"length":739.8466057231053},{"x":-687,"y":-205,"length":716.9337486825405},{"x":-662,"y":-196,"length":690.4056778445554},{"x":-634,"y":-192,"length":662.4349024621212},{"x":-608,"y":-193,"length":637.8973271616679},{"x":-583,"y":-200,"length":616.3513608324395},{"x":-561,"y":-211,"length":599.3680004805061},{"x":-537,"y":-230,"length":584.1823345497534},{"x":-515,"y":-260,"length":576.909871643743},{"x":460,"y":-260,"length":528.3937925449162},{"x":460,"y":575,"length":736.3592873047776},{"x":-1000,"y":575,"length":1153.5271995059327}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":7560,"safeId":-1,"rotation":0,"graphic":true,"height":574.55,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":-7,"length":7},{"x":436,"y":491,"length":656.640693225755},{"x":462,"y":512,"length":689.628885705928},{"x":496,"y":525,"length":722.2471876026933},{"x":537,"y":536,"length":758.725905712992},{"x":1426,"y":541,"length":1525.1744162554},{"x":1475,"y":534,"length":1568.6876680843768},{"x":1510,"y":517,"length":1596.0541970747736},{"x":1540,"y":499,"length":1618.8270444985776},{"x":1564,"y":476,"length":1634.830878103298},{"x":1585,"y":449,"length":1647.3694181937456},{"x":1606,"y":416,"length":1659.0033152468382},{"x":1617,"y":381,"length":1661.2796272753121},{"x":1617,"y":12,"length":1617.044526288624}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1645.05,"type":10,"textureOffset":0,"y":-290}}],[{"className":"RemovedWipe0","params":{"x":9378,"safeId":-1,"active":false,"y":-350,"id":7,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":9378,"safeId":-1,"active":false,"y":-455,"id":7,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":9448,"safeId":-1,"active":false,"y":-455,"id":7,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":9448,"safeId":-1,"active":false,"y":-350,"id":7,"rotation":0,"width":18,"type":0,"height":85.1}},{"className":"PlankWipe0","params":{"x":9084,"safeId":-1,"active":false,"y":-275,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9014,"safeId":-1,"active":false,"y":-279,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8944,"safeId":-1,"active":false,"y":-283,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8874,"safeId":-1,"active":false,"y":-286,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8804,"safeId":-1,"active":false,"y":-290,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8734,"safeId":-1,"active":false,"y":-294,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8665,"safeId":-1,"active":false,"y":-296,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8595,"safeId":-1,"active":false,"y":-301,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8525,"safeId":-1,"active":false,"y":-305,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8455,"safeId":-1,"active":false,"y":-308,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8385,"safeId":-1,"active":false,"y":-312,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8315,"safeId":-1,"active":false,"y":-316,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8245,"safeId":-1,"active":false,"y":-319,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8175,"safeId":-1,"active":false,"y":-323,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8105,"safeId":-1,"active":false,"y":-327,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8035,"safeId":-1,"active":false,"y":-330,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":7966,"safeId":-1,"active":false,"y":-334,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":7896,"safeId":-1,"active":false,"y":-338,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":7826,"safeId":-1,"active":false,"y":-342,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":7756,"safeId":-1,"active":false,"y":-345,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":7686,"safeId":-1,"active":false,"y":-348,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":7616,"safeId":-1,"active":false,"y":-351,"id":3,"rotation":3,"width":85.1,"height":18}},{"className":"RemovedWipe0","params":{"x":9414,"safeId":-1,"active":false,"y":-504,"id":7,"rotation":90,"width":18,"type":0,"height":85.1}},{"className":"RemovedWipe0","params":{"x":9414,"safeId":-1,"active":false,"y":-401,"id":7,"rotation":90,"width":18,"type":0,"height":85.1}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":4250,"y":-477,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":0.6260225944682508,"x":8560,"y":350,"width":9.3,"height":80.35}},{"className":"Dec36","params":{"scaleX":1,"rotation":-129,"scaleY":-1.0612369871402327,"x":7490,"y":-289,"width":75.25,"height":259.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-95,"scaleY":1,"x":9205,"y":-283,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-89,"scaleY":1,"x":9205,"y":49,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-135,"scaleY":-1,"x":7740,"y":-20,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-138,"scaleY":-1,"x":7948.65,"y":210.5,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":8234,"y":283,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":8874,"y":283,"width":75.25,"height":244.95}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":1740,"y":-580,"width":640,"height":256}},{"className":"Dec55","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":2290,"y":-580,"width":256,"height":256}}],[{"className":"Tnt1","params":{"x":9343,"safeId":-1,"rotation":0,"y":-335,"count":12,"radius":64,"physic":true,"stones":false,"impulse":7000,"id":7,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":9343,"safeId":-1,"rotation":0,"y":-385,"count":12,"radius":64,"physic":true,"stones":false,"impulse":7000,"id":7,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":9343,"safeId":-1,"rotation":0,"y":-435,"count":12,"radius":64,"physic":true,"stones":false,"impulse":7000,"id":7,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":9343,"safeId":-1,"rotation":0,"y":-488,"count":12,"radius":64,"physic":true,"stones":false,"impulse":7000,"id":7,"width":53.2,"height":53.2}}],[{"className":"Dec37","params":{"scaleX":1,"rotation":-129,"scaleY":-1.0462551147482655,"x":7492,"y":-287,"width":99.95,"height":294.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-93,"scaleY":1,"x":9210,"y":-281,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":9210,"y":49,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-135,"scaleY":-1,"x":7740,"y":-18,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-138,"scaleY":-1,"x":7948.8,"y":212.5,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":8236,"y":284,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":177,"scaleY":-1,"x":8876,"y":284,"width":99.95,"height":281.05}}],[{"className":"PlayerWP","params":{"x":1420,"rotation":0,"y":-465,"width":64,"height":32}},{"className":"SafePointE","params":{"x":4250,"rotation":0,"y":-540,"id":0,"width":128,"height":386}},{"className":"SafePointE","params":{"x":8560,"rotation":0,"y":290,"id":0,"width":128,"height":436}}],[{"className":"MotorJointE","params":{"x":6847,"safeId":-1,"rotation":0,"graphic":0,"y":-380,"useWeld":false,"time":0,"snd":false,"id":5,"rate":-90,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":3218,"safeId":-1,"rotation":0,"graphic":1,"y":-435,"useWeld":false,"time":0,"snd":false,"id":1,"rate":28,"width":17,"height":17}},{"className":"ToggleE","params":{"x":1788,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":1,"off":false,"y":-475,"width":64,"rotation":0,"height":500}},{"className":"PivotJointE","params":{"x":4760,"safeId":-1,"rotation":0,"graphic":0,"id":5,"y":-422,"width":17,"height":17}},{"className":"ToggleE","params":{"x":5240,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":5,"off":false,"y":-730,"width":64,"rotation":0,"height":464}},{"className":"ToggleE","params":{"x":9112,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":7,"off":false,"y":-487,"width":704,"rotation":0,"height":64}},{"className":"PivotJointE","params":{"x":9118,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-273,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9048,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-276,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8978,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-280,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8908,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-284,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8838,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-287,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8768,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-291,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8698,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-295,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8629,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-298,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8559,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-302,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8489,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-306,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8419,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-309,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8349,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-313,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8279,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-317,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8209,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-320,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8139,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-324,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8069,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-328,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8000,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-331,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":7930,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-335,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":7860,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-339,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":7790,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-342,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":7720,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-346,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":7651,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-349,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":7581,"safeId":-1,"rotation":3,"graphic":0,"id":-1,"y":-352,"width":17,"height":17}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":10504,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-130,"height":157,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-144,"length":144}],"stopOnEnd":true,"id":11,"accelDist":50,"width":13,"speed":700}},{"className":"ToggleE","params":{"x":10445,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":11,"off":false,"y":-431,"width":64,"rotation":0,"height":882}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":10504,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":-680,"height":157,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":144,"length":144}],"stopOnEnd":true,"id":11,"accelDist":50,"width":13,"speed":700}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":1378,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":false,"cycle":0,"body":true,"position":0,"y":-718,"height":629,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-38,"y":2,"length":38.05259518088089},{"x":-77,"y":8,"length":77.41446893184762},{"x":-116,"y":20,"length":117.71151175649729},{"x":-151,"y":38,"length":155.7080601638849},{"x":-181,"y":58,"length":190.06577808748213},{"x":-211,"y":83,"length":226.73773395709856},{"x":-236,"y":112,"length":261.2278698760911},{"x":-257,"y":138,"length":291.70704482408377},{"x":-274,"y":169,"length":321.92701036104444},{"x":-289,"y":203,"length":353.17134651610684},{"x":-301,"y":255,"length":394.4946133979525},{"x":-305,"y":301,"length":428.51604404036027},{"x":-304,"y":344,"length":459.07733553291433},{"x":-296,"y":380,"length":481.6803919613087},{"x":-283,"y":417,"length":503.96230017730494},{"x":-263,"y":458,"length":528.1410796368713},{"x":-232,"y":502,"length":553.017178756682},{"x":-207,"y":528,"length":567.1269699106189},{"x":-175,"y":553,"length":580.0293096042648},{"x":-137,"y":578,"length":594.0143095919491},{"x":-104,"y":595,"length":604.0206950096991},{"x":-62,"y":607,"length":610.1581762133488},{"x":-11,"y":616,"length":616.0982064573797}],"stopOnEnd":true,"id":61,"accelDist":0,"width":318,"speed":150}},{"className":"ToggleE","params":{"x":1428,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":61,"off":false,"y":-414,"width":208,"rotation":0,"height":45}},{"className":"MotorJointE","params":{"x":1378,"safeId":-10,"rotation":0,"graphic":0,"y":-718,"useWeld":false,"time":6.5,"snd":false,"id":61,"rate":-28,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":1248,"safeId":-10,"rotation":0,"graphic":1,"y":-474,"useWeld":false,"time":6,"snd":false,"id":61,"rate":-73,"width":17,"height":17}},{"className":"ToggleE","params":{"x":4600,"safeId":-1,"sndId":0,"hint":-1,"id_off":1,"id":80,"off":false,"y":-580,"width":64,"rotation":0,"height":809}},{"className":"ToggleE","params":{"x":6560,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-730,"width":64,"rotation":0,"height":809}},{"className":"ToggleE","params":{"x":10270,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-480,"width":64,"rotation":0,"height":809}},{"className":"ToggleE","params":{"x":2228,"safeId":-1,"sndId":-1,"hint":-1,"id_off":61,"id":81,"off":false,"y":-475,"width":64,"rotation":0,"height":500}},{"className":"MotorJointE","params":{"x":6470,"safeId":-1,"rotation":0,"graphic":0,"y":-186,"useWeld":false,"time":0,"snd":false,"id":5,"rate":180,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":7226,"safeId":-1,"rotation":0,"graphic":0,"y":-182,"useWeld":false,"time":0,"snd":false,"id":5,"rate":180,"width":17,"height":17}},{"className":"ToggleE","params":{"x":8560,"safeId":-1,"sndId":-1,"hint":-1,"id_off":5,"id":3,"off":false,"y":310,"width":64,"rotation":0,"height":965}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map6.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map6.json new file mode 100644 index 000000000..93d4a5240 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map6.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"28,37,45"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10040,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-460,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":-285,"y":60,"length":291.247317584214},{"x":-175,"y":0,"length":175},{"x":3840,"y":5,"length":3840.003255206954},{"x":3840,"y":1120,"length":4000},{"x":-290,"y":1115,"length":1152.0959161458736}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1040,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-160,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":965,"y":0,"length":965},{"x":965,"y":100,"length":970.1675113092584},{"x":515,"y":530,"length":739.0027063549903}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":10894,"viscosity":1.5,"rotation":0,"y":-460,"vertices":[{"x":0,"y":0,"length":0},{"x":2990,"y":5,"length":2990.004180599084},{"x":2985,"y":905,"length":3119.174570299008},{"x":0,"y":900,"length":900},{"x":-422,"y":896,"length":990.4039579888603},{"x":-676,"y":427,"length":799.565507009901},{"x":-613,"y":468,"length":771.2282411841517},{"x":-556,"y":493,"length":743.0915152254129},{"x":-495,"y":513,"length":712.8772685392627},{"x":-420,"y":517,"length":666.0998423659925},{"x":-351,"y":512,"length":620.7616289688016},{"x":-287,"y":498,"length":574.7808277943864},{"x":-237,"y":477,"length":532.6330819616821},{"x":-187,"y":447,"length":484.538956122209},{"x":-133,"y":407,"length":428.1798687467686},{"x":-95,"y":370,"length":382.00130889828114},{"x":-62,"y":324,"length":329.8787656094281},{"x":-32,"y":269,"length":270.8966592632696},{"x":-5,"y":205,"length":205.0609665440988},{"x":1,"y":159,"length":159.00314462299164}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":10100,"viscosity":1.5,"rotation":0,"y":-460,"vertices":[{"x":0,"y":0,"length":0},{"x":585,"y":0,"length":585},{"x":585,"y":100,"length":593.4854673873658},{"x":580,"y":155,"length":600.3540621999655},{"x":557,"y":199,"length":591.4811915860047},{"x":514,"y":249,"length":571.1365861157907},{"x":467,"y":280,"length":544.5080348351161},{"x":420,"y":297,"length":514.4015940877322},{"x":362,"y":303,"length":472.07308756166134},{"x":317,"y":295,"length":433.0288673980062},{"x":274,"y":274,"length":387.49451609022805},{"x":225,"y":230,"length":321.7530108639234}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::FinishShaper","params":{"x":8450,"rotation":0,"y":-1030,"vertices":[{"x":0,"y":-2355,"length":2355},{"x":565,"y":-2365,"length":2431.5530016843145},{"x":570,"y":-420,"length":708.0254232723568},{"x":-10,"y":160,"length":160.31219541881399}]}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2380,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-210,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":2895,"y":0,"length":2895},{"x":2895,"y":675,"length":2972.6503326156612},{"x":0,"y":675,"length":675}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":4390,"viscosity":1.5,"rotation":0,"y":-211,"vertices":[{"x":0,"y":0,"length":0},{"x":890,"y":0,"length":890},{"x":890,"y":670,"length":1114.0017953306897},{"x":-136,"y":648,"length":662.117814289874},{"x":-137,"y":633,"length":647.6557727682198},{"x":-86,"y":630,"length":635.8427478551596},{"x":-36,"y":616,"length":617.0510513725749},{"x":-4,"y":590,"length":590.013559166228},{"x":14,"y":572,"length":572.1713030203455},{"x":32,"y":547,"length":547.9352151486524},{"x":45,"y":519,"length":520.9472142165653},{"x":52,"y":490,"length":492.7514586482723},{"x":54,"y":462,"length":465.14513863954335},{"x":51,"y":433,"length":435.99311921176},{"x":44,"y":405,"length":407.3831120701986},{"x":31,"y":380,"length":381.26237684828016},{"x":16,"y":358,"length":358.35736353534026},{"x":0,"y":330,"length":330}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":3286,"viscosity":1.5,"rotation":0,"y":-210,"vertices":[{"x":0,"y":0,"length":0},{"x":885,"y":0,"length":885},{"x":885,"y":330,"length":944.5236894858699},{"x":869,"y":352,"length":937.5846628438416},{"x":844,"y":386,"length":928.0797379535877},{"x":829,"y":421,"length":929.7752416578966},{"x":823,"y":465,"length":945.2798527420332},{"x":828,"y":500,"length":967.2559123623903},{"x":841,"y":534,"length":996.2113229631552},{"x":870,"y":574,"length":1042.2936246566992},{"x":916,"y":607,"length":1098.8653238682164},{"x":971,"y":620,"length":1152.05946027104},{"x":967,"y":657,"length":1169.0757032801596},{"x":-118,"y":676,"length":686.2215385719105},{"x":-118,"y":622,"length":633.0939898624848},{"x":-90,"y":621,"length":627.4878484879209},{"x":-52,"y":608,"length":610.2196325914138},{"x":-15,"y":585,"length":585.1922760939348},{"x":19,"y":553,"length":553.3263051762495},{"x":39,"y":516,"length":517.4717383587243},{"x":53,"y":479,"length":481.9232304008596},{"x":52,"y":446,"length":449.02115763068446},{"x":46,"y":416,"length":418.535542098876},{"x":33,"y":382,"length":383.4227431960707},{"x":15,"y":355,"length":355.31676008879737},{"x":0,"y":330,"length":330}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":2370,"viscosity":1.5,"rotation":0,"y":-211,"vertices":[{"x":0,"y":0,"length":0},{"x":685,"y":0,"length":685},{"x":685,"y":335,"length":762.5286879849177},{"x":660,"y":370,"length":756.6372975210778},{"x":640,"y":400,"length":754.7184905645283},{"x":630,"y":435,"length":765.5880093104907},{"x":630,"y":475,"length":789.002534850174},{"x":635,"y":510,"length":814.4476655992084},{"x":650,"y":545,"length":848.2481948109291},{"x":673,"y":571,"length":882.5927713277512},{"x":702,"y":597,"length":921.52753621365},{"x":761,"y":621,"length":982.2229889388661},{"x":797,"y":624,"length":1012.217861924991},{"x":798,"y":678,"length":1047.1332293457217},{"x":0,"y":680,"length":680}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2180,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-244,"plr":true,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":200,"y":-55,"length":207.4246851269154},{"x":200,"y":100,"length":223.60679774997897},{"x":0,"y":100,"length":100}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":1040,"viscosity":1.5,"rotation":0,"y":-160,"vertices":[{"x":0,"y":0,"length":0},{"x":930,"y":0,"length":930},{"x":930,"y":125,"length":938.3629361819445},{"x":515,"y":535,"length":742.5967950375224}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":1046,"safeId":-1,"rotation":0,"graphic":true,"height":81,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":-16,"y":-24,"length":28.844410203711913},{"x":7,"y":0,"length":7},{"x":142,"y":0,"length":142},{"x":151,"y":-7,"length":151.16216457830973},{"x":151,"y":-50,"length":159.0628806478746},{"x":140,"y":-61,"length":152.7121475194426},{"x":122,"y":-61,"length":136.40014662748717}],"smoothing":true,"id":-1,"repeatTexture":true,"width":184.2,"type":2,"textureOffset":0,"y":355}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":420,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":14073,"textureOffset":0,"height":88,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":true,"physic":true,"vertices":[{"x":-835,"y":0,"length":835},{"x":13225,"y":20,"length":13225.0151228647}],"line":true,"shape":true,"isRoad":true,"smoothing":true,"camera":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1268,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":345,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":100,"y":0,"length":100},{"x":100,"y":100,"length":141.4213562373095},{"x":-260,"y":100,"length":278.5677655436824},{"x":-260,"y":-45,"length":263.86549603917524},{"x":-205,"y":-45,"length":209.88091861815357},{"x":-205,"y":0,"length":205}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":240,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":14517.1,"textureOffset":0,"height":969.05,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":-530,"y":-580,"length":785.6844150166147},{"x":410,"y":135,"length":431.65379646193315},{"x":1400,"y":-360,"length":1445.544879967412},{"x":2500,"y":40,"length":2500.319979522621},{"x":3785,"y":0,"length":3785},{"x":4660,"y":-300,"length":4669.64666757561},{"x":5110,"y":-300,"length":5118.798687192142},{"x":6150,"y":-160,"length":6152.080948752218},{"x":7105,"y":-160,"length":7106.801319862544},{"x":7935,"y":-760,"length":7971.312627164989},{"x":8730,"y":-750,"length":8762.157268618272},{"x":9575,"y":-230,"length":9577.762003725087},{"x":9810,"y":-165,"length":9811.387516554425},{"x":13960,"y":-170,"length":13961.035061914285}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1362,"safeId":-10,"rotation":0,"graphic":true,"isWheel":true,"y":356,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":60,"y":0,"length":60},{"x":82,"y":20,"length":84.40379138403677},{"x":76,"y":36,"length":84.09518416651456},{"x":46,"y":38,"length":59.665735560705194},{"x":37,"y":46,"length":59.033888572581766},{"x":35,"y":77,"length":84.581321815162},{"x":18,"y":82,"length":83.95236744726142},{"x":-1,"y":59,"length":59.00847396772772},{"x":-13,"y":58,"length":59.43904440685432},{"x":-38,"y":75,"length":84.07734534343957},{"x":-52,"y":66,"length":84.02380615040002},{"x":-47,"y":36,"length":59.20304046246274},{"x":-54,"y":26,"length":59.93329625508679},{"x":-83,"y":17,"length":84.72307831990054},{"x":-85,"y":0,"length":85},{"x":-58,"y":-14,"length":59.665735560705194},{"x":-54,"y":-26,"length":59.93329625508679},{"x":-65,"y":-54,"length":84.50443775329198},{"x":-52,"y":-66,"length":84.02380615040002},{"x":-25,"y":-54,"length":59.50630218724736},{"x":-13,"y":-58,"length":59.43904440685432},{"x":1,"y":-84,"length":84.00595217006948},{"x":18,"y":-82,"length":83.95236744726142},{"x":26,"y":-53,"length":59.033888572581766},{"x":37,"y":-46,"length":59.033888572581766},{"x":67,"y":-51,"length":84.20213774008353},{"x":76,"y":-36,"length":84.09518416651456},{"x":58,"y":-12,"length":59.22837157984339}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1970,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":320,"plr":true,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1080,"y":-500,"length":1190.1260437449473},{"x":-947,"y":-503,"length":1072.2956681811224},{"x":-415,"y":35,"length":416.473288459176},{"x":-10,"y":-365,"length":365.1369606051954},{"x":-10,"y":-495,"length":495.1009997970111},{"x":-125,"y":-495,"length":510.5389309347525},{"x":-125,"y":-565,"length":578.6622503671723},{"x":410,"y":-565,"length":698.0866708367952},{"x":410,"y":100,"length":422.0189569201839},{"x":-480,"y":100,"length":490.3060268852505}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5240,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-240,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":575,"y":125,"length":588.430114796991},{"x":575,"y":0,"length":575},{"x":1285,"y":-710,"length":1468.1025168563672},{"x":1405,"y":-590,"length":1523.852026936999},{"x":705,"y":125,"length":715.9958100436063}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3070,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-173,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":200,"y":-55,"length":207.4246851269154},{"x":200,"y":170,"length":262.48809496813374},{"x":0,"y":170,"length":170}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3061,"safeId":-1,"rotation":0,"graphic":true,"height":642.55,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":10,"length":10},{"x":0,"y":336,"length":336},{"x":-19,"y":356,"length":356.506661929339},{"x":-35,"y":380,"length":381.6084380618437},{"x":-48,"y":401,"length":403.8626003977095},{"x":-54,"y":421,"length":424.4490546579177},{"x":-59,"y":448,"length":451.8683436577517},{"x":-60,"y":474,"length":477.7823772388429},{"x":-57,"y":494,"length":497.2775884754912},{"x":-50,"y":519,"length":521.402915220082},{"x":-41,"y":542,"length":543.548525892583},{"x":-26,"y":566,"length":566.5968584452264},{"x":-9,"y":584,"length":584.0693451979824},{"x":12,"y":601,"length":601.1197883949587},{"x":34,"y":615,"length":615.939120368239},{"x":55,"y":623,"length":625.4230568183427},{"x":80,"y":628,"length":633.0750350471893},{"x":105,"y":630,"length":638.6900656813131},{"x":127,"y":628,"length":640.7128842156992},{"x":147,"y":625,"length":642.0545148194194},{"x":170,"y":618,"length":640.9555366794174},{"x":190,"y":607,"length":636.0416653018889},{"x":208,"y":595,"length":630.3086545494992},{"x":226,"y":579,"length":621.5440451005866},{"x":240,"y":562,"length":611.1006463750468},{"x":254,"y":541,"length":597.6596021147824},{"x":264,"y":518,"length":581.3948744184111},{"x":271,"y":493,"length":562.574439518896},{"x":273,"y":465,"length":539.2160976825525},{"x":270,"y":437,"length":513.6818081263925},{"x":265,"y":415,"length":492.3921201644072},{"x":256,"y":392,"length":468.187996428785},{"x":245,"y":372,"length":445.4312517100703},{"x":233,"y":357,"length":426.3074008271496},{"x":220,"y":332,"length":398.2762860126121},{"x":218,"y":3,"length":218.02064122463267}],"smoothing":true,"id":-1,"repeatTexture":true,"width":351.1,"type":9,"textureOffset":0,"y":-220}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3168,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":244,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":150,"y":0,"length":150},{"x":147,"y":26,"length":149.2816130673835},{"x":140,"y":51,"length":149},{"x":129,"y":74,"length":148.71785366928881},{"x":114,"y":96,"length":149.03690818049066},{"x":96,"y":114,"length":149.03690818049066},{"x":75,"y":129,"length":149.21796138535066},{"x":51,"y":140,"length":149},{"x":26,"y":147,"length":149.2816130673835},{"x":0,"y":150,"length":150},{"x":-26,"y":147,"length":149.2816130673835},{"x":-51,"y":140,"length":149},{"x":-74,"y":129,"length":148.71785366928881},{"x":-96,"y":114,"length":149.03690818049066},{"x":-114,"y":96,"length":149.03690818049066},{"x":-129,"y":74,"length":148.71785366928881},{"x":-140,"y":51,"length":149},{"x":-147,"y":26,"length":149.2816130673835},{"x":-150,"y":0,"length":150},{"x":-147,"y":-26,"length":149.2816130673835},{"x":-140,"y":-51,"length":149},{"x":-129,"y":-75,"length":149.21796138535066},{"x":-114,"y":-96,"length":149.03690818049066},{"x":-96,"y":-114,"length":149.03690818049066},{"x":-75,"y":-129,"length":149.21796138535066},{"x":-51,"y":-140,"length":149},{"x":-26,"y":-147,"length":149.2816130673835},{"x":0,"y":-150,"length":150},{"x":26,"y":-147,"length":149.2816130673835},{"x":51,"y":-140,"length":149},{"x":75,"y":-129,"length":149.21796138535066},{"x":96,"y":-114,"length":149.03690818049066},{"x":114,"y":-96,"length":149.03690818049066},{"x":129,"y":-75,"length":149.21796138535066},{"x":140,"y":-51,"length":149},{"x":147,"y":-26,"length":149.2816130673835}],"line":true,"id":3,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3225,"safeId":-1,"rotation":-9,"graphic":true,"height":374,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":-9,"y":60,"length":60.67124524847005},{"x":-11,"y":-301,"length":301.20092961343926}],"smoothing":true,"id":-1,"repeatTexture":true,"width":22,"type":2,"textureOffset":0,"y":192}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4180,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-129,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":200,"y":-55,"length":207.4246851269154},{"x":200,"y":170,"length":262.48809496813374},{"x":0,"y":170,"length":170}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":4171,"safeId":-1,"rotation":0,"graphic":true,"height":642.55,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":15,"length":15},{"x":0,"y":336,"length":336},{"x":-19,"y":356,"length":356.506661929339},{"x":-35,"y":380,"length":381.6084380618437},{"x":-48,"y":401,"length":403.8626003977095},{"x":-54,"y":421,"length":424.4490546579177},{"x":-59,"y":448,"length":451.8683436577517},{"x":-60,"y":474,"length":477.7823772388429},{"x":-57,"y":494,"length":497.2775884754912},{"x":-50,"y":519,"length":521.402915220082},{"x":-41,"y":542,"length":543.548525892583},{"x":-26,"y":566,"length":566.5968584452264},{"x":-9,"y":584,"length":584.0693451979824},{"x":12,"y":601,"length":601.1197883949587},{"x":34,"y":615,"length":615.939120368239},{"x":55,"y":623,"length":625.4230568183427},{"x":80,"y":628,"length":633.0750350471893},{"x":105,"y":630,"length":638.6900656813131},{"x":127,"y":628,"length":640.7128842156992},{"x":147,"y":625,"length":642.0545148194194},{"x":170,"y":618,"length":640.9555366794174},{"x":190,"y":607,"length":636.0416653018889},{"x":208,"y":595,"length":630.3086545494992},{"x":226,"y":579,"length":621.5440451005866},{"x":240,"y":562,"length":611.1006463750468},{"x":254,"y":541,"length":597.6596021147824},{"x":264,"y":518,"length":581.3948744184111},{"x":271,"y":493,"length":562.574439518896},{"x":273,"y":465,"length":539.2160976825525},{"x":270,"y":437,"length":513.6818081263925},{"x":265,"y":415,"length":492.3921201644072},{"x":256,"y":392,"length":468.187996428785},{"x":245,"y":372,"length":445.4312517100703},{"x":233,"y":357,"length":426.3074008271496},{"x":220,"y":332,"length":398.2762860126121},{"x":220,"y":3,"length":220.02045359466015}],"smoothing":true,"id":-1,"repeatTexture":true,"width":351.1,"type":9,"textureOffset":0,"y":-220}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4278,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":244,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":150,"y":0,"length":150},{"x":147,"y":26,"length":149.2816130673835},{"x":140,"y":51,"length":149},{"x":129,"y":74,"length":148.71785366928881},{"x":114,"y":96,"length":149.03690818049066},{"x":96,"y":114,"length":149.03690818049066},{"x":75,"y":129,"length":149.21796138535066},{"x":51,"y":140,"length":149},{"x":26,"y":147,"length":149.2816130673835},{"x":0,"y":150,"length":150},{"x":-26,"y":147,"length":149.2816130673835},{"x":-51,"y":140,"length":149},{"x":-74,"y":129,"length":148.71785366928881},{"x":-96,"y":114,"length":149.03690818049066},{"x":-114,"y":96,"length":149.03690818049066},{"x":-129,"y":74,"length":148.71785366928881},{"x":-140,"y":51,"length":149},{"x":-147,"y":26,"length":149.2816130673835},{"x":-150,"y":0,"length":150},{"x":-147,"y":-26,"length":149.2816130673835},{"x":-140,"y":-51,"length":149},{"x":-129,"y":-75,"length":149.21796138535066},{"x":-114,"y":-96,"length":149.03690818049066},{"x":-96,"y":-114,"length":149.03690818049066},{"x":-75,"y":-129,"length":149.21796138535066},{"x":-51,"y":-140,"length":149},{"x":-26,"y":-147,"length":149.2816130673835},{"x":0,"y":-150,"length":150},{"x":26,"y":-147,"length":149.2816130673835},{"x":51,"y":-140,"length":149},{"x":75,"y":-129,"length":149.21796138535066},{"x":96,"y":-114,"length":149.03690818049066},{"x":114,"y":-96,"length":149.03690818049066},{"x":129,"y":-75,"length":149.21796138535066},{"x":140,"y":-51,"length":149},{"x":147,"y":-26,"length":149.2816130673835}],"line":true,"id":3,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":4264,"safeId":-1,"rotation":5,"graphic":true,"height":374,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":false,"originOffsetRatio":0,"shapeH":20,"physic":true,"stretchTexture":false,"vertices":[{"x":-9,"y":60,"length":60.67124524847005},{"x":-11,"y":-301,"length":301.20092961343926}],"smoothing":true,"id":-1,"repeatTexture":true,"width":22,"type":2,"textureOffset":0,"y":243}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5240,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-240,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":705,"y":0,"length":705},{"x":705,"y":675,"length":976.0379090998464},{"x":0,"y":675,"length":675}],"line":false,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6676,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-764,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":45,"y":-35,"length":57.0087712549569},{"x":45,"y":-3130,"length":3130.3234657140465},{"x":1790,"y":-3130,"length":3605.68994784632},{"x":1790,"y":-130,"length":1794.7144619688113},{"x":1190,"y":415,"length":1260.2876655748084},{"x":495,"y":415,"length":645.9489143887464}],"line":false,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6800,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-60,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":100,"y":0,"length":100},{"x":100,"y":-150,"length":180.27756377319946},{"x":1135,"y":-150,"length":1144.8689881379441},{"x":1805,"y":-730,"length":1947.0297891917319},{"x":2645,"y":-730,"length":2743.8886639220623},{"x":3790,"y":395,"length":3810.5281786125133},{"x":3795,"y":500,"length":3827.7963634446387},{"x":0,"y":500,"length":500}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5240,"safeId":-1,"rotation":0,"graphic":true,"height":688.05,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":false,"stretchTexture":false,"vertices":[{"x":706,"y":-559,"length":900.5093003406462},{"x":705,"y":3,"length":705.0063829498283},{"x":-1,"y":0,"length":1},{"x":2,"y":-669,"length":669.0029895299423},{"x":588,"y":-669,"length":890.6767090252221}],"smoothing":true,"id":-1,"repeatTexture":true,"width":723.05,"type":6,"textureOffset":0,"y":430}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6450,"safeId":-1,"rotation":-45,"graphic":true,"isWheel":false,"y":-920,"plr":false,"density":0.2,"isStatic":false,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":10,"y":-5,"length":11.180339887498949},{"x":130,"y":-5,"length":130.09611831257686},{"x":130,"y":185,"length":226.10838109190027},{"x":95,"y":185,"length":207.9663434308542},{"x":95,"y":30,"length":99.62429422585637},{"x":10,"y":30,"length":31.622776601683793}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":7190,"safeId":-1,"rotation":0,"graphic":true,"height":496.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":-18,"y":7,"length":19.313207915827967},{"x":-474,"y":-444,"length":649.4705536050114}],"smoothing":true,"id":-1,"repeatTexture":true,"width":501,"type":5,"textureOffset":0,"y":-350}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":6710,"safeId":-1,"rotation":0,"graphic":true,"height":3125,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-3112,"length":3112}],"smoothing":true,"id":-1,"repeatTexture":true,"width":64,"type":5,"textureOffset":0,"y":-790}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":7643,"safeId":-1,"rotation":0,"graphic":true,"height":587.6,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":837,"y":-991,"length":1297.169996569455},{"x":235,"y":-451,"length":508.55284877778433}],"smoothing":true,"id":-1,"repeatTexture":true,"width":644.7,"type":5,"textureOffset":0,"y":108}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":7643,"safeId":-1,"rotation":0,"graphic":true,"height":65,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":228,"y":-445,"length":500.00899991900144},{"x":-474,"y":-444,"length":649.4705536050114}],"smoothing":true,"id":-1,"repeatTexture":true,"width":715,"type":5,"textureOffset":0,"y":99}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":8243,"safeId":-1,"rotation":0,"graphic":true,"height":3028,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":223,"y":-3460,"length":3467.1788243469646},{"x":228,"y":-445,"length":500.00899991900144}],"smoothing":true,"id":-1,"repeatTexture":true,"width":69,"type":5,"textureOffset":0,"y":-432}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9707,"safeId":-1,"rotation":0,"graphic":true,"height":1481.05,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":276,"y":-94,"length":291.5681738461864},{"x":628,"y":253,"length":677.0472657060214},{"x":650,"y":272,"length":704.6162075910545},{"x":671,"y":286,"length":729.4086646044177},{"x":699,"y":300,"length":760.6582675551485},{"x":726,"y":307,"length":788.2417141968573},{"x":761,"y":311,"length":822.0961014382686},{"x":796,"y":309,"length":853.8717702325098},{"x":826,"y":304,"length":880.1658934541829},{"x":860,"y":292,"length":908.220237607597},{"x":889,"y":274,"length":930.2671659260043},{"x":916,"y":251,"length":949.766813486342},{"x":940,"y":224,"length":966.3208576865139},{"x":959,"y":195,"length":978.6245449609365},{"x":974,"y":156,"length":986.4137063119105},{"x":978,"y":106,"length":983.7276045735425},{"x":979,"y":-963,"length":1373.247974693573},{"x":972,"y":-1005,"length":1398.1448422820863},{"x":960,"y":-1039,"length":1414.6098402032978},{"x":941,"y":-1069,"length":1424.1636141960655},{"x":919,"y":-1096,"length":1430.3066104860175},{"x":895,"y":-1116,"length":1430.5526903962677},{"x":868,"y":-1132,"length":1426.48098480141},{"x":842,"y":-1145,"length":1421.2631705634253},{"x":808,"y":-1151,"length":1406.294777064894},{"x":774,"y":-1152,"length":1387.868869886489}],"smoothing":true,"id":-1,"repeatTexture":true,"width":718.5,"type":8,"textureOffset":0,"y":-467}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9621,"safeId":-1,"rotation":0,"graphic":true,"height":1901,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":180,"y":-148,"length":233.03218661807213},{"x":548,"y":207,"length":585.7926254230246},{"x":582,"y":234,"length":627.279841856886},{"x":622,"y":264,"length":675.7070371100185},{"x":663,"y":291,"length":724.0511031688302},{"x":701,"y":309,"length":766.0822410159369},{"x":744,"y":323,"length":811.0887744260797},{"x":787,"y":332,"length":854.1621625897509},{"x":825,"y":337,"length":891.1756280329932},{"x":867,"y":337,"length":930.1924532052493},{"x":907,"y":334,"length":966.54280815699},{"x":947,"y":328,"length":1002.1940929780019},{"x":989,"y":317,"length":1038.5615051599013},{"x":1021,"y":305,"length":1065.5824698257757},{"x":1058,"y":287,"length":1096.235832291574},{"x":1092,"y":266,"length":1123.9306028398728},{"x":1125,"y":239,"length":1150.10695154842},{"x":1158,"y":207,"length":1176.355813519022},{"x":1187,"y":175,"length":1199.8308214077517},{"x":1209,"y":145,"length":1217.6641573110378},{"x":1226,"y":119,"length":1231.7617464428745},{"x":1244,"y":83,"length":1246.7658160215976},{"x":1255,"y":53,"length":1256.1186249713837},{"x":1264,"y":24,"length":1264.227827569066},{"x":1270,"y":-20,"length":1270.1574705523722},{"x":1272,"y":-64,"length":1273.6090451940108},{"x":1276,"y":-1153,"length":1719.7630650761168},{"x":1271,"y":-1203,"length":1750.0428566180888},{"x":1259,"y":-1256,"length":1778.374819884717},{"x":1236,"y":-1315,"length":1804.6941569141293},{"x":1213,"y":-1355,"length":1818.6242052716664},{"x":1183,"y":-1393,"length":1827.5497257256777},{"x":1152,"y":-1429,"length":1835.5230862073079},{"x":1111,"y":-1465,"length":1838.6261175127477},{"x":1067,"y":-1492,"length":1834.2717901118144},{"x":1027,"y":-1513,"length":1828.6328226300654},{"x":984,"y":-1528,"length":1817.4267523066783},{"x":941,"y":-1538,"length":1803.0321683209092},{"x":904,"y":-1546,"length":1790.9025657472268},{"x":868,"y":-1546,"length":1773.0031020841448}],"smoothing":true,"id":-1,"repeatTexture":true,"width":1111.5,"type":9,"textureOffset":0,"y":-284}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9927,"safeId":-1,"rotation":0,"graphic":true,"height":1634,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":364,"y":351,"length":505.6649088081948},{"x":392,"y":373,"length":541.1035021139671},{"x":428,"y":395,"length":582.4165176229122},{"x":462,"y":411,"length":618.356693179592},{"x":509,"y":421,"length":660.5467432362376},{"x":548,"y":422,"length":691.6559838532448},{"x":589,"y":420,"length":723.4092894067645},{"x":633,"y":412,"length":755.2701503435708},{"x":673,"y":397,"length":781.3693108895435},{"x":700,"y":382,"length":797.4484309345652},{"x":739,"y":353,"length":818.9810742624032},{"x":764,"y":325,"length":830.2535757225018},{"x":794,"y":288,"length":844.6182569658318},{"x":815,"y":245,"length":851.0287891722583},{"x":827,"y":207,"length":852.5127565027987},{"x":832,"y":163,"length":847.8166075278309},{"x":833,"y":120,"length":841.5990731934061},{"x":833,"y":76,"length":836.459801783684},{"x":833,"y":-915,"length":1237.381913557815},{"x":829,"y":-956,"length":1265.376228637159},{"x":823,"y":-984,"length":1282.8035703099677},{"x":812,"y":-1017,"length":1301.396557548851},{"x":800,"y":-1036,"length":1308.9293334630406},{"x":784,"y":-1060,"length":1318.429368604932},{"x":762,"y":-1088,"length":1328.3026763505372},{"x":733,"y":-1117,"length":1336.0306882702957},{"x":712,"y":-1134,"length":1338.9921583041478},{"x":682,"y":-1154,"length":1340.4626067145625},{"x":653,"y":-1165,"length":1335.5276110960792},{"x":609,"y":-1178,"length":1326.1089698814346},{"x":572,"y":-1180,"length":1311.329096756417}],"smoothing":true,"id":-1,"repeatTexture":true,"width":860.1,"type":10,"textureOffset":0,"y":-513}}],[{"className":"Dec36","params":{"scaleX":0.6943521594684385,"rotation":-90,"scaleY":0.9224331496223719,"x":4268,"y":-204,"width":52.25,"height":225.95}},{"className":"Dec36","params":{"scaleX":0.6943521594684385,"rotation":-90,"scaleY":0.9224331496223719,"x":3158,"y":-204,"width":52.25,"height":225.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-129,"scaleY":-1,"x":9910,"y":-503,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-138,"scaleY":-1,"x":10266,"y":-152,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":138,"scaleY":-1,"x":10668,"y":-142,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":87,"scaleY":-1,"x":10771,"y":-453,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":87,"scaleY":-1,"x":10781,"y":-813,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":87,"scaleY":-1,"x":10781,"y":-1213,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":54,"scaleY":1,"x":10744,"y":-1605,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":180,"scaleY":-1,"x":10491,"y":-1734,"width":75.25,"height":244.95}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":8990,"y":-850,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":5530,"y":-310,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":2020,"y":-310,"width":9.3,"height":128.35}},{"className":"SpikeBall137E","params":{"x":1400,"safeId":-10,"ag":true,"y":-110,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":22,"width":254.25,"rotation":0,"height":254.9}},{"className":"SpikeBall137E","params":{"x":1520,"safeId":-10,"ag":true,"y":-230,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":22,"width":254.25,"rotation":0,"height":254.9}},{"className":"SpikeBall137E","params":{"x":1640,"safeId":-10,"ag":true,"y":-110,"ad":-1,"btg":true,"scaleX":1,"active":false,"scaleY":1,"sgos":true,"id":22,"width":254.25,"rotation":0,"height":254.9}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":580,"y":-350,"width":640,"height":256}},{"className":"Dec56","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":1120,"y":-350,"width":256,"height":256}}],[{"className":"Tnt1","params":{"x":6662,"safeId":-1,"rotation":0,"y":-813,"count":40,"radius":60,"physic":false,"stones":false,"impulse":15000,"id":4,"width":53.2,"height":53.2}},{"className":"BoostE","params":{"x":10490,"safeId":-1,"rotation":0,"y":-40,"time":5,"width":64.1,"force":5000,"height":64.1}}],[{"className":"Dec37","params":{"scaleX":1,"rotation":-90,"scaleY":0.9217221135029354,"x":4271,"y":-196,"width":99.95,"height":259.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-90,"scaleY":0.9217221135029354,"x":3161,"y":-196,"width":99.95,"height":259.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-129,"scaleY":-1,"x":9909,"y":-500,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-138,"scaleY":-1,"x":10265,"y":-148,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":138,"scaleY":-1,"x":10671,"y":-141,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":87,"scaleY":-1,"x":10773,"y":-455,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":87,"scaleY":-1,"x":10783,"y":-815,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":87,"scaleY":-1,"x":10783,"y":-1215,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":54,"scaleY":1,"x":10745,"y":-1602,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":180,"scaleY":-1,"x":10489,"y":-1733,"width":99.95,"height":281.05}}],[{"className":"PlayerWP","params":{"x":1120,"rotation":0,"y":270,"width":64,"height":32}},{"className":"SafePointE","params":{"x":8990,"rotation":0,"y":-920,"id":0,"width":128,"height":744}},{"className":"SafePointE","params":{"x":5530,"rotation":0,"y":-380,"id":0,"width":128,"height":1268}},{"className":"SafePointE","params":{"x":2020,"rotation":0,"y":-380,"id":0,"width":128,"height":1273}}],[{"className":"frg.game.editor.objects::MoverPather","params":{"x":1181,"safeId":-10,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":false,"position":0,"y":385,"height":477,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":-464,"y":-464,"length":656.1950929411161}],"stopOnEnd":true,"id":22,"accelDist":70,"width":477,"speed":200}},{"className":"ToggleE","params":{"x":1170,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":22,"off":false,"y":329,"width":237,"rotation":0,"height":64}},{"className":"MotorJointE","params":{"x":1196,"safeId":-10,"rotation":0,"graphic":0,"y":354,"useWeld":false,"time":0.25,"snd":false,"id":2,"rate":350,"width":17,"height":17}},{"className":"ToggleE","params":{"x":750,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":2,"off":false,"y":-111,"width":237,"rotation":0,"height":64}},{"className":"MotorJointE","params":{"x":3168,"safeId":-1,"rotation":0,"graphic":1,"y":244,"useWeld":false,"time":0,"snd":false,"id":3,"rate":150,"width":17,"height":17}},{"className":"ToggleE","params":{"x":2240,"safeId":-1,"sndId":-1,"hint":-1,"id_off":22,"id":3,"off":false,"y":-330,"width":64,"rotation":0,"height":926}},{"className":"PivotJointE","params":{"x":3223,"safeId":-1,"rotation":0,"graphic":1,"id":-1,"y":242,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3168,"safeId":-1,"rotation":0,"graphic":1,"id":-1,"y":-93,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":4278,"safeId":-1,"rotation":0,"graphic":1,"id":-1,"y":-49,"width":17,"height":17}},{"className":"MotorJointE","params":{"x":4278,"safeId":-1,"rotation":0,"graphic":1,"y":244,"useWeld":false,"time":0,"snd":false,"id":3,"rate":150,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":4250,"safeId":-1,"rotation":0,"graphic":1,"id":-1,"y":294,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":5849,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-146,"width":17,"height":17}},{"className":"ToggleE","params":{"x":6547,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":4,"off":false,"y":-897,"width":41,"rotation":-45,"height":823}},{"className":"PivotJointE","params":{"x":6538,"safeId":-1,"rotation":0,"graphic":0,"id":4,"y":-856,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":6600,"safeId":-1,"rotation":0,"graphic":0,"id":4,"y":-924,"width":17,"height":17}},{"className":"ToggleE","params":{"x":1700,"safeId":-1,"sndId":0,"hint":-1,"id_off":2,"id":81,"off":false,"y":-510,"width":64,"rotation":0,"height":1910}},{"className":"ToggleE","params":{"x":3830,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-550,"width":64,"rotation":0,"height":1910}},{"className":"ToggleE","params":{"x":6490,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-1770,"width":64,"rotation":0,"height":1910}},{"className":"ToggleE","params":{"x":10810,"safeId":-1,"sndId":1,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-1290,"width":264,"rotation":0,"height":120}},{"className":"MotorJointE","params":{"x":1362,"safeId":-10,"rotation":0,"graphic":1,"y":356,"useWeld":false,"time":4,"snd":false,"id":22,"rate":120,"width":17,"height":17}},{"className":"ToggleE","params":{"x":1880,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":80,"off":false,"y":-370,"width":23,"rotation":0,"height":354}},{"className":"ToggleE","params":{"x":5330,"safeId":-1,"sndId":-1,"hint":-1,"id_off":3,"id":-2,"off":false,"y":-440,"width":24,"rotation":0,"height":374}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map7.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map7.json new file mode 100644 index 000000000..3d64be72d --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map7.json @@ -0,0 +1 @@ +{"settings":{"countdown":0,"gravityY":500,"prizes":"26,33,40","theme":7},"layers":[[{"params":{"density":1,"layer":7,"vertices":[{"x":0,"y":0,"length":0},{"x":1635,"y":0,"length":1635},{"x":1630,"y":295,"length":1656.479701052808},{"x":-5,"y":295,"length":295.0423698386386}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":5220,"isStatic":true,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":false,"y":40},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":7,"vertices":[{"x":0,"y":0,"length":0},{"x":990,"y":0,"length":990},{"x":990,"y":735,"length":1233.0145984537246},{"x":0,"y":735,"length":735}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":2630,"isStatic":true,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":false,"y":330},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":8,"vertices":[{"x":60,"y":0,"length":60},{"x":82,"y":20,"length":84.40379138403677},{"x":76,"y":36,"length":84.09518416651456},{"x":46,"y":38,"length":59.665735560705194},{"x":37,"y":46,"length":59.033888572581766},{"x":35,"y":77,"length":84.581321815162},{"x":18,"y":82,"length":83.95236744726142},{"x":-1,"y":59,"length":59.00847396772772},{"x":-13,"y":58,"length":59.43904440685432},{"x":-38,"y":75,"length":84.07734534343957},{"x":-52,"y":66,"length":84.02380615040002},{"x":-47,"y":36,"length":59.20304046246274},{"x":-54,"y":26,"length":59.93329625508679},{"x":-83,"y":17,"length":84.72307831990054},{"x":-85,"y":0,"length":85},{"x":-58,"y":-14,"length":59.665735560705194},{"x":-54,"y":-26,"length":59.93329625508679},{"x":-65,"y":-54,"length":84.50443775329198},{"x":-52,"y":-66,"length":84.02380615040002},{"x":-25,"y":-54,"length":59.50630218724736},{"x":-13,"y":-58,"length":59.43904440685432},{"x":1,"y":-84,"length":84.00595217006948},{"x":18,"y":-82,"length":83.95236744726142},{"x":26,"y":-53,"length":59.033888572581766},{"x":37,"y":-46,"length":59.033888572581766},{"x":67,"y":-51,"length":84.20213774008353},{"x":76,"y":-36,"length":84.09518416651456},{"x":58,"y":-12,"length":59.22837157984339}],"safeId":-10,"rotation":0,"isWheel":true,"line":true,"x":3561,"isStatic":false,"rem":true,"id":81,"plr":true,"ignore":false,"graphic":true,"physic":true,"y":338},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":8,"vertices":[{"x":60,"y":0,"length":60},{"x":82,"y":20,"length":84.40379138403677},{"x":76,"y":36,"length":84.09518416651456},{"x":46,"y":38,"length":59.665735560705194},{"x":37,"y":46,"length":59.033888572581766},{"x":35,"y":77,"length":84.581321815162},{"x":18,"y":82,"length":83.95236744726142},{"x":-1,"y":59,"length":59.00847396772772},{"x":-13,"y":58,"length":59.43904440685432},{"x":-38,"y":75,"length":84.07734534343957},{"x":-52,"y":66,"length":84.02380615040002},{"x":-47,"y":36,"length":59.20304046246274},{"x":-54,"y":26,"length":59.93329625508679},{"x":-83,"y":17,"length":84.72307831990054},{"x":-85,"y":0,"length":85},{"x":-58,"y":-14,"length":59.665735560705194},{"x":-54,"y":-26,"length":59.93329625508679},{"x":-65,"y":-54,"length":84.50443775329198},{"x":-52,"y":-66,"length":84.02380615040002},{"x":-25,"y":-54,"length":59.50630218724736},{"x":-13,"y":-58,"length":59.43904440685432},{"x":1,"y":-84,"length":84.00595217006948},{"x":18,"y":-82,"length":83.95236744726142},{"x":26,"y":-53,"length":59.033888572581766},{"x":37,"y":-46,"length":59.033888572581766},{"x":67,"y":-51,"length":84.20213774008353},{"x":76,"y":-36,"length":84.09518416651456},{"x":58,"y":-12,"length":59.22837157984339}],"safeId":-10,"rotation":0,"isWheel":true,"line":true,"x":3561,"isStatic":false,"rem":true,"id":81,"plr":true,"ignore":false,"graphic":true,"physic":true,"y":646},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":6,"vertices":[{"x":233,"y":-313,"length":390.2025115244647},{"x":235,"y":-340,"length":413.3098111586513},{"x":400,"y":-340,"length":524.9761899362675},{"x":510,"y":-265,"length":574.7390712314589},{"x":510,"y":15,"length":510.22054055084845},{"x":405,"y":105,"length":418.3897704294406},{"x":225,"y":105,"length":248.29418035870273},{"x":224,"y":70,"length":234.68276459936294},{"x":258,"y":66,"length":266.30809225406574},{"x":292,"y":55,"length":297.13464961192255},{"x":322,"y":39,"length":324.35320254315354},{"x":349,"y":14,"length":349.2806894175514},{"x":372,"y":-11,"length":372.16259887312697},{"x":391,"y":-47,"length":393.8146772277539},{"x":403,"y":-84,"length":411.66126852061274},{"x":404,"y":-116,"length":420.3236847954205},{"x":403,"y":-147,"length":428.9731926356238},{"x":396,"y":-177,"length":433.75684432640367},{"x":382,"y":-213,"length":437.3705522780426},{"x":360,"y":-245,"length":435.4595273960601},{"x":332,"y":-270,"length":427.92990080152146},{"x":299,"y":-292,"length":417.92941987852447},{"x":269,"y":-305,"length":406.6767758306343}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":3096,"isStatic":false,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":610},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1.5,"bg":false,"x":2593,"vertices":[{"x":0,"y":0,"length":0},{"x":1060,"y":0,"length":1060},{"x":1060,"y":750,"length":1298.4991336154214},{"x":0,"y":750,"length":750}],"id":-1,"sf":true,"viscosity":1.5,"y":330,"rotation":0},"className":"frg.game.editor.objects::WaterShaper"},{"params":{"density":1,"layer":6,"vertices":[{"x":0,"y":0,"length":0},{"x":295,"y":0,"length":295},{"x":295,"y":680,"length":741.2320824141384},{"x":0,"y":680,"length":680}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":7787,"isStatic":false,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":-364},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":8,"vertices":[{"x":60,"y":0,"length":60},{"x":82,"y":20,"length":84.40379138403677},{"x":76,"y":36,"length":84.09518416651456},{"x":46,"y":38,"length":59.665735560705194},{"x":37,"y":46,"length":59.033888572581766},{"x":35,"y":77,"length":84.581321815162},{"x":18,"y":82,"length":83.95236744726142},{"x":-1,"y":59,"length":59.00847396772772},{"x":-13,"y":58,"length":59.43904440685432},{"x":-38,"y":75,"length":84.07734534343957},{"x":-52,"y":66,"length":84.02380615040002},{"x":-47,"y":36,"length":59.20304046246274},{"x":-54,"y":26,"length":59.93329625508679},{"x":-83,"y":17,"length":84.72307831990054},{"x":-85,"y":0,"length":85},{"x":-58,"y":-14,"length":59.665735560705194},{"x":-54,"y":-26,"length":59.93329625508679},{"x":-65,"y":-54,"length":84.50443775329198},{"x":-52,"y":-66,"length":84.02380615040002},{"x":-25,"y":-54,"length":59.50630218724736},{"x":-13,"y":-58,"length":59.43904440685432},{"x":1,"y":-84,"length":84.00595217006948},{"x":18,"y":-82,"length":83.95236744726142},{"x":26,"y":-53,"length":59.033888572581766},{"x":37,"y":-46,"length":59.033888572581766},{"x":67,"y":-51,"length":84.20213774008353},{"x":76,"y":-36,"length":84.09518416651456},{"x":58,"y":-12,"length":59.22837157984339}],"safeId":-10,"rotation":0,"isWheel":true,"line":true,"x":2671,"isStatic":false,"rem":true,"id":81,"plr":true,"ignore":false,"graphic":true,"physic":true,"y":-452},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":8,"vertices":[{"x":60,"y":0,"length":60},{"x":82,"y":20,"length":84.40379138403677},{"x":76,"y":36,"length":84.09518416651456},{"x":46,"y":38,"length":59.665735560705194},{"x":37,"y":46,"length":59.033888572581766},{"x":35,"y":77,"length":84.581321815162},{"x":18,"y":82,"length":83.95236744726142},{"x":-1,"y":59,"length":59.00847396772772},{"x":-13,"y":58,"length":59.43904440685432},{"x":-38,"y":75,"length":84.07734534343957},{"x":-52,"y":66,"length":84.02380615040002},{"x":-47,"y":36,"length":59.20304046246274},{"x":-54,"y":26,"length":59.93329625508679},{"x":-83,"y":17,"length":84.72307831990054},{"x":-85,"y":0,"length":85},{"x":-58,"y":-14,"length":59.665735560705194},{"x":-54,"y":-26,"length":59.93329625508679},{"x":-65,"y":-54,"length":84.50443775329198},{"x":-52,"y":-66,"length":84.02380615040002},{"x":-25,"y":-54,"length":59.50630218724736},{"x":-13,"y":-58,"length":59.43904440685432},{"x":1,"y":-84,"length":84.00595217006948},{"x":18,"y":-82,"length":83.95236744726142},{"x":26,"y":-53,"length":59.033888572581766},{"x":37,"y":-46,"length":59.033888572581766},{"x":67,"y":-51,"length":84.20213774008353},{"x":76,"y":-36,"length":84.09518416651456},{"x":58,"y":-12,"length":59.22837157984339}],"safeId":-10,"rotation":0,"isWheel":true,"line":true,"x":2681,"isStatic":false,"rem":true,"id":81,"plr":true,"ignore":false,"graphic":true,"physic":true,"y":-124},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":6,"vertices":[{"x":-22,"y":-177,"length":178.36199146679206},{"x":70,"y":-260,"length":269.2582403567252},{"x":250,"y":-260,"length":360.69377593742865},{"x":249,"y":-226,"length":336.2692373679162},{"x":220,"y":-223,"length":313.2554867835518},{"x":184,"y":-211,"length":279.95892555873263},{"x":155,"y":-193,"length":247.53585598858197},{"x":132,"y":-175,"length":219.2008211663451},{"x":111,"y":-153,"length":189.02380802428036},{"x":93,"y":-124,"length":155},{"x":79,"y":-92,"length":121.26417442921878},{"x":73,"y":-64,"length":97.082439194738},{"x":72,"y":-38,"length":81.41252974819048},{"x":73,"y":-5,"length":73.17103251970687},{"x":81,"y":28,"length":85.70297544426332},{"x":95,"y":60,"length":112.36102527122117},{"x":111,"y":84,"length":139.20129309744217},{"x":136,"y":108,"length":173.6663467687393},{"x":160,"y":126,"length":203.65657367244495},{"x":184,"y":140,"length":231.2055362658948},{"x":211,"y":151,"length":259.46483384073457},{"x":248,"y":154,"length":291.92464781172555},{"x":288,"y":149,"length":324.2606975876047},{"x":287,"y":186,"length":342.0014619851792},{"x":75,"y":185,"length":199.6246477767713},{"x":-22,"y":97,"length":99.46356116689167}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":2650,"isStatic":false,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":-255},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1.5,"bg":false,"x":5240,"vertices":[{"x":0,"y":0,"length":0},{"x":1590,"y":0,"length":1590},{"x":1590,"y":420,"length":1644.5364088398894},{"x":0,"y":420,"length":420}],"id":-1,"sf":true,"viscosity":1.5,"y":40,"rotation":0},"className":"frg.game.editor.objects::WaterShaper"},{"params":{"density":1,"layer":6,"vertices":[{"x":0,"y":0,"length":0},{"x":260,"y":-115,"length":284.29737951659},{"x":260,"y":20,"length":260.76809620810593},{"x":-20,"y":95,"length":97.082439194738}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":2370,"isStatic":true,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":300},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":0,"vertices":[{"x":-1395,"y":-960,"length":1693.406330447598},{"x":1215,"y":-1540,"length":1961.587367414462},{"x":1235,"y":-2540,"length":2824.3273535480976},{"x":3125,"y":-2550,"length":4033.3763771807858},{"x":3126,"y":-843,"length":3237.672775312539},{"x":3068,"y":-820,"length":3175.692680345502},{"x":3018,"y":-797,"length":3121.463278656342},{"x":2973,"y":-770,"length":3071.0957327963583},{"x":2934,"y":-740,"length":3025.8810287253527},{"x":2898,"y":-707,"length":2982.993965800132},{"x":2861,"y":-671,"length":2938.6326752420077},{"x":2829,"y":-632,"length":2898.735068956803},{"x":2800,"y":-595,"length":2862.520742282927},{"x":2780,"y":-560,"length":2835.842026629833},{"x":2765,"y":-550,"length":2819.1709774329047},{"x":430,"y":-565,"length":710.0176054155277},{"x":430,"y":-860,"length":961.5092303249096},{"x":100,"y":-860,"length":865.7944328765345},{"x":100,"y":100,"length":141.4213562373095},{"x":-2040,"y":95,"length":2042.2108118409324},{"x":-2040,"y":460,"length":2091.219739769114},{"x":105,"y":460,"length":471.8315377335432},{"x":105,"y":1200,"length":1204.584990774831},{"x":1065,"y":1200,"length":1604.439154346465},{"x":1065,"y":-225,"length":1088.508153391604},{"x":1975,"y":-225,"length":1987.775138188422},{"x":2735,"y":-72,"length":2735.947550666862},{"x":2735,"y":445,"length":2770.96553569329},{"x":4155,"y":445,"length":4178.761778326207},{"x":4525,"y":-205,"length":4529.641266149009},{"x":5255,"y":-205,"length":5258.997052670785},{"x":5255,"y":465,"length":5275.5331484125845},{"x":6685,"y":465,"length":6701.152885884637},{"x":6685,"y":-595,"length":6711.426822963952},{"x":7940,"y":-595,"length":7962.262555329358},{"x":9244,"y":-124,"length":9244.831637190588},{"x":9310,"y":-110,"length":9310.649816205098},{"x":9360,"y":-105,"length":9360.588923780384},{"x":9408,"y":-108,"length":9408.61987753783},{"x":9461,"y":-120,"length":9461.760988315018},{"x":9515,"y":-144,"length":9516.089585538799},{"x":9562,"y":-178,"length":9563.656622861363},{"x":9600,"y":-216,"length":9602.429692530948},{"x":9637,"y":-263,"length":9640.58805260343},{"x":9668,"y":-324,"length":9673.42752079117},{"x":9684,"y":-390,"length":9691.849978203336},{"x":9683,"y":-440,"length":9692.99174661776},{"x":9678,"y":-489,"length":9690.345969056007},{"x":9664,"y":-541,"length":9679.131004382572},{"x":9646,"y":-585,"length":9663.722936839611},{"x":9644,"y":-1438,"length":9750.619467500514},{"x":10895,"y":-1306,"length":10972.996901485027},{"x":10890,"y":365,"length":10896.115133385843},{"x":10230,"y":1565,"length":10349.015653674507},{"x":620,"y":1820,"length":1922.7064258487305},{"x":-2710,"y":1305,"length":3007.8439121736355},{"x":-3000,"y":-710,"length":3082.872037564972}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":2530,"isStatic":true,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":-160},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"textureOffset":0,"isRoad":false,"vertices":[{"x":0,"y":0,"length":0},{"x":2422,"y":0,"length":2422},{"x":2721,"y":99,"length":2722.800396650478},{"x":3628,"y":105,"length":3629.5191141527275},{"x":3792,"y":-40,"length":3792.21096459572},{"x":3972,"y":-188,"length":3976.446654992369},{"x":4209,"y":-278,"length":4218.170812093792},{"x":4984,"y":-283,"length":4992.02814495271},{"x":6536,"y":-71,"length":6536.385622039141},{"x":6639,"y":-105,"length":6639.830268915012},{"x":6979,"y":-523,"length":6998.569139474154},{"x":7184,"y":-660,"length":7214.253668952873},{"x":7637,"y":-657,"length":7665.208281579829},{"x":7856,"y":32,"length":7856.065172845755},{"x":9273,"y":9,"length":9273.004367517573},{"x":9629,"y":-924,"length":9673.231983158474},{"x":9693,"y":-996,"length":9744.037407563663},{"x":10555,"y":-1000,"length":10602.265088178092},{"x":12605,"y":-293,"length":12608.404895148315}],"shape":false,"camera":true,"width":12618,"cameraOffsetY":100,"direction":90,"rotation":0,"height":1118,"snapToGrid":false,"wireframe":false,"straightSides":true,"originOffsetRatio":0,"textureMode":true,"stretchTexture":false,"repeatTexture":true,"line":false,"x":-60,"smoothing":true,"y":300,"lineId":0,"thick":128,"physic":false,"directed":false},"className":"frg.game.editor.objects::GroundPather"},{"params":{"density":1,"layer":6,"vertices":[{"x":35,"y":-5,"length":35.35533905932738},{"x":110,"y":-5,"length":110.11357772772621},{"x":110,"y":65,"length":127.76932339180638},{"x":-15,"y":65,"length":66.70832032063167},{"x":-15,"y":20,"length":25}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":6552,"isStatic":false,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":161},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":6,"vertices":[{"x":0,"y":-1495,"length":1495},{"x":1300,"y":-1495,"length":1981.167585036662},{"x":1300,"y":-865,"length":1561.4816681600844},{"x":1132,"y":-864,"length":1424.0505609001389},{"x":1131,"y":-905,"length":1448.511649935892},{"x":1123,"y":-946,"length":1468.3477108641537},{"x":1112,"y":-979,"length":1481.5481767394538},{"x":1093,"y":-1016,"length":1492.2818098469204},{"x":1066,"y":-1051,"length":1496.982631829775},{"x":1038,"y":-1083,"length":1500.1109958933039},{"x":1002,"y":-1110,"length":1495.3608260215995},{"x":965,"y":-1131,"length":1486.7366949127206},{"x":922,"y":-1146,"length":1470.8500943332056},{"x":882,"y":-1155,"length":1453.2546232508603},{"x":840,"y":-1157,"length":1429.772359503428},{"x":800,"y":-1154,"length":1404.178051388071},{"x":761,"y":-1145,"length":1374.8258071479456},{"x":731,"y":-1134,"length":1349.1912392244474},{"x":698,"y":-1118,"length":1318.0015174498094},{"x":668,"y":-1097,"length":1284.3803953657966},{"x":644,"y":-1075,"length":1253.1404550169148},{"x":613,"y":-1040,"length":1207.2153908892979},{"x":591,"y":-1009,"length":1169.342550324754},{"x":575,"y":-974,"length":1131.0618904374774},{"x":563,"y":-932,"length":1088.8493927077334},{"x":556,"y":-890,"length":1049.3979226203946},{"x":556,"y":-847,"length":1013.1855703670478},{"x":561,"y":-806,"length":982.0168023002458},{"x":570,"y":-778,"length":964.4604709369897},{"x":585,"y":-740,"length":943.3053588313808},{"x":607,"y":-703,"length":928.7938414955172},{"x":624,"y":-680,"length":922.9171143715995},{"x":648,"y":-654,"length":920.6628047227714},{"x":678,"y":-632,"length":926.880790609019},{"x":704,"y":-613,"length":933.4800479924571},{"x":737,"y":-598,"length":949.0906173806587},{"x":774,"y":-587,"length":971.4139179567071},{"x":811,"y":-582,"length":998.2209174326092},{"x":852,"y":-581,"length":1031.2443939241562},{"x":850,"y":490,"length":981.1218069128828},{"x":0,"y":490,"length":490}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":8085,"isStatic":false,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":-422},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"x":11040,"vertices":[{"x":0,"y":-675,"length":675},{"x":455,"y":-680,"length":818.1839646436491},{"x":455,"y":95,"length":464.81178986768396},{"x":0,"y":100,"length":100}],"y":-850,"rotation":0},"className":"frg.game.editor.objects::FinishShaper"},{"params":{"density":1,"layer":0,"vertices":[{"x":0,"y":0,"length":0},{"x":705,"y":0,"length":705},{"x":815,"y":-100,"length":821.112050818888},{"x":870,"y":-100,"length":875.7282683572571},{"x":975,"y":0,"length":975},{"x":980,"y":185,"length":997.3088789337032},{"x":850,"y":295,"length":899.7360724123491}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":11010,"isStatic":true,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":-757},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":1,"layer":0,"vertices":[{"x":0,"y":5,"length":5},{"x":1070,"y":5,"length":1070.011682179218},{"x":1050,"y":415,"length":1129.0372004500118},{"x":25,"y":105,"length":107.93516572461452}],"safeId":-1,"rotation":0,"isWheel":false,"line":false,"x":10458,"isStatic":false,"rem":true,"id":-1,"plr":true,"ignore":false,"graphic":true,"physic":true,"y":-758},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":0.2,"layer":6,"vertices":[{"x":300,"y":0,"length":300},{"x":289,"y":77,"length":299.0819285747636},{"x":259,"y":149,"length":298.8009370801906},{"x":212,"y":212,"length":299.8132752230961},{"x":150,"y":259,"length":299.3008519867593},{"x":77,"y":289,"length":299.0819285747636},{"x":0,"y":300,"length":300},{"x":-77,"y":289,"length":299.0819285747636},{"x":-149,"y":259,"length":298.8009370801906},{"x":-212,"y":212,"length":299.8132752230961},{"x":-259,"y":149,"length":298.8009370801906},{"x":-289,"y":77,"length":299.0819285747636},{"x":-300,"y":0,"length":300},{"x":-289,"y":-77,"length":299.0819285747636},{"x":-259,"y":-150,"length":299.3008519867593},{"x":-212,"y":-212,"length":299.8132752230961},{"x":-150,"y":-259,"length":299.3008519867593},{"x":-77,"y":-289,"length":299.0819285747636},{"x":0,"y":-300,"length":300},{"x":77,"y":-289,"length":299.0819285747636},{"x":150,"y":-259,"length":299.3008519867593},{"x":212,"y":-212,"length":299.8132752230961},{"x":259,"y":-150,"length":299.3008519867593},{"x":289,"y":-77,"length":299.0819285747636}],"safeId":-1,"rotation":0,"isWheel":false,"line":true,"x":11876,"isStatic":false,"rem":true,"id":-1,"plr":false,"ignore":false,"graphic":true,"physic":true,"y":-1208},"className":"frg.game.editor.objects::LandscapeShaper"},{"params":{"density":"1","type":5,"straightSides":true,"shapeH":64,"vertices":[{"x":11,"y":5,"length":12.083045973594572},{"x":375,"y":-631,"length":734.0204356828222}],"originOffsetRatio":0,"safeId":-1,"stretchTexture":false,"width":419.5,"textureOffset":0,"repeatTexture":true,"snapToGrid":false,"height":667.8,"x":6667,"isStatic":true,"smoothing":true,"id":-1,"rotation":0,"action":0,"wireframe":false,"graphic":true,"physic":true,"y":277,"textureMode":true},"className":"frg.game.editor.objects::DynamicPather"}],[{"params":{"height":128.35,"x":4031,"y":-451,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":128.35,"x":7304,"y":-430,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":108.4,"x":8300,"y":254,"rotation":0,"scaleX":1,"scaleY":0.8441760810284379,"width":9.3},"className":"SignPillar"},{"params":{"height":128.35,"x":9600,"y":-820,"rotation":0,"scaleX":1,"scaleY":1,"width":9.3},"className":"SignPillar"},{"params":{"height":18,"x":5778,"id":55,"active":false,"safeId":-1,"y":-55,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":5511,"id":55,"active":false,"safeId":-1,"y":-141,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":6046,"id":55,"active":false,"safeId":-1,"y":32,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":6311,"id":55,"active":false,"safeId":-1,"y":119,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":6378,"id":55,"active":false,"safeId":-1,"y":140,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":5712,"id":55,"active":false,"safeId":-1,"y":-77,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":5845,"id":55,"active":false,"safeId":-1,"y":-33,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":5978,"id":55,"active":false,"safeId":-1,"y":10,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":6244,"id":55,"active":false,"safeId":-1,"y":97,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":5379,"id":55,"active":false,"safeId":-1,"y":-185,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":6177,"id":55,"active":false,"safeId":-1,"y":74,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":5645,"id":55,"active":false,"safeId":-1,"y":-98,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":5578,"id":55,"active":false,"safeId":-1,"y":-120,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":5912,"id":55,"active":false,"safeId":-1,"y":-11,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":6444,"id":55,"active":false,"safeId":-1,"y":161,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":6511,"id":55,"active":false,"safeId":-1,"y":183,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":5446,"id":55,"active":false,"safeId":-1,"y":-163,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":6111,"id":55,"active":false,"safeId":-1,"y":53,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":18,"x":5311,"id":55,"active":false,"safeId":-1,"y":-208,"rotation":18,"width":85.1},"className":"PlankWipe0"},{"params":{"height":256,"x":1040,"y":130,"rotation":0,"scaleX":1,"scaleY":1,"width":640},"className":"Dec60"},{"params":{"height":256,"x":1590,"y":130,"rotation":0,"scaleX":1,"scaleY":1,"width":256},"className":"Dec57"},{"params":{"btg":true,"safeId":-1,"scaleX":0.7170108161258604,"ag":true,"rotation":0,"height":182.85,"x":6654,"ad":-1,"id":-1,"active":true,"plr":true,"scaleY":0.7175362887406826,"y":218,"sgos":true,"width":182.3},"className":"SpikeBall137E"}],[{"params":{"rate":1,"height":128,"x":9010,"id":-1,"rotation":-90,"safeId":-1,"speed":1200,"y":-230,"width":1057},"className":"GeyserE"},{"params":{"rate":1,"height":128,"x":9140,"id":-1,"rotation":-90,"safeId":-1,"speed":1200,"y":-230,"width":1057},"className":"GeyserE"},{"params":{"stones":false,"physic":true,"safeId":-1,"impulse":12000,"rotation":0,"height":53.2,"x":11854,"count":20,"id":11,"width":53.2,"radius":64,"y":-884},"className":"Tnt1"}],null,[{"params":{"height":742,"x":4032,"y":-526,"width":128,"id":0,"rotation":0},"className":"SafePointE"},{"params":{"height":1238,"x":7303,"y":-510,"width":128,"id":0,"rotation":0},"className":"SafePointE"},{"params":{"height":427,"x":8300,"y":220,"width":128,"id":0,"rotation":0},"className":"SafePointE"},{"params":{"height":1075,"x":9600,"y":-900,"width":128,"id":0,"rotation":0},"className":"SafePointE"},{"params":{"height":32,"x":1260,"y":220,"rotation":0,"width":64},"className":"PlayerWP"}],[{"params":{"graphic":1,"safeId":-10,"rotation":0,"rate":120,"height":17,"x":3561,"id":1,"useWeld":false,"snd":false,"time":7.5,"y":646,"width":17},"className":"MotorJointE"},{"params":{"snapToGrid":true,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-672,"length":672}],"safeId":-1,"stopOnEnd":true,"speed":265,"accelDist":0,"width":13,"sideWait":0,"height":685,"x":3507,"startTime":"0","id":1,"rotation":0,"cycle":0,"position":0,"y":490,"body":false,"active":0},"className":"frg.game.editor.objects::MoverPather"},{"params":{"height":1130,"x":2420,"id_off":-1,"id":1,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":60,"width":64},"className":"ToggleE"},{"params":{"graphic":1,"safeId":-10,"rotation":0,"rate":120,"height":17,"x":3561,"id":1,"useWeld":false,"snd":false,"time":7.5,"y":338,"width":17},"className":"MotorJointE"},{"params":{"graphic":1,"safeId":-10,"rotation":0,"rate":-120,"height":17,"x":2681,"id":2,"useWeld":false,"snd":false,"time":7.5,"y":-124,"width":17},"className":"MotorJointE"},{"params":{"snapToGrid":true,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-528,"length":528}],"safeId":-1,"stopOnEnd":true,"speed":280,"accelDist":0,"width":13,"sideWait":0,"height":541,"x":2716,"startTime":"0","id":2,"rotation":0,"cycle":0,"position":0,"y":-290,"body":false,"active":0},"className":"frg.game.editor.objects::MoverPather"},{"params":{"graphic":1,"safeId":-10,"rotation":0,"rate":-120,"height":17,"x":2671,"id":2,"useWeld":false,"snd":false,"time":7.5,"y":-452,"width":17},"className":"MotorJointE"},{"params":{"height":579,"x":2960,"id_off":-1,"id":2,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-410,"width":64},"className":"ToggleE"},{"params":{"graphic":0,"safeId":-1,"rotation":0,"rate":-180,"height":17,"x":6654,"id":5,"useWeld":false,"snd":false,"time":2,"y":218,"width":17},"className":"MotorJointE"},{"params":{"snapToGrid":true,"vertices":[{"x":0,"y":0,"length":0},{"x":288,"y":-560,"length":629.7173969329417}],"safeId":-1,"stopOnEnd":true,"speed":390,"accelDist":0,"width":301,"sideWait":0,"height":573,"x":6602,"startTime":"0","id":5,"rotation":0,"cycle":0,"position":0,"y":191,"body":false,"active":0},"className":"frg.game.editor.objects::MoverPather"},{"params":{"height":2010,"x":5754,"id_off":-1,"id":5,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-431,"width":64},"className":"ToggleE"},{"params":{"snapToGrid":true,"vertices":[{"x":0,"y":0,"length":0},{"x":-320,"y":0,"length":320}],"safeId":-1,"stopOnEnd":false,"speed":160,"accelDist":0,"width":333,"sideWait":0,"height":13,"x":7938,"startTime":"0","id":6,"rotation":0,"cycle":0,"position":0,"y":-20,"body":false,"active":0},"className":"frg.game.editor.objects::MoverPather"},{"params":{"height":994,"x":7440,"id_off":-1,"id":6,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-630,"width":64},"className":"ToggleE"},{"params":{"snapToGrid":true,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":192,"length":192}],"safeId":-1,"stopOnEnd":true,"speed":80,"accelDist":0,"width":13,"sideWait":0,"height":205,"x":8580,"startTime":"0","id":7,"rotation":0,"cycle":0,"position":0,"y":-930,"body":false,"active":0},"className":"frg.game.editor.objects::MoverPather"},{"params":{"height":388,"x":8529,"id_off":-1,"id":7,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":220,"width":64},"className":"ToggleE"},{"params":{"graphic":0,"safeId":-1,"rotation":0,"rate":25,"height":17,"x":10464,"id":9,"useWeld":false,"snd":false,"time":3,"y":-748,"width":17},"className":"MotorJointE"},{"params":{"height":726,"x":10500,"id_off":-1,"id":9,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-800,"width":64},"className":"ToggleE"},{"params":{"height":17,"x":12020,"id":11,"rotation":0,"safeId":-1,"graphic":0,"y":-980,"width":17},"className":"PivotJointE"},{"params":{"height":64,"x":12020,"id_off":-1,"id":11,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-860,"width":828},"className":"ToggleE"},{"params":{"height":17,"x":5279,"id":-1,"rotation":18,"safeId":1,"graphic":0,"y":-219,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":5345,"id":-1,"rotation":18,"safeId":1,"graphic":0,"y":-196,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":5611,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":-108,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":6010,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":21,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":6543,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":194,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":6210,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":86,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":5677,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":-87,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":6143,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":64,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":6409,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":151,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":6077,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":43,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":5944,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":0,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":5811,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":-44,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":5411,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":-173,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":6342,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":129,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":5744,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":-66,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":5877,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":-21,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":5544,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":-130,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":6476,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":173,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":6276,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":108,"width":17},"className":"PivotJointE"},{"params":{"height":17,"x":5478,"id":-1,"rotation":18,"safeId":-1,"graphic":0,"y":-151,"width":17},"className":"PivotJointE"},{"params":{"height":967,"x":4080,"id_off":-1,"id":55,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-560,"width":64},"className":"ToggleE"},{"params":{"height":64,"x":7950,"id_off":55,"id":0,"rotation":-48,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-490,"width":725},"className":"ToggleE"},{"params":{"height":1689,"x":4730,"id_off":1,"id":0,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-600,"width":64},"className":"ToggleE"},{"params":{"height":1689,"x":4840,"id_off":2,"id":0,"rotation":0,"safeId":-1,"off":false,"sndId":-1,"hint":-1,"y":-580,"width":64},"className":"ToggleE"}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map8.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map8.json new file mode 100644 index 000000000..86622d1ed --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map8.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"28,35,43"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1350,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-330,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":2210,"y":0,"length":2210},{"x":2210,"y":770,"length":2340.2991261802413},{"x":0,"y":770,"length":770}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7770,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-860,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":-40,"y":0,"length":40},{"x":4975,"y":0,"length":4975},{"x":4975,"y":1295,"length":5140.783014288777},{"x":-40,"y":1295,"length":1295.6176133412205}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9404,"safeId":-1,"rotation":-21,"graphic":true,"isWheel":false,"y":-464,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":250,"y":0,"length":250},{"x":444,"y":323,"length":549.0582847020888},{"x":388,"y":388,"length":548.7148622007609},{"x":146,"y":202,"length":249.23884127479008},{"x":0,"y":250,"length":250},{"x":-323,"y":444,"length":549.0582847020888},{"x":-388,"y":388,"length":548.7148622007609},{"x":-202,"y":146,"length":249.23884127479008},{"x":-250,"y":0,"length":250},{"x":-444,"y":-323,"length":549.0582847020888},{"x":-388,"y":-388,"length":548.7148622007609},{"x":-146,"y":-202,"length":249.23884127479008},{"x":0,"y":-250,"length":250},{"x":323,"y":-444,"length":549.0582847020888},{"x":388,"y":-388,"length":548.7148622007609},{"x":202,"y":-146,"length":249.23884127479008}],"line":true,"id":4,"physic":true}},{"className":"frg.game.editor.objects::FinishShaper","params":{"x":10122,"rotation":0,"y":-130,"vertices":[{"x":-1,"y":56,"length":56.00892785976178},{"x":15,"y":18,"length":23.430749027719962},{"x":38,"y":-15,"length":40.85339643163099},{"x":64,"y":-47,"length":79.40403012442127},{"x":95,"y":-74,"length":120.42009799032718},{"x":131,"y":-101,"length":165.41463055002117},{"x":170,"y":-115,"length":205.24375751773792},{"x":215,"y":-126,"length":249.20072231034965},{"x":255,"y":-127,"length":284.8754113643366},{"x":293,"y":-126,"length":318.9435686763412},{"x":337,"y":-115,"length":356.0814513562873},{"x":370,"y":-99,"length":383.0156654759698},{"x":400,"y":-81,"length":408.1188552370498},{"x":435,"y":-49,"length":437.75107081536646},{"x":470,"y":-9,"length":470.0861623149526},{"x":495,"y":37,"length":496.3809021306118},{"x":504,"y":73,"length":509.25926599326596},{"x":505,"y":100,"length":514.8057886232439},{"x":-10,"y":100,"length":100.4987562112089}]}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":10373,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":18,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":85,"y":0,"length":85},{"x":127,"y":237,"length":268.88287412923864},{"x":26,"y":80,"length":84.11896337925236},{"x":-186,"y":195,"length":269.4828380435385},{"x":-68,"y":49,"length":83.81527307120105},{"x":-243,"y":-117,"length":269.69983314789056},{"x":-68,"y":-49,"length":83.81527307120105},{"x":36,"y":-267,"length":269.4160351575236},{"x":26,"y":-80,"length":84.11896337925236},{"x":265,"y":-48,"length":269.3120866207085}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":9110,"viscosity":1.5,"rotation":0,"y":-660,"vertices":[{"x":1,"y":2,"length":2.23606797749979},{"x":30,"y":-35,"length":46.09772228646444},{"x":60,"y":-65,"length":88.45903006477066},{"x":96,"y":-93,"length":133.6600164596728},{"x":133,"y":-115,"length":175.82377541163197},{"x":180,"y":-135,"length":225},{"x":213,"y":-144,"length":257.1089263327899},{"x":260,"y":-152,"length":301.1710477452971},{"x":302,"y":-153,"length":338.54541792793475},{"x":369,"y":-145,"length":396.46689647434624},{"x":429,"y":-126,"length":447.1207890492233},{"x":481,"y":-97,"length":490.6831971853122},{"x":532,"y":-57,"length":535.0448579324915},{"x":585,"y":0,"length":585},{"x":614,"y":52,"length":616.1980201201559},{"x":629,"y":109,"length":638.3744982375157},{"x":640,"y":170,"length":662.1933252457321},{"x":637,"y":233,"length":678.2757551320849},{"x":631,"y":284,"length":691.9660396291135},{"x":613,"y":339,"length":700.492683759081},{"x":587,"y":388,"length":703.6426649941005},{"x":549,"y":430,"length":697.3528518619537},{"x":507,"y":471,"length":692.0187858721756},{"x":450,"y":506,"length":677.152863096657},{"x":392,"y":533,"length":661.629050148193},{"x":331,"y":543,"length":635.9323863430766},{"x":263,"y":545,"length":605.1396533032685},{"x":190,"y":532,"length":564.9106123981032},{"x":126,"y":505,"length":520.4815078367338},{"x":78,"y":474,"length":480.37485362995426},{"x":38,"y":436,"length":437.65283044897586},{"x":5,"y":390,"length":390.03204996512784},{"x":-27,"y":334,"length":335.08954027244715},{"x":-48,"y":280,"length":284.08449447303525},{"x":-57,"y":217,"length":224.36131573869858},{"x":-54,"y":152,"length":161.3071604114337},{"x":-38,"y":86,"length":94.02127418834527},{"x":-21,"y":46,"length":50.566787519082126}],"id":-1,"bg":false,"sf":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1346,"safeId":-10,"rotation":6,"graphic":true,"isWheel":false,"y":-686,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":185,"y":0,"length":185},{"x":185,"y":45,"length":190.3943276465977},{"x":0,"y":45,"length":45}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":9810,"viscosity":1.5,"rotation":0,"y":-860,"vertices":[{"x":0,"y":0,"length":0},{"x":2940,"y":0,"length":2940},{"x":2940,"y":1305,"length":3216.617011706554},{"x":-135,"y":1285,"length":1292.0719794191034},{"x":-87,"y":1141,"length":1144.3120203860483},{"x":-22,"y":1092,"length":1092.2215892391068},{"x":27,"y":1035,"length":1035.3521140172554},{"x":78,"y":962,"length":965.1569820500705},{"x":111,"y":900,"length":906.8191660965266},{"x":131,"y":845,"length":855.0941468633731},{"x":152,"y":755,"length":770.1486869429824},{"x":156,"y":678,"length":695.7154590779193},{"x":174,"y":637,"length":660.3370351570477},{"x":202,"y":617,"length":649.2249225037499},{"x":231,"y":600,"length":642.9315671204829},{"x":777,"y":387,"length":868.0426256814811},{"x":822,"y":380,"length":905.5848938669417},{"x":869,"y":380,"length":948.4518965134711},{"x":930,"y":387,"length":1007.307798043875},{"x":981,"y":410,"length":1063.2313953227679},{"x":1027,"y":441,"length":1117.6806341706024},{"x":1069,"y":480,"length":1171.8195253536271},{"x":1099,"y":528,"length":1219.255920633564},{"x":1120,"y":580,"length":1261.269202034205},{"x":1129,"y":650,"length":1302.7436432391448},{"x":1130,"y":700,"length":1329.2479076530458},{"x":1120,"y":748,"length":1346.8125333542155},{"x":1100,"y":787,"length":1352.54168142797},{"x":1069,"y":832,"length":1354.616181802063},{"x":1036,"y":864,"length":1348.9966641915762},{"x":998,"y":892,"length":1338.5320317422365},{"x":950,"y":918,"length":1321.069263891943},{"x":889,"y":935,"length":1290.172856635885},{"x":542,"y":934,"length":1079.8703625898804},{"x":523,"y":924,"length":1061.7462031954717},{"x":510,"y":911,"length":1044.0407080186098},{"x":503,"y":891,"length":1023.1764266244605},{"x":505,"y":864,"length":1000.7602110395876},{"x":522,"y":843,"length":991.5306349276356},{"x":544,"y":834,"length":995.7369130448062},{"x":824,"y":838,"length":1175.253164216119},{"x":813,"y":773,"length":1121.8279725519417},{"x":794,"y":730,"length":1078.5805486842416},{"x":760,"y":687,"length":1024.4847485443597},{"x":718,"y":653,"length":970.5323281581093},{"x":668,"y":620,"length":911.385758062962},{"x":611,"y":602,"length":857.7441343431035},{"x":552,"y":600,"length":815.2938120702254},{"x":479,"y":611,"length":776.3774855056012},{"x":420,"y":641,"length":766.3426126739919},{"x":364,"y":690,"length":780.1256309082531},{"x":326,"y":743,"length":811.3722943261004},{"x":301,"y":816,"length":869.7453650350774},{"x":291,"y":875,"length":922.1203825965458},{"x":301,"y":934,"length":981.3037246439045},{"x":320,"y":994,"length":1044.2394361447953},{"x":345,"y":1034,"length":1090.0371553300374},{"x":376,"y":1075,"length":1138.8595172364326},{"x":415,"y":1105,"length":1180.3601145413209},{"x":458,"y":1128,"length":1217.435008532283},{"x":523,"y":1146,"length":1259.7003611970586},{"x":887,"y":1148,"length":1450.7491168358504},{"x":950,"y":1141,"length":1484.7157977202237},{"x":1008,"y":1126,"length":1511.270988274439},{"x":1069,"y":1105,"length":1537.4608938116116},{"x":1121,"y":1071,"length":1550.381243436594},{"x":1171,"y":1033,"length":1561.5152897106068},{"x":1226,"y":983,"length":1571.4213311521517},{"x":1271,"y":923,"length":1570.7864272395532},{"x":1310,"y":855,"length":1564.3289296052797},{"x":1336,"y":764,"length":1539.0230667537119},{"x":1347,"y":698,"length":1517.1067859580617},{"x":1348,"y":629,"length":1487.5298316336382},{"x":1333,"y":534,"length":1435.9822422300354},{"x":1313,"y":465,"length":1392.9084679188363},{"x":1281,"y":405,"length":1343.4976739838444},{"x":1238,"y":346,"length":1285.4415583759535},{"x":1174,"y":284,"length":1207.8625749645528},{"x":1116,"y":235,"length":1140.474024254827},{"x":1042,"y":197,"length":1060.4588629456591},{"x":964,"y":175,"length":979.7555817651665},{"x":894,"y":167,"length":909.4641279346866},{"x":827,"y":166,"length":843.4957024194018},{"x":766,"y":172,"length":785.073244990555},{"x":720,"y":182,"length":742.6466185205451},{"x":200,"y":383,"length":432.0752249319556},{"x":175,"y":377,"length":415.63686073302017},{"x":151,"y":244,"length":286.9442454554543},{"x":125,"y":174,"length":214.24518664371436},{"x":89,"y":105,"length":137.64446955835166},{"x":48,"y":47,"length":67.17886572427373}],"id":-10,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1511,"safeId":-10,"rotation":6,"graphic":true,"isWheel":false,"y":-668,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":185,"y":0,"length":185},{"x":185,"y":45,"length":190.3943276465977},{"x":0,"y":45,"length":45}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1681,"safeId":-10,"rotation":6,"graphic":true,"isWheel":false,"y":-651,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":185,"y":0,"length":185},{"x":185,"y":45,"length":190.3943276465977},{"x":0,"y":45,"length":45}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1850,"safeId":-10,"rotation":6,"graphic":true,"isWheel":false,"y":-633,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":185,"y":0,"length":185},{"x":185,"y":45,"length":190.3943276465977},{"x":0,"y":45,"length":45}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2019,"safeId":-10,"rotation":6,"graphic":true,"isWheel":false,"y":-615,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":185,"y":0,"length":185},{"x":185,"y":45,"length":190.3943276465977},{"x":0,"y":45,"length":45}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":7770,"viscosity":1.5,"rotation":0,"y":-860,"vertices":[{"x":0,"y":0,"length":0},{"x":1245,"y":0,"length":1245},{"x":1160,"y":105,"length":1164.7424608041042},{"x":1128,"y":172,"length":1141.0381238153263},{"x":1098,"y":261,"length":1128.5942583586007},{"x":1081,"y":342,"length":1133.8099488009443},{"x":1082,"y":430,"length":1164.3126727816716},{"x":1098,"y":542,"length":1224.4868312889282},{"x":1124,"y":634,"length":1290.477431030857},{"x":1231,"y":778,"length":1456.243454920914},{"x":1309,"y":849,"length":1560.2185744311596},{"x":1396,"y":903,"length":1662.5958618978937},{"x":1480,"y":937,"length":1751.6760545260645},{"x":1569,"y":956,"length":1837.3069966665887},{"x":1655,"y":964,"length":1915.2861405022488},{"x":1753,"y":950,"length":1993.8678491815851},{"x":1823,"y":935,"length":2048.7933033861664},{"x":1900,"y":898,"length":2101.5242087589663},{"x":1836,"y":968,"length":2075.5529383756993},{"x":1771,"y":1001,"length":2034.3161012979276},{"x":1685,"y":1028,"length":1973.8310464677568},{"x":1603,"y":1025,"length":1902.6912518850766},{"x":1510,"y":1005,"length":1813.8701717598203},{"x":420,"y":475,"length":634.0544140686981},{"x":5,"y":475,"length":475.02631506054485}],"id":-10,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2188,"safeId":-10,"rotation":6,"graphic":true,"isWheel":false,"y":-597,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":185,"y":0,"length":185},{"x":185,"y":45,"length":190.3943276465977},{"x":0,"y":45,"length":45}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2357,"safeId":-10,"rotation":6,"graphic":true,"isWheel":false,"y":-579,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":185,"y":0,"length":185},{"x":185,"y":45,"length":190.3943276465977},{"x":0,"y":45,"length":45}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2526,"safeId":-10,"rotation":6,"graphic":true,"isWheel":false,"y":-562,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":185,"y":0,"length":185},{"x":185,"y":45,"length":190.3943276465977},{"x":0,"y":45,"length":45}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2695,"safeId":-10,"rotation":6,"graphic":true,"isWheel":false,"y":-544,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":185,"y":0,"length":185},{"x":185,"y":45,"length":190.3943276465977},{"x":0,"y":45,"length":45}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3033,"safeId":-10,"rotation":6,"graphic":true,"isWheel":false,"y":-508,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":185,"y":0,"length":185},{"x":185,"y":45,"length":190.3943276465977},{"x":0,"y":45,"length":45}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2864,"safeId":-10,"rotation":6,"graphic":true,"isWheel":false,"y":-526,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":185,"y":0,"length":185},{"x":185,"y":45,"length":190.3943276465977},{"x":0,"y":45,"length":45}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3202,"safeId":-10,"rotation":6,"graphic":true,"isWheel":false,"y":-490,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":185,"y":0,"length":185},{"x":185,"y":45,"length":190.3943276465977},{"x":0,"y":45,"length":45}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":3366,"safeId":-10,"rotation":6,"graphic":true,"isWheel":false,"y":-473,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":185,"y":0,"length":185},{"x":185,"y":45,"length":190.3943276465977},{"x":0,"y":45,"length":45}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":420,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":12393,"textureOffset":0,"height":88,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":true,"physic":true,"vertices":[{"x":-835,"y":0,"length":835},{"x":7125,"y":0,"length":7125},{"x":11545,"y":20,"length":11545.017323503676}],"line":true,"shape":true,"isRoad":true,"smoothing":true,"camera":false}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":-460,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":13288,"textureOffset":0,"height":1083,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":-915,"y":-170,"length":930.658369112963},{"x":190,"y":-165,"length":251.6445906432324},{"x":705,"y":165,"length":724.0511031688302},{"x":2950,"y":160,"length":2954.335796757031},{"x":4415,"y":110,"length":4416.37011583042},{"x":5115,"y":770,"length":5172.632308602652},{"x":6080,"y":770,"length":6128.564269060087},{"x":7060,"y":380,"length":7070.219232810253},{"x":7475,"y":305,"length":7481.219820323421},{"x":8640,"y":845,"length":8681.222552152432},{"x":8905,"y":845,"length":8945.001397428621},{"x":9430,"y":735,"length":9458.600583595862},{"x":10030,"y":755,"length":10058.37586293135},{"x":11415,"y":535,"length":11427.530354367911},{"x":12360,"y":465,"length":12368.74387316675}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7240,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-75,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1005,"y":-1560,"length":1855.7006762945364},{"x":-810,"y":-1560,"length":1757.7542490348303},{"x":-810,"y":85,"length":814.4476655992084},{"x":-1005,"y":85,"length":1008.5881220795732}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6718,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":399,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":228,"y":0,"length":228},{"x":230,"y":20,"length":230.8679276123039},{"x":-230,"y":20,"length":230.8679276123039},{"x":-228,"y":0,"length":228},{"x":-223,"y":-33,"length":225.42848089804446},{"x":-211,"y":-67,"length":221.38202275704322},{"x":-196,"y":-101,"length":220.49263026232873},{"x":-173,"y":-130,"length":216.40009242142204},{"x":-143,"y":-156,"length":211.62466774929618},{"x":-113,"y":-177,"length":209.99523804124703},{"x":-74,"y":-192,"length":205.7668583615933},{"x":-36,"y":-201,"length":204.1984329028996},{"x":0,"y":-206,"length":206},{"x":36,"y":-201,"length":204.1984329028996},{"x":74,"y":-192,"length":205.7668583615933},{"x":113,"y":-177,"length":209.99523804124703},{"x":143,"y":-156,"length":211.62466774929618},{"x":173,"y":-130,"length":216.40009242142204},{"x":196,"y":-101,"length":220.49263026232873},{"x":211,"y":-67,"length":221.38202275704322},{"x":223,"y":-33,"length":225.42848089804446}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":6081,"safeId":-1,"rotation":12,"graphic":true,"isWheel":false,"y":-23,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":-20,"y":0,"length":20},{"x":10,"y":-25,"length":26.92582403567252},{"x":60,"y":15,"length":61.84658438426491},{"x":115,"y":-25,"length":117.6860229593982},{"x":150,"y":0,"length":150},{"x":1555,"y":20,"length":1555.128612044676},{"x":1555,"y":80,"length":1557.0565179209134},{"x":-20,"y":60,"length":63.245553203367585}],"line":true,"id":82,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5555,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-551,"plr":false,"density":0.7,"isStatic":false,"ignore":false,"layer":6,"rem":false,"vertices":[{"x":0,"y":-475,"length":475},{"x":70,"y":-475,"length":480.13019067748695},{"x":70,"y":100,"length":122.06555615733703},{"x":0,"y":100,"length":100}],"line":true,"id":82,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5038,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-450,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":160,"y":-85,"length":181.1767093199344},{"x":305,"y":0,"length":305}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5812,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":269,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":100,"y":0,"length":100},{"x":149,"y":13,"length":149.56603892595405},{"x":90,"y":43,"length":99.74467404327912},{"x":128,"y":76,"length":148.86235252742716},{"x":62,"y":78,"length":99.6393496566492},{"x":82,"y":125,"length":149.4958193395387},{"x":22,"y":97,"length":99.46356116689167},{"x":20,"y":148,"length":149.34523762075577},{"x":-22,"y":97,"length":99.46356116689167},{"x":-46,"y":142,"length":149.26486525636233},{"x":-62,"y":78,"length":99.6393496566492},{"x":-103,"y":108,"length":149.24141516348604},{"x":-90,"y":43,"length":99.74467404327912},{"x":-140,"y":52,"length":149.34523762075577},{"x":-100,"y":0,"length":100},{"x":-149,"y":-13,"length":149.56603892595405},{"x":-90,"y":-43,"length":99.74467404327912},{"x":-128,"y":-76,"length":148.86235252742716},{"x":-62,"y":-78,"length":99.6393496566492},{"x":-82,"y":-125,"length":149.4958193395387},{"x":-22,"y":-97,"length":99.46356116689167},{"x":-20,"y":-148,"length":149.34523762075577},{"x":22,"y":-97,"length":99.46356116689167},{"x":46,"y":-142,"length":149.26486525636233},{"x":62,"y":-78,"length":99.6393496566492},{"x":103,"y":-108,"length":149.24141516348604},{"x":90,"y":-43,"length":99.74467404327912},{"x":140,"y":-52,"length":149.34523762075577}],"line":true,"id":2,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":1.5,"x":7780,"viscosity":1.5,"rotation":0,"y":-161,"vertices":[{"x":0,"y":0,"length":0},{"x":350,"y":-5,"length":350.03571246374275},{"x":1450,"y":515,"length":1538.7413687816415},{"x":1625,"y":545,"length":1713.9574090390927},{"x":1760,"y":535,"length":1839.51759980708},{"x":1860,"y":500,"length":1926.0321908005587},{"x":1945,"y":445,"length":1995.256875692952},{"x":1895,"y":585,"length":1983.2422948293533},{"x":5,"y":585,"length":585.0213671311502}],"id":-10,"bg":false,"sf":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8680,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":839,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1005,"y":-1010,"length":1424.8245506026346},{"x":-900,"y":-1010,"length":1352.8118864054973},{"x":-895,"y":-415,"length":986.5343379730884},{"x":-1005,"y":-415,"length":1087.313202347879}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8679,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":33,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1005,"y":-1010,"length":1424.8245506026346},{"x":-900,"y":-1010,"length":1352.8118864054973},{"x":-895,"y":-415,"length":986.5343379730884},{"x":-1005,"y":-415,"length":1087.313202347879}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":7676,"safeId":-1,"rotation":0,"graphic":true,"height":878,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":442,"y":0,"length":442},{"x":459,"y":1,"length":459.00108932332614},{"x":475,"y":7,"length":475.05157614726426},{"x":1480,"y":491,"length":1559.3206854268303},{"x":1519,"y":508,"length":1601.6944152989984},{"x":1560,"y":522,"length":1645.0179330329502},{"x":1602,"y":534,"length":1688.6562705299145},{"x":1643,"y":542,"length":1730.0904600627102},{"x":1688,"y":547,"length":1774.416242035673},{"x":1732,"y":548,"length":1816.6254429573532},{"x":1778,"y":547,"length":1860.240038274631},{"x":1824,"y":542,"length":1902.824216789349},{"x":1870,"y":532,"length":1944.2026643331194},{"x":1915,"y":517,"length":1983.560939320998},{"x":1956,"y":502,"length":2019.390997305871},{"x":1999,"y":480,"length":2055.821247093239},{"x":2044,"y":451,"length":2093.1643509289947},{"x":2085,"y":420,"length":2126.881519972375},{"x":2130,"y":377,"length":2163.1063311820803},{"x":2165,"y":338,"length":2191.2254562230696},{"x":2192,"y":303,"length":2212.8427418142483},{"x":2218,"y":261,"length":2233.303606767338},{"x":2239,"y":221,"length":2249.8804412679356},{"x":2258,"y":172,"length":2264.541454687902},{"x":2273,"y":116,"length":2275.958040035009},{"x":2283,"y":68,"length":2284.012478074496},{"x":2286,"y":27,"length":2286.1594432584966},{"x":2286,"y":-10,"length":2286.021872161332},{"x":2297,"y":-41,"length":2297.365882918957},{"x":2320,"y":-67,"length":2320.96725526234},{"x":2347,"y":-82,"length":2348.4320301000835},{"x":2907,"y":-302,"length":2922.644863817703},{"x":2939,"y":-310,"length":2955.3038760844884},{"x":2970,"y":-312,"length":2986.342914000333},{"x":3003,"y":-312,"length":3019.1642883420573},{"x":3035,"y":-309,"length":3050.6894302763762},{"x":3072,"y":-301,"length":3086.711032798503},{"x":3098,"y":-291,"length":3111.6370289608008},{"x":3127,"y":-276,"length":3139.1567339016383},{"x":3154,"y":-258,"length":3164.534720934501},{"x":3179,"y":-237,"length":3187.8221405843833},{"x":3202,"y":-213,"length":3209.076658479819},{"x":3222,"y":-187,"length":3227.4220362388305},{"x":3235,"y":-165,"length":3239.2051494155166},{"x":3248,"y":-140,"length":3251.0158412410115},{"x":3257,"y":-110,"length":3258.857008216224},{"x":3263,"y":-83,"length":3264.05545296032},{"x":3267,"y":-52,"length":3267.4138091157047},{"x":3269,"y":-22,"length":3269.074027916774},{"x":3265,"y":10,"length":3265.015313899768},{"x":3260,"y":41,"length":3260.257811891569},{"x":3250,"y":75,"length":3250.8652694321245},{"x":3236,"y":101,"length":3237.5757906186536},{"x":3219,"y":126,"length":3221.465039388135},{"x":3203,"y":149,"length":3206.4637842957154},{"x":3180,"y":173,"length":3184.7023408789714},{"x":3154,"y":194,"length":3159.960759250026},{"x":3120,"y":217,"length":3127.5372100104582},{"x":3089,"y":230,"length":3097.550806685824},{"x":3059,"y":241,"length":3068.478776201654},{"x":3028,"y":247,"length":3038.0574385616874},{"x":2995,"y":248,"length":3005.2502391647854},{"x":2687,"y":247,"length":2698.328742017918},{"x":2670,"y":244,"length":2681.125882908149},{"x":2658,"y":238,"length":2668.6341075539},{"x":2646,"y":227,"length":2655.7192999261047},{"x":2637,"y":213,"length":2645.5884033613393},{"x":2635,"y":196,"length":2642.2795083033893},{"x":2637,"y":178,"length":2643.000756715745},{"x":2648,"y":160,"length":2652.8294328885904},{"x":2661,"y":149,"length":2665.1682873694863},{"x":2677,"y":143,"length":2680.816666614858},{"x":2963,"y":143,"length":2966.448718585912}],"smoothing":true,"id":-1,"repeatTexture":true,"width":3284.55,"type":9,"textureOffset":0,"y":-170}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":7746,"safeId":-1,"rotation":0,"graphic":true,"height":569,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":-72,"y":-3,"length":72.06247289678588},{"x":375,"y":-3,"length":375.0119998080061},{"x":403,"y":-2,"length":403.00496274859944},{"x":428,"y":0,"length":428},{"x":453,"y":5,"length":453.0275929786176},{"x":479,"y":15,"length":479.2348067492594},{"x":1490,"y":508,"length":1574.218536290308},{"x":1533,"y":526,"length":1620.7297738981658},{"x":1578,"y":538,"length":1667.1916506508783},{"x":1618,"y":545,"length":1707.322172292037},{"x":1658,"y":548,"length":1746.2153360911707},{"x":1696,"y":547,"length":1782.0283387196737},{"x":1734,"y":541,"length":1816.435245198683},{"x":1771,"y":531,"length":1848.8921006916548},{"x":1807,"y":517,"length":1879.5047219946005},{"x":1839,"y":499,"length":1905.497835212625},{"x":1871,"y":477,"length":1930.8469644174288},{"x":1896,"y":454,"length":1949.5979072619052},{"x":1919,"y":429,"length":1966.3677173916378},{"x":1945,"y":401,"length":1985.9068457508272},{"x":1963,"y":376,"length":1998.6858182315698}],"smoothing":true,"id":-1,"repeatTexture":true,"width":2048.8,"type":8,"textureOffset":0,"y":-380}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9974,"safeId":-1,"rotation":0,"graphic":true,"height":1328,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":657,"y":462,"length":803.1768173945261},{"x":657,"y":437,"length":789.061467821107},{"x":654,"y":411,"length":772.4228116776459},{"x":636,"y":367,"length":734.2921761805719},{"x":614,"y":334,"length":698.9649490496645},{"x":589,"y":303,"length":662.3669677754168},{"x":561,"y":278,"length":626.1030266657398},{"x":534,"y":259,"length":593.495577068608},{"x":505,"y":242,"length":559.9901784853016},{"x":469,"y":230,"length":522.3609862920468},{"x":430,"y":223,"length":484.3851773124359},{"x":389,"y":222,"length":447.88949529990094},{"x":350,"y":226,"length":416.6245312028566},{"x":312,"y":235,"length":390.600819251573},{"x":279,"y":249,"length":373.9545426920229},{"x":252,"y":267,"length":367.14166203251847},{"x":225,"y":289,"length":366.2594708673074},{"x":199,"y":316,"length":373.43941945113403},{"x":178,"y":344,"length":387.3241536491108},{"x":162,"y":370,"length":403.9108812597155},{"x":149,"y":401,"length":427.7873303406729},{"x":140,"y":435,"length":456.97374103989824},{"x":135,"y":469,"length":488.0430308896952},{"x":134,"y":505,"length":522.4758367618545},{"x":138,"y":543,"length":560.2615460657638},{"x":146,"y":578,"length":596.1543424315552},{"x":158,"y":613,"length":633.0347541802108},{"x":176,"y":644,"length":667.6166564728594},{"x":196,"y":671,"length":699.0400560769032},{"x":222,"y":699,"length":733.406435750328},{"x":247,"y":719,"length":760.2433820823434},{"x":282,"y":740,"length":791.9116112294352},{"x":315,"y":755,"length":818.0770134895614},{"x":349,"y":763,"length":839.0292009221133},{"x":397,"y":767,"length":863.6538658513606},{"x":707,"y":768,"length":1043.8740345463143},{"x":762,"y":763,"length":1078.338073147749},{"x":825,"y":750,"length":1114.9551560488878},{"x":876,"y":733,"length":1142.2193309518098},{"x":915,"y":715,"length":1161.2277984960574},{"x":949,"y":694,"length":1175.6857573348416},{"x":989,"y":665,"length":1191.7826983137488},{"x":1022,"y":638,"length":1204.7937582839645},{"x":1054,"y":606,"length":1215.7927454957116},{"x":1086,"y":566,"length":1224.643621630391},{"x":1113,"y":526,"length":1231.0341181299566},{"x":1134,"y":491,"length":1235.733385484102},{"x":1152,"y":448,"length":1236.0453066129899},{"x":1165,"y":402,"length":1232.4078058824523},{"x":1177,"y":334,"length":1223.4725170595375},{"x":1180,"y":287,"length":1214.4006752303787},{"x":1180,"y":243,"length":1204.7609721434374},{"x":1172,"y":194,"length":1187.9478103014458},{"x":1163,"y":143,"length":1171.7585075432567},{"x":1144,"y":91,"length":1147.6136109335755},{"x":1122,"y":44,"length":1122.8624136553863},{"x":1096,"y":0,"length":1096},{"x":1064,"y":-39,"length":1064.7145157271032},{"x":1027,"y":-75,"length":1029.734917345236},{"x":992,"y":-108,"length":997.861713866205},{"x":952,"y":-138,"length":961.9501026560578},{"x":908,"y":-162,"length":922.338332717447},{"x":871,"y":-179,"length":889.2030139400114},{"x":831,"y":-192,"length":852.8921385497699},{"x":780,"y":-204,"length":806.2356975475597},{"x":718,"y":-212,"length":748.6441077040545},{"x":653,"y":-211,"length":686.2433970538442},{"x":600,"y":-206,"length":634.3784359512861},{"x":550,"y":-195,"length":583.5451996203893},{"x":43,"y":0,"length":43},{"x":22,"y":4,"length":22.360679774997898},{"x":8,"y":-3,"length":8.54400374531753},{"x":2,"y":-16,"length":16.1245154965971},{"x":0,"y":-35,"length":35},{"x":-6,"y":-86,"length":86.20904824900923},{"x":-20,"y":-141,"length":142.41137595009747},{"x":-38,"y":-192,"length":195.72429588581997},{"x":-61,"y":-239,"length":246.661711661944},{"x":-89,"y":-286,"length":299.5279619668254},{"x":-127,"y":-339,"length":362.008287197959},{"x":-168,"y":-386,"length":420.97505864362086},{"x":-216,"y":-426,"length":477.6316572422728},{"x":-254,"y":-453,"length":519.3505559831433},{"x":-297,"y":-479,"length":563.6044712384742},{"x":-351,"y":-504,"length":614.1799410596213},{"x":-405,"y":-523,"length":661.4786466697168},{"x":-465,"y":-535,"length":708.8370757797592},{"x":-527,"y":-542,"length":755.9715603116297},{"x":-584,"y":-542,"length":796.755922475635},{"x":-633,"y":-538,"length":830.7424390266817},{"x":-689,"y":-529,"length":868.6552826063973},{"x":-741,"y":-515,"length":902.3890513520208},{"x":-795,"y":-493,"length":935.4539005210252},{"x":-833,"y":-473,"length":957.9237965516882},{"x":-875,"y":-447,"length":982.5650105718196},{"x":-920,"y":-411,"length":1007.6313810119254},{"x":-959,"y":-376,"length":1030.0762107727758},{"x":-991,"y":-342,"length":1048.353470924764},{"x":-1013,"y":-314,"length":1060.54938593165},{"x":-1038,"y":-279,"length":1074.8418488317247},{"x":-1060,"y":-240,"length":1086.830253535482},{"x":-1079,"y":-199,"length":1097.1973386770494},{"x":-1094,"y":-159,"length":1105.4940072203015},{"x":-1106,"y":-114,"length":1111.8597033798824},{"x":-1114,"y":-73,"length":1116.3892690276093},{"x":-1118,"y":-31,"length":1118.4297027529267},{"x":-1121,"y":17,"length":1121.1288953550345},{"x":-1120,"y":58,"length":1121.500780204811},{"x":-1115,"y":97,"length":1119.2113294637434},{"x":-1107,"y":142,"length":1116.0703382851818},{"x":-1099,"y":178,"length":1113.3216067246697},{"x":-1087,"y":217,"length":1108.4484651980895},{"x":-1069,"y":260,"length":1100.1640786719042},{"x":-1045,"y":301,"length":1087.4860918650868},{"x":-1021,"y":337,"length":1075.1790548555157},{"x":-996,"y":371,"length":1062.8532353998835},{"x":-966,"y":404,"length":1047.0778385583376},{"x":-936,"y":433,"length":1031.3025744174208},{"x":-899,"y":465,"length":1012.1393184734994},{"x":-857,"y":493,"length":988.6849852202672},{"x":-822,"y":513,"length":968.944270843272},{"x":-783,"y":533,"length":947.194805729001},{"x":-740,"y":549,"length":921.4125026284373},{"x":-690,"y":563,"length":890.5442156344625},{"x":-638,"y":572,"length":856.8710521426196},{"x":-587,"y":578,"length":823.803981539298},{"x":-544,"y":579,"length":794.4664876506749},{"x":-486,"y":575,"length":752.8751556533128},{"x":-443,"y":569,"length":721.1171888119156},{"x":-401,"y":559,"length":687.9549403849063},{"x":-357,"y":543,"length":649.8445968075753},{"x":-317,"y":521,"length":609.8606398186392},{"x":-290,"y":500,"length":578.013840664737},{"x":-263,"y":472,"length":540.3267529930384}],"smoothing":true,"id":-1,"repeatTexture":true,"width":2319,"type":9,"textureOffset":0,"y":-480}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":7673,"safeId":-1,"rotation":0,"graphic":true,"height":593,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-580,"length":580}],"smoothing":true,"id":-1,"repeatTexture":true,"width":64,"type":5,"textureOffset":0,"y":422}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":7673,"safeId":-1,"rotation":0,"graphic":true,"height":593,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":0,"y":-580,"length":580}],"smoothing":true,"id":-1,"repeatTexture":true,"width":64,"type":5,"textureOffset":0,"y":-388}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9053,"safeId":-1,"rotation":0,"graphic":true,"height":722,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":18,"physic":true,"stretchTexture":false,"vertices":[{"x":-1,"y":1,"length":1.4142135623730951},{"x":1,"y":-28,"length":28.0178514522438},{"x":6,"y":-58,"length":58.309518948453004},{"x":13,"y":-84,"length":85},{"x":22,"y":-113,"length":115.12167476196652},{"x":34,"y":-139,"length":143.09786860746738},{"x":48,"y":-164,"length":170.88007490635061},{"x":62,"y":-185,"length":195.1127878945919},{"x":79,"y":-208,"length":222.49719099350446},{"x":100,"y":-230,"length":250.79872407968904},{"x":120,"y":-250,"length":277.308492477241},{"x":144,"y":-269,"length":305.11800995680346},{"x":169,"y":-286,"length":332.20024081869656},{"x":198,"y":-302,"length":361.1204785109812},{"x":225,"y":-313,"length":385.478922899813},{"x":259,"y":-324,"length":414.79754097631775},{"x":290,"y":-331,"length":440.06931272243924},{"x":320,"y":-334,"length":462.5537806569091},{"x":354,"y":-335,"length":487.3817805375987},{"x":382,"y":-334,"length":507.42487128638066},{"x":414,"y":-330,"length":529.4298820429387},{"x":443,"y":-323,"length":548.2499430004531},{"x":474,"y":-314,"length":568.5701363947987},{"x":502,"y":-303,"length":586.3556940970216},{"x":535,"y":-284,"length":605.707024889096},{"x":564,"y":-262,"length":621.8842335997915},{"x":590,"y":-241,"length":637.3233088472443},{"x":619,"y":-213,"length":654.6220283491841},{"x":642,"y":-183,"length":667.5724679763239},{"x":660,"y":-154,"length":677.728559232972},{"x":674,"y":-126,"length":685.6763084721537},{"x":684,"y":-99,"length":691.1273399309276},{"x":693,"y":-68,"length":696.328227203235},{"x":699,"y":-39,"length":700.0871374336198},{"x":702,"y":-9,"length":702.0576899372302},{"x":703,"y":23,"length":703.3761440367451},{"x":701,"y":54,"length":703.0768094596777},{"x":696,"y":87,"length":701.4164241019738},{"x":689,"y":118,"length":699.0314728250796},{"x":679,"y":146,"length":694.5192581923125},{"x":667,"y":174,"length":689.3221307922734},{"x":653,"y":198,"length":682.3584102214905},{"x":636,"y":224,"length":674.293704553142},{"x":613,"y":251,"length":662.3971618296684},{"x":592,"y":274,"length":652.3342701407001},{"x":564,"y":296,"length":636.9552574553412},{"x":532,"y":319,"length":620.3104061677508},{"x":505,"y":334,"length":605.4593297654269},{"x":471,"y":349,"length":586.2098600330772},{"x":439,"y":359,"length":567.0996385116111},{"x":399,"y":366,"length":541.4397473403666},{"x":361,"y":369,"length":516.2189457972266},{"x":320,"y":367,"length":486.91785754888883},{"x":282,"y":362,"length":458.87688980814886},{"x":248,"y":355,"length":433.0461869131282},{"x":212,"y":341,"length":401.52833025827704},{"x":178,"y":325,"length":370.55229050702144},{"x":149,"y":307,"length":341.2477106150311},{"x":126,"y":289,"length":315.27289766169247},{"x":104,"y":268,"length":287.4717377412952},{"x":81,"y":244,"length":257.0933682536366},{"x":63,"y":220,"length":228.84274076317124},{"x":48,"y":198,"length":203.73512215619573},{"x":33,"y":170,"length":173.1733235807409},{"x":17,"y":136,"length":137.05838172107534},{"x":8,"y":101,"length":101.31633629380802},{"x":1,"y":70,"length":70.00714249274856},{"x":0,"y":41,"length":41},{"x":-1,"y":2,"length":2.23606797749979}],"smoothing":true,"id":-1,"repeatTexture":true,"width":722,"type":9,"textureOffset":0,"y":-480}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":3,"x":1390,"viscosity":1.5,"rotation":0,"y":-330,"vertices":[{"x":-25,"y":0,"length":25},{"x":2470,"y":0,"length":2470},{"x":2460,"y":775,"length":2579.190764561629},{"x":-30,"y":785,"length":785.5730392522391}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":960,"safeId":-10,"rotation":0,"graphic":true,"isWheel":false,"y":320,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1000,"y":-1940,"length":2182.567295640618},{"x":-870,"y":-1940,"length":2126.146749403719},{"x":-870,"y":-1010,"length":1333.0416347586447},{"x":405,"y":-1010,"length":1088.1750778252551},{"x":410,"y":100,"length":422.0189569201839},{"x":-1000,"y":100,"length":1004.987562112089}],"line":true,"id":81,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4530,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":559,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-1005,"y":-1010,"length":1424.8245506026346},{"x":1090,"y":-1010,"length":1486.0013458944106},{"x":1115,"y":-1025,"length":1514.5461366363193},{"x":1145,"y":-1010,"length":1526.802213778851},{"x":1145,"y":85,"length":1148.1506869744928},{"x":-1005,"y":85,"length":1008.5881220795732}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":5676,"safeId":-1,"rotation":0,"graphic":true,"height":853,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":3,"y":8,"length":8.54400374531753},{"x":2,"y":848,"length":848.0023584872863}],"smoothing":true,"id":-1,"repeatTexture":true,"width":65,"type":5,"textureOffset":0,"y":-433}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":7740,"safeId":-1,"rotation":0,"graphic":true,"height":894.05,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":423,"y":-1,"length":423.0011820314454},{"x":450,"y":6,"length":450.03999822238023},{"x":1528,"y":524,"length":1615.351354968943},{"x":1585,"y":542,"length":1675.1086531923831},{"x":1632,"y":548,"length":1721.548140482862},{"x":1679,"y":549,"length":1766.477285446943},{"x":1730,"y":544,"length":1813.5148193494313},{"x":1782,"y":534,"length":1860.2902999263315},{"x":1831,"y":517,"length":1902.590339510847},{"x":1870,"y":495,"length":1934.4055934575872},{"x":1912,"y":469,"length":1968.681030537959},{"x":1956,"y":427,"length":2002.0651837540156},{"x":1989,"y":394,"length":2027.6481450192487},{"x":2028,"y":345,"length":2057.1361160603838},{"x":2052,"y":301,"length":2073.9587749036864},{"x":2066,"y":254,"length":2081.5551878343267},{"x":2076,"y":214,"length":2087.0007187349024},{"x":2084,"y":154,"length":2089.682272499817},{"x":2087,"y":108,"length":2089.792573438809},{"x":2093,"y":67,"length":2094.072109551149},{"x":2102,"y":20,"length":2102.0951453252537},{"x":2114,"y":-6,"length":2114.0085146469964},{"x":2131,"y":-27,"length":2131.1710395930213},{"x":2153,"y":-45,"length":2153.4702226870936},{"x":2186,"y":-62,"length":2186.8790547261638},{"x":2228,"y":-78,"length":2229.3649319929655},{"x":2798,"y":-294,"length":2813.403632612996},{"x":2844,"y":-306,"length":2860.414655255423},{"x":2887,"y":-311,"length":2903.702808484367},{"x":2932,"y":-313,"length":2948.659525954124},{"x":2973,"y":-309,"length":2989.0148878853047},{"x":3016,"y":-302,"length":3031.0823149495627},{"x":3061,"y":-291,"length":3074.8011317807204},{"x":3101,"y":-274,"length":3113.081592249069},{"x":3143,"y":-252,"length":3153.0862658671426},{"x":3180,"y":-227,"length":3188.091748993432},{"x":3216,"y":-194,"length":3221.8460546711417},{"x":3250,"y":-159,"length":3253.8870601174835},{"x":3273,"y":-125,"length":3275.386084112833},{"x":3294,"y":-92,"length":3295.284509719912},{"x":3315,"y":-48,"length":3315.3474930993284},{"x":3330,"y":-1,"length":3330.000150150147},{"x":3338,"y":42,"length":3338.26421962073},{"x":3344,"y":88,"length":3345.1576943396853},{"x":3344,"y":140,"length":3346.9293389613113},{"x":3334,"y":196,"length":3339.756278532911},{"x":3325,"y":238,"length":3333.507012142017},{"x":3307,"y":287,"length":3319.4303728200116},{"x":3284,"y":326,"length":3300.1412090999984},{"x":3256,"y":367,"length":3276.617920966679},{"x":3226,"y":400,"length":3250.703923767897},{"x":3190,"y":432,"length":3219.1185128851657},{"x":3154,"y":460,"length":3187.368193353256},{"x":3112,"y":485,"length":3149.566478104566},{"x":3073,"y":502,"length":3113.7329686406956},{"x":3026,"y":518,"length":3070.0162866017504},{"x":2980,"y":525,"length":3025.892430341832},{"x":2934,"y":527,"length":2980.9537064503365},{"x":2626,"y":528,"length":2678.5555809055},{"x":2589,"y":524,"length":2641.495220514321},{"x":2556,"y":515,"length":2607.366679237886},{"x":2526,"y":500,"length":2575.0099028935792},{"x":2500,"y":482,"length":2546.040848061947},{"x":2478,"y":458,"length":2519.969841089373},{"x":2461,"y":436,"length":2499.3233084177004},{"x":2447,"y":411,"length":2481.275881477108},{"x":2436,"y":378,"length":2465.1531392593038},{"x":2432,"y":343,"length":2456.0686065336204},{"x":2434,"y":313,"length":2454.042583167619},{"x":2440,"y":283,"length":2456.3568551820804},{"x":2449,"y":255,"length":2462.2400370394435},{"x":2474,"y":214,"length":2483.238208468934},{"x":2502,"y":186,"length":2508.904143246609},{"x":2531,"y":166,"length":2536.4378565224106},{"x":2558,"y":155,"length":2562.6917489233856},{"x":2595,"y":143,"length":2598.937090427546},{"x":2628,"y":140,"length":2631.7264295515215},{"x":2671,"y":145,"length":2674.932896354598},{"x":2711,"y":156,"length":2715.484671287982},{"x":2742,"y":173,"length":2747.4520923939695},{"x":2768,"y":199,"length":2775.1441404006387},{"x":2789,"y":225,"length":2798.0611144147656},{"x":2803,"y":252,"length":2814.3050651981566},{"x":2811,"y":275,"length":2824.419586392928}],"smoothing":true,"id":-1,"repeatTexture":true,"width":3366.5,"type":10,"textureOffset":0,"y":-310}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9380,"safeId":-1,"rotation":0,"graphic":true,"height":871,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":32,"physic":false,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":25,"y":-1,"length":25.019992006393608},{"x":66,"y":0,"length":66},{"x":114,"y":6,"length":114.15778554264269},{"x":150,"y":16,"length":150.8509197850646},{"x":186,"y":29,"length":188.2471779336944},{"x":221,"y":45,"length":225.53491969094276},{"x":260,"y":70,"length":269.2582403567252},{"x":286,"y":90,"length":299.82661656364},{"x":319,"y":118,"length":340.1249770305027},{"x":344,"y":146,"length":373.7004147709767},{"x":368,"y":178,"length":408.78845384868686},{"x":390,"y":211,"length":443.4196657794961},{"x":410,"y":251,"length":480.72965375562177},{"x":426,"y":292,"length":516.468779308101},{"x":435,"y":330,"length":546.0082416960389},{"x":441,"y":367,"length":573.7333875590648},{"x":444,"y":410,"length":604.3475821081772},{"x":443,"y":450,"length":631.4657552076756},{"x":440,"y":484,"length":654.1070248820142},{"x":433,"y":518,"length":675.1392448969324},{"x":424,"y":548,"length":692.8780556490442},{"x":414,"y":579,"length":711.7843774627257},{"x":397,"y":614,"length":731.1668756173244},{"x":377,"y":650,"length":751.4179928641581},{"x":354,"y":681,"length":767.5135177962666},{"x":323,"y":713,"length":782.7502794633804},{"x":292,"y":744,"length":799.2496481075234},{"x":250,"y":774,"length":813.3732230655248},{"x":196,"y":804,"length":827.5457691270012},{"x":151,"y":820,"length":833.7871431006837},{"x":105,"y":832,"length":838.5994276172623},{"x":65,"y":838,"length":840.5171027409258},{"x":26,"y":838,"length":838.4032442685321},{"x":-20,"y":837,"length":837.2389145279858},{"x":-61,"y":832,"length":834.2331808313548},{"x":-97,"y":824,"length":829.689701032862},{"x":-133,"y":811,"length":821.8333164334481},{"x":-162,"y":797,"length":813.2976085050293},{"x":-189,"y":782,"length":804.5153820779315},{"x":-213,"y":768,"length":796.9899622956365},{"x":-242,"y":744,"length":782.368199762746},{"x":-268,"y":721,"length":769.197633901717},{"x":-287,"y":703,"length":759.3273338949415},{"x":-309,"y":676,"length":743.2745118729688},{"x":-336,"y":639,"length":721.9535996170391},{"x":-358,"y":599,"length":697.8287755603089},{"x":-374,"y":562,"length":675.0703667026127},{"x":-383,"y":529,"length":653.0926427391446},{"x":-392,"y":481,"length":620.5038275466155},{"x":-397,"y":440,"length":592.6288889347194},{"x":-397,"y":399,"length":562.8587744718918},{"x":-393,"y":362,"length":534.3154498982788},{"x":-387,"y":327,"length":506.6537279049667},{"x":-376,"y":285,"length":471.80610424198625},{"x":-364,"y":251,"length":442.1504268911204},{"x":-350,"y":224,"length":415.54301823036326},{"x":-331,"y":193,"length":383.15793088490284},{"x":-312,"y":164,"length":352.4769496009633},{"x":-291,"y":139,"length":322.49341078539885},{"x":-266,"y":113,"length":289.0069203323685},{"x":-239,"y":90,"length":255.38402455909414},{"x":-207,"y":67,"length":217.57297626313797},{"x":-164,"y":40,"length":168.80758276807353},{"x":-132,"y":26,"length":134.5362404707371},{"x":-99,"y":15,"length":100.12991560967181},{"x":-72,"y":7,"length":72.3394774656273},{"x":-41,"y":2,"length":41.048751503547585},{"x":-20,"y":0,"length":20},{"x":-1,"y":0,"length":1}],"smoothing":true,"id":-1,"repeatTexture":true,"width":873,"type":10,"textureOffset":0,"y":-882}}],[{"className":"Dec36","params":{"scaleX":1,"rotation":-179.99999999999994,"scaleY":-0.9550928760971626,"x":7681,"y":-287,"width":75.25,"height":233.95}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":420,"y":-750,"width":9.3,"height":128.35}},{"className":"Sign1","params":{"x":420,"rotation":-179.99999999999994,"y":-820,"width":68.8,"height":69.8}},{"className":"SignPillar","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":6173,"y":-900,"width":9.3,"height":128.35}},{"className":"Sign1","params":{"x":6100,"rotation":-90,"y":-900,"width":68.8,"height":69.8}},{"className":"Dec36","params":{"scaleX":1,"rotation":-179.99999999999994,"scaleY":-0.9550928760971626,"x":8111,"y":-287,"width":75.25,"height":233.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-156,"scaleY":-1,"x":8440,"y":-158,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-156,"scaleY":-1,"x":8810,"y":22,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-156,"scaleY":-1,"x":9200,"y":212,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":141,"scaleY":-1,"x":9631,"y":194,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":162,"scaleY":-1,"x":10036,"y":-390,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":162,"scaleY":-1,"x":10536,"y":-576,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-144,"scaleY":-1,"x":10889.45,"y":-531.3,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-93,"scaleY":-1,"x":11060,"y":-251,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-45,"scaleY":1,"x":10942,"y":52,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":10685,"y":172,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":10390,"y":178,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":10206,"y":18,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":141,"scaleY":-1,"x":9121,"y":-826,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":-144,"scaleY":-1,"x":9681,"y":-843,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":63,"scaleY":1,"x":9019,"y":-235,"width":75.25,"height":244.95}},{"className":"Dec36","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":9421.05,"y":-18.7,"width":75.25,"height":244.95}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":4210,"y":-512,"width":9.3,"height":128.35}},{"className":"SignPillar","params":{"scaleX":1,"rotation":0,"scaleY":0.6961433580054538,"x":7900,"y":-218,"width":9.3,"height":89.3}},{"className":"SignPillar","params":{"scaleX":1,"rotation":-18,"scaleY":0.7039345539540319,"x":10362,"y":-436,"width":9.3,"height":90.35}},{"className":"Dec60","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":470,"y":-860,"width":640,"height":256}},{"className":"Dec58","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":1010,"y":-860,"width":256,"height":256}}],[{"className":"Tnt1","params":{"x":1390,"safeId":-10,"rotation":0,"y":-610,"count":1,"radius":1,"physic":false,"stones":false,"impulse":1,"id":1,"width":53.2,"height":53.2}},{"className":"BoostE","params":{"x":9890,"safeId":-1,"rotation":0,"y":-340,"time":1.2,"width":64.1,"force":6000,"height":64.1}}],[{"className":"Dec37","params":{"scaleX":1,"rotation":-179.99999999999994,"scaleY":-0.925280199252802,"x":7682,"y":-284,"width":99.95,"height":260.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-179.99999999999994,"scaleY":-0.925280199252802,"x":8112,"y":-284,"width":99.95,"height":260.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-156,"scaleY":-1,"x":8440,"y":-156,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-156,"scaleY":-1,"x":8810,"y":24,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-156,"scaleY":-1,"x":9200,"y":214,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":141,"scaleY":-1,"x":9633,"y":195,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":162,"scaleY":-1,"x":10038,"y":-388,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":162,"scaleY":-1,"x":10538,"y":-574,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-144,"scaleY":-1,"x":10889.1,"y":-528.3,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-93,"scaleY":-1,"x":11058,"y":-250,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-45,"scaleY":1,"x":10940,"y":53,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":10683,"y":173,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":10388,"y":179,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-90,"scaleY":1,"x":10207,"y":20,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":141,"scaleY":-1,"x":9123,"y":-825,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":-144,"scaleY":-1,"x":9681,"y":-841,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":63,"scaleY":1,"x":9020,"y":-233,"width":99.95,"height":281.05}},{"className":"Dec37","params":{"scaleX":1,"rotation":0,"scaleY":1,"x":9424.1,"y":-18.05,"width":99.95,"height":281.05}}],[{"className":"PlayerWP","params":{"x":640,"rotation":0,"y":-770,"width":64,"height":32}},{"className":"SafePointE","params":{"x":4210,"rotation":0,"y":-580,"id":0,"width":128,"height":2292}},{"className":"SafePointE","params":{"x":7900,"rotation":0,"y":-270,"id":0,"width":128,"height":222}},{"className":"SafePointE","params":{"x":10350,"rotation":0,"y":-490,"id":0,"width":128,"height":286}}],[{"className":"PivotJointE","params":{"x":1518,"safeId":-10,"rotation":6,"graphic":0,"id":-1,"y":-646,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":1687,"safeId":-10,"rotation":6,"graphic":0,"id":-1,"y":-629,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":1856,"safeId":-10,"rotation":6,"graphic":0,"id":-1,"y":-611,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2025,"safeId":-10,"rotation":6,"graphic":0,"id":-1,"y":-593,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2195,"safeId":-10,"rotation":6,"graphic":0,"id":-1,"y":-575,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2364,"safeId":-10,"rotation":6,"graphic":0,"id":-1,"y":-558,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2533,"safeId":-10,"rotation":6,"graphic":0,"id":-1,"y":-540,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2702,"safeId":-10,"rotation":6,"graphic":0,"id":-1,"y":-522,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":1354,"safeId":-10,"rotation":6,"graphic":0,"id":1,"y":-664,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2871,"safeId":-10,"rotation":6,"graphic":0,"id":-1,"y":-504,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3040,"safeId":-10,"rotation":6,"graphic":0,"id":-1,"y":-486,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3209,"safeId":-10,"rotation":6,"graphic":0,"id":-1,"y":-469,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3373,"safeId":-10,"rotation":6,"graphic":0,"id":-1,"y":-451,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":3537,"safeId":-10,"rotation":6,"graphic":0,"id":-1,"y":-434,"width":17,"height":17}},{"className":"ToggleE","params":{"x":1060,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":1,"off":false,"y":-830,"width":64,"rotation":0,"height":1291}},{"className":"MotorJointE","params":{"x":5812,"safeId":-1,"rotation":0,"graphic":0,"y":268,"useWeld":false,"time":0,"snd":false,"id":2,"rate":-100,"width":17,"height":17}},{"className":"ToggleE","params":{"x":5200,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":2,"off":false,"y":-920,"width":64,"rotation":0,"height":1076}},{"className":"MotorJointE","params":{"x":10373,"safeId":-1,"rotation":0,"graphic":1,"y":18,"useWeld":false,"time":0,"snd":false,"id":3,"rate":180,"width":17,"height":17}},{"className":"ToggleE","params":{"x":8160,"safeId":-1,"sndId":-1,"hint":-1,"id_off":82,"id":3,"off":false,"y":-270,"width":64,"rotation":0,"height":881}},{"className":"MotorJointE","params":{"x":9404,"safeId":-1,"rotation":0,"graphic":1,"y":-464,"useWeld":false,"time":0,"snd":false,"id":4,"rate":-95,"width":17,"height":17}},{"className":"ToggleE","params":{"x":8624,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":4,"off":false,"y":-67,"width":64,"rotation":0,"height":613}},{"className":"ToggleE","params":{"x":1780,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":80,"off":false,"y":-820,"width":64,"rotation":0,"height":1470}},{"className":"ToggleE","params":{"x":5960,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":10,"width":807,"rotation":0,"height":146}},{"className":"ToggleE","params":{"x":9380,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-1010,"width":807,"rotation":0,"height":146}},{"className":"ToggleE","params":{"x":10920,"safeId":-1,"sndId":0,"hint":-1,"id_off":4,"id":0,"off":false,"y":-480,"width":200,"rotation":0,"height":41}},{"className":"ToggleE","params":{"x":10380,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":3,"off":false,"y":-730,"width":64,"rotation":0,"height":881}},{"className":"ToggleE","params":{"x":4320,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":81,"off":false,"y":-760,"width":64,"rotation":0,"height":821}},{"className":"ToggleE","params":{"x":4430,"safeId":-1,"sndId":-1,"hint":-1,"id_off":1,"id":82,"off":false,"y":-860,"width":64,"rotation":0,"height":779}},{"className":"ToggleE","params":{"x":7700,"safeId":-1,"sndId":-1,"hint":-1,"id_off":2,"id":-2,"off":false,"y":-270,"width":24,"rotation":0,"height":159}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map9.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map9.json new file mode 100644 index 000000000..5332116af --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/map9.json @@ -0,0 +1 @@ +{"settings":{"theme":7,"gravityY":500,"countdown":0,"prizes":"39,45,61"},"layers":[[{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":4150,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1130,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":1930,"y":0,"length":1930},{"x":1930,"y":1565,"length":2484.7786621749633},{"x":0,"y":1565,"length":1565}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2870,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-870,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":7,"rem":true,"vertices":[{"x":0,"y":0,"length":0},{"x":940,"y":0,"length":940},{"x":925,"y":1255,"length":1559.0542004689894},{"x":-5,"y":1250,"length":1250.0099999600004}],"line":true,"id":-1,"physic":false}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":10,"x":2630,"viscosity":1.5,"rotation":0,"y":-870,"vertices":[{"x":0,"y":0,"length":0},{"x":1525,"y":0,"length":1525},{"x":1520,"y":1325,"length":2016.438692348468},{"x":-5,"y":1325,"length":1325.0094339286795}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":8510,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-330,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":5,"rem":false,"vertices":[{"x":0,"y":0,"length":0},{"x":180,"y":95,"length":203.5313243704762},{"x":1390,"y":-205,"length":1405.0355867379303},{"x":1380,"y":-175,"length":1391.0517603597646},{"x":175,"y":130,"length":218.0022935659164},{"x":0,"y":30,"length":30}],"line":true,"id":6,"physic":false}},{"className":"frg.game.editor.objects::FinishShaper","params":{"x":8600,"rotation":0,"y":-240,"vertices":[{"x":100,"y":30,"length":104.4030650891055},{"x":1275,"y":-280,"length":1305.3830855346641},{"x":1045,"y":600,"length":1205},{"x":785,"y":525,"length":944.3781022450701},{"x":780,"y":450,"length":900.4998611882181},{"x":765,"y":370,"length":849.7793831342344},{"x":735,"y":305,"length":795.7700672933106},{"x":680,"y":240,"length":721.1102550927978},{"x":615,"y":180,"length":640.8002808988149},{"x":570,"y":140,"length":586.9412236331675},{"x":490,"y":100,"length":500.0999900019995},{"x":400,"y":60,"length":404.4749683231337},{"x":305,"y":35,"length":307.001628660175},{"x":220,"y":25,"length":221.41589825484527}]}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9330,"safeId":-1,"rotation":0,"graphic":true,"height":17,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":true,"stretchTexture":false,"vertices":[{"x":8,"y":2,"length":8.246211251235321},{"x":576,"y":3,"length":576.0078124470189}],"smoothing":true,"id":-1,"repeatTexture":true,"width":581,"type":7,"textureOffset":0,"y":-1040}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9330,"safeId":-1,"rotation":0,"graphic":true,"height":259.7,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":true,"stretchTexture":false,"vertices":[{"x":4,"y":0,"length":4},{"x":575,"y":-245,"length":625.0199996800102}],"smoothing":true,"id":-1,"repeatTexture":true,"width":584,"type":7,"textureOffset":0,"y":-1040}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":9330,"safeId":-1,"rotation":0,"graphic":true,"height":607,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":16,"physic":true,"stretchTexture":false,"vertices":[{"x":3,"y":-5,"length":5.830951894845301},{"x":585,"y":-599,"length":837.2729542986564}],"smoothing":true,"id":-1,"repeatTexture":true,"width":595,"type":7,"textureOffset":0,"y":-1040}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2940,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-800,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-930,"y":-420,"length":1020.4410811016969},{"x":-85,"y":-305,"length":316.62280397975127},{"x":-85,"y":-250,"length":264.0549185302179},{"x":-25,"y":-250,"length":251.24689052802225},{"x":-45,"y":1235,"length":1235.8195661179668},{"x":-1000,"y":1235,"length":1589.0956547672013},{"x":-1965,"y":1240,"length":2323.5371742238167},{"x":-1970,"y":625,"length":2066.7667986495235}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1504,"safeId":-10,"rotation":90.00000000000006,"graphic":true,"isWheel":false,"y":-235,"plr":true,"density":1,"isStatic":true,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":-980,"y":-520,"length":1109.414259868693},{"x":103,"y":565,"length":574.3117620247734},{"x":56,"y":617,"length":619.5361167841629},{"x":2,"y":558,"length":558.0035842178794},{"x":4,"y":526,"length":526.0152089055981},{"x":-9,"y":509,"length":509.0795615618447},{"x":-43,"y":509,"length":510.8130773580489},{"x":-52,"y":503,"length":505.6807293144559},{"x":-47,"y":473,"length":475.32935949718063},{"x":-63,"y":457,"length":461.32201334859366},{"x":-97,"y":458,"length":468.1591609698565},{"x":-104,"y":450,"length":461.86145108679506},{"x":-102,"y":419,"length":431.2365939945264},{"x":-116,"y":405,"length":421.28493920386},{"x":-149,"y":405,"length":431.539105991566},{"x":-157,"y":398,"length":427.8469352467071},{"x":-154,"y":366,"length":397.0793371607241},{"x":-168,"y":351,"length":389.13365313218543},{"x":-204,"y":350,"length":405.1123301011708},{"x":-210,"y":345,"length":403.8873605350878},{"x":-207,"y":312,"length":374.42355695121535},{"x":-220,"y":299,"length":371.21557079411417},{"x":-258,"y":299,"length":394.9240433298535},{"x":-265,"y":292,"length":394.32093527988087},{"x":-260,"y":261,"length":368.4033116029225},{"x":-274,"y":246,"length":368.2281901212888},{"x":-308,"y":246,"length":394.1826987578222},{"x":-316,"y":238,"length":395.60080889704966},{"x":-314,"y":206,"length":375.54227458436685},{"x":-328,"y":192,"length":380.0631526470305},{"x":-363,"y":192,"length":410.6494855713325},{"x":-369,"y":185,"length":412.77839090727605},{"x":-366,"y":153,"length":396.69257618463195},{"x":-381,"y":139,"length":405.56380509113484},{"x":-415,"y":139,"length":437.6596851436056},{"x":-422,"y":133,"length":442.4624277834221},{"x":-418,"y":99,"length":429.563732174866},{"x":-433,"y":87,"length":441.65371050179124},{"x":-469,"y":87,"length":477.0010482168776},{"x":-475,"y":79,"length":481.5246618814035},{"x":-472,"y":48,"length":474.4344001018476},{"x":-486,"y":35,"length":487.25865820937446},{"x":-521,"y":35,"length":522.1743004016954},{"x":-530,"y":27,"length":530.687290219014},{"x":-525,"y":-3,"length":525.0085713586017},{"x":-540,"y":-18,"length":540.2999167129309},{"x":-575,"y":-17,"length":575.251249455401},{"x":-582,"y":-25,"length":582.5366941232114},{"x":-579,"y":-56,"length":581.7018136468203},{"x":-593,"y":-70,"length":597.117241419137},{"x":-626,"y":-70,"length":629.9015796138315},{"x":-635,"y":-77,"length":639.6514675977849},{"x":-631,"y":-109,"length":640.3452193934144},{"x":-646,"y":-124,"length":657.7932805980919},{"x":-681,"y":-124,"length":692.1972262296347},{"x":-688,"y":-130,"length":700.1742640228931},{"x":-685,"y":-163,"length":704.1264091056378},{"x":-698,"y":-176,"length":719.8472060097198},{"x":-734,"y":-176,"length":754.8059353237758},{"x":-741,"y":-183,"length":763.2627332707918},{"x":-737,"y":-215,"length":767.7200010420465},{"x":-751,"y":-230,"length":785.4304552282143},{"x":-786,"y":-229,"length":818.6800351785794},{"x":-794,"y":-237,"length":828.6163165180855},{"x":-791,"y":-269,"length":835.4890783247857},{"x":-805,"y":-283,"length":853.2959627233683},{"x":-840,"y":-283,"length":886.3909972467004},{"x":-847,"y":-290,"length":895.2703502294712},{"x":-843,"y":-322,"length":902.4040115159063},{"x":-858,"y":-336,"length":921.4445181344344},{"x":-893,"y":-336,"length":954.1200134155032},{"x":-900,"y":-342,"length":962.7896966627759},{"x":-896,"y":-375,"length":971.3089106973126},{"x":-911,"y":-389,"length":990.576599763996},{"x":-946,"y":-388,"length":1022.477383612958},{"x":-953,"y":-396,"length":1032.0004844960104},{"x":-950,"y":-427,"length":1041.551246938911},{"x":-965,"y":-442,"length":1061.408969247952},{"x":-1000,"y":-442,"length":1093.3270325021695},{"x":-1006,"y":-448,"length":1101.2447502712555},{"x":-1002,"y":-480,"length":1111.037353107446}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1272,"safeId":-10,"rotation":135,"graphic":true,"isWheel":false,"y":-623,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":-100,"y":5,"length":100.12492197250393},{"x":175,"y":5,"length":175.07141400011596},{"x":100,"y":100,"length":141.4213562373095},{"x":70,"y":100,"length":122.06555615733703},{"x":70,"y":285,"length":293.47061181658376},{"x":35,"y":285,"length":287.14108030722457},{"x":-170,"y":415,"length":448.4696199298231},{"x":-144,"y":370,"length":397.0340035815572},{"x":-130,"y":336,"length":360.2721193764513},{"x":-116,"y":300,"length":321.645767887594},{"x":-112,"y":264,"length":286.77517326295873},{"x":-116,"y":227,"length":254.9215565620138},{"x":-125,"y":184,"length":222.44325119005072},{"x":-138,"y":140,"length":196.5807722031837},{"x":-151,"y":114,"length":189.20095137181525},{"x":30,"y":250,"length":251.79356624028344},{"x":35,"y":100,"length":105.94810050208545},{"x":0,"y":100,"length":100}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1349,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1051,"plr":false,"density":0.3,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":249,"y":0,"length":249},{"x":246,"y":43,"length":249.7298540423231},{"x":234,"y":85,"length":248.95983611819798},{"x":216,"y":124,"length":249.06224121692955},{"x":191,"y":160,"length":249.16059078433733},{"x":160,"y":191,"length":249.16059078433733},{"x":125,"y":216,"length":249.56161563830284},{"x":85,"y":234,"length":248.95983611819798},{"x":43,"y":246,"length":249.7298540423231},{"x":9,"y":248,"length":248.16325271885037},{"x":-14,"y":246,"length":246.3980519403512},{"x":-14,"y":198,"length":198.4943324127921},{"x":4,"y":198,"length":198.04039991880444},{"x":28,"y":197,"length":198.97989848223364},{"x":52,"y":192,"length":198.9170681465017},{"x":79,"y":183,"length":199.32385707686876},{"x":106,"y":169,"length":199.49185447030163},{"x":128,"y":153,"length":199.4818287463798},{"x":149,"y":132,"length":199.06029237394384},{"x":165,"y":110,"length":198.3053201505194},{"x":180,"y":84,"length":198.63534428696218},{"x":192,"y":51,"length":198.65799757371965},{"x":197,"y":18,"length":197.82062582046393},{"x":197,"y":0,"length":197}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1349,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1051,"plr":false,"density":0.3,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":250,"y":-5,"length":250.04999500099976},{"x":249,"y":13,"length":249.33912649241395},{"x":198,"y":10,"length":198.25236442474022},{"x":198,"y":-6,"length":198.09088823063013},{"x":195,"y":-37,"length":198.47921805569467},{"x":188,"y":-62,"length":197.9595918363139},{"x":179,"y":-85,"length":198.15650380444242},{"x":166,"y":-109,"length":198.58751219550538},{"x":148,"y":-131,"length":197.6486782146544},{"x":126,"y":-154,"length":198.97738564972653},{"x":99,"y":-171,"length":197.59048560090133},{"x":75,"y":-184,"length":198.69826370655582},{"x":52,"y":-192,"length":198.9170681465017},{"x":28,"y":-197,"length":198.97989848223364},{"x":0,"y":-200,"length":200},{"x":0,"y":-250,"length":250},{"x":43,"y":-246,"length":249.7298540423231},{"x":85,"y":-234,"length":248.95983611819798},{"x":125,"y":-216,"length":249.56161563830284},{"x":160,"y":-191,"length":249.16059078433733},{"x":191,"y":-160,"length":249.16059078433733},{"x":216,"y":-125,"length":249.56161563830284},{"x":234,"y":-85,"length":248.95983611819798},{"x":246,"y":-43,"length":249.7298540423231}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1349,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1051,"plr":false,"density":0.3,"isStatic":false,"ignore":false,"layer":8,"rem":true,"vertices":[{"x":10,"y":-199,"length":199.25109786397664},{"x":-10,"y":-199,"length":199.25109786397664},{"x":-31,"y":-197,"length":199.42417105255822},{"x":-58,"y":-192,"length":200.5691900566984},{"x":-87,"y":-180,"length":199.92248497855363},{"x":-114,"y":-164,"length":199.7298175035465},{"x":-136,"y":-147,"length":200.26232796010336},{"x":-158,"y":-123,"length":200.23236501624805},{"x":-174,"y":-97,"length":199.21094347449892},{"x":-190,"y":-64,"length":200.48940121612415},{"x":-197,"y":-35,"length":200.08498194517247},{"x":-199,"y":0,"length":199},{"x":-250,"y":0,"length":250},{"x":-246,"y":-43,"length":249.7298540423231},{"x":-234,"y":-85,"length":248.95983611819798},{"x":-216,"y":-125,"length":249.56161563830284},{"x":-191,"y":-160,"length":249.16059078433733},{"x":-160,"y":-191,"length":249.16059078433733},{"x":-125,"y":-216,"length":249.56161563830284},{"x":-85,"y":-234,"length":248.95983611819798},{"x":-43,"y":-246,"length":249.7298540423231},{"x":-11,"y":-248,"length":248.2438317461282},{"x":14,"y":-248,"length":248.39484696748443}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":7747,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-669,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":9,"rem":false,"vertices":[{"x":250,"y":0,"length":250},{"x":246,"y":43,"length":249.7298540423231},{"x":234,"y":85,"length":248.95983611819798},{"x":216,"y":124,"length":249.06224121692955},{"x":191,"y":160,"length":249.16059078433733},{"x":160,"y":191,"length":249.16059078433733},{"x":125,"y":216,"length":249.56161563830284},{"x":85,"y":234,"length":248.95983611819798},{"x":43,"y":246,"length":249.7298540423231},{"x":0,"y":250,"length":250},{"x":-43,"y":246,"length":249.7298540423231},{"x":-85,"y":234,"length":248.95983611819798},{"x":-124,"y":216,"length":249.06224121692955},{"x":-160,"y":191,"length":249.16059078433733},{"x":-191,"y":160,"length":249.16059078433733},{"x":-216,"y":124,"length":249.06224121692955},{"x":-234,"y":85,"length":248.95983611819798},{"x":-246,"y":43,"length":249.7298540423231},{"x":-250,"y":0,"length":250},{"x":-246,"y":-43,"length":249.7298540423231},{"x":-234,"y":-85,"length":248.95983611819798},{"x":-216,"y":-125,"length":249.56161563830284},{"x":-191,"y":-160,"length":249.16059078433733},{"x":-160,"y":-191,"length":249.16059078433733},{"x":-125,"y":-216,"length":249.56161563830284},{"x":-85,"y":-234,"length":248.95983611819798},{"x":-43,"y":-246,"length":249.7298540423231},{"x":0,"y":-250,"length":250},{"x":43,"y":-246,"length":249.7298540423231},{"x":85,"y":-234,"length":248.95983611819798},{"x":125,"y":-216,"length":249.56161563830284},{"x":160,"y":-191,"length":249.16059078433733},{"x":191,"y":-160,"length":249.16059078433733},{"x":216,"y":-125,"length":249.56161563830284},{"x":234,"y":-85,"length":248.95983611819798},{"x":246,"y":-43,"length":249.7298540423231}],"line":true,"id":5,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1349,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-1051,"plr":false,"density":0.3,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":-200,"y":-12,"length":200.3596765818911},{"x":-198,"y":8,"length":198.16155025635018},{"x":-197,"y":30,"length":199.27117202445515},{"x":-189,"y":62,"length":198.90952717253137},{"x":-178,"y":90,"length":199.45926902503177},{"x":-161,"y":117,"length":199.0226117806718},{"x":-141,"y":141,"length":199.4041122946064},{"x":-119,"y":160,"length":199.40160480798542},{"x":-97,"y":174,"length":199.21094347449892},{"x":-69,"y":187,"length":199.32385707686876},{"x":-41,"y":195,"length":199.2636444512646},{"x":-22,"y":198,"length":199.21847303902317},{"x":-6,"y":198,"length":198.09088823063013},{"x":16,"y":198,"length":198.6454127333425},{"x":16,"y":246,"length":246.51977608297474},{"x":-10,"y":248,"length":248.20153101864622},{"x":-43,"y":246,"length":249.7298540423231},{"x":-85,"y":234,"length":248.95983611819798},{"x":-124,"y":216,"length":249.06224121692955},{"x":-160,"y":191,"length":249.16059078433733},{"x":-191,"y":160,"length":249.16059078433733},{"x":-216,"y":124,"length":249.06224121692955},{"x":-234,"y":85,"length":248.95983611819798},{"x":-246,"y":43,"length":249.7298540423231},{"x":-249,"y":9,"length":249.1625975141534},{"x":-249,"y":-12,"length":249.28898892650673}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":420,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":10433,"textureOffset":0,"height":88,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":true,"physic":false,"vertices":[{"x":390,"y":-5,"length":390.03204996512784},{"x":10810,"y":15,"length":10810.010407025518}],"line":true,"shape":true,"isRoad":true,"smoothing":true,"camera":false}},{"className":"frg.game.editor.objects::GroundPather","params":{"x":660,"y":240,"direction":90,"snapToGrid":true,"cameraOffsetY":100,"textureMode":true,"straightSides":true,"originOffsetRatio":0,"stretchTexture":false,"repeatTexture":true,"width":9747.1,"textureOffset":0,"height":1541.15,"rotation":0,"wireframe":false,"thick":128,"lineId":0,"directed":false,"physic":false,"vertices":[{"x":-130,"y":-40,"length":136.01470508735443},{"x":270,"y":-345,"length":438.092455995307},{"x":1280,"y":-1270,"length":1803.1361568112377},{"x":3555,"y":-1255,"length":3770.0198938467156},{"x":4805,"y":-1170,"length":4945.394321992939},{"x":5320,"y":-1405,"length":5502.401748327725},{"x":6290,"y":-990,"length":6367.432763681137},{"x":7025,"y":-690,"length":7058.8047855143295},{"x":7255,"y":-305,"length":7261.408265619005},{"x":7490,"y":-25,"length":7490.041722180191},{"x":8025,"y":10,"length":8025.006230527177},{"x":9590,"y":65,"length":9590.220279013407}],"line":false,"shape":false,"isRoad":false,"smoothing":true,"camera":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1151,"safeId":-10,"rotation":135,"graphic":true,"isWheel":true,"y":-523,"plr":true,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":60,"y":0,"length":60},{"x":82,"y":20,"length":84.40379138403677},{"x":76,"y":36,"length":84.09518416651456},{"x":46,"y":38,"length":59.665735560705194},{"x":37,"y":46,"length":59.033888572581766},{"x":35,"y":77,"length":84.581321815162},{"x":18,"y":82,"length":83.95236744726142},{"x":-1,"y":59,"length":59.00847396772772},{"x":-13,"y":58,"length":59.43904440685432},{"x":-38,"y":75,"length":84.07734534343957},{"x":-52,"y":66,"length":84.02380615040002},{"x":-47,"y":36,"length":59.20304046246274},{"x":-54,"y":26,"length":59.93329625508679},{"x":-83,"y":17,"length":84.72307831990054},{"x":-85,"y":0,"length":85},{"x":-58,"y":-14,"length":59.665735560705194},{"x":-54,"y":-26,"length":59.93329625508679},{"x":-65,"y":-54,"length":84.50443775329198},{"x":-52,"y":-66,"length":84.02380615040002},{"x":-25,"y":-54,"length":59.50630218724736},{"x":-13,"y":-58,"length":59.43904440685432},{"x":1,"y":-84,"length":84.00595217006948},{"x":18,"y":-82,"length":83.95236744726142},{"x":26,"y":-53,"length":59.033888572581766},{"x":37,"y":-46,"length":59.033888572581766},{"x":67,"y":-51,"length":84.20213774008353},{"x":76,"y":-36,"length":84.09518416651456},{"x":58,"y":-12,"length":59.22837157984339}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":1312,"safeId":-10,"rotation":135,"graphic":true,"isWheel":true,"y":-684,"plr":false,"density":1,"isStatic":false,"ignore":false,"layer":6,"rem":true,"vertices":[{"x":60,"y":0,"length":60},{"x":82,"y":20,"length":84.40379138403677},{"x":76,"y":36,"length":84.09518416651456},{"x":46,"y":38,"length":59.665735560705194},{"x":37,"y":46,"length":59.033888572581766},{"x":35,"y":77,"length":84.581321815162},{"x":18,"y":82,"length":83.95236744726142},{"x":-1,"y":59,"length":59.00847396772772},{"x":-13,"y":58,"length":59.43904440685432},{"x":-38,"y":75,"length":84.07734534343957},{"x":-52,"y":66,"length":84.02380615040002},{"x":-47,"y":36,"length":59.20304046246274},{"x":-54,"y":26,"length":59.93329625508679},{"x":-83,"y":17,"length":84.72307831990054},{"x":-85,"y":0,"length":85},{"x":-58,"y":-14,"length":59.665735560705194},{"x":-54,"y":-26,"length":59.93329625508679},{"x":-65,"y":-54,"length":84.50443775329198},{"x":-52,"y":-66,"length":84.02380615040002},{"x":-25,"y":-54,"length":59.50630218724736},{"x":-13,"y":-58,"length":59.43904440685432},{"x":1,"y":-84,"length":84.00595217006948},{"x":18,"y":-82,"length":83.95236744726142},{"x":26,"y":-53,"length":59.033888572581766},{"x":37,"y":-46,"length":59.033888572581766},{"x":67,"y":-51,"length":84.20213774008353},{"x":76,"y":-36,"length":84.09518416651456},{"x":58,"y":-12,"length":59.22837157984339}],"line":true,"id":80,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":2002,"safeId":-1,"rotation":0,"graphic":true,"height":174.5,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":0,"y":0,"length":0},{"x":849,"y":111,"length":856.2254376039058}],"smoothing":true,"id":-1,"repeatTexture":true,"width":862,"type":5,"textureOffset":0,"y":-1226}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":9894,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-783,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":50,"y":-1865,"length":1865.6701208949025},{"x":530,"y":-965,"length":1100.9654853808997},{"x":100,"y":-1040,"length":1044.796630928718},{"x":100,"y":105,"length":145},{"x":305,"y":1025,"length":1069.4157283301943},{"x":-235,"y":1020,"length":1046.7210707729162},{"x":0,"y":100,"length":100},{"x":0,"y":-1035,"length":1035},{"x":-435,"y":-985,"length":1076.7776000641916}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2863,"safeId":-1,"rotation":-90,"graphic":true,"isWheel":false,"y":-1060,"plr":false,"density":0.2,"isStatic":false,"ignore":false,"layer":8,"rem":false,"vertices":[{"x":0,"y":0,"length":0},{"x":940,"y":0,"length":940},{"x":940,"y":45,"length":941.0765112359356},{"x":0,"y":45,"length":45}],"line":true,"id":1,"physic":true}},{"className":"frg.game.editor.objects::WaterShaper","params":{"density":10,"x":4210,"viscosity":1.5,"rotation":0,"y":-1130,"vertices":[{"x":0,"y":0,"length":0},{"x":1525,"y":0,"length":1525},{"x":1530,"y":1675,"length":2268.595380406123},{"x":5,"y":1675,"length":1675.007462669943}],"id":-1,"bg":false,"sf":true}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":2940,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-800,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":835,"y":-265,"length":876.0422364247057},{"x":900,"y":-265,"length":938.2030697029295},{"x":900,"y":-320,"length":955.1963149007643},{"x":1285,"y":-380,"length":1340.0093283257397},{"x":1285,"y":1240,"length":1785.7281428033775},{"x":835,"y":1210,"length":1470.1445507160172}],"line":true,"id":-1,"physic":true}},{"className":"frg.game.editor.objects::DynamicPather","params":{"x":3332,"safeId":-1,"rotation":0,"graphic":true,"height":121.3,"snapToGrid":false,"wireframe":false,"action":0,"textureMode":true,"straightSides":true,"density":"1","isStatic":true,"originOffsetRatio":0,"shapeH":64,"physic":true,"stretchTexture":false,"vertices":[{"x":507,"y":-56,"length":510.08332652616673},{"x":890,"y":-114,"length":897.2714193598279}],"smoothing":true,"id":-1,"repeatTexture":true,"width":396,"type":5,"textureOffset":0,"y":-1066}},{"className":"frg.game.editor.objects::LandscapeShaper","params":{"x":5520,"safeId":-1,"rotation":0,"graphic":true,"isWheel":false,"y":-980,"plr":false,"density":1,"isStatic":true,"ignore":false,"layer":0,"rem":true,"vertices":[{"x":-71,"y":9,"length":71.56814934033156},{"x":-41,"y":-20,"length":45.617978911828175},{"x":7,"y":-66,"length":66.37017402418047},{"x":43,"y":-98,"length":107.01868995647442},{"x":104,"y":-139,"length":173.60011520733505},{"x":155,"y":-170,"length":230.05434140654683},{"x":199,"y":-190,"length":275.138147118861},{"x":254,"y":-213,"length":331.48906467634794},{"x":321,"y":-234,"length":397.23670525267426},{"x":389,"y":-249,"length":461.8679464955324},{"x":460,"y":-255,"length":525.9515186782903},{"x":519,"y":-255,"length":578.261186662221},{"x":594,"y":-250,"length":644.4656701485347},{"x":653,"y":-241,"length":696.053158889463},{"x":715,"y":-230,"length":751.0825520540335},{"x":771,"y":-212,"length":799.6155326155189},{"x":826,"y":-190,"length":847.5706460230911},{"x":885,"y":-162,"length":899.7049516369242},{"x":930,"y":-131,"length":939.1810262137966},{"x":985,"y":-91,"length":989.1946219020805},{"x":1034,"y":-47,"length":1035.0676306406262},{"x":1073,"y":-5,"length":1073.0116495173759},{"x":1120,"y":40,"length":1120.714058089752},{"x":1179,"y":86,"length":1182.132395292507},{"x":1233,"y":125,"length":1239.3199748249037},{"x":1293,"y":161,"length":1302.9850344497438},{"x":1355,"y":190,"length":1368.256189461608},{"x":1421,"y":215,"length":1437.1729193106862},{"x":1502,"y":230,"length":1519.50781505065},{"x":1570,"y":240,"length":1588.2380174268592},{"x":1631,"y":243,"length":1649.0027289243642},{"x":1694,"y":241,"length":1711.057275487878},{"x":1761,"y":237,"length":1776.8764729153233},{"x":1830,"y":223,"length":1843.5370894017835},{"x":1882,"y":206,"length":1893.240608058046},{"x":1936,"y":186,"length":1944.9143940029853},{"x":1993,"y":156,"length":1999.0960457166634},{"x":2041,"y":130,"length":2045.1359368022459},{"x":2086,"y":96,"length":2088.2078440615055},{"x":2361,"y":506,"length":2414.6132195446953},{"x":2361,"y":551,"length":2424.4426163553553},{"x":2341,"y":606,"length":2418.163972934838},{"x":2326,"y":658,"length":2417.279462536345},{"x":2320,"y":710,"length":2426.2110378118387},{"x":2318,"y":778,"length":2445.0783218539236},{"x":2319,"y":840,"length":2466.4470397719874},{"x":2330,"y":906,"length":2499.9471994424202},{"x":2347,"y":963,"length":2536.8835211731734},{"x":2367,"y":1015,"length":2575.4444276668055},{"x":2398,"y":1070,"length":2625.8910868503285},{"x":2439,"y":1123,"length":2685.116384814632},{"x":2491,"y":1172,"length":2752.9375219935523},{"x":2545,"y":1219,"length":2821.8763261347935},{"x":2608,"y":1256,"length":2894.6847842209004},{"x":2676,"y":1286,"length":2968.9681709307697},{"x":2746,"y":1301,"length":3038.6044494142375},{"x":2813,"y":1308,"length":3102.2303267165707},{"x":2883,"y":1310,"length":3166.6684385959957},{"x":2957,"y":1304,"length":3231.758809069761},{"x":3028,"y":1283,"length":3288.5974213941117},{"x":3103,"y":1250,"length":3345.3114952123665},{"x":3157,"y":1215,"length":3382.731736333817},{"x":3295,"y":1216,"length":3512.2188143679205},{"x":3293,"y":1266,"length":3527.9746314280665},{"x":3757,"y":1266,"length":3964.5687028982106},{"x":3757,"y":1217,"length":3949.1946014345763},{"x":4929,"y":1221,"length":5077.9801102406855},{"x":5860,"y":1247,"length":5991.210979426446},{"x":5951,"y":1412,"length":6116.219829273634},{"x":1245,"y":1415,"length":1884.741361566621},{"x":-245,"y":1410,"length":1431.127178136171},{"x":-254,"y":507,"length":567.0670154399743},{"x":-252,"y":430,"length":498.4014446206993},{"x":-243,"y":375,"length":446.8489677732287},{"x":-233,"y":321,"length":396.6484589658707},{"x":-216,"y":264,"length":341.10408968524547},{"x":-195,"y":206,"length":283.6564823867066},{"x":-173,"y":162,"length":237.00843866833097},{"x":-137,"y":97,"length":167.86303941010956},{"x":-107,"y":56,"length":120.7683733433551}],"line":true,"id":-1,"physic":true}}],[{"className":"PlankWipe0","params":{"x":7988,"safeId":-1,"active":false,"y":-523,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8576,"safeId":-1,"active":false,"y":-749,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8904,"safeId":-1,"active":false,"y":-873,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9295,"safeId":-1,"active":false,"y":-1025,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8053,"safeId":-1,"active":false,"y":-548,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8967,"safeId":-1,"active":false,"y":-900,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8118,"safeId":-1,"active":false,"y":-574,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":7923,"safeId":-1,"active":false,"y":-497,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8184,"safeId":-1,"active":false,"y":-599,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9033,"safeId":-1,"active":false,"y":-924,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8641,"safeId":-1,"active":false,"y":-774,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9099,"safeId":-1,"active":false,"y":-949,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8314,"safeId":-1,"active":false,"y":-648,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8250,"safeId":-1,"active":false,"y":-624,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9229,"safeId":-1,"active":false,"y":-1000,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8707,"safeId":-1,"active":false,"y":-799,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8379,"safeId":-1,"active":false,"y":-674,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8445,"safeId":-1,"active":false,"y":-699,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8772,"safeId":-1,"active":false,"y":-825,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8510,"safeId":-1,"active":false,"y":-724,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9164,"safeId":-1,"active":false,"y":-975,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8838,"safeId":-1,"active":false,"y":-850,"id":5,"rotation":-21,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8557,"safeId":-1,"active":false,"y":-330,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9166,"safeId":-1,"active":false,"y":-493,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9505,"safeId":-1,"active":false,"y":-582,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9910,"safeId":-1,"active":false,"y":-693,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8625,"safeId":-1,"active":false,"y":-348,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9571,"safeId":-1,"active":false,"y":-603,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8692,"safeId":-1,"active":false,"y":-367,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8760,"safeId":-1,"active":false,"y":-385,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9639,"safeId":-1,"active":false,"y":-620,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9233,"safeId":-1,"active":false,"y":-512,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9707,"safeId":-1,"active":false,"y":-638,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8895,"safeId":-1,"active":false,"y":-420,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8829,"safeId":-1,"active":false,"y":-403,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9842,"safeId":-1,"active":false,"y":-675,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9301,"safeId":-1,"active":false,"y":-529,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":8962,"safeId":-1,"active":false,"y":-438,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9030,"safeId":-1,"active":false,"y":-457,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9369,"safeId":-1,"active":false,"y":-549,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9098,"safeId":-1,"active":false,"y":-475,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9774,"safeId":-1,"active":false,"y":-657,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"PlankWipe0","params":{"x":9437,"safeId":-1,"active":false,"y":-565,"id":6,"rotation":-15,"width":85.1,"height":18}},{"className":"Dec60","params":{"scaleX":1,"rotation":8,"scaleY":1,"x":2035.95,"y":-1418.95,"width":640,"height":256}},{"className":"Dec59","params":{"scaleX":1,"rotation":8,"scaleY":1,"x":2570,"y":-1345,"width":256,"height":256}}],[{"className":"Tnt1","params":{"x":8840,"safeId":-1,"rotation":0,"y":260,"count":30,"radius":80,"physic":true,"stones":false,"impulse":3000,"id":21,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":8946,"safeId":-1,"rotation":0,"y":260,"count":30,"radius":80,"physic":true,"stones":false,"impulse":3000,"id":21,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":9050,"safeId":-1,"rotation":0,"y":260,"count":30,"radius":80,"physic":true,"stones":false,"impulse":3000,"id":21,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":9149,"safeId":-1,"rotation":0,"y":260,"count":30,"radius":80,"physic":true,"stones":false,"impulse":3000,"id":21,"width":53.2,"height":53.2}},{"className":"Tnt1","params":{"x":9250,"safeId":-1,"rotation":0,"y":260,"count":30,"radius":80,"physic":true,"stones":false,"impulse":3000,"id":21,"width":53.2,"height":53.2}}],null,[{"className":"PlayerWP","params":{"x":1353,"rotation":0,"y":-934,"width":64,"height":32}}],[{"className":"PivotJointE","params":{"x":1560,"safeId":-1,"rotation":0,"graphic":1,"id":21,"y":-1047,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":1583,"safeId":-1,"rotation":0,"graphic":1,"id":21,"y":-1047,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":1134,"safeId":-1,"rotation":0,"graphic":1,"id":21,"y":-1055,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":1111,"safeId":-1,"rotation":0,"graphic":1,"id":21,"y":-1055,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":1357,"safeId":-1,"rotation":0,"graphic":1,"id":21,"y":-843,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":1357,"safeId":-1,"rotation":0,"graphic":1,"id":21,"y":-818,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":1354,"safeId":-1,"rotation":0,"graphic":1,"id":21,"y":-1288,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":1354,"safeId":-1,"rotation":0,"graphic":1,"id":21,"y":-1263,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":1120,"safeId":-1,"rotation":-135,"graphic":0,"id":1,"y":-963,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":1263,"safeId":-1,"rotation":-135,"graphic":0,"id":1,"y":-821,"width":17,"height":17}},{"className":"frg.game.editor.objects::MoverPather","params":{"x":1163,"safeId":-1,"rotation":0,"startTime":"0","sideWait":0,"snapToGrid":true,"cycle":0,"body":true,"position":0,"y":-864,"height":605,"active":0,"vertices":[{"x":0,"y":0,"length":0},{"x":592,"y":-592,"length":837.2144289248723}],"stopOnEnd":true,"id":2,"accelDist":0,"width":605,"speed":170}},{"className":"MotorJointE","params":{"x":1163,"safeId":-1,"rotation":0,"graphic":0,"y":-864,"useWeld":false,"time":2,"snd":false,"id":38,"rate":180,"width":17,"height":17}},{"className":"ToggleE","params":{"x":1353,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":2,"off":false,"y":-874,"width":357,"rotation":0,"height":64}},{"className":"MotorJointE","params":{"x":1312,"safeId":-1,"rotation":0,"graphic":0,"y":-684,"useWeld":false,"time":4.95,"snd":false,"id":2,"rate":118,"width":17,"height":17}},{"className":"ToggleE","params":{"x":2000,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":1,"off":false,"y":-1320,"width":64,"rotation":18,"height":517}},{"className":"MotorJointE","params":{"x":7747,"safeId":-1,"rotation":0,"graphic":0,"y":-669,"useWeld":false,"time":4,"snd":false,"id":5,"rate":-40,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8282,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-635,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9262,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-1011,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9065,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-936,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":7891,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-484,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8346,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-660,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8216,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-610,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9130,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-961,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8542,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-736,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8608,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-761,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8739,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-811,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8674,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-785,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8870,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-861,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8020,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-535,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8934,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-886,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8477,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-710,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8086,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-560,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":7956,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-509,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9196,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-986,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8151,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-585,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9000,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-911,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9327,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-1037,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8804,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-836,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8412,"safeId":-1,"rotation":-21,"graphic":0,"id":-1,"y":-685,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8862,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-411,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9876,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-682,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9672,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-628,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8928,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-429,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8793,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-393,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9739,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-646,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9131,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-484,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9199,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-502,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9334,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-538,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9267,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-518,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9470,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-574,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8591,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-339,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9536,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-592,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9063,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-465,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8659,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-356,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8524,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-320,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9807,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-664,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8726,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-375,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9605,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-610,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9943,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-701,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":9402,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-556,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":8996,"safeId":-1,"rotation":-15,"graphic":0,"id":-1,"y":-447,"width":17,"height":17}},{"className":"ToggleE","params":{"x":6760,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":5,"off":false,"y":-1430,"width":64,"rotation":0,"height":4533}},{"className":"ToggleE","params":{"x":9220,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":21,"off":false,"y":240,"width":64,"rotation":0,"height":1153}},{"className":"PivotJointE","params":{"x":2898,"safeId":-1,"rotation":0,"graphic":0,"id":-1,"y":-1066,"width":17,"height":17}},{"className":"PivotJointE","params":{"x":2890,"safeId":-1,"rotation":0,"graphic":0,"id":9,"y":-1940,"width":17,"height":17}},{"className":"ToggleE","params":{"x":2420,"safeId":-1,"sndId":-1,"hint":-1,"id_off":-1,"id":9,"off":false,"y":-1470,"width":64,"rotation":0,"height":1245}},{"className":"ToggleE","params":{"x":3280,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":80,"off":false,"y":-1230,"width":64,"rotation":0,"height":2224}},{"className":"ToggleE","params":{"x":5920,"safeId":-1,"sndId":0,"hint":-1,"id_off":1,"id":0,"off":false,"y":-1970,"width":64,"rotation":0,"height":2224}},{"className":"ToggleE","params":{"x":7750,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":6,"off":false,"y":-1590,"width":64,"rotation":0,"height":2224}},{"className":"ToggleE","params":{"x":8310,"safeId":-1,"sndId":0,"hint":-1,"id_off":5,"id":0,"off":false,"y":210,"width":64,"rotation":0,"height":414}},{"className":"ToggleE","params":{"x":9570,"safeId":-1,"sndId":0,"hint":-1,"id_off":-1,"id":0,"off":false,"y":-790,"width":64,"rotation":0,"height":414}},{"className":"MotorJointE","params":{"x":1151,"safeId":-1,"rotation":0,"graphic":0,"y":-523,"useWeld":false,"time":4.95,"snd":false,"id":2,"rate":118,"width":17,"height":17}}]]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/menu_skeleton.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/menu_skeleton.json new file mode 100644 index 000000000..d0e45b052 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/menu_skeleton.json @@ -0,0 +1 @@ +{"frameRate":30,"name":"MAIN_MENU_COMBINED","version":"5.5","compatibleVersion":"5.5","armature":[{"name":"biker_anim","bone":[{"inheritScale":false,"name":"back","transform":{"x":483.65,"y":-64,"scX":2,"scY":2}},{"inheritScale":false,"name":"road","transform":{"x":217.15,"y":113.55}},{"inheritScale":false,"name":"sun","transform":{"x":442.15,"y":-146.4}},{"inheritScale":false,"name":"moto_wheel_f","transform":{"x":30.95,"y":35}},{"inheritScale":false,"name":"moto_wheel_b","transform":{"x":-30.95,"y":35}},{"inheritScale":false,"name":"hand_01 copy","transform":{"x":-10.2,"y":-13.75,"skX":11.71,"skY":11.71,"scX":0.8307,"scY":0.8307}},{"inheritScale":false,"name":"hand 2 copy","transform":{"x":4.3,"y":-3.85,"skX":11.69,"skY":11.69,"scX":0.8307,"scY":0.8307}},{"inheritScale":false,"name":"Layer 1","transform":{"x":-2.55,"y":15.1}},{"inheritScale":false,"name":"leg_01 copy","transform":{"x":-13.45,"y":1.9,"skX":30,"skY":30,"scX":0.8307,"scY":0.8307}},{"inheritScale":false,"name":"leg_02 copy","transform":{"x":-4.7,"y":31.7,"skX":-11.43,"skY":-11.43,"scX":0.8307,"scY":0.8307}},{"inheritScale":false,"name":"body_01","transform":{"x":-11.6,"y":-5.1}},{"inheritScale":false,"name":"leg_01","transform":{"x":-13.45,"y":1.9,"skX":30,"skY":30,"scX":0.8307,"scY":0.8307}},{"inheritScale":false,"name":"leg_02","transform":{"x":-4.7,"y":31.7,"skX":-11.43,"skY":-11.43,"scX":0.8307,"scY":0.8307}},{"inheritScale":false,"name":"hand_01","transform":{"x":-10.2,"y":-13.75,"skX":11.71,"skY":11.71,"scX":0.8307,"scY":0.8307}},{"inheritScale":false,"name":"hand 2","transform":{"x":4.3,"y":-3.85,"skX":11.69,"skY":11.69,"scX":0.8307,"scY":0.8307}},{"inheritScale":false,"name":"head","transform":{"x":-7.5,"y":-17.7,"skX":-6.73,"skY":-6.73,"scX":0.8307,"scY":0.8307}},{"inheritScale":false,"name":"fx","transform":{"x":-64.2,"y":4.95}}],"slot":[{"name":"back","parent":"back"},{"name":"road","parent":"road"},{"name":"sun","parent":"sun"},{"name":"moto_wheel_f","parent":"moto_wheel_f"},{"name":"moto_wheel_b","parent":"moto_wheel_b"},{"name":"hand_01 copy","parent":"hand_01 copy"},{"name":"hand 2 copy","parent":"hand 2 copy"},{"name":"Layer 1","parent":"Layer 1"},{"name":"leg_01 copy","parent":"leg_01 copy"},{"name":"leg_02 copy","parent":"leg_02 copy"},{"name":"body_01","parent":"body_01"},{"name":"leg_01","parent":"leg_01"},{"name":"leg_02","parent":"leg_02"},{"name":"hand_01","parent":"hand_01"},{"name":"hand 2","parent":"hand 2"},{"name":"head","parent":"head"},{"name":"fx","parent":"fx"}],"skin":[{"slot":[{"name":"back","display":[{"name":"back-123123","transform":{"x":33.9,"y":-36.75}}]},{"name":"road","display":[{"name":"ass","transform":{"x":-45.35,"y":-17.5}}]},{"name":"sun","display":[{"name":"sun_012312","transform":{"x":0.1,"y":0.1}}]},{"name":"moto_wheel_f","display":[{"type":"armature","name":"front_wheel_anim_01","transform":{"x":-0.05,"y":0.05}}]},{"name":"moto_wheel_b","display":[{"type":"armature","name":"back_wheel_anim-01","transform":{"y":0.05}}]},{"name":"hand_01 copy","display":[{"name":"hand_01","transform":{"x":4.3,"y":5.05}}]},{"name":"hand 2 copy","display":[{"name":"hand)92","transform":{"x":-1.5,"y":-0.15}}]},{"name":"Layer 1","display":[{"name":"bike_body_01","transform":{"x":1.8,"y":2.35}}]},{"name":"leg_01 copy","display":[{"name":"leg_01","transform":{"x":5.7,"y":4}}]},{"name":"leg_02 copy","display":[{"name":"leg_02","transform":{"x":3.55,"y":-13.55}}]},{"name":"body_01","display":[{"name":"body-01","transform":{"x":0.5,"y":-0.7}}]},{"name":"leg_01","display":[{"name":"leg_01","transform":{"x":5.7,"y":4}}]},{"name":"leg_02","display":[{"name":"leg_02","transform":{"x":3.55,"y":-13.55}}]},{"name":"hand_01","display":[{"name":"hand_01","transform":{"x":4.3,"y":5.05}}]},{"name":"hand 2","display":[{"name":"hand)92","transform":{"x":-1.5,"y":-0.15}}]},{"name":"head","display":[{"name":"head","transform":{"x":9.35,"y":-8.5}}]},{"name":"fx","display":[{"type":"armature","name":"window_0123"}]}]}],"animation":[{"duration":170,"fadeInTime":0.3,"name":"biker menu animation","bone":[{"name":"back","translateFrame":[{"duration":20,"tweenEasing":-1},{"duration":149,"tweenEasing":1,"x":-70,"y":0.1},{"tweenEasing":0,"x":-104,"y":0.1}],"scaleFrame":[{"duration":170}]},{"name":"road","translateFrame":[{"duration":20,"tweenEasing":0},{"duration":148,"tweenEasing":1,"x":-100},{"x":-214},{"tweenEasing":0,"x":-217.15,"y":-113.55}],"scaleFrame":[{"duration":170}]},{"name":"sun","translateFrame":[{"duration":20,"tweenEasing":-1},{"duration":149,"tweenEasing":1,"x":-50},{"tweenEasing":0,"x":-96.02,"y":-15}],"scaleFrame":[{"duration":20,"tweenEasing":-1},{"duration":149,"tweenEasing":1},{"tweenEasing":0,"x":1.4443,"y":1.4443}]},{"name":"moto_wheel_f","translateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":92.1,"y":-16.05},{"duration":7,"tweenEasing":0,"x":161.42,"y":-58.98},{"duration":9,"tweenEasing":0,"x":287.29,"y":-123.35},{"duration":142,"tweenEasing":1,"x":349.98,"y":-110.09},{"tweenEasing":0,"x":377.04,"y":-81.68}],"rotateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-10.21},{"duration":7,"tweenEasing":0,"rotate":-30.22},{"duration":9,"tweenEasing":0,"rotate":-17.24},{"duration":142,"tweenEasing":1,"rotate":-0.53},{"tweenEasing":0,"rotate":14.47}],"scaleFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":7,"tweenEasing":0,"x":1.115,"y":1.115},{"duration":9,"tweenEasing":0,"x":1.209,"y":1.209},{"duration":142,"tweenEasing":1,"x":1.6172,"y":1.6172},{"tweenEasing":0,"x":1.5797,"y":1.5797}]},{"name":"moto_wheel_b","translateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":96.3,"y":-1.9},{"duration":7,"tweenEasing":0,"x":163.73,"y":-24.13},{"duration":9,"tweenEasing":0,"x":277.6,"y":-101.2},{"duration":142,"tweenEasing":1,"x":311.83,"y":-109.12},{"tweenEasing":0,"x":344.25,"y":-106.2}],"rotateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-10.21},{"duration":7,"tweenEasing":0,"rotate":-30.22},{"duration":9,"tweenEasing":0,"rotate":-17.24},{"duration":142,"tweenEasing":1,"rotate":-0.53},{"tweenEasing":0,"rotate":14.47}],"scaleFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":7,"tweenEasing":0,"x":1.115,"y":1.115},{"duration":9,"tweenEasing":0,"x":1.209,"y":1.209},{"duration":142,"tweenEasing":1,"x":1.6172,"y":1.6172},{"tweenEasing":0,"x":1.5797,"y":1.5797}]},{"name":"hand_01 copy","translateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":87.34,"y":-1.07},{"duration":7,"tweenEasing":0,"x":135.59,"y":-34},{"duration":9,"tweenEasing":0,"x":265.15,"y":-118.31},{"duration":142,"tweenEasing":1,"x":338.61,"y":-155.07},{"tweenEasing":0,"x":385.31,"y":-130}],"rotateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-10.21},{"duration":7,"tweenEasing":0,"rotate":-30.22},{"duration":9,"tweenEasing":0,"rotate":-2.24},{"duration":142,"tweenEasing":1,"rotate":25.94},{"tweenEasing":0,"rotate":35.92}],"scaleFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":7,"tweenEasing":0,"x":1.1149,"y":1.1149},{"duration":9,"tweenEasing":0,"x":1.209,"y":1.209},{"duration":142,"tweenEasing":1,"x":1.6171,"y":1.6171},{"tweenEasing":0,"x":1.5796,"y":1.5796}]},{"name":"hand 2 copy","translateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":88.78,"y":-5.99},{"duration":7,"tweenEasing":0,"x":140.56,"y":-42.6},{"duration":9,"tweenEasing":0,"x":269.1,"y":-119.85},{"duration":142,"tweenEasing":1,"x":339.78,"y":-138.91},{"tweenEasing":0,"x":383.11,"y":-116.44}],"rotateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-25.21},{"duration":7,"tweenEasing":0,"rotate":-30.23},{"duration":9,"tweenEasing":0,"rotate":-17.25},{"duration":142,"tweenEasing":1,"rotate":25.93},{"tweenEasing":0,"rotate":20.92}],"scaleFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":7,"tweenEasing":0,"x":1.115,"y":1.115},{"duration":9,"tweenEasing":0,"x":1.209,"y":1.209},{"duration":142,"tweenEasing":1,"x":1.617,"y":1.617},{"tweenEasing":0,"x":1.5796,"y":1.5796}]},{"name":"Layer 1","translateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":92.3,"y":-5.1},{"duration":7,"tweenEasing":0,"x":151.42,"y":-39.37},{"duration":9,"tweenEasing":0,"x":274.95,"y":-114.4},{"duration":142,"tweenEasing":1,"x":329.05,"y":-121.8},{"tweenEasing":0,"x":367.12,"y":-105.58}],"rotateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-10.21},{"duration":7,"tweenEasing":0,"rotate":-30.22},{"duration":9,"tweenEasing":0,"rotate":-17.24},{"duration":142,"tweenEasing":1,"rotate":-0.53},{"tweenEasing":0,"rotate":14.47}],"scaleFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":7,"tweenEasing":0,"x":1.115,"y":1.115},{"duration":9,"tweenEasing":0,"x":1.209,"y":1.209},{"duration":142,"tweenEasing":1,"x":1.6172,"y":1.6172},{"tweenEasing":0,"x":1.5797,"y":1.5797}]},{"name":"leg_01 copy","translateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":88.34,"y":-1.14},{"duration":7,"tweenEasing":0,"x":144.5,"y":-32.8},{"duration":9,"tweenEasing":0,"x":254.17,"y":-122.42},{"duration":142,"tweenEasing":1,"x":307.49,"y":-163.21},{"tweenEasing":0,"x":360.78,"y":-140.72}],"rotateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-20.44},{"duration":7,"tweenEasing":0,"rotate":-30.23},{"duration":9,"tweenEasing":0,"rotate":42.75},{"duration":142,"tweenEasing":1,"rotate":131.16},{"tweenEasing":0,"rotate":142.66}],"scaleFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":7,"tweenEasing":0,"x":1.115,"y":1.115},{"duration":9,"tweenEasing":0,"x":1.209,"y":1.209},{"duration":142,"tweenEasing":1,"x":1.6171,"y":1.6171},{"tweenEasing":0,"x":1.5797,"y":1.5797}]},{"name":"leg_02 copy","translateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":95.3,"y":-5},{"duration":7,"tweenEasing":0,"x":160.92,"y":-38.77},{"duration":9,"tweenEasing":0,"x":228.7,"y":-118.64},{"duration":142,"tweenEasing":1,"x":253.24,"y":-214.06},{"tweenEasing":0,"x":312.52,"y":-199.45}],"rotateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-10.2},{"duration":7,"tweenEasing":0,"rotate":-30.22},{"duration":9,"tweenEasing":0,"rotate":42.76},{"duration":142,"tweenEasing":1,"rotate":131.16},{"tweenEasing":0,"rotate":142.66}],"scaleFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":7,"tweenEasing":0,"x":1.115,"y":1.115},{"duration":9,"tweenEasing":0,"x":1.2089,"y":1.2089},{"duration":142,"tweenEasing":1,"x":1.6171,"y":1.6171},{"tweenEasing":0,"x":1.5797,"y":1.5797}]},{"name":"body_01","translateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":87.8,"y":-0.2},{"duration":7,"tweenEasing":0,"x":140.5,"y":-33.63},{"duration":9,"tweenEasing":0,"x":259.66,"y":-120.03},{"duration":142,"tweenEasing":1,"x":319.47,"y":-154.91},{"tweenEasing":0,"x":368.44,"y":-135.29}],"rotateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-4.99},{"duration":7,"tweenEasing":0,"rotate":-30.22},{"duration":9,"tweenEasing":0,"rotate":42.76},{"duration":142,"tweenEasing":1,"rotate":86.16},{"tweenEasing":0,"rotate":77.46}],"scaleFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":7,"tweenEasing":0,"x":1.115,"y":1.115},{"duration":9,"tweenEasing":0,"x":1.209,"y":1.209},{"duration":142,"tweenEasing":1,"x":1.6172,"y":1.6171},{"tweenEasing":0,"x":1.5797,"y":1.5797}]},{"name":"leg_01","translateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":88.34,"y":-1.14},{"duration":7,"tweenEasing":0,"x":144.5,"y":-32.8},{"duration":9,"tweenEasing":0,"x":254.17,"y":-122.42},{"duration":142,"tweenEasing":1,"x":306.45,"y":-163.38},{"tweenEasing":0,"x":358.92,"y":-142.24}],"rotateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-20.44},{"duration":7,"tweenEasing":0,"rotate":-30.23},{"duration":9,"tweenEasing":0,"rotate":42.75},{"duration":142,"tweenEasing":1,"rotate":101.16},{"tweenEasing":0,"rotate":118.67}],"scaleFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":7,"tweenEasing":0,"x":1.115,"y":1.115},{"duration":9,"tweenEasing":0,"x":1.209,"y":1.209},{"duration":142,"tweenEasing":1,"x":1.6171,"y":1.6171},{"tweenEasing":0,"x":1.5797,"y":1.5797}]},{"name":"leg_02","translateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":95.3,"y":-5},{"duration":7,"tweenEasing":0,"x":160.92,"y":-38.77},{"duration":9,"tweenEasing":0,"x":228.7,"y":-118.64},{"duration":142,"tweenEasing":1,"x":247.63,"y":-188.7},{"tweenEasing":0,"x":302.28,"y":-182.49}],"rotateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-10.2},{"duration":7,"tweenEasing":0,"rotate":-30.22},{"duration":9,"tweenEasing":0,"rotate":42.76},{"duration":142,"tweenEasing":1,"rotate":101.16},{"tweenEasing":0,"rotate":118.67}],"scaleFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":7,"tweenEasing":0,"x":1.115,"y":1.115},{"duration":9,"tweenEasing":0,"x":1.2089,"y":1.2089},{"duration":142,"tweenEasing":1,"x":1.6171,"y":1.6171},{"tweenEasing":0,"x":1.5797,"y":1.5797}]},{"name":"hand_01","translateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":87.34,"y":-1.07},{"duration":7,"tweenEasing":0,"x":135.59,"y":-34},{"duration":9,"tweenEasing":0,"x":265.15,"y":-118.31},{"duration":142,"tweenEasing":1,"x":330.31,"y":-147.33},{"tweenEasing":0,"x":380.96,"y":-127.45}],"rotateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-10.21},{"duration":7,"tweenEasing":0,"rotate":-30.22},{"duration":9,"tweenEasing":0,"rotate":-2.24},{"duration":142,"tweenEasing":1,"rotate":21.7},{"tweenEasing":0,"rotate":35.72}],"scaleFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":7,"tweenEasing":0,"x":1.1149,"y":1.1149},{"duration":9,"tweenEasing":0,"x":1.209,"y":1.209},{"duration":142,"tweenEasing":1,"x":1.6171,"y":1.6171},{"tweenEasing":0,"x":1.5796,"y":1.5796}]},{"name":"hand 2","translateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":88.78,"y":-5.99},{"duration":7,"tweenEasing":0,"x":140.56,"y":-42.6},{"duration":9,"tweenEasing":0,"x":269.1,"y":-119.85},{"duration":142,"tweenEasing":1,"x":332.94,"y":-133.78},{"tweenEasing":0,"x":379.39,"y":-113.62}],"rotateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-25.21},{"duration":7,"tweenEasing":0,"rotate":-30.23},{"duration":9,"tweenEasing":0,"rotate":-17.25},{"duration":142,"tweenEasing":1,"rotate":14.47},{"tweenEasing":0,"rotate":19.45}],"scaleFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":7,"tweenEasing":0,"x":1.115,"y":1.115},{"duration":9,"tweenEasing":0,"x":1.209,"y":1.209},{"duration":142,"tweenEasing":1,"x":1.617,"y":1.617},{"tweenEasing":0,"x":1.5797,"y":1.5797}]},{"name":"head","translateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":86.55,"y":-0.1},{"duration":7,"tweenEasing":0,"x":133.25,"y":-35.45},{"duration":9,"tweenEasing":0,"x":266.9,"y":-118.3},{"duration":142,"tweenEasing":1,"x":335.65,"y":-140.9},{"tweenEasing":0,"x":382.5,"y":-122.65}],"rotateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-10.2},{"duration":7,"tweenEasing":0,"rotate":-30.22},{"duration":9,"tweenEasing":0,"rotate":-12.01},{"duration":142,"tweenEasing":1,"rotate":25.41},{"tweenEasing":0,"rotate":40.41}],"scaleFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":7,"tweenEasing":0,"x":1.1149,"y":1.1149},{"duration":9,"tweenEasing":0,"x":1.2089,"y":1.2089},{"duration":142,"tweenEasing":1,"x":1.6171,"y":1.6171},{"tweenEasing":0,"x":1.5797,"y":1.5797}]},{"name":"fx","translateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":89.95,"y":3.5},{"duration":7,"tweenEasing":0,"x":133.65,"y":-14.55},{"duration":9,"tweenEasing":0,"x":225.29,"y":-100.11},{"duration":12,"tweenEasing":0,"x":239.31,"y":-156.97},{"x":247.36,"y":-156.68},{"duration":130,"tweenEasing":0,"x":64.2,"y":-4.95}],"rotateFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-6.77},{"duration":7,"tweenEasing":0,"rotate":-15},{"duration":9,"tweenEasing":0,"rotate":-8.32,"skew":0.02},{"duration":12,"tweenEasing":0,"rotate":9.04,"skew":0.14},{"rotate":12.56,"skew":0.14},{"duration":130,"tweenEasing":0}],"scaleFrame":[{"duration":5,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":0.9531,"y":0.9531},{"duration":7,"tweenEasing":0,"x":1.2355,"y":1.2355},{"duration":9,"tweenEasing":0,"x":1.8067,"y":1.2591},{"duration":12,"tweenEasing":0,"x":2.8323,"y":1.8588},{"x":2.6875,"y":1.8588},{"duration":130,"tweenEasing":0}]}],"slot":[{"name":"road","displayFrame":[{"duration":169},{"value":-1}]},{"name":"fx","displayFrame":[{"duration":40},{"duration":130,"value":-1}],"colorFrame":[{"duration":5,"tweenEasing":0,"value":{"aM":66}},{"duration":6,"tweenEasing":0,"value":{"aM":59}},{"duration":7,"tweenEasing":0,"value":{"aM":53}},{"duration":9,"tweenEasing":0,"value":{"aM":22}},{"duration":12,"tweenEasing":0,"value":{"aM":9}},{"value":{"aM":0}},{"duration":130,"tweenEasing":0}]}]}]},{"name":"front_wheel_anim_01","bone":[{"inheritScale":false,"name":"wheel","transform":{"scX":0.7272,"scY":0.7272}}],"slot":[{"name":"wheel","parent":"wheel"}],"skin":[{"slot":[{"name":"wheel","display":[{"name":"moto_wheel_01"}]}]}],"animation":[{"duration":25,"playTimes":0,"name":"anim","bone":[{"name":"wheel","rotateFrame":[{"duration":24,"tweenEasing":0,"clockwise":2},{"tweenEasing":0}],"scaleFrame":[{"duration":25}]}]}]},{"name":"back_wheel_anim-01","bone":[{"inheritScale":false,"name":"wheel","transform":{"x":-0.05,"scX":0.7272,"scY":0.7272}}],"slot":[{"name":"wheel","parent":"wheel"}],"skin":[{"slot":[{"name":"wheel","display":[{"name":"moto_wheel_01 copy"}]}]}],"animation":[{"duration":25,"playTimes":0,"name":"anim","bone":[{"name":"wheel","rotateFrame":[{"duration":24,"tweenEasing":0,"clockwise":2},{"tweenEasing":0}],"scaleFrame":[{"duration":25}]}]}]},{"name":"window_0123","bone":[{"inheritScale":false,"name":"Layer 1","transform":{"x":23.4,"y":-1.1}}],"slot":[{"name":"Layer 1","parent":"Layer 1"}],"skin":[{"slot":[{"name":"Layer 1","display":[{"name":"__dbTextures/window_0123/Layer 1_0","transform":{"x":0.05,"y":0.15}},{"name":"__dbTextures/window_0123/Layer 1_2","transform":{"x":0.15,"y":0.25}},{"name":"__dbTextures/window_0123/Layer 1_4","transform":{"x":0.15,"y":0.2}}]}]}],"animation":[{"duration":6,"playTimes":0,"name":"unnamed","bone":[{"name":"Layer 1","translateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"x":-3.3,"y":-2},{"duration":2,"tweenEasing":0,"x":-3.3,"y":-2.1}],"scaleFrame":[{"duration":6}]}],"slot":[{"name":"Layer 1","displayFrame":[{"duration":2},{"duration":2,"value":1},{"duration":2,"value":2}]}]}]}]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/menu_texture.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/menu_texture.json new file mode 100644 index 000000000..3eadb2397 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/menu_texture.json @@ -0,0 +1 @@ +{"name":"MAIN_MENU_COMBINED","imagePath":"menu_texture.png","SubTexture":[{"name":"back-123123","x":0,"height":261,"width":505,"y":0},{"name":"ass","x":747,"height":195,"width":265,"y":0},{"name":"sun_012312","x":506,"height":240,"width":240,"y":0},{"name":"hand_01","x":1002,"height":17,"width":21,"y":230},{"name":"hand)92","x":23,"height":10,"width":23,"y":262},{"name":"bike_body_01","x":506,"height":44,"width":73,"y":241},{"name":"leg_01","x":0,"height":13,"width":22,"y":262},{"name":"leg_02","x":1002,"height":33,"width":21,"y":196},{"name":"body-01","x":701,"height":31,"width":24,"y":241},{"name":"head","x":660,"height":32,"width":40,"y":241},{"name":"moto_wheel_01","x":620,"height":38,"width":38,"y":241},{"name":"moto_wheel_01 copy","x":580,"height":38,"width":38,"y":241},{"name":"__dbTextures/window_0123/Layer 1_0","x":923,"height":83,"width":78,"y":196},{"name":"__dbTextures/window_0123/Layer 1_2","x":747,"height":83,"width":89,"y":196},{"name":"__dbTextures/window_0123/Layer 1_4","x":837,"height":76,"width":85,"y":196}]} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/objects.json b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/objects.json new file mode 100644 index 000000000..a519b8d19 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/levels/objects.json @@ -0,0 +1,494 @@ +{ + "point21": { + "x": 680, + "y": 173 + }, + "point20": { + "x": 632, + "y": 85 + }, + "point19": { + "x": 596, + "y": 202 + }, + "point18": { + "x": 632, + "y": 314 + }, + "point17": { + "x": 480, + "y": 360 + }, + "point16": { + "x": 533, + "y": 287 + }, + "point15": { + "x": 487, + "y": 150 + }, + "point14": { + "x": 545, + "y": 90 + }, + "point13": { + "x": 431, + "y": 43 + }, + "point12": { + "x": 430, + "y": 253 + }, + "point11": { + "x": 351, + "y": 333 + }, + "point10": { + "x": 353, + "y": 190 + }, + "point9": { + "x": 309, + "y": 48 + }, + "point8": { + "x": 260, + "y": 140 + }, + "point7": { + "x": 282, + "y": 273 + }, + "point6": { + "x": 193, + "y": 296 + }, + "point5": { + "x": 137, + "y": 214 + }, + "point4": { + "x": 185, + "y": 79 + }, + "point3": { + "x": 99, + "y": 96 + }, + "point2": { + "x": 42, + "y": 167 + }, + "point1": { + "x": 48, + "y": 266 + }, + "point0": { + "x": 105, + "y": 344 + }, + "bike1": { + "driver_head": { + "x": -1.8, + "y": -59.5, + "r": 14.998931884765625, + "g": "driver_head1" + }, + "driver_forearm": { + "x": 8.8, + "y": -33.35, + "r": 11.00091552734375, + "g": "driver_forearm1" + }, + "driver_arm": { + "x": -4.25, + "y": -39.4, + "r": 44.99913024902344, + "g": "driver_arm1" + }, + "driver_shin": { + "x": -1.8, + "y": -2.7, + "r": 3.0003509521484375, + "g": "driver_shin1" + }, + "driver_hip": { + "x": -7.4, + "y": -18.5, + "r": 29.9998779296875, + "g": "driver_hip1" + }, + "driver_corpse": { + "x": -8.35, + "y": -33.75, + "r": 15.732131958007812, + "g": "driver_corpse1" + }, + "suspend_front": { + "x": 46, + "y": 16, + "r": 63.00018310546875, + "g": "suspend_front1" + }, + "base": { + "x": 0, + "y": 0, + "r": 0, + "g": "bike_1_base" + }, + "suspend_back": { + "x": -6, + "y": 12, + "r": 169.69569396972656, + "g": "suspend_back1" + }, + "Wheel0": { + "x": -35, + "y": 17, + "r": 0, + "g": "Wheel_1_0" + }, + "Wheel1": { + "x": 44, + "y": 17, + "r": 0, + "g": "Wheel_1_0" + } + }, + "bike3": { + "driver_head": { + "x": -1.8, + "y": -59.5, + "r": 14.998931884765625, + "g": "driver_head3" + }, + "driver_forearm": { + "x": 8.8, + "y": -33.35, + "r": 11.00091552734375, + "g": "driver_forearm3" + }, + "driver_arm": { + "x": -4.25, + "y": -39.4, + "r": 44.99913024902344, + "g": "driver_arm3" + }, + "driver_shin": { + "x": -1.8, + "y": -2.7, + "r": 3.0003509521484375, + "g": "driver_shin3" + }, + "driver_hip": { + "x": -7.4, + "y": -18.5, + "r": 29.9998779296875, + "g": "driver_hip3" + }, + "driver_corpse": { + "x": -8.35, + "y": -33.75, + "r": 15.732131958007812, + "g": "driver_corpse3" + }, + "suspend_front": { + "x": 44, + "y": 15, + "r": 63.00018310546875, + "g": "suspend_front3" + }, + "base": { + "x": 0, + "y": 0, + "r": 0, + "g": "bike_3_base" + }, + "suspend_back": { + "x": -6, + "y": 12, + "r": 169.69569396972656, + "g": "suspend_back3" + }, + "Wheel0": { + "x": -34, + "y": 17, + "r": 0, + "g": "Wheel_3_0" + }, + "Wheel1": { + "x": 46, + "y": 16, + "r": 0, + "g": "Wheel_3_0" + } + }, + "bike5": { + "driver_head": { + "x": -1.8, + "y": -59.5, + "r": 14.998931884765625, + "g": "driver_head5" + }, + "driver_forearm": { + "x": 8.8, + "y": -33.35, + "r": 11.00091552734375, + "g": "driver_forearm5" + }, + "driver_arm": { + "x": -4.25, + "y": -39.4, + "r": 44.99913024902344, + "g": "driver_arm5" + }, + "driver_shin": { + "x": -1.8, + "y": -2.7, + "r": 3.0003509521484375, + "g": "driver_shin5" + }, + "driver_hip": { + "x": -7.4, + "y": -18.5, + "r": 29.9998779296875, + "g": "driver_hip5" + }, + "driver_corpse": { + "x": -8.35, + "y": -33.75, + "r": 15.732131958007812, + "g": "driver_corpse5" + }, + "suspend_front": { + "x": 49, + "y": 13, + "r": 63.00018310546875, + "g": "suspend_front5" + }, + "base": { + "x": 0, + "y": 0, + "r": 0, + "g": "bike_5_base" + }, + "suspend_back": { + "x": -10, + "y": 12, + "r": 169.69569396972656, + "g": "suspend_back5" + }, + "Wheel0": { + "x": -34, + "y": 17, + "r": 0, + "g": "Wheel_5_0" + }, + "Wheel1": { + "x": 47, + "y": 17, + "r": 0, + "g": "Wheel_5_0" + } + }, + "bike11": { + "driver_head": { + "x": 20.1, + "y": -56.55, + "r": 47.00189208984375, + "g": "driver_head1" + }, + "driver_forearm": { + "x": 19, + "y": -31.5, + "r": 25.82525634765625, + "g": "driver_forearm1" + }, + "driver_arm": { + "x": 7.9, + "y": -40.7, + "r": 59.82405090332031, + "g": "driver_arm1" + }, + "driver_shin": { + "x": -34.45, + "y": -48.55, + "r": 117.83747863769531, + "g": "driver_shin1" + }, + "driver_hip": { + "x": -17.8, + "y": -47.95, + "r": 144.83595275878906, + "g": "driver_hip1" + }, + "driver_corpse": { + "x": -1.15, + "y": -46.8, + "r": 100.73109436035156, + "g": "driver_corpse1" + }, + "suspend_front": { + "x": 40.35, + "y": 26.75, + "r": 78.82647705078125, + "g": "suspend_front1" + }, + "base": { + "x": 0.5, + "y": -1.2, + "r": 15.826858520507812, + "g": "bike_1_base" + }, + "suspend_back": { + "x": -8.5, + "y": 8.7, + "r": -174.4778289794922, + "g": "suspend_back1" + }, + "Wheel0": { + "x": -37.8, + "y": 5.6, + "r": 15.826858520507812, + "g": "Wheel_1_0" + }, + "Wheel1": { + "x": 38.15, + "y": 27.15, + "r": 15.826858520507812, + "g": "Wheel_1_0" + } + }, + "Plank0": { + "shape": "rect", + "h": 17.3, + "w": 71.1 + }, + "PlankWipe0": { + "shape":"rect", + "h":18, + "w":85 + }, + "RemovedWipe0": { + "shape":"rect", + "h":85, + "w":18 + }, + "SphereE":{ + "h":274, + "shape":"circ", + "w":274 + }, + "PlankBone": { + "shape": "rect", + "h": 12, + "w": 85 + }, + "PlankCandy": { + "shape": "rect", + "h": 18, + "w": 85 + }, + "Tnt1": { + "h": 52.8, + "shape": "rect", + "w": 52.8 + }, + "EggE": { + "h": 44, + "shape": "circ", + "w": 44 + }, + "BarrelE": { + "h": 52.1, + "shape": "circ", + "w": 52.1 + }, + "SpikesE": { + "h": 29.5, + "shape": "rect", + "w": 116.8 + }, + "Removed0": { + "h": 70.1, + "shape": "rect", + "w": 10.2 + }, + "Removed1": { + "h": 47.7, + "shape": "rect", + "w": 10.2 + }, + "Glass0": { + "w": 64, + "shape": "rect", + "h": 16 + }, + "Glass1": { + "w": 128, + "shape": "rect", + "h": 16 + }, + "GlassCrashed0": { + "w": 128, + "shape": "rect", + "h": 16, + "pts": [ + { + "x": -47, + "y": -6 + }, + { + "x": -35, + "y": 2 + }, + { + "x": 13, + "y": 2 + }, + { + "x": 48, + "y": 2 + }, + { + "x": 47, + "y": -4 + }, + { + "x": 4, + "y": -4 + } + ] + }, + "GlassCrashed1": { + "w": 64, + "shape": "rect", + "h": 16, + "pts": [ + { + "x": -23, + "y": -6 + }, + { + "x": -17, + "y": 2 + }, + { + "x": 7, + "y": 2 + }, + { + "x": 25, + "y": 2 + }, + { + "x": 24, + "y": -4 + }, + { + "x": 3, + "y": -4 + } + ] + } +} \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/lib/bluebird.min.js b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/lib/bluebird.min.js new file mode 100644 index 000000000..293fd9969 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/lib/bluebird.min.js @@ -0,0 +1,31 @@ +/* @preserve + * The MIT License (MIT) + * + * Copyright (c) 2013-2015 Petka Antonov + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ +/** + * bluebird build version 3.3.4 + * Features enabled: core, race, call_get, generators, map, nodeify, promisify, props, reduce, settle, some, using, timers, filter, any, each +*/ +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.Promise=t()}}(function(){var t,e,n;return function r(t,e,n){function i(s,a){if(!e[s]){if(!t[s]){var c="function"==typeof _dereq_&&_dereq_;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=e[s]={exports:{}};t[s][0].call(u.exports,function(e){var n=t[s][1][e];return i(n?n:e)},u,u.exports,r,t,e,n)}return e[s].exports}for(var o="function"==typeof _dereq_&&_dereq_,s=0;s0;){var e=t.shift();if("function"==typeof e){var n=t.shift(),r=t.shift();e.call(n,r)}else e._settlePromises()}},r.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},r.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},r.prototype._reset=function(){this._isTickUsed=!1},e.exports=r,e.exports.firstLineError=a},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){var i=!1,o=function(t,e){this._reject(e)},s=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(o,o,null,this,t)},a=function(t,e){0===(50397184&this._bitField)&&this._resolveCallback(e.target)},c=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(o){i||(i=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var l=n(o),u=new t(e);u._propagateFrom(this,1);var p=this._target();if(u._setBoundTo(l),l instanceof t){var h={promiseRejectionQueued:!1,promise:u,target:p,bindingPromise:l};p._then(e,s,void 0,u,h),l._then(a,c,void 0,u,h),u._setOnCancel(l)}else u._resolveCallback(p);return u},t.prototype._setBoundTo=function(t){void 0!==t?(this._bitField=2097152|this._bitField,this._boundTo=t):this._bitField=-2097153&this._bitField},t.prototype._isBound=function(){return 2097152===(2097152&this._bitField)},t.bind=function(e,n){return t.resolve(n).bind(e)}}},{}],4:[function(t,e,n){"use strict";function r(){try{Promise===o&&(Promise=i)}catch(t){}return o}var i;"undefined"!=typeof Promise&&(i=Promise);var o=t("./promise")();o.noConflict=r,e.exports=o},{"./promise":22}],5:[function(t,e,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}e.exports=function(e){function n(t,n){var r;if(null!=t&&(r=t[n]),"function"!=typeof r){var i="Object "+a.classString(t)+" has no method '"+a.toString(n)+"'";throw new e.TypeError(i)}return r}function r(t){var e=this.pop(),r=n(t,e);return r.apply(t,this)}function i(t){return t[this]}function o(t){var e=+this;return 0>e&&(e=Math.max(0,e+t.length)),t[e]}var s,a=t("./util"),c=a.canEvaluate;a.isIdentifier;e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(r,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e,n="number"==typeof t;if(n)e=o;else if(c){var r=s(t);e=null!==r?r:i}else e=i;return this._then(e,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){var o=t("./util"),s=o.tryCatch,a=o.errorObj,c=e._async;e.prototype["break"]=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var t=this,e=t;t.isCancellable();){if(!t._cancelBy(e)){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}var n=t._cancellationParent;if(null==n||!n.isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),e=t,t=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(t){return t===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this.isCancellable()&&(this._setCancelled(),c.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(t,e){if(o.isArray(t))for(var n=0;n=0?o[t]:void 0}var i=!1,o=[];return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){},e.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,o.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=o.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=n,e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var n=t.prototype._pushContext,o=t.prototype._popContext,s=t._peekContext,a=t.prototype._peekContext,c=t.prototype._promiseCreated;e.deactivateLongStackTraces=function(){t.prototype._pushContext=n,t.prototype._popContext=o,t._peekContext=s,t.prototype._peekContext=a,t.prototype._promiseCreated=c,i=!1},i=!0,t.prototype._pushContext=e.prototype._pushContext,t.prototype._popContext=e.prototype._popContext,t._peekContext=t.prototype._peekContext=r,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},e}},{}],9:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t,e){return{promise:e}}function i(){return!1}function o(t,e,n){var r=this;try{t(e,n,function(t){if("function"!=typeof t)throw new TypeError("onCancel must be a function, got: "+H.toString(t));r._attachCancellationCallback(t)})}catch(i){return i}}function s(t){if(!this.isCancellable())return this;var e=this._onCancel();void 0!==e?H.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function a(){return this._onCancelField}function c(t){this._onCancelField=t}function l(){this._cancellationParent=void 0,this._onCancelField=void 0}function u(t,e){if(0!==(1&e)){this._cancellationParent=t;var n=t._branchesRemainingToCancel;void 0===n&&(n=0),t._branchesRemainingToCancel=n+1}0!==(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function p(t,e){0!==(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function h(){var t=this._boundTo;return void 0!==t&&t instanceof e?t.isFulfilled()?t.value():void 0:t}function f(){this._trace=new O(this._peekContext())}function _(t,e){if(N(t)){var n=this._trace;if(void 0!==n&&e&&(n=n._parent),void 0!==n)n.attachExtraTrace(t);else if(!t.__stackCleaned__){var r=j(t);H.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),H.notEnumerableProp(t,"__stackCleaned__",!0)}}}function d(t,e,n,r,i){if(void 0===t&&null!==e&&z){if(void 0!==i&&i._returnedNonUndefined())return;var o=r._bitField;if(0===(65535&o))return;n&&(n+=" ");var s="a promise was created in a "+n+"handler but was not returned from it";r._warn(s,!0,e)}}function v(t,e){var n=t+" is deprecated and will be removed in a future version.";return e&&(n+=" Use "+e+" instead."),y(n)}function y(t,n,r){if(rt.warnings){var i,o=new L(t);if(n)r._attachExtraTrace(o);else if(rt.longStackTraces&&(i=e._peekContext()))i.attachExtraTrace(o);else{var s=j(o);o.stack=s.message+"\n"+s.stack.join("\n")}Y("warning",o)||k(o,"",!0)}}function g(t,e){for(var n=0;n=0;--a)if(r[a]===o){s=a;break}for(var a=s;a>=0;--a){var c=r[a];if(e[i]!==c)break;e.pop(),i--}e=r}}function w(t){for(var e=[],n=0;n0&&(e=e.slice(n)),e}function j(t){var e=t.stack,n=t.toString();return e="string"==typeof e&&e.length>0?C(t):[" (No stack trace)"],{message:n,stack:w(e)}}function k(t,e,n){if("undefined"!=typeof console){var r;if(H.isObject(t)){var i=t.stack;r=e+M(i,t)}else r=e+String(t);"function"==typeof D?D(r,n):("function"==typeof console.log||"object"==typeof console.log)&&console.log(r)}}function E(t,e,n,r){var i=!1;try{"function"==typeof e&&(i=!0,"rejectionHandled"===t?e(r):e(n,r))}catch(o){I.throwLater(o)}"unhandledRejection"===t?Y(t,n,r)||i||k(n,"Unhandled rejection "):Y(t,r)}function F(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{e=t&&"function"==typeof t.toString?t.toString():H.toString(t);var n=/\[object [a-zA-Z0-9$_]+\]/;if(n.test(e))try{var r=JSON.stringify(t);e=r}catch(i){}0===e.length&&(e="(empty array)")}return"(<"+x(e)+">, no stack trace)"}function x(t){var e=41;return t.lengths||0>a||!n||!r||n!==r||s>=a||(tt=function(t){if(U.test(t))return!0;var e=R(t);return e&&e.fileName===n&&s<=e.line&&e.line<=a?!0:!1})}}function O(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);nt(this,O),e>32&&this.uncycle()}var S,A,D,V=e._getDomain,I=e._async,L=t("./errors").Warning,H=t("./util"),N=H.canAttachTrace,U=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,B=null,M=null,q=!1,Q=!(0==H.env("BLUEBIRD_DEBUG")||!H.env("BLUEBIRD_DEBUG")&&"development"!==H.env("NODE_ENV")),$=!(0==H.env("BLUEBIRD_WARNINGS")||!Q&&!H.env("BLUEBIRD_WARNINGS")),G=!(0==H.env("BLUEBIRD_LONG_STACK_TRACES")||!Q&&!H.env("BLUEBIRD_LONG_STACK_TRACES")),z=0!=H.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&($||!!H.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=-1048577&t._bitField|524288},e.prototype._ensurePossibleRejectionHandled=function(){0===(524288&this._bitField)&&(this._setRejectionIsUnhandled(),I.invokeLater(this._notifyUnhandledRejection,this,void 0))},e.prototype._notifyUnhandledRejectionIsHandled=function(){E("rejectionHandled",S,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},e.prototype._returnedNonUndefined=function(){return 0!==(268435456&this._bitField)},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),E("unhandledRejection",A,t,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},e.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},e.prototype._warn=function(t,e,n){return y(t,e,n||this)},e.onPossiblyUnhandledRejection=function(t){var e=V();A="function"==typeof t?null===e?t:e.bind(t):void 0},e.onUnhandledRejectionHandled=function(t){var e=V();S="function"==typeof t?null===e?t:e.bind(t):void 0};var X=function(){};e.longStackTraces=function(){if(I.haveItemsQueued()&&!rt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!rt.longStackTraces&&T()){var t=e.prototype._captureStackTrace,r=e.prototype._attachExtraTrace;rt.longStackTraces=!0,X=function(){if(I.haveItemsQueued()&&!rt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");e.prototype._captureStackTrace=t,e.prototype._attachExtraTrace=r,n.deactivateLongStackTraces(),I.enableTrampoline(),rt.longStackTraces=!1},e.prototype._captureStackTrace=f,e.prototype._attachExtraTrace=_,n.activateLongStackTraces(),I.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return rt.longStackTraces&&T()};var W=function(){try{var t=document.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),H.global.dispatchEvent(t),function(t,e){var n=document.createEvent("CustomEvent");return n.initCustomEvent(t.toLowerCase(),!1,!0,e),!H.global.dispatchEvent(n)}}catch(e){}return function(){return!1}}(),K=function(){return H.isNode?function(){return process.emit.apply(process,arguments)}:H.global?function(t){var e="on"+t.toLowerCase(),n=H.global[e];return n?(n.apply(H.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}}(),J={promiseCreated:r,promiseFulfilled:r,promiseRejected:r,promiseResolved:r,promiseCancelled:r,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:r},Y=function(t){var e=!1;try{e=K.apply(null,arguments)}catch(n){I.throwLater(n),e=!0}var r=!1;try{r=W(t,J[t].apply(null,arguments))}catch(n){I.throwLater(n),r=!0}return r||e};e.config=function(t){if(t=Object(t),"longStackTraces"in t&&(t.longStackTraces?e.longStackTraces():!t.longStackTraces&&e.hasLongStackTraces()&&X()),"warnings"in t){var n=t.warnings;rt.warnings=!!n,z=rt.warnings,H.isObject(n)&&"wForgottenReturn"in n&&(z=!!n.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!rt.cancellation){if(I.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype._clearCancellationData=l,e.prototype._propagateFrom=u,e.prototype._onCancel=a,e.prototype._setOnCancel=c,e.prototype._attachCancellationCallback=s,e.prototype._execute=o,Z=u,rt.cancellation=!0}"monitoring"in t&&(t.monitoring&&!rt.monitoring?(rt.monitoring=!0,e.prototype._fireEvent=Y):!t.monitoring&&rt.monitoring&&(rt.monitoring=!1,e.prototype._fireEvent=i))},e.prototype._fireEvent=i,e.prototype._execute=function(t,e,n){try{t(e,n)}catch(r){return r}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(t){},e.prototype._attachCancellationCallback=function(t){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(t,e){};var Z=p,tt=function(){return!1},et=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;H.inherits(O,Error),n.CapturedTrace=O,O.prototype.uncycle=function(){var t=this._length;if(!(2>t)){for(var e=[],n={},r=0,i=this;void 0!==i;++r)e.push(i),i=i._parent;t=this._length=r;for(var r=t-1;r>=0;--r){var o=e[r].stack;void 0===n[o]&&(n[o]=r)}for(var r=0;t>r;++r){var s=e[r].stack,a=n[s];if(void 0!==a&&a!==r){a>0&&(e[a-1]._parent=void 0,e[a-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var c=r>0?e[r-1]:this;t-1>a?(c._parent=e[a+1],c._parent.uncycle(),c._length=c._parent._length+1):(c._parent=void 0,c._length=1);for(var l=c._length+1,u=r-2;u>=0;--u)e[u]._length=l,l++;return}}}},O.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=j(t),n=e.message,r=[e.stack],i=this;void 0!==i;)r.push(w(i.stack.split("\n"))),i=i._parent;b(r),m(r),H.notEnumerableProp(t,"stack",g(n,r)),H.notEnumerableProp(t,"__stackCleaned__",!0)}};var nt=function(){var t=/^\s*at\s*/,e=function(t,e){return"string"==typeof t?t:void 0!==e.name&&void 0!==e.message?e.toString():F(e)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,B=t,M=e;var n=Error.captureStackTrace;return tt=function(t){return U.test(t)},function(t,e){Error.stackTraceLimit+=6,n(t,e),Error.stackTraceLimit-=6}}var r=new Error;if("string"==typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return B=/@/,M=e,q=!0,function(t){t.stack=(new Error).stack};var i;try{throw new Error}catch(o){i="stack"in o}return"stack"in r||!i||"number"!=typeof Error.stackTraceLimit?(M=function(t,e){return"string"==typeof t?t:"object"!=typeof e&&"function"!=typeof e||void 0===e.name||void 0===e.message?F(e):e.toString()},null):(B=t,M=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}([]);"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(D=function(t){console.warn(t)},H.isNode&&process.stderr.isTTY?D=function(t,e){var n=e?"":"";console.warn(n+t+"\n")}:H.isNode||"string"!=typeof(new Error).stack||(D=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var rt={warnings:$,longStackTraces:!1,cancellation:!1,monitoring:!1};return G&&e.longStackTraces(),{longStackTraces:function(){return rt.longStackTraces},warnings:function(){return rt.warnings},cancellation:function(){return rt.cancellation},monitoring:function(){return rt.monitoring},propagateFromFunction:function(){return Z},boundValueFunction:function(){return h},checkForgottenReturns:d,setBounds:P,warn:y,deprecated:v,CapturedTrace:O,fireDomEvent:W,fireGlobalEvent:K}}},{"./errors":12,"./util":36}],10:[function(t,e,n){"use strict";e.exports=function(t){function e(){return this.value}function n(){throw this.reason}t.prototype["return"]=t.prototype.thenReturn=function(n){return n instanceof t&&n.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:n},void 0)},t.prototype["throw"]=t.prototype.thenThrow=function(t){return this._then(n,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:t},void 0);var e=arguments[1],r=function(){throw e};return this.caught(t,r)},t.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof t&&n.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:n},void 0);var r=arguments[1];r instanceof t&&r.suppressUnhandledRejections();var i=function(){return r};return this.caught(n,i)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(t,e){function n(){return o(this)}function r(t,n){return i(t,n,e,e)}var i=t.reduce,o=t.all;t.prototype.each=function(t){return this.mapSeries(t)._then(n,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return i(this,t,e,e)},t.each=function(t,e){return r(t,e)._then(n,void 0,void 0,t,void 0)},t.mapSeries=r}},{}],12:[function(t,e,n){"use strict";function r(t,e){function n(r){return this instanceof n?(p(this,"message","string"==typeof r?r:e),p(this,"name",t),void(Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this))):new n(r)}return u(n,Error),n}function i(t){return this instanceof i?(p(this,"name","OperationalError"),p(this,"message",t),this.cause=t,this.isOperational=!0,void(t instanceof Error?(p(this,"message",t.message),p(this,"stack",t.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor))):new i(t)}var o,s,a=t("./es5"),c=a.freeze,l=t("./util"),u=l.inherits,p=l.notEnumerableProp,h=r("Warning","warning"),f=r("CancellationError","cancellation error"),_=r("TimeoutError","timeout error"),d=r("AggregateError","aggregate error");try{o=TypeError,s=RangeError}catch(v){o=r("TypeError","type error"),s=r("RangeError","range error")}for(var y="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),g=0;g1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0):!1}function s(){return c.call(this,this.promise._target()._settledValue())}function a(t){return o(this,t)?void 0:(p.e=t,p)}function c(t){var r=this.promise,c=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?c.call(r._boundValue()):c.call(r._boundValue(),t);if(void 0!==l){r._setReturnedNonUndefined();var h=n(l,r);if(h instanceof e){if(null!=this.cancelPromise){if(h.isCancelled()){var f=new u("late cancellation observer");return r._attachExtraTrace(f),p.e=f,p}h.isPending()&&h._attachCancellationCallback(new i(this))}return h._then(s,a,void 0,this,void 0)}}}return r.isRejected()?(o(this),p.e=t,p):(o(this),t)}var l=t("./util"),u=e.CancellationError,p=l.errorObj;return r.prototype.isFinallyHandler=function(){return 0===this.type},i.prototype._resultCancelled=function(){o(this.finallyHandler)},e.prototype._passThrough=function(t,e,n,i){return"function"!=typeof t?this.then():this._then(n,i,void 0,new r(this,e,t),void 0)},e.prototype.lastly=e.prototype["finally"]=function(t){return this._passThrough(t,0,c,c)},e.prototype.tap=function(t){return this._passThrough(t,1,c)},r}},{"./util":36}],16:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,s){function a(t,n,r){for(var o=0;o0&&"function"==typeof arguments[e]){t=arguments[e];var r}var i=[].slice.call(arguments);t&&i.pop();var r=new n(i).promise();return void 0!==t?r.spread(t):r}}},{"./util":36}],18:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,s){function a(t,e,n,r){this.constructor$(t),this._promise._captureStackTrace();var i=l();this._callback=null===i?e:i.bind(e),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=n>=1?[]:f,this._init$(void 0,-2)}function c(t,e,n,i){if("function"!=typeof e)return r("expecting a function but got "+u.classString(e));var o="object"==typeof n&&null!==n?n.concurrency:0;return o="number"==typeof o&&isFinite(o)&&o>=1?o:0,new a(t,e,o,i).promise()}var l=e._getDomain,u=t("./util"),p=u.tryCatch,h=u.errorObj,f=[];u.inherits(a,n),a.prototype._init=function(){},a.prototype._promiseFulfilled=function(t,n){ +var r=this._values,o=this.length(),a=this._preservedValues,c=this._limit;if(0>n){if(n=-1*n-1,r[n]=t,c>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(c>=1&&this._inFlight>=c)return r[n]=t,this._queue.push(n),!1;null!==a&&(a[n]=t);var l=this._promise,u=this._callback,f=l._boundValue();l._pushContext();var _=p(u).call(f,t,n,o),d=l._popContext();if(s.checkForgottenReturns(_,d,null!==a?"Promise.filter":"Promise.map",l),_===h)return this._reject(_.e),!0;var v=i(_,this._promise);if(v instanceof e){v=v._target();var y=v._bitField;if(0===(50397184&y))return c>=1&&this._inFlight++,r[n]=v,v._proxy(this,-1*(n+1)),!1;if(0===(33554432&y))return 0!==(16777216&y)?(this._reject(v._reason()),!0):(this._cancel(),!0);_=v._value()}r[n]=_}var g=++this._totalResolved;return g>=o?(null!==a?this._filter(r,a):this._resolve(r),!0):!1},a.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlighto;++o)t[o]&&(r[i++]=e[o]);r.length=i,this._resolve(r)},a.prototype.preservedValues=function(){return this._preservedValues},e.prototype.map=function(t,e){return c(this,t,e,null)},e.map=function(t,e,n,r){return c(t,e,n,r)}}},{"./util":36}],19:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o){var s=t("./util"),a=s.tryCatch;e.method=function(t){if("function"!=typeof t)throw new e.TypeError("expecting a function but got "+s.classString(t));return function(){var r=new e(n);r._captureStackTrace(),r._pushContext();var i=a(t).apply(this,arguments),s=r._popContext();return o.checkForgottenReturns(i,s,"Promise.method",r),r._resolveFromSyncValue(i),r}},e.attempt=e["try"]=function(t){if("function"!=typeof t)return i("expecting a function but got "+s.classString(t));var r=new e(n);r._captureStackTrace(),r._pushContext();var c;if(arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var l=arguments[1],u=arguments[2];c=s.isArray(l)?a(t).apply(u,l):a(t).call(u,l)}else c=a(t)();var p=r._popContext();return o.checkForgottenReturns(c,p,"Promise.try",r),r._resolveFromSyncValue(c),r},e.prototype._resolveFromSyncValue=function(t){t===s.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e,n){"use strict";function r(t){return t instanceof Error&&u.getPrototypeOf(t)===Error.prototype}function i(t){var e;if(r(t)){e=new l(t),e.name=t.name,e.message=t.message,e.stack=t.stack;for(var n=u.keys(t),i=0;i1){var n,r=new Array(e-1),i=0;for(n=0;e-1>n;++n){var o=arguments[n];if(!h.isObject(o))return u("expecting an object but got "+h.classString(o));r[i++]=o}return r.length=i,t=arguments[n],this.then(void 0,T(r,t,this))}return this.then(void 0,t)},r.prototype.reflect=function(){return this._then(l,l,void 0,this,void 0)},r.prototype.then=function(t,e){if(F.warnings()&&arguments.length>0&&"function"!=typeof t&&"function"!=typeof e){var n=".then() only accepts functions but was passed: "+h.classString(t);arguments.length>1&&(n+=", "+h.classString(e)),this._warn(n)}return this._then(t,e,void 0,void 0,void 0)},r.prototype.done=function(t,e){var n=this._then(t,e,void 0,void 0,void 0);n._setIsFinal()},r.prototype.spread=function(t){return"function"!=typeof t?u("expecting a function but got "+h.classString(t)):this.all()._then(t,void 0,void 0,b,void 0)},r.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},r.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new j(this).promise()},r.prototype.error=function(t){return this.caught(h.originatesFromRejection,t)},r.is=function(t){return t instanceof r},r.fromNode=r.fromCallback=function(t){var e=new r(m);e._captureStackTrace();var n=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,i=O(t)(R(e,n));return i===P&&e._rejectCallback(i.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},r.all=function(t){return new j(t).promise()},r.cast=function(t){var e=C(t);return e instanceof r||(e=new r(m),e._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},r.resolve=r.fulfilled=r.cast,r.reject=r.rejected=function(t){var e=new r(m);return e._captureStackTrace(),e._rejectCallback(t,!0),e},r.setScheduler=function(t){if("function"!=typeof t)throw new y("expecting a function but got "+h.classString(t));var e=d._schedule;return d._schedule=t,e},r.prototype._then=function(t,e,n,i,o){var s=void 0!==o,c=s?o:new r(m),l=this._target(),u=l._bitField;s||(c._propagateFrom(this,3),c._captureStackTrace(),void 0===i&&0!==(2097152&this._bitField)&&(i=0!==(50397184&u)?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,c));var p=a();if(0!==(50397184&u)){var h,f,_=l._settlePromiseCtx;0!==(33554432&u)?(f=l._rejectionHandler0,h=t):0!==(16777216&u)?(f=l._fulfillmentHandler0,h=e,l._unsetRejectionIsUnhandled()):(_=l._settlePromiseLateCancellationObserver,f=new g("late cancellation observer"),l._attachExtraTrace(f),h=e),d.invoke(_,l,{handler:null===p?h:"function"==typeof h&&p.bind(h),promise:c,receiver:i,value:f})}else l._addCallbacks(t,e,c,i,p);return c},r.prototype._length=function(){return 65535&this._bitField},r.prototype._isFateSealed=function(){return 0!==(117506048&this._bitField)},r.prototype._isFollowing=function(){return 67108864===(67108864&this._bitField)},r.prototype._setLength=function(t){this._bitField=-65536&this._bitField|65535&t},r.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},r.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},r.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},r.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},r.prototype._isFinal=function(){return(4194304&this._bitField)>0},r.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},r.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},r.prototype._setAsyncGuaranteed=function(){this._bitField=134217728|this._bitField},r.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[4*t-4+3];return e===p?void 0:void 0===e&&this._isBound()?this._boundValue():e},r.prototype._promiseAt=function(t){return this[4*t-4+2]},r.prototype._fulfillmentHandlerAt=function(t){return this[4*t-4+0]},r.prototype._rejectionHandlerAt=function(t){return this[4*t-4+1]},r.prototype._boundValue=function(){},r.prototype._migrateCallback0=function(t){var e=(t._bitField,t._fulfillmentHandler0),n=t._rejectionHandler0,r=t._promise0,i=t._receiverAt(0);void 0===i&&(i=p),this._addCallbacks(e,n,r,i,null)},r.prototype._migrateCallbackAt=function(t,e){var n=t._fulfillmentHandlerAt(e),r=t._rejectionHandlerAt(e),i=t._promiseAt(e),o=t._receiverAt(e);void 0===o&&(o=p),this._addCallbacks(n,r,i,o,null)},r.prototype._addCallbacks=function(t,e,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof t&&(this._fulfillmentHandler0=null===i?t:i.bind(t)),"function"==typeof e&&(this._rejectionHandler0=null===i?e:i.bind(e));else{var s=4*o-4;this[s+2]=n,this[s+3]=r,"function"==typeof t&&(this[s+0]=null===i?t:i.bind(t)),"function"==typeof e&&(this[s+1]=null===i?e:i.bind(e))}return this._setLength(o+1),o},r.prototype._proxy=function(t,e){this._addCallbacks(void 0,void 0,e,t,null)},r.prototype._resolveCallback=function(t,e){if(0===(117506048&this._bitField)){if(t===this)return this._rejectCallback(c(),!1);var n=C(t,this);if(!(n instanceof r))return this._fulfill(t);e&&this._propagateFrom(n,2);var i=n._target();if(i===this)return void this._reject(c());var o=i._bitField;if(0===(50397184&o)){var s=this._length();s>0&&i._migrateCallback0(this);for(var a=1;s>a;++a)i._migrateCallbackAt(this,a);this._setFollowing(),this._setLength(0),this._setFollowee(i)}else if(0!==(33554432&o))this._fulfill(i._value());else if(0!==(16777216&o))this._reject(i._reason());else{var l=new g("late cancellation observer");i._attachExtraTrace(l),this._reject(l)}}},r.prototype._rejectCallback=function(t,e,n){var r=h.ensureErrorObject(t),i=r===t;if(!i&&!n&&F.warnings()){var o="a promise was rejected with a non-error: "+h.classString(t);this._warn(o,!0)}this._attachExtraTrace(r,e?i:!1),this._reject(t)},r.prototype._resolveFromExecutor=function(t){var e=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(t,function(t){e._resolveCallback(t)},function(t){e._rejectCallback(t,n)});n=!1,this._popContext(),void 0!==r&&e._rejectCallback(r,!0)},r.prototype._settlePromiseFromHandler=function(t,e,n,r){var i=r._bitField;if(0===(65536&i)){r._pushContext();var o;e===b?n&&"number"==typeof n.length?o=O(t).apply(this._boundValue(),n):(o=P,o.e=new y("cannot .spread() a non-array: "+h.classString(n))):o=O(t).call(e,n);var s=r._popContext();i=r._bitField,0===(65536&i)&&(o===w?r._reject(n):o===P?r._rejectCallback(o.e,!1):(F.checkForgottenReturns(o,s,"",r,this),r._resolveCallback(o)))}},r.prototype._target=function(){for(var t=this;t._isFollowing();)t=t._followee();return t},r.prototype._followee=function(){return this._rejectionHandler0},r.prototype._setFollowee=function(t){this._rejectionHandler0=t},r.prototype._settlePromise=function(t,n,i,o){var s=t instanceof r,a=this._bitField,c=0!==(134217728&a);0!==(65536&a)?(s&&t._invokeInternalOnCancel(),i instanceof x&&i.isFinallyHandler()?(i.cancelPromise=t,O(n).call(i,o)===P&&t._reject(P.e)):n===l?t._fulfill(l.call(i)):i instanceof e?i._promiseCancelled(t):s||t instanceof j?t._cancel():i.cancel()):"function"==typeof n?s?(c&&t._setAsyncGuaranteed(),this._settlePromiseFromHandler(n,i,o,t)):n.call(i,o,t):i instanceof e?i._isResolved()||(0!==(33554432&a)?i._promiseFulfilled(o,t):i._promiseRejected(o,t)):s&&(c&&t._setAsyncGuaranteed(),0!==(33554432&a)?t._fulfill(o):t._reject(o))},r.prototype._settlePromiseLateCancellationObserver=function(t){var e=t.handler,n=t.promise,i=t.receiver,o=t.value;"function"==typeof e?n instanceof r?this._settlePromiseFromHandler(e,i,o,n):e.call(i,o,n):n instanceof r&&n._reject(o)},r.prototype._settlePromiseCtx=function(t){this._settlePromise(t.promise,t.handler,t.receiver,t.value)},r.prototype._settlePromise0=function(t,e,n){var r=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,t,i,e)},r.prototype._clearCallbackDataAtIndex=function(t){var e=4*t-4;this[e+2]=this[e+3]=this[e+0]=this[e+1]=void 0},r.prototype._fulfill=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(t===this){var n=c();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=t,(65535&e)>0&&(0!==(134217728&e)?this._settlePromises():d.settlePromises(this))}},r.prototype._reject=function(t){var e=this._bitField;if(!((117506048&e)>>>16))return this._setRejected(),this._fulfillmentHandler0=t,this._isFinal()?d.fatalError(t,h.isNode):void((65535&e)>0?d.settlePromises(this):this._ensurePossibleRejectionHandled())},r.prototype._fulfillPromises=function(t,e){for(var n=1;t>n;n++){var r=this._fulfillmentHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,e)}},r.prototype._rejectPromises=function(t,e){for(var n=1;t>n;n++){var r=this._rejectionHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,e)}},r.prototype._settlePromises=function(){var t=this._bitField,e=65535&t;if(e>0){if(0!==(16842752&t)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,t),this._rejectPromises(e,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,t),this._fulfillPromises(e,r)}this._setLength(0)}this._clearCancellationData()},r.prototype._settledValue=function(){var t=this._bitField;return 0!==(33554432&t)?this._rejectionHandler0:0!==(16777216&t)?this._fulfillmentHandler0:void 0},r.defer=r.pending=function(){F.deprecated("Promise.defer","new Promise");var t=new r(m);return{promise:t,resolve:i,reject:o}},h.notEnumerableProp(r,"_makeSelfResolutionError",c),t("./method")(r,m,C,u,F),t("./bind")(r,m,C,F),t("./cancel")(r,j,u,F),t("./direct_resolve")(r),t("./synchronous_inspection")(r),t("./join")(r,j,C,m,F),r.Promise=r,t("./map.js")(r,j,u,C,m,F),t("./using.js")(r,u,C,E,m,F),t("./timers.js")(r,m,F),t("./generators.js")(r,u,m,C,e,F),t("./nodeify.js")(r),t("./call_get.js")(r),t("./props.js")(r,j,C,u),t("./race.js")(r,m,C,u),t("./reduce.js")(r,j,u,C,m,F),t("./settle.js")(r,j,F),t("./some.js")(r,j,u),t("./promisify.js")(r,m),t("./any.js")(r),t("./each.js")(r,m),t("./filter.js")(r,m),h.toFastProperties(r),h.toFastProperties(r.prototype),s({a:1}),s({b:2}),s({c:3}),s(1),s(function(){}),s(void 0),s(!1),s(new r(m)),F.setBounds(_.firstLineError,h.lastLineError),r}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o){function s(t){switch(t){case-2:return[];case-3:return{}}}function a(t){var r=this._promise=new e(n);t instanceof e&&r._propagateFrom(t,3),r._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var c=t("./util");c.isArray;return c.inherits(a,o),a.prototype.length=function(){return this._length},a.prototype.promise=function(){return this._promise},a.prototype._init=function l(t,n){var o=r(this._values,this._promise);if(o instanceof e){o=o._target();var a=o._bitField;if(this._values=o,0===(50397184&a))return this._promise._setAsyncGuaranteed(),o._then(l,this._reject,void 0,this,n);if(0===(33554432&a))return 0!==(16777216&a)?this._reject(o._reason()):this._cancel();o=o._value()}if(o=c.asArray(o),null===o){var u=i("expecting an array or an iterable object but got "+c.classString(o)).reason();return void this._promise._rejectCallback(u,!1)}return 0===o.length?void(-5===n?this._resolveEmptyArray():this._resolve(s(n))):void this._iterate(o)},a.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,s=null,a=0;n>a;++a){var c=r(t[a],i);c instanceof e?(c=c._target(),s=c._bitField):s=null,o?null!==s&&c.suppressUnhandledRejections():null!==s?0===(50397184&s)?(c._proxy(this,a),this._values[a]=c):o=0!==(33554432&s)?this._promiseFulfilled(c._value(),a):0!==(16777216&s)?this._promiseRejected(c._reason(),a):this._promiseCancelled(a):o=this._promiseFulfilled(c,a)}o||i._setAsyncGuaranteed()},a.prototype._isResolved=function(){return null===this._values},a.prototype._resolve=function(t){this._values=null,this._promise._fulfill(t)},a.prototype._cancel=function(){!this._isResolved()&&this._promise.isCancellable()&&(this._values=null,this._promise._cancel())},a.prototype._reject=function(t){this._values=null,this._promise._rejectCallback(t,!1)},a.prototype._promiseFulfilled=function(t,e){this._values[e]=t;var n=++this._totalResolved;return n>=this._length?(this._resolve(this._values),!0):!1},a.prototype._promiseCancelled=function(){return this._cancel(),!0},a.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},a.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;nc;c+=2){var u=s[c],p=s[c+1],_=u+e;if(r===E)t[_]=E(u,h,u,p,e,i);else{var d=r(p,function(){return E(u,h,u,p,e,i)});f.notEnumerableProp(d,"__isPromisified__",!0),t[_]=d}}return f.toFastProperties(t),t}function u(t,e,n){return E(t,e,void 0,t,null,n)}var p,h={},f=t("./util"),_=t("./nodeback"),d=f.withAppended,v=f.maybeWrapAsError,y=f.canEvaluate,g=t("./errors").TypeError,m="Async",b={__isPromisified__:!0},w=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],C=new RegExp("^(?:"+w.join("|")+")$"),j=function(t){return f.isIdentifier(t)&&"_"!==t.charAt(0)&&"constructor"!==t},k=function(t){return t.replace(/([$])/,"\\$")},E=y?p:c;e.promisify=function(t,e){if("function"!=typeof t)throw new g("expecting a function but got "+f.classString(t));if(i(t))return t;e=Object(e);var n=void 0===e.context?h:e.context,o=!!e.multiArgs,s=u(t,n,o);return f.copyDescriptors(t,s,r),s},e.promisifyAll=function(t,e){if("function"!=typeof t&&"object"!=typeof t)throw new g("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");e=Object(e);var n=!!e.multiArgs,r=e.suffix;"string"!=typeof r&&(r=m);var i=e.filter;"function"!=typeof i&&(i=j);var o=e.promisifier;if("function"!=typeof o&&(o=E),!f.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var s=f.inheritedDataKeys(t),a=0;ao;++o){var s=r[o];e[o]=t[s],e[o+i]=s}}this.constructor$(e),this._isMap=n,this._init$(void 0,-3)}function s(t){var n,s=r(t);return l(s)?(n=s instanceof e?s._then(e.props,void 0,void 0,void 0,void 0):new o(s).promise(),s instanceof e&&n._propagateFrom(s,2),n):i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}var a,c=t("./util"),l=c.isObject,u=t("./es5");"function"==typeof Map&&(a=Map);var p=function(){function t(t,r){this[e]=t,this[e+n]=r,e++}var e=0,n=0;return function(r){n=r.size,e=0;var i=new Array(2*r.size);return r.forEach(t,i),i}}(),h=function(t){for(var e=new a,n=t.length/2|0,r=0;n>r;++r){var i=t[n+r],o=t[r];e.set(i,o)}return e};c.inherits(o,n),o.prototype._init=function(){},o.prototype._promiseFulfilled=function(t,e){this._values[e]=t;var n=++this._totalResolved;if(n>=this._length){var r;if(this._isMap)r=h(this._values);else{r={};for(var i=this.length(),o=0,s=this.length();s>o;++o)r[this._values[o+i]]=this._values[o]}return this._resolve(r),!0}return!1},o.prototype.shouldCopyValues=function(){return!1},o.prototype.getActualLength=function(t){return t>>1},e.prototype.props=function(){return s(this)},e.props=function(t){return s(t)}}},{"./es5":13,"./util":36}],26:[function(t,e,n){"use strict";function r(t,e,n,r,i){for(var o=0;i>o;++o)n[o+r]=t[o+e],t[o+e]=void 0}function i(t){this._capacity=t,this._length=0,this._front=0}i.prototype._willBeOverCapacity=function(t){return this._capacityh;++h){var _=t[h];(void 0!==_||h in t)&&e.cast(_)._then(u,p,void 0,l,null)}return l}var s=t("./util"),a=function(t){return t.then(function(e){return o(e,t)})};e.race=function(t){return o(t,void 0)},e.prototype.race=function(){return o(this,void 0)}}},{"./util":36}],28:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,s){function a(t,n,r,i){this.constructor$(t);var s=h();this._fn=null===s?n:s.bind(n),void 0!==r&&(r=e.resolve(r),r._attachCancellationCallback(this)),this._initialValue=r,this._currentCancellable=null,this._eachValues=i===o?[]:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function c(t,e){this.isFulfilled()?e._resolve(t):e._reject(t)}function l(t,e,n,i){if("function"!=typeof e)return r("expecting a function but got "+f.classString(e));var o=new a(t,e,n,i);return o.promise()}function u(t){this.accum=t,this.array._gotAccum(t);var n=i(this.value,this.array._promise);return n instanceof e?(this.array._currentCancellable=n,n._then(p,void 0,void 0,this,void 0)):p.call(this,n)}function p(t){var n=this.array,r=n._promise,i=_(n._fn);r._pushContext();var o;o=void 0!==n._eachValues?i.call(r._boundValue(),t,this.index,this.length):i.call(r._boundValue(),this.accum,t,this.index,this.length),o instanceof e&&(n._currentCancellable=o);var a=r._popContext();return s.checkForgottenReturns(o,a,void 0!==n._eachValues?"Promise.each":"Promise.reduce",r),o}var h=e._getDomain,f=t("./util"),_=f.tryCatch;f.inherits(a,n),a.prototype._gotAccum=function(t){void 0!==this._eachValues&&t!==o&&this._eachValues.push(t)},a.prototype._eachComplete=function(t){return this._eachValues.push(t),this._eachValues},a.prototype._init=function(){},a.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},a.prototype.shouldCopyValues=function(){return!1},a.prototype._resolve=function(t){this._promise._resolveCallback(t),this._values=null},a.prototype._resultCancelled=function(t){return t===this._initialValue?this._cancel():void(this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel()))},a.prototype._iterate=function(t){this._values=t;var n,r,i=t.length;if(void 0!==this._initialValue?(n=this._initialValue,r=0):(n=e.resolve(t[0]),r=1),this._currentCancellable=n,!n.isRejected())for(;i>r;++r){var o={accum:null,value:t[r],index:r,length:i,array:this};n=n._then(u,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(c,c,void 0,n,this)},e.prototype.reduce=function(t,e){return l(this,t,e,null)},e.reduce=function(t,e,n,r){return l(t,e,n,r)}}},{"./util":36}],29:[function(t,e,n){"use strict";var r,i=t("./util"),o=function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")};if(i.isNode&&"undefined"==typeof MutationObserver){var s=global.setImmediate,a=process.nextTick;r=i.isRecentNode?function(t){s.call(global,t)}:function(t){a.call(process,t)}}else r="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&window.navigator.standalone?"undefined"!=typeof setImmediate?function(t){setImmediate(t)}:"undefined"!=typeof setTimeout?function(t){setTimeout(t,0)}:o:function(){var t=document.createElement("div"),e={attributes:!0},n=!1,r=document.createElement("div"),i=new MutationObserver(function(){t.classList.toggle("foo"),n=!1});i.observe(r,e);var o=function(){n||(n=!0,r.classList.toggle("foo"))};return function(n){var r=new MutationObserver(function(){r.disconnect(),n()});r.observe(t,e),o()}}();e.exports=r},{"./util":36}],30:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.constructor$(t)}var o=e.PromiseInspection,s=t("./util");s.inherits(i,n),i.prototype._promiseResolved=function(t,e){this._values[t]=e;var n=++this._totalResolved;return n>=this._length?(this._resolve(this._values),!0):!1},i.prototype._promiseFulfilled=function(t,e){var n=new o;return n._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},i.prototype._promiseRejected=function(t,e){var n=new o;return n._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){return r.deprecated(".settle()",".reflect()"),new i(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(t,e){if((0|e)!==e||0>e)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new i(t),o=n.promise();return n.setHowMany(e),n.init(),o}var s=t("./util"),a=t("./errors").RangeError,c=t("./errors").AggregateError,l=s.isArray,u={};s.inherits(i,n),i.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var t=l(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},i.prototype.init=function(){this._initialized=!0,this._init()},i.prototype.setUnwrap=function(){this._unwrap=!0},i.prototype.howMany=function(){return this._howMany},i.prototype.setHowMany=function(t){this._howMany=t},i.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1},i.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},i.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(u),this._checkOutcome())},i.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new c,e=this.length();e0?this._reject(t):this._cancel(),!0}return!1},i.prototype._fulfilled=function(){return this._totalResolved},i.prototype._rejected=function(){return this._values.length-this.length()},i.prototype._addRejected=function(t){this._values.push(t)},i.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},i.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},i.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new a(e)},i.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return o(t,e)},e.prototype.some=function(t){return o(this,t)},e._SomePromiseArray=i}},{"./errors":12,"./util":36}],32:[function(t,e,n){"use strict";e.exports=function(t){function e(t){void 0!==t?(t=t._target(), +this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var n=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=e.prototype.isFulfilled=function(){return 0!==(33554432&this._bitField)},o=e.prototype.isRejected=function(){return 0!==(16777216&this._bitField)},s=e.prototype.isPending=function(){return 0===(50397184&this._bitField)},a=e.prototype.isResolved=function(){return 0!==(50331648&this._bitField)};e.prototype.isCancelled=t.prototype._isCancelled=function(){return 65536===(65536&this._bitField)},t.prototype.isCancelled=function(){return this._target()._isCancelled()},t.prototype.isPending=function(){return s.call(this._target())},t.prototype.isRejected=function(){return o.call(this._target())},t.prototype.isFulfilled=function(){return i.call(this._target())},t.prototype.isResolved=function(){return a.call(this._target())},t.prototype.value=function(){return n.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),r.call(t)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},{}],33:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t,r){if(u(t)){if(t instanceof e)return t;var i=o(t);if(i===l){r&&r._pushContext();var c=e.reject(i.e);return r&&r._popContext(),c}if("function"==typeof i){if(s(t)){var c=new e(n);return t._then(c._fulfill,c._reject,void 0,c,null),c}return a(t,i,r)}}return t}function i(t){return t.then}function o(t){try{return i(t)}catch(e){return l.e=e,l}}function s(t){return p.call(t,"_promise0")}function a(t,r,i){function o(t){a&&(a._resolveCallback(t),a=null)}function s(t){a&&(a._rejectCallback(t,p,!0),a=null)}var a=new e(n),u=a;i&&i._pushContext(),a._captureStackTrace(),i&&i._popContext();var p=!0,h=c.tryCatch(r).call(t,o,s);return p=!1,a&&h===l&&(a._rejectCallback(h.e,!0,!0),a=null),u}var c=t("./util"),l=c.errorObj,u=c.isObject,p={}.hasOwnProperty;return r}},{"./util":36}],34:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.handle=t}function o(t){return clearTimeout(this.handle),t}function s(t){throw clearTimeout(this.handle),t}var a=t("./util"),c=e.TimeoutError;i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var l=function(t){return u(+this).thenReturn(t)},u=e.delay=function(t,o){var s,a;return void 0!==o?(s=e.resolve(o)._then(l,null,null,t,void 0),r.cancellation()&&o instanceof e&&s._setOnCancel(o)):(s=new e(n),a=setTimeout(function(){s._fulfill()},+t),r.cancellation()&&s._setOnCancel(new i(a))),s._setAsyncGuaranteed(),s};e.prototype.delay=function(t){return u(t,this)};var p=function(t,e,n){var r;r="string"!=typeof e?e instanceof Error?e:new c("operation timed out"):new c(e),a.markAsOriginatingFromRejection(r),t._attachExtraTrace(r),t._reject(r),null!=n&&n.cancel()};e.prototype.timeout=function(t,e){t=+t;var n,a,c=new i(setTimeout(function(){n.isPending()&&p(n,e,a)},t));return r.cancellation()?(a=this.then(),n=a._then(o,s,void 0,c,void 0),n._setOnCancel(c)):n=this._then(o,s,void 0,c,void 0),n}}},{"./util":36}],35:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,s){function a(t){setTimeout(function(){throw t},0)}function c(t){var e=r(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function l(t,n){function i(){if(s>=l)return u._fulfill();var o=c(t[s++]);if(o instanceof e&&o._isDisposable()){try{o=r(o._getDisposer().tryDispose(n),t.promise)}catch(p){return a(p)}if(o instanceof e)return o._then(i,a,null,null,null)}i()}var s=0,l=t.length,u=new e(o);return i(),u}function u(t,e,n){this._data=t,this._promise=e,this._context=n}function p(t,e,n){this.constructor$(t,e,n)}function h(t){return u.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}function f(t){this.length=t,this.promise=null,this[t-1]=null}var _=t("./util"),d=t("./errors").TypeError,v=t("./util").inherits,y=_.errorObj,g=_.tryCatch;u.prototype.data=function(){return this._data},u.prototype.promise=function(){return this._promise},u.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():null},u.prototype.tryDispose=function(t){var e=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=null!==e?this.doDispose(e,t):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},u.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},v(p,u),p.prototype.doDispose=function(t,e){var n=this.data();return n.call(t,t,e)},f.prototype._resultCancelled=function(){for(var t=this.length,n=0;t>n;++n){var r=this[n];r instanceof e&&r.cancel()}},e.using=function(){var t=arguments.length;if(2>t)return n("you must pass at least 2 arguments to Promise.using");var i=arguments[t-1];if("function"!=typeof i)return n("expecting a function but got "+_.classString(i));var o,a=!0;2===t&&Array.isArray(arguments[0])?(o=arguments[0],t=o.length,a=!1):(o=arguments,t--);for(var c=new f(t),p=0;t>p;++p){var d=o[p];if(u.isDisposer(d)){var v=d;d=d.promise(),d._setDisposable(v)}else{var m=r(d);m instanceof e&&(d=m._then(h,null,null,{resources:c,index:p},void 0))}c[p]=d}for(var b=new Array(c.length),p=0;p0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},e.prototype.disposer=function(t){if("function"==typeof t)return new p(t,this,i());throw new d}}},{"./errors":12,"./util":36}],36:[function(t,e,n){"use strict";function r(){try{var t=x;return x=null,t.apply(this,arguments)}catch(e){return F.e=e,F}}function i(t){return x=t,r}function o(t){return null==t||t===!0||t===!1||"string"==typeof t||"number"==typeof t}function s(t){return"function"==typeof t||"object"==typeof t&&null!==t}function a(t){return o(t)?new Error(v(t)):t}function c(t,e){var n,r=t.length,i=new Array(r+1);for(n=0;r>n;++n)i[n]=t[n];return i[n]=e,i}function l(t,e,n){if(!k.isES5)return{}.hasOwnProperty.call(t,e)?t[e]:void 0;var r=Object.getOwnPropertyDescriptor(t,e);return null!=r?null==r.get&&null==r.set?r.value:n:void 0}function u(t,e,n){if(o(t))return t;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return k.defineProperty(t,e,r),t}function p(t){throw t}function h(t){try{if("function"==typeof t){var e=k.names(t.prototype),n=k.isES5&&e.length>1,r=e.length>0&&!(1===e.length&&"constructor"===e[0]),i=O.test(t+"")&&k.names(t).length>0;if(n||r||i)return!0}return!1}catch(o){return!1}}function f(t){function e(){}e.prototype=t;for(var n=8;n--;)new e;return t}function _(t){return S.test(t)}function d(t,e,n){for(var r=new Array(t),i=0;t>i;++i)r[i]=e+i+n;return r}function v(t){try{return t+""}catch(e){return"[no string representation]"}}function y(t){return null!==t&&"object"==typeof t&&"string"==typeof t.message&&"string"==typeof t.name}function g(t){try{u(t,"isOperational",!0)}catch(e){}}function m(t){return null==t?!1:t instanceof Error.__BluebirdErrorTypes__.OperationalError||t.isOperational===!0}function b(t){return y(t)&&k.propertyIsWritable(t,"stack")}function w(t){return{}.toString.call(t)}function C(t,e,n){for(var r=k.names(t),i=0;i10||t[0]>0}(),L.isNode&&L.toFastProperties(process);try{throw new Error}catch(H){L.lastLineError=H}e.exports=L},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise); \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/lib/dragonBones.min.js b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/lib/dragonBones.min.js new file mode 100644 index 000000000..804b45a56 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/lib/dragonBones.min.js @@ -0,0 +1 @@ +"use strict";var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(e.hasOwnProperty(i))t[i]=e[i]};return function(e,i){t(e,i);function a(){this.constructor=e}e.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}();var dragonBones;(function(t){})(dragonBones||(dragonBones={}));var dragonBones;(function(t){var e=function(){function e(i){this._clock=new t.WorldClock;this._events=[];this._objects=[];this._eventManager=null;this._eventManager=i;console.info("DragonBones: "+e.VERSION+"\nWebsite: http://www.dragonbones.com/\nSource: http://www.github.com/dragonbones/")}e.prototype.advanceTime=function(e){if(this._objects.length>0){for(var i=0,a=this._objects;i0){for(var n=0;ni){r.length=i}t._maxCountMap[a]=i}else{t._defaultMaxCount=i;for(var a in t._poolsMap){var r=t._poolsMap[a];if(r.length>i){r.length=i}if(a in t._maxCountMap){t._maxCountMap[a]=i}}}};t.clearPool=function(e){if(e===void 0){e=null}if(e!==null){var i=String(e);var a=i in t._poolsMap?t._poolsMap[i]:null;if(a!==null&&a.length>0){a.length=0}}else{for(var r in t._poolsMap){var a=t._poolsMap[r];a.length=0}}};t.borrowObject=function(e){var i=String(e);var a=i in t._poolsMap?t._poolsMap[i]:null;if(a!==null&&a.length>0){var r=a.pop();r._isInPool=false;return r}var n=new e;n._onClear();return n};t.prototype.returnToPool=function(){this._onClear();t._returnObject(this)};t._hashCode=0;t._defaultMaxCount=3e3;t._maxCountMap={};t._poolsMap={};return t}();t.BaseObject=e})(dragonBones||(dragonBones={}));var dragonBones;(function(t){var e=function(){function t(t,e,i,a,r,n){if(t===void 0){t=1}if(e===void 0){e=0}if(i===void 0){i=0}if(a===void 0){a=1}if(r===void 0){r=0}if(n===void 0){n=0}this.a=t;this.b=e;this.c=i;this.d=a;this.tx=r;this.ty=n}t.prototype.toString=function(){return"[object dragonBones.Matrix] a:"+this.a+" b:"+this.b+" c:"+this.c+" d:"+this.d+" tx:"+this.tx+" ty:"+this.ty};t.prototype.copyFrom=function(t){this.a=t.a;this.b=t.b;this.c=t.c;this.d=t.d;this.tx=t.tx;this.ty=t.ty;return this};t.prototype.copyFromArray=function(t,e){if(e===void 0){e=0}this.a=t[e];this.b=t[e+1];this.c=t[e+2];this.d=t[e+3];this.tx=t[e+4];this.ty=t[e+5];return this};t.prototype.identity=function(){this.a=this.d=1;this.b=this.c=0;this.tx=this.ty=0;return this};t.prototype.concat=function(t){var e=this.a*t.a;var i=0;var a=0;var r=this.d*t.d;var n=this.tx*t.a+t.tx;var s=this.ty*t.d+t.ty;if(this.b!==0||this.c!==0){e+=this.b*t.c;i+=this.b*t.d;a+=this.c*t.a;r+=this.c*t.b}if(t.b!==0||t.c!==0){i+=this.a*t.b;a+=this.d*t.c;n+=this.ty*t.c;s+=this.tx*t.b}this.a=e;this.b=i;this.c=a;this.d=r;this.tx=n;this.ty=s;return this};t.prototype.invert=function(){var t=this.a;var e=this.b;var i=this.c;var a=this.d;var r=this.tx;var n=this.ty;if(e===0&&i===0){this.b=this.c=0;if(t===0||a===0){this.a=this.b=this.tx=this.ty=0}else{t=this.a=1/t;a=this.d=1/a;this.tx=-t*r;this.ty=-a*n}return this}var s=t*a-e*i;if(s===0){this.a=this.d=1;this.b=this.c=0;this.tx=this.ty=0;return this}s=1/s;var o=this.a=a*s;e=this.b=-e*s;i=this.c=-i*s;a=this.d=t*s;this.tx=-(o*r+i*n);this.ty=-(e*r+a*n);return this};t.prototype.transformPoint=function(t,e,i,a){if(a===void 0){a=false}i.x=this.a*t+this.c*e;i.y=this.b*t+this.d*e;if(!a){i.x+=this.tx;i.y+=this.ty}};t.prototype.transformRectangle=function(t,e){if(e===void 0){e=false}var i=this.a;var a=this.b;var r=this.c;var n=this.d;var s=e?0:this.tx;var o=e?0:this.ty;var l=t.x;var h=t.y;var u=l+t.width;var f=h+t.height;var _=i*l+r*h+s;var m=a*l+n*h+o;var p=i*u+r*h+s;var c=a*u+n*h+o;var d=i*u+r*f+s;var y=a*u+n*f+o;var v=i*l+r*f+s;var g=a*l+n*f+o;var b=0;if(_>p){b=_;_=p;p=b}if(d>v){b=d;d=v;v=b}t.x=Math.floor(_v?p:v)-t.x);if(m>c){b=m;m=c;c=b}if(y>g){b=y;y=g;g=b}t.y=Math.floor(mg?c:g)-t.y)};return t}();t.Matrix=e})(dragonBones||(dragonBones={}));var dragonBones;(function(t){var e=function(){function t(t,e,i,a,r,n){if(t===void 0){t=0}if(e===void 0){e=0}if(i===void 0){i=0}if(a===void 0){a=0}if(r===void 0){r=1}if(n===void 0){n=1}this.x=t;this.y=e;this.skew=i;this.rotation=a;this.scaleX=r;this.scaleY=n}t.normalizeRadian=function(t){t=(t+Math.PI)%(Math.PI*2);t+=t>0?-Math.PI:Math.PI;return t};t.prototype.toString=function(){return"[object dragonBones.Transform] x:"+this.x+" y:"+this.y+" skewX:"+this.skew*180/Math.PI+" skewY:"+this.rotation*180/Math.PI+" scaleX:"+this.scaleX+" scaleY:"+this.scaleY};t.prototype.copyFrom=function(t){this.x=t.x;this.y=t.y;this.skew=t.skew;this.rotation=t.rotation;this.scaleX=t.scaleX;this.scaleY=t.scaleY;return this};t.prototype.identity=function(){this.x=this.y=0;this.skew=this.rotation=0;this.scaleX=this.scaleY=1;return this};t.prototype.add=function(t){this.x+=t.x;this.y+=t.y;this.skew+=t.skew;this.rotation+=t.rotation;this.scaleX*=t.scaleX;this.scaleY*=t.scaleY;return this};t.prototype.minus=function(t){this.x-=t.x;this.y-=t.y;this.skew-=t.skew;this.rotation-=t.rotation;this.scaleX/=t.scaleX;this.scaleY/=t.scaleY;return this};t.prototype.fromMatrix=function(e){var i=this.scaleX,a=this.scaleY;var r=t.PI_Q;this.x=e.tx;this.y=e.ty;this.rotation=Math.atan(e.b/e.a);var n=Math.atan(-e.c/e.d);this.scaleX=this.rotation>-r&&this.rotation-r&&n=0&&this.scaleX<0){this.scaleX=-this.scaleX;this.rotation=this.rotation-Math.PI}if(a>=0&&this.scaleY<0){this.scaleY=-this.scaleY;n=n-Math.PI}this.skew=n-this.rotation;return this};t.prototype.toMatrix=function(t){if(this.skew!==0||this.rotation!==0){t.a=Math.cos(this.rotation);t.b=Math.sin(this.rotation);if(this.skew===0){t.c=-t.b;t.d=t.a}else{t.c=-Math.sin(this.skew+this.rotation);t.d=Math.cos(this.skew+this.rotation)}if(this.scaleX!==1){t.a*=this.scaleX;t.b*=this.scaleX}if(this.scaleY!==1){t.c*=this.scaleY;t.d*=this.scaleY}}else{t.a=this.scaleX;t.b=0;t.c=0;t.d=this.scaleY}t.tx=this.x;t.ty=this.y;return this};t.PI_D=Math.PI*2;t.PI_H=Math.PI/2;t.PI_Q=Math.PI/4;t.RAD_DEG=180/Math.PI;t.DEG_RAD=Math.PI/180;return t}();t.Transform=e})(dragonBones||(dragonBones={}));var dragonBones;(function(t){var e=function(){function t(t,e,i,a,r,n,s,o){if(t===void 0){t=1}if(e===void 0){e=1}if(i===void 0){i=1}if(a===void 0){a=1}if(r===void 0){r=0}if(n===void 0){n=0}if(s===void 0){s=0}if(o===void 0){o=0}this.alphaMultiplier=t;this.redMultiplier=e;this.greenMultiplier=i;this.blueMultiplier=a;this.alphaOffset=r;this.redOffset=n;this.greenOffset=s;this.blueOffset=o}t.prototype.copyFrom=function(t){this.alphaMultiplier=t.alphaMultiplier;this.redMultiplier=t.redMultiplier;this.greenMultiplier=t.greenMultiplier;this.blueMultiplier=t.blueMultiplier;this.alphaOffset=t.alphaOffset;this.redOffset=t.redOffset;this.greenOffset=t.greenOffset;this.blueOffset=t.blueOffset};t.prototype.identity=function(){this.alphaMultiplier=this.redMultiplier=this.greenMultiplier=this.blueMultiplier=1;this.alphaOffset=this.redOffset=this.greenOffset=this.blueOffset=0};return t}();t.ColorTransform=e})(dragonBones||(dragonBones={}));var dragonBones;(function(t){var e=function(){function t(t,e){if(t===void 0){t=0}if(e===void 0){e=0}this.x=t;this.y=e}t.prototype.copyFrom=function(t){this.x=t.x;this.y=t.y};t.prototype.clear=function(){this.x=this.y=0};return t}();t.Point=e})(dragonBones||(dragonBones={}));var dragonBones;(function(t){var e=function(){function t(t,e,i,a){if(t===void 0){t=0}if(e===void 0){e=0}if(i===void 0){i=0}if(a===void 0){a=0}this.x=t;this.y=e;this.width=i;this.height=a}t.prototype.copyFrom=function(t){this.x=t.x;this.y=t.y;this.width=t.width;this.height=t.height};t.prototype.clear=function(){this.x=this.y=0;this.width=this.height=0};return t}();t.Rectangle=e})(dragonBones||(dragonBones={}));var dragonBones;(function(t){var e=function(t){__extends(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.ints=[];e.floats=[];e.strings=[];return e}e.toString=function(){return"[class dragonBones.UserData]"};e.prototype._onClear=function(){this.ints.length=0;this.floats.length=0;this.strings.length=0};e.prototype.addInt=function(t){this.ints.push(t)};e.prototype.addFloat=function(t){this.floats.push(t)};e.prototype.addString=function(t){this.strings.push(t)};e.prototype.getInt=function(t){if(t===void 0){t=0}return t>=0&&t=0&&t=0&&t=t){i=0}if(this.sortedBones.indexOf(r)>=0){continue}var n=false;for(var s in this.constraints){var o=this.constraints[s];if(o.bone===r&&this.sortedBones.indexOf(o.target)<0){n=true;break}}if(n){continue}if(r.parent!==null&&this.sortedBones.indexOf(r.parent)<0){continue}this.sortedBones.push(r);a++}};i.prototype.cacheFrames=function(t){if(this.cacheFrameRate>0){return}this.cacheFrameRate=t;for(var e in this.animations){this.animations[e].cacheFrames(this.cacheFrameRate)}};i.prototype.setCacheFrame=function(t,e){var i=this.parent.cachedFrames;var a=i.length;i.length+=10;i[a]=t.a;i[a+1]=t.b;i[a+2]=t.c;i[a+3]=t.d;i[a+4]=t.tx;i[a+5]=t.ty;i[a+6]=e.rotation;i[a+7]=e.skew;i[a+8]=e.scaleX;i[a+9]=e.scaleY;return a};i.prototype.getCacheFrame=function(t,e,i){var a=this.parent.cachedFrames;t.a=a[i];t.b=a[i+1];t.c=a[i+2];t.d=a[i+3];t.tx=a[i+4];t.ty=a[i+5];e.rotation=a[i+6];e.skew=a[i+7];e.scaleX=a[i+8];e.scaleY=a[i+9];e.x=t.tx;e.y=t.ty};i.prototype.addBone=function(t){if(t.name in this.bones){console.warn("Same bone: "+t.name);return}this.bones[t.name]=t;this.sortedBones.push(t)};i.prototype.addSlot=function(t){if(t.name in this.slots){console.warn("Same slot: "+t.name);return}this.slots[t.name]=t;this.sortedSlots.push(t)};i.prototype.addConstraint=function(t){if(t.name in this.constraints){console.warn("Same constraint: "+t.name);return}this.constraints[t.name]=t};i.prototype.addSkin=function(t){if(t.name in this.skins){console.warn("Same skin: "+t.name);return}t.parent=this;this.skins[t.name]=t;if(this.defaultSkin===null){this.defaultSkin=t}if(t.name==="default"){this.defaultSkin=t}};i.prototype.addAnimation=function(t){if(t.name in this.animations){console.warn("Same animation: "+t.name);return}t.parent=this;this.animations[t.name]=t;this.animationNames.push(t.name);if(this.defaultAnimation===null){this.defaultAnimation=t}};i.prototype.addAction=function(t,e){if(e){this.defaultActions.push(t)}else{this.actions.push(t)}};i.prototype.getBone=function(t){return t in this.bones?this.bones[t]:null};i.prototype.getSlot=function(t){return t in this.slots?this.slots[t]:null};i.prototype.getConstraint=function(t){return t in this.constraints?this.constraints[t]:null};i.prototype.getSkin=function(t){return t in this.skins?this.skins[t]:null};i.prototype.getAnimation=function(t){return t in this.animations?this.animations[t]:null};return i}(t.BaseObject);t.ArmatureData=e;var i=function(e){__extends(i,e);function i(){var i=e!==null&&e.apply(this,arguments)||this;i.transform=new t.Transform;i.userData=null;return i}i.toString=function(){return"[class dragonBones.BoneData]"};i.prototype._onClear=function(){if(this.userData!==null){this.userData.returnToPool()}this.inheritTranslation=false;this.inheritRotation=false;this.inheritScale=false;this.inheritReflection=false;this.length=0;this.name="";this.transform.identity();this.userData=null;this.parent=null};return i}(t.BaseObject);t.BoneData=i;var a=function(e){__extends(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;t.color=null;t.userData=null;return t}i.createColor=function(){return new t.ColorTransform};i.toString=function(){return"[class dragonBones.SlotData]"};i.prototype._onClear=function(){if(this.userData!==null){this.userData.returnToPool()}this.blendMode=0;this.displayIndex=0;this.zOrder=0;this.name="";this.color=null;this.userData=null;this.parent=null};i.DEFAULT_COLOR=new t.ColorTransform;return i}(t.BaseObject);t.SlotData=a})(dragonBones||(dragonBones={}));var dragonBones;(function(t){var e=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.toString=function(){return"[class dragonBones.CanvasData]"};e.prototype._onClear=function(){this.hasBackground=false;this.color=0;this.x=0;this.y=0;this.width=0;this.height=0};return e}(t.BaseObject);t.CanvasData=e})(dragonBones||(dragonBones={}));var dragonBones;(function(t){var e=function(t){__extends(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.displays={};return e}e.toString=function(){return"[class dragonBones.SkinData]"};e.prototype._onClear=function(){for(var t in this.displays){var e=this.displays[t];for(var i=0,a=e;ir){s|=2}if(en){s|=8}return s};e.rectangleIntersectsSegment=function(t,i,a,r,n,s,o,l,h,u,f){if(h===void 0){h=null}if(u===void 0){u=null}if(f===void 0){f=null}var _=t>n&&ts&&in&&as&&r=-i&&t<=i){var a=this.height*.5;if(e>=-a&&e<=a){return true}}return false};e.prototype.intersectsSegment=function(t,i,a,r,n,s,o){if(n===void 0){n=null}if(s===void 0){s=null}if(o===void 0){o=null}var l=this.width*.5;var h=this.height*.5;var u=e.rectangleIntersectsSegment(t,i,a,r,-l,-h,l,h,n,s,o);return u};return e}(e);t.RectangleBoundingBoxData=i;var a=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.toString=function(){return"[class dragonBones.EllipseData]"};e.ellipseIntersectsSegment=function(t,e,i,a,r,n,s,o,l,h,u){if(l===void 0){l=null}if(h===void 0){h=null}if(u===void 0){u=null}var f=s/o;var _=f*f;e*=f;a*=f;var m=i-t;var p=a-e;var c=Math.sqrt(m*m+p*p);var d=m/c;var y=p/c;var v=(r-t)*d+(n-e)*y;var g=v*v;var b=t*t+e*e;var T=s*s;var A=T-b+g;var D=0;if(A>=0){var O=Math.sqrt(A);var S=v-O;var x=v+O;var B=S<0?-1:S<=c?0:1;var P=x<0?-1:x<=c?0:1;var M=B*P;if(M<0){return-1}else if(M===0){if(B===-1){D=2;i=t+x*d;a=(e+x*y)/f;if(l!==null){l.x=i;l.y=a}if(h!==null){h.x=i;h.y=a}if(u!==null){u.x=Math.atan2(a/T*_,i/T);u.y=u.x+Math.PI}}else if(P===1){D=1;t=t+S*d;e=(e+S*y)/f;if(l!==null){l.x=t;l.y=e}if(h!==null){h.x=t;h.y=e}if(u!==null){u.x=Math.atan2(e/T*_,t/T);u.y=u.x+Math.PI}}else{D=3;if(l!==null){l.x=t+S*d;l.y=(e+S*y)/f;if(u!==null){u.x=Math.atan2(l.y/T*_,l.x/T)}}if(h!==null){h.x=t+x*d;h.y=(e+x*y)/f;if(u!==null){u.y=Math.atan2(h.y/T*_,h.x/T)}}}}}return D};e.prototype._onClear=function(){t.prototype._onClear.call(this);this.type=1};e.prototype.containsPoint=function(t,e){var i=this.width*.5;if(t>=-i&&t<=i){var a=this.height*.5;if(e>=-a&&e<=a){e*=i/a;return Math.sqrt(t*t+e*e)<=i}}return false};e.prototype.intersectsSegment=function(t,i,a,r,n,s,o){if(n===void 0){n=null}if(s===void 0){s=null}if(o===void 0){o=null}var l=e.ellipseIntersectsSegment(t,i,a,r,0,0,this.width*.5,this.height*.5,n,s,o);return l};return e}(e);t.EllipseBoundingBoxData=a;var r=function(t){__extends(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.vertices=[];e.weight=null;return e}e.toString=function(){return"[class dragonBones.PolygonBoundingBoxData]"};e.polygonIntersectsSegment=function(t,e,i,a,r,n,s,o){if(n===void 0){n=null}if(s===void 0){s=null}if(o===void 0){o=null}if(t===i){t=i+1e-6}if(e===a){e=a+1e-6}var l=r.length;var h=t-i;var u=e-a;var f=t*a-e*i;var _=0;var m=r[l-2];var p=r[l-1];var c=0;var d=0;var y=0;var v=0;var g=0;var b=0;for(var T=0;T=m&&P<=A||P>=A&&P<=m)&&(h===0||P>=t&&P<=i||P>=i&&P<=t)){var M=(f*S-u*x)/B;if((M>=p&&M<=D||M>=D&&M<=p)&&(u===0||M>=e&&M<=a||M>=a&&M<=e)){if(s!==null){var E=P-t;if(E<0){E=-E}if(_===0){c=E;d=E;y=P;v=M;g=P;b=M;if(o!==null){o.x=Math.atan2(D-p,A-m)-Math.PI*.5;o.y=o.x}}else{if(Ed){d=E;g=P;b=M;if(o!==null){o.y=Math.atan2(D-p,A-m)-Math.PI*.5}}}_++}else{y=P;v=M;g=P;b=M;_++;if(o!==null){o.x=Math.atan2(D-p,A-m)-Math.PI*.5;o.y=o.x}break}}}m=A;p=D}if(_===1){if(n!==null){n.x=y;n.y=v}if(s!==null){s.x=y;s.y=v}if(o!==null){o.y=o.x+Math.PI}}else if(_>1){_++;if(n!==null){n.x=y;n.y=v}if(s!==null){s.x=g;s.y=b}}return _};e.prototype._onClear=function(){t.prototype._onClear.call(this);if(this.weight!==null){this.weight.returnToPool()}this.type=2;this.x=0;this.y=0;this.vertices.length=0;this.weight=null};e.prototype.containsPoint=function(t,e){var i=false;if(t>=this.x&&t<=this.width&&e>=this.y&&e<=this.height){for(var a=0,r=this.vertices.length,n=r-2;a=e||s=e){var l=this.vertices[n];var h=this.vertices[a];if((e-o)*(l-h)/(s-o)+h0){return}this.cacheFrameRate=Math.max(Math.ceil(t*this.scale),1);var e=Math.ceil(this.cacheFrameRate*this.duration)+1;this.cachedFrames.length=e;for(var i=0,a=this.cacheFrames.length;i=0};e.prototype.addBoneMask=function(t,e,i){if(i===void 0){i=true}var a=t.getBone(e);if(a===null){return}if(this.boneMask.indexOf(e)<0){this.boneMask.push(e)}if(i){for(var r=0,n=t.getBones();r=0){this.boneMask.splice(a,1)}if(i){var r=t.getBone(e);if(r!==null){if(this.boneMask.length>0){for(var n=0,s=t.getBones();n=0&&r.contains(o)){this.boneMask.splice(l,1)}}}else{for(var h=0,u=t.getBones();he._zOrder?1:-1};i.prototype._onClear=function(){if(this._clock!==null){this._clock.remove(this)}for(var t=0,e=this._bones;t=t){i=0}if(this._bones.indexOf(r)>=0){continue}if(r._hasConstraint){var n=false;for(var s=0,o=this._constraints;s=n){continue}var o=i[s];var l=this.getSlot(o.name);if(l!==null){l._setZorder(r)}}this._slotsDirty=true;this._zOrderDirty=!a}};i.prototype._addBoneToBoneList=function(t){if(this._bones.indexOf(t)<0){this._bonesDirty=true;this._bones.push(t)}};i.prototype._removeBoneFromBoneList=function(t){var e=this._bones.indexOf(t);if(e>=0){this._bones.splice(e,1)}};i.prototype._addSlotToSlotList=function(t){if(this._slots.indexOf(t)<0){this._slotsDirty=true;this._slots.push(t)}};i.prototype._removeSlotFromSlotList=function(t){var e=this._slots.indexOf(t);if(e>=0){this._slots.splice(e,1)}};i.prototype._bufferAction=function(t,e){if(this._actions.indexOf(t)<0){if(e){this._actions.push(t)}else{this._actions.unshift(t)}}};i.prototype.dispose=function(){if(this._armatureData!==null){this._lockUpdate=true;this._dragonBones.bufferObject(this)}};i.prototype.init=function(e,i,a,r){if(this._armatureData!==null){return}this._armatureData=e;this._animation=t.BaseObject.borrowObject(t.Animation);this._proxy=i;this._display=a;this._dragonBones=r;this._proxy.dbInit(this);this._animation.init(this);this._animation.animations=this._armatureData.animations};i.prototype.advanceTime=function(t){if(this._lockUpdate){return}if(this._armatureData===null){console.warn("The armature has been disposed.");return}else if(this._armatureData.parent===null){console.warn("The armature data has been disposed.\nPlease make sure dispose armature before call factory.clear().");return}var e=this._cacheFrameIndex;this._animation.advanceTime(t);if(this._bonesDirty){this._bonesDirty=false;this._sortBones()}if(this._slotsDirty){this._slotsDirty=false;this._sortSlots()}if(this._cacheFrameIndex<0||this._cacheFrameIndex!==e){var i=0,a=0;for(i=0,a=this._bones.length;i0){this._lockUpdate=true;for(var r=0,n=this._actions;r0){var i=this.getBone(t);if(i!==null){i.invalidUpdate();if(e){for(var a=0,r=this._slots;a0){if(r!==null||n!==null){if(r!==null){var A=o?r.y-e:r.x-t;if(A<0){A=-A}if(d===null||Ah){h=A;_=n.x;m=n.y;y=b;if(s!==null){c=s.y}}}}else{d=b;break}}}if(d!==null&&r!==null){r.x=u;r.y=f;if(s!==null){s.x=p}}if(y!==null&&n!==null){n.x=_;n.y=m;if(s!==null){s.y=c}}return d};i.prototype.getBone=function(t){for(var e=0,i=this._bones;e0?this.getBone(e):null)};i.prototype.addSlot=function(t,e){var i=this.getBone(e);console.assert(t!==null&&i!==null);t._setArmature(this);t._setParent(i)};i.prototype.addConstraint=function(t){if(this._constraints.indexOf(t)<0){this._constraints.push(t)}};i.prototype.removeBone=function(t){console.assert(t!==null&&t.armature===this);t._setParent(null);t._setArmature(null)};i.prototype.removeSlot=function(t){console.assert(t!==null&&t.armature===this);t._setParent(null);t._setArmature(null)};i.prototype.getBones=function(){return this._bones};i.prototype.getSlots=function(){return this._slots};Object.defineProperty(i.prototype,"flipX",{get:function(){return this._flipX},set:function(t){if(this._flipX===t){return}this._flipX=t;this.invalidUpdate()},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"flipY",{get:function(){return this._flipY},set:function(t){if(this._flipY===t){return}this._flipY=t;this.invalidUpdate()},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"cacheFrameRate",{get:function(){return this._armatureData.cacheFrameRate},set:function(t){if(this._armatureData.cacheFrameRate!==t){this._armatureData.cacheFrames(t);for(var e=0,i=this._slots;e=0&&this._cachedFrameIndices!==null){var e=this._cachedFrameIndices[t];if(e>=0&&this._cachedFrameIndex===e){this._transformDirty=false}else if(e>=0){this._transformDirty=true;this._cachedFrameIndex=e}else{if(this._hasConstraint){for(var i=0,a=this._armature._constraints;i=0){this._transformDirty=false;this._cachedFrameIndices[t]=this._cachedFrameIndex}else{this._transformDirty=true;this._cachedFrameIndex=-1}}}else{if(this._hasConstraint){for(var n=0,s=this._armature._constraints;n=0;if(this._localDirty){this._updateGlobalTransformMatrix(o)}if(o&&this._cachedFrameIndices!==null){this._cachedFrameIndex=this._cachedFrameIndices[t]=this._armature._armatureData.setCacheFrame(this.globalTransformMatrix,this.global)}}else{this._armature._armatureData.getCacheFrame(this.globalTransformMatrix,this.global,this._cachedFrameIndex)}}else if(this._childrenTransformDirty){this._childrenTransformDirty=false}this._localDirty=true};i.prototype.updateByConstraint=function(){if(this._localDirty){this._localDirty=false;if(this._transformDirty||this._parent!==null&&this._parent._childrenTransformDirty){this._updateGlobalTransformMatrix(true)}this._transformDirty=true}};i.prototype.invalidUpdate=function(){this._transformDirty=true};i.prototype.contains=function(t){if(t===this){return false}var e=t;while(e!==this&&e!==null){e=e.parent}return e===this};Object.defineProperty(i.prototype,"boneData",{get:function(){return this._boneData},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"visible",{get:function(){return this._visible},set:function(t){if(this._visible===t){return}this._visible=t;for(var e=0,i=this._armature.getSlots();e=0&&this._rawDisplayDatas!==null&&this._displayIndex=0&&this._displayIndex=0&&this._displayIndex=0&&this._rawDisplayDatas!==null&&this._displayIndex0){for(var o=0,l=n;o0){if(this._displayList.length!==e.length){this._displayList.length=e.length}for(var i=0,a=e.length;i0){this._displayList.length=0}if(this._displayIndex>=0&&this._displayIndex=0&&this._cachedFrameIndices!==null){var e=this._cachedFrameIndices[t];if(e>=0&&this._cachedFrameIndex===e){this._transformDirty=false}else if(e>=0){this._transformDirty=true;this._cachedFrameIndex=e}else if(this._transformDirty||this._parent._childrenTransformDirty){this._transformDirty=true;this._cachedFrameIndex=-1}else if(this._cachedFrameIndex>=0){this._transformDirty=false;this._cachedFrameIndices[t]=this._cachedFrameIndex}else{this._transformDirty=true;this._cachedFrameIndex=-1}}else if(this._transformDirty||this._parent._childrenTransformDirty){t=-1;this._transformDirty=true;this._cachedFrameIndex=-1}if(this._display===null){return}if(this._visibleDirty){this._visibleDirty=false;this._updateVisible()}if(this._blendModeDirty){this._blendModeDirty=false;this._updateBlendMode()}if(this._colorDirty){this._colorDirty=false;this._updateColor()}if(this._meshData!==null&&this._display===this._meshDisplay){var i=this._meshData.weight!==null;if(this._meshDirty||i&&this._isMeshBonesUpdate()){this._meshDirty=false;this._updateMesh()}if(i){if(this._transformDirty){this._transformDirty=false;this._updateTransform(true)}return}}if(this._transformDirty){this._transformDirty=false;if(this._cachedFrameIndex<0){var a=t>=0;this._updateGlobalTransformMatrix(a);if(a&&this._cachedFrameIndices!==null){this._cachedFrameIndex=this._cachedFrameIndices[t]=this._armature._armatureData.setCacheFrame(this.globalTransformMatrix,this.global)}}else{this._armature._armatureData.getCacheFrame(this.globalTransformMatrix,this.global,this._cachedFrameIndex)}this._updateTransform(false)}};i.prototype.updateTransformAndMatrix=function(){if(this._transformDirty){this._transformDirty=false;this._updateGlobalTransformMatrix(false)}};i.prototype.replaceDisplayData=function(t,e){if(e===void 0){e=-1}if(e<0){if(this._displayIndex<0){e=0}else{e=this._displayIndex}}if(this._displayDatas.length<=e){this._displayDatas.length=e+1;for(var i=0,a=this._displayDatas.length;i0){if(l===1||l===2){if(n!==null){this.globalTransformMatrix.transformPoint(n.x,n.y,n);if(s!==null){s.x=n.x;s.y=n.y}}else if(s!==null){this.globalTransformMatrix.transformPoint(s.x,s.y,s)}}else{if(n!==null){this.globalTransformMatrix.transformPoint(n.x,n.y,n)}if(s!==null){this.globalTransformMatrix.transformPoint(s.x,s.y,s)}}if(o!==null){this.globalTransformMatrix.transformPoint(Math.cos(o.x),Math.sin(o.x),i._helpPoint,true);o.x=Math.atan2(i._helpPoint.y,i._helpPoint.x);this.globalTransformMatrix.transformPoint(Math.cos(o.y),Math.sin(o.y),i._helpPoint,true);o.y=Math.atan2(i._helpPoint.y,i._helpPoint.x)}}return l};i.prototype.invalidUpdate=function(){this._displayDirty=true;this._transformDirty=true};Object.defineProperty(i.prototype,"visible",{get:function(){return this._visible},set:function(t){if(this._visible===t){return}this._visible=t;this._updateVisible()},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"displayIndex",{get:function(){return this._displayIndex},set:function(t){if(this._setDisplayIndex(t)){this.update(-1)}},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"name",{get:function(){return this._slotData.name},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"displayList",{get:function(){return this._displayList.concat()},set:function(e){var i=this._displayList.concat();var a=new Array;if(this._setDisplayList(e)){this.update(-1)}for(var r=0,n=i;r0){this._animatebles[e-i]=r;this._animatebles[e]=null}r.advanceTime(t)}else{i++}}if(i>0){a=this._animatebles.length;for(;e=0){this._animatebles[e]=null;t.clock=null}};t.prototype.clear=function(){for(var t=0,e=this._animatebles;t0&&i._subFadeState>0){this._armature._dragonBones.bufferObject(i);this._animationStates.length=0;this._lastAnimationState=null}else{var a=i._animationData;var r=a.cacheFrameRate;if(this._animationDirty&&r>0){this._animationDirty=false;for(var n=0,s=this._armature.getBones();n1){for(var f=0,_=0;f0&&i._subFadeState>0){_++;this._armature._dragonBones.bufferObject(i);this._animationDirty=true;if(this._lastAnimationState===i){this._lastAnimationState=null}}else{if(_>0){this._animationStates[f-_]=i}i.advanceTime(t,0)}if(f===e-1&&_>0){this._animationStates.length-=_;if(this._lastAnimationState===null&&this._animationStates.length>0){this._lastAnimationState=this._animationStates[this._animationStates.length-1]}}}this._armature._cacheFrameIndex=-1}else{this._armature._cacheFrameIndex=-1}};i.prototype.reset=function(){for(var t=0,e=this._animationStates;t1){if(e.position<0){e.position%=a.duration;e.position=a.duration-e.position}else if(e.position===a.duration){e.position-=1e-6}else if(e.position>a.duration){e.position%=a.duration}if(e.duration>0&&e.position+e.duration>a.duration){e.duration=a.duration-e.position}if(e.playTimes<0){e.playTimes=a.playTimes}}else{e.playTimes=1;e.position=0;if(e.duration>0){e.duration=0}}if(e.duration===0){e.duration=-1}this._fadeOut(e);var o=t.BaseObject.borrowObject(t.AnimationState);o.init(this._armature,a,e);this._animationDirty=true;this._armature._cacheFrameIndex=-1;if(this._animationStates.length>0){var l=false;for(var h=0,u=this._animationStates.length;h=this._animationStates[h].layer){}else{l=true;this._animationStates.splice(h+1,0,o);break}}if(!l){this._animationStates.push(o)}}else{this._animationStates.push(o)}for(var f=0,_=this._armature.getSlots();f<_.length;f++){var m=_[f];var p=m.childArmature;if(p!==null&&p.inheritAnimation&&p.animation.hasAnimation(i)&&p.animation.getState(i)===null){p.animation.fadeIn(i)}}if(e.fadeInTime<=0){this._armature.advanceTime(0)}this._lastAnimationState=o;return o};i.prototype.play=function(t,e){if(t===void 0){t=null}if(e===void 0){e=-1}this._animationConfig.clear();this._animationConfig.resetToPose=true;this._animationConfig.playTimes=e;this._animationConfig.fadeInTime=0;this._animationConfig.animation=t!==null?t:"";if(t!==null&&t.length>0){this.playConfig(this._animationConfig)}else if(this._lastAnimationState===null){var i=this._armature.armatureData.defaultAnimation;if(i!==null){this._animationConfig.animation=i.name;this.playConfig(this._animationConfig)}}else if(!this._lastAnimationState.isPlaying&&!this._lastAnimationState.isCompleted){this._lastAnimationState.play()}else{this._animationConfig.animation=this._lastAnimationState.name;this.playConfig(this._animationConfig)}return this._lastAnimationState};i.prototype.fadeIn=function(t,e,i,a,r,n){if(e===void 0){e=-1}if(i===void 0){i=-1}if(a===void 0){a=0}if(r===void 0){r=null}if(n===void 0){n=3}this._animationConfig.clear();this._animationConfig.fadeOutMode=n;this._animationConfig.playTimes=i;this._animationConfig.layer=a;this._animationConfig.fadeInTime=e;this._animationConfig.animation=t;this._animationConfig.group=r!==null?r:"";return this.playConfig(this._animationConfig)};i.prototype.gotoAndPlayByTime=function(t,e,i){if(e===void 0){e=0}if(i===void 0){i=-1}this._animationConfig.clear();this._animationConfig.resetToPose=true;this._animationConfig.playTimes=i;this._animationConfig.position=e;this._animationConfig.fadeInTime=0;this._animationConfig.animation=t;return this.playConfig(this._animationConfig)};i.prototype.gotoAndPlayByFrame=function(t,e,i){if(e===void 0){e=0}if(i===void 0){i=-1}this._animationConfig.clear();this._animationConfig.resetToPose=true;this._animationConfig.playTimes=i;this._animationConfig.fadeInTime=0;this._animationConfig.animation=t;var a=t in this._animations?this._animations[t]:null;if(a!==null){this._animationConfig.position=a.duration*e/a.frameCount}return this.playConfig(this._animationConfig)};i.prototype.gotoAndPlayByProgress=function(t,e,i){if(e===void 0){e=0}if(i===void 0){i=-1}this._animationConfig.clear();this._animationConfig.resetToPose=true;this._animationConfig.playTimes=i;this._animationConfig.fadeInTime=0;this._animationConfig.animation=t;var a=t in this._animations?this._animations[t]:null;if(a!==null){this._animationConfig.position=a.duration*(e>0?e:0)}return this.playConfig(this._animationConfig)};i.prototype.gotoAndStopByTime=function(t,e){if(e===void 0){e=0}var i=this.gotoAndPlayByTime(t,e,1);if(i!==null){i.stop()}return i};i.prototype.gotoAndStopByFrame=function(t,e){if(e===void 0){e=0}var i=this.gotoAndPlayByFrame(t,e,1);if(i!==null){i.stop()}return i};i.prototype.gotoAndStopByProgress=function(t,e){if(e===void 0){e=0}var i=this.gotoAndPlayByProgress(t,e,1);if(i!==null){i.stop()}return i};i.prototype.getState=function(t){var e=this._animationStates.length;while(e--){var i=this._animationStates[e];if(i.name===t){return i}}return null};i.prototype.hasAnimation=function(t){return t in this._animations};i.prototype.getStates=function(){return this._animationStates};Object.defineProperty(i.prototype,"isPlaying",{get:function(){for(var t=0,e=this._animationStates;t0},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"lastAnimationName",{get:function(){return this._lastAnimationState!==null?this._lastAnimationState.name:""},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"animationNames",{get:function(){return this._animationNames},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations},set:function(t){if(this._animations===t){return}this._animationNames.length=0;for(var e in this._animations){delete this._animations[e]}for(var e in t){this._animationNames.push(e);this._animations[e]=t[e]}},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"animationConfig",{get:function(){this._animationConfig.clear();return this._animationConfig},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"lastAnimationState",{get:function(){return this._lastAnimationState},enumerable:true,configurable:true});i.prototype.gotoAndPlay=function(t,e,i,a,r,n,s,o,l){if(e===void 0){e=-1}if(i===void 0){i=-1}if(a===void 0){a=-1}if(r===void 0){r=0}if(n===void 0){n=null}if(s===void 0){s=3}if(o===void 0){o=true}if(l===void 0){l=true}o;l;this._animationConfig.clear();this._animationConfig.resetToPose=true;this._animationConfig.fadeOutMode=s;this._animationConfig.playTimes=a;this._animationConfig.layer=r;this._animationConfig.fadeInTime=e;this._animationConfig.animation=t;this._animationConfig.group=n!==null?n:"";var h=this._animations[t];if(h&&i>0){this._animationConfig.timeScale=h.duration/i}return this.playConfig(this._animationConfig)};i.prototype.gotoAndStop=function(t,e){if(e===void 0){e=0}return this.gotoAndStopByTime(t,e)};Object.defineProperty(i.prototype,"animationList",{get:function(){return this._animationNames},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"animationDataList",{get:function(){var t=[];for(var e=0,i=this._animationNames.length;e0;if(this._subFadeState<0){this._subFadeState=0;var a=i?t.EventObject.FADE_OUT:t.EventObject.FADE_IN;if(this._armature.eventDispatcher.hasDBEventListener(a)){var r=t.BaseObject.borrowObject(t.EventObject);r.type=a;r.armature=this._armature;r.animationState=this;this._armature._dragonBones.bufferEvent(r)}}if(e<0){e=-e}this._fadeTime+=e;if(this._fadeTime>=this.fadeTotalTime){this._subFadeState=1;this._fadeProgress=i?0:1}else if(this._fadeTime>0){this._fadeProgress=i?1-this._fadeTime/this.fadeTotalTime:this._fadeTime/this.fadeTotalTime}else{this._fadeProgress=i?1:0}if(this._subFadeState>0){if(!i){this._playheadState|=1;this._fadeState=0}var a=i?t.EventObject.FADE_OUT_COMPLETE:t.EventObject.FADE_IN_COMPLETE;if(this._armature.eventDispatcher.hasDBEventListener(a)){var r=t.BaseObject.borrowObject(t.EventObject);r.type=a;r.armature=this._armature;r.animationState=this;this._armature._dragonBones.bufferEvent(r)}}};a.prototype._blendBoneTimline=function(t){var e=this._weightResult>0?this._weightResult:-this._weightResult;var i=t.bone;var a=t.bonePose.result;var r=i.animationPose;if(!i._blendDirty){i._blendDirty=true;i._blendLayer=this.layer;i._blendLayerWeight=e;i._blendLeftWeight=1;r.x=a.x*e;r.y=a.y*e;r.rotation=a.rotation*e;r.skew=a.skew*e;r.scaleX=(a.scaleX-1)*e+1;r.scaleY=(a.scaleY-1)*e+1}else{e*=i._blendLeftWeight;i._blendLayerWeight+=e;r.x+=a.x*e;r.y+=a.y*e;r.rotation+=a.rotation*e;r.skew+=a.skew*e;r.scaleX+=(a.scaleX-1)*e;r.scaleY+=(a.scaleY-1)*e}if(this._fadeState!==0||this._subFadeState!==0){i._transformDirty=true}};a.prototype.init=function(e,i,a){if(this._armature!==null){return}this._armature=e;this._animationData=i;this.resetToPose=a.resetToPose;this.additiveBlending=a.additiveBlending;this.displayControl=a.displayControl;this.actionEnabled=a.actionEnabled;this.layer=a.layer;this.playTimes=a.playTimes;this.timeScale=a.timeScale;this.fadeTotalTime=a.fadeInTime;this.autoFadeOutTime=a.autoFadeOutTime;this.weight=a.weight;this.name=a.name.length>0?a.name:a.animation;this.group=a.group;if(a.pauseFadeIn){this._playheadState=2}else{this._playheadState=3}if(a.duration<0){this._position=0;this._duration=this._animationData.duration;if(a.position!==0){if(this.timeScale>=0){this._time=a.position}else{this._time=a.position-this._duration}}else{this._time=0}}else{this._position=a.position;this._duration=a.duration;this._time=0}if(this.timeScale<0&&this._time===0){this._time=-1e-6}if(this.fadeTotalTime<=0){this._fadeProgress=.999999}if(a.boneMask.length>0){this._boneMask.length=a.boneMask.length;for(var r=0,n=this._boneMask.length;r0;var r=true;var n=true;var s=this._time;this._weightResult=this.weight*this._fadeProgress;if(this._actionTimeline.playState<=0){this._actionTimeline.update(s)}if(a){var o=i*2;this._actionTimeline.currentTime=Math.floor(this._actionTimeline.currentTime*o)/o}if(this._zOrderTimeline!==null&&this._zOrderTimeline.playState<=0){this._zOrderTimeline.update(s)}if(a){var l=Math.floor(this._actionTimeline.currentTime*i);if(this._armature._cacheFrameIndex===l){r=false;n=false}else{this._armature._cacheFrameIndex=l;if(this._animationData.cachedFrames[l]){n=false}else{this._animationData.cachedFrames[l]=true}}}if(r){if(n){var h=null;var u=null;for(var f=0,_=this._boneTimelines.length;f<_;++f){var m=this._boneTimelines[f];if(h!==m.bone){if(h!==null){this._blendBoneTimline(u);if(h._blendDirty){if(h._blendLeftWeight>0){if(h._blendLayer!==this.layer){if(h._blendLayerWeight>=h._blendLeftWeight){h._blendLeftWeight=0;h=null}else{h._blendLayer=this.layer;h._blendLeftWeight-=h._blendLayerWeight;h._blendLayerWeight=0}}}else{h=null}}}h=m.bone}if(h!==null){if(m.playState<=0){m.update(s)}if(f===_-1){this._blendBoneTimline(m)}else{u=m}}}}if(this.displayControl){for(var f=0,_=this._slotTimelines.length;f<_;++f){var m=this._slotTimelines[f];var p=m.slot.displayController;if(p===null||p===this.name||p===this.group){if(m.playState<=0){m.update(s)}}}}for(var f=0,_=this._constraintTimelines.length;f<_;++f){var m=this._constraintTimelines[f];if(m.playState<=0){m.update(s)}}}if(this._fadeState===0){if(this._subFadeState>0){this._subFadeState=0;if(this._poseTimelines.length>0){for(var c=0,d=this._poseTimelines;c0){if(this.autoFadeOutTime>=0){this.fadeOut(this.autoFadeOutTime)}}}};a.prototype.play=function(){this._playheadState=3};a.prototype.stop=function(){this._playheadState&=1};a.prototype.fadeOut=function(t,e){if(e===void 0){e=true}if(t<0){t=0}if(e){this._playheadState&=2}if(this._fadeState>0){if(t>this.fadeTotalTime-this._fadeTime){return}}else{this._fadeState=1;this._subFadeState=-1;if(t<=0||this._fadeProgress<=0){this._fadeProgress=1e-6}for(var i=0,a=this._boneTimelines;i1e-6?t/this._fadeProgress:0;this._fadeTime=this.fadeTotalTime*(1-this._fadeProgress)};a.prototype.containsBoneMask=function(t){return this._boneMask.length===0||this._boneMask.indexOf(t)>=0};a.prototype.addBoneMask=function(t,e){if(e===void 0){e=true}var i=this._armature.getBone(t);if(i===null){return}if(this._boneMask.indexOf(t)<0){this._boneMask.push(t)}if(e){for(var a=0,r=this._armature.getBones();a=0){this._boneMask.splice(i,1)}if(e){var a=this._armature.getBone(t);if(a!==null){var r=this._armature.getBones();if(this._boneMask.length>0){for(var n=0,s=r;n=0&&a.contains(o)){this._boneMask.splice(l,1)}}}else{for(var h=0,u=r;h0},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"isFadeComplete",{get:function(){return this._fadeState===0},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"isPlaying",{get:function(){return(this._playheadState&2)!==0&&this._actionTimeline.playState<=0},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"isCompleted",{get:function(){return this._actionTimeline.playState>0},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"currentPlayTimes",{get:function(){return this._actionTimeline.currentPlayTimes},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"totalTime",{get:function(){return this._duration},enumerable:true,configurable:true});Object.defineProperty(a.prototype,"currentTime",{get:function(){return this._actionTimeline.currentTime},set:function(t){var e=this._actionTimeline.currentPlayTimes-(this._actionTimeline.playState>0?1:0);if(t<0||this._duration0&&e===this.playTimes-1&&t===this._duration){t=this._duration-1e-6}if(this._time===t){return}this._time=t;this._actionTimeline.setCurrentTime(this._time);if(this._zOrderTimeline!==null){this._zOrderTimeline.playState=-1}for(var i=0,a=this._boneTimelines;i=0?1:-1;this.currentPlayTimes=1;this.currentTime=this._actionTimeline.currentTime}else if(this._actionTimeline===null||this._timeScale!==1||this._timeOffset!==0){var r=this._animationState.playTimes;var n=r*this._duration;t*=this._timeScale;if(this._timeOffset!==0){t+=this._timeOffset*this._animationData.duration}if(r>0&&(t>=n||t<=-n)){if(this.playState<=0&&this._animationState._playheadState===3){this.playState=1}this.currentPlayTimes=r;if(t<0){this.currentTime=0}else{this.currentTime=this._duration}}else{if(this.playState!==0&&this._animationState._playheadState===3){this.playState=0}if(t<0){t=-t;this.currentPlayTimes=Math.floor(t/this._duration);this.currentTime=this._duration-t%this._duration}else{this.currentPlayTimes=Math.floor(t/this._duration);this.currentTime=t%this._duration}}this.currentTime+=this._position}else{this.playState=this._actionTimeline.playState;this.currentPlayTimes=this._actionTimeline.currentPlayTimes;this.currentTime=this._actionTimeline.currentTime}if(this.currentPlayTimes===i&&this.currentTime===a){return false}if(e<0&&this.playState!==e||this.playState<=0&&this.currentPlayTimes!==i){this._frameIndex=-1}return true};e.prototype.init=function(t,e,i){this._armature=t;this._animationState=e;this._timelineData=i;this._actionTimeline=this._animationState._actionTimeline;if(this===this._actionTimeline){this._actionTimeline=null}this._animationData=this._animationState._animationData;this._frameRate=this._animationData.parent.frameRate;this._frameRateR=1/this._frameRate;this._position=this._animationState._position;this._duration=this._animationState._duration;this._dragonBonesData=this._animationData.parent.parent;if(this._timelineData!==null){this._frameIntArray=this._dragonBonesData.frameIntArray;this._frameFloatArray=this._dragonBonesData.frameFloatArray;this._frameArray=this._dragonBonesData.frameArray;this._timelineArray=this._dragonBonesData.timelineArray;this._frameIndices=this._dragonBonesData.frameIndices;this._frameCount=this._timelineArray[this._timelineData.offset+2];this._frameValueOffset=this._timelineArray[this._timelineData.offset+4];this._timeScale=100/this._timelineArray[this._timelineData.offset+0];this._timeOffset=this._timelineArray[this._timelineData.offset+1]*.01}};e.prototype.fadeOut=function(){};e.prototype.update=function(t){if(this._setCurrentTime(t)){if(this._frameCount>1){var e=Math.floor(this.currentTime*this._frameRate);var i=this._frameIndices[this._timelineData.frameIndicesOffset+e];if(this._frameIndex!==i){this._frameIndex=i;this._frameOffset=this._animationData.frameOffset+this._timelineArray[this._timelineData.offset+5+this._frameIndex];this._onArriveAtFrame()}}else if(this._frameIndex<0){this._frameIndex=0;if(this._timelineData!==null){this._frameOffset=this._animationData.frameOffset+this._timelineArray[this._timelineData.offset+5]}this._onArriveAtFrame()}if(this._tweenState!==0){this._onUpdateFrame()}}};return e}(t.BaseObject);t.TimelineState=e;var i=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e._getEasingValue=function(t,e,i){var a=e;switch(t){case 3:a=Math.pow(e,2);break;case 4:a=1-Math.pow(1-e,2);break;case 5:a=.5*(1-Math.cos(e*Math.PI));break}return(a-e)*i+e};e._getEasingCurveValue=function(t,e,i,a){if(t<=0){return 0}else if(t>=1){return 1}var r=i+1;var n=Math.floor(t*r);var s=n===0?0:e[a+n-1];var o=n===r-1?1e4:e[a+n];return(s+(o-s)*(t*r-n))*1e-4};e.prototype._onClear=function(){t.prototype._onClear.call(this);this._tweenType=0;this._curveCount=0;this._framePosition=0;this._frameDurationR=0;this._tweenProgress=0;this._tweenEasing=0};e.prototype._onArriveAtFrame=function(){if(this._frameCount>1&&(this._frameIndex!==this._frameCount-1||this._animationState.playTimes===0||this._animationState.currentPlayTimes0){this._frameDurationR=1/e}else{this._frameDurationR=0}}}else{this._tweenState=1}};e.prototype._onUpdateFrame=function(){if(this._tweenState===2){this._tweenProgress=(this.currentTime-this._framePosition)*this._frameDurationR;if(this._tweenType===2){this._tweenProgress=e._getEasingCurveValue(this._tweenProgress,this._frameArray,this._curveCount,this._frameOffset+3)}else if(this._tweenType!==1){this._tweenProgress=e._getEasingValue(this._tweenType,this._tweenProgress,this._tweenEasing)}}else{this._tweenProgress=0}};return e}(e);t.TweenTimelineState=i;var a=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype._onClear=function(){t.prototype._onClear.call(this);this.bone=null;this.bonePose=null};return e}(i);t.BoneTimelineState=a;var r=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype._onClear=function(){t.prototype._onClear.call(this);this.slot=null};return e}(i);t.SlotTimelineState=r;var n=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype._onClear=function(){t.prototype._onClear.call(this);this.constraint=null};return e}(i);t.ConstraintTimelineState=n})(dragonBones||(dragonBones={}));var dragonBones;(function(t){var e=function(e){__extends(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}i.toString=function(){return"[class dragonBones.ActionTimelineState]"};i.prototype._onCrossFrame=function(e){var i=this._armature.eventDispatcher;if(this._animationState.actionEnabled){var a=this._animationData.frameOffset+this._timelineArray[this._timelineData.offset+5+e];var r=this._frameArray[a+1];var n=this._animationData.parent.actions;for(var s=0;s0){if(n.hasDBEventListener(t.EventObject.COMPLETE)){h=t.BaseObject.borrowObject(t.EventObject);h.type=t.EventObject.COMPLETE;h.armature=this._armature;h.animationState=this._animationState}}}if(this._frameCount>1){var u=this._timelineData;var f=Math.floor(this.currentTime*this._frameRate);var _=this._frameIndices[u.frameIndicesOffset+f];if(this._frameIndex!==_){var m=this._frameIndex;this._frameIndex=_;if(this._timelineArray!==null){this._frameOffset=this._animationData.frameOffset+this._timelineArray[u.offset+5+this._frameIndex];if(o){if(m<0){var p=Math.floor(r*this._frameRate);m=this._frameIndices[u.frameIndicesOffset+p];if(this.currentPlayTimes===a){if(m===_){m=-1}}}while(m>=0){var c=this._animationData.frameOffset+this._timelineArray[u.offset+5+m];var d=this._frameArray[c]/this._frameRate;if(this._position<=d&&d<=this._position+this._duration){this._onCrossFrame(m)}if(l!==null&&m===0){this._armature._dragonBones.bufferEvent(l);l=null}if(m>0){m--}else{m=this._frameCount-1}if(m===_){break}}}else{if(m<0){var p=Math.floor(r*this._frameRate);m=this._frameIndices[u.frameIndicesOffset+p];var c=this._animationData.frameOffset+this._timelineArray[u.offset+5+m];var d=this._frameArray[c]/this._frameRate;if(this.currentPlayTimes===a){if(r<=d){if(m>0){m--}else{m=this._frameCount-1}}else if(m===_){m=-1}}}while(m>=0){if(m=0){var t=this._frameArray[this._frameOffset+1];if(t>0){this._armature._sortZOrder(this._frameArray,this._frameOffset+2)}else{this._armature._sortZOrder(null,0)}}};e.prototype._onUpdateFrame=function(){};return e}(t.TimelineState);t.ZOrderTimelineState=i;var a=function(e){__extends(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}i.toString=function(){return"[class dragonBones.BoneAllTimelineState]"};i.prototype._onArriveAtFrame=function(){e.prototype._onArriveAtFrame.call(this);if(this._timelineData!==null){var t=this._animationData.frameFloatOffset+this._frameValueOffset+this._frameIndex*6;var i=this._armature._armatureData.scale;var a=this._frameFloatArray;var r=this.bonePose.current;var n=this.bonePose.delta;r.x=a[t++]*i;r.y=a[t++]*i;r.rotation=a[t++];r.skew=a[t++];r.scaleX=a[t++];r.scaleY=a[t++];if(this._tweenState===2){if(this._frameIndex===this._frameCount-1){t=this._animationData.frameFloatOffset+this._frameValueOffset}n.x=a[t++]*i-r.x;n.y=a[t++]*i-r.y;n.rotation=a[t++]-r.rotation;n.skew=a[t++]-r.skew;n.scaleX=a[t++]-r.scaleX;n.scaleY=a[t++]-r.scaleY}else{n.x=0;n.y=0;n.rotation=0;n.skew=0;n.scaleX=0;n.scaleY=0}}else{var r=this.bonePose.current;var n=this.bonePose.delta;r.x=0;r.y=0;r.rotation=0;r.skew=0;r.scaleX=1;r.scaleY=1;n.x=0;n.y=0;n.rotation=0;n.skew=0;n.scaleX=0;n.scaleY=0}};i.prototype._onUpdateFrame=function(){e.prototype._onUpdateFrame.call(this);var t=this.bonePose.current;var i=this.bonePose.delta;var a=this.bonePose.result;this.bone._transformDirty=true;if(this._tweenState!==2){this._tweenState=0}a.x=t.x+i.x*this._tweenProgress;a.y=t.y+i.y*this._tweenProgress;a.rotation=t.rotation+i.rotation*this._tweenProgress;a.skew=t.skew+i.skew*this._tweenProgress;a.scaleX=t.scaleX+i.scaleX*this._tweenProgress;a.scaleY=t.scaleY+i.scaleY*this._tweenProgress};i.prototype.fadeOut=function(){var e=this.bonePose.result;e.rotation=t.Transform.normalizeRadian(e.rotation);e.skew=t.Transform.normalizeRadian(e.skew)};return i}(t.BoneTimelineState);t.BoneAllTimelineState=a;var r=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.toString=function(){return"[class dragonBones.BoneTranslateTimelineState]"};e.prototype._onArriveAtFrame=function(){t.prototype._onArriveAtFrame.call(this);if(this._timelineData!==null){var e=this._animationData.frameFloatOffset+this._frameValueOffset+this._frameIndex*2;var i=this._armature._armatureData.scale;var a=this._frameFloatArray;var r=this.bonePose.current;var n=this.bonePose.delta;r.x=a[e++]*i;r.y=a[e++]*i;if(this._tweenState===2){if(this._frameIndex===this._frameCount-1){e=this._animationData.frameFloatOffset+this._frameValueOffset}n.x=a[e++]*i-r.x;n.y=a[e++]*i-r.y}else{n.x=0;n.y=0}}else{var r=this.bonePose.current;var n=this.bonePose.delta;r.x=0;r.y=0;n.x=0;n.y=0}};e.prototype._onUpdateFrame=function(){t.prototype._onUpdateFrame.call(this);var e=this.bonePose.current;var i=this.bonePose.delta;var a=this.bonePose.result;this.bone._transformDirty=true;if(this._tweenState!==2){this._tweenState=0}a.x=e.x+i.x*this._tweenProgress;a.y=e.y+i.y*this._tweenProgress};return e}(t.BoneTimelineState);t.BoneTranslateTimelineState=r;var n=function(e){__extends(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}i.toString=function(){return"[class dragonBones.BoneRotateTimelineState]"};i.prototype._onArriveAtFrame=function(){e.prototype._onArriveAtFrame.call(this);if(this._timelineData!==null){var t=this._animationData.frameFloatOffset+this._frameValueOffset+this._frameIndex*2;var i=this._frameFloatArray;var a=this.bonePose.current;var r=this.bonePose.delta;a.rotation=i[t++];a.skew=i[t++];if(this._tweenState===2){if(this._frameIndex===this._frameCount-1){t=this._animationData.frameFloatOffset+this._frameValueOffset}r.rotation=i[t++]-a.rotation;r.skew=i[t++]-a.skew}else{r.rotation=0;r.skew=0}}else{var a=this.bonePose.current;var r=this.bonePose.delta;a.rotation=0;a.skew=0;r.rotation=0;r.skew=0}};i.prototype._onUpdateFrame=function(){e.prototype._onUpdateFrame.call(this);var t=this.bonePose.current;var i=this.bonePose.delta;var a=this.bonePose.result;this.bone._transformDirty=true;if(this._tweenState!==2){this._tweenState=0}a.rotation=t.rotation+i.rotation*this._tweenProgress;a.skew=t.skew+i.skew*this._tweenProgress};i.prototype.fadeOut=function(){var e=this.bonePose.result;e.rotation=t.Transform.normalizeRadian(e.rotation);e.skew=t.Transform.normalizeRadian(e.skew)};return i}(t.BoneTimelineState);t.BoneRotateTimelineState=n;var s=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.toString=function(){return"[class dragonBones.BoneScaleTimelineState]"};e.prototype._onArriveAtFrame=function(){t.prototype._onArriveAtFrame.call(this);if(this._timelineData!==null){var e=this._animationData.frameFloatOffset+this._frameValueOffset+this._frameIndex*2;var i=this._frameFloatArray;var a=this.bonePose.current;var r=this.bonePose.delta;a.scaleX=i[e++];a.scaleY=i[e++];if(this._tweenState===2){if(this._frameIndex===this._frameCount-1){e=this._animationData.frameFloatOffset+this._frameValueOffset}r.scaleX=i[e++]-a.scaleX;r.scaleY=i[e++]-a.scaleY}else{r.scaleX=0;r.scaleY=0}}else{var a=this.bonePose.current;var r=this.bonePose.delta;a.scaleX=1;a.scaleY=1;r.scaleX=0;r.scaleY=0}};e.prototype._onUpdateFrame=function(){t.prototype._onUpdateFrame.call(this);var e=this.bonePose.current;var i=this.bonePose.delta;var a=this.bonePose.result;this.bone._transformDirty=true;if(this._tweenState!==2){this._tweenState=0}a.scaleX=e.scaleX+i.scaleX*this._tweenProgress;a.scaleY=e.scaleY+i.scaleY*this._tweenProgress};return e}(t.BoneTimelineState);t.BoneScaleTimelineState=s;var o=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.toString=function(){return"[class dragonBones.SlotDislayTimelineState]"};e.prototype._onArriveAtFrame=function(){if(this.playState>=0){var t=this._timelineData!==null?this._frameArray[this._frameOffset+1]:this.slot._slotData.displayIndex;if(this.slot.displayIndex!==t){this.slot._setDisplayIndex(t,true)}}};return e}(t.SlotTimelineState);t.SlotDislayTimelineState=o;var l=function(t){__extends(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e._current=[0,0,0,0,0,0,0,0];e._delta=[0,0,0,0,0,0,0,0];e._result=[0,0,0,0,0,0,0,0];return e}e.toString=function(){return"[class dragonBones.SlotColorTimelineState]"};e.prototype._onClear=function(){t.prototype._onClear.call(this);this._dirty=false};e.prototype._onArriveAtFrame=function(){t.prototype._onArriveAtFrame.call(this);if(this._timelineData!==null){var e=this._dragonBonesData.intArray;var i=this._frameIntArray;var a=this._animationData.frameIntOffset+this._frameValueOffset+this._frameIndex*1;var r=i[a];if(r<0){r+=32767}this._current[0]=e[r++];this._current[1]=e[r++];this._current[2]=e[r++];this._current[3]=e[r++];this._current[4]=e[r++];this._current[5]=e[r++];this._current[6]=e[r++];this._current[7]=e[r++];if(this._tweenState===2){if(this._frameIndex===this._frameCount-1){r=i[this._animationData.frameIntOffset+this._frameValueOffset]}else{r=i[a+1*1]}if(r<0){r+=32767}this._delta[0]=e[r++]-this._current[0];this._delta[1]=e[r++]-this._current[1];this._delta[2]=e[r++]-this._current[2];this._delta[3]=e[r++]-this._current[3];this._delta[4]=e[r++]-this._current[4];this._delta[5]=e[r++]-this._current[5];this._delta[6]=e[r++]-this._current[6];this._delta[7]=e[r++]-this._current[7]}}else{var n=this.slot._slotData.color;this._current[0]=n.alphaMultiplier*100;this._current[1]=n.redMultiplier*100;this._current[2]=n.greenMultiplier*100;this._current[3]=n.blueMultiplier*100;this._current[4]=n.alphaOffset;this._current[5]=n.redOffset;this._current[6]=n.greenOffset;this._current[7]=n.blueOffset}};e.prototype._onUpdateFrame=function(){t.prototype._onUpdateFrame.call(this);this._dirty=true;if(this._tweenState!==2){this._tweenState=0}this._result[0]=(this._current[0]+this._delta[0]*this._tweenProgress)*.01;this._result[1]=(this._current[1]+this._delta[1]*this._tweenProgress)*.01;this._result[2]=(this._current[2]+this._delta[2]*this._tweenProgress)*.01;this._result[3]=(this._current[3]+this._delta[3]*this._tweenProgress)*.01;this._result[4]=this._current[4]+this._delta[4]*this._tweenProgress;this._result[5]=this._current[5]+this._delta[5]*this._tweenProgress;this._result[6]=this._current[6]+this._delta[6]*this._tweenProgress;this._result[7]=this._current[7]+this._delta[7]*this._tweenProgress};e.prototype.fadeOut=function(){this._tweenState=0;this._dirty=false};e.prototype.update=function(e){t.prototype.update.call(this,e);if(this._tweenState!==0||this._dirty){var i=this.slot._colorTransform;if(this._animationState._fadeState!==0||this._animationState._subFadeState!==0){if(i.alphaMultiplier!==this._result[0]||i.redMultiplier!==this._result[1]||i.greenMultiplier!==this._result[2]||i.blueMultiplier!==this._result[3]||i.alphaOffset!==this._result[4]||i.redOffset!==this._result[5]||i.greenOffset!==this._result[6]||i.blueOffset!==this._result[7]){var a=Math.pow(this._animationState._fadeProgress,4);i.alphaMultiplier+=(this._result[0]-i.alphaMultiplier)*a;i.redMultiplier+=(this._result[1]-i.redMultiplier)*a;i.greenMultiplier+=(this._result[2]-i.greenMultiplier)*a;i.blueMultiplier+=(this._result[3]-i.blueMultiplier)*a;i.alphaOffset+=(this._result[4]-i.alphaOffset)*a;i.redOffset+=(this._result[5]-i.redOffset)*a;i.greenOffset+=(this._result[6]-i.greenOffset)*a;i.blueOffset+=(this._result[7]-i.blueOffset)*a;this.slot._colorDirty=true}}else if(this._dirty){this._dirty=false;if(i.alphaMultiplier!==this._result[0]||i.redMultiplier!==this._result[1]||i.greenMultiplier!==this._result[2]||i.blueMultiplier!==this._result[3]||i.alphaOffset!==this._result[4]||i.redOffset!==this._result[5]||i.greenOffset!==this._result[6]||i.blueOffset!==this._result[7]){i.alphaMultiplier=this._result[0];i.redMultiplier=this._result[1];i.greenMultiplier=this._result[2];i.blueMultiplier=this._result[3];i.alphaOffset=this._result[4];i.redOffset=this._result[5];i.greenOffset=this._result[6];i.blueOffset=this._result[7];this.slot._colorDirty=true}}}};return e}(t.SlotTimelineState);t.SlotColorTimelineState=l;var h=function(t){__extends(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e._current=[];e._delta=[];e._result=[];return e}e.toString=function(){return"[class dragonBones.SlotFFDTimelineState]"};e.prototype._onClear=function(){t.prototype._onClear.call(this);this.meshOffset=0;this._dirty=false;this._frameFloatOffset=0;this._valueCount=0;this._ffdCount=0;this._valueOffset=0;this._current.length=0;this._delta.length=0;this._result.length=0};e.prototype._onArriveAtFrame=function(){t.prototype._onArriveAtFrame.call(this);if(this._timelineData!==null){var e=this._animationData.frameFloatOffset+this._frameValueOffset+this._frameIndex*this._valueCount;var i=this._armature._armatureData.scale;var a=this._frameFloatArray;if(this._tweenState===2){var r=e+this._valueCount;if(this._frameIndex===this._frameCount-1){r=this._animationData.frameFloatOffset+this._frameValueOffset}for(var n=0;n255){return encodeURI(r)}}}return r}return String(r)}return a};a.prototype._getCurvePoint=function(t,e,i,a,r,n,s,o,l,h){var u=1-l;var f=u*u;var _=l*l;var m=u*f;var p=3*l*f;var c=3*u*_;var d=l*_;h.x=m*t+p*i+c*r+d*s;h.y=m*e+p*a+c*n+d*o};a.prototype._samplingEasingCurve=function(t,e){var i=t.length;var a=-2;for(var r=0,n=e.length;r=0&&a+61e-4){var v=(y+d)*.5;this._getCurvePoint(l,h,u,f,_,m,p,c,v,this._helpPoint);if(s-this._helpPoint.x>0){d=v}else{y=v}}e[r]=this._helpPoint.y}};a.prototype._parseActionDataInFrame=function(t,e,i,r){if(a.EVENT in t){this._mergeActionFrame(t[a.EVENT],e,10,i,r)}if(a.SOUND in t){this._mergeActionFrame(t[a.SOUND],e,11,i,r)}if(a.ACTION in t){this._mergeActionFrame(t[a.ACTION],e,0,i,r)}if(a.EVENTS in t){this._mergeActionFrame(t[a.EVENTS],e,10,i,r)}if(a.ACTIONS in t){this._mergeActionFrame(t[a.ACTIONS],e,0,i,r)}};a.prototype._mergeActionFrame=function(e,a,r,n,s){var o=t.DragonBones.webAssembly?this._armature.actions.size():this._armature.actions.length;var l=this._parseActionData(e,r,n,s);var h=0;var u=null;for(var f=0,_=l;f<_.length;f++){var m=_[f];this._armature.addAction(m,false)}if(this._actionFrames.length===0){u=new i;u.frameStart=0;this._actionFrames.push(u);u=null}for(var p=0,c=this._actionFrames;pa){break}h++}if(u===null){u=new i;u.frameStart=a;this._actionFrames.splice(h+1,0,u)}for(var y=0;y0){var p=r.getBone(_);if(p!==null){m.parent=p}else{if(!(_ in this._cacheBones)){this._cacheBones[_]=[]}this._cacheBones[_].push(m)}}if(m.name in this._cacheBones){for(var c=0,d=this._cacheBones[m.name];c0){n.root=i.parent}return n};a.prototype._parseSlot=function(e,i){var r=t.BaseObject.borrowObject(t.SlotData);r.displayIndex=a._getNumber(e,a.DISPLAY_INDEX,0);r.zOrder=i;r.name=a._getString(e,a.NAME,"");r.parent=this._armature.getBone(a._getString(e,a.PARENT,""));if(a.BLEND_MODE in e&&typeof e[a.BLEND_MODE]==="string"){r.blendMode=a._getBlendMode(e[a.BLEND_MODE])}else{r.blendMode=a._getNumber(e,a.BLEND_MODE,0)}if(a.COLOR in e){r.color=t.SlotData.createColor();this._parseColorTransform(e[a.COLOR],r.color)}else{r.color=t.SlotData.DEFAULT_COLOR}if(a.ACTIONS in e){this._slotChildActions[r.name]=this._parseActionData(e[a.ACTIONS],0,null,null)}return r};a.prototype._parseSkin=function(e){var i=t.BaseObject.borrowObject(t.SkinData);i.name=a._getString(e,a.NAME,a.DEFAULT_NAME);if(i.name.length===0){i.name=a.DEFAULT_NAME}if(a.SLOT in e){var r=e[a.SLOT];this._skin=i;for(var n=0,s=r;n0?r:i;this._parsePivot(e,o);break;case 1:var l=s=t.BaseObject.borrowObject(t.ArmatureDisplayData);l.name=i;l.path=r.length>0?r:i;l.inheritAnimation=true;if(a.ACTIONS in e){var h=this._parseActionData(e[a.ACTIONS],0,null,null);for(var u=0,f=h;u0?r:i;y.inheritAnimation=a._getBoolean(e,a.INHERIT_FFD,true);this._parsePivot(e,y);if(d.length>0){var v=a._getString(e,a.SKIN,"");var g=this._slot.name;if(v.length===0){v=a.DEFAULT_NAME}if(!(v in this._cacheMeshs)){this._cacheMeshs[v]={}}var b=this._cacheMeshs[v];if(!(g in b)){b[g]={}}var T=b[g];if(!(d in T)){T[d]=[]}T[d].push(y)}else{this._parseMesh(e,y)}break;case 3:var A=this._parseBoundingBox(e);if(A!==null){var D=s=t.BaseObject.borrowObject(t.BoundingBoxDisplayData);D.name=i;D.path=r.length>0?r:i;D.boundingBox=A}break}if(s!==null){if(a.TRANSFORM in e){this._parseTransform(e[a.TRANSFORM],s.transform,this._armature.scale)}}return s};a.prototype._parsePivot=function(t,e){if(a.PIVOT in t){var i=t[a.PIVOT];e.pivot.x=a._getNumber(i,a.X,0);e.pivot.y=a._getNumber(i,a.Y,0)}else{e.pivot.x=.5;e.pivot.y=.5}};a.prototype._parseMesh=function(e,i){var r=e[a.VERTICES];var n=e[a.UVS];var s=e[a.TRIANGLES];var o=Math.floor(r.length/2);var l=Math.floor(s.length/3);var h=this._floatArray.length;var u=h+o*2;var f=this._intArray.length;i.offset=f;this._intArray.length+=1+1+1+1+l*3;this._intArray[f+0]=o;this._intArray[f+1]=l;this._intArray[f+2]=h;for(var _=0,m=l*3;_i.width){i.width=l}if(hi.height){i.height=h}}}}else{console.warn("Data error.\n Please reexport DragonBones Data to fixed the bug.")}return i};a.prototype._parseAnimation=function(e){var i=t.BaseObject.borrowObject(t.AnimationData);i.frameCount=Math.max(a._getNumber(e,a.DURATION,1),1);i.playTimes=a._getNumber(e,a.PLAY_TIMES,1);i.duration=i.frameCount/this._armature.frameRate;i.fadeInTime=a._getNumber(e,a.FADE_IN_TIME,0);i.scale=a._getNumber(e,a.SCALE,1);i.name=a._getString(e,a.NAME,a.DEFAULT_NAME);if(i.name.length===0){i.name=a.DEFAULT_NAME}i.frameIntOffset=this._frameIntArray.length;i.frameFloatOffset=this._frameFloatArray.length;i.frameOffset=this._frameArray.length;this._animation=i;if(a.FRAME in e){var r=e[a.FRAME];var n=r.length;if(n>0){for(var s=0,o=0;s0){this._animation.actionTimeline=this._parseTimeline(null,this._actionFrames,"",0,false,false,0,this._parseActionFrame);this._actionFrames.length=0}this._animation=null;return i};a.prototype._parseTimeline=function(e,r,n,s,o,l,h,u){if(e!==null&&n.length>0&&n in e){r=e[n]}if(r===null){return null}var f=r.length;if(f===0){return null}var _=this._frameIntArray.length;var m=this._frameFloatArray.length;var p=t.BaseObject.borrowObject(t.TimelineData);var c=this._timelineArray.length;this._timelineArray.length+=1+1+1+1+1+f;if(e!==null){this._timelineArray[c+0]=Math.round(a._getNumber(e,a.SCALE,1)*100);this._timelineArray[c+1]=Math.round(a._getNumber(e,a.OFFSET,0)*100)}else{this._timelineArray[c+0]=100;this._timelineArray[c+1]=0}this._timelineArray[c+2]=f;this._timelineArray[c+3]=h;if(o){this._timelineArray[c+4]=_-this._animation.frameIntOffset}else if(l){this._timelineArray[c+4]=m-this._animation.frameFloatOffset}else{this._timelineArray[c+4]=0}this._timeline=p;p.type=s;p.offset=c;if(f===1){p.frameIndicesOffset=-1;this._timelineArray[c+5+0]=u.call(this,r[0],0,0)-this._animation.frameOffset}else{var d=this._animation.frameCount+1;var y=this._data.frameIndices;var v=0;if(t.DragonBones.webAssembly){v=y.size();y.resize(v+d,0)}else{v=y.length;y.length+=d}p.frameIndicesOffset=v;for(var g=0,b=0,T=0,A=0;g0){if(a.CURVE in t){var n=i+1;this._helpArray.length=n;this._samplingEasingCurve(t[a.CURVE],this._helpArray);this._frameArray.length+=1+1+this._helpArray.length;this._frameArray[r+1]=2;this._frameArray[r+2]=n;for(var s=0;s0){var s=this._armature.sortedSlots.length;var o=new Array(s-n.length/2);var l=new Array(s);for(var h=0;h0?n>=this._prevRotation:n<=this._prevRotation){this._prevClockwise=this._prevClockwise>0?this._prevClockwise-1:this._prevClockwise+1}n=this._prevRotation+n-this._prevRotation+t.Transform.PI_D*this._prevClockwise}}this._prevClockwise=a._getNumber(e,a.TWEEN_ROTATE,0);this._prevRotation=n;var s=this._parseTweenFrame(e,i,r);var o=this._frameFloatArray.length;this._frameFloatArray.length+=6;this._frameFloatArray[o++]=this._helpTransform.x;this._frameFloatArray[o++]=this._helpTransform.y;this._frameFloatArray[o++]=n;this._frameFloatArray[o++]=this._helpTransform.skew;this._frameFloatArray[o++]=this._helpTransform.scaleX;this._frameFloatArray[o++]=this._helpTransform.scaleY;this._parseActionDataInFrame(e,i,this._bone,this._slot);return s};a.prototype._parseBoneTranslateFrame=function(t,e,i){var r=this._parseTweenFrame(t,e,i);var n=this._frameFloatArray.length;this._frameFloatArray.length+=2;this._frameFloatArray[n++]=a._getNumber(t,a.X,0);this._frameFloatArray[n++]=a._getNumber(t,a.Y,0);return r};a.prototype._parseBoneRotateFrame=function(e,i,r){var n=a._getNumber(e,a.ROTATE,0)*t.Transform.DEG_RAD;if(i!==0){if(this._prevClockwise===0){n=this._prevRotation+t.Transform.normalizeRadian(n-this._prevRotation)}else{if(this._prevClockwise>0?n>=this._prevRotation:n<=this._prevRotation){this._prevClockwise=this._prevClockwise>0?this._prevClockwise-1:this._prevClockwise+1}n=this._prevRotation+n-this._prevRotation+t.Transform.PI_D*this._prevClockwise}}this._prevClockwise=a._getNumber(e,a.CLOCK_WISE,0);this._prevRotation=n;var s=this._parseTweenFrame(e,i,r);var o=this._frameFloatArray.length;this._frameFloatArray.length+=2;this._frameFloatArray[o++]=n;this._frameFloatArray[o++]=a._getNumber(e,a.SKEW,0)*t.Transform.DEG_RAD;return s};a.prototype._parseBoneScaleFrame=function(t,e,i){var r=this._parseTweenFrame(t,e,i);var n=this._frameFloatArray.length;this._frameFloatArray.length+=2;this._frameFloatArray[n++]=a._getNumber(t,a.X,1);this._frameFloatArray[n++]=a._getNumber(t,a.Y,1);return r};a.prototype._parseSlotDisplayFrame=function(t,e,i){var r=this._parseFrame(t,e,i);this._frameArray.length+=1;if(a.VALUE in t){this._frameArray[r+1]=a._getNumber(t,a.VALUE,0)}else{this._frameArray[r+1]=a._getNumber(t,a.DISPLAY_INDEX,0)}this._parseActionDataInFrame(t,e,this._slot.parent,this._slot);return r};a.prototype._parseSlotColorFrame=function(t,e,i){var r=this._parseTweenFrame(t,e,i);var n=-1;if(a.VALUE in t||a.COLOR in t){var s=a.VALUE in t?t[a.VALUE]:t[a.COLOR];for(var o in s){o;this._parseColorTransform(s,this._helpColorTransform);n=this._intArray.length;this._intArray.length+=8;this._intArray[n++]=Math.round(this._helpColorTransform.alphaMultiplier*100);this._intArray[n++]=Math.round(this._helpColorTransform.redMultiplier*100);this._intArray[n++]=Math.round(this._helpColorTransform.greenMultiplier*100);this._intArray[n++]=Math.round(this._helpColorTransform.blueMultiplier*100);this._intArray[n++]=Math.round(this._helpColorTransform.alphaOffset);this._intArray[n++]=Math.round(this._helpColorTransform.redOffset);this._intArray[n++]=Math.round(this._helpColorTransform.greenOffset);this._intArray[n++]=Math.round(this._helpColorTransform.blueOffset);n-=8;break}}if(n<0){if(this._defaultColorOffset<0){this._defaultColorOffset=n=this._intArray.length;this._intArray.length+=8;this._intArray[n++]=100;this._intArray[n++]=100;this._intArray[n++]=100;this._intArray[n++]=100;this._intArray[n++]=0;this._intArray[n++]=0;this._intArray[n++]=0;this._intArray[n++]=0}n=this._defaultColorOffset}var l=this._frameIntArray.length;this._frameIntArray.length+=1;this._frameIntArray[l]=n;return r};a.prototype._parseSlotFFDFrame=function(t,e,i){var r=this._frameFloatArray.length;var n=this._parseTweenFrame(t,e,i);var s=a.VERTICES in t?t[a.VERTICES]:null;var o=a._getNumber(t,a.OFFSET,0);var l=this._intArray[this._mesh.offset+0];var h=this._skin.name+"_"+this._slot.name+"_"+this._mesh.name;var u=0;var f=0;var _=0;var m=0;if(this._mesh.weight!==null){var p=this._weightSlotPose[h];this._helpMatrixA.copyFromArray(p,0);this._frameFloatArray.length+=this._mesh.weight.count*2;_=this._mesh.weight.offset+2+this._mesh.weight.bones.length}else{this._frameFloatArray.length+=l*2}for(var c=0;c=s.length){u=0}else{u=s[c-o]}if(c+1=s.length){f=0}else{f=s[c+1-o]}}if(this._mesh.weight!==null){var d=this._weightBonePoses[h];var y=this._intArray[_++];this._helpMatrixA.transformPoint(u,f,this._helpPoint,true);u=this._helpPoint.x;f=this._helpPoint.y;for(var v=0;v=0||a.DATA_VERSIONS.indexOf(n)>=0){var s=t.BaseObject.borrowObject(t.DragonBonesData);s.version=r;s.name=a._getString(e,a.NAME,"");s.frameRate=a._getNumber(e,a.FRAME_RATE,24);if(s.frameRate===0){s.frameRate=24}if(a.ARMATURE in e){this._data=s;this._parseArray(e);var o=e[a.ARMATURE];for(var l=0,h=o;l0){s.stage=s.getArmature(s.armatureNames[0])}this._data=null}if(a.TEXTURE_ATLAS in e){this._rawTextureAtlases=e[a.TEXTURE_ATLAS]}return s}else{console.assert(false,"Nonsupport data version: "+r+"\n"+"Please convert DragonBones data to support version.\n"+"Read more: https://github.com/DragonBones/Tools/")}return null};a.prototype.parseTextureAtlasData=function(e,i,r){if(r===void 0){r=1}console.assert(e!==undefined);if(e===null){if(this._rawTextureAtlases===null||this._rawTextureAtlases.length===0){return false}var n=this._rawTextureAtlases[this._rawTextureAtlasIndex++];this.parseTextureAtlasData(n,i,r);if(this._rawTextureAtlasIndex>=this._rawTextureAtlases.length){this._rawTextureAtlasIndex=0;this._rawTextureAtlases=null}return true}i.width=a._getNumber(e,a.WIDTH,0);i.height=a._getNumber(e,a.HEIGHT,0);i.scale=r===1?1/a._getNumber(e,a.SCALE,1):r;i.name=a._getString(e,a.NAME,"");i.imagePath=a._getString(e,a.IMAGE_PATH,"");if(a.SUB_TEXTURE in e){var s=e[a.SUB_TEXTURE];for(var o=0,l=s.length;o0&&_>0){u.frame=t.TextureData.createRectangle();u.frame.x=a._getNumber(h,a.FRAME_X,0);u.frame.y=a._getNumber(h,a.FRAME_Y,0);u.frame.width=f;u.frame.height=_}i.addTexture(u)}}return true};a.getInstance=function(){if(a._objectDataParserInstance===null){a._objectDataParserInstance=new a}return a._objectDataParserInstance};a._objectDataParserInstance=null;return a}(t.DataParser);t.ObjectDataParser=e;var i=function(){function t(){this.frameStart=0;this.actions=[]}return t}();t.ActionFrame=i})(dragonBones||(dragonBones={}));var dragonBones;(function(t){var e=function(e){__extends(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}i.prototype._inRange=function(t,e,i){return e<=t&&t<=i};i.prototype._decodeUTF8=function(t){var e=-1;var i=-1;var a=65533;var r=0;var n="";var s;var o=0;var l=0;var h=0;var u=0;while(t.length>r){var f=t[r++];if(f===e){if(l!==0){s=a}else{s=i}}else{if(l===0){if(this._inRange(f,0,127)){s=f}else{if(this._inRange(f,194,223)){l=1;u=128;o=f-192}else if(this._inRange(f,224,239)){l=2;u=2048;o=f-224}else if(this._inRange(f,240,244)){l=3;u=65536;o=f-240}else{}o=o*Math.pow(64,l);s=null}}else if(!this._inRange(f,128,191)){o=0;l=0;h=0;u=0;r--;s=f}else{h+=1;o=o+(f-128)*Math.pow(64,l-h);if(h!==l){s=null}else{var _=o;var m=u;o=0;l=0;h=0;u=0;if(this._inRange(_,m,1114111)&&!this._inRange(_,55296,57343)){s=_}else{s=f}}}}if(s!==null&&s!==i){if(s<=65535){if(s>0)n+=String.fromCharCode(s)}else{s-=65536;n+=String.fromCharCode(55296+(s>>10&1023));n+=String.fromCharCode(56320+(s&1023))}}}return n};i.prototype._getUTF16Key=function(t){for(var e=0,i=t.length;e255){return encodeURI(t)}}return t};i.prototype._parseBinaryTimeline=function(e,i,a){if(a===void 0){a=null}var r=a!==null?a:t.BaseObject.borrowObject(t.TimelineData);r.type=e;r.offset=i;this._timeline=r;var n=this._timelineArrayBuffer[r.offset+2];if(n===1){r.frameIndicesOffset=-1}else{var s=0;var o=this._animation.frameCount+1;var l=this._data.frameIndices;if(t.DragonBones.webAssembly){s=l.size();l.resize(s+o,0)}else{s=l.length;l.length+=o}r.frameIndicesOffset=s;for(var h=0,u=0,f=0,_=0;h=0){var r=t.BaseObject.borrowObject(t.WeightData);var n=this._intArrayBuffer[i.offset+0];var s=this._intArrayBuffer[a+0];r.offset=a;for(var o=0;o0){if(e in this._dragonBonesDataMap){n=this._dragonBonesDataMap[e];s=n.getArmature(i)}}if(s===null&&(e.length===0||this.autoSearch)){for(var o in this._dragonBonesDataMap){n=this._dragonBonesDataMap[o];if(e.length===0||n.autoSearch){s=n.getArmature(i);if(s!==null){e=o;break}}}}if(s!==null){t.dataName=e;t.textureAtlasName=r;t.data=n;t.armature=s;t.skin=null;if(a.length>0){t.skin=s.getSkin(a);if(t.skin===null&&this.autoSearch){for(var o in this._dragonBonesDataMap){var l=this._dragonBonesDataMap[o];var h=l.getArmature(a);if(h!==null){t.skin=h.defaultSkin;break}}}}if(t.skin===null){t.skin=s.defaultSkin}return true}return false};e.prototype._buildBones=function(e,i){for(var a=0,r=e.armature.sortedBones;a0){s.texture=this._getTextureData(t.textureAtlasName,e.path)}if(i!==null&&i.type===2&&this._isSupportMesh()){n=a.meshDisplay}else{n=a.rawDisplay}break}case 2:{var o=e;if(o.texture===null){o.texture=this._getTextureData(r,o.path)}else if(t!==null&&t.textureAtlasName.length>0){o.texture=this._getTextureData(t.textureAtlasName,o.path)}if(this._isSupportMesh()){n=a.meshDisplay}else{n=a.rawDisplay}break}case 1:{var l=e;var h=this._buildChildArmature(t,a,e);if(h!==null){h.inheritAnimation=l.inheritAnimation;if(!h.inheritAnimation){var u=l.actions.length>0?l.actions:h.armatureData.defaultActions;if(u.length>0){for(var f=0,_=u;f<_.length;f++){var m=_[f];h._bufferAction(m,true)}}else{h.animation.play()}}l.armature=h.armatureData}n=h;break}case 3:break;default:break}return n};e.prototype.parseDragonBonesData=function(t,i,a){if(i===void 0){i=null}if(a===void 0){a=1}var r=t instanceof ArrayBuffer?e._binaryParser:this._dataParser;var n=r.parseDragonBonesData(t,a);while(true){var s=this._buildTextureAtlasData(null,null);if(r.parseTextureAtlasData(null,s,a)){this.addTextureAtlasData(s,i)}else{s.returnToPool();break}}if(n!==null){this.addDragonBonesData(n,i)}return n};e.prototype.parseTextureAtlasData=function(t,e,i,a){if(i===void 0){i=null}if(a===void 0){a=1}var r=this._buildTextureAtlasData(null,null);this._dataParser.parseTextureAtlasData(t,r,a);this._buildTextureAtlasData(r,e||null);this.addTextureAtlasData(r,i);return r};e.prototype.updateTextureAtlasData=function(t,e){var i=this.getTextureAtlasData(t);if(i!==null){for(var a=0,r=i.length;a=0){continue}var h=i.getDisplays(l.name);if(!h){if(a){l.rawDisplayDatas=null;l.displayList=[]}continue}var u=t.DragonBones.webAssembly?h.size():h.length;var f=l.displayList;f.length=u;for(var _=0,m=u;_0};i.prototype.addDBEventListener=function(t,e,i){if(!(t in this._signals)){this._signals[t]=new Phaser.Signal}var a=this._signals[t];a.add(e,i)};i.prototype.removeDBEventListener=function(t,e,i){if(t in this._signals){var a=this._signals[t];a.remove(e,i)}};Object.defineProperty(i.prototype,"armature",{get:function(){return this._armature},enumerable:true,configurable:true});Object.defineProperty(i.prototype,"animation",{get:function(){return this._armature.animation},enumerable:true,configurable:true});i.prototype.hasEvent=function(t){return this.hasDBEventListener(t)};i.prototype.addEvent=function(t,e,i){this.addDBEventListener(t,e,i)};i.prototype.removeEvent=function(t,e,i){this.removeDBEventListener(t,e,i)};return i}(Phaser.Sprite);t.PhaserArmatureDisplay=e;Phaser.Image.prototype.updateTransform=function(e){if(!e&&!this.parent&&!this.game){return this}var i=this.parent;if(e){i=e}else if(!this.parent){i=this.game.world}var a=i.worldTransform;var r=this.worldTransform;var n,s,o,l,h,u;if(this.rotation%Phaser.Math.PI2){if(this.rotation!==this.rotationCache){this.rotationCache=this.rotation;this._sr=Math.sin(this.rotation);this._cr=Math.cos(this.rotation)}var f=this.skew%t.Transform.PI_D;if(f>.01||f<-.01){n=this._cr*this.scale.x;s=this._sr*this.scale.x;o=-Math.sin(f+this.rotation)*this.scale.y;l=Math.cos(f+this.rotation)*this.scale.y;h=this.position.x;u=this.position.y}else{n=this._cr*this.scale.x;s=this._sr*this.scale.x;o=-this._sr*this.scale.y;l=this._cr*this.scale.y;h=this.position.x;u=this.position.y}if(this.pivot.x||this.pivot.y){h-=this.pivot.x*n+this.pivot.y*o;u-=this.pivot.x*s+this.pivot.y*l}r.a=n*a.a+s*a.c;r.b=n*a.b+s*a.d;r.c=o*a.a+l*a.c;r.d=o*a.b+l*a.d;r.tx=h*a.a+u*a.c+a.tx;r.ty=h*a.b+u*a.d+a.ty}else{n=this.scale.x;s=0;o=0;l=this.scale.y;h=this.position.x-this.pivot.x*n;u=this.position.y-this.pivot.y*l;r.a=n*a.a;r.b=n*a.b;r.c=l*a.c;r.d=l*a.d;r.tx=h*a.a+u*a.c+a.tx;r.ty=h*a.b+u*a.d+a.ty}n=r.a;s=r.b;o=r.c;l=r.d;var _=n*l-s*o;if(n||s){var m=Math.sqrt(n*n+s*s);this.worldRotation=s>0?Math.acos(n/m):-Math.acos(n/m);this.worldScale.x=m;this.worldScale.y=_/m}else if(o||l){var p=Math.sqrt(o*o+l*l);this.worldRotation=Phaser.Math.HALF_PI-(l>0?Math.acos(-o/p):-Math.acos(o/p));this.worldScale.x=_/p;this.worldScale.y=p}else{this.worldScale.x=0;this.worldScale.y=0}this.worldAlpha=this.alpha*i.worldAlpha;this.worldPosition.x=r.tx;this.worldPosition.y=r.ty;this._currentBounds=null;if(this.transformCallback){this.transformCallback.call(this.transformCallbackContext,r,a)}return this}})(dragonBones||(dragonBones={}));var dragonBones;(function(t){var e=function(e){__extends(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}i.toString=function(){return"[class dragonBones.PhaserSlot]"};i.prototype._onClear=function(){e.prototype._onClear.call(this);this._textureScale=1;this._renderDisplay=null};i.prototype._initDisplay=function(t){t};i.prototype._disposeDisplay=function(t){t.destroy(true)};i.prototype._onUpdateDisplay=function(){this._renderDisplay=this._display?this._display:this._rawDisplay};i.prototype._addDisplay=function(){var t=this._armature.display;t.addChild(this._renderDisplay)};i.prototype._replaceDisplay=function(t){var e=this._armature.display;var i=t;e.addChild(this._renderDisplay);e.swapChildren(this._renderDisplay,i);e.removeChild(i);this._textureScale=1};i.prototype._removeDisplay=function(){this._renderDisplay.parent.removeChild(this._renderDisplay)};i.prototype._updateZOrder=function(){var t=this._armature.display;var e=t.getChildIndex(this._renderDisplay);if(e===this._zOrder){return}t.addChildAt(this._renderDisplay,this._zOrder)};i.prototype._updateVisible=function(){this._renderDisplay.visible=this._parent.visible&&this._visible};i.prototype._updateBlendMode=function(){if(this._renderDisplay instanceof PIXI.Sprite){switch(this._blendMode){case 0:this._renderDisplay.blendMode=PIXI.blendModes.NORMAL;break;case 1:this._renderDisplay.blendMode=PIXI.blendModes.ADD;break;case 3:this._renderDisplay.blendMode=PIXI.blendModes.DARKEN;break;case 4:this._renderDisplay.blendMode=PIXI.blendModes.DIFFERENCE;break;case 6:this._renderDisplay.blendMode=PIXI.blendModes.HARD_LIGHT;break;case 9:this._renderDisplay.blendMode=PIXI.blendModes.LIGHTEN;break;case 10:this._renderDisplay.blendMode=PIXI.blendModes.MULTIPLY;break;case 11:this._renderDisplay.blendMode=PIXI.blendModes.OVERLAY;break;case 12:this._renderDisplay.blendMode=PIXI.blendModes.SCREEN;break;default:break}}};i.prototype._updateColor=function(){this._renderDisplay.alpha=this._colorTransform.alphaMultiplier;if(this._renderDisplay instanceof PIXI.Sprite){var t=(Math.round(this._colorTransform.redMultiplier*255)<<16)+(Math.round(this._colorTransform.greenMultiplier*255)<<8)+Math.round(this._colorTransform.blueMultiplier*255);this._renderDisplay.tint=t}};i.prototype._updateFrame=function(){var e=this._display===this._meshDisplay?this._meshData:null;var i=this._textureData;if(this._displayIndex>=0&&this._display!==null&&i!==null){var a=i.parent;if(this._armature.replacedTexture!==null&&this._rawDisplayDatas!==null&&this._rawDisplayDatas.indexOf(this._displayData)>=0){if(this._armature._replaceTextureAtlasData===null){a=t.BaseObject.borrowObject(t.PhaserTextureAtlasData);a.copyFrom(i.parent);a.renderTexture=this._armature.replacedTexture;this._armature._replaceTextureAtlasData=a}else{a=this._armature._replaceTextureAtlasData}i=a.getTexture(i.name)}var r=i.renderTexture;if(r!==null){if(e!==null){}else{this._textureScale=i.parent.scale*this._armature._armatureData.scale;var n=this._renderDisplay;n.setTexture(r)}this._visibleDirty=true;return}}if(e!==null){}else{var n=this._renderDisplay;n.x=0;n.y=0;n.visible=false}};i.prototype._updateMesh=function(){};i.prototype._updateTransform=function(t){if(t){this._renderDisplay.x=0;this._renderDisplay.y=0;this._renderDisplay.rotation=0;this._renderDisplay.skew=0;this._renderDisplay.scale.x=1;this._renderDisplay.scale.y=1}else{this.updateGlobalTransform();var e=this.global;if(this._renderDisplay===this._rawDisplay||this._renderDisplay===this._meshDisplay){var i=e.x-(this.globalTransformMatrix.a*this._pivotX+this.globalTransformMatrix.c*this._pivotY);var a=e.y-(this.globalTransformMatrix.b*this._pivotX+this.globalTransformMatrix.d*this._pivotY);this._renderDisplay.x=i;this._renderDisplay.y=a}else{this._renderDisplay.x=e.x;this._renderDisplay.y=e.y}this._renderDisplay.rotation=e.rotation;this._renderDisplay.skew=e.skew;this._renderDisplay.scale.x=e.scaleX*this._textureScale;this._renderDisplay.scale.y=e.scaleY*this._textureScale}};return i}(t.Slot);t.PhaserSlot=e})(dragonBones||(dragonBones={}));var dragonBones;(function(t){var e=function(e){__extends(i,e);function i(t){if(t===void 0){t=null}var a=e.call(this,t)||this;a._dragonBones=i._dragonBonesInstance;return a}i.init=function(e){if(i._game!==null){return}i._game=e;var a=new t.PhaserArmatureDisplay;i._dragonBonesInstance=new t.DragonBones(a)};Object.defineProperty(i,"factory",{get:function(){if(i._factory===null){i._factory=new i}return i._factory},enumerable:true,configurable:true});i.prototype._isSupportMesh=function(){console.warn("Phaser-ce can not support mesh.");return false};i.prototype._buildTextureAtlasData=function(e,i){if(e){e.renderTexture=i}else{e=t.BaseObject.borrowObject(t.PhaserTextureAtlasData)}return e};i.prototype._buildArmature=function(e){var i=t.BaseObject.borrowObject(t.Armature);var a=new t.PhaserArmatureDisplay;i.init(e.armature,a,a,this._dragonBones);return i};i.prototype._buildSlot=function(e,a,r,n){e;n;var s=t.BaseObject.borrowObject(t.PhaserSlot);var o=new Phaser.Image(i._game,0,0,Phaser.Cache.DEFAULT);s.init(a,r,o,o);return s};i.prototype.buildArmatureDisplay=function(t,e,i,a){if(e===void 0){e=""}if(i===void 0){i=""}if(a===void 0){a=""}var r=this.buildArmature(t,e||"",i||"",a||"");if(r!==null){this._dragonBones.clock.add(r);return r.display}return null};i.prototype.getTextureDisplay=function(t,e){if(e===void 0){e=null}var a=this._getTextureData(e!==null?e:"",t);if(a!==null&&a.renderTexture!==null){return new Phaser.Sprite(i._game,0,0)}return null};Object.defineProperty(i.prototype,"soundEventManager",{get:function(){return this._dragonBones.eventManager},enumerable:true,configurable:true});i._game=null;i._dragonBonesInstance=null;i._factory=null;return i}(t.BaseFactory);t.PhaserFactory=e})(dragonBones||(dragonBones={})); \ No newline at end of file diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/lib/easeljs-0.8.2.combined.js b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/lib/easeljs-0.8.2.combined.js new file mode 100644 index 000000000..b52854b79 --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/assets/lib/easeljs-0.8.2.combined.js @@ -0,0 +1,13413 @@ +/*! +* EaselJS +* Visit http://createjs.com/ for documentation, updates and examples. +* +* Copyright (c) 2010 gskinner.com, inc. +* +* Permission is hereby granted, free of charge, to any person +* obtaining a copy of this software and associated documentation +* files (the "Software"), to deal in the Software without +* restriction, including without limitation the rights to use, +* copy, modify, merge, publish, distribute, sublicense, and/or sell +* copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following +* conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +*/ + + +//############################################################################## +// extend.js +//############################################################################## + +this.createjs = this.createjs||{}; + +/** + * @class Utility Methods + */ + +/** + * Sets up the prototype chain and constructor property for a new class. + * + * This should be called right after creating the class constructor. + * + * function MySubClass() {} + * createjs.extend(MySubClass, MySuperClass); + * MySubClass.prototype.doSomething = function() { } + * + * var foo = new MySubClass(); + * console.log(foo instanceof MySuperClass); // true + * console.log(foo.prototype.constructor === MySubClass); // true + * + * @method extend + * @param {Function} subclass The subclass. + * @param {Function} superclass The superclass to extend. + * @return {Function} Returns the subclass's new prototype. + */ +createjs.extend = function(subclass, superclass) { + "use strict"; + + function o() { this.constructor = subclass; } + o.prototype = superclass.prototype; + return (subclass.prototype = new o()); +}; + +//############################################################################## +// promote.js +//############################################################################## + +this.createjs = this.createjs||{}; + +/** + * @class Utility Methods + */ + +/** + * Promotes any methods on the super class that were overridden, by creating an alias in the format `prefix_methodName`. + * It is recommended to use the super class's name as the prefix. + * An alias to the super class's constructor is always added in the format `prefix_constructor`. + * This allows the subclass to call super class methods without using `function.call`, providing better performance. + * + * For example, if `MySubClass` extends `MySuperClass`, and both define a `draw` method, then calling `promote(MySubClass, "MySuperClass")` + * would add a `MySuperClass_constructor` method to MySubClass and promote the `draw` method on `MySuperClass` to the + * prototype of `MySubClass` as `MySuperClass_draw`. + * + * This should be called after the class's prototype is fully defined. + * + * function ClassA(name) { + * this.name = name; + * } + * ClassA.prototype.greet = function() { + * return "Hello "+this.name; + * } + * + * function ClassB(name, punctuation) { + * this.ClassA_constructor(name); + * this.punctuation = punctuation; + * } + * createjs.extend(ClassB, ClassA); + * ClassB.prototype.greet = function() { + * return this.ClassA_greet()+this.punctuation; + * } + * createjs.promote(ClassB, "ClassA"); + * + * var foo = new ClassB("World", "!?!"); + * console.log(foo.greet()); // Hello World!?! + * + * @method promote + * @param {Function} subclass The class to promote super class methods on. + * @param {String} prefix The prefix to add to the promoted method names. Usually the name of the superclass. + * @return {Function} Returns the subclass. + */ +createjs.promote = function(subclass, prefix) { + "use strict"; + + var subP = subclass.prototype, supP = (Object.getPrototypeOf&&Object.getPrototypeOf(subP))||subP.__proto__; + if (supP) { + subP[(prefix+="_") + "constructor"] = supP.constructor; // constructor is not always innumerable + for (var n in supP) { + if (subP.hasOwnProperty(n) && (typeof supP[n] == "function")) { subP[prefix + n] = supP[n]; } + } + } + return subclass; +}; + +//############################################################################## +// indexOf.js +//############################################################################## + +this.createjs = this.createjs||{}; + +/** + * @class Utility Methods + */ + +/** + * Finds the first occurrence of a specified value searchElement in the passed in array, and returns the index of + * that value. Returns -1 if value is not found. + * + * var i = createjs.indexOf(myArray, myElementToFind); + * + * @method indexOf + * @param {Array} array Array to search for searchElement + * @param searchElement Element to find in array. + * @return {Number} The first index of searchElement in array. + */ +createjs.indexOf = function (array, searchElement){ + "use strict"; + + for (var i = 0,l=array.length; i < l; i++) { + if (searchElement === array[i]) { + return i; + } + } + return -1; +}; + +//############################################################################## +// Event.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + +// constructor: + /** + * Contains properties and methods shared by all events for use with + * {{#crossLink "EventDispatcher"}}{{/crossLink}}. + * + * Note that Event objects are often reused, so you should never + * rely on an event object's state outside of the call stack it was received in. + * @class Event + * @param {String} type The event type. + * @param {Boolean} bubbles Indicates whether the event will bubble through the display list. + * @param {Boolean} cancelable Indicates whether the default behaviour of this event can be cancelled. + * @constructor + **/ + function Event(type, bubbles, cancelable) { + + + // public properties: + /** + * The type of event. + * @property type + * @type String + **/ + this.type = type; + + /** + * The object that generated an event. + * @property target + * @type Object + * @default null + * @readonly + */ + this.target = null; + + /** + * The current target that a bubbling event is being dispatched from. For non-bubbling events, this will + * always be the same as target. For example, if childObj.parent = parentObj, and a bubbling event + * is generated from childObj, then a listener on parentObj would receive the event with + * target=childObj (the original target) and currentTarget=parentObj (where the listener was added). + * @property currentTarget + * @type Object + * @default null + * @readonly + */ + this.currentTarget = null; + + /** + * For bubbling events, this indicates the current event phase:
    + *
  1. capture phase: starting from the top parent to the target
  2. + *
  3. at target phase: currently being dispatched from the target
  4. + *
  5. bubbling phase: from the target to the top parent
  6. + *
+ * @property eventPhase + * @type Number + * @default 0 + * @readonly + */ + this.eventPhase = 0; + + /** + * Indicates whether the event will bubble through the display list. + * @property bubbles + * @type Boolean + * @default false + * @readonly + */ + this.bubbles = !!bubbles; + + /** + * Indicates whether the default behaviour of this event can be cancelled via + * {{#crossLink "Event/preventDefault"}}{{/crossLink}}. This is set via the Event constructor. + * @property cancelable + * @type Boolean + * @default false + * @readonly + */ + this.cancelable = !!cancelable; + + /** + * The epoch time at which this event was created. + * @property timeStamp + * @type Number + * @default 0 + * @readonly + */ + this.timeStamp = (new Date()).getTime(); + + /** + * Indicates if {{#crossLink "Event/preventDefault"}}{{/crossLink}} has been called + * on this event. + * @property defaultPrevented + * @type Boolean + * @default false + * @readonly + */ + this.defaultPrevented = false; + + /** + * Indicates if {{#crossLink "Event/stopPropagation"}}{{/crossLink}} or + * {{#crossLink "Event/stopImmediatePropagation"}}{{/crossLink}} has been called on this event. + * @property propagationStopped + * @type Boolean + * @default false + * @readonly + */ + this.propagationStopped = false; + + /** + * Indicates if {{#crossLink "Event/stopImmediatePropagation"}}{{/crossLink}} has been called + * on this event. + * @property immediatePropagationStopped + * @type Boolean + * @default false + * @readonly + */ + this.immediatePropagationStopped = false; + + /** + * Indicates if {{#crossLink "Event/remove"}}{{/crossLink}} has been called on this event. + * @property removed + * @type Boolean + * @default false + * @readonly + */ + this.removed = false; + } + var p = Event.prototype; + + /** + * REMOVED. Removed in favor of using `MySuperClass_constructor`. + * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}} + * for details. + * + * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance. + * + * @method initialize + * @protected + * @deprecated + */ + // p.initialize = function() {}; // searchable for devs wondering where it is. + +// public methods: + /** + * Sets {{#crossLink "Event/defaultPrevented"}}{{/crossLink}} to true if the event is cancelable. + * Mirrors the DOM level 2 event standard. In general, cancelable events that have `preventDefault()` called will + * cancel the default behaviour associated with the event. + * @method preventDefault + **/ + p.preventDefault = function() { + this.defaultPrevented = this.cancelable&&true; + }; + + /** + * Sets {{#crossLink "Event/propagationStopped"}}{{/crossLink}} to true. + * Mirrors the DOM event standard. + * @method stopPropagation + **/ + p.stopPropagation = function() { + this.propagationStopped = true; + }; + + /** + * Sets {{#crossLink "Event/propagationStopped"}}{{/crossLink}} and + * {{#crossLink "Event/immediatePropagationStopped"}}{{/crossLink}} to true. + * Mirrors the DOM event standard. + * @method stopImmediatePropagation + **/ + p.stopImmediatePropagation = function() { + this.immediatePropagationStopped = this.propagationStopped = true; + }; + + /** + * Causes the active listener to be removed via removeEventListener(); + * + * myBtn.addEventListener("click", function(evt) { + * // do stuff... + * evt.remove(); // removes this listener. + * }); + * + * @method remove + **/ + p.remove = function() { + this.removed = true; + }; + + /** + * Returns a clone of the Event instance. + * @method clone + * @return {Event} a clone of the Event instance. + **/ + p.clone = function() { + return new Event(this.type, this.bubbles, this.cancelable); + }; + + /** + * Provides a chainable shortcut method for setting a number of properties on the instance. + * + * @method set + * @param {Object} props A generic object containing properties to copy to the instance. + * @return {Event} Returns the instance the method is called on (useful for chaining calls.) + * @chainable + */ + p.set = function(props) { + for (var n in props) { this[n] = props[n]; } + return this; + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[Event (type="+this.type+")]"; + }; + + createjs.Event = Event; +}()); + +//############################################################################## +// EventDispatcher.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * EventDispatcher provides methods for managing queues of event listeners and dispatching events. + * + * You can either extend EventDispatcher or mix its methods into an existing prototype or instance by using the + * EventDispatcher {{#crossLink "EventDispatcher/initialize"}}{{/crossLink}} method. + * + * Together with the CreateJS Event class, EventDispatcher provides an extended event model that is based on the + * DOM Level 2 event model, including addEventListener, removeEventListener, and dispatchEvent. It supports + * bubbling / capture, preventDefault, stopPropagation, stopImmediatePropagation, and handleEvent. + * + * EventDispatcher also exposes a {{#crossLink "EventDispatcher/on"}}{{/crossLink}} method, which makes it easier + * to create scoped listeners, listeners that only run once, and listeners with associated arbitrary data. The + * {{#crossLink "EventDispatcher/off"}}{{/crossLink}} method is merely an alias to + * {{#crossLink "EventDispatcher/removeEventListener"}}{{/crossLink}}. + * + * Another addition to the DOM Level 2 model is the {{#crossLink "EventDispatcher/removeAllEventListeners"}}{{/crossLink}} + * method, which can be used to listeners for all events, or listeners for a specific event. The Event object also + * includes a {{#crossLink "Event/remove"}}{{/crossLink}} method which removes the active listener. + * + *

Example

+ * Add EventDispatcher capabilities to the "MyClass" class. + * + * EventDispatcher.initialize(MyClass.prototype); + * + * Add an event (see {{#crossLink "EventDispatcher/addEventListener"}}{{/crossLink}}). + * + * instance.addEventListener("eventName", handlerMethod); + * function handlerMethod(event) { + * console.log(event.target + " Was Clicked"); + * } + * + * Maintaining proper scope
+ * Scope (ie. "this") can be be a challenge with events. Using the {{#crossLink "EventDispatcher/on"}}{{/crossLink}} + * method to subscribe to events simplifies this. + * + * instance.addEventListener("click", function(event) { + * console.log(instance == this); // false, scope is ambiguous. + * }); + * + * instance.on("click", function(event) { + * console.log(instance == this); // true, "on" uses dispatcher scope by default. + * }); + * + * If you want to use addEventListener instead, you may want to use function.bind() or a similar proxy to manage + * scope. + * + * Browser support + * The event model in CreateJS can be used separately from the suite in any project, however the inheritance model + * requires modern browsers (IE9+). + * + * + * @class EventDispatcher + * @constructor + **/ + function EventDispatcher() { + + + // private properties: + /** + * @protected + * @property _listeners + * @type Object + **/ + this._listeners = null; + + /** + * @protected + * @property _captureListeners + * @type Object + **/ + this._captureListeners = null; + } + var p = EventDispatcher.prototype; + + /** + * REMOVED. Removed in favor of using `MySuperClass_constructor`. + * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}} + * for details. + * + * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance. + * + * @method initialize + * @protected + * @deprecated + */ + // p.initialize = function() {}; // searchable for devs wondering where it is. + + +// static public methods: + /** + * Static initializer to mix EventDispatcher methods into a target object or prototype. + * + * EventDispatcher.initialize(MyClass.prototype); // add to the prototype of the class + * EventDispatcher.initialize(myObject); // add to a specific instance + * + * @method initialize + * @static + * @param {Object} target The target object to inject EventDispatcher methods into. This can be an instance or a + * prototype. + **/ + EventDispatcher.initialize = function(target) { + target.addEventListener = p.addEventListener; + target.on = p.on; + target.removeEventListener = target.off = p.removeEventListener; + target.removeAllEventListeners = p.removeAllEventListeners; + target.hasEventListener = p.hasEventListener; + target.dispatchEvent = p.dispatchEvent; + target._dispatchEvent = p._dispatchEvent; + target.willTrigger = p.willTrigger; + }; + + +// public methods: + /** + * Adds the specified event listener. Note that adding multiple listeners to the same function will result in + * multiple callbacks getting fired. + * + *

Example

+ * + * displayObject.addEventListener("click", handleClick); + * function handleClick(event) { + * // Click happened. + * } + * + * @method addEventListener + * @param {String} type The string type of the event. + * @param {Function | Object} listener An object with a handleEvent method, or a function that will be called when + * the event is dispatched. + * @param {Boolean} [useCapture] For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase. + * @return {Function | Object} Returns the listener for chaining or assignment. + **/ + p.addEventListener = function(type, listener, useCapture) { + var listeners; + if (useCapture) { + listeners = this._captureListeners = this._captureListeners||{}; + } else { + listeners = this._listeners = this._listeners||{}; + } + var arr = listeners[type]; + if (arr) { this.removeEventListener(type, listener, useCapture); } + arr = listeners[type]; // remove may have deleted the array + if (!arr) { listeners[type] = [listener]; } + else { arr.push(listener); } + return listener; + }; + + /** + * A shortcut method for using addEventListener that makes it easier to specify an execution scope, have a listener + * only run once, associate arbitrary data with the listener, and remove the listener. + * + * This method works by creating an anonymous wrapper function and subscribing it with addEventListener. + * The wrapper function is returned for use with `removeEventListener` (or `off`). + * + * IMPORTANT: To remove a listener added with `on`, you must pass in the returned wrapper function as the listener, or use + * {{#crossLink "Event/remove"}}{{/crossLink}}. Likewise, each time you call `on` a NEW wrapper function is subscribed, so multiple calls + * to `on` with the same params will create multiple listeners. + * + *

Example

+ * + * var listener = myBtn.on("click", handleClick, null, false, {count:3}); + * function handleClick(evt, data) { + * data.count -= 1; + * console.log(this == myBtn); // true - scope defaults to the dispatcher + * if (data.count == 0) { + * alert("clicked 3 times!"); + * myBtn.off("click", listener); + * // alternately: evt.remove(); + * } + * } + * + * @method on + * @param {String} type The string type of the event. + * @param {Function | Object} listener An object with a handleEvent method, or a function that will be called when + * the event is dispatched. + * @param {Object} [scope] The scope to execute the listener in. Defaults to the dispatcher/currentTarget for function listeners, and to the listener itself for object listeners (ie. using handleEvent). + * @param {Boolean} [once=false] If true, the listener will remove itself after the first time it is triggered. + * @param {*} [data] Arbitrary data that will be included as the second parameter when the listener is called. + * @param {Boolean} [useCapture=false] For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase. + * @return {Function} Returns the anonymous function that was created and assigned as the listener. This is needed to remove the listener later using .removeEventListener. + **/ + p.on = function(type, listener, scope, once, data, useCapture) { + if (listener.handleEvent) { + scope = scope||listener; + listener = listener.handleEvent; + } + scope = scope||this; + return this.addEventListener(type, function(evt) { + listener.call(scope, evt, data); + once&&evt.remove(); + }, useCapture); + }; + + /** + * Removes the specified event listener. + * + * Important Note: that you must pass the exact function reference used when the event was added. If a proxy + * function, or function closure is used as the callback, the proxy/closure reference must be used - a new proxy or + * closure will not work. + * + *

Example

+ * + * displayObject.removeEventListener("click", handleClick); + * + * @method removeEventListener + * @param {String} type The string type of the event. + * @param {Function | Object} listener The listener function or object. + * @param {Boolean} [useCapture] For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase. + **/ + p.removeEventListener = function(type, listener, useCapture) { + var listeners = useCapture ? this._captureListeners : this._listeners; + if (!listeners) { return; } + var arr = listeners[type]; + if (!arr) { return; } + for (var i=0,l=arr.length; iIMPORTANT: To remove a listener added with `on`, you must pass in the returned wrapper function as the listener. See + * {{#crossLink "EventDispatcher/on"}}{{/crossLink}} for an example. + * + * @method off + * @param {String} type The string type of the event. + * @param {Function | Object} listener The listener function or object. + * @param {Boolean} [useCapture] For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase. + **/ + p.off = p.removeEventListener; + + /** + * Removes all listeners for the specified type, or all listeners of all types. + * + *

Example

+ * + * // Remove all listeners + * displayObject.removeAllEventListeners(); + * + * // Remove all click listeners + * displayObject.removeAllEventListeners("click"); + * + * @method removeAllEventListeners + * @param {String} [type] The string type of the event. If omitted, all listeners for all types will be removed. + **/ + p.removeAllEventListeners = function(type) { + if (!type) { this._listeners = this._captureListeners = null; } + else { + if (this._listeners) { delete(this._listeners[type]); } + if (this._captureListeners) { delete(this._captureListeners[type]); } + } + }; + + /** + * Dispatches the specified event to all listeners. + * + *

Example

+ * + * // Use a string event + * this.dispatchEvent("complete"); + * + * // Use an Event instance + * var event = new createjs.Event("progress"); + * this.dispatchEvent(event); + * + * @method dispatchEvent + * @param {Object | String | Event} eventObj An object with a "type" property, or a string type. + * While a generic object will work, it is recommended to use a CreateJS Event instance. If a string is used, + * dispatchEvent will construct an Event instance if necessary with the specified type. This latter approach can + * be used to avoid event object instantiation for non-bubbling events that may not have any listeners. + * @param {Boolean} [bubbles] Specifies the `bubbles` value when a string was passed to eventObj. + * @param {Boolean} [cancelable] Specifies the `cancelable` value when a string was passed to eventObj. + * @return {Boolean} Returns false if `preventDefault()` was called on a cancelable event, true otherwise. + **/ + p.dispatchEvent = function(eventObj, bubbles, cancelable) { + if (typeof eventObj == "string") { + // skip everything if there's no listeners and it doesn't bubble: + var listeners = this._listeners; + if (!bubbles && (!listeners || !listeners[eventObj])) { return true; } + eventObj = new createjs.Event(eventObj, bubbles, cancelable); + } else if (eventObj.target && eventObj.clone) { + // redispatching an active event object, so clone it: + eventObj = eventObj.clone(); + } + + // TODO: it would be nice to eliminate this. Maybe in favour of evtObj instanceof Event? Or !!evtObj.createEvent + try { eventObj.target = this; } catch (e) {} // try/catch allows redispatching of native events + + if (!eventObj.bubbles || !this.parent) { + this._dispatchEvent(eventObj, 2); + } else { + var top=this, list=[top]; + while (top.parent) { list.push(top = top.parent); } + var i, l=list.length; + + // capture & atTarget + for (i=l-1; i>=0 && !eventObj.propagationStopped; i--) { + list[i]._dispatchEvent(eventObj, 1+(i==0)); + } + // bubbling + for (i=1; iExample + * + * createjs.Ticker.addEventListener("tick", handleTick); + * function handleTick(event) { + * // Actions carried out each tick (aka frame) + * if (!event.paused) { + * // Actions carried out when the Ticker is not paused. + * } + * } + * + * @class Ticker + * @uses EventDispatcher + * @static + **/ + function Ticker() { + throw "Ticker cannot be instantiated."; + } + + +// constants: + /** + * In this mode, Ticker uses the requestAnimationFrame API, but attempts to synch the ticks to target framerate. It + * uses a simple heuristic that compares the time of the RAF return to the target time for the current frame and + * dispatches the tick when the time is within a certain threshold. + * + * This mode has a higher variance for time between frames than {{#crossLink "Ticker/TIMEOUT:property"}}{{/crossLink}}, + * but does not require that content be time based as with {{#crossLink "Ticker/RAF:property"}}{{/crossLink}} while + * gaining the benefits of that API (screen synch, background throttling). + * + * Variance is usually lowest for framerates that are a divisor of the RAF frequency. This is usually 60, so + * framerates of 10, 12, 15, 20, and 30 work well. + * + * Falls back to {{#crossLink "Ticker/TIMEOUT:property"}}{{/crossLink}} if the requestAnimationFrame API is not + * supported. + * @property RAF_SYNCHED + * @static + * @type {String} + * @default "synched" + * @readonly + **/ + Ticker.RAF_SYNCHED = "synched"; + + /** + * In this mode, Ticker passes through the requestAnimationFrame heartbeat, ignoring the target framerate completely. + * Because requestAnimationFrame frequency is not deterministic, any content using this mode should be time based. + * You can leverage {{#crossLink "Ticker/getTime"}}{{/crossLink}} and the {{#crossLink "Ticker/tick:event"}}{{/crossLink}} + * event object's "delta" properties to make this easier. + * + * Falls back on {{#crossLink "Ticker/TIMEOUT:property"}}{{/crossLink}} if the requestAnimationFrame API is not + * supported. + * @property RAF + * @static + * @type {String} + * @default "raf" + * @readonly + **/ + Ticker.RAF = "raf"; + + /** + * In this mode, Ticker uses the setTimeout API. This provides predictable, adaptive frame timing, but does not + * provide the benefits of requestAnimationFrame (screen synch, background throttling). + * @property TIMEOUT + * @static + * @type {String} + * @default "timeout" + * @readonly + **/ + Ticker.TIMEOUT = "timeout"; + + +// static events: + /** + * Dispatched each tick. The event will be dispatched to each listener even when the Ticker has been paused using + * {{#crossLink "Ticker/setPaused"}}{{/crossLink}}. + * + *

Example

+ * + * createjs.Ticker.addEventListener("tick", handleTick); + * function handleTick(event) { + * console.log("Paused:", event.paused, event.delta); + * } + * + * @event tick + * @param {Object} target The object that dispatched the event. + * @param {String} type The event type. + * @param {Boolean} paused Indicates whether the ticker is currently paused. + * @param {Number} delta The time elapsed in ms since the last tick. + * @param {Number} time The total time in ms since Ticker was initialized. + * @param {Number} runTime The total time in ms that Ticker was not paused since it was initialized. For example, + * you could determine the amount of time that the Ticker has been paused since initialization with `time-runTime`. + * @since 0.6.0 + */ + + +// public static properties: + /** + * Deprecated in favour of {{#crossLink "Ticker/timingMode"}}{{/crossLink}}, and will be removed in a future version. If true, timingMode will + * use {{#crossLink "Ticker/RAF_SYNCHED"}}{{/crossLink}} by default. + * @deprecated Deprecated in favour of {{#crossLink "Ticker/timingMode"}}{{/crossLink}}. + * @property useRAF + * @static + * @type {Boolean} + * @default false + **/ + Ticker.useRAF = false; + + /** + * Specifies the timing api (setTimeout or requestAnimationFrame) and mode to use. See + * {{#crossLink "Ticker/TIMEOUT"}}{{/crossLink}}, {{#crossLink "Ticker/RAF"}}{{/crossLink}}, and + * {{#crossLink "Ticker/RAF_SYNCHED"}}{{/crossLink}} for mode details. + * @property timingMode + * @static + * @type {String} + * @default Ticker.TIMEOUT + **/ + Ticker.timingMode = null; + + /** + * Specifies a maximum value for the delta property in the tick event object. This is useful when building time + * based animations and systems to prevent issues caused by large time gaps caused by background tabs, system sleep, + * alert dialogs, or other blocking routines. Double the expected frame duration is often an effective value + * (ex. maxDelta=50 when running at 40fps). + * + * This does not impact any other values (ex. time, runTime, etc), so you may experience issues if you enable maxDelta + * when using both delta and other values. + * + * If 0, there is no maximum. + * @property maxDelta + * @static + * @type {number} + * @default 0 + */ + Ticker.maxDelta = 0; + + /** + * When the ticker is paused, all listeners will still receive a tick event, but the paused property + * of the event will be `true`. Also, while paused the `runTime` will not increase. See {{#crossLink "Ticker/tick:event"}}{{/crossLink}}, + * {{#crossLink "Ticker/getTime"}}{{/crossLink}}, and {{#crossLink "Ticker/getEventTime"}}{{/crossLink}} for more + * info. + * + *

Example

+ * + * createjs.Ticker.addEventListener("tick", handleTick); + * createjs.Ticker.paused = true; + * function handleTick(event) { + * console.log(event.paused, + * createjs.Ticker.getTime(false), + * createjs.Ticker.getTime(true)); + * } + * + * @property paused + * @static + * @type {Boolean} + * @default false + **/ + Ticker.paused = false; + + +// mix-ins: + // EventDispatcher methods: + Ticker.removeEventListener = null; + Ticker.removeAllEventListeners = null; + Ticker.dispatchEvent = null; + Ticker.hasEventListener = null; + Ticker._listeners = null; + createjs.EventDispatcher.initialize(Ticker); // inject EventDispatcher methods. + Ticker._addEventListener = Ticker.addEventListener; + Ticker.addEventListener = function() { + !Ticker._inited&&Ticker.init(); + return Ticker._addEventListener.apply(Ticker, arguments); + }; + + +// private static properties: + /** + * @property _inited + * @static + * @type {Boolean} + * @protected + **/ + Ticker._inited = false; + + /** + * @property _startTime + * @static + * @type {Number} + * @protected + **/ + Ticker._startTime = 0; + + /** + * @property _pausedTime + * @static + * @type {Number} + * @protected + **/ + Ticker._pausedTime=0; + + /** + * The number of ticks that have passed + * @property _ticks + * @static + * @type {Number} + * @protected + **/ + Ticker._ticks = 0; + + /** + * The number of ticks that have passed while Ticker has been paused + * @property _pausedTicks + * @static + * @type {Number} + * @protected + **/ + Ticker._pausedTicks = 0; + + /** + * @property _interval + * @static + * @type {Number} + * @protected + **/ + Ticker._interval = 50; + + /** + * @property _lastTime + * @static + * @type {Number} + * @protected + **/ + Ticker._lastTime = 0; + + /** + * @property _times + * @static + * @type {Array} + * @protected + **/ + Ticker._times = null; + + /** + * @property _tickTimes + * @static + * @type {Array} + * @protected + **/ + Ticker._tickTimes = null; + + /** + * Stores the timeout or requestAnimationFrame id. + * @property _timerId + * @static + * @type {Number} + * @protected + **/ + Ticker._timerId = null; + + /** + * True if currently using requestAnimationFrame, false if using setTimeout. This may be different than timingMode + * if that property changed and a tick hasn't fired. + * @property _raf + * @static + * @type {Boolean} + * @protected + **/ + Ticker._raf = true; + + +// static getter / setters: + /** + * Use the {{#crossLink "Ticker/interval:property"}}{{/crossLink}} property instead. + * @method setInterval + * @static + * @param {Number} interval + * @deprecated + **/ + Ticker.setInterval = function(interval) { + Ticker._interval = interval; + if (!Ticker._inited) { return; } + Ticker._setupTick(); + }; + + /** + * Use the {{#crossLink "Ticker/interval:property"}}{{/crossLink}} property instead. + * @method getInterval + * @static + * @return {Number} + * @deprecated + **/ + Ticker.getInterval = function() { + return Ticker._interval; + }; + + /** + * Use the {{#crossLink "Ticker/framerate:property"}}{{/crossLink}} property instead. + * @method setFPS + * @static + * @param {Number} value + * @deprecated + **/ + Ticker.setFPS = function(value) { + Ticker.setInterval(1000/value); + }; + + /** + * Use the {{#crossLink "Ticker/framerate:property"}}{{/crossLink}} property instead. + * @method getFPS + * @static + * @return {Number} + * @deprecated + **/ + Ticker.getFPS = function() { + return 1000/Ticker._interval; + }; + + /** + * Indicates the target time (in milliseconds) between ticks. Default is 50 (20 FPS). + * Note that actual time between ticks may be more than specified depending on CPU load. + * This property is ignored if the ticker is using the `RAF` timing mode. + * @property interval + * @static + * @type {Number} + **/ + + /** + * Indicates the target frame rate in frames per second (FPS). Effectively just a shortcut to `interval`, where + * `framerate == 1000/interval`. + * @property framerate + * @static + * @type {Number} + **/ + try { + Object.defineProperties(Ticker, { + interval: { get: Ticker.getInterval, set: Ticker.setInterval }, + framerate: { get: Ticker.getFPS, set: Ticker.setFPS } + }); + } catch (e) { console.log(e); } + + +// public static methods: + /** + * Starts the tick. This is called automatically when the first listener is added. + * @method init + * @static + **/ + Ticker.init = function() { + if (Ticker._inited) { return; } + Ticker._inited = true; + Ticker._times = []; + Ticker._tickTimes = []; + Ticker._startTime = Ticker._getTime(); + Ticker._times.push(Ticker._lastTime = 0); + Ticker.interval = Ticker._interval; + }; + + /** + * Stops the Ticker and removes all listeners. Use init() to restart the Ticker. + * @method reset + * @static + **/ + Ticker.reset = function() { + if (Ticker._raf) { + var f = window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || window.oCancelAnimationFrame || window.msCancelAnimationFrame; + f&&f(Ticker._timerId); + } else { + clearTimeout(Ticker._timerId); + } + Ticker.removeAllEventListeners("tick"); + Ticker._timerId = Ticker._times = Ticker._tickTimes = null; + Ticker._startTime = Ticker._lastTime = Ticker._ticks = 0; + Ticker._inited = false; + }; + + /** + * Returns the average time spent within a tick. This can vary significantly from the value provided by getMeasuredFPS + * because it only measures the time spent within the tick execution stack. + * + * Example 1: With a target FPS of 20, getMeasuredFPS() returns 20fps, which indicates an average of 50ms between + * the end of one tick and the end of the next. However, getMeasuredTickTime() returns 15ms. This indicates that + * there may be up to 35ms of "idle" time between the end of one tick and the start of the next. + * + * Example 2: With a target FPS of 30, getFPS() returns 10fps, which indicates an average of 100ms between the end of + * one tick and the end of the next. However, getMeasuredTickTime() returns 20ms. This would indicate that something + * other than the tick is using ~80ms (another script, DOM rendering, etc). + * @method getMeasuredTickTime + * @static + * @param {Number} [ticks] The number of previous ticks over which to measure the average time spent in a tick. + * Defaults to the number of ticks per second. To get only the last tick's time, pass in 1. + * @return {Number} The average time spent in a tick in milliseconds. + **/ + Ticker.getMeasuredTickTime = function(ticks) { + var ttl=0, times=Ticker._tickTimes; + if (!times || times.length < 1) { return -1; } + + // by default, calculate average for the past ~1 second: + ticks = Math.min(times.length, ticks||(Ticker.getFPS()|0)); + for (var i=0; i= (Ticker._interval-1)*0.97) { + Ticker._tick(); + } + }; + + /** + * @method _handleRAF + * @static + * @protected + **/ + Ticker._handleRAF = function() { + Ticker._timerId = null; + Ticker._setupTick(); + Ticker._tick(); + }; + + /** + * @method _handleTimeout + * @static + * @protected + **/ + Ticker._handleTimeout = function() { + Ticker._timerId = null; + Ticker._setupTick(); + Ticker._tick(); + }; + + /** + * @method _setupTick + * @static + * @protected + **/ + Ticker._setupTick = function() { + if (Ticker._timerId != null) { return; } // avoid duplicates + + var mode = Ticker.timingMode||(Ticker.useRAF&&Ticker.RAF_SYNCHED); + if (mode == Ticker.RAF_SYNCHED || mode == Ticker.RAF) { + var f = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame; + if (f) { + Ticker._timerId = f(mode == Ticker.RAF ? Ticker._handleRAF : Ticker._handleSynch); + Ticker._raf = true; + return; + } + } + Ticker._raf = false; + Ticker._timerId = setTimeout(Ticker._handleTimeout, Ticker._interval); + }; + + /** + * @method _tick + * @static + * @protected + **/ + Ticker._tick = function() { + var paused = Ticker.paused; + var time = Ticker._getTime(); + var elapsedTime = time-Ticker._lastTime; + Ticker._lastTime = time; + Ticker._ticks++; + + if (paused) { + Ticker._pausedTicks++; + Ticker._pausedTime += elapsedTime; + } + + if (Ticker.hasEventListener("tick")) { + var event = new createjs.Event("tick"); + var maxDelta = Ticker.maxDelta; + event.delta = (maxDelta && elapsedTime > maxDelta) ? maxDelta : elapsedTime; + event.paused = paused; + event.time = time; + event.runTime = time-Ticker._pausedTime; + Ticker.dispatchEvent(event); + } + + Ticker._tickTimes.unshift(Ticker._getTime()-time); + while (Ticker._tickTimes.length > 100) { Ticker._tickTimes.pop(); } + + Ticker._times.unshift(time); + while (Ticker._times.length > 100) { Ticker._times.pop(); } + }; + + /** + * @method _getTime + * @static + * @protected + **/ + var now = window.performance && (performance.now || performance.mozNow || performance.msNow || performance.oNow || performance.webkitNow); + Ticker._getTime = function() { + return ((now&&now.call(performance))||(new Date().getTime())) - Ticker._startTime; + }; + + + createjs.Ticker = Ticker; +}()); + +//############################################################################## +// UID.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * Global utility for generating sequential unique ID numbers. The UID class uses a static interface (ex. UID.get()) + * and should not be instantiated. + * @class UID + * @static + **/ + function UID() { + throw "UID cannot be instantiated"; + } + + +// private static properties: + /** + * @property _nextID + * @type Number + * @protected + **/ + UID._nextID = 0; + + +// public static methods: + /** + * Returns the next unique id. + * @method get + * @return {Number} The next unique id + * @static + **/ + UID.get = function() { + return UID._nextID++; + }; + + + createjs.UID = UID; +}()); + +//############################################################################## +// MouseEvent.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * Passed as the parameter to all mouse/pointer/touch related events. For a listing of mouse events and their properties, + * see the {{#crossLink "DisplayObject"}}{{/crossLink}} and {{#crossLink "Stage"}}{{/crossLink}} event listings. + * @class MouseEvent + * @param {String} type The event type. + * @param {Boolean} bubbles Indicates whether the event will bubble through the display list. + * @param {Boolean} cancelable Indicates whether the default behaviour of this event can be cancelled. + * @param {Number} stageX The normalized x position relative to the stage. + * @param {Number} stageY The normalized y position relative to the stage. + * @param {MouseEvent} nativeEvent The native DOM event related to this mouse event. + * @param {Number} pointerID The unique id for the pointer. + * @param {Boolean} primary Indicates whether this is the primary pointer in a multitouch environment. + * @param {Number} rawX The raw x position relative to the stage. + * @param {Number} rawY The raw y position relative to the stage. + * @param {DisplayObject} relatedTarget The secondary target for the event. + * @extends Event + * @constructor + **/ + function MouseEvent(type, bubbles, cancelable, stageX, stageY, nativeEvent, pointerID, primary, rawX, rawY, relatedTarget) { + this.Event_constructor(type, bubbles, cancelable); + + + // public properties: + /** + * The normalized x position on the stage. This will always be within the range 0 to stage width. + * @property stageX + * @type Number + */ + this.stageX = stageX; + + /** + * The normalized y position on the stage. This will always be within the range 0 to stage height. + * @property stageY + * @type Number + **/ + this.stageY = stageY; + + /** + * The raw x position relative to the stage. Normally this will be the same as the stageX value, unless + * stage.mouseMoveOutside is true and the pointer is outside of the stage bounds. + * @property rawX + * @type Number + */ + this.rawX = (rawX==null)?stageX:rawX; + + /** + * The raw y position relative to the stage. Normally this will be the same as the stageY value, unless + * stage.mouseMoveOutside is true and the pointer is outside of the stage bounds. + * @property rawY + * @type Number + */ + this.rawY = (rawY==null)?stageY:rawY; + + /** + * The native MouseEvent generated by the browser. The properties and API for this + * event may differ between browsers. This property will be null if the + * EaselJS property was not directly generated from a native MouseEvent. + * @property nativeEvent + * @type HtmlMouseEvent + * @default null + **/ + this.nativeEvent = nativeEvent; + + /** + * The unique id for the pointer (touch point or cursor). This will be either -1 for the mouse, or the system + * supplied id value. + * @property pointerID + * @type {Number} + */ + this.pointerID = pointerID; + + /** + * Indicates whether this is the primary pointer in a multitouch environment. This will always be true for the mouse. + * For touch pointers, the first pointer in the current stack will be considered the primary pointer. + * @property primary + * @type {Boolean} + */ + this.primary = !!primary; + + /** + * The secondary target for the event, if applicable. This is used for mouseout/rollout + * events to indicate the object that the mouse entered from, mouseover/rollover for the object the mouse exited, + * and stagemousedown/stagemouseup events for the object that was the under the cursor, if any. + * + * Only valid interaction targets will be returned (ie. objects with mouse listeners or a cursor set). + * @property relatedTarget + * @type {DisplayObject} + */ + this.relatedTarget = relatedTarget; + } + var p = createjs.extend(MouseEvent, createjs.Event); + + // TODO: deprecated + // p.initialize = function() {}; // searchable for devs wondering where it is. REMOVED. See docs for details. + + +// getter / setters: + /** + * Returns the x position of the mouse in the local coordinate system of the current target (ie. the dispatcher). + * @property localX + * @type {Number} + * @readonly + */ + p._get_localX = function() { + return this.currentTarget.globalToLocal(this.rawX, this.rawY).x; + }; + + /** + * Returns the y position of the mouse in the local coordinate system of the current target (ie. the dispatcher). + * @property localY + * @type {Number} + * @readonly + */ + p._get_localY = function() { + return this.currentTarget.globalToLocal(this.rawX, this.rawY).y; + }; + + /** + * Indicates whether the event was generated by a touch input (versus a mouse input). + * @property isTouch + * @type {Boolean} + * @readonly + */ + p._get_isTouch = function() { + return this.pointerID !== -1; + }; + + + try { + Object.defineProperties(p, { + localX: { get: p._get_localX }, + localY: { get: p._get_localY }, + isTouch: { get: p._get_isTouch } + }); + } catch (e) {} // TODO: use Log + + +// public methods: + /** + * Returns a clone of the MouseEvent instance. + * @method clone + * @return {MouseEvent} a clone of the MouseEvent instance. + **/ + p.clone = function() { + return new MouseEvent(this.type, this.bubbles, this.cancelable, this.stageX, this.stageY, this.nativeEvent, this.pointerID, this.primary, this.rawX, this.rawY); + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[MouseEvent (type="+this.type+" stageX="+this.stageX+" stageY="+this.stageY+")]"; + }; + + + createjs.MouseEvent = createjs.promote(MouseEvent, "Event"); +}()); + +//############################################################################## +// Matrix2D.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * Represents an affine transformation matrix, and provides tools for constructing and concatenating matrices. + * + * This matrix can be visualized as: + * + * [ a c tx + * b d ty + * 0 0 1 ] + * + * Note the locations of b and c. + * + * @class Matrix2D + * @param {Number} [a=1] Specifies the a property for the new matrix. + * @param {Number} [b=0] Specifies the b property for the new matrix. + * @param {Number} [c=0] Specifies the c property for the new matrix. + * @param {Number} [d=1] Specifies the d property for the new matrix. + * @param {Number} [tx=0] Specifies the tx property for the new matrix. + * @param {Number} [ty=0] Specifies the ty property for the new matrix. + * @constructor + **/ + function Matrix2D(a, b, c, d, tx, ty) { + this.setValues(a,b,c,d,tx,ty); + + // public properties: + // assigned in the setValues method. + /** + * Position (0, 0) in a 3x3 affine transformation matrix. + * @property a + * @type Number + **/ + + /** + * Position (0, 1) in a 3x3 affine transformation matrix. + * @property b + * @type Number + **/ + + /** + * Position (1, 0) in a 3x3 affine transformation matrix. + * @property c + * @type Number + **/ + + /** + * Position (1, 1) in a 3x3 affine transformation matrix. + * @property d + * @type Number + **/ + + /** + * Position (2, 0) in a 3x3 affine transformation matrix. + * @property tx + * @type Number + **/ + + /** + * Position (2, 1) in a 3x3 affine transformation matrix. + * @property ty + * @type Number + **/ + } + var p = Matrix2D.prototype; + + /** + * REMOVED. Removed in favor of using `MySuperClass_constructor`. + * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}} + * for details. + * + * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance. + * + * @method initialize + * @protected + * @deprecated + */ + // p.initialize = function() {}; // searchable for devs wondering where it is. + + +// constants: + /** + * Multiplier for converting degrees to radians. Used internally by Matrix2D. + * @property DEG_TO_RAD + * @static + * @final + * @type Number + * @readonly + **/ + Matrix2D.DEG_TO_RAD = Math.PI/180; + + +// static public properties: + /** + * An identity matrix, representing a null transformation. + * @property identity + * @static + * @type Matrix2D + * @readonly + **/ + Matrix2D.identity = null; // set at bottom of class definition. + + +// public methods: + /** + * Sets the specified values on this instance. + * @method setValues + * @param {Number} [a=1] Specifies the a property for the new matrix. + * @param {Number} [b=0] Specifies the b property for the new matrix. + * @param {Number} [c=0] Specifies the c property for the new matrix. + * @param {Number} [d=1] Specifies the d property for the new matrix. + * @param {Number} [tx=0] Specifies the tx property for the new matrix. + * @param {Number} [ty=0] Specifies the ty property for the new matrix. + * @return {Matrix2D} This instance. Useful for chaining method calls. + */ + p.setValues = function(a, b, c, d, tx, ty) { + // don't forget to update docs in the constructor if these change: + this.a = (a == null) ? 1 : a; + this.b = b || 0; + this.c = c || 0; + this.d = (d == null) ? 1 : d; + this.tx = tx || 0; + this.ty = ty || 0; + return this; + }; + + /** + * Appends the specified matrix properties to this matrix. All parameters are required. + * This is the equivalent of multiplying `(this matrix) * (specified matrix)`. + * @method append + * @param {Number} a + * @param {Number} b + * @param {Number} c + * @param {Number} d + * @param {Number} tx + * @param {Number} ty + * @return {Matrix2D} This matrix. Useful for chaining method calls. + **/ + p.append = function(a, b, c, d, tx, ty) { + var a1 = this.a; + var b1 = this.b; + var c1 = this.c; + var d1 = this.d; + if (a != 1 || b != 0 || c != 0 || d != 1) { + this.a = a1*a+c1*b; + this.b = b1*a+d1*b; + this.c = a1*c+c1*d; + this.d = b1*c+d1*d; + } + this.tx = a1*tx+c1*ty+this.tx; + this.ty = b1*tx+d1*ty+this.ty; + return this; + }; + + /** + * Prepends the specified matrix properties to this matrix. + * This is the equivalent of multiplying `(specified matrix) * (this matrix)`. + * All parameters are required. + * @method prepend + * @param {Number} a + * @param {Number} b + * @param {Number} c + * @param {Number} d + * @param {Number} tx + * @param {Number} ty + * @return {Matrix2D} This matrix. Useful for chaining method calls. + **/ + p.prepend = function(a, b, c, d, tx, ty) { + var a1 = this.a; + var c1 = this.c; + var tx1 = this.tx; + + this.a = a*a1+c*this.b; + this.b = b*a1+d*this.b; + this.c = a*c1+c*this.d; + this.d = b*c1+d*this.d; + this.tx = a*tx1+c*this.ty+tx; + this.ty = b*tx1+d*this.ty+ty; + return this; + }; + + /** + * Appends the specified matrix to this matrix. + * This is the equivalent of multiplying `(this matrix) * (specified matrix)`. + * @method appendMatrix + * @param {Matrix2D} matrix + * @return {Matrix2D} This matrix. Useful for chaining method calls. + **/ + p.appendMatrix = function(matrix) { + return this.append(matrix.a, matrix.b, matrix.c, matrix.d, matrix.tx, matrix.ty); + }; + + /** + * Prepends the specified matrix to this matrix. + * This is the equivalent of multiplying `(specified matrix) * (this matrix)`. + * For example, you could calculate the combined transformation for a child object using: + * + * var o = myDisplayObject; + * var mtx = o.getMatrix(); + * while (o = o.parent) { + * // prepend each parent's transformation in turn: + * o.prependMatrix(o.getMatrix()); + * } + * @method prependMatrix + * @param {Matrix2D} matrix + * @return {Matrix2D} This matrix. Useful for chaining method calls. + **/ + p.prependMatrix = function(matrix) { + return this.prepend(matrix.a, matrix.b, matrix.c, matrix.d, matrix.tx, matrix.ty); + }; + + /** + * Generates matrix properties from the specified display object transform properties, and appends them to this matrix. + * For example, you can use this to generate a matrix representing the transformations of a display object: + * + * var mtx = new createjs.Matrix2D(); + * mtx.appendTransform(o.x, o.y, o.scaleX, o.scaleY, o.rotation); + * @method appendTransform + * @param {Number} x + * @param {Number} y + * @param {Number} scaleX + * @param {Number} scaleY + * @param {Number} rotation + * @param {Number} skewX + * @param {Number} skewY + * @param {Number} regX Optional. + * @param {Number} regY Optional. + * @return {Matrix2D} This matrix. Useful for chaining method calls. + **/ + p.appendTransform = function(x, y, scaleX, scaleY, rotation, skewX, skewY, regX, regY) { + if (rotation%360) { + var r = rotation*Matrix2D.DEG_TO_RAD; + var cos = Math.cos(r); + var sin = Math.sin(r); + } else { + cos = 1; + sin = 0; + } + + if (skewX || skewY) { + // TODO: can this be combined into a single append operation? + skewX *= Matrix2D.DEG_TO_RAD; + skewY *= Matrix2D.DEG_TO_RAD; + this.append(Math.cos(skewY), Math.sin(skewY), -Math.sin(skewX), Math.cos(skewX), x, y); + this.append(cos*scaleX, sin*scaleX, -sin*scaleY, cos*scaleY, 0, 0); + } else { + this.append(cos*scaleX, sin*scaleX, -sin*scaleY, cos*scaleY, x, y); + } + + if (regX || regY) { + // append the registration offset: + this.tx -= regX*this.a+regY*this.c; + this.ty -= regX*this.b+regY*this.d; + } + return this; + }; + + /** + * Generates matrix properties from the specified display object transform properties, and prepends them to this matrix. + * For example, you could calculate the combined transformation for a child object using: + * + * var o = myDisplayObject; + * var mtx = new createjs.Matrix2D(); + * do { + * // prepend each parent's transformation in turn: + * mtx.prependTransform(o.x, o.y, o.scaleX, o.scaleY, o.rotation, o.skewX, o.skewY, o.regX, o.regY); + * } while (o = o.parent); + * + * Note that the above example would not account for {{#crossLink "DisplayObject/transformMatrix:property"}}{{/crossLink}} + * values. See {{#crossLink "Matrix2D/prependMatrix"}}{{/crossLink}} for an example that does. + * @method prependTransform + * @param {Number} x + * @param {Number} y + * @param {Number} scaleX + * @param {Number} scaleY + * @param {Number} rotation + * @param {Number} skewX + * @param {Number} skewY + * @param {Number} regX Optional. + * @param {Number} regY Optional. + * @return {Matrix2D} This matrix. Useful for chaining method calls. + **/ + p.prependTransform = function(x, y, scaleX, scaleY, rotation, skewX, skewY, regX, regY) { + if (rotation%360) { + var r = rotation*Matrix2D.DEG_TO_RAD; + var cos = Math.cos(r); + var sin = Math.sin(r); + } else { + cos = 1; + sin = 0; + } + + if (regX || regY) { + // prepend the registration offset: + this.tx -= regX; this.ty -= regY; + } + if (skewX || skewY) { + // TODO: can this be combined into a single prepend operation? + skewX *= Matrix2D.DEG_TO_RAD; + skewY *= Matrix2D.DEG_TO_RAD; + this.prepend(cos*scaleX, sin*scaleX, -sin*scaleY, cos*scaleY, 0, 0); + this.prepend(Math.cos(skewY), Math.sin(skewY), -Math.sin(skewX), Math.cos(skewX), x, y); + } else { + this.prepend(cos*scaleX, sin*scaleX, -sin*scaleY, cos*scaleY, x, y); + } + return this; + }; + + /** + * Applies a clockwise rotation transformation to the matrix. + * @method rotate + * @param {Number} angle The angle to rotate by, in degrees. To use a value in radians, multiply it by `180/Math.PI`. + * @return {Matrix2D} This matrix. Useful for chaining method calls. + **/ + p.rotate = function(angle) { + angle = angle*Matrix2D.DEG_TO_RAD; + var cos = Math.cos(angle); + var sin = Math.sin(angle); + + var a1 = this.a; + var b1 = this.b; + + this.a = a1*cos+this.c*sin; + this.b = b1*cos+this.d*sin; + this.c = -a1*sin+this.c*cos; + this.d = -b1*sin+this.d*cos; + return this; + }; + + /** + * Applies a skew transformation to the matrix. + * @method skew + * @param {Number} skewX The amount to skew horizontally in degrees. To use a value in radians, multiply it by `180/Math.PI`. + * @param {Number} skewY The amount to skew vertically in degrees. + * @return {Matrix2D} This matrix. Useful for chaining method calls. + */ + p.skew = function(skewX, skewY) { + skewX = skewX*Matrix2D.DEG_TO_RAD; + skewY = skewY*Matrix2D.DEG_TO_RAD; + this.append(Math.cos(skewY), Math.sin(skewY), -Math.sin(skewX), Math.cos(skewX), 0, 0); + return this; + }; + + /** + * Applies a scale transformation to the matrix. + * @method scale + * @param {Number} x The amount to scale horizontally. E.G. a value of 2 will double the size in the X direction, and 0.5 will halve it. + * @param {Number} y The amount to scale vertically. + * @return {Matrix2D} This matrix. Useful for chaining method calls. + **/ + p.scale = function(x, y) { + this.a *= x; + this.b *= x; + this.c *= y; + this.d *= y; + //this.tx *= x; + //this.ty *= y; + return this; + }; + + /** + * Translates the matrix on the x and y axes. + * @method translate + * @param {Number} x + * @param {Number} y + * @return {Matrix2D} This matrix. Useful for chaining method calls. + **/ + p.translate = function(x, y) { + this.tx += this.a*x + this.c*y; + this.ty += this.b*x + this.d*y; + return this; + }; + + /** + * Sets the properties of the matrix to those of an identity matrix (one that applies a null transformation). + * @method identity + * @return {Matrix2D} This matrix. Useful for chaining method calls. + **/ + p.identity = function() { + this.a = this.d = 1; + this.b = this.c = this.tx = this.ty = 0; + return this; + }; + + /** + * Inverts the matrix, causing it to perform the opposite transformation. + * @method invert + * @return {Matrix2D} This matrix. Useful for chaining method calls. + **/ + p.invert = function() { + var a1 = this.a; + var b1 = this.b; + var c1 = this.c; + var d1 = this.d; + var tx1 = this.tx; + var n = a1*d1-b1*c1; + + this.a = d1/n; + this.b = -b1/n; + this.c = -c1/n; + this.d = a1/n; + this.tx = (c1*this.ty-d1*tx1)/n; + this.ty = -(a1*this.ty-b1*tx1)/n; + return this; + }; + + /** + * Returns true if the matrix is an identity matrix. + * @method isIdentity + * @return {Boolean} + **/ + p.isIdentity = function() { + return this.tx === 0 && this.ty === 0 && this.a === 1 && this.b === 0 && this.c === 0 && this.d === 1; + }; + + /** + * Returns true if this matrix is equal to the specified matrix (all property values are equal). + * @method equals + * @param {Matrix2D} matrix The matrix to compare. + * @return {Boolean} + **/ + p.equals = function(matrix) { + return this.tx === matrix.tx && this.ty === matrix.ty && this.a === matrix.a && this.b === matrix.b && this.c === matrix.c && this.d === matrix.d; + }; + + /** + * Transforms a point according to this matrix. + * @method transformPoint + * @param {Number} x The x component of the point to transform. + * @param {Number} y The y component of the point to transform. + * @param {Point | Object} [pt] An object to copy the result into. If omitted a generic object with x/y properties will be returned. + * @return {Point} This matrix. Useful for chaining method calls. + **/ + p.transformPoint = function(x, y, pt) { + pt = pt||{}; + pt.x = x*this.a+y*this.c+this.tx; + pt.y = x*this.b+y*this.d+this.ty; + return pt; + }; + + /** + * Decomposes the matrix into transform properties (x, y, scaleX, scaleY, and rotation). Note that these values + * may not match the transform properties you used to generate the matrix, though they will produce the same visual + * results. + * @method decompose + * @param {Object} target The object to apply the transform properties to. If null, then a new object will be returned. + * @return {Object} The target, or a new generic object with the transform properties applied. + */ + p.decompose = function(target) { + // TODO: it would be nice to be able to solve for whether the matrix can be decomposed into only scale/rotation even when scale is negative + if (target == null) { target = {}; } + target.x = this.tx; + target.y = this.ty; + target.scaleX = Math.sqrt(this.a * this.a + this.b * this.b); + target.scaleY = Math.sqrt(this.c * this.c + this.d * this.d); + + var skewX = Math.atan2(-this.c, this.d); + var skewY = Math.atan2(this.b, this.a); + + var delta = Math.abs(1-skewX/skewY); + if (delta < 0.00001) { // effectively identical, can use rotation: + target.rotation = skewY/Matrix2D.DEG_TO_RAD; + if (this.a < 0 && this.d >= 0) { + target.rotation += (target.rotation <= 0) ? 180 : -180; + } + target.skewX = target.skewY = 0; + } else { + target.skewX = skewX/Matrix2D.DEG_TO_RAD; + target.skewY = skewY/Matrix2D.DEG_TO_RAD; + } + return target; + }; + + /** + * Copies all properties from the specified matrix to this matrix. + * @method copy + * @param {Matrix2D} matrix The matrix to copy properties from. + * @return {Matrix2D} This matrix. Useful for chaining method calls. + */ + p.copy = function(matrix) { + return this.setValues(matrix.a, matrix.b, matrix.c, matrix.d, matrix.tx, matrix.ty); + }; + + /** + * Returns a clone of the Matrix2D instance. + * @method clone + * @return {Matrix2D} a clone of the Matrix2D instance. + **/ + p.clone = function() { + return new Matrix2D(this.a, this.b, this.c, this.d, this.tx, this.ty); + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[Matrix2D (a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+")]"; + }; + + // this has to be populated after the class is defined: + Matrix2D.identity = new Matrix2D(); + + + createjs.Matrix2D = Matrix2D; +}()); + +//############################################################################## +// DisplayProps.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + /** + * Used for calculating and encapsulating display related properties. + * @class DisplayProps + * @param {Number} [visible=true] Visible value. + * @param {Number} [alpha=1] Alpha value. + * @param {Number} [shadow=null] A Shadow instance or null. + * @param {Number} [compositeOperation=null] A compositeOperation value or null. + * @param {Number} [matrix] A transformation matrix. Defaults to a new identity matrix. + * @constructor + **/ + function DisplayProps(visible, alpha, shadow, compositeOperation, matrix) { + this.setValues(visible, alpha, shadow, compositeOperation, matrix); + + // public properties: + // assigned in the setValues method. + /** + * Property representing the alpha that will be applied to a display object. + * @property alpha + * @type Number + **/ + + /** + * Property representing the shadow that will be applied to a display object. + * @property shadow + * @type Shadow + **/ + + /** + * Property representing the compositeOperation that will be applied to a display object. + * You can find a list of valid composite operations at: + * https://developer.mozilla.org/en/Canvas_tutorial/Compositing + * @property compositeOperation + * @type String + **/ + + /** + * Property representing the value for visible that will be applied to a display object. + * @property visible + * @type Boolean + **/ + + /** + * The transformation matrix that will be applied to a display object. + * @property matrix + * @type Matrix2D + **/ + } + var p = DisplayProps.prototype; + +// initialization: + /** + * Reinitializes the instance with the specified values. + * @method setValues + * @param {Number} [visible=true] Visible value. + * @param {Number} [alpha=1] Alpha value. + * @param {Number} [shadow=null] A Shadow instance or null. + * @param {Number} [compositeOperation=null] A compositeOperation value or null. + * @param {Number} [matrix] A transformation matrix. Defaults to an identity matrix. + * @return {DisplayProps} This instance. Useful for chaining method calls. + * @chainable + */ + p.setValues = function (visible, alpha, shadow, compositeOperation, matrix) { + this.visible = visible == null ? true : !!visible; + this.alpha = alpha == null ? 1 : alpha; + this.shadow = shadow; + this.compositeOperation = compositeOperation; + this.matrix = matrix || (this.matrix&&this.matrix.identity()) || new createjs.Matrix2D(); + return this; + }; + +// public methods: + /** + * Appends the specified display properties. This is generally used to apply a child's properties its parent's. + * @method append + * @param {Boolean} visible desired visible value + * @param {Number} alpha desired alpha value + * @param {Shadow} shadow desired shadow value + * @param {String} compositeOperation desired composite operation value + * @param {Matrix2D} [matrix] a Matrix2D instance + * @return {DisplayProps} This instance. Useful for chaining method calls. + * @chainable + */ + p.append = function(visible, alpha, shadow, compositeOperation, matrix) { + this.alpha *= alpha; + this.shadow = shadow || this.shadow; + this.compositeOperation = compositeOperation || this.compositeOperation; + this.visible = this.visible && visible; + matrix&&this.matrix.appendMatrix(matrix); + return this; + }; + + /** + * Prepends the specified display properties. This is generally used to apply a parent's properties to a child's. + * For example, to get the combined display properties that would be applied to a child, you could use: + * + * var o = myDisplayObject; + * var props = new createjs.DisplayProps(); + * do { + * // prepend each parent's props in turn: + * props.prepend(o.visible, o.alpha, o.shadow, o.compositeOperation, o.getMatrix()); + * } while (o = o.parent); + * + * @method prepend + * @param {Boolean} visible desired visible value + * @param {Number} alpha desired alpha value + * @param {Shadow} shadow desired shadow value + * @param {String} compositeOperation desired composite operation value + * @param {Matrix2D} [matrix] a Matrix2D instance + * @return {DisplayProps} This instance. Useful for chaining method calls. + * @chainable + */ + p.prepend = function(visible, alpha, shadow, compositeOperation, matrix) { + this.alpha *= alpha; + this.shadow = this.shadow || shadow; + this.compositeOperation = this.compositeOperation || compositeOperation; + this.visible = this.visible && visible; + matrix&&this.matrix.prependMatrix(matrix); + return this; + }; + + /** + * Resets this instance and its matrix to default values. + * @method identity + * @return {DisplayProps} This instance. Useful for chaining method calls. + * @chainable + */ + p.identity = function() { + this.visible = true; + this.alpha = 1; + this.shadow = this.compositeOperation = null; + this.matrix.identity(); + return this; + }; + + /** + * Returns a clone of the DisplayProps instance. Clones the associated matrix. + * @method clone + * @return {DisplayProps} a clone of the DisplayProps instance. + **/ + p.clone = function() { + return new DisplayProps(this.alpha, this.shadow, this.compositeOperation, this.visible, this.matrix.clone()); + }; + +// private methods: + + createjs.DisplayProps = DisplayProps; +})(); + +//############################################################################## +// Point.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * Represents a point on a 2 dimensional x / y coordinate system. + * + *

Example

+ * + * var point = new createjs.Point(0, 100); + * + * @class Point + * @param {Number} [x=0] X position. + * @param {Number} [y=0] Y position. + * @constructor + **/ + function Point(x, y) { + this.setValues(x, y); + + + // public properties: + // assigned in the setValues method. + /** + * X position. + * @property x + * @type Number + **/ + + /** + * Y position. + * @property y + * @type Number + **/ + } + var p = Point.prototype; + + /** + * REMOVED. Removed in favor of using `MySuperClass_constructor`. + * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}} + * for details. + * + * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance. + * + * @method initialize + * @protected + * @deprecated + */ + // p.initialize = function() {}; // searchable for devs wondering where it is. + + +// public methods: + /** + * Sets the specified values on this instance. + * @method setValues + * @param {Number} [x=0] X position. + * @param {Number} [y=0] Y position. + * @return {Point} This instance. Useful for chaining method calls. + * @chainable + */ + p.setValues = function(x, y) { + this.x = x||0; + this.y = y||0; + return this; + }; + + /** + * Copies all properties from the specified point to this point. + * @method copy + * @param {Point} point The point to copy properties from. + * @return {Point} This point. Useful for chaining method calls. + * @chainable + */ + p.copy = function(point) { + this.x = point.x; + this.y = point.y; + return this; + }; + + /** + * Returns a clone of the Point instance. + * @method clone + * @return {Point} a clone of the Point instance. + **/ + p.clone = function() { + return new Point(this.x, this.y); + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[Point (x="+this.x+" y="+this.y+")]"; + }; + + + createjs.Point = Point; +}()); + +//############################################################################## +// Rectangle.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * Represents a rectangle as defined by the points (x, y) and (x+width, y+height). + * + *

Example

+ * + * var rect = new createjs.Rectangle(0, 0, 100, 100); + * + * @class Rectangle + * @param {Number} [x=0] X position. + * @param {Number} [y=0] Y position. + * @param {Number} [width=0] The width of the Rectangle. + * @param {Number} [height=0] The height of the Rectangle. + * @constructor + **/ + function Rectangle(x, y, width, height) { + this.setValues(x, y, width, height); + + + // public properties: + // assigned in the setValues method. + /** + * X position. + * @property x + * @type Number + **/ + + /** + * Y position. + * @property y + * @type Number + **/ + + /** + * Width. + * @property width + * @type Number + **/ + + /** + * Height. + * @property height + * @type Number + **/ + } + var p = Rectangle.prototype; + + /** + * REMOVED. Removed in favor of using `MySuperClass_constructor`. + * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}} + * for details. + * + * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance. + * + * @method initialize + * @protected + * @deprecated + */ + // p.initialize = function() {}; // searchable for devs wondering where it is. + + +// public methods: + /** + * Sets the specified values on this instance. + * @method setValues + * @param {Number} [x=0] X position. + * @param {Number} [y=0] Y position. + * @param {Number} [width=0] The width of the Rectangle. + * @param {Number} [height=0] The height of the Rectangle. + * @return {Rectangle} This instance. Useful for chaining method calls. + * @chainable + */ + p.setValues = function(x, y, width, height) { + // don't forget to update docs in the constructor if these change: + this.x = x||0; + this.y = y||0; + this.width = width||0; + this.height = height||0; + return this; + }; + + /** + * Extends the rectangle's bounds to include the described point or rectangle. + * @method extend + * @param {Number} x X position of the point or rectangle. + * @param {Number} y Y position of the point or rectangle. + * @param {Number} [width=0] The width of the rectangle. + * @param {Number} [height=0] The height of the rectangle. + * @return {Rectangle} This instance. Useful for chaining method calls. + * @chainable + */ + p.extend = function(x, y, width, height) { + width = width||0; + height = height||0; + if (x+width > this.x+this.width) { this.width = x+width-this.x; } + if (y+height > this.y+this.height) { this.height = y+height-this.y; } + if (x < this.x) { this.width += this.x-x; this.x = x; } + if (y < this.y) { this.height += this.y-y; this.y = y; } + return this; + }; + + /** + * Adds the specified padding to the rectangle's bounds. + * @method pad + * @param {Number} top + * @param {Number} left + * @param {Number} right + * @param {Number} bottom + * @return {Rectangle} This instance. Useful for chaining method calls. + * @chainable + */ + p.pad = function(top, left, bottom, right) { + this.x -= left; + this.y -= top; + this.width += left+right; + this.height += top+bottom; + return this; + }; + + /** + * Copies all properties from the specified rectangle to this rectangle. + * @method copy + * @param {Rectangle} rectangle The rectangle to copy properties from. + * @return {Rectangle} This rectangle. Useful for chaining method calls. + * @chainable + */ + p.copy = function(rectangle) { + return this.setValues(rectangle.x, rectangle.y, rectangle.width, rectangle.height); + }; + + /** + * Returns true if this rectangle fully encloses the described point or rectangle. + * @method contains + * @param {Number} x X position of the point or rectangle. + * @param {Number} y Y position of the point or rectangle. + * @param {Number} [width=0] The width of the rectangle. + * @param {Number} [height=0] The height of the rectangle. + * @return {Boolean} True if the described point or rectangle is contained within this rectangle. + */ + p.contains = function(x, y, width, height) { + width = width||0; + height = height||0; + return (x >= this.x && x+width <= this.x+this.width && y >= this.y && y+height <= this.y+this.height); + }; + + /** + * Returns a new rectangle which contains this rectangle and the specified rectangle. + * @method union + * @param {Rectangle} rect The rectangle to calculate a union with. + * @return {Rectangle} A new rectangle describing the union. + */ + p.union = function(rect) { + return this.clone().extend(rect.x, rect.y, rect.width, rect.height); + }; + + /** + * Returns a new rectangle which describes the intersection (overlap) of this rectangle and the specified rectangle, + * or null if they do not intersect. + * @method intersection + * @param {Rectangle} rect The rectangle to calculate an intersection with. + * @return {Rectangle} A new rectangle describing the intersection or null. + */ + p.intersection = function(rect) { + var x1 = rect.x, y1 = rect.y, x2 = x1+rect.width, y2 = y1+rect.height; + if (this.x > x1) { x1 = this.x; } + if (this.y > y1) { y1 = this.y; } + if (this.x + this.width < x2) { x2 = this.x + this.width; } + if (this.y + this.height < y2) { y2 = this.y + this.height; } + return (x2 <= x1 || y2 <= y1) ? null : new Rectangle(x1, y1, x2-x1, y2-y1); + }; + + /** + * Returns true if the specified rectangle intersects (has any overlap) with this rectangle. + * @method intersects + * @param {Rectangle} rect The rectangle to compare. + * @return {Boolean} True if the rectangles intersect. + */ + p.intersects = function(rect) { + return (rect.x <= this.x+this.width && this.x <= rect.x+rect.width && rect.y <= this.y+this.height && this.y <= rect.y + rect.height); + }; + + /** + * Returns true if the width or height are equal or less than 0. + * @method isEmpty + * @return {Boolean} True if the rectangle is empty. + */ + p.isEmpty = function() { + return this.width <= 0 || this.height <= 0; + }; + + /** + * Returns a clone of the Rectangle instance. + * @method clone + * @return {Rectangle} a clone of the Rectangle instance. + **/ + p.clone = function() { + return new Rectangle(this.x, this.y, this.width, this.height); + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[Rectangle (x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+")]"; + }; + + + createjs.Rectangle = Rectangle; +}()); + +//############################################################################## +// ButtonHelper.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * The ButtonHelper is a helper class to create interactive buttons from {{#crossLink "MovieClip"}}{{/crossLink}} or + * {{#crossLink "Sprite"}}{{/crossLink}} instances. This class will intercept mouse events from an object, and + * automatically call {{#crossLink "Sprite/gotoAndStop"}}{{/crossLink}} or {{#crossLink "Sprite/gotoAndPlay"}}{{/crossLink}}, + * to the respective animation labels, add a pointer cursor, and allows the user to define a hit state frame. + * + * The ButtonHelper instance does not need to be added to the stage, but a reference should be maintained to prevent + * garbage collection. + * + * Note that over states will not work unless you call {{#crossLink "Stage/enableMouseOver"}}{{/crossLink}}. + * + *

Example

+ * + * var helper = new createjs.ButtonHelper(myInstance, "out", "over", "down", false, myInstance, "hit"); + * myInstance.addEventListener("click", handleClick); + * function handleClick(event) { + * // Click Happened. + * } + * + * @class ButtonHelper + * @param {Sprite|MovieClip} target The instance to manage. + * @param {String} [outLabel="out"] The label or animation to go to when the user rolls out of the button. + * @param {String} [overLabel="over"] The label or animation to go to when the user rolls over the button. + * @param {String} [downLabel="down"] The label or animation to go to when the user presses the button. + * @param {Boolean} [play=false] If the helper should call "gotoAndPlay" or "gotoAndStop" on the button when changing + * states. + * @param {DisplayObject} [hitArea] An optional item to use as the hit state for the button. If this is not defined, + * then the button's visible states will be used instead. Note that the same instance as the "target" argument can be + * used for the hitState. + * @param {String} [hitLabel] The label or animation on the hitArea instance that defines the hitArea bounds. If this is + * null, then the default state of the hitArea will be used. * + * @constructor + */ + function ButtonHelper(target, outLabel, overLabel, downLabel, play, hitArea, hitLabel) { + if (!target.addEventListener) { return; } + + + // public properties: + /** + * The target for this button helper. + * @property target + * @type MovieClip | Sprite + * @readonly + **/ + this.target = target; + + /** + * The label name or frame number to display when the user mouses out of the target. Defaults to "over". + * @property overLabel + * @type String | Number + **/ + this.overLabel = overLabel == null ? "over" : overLabel; + + /** + * The label name or frame number to display when the user mouses over the target. Defaults to "out". + * @property outLabel + * @type String | Number + **/ + this.outLabel = outLabel == null ? "out" : outLabel; + + /** + * The label name or frame number to display when the user presses on the target. Defaults to "down". + * @property downLabel + * @type String | Number + **/ + this.downLabel = downLabel == null ? "down" : downLabel; + + /** + * If true, then ButtonHelper will call gotoAndPlay, if false, it will use gotoAndStop. Default is false. + * @property play + * @default false + * @type Boolean + **/ + this.play = play; + + + // private properties + /** + * @property _isPressed + * @type Boolean + * @protected + **/ + this._isPressed = false; + + /** + * @property _isOver + * @type Boolean + * @protected + **/ + this._isOver = false; + + /** + * @property _enabled + * @type Boolean + * @protected + **/ + this._enabled = false; + + // setup: + target.mouseChildren = false; // prevents issues when children are removed from the display list when state changes. + this.enabled = true; + this.handleEvent({}); + if (hitArea) { + if (hitLabel) { + hitArea.actionsEnabled = false; + hitArea.gotoAndStop&&hitArea.gotoAndStop(hitLabel); + } + target.hitArea = hitArea; + } + } + var p = ButtonHelper.prototype; + + /** + * REMOVED. Removed in favor of using `MySuperClass_constructor`. + * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}} + * for details. + * + * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance. + * + * @method initialize + * @protected + * @deprecated + */ + // p.initialize = function() {}; // searchable for devs wondering where it is. + + +// getter / setters: + /** + * Use the {{#crossLink "ButtonHelper/enabled:property"}}{{/crossLink}} property instead. + * @method setEnabled + * @param {Boolean} value + * @deprecated + **/ + p.setEnabled = function(value) { // TODO: deprecated. + if (value == this._enabled) { return; } + var o = this.target; + this._enabled = value; + if (value) { + o.cursor = "pointer"; + o.addEventListener("rollover", this); + o.addEventListener("rollout", this); + o.addEventListener("mousedown", this); + o.addEventListener("pressup", this); + if (o._reset) { o.__reset = o._reset; o._reset = this._reset;} + } else { + o.cursor = null; + o.removeEventListener("rollover", this); + o.removeEventListener("rollout", this); + o.removeEventListener("mousedown", this); + o.removeEventListener("pressup", this); + if (o.__reset) { o._reset = o.__reset; delete(o.__reset); } + } + }; + /** + * Use the {{#crossLink "ButtonHelper/enabled:property"}}{{/crossLink}} property instead. + * @method getEnabled + * @return {Boolean} + * @deprecated + **/ + p.getEnabled = function() { + return this._enabled; + }; + + /** + * Enables or disables the button functionality on the target. + * @property enabled + * @type {Boolean} + **/ + try { + Object.defineProperties(p, { + enabled: { get: p.getEnabled, set: p.setEnabled } + }); + } catch (e) {} // TODO: use Log + + +// public methods: + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[ButtonHelper]"; + }; + + +// private methods: + /** + * @method handleEvent + * @param {Object} evt The mouse event to handle. + * @protected + **/ + p.handleEvent = function(evt) { + var label, t = this.target, type = evt.type; + if (type == "mousedown") { + this._isPressed = true; + label = this.downLabel; + } else if (type == "pressup") { + this._isPressed = false; + label = this._isOver ? this.overLabel : this.outLabel; + } else if (type == "rollover") { + this._isOver = true; + label = this._isPressed ? this.downLabel : this.overLabel; + } else { // rollout and default + this._isOver = false; + label = this._isPressed ? this.overLabel : this.outLabel; + } + if (this.play) { + t.gotoAndPlay&&t.gotoAndPlay(label); + } else { + t.gotoAndStop&&t.gotoAndStop(label); + } + }; + + /** + * Injected into target. Preserves the paused state through a reset. + * @method _reset + * @protected + **/ + p._reset = function() { + // TODO: explore better ways to handle this issue. This is hacky & disrupts object signatures. + var p = this.paused; + this.__reset(); + this.paused = p; + }; + + + createjs.ButtonHelper = ButtonHelper; +}()); + +//############################################################################## +// Shadow.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * This class encapsulates the properties required to define a shadow to apply to a {{#crossLink "DisplayObject"}}{{/crossLink}} + * via its shadow property. + * + *

Example

+ * + * myImage.shadow = new createjs.Shadow("#000000", 5, 5, 10); + * + * @class Shadow + * @constructor + * @param {String} color The color of the shadow. This can be any valid CSS color value. + * @param {Number} offsetX The x offset of the shadow in pixels. + * @param {Number} offsetY The y offset of the shadow in pixels. + * @param {Number} blur The size of the blurring effect. + **/ + function Shadow(color, offsetX, offsetY, blur) { + + + // public properties: + /** + * The color of the shadow. This can be any valid CSS color value. + * @property color + * @type String + * @default null + */ + this.color = color||"black"; + + /** The x offset of the shadow. + * @property offsetX + * @type Number + * @default 0 + */ + this.offsetX = offsetX||0; + + /** The y offset of the shadow. + * @property offsetY + * @type Number + * @default 0 + */ + this.offsetY = offsetY||0; + + /** The blur of the shadow. + * @property blur + * @type Number + * @default 0 + */ + this.blur = blur||0; + } + var p = Shadow.prototype; + + /** + * REMOVED. Removed in favor of using `MySuperClass_constructor`. + * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}} + * for details. + * + * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance. + * + * @method initialize + * @protected + * @deprecated + */ + // p.initialize = function() {}; // searchable for devs wondering where it is. + + +// static public properties: + /** + * An identity shadow object (all properties are set to 0). + * @property identity + * @type Shadow + * @static + * @final + * @readonly + **/ + Shadow.identity = new Shadow("transparent", 0, 0, 0); + + +// public methods: + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[Shadow]"; + }; + + /** + * Returns a clone of this Shadow instance. + * @method clone + * @return {Shadow} A clone of the current Shadow instance. + **/ + p.clone = function() { + return new Shadow(this.color, this.offsetX, this.offsetY, this.blur); + }; + + + createjs.Shadow = Shadow; +}()); + +//############################################################################## +// SpriteSheet.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * Encapsulates the properties and methods associated with a sprite sheet. A sprite sheet is a series of images (usually + * animation frames) combined into a larger image (or images). For example, an animation consisting of eight 100x100 + * images could be combined into a single 400x200 sprite sheet (4 frames across by 2 high). + * + * The data passed to the SpriteSheet constructor defines: + *
    + *
  1. The source image or images to use.
  2. + *
  3. The positions of individual image frames.
  4. + *
  5. Sequences of frames that form named animations. Optional.
  6. + *
  7. The target playback framerate. Optional.
  8. + *
+ *

SpriteSheet Format

+ * SpriteSheets are an object with two required properties (`images` and `frames`), and two optional properties + * (`framerate` and `animations`). This makes them easy to define in javascript code, or in JSON. + * + *

images

+ * An array of source images. Images can be either an HTMlimage + * instance, or a uri to an image. The former is recommended to control preloading. + * + * images: [image1, "path/to/image2.png"], + * + *

frames

+ * Defines the individual frames. There are two supported formats for frame data: + * When all of the frames are the same size (in a grid), use an object with `width`, `height`, `regX`, `regY`, + * and `count` properties. + * + *
    + *
  • `width` & `height` are required and specify the dimensions of the frames
  • + *
  • `regX` & `regY` indicate the registration point or "origin" of the frames
  • + *
  • `spacing` indicate the spacing between frames
  • + *
  • `margin` specify the margin around the image(s)
  • + *
  • `count` allows you to specify the total number of frames in the spritesheet; if omitted, this will + * be calculated based on the dimensions of the source images and the frames. Frames will be assigned + * indexes based on their position in the source images (left to right, top to bottom).
  • + *
+ * + * frames: {width:64, height:64, count:20, regX: 32, regY:64, spacing:0, margin:0} + * + * If the frames are of different sizes, use an array of frame definitions. Each definition is itself an array + * with 4 required and 3 optional entries, in the order: + * + *
    + *
  • The first four, `x`, `y`, `width`, and `height` are required and define the frame rectangle.
  • + *
  • The fifth, `imageIndex`, specifies the index of the source image (defaults to 0)
  • + *
  • The last two, `regX` and `regY` specify the registration point of the frame
  • + *
+ * + * frames: [ + * // x, y, width, height, imageIndex*, regX*, regY* + * [64, 0, 96, 64], + * [0, 0, 64, 64, 1, 32, 32] + * // etc. + * ] + * + *

animations

+ * Optional. An object defining sequences of frames to play as named animations. Each property corresponds to an + * animation of the same name. Each animation must specify the frames to play, and may + * also include a relative playback `speed` (ex. 2 would playback at double speed, 0.5 at half), and + * the name of the `next` animation to sequence to after it completes. + * + * There are three formats supported for defining the frames in an animation, which can be mixed and matched as appropriate: + *
    + *
  1. for a single frame animation, you can simply specify the frame index + * + * animations: { + * sit: 7 + * } + * + *
  2. + *
  3. + * for an animation of consecutive frames, you can use an array with two required, and two optional entries + * in the order: `start`, `end`, `next`, and `speed`. This will play the frames from start to end inclusive. + * + * animations: { + * // start, end, next*, speed* + * run: [0, 8], + * jump: [9, 12, "run", 2] + * } + * + *
  4. + *
  5. + * for non-consecutive frames, you can use an object with a `frames` property defining an array of frame + * indexes to play in order. The object can also specify `next` and `speed` properties. + * + * animations: { + * walk: { + * frames: [1,2,3,3,2,1] + * }, + * shoot: { + * frames: [1,4,5,6], + * next: "walk", + * speed: 0.5 + * } + * } + * + *
  6. + *
+ * Note: the `speed` property was added in EaselJS 0.7.0. Earlier versions had a `frequency` + * property instead, which was the inverse of `speed`. For example, a value of "4" would be 1/4 normal speed in + * earlier versions, but is 4x normal speed in EaselJS 0.7.0+. + * + *

framerate

+ * Optional. Indicates the default framerate to play this spritesheet at in frames per second. See + * {{#crossLink "SpriteSheet/framerate:property"}}{{/crossLink}} for more information. + * + * framerate: 20 + * + * Note that the Sprite framerate will only work if the stage update method is provided with the {{#crossLink "Ticker/tick:event"}}{{/crossLink}} + * event generated by the {{#crossLink "Ticker"}}{{/crossLink}}. + * + * createjs.Ticker.on("tick", handleTick); + * function handleTick(event) { + * stage.update(event); + * } + * + *

Example

+ * To define a simple sprite sheet, with a single image "sprites.jpg" arranged in a regular 50x50 grid with three + * animations: "stand" showing the first frame, "run" looping frame 1-5 inclusive, and "jump" playing frame 6-8 and + * sequencing back to run. + * + * var data = { + * images: ["sprites.jpg"], + * frames: {width:50, height:50}, + * animations: { + * stand:0, + * run:[1,5], + * jump:[6,8,"run"] + * } + * }; + * var spriteSheet = new createjs.SpriteSheet(data); + * var animation = new createjs.Sprite(spriteSheet, "run"); + * + *

Generating SpriteSheet Images

+ * Spritesheets can be created manually by combining images in PhotoShop, and specifying the frame size or + * coordinates manually, however there are a number of tools that facilitate this. + *
    + *
  • Exporting SpriteSheets or HTML5 content from Flash Pro supports the EaselJS SpriteSheet format.
  • + *
  • The popular Texture Packer has + * EaselJS support. + *
  • SWF animations in Flash can be exported to SpriteSheets using
  • + *
+ * + *

Cross Origin Issues

+ * Warning: Images loaded cross-origin will throw cross-origin security errors when interacted with + * using: + *
    + *
  • a mouse
  • + *
  • methods such as {{#crossLink "Container/getObjectUnderPoint"}}{{/crossLink}}
  • + *
  • Filters (see {{#crossLink "Filter"}}{{/crossLink}})
  • + *
  • caching (see {{#crossLink "DisplayObject/cache"}}{{/crossLink}})
  • + *
+ * You can get around this by setting `crossOrigin` property on your images before passing them to EaselJS, or + * setting the `crossOrigin` property on PreloadJS' LoadQueue or LoadItems. + * + * var image = new Image(); + * img.crossOrigin="Anonymous"; + * img.src = "http://server-with-CORS-support.com/path/to/image.jpg"; + * + * If you pass string paths to SpriteSheets, they will not work cross-origin. The server that stores the image must + * support cross-origin requests, or this will not work. For more information, check out + * CORS overview on MDN. + * + * @class SpriteSheet + * @constructor + * @param {Object} data An object describing the SpriteSheet data. + * @extends EventDispatcher + **/ + function SpriteSheet(data) { + this.EventDispatcher_constructor(); + + + // public properties: + /** + * Indicates whether all images are finished loading. + * @property complete + * @type Boolean + * @readonly + **/ + this.complete = true; + + /** + * Specifies the framerate to use by default for Sprite instances using the SpriteSheet. See the Sprite class + * {{#crossLink "Sprite/framerate:property"}}{{/crossLink}} for more information. + * @property framerate + * @type Number + **/ + this.framerate = 0; + + + // private properties: + /** + * @property _animations + * @protected + * @type Array + **/ + this._animations = null; + + /** + * @property _frames + * @protected + * @type Array + **/ + this._frames = null; + + /** + * @property _images + * @protected + * @type Array + **/ + this._images = null; + + /** + * @property _data + * @protected + * @type Object + **/ + this._data = null; + + /** + * @property _loadCount + * @protected + * @type Number + **/ + this._loadCount = 0; + + // only used for simple frame defs: + /** + * @property _frameHeight + * @protected + * @type Number + **/ + this._frameHeight = 0; + + /** + * @property _frameWidth + * @protected + * @type Number + **/ + this._frameWidth = 0; + + /** + * @property _numFrames + * @protected + * @type Number + **/ + this._numFrames = 0; + + /** + * @property _regX + * @protected + * @type Number + **/ + this._regX = 0; + + /** + * @property _regY + * @protected + * @type Number + **/ + this._regY = 0; + + /** + * @property _spacing + * @protected + * @type Number + **/ + this._spacing = 0; + + /** + * @property _margin + * @protected + * @type Number + **/ + this._margin = 0; + + // setup: + this._parseData(data); + } + var p = createjs.extend(SpriteSheet, createjs.EventDispatcher); + + // TODO: deprecated + // p.initialize = function() {}; // searchable for devs wondering where it is. REMOVED. See docs for details. + + +// events: + /** + * Dispatched when all images are loaded. Note that this only fires if the images + * were not fully loaded when the sprite sheet was initialized. You should check the complete property + * to prior to adding a listener. Ex. + * + * var sheet = new createjs.SpriteSheet(data); + * if (!sheet.complete) { + * // not preloaded, listen for the complete event: + * sheet.addEventListener("complete", handler); + * } + * + * @event complete + * @param {Object} target The object that dispatched the event. + * @param {String} type The event type. + * @since 0.6.0 + */ + + /** + * Dispatched when getFrame is called with a valid frame index. This is primarily intended for use by {{#crossLink "SpriteSheetBuilder"}}{{/crossLink}} + * when doing on-demand rendering. + * @event getframe + * @param {Number} index The frame index. + * @param {Object} frame The frame object that getFrame will return. + */ + + /** + * Dispatched when an image encounters an error. A SpriteSheet will dispatch an error event for each image that + * encounters an error, and will still dispatch a {{#crossLink "SpriteSheet/complete:event"}}{{/crossLink}} + * event once all images are finished processing, even if an error is encountered. + * @event error + * @param {String} src The source of the image that failed to load. + * @since 0.8.2 + */ + + +// getter / setters: + /** + * Use the {{#crossLink "SpriteSheet/animations:property"}}{{/crossLink}} property instead. + * @method getAnimations + * @return {Array} + * @deprecated + **/ + p.getAnimations = function() { + return this._animations.slice(); + }; + + /** + * Returns an array of all available animation names available on this sprite sheet as strings. + * @property animations + * @type {Array} + * @readonly + **/ + try { + Object.defineProperties(p, { + animations: { get: p.getAnimations } + }); + } catch (e) {} + + +// public methods: + /** + * Returns the total number of frames in the specified animation, or in the whole sprite + * sheet if the animation param is omitted. Returns 0 if the spritesheet relies on calculated frame counts, and + * the images have not been fully loaded. + * @method getNumFrames + * @param {String} animation The name of the animation to get a frame count for. + * @return {Number} The number of frames in the animation, or in the entire sprite sheet if the animation param is omitted. + */ + p.getNumFrames = function(animation) { + if (animation == null) { + return this._frames ? this._frames.length : this._numFrames || 0; + } else { + var data = this._data[animation]; + if (data == null) { return 0; } + else { return data.frames.length; } + } + }; + + /** + * Returns an object defining the specified animation. The returned object contains:
    + *
  • frames: an array of the frame ids in the animation
  • + *
  • speed: the playback speed for this animation
  • + *
  • name: the name of the animation
  • + *
  • next: the default animation to play next. If the animation loops, the name and next property will be the + * same.
  • + *
+ * @method getAnimation + * @param {String} name The name of the animation to get. + * @return {Object} a generic object with frames, speed, name, and next properties. + **/ + p.getAnimation = function(name) { + return this._data[name]; + }; + + /** + * Returns an object specifying the image and source rect of the specified frame. The returned object has:
    + *
  • an image property holding a reference to the image object in which the frame is found
  • + *
  • a rect property containing a Rectangle instance which defines the boundaries for the frame within that + * image.
  • + *
  • A regX and regY property corresponding to the regX/Y values for the frame. + *
+ * @method getFrame + * @param {Number} frameIndex The index of the frame. + * @return {Object} a generic object with image and rect properties. Returns null if the frame does not exist. + **/ + p.getFrame = function(frameIndex) { + var frame; + if (this._frames && (frame=this._frames[frameIndex])) { return frame; } + return null; + }; + + /** + * Returns a {{#crossLink "Rectangle"}}{{/crossLink}} instance defining the bounds of the specified frame relative + * to the origin. For example, a 90 x 70 frame with a regX of 50 and a regY of 40 would return: + * + * [x=-50, y=-40, width=90, height=70] + * + * @method getFrameBounds + * @param {Number} frameIndex The index of the frame. + * @param {Rectangle} [rectangle] A Rectangle instance to copy the values into. By default a new instance is created. + * @return {Rectangle} A Rectangle instance. Returns null if the frame does not exist, or the image is not fully loaded. + **/ + p.getFrameBounds = function(frameIndex, rectangle) { + var frame = this.getFrame(frameIndex); + return frame ? (rectangle||new createjs.Rectangle()).setValues(-frame.regX, -frame.regY, frame.rect.width, frame.rect.height) : null; + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[SpriteSheet]"; + }; + + /** + * SpriteSheet cannot be cloned. A SpriteSheet can be shared by multiple Sprite instances without cloning it. + * @method clone + **/ + p.clone = function() { + throw("SpriteSheet cannot be cloned.") + }; + +// private methods: + /** + * @method _parseData + * @param {Object} data An object describing the SpriteSheet data. + * @protected + **/ + p._parseData = function(data) { + var i,l,o,a; + if (data == null) { return; } + + this.framerate = data.framerate||0; + + // parse images: + if (data.images && (l=data.images.length) > 0) { + a = this._images = []; + for (i=0; i= maxFrames) { break imgLoop; } + frameCount++; + this._frames.push({ + image: img, + rect: new createjs.Rectangle(x, y, frameWidth, frameHeight), + regX: this._regX, + regY: this._regY + }); + x += frameWidth+spacing; + } + y += frameHeight+spacing; + } + } + this._numFrames = frameCount; + }; + + + createjs.SpriteSheet = createjs.promote(SpriteSheet, "EventDispatcher"); +}()); + +//############################################################################## +// Graphics.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * The Graphics class exposes an easy to use API for generating vector drawing instructions and drawing them to a + * specified context. Note that you can use Graphics without any dependency on the EaselJS framework by calling {{#crossLink "Graphics/draw"}}{{/crossLink}} + * directly, or it can be used with the {{#crossLink "Shape"}}{{/crossLink}} object to draw vector graphics within the + * context of an EaselJS display list. + * + * There are two approaches to working with Graphics object: calling methods on a Graphics instance (the "Graphics API"), or + * instantiating Graphics command objects and adding them to the graphics queue via {{#crossLink "Graphics/append"}}{{/crossLink}}. + * The former abstracts the latter, simplifying beginning and ending paths, fills, and strokes. + * + * var g = new createjs.Graphics(); + * g.setStrokeStyle(1); + * g.beginStroke("#000000"); + * g.beginFill("red"); + * g.drawCircle(0,0,30); + * + * All drawing methods in Graphics return the Graphics instance, so they can be chained together. For example, + * the following line of code would generate the instructions to draw a rectangle with a red stroke and blue fill: + * + * myGraphics.beginStroke("red").beginFill("blue").drawRect(20, 20, 100, 50); + * + * Each graphics API call generates a command object (see below). The last command to be created can be accessed via + * {{#crossLink "Graphics/command:property"}}{{/crossLink}}: + * + * var fillCommand = myGraphics.beginFill("red").command; + * // ... later, update the fill style/color: + * fillCommand.style = "blue"; + * // or change it to a bitmap fill: + * fillCommand.bitmap(myImage); + * + * For more direct control of rendering, you can instantiate and append command objects to the graphics queue directly. In this case, you + * need to manage path creation manually, and ensure that fill/stroke is applied to a defined path: + * + * // start a new path. Graphics.beginCmd is a reusable BeginPath instance: + * myGraphics.append(createjs.Graphics.beginCmd); + * // we need to define the path before applying the fill: + * var circle = new createjs.Graphics.Circle(0,0,30); + * myGraphics.append(circle); + * // fill the path we just defined: + * var fill = new createjs.Graphics.Fill("red"); + * myGraphics.append(fill); + * + * These approaches can be used together, for example to insert a custom command: + * + * myGraphics.beginFill("red"); + * var customCommand = new CustomSpiralCommand(etc); + * myGraphics.append(customCommand); + * myGraphics.beginFill("blue"); + * myGraphics.drawCircle(0, 0, 30); + * + * See {{#crossLink "Graphics/append"}}{{/crossLink}} for more info on creating custom commands. + * + *

Tiny API

+ * The Graphics class also includes a "tiny API", which is one or two-letter methods that are shortcuts for all of the + * Graphics methods. These methods are great for creating compact instructions, and is used by the Toolkit for CreateJS + * to generate readable code. All tiny methods are marked as protected, so you can view them by enabling protected + * descriptions in the docs. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
TinyMethodTinyMethod
mt{{#crossLink "Graphics/moveTo"}}{{/crossLink}} lt {{#crossLink "Graphics/lineTo"}}{{/crossLink}}
a/at{{#crossLink "Graphics/arc"}}{{/crossLink}} / {{#crossLink "Graphics/arcTo"}}{{/crossLink}} bt{{#crossLink "Graphics/bezierCurveTo"}}{{/crossLink}}
qt{{#crossLink "Graphics/quadraticCurveTo"}}{{/crossLink}} (also curveTo)r{{#crossLink "Graphics/rect"}}{{/crossLink}}
cp{{#crossLink "Graphics/closePath"}}{{/crossLink}} c{{#crossLink "Graphics/clear"}}{{/crossLink}}
f{{#crossLink "Graphics/beginFill"}}{{/crossLink}} lf{{#crossLink "Graphics/beginLinearGradientFill"}}{{/crossLink}}
rf{{#crossLink "Graphics/beginRadialGradientFill"}}{{/crossLink}} bf{{#crossLink "Graphics/beginBitmapFill"}}{{/crossLink}}
ef{{#crossLink "Graphics/endFill"}}{{/crossLink}} ss / sd{{#crossLink "Graphics/setStrokeStyle"}}{{/crossLink}} / {{#crossLink "Graphics/setStrokeDash"}}{{/crossLink}}
s{{#crossLink "Graphics/beginStroke"}}{{/crossLink}} ls{{#crossLink "Graphics/beginLinearGradientStroke"}}{{/crossLink}}
rs{{#crossLink "Graphics/beginRadialGradientStroke"}}{{/crossLink}} bs{{#crossLink "Graphics/beginBitmapStroke"}}{{/crossLink}}
es{{#crossLink "Graphics/endStroke"}}{{/crossLink}} dr{{#crossLink "Graphics/drawRect"}}{{/crossLink}}
rr{{#crossLink "Graphics/drawRoundRect"}}{{/crossLink}} rc{{#crossLink "Graphics/drawRoundRectComplex"}}{{/crossLink}}
dc{{#crossLink "Graphics/drawCircle"}}{{/crossLink}} de{{#crossLink "Graphics/drawEllipse"}}{{/crossLink}}
dp{{#crossLink "Graphics/drawPolyStar"}}{{/crossLink}} p{{#crossLink "Graphics/decodePath"}}{{/crossLink}}
+ * + * Here is the above example, using the tiny API instead. + * + * myGraphics.s("red").f("blue").r(20, 20, 100, 50); + * + * @class Graphics + * @constructor + **/ + function Graphics() { + + + // public properties + /** + * Holds a reference to the last command that was created or appended. For example, you could retain a reference + * to a Fill command in order to dynamically update the color later by using: + * + * var myFill = myGraphics.beginFill("red").command; + * // update color later: + * myFill.style = "yellow"; + * + * @property command + * @type Object + **/ + this.command = null; + + + // private properties + /** + * @property _stroke + * @protected + * @type {Stroke} + **/ + this._stroke = null; + + /** + * @property _strokeStyle + * @protected + * @type {StrokeStyle} + **/ + this._strokeStyle = null; + + /** + * @property _oldStrokeStyle + * @protected + * @type {StrokeStyle} + **/ + this._oldStrokeStyle = null; + + /** + * @property _strokeDash + * @protected + * @type {StrokeDash} + **/ + this._strokeDash = null; + + /** + * @property _oldStrokeDash + * @protected + * @type {StrokeDash} + **/ + this._oldStrokeDash = null; + + /** + * @property _strokeIgnoreScale + * @protected + * @type Boolean + **/ + this._strokeIgnoreScale = false; + + /** + * @property _fill + * @protected + * @type {Fill} + **/ + this._fill = null; + + /** + * @property _instructions + * @protected + * @type {Array} + **/ + this._instructions = []; + + /** + * Indicates the last instruction index that was committed. + * @property _commitIndex + * @protected + * @type {Number} + **/ + this._commitIndex = 0; + + /** + * Uncommitted instructions. + * @property _activeInstructions + * @protected + * @type {Array} + **/ + this._activeInstructions = []; + + /** + * This indicates that there have been changes to the activeInstruction list since the last updateInstructions call. + * @property _dirty + * @protected + * @type {Boolean} + * @default false + **/ + this._dirty = false; + + /** + * Index to draw from if a store operation has happened. + * @property _storeIndex + * @protected + * @type {Number} + * @default 0 + **/ + this._storeIndex = 0; + + // setup: + this.clear(); + } + var p = Graphics.prototype; + var G = Graphics; // shortcut + + /** + * REMOVED. Removed in favor of using `MySuperClass_constructor`. + * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}} + * for details. + * + * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance. + * + * @method initialize + * @protected + * @deprecated + */ + // p.initialize = function() {}; // searchable for devs wondering where it is. + + +// static public methods: + /** + * Returns a CSS compatible color string based on the specified RGB numeric color values in the format + * "rgba(255,255,255,1.0)", or if alpha is null then in the format "rgb(255,255,255)". For example, + * + * createjs.Graphics.getRGB(50, 100, 150, 0.5); + * // Returns "rgba(50,100,150,0.5)" + * + * It also supports passing a single hex color value as the first param, and an optional alpha value as the second + * param. For example, + * + * createjs.Graphics.getRGB(0xFF00FF, 0.2); + * // Returns "rgba(255,0,255,0.2)" + * + * @method getRGB + * @static + * @param {Number} r The red component for the color, between 0 and 0xFF (255). + * @param {Number} g The green component for the color, between 0 and 0xFF (255). + * @param {Number} b The blue component for the color, between 0 and 0xFF (255). + * @param {Number} [alpha] The alpha component for the color where 0 is fully transparent and 1 is fully opaque. + * @return {String} A CSS compatible color string based on the specified RGB numeric color values in the format + * "rgba(255,255,255,1.0)", or if alpha is null then in the format "rgb(255,255,255)". + **/ + Graphics.getRGB = function(r, g, b, alpha) { + if (r != null && b == null) { + alpha = g; + b = r&0xFF; + g = r>>8&0xFF; + r = r>>16&0xFF; + } + if (alpha == null) { + return "rgb("+r+","+g+","+b+")"; + } else { + return "rgba("+r+","+g+","+b+","+alpha+")"; + } + }; + + /** + * Returns a CSS compatible color string based on the specified HSL numeric color values in the format "hsla(360,100,100,1.0)", + * or if alpha is null then in the format "hsl(360,100,100)". + * + * createjs.Graphics.getHSL(150, 100, 70); + * // Returns "hsl(150,100,70)" + * + * @method getHSL + * @static + * @param {Number} hue The hue component for the color, between 0 and 360. + * @param {Number} saturation The saturation component for the color, between 0 and 100. + * @param {Number} lightness The lightness component for the color, between 0 and 100. + * @param {Number} [alpha] The alpha component for the color where 0 is fully transparent and 1 is fully opaque. + * @return {String} A CSS compatible color string based on the specified HSL numeric color values in the format + * "hsla(360,100,100,1.0)", or if alpha is null then in the format "hsl(360,100,100)". + **/ + Graphics.getHSL = function(hue, saturation, lightness, alpha) { + if (alpha == null) { + return "hsl("+(hue%360)+","+saturation+"%,"+lightness+"%)"; + } else { + return "hsla("+(hue%360)+","+saturation+"%,"+lightness+"%,"+alpha+")"; + } + }; + + +// static properties: + /** + * A reusable instance of {{#crossLink "Graphics/BeginPath"}}{{/crossLink}} to avoid + * unnecessary instantiation. + * @property beginCmd + * @type {Graphics.BeginPath} + * @static + **/ + // defined at the bottom of this file. + + /** + * Map of Base64 characters to values. Used by {{#crossLink "Graphics/decodePath"}}{{/crossLink}}. + * @property BASE_64 + * @static + * @final + * @readonly + * @type {Object} + **/ + Graphics.BASE_64 = {"A":0,"B":1,"C":2,"D":3,"E":4,"F":5,"G":6,"H":7,"I":8,"J":9,"K":10,"L":11,"M":12,"N":13,"O":14,"P":15,"Q":16,"R":17,"S":18,"T":19,"U":20,"V":21,"W":22,"X":23,"Y":24,"Z":25,"a":26,"b":27,"c":28,"d":29,"e":30,"f":31,"g":32,"h":33,"i":34,"j":35,"k":36,"l":37,"m":38,"n":39,"o":40,"p":41,"q":42,"r":43,"s":44,"t":45,"u":46,"v":47,"w":48,"x":49,"y":50,"z":51,"0":52,"1":53,"2":54,"3":55,"4":56,"5":57,"6":58,"7":59,"8":60,"9":61,"+":62,"/":63}; + + /** + * Maps numeric values for the caps parameter of {{#crossLink "Graphics/setStrokeStyle"}}{{/crossLink}} to + * corresponding string values. This is primarily for use with the tiny API. The mappings are as follows: 0 to + * "butt", 1 to "round", and 2 to "square". + * For example, to set the line caps to "square": + * + * myGraphics.ss(16, 2); + * + * @property STROKE_CAPS_MAP + * @static + * @final + * @readonly + * @type {Array} + **/ + Graphics.STROKE_CAPS_MAP = ["butt", "round", "square"]; + + /** + * Maps numeric values for the joints parameter of {{#crossLink "Graphics/setStrokeStyle"}}{{/crossLink}} to + * corresponding string values. This is primarily for use with the tiny API. The mappings are as follows: 0 to + * "miter", 1 to "round", and 2 to "bevel". + * For example, to set the line joints to "bevel": + * + * myGraphics.ss(16, 0, 2); + * + * @property STROKE_JOINTS_MAP + * @static + * @final + * @readonly + * @type {Array} + **/ + Graphics.STROKE_JOINTS_MAP = ["miter", "round", "bevel"]; + + /** + * @property _ctx + * @static + * @protected + * @type {CanvasRenderingContext2D} + **/ + var canvas = (createjs.createCanvas?createjs.createCanvas():document.createElement("canvas")); + if (canvas.getContext) { + Graphics._ctx = canvas.getContext("2d"); + canvas.width = canvas.height = 1; + } + + +// getter / setters: + /** + * Use the {{#crossLink "Graphics/instructions:property"}}{{/crossLink}} property instead. + * @method getInstructions + * @return {Array} + * @deprecated + **/ + p.getInstructions = function() { + this._updateInstructions(); + return this._instructions; + }; + + /** + * Returns the graphics instructions array. Each entry is a graphics command object (ex. Graphics.Fill, Graphics.Rect) + * Modifying the returned array directly is not recommended, and is likely to result in unexpected behaviour. + * + * This property is mainly intended for introspection of the instructions (ex. for graphics export). + * @property instructions + * @type {Array} + * @readonly + **/ + try { + Object.defineProperties(p, { + instructions: { get: p.getInstructions } + }); + } catch (e) {} + + +// public methods: + /** + * Returns true if this Graphics instance has no drawing commands. + * @method isEmpty + * @return {Boolean} Returns true if this Graphics instance has no drawing commands. + **/ + p.isEmpty = function() { + return !(this._instructions.length || this._activeInstructions.length); + }; + + /** + * Draws the display object into the specified context ignoring its visible, alpha, shadow, and transform. + * Returns true if the draw was handled (useful for overriding functionality). + * + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method draw + * @param {CanvasRenderingContext2D} ctx The canvas 2D context object to draw into. + * @param {Object} data Optional data that is passed to graphics command exec methods. When called from a Shape instance, the shape passes itself as the data parameter. This can be used by custom graphic commands to insert contextual data. + **/ + p.draw = function(ctx, data) { + this._updateInstructions(); + var instr = this._instructions; + for (var i=this._storeIndex, l=instr.length; iDisplayObject.mask to draw the clipping path, for example. + * + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method drawAsPath + * @param {CanvasRenderingContext2D} ctx The canvas 2D context object to draw into. + **/ + p.drawAsPath = function(ctx) { + this._updateInstructions(); + var instr, instrs = this._instructions; + for (var i=this._storeIndex, l=instrs.length; i + * whatwg spec. + * @method lineTo + * @param {Number} x The x coordinate the drawing point should draw to. + * @param {Number} y The y coordinate the drawing point should draw to. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.lineTo = function(x, y) { + return this.append(new G.LineTo(x,y)); + }; + + /** + * Draws an arc with the specified control points and radius. For detailed information, read the + * + * whatwg spec. A tiny API method "at" also exists. + * @method arcTo + * @param {Number} x1 + * @param {Number} y1 + * @param {Number} x2 + * @param {Number} y2 + * @param {Number} radius + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.arcTo = function(x1, y1, x2, y2, radius) { + return this.append(new G.ArcTo(x1, y1, x2, y2, radius)); + }; + + /** + * Draws an arc defined by the radius, startAngle and endAngle arguments, centered at the position (x, y). For + * example, to draw a full circle with a radius of 20 centered at (100, 100): + * + * arc(100, 100, 20, 0, Math.PI*2); + * + * For detailed information, read the + * whatwg spec. + * A tiny API method "a" also exists. + * @method arc + * @param {Number} x + * @param {Number} y + * @param {Number} radius + * @param {Number} startAngle Measured in radians. + * @param {Number} endAngle Measured in radians. + * @param {Boolean} anticlockwise + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.arc = function(x, y, radius, startAngle, endAngle, anticlockwise) { + return this.append(new G.Arc(x, y, radius, startAngle, endAngle, anticlockwise)); + }; + + /** + * Draws a quadratic curve from the current drawing point to (x, y) using the control point (cpx, cpy). For detailed + * information, read the + * whatwg spec. A tiny API method "qt" also exists. + * @method quadraticCurveTo + * @param {Number} cpx + * @param {Number} cpy + * @param {Number} x + * @param {Number} y + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.quadraticCurveTo = function(cpx, cpy, x, y) { + return this.append(new G.QuadraticCurveTo(cpx, cpy, x, y)); + }; + + /** + * Draws a bezier curve from the current drawing point to (x, y) using the control points (cp1x, cp1y) and (cp2x, + * cp2y). For detailed information, read the + * + * whatwg spec. A tiny API method "bt" also exists. + * @method bezierCurveTo + * @param {Number} cp1x + * @param {Number} cp1y + * @param {Number} cp2x + * @param {Number} cp2y + * @param {Number} x + * @param {Number} y + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.bezierCurveTo = function(cp1x, cp1y, cp2x, cp2y, x, y) { + return this.append(new G.BezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y)); + }; + + /** + * Draws a rectangle at (x, y) with the specified width and height using the current fill and/or stroke. + * For detailed information, read the + * + * whatwg spec. A tiny API method "r" also exists. + * @method rect + * @param {Number} x + * @param {Number} y + * @param {Number} w Width of the rectangle + * @param {Number} h Height of the rectangle + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.rect = function(x, y, w, h) { + return this.append(new G.Rect(x, y, w, h)); + }; + + /** + * Closes the current path, effectively drawing a line from the current drawing point to the first drawing point specified + * since the fill or stroke was last set. A tiny API method "cp" also exists. + * @method closePath + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.closePath = function() { + return this._activeInstructions.length ? this.append(new G.ClosePath()) : this; + }; + + +// public methods that roughly map to Flash graphics APIs: + /** + * Clears all drawing instructions, effectively resetting this Graphics instance. Any line and fill styles will need + * to be redefined to draw shapes following a clear call. A tiny API method "c" also exists. + * @method clear + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.clear = function() { + this._instructions.length = this._activeInstructions.length = this._commitIndex = 0; + this._strokeStyle = this._oldStrokeStyle = this._stroke = this._fill = this._strokeDash = this._oldStrokeDash = null; + this._dirty = this._strokeIgnoreScale = false; + return this; + }; + + /** + * Begins a fill with the specified color. This ends the current sub-path. A tiny API method "f" also exists. + * @method beginFill + * @param {String} color A CSS compatible color value (ex. "red", "#FF0000", or "rgba(255,0,0,0.5)"). Setting to + * null will result in no fill. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.beginFill = function(color) { + return this._setFill(color ? new G.Fill(color) : null); + }; + + /** + * Begins a linear gradient fill defined by the line (x0, y0) to (x1, y1). This ends the current sub-path. For + * example, the following code defines a black to white vertical gradient ranging from 20px to 120px, and draws a + * square to display it: + * + * myGraphics.beginLinearGradientFill(["#000","#FFF"], [0, 1], 0, 20, 0, 120).drawRect(20, 20, 120, 120); + * + * A tiny API method "lf" also exists. + * @method beginLinearGradientFill + * @param {Array} colors An array of CSS compatible color values. For example, ["#F00","#00F"] would define a gradient + * drawing from red to blue. + * @param {Array} ratios An array of gradient positions which correspond to the colors. For example, [0.1, 0.9] would draw + * the first color to 10% then interpolating to the second color at 90%. + * @param {Number} x0 The position of the first point defining the line that defines the gradient direction and size. + * @param {Number} y0 The position of the first point defining the line that defines the gradient direction and size. + * @param {Number} x1 The position of the second point defining the line that defines the gradient direction and size. + * @param {Number} y1 The position of the second point defining the line that defines the gradient direction and size. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.beginLinearGradientFill = function(colors, ratios, x0, y0, x1, y1) { + return this._setFill(new G.Fill().linearGradient(colors, ratios, x0, y0, x1, y1)); + }; + + /** + * Begins a radial gradient fill. This ends the current sub-path. For example, the following code defines a red to + * blue radial gradient centered at (100, 100), with a radius of 50, and draws a circle to display it: + * + * myGraphics.beginRadialGradientFill(["#F00","#00F"], [0, 1], 100, 100, 0, 100, 100, 50).drawCircle(100, 100, 50); + * + * A tiny API method "rf" also exists. + * @method beginRadialGradientFill + * @param {Array} colors An array of CSS compatible color values. For example, ["#F00","#00F"] would define + * a gradient drawing from red to blue. + * @param {Array} ratios An array of gradient positions which correspond to the colors. For example, [0.1, + * 0.9] would draw the first color to 10% then interpolating to the second color at 90%. + * @param {Number} x0 Center position of the inner circle that defines the gradient. + * @param {Number} y0 Center position of the inner circle that defines the gradient. + * @param {Number} r0 Radius of the inner circle that defines the gradient. + * @param {Number} x1 Center position of the outer circle that defines the gradient. + * @param {Number} y1 Center position of the outer circle that defines the gradient. + * @param {Number} r1 Radius of the outer circle that defines the gradient. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.beginRadialGradientFill = function(colors, ratios, x0, y0, r0, x1, y1, r1) { + return this._setFill(new G.Fill().radialGradient(colors, ratios, x0, y0, r0, x1, y1, r1)); + }; + + /** + * Begins a pattern fill using the specified image. This ends the current sub-path. A tiny API method "bf" also + * exists. + * @method beginBitmapFill + * @param {HTMLImageElement | HTMLCanvasElement | HTMLVideoElement} image The Image, Canvas, or Video object to use + * as the pattern. Must be loaded prior to creating a bitmap fill, or the fill will be empty. + * @param {String} repetition Optional. Indicates whether to repeat the image in the fill area. One of "repeat", + * "repeat-x", "repeat-y", or "no-repeat". Defaults to "repeat". Note that Firefox does not support "repeat-x" or + * "repeat-y" (latest tests were in FF 20.0), and will default to "repeat". + * @param {Matrix2D} matrix Optional. Specifies a transformation matrix for the bitmap fill. This transformation + * will be applied relative to the parent transform. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.beginBitmapFill = function(image, repetition, matrix) { + return this._setFill(new G.Fill(null,matrix).bitmap(image, repetition)); + }; + + /** + * Ends the current sub-path, and begins a new one with no fill. Functionally identical to beginFill(null). + * A tiny API method "ef" also exists. + * @method endFill + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.endFill = function() { + return this.beginFill(); + }; + + /** + * Sets the stroke style. Like all drawing methods, this can be chained, so you can define + * the stroke style and color in a single line of code like so: + * + * myGraphics.setStrokeStyle(8,"round").beginStroke("#F00"); + * + * A tiny API method "ss" also exists. + * @method setStrokeStyle + * @param {Number} thickness The width of the stroke. + * @param {String | Number} [caps=0] Indicates the type of caps to use at the end of lines. One of butt, + * round, or square. Defaults to "butt". Also accepts the values 0 (butt), 1 (round), and 2 (square) for use with + * the tiny API. + * @param {String | Number} [joints=0] Specifies the type of joints that should be used where two lines meet. + * One of bevel, round, or miter. Defaults to "miter". Also accepts the values 0 (miter), 1 (round), and 2 (bevel) + * for use with the tiny API. + * @param {Number} [miterLimit=10] If joints is set to "miter", then you can specify a miter limit ratio which + * controls at what point a mitered joint will be clipped. + * @param {Boolean} [ignoreScale=false] If true, the stroke will be drawn at the specified thickness regardless + * of active transformations. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.setStrokeStyle = function(thickness, caps, joints, miterLimit, ignoreScale) { + this._updateInstructions(true); + this._strokeStyle = this.command = new G.StrokeStyle(thickness, caps, joints, miterLimit, ignoreScale); + + // ignoreScale lives on Stroke, not StrokeStyle, so we do a little trickery: + if (this._stroke) { this._stroke.ignoreScale = ignoreScale; } + this._strokeIgnoreScale = ignoreScale; + return this; + }; + + /** + * Sets or clears the stroke dash pattern. + * + * myGraphics.setStrokeDash([20, 10], 0); + * + * A tiny API method `sd` also exists. + * @method setStrokeDash + * @param {Array} [segments] An array specifying the dash pattern, alternating between line and gap. + * For example, `[20,10]` would create a pattern of 20 pixel lines with 10 pixel gaps between them. + * Passing null or an empty array will clear the existing stroke dash. + * @param {Number} [offset=0] The offset of the dash pattern. For example, you could increment this value to create a "marching ants" effect. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.setStrokeDash = function(segments, offset) { + this._updateInstructions(true); + this._strokeDash = this.command = new G.StrokeDash(segments, offset); + return this; + }; + + /** + * Begins a stroke with the specified color. This ends the current sub-path. A tiny API method "s" also exists. + * @method beginStroke + * @param {String} color A CSS compatible color value (ex. "#FF0000", "red", or "rgba(255,0,0,0.5)"). Setting to + * null will result in no stroke. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.beginStroke = function(color) { + return this._setStroke(color ? new G.Stroke(color) : null); + }; + + /** + * Begins a linear gradient stroke defined by the line (x0, y0) to (x1, y1). This ends the current sub-path. For + * example, the following code defines a black to white vertical gradient ranging from 20px to 120px, and draws a + * square to display it: + * + * myGraphics.setStrokeStyle(10). + * beginLinearGradientStroke(["#000","#FFF"], [0, 1], 0, 20, 0, 120).drawRect(20, 20, 120, 120); + * + * A tiny API method "ls" also exists. + * @method beginLinearGradientStroke + * @param {Array} colors An array of CSS compatible color values. For example, ["#F00","#00F"] would define + * a gradient drawing from red to blue. + * @param {Array} ratios An array of gradient positions which correspond to the colors. For example, [0.1, + * 0.9] would draw the first color to 10% then interpolating to the second color at 90%. + * @param {Number} x0 The position of the first point defining the line that defines the gradient direction and size. + * @param {Number} y0 The position of the first point defining the line that defines the gradient direction and size. + * @param {Number} x1 The position of the second point defining the line that defines the gradient direction and size. + * @param {Number} y1 The position of the second point defining the line that defines the gradient direction and size. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.beginLinearGradientStroke = function(colors, ratios, x0, y0, x1, y1) { + return this._setStroke(new G.Stroke().linearGradient(colors, ratios, x0, y0, x1, y1)); + }; + + /** + * Begins a radial gradient stroke. This ends the current sub-path. For example, the following code defines a red to + * blue radial gradient centered at (100, 100), with a radius of 50, and draws a rectangle to display it: + * + * myGraphics.setStrokeStyle(10) + * .beginRadialGradientStroke(["#F00","#00F"], [0, 1], 100, 100, 0, 100, 100, 50) + * .drawRect(50, 90, 150, 110); + * + * A tiny API method "rs" also exists. + * @method beginRadialGradientStroke + * @param {Array} colors An array of CSS compatible color values. For example, ["#F00","#00F"] would define + * a gradient drawing from red to blue. + * @param {Array} ratios An array of gradient positions which correspond to the colors. For example, [0.1, + * 0.9] would draw the first color to 10% then interpolating to the second color at 90%, then draw the second color + * to 100%. + * @param {Number} x0 Center position of the inner circle that defines the gradient. + * @param {Number} y0 Center position of the inner circle that defines the gradient. + * @param {Number} r0 Radius of the inner circle that defines the gradient. + * @param {Number} x1 Center position of the outer circle that defines the gradient. + * @param {Number} y1 Center position of the outer circle that defines the gradient. + * @param {Number} r1 Radius of the outer circle that defines the gradient. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.beginRadialGradientStroke = function(colors, ratios, x0, y0, r0, x1, y1, r1) { + return this._setStroke(new G.Stroke().radialGradient(colors, ratios, x0, y0, r0, x1, y1, r1)); + }; + + /** + * Begins a pattern fill using the specified image. This ends the current sub-path. Note that unlike bitmap fills, + * strokes do not currently support a matrix parameter due to limitations in the canvas API. A tiny API method "bs" + * also exists. + * @method beginBitmapStroke + * @param {HTMLImageElement | HTMLCanvasElement | HTMLVideoElement} image The Image, Canvas, or Video object to use + * as the pattern. Must be loaded prior to creating a bitmap fill, or the fill will be empty. + * @param {String} [repetition=repeat] Optional. Indicates whether to repeat the image in the fill area. One of + * "repeat", "repeat-x", "repeat-y", or "no-repeat". Defaults to "repeat". + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.beginBitmapStroke = function(image, repetition) { + // NOTE: matrix is not supported for stroke because transforms on strokes also affect the drawn stroke width. + return this._setStroke(new G.Stroke().bitmap(image, repetition)); + }; + + /** + * Ends the current sub-path, and begins a new one with no stroke. Functionally identical to beginStroke(null). + * A tiny API method "es" also exists. + * @method endStroke + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.endStroke = function() { + return this.beginStroke(); + }; + + /** + * Maps the familiar ActionScript curveTo() method to the functionally similar {{#crossLink "Graphics/quadraticCurveTo"}}{{/crossLink}} + * method. + * @method quadraticCurveTo + * @param {Number} cpx + * @param {Number} cpy + * @param {Number} x + * @param {Number} y + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.curveTo = p.quadraticCurveTo; + + /** + * + * Maps the familiar ActionScript drawRect() method to the functionally similar {{#crossLink "Graphics/rect"}}{{/crossLink}} + * method. + * @method drawRect + * @param {Number} x + * @param {Number} y + * @param {Number} w Width of the rectangle + * @param {Number} h Height of the rectangle + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.drawRect = p.rect; + + /** + * Draws a rounded rectangle with all corners with the specified radius. + * @method drawRoundRect + * @param {Number} x + * @param {Number} y + * @param {Number} w + * @param {Number} h + * @param {Number} radius Corner radius. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.drawRoundRect = function(x, y, w, h, radius) { + return this.drawRoundRectComplex(x, y, w, h, radius, radius, radius, radius); + }; + + /** + * Draws a rounded rectangle with different corner radii. Supports positive and negative corner radii. A tiny API + * method "rc" also exists. + * @method drawRoundRectComplex + * @param {Number} x The horizontal coordinate to draw the round rect. + * @param {Number} y The vertical coordinate to draw the round rect. + * @param {Number} w The width of the round rect. + * @param {Number} h The height of the round rect. + * @param {Number} radiusTL Top left corner radius. + * @param {Number} radiusTR Top right corner radius. + * @param {Number} radiusBR Bottom right corner radius. + * @param {Number} radiusBL Bottom left corner radius. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.drawRoundRectComplex = function(x, y, w, h, radiusTL, radiusTR, radiusBR, radiusBL) { + return this.append(new G.RoundRect(x, y, w, h, radiusTL, radiusTR, radiusBR, radiusBL)); + }; + + /** + * Draws a circle with the specified radius at (x, y). + * + * var g = new createjs.Graphics(); + * g.setStrokeStyle(1); + * g.beginStroke(createjs.Graphics.getRGB(0,0,0)); + * g.beginFill(createjs.Graphics.getRGB(255,0,0)); + * g.drawCircle(0,0,3); + * + * var s = new createjs.Shape(g); + * s.x = 100; + * s.y = 100; + * + * stage.addChild(s); + * stage.update(); + * + * A tiny API method "dc" also exists. + * @method drawCircle + * @param {Number} x x coordinate center point of circle. + * @param {Number} y y coordinate center point of circle. + * @param {Number} radius Radius of circle. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.drawCircle = function(x, y, radius) { + return this.append(new G.Circle(x, y, radius)); + }; + + /** + * Draws an ellipse (oval) with a specified width (w) and height (h). Similar to {{#crossLink "Graphics/drawCircle"}}{{/crossLink}}, + * except the width and height can be different. A tiny API method "de" also exists. + * @method drawEllipse + * @param {Number} x The left coordinate point of the ellipse. Note that this is different from {{#crossLink "Graphics/drawCircle"}}{{/crossLink}} + * which draws from center. + * @param {Number} y The top coordinate point of the ellipse. Note that this is different from {{#crossLink "Graphics/drawCircle"}}{{/crossLink}} + * which draws from the center. + * @param {Number} w The height (horizontal diameter) of the ellipse. The horizontal radius will be half of this + * number. + * @param {Number} h The width (vertical diameter) of the ellipse. The vertical radius will be half of this number. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.drawEllipse = function(x, y, w, h) { + return this.append(new G.Ellipse(x, y, w, h)); + }; + + /** + * Draws a star if pointSize is greater than 0, or a regular polygon if pointSize is 0 with the specified number of + * points. For example, the following code will draw a familiar 5 pointed star shape centered at 100, 100 and with a + * radius of 50: + * + * myGraphics.beginFill("#FF0").drawPolyStar(100, 100, 50, 5, 0.6, -90); + * // Note: -90 makes the first point vertical + * + * A tiny API method "dp" also exists. + * + * @method drawPolyStar + * @param {Number} x Position of the center of the shape. + * @param {Number} y Position of the center of the shape. + * @param {Number} radius The outer radius of the shape. + * @param {Number} sides The number of points on the star or sides on the polygon. + * @param {Number} pointSize The depth or "pointy-ness" of the star points. A pointSize of 0 will draw a regular + * polygon (no points), a pointSize of 1 will draw nothing because the points are infinitely pointy. + * @param {Number} angle The angle of the first point / corner. For example a value of 0 will draw the first point + * directly to the right of the center. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.drawPolyStar = function(x, y, radius, sides, pointSize, angle) { + return this.append(new G.PolyStar(x, y, radius, sides, pointSize, angle)); + }; + + // TODO: deprecated. + /** + * Removed in favour of using custom command objects with {{#crossLink "Graphics/append"}}{{/crossLink}}. + * @method inject + * @deprecated + **/ + + /** + * Appends a graphics command object to the graphics queue. Command objects expose an "exec" method + * that accepts two parameters: the Context2D to operate on, and an arbitrary data object passed into + * {{#crossLink "Graphics/draw"}}{{/crossLink}}. The latter will usually be the Shape instance that called draw. + * + * This method is used internally by Graphics methods, such as drawCircle, but can also be used directly to insert + * built-in or custom graphics commands. For example: + * + * // attach data to our shape, so we can access it during the draw: + * myShape.color = "red"; + * + * // append a Circle command object: + * myShape.graphics.append(new createjs.Graphics.Circle(50, 50, 30)); + * + * // append a custom command object with an exec method that sets the fill style + * // based on the shape's data, and then fills the circle. + * myShape.graphics.append({exec:function(ctx, shape) { + * ctx.fillStyle = shape.color; + * ctx.fill(); + * }}); + * + * @method append + * @param {Object} command A graphics command object exposing an "exec" method. + * @param {boolean} clean The clean param is primarily for internal use. A value of true indicates that a command does not generate a path that should be stroked or filled. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.append = function(command, clean) { + this._activeInstructions.push(command); + this.command = command; + if (!clean) { this._dirty = true; } + return this; + }; + + /** + * Decodes a compact encoded path string into a series of draw instructions. + * This format is not intended to be human readable, and is meant for use by authoring tools. + * The format uses a base64 character set, with each character representing 6 bits, to define a series of draw + * commands. + * + * Each command is comprised of a single "header" character followed by a variable number of alternating x and y + * position values. Reading the header bits from left to right (most to least significant): bits 1 to 3 specify the + * type of operation (0-moveTo, 1-lineTo, 2-quadraticCurveTo, 3-bezierCurveTo, 4-closePath, 5-7 unused). Bit 4 + * indicates whether position values use 12 bits (2 characters) or 18 bits (3 characters), with a one indicating the + * latter. Bits 5 and 6 are currently unused. + * + * Following the header is a series of 0 (closePath), 2 (moveTo, lineTo), 4 (quadraticCurveTo), or 6 (bezierCurveTo) + * parameters. These parameters are alternating x/y positions represented by 2 or 3 characters (as indicated by the + * 4th bit in the command char). These characters consist of a 1 bit sign (1 is negative, 0 is positive), followed + * by an 11 (2 char) or 17 (3 char) bit integer value. All position values are in tenths of a pixel. Except in the + * case of move operations which are absolute, this value is a delta from the previous x or y position (as + * appropriate). + * + * For example, the string "A3cAAMAu4AAA" represents a line starting at -150,0 and ending at 150,0. + *
A - bits 000000. First 3 bits (000) indicate a moveTo operation. 4th bit (0) indicates 2 chars per + * parameter. + *
n0 - 110111011100. Absolute x position of -150.0px. First bit indicates a negative value, remaining bits + * indicate 1500 tenths of a pixel. + *
AA - 000000000000. Absolute y position of 0. + *
I - 001100. First 3 bits (001) indicate a lineTo operation. 4th bit (1) indicates 3 chars per parameter. + *
Au4 - 000000101110111000. An x delta of 300.0px, which is added to the previous x value of -150.0px to + * provide an absolute position of +150.0px. + *
AAA - 000000000000000000. A y delta value of 0. + * + * A tiny API method "p" also exists. + * @method decodePath + * @param {String} str The path string to decode. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.decodePath = function(str) { + var instructions = [this.moveTo, this.lineTo, this.quadraticCurveTo, this.bezierCurveTo, this.closePath]; + var paramCount = [2, 2, 4, 6, 0]; + var i=0, l=str.length; + var params = []; + var x=0, y=0; + var base64 = Graphics.BASE_64; + + while (i>3; // highest order bits 1-3 code for operation. + var f = instructions[fi]; + // check that we have a valid instruction & that the unused bits are empty: + if (!f || (n&3)) { throw("bad path data (@"+i+"): "+c); } + var pl = paramCount[fi]; + if (!fi) { x=y=0; } // move operations reset the position. + params.length = 0; + i++; + var charCount = (n>>2&1)+2; // 4th header bit indicates number size for this operation. + for (var p=0; p>5) ? -1 : 1; + num = ((num&31)<<6)|(base64[str.charAt(i+1)]); + if (charCount == 3) { num = (num<<6)|(base64[str.charAt(i+2)]); } + num = sign*num/10; + if (p%2) { x = (num += x); } + else { y = (num += y); } + params[p] = num; + i += charCount; + } + f.apply(this,params); + } + return this; + }; + + /** + * Stores all graphics commands so they won't be executed in future draws. Calling store() a second time adds to + * the existing store. This also affects `drawAsPath()`. + * + * This is useful in cases where you are creating vector graphics in an iterative manner (ex. generative art), so + * that only new graphics need to be drawn (which can provide huge performance benefits), but you wish to retain all + * of the vector instructions for later use (ex. scaling, modifying, or exporting). + * + * Note that calling store() will force the active path (if any) to be ended in a manner similar to changing + * the fill or stroke. + * + * For example, consider a application where the user draws lines with the mouse. As each line segment (or collection of + * segments) are added to a Shape, it can be rasterized using {{#crossLink "DisplayObject/updateCache"}}{{/crossLink}}, + * and then stored, so that it can be redrawn at a different scale when the application is resized, or exported to SVG. + * + * // set up cache: + * myShape.cache(0,0,500,500,scale); + * + * // when the user drags, draw a new line: + * myShape.graphics.moveTo(oldX,oldY).lineTo(newX,newY); + * // then draw it into the existing cache: + * myShape.updateCache("source-over"); + * // store the new line, so it isn't redrawn next time: + * myShape.store(); + * + * // then, when the window resizes, we can re-render at a different scale: + * // first, unstore all our lines: + * myShape.unstore(); + * // then cache using the new scale: + * myShape.cache(0,0,500,500,newScale); + * // finally, store the existing commands again: + * myShape.store(); + * + * @method store + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.store = function() { + this._updateInstructions(true); + this._storeIndex = this._instructions.length; + return this; + }; + + /** + * Unstores any graphics commands that were previously stored using {{#crossLink "Graphics/store"}}{{/crossLink}} + * so that they will be executed in subsequent draw calls. + * + * @method unstore + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.unstore = function() { + this._storeIndex = 0; + return this; + }; + + /** + * Returns a clone of this Graphics instance. Note that the individual command objects are not cloned. + * @method clone + * @return {Graphics} A clone of the current Graphics instance. + **/ + p.clone = function() { + var o = new Graphics(); + o.command = this.command; + o._stroke = this._stroke; + o._strokeStyle = this._strokeStyle; + o._strokeDash = this._strokeDash; + o._strokeIgnoreScale = this._strokeIgnoreScale; + o._fill = this._fill; + o._instructions = this._instructions.slice(); + o._commitIndex = this._commitIndex; + o._activeInstructions = this._activeInstructions.slice(); + o._dirty = this._dirty; + o._storeIndex = this._storeIndex; + return o; + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[Graphics]"; + }; + + +// tiny API: + /** + * Shortcut to moveTo. + * @method mt + * @param {Number} x The x coordinate the drawing point should move to. + * @param {Number} y The y coordinate the drawing point should move to. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls). + * @chainable + * @protected + **/ + p.mt = p.moveTo; + + /** + * Shortcut to lineTo. + * @method lt + * @param {Number} x The x coordinate the drawing point should draw to. + * @param {Number} y The y coordinate the drawing point should draw to. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.lt = p.lineTo; + + /** + * Shortcut to arcTo. + * @method at + * @param {Number} x1 + * @param {Number} y1 + * @param {Number} x2 + * @param {Number} y2 + * @param {Number} radius + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.at = p.arcTo; + + /** + * Shortcut to bezierCurveTo. + * @method bt + * @param {Number} cp1x + * @param {Number} cp1y + * @param {Number} cp2x + * @param {Number} cp2y + * @param {Number} x + * @param {Number} y + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.bt = p.bezierCurveTo; + + /** + * Shortcut to quadraticCurveTo / curveTo. + * @method qt + * @param {Number} cpx + * @param {Number} cpy + * @param {Number} x + * @param {Number} y + * @protected + * @chainable + **/ + p.qt = p.quadraticCurveTo; + + /** + * Shortcut to arc. + * @method a + * @param {Number} x + * @param {Number} y + * @param {Number} radius + * @param {Number} startAngle Measured in radians. + * @param {Number} endAngle Measured in radians. + * @param {Boolean} anticlockwise + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @protected + * @chainable + **/ + p.a = p.arc; + + /** + * Shortcut to rect. + * @method r + * @param {Number} x + * @param {Number} y + * @param {Number} w Width of the rectangle + * @param {Number} h Height of the rectangle + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.r = p.rect; + + /** + * Shortcut to closePath. + * @method cp + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.cp = p.closePath; + + /** + * Shortcut to clear. + * @method c + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.c = p.clear; + + /** + * Shortcut to beginFill. + * @method f + * @param {String} color A CSS compatible color value (ex. "red", "#FF0000", or "rgba(255,0,0,0.5)"). Setting to + * null will result in no fill. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.f = p.beginFill; + + /** + * Shortcut to beginLinearGradientFill. + * @method lf + * @param {Array} colors An array of CSS compatible color values. For example, ["#F00","#00F"] would define a gradient + * drawing from red to blue. + * @param {Array} ratios An array of gradient positions which correspond to the colors. For example, [0.1, 0.9] would draw + * the first color to 10% then interpolating to the second color at 90%. + * @param {Number} x0 The position of the first point defining the line that defines the gradient direction and size. + * @param {Number} y0 The position of the first point defining the line that defines the gradient direction and size. + * @param {Number} x1 The position of the second point defining the line that defines the gradient direction and size. + * @param {Number} y1 The position of the second point defining the line that defines the gradient direction and size. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.lf = p.beginLinearGradientFill; + + /** + * Shortcut to beginRadialGradientFill. + * @method rf + * @param {Array} colors An array of CSS compatible color values. For example, ["#F00","#00F"] would define + * a gradient drawing from red to blue. + * @param {Array} ratios An array of gradient positions which correspond to the colors. For example, [0.1, + * 0.9] would draw the first color to 10% then interpolating to the second color at 90%. + * @param {Number} x0 Center position of the inner circle that defines the gradient. + * @param {Number} y0 Center position of the inner circle that defines the gradient. + * @param {Number} r0 Radius of the inner circle that defines the gradient. + * @param {Number} x1 Center position of the outer circle that defines the gradient. + * @param {Number} y1 Center position of the outer circle that defines the gradient. + * @param {Number} r1 Radius of the outer circle that defines the gradient. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.rf = p.beginRadialGradientFill; + + /** + * Shortcut to beginBitmapFill. + * @method bf + * @param {HTMLImageElement | HTMLCanvasElement | HTMLVideoElement} image The Image, Canvas, or Video object to use + * as the pattern. + * @param {String} repetition Optional. Indicates whether to repeat the image in the fill area. One of "repeat", + * "repeat-x", "repeat-y", or "no-repeat". Defaults to "repeat". Note that Firefox does not support "repeat-x" or + * "repeat-y" (latest tests were in FF 20.0), and will default to "repeat". + * @param {Matrix2D} matrix Optional. Specifies a transformation matrix for the bitmap fill. This transformation + * will be applied relative to the parent transform. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.bf = p.beginBitmapFill; + + /** + * Shortcut to endFill. + * @method ef + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.ef = p.endFill; + + /** + * Shortcut to setStrokeStyle. + * @method ss + * @param {Number} thickness The width of the stroke. + * @param {String | Number} [caps=0] Indicates the type of caps to use at the end of lines. One of butt, + * round, or square. Defaults to "butt". Also accepts the values 0 (butt), 1 (round), and 2 (square) for use with + * the tiny API. + * @param {String | Number} [joints=0] Specifies the type of joints that should be used where two lines meet. + * One of bevel, round, or miter. Defaults to "miter". Also accepts the values 0 (miter), 1 (round), and 2 (bevel) + * for use with the tiny API. + * @param {Number} [miterLimit=10] If joints is set to "miter", then you can specify a miter limit ratio which + * controls at what point a mitered joint will be clipped. + * @param {Boolean} [ignoreScale=false] If true, the stroke will be drawn at the specified thickness regardless + * of active transformations. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.ss = p.setStrokeStyle; + + /** + * Shortcut to setStrokeDash. + * @method sd + * @param {Array} [segments] An array specifying the dash pattern, alternating between line and gap. + * For example, [20,10] would create a pattern of 20 pixel lines with 10 pixel gaps between them. + * Passing null or an empty array will clear any existing dash. + * @param {Number} [offset=0] The offset of the dash pattern. For example, you could increment this value to create a "marching ants" effect. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.sd = p.setStrokeDash; + + /** + * Shortcut to beginStroke. + * @method s + * @param {String} color A CSS compatible color value (ex. "#FF0000", "red", or "rgba(255,0,0,0.5)"). Setting to + * null will result in no stroke. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.s = p.beginStroke; + + /** + * Shortcut to beginLinearGradientStroke. + * @method ls + * @param {Array} colors An array of CSS compatible color values. For example, ["#F00","#00F"] would define + * a gradient drawing from red to blue. + * @param {Array} ratios An array of gradient positions which correspond to the colors. For example, [0.1, + * 0.9] would draw the first color to 10% then interpolating to the second color at 90%. + * @param {Number} x0 The position of the first point defining the line that defines the gradient direction and size. + * @param {Number} y0 The position of the first point defining the line that defines the gradient direction and size. + * @param {Number} x1 The position of the second point defining the line that defines the gradient direction and size. + * @param {Number} y1 The position of the second point defining the line that defines the gradient direction and size. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.ls = p.beginLinearGradientStroke; + + /** + * Shortcut to beginRadialGradientStroke. + * @method rs + * @param {Array} colors An array of CSS compatible color values. For example, ["#F00","#00F"] would define + * a gradient drawing from red to blue. + * @param {Array} ratios An array of gradient positions which correspond to the colors. For example, [0.1, + * 0.9] would draw the first color to 10% then interpolating to the second color at 90%, then draw the second color + * to 100%. + * @param {Number} x0 Center position of the inner circle that defines the gradient. + * @param {Number} y0 Center position of the inner circle that defines the gradient. + * @param {Number} r0 Radius of the inner circle that defines the gradient. + * @param {Number} x1 Center position of the outer circle that defines the gradient. + * @param {Number} y1 Center position of the outer circle that defines the gradient. + * @param {Number} r1 Radius of the outer circle that defines the gradient. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.rs = p.beginRadialGradientStroke; + + /** + * Shortcut to beginBitmapStroke. + * @method bs + * @param {HTMLImageElement | HTMLCanvasElement | HTMLVideoElement} image The Image, Canvas, or Video object to use + * as the pattern. + * @param {String} [repetition=repeat] Optional. Indicates whether to repeat the image in the fill area. One of + * "repeat", "repeat-x", "repeat-y", or "no-repeat". Defaults to "repeat". + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.bs = p.beginBitmapStroke; + + /** + * Shortcut to endStroke. + * @method es + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.es = p.endStroke; + + /** + * Shortcut to drawRect. + * @method dr + * @param {Number} x + * @param {Number} y + * @param {Number} w Width of the rectangle + * @param {Number} h Height of the rectangle + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.dr = p.drawRect; + + /** + * Shortcut to drawRoundRect. + * @method rr + * @param {Number} x + * @param {Number} y + * @param {Number} w + * @param {Number} h + * @param {Number} radius Corner radius. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.rr = p.drawRoundRect; + + /** + * Shortcut to drawRoundRectComplex. + * @method rc + * @param {Number} x The horizontal coordinate to draw the round rect. + * @param {Number} y The vertical coordinate to draw the round rect. + * @param {Number} w The width of the round rect. + * @param {Number} h The height of the round rect. + * @param {Number} radiusTL Top left corner radius. + * @param {Number} radiusTR Top right corner radius. + * @param {Number} radiusBR Bottom right corner radius. + * @param {Number} radiusBL Bottom left corner radius. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.rc = p.drawRoundRectComplex; + + /** + * Shortcut to drawCircle. + * @method dc + * @param {Number} x x coordinate center point of circle. + * @param {Number} y y coordinate center point of circle. + * @param {Number} radius Radius of circle. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.dc = p.drawCircle; + + /** + * Shortcut to drawEllipse. + * @method de + * @param {Number} x The left coordinate point of the ellipse. Note that this is different from {{#crossLink "Graphics/drawCircle"}}{{/crossLink}} + * which draws from center. + * @param {Number} y The top coordinate point of the ellipse. Note that this is different from {{#crossLink "Graphics/drawCircle"}}{{/crossLink}} + * which draws from the center. + * @param {Number} w The height (horizontal diameter) of the ellipse. The horizontal radius will be half of this + * number. + * @param {Number} h The width (vertical diameter) of the ellipse. The vertical radius will be half of this number. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.de = p.drawEllipse; + + /** + * Shortcut to drawPolyStar. + * @method dp + * @param {Number} x Position of the center of the shape. + * @param {Number} y Position of the center of the shape. + * @param {Number} radius The outer radius of the shape. + * @param {Number} sides The number of points on the star or sides on the polygon. + * @param {Number} pointSize The depth or "pointy-ness" of the star points. A pointSize of 0 will draw a regular + * polygon (no points), a pointSize of 1 will draw nothing because the points are infinitely pointy. + * @param {Number} angle The angle of the first point / corner. For example a value of 0 will draw the first point + * directly to the right of the center. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.dp = p.drawPolyStar; + + /** + * Shortcut to decodePath. + * @method p + * @param {String} str The path string to decode. + * @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.) + * @chainable + * @protected + **/ + p.p = p.decodePath; + + +// private methods: + /** + * @method _updateInstructions + * @param commit + * @protected + **/ + p._updateInstructions = function(commit) { + var instr = this._instructions, active = this._activeInstructions, commitIndex = this._commitIndex; + + if (this._dirty && active.length) { + instr.length = commitIndex; // remove old, uncommitted commands + instr.push(Graphics.beginCmd); + + var l = active.length, ll = instr.length; + instr.length = ll+l; + for (var i=0; i= 2) { + var o = this.style = Graphics._ctx.createPattern(image, repetition || ""); + o.props = {image: image, repetition: repetition, type: "bitmap"}; + } + return this; + }; + p.path = false; + + /** + * Graphics command object. See {{#crossLink "Graphics/beginStroke"}}{{/crossLink}} and {{#crossLink "Graphics/append"}}{{/crossLink}} for more information. + * @class Stroke + * @constructor + * @param {Object} style A valid Context2D fillStyle. + * @param {Boolean} ignoreScale + **/ + /** + * A valid Context2D strokeStyle. + * @property style + * @type Object + */ + /** + * @property ignoreScale + * @type Boolean + */ + /** + * Execute the Graphics command in the provided Canvas context. + * @method exec + * @param {CanvasRenderingContext2D} ctx The canvas rendering context + */ + p = (G.Stroke = function(style, ignoreScale) { + this.style = style; + this.ignoreScale = ignoreScale; + }).prototype; + p.exec = function(ctx) { + if (!this.style) { return; } + ctx.strokeStyle = this.style; + if (this.ignoreScale) { ctx.save(); ctx.setTransform(1,0,0,1,0,0); } + ctx.stroke(); + if (this.ignoreScale) { ctx.restore(); } + }; + /** + * Creates a linear gradient style and assigns it to {{#crossLink "Stroke/style:property"}}{{/crossLink}}. + * See {{#crossLink "Graphics/beginLinearGradientStroke"}}{{/crossLink}} for more information. + * @method linearGradient + * @param {Array} colors + * @param {Array} ratios + * @param {Number} x0 + * @param {Number} y0 + * @param {Number} x1 + * @param {Number} y1 + * @return {Fill} Returns this Stroke object for chaining or assignment. + */ + p.linearGradient = G.Fill.prototype.linearGradient; + /** + * Creates a radial gradient style and assigns it to {{#crossLink "Stroke/style:property"}}{{/crossLink}}. + * See {{#crossLink "Graphics/beginRadialGradientStroke"}}{{/crossLink}} for more information. + * @method radialGradient + * @param {Array} colors + * @param {Array} ratios + * @param {Number} x0 + * @param {Number} y0 + * @param {Number} r0 + * @param {Number} x1 + * @param {Number} y1 + * @param {Number} r1 + * @return {Fill} Returns this Stroke object for chaining or assignment. + */ + p.radialGradient = G.Fill.prototype.radialGradient; + /** + * Creates a bitmap fill style and assigns it to {{#crossLink "Stroke/style:property"}}{{/crossLink}}. + * See {{#crossLink "Graphics/beginBitmapStroke"}}{{/crossLink}} for more information. + * @method bitmap + * @param {HTMLImageElement} image + * @param {String} [repetition] One of: repeat, repeat-x, repeat-y, or no-repeat. + * @return {Fill} Returns this Stroke object for chaining or assignment. + */ + p.bitmap = G.Fill.prototype.bitmap; + p.path = false; + + /** + * Graphics command object. See {{#crossLink "Graphics/setStrokeStyle"}}{{/crossLink}} and {{#crossLink "Graphics/append"}}{{/crossLink}} for more information. + * @class StrokeStyle + * @constructor + * @param {Number} width + * @param {String} [caps=butt] + * @param {String} [joints=miter] + * @param {Number} [miterLimit=10] + * @param {Boolean} [ignoreScale=false] + **/ + /** + * @property width + * @type Number + */ + /** + * One of: butt, round, square + * @property caps + * @type String + */ + /** + * One of: round, bevel, miter + * @property joints + * @type String + */ + /** + * @property miterLimit + * @type Number + */ + /** + * Execute the Graphics command in the provided Canvas context. + * @method exec + * @param {CanvasRenderingContext2D} ctx The canvas rendering context + */ + p = (G.StrokeStyle = function(width, caps, joints, miterLimit, ignoreScale) { + this.width = width; + this.caps = caps; + this.joints = joints; + this.miterLimit = miterLimit; + this.ignoreScale = ignoreScale; + }).prototype; + p.exec = function(ctx) { + ctx.lineWidth = (this.width == null ? "1" : this.width); + ctx.lineCap = (this.caps == null ? "butt" : (isNaN(this.caps) ? this.caps : Graphics.STROKE_CAPS_MAP[this.caps])); + ctx.lineJoin = (this.joints == null ? "miter" : (isNaN(this.joints) ? this.joints : Graphics.STROKE_JOINTS_MAP[this.joints])); + ctx.miterLimit = (this.miterLimit == null ? "10" : this.miterLimit); + ctx.ignoreScale = (this.ignoreScale == null ? false : this.ignoreScale); + }; + p.path = false; + + /** + * Graphics command object. See {{#crossLink "Graphics/setStrokeDash"}}{{/crossLink}} and {{#crossLink "Graphics/append"}}{{/crossLink}} for more information. + * @class StrokeDash + * @constructor + * @param {Array} [segments] + * @param {Number} [offset=0] + **/ + /** + * @property segments + * @type Array + */ + /** + * @property offset + * @type Number + */ + /** + * Execute the Graphics command in the provided Canvas context. + * @method exec + * @param {CanvasRenderingContext2D} ctx The canvas rendering context + */ + (G.StrokeDash = function(segments, offset) { + this.segments = segments; + this.offset = offset||0; + }).prototype.exec = function(ctx) { + if (ctx.setLineDash) { // feature detection. + ctx.setLineDash(this.segments|| G.StrokeDash.EMPTY_SEGMENTS); // instead of [] to reduce churn. + ctx.lineDashOffset = this.offset||0; + } + }; + /** + * The default value for segments (ie. no dash). + * @property EMPTY_SEGMENTS + * @static + * @final + * @readonly + * @protected + * @type {Array} + **/ + G.StrokeDash.EMPTY_SEGMENTS = []; + + /** + * Graphics command object. See {{#crossLink "Graphics/drawRoundRectComplex"}}{{/crossLink}} and {{#crossLink "Graphics/append"}}{{/crossLink}} for more information. + * @class RoundRect + * @constructor + * @param {Number} x + * @param {Number} y + * @param {Number} w + * @param {Number} h + * @param {Number} radiusTL + * @param {Number} radiusTR + * @param {Number} radiusBR + * @param {Number} radiusBL + **/ + /** + * @property x + * @type Number + */ + /** + * @property y + * @type Number + */ + /** + * @property w + * @type Number + */ + /** + * @property h + * @type Number + */ + /** + * @property radiusTL + * @type Number + */ + /** + * @property radiusTR + * @type Number + */ + /** + * @property radiusBR + * @type Number + */ + /** + * @property radiusBL + * @type Number + */ + /** + * Execute the Graphics command in the provided Canvas context. + * @method exec + * @param {CanvasRenderingContext2D} ctx The canvas rendering context + */ + (G.RoundRect = function(x, y, w, h, radiusTL, radiusTR, radiusBR, radiusBL) { + this.x = x; this.y = y; + this.w = w; this.h = h; + this.radiusTL = radiusTL; this.radiusTR = radiusTR; + this.radiusBR = radiusBR; this.radiusBL = radiusBL; + }).prototype.exec = function(ctx) { + var max = (w max) { rTL = max; } + if (rTR < 0) { rTR *= (mTR=-1); } + if (rTR > max) { rTR = max; } + if (rBR < 0) { rBR *= (mBR=-1); } + if (rBR > max) { rBR = max; } + if (rBL < 0) { rBL *= (mBL=-1); } + if (rBL > max) { rBL = max; } + + ctx.moveTo(x+w-rTR, y); + ctx.arcTo(x+w+rTR*mTR, y-rTR*mTR, x+w, y+rTR, rTR); + ctx.lineTo(x+w, y+h-rBR); + ctx.arcTo(x+w+rBR*mBR, y+h+rBR*mBR, x+w-rBR, y+h, rBR); + ctx.lineTo(x+rBL, y+h); + ctx.arcTo(x-rBL*mBL, y+h+rBL*mBL, x, y+h-rBL, rBL); + ctx.lineTo(x, y+rTL); + ctx.arcTo(x-rTL*mTL, y-rTL*mTL, x+rTL, y, rTL); + ctx.closePath(); + }; + + /** + * Graphics command object. See {{#crossLink "Graphics/drawCircle"}}{{/crossLink}} and {{#crossLink "Graphics/append"}}{{/crossLink}} for more information. + * @class Circle + * @constructor + * @param {Number} x + * @param {Number} y + * @param {Number} radius + **/ + /** + * @property x + * @type Number + */ + /** + * @property y + * @type Number + */ + /** + * @property radius + * @type Number + */ + /** + * Execute the Graphics command in the provided Canvas context. + * @method exec + * @param {CanvasRenderingContext2D} ctx The canvas rendering context + */ + (G.Circle = function(x, y, radius) { + this.x = x; this.y = y; + this.radius = radius; + }).prototype.exec = function(ctx) { ctx.arc(this.x, this.y, this.radius, 0, Math.PI*2); }; + + /** + * Graphics command object. See {{#crossLink "Graphics/drawEllipse"}}{{/crossLink}} and {{#crossLink "Graphics/append"}}{{/crossLink}} for more information. + * @class Ellipse + * @constructor + * @param {Number} x + * @param {Number} y + * @param {Number} w + * @param {Number} h + **/ + /** + * @property x + * @type Number + */ + /** + * @property y + * @type Number + */ + /** + * @property w + * @type Number + */ + /** + * @property h + * @type Number + */ + /** + * Execute the Graphics command in the provided Canvas context. + * @method exec + * @param {CanvasRenderingContext2D} ctx The canvas rendering context + */ + (G.Ellipse = function(x, y, w, h) { + this.x = x; this.y = y; + this.w = w; this.h = h; + }).prototype.exec = function(ctx) { + var x = this.x, y = this.y; + var w = this.w, h = this.h; + + var k = 0.5522848; + var ox = (w / 2) * k; + var oy = (h / 2) * k; + var xe = x + w; + var ye = y + h; + var xm = x + w / 2; + var ym = y + h / 2; + + ctx.moveTo(x, ym); + ctx.bezierCurveTo(x, ym-oy, xm-ox, y, xm, y); + ctx.bezierCurveTo(xm+ox, y, xe, ym-oy, xe, ym); + ctx.bezierCurveTo(xe, ym+oy, xm+ox, ye, xm, ye); + ctx.bezierCurveTo(xm-ox, ye, x, ym+oy, x, ym); + }; + + /** + * Graphics command object. See {{#crossLink "Graphics/drawPolyStar"}}{{/crossLink}} and {{#crossLink "Graphics/append"}}{{/crossLink}} for more information. + * @class PolyStar + * @constructor + * @param {Number} x + * @param {Number} y + * @param {Number} radius + * @param {Number} sides + * @param {Number} pointSize + * @param {Number} angle + **/ + /** + * @property x + * @type Number + */ + /** + * @property y + * @type Number + */ + /** + * @property radius + * @type Number + */ + /** + * @property sides + * @type Number + */ + /** + * @property pointSize + * @type Number + */ + /** + * @property angle + * @type Number + */ + /** + * Execute the Graphics command in the provided Canvas context. + * @method exec + * @param {CanvasRenderingContext2D} ctx The canvas rendering context + */ + (G.PolyStar = function(x, y, radius, sides, pointSize, angle) { + this.x = x; this.y = y; + this.radius = radius; + this.sides = sides; + this.pointSize = pointSize; + this.angle = angle; + }).prototype.exec = function(ctx) { + var x = this.x, y = this.y; + var radius = this.radius; + var angle = (this.angle||0)/180*Math.PI; + var sides = this.sides; + var ps = 1-(this.pointSize||0); + var a = Math.PI/sides; + + ctx.moveTo(x+Math.cos(angle)*radius, y+Math.sin(angle)*radius); + for (var i=0; iNote: In EaselJS 0.7.0, the mouseEnabled property will not work properly with nested Containers. Please + * check out the latest NEXT version in GitHub for an updated version with this issue resolved. The fix will be + * provided in the next release of EaselJS. + * @property mouseEnabled + * @type {Boolean} + * @default true + **/ + this.mouseEnabled = true; + + /** + * If false, the tick will not run on this display object (or its children). This can provide some performance benefits. + * In addition to preventing the "tick" event from being dispatched, it will also prevent tick related updates + * on some display objects (ex. Sprite & MovieClip frame advancing, DOMElement visibility handling). + * @property tickEnabled + * @type Boolean + * @default true + **/ + this.tickEnabled = true; + + /** + * An optional name for this display object. Included in {{#crossLink "DisplayObject/toString"}}{{/crossLink}} . Useful for + * debugging. + * @property name + * @type {String} + * @default null + **/ + this.name = null; + + /** + * A reference to the {{#crossLink "Container"}}{{/crossLink}} or {{#crossLink "Stage"}}{{/crossLink}} object that + * contains this display object, or null if it has not been added + * to one. + * @property parent + * @final + * @type {Container} + * @default null + * @readonly + **/ + this.parent = null; + + /** + * The left offset for this display object's registration point. For example, to make a 100x100px Bitmap rotate + * around its center, you would set regX and {{#crossLink "DisplayObject/regY:property"}}{{/crossLink}} to 50. + * @property regX + * @type {Number} + * @default 0 + **/ + this.regX = 0; + + /** + * The y offset for this display object's registration point. For example, to make a 100x100px Bitmap rotate around + * its center, you would set {{#crossLink "DisplayObject/regX:property"}}{{/crossLink}} and regY to 50. + * @property regY + * @type {Number} + * @default 0 + **/ + this.regY = 0; + + /** + * The rotation in degrees for this display object. + * @property rotation + * @type {Number} + * @default 0 + **/ + this.rotation = 0; + + /** + * The factor to stretch this display object horizontally. For example, setting scaleX to 2 will stretch the display + * object to twice its nominal width. To horizontally flip an object, set the scale to a negative number. + * @property scaleX + * @type {Number} + * @default 1 + **/ + this.scaleX = 1; + + /** + * The factor to stretch this display object vertically. For example, setting scaleY to 0.5 will stretch the display + * object to half its nominal height. To vertically flip an object, set the scale to a negative number. + * @property scaleY + * @type {Number} + * @default 1 + **/ + this.scaleY = 1; + + /** + * The factor to skew this display object horizontally. + * @property skewX + * @type {Number} + * @default 0 + **/ + this.skewX = 0; + + /** + * The factor to skew this display object vertically. + * @property skewY + * @type {Number} + * @default 0 + **/ + this.skewY = 0; + + /** + * A shadow object that defines the shadow to render on this display object. Set to `null` to remove a shadow. If + * null, this property is inherited from the parent container. + * @property shadow + * @type {Shadow} + * @default null + **/ + this.shadow = null; + + /** + * Indicates whether this display object should be rendered to the canvas and included when running the Stage + * {{#crossLink "Stage/getObjectsUnderPoint"}}{{/crossLink}} method. + * @property visible + * @type {Boolean} + * @default true + **/ + this.visible = true; + + /** + * The x (horizontal) position of the display object, relative to its parent. + * @property x + * @type {Number} + * @default 0 + **/ + this.x = 0; + + /** The y (vertical) position of the display object, relative to its parent. + * @property y + * @type {Number} + * @default 0 + **/ + this.y = 0; + + /** + * If set, defines the transformation for this display object, overriding all other transformation properties + * (x, y, rotation, scale, skew). + * @property transformMatrix + * @type {Matrix2D} + * @default null + **/ + this.transformMatrix = null; + + /** + * The composite operation indicates how the pixels of this display object will be composited with the elements + * behind it. If `null`, this property is inherited from the parent container. For more information, read the + * + * whatwg spec on compositing. + * @property compositeOperation + * @type {String} + * @default null + **/ + this.compositeOperation = null; + + /** + * Indicates whether the display object should be drawn to a whole pixel when + * {{#crossLink "Stage/snapToPixelEnabled"}}{{/crossLink}} is true. To enable/disable snapping on whole + * categories of display objects, set this value on the prototype (Ex. Text.prototype.snapToPixel = true). + * @property snapToPixel + * @type {Boolean} + * @default true + **/ + this.snapToPixel = true; + + /** + * An array of Filter objects to apply to this display object. Filters are only applied / updated when {{#crossLink "cache"}}{{/crossLink}} + * or {{#crossLink "updateCache"}}{{/crossLink}} is called on the display object, and only apply to the area that is + * cached. + * @property filters + * @type {Array} + * @default null + **/ + this.filters = null; + + /** + * A Shape instance that defines a vector mask (clipping path) for this display object. The shape's transformation + * will be applied relative to the display object's parent coordinates (as if it were a child of the parent). + * @property mask + * @type {Shape} + * @default null + */ + this.mask = null; + + /** + * A display object that will be tested when checking mouse interactions or testing {{#crossLink "Container/getObjectsUnderPoint"}}{{/crossLink}}. + * The hit area will have its transformation applied relative to this display object's coordinate space (as though + * the hit test object were a child of this display object and relative to its regX/Y). The hitArea will be tested + * using only its own `alpha` value regardless of the alpha value on the target display object, or the target's + * ancestors (parents). + * + * If set on a {{#crossLink "Container"}}{{/crossLink}}, children of the Container will not receive mouse events. + * This is similar to setting {{#crossLink "mouseChildren"}}{{/crossLink}} to false. + * + * Note that hitArea is NOT currently used by the `hitTest()` method, nor is it supported for {{#crossLink "Stage"}}{{/crossLink}}. + * @property hitArea + * @type {DisplayObject} + * @default null + */ + this.hitArea = null; + + /** + * A CSS cursor (ex. "pointer", "help", "text", etc) that will be displayed when the user hovers over this display + * object. You must enable mouseover events using the {{#crossLink "Stage/enableMouseOver"}}{{/crossLink}} method to + * use this property. Setting a non-null cursor on a Container will override the cursor set on its descendants. + * @property cursor + * @type {String} + * @default null + */ + this.cursor = null; + + + // private properties: + /** + * @property _cacheOffsetX + * @protected + * @type {Number} + * @default 0 + **/ + this._cacheOffsetX = 0; + + /** + * @property _cacheOffsetY + * @protected + * @type {Number} + * @default 0 + **/ + this._cacheOffsetY = 0; + + /** + * @property _filterOffsetX + * @protected + * @type {Number} + * @default 0 + **/ + this._filterOffsetX = 0; + + /** + * @property _filterOffsetY + * @protected + * @type {Number} + * @default 0 + **/ + this._filterOffsetY = 0; + + /** + * @property _cacheScale + * @protected + * @type {Number} + * @default 1 + **/ + this._cacheScale = 1; + + /** + * @property _cacheDataURLID + * @protected + * @type {Number} + * @default 0 + */ + this._cacheDataURLID = 0; + + /** + * @property _cacheDataURL + * @protected + * @type {String} + * @default null + */ + this._cacheDataURL = null; + + /** + * @property _props + * @protected + * @type {DisplayObject} + * @default null + **/ + this._props = new createjs.DisplayProps(); + + /** + * @property _rectangle + * @protected + * @type {Rectangle} + * @default null + **/ + this._rectangle = new createjs.Rectangle(); + + /** + * @property _bounds + * @protected + * @type {Rectangle} + * @default null + **/ + this._bounds = null; + } + var p = createjs.extend(DisplayObject, createjs.EventDispatcher); + + // TODO: deprecated + // p.initialize = function() {}; // searchable for devs wondering where it is. REMOVED. See docs for details. + +// static properties: + /** + * Listing of mouse event names. Used in _hasMouseEventListener. + * @property _MOUSE_EVENTS + * @protected + * @static + * @type {Array} + **/ + DisplayObject._MOUSE_EVENTS = ["click","dblclick","mousedown","mouseout","mouseover","pressmove","pressup","rollout","rollover"]; + + /** + * Suppresses errors generated when using features like hitTest, mouse events, and {{#crossLink "getObjectsUnderPoint"}}{{/crossLink}} + * with cross domain content. + * @property suppressCrossDomainErrors + * @static + * @type {Boolean} + * @default false + **/ + DisplayObject.suppressCrossDomainErrors = false; + + /** + * @property _snapToPixelEnabled + * @protected + * @static + * @type {Boolean} + * @default false + **/ + DisplayObject._snapToPixelEnabled = false; // stage.snapToPixelEnabled is temporarily copied here during a draw to provide global access. + + /** + * @property _hitTestCanvas + * @type {HTMLCanvasElement | Object} + * @static + * @protected + **/ + /** + * @property _hitTestContext + * @type {CanvasRenderingContext2D} + * @static + * @protected + **/ + var canvas = createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"); // prevent errors on load in browsers without canvas. + if (canvas.getContext) { + DisplayObject._hitTestCanvas = canvas; + DisplayObject._hitTestContext = canvas.getContext("2d"); + canvas.width = canvas.height = 1; + } + + /** + * @property _nextCacheID + * @type {Number} + * @static + * @protected + **/ + DisplayObject._nextCacheID = 1; + + +// events: + /** + * Dispatched when the user presses their left mouse button over the display object. See the + * {{#crossLink "MouseEvent"}}{{/crossLink}} class for a listing of event properties. + * @event mousedown + * @since 0.6.0 + */ + + /** + * Dispatched when the user presses their left mouse button and then releases it while over the display object. + * See the {{#crossLink "MouseEvent"}}{{/crossLink}} class for a listing of event properties. + * @event click + * @since 0.6.0 + */ + + /** + * Dispatched when the user double clicks their left mouse button over this display object. + * See the {{#crossLink "MouseEvent"}}{{/crossLink}} class for a listing of event properties. + * @event dblclick + * @since 0.6.0 + */ + + /** + * Dispatched when the user's mouse enters this display object. This event must be enabled using + * {{#crossLink "Stage/enableMouseOver"}}{{/crossLink}}. See also {{#crossLink "DisplayObject/rollover:event"}}{{/crossLink}}. + * See the {{#crossLink "MouseEvent"}}{{/crossLink}} class for a listing of event properties. + * @event mouseover + * @since 0.6.0 + */ + + /** + * Dispatched when the user's mouse leaves this display object. This event must be enabled using + * {{#crossLink "Stage/enableMouseOver"}}{{/crossLink}}. See also {{#crossLink "DisplayObject/rollout:event"}}{{/crossLink}}. + * See the {{#crossLink "MouseEvent"}}{{/crossLink}} class for a listing of event properties. + * @event mouseout + * @since 0.6.0 + */ + + /** + * This event is similar to {{#crossLink "DisplayObject/mouseover:event"}}{{/crossLink}}, with the following + * differences: it does not bubble, and it considers {{#crossLink "Container"}}{{/crossLink}} instances as an + * aggregate of their content. + * + * For example, myContainer contains two overlapping children: shapeA and shapeB. The user moves their mouse over + * shapeA and then directly on to shapeB. With a listener for {{#crossLink "mouseover:event"}}{{/crossLink}} on + * myContainer, two events would be received, each targeting a child element:
    + *
  1. when the mouse enters shapeA (target=shapeA)
  2. + *
  3. when the mouse enters shapeB (target=shapeB)
  4. + *
+ * However, with a listener for "rollover" instead, only a single event is received when the mouse first enters + * the aggregate myContainer content (target=myContainer). + * + * This event must be enabled using {{#crossLink "Stage/enableMouseOver"}}{{/crossLink}}. + * See the {{#crossLink "MouseEvent"}}{{/crossLink}} class for a listing of event properties. + * @event rollover + * @since 0.7.0 + */ + + /** + * This event is similar to {{#crossLink "DisplayObject/mouseout:event"}}{{/crossLink}}, with the following + * differences: it does not bubble, and it considers {{#crossLink "Container"}}{{/crossLink}} instances as an + * aggregate of their content. + * + * For example, myContainer contains two overlapping children: shapeA and shapeB. The user moves their mouse over + * shapeA, then directly on to shapeB, then off both. With a listener for {{#crossLink "mouseout:event"}}{{/crossLink}} + * on myContainer, two events would be received, each targeting a child element:
    + *
  1. when the mouse leaves shapeA (target=shapeA)
  2. + *
  3. when the mouse leaves shapeB (target=shapeB)
  4. + *
+ * However, with a listener for "rollout" instead, only a single event is received when the mouse leaves + * the aggregate myContainer content (target=myContainer). + * + * This event must be enabled using {{#crossLink "Stage/enableMouseOver"}}{{/crossLink}}. + * See the {{#crossLink "MouseEvent"}}{{/crossLink}} class for a listing of event properties. + * @event rollout + * @since 0.7.0 + */ + + /** + * After a {{#crossLink "DisplayObject/mousedown:event"}}{{/crossLink}} occurs on a display object, a pressmove + * event will be generated on that object whenever the mouse moves until the mouse press is released. This can be + * useful for dragging and similar operations. + * @event pressmove + * @since 0.7.0 + */ + + /** + * After a {{#crossLink "DisplayObject/mousedown:event"}}{{/crossLink}} occurs on a display object, a pressup event + * will be generated on that object when that mouse press is released. This can be useful for dragging and similar + * operations. + * @event pressup + * @since 0.7.0 + */ + + /** + * Dispatched when the display object is added to a parent container. + * @event added + */ + + /** + * Dispatched when the display object is removed from its parent container. + * @event removed + */ + + /** + * Dispatched on each display object on a stage whenever the stage updates. This occurs immediately before the + * rendering (draw) pass. When {{#crossLink "Stage/update"}}{{/crossLink}} is called, first all display objects on + * the stage dispatch the tick event, then all of the display objects are drawn to stage. Children will have their + * {{#crossLink "tick:event"}}{{/crossLink}} event dispatched in order of their depth prior to the event being + * dispatched on their parent. + * @event tick + * @param {Object} target The object that dispatched the event. + * @param {String} type The event type. + * @param {Array} params An array containing any arguments that were passed to the Stage.update() method. For + * example if you called stage.update("hello"), then the params would be ["hello"]. + * @since 0.6.0 + */ + + +// getter / setters: + /** + * Use the {{#crossLink "DisplayObject/stage:property"}}{{/crossLink}} property instead. + * @method getStage + * @return {Stage} + * @deprecated + **/ + p.getStage = function() { + // uses dynamic access to avoid circular dependencies; + var o = this, _Stage = createjs["Stage"]; + while (o.parent) { o = o.parent; } + if (o instanceof _Stage) { return o; } + return null; + }; + + /** + * Returns the Stage instance that this display object will be rendered on, or null if it has not been added to one. + * @property stage + * @type {Stage} + * @readonly + **/ + try { + Object.defineProperties(p, { + stage: { get: p.getStage } + }); + } catch (e) {} + + +// public methods: + /** + * Returns true or false indicating whether the display object would be visible if drawn to a canvas. + * This does not account for whether it would be visible within the boundaries of the stage. + * + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method isVisible + * @return {Boolean} Boolean indicating whether the display object would be visible if drawn to a canvas + **/ + p.isVisible = function() { + return !!(this.visible && this.alpha > 0 && this.scaleX != 0 && this.scaleY != 0); + }; + + /** + * Draws the display object into the specified context ignoring its visible, alpha, shadow, and transform. + * Returns true if the draw was handled (useful for overriding functionality). + * + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method draw + * @param {CanvasRenderingContext2D} ctx The canvas 2D context object to draw into. + * @param {Boolean} [ignoreCache=false] Indicates whether the draw operation should ignore any current cache. For example, + * used for drawing the cache (to prevent it from simply drawing an existing cache back into itself). + * @return {Boolean} + **/ + p.draw = function(ctx, ignoreCache) { + var cacheCanvas = this.cacheCanvas; + if (ignoreCache || !cacheCanvas) { return false; } + var scale = this._cacheScale; + ctx.drawImage(cacheCanvas, this._cacheOffsetX+this._filterOffsetX, this._cacheOffsetY+this._filterOffsetY, cacheCanvas.width/scale, cacheCanvas.height/scale); + return true; + }; + + /** + * Applies this display object's transformation, alpha, globalCompositeOperation, clipping path (mask), and shadow + * to the specified context. This is typically called prior to {{#crossLink "DisplayObject/draw"}}{{/crossLink}}. + * @method updateContext + * @param {CanvasRenderingContext2D} ctx The canvas 2D to update. + **/ + p.updateContext = function(ctx) { + var o=this, mask=o.mask, mtx= o._props.matrix; + + if (mask && mask.graphics && !mask.graphics.isEmpty()) { + mask.getMatrix(mtx); + ctx.transform(mtx.a, mtx.b, mtx.c, mtx.d, mtx.tx, mtx.ty); + + mask.graphics.drawAsPath(ctx); + ctx.clip(); + + mtx.invert(); + ctx.transform(mtx.a, mtx.b, mtx.c, mtx.d, mtx.tx, mtx.ty); + } + + this.getMatrix(mtx); + var tx = mtx.tx, ty = mtx.ty; + if (DisplayObject._snapToPixelEnabled && o.snapToPixel) { + tx = tx + (tx < 0 ? -0.5 : 0.5) | 0; + ty = ty + (ty < 0 ? -0.5 : 0.5) | 0; + } + ctx.transform(mtx.a, mtx.b, mtx.c, mtx.d, tx, ty); + ctx.globalAlpha *= o.alpha; + if (o.compositeOperation) { ctx.globalCompositeOperation = o.compositeOperation; } + if (o.shadow) { this._applyShadow(ctx, o.shadow); } + }; + + /** + * Draws the display object into a new canvas, which is then used for subsequent draws. For complex content + * that does not change frequently (ex. a Container with many children that do not move, or a complex vector Shape), + * this can provide for much faster rendering because the content does not need to be re-rendered each tick. The + * cached display object can be moved, rotated, faded, etc freely, however if its content changes, you must + * manually update the cache by calling updateCache() or cache() again. You must specify + * the cache area via the x, y, w, and h parameters. This defines the rectangle that will be rendered and cached + * using this display object's coordinates. + * + *

Example

+ * For example if you defined a Shape that drew a circle at 0, 0 with a radius of 25: + * + * var shape = new createjs.Shape(); + * shape.graphics.beginFill("#ff0000").drawCircle(0, 0, 25); + * myShape.cache(-25, -25, 50, 50); + * + * Note that filters need to be defined before the cache is applied. Check out the {{#crossLink "Filter"}}{{/crossLink}} + * class for more information. Some filters (ex. BlurFilter) will not work as expected in conjunction with the scale param. + * + * Usually, the resulting cacheCanvas will have the dimensions width*scale by height*scale, however some filters (ex. BlurFilter) + * will add padding to the canvas dimensions. + * + * @method cache + * @param {Number} x The x coordinate origin for the cache region. + * @param {Number} y The y coordinate origin for the cache region. + * @param {Number} width The width of the cache region. + * @param {Number} height The height of the cache region. + * @param {Number} [scale=1] The scale at which the cache will be created. For example, if you cache a vector shape using + * myShape.cache(0,0,100,100,2) then the resulting cacheCanvas will be 200x200 px. This lets you scale and rotate + * cached elements with greater fidelity. Default is 1. + **/ + p.cache = function(x, y, width, height, scale) { + // draw to canvas. + scale = scale||1; + if (!this.cacheCanvas) { this.cacheCanvas = createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"); } + this._cacheWidth = width; + this._cacheHeight = height; + this._cacheOffsetX = x; + this._cacheOffsetY = y; + this._cacheScale = scale; + this.updateCache(); + }; + + /** + * Redraws the display object to its cache. Calling updateCache without an active cache will throw an error. + * If compositeOperation is null the current cache will be cleared prior to drawing. Otherwise the display object + * will be drawn over the existing cache using the specified compositeOperation. + * + *

Example

+ * Clear the current graphics of a cached shape, draw some new instructions, and then update the cache. The new line + * will be drawn on top of the old one. + * + * // Not shown: Creating the shape, and caching it. + * shapeInstance.clear(); + * shapeInstance.setStrokeStyle(3).beginStroke("#ff0000").moveTo(100, 100).lineTo(200,200); + * shapeInstance.updateCache(); + * + * @method updateCache + * @param {String} compositeOperation The compositeOperation to use, or null to clear the cache and redraw it. + * + * whatwg spec on compositing. + **/ + p.updateCache = function(compositeOperation) { + var cacheCanvas = this.cacheCanvas; + if (!cacheCanvas) { throw "cache() must be called before updateCache()"; } + var scale = this._cacheScale, offX = this._cacheOffsetX*scale, offY = this._cacheOffsetY*scale; + var w = this._cacheWidth, h = this._cacheHeight, ctx = cacheCanvas.getContext("2d"); + + var fBounds = this._getFilterBounds(); + offX += (this._filterOffsetX = fBounds.x); + offY += (this._filterOffsetY = fBounds.y); + + w = Math.ceil(w*scale) + fBounds.width; + h = Math.ceil(h*scale) + fBounds.height; + if (w != cacheCanvas.width || h != cacheCanvas.height) { + // TODO: it would be nice to preserve the content if there is a compositeOperation. + cacheCanvas.width = w; + cacheCanvas.height = h; + } else if (!compositeOperation) { + ctx.clearRect(0, 0, w+1, h+1); + } + + ctx.save(); + ctx.globalCompositeOperation = compositeOperation; + ctx.setTransform(scale, 0, 0, scale, -offX, -offY); + this.draw(ctx, true); + // TODO: filters and cache scale don't play well together at present. + this._applyFilters(); + ctx.restore(); + this.cacheID = DisplayObject._nextCacheID++; + }; + + /** + * Clears the current cache. See {{#crossLink "DisplayObject/cache"}}{{/crossLink}} for more information. + * @method uncache + **/ + p.uncache = function() { + this._cacheDataURL = this.cacheCanvas = null; + this.cacheID = this._cacheOffsetX = this._cacheOffsetY = this._filterOffsetX = this._filterOffsetY = 0; + this._cacheScale = 1; + }; + + /** + * Returns a data URL for the cache, or null if this display object is not cached. + * Uses cacheID to ensure a new data URL is not generated if the cache has not changed. + * @method getCacheDataURL + * @return {String} The image data url for the cache. + **/ + p.getCacheDataURL = function() { + if (!this.cacheCanvas) { return null; } + if (this.cacheID != this._cacheDataURLID) { this._cacheDataURL = this.cacheCanvas.toDataURL(); } + return this._cacheDataURL; + }; + + /** + * Transforms the specified x and y position from the coordinate space of the display object + * to the global (stage) coordinate space. For example, this could be used to position an HTML label + * over a specific point on a nested display object. Returns a Point instance with x and y properties + * correlating to the transformed coordinates on the stage. + * + *

Example

+ * + * displayObject.x = 300; + * displayObject.y = 200; + * stage.addChild(displayObject); + * var point = displayObject.localToGlobal(100, 100); + * // Results in x=400, y=300 + * + * @method localToGlobal + * @param {Number} x The x position in the source display object to transform. + * @param {Number} y The y position in the source display object to transform. + * @param {Point | Object} [pt] An object to copy the result into. If omitted a new Point object with x/y properties will be returned. + * @return {Point} A Point instance with x and y properties correlating to the transformed coordinates + * on the stage. + **/ + p.localToGlobal = function(x, y, pt) { + return this.getConcatenatedMatrix(this._props.matrix).transformPoint(x,y, pt||new createjs.Point()); + }; + + /** + * Transforms the specified x and y position from the global (stage) coordinate space to the + * coordinate space of the display object. For example, this could be used to determine + * the current mouse position within the display object. Returns a Point instance with x and y properties + * correlating to the transformed position in the display object's coordinate space. + * + *

Example

+ * + * displayObject.x = 300; + * displayObject.y = 200; + * stage.addChild(displayObject); + * var point = displayObject.globalToLocal(100, 100); + * // Results in x=-200, y=-100 + * + * @method globalToLocal + * @param {Number} x The x position on the stage to transform. + * @param {Number} y The y position on the stage to transform. + * @param {Point | Object} [pt] An object to copy the result into. If omitted a new Point object with x/y properties will be returned. + * @return {Point} A Point instance with x and y properties correlating to the transformed position in the + * display object's coordinate space. + **/ + p.globalToLocal = function(x, y, pt) { + return this.getConcatenatedMatrix(this._props.matrix).invert().transformPoint(x,y, pt||new createjs.Point()); + }; + + /** + * Transforms the specified x and y position from the coordinate space of this display object to the coordinate + * space of the target display object. Returns a Point instance with x and y properties correlating to the + * transformed position in the target's coordinate space. Effectively the same as using the following code with + * {{#crossLink "DisplayObject/localToGlobal"}}{{/crossLink}} and {{#crossLink "DisplayObject/globalToLocal"}}{{/crossLink}}. + * + * var pt = this.localToGlobal(x, y); + * pt = target.globalToLocal(pt.x, pt.y); + * + * @method localToLocal + * @param {Number} x The x position in the source display object to transform. + * @param {Number} y The y position on the source display object to transform. + * @param {DisplayObject} target The target display object to which the coordinates will be transformed. + * @param {Point | Object} [pt] An object to copy the result into. If omitted a new Point object with x/y properties will be returned. + * @return {Point} Returns a Point instance with x and y properties correlating to the transformed position + * in the target's coordinate space. + **/ + p.localToLocal = function(x, y, target, pt) { + pt = this.localToGlobal(x, y, pt); + return target.globalToLocal(pt.x, pt.y, pt); + }; + + /** + * Shortcut method to quickly set the transform properties on the display object. All parameters are optional. + * Omitted parameters will have the default value set. + * + *

Example

+ * + * displayObject.setTransform(100, 100, 2, 2); + * + * @method setTransform + * @param {Number} [x=0] The horizontal translation (x position) in pixels + * @param {Number} [y=0] The vertical translation (y position) in pixels + * @param {Number} [scaleX=1] The horizontal scale, as a percentage of 1 + * @param {Number} [scaleY=1] the vertical scale, as a percentage of 1 + * @param {Number} [rotation=0] The rotation, in degrees + * @param {Number} [skewX=0] The horizontal skew factor + * @param {Number} [skewY=0] The vertical skew factor + * @param {Number} [regX=0] The horizontal registration point in pixels + * @param {Number} [regY=0] The vertical registration point in pixels + * @return {DisplayObject} Returns this instance. Useful for chaining commands. + * @chainable + */ + p.setTransform = function(x, y, scaleX, scaleY, rotation, skewX, skewY, regX, regY) { + this.x = x || 0; + this.y = y || 0; + this.scaleX = scaleX == null ? 1 : scaleX; + this.scaleY = scaleY == null ? 1 : scaleY; + this.rotation = rotation || 0; + this.skewX = skewX || 0; + this.skewY = skewY || 0; + this.regX = regX || 0; + this.regY = regY || 0; + return this; + }; + + /** + * Returns a matrix based on this object's current transform. + * @method getMatrix + * @param {Matrix2D} matrix Optional. A Matrix2D object to populate with the calculated values. If null, a new + * Matrix object is returned. + * @return {Matrix2D} A matrix representing this display object's transform. + **/ + p.getMatrix = function(matrix) { + var o = this, mtx = matrix&&matrix.identity() || new createjs.Matrix2D(); + return o.transformMatrix ? mtx.copy(o.transformMatrix) : mtx.appendTransform(o.x, o.y, o.scaleX, o.scaleY, o.rotation, o.skewX, o.skewY, o.regX, o.regY); + }; + + /** + * Generates a Matrix2D object representing the combined transform of the display object and all of its + * parent Containers up to the highest level ancestor (usually the {{#crossLink "Stage"}}{{/crossLink}}). This can + * be used to transform positions between coordinate spaces, such as with {{#crossLink "DisplayObject/localToGlobal"}}{{/crossLink}} + * and {{#crossLink "DisplayObject/globalToLocal"}}{{/crossLink}}. + * @method getConcatenatedMatrix + * @param {Matrix2D} [matrix] A {{#crossLink "Matrix2D"}}{{/crossLink}} object to populate with the calculated values. + * If null, a new Matrix2D object is returned. + * @return {Matrix2D} The combined matrix. + **/ + p.getConcatenatedMatrix = function(matrix) { + var o = this, mtx = this.getMatrix(matrix); + while (o = o.parent) { + mtx.prependMatrix(o.getMatrix(o._props.matrix)); + } + return mtx; + }; + + /** + * Generates a DisplayProps object representing the combined display properties of the object and all of its + * parent Containers up to the highest level ancestor (usually the {{#crossLink "Stage"}}{{/crossLink}}). + * @method getConcatenatedDisplayProps + * @param {DisplayProps} [props] A {{#crossLink "DisplayProps"}}{{/crossLink}} object to populate with the calculated values. + * If null, a new DisplayProps object is returned. + * @return {DisplayProps} The combined display properties. + **/ + p.getConcatenatedDisplayProps = function(props) { + props = props ? props.identity() : new createjs.DisplayProps(); + var o = this, mtx = o.getMatrix(props.matrix); + do { + props.prepend(o.visible, o.alpha, o.shadow, o.compositeOperation); + + // we do this to avoid problems with the matrix being used for both operations when o._props.matrix is passed in as the props param. + // this could be simplified (ie. just done as part of the prepend above) if we switched to using a pool. + if (o != this) { mtx.prependMatrix(o.getMatrix(o._props.matrix)); } + } while (o = o.parent); + return props; + }; + + /** + * Tests whether the display object intersects the specified point in local coordinates (ie. draws a pixel + * with alpha > 0 at the specified position). This ignores the alpha, shadow, hitArea, mask, and compositeOperation + * of the display object. + * + *

Example

+ * + * var myShape = new createjs.Shape(); + * myShape.graphics.beginFill("red").drawRect(100, 100, 20, 50); + * + * console.log(myShape.hitTest(10,10); // false + * console.log(myShape.hitTest(110, 25); // true + * + * Note that to use Stage coordinates (such as {{#crossLink "Stage/mouseX:property"}}{{/crossLink}}), they must + * first be converted to local coordinates: + * + * stage.addEventListener("stagemousedown", handleMouseDown); + * function handleMouseDown(event) { + * var p = myShape.globalToLocal(stage.mouseX, stage.mouseY); + * var hit = myShape.hitTest(p.x, p.y); + * } + * + * Shape-to-shape collision is not currently supported by EaselJS. + * + * @method hitTest + * @param {Number} x The x position to check in the display object's local coordinates. + * @param {Number} y The y position to check in the display object's local coordinates. + * @return {Boolean} A Boolean indicating whether a visible portion of the DisplayObject intersect the specified + * local Point. + */ + p.hitTest = function(x, y) { + var ctx = DisplayObject._hitTestContext; + ctx.setTransform(1, 0, 0, 1, -x, -y); + this.draw(ctx); + + var hit = this._testHit(ctx); + ctx.setTransform(1, 0, 0, 1, 0, 0); + ctx.clearRect(0, 0, 2, 2); + return hit; + }; + + /** + * Provides a chainable shortcut method for setting a number of properties on the instance. + * + *

Example

+ * + * var myGraphics = new createjs.Graphics().beginFill("#ff0000").drawCircle(0, 0, 25); + * var shape = stage.addChild(new createjs.Shape()).set({graphics:myGraphics, x:100, y:100, alpha:0.5}); + * + * @method set + * @param {Object} props A generic object containing properties to copy to the DisplayObject instance. + * @return {DisplayObject} Returns the instance the method is called on (useful for chaining calls.) + * @chainable + */ + p.set = function(props) { + for (var n in props) { this[n] = props[n]; } + return this; + }; + + /** + * Returns a rectangle representing this object's bounds in its local coordinate system (ie. with no transformation). + * Objects that have been cached will return the bounds of the cache. + * + * Not all display objects can calculate their own bounds (ex. Shape). For these objects, you can use + * {{#crossLink "DisplayObject/setBounds"}}{{/crossLink}} so that they are included when calculating Container + * bounds. + * + * + * + * + * + * + * + * + * + *
All + * All display objects support setting bounds manually using setBounds(). Likewise, display objects that + * have been cached using cache() will return the bounds of their cache. Manual and cache bounds will override + * the automatic calculations listed below. + *
Bitmap + * Returns the width and height of the sourceRect (if specified) or image, extending from (x=0,y=0). + *
Sprite + * Returns the bounds of the current frame. May have non-zero x/y if a frame registration point was specified + * in the spritesheet data. See also {{#crossLink "SpriteSheet/getFrameBounds"}}{{/crossLink}} + *
Container + * Returns the aggregate (combined) bounds of all children that return a non-null value from getBounds(). + *
Shape + * Does not currently support automatic bounds calculations. Use setBounds() to manually define bounds. + *
Text + * Returns approximate bounds. Horizontal values (x/width) are quite accurate, but vertical values (y/height) are + * not, especially when using textBaseline values other than "top". + *
BitmapText + * Returns approximate bounds. Values will be more accurate if spritesheet frame registration points are close + * to (x=0,y=0). + *
+ * + * Bounds can be expensive to calculate for some objects (ex. text, or containers with many children), and + * are recalculated each time you call getBounds(). You can prevent recalculation on static objects by setting the + * bounds explicitly: + * + * var bounds = obj.getBounds(); + * obj.setBounds(bounds.x, bounds.y, bounds.width, bounds.height); + * // getBounds will now use the set values, instead of recalculating + * + * To reduce memory impact, the returned Rectangle instance may be reused internally; clone the instance or copy its + * values if you need to retain it. + * + * var myBounds = obj.getBounds().clone(); + * // OR: + * myRect.copy(obj.getBounds()); + * + * @method getBounds + * @return {Rectangle} A Rectangle instance representing the bounds, or null if bounds are not available for this + * object. + **/ + p.getBounds = function() { + if (this._bounds) { return this._rectangle.copy(this._bounds); } + var cacheCanvas = this.cacheCanvas; + if (cacheCanvas) { + var scale = this._cacheScale; + return this._rectangle.setValues(this._cacheOffsetX, this._cacheOffsetY, cacheCanvas.width/scale, cacheCanvas.height/scale); + } + return null; + }; + + /** + * Returns a rectangle representing this object's bounds in its parent's coordinate system (ie. with transformations applied). + * Objects that have been cached will return the transformed bounds of the cache. + * + * Not all display objects can calculate their own bounds (ex. Shape). For these objects, you can use + * {{#crossLink "DisplayObject/setBounds"}}{{/crossLink}} so that they are included when calculating Container + * bounds. + * + * To reduce memory impact, the returned Rectangle instance may be reused internally; clone the instance or copy its + * values if you need to retain it. + * + * Container instances calculate aggregate bounds for all children that return bounds via getBounds. + * @method getTransformedBounds + * @return {Rectangle} A Rectangle instance representing the bounds, or null if bounds are not available for this object. + **/ + p.getTransformedBounds = function() { + return this._getBounds(); + }; + + /** + * Allows you to manually specify the bounds of an object that either cannot calculate their own bounds (ex. Shape & + * Text) for future reference, or so the object can be included in Container bounds. Manually set bounds will always + * override calculated bounds. + * + * The bounds should be specified in the object's local (untransformed) coordinates. For example, a Shape instance + * with a 25px radius circle centered at 0,0 would have bounds of (-25, -25, 50, 50). + * @method setBounds + * @param {Number} x The x origin of the bounds. Pass null to remove the manual bounds. + * @param {Number} y The y origin of the bounds. + * @param {Number} width The width of the bounds. + * @param {Number} height The height of the bounds. + **/ + p.setBounds = function(x, y, width, height) { + if (x == null) { this._bounds = x; } + this._bounds = (this._bounds || new createjs.Rectangle()).setValues(x, y, width, height); + }; + + /** + * Returns a clone of this DisplayObject. Some properties that are specific to this instance's current context are + * reverted to their defaults (for example .parent). Caches are not maintained across clones, and some elements + * are copied by reference (masks, individual filter instances, hit area) + * @method clone + * @return {DisplayObject} A clone of the current DisplayObject instance. + **/ + p.clone = function() { + return this._cloneProps(new DisplayObject()); + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[DisplayObject (name="+ this.name +")]"; + }; + + +// private methods: + // separated so it can be used more easily in subclasses: + /** + * @method _cloneProps + * @param {DisplayObject} o The DisplayObject instance which will have properties from the current DisplayObject + * instance copied into. + * @return {DisplayObject} o + * @protected + **/ + p._cloneProps = function(o) { + o.alpha = this.alpha; + o.mouseEnabled = this.mouseEnabled; + o.tickEnabled = this.tickEnabled; + o.name = this.name; + o.regX = this.regX; + o.regY = this.regY; + o.rotation = this.rotation; + o.scaleX = this.scaleX; + o.scaleY = this.scaleY; + o.shadow = this.shadow; + o.skewX = this.skewX; + o.skewY = this.skewY; + o.visible = this.visible; + o.x = this.x; + o.y = this.y; + o.compositeOperation = this.compositeOperation; + o.snapToPixel = this.snapToPixel; + o.filters = this.filters==null?null:this.filters.slice(0); + o.mask = this.mask; + o.hitArea = this.hitArea; + o.cursor = this.cursor; + o._bounds = this._bounds; + return o; + }; + + /** + * @method _applyShadow + * @protected + * @param {CanvasRenderingContext2D} ctx + * @param {Shadow} shadow + **/ + p._applyShadow = function(ctx, shadow) { + shadow = shadow || Shadow.identity; + ctx.shadowColor = shadow.color; + ctx.shadowOffsetX = shadow.offsetX; + ctx.shadowOffsetY = shadow.offsetY; + ctx.shadowBlur = shadow.blur; + }; + + + /** + * @method _tick + * @param {Object} evtObj An event object that will be dispatched to all tick listeners. This object is reused between dispatchers to reduce construction & GC costs. + * @protected + **/ + p._tick = function(evtObj) { + // because tick can be really performance sensitive, check for listeners before calling dispatchEvent. + var ls = this._listeners; + if (ls && ls["tick"]) { + // reset & reuse the event object to avoid construction / GC costs: + evtObj.target = null; + evtObj.propagationStopped = evtObj.immediatePropagationStopped = false; + this.dispatchEvent(evtObj); + } + }; + + /** + * @method _testHit + * @protected + * @param {CanvasRenderingContext2D} ctx + * @return {Boolean} + **/ + p._testHit = function(ctx) { + try { + var hit = ctx.getImageData(0, 0, 1, 1).data[3] > 1; + } catch (e) { + if (!DisplayObject.suppressCrossDomainErrors) { + throw "An error has occurred. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images."; + } + } + return hit; + }; + + /** + * @method _applyFilters + * @protected + **/ + p._applyFilters = function() { + if (!this.filters || this.filters.length == 0 || !this.cacheCanvas) { return; } + var l = this.filters.length; + var ctx = this.cacheCanvas.getContext("2d"); + var w = this.cacheCanvas.width; + var h = this.cacheCanvas.height; + for (var i=0; i maxX) { maxX = x; } + if ((x = x_a + y_c + tx) < minX) { minX = x; } else if (x > maxX) { maxX = x; } + if ((x = y_c + tx) < minX) { minX = x; } else if (x > maxX) { maxX = x; } + + if ((y = x_b + ty) < minY) { minY = y; } else if (y > maxY) { maxY = y; } + if ((y = x_b + y_d + ty) < minY) { minY = y; } else if (y > maxY) { maxY = y; } + if ((y = y_d + ty) < minY) { minY = y; } else if (y > maxY) { maxY = y; } + + return bounds.setValues(minX, minY, maxX-minX, maxY-minY); + }; + + /** + * Indicates whether the display object has any mouse event listeners or a cursor. + * @method _isMouseOpaque + * @return {Boolean} + * @protected + **/ + p._hasMouseEventListener = function() { + var evts = DisplayObject._MOUSE_EVENTS; + for (var i= 0, l=evts.length; itransform and alpha properties concatenated with their parent + * Container. + * + * For example, a {{#crossLink "Shape"}}{{/crossLink}} with x=100 and alpha=0.5, placed in a Container with x=50 + * and alpha=0.7 will be rendered to the canvas at x=150 and alpha=0.35. + * Containers have some overhead, so you generally shouldn't create a Container to hold a single child. + * + *

Example

+ * + * var container = new createjs.Container(); + * container.addChild(bitmapInstance, shapeInstance); + * container.x = 100; + * + * @class Container + * @extends DisplayObject + * @constructor + **/ + function Container() { + this.DisplayObject_constructor(); + + // public properties: + /** + * The array of children in the display list. You should usually use the child management methods such as + * {{#crossLink "Container/addChild"}}{{/crossLink}}, {{#crossLink "Container/removeChild"}}{{/crossLink}}, + * {{#crossLink "Container/swapChildren"}}{{/crossLink}}, etc, rather than accessing this directly, but it is + * included for advanced uses. + * @property children + * @type Array + * @default null + **/ + this.children = []; + + /** + * Indicates whether the children of this container are independently enabled for mouse/pointer interaction. + * If false, the children will be aggregated under the container - for example, a click on a child shape would + * trigger a click event on the container. + * @property mouseChildren + * @type Boolean + * @default true + **/ + this.mouseChildren = true; + + /** + * If false, the tick will not be propagated to children of this Container. This can provide some performance benefits. + * In addition to preventing the "tick" event from being dispatched, it will also prevent tick related updates + * on some display objects (ex. Sprite & MovieClip frame advancing, DOMElement visibility handling). + * @property tickChildren + * @type Boolean + * @default true + **/ + this.tickChildren = true; + } + var p = createjs.extend(Container, createjs.DisplayObject); + + +// getter / setters: + /** + * Use the {{#crossLink "Container/numChildren:property"}}{{/crossLink}} property instead. + * @method getNumChildren + * @return {Number} + * @deprecated + **/ + p.getNumChildren = function() { + return this.children.length; + }; + + /** + * Returns the number of children in the container. + * @property numChildren + * @type {Number} + * @readonly + **/ + try { + Object.defineProperties(p, { + numChildren: { get: p.getNumChildren } + }); + } catch (e) {} + + +// public methods: + /** + * Constructor alias for backwards compatibility. This method will be removed in future versions. + * Subclasses should be updated to use {{#crossLink "Utility Methods/extends"}}{{/crossLink}}. + * @method initialize + * @deprecated in favour of `createjs.promote()` + **/ + p.initialize = Container; // TODO: deprecated. + + /** + * Returns true or false indicating whether the display object would be visible if drawn to a canvas. + * This does not account for whether it would be visible within the boundaries of the stage. + * + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method isVisible + * @return {Boolean} Boolean indicating whether the display object would be visible if drawn to a canvas + **/ + p.isVisible = function() { + var hasContent = this.cacheCanvas || this.children.length; + return !!(this.visible && this.alpha > 0 && this.scaleX != 0 && this.scaleY != 0 && hasContent); + }; + + /** + * Draws the display object into the specified context ignoring its visible, alpha, shadow, and transform. + * Returns true if the draw was handled (useful for overriding functionality). + * + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method draw + * @param {CanvasRenderingContext2D} ctx The canvas 2D context object to draw into. + * @param {Boolean} [ignoreCache=false] Indicates whether the draw operation should ignore any current cache. + * For example, used for drawing the cache (to prevent it from simply drawing an existing cache back + * into itself). + **/ + p.draw = function(ctx, ignoreCache) { + if (this.DisplayObject_draw(ctx, ignoreCache)) { return true; } + + // this ensures we don't have issues with display list changes that occur during a draw: + var list = this.children.slice(); + for (var i=0,l=list.length; iExample + * + * container.addChild(bitmapInstance); + * + * You can also add multiple children at once: + * + * container.addChild(bitmapInstance, shapeInstance, textInstance); + * + * @method addChild + * @param {DisplayObject} child The display object to add. + * @return {DisplayObject} The child that was added, or the last child if multiple children were added. + **/ + p.addChild = function(child) { + if (child == null) { return child; } + var l = arguments.length; + if (l > 1) { + for (var i=0; iExample + * + * addChildAt(child1, index); + * + * You can also add multiple children, such as: + * + * addChildAt(child1, child2, ..., index); + * + * The index must be between 0 and numChildren. For example, to add myShape under otherShape in the display list, + * you could use: + * + * container.addChildAt(myShape, container.getChildIndex(otherShape)); + * + * This would also bump otherShape's index up by one. Fails silently if the index is out of range. + * + * @method addChildAt + * @param {DisplayObject} child The display object to add. + * @param {Number} index The index to add the child at. + * @return {DisplayObject} Returns the last child that was added, or the last child if multiple children were added. + **/ + p.addChildAt = function(child, index) { + var l = arguments.length; + var indx = arguments[l-1]; // can't use the same name as the index param or it replaces arguments[1] + if (indx < 0 || indx > this.children.length) { return arguments[l-2]; } + if (l > 2) { + for (var i=0; iExample + * + * container.removeChild(child); + * + * You can also remove multiple children: + * + * removeChild(child1, child2, ...); + * + * Returns true if the child (or children) was removed, or false if it was not in the display list. + * @method removeChild + * @param {DisplayObject} child The child to remove. + * @return {Boolean} true if the child (or children) was removed, or false if it was not in the display list. + **/ + p.removeChild = function(child) { + var l = arguments.length; + if (l > 1) { + var good = true; + for (var i=0; iExample + * + * container.removeChildAt(2); + * + * You can also remove multiple children: + * + * container.removeChild(2, 7, ...) + * + * Returns true if the child (or children) was removed, or false if any index was out of range. + * @method removeChildAt + * @param {Number} index The index of the child to remove. + * @return {Boolean} true if the child (or children) was removed, or false if any index was out of range. + **/ + p.removeChildAt = function(index) { + var l = arguments.length; + if (l > 1) { + var a = []; + for (var i=0; i this.children.length-1) { return false; } + var child = this.children[index]; + if (child) { child.parent = null; } + this.children.splice(index, 1); + child.dispatchEvent("removed"); + return true; + }; + + /** + * Removes all children from the display list. + * + *

Example

+ * + * container.removeAllChildren(); + * + * @method removeAllChildren + **/ + p.removeAllChildren = function() { + var kids = this.children; + while (kids.length) { this.removeChildAt(0); } + }; + + /** + * Returns the child at the specified index. + * + *

Example

+ * + * container.getChildAt(2); + * + * @method getChildAt + * @param {Number} index The index of the child to return. + * @return {DisplayObject} The child at the specified index. Returns null if there is no child at the index. + **/ + p.getChildAt = function(index) { + return this.children[index]; + }; + + /** + * Returns the child with the specified name. + * @method getChildByName + * @param {String} name The name of the child to return. + * @return {DisplayObject} The child with the specified name. + **/ + p.getChildByName = function(name) { + var kids = this.children; + for (var i=0,l=kids.length;iExample: Display children with a higher y in front. + * + * var sortFunction = function(obj1, obj2, options) { + * if (obj1.y > obj2.y) { return 1; } + * if (obj1.y < obj2.y) { return -1; } + * return 0; + * } + * container.sortChildren(sortFunction); + * + * @method sortChildren + * @param {Function} sortFunction the function to use to sort the child list. See JavaScript's Array.sort + * documentation for details. + **/ + p.sortChildren = function(sortFunction) { + this.children.sort(sortFunction); + }; + + /** + * Returns the index of the specified child in the display list, or -1 if it is not in the display list. + * + *

Example

+ * + * var index = container.getChildIndex(child); + * + * @method getChildIndex + * @param {DisplayObject} child The child to return the index of. + * @return {Number} The index of the specified child. -1 if the child is not found. + **/ + p.getChildIndex = function(child) { + return createjs.indexOf(this.children, child); + }; + + /** + * Swaps the children at the specified indexes. Fails silently if either index is out of range. + * @method swapChildrenAt + * @param {Number} index1 + * @param {Number} index2 + **/ + p.swapChildrenAt = function(index1, index2) { + var kids = this.children; + var o1 = kids[index1]; + var o2 = kids[index2]; + if (!o1 || !o2) { return; } + kids[index1] = o2; + kids[index2] = o1; + }; + + /** + * Swaps the specified children's depth in the display list. Fails silently if either child is not a child of this + * Container. + * @method swapChildren + * @param {DisplayObject} child1 + * @param {DisplayObject} child2 + **/ + p.swapChildren = function(child1, child2) { + var kids = this.children; + var index1,index2; + for (var i=0,l=kids.length;i= l) { return; } + for (var i=0;i 0 at the + * specified position). This ignores the alpha, shadow and compositeOperation of the display object, and all + * transform properties including regX/Y. + * @method hitTest + * @param {Number} x The x position to check in the display object's local coordinates. + * @param {Number} y The y position to check in the display object's local coordinates. + * @return {Boolean} A Boolean indicating whether there is a visible section of a DisplayObject that overlaps the specified + * coordinates. + **/ + p.hitTest = function(x, y) { + // TODO: optimize to use the fast cache check where possible. + return (this.getObjectUnderPoint(x, y) != null); + }; + + /** + * Returns an array of all display objects under the specified coordinates that are in this container's display + * list. This routine ignores any display objects with {{#crossLink "DisplayObject/mouseEnabled:property"}}{{/crossLink}} + * set to `false`. The array will be sorted in order of visual depth, with the top-most display object at index 0. + * This uses shape based hit detection, and can be an expensive operation to run, so it is best to use it carefully. + * For example, if testing for objects under the mouse, test on tick (instead of on {{#crossLink "DisplayObject/mousemove:event"}}{{/crossLink}}), + * and only if the mouse's position has changed. + * + *
    + *
  • By default (mode=0) this method evaluates all display objects.
  • + *
  • By setting the `mode` parameter to `1`, the {{#crossLink "DisplayObject/mouseEnabled:property"}}{{/crossLink}} + * and {{#crossLink "mouseChildren:property"}}{{/crossLink}} properties will be respected.
  • + *
  • Setting the `mode` to `2` additionally excludes display objects that do not have active mouse event + * listeners or a {{#crossLink "DisplayObject:cursor:property"}}{{/crossLink}} property. That is, only objects + * that would normally intercept mouse interaction will be included. This can significantly improve performance + * in some cases by reducing the number of display objects that need to be tested.
  • + * + * + * This method accounts for both {{#crossLink "DisplayObject/hitArea:property"}}{{/crossLink}} and {{#crossLink "DisplayObject/mask:property"}}{{/crossLink}}. + * @method getObjectsUnderPoint + * @param {Number} x The x position in the container to test. + * @param {Number} y The y position in the container to test. + * @param {Number} [mode=0] The mode to use to determine which display objects to include. 0-all, 1-respect mouseEnabled/mouseChildren, 2-only mouse opaque objects. + * @return {Array} An Array of DisplayObjects under the specified coordinates. + **/ + p.getObjectsUnderPoint = function(x, y, mode) { + var arr = []; + var pt = this.localToGlobal(x, y); + this._getObjectsUnderPoint(pt.x, pt.y, arr, mode>0, mode==1); + return arr; + }; + + /** + * Similar to {{#crossLink "Container/getObjectsUnderPoint"}}{{/crossLink}}, but returns only the top-most display + * object. This runs significantly faster than getObjectsUnderPoint(), but is still potentially an expensive + * operation. See {{#crossLink "Container/getObjectsUnderPoint"}}{{/crossLink}} for more information. + * @method getObjectUnderPoint + * @param {Number} x The x position in the container to test. + * @param {Number} y The y position in the container to test. + * @param {Number} mode The mode to use to determine which display objects to include. 0-all, 1-respect mouseEnabled/mouseChildren, 2-only mouse opaque objects. + * @return {DisplayObject} The top-most display object under the specified coordinates. + **/ + p.getObjectUnderPoint = function(x, y, mode) { + var pt = this.localToGlobal(x, y); + return this._getObjectsUnderPoint(pt.x, pt.y, null, mode>0, mode==1); + }; + + /** + * Docced in superclass. + */ + p.getBounds = function() { + return this._getBounds(null, true); + }; + + + /** + * Docced in superclass. + */ + p.getTransformedBounds = function() { + return this._getBounds(); + }; + + /** + * Returns a clone of this Container. Some properties that are specific to this instance's current context are + * reverted to their defaults (for example .parent). + * @method clone + * @param {Boolean} [recursive=false] If true, all of the descendants of this container will be cloned recursively. If false, the + * properties of the container will be cloned, but the new instance will not have any children. + * @return {Container} A clone of the current Container instance. + **/ + p.clone = function(recursive) { + var o = this._cloneProps(new Container()); + if (recursive) { this._cloneChildren(o); } + return o; + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[Container (name="+ this.name +")]"; + }; + + +// private methods: + /** + * @method _tick + * @param {Object} evtObj An event object that will be dispatched to all tick listeners. This object is reused between dispatchers to reduce construction & GC costs. + * @protected + **/ + p._tick = function(evtObj) { + if (this.tickChildren) { + for (var i=this.children.length-1; i>=0; i--) { + var child = this.children[i]; + if (child.tickEnabled && child._tick) { child._tick(evtObj); } + } + } + this.DisplayObject__tick(evtObj); + }; + + /** + * Recursively clones all children of this container, and adds them to the target container. + * @method cloneChildren + * @protected + * @param {Container} o The target container. + **/ + p._cloneChildren = function(o) { + if (o.children.length) { o.removeAllChildren(); } + var arr = o.children; + for (var i=0, l=this.children.length; i=0; i--) { + var child = children[i]; + var hitArea = child.hitArea; + if (!child.visible || (!hitArea && !child.isVisible()) || (mouse && !child.mouseEnabled)) { continue; } + if (!hitArea && !this._testMask(child, x, y)) { continue; } + + // if a child container has a hitArea then we only need to check its hitArea, so we can treat it as a normal DO: + if (!hitArea && child instanceof Container) { + var result = child._getObjectsUnderPoint(x, y, arr, mouse, activeListener, currentDepth+1); + if (!arr && result) { return (mouse && !this.mouseChildren) ? this : result; } + } else { + if (mouse && !activeListener && !child._hasMouseEventListener()) { continue; } + + // TODO: can we pass displayProps forward, to avoid having to calculate this backwards every time? It's kind of a mixed bag. When we're only hunting for DOs with event listeners, it may not make sense. + var props = child.getConcatenatedDisplayProps(child._props); + mtx = props.matrix; + + if (hitArea) { + mtx.appendMatrix(hitArea.getMatrix(hitArea._props.matrix)); + props.alpha = hitArea.alpha; + } + + ctx.globalAlpha = props.alpha; + ctx.setTransform(mtx.a, mtx.b, mtx.c, mtx.d, mtx.tx-x, mtx.ty-y); + (hitArea||child).draw(ctx); + if (!this._testHit(ctx)) { continue; } + ctx.setTransform(1, 0, 0, 1, 0, 0); + ctx.clearRect(0, 0, 2, 2); + if (arr) { arr.push(child); } + else { return (mouse && !this.mouseChildren) ? this : child; } + } + } + return null; + }; + + /** + * @method _testMask + * @param {DisplayObject} target + * @param {Number} x + * @param {Number} y + * @return {Boolean} Indicates whether the x/y is within the masked region. + * @protected + **/ + p._testMask = function(target, x, y) { + var mask = target.mask; + if (!mask || !mask.graphics || mask.graphics.isEmpty()) { return true; } + + var mtx = this._props.matrix, parent = target.parent; + mtx = parent ? parent.getConcatenatedMatrix(mtx) : mtx.identity(); + mtx = mask.getMatrix(mask._props.matrix).prependMatrix(mtx); + + var ctx = createjs.DisplayObject._hitTestContext; + ctx.setTransform(mtx.a, mtx.b, mtx.c, mtx.d, mtx.tx-x, mtx.ty-y); + + // draw the mask as a solid fill: + mask.graphics.drawAsPath(ctx); + ctx.fillStyle = "#000"; + ctx.fill(); + + if (!this._testHit(ctx)) { return false; } + ctx.setTransform(1, 0, 0, 1, 0, 0); + ctx.clearRect(0, 0, 2, 2); + + return true; + }; + + /** + * @method _getBounds + * @param {Matrix2D} matrix + * @param {Boolean} ignoreTransform If true, does not apply this object's transform. + * @return {Rectangle} + * @protected + **/ + p._getBounds = function(matrix, ignoreTransform) { + var bounds = this.DisplayObject_getBounds(); + if (bounds) { return this._transformBounds(bounds, matrix, ignoreTransform); } + + var mtx = this._props.matrix; + mtx = ignoreTransform ? mtx.identity() : this.getMatrix(mtx); + if (matrix) { mtx.prependMatrix(matrix); } + + var l = this.children.length, rect=null; + for (var i=0; iExample + * This example creates a stage, adds a child to it, then uses {{#crossLink "Ticker"}}{{/crossLink}} to update the child + * and redraw the stage using {{#crossLink "Stage/update"}}{{/crossLink}}. + * + * var stage = new createjs.Stage("canvasElementId"); + * var image = new createjs.Bitmap("imagePath.png"); + * stage.addChild(image); + * createjs.Ticker.addEventListener("tick", handleTick); + * function handleTick(event) { + * image.x += 10; + * stage.update(); + * } + * + * @class Stage + * @extends Container + * @constructor + * @param {HTMLCanvasElement | String | Object} canvas A canvas object that the Stage will render to, or the string id + * of a canvas object in the current document. + **/ + function Stage(canvas) { + this.Container_constructor(); + + + // public properties: + /** + * Indicates whether the stage should automatically clear the canvas before each render. You can set this to false + * to manually control clearing (for generative art, or when pointing multiple stages at the same canvas for + * example). + * + *

    Example

    + * + * var stage = new createjs.Stage("canvasId"); + * stage.autoClear = false; + * + * @property autoClear + * @type Boolean + * @default true + **/ + this.autoClear = true; + + /** + * The canvas the stage will render to. Multiple stages can share a single canvas, but you must disable autoClear for all but the + * first stage that will be ticked (or they will clear each other's render). + * + * When changing the canvas property you must disable the events on the old canvas, and enable events on the + * new canvas or mouse events will not work as expected. For example: + * + * myStage.enableDOMEvents(false); + * myStage.canvas = anotherCanvas; + * myStage.enableDOMEvents(true); + * + * @property canvas + * @type HTMLCanvasElement | Object + **/ + this.canvas = (typeof canvas == "string") ? document.getElementById(canvas) : canvas; + + /** + * The current mouse X position on the canvas. If the mouse leaves the canvas, this will indicate the most recent + * position over the canvas, and mouseInBounds will be set to false. + * @property mouseX + * @type Number + * @readonly + **/ + this.mouseX = 0; + + /** + * The current mouse Y position on the canvas. If the mouse leaves the canvas, this will indicate the most recent + * position over the canvas, and mouseInBounds will be set to false. + * @property mouseY + * @type Number + * @readonly + **/ + this.mouseY = 0; + + /** + * Specifies the area of the stage to affect when calling update. This can be use to selectively + * re-draw specific regions of the canvas. If null, the whole canvas area is drawn. + * @property drawRect + * @type {Rectangle} + */ + this.drawRect = null; + + /** + * Indicates whether display objects should be rendered on whole pixels. You can set the + * {{#crossLink "DisplayObject/snapToPixel"}}{{/crossLink}} property of + * display objects to false to enable/disable this behaviour on a per instance basis. + * @property snapToPixelEnabled + * @type Boolean + * @default false + **/ + this.snapToPixelEnabled = false; + + /** + * Indicates whether the mouse is currently within the bounds of the canvas. + * @property mouseInBounds + * @type Boolean + * @default false + **/ + this.mouseInBounds = false; + + /** + * If true, tick callbacks will be called on all display objects on the stage prior to rendering to the canvas. + * @property tickOnUpdate + * @type Boolean + * @default true + **/ + this.tickOnUpdate = true; + + /** + * If true, mouse move events will continue to be called when the mouse leaves the target canvas. See + * {{#crossLink "Stage/mouseInBounds:property"}}{{/crossLink}}, and {{#crossLink "MouseEvent"}}{{/crossLink}} + * x/y/rawX/rawY. + * @property mouseMoveOutside + * @type Boolean + * @default false + **/ + this.mouseMoveOutside = false; + + + /** + * Prevents selection of other elements in the html page if the user clicks and drags, or double clicks on the canvas. + * This works by calling `preventDefault()` on any mousedown events (or touch equivalent) originating on the canvas. + * @property preventSelection + * @type Boolean + * @default true + **/ + this.preventSelection = true; + + /** + * The hitArea property is not supported for Stage. + * @property hitArea + * @type {DisplayObject} + * @default null + */ + + + // private properties: + /** + * Holds objects with data for each active pointer id. Each object has the following properties: + * x, y, event, target, overTarget, overX, overY, inBounds, posEvtObj (native event that last updated position) + * @property _pointerData + * @type {Object} + * @private + */ + this._pointerData = {}; + + /** + * Number of active pointers. + * @property _pointerCount + * @type {Object} + * @private + */ + this._pointerCount = 0; + + /** + * The ID of the primary pointer. + * @property _primaryPointerID + * @type {Object} + * @private + */ + this._primaryPointerID = null; + + /** + * @property _mouseOverIntervalID + * @protected + * @type Number + **/ + this._mouseOverIntervalID = null; + + /** + * @property _nextStage + * @protected + * @type Stage + **/ + this._nextStage = null; + + /** + * @property _prevStage + * @protected + * @type Stage + **/ + this._prevStage = null; + + + // initialize: + this.enableDOMEvents(true); + } + var p = createjs.extend(Stage, createjs.Container); + + /** + * REMOVED. Removed in favor of using `MySuperClass_constructor`. + * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}} + * for details. + * + * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance. + * + * @method initialize + * @protected + * @deprecated + */ + // p.initialize = function() {}; // searchable for devs wondering where it is. + + +// events: + /** + * Dispatched when the user moves the mouse over the canvas. + * See the {{#crossLink "MouseEvent"}}{{/crossLink}} class for a listing of event properties. + * @event stagemousemove + * @since 0.6.0 + */ + + /** + * Dispatched when the user presses their left mouse button on the canvas. See the {{#crossLink "MouseEvent"}}{{/crossLink}} + * class for a listing of event properties. + * @event stagemousedown + * @since 0.6.0 + */ + + /** + * Dispatched when the user the user presses somewhere on the stage, then releases the mouse button anywhere that the page can detect it (this varies slightly between browsers). + * You can use {{#crossLink "Stage/mouseInBounds:property"}}{{/crossLink}} to check whether the mouse is currently within the stage bounds. + * See the {{#crossLink "MouseEvent"}}{{/crossLink}} class for a listing of event properties. + * @event stagemouseup + * @since 0.6.0 + */ + + /** + * Dispatched when the mouse moves from within the canvas area (mouseInBounds == true) to outside it (mouseInBounds == false). + * This is currently only dispatched for mouse input (not touch). See the {{#crossLink "MouseEvent"}}{{/crossLink}} + * class for a listing of event properties. + * @event mouseleave + * @since 0.7.0 + */ + + /** + * Dispatched when the mouse moves into the canvas area (mouseInBounds == false) from outside it (mouseInBounds == true). + * This is currently only dispatched for mouse input (not touch). See the {{#crossLink "MouseEvent"}}{{/crossLink}} + * class for a listing of event properties. + * @event mouseenter + * @since 0.7.0 + */ + + /** + * Dispatched each update immediately before the tick event is propagated through the display list. + * You can call preventDefault on the event object to cancel propagating the tick event. + * @event tickstart + * @since 0.7.0 + */ + + /** + * Dispatched each update immediately after the tick event is propagated through the display list. Does not fire if + * tickOnUpdate is false. Precedes the "drawstart" event. + * @event tickend + * @since 0.7.0 + */ + + /** + * Dispatched each update immediately before the canvas is cleared and the display list is drawn to it. + * You can call preventDefault on the event object to cancel the draw. + * @event drawstart + * @since 0.7.0 + */ + + /** + * Dispatched each update immediately after the display list is drawn to the canvas and the canvas context is restored. + * @event drawend + * @since 0.7.0 + */ + + +// getter / setters: + /** + * Specifies a target stage that will have mouse / touch interactions relayed to it after this stage handles them. + * This can be useful in cases where you have multiple layered canvases and want user interactions + * events to pass through. For example, this would relay mouse events from topStage to bottomStage: + * + * topStage.nextStage = bottomStage; + * + * To disable relaying, set nextStage to null. + * + * MouseOver, MouseOut, RollOver, and RollOut interactions are also passed through using the mouse over settings + * of the top-most stage, but are only processed if the target stage has mouse over interactions enabled. + * Considerations when using roll over in relay targets:
      + *
    1. The top-most (first) stage must have mouse over interactions enabled (via enableMouseOver)
    2. + *
    3. All stages that wish to participate in mouse over interaction must enable them via enableMouseOver
    4. + *
    5. All relay targets will share the frequency value of the top-most stage
    6. + *
    + * To illustrate, in this example the targetStage would process mouse over interactions at 10hz (despite passing + * 30 as it's desired frequency): + * topStage.nextStage = targetStage; + * topStage.enableMouseOver(10); + * targetStage.enableMouseOver(30); + * + * If the target stage's canvas is completely covered by this stage's canvas, you may also want to disable its + * DOM events using: + * + * targetStage.enableDOMEvents(false); + * + * @property nextStage + * @type {Stage} + **/ + p._get_nextStage = function() { + return this._nextStage; + }; + p._set_nextStage = function(value) { + if (this._nextStage) { this._nextStage._prevStage = null; } + if (value) { value._prevStage = this; } + this._nextStage = value; + }; + + try { + Object.defineProperties(p, { + nextStage: { get: p._get_nextStage, set: p._set_nextStage } + }); + } catch (e) {} // TODO: use Log + + +// public methods: + /** + * Each time the update method is called, the stage will call {{#crossLink "Stage/tick"}}{{/crossLink}} + * unless {{#crossLink "Stage/tickOnUpdate:property"}}{{/crossLink}} is set to false, + * and then render the display list to the canvas. + * + * @method update + * @param {Object} [props] Props object to pass to `tick()`. Should usually be a {{#crossLink "Ticker"}}{{/crossLink}} event object, or similar object with a delta property. + **/ + p.update = function(props) { + if (!this.canvas) { return; } + if (this.tickOnUpdate) { this.tick(props); } + if (this.dispatchEvent("drawstart", false, true) === false) { return; } + createjs.DisplayObject._snapToPixelEnabled = this.snapToPixelEnabled; + var r = this.drawRect, ctx = this.canvas.getContext("2d"); + ctx.setTransform(1, 0, 0, 1, 0, 0); + if (this.autoClear) { + if (r) { ctx.clearRect(r.x, r.y, r.width, r.height); } + else { ctx.clearRect(0, 0, this.canvas.width+1, this.canvas.height+1); } + } + ctx.save(); + if (this.drawRect) { + ctx.beginPath(); + ctx.rect(r.x, r.y, r.width, r.height); + ctx.clip(); + } + this.updateContext(ctx); + this.draw(ctx, false); + ctx.restore(); + this.dispatchEvent("drawend"); + }; + + /** + * Propagates a tick event through the display list. This is automatically called by {{#crossLink "Stage/update"}}{{/crossLink}} + * unless {{#crossLink "Stage/tickOnUpdate:property"}}{{/crossLink}} is set to false. + * + * If a props object is passed to `tick()`, then all of its properties will be copied to the event object that is + * propagated to listeners. + * + * Some time-based features in EaselJS (for example {{#crossLink "Sprite/framerate"}}{{/crossLink}} require that + * a {{#crossLink "Ticker/tick:event"}}{{/crossLink}} event object (or equivalent object with a delta property) be + * passed as the `props` parameter to `tick()`. For example: + * + * Ticker.on("tick", handleTick); + * function handleTick(evtObj) { + * // clone the event object from Ticker, and add some custom data to it: + * var evt = evtObj.clone().set({greeting:"hello", name:"world"}); + * + * // pass it to stage.update(): + * myStage.update(evt); // subsequently calls tick() with the same param + * } + * + * // ... + * myDisplayObject.on("tick", handleDisplayObjectTick); + * function handleDisplayObjectTick(evt) { + * console.log(evt.delta); // the delta property from the Ticker tick event object + * console.log(evt.greeting, evt.name); // custom data: "hello world" + * } + * + * @method tick + * @param {Object} [props] An object with properties that should be copied to the event object. Should usually be a Ticker event object, or similar object with a delta property. + **/ + p.tick = function(props) { + if (!this.tickEnabled || this.dispatchEvent("tickstart", false, true) === false) { return; } + var evtObj = new createjs.Event("tick"); + if (props) { + for (var n in props) { + if (props.hasOwnProperty(n)) { evtObj[n] = props[n]; } + } + } + this._tick(evtObj); + this.dispatchEvent("tickend"); + }; + + /** + * Default event handler that calls the Stage {{#crossLink "Stage/update"}}{{/crossLink}} method when a {{#crossLink "DisplayObject/tick:event"}}{{/crossLink}} + * event is received. This allows you to register a Stage instance as a event listener on {{#crossLink "Ticker"}}{{/crossLink}} + * directly, using: + * + * Ticker.addEventListener("tick", myStage"); + * + * Note that if you subscribe to ticks using this pattern, then the tick event object will be passed through to + * display object tick handlers, instead of delta and paused parameters. + * @property handleEvent + * @type Function + **/ + p.handleEvent = function(evt) { + if (evt.type == "tick") { this.update(evt); } + }; + + /** + * Clears the target canvas. Useful if {{#crossLink "Stage/autoClear:property"}}{{/crossLink}} is set to `false`. + * @method clear + **/ + p.clear = function() { + if (!this.canvas) { return; } + var ctx = this.canvas.getContext("2d"); + ctx.setTransform(1, 0, 0, 1, 0, 0); + ctx.clearRect(0, 0, this.canvas.width+1, this.canvas.height+1); + }; + + /** + * Returns a data url that contains a Base64-encoded image of the contents of the stage. The returned data url can + * be specified as the src value of an image element. + * @method toDataURL + * @param {String} [backgroundColor] The background color to be used for the generated image. Any valid CSS color + * value is allowed. The default value is a transparent background. + * @param {String} [mimeType="image/png"] The MIME type of the image format to be create. The default is "image/png". If an unknown MIME type + * is passed in, or if the browser does not support the specified MIME type, the default value will be used. + * @return {String} a Base64 encoded image. + **/ + p.toDataURL = function(backgroundColor, mimeType) { + var data, ctx = this.canvas.getContext('2d'), w = this.canvas.width, h = this.canvas.height; + + if (backgroundColor) { + data = ctx.getImageData(0, 0, w, h); + var compositeOperation = ctx.globalCompositeOperation; + ctx.globalCompositeOperation = "destination-over"; + + ctx.fillStyle = backgroundColor; + ctx.fillRect(0, 0, w, h); + } + + var dataURL = this.canvas.toDataURL(mimeType||"image/png"); + + if(backgroundColor) { + ctx.putImageData(data, 0, 0); + ctx.globalCompositeOperation = compositeOperation; + } + + return dataURL; + }; + + /** + * Enables or disables (by passing a frequency of 0) mouse over ({{#crossLink "DisplayObject/mouseover:event"}}{{/crossLink}} + * and {{#crossLink "DisplayObject/mouseout:event"}}{{/crossLink}}) and roll over events ({{#crossLink "DisplayObject/rollover:event"}}{{/crossLink}} + * and {{#crossLink "DisplayObject/rollout:event"}}{{/crossLink}}) for this stage's display list. These events can + * be expensive to generate, so they are disabled by default. The frequency of the events can be controlled + * independently of mouse move events via the optional `frequency` parameter. + * + *

    Example

    + * + * var stage = new createjs.Stage("canvasId"); + * stage.enableMouseOver(10); // 10 updates per second + * + * @method enableMouseOver + * @param {Number} [frequency=20] Optional param specifying the maximum number of times per second to broadcast + * mouse over/out events. Set to 0 to disable mouse over events completely. Maximum is 50. A lower frequency is less + * responsive, but uses less CPU. + **/ + p.enableMouseOver = function(frequency) { + if (this._mouseOverIntervalID) { + clearInterval(this._mouseOverIntervalID); + this._mouseOverIntervalID = null; + if (frequency == 0) { + this._testMouseOver(true); + } + } + if (frequency == null) { frequency = 20; } + else if (frequency <= 0) { return; } + var o = this; + this._mouseOverIntervalID = setInterval(function(){ o._testMouseOver(); }, 1000/Math.min(50,frequency)); + }; + + /** + * Enables or disables the event listeners that stage adds to DOM elements (window, document and canvas). It is good + * practice to disable events when disposing of a Stage instance, otherwise the stage will continue to receive + * events from the page. + * + * When changing the canvas property you must disable the events on the old canvas, and enable events on the + * new canvas or mouse events will not work as expected. For example: + * + * myStage.enableDOMEvents(false); + * myStage.canvas = anotherCanvas; + * myStage.enableDOMEvents(true); + * + * @method enableDOMEvents + * @param {Boolean} [enable=true] Indicates whether to enable or disable the events. Default is true. + **/ + p.enableDOMEvents = function(enable) { + if (enable == null) { enable = true; } + var n, o, ls = this._eventListeners; + if (!enable && ls) { + for (n in ls) { + o = ls[n]; + o.t.removeEventListener(n, o.f, false); + } + this._eventListeners = null; + } else if (enable && !ls && this.canvas) { + var t = window.addEventListener ? window : document; + var _this = this; + ls = this._eventListeners = {}; + ls["mouseup"] = {t:t, f:function(e) { _this._handleMouseUp(e)} }; + ls["mousemove"] = {t:t, f:function(e) { _this._handleMouseMove(e)} }; + ls["dblclick"] = {t:this.canvas, f:function(e) { _this._handleDoubleClick(e)} }; + ls["mousedown"] = {t:this.canvas, f:function(e) { _this._handleMouseDown(e)} }; + + for (n in ls) { + o = ls[n]; + o.t.addEventListener(n, o.f, false); + } + } + }; + + /** + * Stage instances cannot be cloned. + * @method clone + **/ + p.clone = function() { + throw("Stage cannot be cloned."); + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[Stage (name="+ this.name +")]"; + }; + + +// private methods: + /** + * @method _getElementRect + * @protected + * @param {HTMLElement} e + **/ + p._getElementRect = function(e) { + var bounds; + try { bounds = e.getBoundingClientRect(); } // this can fail on disconnected DOM elements in IE9 + catch (err) { bounds = {top: e.offsetTop, left: e.offsetLeft, width:e.offsetWidth, height:e.offsetHeight}; } + + var offX = (window.pageXOffset || document.scrollLeft || 0) - (document.clientLeft || document.body.clientLeft || 0); + var offY = (window.pageYOffset || document.scrollTop || 0) - (document.clientTop || document.body.clientTop || 0); + + var styles = window.getComputedStyle ? getComputedStyle(e,null) : e.currentStyle; // IE <9 compatibility. + var padL = parseInt(styles.paddingLeft)+parseInt(styles.borderLeftWidth); + var padT = parseInt(styles.paddingTop)+parseInt(styles.borderTopWidth); + var padR = parseInt(styles.paddingRight)+parseInt(styles.borderRightWidth); + var padB = parseInt(styles.paddingBottom)+parseInt(styles.borderBottomWidth); + + // note: in some browsers bounds properties are read only. + return { + left: bounds.left+offX+padL, + right: bounds.right+offX-padR, + top: bounds.top+offY+padT, + bottom: bounds.bottom+offY-padB + } + }; + + /** + * @method _getPointerData + * @protected + * @param {Number} id + **/ + p._getPointerData = function(id) { + var data = this._pointerData[id]; + if (!data) { data = this._pointerData[id] = {x:0,y:0}; } + return data; + }; + + /** + * @method _handleMouseMove + * @protected + * @param {MouseEvent} e + **/ + p._handleMouseMove = function(e) { + if(!e){ e = window.event; } + this._handlePointerMove(-1, e, e.pageX, e.pageY); + }; + + /** + * @method _handlePointerMove + * @protected + * @param {Number} id + * @param {Event} e + * @param {Number} pageX + * @param {Number} pageY + * @param {Stage} owner Indicates that the event has already been captured & handled by the indicated stage. + **/ + p._handlePointerMove = function(id, e, pageX, pageY, owner) { + if (this._prevStage && owner === undefined) { return; } // redundant listener. + if (!this.canvas) { return; } + var nextStage=this._nextStage, o=this._getPointerData(id); + + var inBounds = o.inBounds; + this._updatePointerPosition(id, e, pageX, pageY); + if (inBounds || o.inBounds || this.mouseMoveOutside) { + if (id === -1 && o.inBounds == !inBounds) { + this._dispatchMouseEvent(this, (inBounds ? "mouseleave" : "mouseenter"), false, id, o, e); + } + + this._dispatchMouseEvent(this, "stagemousemove", false, id, o, e); + this._dispatchMouseEvent(o.target, "pressmove", true, id, o, e); + } + + nextStage&&nextStage._handlePointerMove(id, e, pageX, pageY, null); + }; + + /** + * @method _updatePointerPosition + * @protected + * @param {Number} id + * @param {Event} e + * @param {Number} pageX + * @param {Number} pageY + **/ + p._updatePointerPosition = function(id, e, pageX, pageY) { + var rect = this._getElementRect(this.canvas); + pageX -= rect.left; + pageY -= rect.top; + + var w = this.canvas.width; + var h = this.canvas.height; + pageX /= (rect.right-rect.left)/w; + pageY /= (rect.bottom-rect.top)/h; + var o = this._getPointerData(id); + if (o.inBounds = (pageX >= 0 && pageY >= 0 && pageX <= w-1 && pageY <= h-1)) { + o.x = pageX; + o.y = pageY; + } else if (this.mouseMoveOutside) { + o.x = pageX < 0 ? 0 : (pageX > w-1 ? w-1 : pageX); + o.y = pageY < 0 ? 0 : (pageY > h-1 ? h-1 : pageY); + } + + o.posEvtObj = e; + o.rawX = pageX; + o.rawY = pageY; + + if (id === this._primaryPointerID || id === -1) { + this.mouseX = o.x; + this.mouseY = o.y; + this.mouseInBounds = o.inBounds; + } + }; + + /** + * @method _handleMouseUp + * @protected + * @param {MouseEvent} e + **/ + p._handleMouseUp = function(e) { + this._handlePointerUp(-1, e, false); + }; + + /** + * @method _handlePointerUp + * @protected + * @param {Number} id + * @param {Event} e + * @param {Boolean} clear + * @param {Stage} owner Indicates that the event has already been captured & handled by the indicated stage. + **/ + p._handlePointerUp = function(id, e, clear, owner) { + var nextStage = this._nextStage, o = this._getPointerData(id); + if (this._prevStage && owner === undefined) { return; } // redundant listener. + + var target=null, oTarget = o.target; + if (!owner && (oTarget || nextStage)) { target = this._getObjectsUnderPoint(o.x, o.y, null, true); } + + if (o.down) { this._dispatchMouseEvent(this, "stagemouseup", false, id, o, e, target); o.down = false; } + + if (target == oTarget) { this._dispatchMouseEvent(oTarget, "click", true, id, o, e); } + this._dispatchMouseEvent(oTarget, "pressup", true, id, o, e); + + if (clear) { + if (id==this._primaryPointerID) { this._primaryPointerID = null; } + delete(this._pointerData[id]); + } else { o.target = null; } + + nextStage&&nextStage._handlePointerUp(id, e, clear, owner || target && this); + }; + + /** + * @method _handleMouseDown + * @protected + * @param {MouseEvent} e + **/ + p._handleMouseDown = function(e) { + this._handlePointerDown(-1, e, e.pageX, e.pageY); + }; + + /** + * @method _handlePointerDown + * @protected + * @param {Number} id + * @param {Event} e + * @param {Number} pageX + * @param {Number} pageY + * @param {Stage} owner Indicates that the event has already been captured & handled by the indicated stage. + **/ + p._handlePointerDown = function(id, e, pageX, pageY, owner) { + if (this.preventSelection) { e.preventDefault(); } + if (this._primaryPointerID == null || id === -1) { this._primaryPointerID = id; } // mouse always takes over. + + if (pageY != null) { this._updatePointerPosition(id, e, pageX, pageY); } + var target = null, nextStage = this._nextStage, o = this._getPointerData(id); + if (!owner) { target = o.target = this._getObjectsUnderPoint(o.x, o.y, null, true); } + + if (o.inBounds) { this._dispatchMouseEvent(this, "stagemousedown", false, id, o, e, target); o.down = true; } + this._dispatchMouseEvent(target, "mousedown", true, id, o, e); + + nextStage&&nextStage._handlePointerDown(id, e, pageX, pageY, owner || target && this); + }; + + /** + * @method _testMouseOver + * @param {Boolean} clear If true, clears the mouseover / rollover (ie. no target) + * @param {Stage} owner Indicates that the event has already been captured & handled by the indicated stage. + * @param {Stage} eventTarget The stage that the cursor is actively over. + * @protected + **/ + p._testMouseOver = function(clear, owner, eventTarget) { + if (this._prevStage && owner === undefined) { return; } // redundant listener. + + var nextStage = this._nextStage; + if (!this._mouseOverIntervalID) { + // not enabled for mouseover, but should still relay the event. + nextStage&&nextStage._testMouseOver(clear, owner, eventTarget); + return; + } + var o = this._getPointerData(-1); + // only update if the mouse position has changed. This provides a lot of optimization, but has some trade-offs. + if (!o || (!clear && this.mouseX == this._mouseOverX && this.mouseY == this._mouseOverY && this.mouseInBounds)) { return; } + + var e = o.posEvtObj; + var isEventTarget = eventTarget || e&&(e.target == this.canvas); + var target=null, common = -1, cursor="", t, i, l; + + if (!owner && (clear || this.mouseInBounds && isEventTarget)) { + target = this._getObjectsUnderPoint(this.mouseX, this.mouseY, null, true); + this._mouseOverX = this.mouseX; + this._mouseOverY = this.mouseY; + } + + var oldList = this._mouseOverTarget||[]; + var oldTarget = oldList[oldList.length-1]; + var list = this._mouseOverTarget = []; + + // generate ancestor list and check for cursor: + t = target; + while (t) { + list.unshift(t); + if (!cursor) { cursor = t.cursor; } + t = t.parent; + } + this.canvas.style.cursor = cursor; + if (!owner && eventTarget) { eventTarget.canvas.style.cursor = cursor; } + + // find common ancestor: + for (i=0,l=list.length; icommon; i--) { + this._dispatchMouseEvent(oldList[i], "rollout", false, -1, o, e, target); + } + + for (i=list.length-1; i>common; i--) { + this._dispatchMouseEvent(list[i], "rollover", false, -1, o, e, oldTarget); + } + + if (oldTarget != target) { + this._dispatchMouseEvent(target, "mouseover", true, -1, o, e, oldTarget); + } + + nextStage&&nextStage._testMouseOver(clear, owner || target && this, eventTarget || isEventTarget && this); + }; + + /** + * @method _handleDoubleClick + * @protected + * @param {MouseEvent} e + * @param {Stage} owner Indicates that the event has already been captured & handled by the indicated stage. + **/ + p._handleDoubleClick = function(e, owner) { + var target=null, nextStage=this._nextStage, o=this._getPointerData(-1); + if (!owner) { + target = this._getObjectsUnderPoint(o.x, o.y, null, true); + this._dispatchMouseEvent(target, "dblclick", true, -1, o, e); + } + nextStage&&nextStage._handleDoubleClick(e, owner || target && this); + }; + + /** + * @method _dispatchMouseEvent + * @protected + * @param {DisplayObject} target + * @param {String} type + * @param {Boolean} bubbles + * @param {Number} pointerId + * @param {Object} o + * @param {MouseEvent} [nativeEvent] + * @param {DisplayObject} [relatedTarget] + **/ + p._dispatchMouseEvent = function(target, type, bubbles, pointerId, o, nativeEvent, relatedTarget) { + // TODO: might be worth either reusing MouseEvent instances, or adding a willTrigger method to avoid GC. + if (!target || (!bubbles && !target.hasEventListener(type))) { return; } + /* + // TODO: account for stage transformations? + this._mtx = this.getConcatenatedMatrix(this._mtx).invert(); + var pt = this._mtx.transformPoint(o.x, o.y); + var evt = new createjs.MouseEvent(type, bubbles, false, pt.x, pt.y, nativeEvent, pointerId, pointerId==this._primaryPointerID || pointerId==-1, o.rawX, o.rawY); + */ + var evt = new createjs.MouseEvent(type, bubbles, false, o.x, o.y, nativeEvent, pointerId, pointerId === this._primaryPointerID || pointerId === -1, o.rawX, o.rawY, relatedTarget); + target.dispatchEvent(evt); + }; + + + createjs.Stage = createjs.promote(Stage, "Container"); +}()); + +//############################################################################## +// Bitmap.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + + /** + * A Bitmap represents an Image, Canvas, or Video in the display list. A Bitmap can be instantiated using an existing + * HTML element, or a string. + * + *

    Example

    + * + * var bitmap = new createjs.Bitmap("imagePath.jpg"); + * + * Notes: + *
      + *
    1. When a string path or image tag that is not yet loaded is used, the stage may need to be redrawn before it + * will be displayed.
    2. + *
    3. Bitmaps with an SVG source currently will not respect an alpha value other than 0 or 1. To get around this, + * the Bitmap can be cached.
    4. + *
    5. Bitmaps with an SVG source will taint the canvas with cross-origin data, which prevents interactivity. This + * happens in all browsers except recent Firefox builds.
    6. + *
    7. Images loaded cross-origin will throw cross-origin security errors when interacted with using a mouse, using + * methods such as `getObjectUnderPoint`, or using filters, or caching. You can get around this by setting + * `crossOrigin` flags on your images before passing them to EaselJS, eg: `img.crossOrigin="Anonymous";`
    8. + *
    + * + * @class Bitmap + * @extends DisplayObject + * @constructor + * @param {HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | String} imageOrUri The source object or URI to an image to + * display. This can be either an Image, Canvas, or Video object, or a string URI to an image file to load and use. + * If it is a URI, a new Image object will be constructed and assigned to the .image property. + **/ + function Bitmap(imageOrUri) { + this.DisplayObject_constructor(); + + + // public properties: + /** + * The image to render. This can be an Image, a Canvas, or a Video. Not all browsers (especially + * mobile browsers) support drawing video to a canvas. + * @property image + * @type HTMLImageElement | HTMLCanvasElement | HTMLVideoElement + **/ + if (typeof imageOrUri == "string") { + this.image = document.createElement("img"); + this.image.src = imageOrUri; + } else { + this.image = imageOrUri; + } + + /** + * Specifies an area of the source image to draw. If omitted, the whole image will be drawn. + * Note that video sources must have a width / height set to work correctly with `sourceRect`. + * @property sourceRect + * @type Rectangle + * @default null + */ + this.sourceRect = null; + } + var p = createjs.extend(Bitmap, createjs.DisplayObject); + + +// public methods: + /** + * Constructor alias for backwards compatibility. This method will be removed in future versions. + * Subclasses should be updated to use {{#crossLink "Utility Methods/extends"}}{{/crossLink}}. + * @method initialize + * @deprecated in favour of `createjs.promote()` + **/ + p.initialize = Bitmap; // TODO: deprecated. + + /** + * Returns true or false indicating whether the display object would be visible if drawn to a canvas. + * This does not account for whether it would be visible within the boundaries of the stage. + * + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method isVisible + * @return {Boolean} Boolean indicating whether the display object would be visible if drawn to a canvas + **/ + p.isVisible = function() { + var image = this.image; + var hasContent = this.cacheCanvas || (image && (image.naturalWidth || image.getContext || image.readyState >= 2)); + return !!(this.visible && this.alpha > 0 && this.scaleX != 0 && this.scaleY != 0 && hasContent); + }; + + /** + * Draws the display object into the specified context ignoring its visible, alpha, shadow, and transform. + * Returns true if the draw was handled (useful for overriding functionality). + * + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method draw + * @param {CanvasRenderingContext2D} ctx The canvas 2D context object to draw into. + * @param {Boolean} [ignoreCache=false] Indicates whether the draw operation should ignore any current cache. + * For example, used for drawing the cache (to prevent it from simply drawing an existing cache back + * into itself). + * @return {Boolean} + **/ + p.draw = function(ctx, ignoreCache) { + if (this.DisplayObject_draw(ctx, ignoreCache) || !this.image) { return true; } + var img = this.image, rect = this.sourceRect; + if (rect) { + // some browsers choke on out of bound values, so we'll fix them: + var x1 = rect.x, y1 = rect.y, x2 = x1 + rect.width, y2 = y1 + rect.height, x = 0, y = 0, w = img.width, h = img.height; + if (x1 < 0) { x -= x1; x1 = 0; } + if (x2 > w) { x2 = w; } + if (y1 < 0) { y -= y1; y1 = 0; } + if (y2 > h) { y2 = h; } + ctx.drawImage(img, x1, y1, x2-x1, y2-y1, x, y, x2-x1, y2-y1); + } else { + ctx.drawImage(img, 0, 0); + } + return true; + }; + + //Note, the doc sections below document using the specified APIs (from DisplayObject) from + //Bitmap. This is why they have no method implementations. + + /** + * Because the content of a Bitmap is already in a simple format, cache is unnecessary for Bitmap instances. + * You should not cache Bitmap instances as it can degrade performance. + * + * However: If you want to use a filter on a Bitmap, you MUST cache it, or it will not work. + * To see the API for caching, please visit the DisplayObject {{#crossLink "DisplayObject/cache"}}{{/crossLink}} + * method. + * @method cache + **/ + + /** + * Because the content of a Bitmap is already in a simple format, cache is unnecessary for Bitmap instances. + * You should not cache Bitmap instances as it can degrade performance. + * + * However: If you want to use a filter on a Bitmap, you MUST cache it, or it will not work. + * To see the API for caching, please visit the DisplayObject {{#crossLink "DisplayObject/cache"}}{{/crossLink}} + * method. + * @method updateCache + **/ + + /** + * Because the content of a Bitmap is already in a simple format, cache is unnecessary for Bitmap instances. + * You should not cache Bitmap instances as it can degrade performance. + * + * However: If you want to use a filter on a Bitmap, you MUST cache it, or it will not work. + * To see the API for caching, please visit the DisplayObject {{#crossLink "DisplayObject/cache"}}{{/crossLink}} + * method. + * @method uncache + **/ + + /** + * Docced in superclass. + */ + p.getBounds = function() { + var rect = this.DisplayObject_getBounds(); + if (rect) { return rect; } + var image = this.image, o = this.sourceRect || image; + var hasContent = (image && (image.naturalWidth || image.getContext || image.readyState >= 2)); + return hasContent ? this._rectangle.setValues(0, 0, o.width, o.height) : null; + }; + + /** + * Returns a clone of the Bitmap instance. + * @method clone + * @return {Bitmap} a clone of the Bitmap instance. + **/ + p.clone = function() { + var o = new Bitmap(this.image); + if (this.sourceRect) { o.sourceRect = this.sourceRect.clone(); } + this._cloneProps(o); + return o; + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[Bitmap (name="+ this.name +")]"; + }; + + + createjs.Bitmap = createjs.promote(Bitmap, "DisplayObject"); +}()); + +//############################################################################## +// Sprite.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * Displays a frame or sequence of frames (ie. an animation) from a SpriteSheet instance. A sprite sheet is a series of + * images (usually animation frames) combined into a single image. For example, an animation consisting of 8 100x100 + * images could be combined into a 400x200 sprite sheet (4 frames across by 2 high). You can display individual frames, + * play frames as an animation, and even sequence animations together. + * + * See the {{#crossLink "SpriteSheet"}}{{/crossLink}} class for more information on setting up frames and animations. + * + *

    Example

    + * + * var instance = new createjs.Sprite(spriteSheet); + * instance.gotoAndStop("frameName"); + * + * Until {{#crossLink "Sprite/gotoAndStop"}}{{/crossLink}} or {{#crossLink "Sprite/gotoAndPlay"}}{{/crossLink}} is called, + * only the first defined frame defined in the sprite sheet will be displayed. + * + * @class Sprite + * @extends DisplayObject + * @constructor + * @param {SpriteSheet} spriteSheet The SpriteSheet instance to play back. This includes the source image(s), frame + * dimensions, and frame data. See {{#crossLink "SpriteSheet"}}{{/crossLink}} for more information. + * @param {String|Number} [frameOrAnimation] The frame number or animation to play initially. + **/ + function Sprite(spriteSheet, frameOrAnimation) { + this.DisplayObject_constructor(); + + + // public properties: + /** + * The frame index that will be drawn when draw is called. Note that with some {{#crossLink "SpriteSheet"}}{{/crossLink}} + * definitions, this will advance non-sequentially. This will always be an integer value. + * @property currentFrame + * @type {Number} + * @default 0 + * @readonly + **/ + this.currentFrame = 0; + + /** + * Returns the name of the currently playing animation. + * @property currentAnimation + * @type {String} + * @final + * @readonly + **/ + this.currentAnimation = null; + + /** + * Prevents the animation from advancing each tick automatically. For example, you could create a sprite + * sheet of icons, set paused to true, and display the appropriate icon by setting currentFrame. + * @property paused + * @type {Boolean} + * @default false + **/ + this.paused = true; + + /** + * The SpriteSheet instance to play back. This includes the source image, frame dimensions, and frame + * data. See {{#crossLink "SpriteSheet"}}{{/crossLink}} for more information. + * @property spriteSheet + * @type {SpriteSheet} + * @readonly + **/ + this.spriteSheet = spriteSheet; + + /** + * Specifies the current frame index within the currently playing animation. When playing normally, this will increase + * from 0 to n-1, where n is the number of frames in the current animation. + * + * This could be a non-integer value if + * using time-based playback (see {{#crossLink "Sprite/framerate"}}{{/crossLink}}, or if the animation's speed is + * not an integer. + * @property currentAnimationFrame + * @type {Number} + * @default 0 + **/ + this.currentAnimationFrame = 0; + + /** + * By default Sprite instances advance one frame per tick. Specifying a framerate for the Sprite (or its related + * SpriteSheet) will cause it to advance based on elapsed time between ticks as appropriate to maintain the target + * framerate. + * + * For example, if a Sprite with a framerate of 10 is placed on a Stage being updated at 40fps, then the Sprite will + * advance roughly one frame every 4 ticks. This will not be exact, because the time between each tick will + * vary slightly between frames. + * + * This feature is dependent on the tick event object (or an object with an appropriate "delta" property) being + * passed into {{#crossLink "Stage/update"}}{{/crossLink}}. + * @property framerate + * @type {Number} + * @default 0 + **/ + this.framerate = 0; + + + // private properties: + /** + * Current animation object. + * @property _animation + * @protected + * @type {Object} + * @default null + **/ + this._animation = null; + + /** + * Current frame index. + * @property _currentFrame + * @protected + * @type {Number} + * @default null + **/ + this._currentFrame = null; + + /** + * Skips the next auto advance. Used by gotoAndPlay to avoid immediately jumping to the next frame + * @property _skipAdvance + * @protected + * @type {Boolean} + * @default false + **/ + this._skipAdvance = false; + + + if (frameOrAnimation != null) { this.gotoAndPlay(frameOrAnimation); } + } + var p = createjs.extend(Sprite, createjs.DisplayObject); + + /** + * Constructor alias for backwards compatibility. This method will be removed in future versions. + * Subclasses should be updated to use {{#crossLink "Utility Methods/extends"}}{{/crossLink}}. + * @method initialize + * @deprecated in favour of `createjs.promote()` + **/ + p.initialize = Sprite; // TODO: Deprecated. This is for backwards support of FlashCC spritesheet export. + + +// events: + /** + * Dispatched when an animation reaches its ends. + * @event animationend + * @param {Object} target The object that dispatched the event. + * @param {String} type The event type. + * @param {String} name The name of the animation that just ended. + * @param {String} next The name of the next animation that will be played, or null. This will be the same as name if the animation is looping. + * @since 0.6.0 + */ + + /** + * Dispatched any time the current frame changes. For example, this could be due to automatic advancement on a tick, + * or calling gotoAndPlay() or gotoAndStop(). + * @event change + * @param {Object} target The object that dispatched the event. + * @param {String} type The event type. + */ + + +// public methods: + /** + * Returns true or false indicating whether the display object would be visible if drawn to a canvas. + * This does not account for whether it would be visible within the boundaries of the stage. + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method isVisible + * @return {Boolean} Boolean indicating whether the display object would be visible if drawn to a canvas + **/ + p.isVisible = function() { + var hasContent = this.cacheCanvas || this.spriteSheet.complete; + return !!(this.visible && this.alpha > 0 && this.scaleX != 0 && this.scaleY != 0 && hasContent); + }; + + /** + * Draws the display object into the specified context ignoring its visible, alpha, shadow, and transform. + * Returns true if the draw was handled (useful for overriding functionality). + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method draw + * @param {CanvasRenderingContext2D} ctx The canvas 2D context object to draw into. + * @param {Boolean} ignoreCache Indicates whether the draw operation should ignore any current cache. + * For example, used for drawing the cache (to prevent it from simply drawing an existing cache back + * into itself). + **/ + p.draw = function(ctx, ignoreCache) { + if (this.DisplayObject_draw(ctx, ignoreCache)) { return true; } + this._normalizeFrame(); + var o = this.spriteSheet.getFrame(this._currentFrame|0); + if (!o) { return false; } + var rect = o.rect; + if (rect.width && rect.height) { ctx.drawImage(o.image, rect.x, rect.y, rect.width, rect.height, -o.regX, -o.regY, rect.width, rect.height); } + return true; + }; + + //Note, the doc sections below document using the specified APIs (from DisplayObject) from + //Bitmap. This is why they have no method implementations. + + /** + * Because the content of a Sprite is already in a raster format, cache is unnecessary for Sprite instances. + * You should not cache Sprite instances as it can degrade performance. + * @method cache + **/ + + /** + * Because the content of a Sprite is already in a raster format, cache is unnecessary for Sprite instances. + * You should not cache Sprite instances as it can degrade performance. + * @method updateCache + **/ + + /** + * Because the content of a Sprite is already in a raster format, cache is unnecessary for Sprite instances. + * You should not cache Sprite instances as it can degrade performance. + * @method uncache + **/ + + /** + * Play (unpause) the current animation. The Sprite will be paused if either {{#crossLink "Sprite/stop"}}{{/crossLink}} + * or {{#crossLink "Sprite/gotoAndStop"}}{{/crossLink}} is called. Single frame animations will remain + * unchanged. + * @method play + **/ + p.play = function() { + this.paused = false; + }; + + /** + * Stop playing a running animation. The Sprite will be playing if {{#crossLink "Sprite/gotoAndPlay"}}{{/crossLink}} + * is called. Note that calling {{#crossLink "Sprite/gotoAndPlay"}}{{/crossLink}} or {{#crossLink "Sprite/play"}}{{/crossLink}} + * will resume playback. + * @method stop + **/ + p.stop = function() { + this.paused = true; + }; + + /** + * Sets paused to false and plays the specified animation name, named frame, or frame number. + * @method gotoAndPlay + * @param {String|Number} frameOrAnimation The frame number or animation name that the playhead should move to + * and begin playing. + **/ + p.gotoAndPlay = function(frameOrAnimation) { + this.paused = false; + this._skipAdvance = true; + this._goto(frameOrAnimation); + }; + + /** + * Sets paused to true and seeks to the specified animation name, named frame, or frame number. + * @method gotoAndStop + * @param {String|Number} frameOrAnimation The frame number or animation name that the playhead should move to + * and stop. + **/ + p.gotoAndStop = function(frameOrAnimation) { + this.paused = true; + this._goto(frameOrAnimation); + }; + + /** + * Advances the playhead. This occurs automatically each tick by default. + * @param [time] {Number} The amount of time in ms to advance by. Only applicable if framerate is set on the Sprite + * or its SpriteSheet. + * @method advance + */ + p.advance = function(time) { + var fps = this.framerate || this.spriteSheet.framerate; + var t = (fps && time != null) ? time/(1000/fps) : 1; + this._normalizeFrame(t); + }; + + /** + * Returns a {{#crossLink "Rectangle"}}{{/crossLink}} instance defining the bounds of the current frame relative to + * the origin. For example, a 90 x 70 frame with regX=50 and regY=40 would return a + * rectangle with [x=-50, y=-40, width=90, height=70]. This ignores transformations on the display object. + * + * Also see the SpriteSheet {{#crossLink "SpriteSheet/getFrameBounds"}}{{/crossLink}} method. + * @method getBounds + * @return {Rectangle} A Rectangle instance. Returns null if the frame does not exist, or the image is not fully + * loaded. + **/ + p.getBounds = function() { + // TODO: should this normalizeFrame? + return this.DisplayObject_getBounds() || this.spriteSheet.getFrameBounds(this.currentFrame, this._rectangle); + }; + + /** + * Returns a clone of the Sprite instance. Note that the same SpriteSheet is shared between cloned + * instances. + * @method clone + * @return {Sprite} a clone of the Sprite instance. + **/ + p.clone = function() { + return this._cloneProps(new Sprite(this.spriteSheet)); + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[Sprite (name="+ this.name +")]"; + }; + +// private methods: + /** + * @method _cloneProps + * @param {Sprite} o + * @return {Sprite} o + * @protected + **/ + p._cloneProps = function(o) { + this.DisplayObject__cloneProps(o); + o.currentFrame = this.currentFrame; + o.currentAnimation = this.currentAnimation; + o.paused = this.paused; + o.currentAnimationFrame = this.currentAnimationFrame; + o.framerate = this.framerate; + + o._animation = this._animation; + o._currentFrame = this._currentFrame; + o._skipAdvance = this._skipAdvance; + return o; + }; + + /** + * Advances the currentFrame if paused is not true. This is called automatically when the {{#crossLink "Stage"}}{{/crossLink}} + * ticks. + * @param {Object} evtObj An event object that will be dispatched to all tick listeners. This object is reused between dispatchers to reduce construction & GC costs. + * @protected + * @method _tick + **/ + p._tick = function(evtObj) { + if (!this.paused) { + if (!this._skipAdvance) { this.advance(evtObj&&evtObj.delta); } + this._skipAdvance = false; + } + this.DisplayObject__tick(evtObj); + }; + + + /** + * Normalizes the current frame, advancing animations and dispatching callbacks as appropriate. + * @protected + * @method _normalizeFrame + **/ + p._normalizeFrame = function(frameDelta) { + frameDelta = frameDelta || 0; + var animation = this._animation; + var paused = this.paused; + var frame = this._currentFrame; + var l; + + if (animation) { + var speed = animation.speed || 1; + var animFrame = this.currentAnimationFrame; + l = animation.frames.length; + if (animFrame + frameDelta * speed >= l) { + var next = animation.next; + if (this._dispatchAnimationEnd(animation, frame, paused, next, l - 1)) { + // something changed in the event stack, so we shouldn't make any more changes here. + return; + } else if (next) { + // sequence. Automatically calls _normalizeFrame again with the remaining frames. + return this._goto(next, frameDelta - (l - animFrame) / speed); + } else { + // end. + this.paused = true; + animFrame = animation.frames.length - 1; + } + } else { + animFrame += frameDelta * speed; + } + this.currentAnimationFrame = animFrame; + this._currentFrame = animation.frames[animFrame | 0] + } else { + frame = (this._currentFrame += frameDelta); + l = this.spriteSheet.getNumFrames(); + if (frame >= l && l > 0) { + if (!this._dispatchAnimationEnd(animation, frame, paused, l - 1)) { + // looped. + if ((this._currentFrame -= l) >= l) { return this._normalizeFrame(); } + } + } + } + frame = this._currentFrame | 0; + if (this.currentFrame != frame) { + this.currentFrame = frame; + this.dispatchEvent("change"); + } + }; + + /** + * Dispatches the "animationend" event. Returns true if a handler changed the animation (ex. calling {{#crossLink "Sprite/stop"}}{{/crossLink}}, + * {{#crossLink "Sprite/gotoAndPlay"}}{{/crossLink}}, etc.) + * @property _dispatchAnimationEnd + * @private + * @type {Function} + **/ + p._dispatchAnimationEnd = function(animation, frame, paused, next, end) { + var name = animation ? animation.name : null; + if (this.hasEventListener("animationend")) { + var evt = new createjs.Event("animationend"); + evt.name = name; + evt.next = next; + this.dispatchEvent(evt); + } + // did the animation get changed in the event stack?: + var changed = (this._animation != animation || this._currentFrame != frame); + // if the animation hasn't changed, but the sprite was paused, then we want to stick to the last frame: + if (!changed && !paused && this.paused) { this.currentAnimationFrame = end; changed = true; } + return changed; + }; + + /** + * Moves the playhead to the specified frame number or animation. + * @method _goto + * @param {String|Number} frameOrAnimation The frame number or animation that the playhead should move to. + * @param {Boolean} [frame] The frame of the animation to go to. Defaults to 0. + * @protected + **/ + p._goto = function(frameOrAnimation, frame) { + this.currentAnimationFrame = 0; + if (isNaN(frameOrAnimation)) { + var data = this.spriteSheet.getAnimation(frameOrAnimation); + if (data) { + this._animation = data; + this.currentAnimation = frameOrAnimation; + this._normalizeFrame(frame); + } + } else { + this.currentAnimation = this._animation = null; + this._currentFrame = frameOrAnimation; + this._normalizeFrame(); + } + }; + + + createjs.Sprite = createjs.promote(Sprite, "DisplayObject"); +}()); + +//############################################################################## +// Shape.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * A Shape allows you to display vector art in the display list. It composites a {{#crossLink "Graphics"}}{{/crossLink}} + * instance which exposes all of the vector drawing methods. The Graphics instance can be shared between multiple Shape + * instances to display the same vector graphics with different positions or transforms. + * + * If the vector art will not + * change between draws, you may want to use the {{#crossLink "DisplayObject/cache"}}{{/crossLink}} method to reduce the + * rendering cost. + * + *

    Example

    + * + * var graphics = new createjs.Graphics().beginFill("#ff0000").drawRect(0, 0, 100, 100); + * var shape = new createjs.Shape(graphics); + * + * //Alternatively use can also use the graphics property of the Shape class to renderer the same as above. + * var shape = new createjs.Shape(); + * shape.graphics.beginFill("#ff0000").drawRect(0, 0, 100, 100); + * + * @class Shape + * @extends DisplayObject + * @constructor + * @param {Graphics} graphics Optional. The graphics instance to display. If null, a new Graphics instance will be created. + **/ + function Shape(graphics) { + this.DisplayObject_constructor(); + + + // public properties: + /** + * The graphics instance to display. + * @property graphics + * @type Graphics + **/ + this.graphics = graphics ? graphics : new createjs.Graphics(); + } + var p = createjs.extend(Shape, createjs.DisplayObject); + + // TODO: deprecated + // p.initialize = function() {}; // searchable for devs wondering where it is. REMOVED. See docs for details. + + +// public methods: + /** + * Returns true or false indicating whether the Shape would be visible if drawn to a canvas. + * This does not account for whether it would be visible within the boundaries of the stage. + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method isVisible + * @return {Boolean} Boolean indicating whether the Shape would be visible if drawn to a canvas + **/ + p.isVisible = function() { + var hasContent = this.cacheCanvas || (this.graphics && !this.graphics.isEmpty()); + return !!(this.visible && this.alpha > 0 && this.scaleX != 0 && this.scaleY != 0 && hasContent); + }; + + /** + * Draws the Shape into the specified context ignoring its visible, alpha, shadow, and transform. Returns true if + * the draw was handled (useful for overriding functionality). + * + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method draw + * @param {CanvasRenderingContext2D} ctx The canvas 2D context object to draw into. + * @param {Boolean} [ignoreCache=false] Indicates whether the draw operation should ignore any current cache. For example, + * used for drawing the cache (to prevent it from simply drawing an existing cache back into itself). + * @return {Boolean} + **/ + p.draw = function(ctx, ignoreCache) { + if (this.DisplayObject_draw(ctx, ignoreCache)) { return true; } + this.graphics.draw(ctx, this); + return true; + }; + + /** + * Returns a clone of this Shape. Some properties that are specific to this instance's current context are reverted to + * their defaults (for example .parent). + * @method clone + * @param {Boolean} recursive If true, this Shape's {{#crossLink "Graphics"}}{{/crossLink}} instance will also be + * cloned. If false, the Graphics instance will be shared with the new Shape. + **/ + p.clone = function(recursive) { + var g = (recursive && this.graphics) ? this.graphics.clone() : this.graphics; + return this._cloneProps(new Shape(g)); + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[Shape (name="+ this.name +")]"; + }; + + + createjs.Shape = createjs.promote(Shape, "DisplayObject"); +}()); + +//############################################################################## +// Text.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * Display one or more lines of dynamic text (not user editable) in the display list. Line wrapping support (using the + * lineWidth) is very basic, wrapping on spaces and tabs only. Note that as an alternative to Text, you can position HTML + * text above or below the canvas relative to items in the display list using the {{#crossLink "DisplayObject/localToGlobal"}}{{/crossLink}} + * method, or using {{#crossLink "DOMElement"}}{{/crossLink}}. + * + * Please note that Text does not support HTML text, and can only display one font style at a time. To use + * multiple font styles, you will need to create multiple text instances, and position them manually. + * + *

    Example

    + * + * var text = new createjs.Text("Hello World", "20px Arial", "#ff7700"); + * text.x = 100; + * text.textBaseline = "alphabetic"; + * + * CreateJS Text supports web fonts (the same rules as Canvas). The font must be loaded and supported by the browser + * before it can be displayed. + * + * Note: Text can be expensive to generate, so cache instances where possible. Be aware that not all + * browsers will render Text exactly the same. + * @class Text + * @extends DisplayObject + * @constructor + * @param {String} [text] The text to display. + * @param {String} [font] The font style to use. Any valid value for the CSS font attribute is acceptable (ex. "bold + * 36px Arial"). + * @param {String} [color] The color to draw the text in. Any valid value for the CSS color attribute is acceptable (ex. + * "#F00", "red", or "#FF0000"). + **/ + function Text(text, font, color) { + this.DisplayObject_constructor(); + + + // public properties: + /** + * The text to display. + * @property text + * @type String + **/ + this.text = text; + + /** + * The font style to use. Any valid value for the CSS font attribute is acceptable (ex. "bold 36px Arial"). + * @property font + * @type String + **/ + this.font = font; + + /** + * The color to draw the text in. Any valid value for the CSS color attribute is acceptable (ex. "#F00"). Default is "#000". + * It will also accept valid canvas fillStyle values. + * @property color + * @type String + **/ + this.color = color; + + /** + * The horizontal text alignment. Any of "start", "end", "left", "right", and "center". For detailed + * information view the + * + * whatwg spec. Default is "left". + * @property textAlign + * @type String + **/ + this.textAlign = "left"; + + /** + * The vertical alignment point on the font. Any of "top", "hanging", "middle", "alphabetic", "ideographic", or + * "bottom". For detailed information view the + * whatwg spec. Default is "top". + * @property textBaseline + * @type String + */ + this.textBaseline = "top"; + + /** + * The maximum width to draw the text. If maxWidth is specified (not null), the text will be condensed or + * shrunk to make it fit in this width. For detailed information view the + * + * whatwg spec. + * @property maxWidth + * @type Number + */ + this.maxWidth = null; + + /** + * If greater than 0, the text will be drawn as a stroke (outline) of the specified width. + * @property outline + * @type Number + **/ + this.outline = 0; + + /** + * Indicates the line height (vertical distance between baselines) for multi-line text. If null or 0, + * the value of getMeasuredLineHeight is used. + * @property lineHeight + * @type Number + **/ + this.lineHeight = 0; + + /** + * Indicates the maximum width for a line of text before it is wrapped to multiple lines. If null, + * the text will not be wrapped. + * @property lineWidth + * @type Number + **/ + this.lineWidth = null; + } + var p = createjs.extend(Text, createjs.DisplayObject); + + // TODO: deprecated + // p.initialize = function() {}; // searchable for devs wondering where it is. REMOVED. See docs for details. + + +// static properties: + /** + * @property _workingContext + * @type CanvasRenderingContext2D + * @private + **/ + var canvas = (createjs.createCanvas?createjs.createCanvas():document.createElement("canvas")); + if (canvas.getContext) { Text._workingContext = canvas.getContext("2d"); canvas.width = canvas.height = 1; } + + +// constants: + /** + * Lookup table for the ratio to offset bounds x calculations based on the textAlign property. + * @property H_OFFSETS + * @type Object + * @protected + * @static + **/ + Text.H_OFFSETS = {start: 0, left: 0, center: -0.5, end: -1, right: -1}; + + /** + * Lookup table for the ratio to offset bounds y calculations based on the textBaseline property. + * @property H_OFFSETS + * @type Object + * @protected + * @static + **/ + Text.V_OFFSETS = {top: 0, hanging: -0.01, middle: -0.4, alphabetic: -0.8, ideographic: -0.85, bottom: -1}; + + +// public methods: + /** + * Returns true or false indicating whether the display object would be visible if drawn to a canvas. + * This does not account for whether it would be visible within the boundaries of the stage. + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method isVisible + * @return {Boolean} Whether the display object would be visible if drawn to a canvas + **/ + p.isVisible = function() { + var hasContent = this.cacheCanvas || (this.text != null && this.text !== ""); + return !!(this.visible && this.alpha > 0 && this.scaleX != 0 && this.scaleY != 0 && hasContent); + }; + + /** + * Draws the Text into the specified context ignoring its visible, alpha, shadow, and transform. + * Returns true if the draw was handled (useful for overriding functionality). + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method draw + * @param {CanvasRenderingContext2D} ctx The canvas 2D context object to draw into. + * @param {Boolean} ignoreCache Indicates whether the draw operation should ignore any current cache. + * For example, used for drawing the cache (to prevent it from simply drawing an existing cache back + * into itself). + **/ + p.draw = function(ctx, ignoreCache) { + if (this.DisplayObject_draw(ctx, ignoreCache)) { return true; } + + var col = this.color || "#000"; + if (this.outline) { ctx.strokeStyle = col; ctx.lineWidth = this.outline*1; } + else { ctx.fillStyle = col; } + + this._drawText(this._prepContext(ctx)); + return true; + }; + + /** + * Returns the measured, untransformed width of the text without wrapping. Use getBounds for a more robust value. + * @method getMeasuredWidth + * @return {Number} The measured, untransformed width of the text. + **/ + p.getMeasuredWidth = function() { + return this._getMeasuredWidth(this.text); + }; + + /** + * Returns an approximate line height of the text, ignoring the lineHeight property. This is based on the measured + * width of a "M" character multiplied by 1.2, which provides an approximate line height for most fonts. + * @method getMeasuredLineHeight + * @return {Number} an approximate line height of the text, ignoring the lineHeight property. This is + * based on the measured width of a "M" character multiplied by 1.2, which approximates em for most fonts. + **/ + p.getMeasuredLineHeight = function() { + return this._getMeasuredWidth("M")*1.2; + }; + + /** + * Returns the approximate height of multi-line text by multiplying the number of lines against either the + * lineHeight (if specified) or {{#crossLink "Text/getMeasuredLineHeight"}}{{/crossLink}}. Note that + * this operation requires the text flowing logic to run, which has an associated CPU cost. + * @method getMeasuredHeight + * @return {Number} The approximate height of the untransformed multi-line text. + **/ + p.getMeasuredHeight = function() { + return this._drawText(null,{}).height; + }; + + /** + * Docced in superclass. + */ + p.getBounds = function() { + var rect = this.DisplayObject_getBounds(); + if (rect) { return rect; } + if (this.text == null || this.text === "") { return null; } + var o = this._drawText(null, {}); + var w = (this.maxWidth && this.maxWidth < o.width) ? this.maxWidth : o.width; + var x = w * Text.H_OFFSETS[this.textAlign||"left"]; + var lineHeight = this.lineHeight||this.getMeasuredLineHeight(); + var y = lineHeight * Text.V_OFFSETS[this.textBaseline||"top"]; + return this._rectangle.setValues(x, y, w, o.height); + }; + + /** + * Returns an object with width, height, and lines properties. The width and height are the visual width and height + * of the drawn text. The lines property contains an array of strings, one for + * each line of text that will be drawn, accounting for line breaks and wrapping. These strings have trailing + * whitespace removed. + * @method getMetrics + * @return {Object} An object with width, height, and lines properties. + **/ + p.getMetrics = function() { + var o = {lines:[]}; + o.lineHeight = this.lineHeight || this.getMeasuredLineHeight(); + o.vOffset = o.lineHeight * Text.V_OFFSETS[this.textBaseline||"top"]; + return this._drawText(null, o, o.lines); + }; + + /** + * Returns a clone of the Text instance. + * @method clone + * @return {Text} a clone of the Text instance. + **/ + p.clone = function() { + return this._cloneProps(new Text(this.text, this.font, this.color)); + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[Text (text="+ (this.text.length > 20 ? this.text.substr(0, 17)+"..." : this.text) +")]"; + }; + + +// private methods: + /** + * @method _cloneProps + * @param {Text} o + * @protected + * @return {Text} o + **/ + p._cloneProps = function(o) { + this.DisplayObject__cloneProps(o); + o.textAlign = this.textAlign; + o.textBaseline = this.textBaseline; + o.maxWidth = this.maxWidth; + o.outline = this.outline; + o.lineHeight = this.lineHeight; + o.lineWidth = this.lineWidth; + return o; + }; + + /** + * @method _getWorkingContext + * @param {CanvasRenderingContext2D} ctx + * @return {CanvasRenderingContext2D} + * @protected + **/ + p._prepContext = function(ctx) { + ctx.font = this.font||"10px sans-serif"; + ctx.textAlign = this.textAlign||"left"; + ctx.textBaseline = this.textBaseline||"top"; + return ctx; + }; + + /** + * Draws multiline text. + * @method _drawText + * @param {CanvasRenderingContext2D} ctx + * @param {Object} o + * @param {Array} lines + * @return {Object} + * @protected + **/ + p._drawText = function(ctx, o, lines) { + var paint = !!ctx; + if (!paint) { + ctx = Text._workingContext; + ctx.save(); + this._prepContext(ctx); + } + var lineHeight = this.lineHeight||this.getMeasuredLineHeight(); + + var maxW = 0, count = 0; + var hardLines = String(this.text).split(/(?:\r\n|\r|\n)/); + for (var i=0, l=hardLines.length; i this.lineWidth) { + // text wrapping: + var words = str.split(/(\s)/); + str = words[0]; + w = ctx.measureText(str).width; + + for (var j=1, jl=words.length; j this.lineWidth) { + if (paint) { this._drawTextLine(ctx, str, count*lineHeight); } + if (lines) { lines.push(str); } + if (w > maxW) { maxW = w; } + str = words[j+1]; + w = ctx.measureText(str).width; + count++; + } else { + str += words[j] + words[j+1]; + w += wordW; + } + } + } + + if (paint) { this._drawTextLine(ctx, str, count*lineHeight); } + if (lines) { lines.push(str); } + if (o && w == null) { w = ctx.measureText(str).width; } + if (w > maxW) { maxW = w; } + count++; + } + + if (o) { + o.width = maxW; + o.height = count*lineHeight; + } + if (!paint) { ctx.restore(); } + return o; + }; + + /** + * @method _drawTextLine + * @param {CanvasRenderingContext2D} ctx + * @param {String} text + * @param {Number} y + * @protected + **/ + p._drawTextLine = function(ctx, text, y) { + // Chrome 17 will fail to draw the text if the last param is included but null, so we feed it a large value instead: + if (this.outline) { ctx.strokeText(text, 0, y, this.maxWidth||0xFFFF); } + else { ctx.fillText(text, 0, y, this.maxWidth||0xFFFF); } + }; + + + /** + * @method _getMeasuredWidth + * @param {String} text + * @protected + **/ + p._getMeasuredWidth = function(text) { + var ctx = Text._workingContext; + ctx.save(); + var w = this._prepContext(ctx).measureText(text).width; + ctx.restore(); + return w; + }; + + + createjs.Text = createjs.promote(Text, "DisplayObject"); +}()); + +//############################################################################## +// BitmapText.js +//############################################################################## + +this.createjs = this.createjs || {}; + +(function () { + "use strict"; + + +// constructor: + /** + * Displays text using bitmap glyphs defined in a sprite sheet. Multi-line text is supported + * using new line characters, but automatic wrapping is not supported. See the + * {{#crossLink "BitmapText/spriteSheet:property"}}{{/crossLink}} + * property for more information on defining glyphs. + * + * Important: BitmapText extends Container, but is not designed to be used as one. + * As such, methods like addChild and removeChild are disabled. + * @class BitmapText + * @extends DisplayObject + * @param {String} [text=""] The text to display. + * @param {SpriteSheet} [spriteSheet=null] The spritesheet that defines the character glyphs. + * @constructor + **/ + function BitmapText(text, spriteSheet) { + this.Container_constructor(); + + + // public properties: + /** + * The text to display. + * @property text + * @type String + * @default "" + **/ + this.text = text||""; + + /** + * A SpriteSheet instance that defines the glyphs for this bitmap text. Each glyph/character + * should have a single frame animation defined in the sprite sheet named the same as + * corresponding character. For example, the following animation definition: + * + * "A": {frames: [0]} + * + * would indicate that the frame at index 0 of the spritesheet should be drawn for the "A" character. The short form + * is also acceptable: + * + * "A": 0 + * + * Note that if a character in the text is not found in the sprite sheet, it will also + * try to use the alternate case (upper or lower). + * + * See SpriteSheet for more information on defining sprite sheet data. + * @property spriteSheet + * @type SpriteSheet + * @default null + **/ + this.spriteSheet = spriteSheet; + + /** + * The height of each line of text. If 0, then it will use a line height calculated + * by checking for the height of the "1", "T", or "L" character (in that order). If + * those characters are not defined, it will use the height of the first frame of the + * sprite sheet. + * @property lineHeight + * @type Number + * @default 0 + **/ + this.lineHeight = 0; + + /** + * This spacing (in pixels) will be added after each character in the output. + * @property letterSpacing + * @type Number + * @default 0 + **/ + this.letterSpacing = 0; + + /** + * If a space character is not defined in the sprite sheet, then empty pixels equal to + * spaceWidth will be inserted instead. If 0, then it will use a value calculated + * by checking for the width of the "1", "l", "E", or "A" character (in that order). If + * those characters are not defined, it will use the width of the first frame of the + * sprite sheet. + * @property spaceWidth + * @type Number + * @default 0 + **/ + this.spaceWidth = 0; + + + // private properties: + /** + * @property _oldProps + * @type Object + * @protected + **/ + this._oldProps = {text:0,spriteSheet:0,lineHeight:0,letterSpacing:0,spaceWidth:0}; + } + var p = createjs.extend(BitmapText, createjs.Container); + + /** + * REMOVED. Removed in favor of using `MySuperClass_constructor`. + * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}} + * for details. + * + * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance. + * + * @method initialize + * @protected + * @deprecated + */ + // p.initialize = function() {}; // searchable for devs wondering where it is. + +// static properties: + /** + * BitmapText uses Sprite instances to draw text. To reduce the creation and destruction of instances (and thus garbage collection), it maintains + * an internal object pool of sprite instances to reuse. Increasing this value can cause more sprites to be + * retained, slightly increasing memory use, but reducing instantiation. + * @property maxPoolSize + * @type Number + * @static + * @default 100 + **/ + BitmapText.maxPoolSize = 100; + + /** + * Sprite object pool. + * @type {Array} + * @static + * @private + */ + BitmapText._spritePool = []; + + +// public methods: + /** + * Docced in superclass. + **/ + p.draw = function(ctx, ignoreCache) { + if (this.DisplayObject_draw(ctx, ignoreCache)) { return; } + this._updateText(); + this.Container_draw(ctx, ignoreCache); + }; + + /** + * Docced in superclass. + **/ + p.getBounds = function() { + this._updateText(); + return this.Container_getBounds(); + }; + + /** + * Returns true or false indicating whether the display object would be visible if drawn to a canvas. + * This does not account for whether it would be visible within the boundaries of the stage. + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method isVisible + * @return {Boolean} Boolean indicating whether the display object would be visible if drawn to a canvas + **/ + p.isVisible = function() { + var hasContent = this.cacheCanvas || (this.spriteSheet && this.spriteSheet.complete && this.text); + return !!(this.visible && this.alpha > 0 && this.scaleX !== 0 && this.scaleY !== 0 && hasContent); + }; + + p.clone = function() { + return this._cloneProps(new BitmapText(this.text, this.spriteSheet)); + }; + + /** + * Disabled in BitmapText. + * @method addChild + **/ + /** + * Disabled in BitmapText. + * @method addChildAt + **/ + /** + * Disabled in BitmapText. + * @method removeChild + **/ + /** + * Disabled in BitmapText. + * @method removeChildAt + **/ + /** + * Disabled in BitmapText. + * @method removeAllChildren + **/ + p.addChild = p.addChildAt = p.removeChild = p.removeChildAt = p.removeAllChildren = function() {}; + + +// private methods: + /** + * @method _cloneProps + * @param {BitmapText} o + * @return {BitmapText} o + * @protected + **/ + p._cloneProps = function(o) { + this.Container__cloneProps(o); + o.lineHeight = this.lineHeight; + o.letterSpacing = this.letterSpacing; + o.spaceWidth = this.spaceWidth; + return o; + }; + + /** + * @method _getFrameIndex + * @param {String} character + * @param {SpriteSheet} spriteSheet + * @return {Number} + * @protected + **/ + p._getFrameIndex = function(character, spriteSheet) { + var c, o = spriteSheet.getAnimation(character); + if (!o) { + (character != (c = character.toUpperCase())) || (character != (c = character.toLowerCase())) || (c=null); + if (c) { o = spriteSheet.getAnimation(c); } + } + return o && o.frames[0]; + }; + + /** + * @method _getFrame + * @param {String} character + * @param {SpriteSheet} spriteSheet + * @return {Object} + * @protected + **/ + p._getFrame = function(character, spriteSheet) { + var index = this._getFrameIndex(character, spriteSheet); + return index == null ? index : spriteSheet.getFrame(index); + }; + + /** + * @method _getLineHeight + * @param {SpriteSheet} ss + * @return {Number} + * @protected + **/ + p._getLineHeight = function(ss) { + var frame = this._getFrame("1",ss) || this._getFrame("T",ss) || this._getFrame("L",ss) || ss.getFrame(0); + return frame ? frame.rect.height : 1; + }; + /** + * @method _getSpaceWidth + * @param {SpriteSheet} ss + * @return {Number} + * @protected + **/ + p._getSpaceWidth = function(ss) { + var frame = this._getFrame("1",ss) || this._getFrame("l",ss) || this._getFrame("e",ss) || this._getFrame("a",ss) || ss.getFrame(0); + return frame ? frame.rect.width : 1; + }; + + /** + * @method _drawText + * @protected + **/ + p._updateText = function() { + var x=0, y=0, o=this._oldProps, change=false, spaceW=this.spaceWidth, lineH=this.lineHeight, ss=this.spriteSheet; + var pool=BitmapText._spritePool, kids=this.children, childIndex=0, numKids=kids.length, sprite; + + for (var n in o) { + if (o[n] != this[n]) { + o[n] = this[n]; + change = true; + } + } + if (!change) { return; } + + var hasSpace = !!this._getFrame(" ", ss); + if (!hasSpace && !spaceW) { spaceW = this._getSpaceWidth(ss); } + if (!lineH) { lineH = this._getLineHeight(ss); } + + for(var i=0, l=this.text.length; i childIndex) { + // faster than removeChild. + pool.push(sprite = kids.pop()); + sprite.parent = null; + numKids--; + } + if (pool.length > BitmapText.maxPoolSize) { pool.length = BitmapText.maxPoolSize; } + }; + + + createjs.BitmapText = createjs.promote(BitmapText, "Container"); +}()); + +//############################################################################## +// MovieClip.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * The MovieClip class associates a TweenJS Timeline with an EaselJS {{#crossLink "Container"}}{{/crossLink}}. It allows + * you to create objects which encapsulate timeline animations, state changes, and synched actions. Due to the + * complexities inherent in correctly setting up a MovieClip, it is largely intended for tool output and is not included + * in the main EaselJS library. + * + * Currently MovieClip only works properly if it is tick based (as opposed to time based) though some concessions have + * been made to support time-based timelines in the future. + * + *

    Example

    + * This example animates two shapes back and forth. The grey shape starts on the left, but we jump to a mid-point in + * the animation using {{#crossLink "MovieClip/gotoAndPlay"}}{{/crossLink}}. + * + * var stage = new createjs.Stage("canvas"); + * createjs.Ticker.addEventListener("tick", stage); + * + * var mc = new createjs.MovieClip(null, 0, true, {start:20}); + * stage.addChild(mc); + * + * var child1 = new createjs.Shape( + * new createjs.Graphics().beginFill("#999999") + * .drawCircle(30,30,30)); + * var child2 = new createjs.Shape( + * new createjs.Graphics().beginFill("#5a9cfb") + * .drawCircle(30,30,30)); + * + * mc.timeline.addTween( + * createjs.Tween.get(child1) + * .to({x:0}).to({x:60}, 50).to({x:0}, 50)); + * mc.timeline.addTween( + * createjs.Tween.get(child2) + * .to({x:60}).to({x:0}, 50).to({x:60}, 50)); + * + * mc.gotoAndPlay("start"); + * + * It is recommended to use tween.to() to animate and set properties (use no duration to have it set + * immediately), and the tween.wait() method to create delays between animations. Note that using the + * tween.set() method to affect properties will likely not provide the desired result. + * + * @class MovieClip + * @main MovieClip + * @extends Container + * @constructor + * @param {String} [mode=independent] Initial value for the mode property. One of {{#crossLink "MovieClip/INDEPENDENT:property"}}{{/crossLink}}, + * {{#crossLink "MovieClip/SINGLE_FRAME:property"}}{{/crossLink}}, or {{#crossLink "MovieClip/SYNCHED:property"}}{{/crossLink}}. + * The default is {{#crossLink "MovieClip/INDEPENDENT:property"}}{{/crossLink}}. + * @param {Number} [startPosition=0] Initial value for the {{#crossLink "MovieClip/startPosition:property"}}{{/crossLink}} + * property. + * @param {Boolean} [loop=true] Initial value for the {{#crossLink "MovieClip/loop:property"}}{{/crossLink}} + * property. The default is `true`. + * @param {Object} [labels=null] A hash of labels to pass to the {{#crossLink "MovieClip/timeline:property"}}{{/crossLink}} + * instance associated with this MovieClip. Labels only need to be passed if they need to be used. + **/ + function MovieClip(mode, startPosition, loop, labels) { + this.Container_constructor(); + !MovieClip.inited&&MovieClip.init(); // static init + + + // public properties: + /** + * Controls how this MovieClip advances its time. Must be one of 0 (INDEPENDENT), 1 (SINGLE_FRAME), or 2 (SYNCHED). + * See each constant for a description of the behaviour. + * @property mode + * @type String + * @default null + **/ + this.mode = mode||MovieClip.INDEPENDENT; + + /** + * Specifies what the first frame to play in this movieclip, or the only frame to display if mode is SINGLE_FRAME. + * @property startPosition + * @type Number + * @default 0 + */ + this.startPosition = startPosition || 0; + + /** + * Indicates whether this MovieClip should loop when it reaches the end of its timeline. + * @property loop + * @type Boolean + * @default true + */ + this.loop = loop; + + /** + * The current frame of the movieclip. + * @property currentFrame + * @type Number + * @default 0 + * @readonly + */ + this.currentFrame = 0; + + /** + * The TweenJS Timeline that is associated with this MovieClip. This is created automatically when the MovieClip + * instance is initialized. Animations are created by adding TweenJS Tween + * instances to the timeline. + * + *

    Example

    + * + * var tween = createjs.Tween.get(target).to({x:0}).to({x:100}, 30); + * var mc = new createjs.MovieClip(); + * mc.timeline.addTween(tween); + * + * Elements can be added and removed from the timeline by toggling an "_off" property + * using the tweenInstance.to() method. Note that using Tween.set is not recommended to + * create MovieClip animations. The following example will toggle the target off on frame 0, and then back on for + * frame 1. You can use the "visible" property to achieve the same effect. + * + * var tween = createjs.Tween.get(target).to({_off:false}) + * .wait(1).to({_off:true}) + * .wait(1).to({_off:false}); + * + * @property timeline + * @type Timeline + * @default null + */ + this.timeline = new createjs.Timeline(null, labels, {paused:true, position:startPosition, useTicks:true}); + + /** + * If true, the MovieClip's position will not advance when ticked. + * @property paused + * @type Boolean + * @default false + */ + this.paused = false; + + /** + * If true, actions in this MovieClip's tweens will be run when the playhead advances. + * @property actionsEnabled + * @type Boolean + * @default true + */ + this.actionsEnabled = true; + + /** + * If true, the MovieClip will automatically be reset to its first frame whenever the timeline adds + * it back onto the display list. This only applies to MovieClip instances with mode=INDEPENDENT. + *

    + * For example, if you had a character animation with a "body" child MovieClip instance + * with different costumes on each frame, you could set body.autoReset = false, so that + * you can manually change the frame it is on, without worrying that it will be reset + * automatically. + * @property autoReset + * @type Boolean + * @default true + */ + this.autoReset = true; + + /** + * An array of bounds for each frame in the MovieClip. This is mainly intended for tool output. + * @property frameBounds + * @type Array + * @default null + */ + this.frameBounds = this.frameBounds||null; // TODO: Deprecated. This is for backwards support of FlashCC + + /** + * By default MovieClip instances advance one frame per tick. Specifying a framerate for the MovieClip + * will cause it to advance based on elapsed time between ticks as appropriate to maintain the target + * framerate. + * + * For example, if a MovieClip with a framerate of 10 is placed on a Stage being updated at 40fps, then the MovieClip will + * advance roughly one frame every 4 ticks. This will not be exact, because the time between each tick will + * vary slightly between frames. + * + * This feature is dependent on the tick event object (or an object with an appropriate "delta" property) being + * passed into {{#crossLink "Stage/update"}}{{/crossLink}}. + * @property framerate + * @type {Number} + * @default null + **/ + this.framerate = null; + + + // private properties: + /** + * @property _synchOffset + * @type Number + * @default 0 + * @private + */ + this._synchOffset = 0; + + /** + * @property _prevPos + * @type Number + * @default -1 + * @private + */ + this._prevPos = -1; // TODO: evaluate using a ._reset Boolean prop instead of -1. + + /** + * @property _prevPosition + * @type Number + * @default 0 + * @private + */ + this._prevPosition = 0; + + /** + * The time remaining from the previous tick, only applicable when .framerate is set. + * @property _t + * @type Number + * @private + */ + this._t = 0; + + /** + * List of display objects that are actively being managed by the MovieClip. + * @property _managed + * @type Object + * @private + */ + this._managed = {}; + } + var p = createjs.extend(MovieClip, createjs.Container); + + +// constants: + /** + * The MovieClip will advance independently of its parent, even if its parent is paused. + * This is the default mode. + * @property INDEPENDENT + * @static + * @type String + * @default "independent" + * @readonly + **/ + MovieClip.INDEPENDENT = "independent"; + + /** + * The MovieClip will only display a single frame (as determined by the startPosition property). + * @property SINGLE_FRAME + * @static + * @type String + * @default "single" + * @readonly + **/ + MovieClip.SINGLE_FRAME = "single"; + + /** + * The MovieClip will be advanced only when its parent advances and will be synched to the position of + * the parent MovieClip. + * @property SYNCHED + * @static + * @type String + * @default "synched" + * @readonly + **/ + MovieClip.SYNCHED = "synched"; + + +// static properties: + MovieClip.inited = false; + + +// static methods: + MovieClip.init = function() { + if (MovieClip.inited) { return; } + // plugins introduce some overhead to Tween, so we only install this if an MC is instantiated. + MovieClipPlugin.install(); + MovieClip.inited = true; + }; + + +// getter / setters: + /** + * Use the {{#crossLink "MovieClip/labels:property"}}{{/crossLink}} property instead. + * @method getLabels + * @return {Array} + * @deprecated + **/ + p.getLabels = function() { + return this.timeline.getLabels(); + }; + + /** + * Use the {{#crossLink "MovieClip/currentLabel:property"}}{{/crossLink}} property instead. + * @method getCurrentLabel + * @return {String} + * @deprecated + **/ + p.getCurrentLabel = function() { + this._updateTimeline(); + return this.timeline.getCurrentLabel(); + }; + + /** + * Use the {{#crossLink "MovieClip/duration:property"}}{{/crossLink}} property instead. + * @method getDuration + * @return {Number} + * @protected + **/ + p.getDuration = function() { + return this.timeline.duration; + }; + + /** + * Returns an array of objects with label and position (aka frame) properties, sorted by position. + * Shortcut to TweenJS: Timeline.getLabels(); + * @property labels + * @type {Array} + * @readonly + **/ + + /** + * Returns the name of the label on or immediately before the current frame. See TweenJS: Timeline.getCurrentLabel() + * for more information. + * @property currentLabel + * @type {String} + * @readonly + **/ + + /** + * Returns the duration of this MovieClip in seconds or ticks. Identical to {{#crossLink "MovieClip/duration:property"}}{{/crossLink}} + * and provided for Flash API compatibility. + * @property totalFrames + * @type {Number} + * @readonly + **/ + + /** + * Returns the duration of this MovieClip in seconds or ticks. + * @property duration + * @type {Number} + * @readonly + **/ + try { + Object.defineProperties(p, { + labels: { get: p.getLabels }, + currentLabel: { get: p.getCurrentLabel }, + totalFrames: { get: p.getDuration }, + duration: { get: p.getDuration } + }); + } catch (e) {} + + +// public methods: + /** + * Constructor alias for backwards compatibility. This method will be removed in future versions. + * Subclasses should be updated to use {{#crossLink "Utility Methods/extends"}}{{/crossLink}}. + * @method initialize + * @deprecated in favour of `createjs.promote()` + **/ + p.initialize = MovieClip; // TODO: Deprecated. This is for backwards support of FlashCC + + /** + * Returns true or false indicating whether the display object would be visible if drawn to a canvas. + * This does not account for whether it would be visible within the boundaries of the stage. + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method isVisible + * @return {Boolean} Boolean indicating whether the display object would be visible if drawn to a canvas + **/ + p.isVisible = function() { + // children are placed in draw, so we can't determine if we have content. + return !!(this.visible && this.alpha > 0 && this.scaleX != 0 && this.scaleY != 0); + }; + + /** + * Draws the display object into the specified context ignoring its visible, alpha, shadow, and transform. + * Returns true if the draw was handled (useful for overriding functionality). + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method draw + * @param {CanvasRenderingContext2D} ctx The canvas 2D context object to draw into. + * @param {Boolean} ignoreCache Indicates whether the draw operation should ignore any current cache. + * For example, used for drawing the cache (to prevent it from simply drawing an existing cache back + * into itself). + **/ + p.draw = function(ctx, ignoreCache) { + // draw to cache first: + if (this.DisplayObject_draw(ctx, ignoreCache)) { return true; } + this._updateTimeline(); + this.Container_draw(ctx, ignoreCache); + return true; + }; + + /** + * Sets paused to false. + * @method play + **/ + p.play = function() { + this.paused = false; + }; + + /** + * Sets paused to true. + * @method stop + **/ + p.stop = function() { + this.paused = true; + }; + + /** + * Advances this movie clip to the specified position or label and sets paused to false. + * @method gotoAndPlay + * @param {String|Number} positionOrLabel The animation name or frame number to go to. + **/ + p.gotoAndPlay = function(positionOrLabel) { + this.paused = false; + this._goto(positionOrLabel); + }; + + /** + * Advances this movie clip to the specified position or label and sets paused to true. + * @method gotoAndStop + * @param {String|Number} positionOrLabel The animation or frame name to go to. + **/ + p.gotoAndStop = function(positionOrLabel) { + this.paused = true; + this._goto(positionOrLabel); + }; + + /** + * Advances the playhead. This occurs automatically each tick by default. + * @param [time] {Number} The amount of time in ms to advance by. Only applicable if framerate is set. + * @method advance + */ + p.advance = function(time) { + // TODO: should we worry at all about clips who change their own modes via frame scripts? + var independent = MovieClip.INDEPENDENT; + if (this.mode != independent) { return; } + + var o=this, fps = o.framerate; + while ((o = o.parent) && fps == null) { + if (o.mode == independent) { fps = o._framerate; } + } + this._framerate = fps; + + var t = (fps != null && fps != -1 && time != null) ? time/(1000/fps) + this._t : 1; + var frames = t|0; + this._t = t-frames; // leftover time + + while (!this.paused && frames--) { + this._prevPosition = (this._prevPos < 0) ? 0 : this._prevPosition+1; + this._updateTimeline(); + } + }; + + /** + * MovieClip instances cannot be cloned. + * @method clone + **/ + p.clone = function() { + // TODO: add support for this? Need to clone the Timeline & retarget tweens - pretty complex. + throw("MovieClip cannot be cloned.") + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[MovieClip (name="+ this.name +")]"; + }; + + +// private methods: + /** + * @method _tick + * @param {Object} evtObj An event object that will be dispatched to all tick listeners. This object is reused between dispatchers to reduce construction & GC costs. + * function. + * @protected + **/ + p._tick = function(evtObj) { + this.advance(evtObj&&evtObj.delta); + this.Container__tick(evtObj); + }; + + /** + * @method _goto + * @param {String|Number} positionOrLabel The animation name or frame number to go to. + * @protected + **/ + p._goto = function(positionOrLabel) { + var pos = this.timeline.resolve(positionOrLabel); + if (pos == null) { return; } + // prevent _updateTimeline from overwriting the new position because of a reset: + if (this._prevPos == -1) { this._prevPos = NaN; } + this._prevPosition = pos; + this._t = 0; + this._updateTimeline(); + }; + + /** + * @method _reset + * @private + **/ + p._reset = function() { + this._prevPos = -1; + this._t = this.currentFrame = 0; + this.paused = false; + }; + + /** + * @method _updateTimeline + * @protected + **/ + p._updateTimeline = function() { + var tl = this.timeline; + var synched = this.mode != MovieClip.INDEPENDENT; + tl.loop = (this.loop==null) ? true : this.loop; + + var pos = synched ? this.startPosition + (this.mode==MovieClip.SINGLE_FRAME?0:this._synchOffset) : (this._prevPos < 0 ? 0 : this._prevPosition); + var mode = synched || !this.actionsEnabled ? createjs.Tween.NONE : null; + + // pre-assign currentFrame so it is available to frame scripts: + this.currentFrame = tl._calcPosition(pos); + + // update timeline position, ignoring actions if this is a graphic. + tl.setPosition(pos, mode); + + this._prevPosition = tl._prevPosition; + if (this._prevPos == tl._prevPos) { return; } + this.currentFrame = this._prevPos = tl._prevPos; + + for (var n in this._managed) { this._managed[n] = 1; } + + var tweens = tl._tweens; + for (var i=0, l=tweens.length; i=0; i--) { + var id = kids[i].id; + if (this._managed[id] == 1) { + this.removeChildAt(i); + delete(this._managed[id]); + } + } + }; + + /** + * @method _setState + * @param {Array} state + * @param {Number} offset + * @protected + **/ + p._setState = function(state, offset) { + if (!state) { return; } + for (var i=state.length-1;i>=0;i--) { + var o = state[i]; + var target = o.t; + var props = o.p; + for (var n in props) { target[n] = props[n]; } + this._addManagedChild(target, offset); + } + }; + + /** + * Adds a child to the timeline, and sets it up as a managed child. + * @method _addManagedChild + * @param {MovieClip} child The child MovieClip to manage + * @param {Number} offset + * @private + **/ + p._addManagedChild = function(child, offset) { + if (child._off) { return; } + this.addChildAt(child,0); + + if (child instanceof MovieClip) { + child._synchOffset = offset; + // TODO: this does not precisely match Flash. Flash loses track of the clip if it is renamed or removed from the timeline, which causes it to reset. + if (child.mode == MovieClip.INDEPENDENT && child.autoReset && !this._managed[child.id]) { child._reset(); } + } + this._managed[child.id] = 2; + }; + + /** + * @method _getBounds + * @param {Matrix2D} matrix + * @param {Boolean} ignoreTransform + * @return {Rectangle} + * @protected + **/ + p._getBounds = function(matrix, ignoreTransform) { + var bounds = this.DisplayObject_getBounds(); + if (!bounds) { + this._updateTimeline(); + if (this.frameBounds) { bounds = this._rectangle.copy(this.frameBounds[this.currentFrame]); } + } + if (bounds) { return this._transformBounds(bounds, matrix, ignoreTransform); } + return this.Container__getBounds(matrix, ignoreTransform); + }; + + + createjs.MovieClip = createjs.promote(MovieClip, "Container"); + + + +// MovieClipPlugin for TweenJS: + /** + * This plugin works with TweenJS to prevent the startPosition + * property from tweening. + * @private + * @class MovieClipPlugin + * @constructor + **/ + function MovieClipPlugin() { + throw("MovieClipPlugin cannot be instantiated.") + } + + /** + * @method priority + * @private + **/ + MovieClipPlugin.priority = 100; // very high priority, should run first + + /** + * @method install + * @private + **/ + MovieClipPlugin.install = function() { + createjs.Tween.installPlugin(MovieClipPlugin, ["startPosition"]); + }; + + /** + * @method init + * @param {Tween} tween + * @param {String} prop + * @param {String|Number|Boolean} value + * @private + **/ + MovieClipPlugin.init = function(tween, prop, value) { + return value; + }; + + /** + * @method step + * @private + **/ + MovieClipPlugin.step = function() { + // unused. + }; + + /** + * @method tween + * @param {Tween} tween + * @param {String} prop + * @param {String | Number | Boolean} value + * @param {Array} startValues + * @param {Array} endValues + * @param {Number} ratio + * @param {Object} wait + * @param {Object} end + * @return {*} + */ + MovieClipPlugin.tween = function(tween, prop, value, startValues, endValues, ratio, wait, end) { + if (!(tween.target instanceof MovieClip)) { return value; } + return (ratio == 1 ? endValues[prop] : startValues[prop]); + }; + +}()); + +//############################################################################## +// SpriteSheetUtils.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * The SpriteSheetUtils class is a collection of static methods for working with {{#crossLink "SpriteSheet"}}{{/crossLink}}s. + * A sprite sheet is a series of images (usually animation frames) combined into a single image on a regular grid. For + * example, an animation consisting of 8 100x100 images could be combined into a 400x200 sprite sheet (4 frames across + * by 2 high). The SpriteSheetUtils class uses a static interface and should not be instantiated. + * @class SpriteSheetUtils + * @static + **/ + function SpriteSheetUtils() { + throw "SpriteSheetUtils cannot be instantiated"; + } + + +// private static properties: + /** + * @property _workingCanvas + * @static + * @type HTMLCanvasElement | Object + * @protected + */ + /** + * @property _workingContext + * @static + * @type CanvasRenderingContext2D + * @protected + */ + var canvas = (createjs.createCanvas?createjs.createCanvas():document.createElement("canvas")); + if (canvas.getContext) { + SpriteSheetUtils._workingCanvas = canvas; + SpriteSheetUtils._workingContext = canvas.getContext("2d"); + canvas.width = canvas.height = 1; + } + + +// public static methods: + /** + * This is an experimental method, and may be buggy. Please report issues.

    + * Extends the existing sprite sheet by flipping the original frames horizontally, vertically, or both, + * and adding appropriate animation & frame data. The flipped animations will have a suffix added to their names + * (_h, _v, _hv as appropriate). Make sure the sprite sheet images are fully loaded before using this method. + *

    + * For example:
    + * SpriteSheetUtils.addFlippedFrames(mySpriteSheet, true, true); + * The above would add frames that are flipped horizontally AND frames that are flipped vertically. + *

    + * Note that you can also flip any display object by setting its scaleX or scaleY to a negative value. On some + * browsers (especially those without hardware accelerated canvas) this can result in slightly degraded performance, + * which is why addFlippedFrames is available. + * @method addFlippedFrames + * @static + * @param {SpriteSheet} spriteSheet + * @param {Boolean} horizontal If true, horizontally flipped frames will be added. + * @param {Boolean} vertical If true, vertically flipped frames will be added. + * @param {Boolean} both If true, frames that are flipped both horizontally and vertically will be added. + * @deprecated Modern browsers perform better when flipping via a transform (ex. scaleX=-1) rendering this obsolete. + **/ + SpriteSheetUtils.addFlippedFrames = function(spriteSheet, horizontal, vertical, both) { + if (!horizontal && !vertical && !both) { return; } + + var count = 0; + if (horizontal) { SpriteSheetUtils._flip(spriteSheet,++count,true,false); } + if (vertical) { SpriteSheetUtils._flip(spriteSheet,++count,false,true); } + if (both) { SpriteSheetUtils._flip(spriteSheet,++count,true,true); } + }; + + /** + * Returns a single frame of the specified sprite sheet as a new PNG image. An example of when this may be useful is + * to use a spritesheet frame as the source for a bitmap fill. + * + * WARNING: In almost all cases it is better to display a single frame using a {{#crossLink "Sprite"}}{{/crossLink}} + * with a {{#crossLink "Sprite/gotoAndStop"}}{{/crossLink}} call than it is to slice out a frame using this + * method and display it with a Bitmap instance. You can also crop an image using the {{#crossLink "Bitmap/sourceRect"}}{{/crossLink}} + * property of {{#crossLink "Bitmap"}}{{/crossLink}}. + * + * The extractFrame method may cause cross-domain warnings since it accesses pixels directly on the canvas. + * @method extractFrame + * @static + * @param {SpriteSheet} spriteSheet The SpriteSheet instance to extract a frame from. + * @param {Number|String} frameOrAnimation The frame number or animation name to extract. If an animation + * name is specified, only the first frame of the animation will be extracted. + * @return {HTMLImageElement} a single frame of the specified sprite sheet as a new PNG image. + */ + SpriteSheetUtils.extractFrame = function(spriteSheet, frameOrAnimation) { + if (isNaN(frameOrAnimation)) { + frameOrAnimation = spriteSheet.getAnimation(frameOrAnimation).frames[0]; + } + var data = spriteSheet.getFrame(frameOrAnimation); + if (!data) { return null; } + var r = data.rect; + var canvas = SpriteSheetUtils._workingCanvas; + canvas.width = r.width; + canvas.height = r.height; + SpriteSheetUtils._workingContext.drawImage(data.image, r.x, r.y, r.width, r.height, 0, 0, r.width, r.height); + var img = document.createElement("img"); + img.src = canvas.toDataURL("image/png"); + return img; + }; + + /** + * Merges the rgb channels of one image with the alpha channel of another. This can be used to combine a compressed + * JPEG image containing color data with a PNG32 monochromatic image containing alpha data. With certain types of + * images (those with detail that lend itself to JPEG compression) this can provide significant file size savings + * versus a single RGBA PNG32. This method is very fast (generally on the order of 1-2 ms to run). + * @method mergeAlpha + * @static + * @param {HTMLImageElement} rbgImage The image (or canvas) containing the RGB channels to use. + * @param {HTMLImageElement} alphaImage The image (or canvas) containing the alpha channel to use. + * @param {HTMLCanvasElement} canvas Optional. If specified, this canvas will be used and returned. If not, a new canvas will be created. + * @return {HTMLCanvasElement} A canvas with the combined image data. This can be used as a source for Bitmap or SpriteSheet. + * @deprecated Tools such as ImageAlpha generally provide better results. This will be moved to sandbox in the future. + */ + SpriteSheetUtils.mergeAlpha = function(rgbImage, alphaImage, canvas) { + if (!canvas) { canvas = createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"); } + canvas.width = Math.max(alphaImage.width, rgbImage.width); + canvas.height = Math.max(alphaImage.height, rgbImage.height); + var ctx = canvas.getContext("2d"); + ctx.save(); + ctx.drawImage(rgbImage,0,0); + ctx.globalCompositeOperation = "destination-in"; + ctx.drawImage(alphaImage,0,0); + ctx.restore(); + return canvas; + }; + + +// private static methods: + SpriteSheetUtils._flip = function(spriteSheet, count, h, v) { + var imgs = spriteSheet._images; + var canvas = SpriteSheetUtils._workingCanvas; + var ctx = SpriteSheetUtils._workingContext; + var il = imgs.length/count; + for (var i=0;iREMOVED. Removed in favor of using `MySuperClass_constructor`. + * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}} + * for details. + * + * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance. + * + * @method initialize + * @protected + * @deprecated + */ + // p.initialize = function() {}; // searchable for devs wondering where it is. + + +// constants: + SpriteSheetBuilder.ERR_DIMENSIONS = "frame dimensions exceed max spritesheet dimensions"; + SpriteSheetBuilder.ERR_RUNNING = "a build is already running"; + +// events: + /** + * Dispatched when a build completes. + * @event complete + * @param {Object} target The object that dispatched the event. + * @param {String} type The event type. + * @since 0.6.0 + */ + + /** + * Dispatched when an asynchronous build has progress. + * @event progress + * @param {Object} target The object that dispatched the event. + * @param {String} type The event type. + * @param {Number} progress The current progress value (0-1). + * @since 0.6.0 + */ + + +// public methods: + /** + * Adds a frame to the {{#crossLink "SpriteSheet"}}{{/crossLink}}. Note that the frame will not be drawn until you + * call {{#crossLink "SpriteSheetBuilder/build"}}{{/crossLink}} method. The optional setup params allow you to have + * a function run immediately before the draw occurs. For example, this allows you to add a single source multiple + * times, but manipulate it or its children to change it to generate different frames. + * + * Note that the source's transformations (x, y, scale, rotate, alpha) will be ignored, except for regX/Y. To apply + * transforms to a source object and have them captured in the SpriteSheet, simply place it into a {{#crossLink "Container"}}{{/crossLink}} + * and pass in the Container as the source. + * @method addFrame + * @param {DisplayObject} source The source {{#crossLink "DisplayObject"}}{{/crossLink}} to draw as the frame. + * @param {Rectangle} [sourceRect] A {{#crossLink "Rectangle"}}{{/crossLink}} defining the portion of the + * source to draw to the frame. If not specified, it will look for a `getBounds` method, bounds property, or + * `nominalBounds` property on the source to use. If one is not found, the frame will be skipped. + * @param {Number} [scale=1] Optional. The scale to draw this frame at. Default is 1. + * @param {Function} [setupFunction] A function to call immediately before drawing this frame. It will be called with two parameters: the source, and setupData. + * @param {Object} [setupData] Arbitrary setup data to pass to setupFunction as the second parameter. + * @return {Number} The index of the frame that was just added, or null if a sourceRect could not be determined. + **/ + p.addFrame = function(source, sourceRect, scale, setupFunction, setupData) { + if (this._data) { throw SpriteSheetBuilder.ERR_RUNNING; } + var rect = sourceRect||source.bounds||source.nominalBounds; + if (!rect&&source.getBounds) { rect = source.getBounds(); } + if (!rect) { return null; } + scale = scale||1; + return this._frames.push({source:source, sourceRect:rect, scale:scale, funct:setupFunction, data:setupData, index:this._frames.length, height:rect.height*scale})-1; + }; + + /** + * Adds an animation that will be included in the created {{#crossLink "SpriteSheet"}}{{/crossLink}}. + * @method addAnimation + * @param {String} name The name for the animation. + * @param {Array} frames An array of frame indexes that comprise the animation. Ex. [3,6,5] would describe an animation + * that played frame indexes 3, 6, and 5 in that order. + * @param {String} [next] Specifies the name of the animation to continue to after this animation ends. You can + * also pass false to have the animation stop when it ends. By default it will loop to the start of the same animation. + * @param {Number} [speed] Specifies a frame advance speed for this animation. For example, a value of 0.5 would + * cause the animation to advance every second tick. Note that earlier versions used `frequency` instead, which had + * the opposite effect. + **/ + p.addAnimation = function(name, frames, next, speed) { + if (this._data) { throw SpriteSheetBuilder.ERR_RUNNING; } + this._animations[name] = {frames:frames, next:next, speed:speed}; + }; + + /** + * This will take a {{#crossLink "MovieClip"}}{{/crossLink}} instance, and add its frames and labels to this + * builder. Labels will be added as an animation running from the label index to the next label. For example, if + * there is a label named "foo" at frame 0 and a label named "bar" at frame 10, in a MovieClip with 15 frames, it + * will add an animation named "foo" that runs from frame index 0 to 9, and an animation named "bar" that runs from + * frame index 10 to 14. + * + * Note that this will iterate through the full MovieClip with {{#crossLink "MovieClip/actionsEnabled:property"}}{{/crossLink}} + * set to `false`, ending on the last frame. + * @method addMovieClip + * @param {MovieClip} source The source MovieClip instance to add to the SpriteSheet. + * @param {Rectangle} [sourceRect] A {{#crossLink "Rectangle"}}{{/crossLink}} defining the portion of the source to + * draw to the frame. If not specified, it will look for a {{#crossLink "DisplayObject/getBounds"}}{{/crossLink}} + * method, `frameBounds` Array, `bounds` property, or `nominalBounds` property on the source to use. If one is not + * found, the MovieClip will be skipped. + * @param {Number} [scale=1] The scale to draw the movie clip at. + * @param {Function} [setupFunction] A function to call immediately before drawing each frame. It will be called + * with three parameters: the source, setupData, and the frame index. + * @param {Object} [setupData] Arbitrary setup data to pass to setupFunction as the second parameter. + * @param {Function} [labelFunction] This method will be called for each MovieClip label that is added with four + * parameters: the label name, the source MovieClip instance, the starting frame index (in the movieclip timeline) + * and the end index. It must return a new name for the label/animation, or `false` to exclude the label. + **/ + p.addMovieClip = function(source, sourceRect, scale, setupFunction, setupData, labelFunction) { + if (this._data) { throw SpriteSheetBuilder.ERR_RUNNING; } + var rects = source.frameBounds; + var rect = sourceRect||source.bounds||source.nominalBounds; + if (!rect&&source.getBounds) { rect = source.getBounds(); } + if (!rect && !rects) { return; } + + var i, l, baseFrameIndex = this._frames.length; + var duration = source.timeline.duration; + for (i=0; i this.maxHeight) { throw SpriteSheetBuilder.ERR_DIMENSIONS; } + var y=0, x=0; + var img = 0; + while (frames.length) { + var o = this._fillRow(frames, y, img, dataFrames, pad); + if (o.w > x) { x = o.w; } + y += o.h; + if (!o.h || !frames.length) { + var canvas = createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"); + canvas.width = this._getSize(x,this.maxWidth); + canvas.height = this._getSize(y,this.maxHeight); + this._data.images[img] = canvas; + if (!o.h) { + x=y=0; + img++; + } + } + } + }; + + /** + * @method _setupMovieClipFrame + * @protected + * @return {Number} The width & height of the row. + **/ + p._setupMovieClipFrame = function(source, data) { + var ae = source.actionsEnabled; + source.actionsEnabled = false; + source.gotoAndStop(data.i); + source.actionsEnabled = ae; + data.f&&data.f(source, data.d, data.i); + }; + + /** + * @method _getSize + * @protected + * @return {Number} The width & height of the row. + **/ + p._getSize = function(size,max) { + var pow = 4; + while (Math.pow(2,++pow) < size){} + return Math.min(max,Math.pow(2,pow)); + }; + + /** + * @method _fillRow + * @param {Array} frames + * @param {Number} y + * @param {HTMLImageElement} img + * @param {Object} dataFrames + * @param {Number} pad + * @protected + * @return {Number} The width & height of the row. + **/ + p._fillRow = function(frames, y, img, dataFrames, pad) { + var w = this.maxWidth; + var maxH = this.maxHeight; + y += pad; + var h = maxH-y; + var x = pad; + var height = 0; + for (var i=frames.length-1; i>=0; i--) { + var frame = frames[i]; + var sc = this._scale*frame.scale; + var rect = frame.sourceRect; + var source = frame.source; + var rx = Math.floor(sc*rect.x-pad); + var ry = Math.floor(sc*rect.y-pad); + var rh = Math.ceil(sc*rect.height+pad*2); + var rw = Math.ceil(sc*rect.width+pad*2); + if (rw > w) { throw SpriteSheetBuilder.ERR_DIMENSIONS; } + if (rh > h || x+rw > w) { continue; } + frame.img = img; + frame.rect = new createjs.Rectangle(x,y,rw,rh); + height = height || rh; + frames.splice(i,1); + dataFrames[frame.index] = [x,y,rw,rh,img,Math.round(-rx+sc*source.regX-pad),Math.round(-ry+sc*source.regY-pad)]; + x += rw; + } + return {w:x, h:height}; + }; + + /** + * @method _endBuild + * @protected + **/ + p._endBuild = function() { + this.spriteSheet = new createjs.SpriteSheet(this._data); + this._data = null; + this.progress = 1; + this.dispatchEvent("complete"); + }; + + /** + * @method _run + * @protected + **/ + p._run = function() { + var ts = Math.max(0.01, Math.min(0.99, this.timeSlice||0.3))*50; + var t = (new Date()).getTime()+ts; + var complete = false; + while (t > (new Date()).getTime()) { + if (!this._drawNext()) { complete = true; break; } + } + if (complete) { + this._endBuild(); + } else { + var _this = this; + this._timerID = setTimeout(function() { _this._run(); }, 50-ts); + } + var p = this.progress = this._index/this._frames.length; + if (this.hasEventListener("progress")) { + var evt = new createjs.Event("progress"); + evt.progress = p; + this.dispatchEvent(evt); + } + }; + + /** + * @method _drawNext + * @protected + * @return Boolean Returns false if this is the last draw. + **/ + p._drawNext = function() { + var frame = this._frames[this._index]; + var sc = frame.scale*this._scale; + var rect = frame.rect; + var sourceRect = frame.sourceRect; + var canvas = this._data.images[frame.img]; + var ctx = canvas.getContext("2d"); + frame.funct&&frame.funct(frame.source, frame.data); + ctx.save(); + ctx.beginPath(); + ctx.rect(rect.x, rect.y, rect.width, rect.height); + ctx.clip(); + ctx.translate(Math.ceil(rect.x-sourceRect.x*sc), Math.ceil(rect.y-sourceRect.y*sc)); + ctx.scale(sc,sc); + frame.source.draw(ctx); // display object will draw itself. + ctx.restore(); + return (++this._index) < this._frames.length; + }; + + + createjs.SpriteSheetBuilder = createjs.promote(SpriteSheetBuilder, "EventDispatcher"); +}()); + +//############################################################################## +// DOMElement.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * This class is still experimental, and more advanced use is likely to be buggy. Please report bugs. + * + * A DOMElement allows you to associate a HTMLElement with the display list. It will be transformed + * within the DOM as though it is child of the {{#crossLink "Container"}}{{/crossLink}} it is added to. However, it is + * not rendered to canvas, and as such will retain whatever z-index it has relative to the canvas (ie. it will be + * drawn in front of or behind the canvas). + * + * The position of a DOMElement is relative to their parent node in the DOM. It is recommended that + * the DOM Object be added to a div that also contains the canvas so that they share the same position + * on the page. + * + * DOMElement is useful for positioning HTML elements over top of canvas content, and for elements + * that you want to display outside the bounds of the canvas. For example, a tooltip with rich HTML + * content. + * + *

    Mouse Interaction

    + * + * DOMElement instances are not full EaselJS display objects, and do not participate in EaselJS mouse + * events or support methods like hitTest. To get mouse events from a DOMElement, you must instead add handlers to + * the htmlElement (note, this does not support EventDispatcher) + * + * var domElement = new createjs.DOMElement(htmlElement); + * domElement.htmlElement.onclick = function() { + * console.log("clicked"); + * } + * + * @class DOMElement + * @extends DisplayObject + * @constructor + * @param {HTMLElement} htmlElement A reference or id for the DOM element to manage. + */ + function DOMElement(htmlElement) { + this.DisplayObject_constructor(); + + if (typeof(htmlElement)=="string") { htmlElement = document.getElementById(htmlElement); } + this.mouseEnabled = false; + + var style = htmlElement.style; + style.position = "absolute"; + style.transformOrigin = style.WebkitTransformOrigin = style.msTransformOrigin = style.MozTransformOrigin = style.OTransformOrigin = "0% 0%"; + + + // public properties: + /** + * The DOM object to manage. + * @property htmlElement + * @type HTMLElement + */ + this.htmlElement = htmlElement; + + + // private properties: + /** + * @property _oldMtx + * @type Matrix2D + * @protected + */ + this._oldProps = null; + } + var p = createjs.extend(DOMElement, createjs.DisplayObject); + + // TODO: deprecated + // p.initialize = function() {}; // searchable for devs wondering where it is. REMOVED. See docs for details. + + +// public methods: + /** + * Returns true or false indicating whether the display object would be visible if drawn to a canvas. + * This does not account for whether it would be visible within the boundaries of the stage. + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method isVisible + * @return {Boolean} Boolean indicating whether the display object would be visible if drawn to a canvas + */ + p.isVisible = function() { + return this.htmlElement != null; + }; + + /** + * Draws the display object into the specified context ignoring its visible, alpha, shadow, and transform. + * Returns true if the draw was handled (useful for overriding functionality). + * NOTE: This method is mainly for internal use, though it may be useful for advanced uses. + * @method draw + * @param {CanvasRenderingContext2D} ctx The canvas 2D context object to draw into. + * @param {Boolean} ignoreCache Indicates whether the draw operation should ignore any current cache. + * For example, used for drawing the cache (to prevent it from simply drawing an existing cache back + * into itself). + * @return {Boolean} + */ + p.draw = function(ctx, ignoreCache) { + // this relies on the _tick method because draw isn't called if the parent is not visible. + // the actual update happens in _handleDrawEnd + return true; + }; + + /** + * Not applicable to DOMElement. + * @method cache + */ + p.cache = function() {}; + + /** + * Not applicable to DOMElement. + * @method uncache + */ + p.uncache = function() {}; + + /** + * Not applicable to DOMElement. + * @method updateCache + */ + p.updateCache = function() {}; + + /** + * Not applicable to DOMElement. + * @method hitTest + */ + p.hitTest = function() {}; + + /** + * Not applicable to DOMElement. + * @method localToGlobal + */ + p.localToGlobal = function() {}; + + /** + * Not applicable to DOMElement. + * @method globalToLocal + */ + p.globalToLocal = function() {}; + + /** + * Not applicable to DOMElement. + * @method localToLocal + */ + p.localToLocal = function() {}; + + /** + * DOMElement cannot be cloned. Throws an error. + * @method clone + */ + p.clone = function() { + throw("DOMElement cannot be cloned.") + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + */ + p.toString = function() { + return "[DOMElement (name="+ this.name +")]"; + }; + + /** + * Interaction events should be added to `htmlElement`, and not the DOMElement instance, since DOMElement instances + * are not full EaselJS display objects and do not participate in EaselJS mouse events. + * @event click + */ + + /** + * Interaction events should be added to `htmlElement`, and not the DOMElement instance, since DOMElement instances + * are not full EaselJS display objects and do not participate in EaselJS mouse events. + * @event dblClick + */ + + /** + * Interaction events should be added to `htmlElement`, and not the DOMElement instance, since DOMElement instances + * are not full EaselJS display objects and do not participate in EaselJS mouse events. + * @event mousedown + */ + + /** + * The HTMLElement can listen for the mouseover event, not the DOMElement instance. + * Since DOMElement instances are not full EaselJS display objects and do not participate in EaselJS mouse events. + * @event mouseover + */ + + /** + * Not applicable to DOMElement. + * @event tick + */ + + +// private methods: + /** + * @method _tick + * @param {Object} evtObj An event object that will be dispatched to all tick listeners. This object is reused between dispatchers to reduce construction & GC costs. + * function. + * @protected + */ + p._tick = function(evtObj) { + var stage = this.getStage(); + stage&&stage.on("drawend", this._handleDrawEnd, this, true); + this.DisplayObject__tick(evtObj); + }; + + /** + * @method _handleDrawEnd + * @param {Event} evt + * @protected + */ + p._handleDrawEnd = function(evt) { + var o = this.htmlElement; + if (!o) { return; } + var style = o.style; + + var props = this.getConcatenatedDisplayProps(this._props), mtx = props.matrix; + + var visibility = props.visible ? "visible" : "hidden"; + if (visibility != style.visibility) { style.visibility = visibility; } + if (!props.visible) { return; } + + var oldProps = this._oldProps, oldMtx = oldProps&&oldProps.matrix; + var n = 10000; // precision + + if (!oldMtx || !oldMtx.equals(mtx)) { + var str = "matrix(" + (mtx.a*n|0)/n +","+ (mtx.b*n|0)/n +","+ (mtx.c*n|0)/n +","+ (mtx.d*n|0)/n +","+ (mtx.tx+0.5|0); + style.transform = style.WebkitTransform = style.OTransform = style.msTransform = str +","+ (mtx.ty+0.5|0) +")"; + style.MozTransform = str +"px,"+ (mtx.ty+0.5|0) +"px)"; + if (!oldProps) { oldProps = this._oldProps = new createjs.DisplayProps(true, NaN); } + oldProps.matrix.copy(mtx); + } + + if (oldProps.alpha != props.alpha) { + style.opacity = ""+(props.alpha*n|0)/n; + oldProps.alpha = props.alpha; + } + }; + + + createjs.DOMElement = createjs.promote(DOMElement, "DisplayObject"); +}()); + +//############################################################################## +// Filter.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * Base class that all filters should inherit from. Filters need to be applied to objects that have been cached using + * the {{#crossLink "DisplayObject/cache"}}{{/crossLink}} method. If an object changes, please cache it again, or use + * {{#crossLink "DisplayObject/updateCache"}}{{/crossLink}}. Note that the filters must be applied before caching. + * + *

    Example

    + * + * myInstance.filters = [ + * new createjs.ColorFilter(0, 0, 0, 1, 255, 0, 0), + * new createjs.BlurFilter(5, 5, 10) + * ]; + * myInstance.cache(0,0, 100, 100); + * + * Note that each filter can implement a {{#crossLink "Filter/getBounds"}}{{/crossLink}} method, which returns the + * margins that need to be applied in order to fully display the filter. For example, the {{#crossLink "BlurFilter"}}{{/crossLink}} + * will cause an object to feather outwards, resulting in a margin around the shape. + * + *

    EaselJS Filters

    + * EaselJS comes with a number of pre-built filters: + *
    • {{#crossLink "AlphaMapFilter"}}{{/crossLink}} : Map a greyscale image to the alpha channel of a display object
    • + *
    • {{#crossLink "AlphaMaskFilter"}}{{/crossLink}}: Map an image's alpha channel to the alpha channel of a display object
    • + *
    • {{#crossLink "BlurFilter"}}{{/crossLink}}: Apply vertical and horizontal blur to a display object
    • + *
    • {{#crossLink "ColorFilter"}}{{/crossLink}}: Color transform a display object
    • + *
    • {{#crossLink "ColorMatrixFilter"}}{{/crossLink}}: Transform an image using a {{#crossLink "ColorMatrix"}}{{/crossLink}}
    • + *
    + * + * @class Filter + * @constructor + **/ + function Filter() {} + var p = Filter.prototype; + + /** + * REMOVED. Removed in favor of using `MySuperClass_constructor`. + * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}} + * for details. + * + * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance. + * + * @method initialize + * @protected + * @deprecated + */ + // p.initialize = function() {}; // searchable for devs wondering where it is. + + +// public methods: + /** + * Provides padding values for this filter. That is, how much the filter will extend the visual bounds of an object it is applied to. + * @method getBounds + * @param {Rectangle} [rect] If specified, the provided Rectangle instance will be expanded by the padding amounts and returned. + * @return {Rectangle} If a `rect` param was provided, it is returned. If not, either a new rectangle with the padding values, or null if no padding is required for this filter. + **/ + p.getBounds = function(rect) { + return rect; + }; + + /** + * Applies the filter to the specified context. + * @method applyFilter + * @param {CanvasRenderingContext2D} ctx The 2D context to use as the source. + * @param {Number} x The x position to use for the source rect. + * @param {Number} y The y position to use for the source rect. + * @param {Number} width The width to use for the source rect. + * @param {Number} height The height to use for the source rect. + * @param {CanvasRenderingContext2D} [targetCtx] The 2D context to draw the result to. Defaults to the context passed to ctx. + * @param {Number} [targetX] The x position to draw the result to. Defaults to the value passed to x. + * @param {Number} [targetY] The y position to draw the result to. Defaults to the value passed to y. + * @return {Boolean} If the filter was applied successfully. + **/ + p.applyFilter = function(ctx, x, y, width, height, targetCtx, targetX, targetY) { + // this is the default behaviour because most filters access pixel data. It is overridden when not needed. + targetCtx = targetCtx || ctx; + if (targetX == null) { targetX = x; } + if (targetY == null) { targetY = y; } + try { + var imageData = ctx.getImageData(x, y, width, height); + } catch (e) { + return false; + } + if (this._applyFilter(imageData)) { + targetCtx.putImageData(imageData, targetX, targetY); + return true; + } + return false; + }; + + /** + * Returns a string representation of this object. + * @method toString + * @return {String} a string representation of the instance. + **/ + p.toString = function() { + return "[Filter]"; + }; + + /** + * Returns a clone of this Filter instance. + * @method clone + * @return {Filter} A clone of the current Filter instance. + **/ + p.clone = function() { + return new Filter(); + }; + +// private methods: + /** + * @method _applyFilter + * @param {ImageData} imageData Target ImageData instance. + * @return {Boolean} + **/ + p._applyFilter = function(imageData) { return true; }; + + + createjs.Filter = Filter; +}()); + +//############################################################################## +// BlurFilter.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * Applies a box blur to DisplayObjects. Note that this filter is fairly CPU intensive, particularly if the quality is + * set higher than 1. + * + *

    Example

    + * This example creates a red circle, and then applies a 5 pixel blur to it. It uses the {{#crossLink "Filter/getBounds"}}{{/crossLink}} + * method to account for the spread that the blur causes. + * + * var shape = new createjs.Shape().set({x:100,y:100}); + * shape.graphics.beginFill("#ff0000").drawCircle(0,0,50); + * + * var blurFilter = new createjs.BlurFilter(5, 5, 1); + * shape.filters = [blurFilter]; + * var bounds = blurFilter.getBounds(); + * + * shape.cache(-50+bounds.x, -50+bounds.y, 100+bounds.width, 100+bounds.height); + * + * See {{#crossLink "Filter"}}{{/crossLink}} for an more information on applying filters. + * @class BlurFilter + * @extends Filter + * @constructor + * @param {Number} [blurX=0] The horizontal blur radius in pixels. + * @param {Number} [blurY=0] The vertical blur radius in pixels. + * @param {Number} [quality=1] The number of blur iterations. + **/ + function BlurFilter( blurX, blurY, quality) { + if ( isNaN(blurX) || blurX < 0 ) blurX = 0; + if ( isNaN(blurY) || blurY < 0 ) blurY = 0; + if ( isNaN(quality) || quality < 1 ) quality = 1; + + + // public properties: + /** + * Horizontal blur radius in pixels + * @property blurX + * @default 0 + * @type Number + **/ + this.blurX = blurX | 0; + + /** + * Vertical blur radius in pixels + * @property blurY + * @default 0 + * @type Number + **/ + this.blurY = blurY | 0; + + /** + * Number of blur iterations. For example, a value of 1 will produce a rough blur. A value of 2 will produce a + * smoother blur, but take twice as long to run. + * @property quality + * @default 1 + * @type Number + **/ + this.quality = quality | 0; + } + var p = createjs.extend(BlurFilter, createjs.Filter); + + // TODO: deprecated + // p.initialize = function() {}; // searchable for devs wondering where it is. REMOVED. See docs for details. + + +// constants: + /** + * Array of multiply values for blur calculations. + * @property MUL_TABLE + * @type Array + * @protected + * @static + **/ + BlurFilter.MUL_TABLE = [1, 171, 205, 293, 57, 373, 79, 137, 241, 27, 391, 357, 41, 19, 283, 265, 497, 469, 443, 421, 25, 191, 365, 349, 335, 161, 155, 149, 9, 278, 269, 261, 505, 245, 475, 231, 449, 437, 213, 415, 405, 395, 193, 377, 369, 361, 353, 345, 169, 331, 325, 319, 313, 307, 301, 37, 145, 285, 281, 69, 271, 267, 263, 259, 509, 501, 493, 243, 479, 118, 465, 459, 113, 446, 55, 435, 429, 423, 209, 413, 51, 403, 199, 393, 97, 3, 379, 375, 371, 367, 363, 359, 355, 351, 347, 43, 85, 337, 333, 165, 327, 323, 5, 317, 157, 311, 77, 305, 303, 75, 297, 294, 73, 289, 287, 71, 141, 279, 277, 275, 68, 135, 67, 133, 33, 262, 260, 129, 511, 507, 503, 499, 495, 491, 61, 121, 481, 477, 237, 235, 467, 232, 115, 457, 227, 451, 7, 445, 221, 439, 218, 433, 215, 427, 425, 211, 419, 417, 207, 411, 409, 203, 202, 401, 399, 396, 197, 49, 389, 387, 385, 383, 95, 189, 47, 187, 93, 185, 23, 183, 91, 181, 45, 179, 89, 177, 11, 175, 87, 173, 345, 343, 341, 339, 337, 21, 167, 83, 331, 329, 327, 163, 81, 323, 321, 319, 159, 79, 315, 313, 39, 155, 309, 307, 153, 305, 303, 151, 75, 299, 149, 37, 295, 147, 73, 291, 145, 289, 287, 143, 285, 71, 141, 281, 35, 279, 139, 69, 275, 137, 273, 17, 271, 135, 269, 267, 133, 265, 33, 263, 131, 261, 130, 259, 129, 257, 1]; + + /** + * Array of shift values for blur calculations. + * @property SHG_TABLE + * @type Array + * @protected + * @static + **/ + BlurFilter.SHG_TABLE = [0, 9, 10, 11, 9, 12, 10, 11, 12, 9, 13, 13, 10, 9, 13, 13, 14, 14, 14, 14, 10, 13, 14, 14, 14, 13, 13, 13, 9, 14, 14, 14, 15, 14, 15, 14, 15, 15, 14, 15, 15, 15, 14, 15, 15, 15, 15, 15, 14, 15, 15, 15, 15, 15, 15, 12, 14, 15, 15, 13, 15, 15, 15, 15, 16, 16, 16, 15, 16, 14, 16, 16, 14, 16, 13, 16, 16, 16, 15, 16, 13, 16, 15, 16, 14, 9, 16, 16, 16, 16, 16, 16, 16, 16, 16, 13, 14, 16, 16, 15, 16, 16, 10, 16, 15, 16, 14, 16, 16, 14, 16, 16, 14, 16, 16, 14, 15, 16, 16, 16, 14, 15, 14, 15, 13, 16, 16, 15, 17, 17, 17, 17, 17, 17, 14, 15, 17, 17, 16, 16, 17, 16, 15, 17, 16, 17, 11, 17, 16, 17, 16, 17, 16, 17, 17, 16, 17, 17, 16, 17, 17, 16, 16, 17, 17, 17, 16, 14, 17, 17, 17, 17, 15, 16, 14, 16, 15, 16, 13, 16, 15, 16, 14, 16, 15, 16, 12, 16, 15, 16, 17, 17, 17, 17, 17, 13, 16, 15, 17, 17, 17, 16, 15, 17, 17, 17, 16, 15, 17, 17, 14, 16, 17, 17, 16, 17, 17, 16, 15, 17, 16, 14, 17, 16, 15, 17, 16, 17, 17, 16, 17, 15, 16, 17, 14, 17, 16, 15, 17, 16, 17, 13, 17, 16, 17, 17, 16, 17, 14, 17, 16, 17, 16, 17, 16, 17, 9]; + +// public methods: + /** docced in super class **/ + p.getBounds = function (rect) { + var x = this.blurX|0, y = this.blurY| 0; + if (x <= 0 && y <= 0) { return rect; } + var q = Math.pow(this.quality, 0.2); + return (rect || new createjs.Rectangle()).pad(x*q+1,y*q+1,x*q+1,y*q+1); + }; + + /** docced in super class **/ + p.clone = function() { + return new BlurFilter(this.blurX, this.blurY, this.quality); + }; + + /** docced in super class **/ + p.toString = function() { + return "[BlurFilter]"; + }; + + +// private methods: + + /** docced in super class **/ + p._applyFilter = function (imageData) { + + var radiusX = this.blurX >> 1; + if (isNaN(radiusX) || radiusX < 0) return false; + var radiusY = this.blurY >> 1; + if (isNaN(radiusY) || radiusY < 0) return false; + if (radiusX == 0 && radiusY == 0) return false; + + var iterations = this.quality; + if (isNaN(iterations) || iterations < 1) iterations = 1; + iterations |= 0; + if (iterations > 3) iterations = 3; + if (iterations < 1) iterations = 1; + + var px = imageData.data; + var x=0, y=0, i=0, p=0, yp=0, yi=0, yw=0, r=0, g=0, b=0, a=0, pr=0, pg=0, pb=0, pa=0; + + var divx = (radiusX + radiusX + 1) | 0; + var divy = (radiusY + radiusY + 1) | 0; + var w = imageData.width | 0; + var h = imageData.height | 0; + + var w1 = (w - 1) | 0; + var h1 = (h - 1) | 0; + var rxp1 = (radiusX + 1) | 0; + var ryp1 = (radiusY + 1) | 0; + + var ssx = {r:0,b:0,g:0,a:0}; + var sx = ssx; + for ( i = 1; i < divx; i++ ) + { + sx = sx.n = {r:0,b:0,g:0,a:0}; + } + sx.n = ssx; + + var ssy = {r:0,b:0,g:0,a:0}; + var sy = ssy; + for ( i = 1; i < divy; i++ ) + { + sy = sy.n = {r:0,b:0,g:0,a:0}; + } + sy.n = ssy; + + var si = null; + + + var mtx = BlurFilter.MUL_TABLE[radiusX] | 0; + var stx = BlurFilter.SHG_TABLE[radiusX] | 0; + var mty = BlurFilter.MUL_TABLE[radiusY] | 0; + var sty = BlurFilter.SHG_TABLE[radiusY] | 0; + + while (iterations-- > 0) { + + yw = yi = 0; + var ms = mtx; + var ss = stx; + for (y = h; --y > -1;) { + r = rxp1 * (pr = px[(yi) | 0]); + g = rxp1 * (pg = px[(yi + 1) | 0]); + b = rxp1 * (pb = px[(yi + 2) | 0]); + a = rxp1 * (pa = px[(yi + 3) | 0]); + + sx = ssx; + + for( i = rxp1; --i > -1; ) + { + sx.r = pr; + sx.g = pg; + sx.b = pb; + sx.a = pa; + sx = sx.n; + } + + for( i = 1; i < rxp1; i++ ) + { + p = (yi + ((w1 < i ? w1 : i) << 2)) | 0; + r += ( sx.r = px[p]); + g += ( sx.g = px[p+1]); + b += ( sx.b = px[p+2]); + a += ( sx.a = px[p+3]); + + sx = sx.n; + } + + si = ssx; + for ( x = 0; x < w; x++ ) + { + px[yi++] = (r * ms) >>> ss; + px[yi++] = (g * ms) >>> ss; + px[yi++] = (b * ms) >>> ss; + px[yi++] = (a * ms) >>> ss; + + p = ((yw + ((p = x + radiusX + 1) < w1 ? p : w1)) << 2); + + r -= si.r - ( si.r = px[p]); + g -= si.g - ( si.g = px[p+1]); + b -= si.b - ( si.b = px[p+2]); + a -= si.a - ( si.a = px[p+3]); + + si = si.n; + + } + yw += w; + } + + ms = mty; + ss = sty; + for (x = 0; x < w; x++) { + yi = (x << 2) | 0; + + r = (ryp1 * (pr = px[yi])) | 0; + g = (ryp1 * (pg = px[(yi + 1) | 0])) | 0; + b = (ryp1 * (pb = px[(yi + 2) | 0])) | 0; + a = (ryp1 * (pa = px[(yi + 3) | 0])) | 0; + + sy = ssy; + for( i = 0; i < ryp1; i++ ) + { + sy.r = pr; + sy.g = pg; + sy.b = pb; + sy.a = pa; + sy = sy.n; + } + + yp = w; + + for( i = 1; i <= radiusY; i++ ) + { + yi = ( yp + x ) << 2; + + r += ( sy.r = px[yi]); + g += ( sy.g = px[yi+1]); + b += ( sy.b = px[yi+2]); + a += ( sy.a = px[yi+3]); + + sy = sy.n; + + if( i < h1 ) + { + yp += w; + } + } + + yi = x; + si = ssy; + if ( iterations > 0 ) + { + for ( y = 0; y < h; y++ ) + { + p = yi << 2; + px[p+3] = pa =(a * ms) >>> ss; + if ( pa > 0 ) + { + px[p] = ((r * ms) >>> ss ); + px[p+1] = ((g * ms) >>> ss ); + px[p+2] = ((b * ms) >>> ss ); + } else { + px[p] = px[p+1] = px[p+2] = 0 + } + + p = ( x + (( ( p = y + ryp1) < h1 ? p : h1 ) * w )) << 2; + + r -= si.r - ( si.r = px[p]); + g -= si.g - ( si.g = px[p+1]); + b -= si.b - ( si.b = px[p+2]); + a -= si.a - ( si.a = px[p+3]); + + si = si.n; + + yi += w; + } + } else { + for ( y = 0; y < h; y++ ) + { + p = yi << 2; + px[p+3] = pa =(a * ms) >>> ss; + if ( pa > 0 ) + { + pa = 255 / pa; + px[p] = ((r * ms) >>> ss ) * pa; + px[p+1] = ((g * ms) >>> ss ) * pa; + px[p+2] = ((b * ms) >>> ss ) * pa; + } else { + px[p] = px[p+1] = px[p+2] = 0 + } + + p = ( x + (( ( p = y + ryp1) < h1 ? p : h1 ) * w )) << 2; + + r -= si.r - ( si.r = px[p]); + g -= si.g - ( si.g = px[p+1]); + b -= si.b - ( si.b = px[p+2]); + a -= si.a - ( si.a = px[p+3]); + + si = si.n; + + yi += w; + } + } + } + + } + return true; + }; + + createjs.BlurFilter = createjs.promote(BlurFilter, "Filter"); +}()); + +//############################################################################## +// AlphaMapFilter.js +//############################################################################## + +this.createjs = this.createjs || {}; + +(function () { + "use strict"; + + +// constructor: + /** + * Applies a greyscale alpha map image (or canvas) to the target, such that the alpha channel of the result will + * be copied from the red channel of the map, and the RGB channels will be copied from the target. + * + * Generally, it is recommended that you use {{#crossLink "AlphaMaskFilter"}}{{/crossLink}}, because it has much + * better performance. + * + *

    Example

    + * This example draws a red->blue box, caches it, and then uses the cache canvas as an alpha map on a 100x100 image. + * + * var box = new createjs.Shape(); + * box.graphics.beginLinearGradientFill(["#ff0000", "#0000ff"], [0, 1], 0, 0, 0, 100) + * box.graphics.drawRect(0, 0, 100, 100); + * box.cache(0, 0, 100, 100); + * + * var bmp = new createjs.Bitmap("path/to/image.jpg"); + * bmp.filters = [ + * new createjs.AlphaMapFilter(box.cacheCanvas) + * ]; + * bmp.cache(0, 0, 100, 100); + * stage.addChild(bmp); + * + * See {{#crossLink "Filter"}}{{/crossLink}} for more information on applying filters. + * @class AlphaMapFilter + * @extends Filter + * @constructor + * @param {HTMLImageElement|HTMLCanvasElement} alphaMap The greyscale image (or canvas) to use as the alpha value for the + * result. This should be exactly the same dimensions as the target. + **/ + function AlphaMapFilter(alphaMap) { + + + // public properties: + /** + * The greyscale image (or canvas) to use as the alpha value for the result. This should be exactly the same + * dimensions as the target. + * @property alphaMap + * @type HTMLImageElement|HTMLCanvasElement + **/ + this.alphaMap = alphaMap; + + + // private properties: + /** + * @property _alphaMap + * @protected + * @type HTMLImageElement|HTMLCanvasElement + **/ + this._alphaMap = null; + + /** + * @property _mapData + * @protected + * @type Uint8ClampedArray + **/ + this._mapData = null; + } + var p = createjs.extend(AlphaMapFilter, createjs.Filter); + + // TODO: deprecated + // p.initialize = function() {}; // searchable for devs wondering where it is. REMOVED. See docs for details. + + +// public methods: + /** docced in super class **/ + p.clone = function () { + var o = new AlphaMapFilter(this.alphaMap); + o._alphaMap = this._alphaMap; + o._mapData = this._mapData; + return o; + }; + + /** docced in super class **/ + p.toString = function () { + return "[AlphaMapFilter]"; + }; + + +// private methods: + /** docced in super class **/ + p._applyFilter = function (imageData) { + if (!this.alphaMap) { return true; } + if (!this._prepAlphaMap()) { return false; } + + // TODO: update to support scenarios where the target has different dimensions. + var data = imageData.data; + var map = this._mapData; + for(var i=0, l=data.length; iIMPORTANT NOTE: This filter currently does not support the targetCtx, or targetX/Y parameters correctly. + * + *

    Example

    + * This example draws a gradient box, then caches it and uses the "cacheCanvas" as the alpha mask on a 100x100 image. + * + * var box = new createjs.Shape(); + * box.graphics.beginLinearGradientFill(["#000000", "rgba(0, 0, 0, 0)"], [0, 1], 0, 0, 100, 100) + * box.graphics.drawRect(0, 0, 100, 100); + * box.cache(0, 0, 100, 100); + * + * var bmp = new createjs.Bitmap("path/to/image.jpg"); + * bmp.filters = [ + * new createjs.AlphaMaskFilter(box.cacheCanvas) + * ]; + * bmp.cache(0, 0, 100, 100); + * + * See {{#crossLink "Filter"}}{{/crossLink}} for more information on applying filters. + * @class AlphaMaskFilter + * @extends Filter + * @constructor + * @param {HTMLImageElement|HTMLCanvasElement} mask + **/ + function AlphaMaskFilter(mask) { + + + // public properties: + /** + * The image (or canvas) to use as the mask. + * @property mask + * @type HTMLImageElement|HTMLCanvasElement + **/ + this.mask = mask; + } + var p = createjs.extend(AlphaMaskFilter, createjs.Filter); + + // TODO: deprecated + // p.initialize = function() {}; // searchable for devs wondering where it is. REMOVED. See docs for details. + + +// public methods: + /** + * Applies the filter to the specified context. + * + * IMPORTANT NOTE: This filter currently does not support the targetCtx, or targetX/Y parameters + * correctly. + * @method applyFilter + * @param {CanvasRenderingContext2D} ctx The 2D context to use as the source. + * @param {Number} x The x position to use for the source rect. + * @param {Number} y The y position to use for the source rect. + * @param {Number} width The width to use for the source rect. + * @param {Number} height The height to use for the source rect. + * @param {CanvasRenderingContext2D} [targetCtx] NOT SUPPORTED IN THIS FILTER. The 2D context to draw the result to. Defaults to the context passed to ctx. + * @param {Number} [targetX] NOT SUPPORTED IN THIS FILTER. The x position to draw the result to. Defaults to the value passed to x. + * @param {Number} [targetY] NOT SUPPORTED IN THIS FILTER. The y position to draw the result to. Defaults to the value passed to y. + * @return {Boolean} If the filter was applied successfully. + **/ + p.applyFilter = function (ctx, x, y, width, height, targetCtx, targetX, targetY) { + if (!this.mask) { return true; } + targetCtx = targetCtx || ctx; + if (targetX == null) { targetX = x; } + if (targetY == null) { targetY = y; } + + targetCtx.save(); + if (ctx != targetCtx) { + // TODO: support targetCtx and targetX/Y + // clearRect, then draw the ctx in? + return false; + } + + targetCtx.globalCompositeOperation = "destination-in"; + targetCtx.drawImage(this.mask, targetX, targetY); + targetCtx.restore(); + return true; + }; + + /** docced in super class **/ + p.clone = function () { + return new AlphaMaskFilter(this.mask); + }; + + /** docced in super class **/ + p.toString = function () { + return "[AlphaMaskFilter]"; + }; + + + createjs.AlphaMaskFilter = createjs.promote(AlphaMaskFilter, "Filter"); +}()); + +//############################################################################## +// ColorFilter.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * Applies a color transform to DisplayObjects. + * + *

    Example

    + * This example draws a red circle, and then transforms it to Blue. This is accomplished by multiplying all the channels + * to 0 (except alpha, which is set to 1), and then adding 255 to the blue channel. + * + * var shape = new createjs.Shape().set({x:100,y:100}); + * shape.graphics.beginFill("#ff0000").drawCircle(0,0,50); + * + * shape.filters = [ + * new createjs.ColorFilter(0,0,0,1, 0,0,255,0) + * ]; + * shape.cache(-50, -50, 100, 100); + * + * See {{#crossLink "Filter"}}{{/crossLink}} for an more information on applying filters. + * @class ColorFilter + * @param {Number} [redMultiplier=1] The amount to multiply against the red channel. This is a range between 0 and 1. + * @param {Number} [greenMultiplier=1] The amount to multiply against the green channel. This is a range between 0 and 1. + * @param {Number} [blueMultiplier=1] The amount to multiply against the blue channel. This is a range between 0 and 1. + * @param {Number} [alphaMultiplier=1] The amount to multiply against the alpha channel. This is a range between 0 and 1. + * @param {Number} [redOffset=0] The amount to add to the red channel after it has been multiplied. This is a range + * between -255 and 255. + * @param {Number} [greenOffset=0] The amount to add to the green channel after it has been multiplied. This is a range + * between -255 and 255. + * @param {Number} [blueOffset=0] The amount to add to the blue channel after it has been multiplied. This is a range + * between -255 and 255. + * @param {Number} [alphaOffset=0] The amount to add to the alpha channel after it has been multiplied. This is a range + * between -255 and 255. + * @constructor + * @extends Filter + **/ + function ColorFilter(redMultiplier, greenMultiplier, blueMultiplier, alphaMultiplier, redOffset, greenOffset, blueOffset, alphaOffset) { + + + // public properties: + /** + * Red channel multiplier. + * @property redMultiplier + * @type Number + **/ + this.redMultiplier = redMultiplier != null ? redMultiplier : 1; + + /** + * Green channel multiplier. + * @property greenMultiplier + * @type Number + **/ + this.greenMultiplier = greenMultiplier != null ? greenMultiplier : 1; + + /** + * Blue channel multiplier. + * @property blueMultiplier + * @type Number + **/ + this.blueMultiplier = blueMultiplier != null ? blueMultiplier : 1; + + /** + * Alpha channel multiplier. + * @property alphaMultiplier + * @type Number + **/ + this.alphaMultiplier = alphaMultiplier != null ? alphaMultiplier : 1; + + /** + * Red channel offset (added to value). + * @property redOffset + * @type Number + **/ + this.redOffset = redOffset || 0; + + /** + * Green channel offset (added to value). + * @property greenOffset + * @type Number + **/ + this.greenOffset = greenOffset || 0; + + /** + * Blue channel offset (added to value). + * @property blueOffset + * @type Number + **/ + this.blueOffset = blueOffset || 0; + + /** + * Alpha channel offset (added to value). + * @property alphaOffset + * @type Number + **/ + this.alphaOffset = alphaOffset || 0; + } + var p = createjs.extend(ColorFilter, createjs.Filter); + + // TODO: deprecated + // p.initialize = function() {}; // searchable for devs wondering where it is. REMOVED. See docs for details. + + +// public methods: + /** docced in super class **/ + p.toString = function() { + return "[ColorFilter]"; + }; + + /** docced in super class **/ + p.clone = function() { + return new ColorFilter(this.redMultiplier, this.greenMultiplier, this.blueMultiplier, this.alphaMultiplier, this.redOffset, this.greenOffset, this.blueOffset, this.alphaOffset); + }; + + +// private methods: + /** docced in super class **/ + p._applyFilter = function(imageData) { + var data = imageData.data; + var l = data.length; + for (var i=0; iExample + * + * myColorMatrix.adjustHue(20).adjustBrightness(50); + * + * See {{#crossLink "Filter"}}{{/crossLink}} for an example of how to apply filters, or {{#crossLink "ColorMatrixFilter"}}{{/crossLink}} + * for an example of how to use ColorMatrix to change a DisplayObject's color. + * @class ColorMatrix + * @param {Number} brightness + * @param {Number} contrast + * @param {Number} saturation + * @param {Number} hue + * @constructor + **/ + function ColorMatrix(brightness, contrast, saturation, hue) { + this.setColor(brightness, contrast, saturation, hue); + } + var p = ColorMatrix.prototype; + + /** + * REMOVED. Removed in favor of using `MySuperClass_constructor`. + * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}} + * for details. + * + * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance. + * + * @method initialize + * @protected + * @deprecated + */ + // p.initialize = function() {}; // searchable for devs wondering where it is. + + +// constants: + /** + * Array of delta values for contrast calculations. + * @property DELTA_INDEX + * @type Array + * @protected + * @static + **/ + ColorMatrix.DELTA_INDEX = [ + 0, 0.01, 0.02, 0.04, 0.05, 0.06, 0.07, 0.08, 0.1, 0.11, + 0.12, 0.14, 0.15, 0.16, 0.17, 0.18, 0.20, 0.21, 0.22, 0.24, + 0.25, 0.27, 0.28, 0.30, 0.32, 0.34, 0.36, 0.38, 0.40, 0.42, + 0.44, 0.46, 0.48, 0.5, 0.53, 0.56, 0.59, 0.62, 0.65, 0.68, + 0.71, 0.74, 0.77, 0.80, 0.83, 0.86, 0.89, 0.92, 0.95, 0.98, + 1.0, 1.06, 1.12, 1.18, 1.24, 1.30, 1.36, 1.42, 1.48, 1.54, + 1.60, 1.66, 1.72, 1.78, 1.84, 1.90, 1.96, 2.0, 2.12, 2.25, + 2.37, 2.50, 2.62, 2.75, 2.87, 3.0, 3.2, 3.4, 3.6, 3.8, + 4.0, 4.3, 4.7, 4.9, 5.0, 5.5, 6.0, 6.5, 6.8, 7.0, + 7.3, 7.5, 7.8, 8.0, 8.4, 8.7, 9.0, 9.4, 9.6, 9.8, + 10.0 + ]; + + /** + * Identity matrix values. + * @property IDENTITY_MATRIX + * @type Array + * @protected + * @static + **/ + ColorMatrix.IDENTITY_MATRIX = [ + 1,0,0,0,0, + 0,1,0,0,0, + 0,0,1,0,0, + 0,0,0,1,0, + 0,0,0,0,1 + ]; + + /** + * The constant length of a color matrix. + * @property LENGTH + * @type Number + * @protected + * @static + **/ + ColorMatrix.LENGTH = ColorMatrix.IDENTITY_MATRIX.length; + + +// public methods: + /** + * Resets the instance with the specified values. + * @method setColor + * @param {Number} brightness + * @param {Number} contrast + * @param {Number} saturation + * @param {Number} hue + * @return {ColorMatrix} The ColorMatrix instance the method is called on (useful for chaining calls.) + * @chainable + */ + p.setColor = function(brightness,contrast,saturation,hue) { + return this.reset().adjustColor(brightness,contrast,saturation,hue); + }; + + /** + * Resets the matrix to identity values. + * @method reset + * @return {ColorMatrix} The ColorMatrix instance the method is called on (useful for chaining calls.) + * @chainable + */ + p.reset = function() { + return this.copy(ColorMatrix.IDENTITY_MATRIX); + }; + + /** + * Shortcut method to adjust brightness, contrast, saturation and hue. + * Equivalent to calling adjustHue(hue), adjustContrast(contrast), + * adjustBrightness(brightness), adjustSaturation(saturation), in that order. + * @method adjustColor + * @param {Number} brightness + * @param {Number} contrast + * @param {Number} saturation + * @param {Number} hue + * @return {ColorMatrix} The ColorMatrix instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.adjustColor = function(brightness,contrast,saturation,hue) { + this.adjustHue(hue); + this.adjustContrast(contrast); + this.adjustBrightness(brightness); + return this.adjustSaturation(saturation); + }; + + /** + * Adjusts the brightness of pixel color by adding the specified value to the red, green and blue channels. + * Positive values will make the image brighter, negative values will make it darker. + * @method adjustBrightness + * @param {Number} value A value between -255 & 255 that will be added to the RGB channels. + * @return {ColorMatrix} The ColorMatrix instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.adjustBrightness = function(value) { + if (value == 0 || isNaN(value)) { return this; } + value = this._cleanValue(value,255); + this._multiplyMatrix([ + 1,0,0,0,value, + 0,1,0,0,value, + 0,0,1,0,value, + 0,0,0,1,0, + 0,0,0,0,1 + ]); + return this; + }; + + /** + * Adjusts the contrast of pixel color. + * Positive values will increase contrast, negative values will decrease contrast. + * @method adjustContrast + * @param {Number} value A value between -100 & 100. + * @return {ColorMatrix} The ColorMatrix instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.adjustContrast = function(value) { + if (value == 0 || isNaN(value)) { return this; } + value = this._cleanValue(value,100); + var x; + if (value<0) { + x = 127+value/100*127; + } else { + x = value%1; + if (x == 0) { + x = ColorMatrix.DELTA_INDEX[value]; + } else { + x = ColorMatrix.DELTA_INDEX[(value<<0)]*(1-x)+ColorMatrix.DELTA_INDEX[(value<<0)+1]*x; // use linear interpolation for more granularity. + } + x = x*127+127; + } + this._multiplyMatrix([ + x/127,0,0,0,0.5*(127-x), + 0,x/127,0,0,0.5*(127-x), + 0,0,x/127,0,0.5*(127-x), + 0,0,0,1,0, + 0,0,0,0,1 + ]); + return this; + }; + + /** + * Adjusts the color saturation of the pixel. + * Positive values will increase saturation, negative values will decrease saturation (trend towards greyscale). + * @method adjustSaturation + * @param {Number} value A value between -100 & 100. + * @return {ColorMatrix} The ColorMatrix instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.adjustSaturation = function(value) { + if (value == 0 || isNaN(value)) { return this; } + value = this._cleanValue(value,100); + var x = 1+((value > 0) ? 3*value/100 : value/100); + var lumR = 0.3086; + var lumG = 0.6094; + var lumB = 0.0820; + this._multiplyMatrix([ + lumR*(1-x)+x,lumG*(1-x),lumB*(1-x),0,0, + lumR*(1-x),lumG*(1-x)+x,lumB*(1-x),0,0, + lumR*(1-x),lumG*(1-x),lumB*(1-x)+x,0,0, + 0,0,0,1,0, + 0,0,0,0,1 + ]); + return this; + }; + + + /** + * Adjusts the hue of the pixel color. + * @method adjustHue + * @param {Number} value A value between -180 & 180. + * @return {ColorMatrix} The ColorMatrix instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.adjustHue = function(value) { + if (value == 0 || isNaN(value)) { return this; } + value = this._cleanValue(value,180)/180*Math.PI; + var cosVal = Math.cos(value); + var sinVal = Math.sin(value); + var lumR = 0.213; + var lumG = 0.715; + var lumB = 0.072; + this._multiplyMatrix([ + lumR+cosVal*(1-lumR)+sinVal*(-lumR),lumG+cosVal*(-lumG)+sinVal*(-lumG),lumB+cosVal*(-lumB)+sinVal*(1-lumB),0,0, + lumR+cosVal*(-lumR)+sinVal*(0.143),lumG+cosVal*(1-lumG)+sinVal*(0.140),lumB+cosVal*(-lumB)+sinVal*(-0.283),0,0, + lumR+cosVal*(-lumR)+sinVal*(-(1-lumR)),lumG+cosVal*(-lumG)+sinVal*(lumG),lumB+cosVal*(1-lumB)+sinVal*(lumB),0,0, + 0,0,0,1,0, + 0,0,0,0,1 + ]); + return this; + }; + + /** + * Concatenates (multiplies) the specified matrix with this one. + * @method concat + * @param {Array} matrix An array or ColorMatrix instance. + * @return {ColorMatrix} The ColorMatrix instance the method is called on (useful for chaining calls.) + * @chainable + **/ + p.concat = function(matrix) { + matrix = this._fixMatrix(matrix); + if (matrix.length != ColorMatrix.LENGTH) { return this; } + this._multiplyMatrix(matrix); + return this; + }; + + /** + * Returns a clone of this ColorMatrix. + * @method clone + * @return {ColorMatrix} A clone of this ColorMatrix. + **/ + p.clone = function() { + return (new ColorMatrix()).copy(this); + }; + + /** + * Return a length 25 (5x5) array instance containing this matrix's values. + * @method toArray + * @return {Array} An array holding this matrix's values. + **/ + p.toArray = function() { + var arr = []; + for (var i= 0, l=ColorMatrix.LENGTH; i ColorMatrix.LENGTH) { + matrix = matrix.slice(0,ColorMatrix.LENGTH); + } + return matrix; + }; + + + createjs.ColorMatrix = ColorMatrix; +}()); + +//############################################################################## +// ColorMatrixFilter.js +//############################################################################## + +this.createjs = this.createjs||{}; + +(function() { + "use strict"; + + +// constructor: + /** + * Allows you to carry out complex color operations such as modifying saturation, brightness, or inverting. See the + * {{#crossLink "ColorMatrix"}}{{/crossLink}} for more information on changing colors. For an easier color transform, + * consider the {{#crossLink "ColorFilter"}}{{/crossLink}}. + * + *

    Example

    + * This example creates a red circle, inverts its hue, and then saturates it to brighten it up. + * + * var shape = new createjs.Shape().set({x:100,y:100}); + * shape.graphics.beginFill("#ff0000").drawCircle(0,0,50); + * + * var matrix = new createjs.ColorMatrix().adjustHue(180).adjustSaturation(100); + * shape.filters = [ + * new createjs.ColorMatrixFilter(matrix) + * ]; + * + * shape.cache(-50, -50, 100, 100); + * + * See {{#crossLink "Filter"}}{{/crossLink}} for an more information on applying filters. + * @class ColorMatrixFilter + * @constructor + * @extends Filter + * @param {Array | ColorMatrix} matrix A 4x5 matrix describing the color operation to perform. See also the {{#crossLink "ColorMatrix"}}{{/crossLink}} + * class. + **/ + function ColorMatrixFilter(matrix) { + + + // public properties: + /** + * A 4x5 matrix describing the color operation to perform. See also the {{#crossLink "ColorMatrix"}}{{/crossLink}} + * @property matrix + * @type Array | ColorMatrix + **/ + this.matrix = matrix; + } + var p = createjs.extend(ColorMatrixFilter, createjs.Filter); + + // TODO: deprecated + // p.initialize = function() {}; // searchable for devs wondering where it is. REMOVED. See docs for details. + + +// public methods: + /** docced in super class **/ + p.toString = function() { + return "[ColorMatrixFilter]"; + }; + + /** docced in super class **/ + p.clone = function() { + return new ColorMatrixFilter(this.matrix); + }; + +// private methods: + /** docced in super class **/ + p._applyFilter = function(imageData) { + var data = imageData.data; + var l = data.length; + var r,g,b,a; + var mtx = this.matrix; + var m0 = mtx[0], m1 = mtx[1], m2 = mtx[2], m3 = mtx[3], m4 = mtx[4]; + var m5 = mtx[5], m6 = mtx[6], m7 = mtx[7], m8 = mtx[8], m9 = mtx[9]; + var m10 = mtx[10], m11 = mtx[11], m12 = mtx[12], m13 = mtx[13], m14 = mtx[14]; + var m15 = mtx[15], m16 = mtx[16], m17 = mtx[17], m18 = mtx[18], m19 = mtx[19]; + + for (var i=0; iExample + * + * var stage = new createjs.Stage("canvasId"); + * createjs.Touch.enable(stage); + * + * Note: It is important to disable Touch on a stage that you are no longer using: + * + * createjs.Touch.disable(stage); + * + * @class Touch + * @static + **/ + function Touch() { + throw "Touch cannot be instantiated"; + } + + +// public static methods: + /** + * Returns `true` if touch is supported in the current browser. + * @method isSupported + * @return {Boolean} Indicates whether touch is supported in the current browser. + * @static + **/ + Touch.isSupported = function() { + return !!(('ontouchstart' in window) // iOS & Android + || (window.navigator['msPointerEnabled'] && window.navigator['msMaxTouchPoints'] > 0) // IE10 + || (window.navigator['pointerEnabled'] && window.navigator['maxTouchPoints'] > 0)); // IE11+ + }; + + /** + * Enables touch interaction for the specified EaselJS {{#crossLink "Stage"}}{{/crossLink}}. Currently supports iOS + * (and compatible browsers, such as modern Android browsers), and IE10/11. Supports both single touch and + * multi-touch modes. Extends the EaselJS {{#crossLink "MouseEvent"}}{{/crossLink}} model, but without support for + * double click or over/out events. See the MouseEvent {{#crossLink "MouseEvent/pointerId:property"}}{{/crossLink}} + * for more information. + * @method enable + * @param {Stage} stage The {{#crossLink "Stage"}}{{/crossLink}} to enable touch on. + * @param {Boolean} [singleTouch=false] If `true`, only a single touch will be active at a time. + * @param {Boolean} [allowDefault=false] If `true`, then default gesture actions (ex. scrolling, zooming) will be + * allowed when the user is interacting with the target canvas. + * @return {Boolean} Returns `true` if touch was successfully enabled on the target stage. + * @static + **/ + Touch.enable = function(stage, singleTouch, allowDefault) { + if (!stage || !stage.canvas || !Touch.isSupported()) { return false; } + if (stage.__touch) { return true; } + + // inject required properties on stage: + stage.__touch = {pointers:{}, multitouch:!singleTouch, preventDefault:!allowDefault, count:0}; + + // note that in the future we may need to disable the standard mouse event model before adding + // these to prevent duplicate calls. It doesn't seem to be an issue with iOS devices though. + if ('ontouchstart' in window) { Touch._IOS_enable(stage); } + else if (window.navigator['msPointerEnabled'] || window.navigator["pointerEnabled"]) { Touch._IE_enable(stage); } + return true; + }; + + /** + * Removes all listeners that were set up when calling `Touch.enable()` on a stage. + * @method disable + * @param {Stage} stage The {{#crossLink "Stage"}}{{/crossLink}} to disable touch on. + * @static + **/ + Touch.disable = function(stage) { + if (!stage) { return; } + if ('ontouchstart' in window) { Touch._IOS_disable(stage); } + else if (window.navigator['msPointerEnabled'] || window.navigator["pointerEnabled"]) { Touch._IE_disable(stage); } + + delete stage.__touch; + }; + + +// Private static methods: + /** + * @method _IOS_enable + * @protected + * @param {Stage} stage + * @static + **/ + Touch._IOS_enable = function(stage) { + var canvas = stage.canvas; + var f = stage.__touch.f = function(e) { Touch._IOS_handleEvent(stage,e); }; + canvas.addEventListener("touchstart", f, false); + canvas.addEventListener("touchmove", f, false); + canvas.addEventListener("touchend", f, false); + canvas.addEventListener("touchcancel", f, false); + }; + + /** + * @method _IOS_disable + * @protected + * @param {Stage} stage + * @static + **/ + Touch._IOS_disable = function(stage) { + var canvas = stage.canvas; + if (!canvas) { return; } + var f = stage.__touch.f; + canvas.removeEventListener("touchstart", f, false); + canvas.removeEventListener("touchmove", f, false); + canvas.removeEventListener("touchend", f, false); + canvas.removeEventListener("touchcancel", f, false); + }; + + /** + * @method _IOS_handleEvent + * @param {Stage} stage + * @param {Object} e The event to handle + * @protected + * @static + **/ + Touch._IOS_handleEvent = function(stage, e) { + if (!stage) { return; } + if (stage.__touch.preventDefault) { e.preventDefault&&e.preventDefault(); } + var touches = e.changedTouches; + var type = e.type; + for (var i= 0,l=touches.length; i=0&&c0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,C=/^.[^:#\[\.,]*$/;function D(a,b,c){return r.isFunction(b)?r.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?r.grep(a,function(a){return a===b!==c}):"string"!=typeof b?r.grep(a,function(a){return i.call(b,a)>-1!==c}):C.test(b)?r.filter(b,a,c):(b=r.filter(b,a),r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType}))}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(D(this,a||[],!1))},not:function(a){return this.pushStack(D(this,a||[],!0))},is:function(a){return!!D(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var E,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,G=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||E,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:F.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),B.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};G.prototype=r.fn,E=r(d);var H=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a-1:1===c.nodeType&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function J(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return J(a,"nextSibling")},prev:function(a){return J(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return a.contentDocument||r.merge([],a.childNodes)}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(I[a]||r.uniqueSort(e),H.test(a)&&e.reverse()),this.pushStack(e)}});var K=/[^\x20\t\r\n\f]+/g;function L(a){var b={};return r.each(a.match(K)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?L(a):r.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j};function M(a){return a}function N(a){throw a}function O(a,b,c){var d;try{a&&r.isFunction(d=a.promise)?d.call(a).done(b).fail(c):a&&r.isFunction(d=a.then)?d.call(a,b,c):b.call(void 0,a)}catch(a){c.call(void 0,a)}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b=f&&(d!==N&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:M,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:M)),c[2][3].add(g(0,a,r.isFunction(d)?d:N))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(O(a,g.done(h(c)).resolve,g.reject),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)O(e[c],h(c),g.reject);return g.promise()}});var P=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&P.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var Q=r.Deferred();r.fn.ready=function(a){return Q.then(a)["catch"](function(a){r.readyException(a)}),this},r.extend({isReady:!1,readyWait:1,holdReady:function(a){a?r.readyWait++:r.ready(!0)},ready:function(a){(a===!0?--r.readyWait:r.isReady)||(r.isReady=!0,a!==!0&&--r.readyWait>0||Q.resolveWith(d,[r]))}}),r.ready.then=Q.then;function R(){d.removeEventListener("DOMContentLoaded",R), +a.removeEventListener("load",R),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",R),a.addEventListener("load",R));var S=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)S(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h1,null,!0)},removeData:function(a){return this.each(function(){W.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=V.get(a,b),c&&(!d||r.isArray(c)?d=V.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return V.get(a,c)||V.access(a,c,{empty:r.Callbacks("once memory").add(function(){V.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length\x20\t\r\n\f]+)/i,ka=/^$|\/(?:java|ecma)script/i,la={option:[1,""],thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};la.optgroup=la.option,la.tbody=la.tfoot=la.colgroup=la.caption=la.thead,la.th=la.td;function ma(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&r.nodeName(a,b)?r.merge([a],c):c}function na(a,b){for(var c=0,d=a.length;c-1)e&&e.push(f);else if(j=r.contains(f.ownerDocument,f),g=ma(l.appendChild(f),"script"),j&&na(g),c){k=0;while(f=g[k++])ka.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),o.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="",o.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var qa=d.documentElement,ra=/^key/,sa=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ta=/^([^.]*)(?:\.(.+)|)/;function ua(){return!0}function va(){return!1}function wa(){try{return d.activeElement}catch(a){}}function xa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)xa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=va;else if(!e)return a;return 1===f&&(g=e,e=function(a){return r().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=r.guid++)),a.each(function(){r.event.add(this,b,e,d,c)})}r.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=V.get(a);if(q){c.handler&&(f=c,c=f.handler,e=f.selector),e&&r.find.matchesSelector(qa,e),c.guid||(c.guid=r.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof r&&r.event.triggered!==b.type?r.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(K)||[""],j=b.length;while(j--)h=ta.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=r.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=r.event.special[n]||{},k=r.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&r.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),r.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=V.hasData(a)&&V.get(a);if(q&&(i=q.events)){b=(b||"").match(K)||[""],j=b.length;while(j--)if(h=ta.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){l=r.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||r.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)r.event.remove(a,n+b[j],c,d,!0);r.isEmptyObject(i)&&V.remove(a,"handle events")}},dispatch:function(a){var b=r.event.fix(a),c,d,e,f,g,h,i=new Array(arguments.length),j=(V.get(this,"events")||{})[b.type]||[],k=r.event.special[b.type]||{};for(i[0]=b,c=1;c=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;c-1:r.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i\x20\t\r\n\f]*)[^>]*)\/>/gi,za=/\s*$/g;function Da(a,b){return r.nodeName(a,"table")&&r.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a:a}function Ea(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function Fa(a){var b=Ba.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ga(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(V.hasData(a)&&(f=V.access(a),g=V.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;c1&&"string"==typeof q&&!o.checkClone&&Aa.test(q))return a.each(function(e){var f=a.eq(e);s&&(b[0]=q.call(this,e,f.html())),Ia(f,b,c,d)});if(m&&(e=pa(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(h=r.map(ma(e,"script"),Ea),i=h.length;l")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=r.contains(a.ownerDocument,a);if(!(o.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||r.isXMLDoc(a)))for(g=ma(h),f=ma(a),d=0,e=f.length;d0&&na(g,!i&&ma(a,"script")),h},cleanData:function(a){for(var b,c,d,e=r.event.special,f=0;void 0!==(c=a[f]);f++)if(T(c)){if(b=c[V.expando]){if(b.events)for(d in b.events)e[d]?r.event.remove(c,d):r.removeEvent(c,d,b.handle);c[V.expando]=void 0}c[W.expando]&&(c[W.expando]=void 0)}}}),r.fn.extend({detach:function(a){return Ja(this,a,!0)},remove:function(a){return Ja(this,a)},text:function(a){return S(this,function(a){return void 0===a?r.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return Ia(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Da(this,a);b.appendChild(a)}})},prepend:function(){return Ia(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Da(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ia(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ia(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(r.cleanData(ma(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return r.clone(this,a,b)})},html:function(a){return S(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!za.test(a)&&!la[(ja.exec(a)||["",""])[1].toLowerCase()]){a=r.htmlPrefilter(a);try{for(;c1)}});function Ya(a,b,c,d,e){return new Ya.prototype.init(a,b,c,d,e)}r.Tween=Ya,Ya.prototype={constructor:Ya,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||r.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(r.cssNumber[c]?"":"px")},cur:function(){var a=Ya.propHooks[this.prop];return a&&a.get?a.get(this):Ya.propHooks._default.get(this)},run:function(a){var b,c=Ya.propHooks[this.prop];return this.options.duration?this.pos=b=r.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ya.propHooks._default.set(this),this}},Ya.prototype.init.prototype=Ya.prototype,Ya.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=r.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){r.fx.step[a.prop]?r.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[r.cssProps[a.prop]]&&!r.cssHooks[a.prop]?a.elem[a.prop]=a.now:r.style(a.elem,a.prop,a.now+a.unit)}}},Ya.propHooks.scrollTop=Ya.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},r.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},r.fx=Ya.prototype.init,r.fx.step={};var Za,$a,_a=/^(?:toggle|show|hide)$/,ab=/queueHooks$/;function bb(){$a&&(a.requestAnimationFrame(bb),r.fx.tick())}function cb(){return a.setTimeout(function(){Za=void 0}),Za=r.now()}function db(a,b){var c,d=0,e={height:a};for(b=b?1:0;d<4;d+=2-b)c=ba[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function eb(a,b,c){for(var d,e=(hb.tweeners[b]||[]).concat(hb.tweeners["*"]),f=0,g=e.length;f1)},removeAttr:function(a){return this.each(function(){r.removeAttr(this,a)})}}),r.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?r.prop(a,b,c):(1===f&&r.isXMLDoc(a)||(e=r.attrHooks[b.toLowerCase()]||(r.expr.match.bool.test(b)?ib:void 0)), +void 0!==c?null===c?void r.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=r.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&r.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(K);if(e&&1===a.nodeType)while(c=e[d++])a.removeAttribute(c)}}),ib={set:function(a,b,c){return b===!1?r.removeAttr(a,c):a.setAttribute(c,c),c}},r.each(r.expr.match.bool.source.match(/\w+/g),function(a,b){var c=jb[b]||r.find.attr;jb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=jb[g],jb[g]=e,e=null!=c(a,b,d)?g:null,jb[g]=f),e}});var kb=/^(?:input|select|textarea|button)$/i,lb=/^(?:a|area)$/i;r.fn.extend({prop:function(a,b){return S(this,r.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[r.propFix[a]||a]})}}),r.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&r.isXMLDoc(a)||(b=r.propFix[b]||b,e=r.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=r.find.attr(a,"tabindex");return b?parseInt(b,10):kb.test(a.nodeName)||lb.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),o.optSelected||(r.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function mb(a){var b=a.match(K)||[];return b.join(" ")}function nb(a){return a.getAttribute&&a.getAttribute("class")||""}r.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).addClass(a.call(this,b,nb(this)))});if("string"==typeof a&&a){b=a.match(K)||[];while(c=this[i++])if(e=nb(c),d=1===c.nodeType&&" "+mb(e)+" "){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=mb(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).removeClass(a.call(this,b,nb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(K)||[];while(c=this[i++])if(e=nb(c),d=1===c.nodeType&&" "+mb(e)+" "){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=mb(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):r.isFunction(a)?this.each(function(c){r(this).toggleClass(a.call(this,c,nb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=r(this),f=a.match(K)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=nb(this),b&&V.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":V.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+mb(nb(c))+" ").indexOf(b)>-1)return!0;return!1}});var ob=/\r/g;r.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=r.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,r(this).val()):a,null==e?e="":"number"==typeof e?e+="":r.isArray(e)&&(e=r.map(e,function(a){return null==a?"":a+""})),b=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=r.valHooks[e.type]||r.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(ob,""):null==c?"":c)}}}),r.extend({valHooks:{option:{get:function(a){var b=r.find.attr(a,"value");return null!=b?b:mb(r.text(a))}},select:{get:function(a){var b,c,d,e=a.options,f=a.selectedIndex,g="select-one"===a.type,h=g?null:[],i=g?f+1:e.length;for(d=f<0?i:g?f:0;d-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(a,b){if(r.isArray(b))return a.checked=r.inArray(r(a).val(),b)>-1}},o.checkOn||(r.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var pb=/^(?:focusinfocus|focusoutblur)$/;r.extend(r.event,{trigger:function(b,c,e,f){var g,h,i,j,k,m,n,o=[e||d],p=l.call(b,"type")?b.type:b,q=l.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!pb.test(p+r.event.triggered)&&(p.indexOf(".")>-1&&(q=p.split("."),p=q.shift(),q.sort()),k=p.indexOf(":")<0&&"on"+p,b=b[r.expando]?b:new r.Event(p,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=q.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:r.makeArray(c,[b]),n=r.event.special[p]||{},f||!n.trigger||n.trigger.apply(e,c)!==!1)){if(!f&&!n.noBubble&&!r.isWindow(e)){for(j=n.delegateType||p,pb.test(j+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),i=h;i===(e.ownerDocument||d)&&o.push(i.defaultView||i.parentWindow||a)}g=0;while((h=o[g++])&&!b.isPropagationStopped())b.type=g>1?j:n.bindType||p,m=(V.get(h,"events")||{})[b.type]&&V.get(h,"handle"),m&&m.apply(h,c),m=k&&h[k],m&&m.apply&&T(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=p,f||b.isDefaultPrevented()||n._default&&n._default.apply(o.pop(),c)!==!1||!T(e)||k&&r.isFunction(e[p])&&!r.isWindow(e)&&(i=e[k],i&&(e[k]=null),r.event.triggered=p,e[p](),r.event.triggered=void 0,i&&(e[k]=i)),b.result}},simulate:function(a,b,c){var d=r.extend(new r.Event,c,{type:a,isSimulated:!0});r.event.trigger(d,null,b)}}),r.fn.extend({trigger:function(a,b){return this.each(function(){r.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return r.event.trigger(a,b,c,!0)}}),r.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){r.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),r.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),o.focusin="onfocusin"in a,o.focusin||r.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){r.event.simulate(b,a.target,r.event.fix(a))};r.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=V.access(d,b);e||d.addEventListener(a,c,!0),V.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=V.access(d,b)-1;e?V.access(d,b,e):(d.removeEventListener(a,c,!0),V.remove(d,b))}}});var qb=a.location,rb=r.now(),sb=/\?/;r.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||r.error("Invalid XML: "+b),c};var tb=/\[\]$/,ub=/\r?\n/g,vb=/^(?:submit|button|image|reset|file)$/i,wb=/^(?:input|select|textarea|keygen)/i;function xb(a,b,c,d){var e;if(r.isArray(b))r.each(b,function(b,e){c||tb.test(a)?d(a,e):xb(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==r.type(b))d(a,b);else for(e in b)xb(a+"["+e+"]",b[e],c,d)}r.param=function(a,b){var c,d=[],e=function(a,b){var c=r.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(r.isArray(a)||a.jquery&&!r.isPlainObject(a))r.each(a,function(){e(this.name,this.value)});else for(c in a)xb(c,a[c],b,e);return d.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=r.prop(this,"elements");return a?r.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!r(this).is(":disabled")&&wb.test(this.nodeName)&&!vb.test(a)&&(this.checked||!ia.test(a))}).map(function(a,b){var c=r(this).val();return null==c?null:r.isArray(c)?r.map(c,function(a){return{name:b.name,value:a.replace(ub,"\r\n")}}):{name:b.name,value:c.replace(ub,"\r\n")}}).get()}});var yb=/%20/g,zb=/#.*$/,Ab=/([?&])_=[^&]*/,Bb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Cb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Db=/^(?:GET|HEAD)$/,Eb=/^\/\//,Fb={},Gb={},Hb="*/".concat("*"),Ib=d.createElement("a");Ib.href=qb.href;function Jb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(K)||[];if(r.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Kb(a,b,c,d){var e={},f=a===Gb;function g(h){var i;return e[h]=!0,r.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Lb(a,b){var c,d,e=r.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&r.extend(!0,a,d),a}function Mb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Nb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:qb.href,type:"GET",isLocal:Cb.test(qb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Hb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Lb(Lb(a,r.ajaxSettings),b):Lb(r.ajaxSettings,a)},ajaxPrefilter:Jb(Fb),ajaxTransport:Jb(Gb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=r.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?r(p):r.event,s=r.Deferred(),t=r.Callbacks("once memory"),u=o.statusCode||{},v={},w={},x="canceled",y={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h){h={};while(b=Bb.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=w[a.toLowerCase()]=w[a.toLowerCase()]||a,v[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)y.always(a[y.status]);else for(b in a)u[b]=[u[b],a[b]];return this},abort:function(a){var b=a||x;return e&&e.abort(b),A(0,b),this}};if(s.promise(y),o.url=((b||o.url||qb.href)+"").replace(Eb,qb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(K)||[""],null==o.crossDomain){j=d.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Ib.protocol+"//"+Ib.host!=j.protocol+"//"+j.host}catch(z){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=r.param(o.data,o.traditional)),Kb(Fb,o,c,y),k)return y;l=r.event&&o.global,l&&0===r.active++&&r.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Db.test(o.type),f=o.url.replace(zb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(yb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(sb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Ab,"$1"),n=(sb.test(f)?"&":"?")+"_="+rb++ +n),o.url=f+n),o.ifModified&&(r.lastModified[f]&&y.setRequestHeader("If-Modified-Since",r.lastModified[f]),r.etag[f]&&y.setRequestHeader("If-None-Match",r.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&y.setRequestHeader("Content-Type",o.contentType),y.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Hb+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)y.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,y,o)===!1||k))return y.abort();if(x="abort",t.add(o.complete),y.done(o.success),y.fail(o.error),e=Kb(Gb,o,c,y)){if(y.readyState=1,l&&q.trigger("ajaxSend",[y,o]),k)return y;o.async&&o.timeout>0&&(i=a.setTimeout(function(){y.abort("timeout")},o.timeout));try{k=!1,e.send(v,A)}catch(z){if(k)throw z;A(-1,z)}}else A(-1,"No Transport");function A(b,c,d,h){var j,m,n,v,w,x=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",y.readyState=b>0?4:0,j=b>=200&&b<300||304===b,d&&(v=Mb(o,y,d)),v=Nb(o,v,y,j),j?(o.ifModified&&(w=y.getResponseHeader("Last-Modified"),w&&(r.lastModified[f]=w),w=y.getResponseHeader("etag"),w&&(r.etag[f]=w)),204===b||"HEAD"===o.type?x="nocontent":304===b?x="notmodified":(x=v.state,m=v.data,n=v.error,j=!n)):(n=x,!b&&x||(x="error",b<0&&(b=0))),y.status=b,y.statusText=(c||x)+"",j?s.resolveWith(p,[m,x,y]):s.rejectWith(p,[y,x,n]),y.statusCode(u),u=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[y,o,j?m:n]),t.fireWith(p,[y,x]),l&&(q.trigger("ajaxComplete",[y,o]),--r.active||r.event.trigger("ajaxStop")))}return y},getJSON:function(a,b,c){return r.get(a,b,c,"json")},getScript:function(a,b){return r.get(a,void 0,b,"script")}}),r.each(["get","post"],function(a,b){r[b]=function(a,c,d,e){return r.isFunction(c)&&(e=e||d,d=c,c=void 0),r.ajax(r.extend({url:a,type:b,dataType:e,data:c,success:d},r.isPlainObject(a)&&a))}}),r._evalUrl=function(a){return r.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},r.fn.extend({wrapAll:function(a){var b;return this[0]&&(r.isFunction(a)&&(a=a.call(this[0])),b=r(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return r.isFunction(a)?this.each(function(b){r(this).wrapInner(a.call(this,b))}):this.each(function(){var b=r(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=r.isFunction(a);return this.each(function(c){r(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(a){return!r.expr.pseudos.visible(a)},r.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},r.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Ob={0:200,1223:204},Pb=r.ajaxSettings.xhr();o.cors=!!Pb&&"withCredentials"in Pb,o.ajax=Pb=!!Pb,r.ajaxTransport(function(b){var c,d;if(o.cors||Pb&&!b.crossDomain)return{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Ob[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}}),r.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return r.globalEval(a),a}}}),r.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),r.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=r(" + + + + + + + + + + + + + + + diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/motox3m5.min.js b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/motox3m5.min.js new file mode 100644 index 000000000..b0b70647f --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/content/www.enjoy4fun.com/game/motox3m5poolparty/v4/motox3m5.min.js @@ -0,0 +1,778 @@ +!function(t){function e(s){if(i[s])return i[s].exports;var n=i[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};e.m=t,e.c=i,e.d=function(t,i,s){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:s})},e.n=function(t){var i=t&&t.__esModule?function e(){return t.default}:function e(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=56)}([function(t,e,i){"use strict";e.__esModule=!0;var s=i(6);e.MyRand=s.MyRand,e.UiStrUtil=s.UiStrUtil;var n=i(42);e.Drawing=n.Drawing;var o=i(16);e.NapeUtil=o.NapeUtil;var a=i(66);e.GameCore=a.GameCore;var r=i(67);e.GameObject=r.GameObject;var h=i(68);e.IDisposed=h.IDisposed;var l=i(69);e.IUpdated=l.IUpdated;var c=i(70);e.ISafed=c.ISafed;var u=i(71);e.IRestarted=u.IRestarted;var d=i(72);e.IActivatable=d.IActivatable;var p=i(43);e.GamePhysics=p.GamePhysics;var f=i(30);e.NapePhysics=f.NapePhysics;var y=i(73);e.GameView=y.GameView;var g=i(31);e.RaceCamera=g.RaceCamera;var m=i(32);e.CameraPathes=m.CameraPathes;var v=i(74);e.CarParams=v.CarParams;var b=i(75);e.CarUpgrades=b.CarUpgrades;var x=i(76);e.RaceCars=x.RaceCars;var _=i(77);e.WeaponParams=_.WeaponParams;var w=i(78);e.Inventory=w.Inventory;var P=i(79);e.LeagueVO=P.LeagueVO;var C=i(80);e.MapVO=C.MapVO;var T=i(81);e.RaceData=T.RaceData;var S=i(82);e.BgElVo=S.BgElVo;var A=i(83);e.ShopCarVO=A.ShopCarVO;var E=i(44);e.CarsData=E.CarsData;var I=i(34);e.GameData=I.GameData;var M=i(33);e.RacesData=M.RacesData;var O=i(84);e.ShopData=O.ShopData;var R=i(85);e.CarBuilder=R.CarBuilder;var B=i(88);e.RaceBuilder=B.RaceBuilder;var k=i(92);e.FrameGraphic=k.FrameGraphic;var D=i(48);e.GroundPartClip=D.GroundPartClip;var L=i(47);e.SmokePartClip=L.SmokePartClip;var F=i(93);e.TrailPart=F.TrailPart;var G=i(94);e.WheelGraphic=G.WheelGraphic;var U=i(95);e.BgEl=U.BgEl;var N=i(96);e.LandscapeShape=N.LandscapeShape;var j=i(49);e.CarObject=j.CarObject;var W=i(97);e.BikeObject=W.BikeObject;var X=i(98);e.CorpseObject=X.CorpseObject;var H=i(99);e.DriverObject=H.DriverObject;var V=i(100);e.FrameObject=V.FrameObject;var Y=i(101);e.PartObject=Y.PartObject;var q=i(102);e.WheelObject=q.WheelObject;var z=i(103);e.BgObject=z.BgObject;var K=i(104);e.DecorActObject=K.DecorActObject;var J=i(105);e.DecorMultiObject=J.DecorMultiObject;var Z=i(50);e.DecorObject=Z.DecorObject;var Q=i(106);e.VectorDecor=Q.VectorDecor;var $=i(37);e.CarExplodeObject=$.CarExplodeObject;var tt=i(107);e.GlassExplodeObject=tt.GlassExplodeObject;var et=i(36);e.TrailParticlesSystem=et.TrailParticlesSystem;var it=i(46);e.TrailPartObject=it.TrailPartObject;var st=i(108);e.GlassBlock=st.GlassBlock;var nt=i(51);e.GlassBlockPart=nt.GlassBlockPart;var ot=i(109);e.GroundObject=ot.GroundObject;var at=i(110);e.PlankObject=at.PlankObject;var rt=i(111);e.ShaperObject=rt.ShaperObject;var ht=i(112);e.WaterObject=ht.WaterObject;var lt=i(114);e.BoostObject=lt.BoostObject;var ct=i(53);e.DynamicBodyObject=ct.DynamicBodyObject;var ut=i(115);e.FinishObject=ut.FinishObject;var dt=i(116);e.MotorObject=dt.MotorObject;var pt=i(117);e.MoverPatherObject=pt.MoverPatherObject;var ft=i(118);e.PivotObject=ft.PivotObject;var yt=i(119);e.RemovedBodyObjects=yt.RemovedBodyObjects;var gt=i(120);e.SafePointObject=gt.SafePointObject;var mt=i(121);e.SpikesObject=mt.SpikesObject;var vt=i(122);e.TntObject=vt.TntObject;var bt=i(123);e.ToggleObject=bt.ToggleObject;var xt=i(124);e.CameraZone=xt.CameraZone;var _t=i(125);e.WaypointObject=_t.WaypointObject;var wt=i(1);e.ObjectTypes=wt.ObjectTypes;var Pt=i(10);e.CbTypes=Pt.CbTypes;var Ct=i(7);e.Filters=Ct.Filters;var Tt=i(8);e.Materials=Tt.Materials;var St=i(126);e.MaxPhysics=St.MaxPhysics;var At=i(127);e.BodyEffector=At.BodyEffector;var Et=i(128);e.BoostEffector=Et.BoostEffector;var It=i(129);e.PlayerController=It.PlayerController;var Mt=i(54);e.CarController=Mt.CarController;var Ot=i(5);e.GraphicUtil=Ot.GraphicUtil;var Rt=i(52);e.PhysicUtil=Rt.PhysicUtil;var Bt=i(2);e.MaxGameView=Bt.MaxGameView},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){}return t.BG=0,t.LANDSCAPE=1,t.LANDSCAPE_SHAPE=9,t.CAR=2,t.BULLET=3,t.FRONT=4,t.OBJECT=5,t.EFFECT=6,t.CAR_PART=7,t.LANDSCAPE_BACK=8,t}();e.ObjectTypes=s},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(0),o=i(12),a=i(1),r=Phaser.Group,h=i(11),l=i(6),c=i(3),u=i(35),d=i(4),p=function(){function t(){}return t}();e.default=p;var f=function(){function t(t,e,i){this.target=i,this.method=e,this.key=t}return t}();e.RenderVO=f;var y=function(){function t(){}return t.BG=[["Bg0_0","Bg1_0","Bg2_0"],["Bg0_0","Bg1_0","Bg2_0"]],t.ROAD_LINE=[["line","RoadLine0_1","RoadLine1_4","RoadLine0_3","RoadLine0_4","Plank0","line","line_alum","RoadLine0_8","LineSpike0","UnLine0","UnLine1","line_alum","CandyGround","RoadLine0_Bg"]],t.PILLAR_LINE=[["RoadPillar0_0","CandyPillar","line_alum"]],t.ROAD_TILE=["RoadTile0","RoadTile0","RoadTile0"],t.ROAD_SHAPE=[["RoadTile0_1","RoadTile1_1","RoadTile0","UnTile0","UnTile1","UnTile2","RoadTile0_Bg"],["RoadTile0_1","RoadTile1_1","RoadTile0","UnTile0","UnTile1","UnTile2","RoadTile0_Bg"],["RoadTile0_1","RoadTile1_1","RoadTile0","UnTile0","UnTile1","UnTile2","RoadTile0_Bg"]],t.DECORS=[["Dec13","Dec14","Dec15","Dec16","Dec36","Dec37","Dec38","Dec40","Dec41","Dec42","Dec50","Dec51","Dec52","Dec53","Dec54","Dec55","Dec56","Dec57","Dec58","Dec59","Dec60","Sign1","Sign2","Sign15","Sign21","SignPillar","PillarTop0_0","PillarTop0_1","PillarTop0_2","PillarBot0_0","PillarBot0_1","PillarBot0_2","GlassCrashed0_0","GlassCrashed0_1","GlassCrashed0_2","GlassCrashed0_3","GlassCrashed0_4","GlassCrashed0_5","BoostAnim","RocketAnim","Pivot0","particle_boost","GeyserBase","geyser_anim","PlankCandy0","PlankCandy1"]],t.OBJECTS=[["Tnt1","BarrelE","SpikesE","Removed0","Removed1","Plank0","GlassCrashed0","GlassCrashed1","BoostE","PlankWipe0","RemovedWipe0","SphereE"]],t.FRAMES_ANCHORX=[.48,null,.453,null,.526],t.FRAMES_ANCHORY=[.65,null,.647,null,.596],t.SUSPEND_BACK_ANCHORX=[.05,null,.114,null,-.125],t.SUSPEND_BACK_ANCHORY=[.5,null,.417,null,.5625],t.SUSPEND_FRONT_ANCHORX=[.8,null,.808,null,.836],t.SUSPEND_FRONT_ANCHORY=[.2,null,.333,null,.625],t.HEAD_ANCHORX=[.5,null,.395,null,.486],t.HEAD_ANCHORY=[.5,null,.519,null,.606],t.HIP_ANCHORX=[.5,null,.545,null,.5],t.HIP_ANCHORY=[.5,null,.583,null,.454],t.SHIN_ANCHORX=[.5,null,.4,null,.35],t.SHIN_ANCHORY=[.5,null,.5,null,.5],t.WHEELS=[["Wheel_1_0"],["Wheel_1_0"],["Wheel_3_0"],["Wheel_3_0"],["Wheel_5_0"]],t}();e.AssetsList=y;var g=function(){function t(){this.storage={}}return t.prototype.getByKey=function(t){return this.storage[t]},t.prototype.add=function(t,e){this.storage[t]=e},t.prototype.dispose=function(){for(var t in this.storage)this.storage[t]&&(this.storage[t]=null)},Object.defineProperty(t,"instance",{get:function(){return null===t._instance&&(t._instance=new t),t._instance},enumerable:!0,configurable:!0}),t.currentAatlass=c.Atlases.Theme0,t._instance=null,t}();e.AssetsStorage=g;var m=function(t){function e(e){var i=t.call(this,e)||this;return i.gamePadLayer=null,i.bg=new r(i.game),i.bg.interactive=!1,i.bg.scale.set(2),i.race=new r(i.game),i.race.interactive=!1,i.landscapeShapes=new r(i.game,i.race),i.landscape=new r(i.game,i.race),i.objects=new r(i.game,i.race),i.front=new r(i.game,i.race),i.gui=new r(i.game),i.raceCamera=new n.RaceCamera,i.raceCamera.setup(i.race,o.default.GAME_W,o.default.GAME_H,d.MaxGameCore.instance),i.gamePadLayer=i.game.add.group(),u.default.instance.init(i.gamePadLayer,i.game),i}return s(e,t),e.prototype.start=function(){t.prototype.start.call(this),this.game.world.addChild(this.bg),this.game.world.addChild(this.race),this.game.world.addChild(this.gui),this.game.world.addChild(this.gamePadLayer),this.raceCamera.setup(this.race,o.default.GAME_W,o.default.GAME_H,d.MaxGameCore.instance)},e.prototype.add=function(t){t.type===a.ObjectTypes.BG?this.bg.addChild(t.graphic):t.type===a.ObjectTypes.LANDSCAPE?this.landscape.addChild(t.graphic):t.type===a.ObjectTypes.LANDSCAPE_SHAPE?this.landscapeShapes.addChild(t.graphic):t.type===a.ObjectTypes.LANDSCAPE_BACK?this.landscape.addChildAt(t.graphic,0):t.type===a.ObjectTypes.CAR?this.objects.addChild(t.graphic):t.type===a.ObjectTypes.OBJECT?this.objects.addChild(t.graphic):t.type===a.ObjectTypes.BULLET?this.objects.addChild(t.graphic):t.type===a.ObjectTypes.EFFECT?this.front.addChild(t.graphic):t.type===a.ObjectTypes.CAR_PART?this.front.addChildAt(t.graphic,0):t.type===a.ObjectTypes.FRONT&&this.front.addChild(t.graphic)},e.prototype.update=function(e,i,s,o){if(t.prototype.update.call(this,e,i,s,o),s){var a=n.RacesData.TARGET_X,r=n.RacesData.TARGET_Y;n.CameraZone.focusedOnPoint?this.raceCamera.focusOnPoint(a,r):n.CameraZone.current?this.raceCamera.focusOnCameraZone(a,r):this.raceCamera.focusOnCar(a,r,e)}},e.prototype.release=function(){this.raceCamera.release(),this.raceCamera=null,this.car=null,this.bg=null,this.landscape=null,this.landscapeShapes=null,this.objects=null,this.front=null,this.gui=null},e}(n.GameView);e.MaxGameView=m;var v=function(){function t(){this.complete=new h.Signal}return Object.defineProperty(t,"instance",{get:function(){return null===t._instance&&(t._instance=new t),t._instance},enumerable:!0,configurable:!0}),t.prototype.start=function(){this.theme=0;var t=null,e=0,i="",s=g.instance,o=y.BG[this.theme];for(s.add("Bg0",o[0]),o[2]&&s.add("Bg2",o[2]),t=y.ROAD_LINE[this.theme],e=0;e1&&(n=1),n=this.prevPart+.2*(n-this.prevPart);var o=(.1+.5*n)*s;o<0?o=0:o>1&&(o=1),this.pitchPlaying?(this.prevPart!==n&&(this.enginePitch.volume=o),this.prevPart=n):(this.enginePitch.play("",0,o,!0),this.pitchPlaying=!0)}},e.prototype.update=function(i){if(!this.playerCar){if(!this.car)return;this.playerCar=this.car}if(this.calcEngineSound(this.playerCar.backWheel.body.angularVel),null!==this.engineStart&&(this.engineStart.isPlaying||null===this.engineLoop&&(this.engineLoop=l.default.getInstance().play(c.Sounds.EngineFon,1,!0))),this.paused)null!==this.engineLoop&&(this.engineLoop.volume=0),null!==this.engineStart&&this.engineStart.isPlaying&&(this.engineStart.volume=0),null!==this.engineGaz&&(this.engineGaz.stop(),this.engineGaz=null);else if(null!==this.engineLoop)if(this.car.dead)this.engineLoop.volume=0,null!==this.engineGaz&&(this.engineGaz.stop(),this.engineGaz=null);else{if(this.engineLoop.volume=u.default.getInstance().sfx?1:0,null!==this.engineGaz&&(this.engineGaz.volume=u.default.getInstance().sfx?1:0),!this.prevAccel&&this.car.accell){null!==this.engineGaz&&(this.engineGaz.stop(),this.engineGaz=null),this.engineGazNum++,5===this.engineGazNum&&(this.engineGazNum=1);var s="accel0"+this.engineGazNum;this.engineGaz=l.default.getInstance().play(s)}this.prevAccel=this.car.accell}this.paused||(o.RacesData.data.delayForMaks>0&&(o.RacesData.data.delayForMaks-=i,o.RacesData.data.delayForMaks<=0&&e.instance.setDelayedMasks()),this.updateIternal(i),t.prototype.update.call(this,i),this.view.update(this.car.speed,0,!0,i),this.car.frame.graphic.update2(i))},e.prototype.processFinish=function(){this.finished||(this.finished=!0,this.signalFinish.dispatch(1),l.default.getInstance().play(c.Sounds.Finish))},e.prototype.updateIternal=function(t){this.paused?r.default.instance.hideTimer():this.drive?this.playerCar.dead||(this.timer+=t,r.default.instance.showTimer()):(this.playerCar.accell||0!==this.playerCar.tilt)&&(this.drive=!0,r.default.instance.hideControlsHint()),this.playerCar.finished||(o.RacesData.TARGET_X=this.playerCar.x,o.RacesData.TARGET_Y=this.playerCar.y)},e.prototype.setMap=function(t){t.id=o.GameData.raceId,o.RacesData.map=t,this.prepareAssets()},e.prototype.prepareAssets=function(){a.RaceAssetsLoader.instance.complete.add(this.assetsReady,this),a.RaceAssetsLoader.instance.start()},e.prototype.assetsReady=function(t){void 0===t&&(t=null),t&&t.dispose(),o.RacesData.data.assetsReady=!0,this.buildLevel()},e.prototype.buildLevel=function(){o.RacesData.data.restart();var t=new o.RaceBuilder;t.complete.add(this.buildReady,this),t.start()},e.prototype.buildReady=function(t){void 0===t&&(t=null),t&&t.dispose(),this.createCars()},e.prototype.createCars=function(){this.carBuilder||(this.carBuilder=new o.CarBuilder),this.carBuilder.complete.add(this.carsReady,this),this.carBuilder.createAllCars()},e.prototype.carsReady=function(){null!=this.carBuilder&&this.carBuilder.dispose(),this.carBuilder=null,o.RacesData.data.camera=e.instance.view.raceCamera},e.prototype.getSpace=function(){return n.NapePhysics.space},e.prototype.restartFromSafePoint=function(t){for(var i=0;i0?"line_top":"line_wood_g":2===u?x="line_bg":3===u?x="line_metal_g":13==u&&(x="CandyGround"),x&&("line"===x||x.indexOf("line_top"),s.Drawing.drawBitmapPath(x,d,o))}return d},t.createCarFrameGraphic=function(t,e){return new o.FrameGraphic(t,e)},t.createCarWheelGraphic=function(t,e,i){return new o.WheelGraphic(t,i)},t.createImageWithObj=function(e,i){if(null===i)return null;var s;return s=t.game.add.sprite(0,0,t.currentAtlass,i+"0000"),s.anchor.set(.5),e&&(s.position.set(e.x,e.y),s.rotation=a.default.TO_RAD*e.rotation),s},t.createMovieClip=function(e,i,s,n,o){if(void 0===s&&(s=12),void 0===n&&(n=!0),void 0===o&&(o=!1),null===i)return null;var h;return"RocketAnim"==i?(h=t.game.add.sprite(0,0,r.Atlases.Cars,"RocketAnim0000"),h.animations.add("RocketAnim",Phaser.Animation.generateFrameNames("RocketAnim",0,5,"",4)),h.anchor.set(1,.5),h.animations.getAnimation("RocketAnim").play(30),h.animations.getAnimation("RocketAnim").stop()):"BoostAnim"==i?(h=t.game.add.sprite(0,0,t.currentAtlass,"boost_anim0000"),h.animations.add("boost_anim",Phaser.Animation.generateFrameNames("boost_anim",0,9,"",4)),h.anchor.set(.5),h.animations.getAnimation("boost_anim").play(30),h.animations.getAnimation("boost_anim").stop()):"SafePointAnim"===i||"CarExplode"===i?(h=t.game.add.sprite(0,0,t.currentAtlass,"bg0000"),h.animations.add(i,Phaser.Animation.generateFrameNames(i,0,28,"",4)),h.anchor.set(.5),h.animations.getAnimation(i).play(30),h.animations.getAnimation(i).stop()):"CarExplode"===i?(h=t.game.add.sprite(0,0,r.Atlases.Cars,i+"0000"),h.animations.add(i,Phaser.Animation.generateFrameNames(i,0,28,"",4)),h.anchor.set(.5),h.animations.getAnimation(i).play(30),h.animations.getAnimation(i).stop()):(h=t.game.add.sprite(0,0,t.currentAtlass,"bg0000"),h.scale.set(.4)),e&&(h.position.set(e.x,e.y),h.rotation=a.default.TO_RAD*e.rotation),h},t.createImage=function(e,i,s,n){if(null===n)return null;var l,c=n+"",u=o.Inventory.instance.skin;return 0===c.indexOf("driver")||0===c.indexOf("suspend")?(l=t.game.add.sprite(0,0,r.Atlases.Cars,c+u+"0000"),0===c.indexOf("suspend")?-1!==c.indexOf("back")?l.anchor.set(h.AssetsList.SUSPEND_BACK_ANCHORX[u-1],h.AssetsList.SUSPEND_BACK_ANCHORY[u-1]):l.anchor.set(h.AssetsList.SUSPEND_FRONT_ANCHORX[u-1],h.AssetsList.SUSPEND_FRONT_ANCHORY[u-1]):"driver_head"===c?l.anchor.set(h.AssetsList.HEAD_ANCHORX[u-1],h.AssetsList.HEAD_ANCHORY[u-1]):"driver_hip"===c?l.anchor.set(h.AssetsList.HIP_ANCHORX[u-1],h.AssetsList.HIP_ANCHORY[u-1]):"driver_shin"===c?l.anchor.set(h.AssetsList.SHIN_ANCHORX[u-1],h.AssetsList.SHIN_ANCHORY[u-1]):l.anchor.set(.5)):-1!==c.indexOf("FrameExploded")?(l=t.game.add.sprite(0,0,r.Atlases.Cars,c+"0000"),l.anchor.set(h.AssetsList.FRAMES_ANCHORX[u-1],h.AssetsList.FRAMES_ANCHORY[u-1])):(l=t.game.add.sprite(0,0,t.currentAtlass,c+"0000"),l.scale.set(.4)),l.rotation=s*a.default.TO_RAD,l},t.createLandscapeShape=function(e,i,r,h){var l=new o.LandscapeShape(e,i,r),c=0,u=null,d=e.params.layer;h?u="finish":(u="RoadTile0_1",1===d?u="tile_bg":2===d?u="tile":3===d?u="tile_red_pool":4===d?u="tile_rivet":5===d?u="tile_shape_bg":6===d?u="tile_stone":7==d?u="tile_water_bg":8==d?u="tile_red_pool":9==d&&(u="tile_red_pool"));var p="RoadTile0_1"===u,f=e.params.vertices,y,g=0,m=16,v=null;0===d?v="RoadLine0_4":1===d?(u="tile_bg",v="RoadLine0_Bg"):2===d?!0===e.params.line&&(v="line"):3===d?(v="line_spike",g=2):4===d?v="line_rivet":5===d?(v="line_shape_bg",m=8):6===d?(v="line_stone_shape",m=8):8===d?(v="line_red_pool",m=8):9===d&&(v="line_spike",g=2);var b=f[0],x=f.length,_=0,w=10,P=0,C=0,T=!1;if(4==x)for(T=!0,_=0;_P&&(P=Y);var q=Math.abs(H.y-V.y);q>C&&(C=q)}}}var z;T||(z=new n.Graphics(this.game,0,0),z.beginFill(16776960,.5),l.addChildAt(z,0));var K=new n.Point(115e3,115e3),J=2===g,Z=0,Q=0,$=0,tt=!1;for(null!=I&&(x=I.length,tt=!0),_=0;_Q?(Q=it,0===$&&($=tt?a.default.dist(b.x,b.y,I[_-1].x,I[_-1].y):a.default.dist(b.x,b.y,f[_-1].x,f[_-1].y))):J=!1}else J=!1}b.x+i4||Math.abs(f[0].y-f[f.length-1].y)>4)&&(y=new n.Point(.5*(f[0].x+f[f.length-1].x)+i,.5*(f[0].y+f[f.length-1].y)+r),nt[0]=y);for(var ot=0;ot4||Math.abs(M[0].y-M[M.length-1].y)>4)&&(y=new n.Point(.5*(M[0].x+M[M.length-1].x)+i,.5*(M[0].y+M[M.length-1].y)+r),nt[0]=y);for(var at=0;atMath.PI?t-=2*Math.PI:t<-Math.PI&&(t+=2*Math.PI),t},t.normalizeAngle2=function(t){return t%=2*Math.PI,t>Math.PI?t-=2*Math.PI:t<-Math.PI&&(t+=2*Math.PI),t},t.normalizeVertices=function(e){var i={};i.className=e.className,i.params={},i.params.vertices=[];var s=e.params,n=s.x,o=s.y;for(var a in s)"vertices"!==a&&(i.params[a]=s[a]);for(var r=t.TO_RAD*s.rotation,h=s.vertices,l=i.params.vertices,c=h.length,u=0;u=1e3;)e/=1e3,++s;return i+e.toString()+t.RANKS[s]+t.PRICE_POSTFIX},t.formatTime=function(t){var e=t/60>>0,i=e.toString();e<10&&(i="0"+i),t-=60*e,e=t>>0;var s=e.toString();return e<10&&(s="0"+s),i+":"+s},t.PRICE_POSTFIX="",t.RANKS=["","k","m","omg","wtf"],t}();e.UiStrUtil=o},function(t,e,i){"use strict";e.__esModule=!0;var s=nape.dynamics.InteractionFilter,n=function(){function t(){}return t.NOTHING=new s(0,0,0,0,0,0),t.SENSOR=new s(0,0,1,4369),t.SENS_ONLY_PLAYER=new s(0,0,1,4368),t.TOGGLE=new s(0,0,1,4369),t.WITH_EARTH_ONLY=new s(1,4369,0,0),t.WHEEL=new s(4096,272,17,4369),t.DRIVER_PART=new s(4096,272),t.BODY_COLLIDER=new s(4096,272,17,4369),t.GROUND=new s(17,4369,1,4369),t.PLAYER_ONLY=new s(256,4096,1,4369),t.WATER=new s(0,0,1,4369),t}();e.Filters=n},function(t,e,i){"use strict";e.__esModule=!0;var s=nape.phys.Material,n=function(){function t(){}return t.DEFAULT=new s,t.GROUND=new s,t.WIEGHTLESS=new s(0,1,2,.001),t.TUMBEWEED=new s(0,1,2,.5),t.GBARREL=new s(0,1,2,.5),t}();e.Materials=n},function(t,e,i){"use strict";e.__esModule=!0;var s=i(15),n=i(38),o=function(){function t(t){this.music=null,this.musicKey=null,this.musicStopped=!1,this.musicListen=!1,this.audioInstances={},this.sound=t.sound}return t.getInstance=function(e){if(null===t.instance){if(!e)throw new Error("Cant create a new instance without a game");t.instance=new t(e)}return t.instance},t.prototype.play=function(t,e,i){if(void 0===e&&(e=1),void 0===i&&(i=!1),n.default.isSfxReady)return this.audioInstances.hasOwnProperty(t)||(this.audioInstances[t]=this.sound.add(t)),s.default.getInstance().sfx?(this.audioInstances[t].play(void 0,void 0,e,i,!0),this.audioInstances[t]):this.audioInstances[t].play(void 0,void 0,0,i,!0)},t.prototype.stop=function(t){this.audioInstances.hasOwnProperty(t)&&this.audioInstances[t].stop()},t.prototype.playMusic=function(t){if(!s.default.getInstance().music)return void(n.default.isTracksReady?(this.music=this.sound.play(t,.5,!0),this.music.stop()):(this.musicListen||(n.default.trackReady.add(this.onMusicReady,this),this.musicListen=!0),this.musicKey=t,this.musicStopped=!0));null!==this.music&&this.music.name===t||(null!==this.music&&this.music.name!==t&&this.music.stop(),n.default.isTracksReady?this.music=this.sound.play(t,.5,!0):(this.musicListen||(n.default.trackReady.add(this.onMusicReady,this),this.musicListen=!0),this.musicKey=t,this.musicStopped=!1))},t.prototype.onMusicReady=function(){n.default.trackReady.remove(this.onMusicReady,this),null===this.musicKey||(this.music=this.sound.play(this.musicKey,.5,!0),this.musicStopped&&this.music.stop())},t.prototype.fadeMusicVolume=function(t,e){this.music&&this.music.fadeTo(t,e)},t.prototype.stopMusic=function(){null!==this.music&&this.music.isPlaying&&this.music.stop()},t.prototype.toggleSfx=function(){s.default.getInstance().sfx=!s.default.getInstance().sfx},t.prototype.toggleMusic=function(){s.default.getInstance().music=!s.default.getInstance().music,s.default.getInstance().music?(this.music&&this.music.play(void 0,void 0,1,!0),this.musicStopped=!1):(this.music&&this.music.isPlaying&&this.stopMusic(),this.musicStopped=!0)},t.instance=null,t}();e.default=o},function(t,e,i){"use strict";e.__esModule=!0;var s=nape.callbacks.CbType,n=function(){function t(){}return t.WHEEL=new s,t.BODY_COLLIDER=new s,t.ZONE_FINISH=new s,t.COIN=new s,t.DESTOYED=new s,t.TOGGLE=new s,t.TOGGLE_OFF=new s,t.GROUND=new s,t.DRIVER=new s,t.DRIVER_PART=new s,t.SAFE_POINT=new s,t.SPIKES=new s,t.SAW=new s,t.BARREL=new s,t.WOOD=new s,t.WATER=new s,t.GLASS=new s,t.BOOST=new s,t.GEYSER=new s,t}();e.CbTypes=n},function(t,e,i){(function(e){t.exports=e.Phaser=i(60)}).call(e,i(28))},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){}return t.GAME_W=720,t.GAME_H=480,t.DISPLAY_W=720,t.DISPLAY_H=480,t.CAR_ED_SAVE="mrce",t.ED_SAVE="mre",t}();e.default=s},function(t,e,i){(function(e){t.exports=e.PIXI=i(59)}).call(e,i(28))},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0,i(13),i(11);var n=i(19),o=function(t){function e(e,i,s,o,a,r){void 0===r&&(r=null);var h=t.call(this,e)||this;return h._enable=!0,h._graphics=null,h._texts=null,h.inputEnableChildren=!0,h._graphics=h.game.add.group(h),h._texts=h.game.add.group(h),h.btn=h.game.add.button(0,0,r,o,a),h.btn.anchor.set(.5),h._graphics.addChild(h.btn),null!==s&&(h.label=new n.default(h.game,0,2,i,s,70,40),h.label.anchor.set(.5),h._texts.addChild(h.label),null!==o&&null!==a&&h.label.events.onInputDown.add(o,a)),h.game.add.existing(h),h}return s(e,t),e.prototype.setText=function(t){this.label&&this.label.setText(t)},e.prototype.setFrames=function(t,e,i,s){this.btn.setFrames(t,e,i,s)},e.prototype.destroy=function(e){this.id=null,this.label=null,this.btn=null,this._graphics=null,this._texts=null,t.prototype.destroy.call(this,e)},Object.defineProperty(e.prototype,"enable",{get:function(){return this._enable},set:function(t){this._enable!==t&&(this._enable=t,this.btn.inputEnabled=this._enable,this._enable?(this.btn.tint=16777215,this.label&&(this.label.tint=16777215)):(this.btn.tint=10066329,this.label&&(this.label.tint=10066329)))},enumerable:!0,configurable:!0}),e}(Phaser.Group);e.default=o},function(t,e,i){"use strict";e.__esModule=!0;var s=i(3),n=i(0),o=function(){function t(t,e,i){var n=this;this.musicOn=!0,this.sfxOn=!0,this.carSaves={},this.game=t,this.callback=e,this.callbackContext=i,this.game.storage.getItem(s.Constants.STORAGE_KEY).then(function(t){null===t||void 0===t?(n.initFirstSave(),n.callback&&n.callbackContext&&n.callback.call(n.callbackContext)):n.restore()})}return t.prototype.initFirstSave=function(){this.sfxOn=!0,this.musicOn=!0,n.Inventory.instance.init(),this.save()},t.getInstance=function(e,i,s){return t.instance?s&&i.call(s):t.instance=new t(e,i,s),t.instance},Object.defineProperty(t.prototype,"music",{get:function(){return this.musicOn},set:function(t){this.musicOn=t,this.save()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sfx",{get:function(){return this.sfxOn},set:function(t){this.sfxOn=t,this.save()},enumerable:!0,configurable:!0}),t.prototype.save=function(){var t=JSON.stringify({m:this.musicOn,sf:this.sfxOn,invsav:n.Inventory.instance.save}),e=this.hash(t);this.game.storage.setItem(s.Constants.STORAGE_KEY,t),this.game.storage.setItem(s.Constants.STORAGE_KEY+"h",e)},t.prototype.restore=function(){var t=this,e=this.game.storage.getItem(s.Constants.STORAGE_KEY),i=this.game.storage.getItem(s.Constants.STORAGE_KEY+"h"),o,a;Promise.all([e,i]).then(function(e){if(o=e[0]||"",a=e[1]||"0",""===o)return t.initFirstSave(),void(t.callback&&t.callbackContext&&t.callback.call(t.callbackContext));if(a!==t.hash(o))return t.initFirstSave(),void(t.callback&&t.callbackContext&&t.callback.call(t.callbackContext));if(o&&""!==o)try{var i=JSON.parse(o);t.musicOn=i.m,t.sfxOn=i.sf,n.Inventory.instance.save=i.invsav}catch(e){t.initFirstSave()}else t.initFirstSave();t.callback&&t.callbackContext&&t.callback.call(t.callbackContext)})},t.prototype.hash=function(t){var e=0,i,s,n;if(0===t.length)return e.toString();for(i=0,n=t.length;it?(this.destroyAd(),!1):(this.displayAd(),!0)},t.getInstance=function(){return t.instance||(t.instance=new t),this.instance},t}();e.default=o},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(3),o=i(22),a=function(t){function e(i,s,a,r){var h=t.call(this,i)||this;h.alpha=0,h.beginFill(s,1),h.drawRect(0,0,h.game.width,h.game.height),h.endFill(),o.default.Name!==a&&(e.prevState=a);var l=h.game.add.text(h.game.width/2,h.game.height/2,"LOADING...",n.Constants.styleCredits0);l.anchor.set(.5),h.addChild(l),i.add.existing(h);var c=h.game.add.tween(h);return c.to({alpha:1},100),c.onComplete.add(function(){i.state.start(a,!0,!1,r)}),c.start(),h}return s(e,t),e.prevState="menu",e}(Phaser.Graphics);e.default=a},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0,i(13),i(11);var n=function(t){function e(e,i,s,n,o,a,r){var h=t.call(this,e,i,s,n,o)||this;return h.maxWidth=a,h.maxHeight=r,h.game.add.existing(h),h}return s(e,t),e.prototype.setText=function(e){return t.prototype.setText.call(this,e),(this.maxWidth||this.maxHeight)&&this.makeFontFit(),this},e.prototype.setMaxSize=function(t,e){this.maxWidth=t,this.maxHeight=e},e.prototype.makeFontFit=function(){for(var t=10,e;this.width>this.maxWidth||this.height>this.maxHeight;){if((e=parseInt(this.fontSize.toString().replace("px",""),10)-1)<10){e=10,this.fontSize=e;break}this.fontSize=e}},e}(Phaser.Text);e.default=n},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){}return t.VERSION="5.2.2p",t.GAME_SCALE=1,t.CALCULATED_WIDTH=0,t.CALCULATED_HEIGHT=0,t.WIDTH=720,t.HEIGHT=480,t.LANDSCAPE_LOCKED=!0,t.PORTRAIT_LOCKED=!1,t.GAME_DISTRIBUTION_LOCAL_ID="",t.STORAGE_KEY="mx3m_5_pk",t.styleMoney={font:"25px Impact",fill:"#DDD9D7"},t.styleBestTime={font:"14px Impact",fill:"#FFFFFF"},t.styleTime={font:"15px Impact",fill:"#DDD9D7"},t.styleTimer={font:"20px Impact",fill:"#DDD9D7"},t.styleHelp={font:"20px Impact",fill:"#FFFFFF"},t.stylePlay={font:"80px CfCrackBold",fill:"#FF8F00"},t.styleTrick={font:"30px CfCrackBold",fill:"#FF8F00"},t.stylePlace={font:"24px CfCrackBold",fill:"#97F337"},t.styleMSGUI={font:"10px Impact",fill:"#FFFFFF"},t.styleGarage={font:"80px CfCrackBold",fill:"#FF8F00"},t.styleGarage2={font:"33px CfCrackBold",fill:"#FFFFFF"},t.styleGarage3={font:"50px CfCrackBold",fill:"#FFFFFF"},t.stylePopBtn={font:"30px CfCrackBold",fill:"#2C374E"},t.stylePopBtn2={font:"25px CfCrackBold",fill:"#2C374E"},t.styleChooseLevel={font:"36px CfCrackBold",fill:"#FFFFFF"},t.stylePause={font:"40px CfCrackBold",fill:"#FFFFFF"},t.styleFinish={font:"30px CfCrackBold",fill:"#FF8F00"},t.styleFinish1={font:"20px CfCrackBold",fill:"#FFFFFF"},t.styleCredits0={font:"30px CfCrackBold",fill:"#FFFFFF"},t.styleCreditsOK={font:"50px CfCrackBold",fill:"#FF8F00"},t.styleCredits1={font:"18px Impact",fill:"#FFFFFF"},t.styleCredits2={font:"14px Impact",fill:"#FFFFFF"},t.styleVersion={font:15*t.GAME_SCALE+"px Impact",fill:"#FFFFFF"},t}();e.default=s},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){}return t.Garage="garage",t.Cars="cars_game",t.Theme0="theme0",t.preloadList=[],t.list=[t.Garage,t.Cars],t.fullList=[t.Theme0],t}();e.default=s},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(14),o=i(21),a=i(20),r=i(23),h=i(27),l=i(9),c=i(25),u=i(15),d=i(39),p=i(18),f=i(34),y=i(44),g=i(0),m=i(2),v=i(19),b=i(17),x=function(t){function e(){var i=t.call(this)||this;return i.name=e.Name,i.changeBike=null,i.priceTxt=null,i.btnLeft=null,i.btnRight=null,i.bike=null,i.parts2=null,i.lastTime=0,i.stars=0,i.priceTxtAnim=!1,i.priceTxtY=0,i.plusStarBtnY=0,i.popup=null,i}return s(e,t),e.prototype.init=function(){this.game.world.removeAll(),this.parts2=[],g.GraphicUtil.game=this.game,l.default.getInstance().playMusic(c.default.MenuMusic)},e.prototype.create=function(){t.prototype.create.call(this),this.stars=g.Inventory.instance.getTotalStars();var i=this.game.add.sprite(360,240,o.default.Garage,"0popup_bg0000");i.anchor.set(.5);var s=null;this.background=this.game.add.sprite(0,0,o.default.Garage,"bg0000"),s=this.game.add.sprite(0,0,o.default.Garage,"0bg_garage0000"),s.alpha=0,this.background.addChild(s),this.background.addChild(i);var r=new n.default(this.game,"BIKE SHOP",a.default.styleGarage,null,null,o.default.Garage);r.setFrames("bg0000","bg0000","bg0000","bg0000"),r.position.set(a.default.WIDTH/2,40),this.background.addChild(r),this.top_stars=new n.default(this.game,g.Inventory.instance.getTotalStars()+"",a.default.styleMoney,null,null,o.default.Garage),this.top_stars.setFrames("w_star0000","w_star0000","w_star0000","w_star0000"),this.top_stars.position.set(a.default.WIDTH-30,30),this.top_stars.label.x=-30,this.game.width-a.default.WIDTH>0&&(this.top_stars.x+=(this.game.width-a.default.WIDTH)/2),this.background.addChild(this.top_stars),r.label.stroke="#000000",r.label.strokeThickness=4;var l=new v.default(this.game,0,2,"BIKE SHOP",a.default.stylePlay);l.anchor.set(.5),r.label.parent.addChildAt(l,0),l.stroke="#FFFFFF",l.strokeThickness=7,this.plusStarBtn=new n.default(this.game,"to unlock bike",a.default.styleHelp,this.onRewardedDown,this,o.default.Garage),this.plusStarBtn.label.setShadow(1,1,"rgba(0,0,0,0.8)",5),this.plusStarBtn.setFrames("orange_btn0000","orange_btn0000","orange_btn0000","orange_btn0000"),this.plusStarBtn.label.y+=4;var c=new v.default(this.game,0,2,"Watch video",a.default.styleHelp,30,30);c.anchor.set(.5),c.position.y=-20,c.setShadow(1,1,"rgba(0,0,0,0.8)",5),this.plusStarBtn.addChild(c),this.plusStarBtn.position.set(a.default.WIDTH-.5*this.plusStarBtn.width,a.default.HEIGHT-10-.5*this.plusStarBtn.height),this.game.width-a.default.WIDTH>0&&(this.plusStarBtn.x+=(this.game.width-a.default.WIDTH)/2),this.background.addChild(this.plusStarBtn),this.playBtn=new n.default(this.game,"",a.default.stylePopBtn2,p.default.prevState===h.default.Name?this.onMenu:this.onPlayDown,this,o.default.Garage),this.playBtn.setFrames("orange_btn0000","orange_btn0000","orange_btn0000","orange_btn0000");var u=this.game.add.sprite(0,-7,o.default.Garage,"next_btn0000");u.anchor.set(.5),u.scale.set(-1,1),this.playBtn.label.parent.addChild(u),this.playBtn.x=10+this.playBtn.width/2,this.playBtn.y=a.default.HEIGHT-10-this.playBtn.height/2,this.btnLeft=new n.default(this.game,"",a.default.styleGarage,this.onPrev,this,o.default.Garage),this.btnLeft.setFrames("arrow_btn0000","arrow_btn0000","arrow_btn0001","arrow_btn0000"),this.btnRight=new n.default(this.game,"",a.default.styleGarage,this.onNext,this,o.default.Garage),this.btnRight.setFrames("arrow_btn0000","arrow_btn0000","arrow_btn0001","arrow_btn0000"),this.btnRight.rotation=Phaser.Math.degToRad(180),this.btnLeft.x=10+this.playBtn.width/2,this.btnRight.x=a.default.WIDTH-10-this.playBtn.width/2,this.btnLeft.y=a.default.HEIGHT/2,this.btnRight.y=a.default.HEIGHT/2,this.game.width-a.default.WIDTH>0&&(this.playBtn.x-=(this.game.width-a.default.WIDTH)/2,this.btnLeft.x-=(this.game.width-a.default.WIDTH)/2,this.btnRight.x+=(this.game.width-a.default.WIDTH)/2),e.currCar=e.carList.indexOf(g.Inventory.instance.skin),f.GameData.carId=e.carList[e.currCar],g.Inventory.instance.skin=e.carList[e.currCar],this.setNewViewCar(),this.background.addChild(this.playBtn),this.background.addChild(this.btnLeft),this.background.addChild(this.btnRight),new d.default(this.game,0,null),this.resize()},e.prototype.getPrice=function(){var t=e.priceList[e.currCar]+"";return"0"===t&&(t="FREE"),t},e.prototype.onPlayerChange=function(){2===e.currCar?this.btnRight.enable=!1:this.btnRight.enable=!0,0===e.currCar?this.btnLeft.enable=!1:this.btnLeft.enable=!0},e.prototype.saveCarId=function(){var t=e.carList[e.currCar];if(!0===g.Inventory.instance.save["skin"+t])f.GameData.carId=t,g.Inventory.instance.skin=t,this.setNewViewCar(),u.default.getInstance().save();else if(g.Inventory.instance.getTotalStars()>=e.priceList[e.currCar])f.GameData.carId=t,g.Inventory.instance.skin=t,g.Inventory.instance.unlockSkin(t,t)&&b.default.getInstance().dispatchHappy(.5),this.setNewViewCar(),u.default.getInstance().save();else if(!this.priceTxtAnim){var i=this.game.add.tween(this.plusStarBtn);i.to({y:this.plusStarBtnY-15},150,Phaser.Easing.Bounce.InOut,!1,0,3,!0),i.onComplete.add(this.onPriceAnimComplete,this),this.priceTxtAnim=!0,i.start(),i=this.game.add.tween(this.priceTxt),i.to({y:this.priceTxtY-15},150,Phaser.Easing.Bounce.InOut,!1,0,3,!0),i.onComplete.add(this.onPriceAnimComplete,this),this.priceTxtAnim=!0,i.start()}},e.prototype.onPriceAnimComplete=function(){this.priceTxtAnim=!1},e.prototype.onPlayDown=function(){new p.default(this.game,0,r.default.Name)},e.prototype.onMenu=function(){new p.default(this.game,0,h.default.Name)},e.prototype.onNext=function(){e.currCar<2&&e.currCar++,this.setNewViewCar()},e.prototype.parseStaticGraphic=function(t,i){var s=null;s=this.game.add.image(t[i].x,t[i].y,o.default.Cars,t[i].g+"0000"),s.angle=t[i].r;var n=e.carList[e.currCar];-1!==i.indexOf("base")?s.anchor.set(m.AssetsList.FRAMES_ANCHORX[n-1],m.AssetsList.FRAMES_ANCHORY[n-1]):-1!==i.indexOf("suspend")?-1!==i.indexOf("front")?s.anchor.set(.8,-1!==t[i].g.indexOf("1")?.2:.5):s.anchor.set(0,.5):"driver_head"===i?s.anchor.set(m.AssetsList.HEAD_ANCHORX[n-1],m.AssetsList.HEAD_ANCHORY[n-1]):"driver_hip"===i?s.anchor.set(m.AssetsList.HIP_ANCHORX[n-1],m.AssetsList.HIP_ANCHORY[n-1]):"driver_shin"===i?s.anchor.set(m.AssetsList.SHIN_ANCHORX[n-1],m.AssetsList.SHIN_ANCHORY[n-1]):s.anchor.set(.5),this.bike.addChild(s)},e.prototype.setNewViewCar=function(){var t=e.carList[e.currCar];null!==this.bike?(this.bike.destroy(),this.bike=this.game.add.group()):this.bike=this.game.add.group();var i=y.CarsData.geomObj["bike"+t],s,r=5===t;s="Wheel0",this.parseStaticGraphic(i,s),s="Wheel1",this.parseStaticGraphic(i,s),s="suspend_back",this.parseStaticGraphic(i,s),r&&(s="suspend_front",this.parseStaticGraphic(i,s)),s="base",this.parseStaticGraphic(i,s),s="driver_shin",this.parseStaticGraphic(i,s),s="driver_hip",this.parseStaticGraphic(i,s),s="driver_corpse",this.parseStaticGraphic(i,s),s="driver_arm",this.parseStaticGraphic(i,s),s="driver_forearm",this.parseStaticGraphic(i,s),s="driver_head",this.parseStaticGraphic(i,s),r||(s="suspend_front",this.parseStaticGraphic(i,s)),this.bike.x=a.default.WIDTH/2,this.bike.y=a.default.HEIGHT/2,this.background.addChild(this.bike),this.changeBike&&this.changeBike.destroy();var h="EQUIPPED",l="orange_btn_big_green0000",c=e.carList[e.currCar];c!==g.Inventory.instance.skin&&(h="EQUIP IT",l="orange_btn_big0000"),this.plusStarBtn.visible=!1;var u=!0;if(!0===g.Inventory.instance.save["skin"+c]||1!==c&&(this.plusStarBtn.visible=!0,u=!1),this.changeBike=new n.default(this.game,h,a.default.styleGarage2,this.saveCarId,this,o.default.Garage),this.changeBike.x=a.default.WIDTH/2,this.changeBike.y=a.default.HEIGHT-50,this.changeBike.setFrames(l,l,l,l),this.changeBike.label.setMaxSize(200,40),this.changeBike.label.y=-6,this.changeBike.label.setShadow(1,1,"rgba(0,0,0,0.8)",5),this.priceTxt&&this.priceTxt.destroy(),!u){this.priceTxt=new n.default(this.game,"PRICE:",a.default.styleMoney,null,null,o.default.Garage),this.priceTxt.setFrames("bg0000","bg0000","bg0000","bg0000"),this.priceTxt.label.y=-15;var d=new v.default(this.game,0,15,this.getPrice(),a.default.styleMoney);if("FREE"===this.getPrice())d.anchor.set(.5);else{d.anchor.set(1.05,.5);var p=this.game.add.sprite(0,15,o.default.Garage,"w_star0000");p.anchor.set(.15,.5),this.priceTxt.label.parent.addChild(p)}this.priceTxt.label.parent.addChild(d),this.priceTxt.x=this.changeBike.x,this.priceTxt.y=this.changeBike.y-70,this.priceTxtY=this.priceTxt.y,this.plusStarBtnY=this.plusStarBtn.y,this.background.addChild(this.priceTxt)}this.background.addChild(this.changeBike),this.onPlayerChange()},e.prototype.update=function(){t.prototype.update.call(this),this.stars!=g.Inventory.instance.getTotalStars()&&(this.stars=g.Inventory.instance.getTotalStars(),this.top_stars.label.text=this.stars+"",this.rewardPopup())},e.prototype.onPrev=function(){0!==e.currCar&&e.currCar--,this.setNewViewCar()},e.prototype.shutdown=function(){this.background=null,this.changeBike=null,this.playBtn=null,this.btnLeft=null,this.btnRight=null,this.parts2=null,t.prototype.shutdown.call(this)},e.prototype.resize=function(){t.prototype.resize.call(this);var e=1;e=this.game.width/a.default.WIDTH,e=e>1?1:e,this.background.scale.set(e),this.background.x=(this.game.width-720)/2},e.prototype.onRewardedDown=function(){b.default.getInstance().displayRewarded(this.rewaredResult,this)},e.prototype.rewaredResult=function(t){if(t){var i=e.carList[e.currCar];g.Inventory.instance.save["skin"+i]=!0,b.default.getInstance().dispatchHappy(.5),this.saveCarId()}},e.prototype.rewardPopup=function(){null!==this.popup&&this.disposePopup(),this.backgroundPopup();var t=this.game.add.sprite(0,0,o.default.Garage,"0popup_bg0000");t.anchor.set(.5),this.popup.addChild(t);var e=null,i=null;e=this.game.add.sprite(0,3,o.default.Garage,"bg0000"),e.anchor.set(.5),e.scale.set(1,1.4),this.popup.getChildAt(1).addChild(e),i=new n.default(this.game,"Congratulations! \n You earned 1 star",a.default.styleMoney,null,this,o.default.Garage),i.y=-40,i.label.stroke="#000000",i.label.strokeThickness=2;var s=this.game.add.group();this.popup.getChildAt(1).addChild(s),i.setFrames("bg0000","bg0000","bg0000","bg0000"),this.popup.getChildAt(1).addChild(i);var r=new n.default(this.game,"OK",a.default.styleGarage3,this.rewardOk,this,o.default.Garage);r.label.y-=8,r.label.setShadow(1,1,"rgba(0,0,0,0.8)",5),r.x=0,r.y=100,r.setFrames("orange_btn0000","orange_btn0000","orange_btn0000","orange_btn0000"),r.scale.set(.8),this.popup.getChildAt(1).addChild(r),this.resizePopup(1)},e.prototype.resizePopup=function(t){if(null!==this.popup){var e=this.popup.removeChildAt(0);e.width=this.game.width,e.height=this.game.height,this.popup.x=this.world.bounds.centerX,this.popup.y=this.world.bounds.centerY,this.popup.addChildAt(e,0)}},e.prototype.rewardOk=function(){this.closePopup()},e.prototype.closePopup=function(){this.disposePopup()},e.prototype.disposePopup=function(){this.popup&&this.popup.destroy(),this.popup=null},e.prototype.backgroundPopup=function(){this.popup=this.game.add.sprite(350,250,o.default.Garage,"bg0000"),this.popup.anchor.set(.5);var t=this.game.add.sprite(0,0,o.default.Garage,"bg0000");t.width=this.game.width,t.height=this.game.height,t.inputEnabled=!0,t.anchor.set(.5),this.popup.addChild(t)},e.prevNameState="garage",e.Name="garage",e.pause=!1,e.currCar=0,e.carList=[1,3,5],e.priceList=[0,12,35],e}(Phaser.State);e.default=x},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(21),o=i(20),a=i(25),r=i(9),h=i(24),l=i(22),c=i(130),u=i(18),d=i(39),p=i(26),f=i(34),y=i(0),g=i(14),m=i(15),v=i(27),b=i(41),x=i(12),_=i(38),w=i(17),P=function(t){function e(){var i=t.call(this)||this;return i.name=e.Name,i.innerNumner=-1,i}return s(e,t),e.prototype.init=function(){this.game.world.removeAll(),r.default.getInstance().playMusic(a.default.MenuMusic)},e.prototype.create=function(){if(t.prototype.create.call(this),x.default.isDesktop){this.game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR).onUp.add(this.onSpace,this)}if(y.Inventory.instance.signalUnlock.removeAll(),y.Inventory.instance.signalUnlock.addOnce(function(){new u.default(this.game,0,e.Name)},this),x.default.isDesktop){this.continueText=new g.default(this.game,"Press Space to play",o.default.styleHelp,null,null,n.default.Garage),this.continueText.setFrames("0popup_bg0000","0popup_bg0000","0popup_bg0000","0popup_bg0000"),this.continueText.x=this.game.width/2,this.continueText.y=this.game.height+this.continueText.height/2-90*o.default.GAME_SCALE,this.continueText.label.anchor.set(.5,5.5);var i=void 0;i=this.game.add.sprite(0,0,n.default.Garage,"space_key0000"),i.animations.add("space_key",["space_key0000","space_key0001"],2,!0),i.y=-.5*this.continueText.height+75,i.x-=4,i.animations.getAnimation("space_key").play(2,!0),i.anchor.set(.5),this.continueText.addChild(i)}this.scaleGroup=this.game.add.group();var s=this.game.add.sprite(0,0,n.default.Garage,"0bg_garage0000"),a=this.game.add.sprite(-30,0,n.default.Garage,"0bg_garage_l0000"),r=this.game.add.sprite(s.width-10,0,n.default.Garage,"0bg_garage_r0000"),h=(this.game.width-720)/2;a.x=-1*h-10,a.width=h+20,r.width=h+20,this.scaleGroup.addChild(a),this.scaleGroup.addChild(r),this.scaleGroup.addChild(s);var l=this.game.add.sprite(0,0,n.default.Garage,"top_bg0000");l.x=this.game.width-l.width,l=this.game.add.sprite(this.game.width,0,n.default.Garage,"top_bg0000"),l.x=l.width,l.scale.set(-1,1);var c=new g.default(this.game,"",null,this.onBackDown,this,n.default.Garage);c.setFrames("shop_btn0000","shop_btn0000","shop_btn0000","shop_btn0000"),c.x=45,c.y=30,this.world.addChild(c),this.musicBtn=this.game.add.image(120,25,n.default.Garage,"InGameMusicButton0000"),this.musicBtn.inputEnabled=!0,this.musicBtn.events.onInputUp.add(this.toggleMusic,this),this.musicBtn.anchor.set(.5),this.musicBtn.x=this.game.width-35;var p=new g.default(this.game,y.Inventory.instance.getTotalStars()+"",o.default.styleMoney,null,null,n.default.Garage);p.setFrames("w_star0000","w_star0000","w_star0000","w_star0000"),p.position.set(110,30),p.label.x=20,p.label.anchor.set(0,.5),this.world.addChild(p),this.updateSoundButtons(),this.createButtons();var f=new g.default(this.game,"",o.default.stylePopBtn2,this.onMenu,this,n.default.Garage);f.setFrames("orange_btn0000","orange_btn0000","orange_btn0000","orange_btn0000");var m=this.game.add.sprite(0,-7,n.default.Garage,"next_btn0000");m.anchor.set(.5),m.scale.set(-1,1),f.scale.set(.7),f.label.parent.addChild(m),f.x=10+f.width/2,f.y=o.default.HEIGHT-5-f.height/2,this.game.width-o.default.WIDTH>0&&(f.x-=(this.game.width-o.default.WIDTH)/2),this.scaleGroup.addChild(f),f=new g.default(this.game,"",o.default.stylePopBtn2,this.onPlayNext,this,n.default.Garage),f.setFrames("orange_btn0000","orange_btn0000","orange_btn0000","orange_btn0000"),m=this.game.add.sprite(0,-7,n.default.Garage,"next_btn0000"),m.anchor.set(.5),f.scale.set(.7),f.label.parent.addChild(m),f.x=o.default.WIDTH-10-f.width/2,f.y=o.default.HEIGHT-5-f.height/2,this.game.width-o.default.WIDTH>0&&(f.x+=(this.game.width-o.default.WIDTH)/2),this.scaleGroup.addChild(f),new d.default(this.game,0,null),this.resize()},e.prototype.onMoto1=function(){window.open(b.default.getInstance().getMotoLink(1),"_blank")},e.prototype.onMoto4=function(){window.open(b.default.getInstance().getMotoLink(4),"_blank")},e.prototype.onMenu=function(){new u.default(this.game,0,v.default.Name)},e.prototype.createButtons=function(){for(var t=0;t<22;t++){var e=y.CarsData.geomObj["point"+t].x,i=y.CarsData.geomObj["point"+t].y;this.createButton(t,e,i,0)}},e.prototype.createButton=function(t,e,i,s){void 0===t&&(t=0);var o=t,a=new c.default(this.game,o+""),r="LeveMapItemLocked",h=r+"0000";a.btn.setFrames(h,h,h,h),a.x=e,a.y=i,a.label.visible=!1,o+1<10?a.label.setText("0"+(o+1)):a.label.setText(o+1+"");var l=1;void 0!==y.Inventory.instance.save[y.Inventory.RACE_PREFIX+(o+1).toString()+y.Inventory.RACE_RESULT]&&(l=Number(y.Inventory.instance.save[y.Inventory.RACE_PREFIX+(o+1).toString()+y.Inventory.RACE_RESULT])+2,a.label.visible=!0);var u=this.game.add.sprite(0,0,n.default.Garage,r+"000"+l);u.anchor.set(.5),this.scaleGroup.addChild(a),a.btn.parent.addChild(u),a.label.visible?(a.signalSelect.addOnce(this.onPlayDown,this),this.lastEnabled=a):a.enable=!1},e.prototype.onPlayNext=function(){this.onPlayDown(this.lastEnabled)},e.prototype.onPlayDown=function(t){var e=Number(t.getID());this.innerNumner<0&&this.startLevel(e)},e.prototype.startLevel=function(t){this.innerNumner=t;var i=p.default.fullList.indexOf(p.default.Level001);e.LevelNum=t,e.CurrentLevel=p.default.fullList[i+t],f.GameData.raceId=t+1,y.GraphicUtil.currentAtlass=n.default.Theme0,w.default.getInstance().displayInterstitial(this.fadeToGameplay,this)},e.prototype.fadeToGameplay=function(){_.default.isSfxReady?(r.default.getInstance().play(a.default.Click),f.GameData.currentLevel=this.game.cache.getJSON(e.CurrentLevel),new u.default(this.game,0,h.default.Name)):(new u.default(this.game,0,null),_.default.sfxReady.add(this.assetsReady,this))},e.prototype.assetsReady=function(){_.default.sfxReady.remove(this.assetsReady,this),this.fadeToGameplay()},e.prototype.onBackDown=function(){r.default.getInstance().play(a.default.Click),this.game.state.start(l.default.Name)},e.prototype.toggleMusic=function(){m.default.getInstance().music?r.default.getInstance().toggleMusic():m.default.getInstance().sfx?r.default.getInstance().toggleSfx():(r.default.getInstance().toggleSfx(),r.default.getInstance().toggleMusic()),this.updateSoundButtons(),r.default.getInstance().play(a.default.Click)},e.prototype.updateSoundButtons=function(){var t=m.default.getInstance().music?0:1;t+=m.default.getInstance().sfx?0:1,this.musicBtn.loadTexture(n.default.Garage,"InGameMusicButton000"+t)},e.prototype.shutdown=function(){this.innerNumner=-1,this.scaleGroup=null,this.musicBtn=null,this.lastEnabled=null,this.scaleGroup=null,t.prototype.shutdown.call(this)},e.prototype.resize=function(){x.default.isDesktop&&this.scaleGroup.removeChild(this.continueText);var t=1;t=this.game.width/o.default.WIDTH,t=t>1?1:t,this.scaleGroup.scale.set(t),this.scaleGroup.alignIn(this.world.bounds,Phaser.BOTTOM_CENTER),x.default.isDesktop&&(this.scaleGroup.addChildAt(this.continueText,4),this.continueText.x=this.game.width/2,this.continueText.x=o.default.WIDTH/2,this.continueText.y=this.game.height+this.continueText.height/2-90*o.default.GAME_SCALE)},e.prototype.onSpace=function(){h.default.isAdsPause||this.onPlayNext()},e.Name="choose_zone",e.pause=!1,e.CurrentLevel="",e.LevelNum=0,e}(Phaser.State);e.default=P},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0,i(13),i(11);var n=i(3),o=i(23),a=i(21),r=i(14),h=i(15),l=i(9),c=i(18),u=i(4),d=i(0),p=i(29),f=i(19),y=i(45),g=i(22),m=i(2),v=i(12),b=i(17),x=function(t){function e(){var i=t.call(this)||this;return i.name=e.Name,i.popup=null,i.black=null,i.transition=null,i.bike=null,i.popupDelay=Phaser.Timer.SECOND,i._armatureDisplay=null,i.btn_resume=null,i.btn_list=null,i.btn_garage=null,i.continueText=null,i.improved_mc=null,i}return s(e,t),e.prototype.onPlayNextLevel=function(){if(l.default.getInstance().play(n.Sounds.Click),o.default.LevelNum+1>=22)b.default.getInstance().displayInterstitial(this.fadeToChooseZone,this);else{o.default.LevelNum++;var t=o.default.LevelNum;d.GameData.raceId=t+1,o.default.CurrentLevel="map"+d.GameData.raceId.toString(),d.GameData.currentLevel=this.game.cache.getJSON(o.default.CurrentLevel),d.GraphicUtil.currentAtlass=a.default.Theme0,b.default.getInstance().displayInterstitial(this.fadeToGameplay,this)}},e.prototype.fadeToGameplay=function(){new c.default(this.game,0,e.Name)},e.prototype.fadeToChooseZone=function(){this.onChooseZone()},e.prototype.init=function(){var i=this;t.prototype.init.call(this),this.game.world.removeAll(),e.isActive=!0,e.loadedLevel=!1,dragonBones.PhaserFactory.init(this.game);var s=this.game.cache.getJSON(n.JSONData.DBBike),o=this.game.cache.getJSON(n.JSONData.DBBike_Texture),a=this.game.cache.getImage(p.default.DBBike,!0).base;dragonBones.PhaserFactory.factory.parseDragonBonesData(s),dragonBones.PhaserFactory.factory.parseTextureAtlasData(o,a),this.initData(),this.game.time.advancedTiming=!0,d.GraphicUtil.game=this.game,u.MaxGameCore.instance.init(this.game),d.CarsData.geom[1]=this.game.cache.getJSON(n.JSONData.Bike),u.MaxGameCore.instance.signalFinish.add(this.onCallPopup,this),u.MaxGameCore.instance.start(),y.default.instance.init(this.game.add.group(),this.game),this.black=this.game.add.graphics(0,0),this.black.beginFill(0,1),this.black.drawRect(0,0,this.game.width,this.game.height),this.black.endFill();var r=this.game.add.text(this.game.width/2,this.game.height/2,"LOADING...",n.Constants.styleCredits0);r.anchor.set(.5),this.black.addChild(r),this.transition=this.game.add.tween(this.black),this.transition.to({alpha:0},100,Phaser.Easing.Linear.None,!1,500),this.transition.onComplete.add(function(){if(e.loadedLevel=!0,i.hardRestart(!1),i.black.destroy(),i.black=null,i.transition=null,v.default.isDesktop){i.game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR).onUp.add(i.onSpace,i);i.game.input.keyboard.addKey(Phaser.Keyboard.P).onUp.add(i.onPause,i);i.game.input.keyboard.addKey(Phaser.Keyboard.R).onUp.add(i.onR,i);i.game.input.keyboard.addKey(Phaser.Keyboard.ESC).onUp.add(i.onPause,i)}else i.game.input.onDown.add(i.onSpaceMobile,i);y.default.instance.signalRestart.add(i.userCallRestart,i),y.default.instance.signalPause.add(i.onPause,i),y.default.instance.signalToggleMusic.add(i.onToggleMusic,i),u.MaxGameCore.instance.paused=!1,u.MaxGameCore.instance.enginePitch=l.default.getInstance().play(n.Sounds.Engine1,.1,!0)}),u.MaxGameCore.instance.signalLoaded.removeAll(),u.MaxGameCore.instance.signalLoaded.addOnce(function(){this.transition.start(),u.MaxGameCore.instance.paused=!0},this),l.default.getInstance().playMusic(n.Sounds.GameMusic),d.CarExplodeObject.setupPool()},e.prototype.create=function(){t.prototype.create.call(this),this.resize()},e.prototype.setNewViewCar=function(){e.currCar++;var t=o.default.LevelNum;if(e.currCar>=2&&(e.currCar=0),null!==this._armatureDisplay&&this._armatureDisplay.destroy(),e.currCar<2){var i="biker"+e.currCar+"_anim_btn";this._armatureDisplay=dragonBones.PhaserFactory.factory.buildArmatureDisplay(i),this._armatureDisplay.x=0,this._armatureDisplay.y=130,this._armatureDisplay.animation.play("animation",0),this.popup.addChild(this._armatureDisplay)}},e.prototype.userCallRestart=function(){b.default.getInstance().dispatchStart(!0),this.hardRestart(!1)},e.prototype.hardRestart=function(t){void 0===t&&(t=!0),(u.MaxGameCore.instance.paused||u.MaxGameCore.instance.car.dead||u.MaxGameCore.instance.finished)&&b.default.getInstance().dispatchStart(t),y.default.instance.hideControlsHint(),y.default.instance.continueShow=!1,y.default.instance.helperShow=!1,1===d.GameData.raceId&&y.default.instance.showControlsHint(),u.MaxGameCore.instance.car.review(),u.MaxGameCore.instance.restart(),u.MaxGameCore.instance.drive=!1,u.MaxGameCore.instance.finished=!1,y.default.instance.showTimer(),u.MaxGameCore.instance.timer=0,u.MaxGameCore.instance.car.callbackDie=y.default.instance.showDeathHint,u.MaxGameCore.instance.car.callbackStunt=y.default.instance.showFlipMsg,u.MaxGameCore.instance.car.callbackContext=y.default.instance,this.closePopup()},e.prototype.onSpaceMobile=function(){u.MaxGameCore.instance.finished||u.MaxGameCore.instance.car.dead&&(u.MaxGameCore.instance.paused||(y.default.instance.hideControlsHint(),u.MaxGameCore.instance.car.safeId>=0?(b.default.getInstance().dispatchStart(!0),u.MaxGameCore.instance.car.review(),u.MaxGameCore.instance.restartFromSafePoint(u.MaxGameCore.instance.car.safeId)):this.hardRestart()))},e.prototype.onSpace=function(){if(!e.isAdsPause)return u.MaxGameCore.instance.paused?(this.closePopup(),void b.default.getInstance().dispatchStart(!0)):void(u.MaxGameCore.instance.finished?this.onPlayNextLevel():u.MaxGameCore.instance.car.dead&&(u.MaxGameCore.instance.paused||(y.default.instance.hideControlsHint(),u.MaxGameCore.instance.car.safeId>=0?(b.default.getInstance().dispatchStart(!0),u.MaxGameCore.instance.car.review(),u.MaxGameCore.instance.restartFromSafePoint(u.MaxGameCore.instance.car.safeId)):this.hardRestart())))},e.prototype.onR=function(){this.userCallRestart()},e.prototype.onPause=function(){e.isAdsPause||u.MaxGameCore.instance.finished||this.onCallPopup(0)},e.prototype.onToggleMusic=function(){this.toggleMusic()},e.prototype.toggleMusic=function(){h.default.getInstance().music?l.default.getInstance().toggleMusic():h.default.getInstance().sfx?l.default.getInstance().toggleSfx():(l.default.getInstance().toggleSfx(),l.default.getInstance().toggleMusic()),y.default.instance.updateSoundButtons(),l.default.getInstance().play(n.Sounds.Click)},e.prototype.setFields=function(t){var e=d.RacesData.data,i=new r.default(this.game,"",n.Constants.styleTime,null,this,a.default.Garage);i.setFrames("bg0000","bg0000","bg0000","bg0000"),t.addChild(i),i.y=20,i.label.setMaxSize(200,50),i.label.stroke="#000000",i.label.strokeThickness=2;var s=this.game.add.sprite(-133,-76,a.default.Garage,"star00000"),o=this.game.add.sprite(0,-88,a.default.Garage,"star00000"),h=this.game.add.sprite(133,-76,a.default.Garage,"star00000");s.anchor.set(.5),o.anchor.set(.5),h.anchor.set(.5),s.scale.set(.9),h.scale.set(.9),s.angle=-10,h.angle=10;var c=this.game.add.sprite(-133,-76,a.default.Garage,"star10000");c.anchor.set(.5);var u=this.game.add.sprite(0,-88,a.default.Garage,"star10000");u.anchor.set(.5);var p=this.game.add.sprite(133,-76,a.default.Garage,"star10000");p.anchor.set(.5),c.angle=-10,p.angle=10;var f=new r.default(this.game,"0",n.Constants.styleTime,null,null);f.x=-133,f.y=-6;var y=new r.default(this.game,"0",n.Constants.styleTime,null,null);y.y=-16;var g=new r.default(this.game,"0",n.Constants.styleTime,null,null);g.x=133,g.y=-6,t.addChild(s),t.addChild(o),t.addChild(h),t.addChild(c),t.addChild(u),t.addChild(p),t.addChild(f),t.addChild(y),t.addChild(g);var m=d.RacesData.map.settings.prizes,v=m.split(",");f.setText(v[2]+" sec."),y.setText(v[1]+" sec."),g.setText(v[0]+" sec.");var b=e.stars;c.visible=b>0,u.visible=b>1,p.visible=b>2,c.scale.set(.9),p.scale.set(.9);var x,_=200;b>0&&(c.scale.set(3),c.alpha=0,x=this.game.add.tween(c),x.onComplete.addOnce(function(){l.default.getInstance().play(n.Sounds.Explode2),d.RacesData.data.camera.shakeContainer(this.popup)},this),x.to({alpha:1},400,Phaser.Easing.Linear.None,!0,_-150),x=this.game.add.tween(c.scale),x.to({x:.9,y:.9},400,Phaser.Easing.Back.Out,!0,_),_+=400),b>1&&(u.scale.set(3),u.alpha=0,x=this.game.add.tween(u),x.onComplete.addOnce(function(){l.default.getInstance().play(n.Sounds.Explode1),d.RacesData.data.camera.shakeContainer(this.popup)},this),x.to({alpha:1},400,Phaser.Easing.Linear.None,!0,_-100),x=this.game.add.tween(u.scale),x.to({x:1,y:1},400,Phaser.Easing.Back.Out,!0,_),_+=700),b>2&&(p.scale.set(3),p.alpha=0,x=this.game.add.tween(p),x.onComplete.addOnce(function(){l.default.getInstance().play(n.Sounds.Explode2),d.RacesData.data.camera.shakeContainer(this.popup)},this),x.to({alpha:1},400,Phaser.Easing.Linear.None,!0,_-100),x=this.game.add.tween(p.scale),x.to({x:.9,y:.9},400,Phaser.Easing.Back.Out,!0,_),_+=1e3);var w=Math.ceil(100*e.timer),P=w/100>>0;w-=100*P;var C=this.game.add.sprite(200,90,a.default.Garage,"improved_bg0000");if(C.anchor.set(.5),t.addChild(C),C.visible=e.improved,C.alpha=0,e.improved){var T=new r.default(this.game,"NEW BEST TIME",n.Constants.styleBestTime,null,null);T.angle=25,T.y=-25,C.addChild(T);var S=new r.default(this.game,P.toString()+"."+w.toString()+" sec",n.Constants.styleBestTime,null,null);S.angle=25,S.x=-8,S.y=-5,C.addChild(S),T.label.setShadow(1,1,"rgba(0,0,0,0.8)"),S.label.setShadow(1,1,"rgba(0,0,0,0.8)");var A=C.x,E=C.y;C.x=-500,C.alpha=0;this.game.add.tween(C).to({x:A,y:E,alpha:1},250,Phaser.Easing.Back.InOut,!0)}this.improved_mc=C,i.setText("Your time: "+P+"."+w+" sec.")},e.prototype.postRace=function(t){b.default.getInstance().dispatchStop();var e=d.RacesData.data;e.timer=u.MaxGameCore.instance.timer;var i=0,s,n=d.RacesData.map.settings.prizes;if(0===n.length);else{s=n.split(",");var o=void 0,a=void 0;for(o=0;o=3&&b.default.getInstance().dispatchHappy(.25+.75*d.GameData.raceId/d.RacesData.MAP_COUNT),e.improved=d.Inventory.instance.setRaceResult(d.GameData.raceId,i,e.timer),e.improved){var r=1e3+50*(d.RacesData.map.id-1);if(s){var l=parseFloat(s[0])-5,c=parseFloat(s[s.length-1])+10,p=c-l,f=c-e.timer;f<0?f=0:f>p&&(f=p),r+=(3e3+100*(d.RacesData.map.id-1))*f/p}var y=d.Inventory.instance.setScore(d.GameData.raceId,r)}this.setFields(t),h.default.getInstance().save()},e.prototype.onCallPopup=function(t){if(u.MaxGameCore.instance.paused)return b.default.getInstance().dispatchStart(!0),void this.closePopup();var i=o.default.LevelNum;this.createPopup(),1!==t&&(b.default.getInstance().dispatchStop(),u.MaxGameCore.instance.paused=!0,y.default.instance.flipTexts.alpha=0);var s=null,h="GAME PAUSED",l=null;if(v.default.isDesktop){var c=new r.default(this.game,"Press Space to continue",n.Constants.styleHelp,null,null,a.default.Garage);c.setFrames("0popup_bg0000","0popup_bg0000","0popup_bg0000","0popup_bg0000"),c.y=370,c.label.anchor.set(.5,5.5);var d=void 0;d=this.game.add.sprite(0,0,a.default.Garage,"space_key0000"),d.animations.add("space_key",["space_key0000","space_key0001"],2,!0),d.y=-.5*c.height+75,d.x-=24,d.animations.getAnimation("space_key").play(2,!0),d.anchor.set(.5),c.addChild(d),this.popup.getChildAt(1).addChild(c),this.continueText=c}if(1===t){h=i+1<10?"LEVEL 0"+(i+1)+" COMPLETE":"LEVEL "+(i+1)+" COMPLETE",this.setNewViewCar(),l=new r.default(this.game,h,n.Constants.styleFinish,null,null,a.default.Garage),l.y=-220,l.label.stroke="#000000",l.label.strokeThickness=2;var p=new f.default(this.game,0,2,h,n.Constants.styleFinish);if(p.anchor.set(.5),l.label.parent.addChildAt(p,0),p.stroke="#FFFFFF",p.strokeThickness=5,e.currCar<2){var g=null;g=new r.default(this.game,"CHANGE BIKE",n.Constants.styleFinish1,this.onGarage,this,a.default.Garage),g.y=170,g.setFrames("orange_btn_big0000","orange_btn_big0000","orange_btn_big0000","orange_btn_big0000"),g.label.setMaxSize(200,40),g.label.y=-8,g.label.setText("CHANGE BIKE"),g.label.setShadow(1,1,"rgba(0,0,0,0.8)",5),this.popup.getChildAt(1).addChild(g),this.btn_garage=g}y.default.instance.timer.visible=!1}else{s=this.game.add.sprite(0,3,a.default.Garage,"bg0000"),s.anchor.set(.5),s.scale.set(1,1.4),this.popup.getChildAt(1).addChild(s),l=new r.default(this.game,h,n.Constants.stylePause,null,this,a.default.Garage),l.y=-145,l.label.stroke="#000000",l.label.strokeThickness=2;var m=this.game.add.group();this.popup.getChildAt(1).addChild(m),this.setPauseViewCar(m)}l.setFrames("bg0000","bg0000","bg0000","bg0000"),this.popup.getChildAt(1).addChild(l);var x=new r.default(this.game,"",n.Constants.styleCredits1,this.onChooseZone,this,a.default.Garage);x.x=-270,x.y=200,x.setFrames("orange_btn0000","orange_btn0000","orange_btn0000","orange_btn0000"),x.scale.set(.8);var _=this.game.add.sprite(0,-11,a.default.Garage,"exit_btn0000");_.anchor.set(.5),x.label.parent.addChild(_),this.popup.getChildAt(1).addChild(x);var w=new r.default(this.game,"",n.Constants.stylePopBtn2,1===t?this.onPlayNextLevel:this.onResume,this,a.default.Garage);w.x=270,w.y=200,w.setFrames("orange_btn0000","orange_btn0000","orange_btn0000","orange_btn0000"),w.scale.set(.8);var P=this.game.add.sprite(0,-7,a.default.Garage,"next_btn0000");if(P.anchor.set(.5),w.label.parent.addChild(P),this.popup.getChildAt(1).addChild(w),1===t){var C=this.game.add.group();this.popup.getChildAt(1).addChild(C),this.postRace(C),this.popupDelay>0&&(this.popup.visible=!1,this.game.time.events.add(this.popupDelay,this.setPopupVisible,this))}this.btn_resume=w,this.btn_list=x,this.resizePopup(1)},e.prototype.setPopupVisible=function(){this.popup&&(this.popup.visible=!0)},e.prototype.disposePopup=function(){this.popup&&this.popup.destroy(),this.popup=null,u.MaxGameCore.instance.paused=!1,y.default.instance.showTimer()},e.prototype.backgroundPopup=function(){this.popup=this.game.add.sprite(350,250,a.default.Garage,"bg0000"),this.popup.anchor.set(.5);var t=this.game.add.sprite(0,0,a.default.Garage,"bg0000");t.width=this.game.width,t.height=this.game.height,t.inputEnabled=!0,t.anchor.set(.5),this.popup.addChild(t),this.world.addChild(y.default.instance.container),y.default.instance.hideTimer()},e.prototype.createPopup=function(){null!==this.popup&&this.disposePopup(),this.backgroundPopup();var t=this.game.add.sprite(0,0,a.default.Garage,"0popup_bg0000");t.anchor.set(.5),this.popup.addChild(t)},e.prototype.resizePopup=function(t){if(null!==this.popup){var e=this.popup.removeChildAt(0);e.width=this.game.width,e.height=this.game.height,this.popup.x=this.world.bounds.centerX,this.popup.y=this.world.bounds.centerY,this.popup.addChildAt(e,0);var i=0;this.btn_resume.x=.5*this.game.width-.5*this.btn_resume.width,this.btn_list.x=-.5*this.game.width+.5*this.btn_list.width;var s=(this.btn_resume.x-this.btn_list.x-this.btn_resume.width)*window.innerWidth/this.game.width;b.default.getInstance().displayAd(),i=b.default.getInstance().getBannerHeight(),this.btn_resume.y-=i,this.btn_list.y-=i,null!==this.improved_mc&&(this.improved_mc.y-=i),null!==this.btn_garage&&(this.btn_garage.y=170-i),null!==this._armatureDisplay&&(this._armatureDisplay.y=130-i),null!==this.continueText&&(this.continueText.y=370-i)}},e.prototype.closePopup=function(){b.default.getInstance().destroyAd(),this.disposePopup()},e.prototype.onResume=function(){b.default.getInstance().dispatchStart(!0),this.closePopup()},e.prototype.onChooseZone=function(){h.default.getInstance().save(),this.closePopup(),new c.default(this.game,0,o.default.Name)},e.prototype.onGarage=function(){h.default.getInstance().save(),this.closePopup(),new c.default(this.game,0,g.default.Name)},e.prototype.parseStaticGraphic=function(t,e){var i=null;i=this.game.add.image(t[e].x,t[e].y,a.default.Cars,t[e].g+"0000"),i.angle=t[e].r,-1!==e.indexOf("base")?i.anchor.set(m.AssetsList.FRAMES_ANCHORX[0],m.AssetsList.FRAMES_ANCHORY[0]):-1!==e.indexOf("suspend")?-1!==e.indexOf("front")?i.anchor.set(.8,-1!==t[e].g.indexOf("1")?.2:.5):i.anchor.set(0,.5):i.anchor.set(.5),this.bike.addChild(i)},e.prototype.setPauseViewCar=function(t){null!==this.bike?(this.bike.destroy(),this.bike=this.game.add.group(t)):this.bike=this.game.add.group(t);var e=d.CarsData.geomObj.bike11,i="Wheel0";this.parseStaticGraphic(e,i),i="Wheel1",this.parseStaticGraphic(e,i),i="suspend_back",this.parseStaticGraphic(e,i),i="base",this.parseStaticGraphic(e,i),i="driver_corpse",this.parseStaticGraphic(e,i),i="driver_hip",this.parseStaticGraphic(e,i),i="driver_shin",this.parseStaticGraphic(e,i),i="driver_arm",this.parseStaticGraphic(e,i),i="driver_forearm",this.parseStaticGraphic(e,i),i="driver_head",this.parseStaticGraphic(e,i),i="suspend_front",this.parseStaticGraphic(e,i),this.bike.x=0,this.bike.y=10},e.prototype.update=function(){if(this.isFirstUpdate)return this.isFirstUpdate=!1,this.timeAcc=0,void(this.prevTimeMS=Date.now());if(!e.isAdsPause)for(t.prototype.update.call(this),this.currTimeMS=Date.now(),this.deltaTime=(this.currTimeMS-this.prevTimeMS)/1e3,this.deltaTime>e.MAX_FRAME_TIME&&(this.deltaTime=e.MAX_FRAME_TIME),this.prevTimeMS=this.currTimeMS,this.timeAcc+=this.deltaTime;this.timeAcc>=e.DESIRED_FRAME_TIME;)this.updateGameController(e.DESIRED_FRAME_TIME),this.timeAcc-=e.DESIRED_FRAME_TIME},e.prototype.resize=function(){t.prototype.resize.call(this);var e=1;this.game.width/this.game.height>=n.Constants.WIDTH/n.Constants.HEIGHT?(e=this.game.width/n.Constants.WIDTH,e=e>1?1:e):(e=this.game.height/n.Constants.HEIGHT,e=e>1?1:e),y.default.instance.resize(e),this.resizePopup(e)},e.prototype.shutdown=function(){e.isActive=!1,this.closePopup(),u.MaxGameCore.instance.release(),y.default.instance.release(),t.prototype.shutdown.call(this)},e.prototype.render=function(){null!==this.popup&&dragonBones.PhaserFactory.factory.dragonBones.advanceTime(-1),t.prototype.render.call(this)},e.prototype.initData=function(){this.isFirstUpdate=!0},e.prototype.updateGameController=function(t){u.MaxGameCore.instance.update(t),y.default.instance.setTimer()},e.promoShowed=!1,e.Name="gameplay",e.pause=!1,e.isActive=!1,e.MAX_FRAME_TIME=.1,e.DESIRED_FRAME_TIME=1/30,e.isAdsPause=!1,e.loadedLevel=!1,e.currCar=-1,e}(Phaser.State);e.default=x},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){}return t.FlySound=function(){return Math.random()>.6?t.Fly1:Math.random()>.3?t.Fly2:t.Fly3},t.FlipSound=function(){return"flip_0"+(Math.round(5*Math.random())+1)},t.DieSound=function(){return"dead_0"+(Math.round(5*Math.random())+1)},t.startSound=function(){return"accel0"+(Math.round(3*Math.random())+1)},t.MenuMusic="menu_track_1",t.GameMusic="game_track",t.Click="button",t.Landing="landing",t.DriverSpikes="driver_spikes",t.SavePoint="safepoint",t.Stones="stones",t.Explode1="explode1",t.Explode2="explode2",t.Barrel1="barrel_hit0",t.Barrel2="barrel_hit1",t.Engine1="motor",t.EngineFon="eng_loop",t.Fly1="fly_01",t.Fly2="fly_02",t.Fly3="fly_03",t.Flip1="flip_01",t.Flip2="flip_02",t.Flip3="flip_03",t.Flip4="flip_04",t.Flip5="flip_05",t.Flip6="flip_06",t.Dead1="dead_01",t.Dead2="dead_02",t.Dead3="dead_03",t.Dead4="dead_04",t.Dead5="dead_05",t.Dead6="dead_06",t.Start="engine_start",t.Finish="engine_finish",t.Start1="accel01",t.Start2="accel02",t.Start3="accel03",t.Start4="accel04",t.Wood="wood_hit0",t.Wendy="wendy",t.Boost="boost",t.GlassCrash="glass_crash",t.preloadList=[],t.list=[],t.tracksList=[t.MenuMusic,t.GameMusic],t.fullList=[t.Engine1,t.EngineFon,t.Explode1,t.Explode2,t.Barrel1,t.Barrel2,t.Wood,t.Wendy,t.Stones,t.SavePoint,t.DriverSpikes,t.Landing,t.Fly1,t.Fly2,t.Fly3,t.Flip1,t.Flip2,t.Flip3,t.Flip4,t.Flip5,t.Flip6,t.Dead1,t.Dead2,t.Dead3,t.Dead4,t.Dead5,t.Dead6,t.Finish,t.Start,t.Start1,t.Start2,t.Start3,t.Start4,t.Click,t.Boost,t.GlassCrash],t}();e.default=s},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){}return t.Level001="map1",t.Level002="map2",t.Level003="map3",t.Level004="map4",t.Level005="map5",t.Level006="map6",t.Level007="map7",t.Level008="map8",t.Level009="map9",t.Level010="map10",t.Level011="map11",t.Level012="map12",t.Level013="map13",t.Level014="map14",t.Level015="map15",t.Level016="map16",t.Level017="map17",t.Level018="map18",t.Level019="map19",t.Level020="map20",t.Level021="map21",t.Level022="map22",t.Car001="1",t.Bike="bike",t.DBBike="bikes_skeleton",t.DBBike_Texture="bikes_texture",t.DBMenu="menu_skeleton",t.DBMenu_Texture="menu_texture",t.Objects="objects",t.preloadList=[],t.list=[t.Objects,t.DBMenu,t.DBMenu_Texture,t.Car001],t.fullList=[t.Level001,t.Level002,t.Level003,t.Level004,t.Level005,t.Level006,t.Level007,t.Level008,t.Level009,t.Level010,t.Level011,t.Level012,t.Level013,t.Level014,t.Level015,t.Level016,t.Level017,t.Level018,t.Level019,t.Level020,t.Level021,t.Level022,t.DBBike,t.DBBike_Texture,t.Bike],t}();e.default=s},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0,i(13),i(11);var n=i(9),o=i(15),a=i(3),r=i(14),h=i(39),l=i(18),c=i(12),u=i(0),d=i(19),p=i(23),f=i(26),y=i(22),g=i(29),m=i(38),v=i(17),b=function(t){function e(){var i=t.call(this)||this;return i.name=e.Name,i.popup=null,i.popup_btn=null,i._armatureDisplay=null,i}return s(e,t),e.prototype.init=function(){this.game.world.removeAll(),dragonBones.PhaserFactory.init(this.game),c.default.DISPLAY_W=Phaser.Math.max(this.game.width,this.game.height),c.default.DISPLAY_H=Phaser.Math.min(this.game.width,this.game.height)},e.prototype.create=function(){if(t.prototype.create.call(this),c.default.isDesktop){this.game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR).onUp.add(this.onSpace,this)}u.Inventory.instance.signalUnlock.removeAll(),u.Inventory.instance.signalUnlock.addOnce(function(){new l.default(this.game,0,p.default.Name)},this),this.background2=this.game.add.sprite(0,0,a.Atlases.Garage,"0bg_garage0000"),this.background=this.game.add.sprite(0,0,a.Atlases.Garage,"0bg_garage0000"),this.background3=this.game.add.sprite(0,0,a.Atlases.Garage,"bg0000"),this.background4=this.game.add.sprite(0,0,a.Atlases.Garage,"bg0000");var e=this.game.cache.getJSON(f.default.DBMenu),i=this.game.cache.getJSON(f.default.DBMenu_Texture),s=this.game.cache.getImage(g.default.DBMenu,!0).base;dragonBones.PhaserFactory.factory.parseDragonBonesData(e),dragonBones.PhaserFactory.factory.parseTextureAtlasData(i,s),this._armatureDisplay=dragonBones.PhaserFactory.factory.buildArmatureDisplay("biker_anim"),this._armatureDisplay.x=0,this._armatureDisplay.y=360,this._armatureDisplay.animation.play("biker menu animation",-1),this.background.addChild(this._armatureDisplay);var n={font:"bold 20px Djvu",fill:"#FFFFFF"};this.bgTop=this.game.add.image(0,0,a.Atlases.Garage,"top_bg0000"),this.bgTop.scale.set(1.5,1),this.playBtn=new r.default(this.game,"Play",a.Constants.stylePlay,this.startGame,this,a.Atlases.Garage),this.playBtn.setFrames("play_btn0000","play_btn0000","play_btn0000","play_btn0000"),this.playBtn.x=500,this.playBtn.y=200,this.playBtn.label.x=130,this.playBtn.label.stroke="#000000",this.playBtn.label.strokeThickness=5;var y=new d.default(this.game,130,2,"Play",a.Constants.stylePlay);y.anchor.set(.5),this.playBtn.label.parent.addChildAt(y,0);var b=this.game.add.image(100,0,a.Atlases.Garage,"black0000");b.alpha=0,b.width=280,b.height=100,b.anchor.set(.5),b.inputEnabled=!0,b.input.useHandCursor=!0,b.events.onInputDown.addOnce(this.startGame,this),this.playBtn.label.parent.addChild(b),y.stroke="#FFFFFF",y.strokeThickness=10,this.background4.addChild(this.playBtn),this.moregames=new r.default(this.game,"Reset",n,this.resetGame,this,a.Atlases.Garage),this.moregames.setFrames("play_btn0000","play_btn0000","play_btn0000","play_btn0000"),this.moregames.x=620,this.moregames.y=400,this.background4.addChild(this.moregames),this.moregames.visible=!1,this.logo=this.game.add.image(200,100,a.Atlases.Garage,"0logo0000"),this.logo.anchor.set(.5),this.garageBtn=new r.default(this.game,"",null,this.onGarage,this,a.Atlases.Garage),this.garageBtn.setFrames("shop_btn0000","shop_btn0000","shop_btn0000","shop_btn0000"),this.garageBtn.x=this.game.width-140,this.garageBtn.y=30,this.world.addChild(this.garageBtn),this.musicBtn=this.game.add.image(this.game.width-40,25,a.Atlases.Garage,"InGameMusicButton0000"),this.musicBtn.inputEnabled=!1,this.musicBtn.events.onInputUp.add(this.toggleMusic,this),this.musicBtn.anchor.set(.5),this.playBtn.visible=!1,this.blackRightBG=this.game.add.sprite(900,a.Constants.HEIGHT/2,a.Atlases.Garage,"0popup_bg0000"),this.blackRightBG.anchor.set(.5),this.blackRightBG.angle=90,this.background3.addChild(this.blackRightBG);var x=this.game.add.sprite(0,-a.Constants.HEIGHT/2,a.Atlases.Garage,"0popup_bg0000");if(x.anchor.set(.5),this.blackRightBG.addChild(x),x=this.game.add.sprite(0,0,a.Atlases.Garage,"0popup_bg0000"),x.anchor.set(.5),this.blackRightBG.addChild(x),this.textVersion=new d.default(this.game,680,470," "+a.Constants.VERSION,a.Constants.styleVersion),this.background3.addChild(this.textVersion),c.default.isDesktop){this.continueText=new r.default(this.game,"Press Space to play",a.Constants.styleHelp,null,null,a.Atlases.Garage),this.continueText.setFrames("0popup_bg0000","0popup_bg0000","0popup_bg0000","0popup_bg0000"),this.continueText.x=this.game.width/2,this.continueText.y=this.game.height+this.continueText.height/2-90*a.Constants.GAME_SCALE,this.continueText.label.anchor.set(.5,5.5);var _=void 0;_=this.game.add.sprite(0,0,a.Atlases.Garage,"space_key0000"),_.animations.add("space_key",["space_key0000","space_key0001"],2,!0),_.y=-.5*this.continueText.height+75,_.x-=4,_.animations.getAnimation("space_key").play(2,!0),_.anchor.set(.5),this.continueText.addChild(_)}v.default.getInstance().init(this.game),v.default.getInstance().displayAd(),o.default.getInstance(this.game,this.onLoadSave,this),new h.default(this.game,0,null),this.resize(),m.default.getInstance().init(this.game)},e.prototype.onLoadSave=function(){n.default.getInstance(this.game).playMusic(a.Sounds.MenuMusic),this.musicBtn.inputEnabled=!0,this.updateSoundButtons(),this.playBtn.visible=!0},e.prototype.initGame=function(){null===u.GameData.currentCar&&(u.GameData.currentCar=this.game.cache.getJSON(f.default.Car001),u.CarsData.geomObj=this.game.cache.getJSON(f.default.Objects),this.setCar(u.GameData.currentCar))},e.prototype.startGame=function(){n.default.getInstance().play(a.Sounds.Click),this.initGame(),v.default.getInstance().destroyAd(),new l.default(this.game,0,p.default.Name)},e.prototype.onGarage=function(){n.default.getInstance().play(a.Sounds.Click),this.initGame(),v.default.getInstance().destroyAd(),new l.default(this.game,0,y.default.Name)},e.prototype.setCar=function(t){u.CarsData.params=new u.CarParams,u.CarsData.params.setData(t),y.default.currCar=y.default.carList.indexOf(u.Inventory.instance.skin),u.CarsData.params.skinId=y.default.carList[y.default.currCar]},e.prototype.resetGame=function(){u.Inventory.instance.reset(),o.default.getInstance().save()},e.unlockGame=function(){u.Inventory.instance.unlockAll(),o.default.getInstance().save()},e.prototype.toggleMusic=function(){o.default.getInstance().music?n.default.getInstance().toggleMusic():o.default.getInstance().sfx?n.default.getInstance().toggleSfx():(n.default.getInstance().toggleSfx(),n.default.getInstance().toggleMusic()),this.updateSoundButtons(),n.default.getInstance().play(a.Sounds.Click)},e.prototype.updateSoundButtons=function(){var t=o.default.getInstance().music?0:1;t+=o.default.getInstance().sfx?0:1,this.musicBtn.loadTexture(a.Atlases.Garage,"InGameMusicButton000"+t)},e.prototype.onCredits=function(){this.createPopup();for(var t=23,e,i=[" "," "," "," "," ","CEO: Konstantin Matrunchik","Coding: Dmitry Borozenets","Art: Andrey Zdyschuk","Game Design: Vasiliy Kachor","Menu song: skyler182.newgrounds.com","Ported by iriysoft.com"],s=0;s1?1:e,this.garageBtn.x=this.game.width-120,this.musicBtn.x=this.game.width-35,this.bgTop.x=this.game.width-250,this.background.alignIn(this.world.bounds,Phaser.BOTTOM_CENTER),this.logo.scale.set(e),this.background2.scale.set(2.02*Phaser.Math.max(this.game.width/a.Constants.WIDTH,this.game.height/a.Constants.HEIGHT)),this.background2.alignIn(this.world.bounds,Phaser.CENTER),this.background2.visible=!1,this._armatureDisplay.x=-this.background.x-50,this.game.width>820?this.blackRightBG.x=900:this.game.width-110>450?this.blackRightBG.x=this.game.width-110:this.blackRightBG.x=this.game.width,this.playBtn.x=this.game.width-250,this.playBtn.y=200,this.moregames.x=this.game.width-100,this.moregames.y=this.game.height-180,this.playBtn.scale.set(e),this.moregames.scale.set(e),this.textVersion.x=this.game.width-60,this.textVersion.y=this.game.height-20,c.default.isDesktop){this.continueText.x=this.game.width/2;var i=v.default.getInstance().getBannerHeight();this.continueText.y=this.game.height+this.continueText.height/2-90*a.Constants.GAME_SCALE-i}this.resizePopup(e),t.prototype.resize.call(this)},e.prototype.shutdown=function(){t.prototype.shutdown.call(this),this.background=null,this.background2=null,this.popup=null,this.popup_btn=null,this.playBtn=null,this.moregames=null,this.musicBtn=null,this.bgTop=null,this._armatureDisplay=null},e.prototype.onSpace=function(){this.startGame()},e.Name="menu",e}(Phaser.State);e.default=b},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){}return t.DBBike="bikes_texture",t.DBMenu="menu_texture",t.preloadList=[],t.list=[t.DBMenu],t.fullList=[t.DBBike],t}();e.default=s},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=nape.space.Space,o=i(43),a=i(16),r=function(t){function e(){var i=t.call(this)||this;return e.space=new n,i}return s(e,t),e.prototype.start=function(){},e.prototype.update=function(t){e.space.step(.5*t),e.space.step(.5*t);for(var i=e.space.liveBodies.iterator(),s;i.hasNext();){var n=i.next(),o=n.userData;o.graphic?(s=o.graphic,s.x=n.position.x,s.y=n.position.y,s.rotation=n.rotation%(2*Math.PI)):o.graphicEx&&(s=o.graphicEx,s.x=n.position.x,s.y=n.position.y,s.rotation=n.rotation%(2*Math.PI))}},e.prototype.add=function(t){null!==t.body.compound?t.body.compound.space=e.space:t.body.space=e.space},e.prototype.release=function(){for(t.prototype.release.call(this);!e.space.bodies.empty();)a.NapeUtil.disposeBody(e.space.bodies.at(0))},e}(o.GamePhysics);e.NapePhysics=r},function(t,e,i){"use strict";e.__esModule=!0;var s=i(0),n=i(32),o=function(){function t(){this.object=null,this.car=null,this.tweening=!1}return t.prototype.setup=function(t,e,i,s){this.maxScale=.45,this.tweening=!1,this.viewportW=e,this.viewportH=i,this.viewportHalfH=.5*i,this.viewportHalfW=.5*e,this.object=t,this.prevX=t.x,this.prevY=t.y,this.car=s,this.prevScale=t.scale.x,this.prevFrameH=i,n.CameraPathes.instance.tweened=!1,this.shakeX=0,this.shakeY=0},t.prototype.hardFocusOnCar=function(e,i,s){this.update(e+t.CAR_DX/s,i-100,s,!1)},t.prototype.shake=function(){var t=s.GraphicUtil.game.add.tween(this);t.to({shakeX:15,shakeY:15},100,Phaser.Easing.Bounce.InOut,!1,0,3,!0),t.start()},t.prototype.shakeContainer=function(t){void 0===t&&(t=null);var e=s.GraphicUtil.game.add.tween(t),i=t.x,n=t.y;e.to({x:t.x-10,y:t.y-10},15,Phaser.Easing.Bounce.InOut,!1,0,3,!0),e.onComplete.addOnce(function(){t.x=i,t.y=n},this),e.start()},t.prototype.update=function(e,i,s,n){void 0===n&&(n=!1);var o,a,r=1;if(n){var h=.4;this.prevX+=.4*(e-this.prevX),this.prevY+=.4*(i-this.prevY),r=this.prevScale+(s-this.prevScale),o=-this.prevX*r+this.viewportHalfW,a=-this.prevY*r+this.viewportHalfH}else r=s,o=-e*r+this.viewportHalfW,a=-i*r+this.viewportHalfH,this.prevX=e,this.prevY=i;this.prevScale=r,t.x=-o/r,t.y=-a/r,this.car.finished||this.updateObject(o+this.shakeX,a+this.shakeY,r),t.w=this.viewportW/r,t.h=this.viewportH/r,t.scale=r},t.prototype.updateObject=function(t,e,i){this.object.scale.set(i),this.object.x=t,this.object.y=e},t.prototype.focusOnCar=function(e,i,s){var o=n.CameraPathes.instance.getPathPointXY(e,i),a=!1,r=1,h=this.getFrameHBySpeed(s),l,c;if(isNaN(o))rh&&(h=d),r=t.SCALE_MULT*this.viewportH/h,ri.maxMove?i.maxMove:t:i.move===s.CameraZone.VER&&(o=ei.maxMove?i.maxMove:e),this.tweening=!0,this.update(n,o,i.scale,!0)},t.prototype.focusOnPoint=function(t,e){this.tweening=!0,this.update(t,e,1,!0)},t.prototype.getFrameHBySpeed=function(t){var e=this.viewportH,i=500,s=3e3;if(t>500){var n=this.viewportH;t=t>3e3?3e3:t;e+=(t-500)/2500*n}var o=e-this.prevFrameH,a=2;return o<-2?e=this.prevFrameH-2:o>8&&(e=this.prevFrameH+8),this.prevFrameH=e,e},t.prototype.release=function(){this.object=null,this.car=null},t.inCamera=function(e,i,s){return e>t.x-s&&et.y-s&&ithis.maxX)return NaN;for(var i=this.points.length,n=s.get(0,0),o=1;o=t){var r=this.points[o-1],h=t-r.x;n.x=a.x-r.x,n.y=a.y-r.y;var l=h*Math.tan(n.angle),c=r.y+l;return ct.MIN_DIST;)this.prevX+=t.MIN_DIST*a,this.prevY+=t.MIN_DIST*r,s.TrailPartObject.get().put(this.prevX,this.prevY),n-=t.MIN_DIST},t.MIN_DIST=16,t}();e.TrailParticlesSystem=n},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(0),o=i(1),a=i(4),r=i(5),h=i(2),l=function(t){function e(){var e=t.call(this)||this;return e.create(),e}return s(e,t),e.setupPool=function(){for(var t=0;t<11;t++)e.pool.push(new e);e.poolLen=e.pool.length},e.get=function(){for(var t=0;t0&&e.pool.splice(0,e.poolLen),this.maxSizeCallback=null,this.completeCallback=null,this.completeCallbackContext=null,t.prototype.release.call(this)},e.pool=new Array,e.poolLen=0,e}(n.GameObject);e.CarExplodeObject=l},function(t,e,i){"use strict";e.__esModule=!0;var s=i(3),n=i(26),o=function(){function t(){}return t.prototype.init=function(t){this.game=t,this.loader=new Phaser.Loader(t),this.loadArt()},t.prototype.loadArt=function(){var t=this;this.loader.onFileComplete.add(this.fileArtComplete,this);var e="x"+s.Constants.GAME_SCALE+"/";s.Atlases.fullList.forEach(function(i){t.loader.atlas(i,"assets/atlases/"+e+i+".png","assets/atlases/"+e+i+".json")}),n.default.fullList.forEach(function(e){t.loader.json(e,"assets/levels/"+e+".json")}),s.Images.fullList.forEach(function(i){t.loader.image(i,"assets/images/"+e+i+".png")}),this.loader.start()},t.prototype.fileArtComplete=function(e,i,s,n,o){o===n&&(t.isArtReady=!0,this.loader.onFileComplete.remove(this.fileArtComplete,this),this.loadSfx())},t.prototype.loadSfx=function(){var t=this;this.loader.onFileComplete.add(this.fileSfxComplete,this),s.Sounds.fullList.forEach(function(e){t.game.device.iOS?t.loader.audio(e,["assets/sound/"+e+".m4a"]):t.loader.audio(e,["assets/sound/"+e+".ogg","assets/sound/"+e+".mp3"])}),this.loader.start()},t.prototype.fileSfxComplete=function(e,i,s,n,o){o===n&&(t.isSfxReady=!0,this.loader.onFileComplete.remove(this.fileSfxComplete,this),t.sfxReady.dispatch(),this.loadTracks())},t.prototype.loadTracks=function(){var t=this;this.loader.onFileComplete.add(this.fileTracksComplete,this),s.Sounds.tracksList.forEach(function(e){t.game.device.iOS?t.loader.audio(e,["assets/sound/"+e+".m4a"]):t.loader.audio(e,["assets/sound/"+e+".ogg","assets/sound/"+e+".mp3"])}),this.loader.start()},t.prototype.fileTracksComplete=function(e,i,s,n,o){o===n&&(t.isTracksReady=!0,t.trackReady.dispatch(),this.loader.onFileComplete.remove(this.fileTracksComplete,this))},t.getInstance=function(){return t.instance||(t.instance=new t),this.instance},t.isArtReady=!1,t.isSfxReady=!1,t.isTracksReady=!1,t.trackReady=new Phaser.Signal,t.sfxReady=new Phaser.Signal,t}();e.default=o},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(3),o=function(t){function e(e,i,s){void 0===s&&(s=null);var o=t.call(this,e)||this;o.beginFill(i,1),o.drawRect(0,0,o.game.width,o.game.height),o.endFill(),e.add.group(o,"white",!0).add(o);var a=o.game.add.text(o.game.width/2,o.game.height/2,"LOADING...",n.Constants.styleCredits0);a.anchor.set(.5),o.addChild(a);var r=o.game.add.tween(o);return r.to({alpha:0},100),r.onComplete.add(function(){null!==s&&s()}),r.start(),o}return s(e,t),e}(Phaser.Graphics);e.default=o},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0,i(13),i(11);var n=i(3),o=i(41),a=i(18),r=i(55),h=i(19),l=function(t){function e(){var i=t.call(this)||this;return i.name=e.Name,i.bike=null,i.logo=null,i.google_btn=null,i.apple_btn=null,i.wait=null,i.mainParent=null,i}return s(e,t),e.prototype.preload=function(){t.prototype.preload.call(this),this.game.load.onFileComplete.add(this.fileComplete,this),o.default.getInstance().checkDomain(document.URL.split("//")[1].split("/")[0])?this.preloadSplash():this.preloadLock()},e.prototype.init=function(){t.prototype.init.call(this),this.mainParent=this.game.add.group(),this.mainParent.x=this.game.width/2,this.mainParent.y=this.game.height/2,this.setPauseViewCar(this.mainParent)},e.prototype.preloadLock=function(){this.game.load.atlas(n.Atlases.Garage,"assets/atlases/x1/"+n.Atlases.Garage+".png","assets/atlases/x1/"+n.Atlases.Garage+".json")},e.prototype.preloadSplash=function(){},e.prototype.createLock=function(){this.logo=this.game.add.image(0,-30,n.Atlases.Garage,"logo_mad0000"),this.logo.scale.set(.5),this.logo.anchor.set(.5),this.logo.inputEnabled=!0,this.logo.input.useHandCursor=!0,this.logo.events.onInputDown.add(this.opensitelockLink,this);var t={font:"25px Arial",fill:"#A8DB2B"},e={font:"25px Arial",fill:"#FFFFFF"},i=new h.default(this.game,0,-200,"This is version is url-locked",t),s=new h.default(this.game,0,-160,o.default.getInstance().getUrlLock(),e),a=new h.default(this.game,0,100,"Contact to license this game",t),r=new h.default(this.game,0,140,"madpuffers@gmail.com",e);i.anchor.set(.5),s.anchor.set(.5),a.anchor.set(.5),r.anchor.set(.5),this.mainParent.addChild(this.logo),this.mainParent.addChild(i),this.mainParent.addChild(s),this.mainParent.addChild(a),this.mainParent.addChild(r)},e.prototype.opensitelockLink=function(){window.open("http://"+o.default.getInstance().getUrlLock(),"_blank")},e.prototype.createSplash=function(){new a.default(this.game,0,r.default.Name)},e.prototype.nextMethod=function(){var t=this.game.add.tween(this.logo);t.to({alpha:0},660,Phaser.Easing.Linear.None,!1,4e3),t.onComplete.add(function(){new a.default(this.game,0,r.default.Name)},this),t.start()},e.prototype.fileComplete=function(t,e,i,s,n){100===t&&this.game.load.onFileComplete.removeAll()},e.prototype.setPauseViewCar=function(t){null!==this.bike?(this.bike.destroy(),this.bike=this.game.add.group(t)):this.bike=this.game.add.group(t),this.bike.x=0,this.bike.y=10},e.prototype.create=function(){t.prototype.create.call(this),o.default.getInstance().checkDomain(document.URL.split("//")[1].split("/")[0])?this.createSplash():this.createLock()},e.prototype.resize=function(){var e=1;e=this.game.width/n.Constants.WIDTH,e=e>1?1:e,this.mainParent&&(this.mainParent.x=this.game.width/2,this.mainParent.y=this.game.height/2),this.wait&&this.wait.position.set(this.game.width/2,this.game.height/2),t.prototype.resize.call(this)},e.prototype.shutdown=function(){t.prototype.shutdown.call(this)},e.Name="sitelock",e}(Phaser.State);e.default=l},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){this.brandInstances={},this.motoLinks={},this.brandDomains=[],this.brandInstances[t.POKI]="poki.com",this.motoLinks[1]="http://yep10.com/moto-x3m-bike-race-game-2/",this.motoLinks[4]="http://yep10.com/moto-x3m-4-winter-bike-race-game/",t.Current===t.POKI&&(this.brandDomains=[],this.brandDomains.push("localhost:3000"),this.brandDomains.push("poki.com"),this.brandDomains.push("poki-gdn.com"),this.brandDomains.push("madpuffers.com"))}return t.getInstance=function(){return null===t.instance&&(t.instance=new t),t.instance},t.prototype.getMotoLink=function(t){return this.motoLinks[t]},t.prototype.checkDomain=function(t){return true},t.prototype.getUrlLock=function(){return null!==t.Current?this.brandInstances[t.Current]:""},t.prototype.getUrl=function(t){return this.brandInstances[t]},t.instance=null,t.MOTO1="http://yep10.com/moto-x3m-bike-race-game-2/",t.POKI="poki",t.Current=t.POKI,t}();e.default=s},function(t,e,i){"use strict";e.__esModule=!0;var s=i(11),n=i(0),o=function(){function t(){}return t.setTransform=function(t,e,i,s,n,o,a,r){void 0===n&&(n=null),void 0===o&&(o=null),void 0===a&&(a=null),void 0===r&&(r=null),t.x=e,t.y=i,t.rotation=s,n&&(t.pivot.x=n),o&&(t.pivot.y=o),a&&(t.scale.x=a),r&&(t.scale.y=r)},t.release=function(){for(var e in t.mapTexture)if(t.mapTexture.hasOwnProperty(e)){var i=t.mapTexture[e];i.destroy(!0)}t.mapTexture={}},t.drawBitmapPath=function(e,i,s){var n=s.length,o=[],a=0,r=null;for(a=0;a.15;)n=i[i.length-1],o=t[d+1],c=Phaser.Point.distance(n,o),c>e?(u=e/c,c*=u,Phaser.Point.interpolate(n,o,u,p),i.push(new s.Point(p.x,p.y))):(d++,i.push(new s.Point(t[d].x,t[d].y))),h-=c;return l}},t.choosePic=function(e,i){if(void 0===t.mapTexture[e]){var s=new Phaser.Image(n.GraphicUtil.game,0,0,n.GraphicUtil.currentAtlass,e+"0000"),o=s.generateTexture();s.visible=!1,t.mapTexture[e]=o}return n.GraphicUtil.game.add.rope(0,0,t.mapTexture[e],null,i)},t.drawOld=function(t,e,i){var s,o,a=0,r=i.length,h=0,l=null;for(h=0;h>0;t-=100*e;var i=(e<10?"0"+e:e)+"."+t;i.length<5&&(i+="0"),this.timer.setText(i)},t.prototype.showFlipMsg=function(t,e){var i="FLIP",n="";n=n+"-"+.5*t+" sec",this.flipTexts.setText(n),this.flipBG.setText(n),t>1&&(i=i+" "+t+"X"),this.lFront.setText(i),this.lBack.setText(i),h.MaxGameCore.instance.timer-=.5*t,this.startTextAnim(this.flipTexts,this.hideFlipTxtAnim,this),c.default.getInstance().play(s.Sounds.FlipSound())},t.prototype.startTextAnim=function(t,e,i){t.scale.set(.1),this.flipBG.stroke="#000000",this.flipBG.strokeThickness=2,t.label.stroke="#FFFFFF",t.label.strokeThickness=5;var s=this.game.add.tween(t.scale);t.alpha=1,s.to({x:1,y:1},350,Phaser.Easing.Back.Out,!0),s.onComplete.addOnce(e,i)},t.prototype.hideFlipTxtAnim=function(){this.game.add.tween(this.flipTexts).to({alpha:0},250,Phaser.Easing.Linear.None,!0,500)},t.prototype.release=function(){this.flipTexts=null,this.flipBG=null,this.bgBtnRight=null,this.bgBtnLeft=null,this.helperText=null,this.continueText=null,this.continueShow=!1,this.helperShow=!1,this.game=null,this.timer=null,this.pauseBtn=null,this.restartBtn=null,this.musicBtn=null,this.stars=null,this.signalToggleMusic.removeAll(),this.signalRestart.removeAll(),this.signalPause.removeAll(),this.signalToggleMusic=null,this.signalRestart=null,this.signalPause=null,this.container.destroy(),this.container=null},t.prototype.showControlsHint=function(){this.helperText.visible=!0,this.continueText.visible=!1,this.helperShow=!0,this.continueShow=!1},t.prototype.showDeathHint=function(){h.MaxGameCore.instance.finished||(f.default.getInstance().dispatchStop(),this.continueText.visible=!0),this.helperText.visible=!1,this.helperShow=!1,this.continueShow=!0,c.default.getInstance().play(s.Sounds.DieSound())},t.prototype.hideControlsHint=function(){this.helperShow=!1,this.continueShow=!1,this.helperText.visible=!1,this.continueText.visible=!1},t.prototype.showTimer=function(){this.timer.visible||h.MaxGameCore.instance.finished||(this.timer.visible=!0,this.helperShow&&(this.helperText.visible=!0),this.continueShow&&(this.continueText.visible=!0),a.default.instance.container.visible=!0)},t.prototype.hideTimer=function(){this.timer.visible&&(this.timer.visible=!1,this.helperText.visible=!1,this.continueText.visible=!1,a.default.instance.container.visible=!1)},t.prototype.init=function(e,i){if(this.container=e,this.game=i,p.default.isDesktop||(t.MSG_CONTINUE="Tap to continue",t.MSG_HELP="Use arrows to move"),this.scl=Math.max(this.game.width,this.game.height)/s.Constants.WIDTH,this.scl=this.scl>1?1:this.scl,this.signalRestart=new Phaser.Signal,this.signalPause=new Phaser.Signal,this.signalToggleMusic=new Phaser.Signal,this.timer=new n.default(this.game,"00.00",s.Constants.styleTimer,null,null,s.Atlases.Garage),this.timer.setFrames("timer_bg0000","timer_bg0000","timer_bg0000","timer_bg0000"),this.timer.x=this.game.width/2,this.timer.y=25,this.timer.label.x=-2,this.timer.label.anchor.set(0,.6),this.timer.inputEnableChildren=!1,this.helperText=new n.default(this.game,t.MSG_HELP,s.Constants.styleHelp,null,null,s.Atlases.Garage),this.helperText.setFrames("0popup_bg0000","0popup_bg0000","0popup_bg0000","0popup_bg0000"),this.helperText.x=this.game.width/2,this.helperText.y=this.game.height+this.helperText.height/2-90*s.Constants.GAME_SCALE,this.helperText.label.anchor.set(.5,5.5),this.helperText.visible=!1,this.continueText=new n.default(this.game,t.MSG_CONTINUE,s.Constants.styleHelp,null,null,s.Atlases.Garage),this.continueText.setFrames("0popup_bg0000","0popup_bg0000","0popup_bg0000","0popup_bg0000"),this.continueText.x=this.game.width/2,this.continueText.y=this.game.height+this.helperText.height/2-90*s.Constants.GAME_SCALE,this.continueText.label.anchor.set(.5,5.5),p.default.isDesktop){var r=void 0;r=d.GraphicUtil.game.add.sprite(0,0,s.Atlases.Garage,"space_key0000"),r.animations.add("space_key",["space_key0000","space_key0001"],2,!0),r.y=-.5*this.helperText.height+75,this.continueText.label.text="Press Space to continue",r.x-=24,r.animations.getAnimation("space_key").play(2,!0),r.anchor.set(.5),this.continueText.addChild(r)}this.continueText.visible=!1,this.bgBtnRight=this.game.add.image(this.game.width,0,s.Atlases.Garage,"pause_bg0000"),this.bgBtnRight.scale.set(-1.4,1),this.bgBtnLeft=this.game.add.image(0,0,s.Atlases.Garage,"pause_bg0000"),this.bgBtnLeft.scale.set(1.4,1),this.restartBtn=this.game.add.image(0,0,s.Atlases.Garage,"restart_btn0000"),this.pauseBtn=this.game.add.image(this.game.width-90,0,s.Atlases.Garage,"InGamePauseButton0000"),this.musicBtn=this.game.add.image(this.game.width-58,0,s.Atlases.Garage,"InGameMusicButton0000"),this.stars=this.game.add.text(45,6,"#"+(o.default.LevelNum+1),s.Constants.styleMoney),this.flipTexts=new n.default(i,"",s.Constants.styleTrick,null,null,s.Atlases.Garage),this.flipTexts.setFrames("bg0000","bg0000","bg0000","bg0000"),this.flipTexts.label.setMaxSize(200,45),this.flipTexts.label.y=20,this.flipTexts.alpha=0,this.lBack=new l.default(this.game,0,-20,"FLIP",s.Constants.styleTrick),this.lBack.anchor.set(.5),this.flipTexts.label.parent.addChildAt(this.lBack,0),this.lBack.stroke="#FFFFFF",this.lBack.strokeThickness=5,this.lFront=new l.default(this.game,0,-20,"FLIP",s.Constants.styleTrick),this.lFront.anchor.set(.5),this.flipTexts.label.parent.addChild(this.lFront),this.lFront.stroke="#000000",this.lFront.strokeThickness=2,this.flipBG=new l.default(this.game,0,20,"",s.Constants.styleTrick),this.flipBG.anchor.set(.5),this.flipTexts.label.parent.addChild(this.flipBG),this.restartBtn.inputEnabled=!0,this.restartBtn.events.onInputDown.add(this.onRestart,this),this.pauseBtn.inputEnabled=!0,this.pauseBtn.events.onInputDown.add(this.onPause,this),this.musicBtn.inputEnabled=!0,this.musicBtn.events.onInputDown.add(this.toggleMusic,this),this.updateSoundButtons(),this.container.addChild(this.bgBtnRight),this.container.addChild(this.bgBtnLeft),this.container.addChild(this.pauseBtn),this.container.addChild(this.restartBtn),this.container.addChild(this.musicBtn),this.container.addChild(this.flipTexts),this.container.addChild(this.stars),this.container.addChild(this.timer),this.container.addChild(this.helperText),this.container.addChild(this.continueText),p.default.isDesktop||a.default.instance.container.parent.addChild(a.default.instance.container),this.flipTexts.x=.5*this.game.width/this.scl,this.flipTexts.y=.2*s.Constants.HEIGHT},t.prototype.toggleMusic=function(){this.signalToggleMusic.dispatch()},t.prototype.updateSoundButtons=function(){var t=u.default.getInstance().music?0:1;t+=u.default.getInstance().sfx?0:1,this.musicBtn.loadTexture(s.Atlases.Garage,"InGameMusicButton000"+t)},t.prototype.resize=function(t){this.container.scale.set(t),this.bgBtnRight.x=this.game.width/t,this.musicBtn.x=this.game.width/t-58,this.pauseBtn.x=this.game.width/t-100,this.bgBtnRight.y=0,this.bgBtnLeft.y=0,this.game.state.current===r.default.Name&&this.resizeGameplay(t),p.default.isDesktop||a.default.instance.resize(t)},t.prototype.resizeGameplay=function(t){this.flipTexts.x=.5*this.game.width},t.prototype.onPause=function(){this.signalPause.dispatch()},t.prototype.onRestart=function(){this.signalRestart.dispatch()},Object.defineProperty(t,"instance",{get:function(){return t._instance||(t._instance=new t),t._instance},enumerable:!0,configurable:!0}),t.MSG_CONTINUE="Press SPACE to continue",t.MSG_HELP="Use arrows to move",t}();e.default=y},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(0),o=i(4),a=i(1),r=function(t){function e(){var e=t.call(this)||this;return e.create(),e}return s(e,t),e.get=function(){return e.pool.length>0?e.pool.pop():new e},e.prototype.create=function(t){void 0===t&&(t=null),this.type=a.ObjectTypes.LANDSCAPE,this.graphic=new n.TrailPart,this.active=!1,o.MaxGameCore.instance.add(this)},e.prototype.update=function(t){void 0===t&&(t=0),this.active&&(this.graphic.update(t),this.graphic.isPlaying||this.remove())},e.prototype.put=function(t,e){this.graphic.x=t,this.graphic.y=e,this.graphic.visible=!0,this.active=!0,this.graphic.gotoAndPlay(0)},e.prototype.remove=function(){this.active&&(e.pool[e.pool.length]=this),this.active=!1,this.graphic.visible=!1},e.prototype.restart=function(){this.remove()},e.pool=[],e}(n.GameObject);e.TrailPartObject=r},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(5),o=i(2),a=function(t){function e(){var e=t.call(this,n.GraphicUtil.game)||this;e.anim=null;var i=o.AssetsStorage.instance.getByKey("smoke_part"),s=e.game.add.sprite(0,0,n.GraphicUtil.currentAtlass,i+"0000");return s.animations.add(i,Phaser.Animation.generateFrameNames(i,0,28,"",4)),s.anchor.set(.5),e.anim=s.animations.getAnimation(i),e.anim.play(30),e.anim.stop(),e.anim.onComplete.add(e.animationComplete,e),e.addChild(s),e.visible=!1,e}return s(e,t),e.prototype.update2=function(t){void 0===t&&(t=0),this.anim.isPlaying&&(this.x+=this.velX*t,this.y+=this.velY*t,this.velY+=e.GRAVITY_Y*t)},e.prototype.animationComplete=function(){this.visible=!1},e.prototype.emit=function(t,i,s){this.visible=!0,this.x=t,this.y=i,this.velX=e.BASE_VEL*Math.cos(s),this.velY=e.BASE_VEL*Math.sin(s),this.anim.play(30)},e.GRAVITY_Y=-500,e.BASE_VEL=-50,e}(Phaser.Group);e.SmokePartClip=a},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(0),o=i(2),a=function(t){function e(){var e=t.call(this,n.GraphicUtil.game)||this;e.anim=null;var i=o.AssetsStorage.instance.getByKey("ground_part"),s=e.game.add.sprite(0,0,n.GraphicUtil.currentAtlass,i+"0000");return s.animations.add(i,Phaser.Animation.generateFrameNames(i,0,28,"",4)),s.anchor.set(.5),e.anim=s.animations.getAnimation(i),e.anim.play(30),e.anim.stop(),e.anim.onComplete.add(e.animationComplete,e),e.addChild(s),e.visible=!1,e}return s(e,t),e.prototype.update2=function(t){void 0===t&&(t=0),this.anim.isPlaying&&(this.x+=this.velX*t,this.y+=this.velY*t,this.velY+=e.GRAVITY_Y*t)},e.prototype.animationComplete=function(){this.visible=!1},e.prototype.emit=function(t,e,i,s){this.visible=!0,this.x=t,this.y=e,this.velX=i,this.velY=s,this.anim.play(30)},e.GRAVITY_Y=500,e}(Phaser.Group);e.GroundPartClip=a},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=nape.geom.Ray,o=nape.geom.Vec2,a=nape.phys.Compound,r=i(0),h=i(4),l=i(9),c=i(3),u=i(24),d=function(t){function e(){var e=t.call(this)||this;return e.LONG_FLY_TIME=.1,e.dampingDelta=.99,e._drive=!0,e.ray=new n(o.weak(),o.weak(0,1)),e.itemId=-1,e.accell=!1,e.smokeTimer=0,e.wheelieTimer=0,e.tilt=0,e.compound=new a,e}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null),this.space=h.MaxGameCore.instance.getSpace(),this.setParams(t),this.finished=!1,this.boost=new r.BoostEffector(this.frame.body),this.boost.anim=this.frame.graphic.boostAnim,this.restart()},e.prototype.setParams=function(t){this.skinId=t.skinId;var e;0===t.wd?(this.wdWheels=[this.backWheel.body],e=this.backWheel.body.shapes.at(0).radius):1===t.wd?(e=this.frontWheel.body.shapes.at(0).radius,this.wdWheels=[this.frontWheel.body]):(this.wdWheels=[this.backWheel.body,this.frontWheel.body],e=Math.max(this.backWheel.body.shapes.at(0).radius,this.frontWheel.body.shapes.at(0).radius)),this.wheelRadius=e;var i=2*Math.PI*e,s=t.maxSpeed/i;this.maxAngularVel=2*s*Math.PI,this.accelTorque=t.torque,t.maxTorque>t.torque?this.deltaTorque=t.maxTorque-t.torque:this.deltaTorque=0,this.tiltTorque=t.flipTorque,this.frame.maxFlipVel=this.maxTiltSpeed=t.maxFlipSpeed},e.prototype.restart=function(){this.wheelieTimer=0,this.accell=!1,this.safeId=-1,this.finished=!1,this.maxFlyAngle=this.minFlyAngle=this.startFlyAngle=this.rotation=this.frame.body.rotation,this.fallTime=this.flyTime=0,this.frame.body.userData.handler=this,this.backWheel.body.userData.handler=this,this.frontWheel.body.userData.handler=this,this.frame.body.userData.graphic=this.frame.graphic,this.backWheel.body.userData.graphicEx=this.backWheel.graphic,this.frontWheel.body.userData.graphicEx=this.frontWheel.graphic,this._drive=!0,this._deadDelay=0,this.dead=!1,this.itemId=-1,this.setVisible(!0),this.setAlpha(1),this.review(),this.compound.space=this.space},e.prototype.release=function(){this.space=null,this.compound.space=null,this.compound=null,this.frame=null,this.backWheel=null,this.frontWheel=null,this.callbackFinish=null,this.callbackDie=null,this.callbackStunt=null,this.callbackFight=null,this.suspendBack=null,this.suspendBackLocal&&this.suspendBackLocal.dispose(),this.suspendBackLocal=null,this.suspendFront=null,this.boost.dispose(),this.boost=null,t.prototype.release.call(this)},Object.defineProperty(e.prototype,"drive",{get:function(){return this._drive},set:function(t){t&&!this._drive&&(this.frontWheel.startSpin(),this.backWheel.startSpin()),this._drive=t},enumerable:!0,configurable:!0}),e.prototype.addBoost=function(t,e){this.boost.add(t,e)},e.prototype.update=function(t){void 0===t&&(t=0),this.dead&&this.driver?(this.x=this.driver.parts[0].body.position.x,this.y=this.driver.parts[0].body.position.y):(this.x=this.frame.body.position.x,this.y=this.frame.body.position.y),this.rotation=this.frame.body.rotation;var i=this.speed;this.speed=this.frame.body.velocity.length,this.speedV=this.frame.body.velocity.y,this.hasGround=this.frame.hasGround||this.backWheel.hasGround||this.frontWheel.hasGround,this.hasGround?(this.flyTime>this.LONG_FLY_TIME&&(this.processLand(),i>500&&l.default.getInstance().play(c.Sounds.Landing)),this.flyTime=0,this.fallTime=0):(0===this.flyTime&&(this.maxFlyAngle=this.minFlyAngle=this.startFlyAngle=this.rotation),this.rotation>this.maxFlyAngle?this.maxFlyAngle=this.rotation:this.rotation0?this.fallTime+=t:this.fallTime=0);var s;if(this._drive){var n=this.controller.getDrive();if(this.applyDrive(t,!1,n),this.finished)this.applyTilt(t,0);else{var o=this.controller.getTilt();this.applyTilt(t,o)}if(4!==this.skinId&&(this.controller.accell?this.smokeTimer-=2*t:this.smokeTimer-=t,this.smokeTimer<=0)){this.smokeTimer+=e.SMOKE_TIME,s=this.frame.graphic;var a=this.frame.body.localPointToWorld(this.frame.localSmokePos),h=.1*Math.PI;this.controller.accell?(s.emitSmoke(a.x,a.y,this.rotation-.5*h+Math.random()*h),s.emitSmoke(a.x,a.y,this.rotation-.1*Math.PI+.5*h+Math.random()*h),s.emitSmoke(a.x,a.y,this.rotation+.1*Math.PI+.5*h+Math.random()*h),a.dispose()):(s.emitSmoke(a.x,a.y,this.rotation-.5*h+Math.random()*h),a.dispose())}s=this.frame.graphic,this.updateWheelie(t)}else this._deadDelay>0&&(this._deadDelay-=t,this._deadDelay<=0&&9!==this.skinId&&(this._drive=!0,this._deadDelay=0,this.dead=!1,this.setVisible(!0),this.compound.space=this.space)),this.finished&&(this.frontWheel.body.angularVel*=.8,this.backWheel.body.angularVel*=.8);if(this.suspendBack){var u=this.frame.body.localPointToWorld(this.suspendBackLocal),d=this.backWheel.body.position.sub(u);r.Drawing.setTransform(this.suspendBack.graphic,u.x,u.y,d.angle,NaN,NaN,d.length/this.suspendBackW,1),d.dispose(),u.dispose()}this.suspendFront&&(this.suspendFront.graphic.x=this.frontWheel.body.position.x,this.suspendFront.graphic.y=this.frontWheel.body.position.y,this.suspendFront.graphic.rotation=(this.suspendFrontAngle+this.frame.body.rotation)%(2*Math.PI)),this.driver.head&&(this.driver.head.trail&&this.driver.head.trail.emit(this.driver.head.body.position.x,this.driver.head.body.position.y),this.driver.head.update(t)),this.boost.update(t,this.hasGround)},e.prototype.updateWheelie=function(t){h.MaxGameCore.instance.finished||(this.hasGround?this.frame.hasGround?this.wheelieTimer>0&&this.wheelieComplete():this.backWheel.hasGround&&!this.frontWheel.hasGround||!this.backWheel.hasGround&&this.frontWheel.hasGround?(this.wheelieTimer+=t,this.wheelieTimer>1&&this.callbackWheelie&&this.callbackWheelie(this.wheelieTimer,!1)):this.wheelieTimer>0&&this.wheelieComplete():this.wheelieTimer>0&&this.wheelieComplete())},e.prototype.wheelieComplete=function(){this.wheelieTimer>1&&this.callbackWheelie&&this.callbackWheelie(this.wheelieTimer,!0),this.wheelieTimer=0},e.prototype.setAlpha=function(t){this.frame.graphic.alpha=this.backWheel.graphic.alpha=this.frontWheel.graphic.alpha=t},e.prototype.processLand=function(){if(!h.MaxGameCore.instance.finished){if(!this.dead&&(this.backWheel.hasGround||this.frontWheel.hasGround)){var t=void 0,e=Math.PI;t=this.startFlyAngle-this.minFlyAngle;var i=t/(2*Math.PI)>>0;t-=2*i*Math.PI,t>=e&&i++;var s=i;t=this.maxFlyAngle-this.startFlyAngle,i=t/(2*Math.PI)>>0,t-=2*i*Math.PI,t>=e&&i++;var n=i;s>0&&this.callbackStunt&&this.callbackStunt.call(this.callbackContext,s,!0),n>0&&this.callbackStunt&&this.callbackStunt.call(this.callbackContext,n,!1)}this.startFlyAngle=this.maxFlyAngle=this.minFlyAngle=this.rotation}},e.prototype.applyDrive=function(t,e,i){var s=!1,n=!1;this.finished||(1===i?s=!0:-1===i&&(n=!0));var o=this.accelTorque,a=this.maxAngularVel;if(this.deltaTorque>0&&(s||n)){var r=this.speed/this.wheelRadius;if(r0&&(m.angularVel*=.5),m.angularVel>-a&&m.applyAngularImpulse(-t*o/f)):e||(m.angularVel*=this.dampingDelta),Math.abs(m.angularVel)0&&s>this.maxTiltSpeed&&(i.angularVel=this.maxTiltSpeed),this.driver){var n=e;if(0===n)if(this.hasGround)this.controller.accell&&(n=-1);else{var o=this.frame.body.velocity.y;o<-20?n=1:o>20&&(n=-1)}this.driver.move(e,n)}},e.prototype.setReviewPos=function(t,e,i){this.safeId=i,this.frame.body.userData.reviewX=t,this.frame.body.userData.reviewY=e},e.prototype.review=function(){h.MaxGameCore.instance.stopAllSounds(),u.default.loadedLevel&&(h.MaxGameCore.instance.engineStart=l.default.getInstance().play(c.Sounds.Start)),this.wheelieTimer=0,this.backWheel.connect(!1),this.frontWheel.connect(!1),this.driver.connectDriver(!1),this.driver.connect(!1),r.NapeUtil.stopBody(this.frame.body),r.NapeUtil.stopBody(this.backWheel.body),r.NapeUtil.stopBody(this.frontWheel.body),this.driver.stop(),this.frame.review(),this.startFlyAngle=this.maxFlyAngle=this.minFlyAngle=this.rotation=this.frame.body.rotation;var t=o.get(-this.frame.wheelBackDx,this.frame.wheelDy),e=this.frame.body.localPointToWorld(t);this.backWheel.body.position.set(e),e.dispose(),t.setxy(this.frame.wheelFrontDx,this.frame.wheelDy),e=this.frame.body.localPointToWorld(t),this.frontWheel.body.position.set(e),e.dispose(),t.dispose(),this.driver.review(this.frame.body.position),this.backWheel.connect(!0),this.frontWheel.connect(!0),this.driver.connectDriver(!0),this.driver.connect(!0),this.driver.activateMirrorParts(!1),this.dead=!1,this._drive=!0,this.boost.restart()},e.prototype.setVisible=function(t){this.frame.graphic.visible=this.backWheel.graphic.visible=this.frontWheel.graphic.visible=t},e.prototype.processFinish=function(t){this.wheelieComplete(),this._drive=!1,this.finished=!0,this.applyTilt(0,0),h.MaxGameCore.instance.processFinish()},e.SMOKE_TIME=.2,e}(r.GameObject);e.CarObject=d},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(0),o=i(1),a=i(6),r=i(2),h=function(t){function e(e){var i=t.call(this)||this;return i.type=e?o.ObjectTypes.LANDSCAPE:o.ObjectTypes.FRONT,i}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null);var e=t.className,i=parseInt(e.substr(3));(13===i||14===i||15===i||16===i||36===i||42===i||i>=50&&i<=60)&&(this.type=o.ObjectTypes.LANDSCAPE_BACK);var s=e.indexOf("_dup");s>=0&&(e=e.substring(0,s));var h=r.AssetsStorage.instance.getByKey(e);if(h){var l=h+"0000";this.graphic=n.GraphicUtil.game.add.sprite(0,0,n.GraphicUtil.currentAtlass,l),n.Drawing.setTransform(this.graphic,t.params.x,t.params.y,a.default.TO_RAD*t.params.rotation,0,0,t.params.scaleX,t.params.scaleY),0===l.indexOf("Sign")&&"SignPillar0000"!==l&&(this.type=o.ObjectTypes.LANDSCAPE);var c=this.graphic;"Dec120000"===l?(c.animations.add(e,Phaser.Animation.generateFrameNames(e,0,22,"",4)),c.anchor.set(.5,.7),c.animations.getAnimation(e).play(30,!0)):"Dec130000"===l?c.anchor.set(.22142857142857142,.4854771784232365):"Dec140000"===l?c.anchor.set(.7979274611398963,.5563380281690141):"Dec150000"===l?c.anchor.set(.4943820224719101,.023255813953488372):"Dec160000"===l?c.anchor.set(.6333333333333333,.4309623430962343):"Dec290000"===l?c.anchor.set(.453125,.6987951807228916):"Dec300000"===l?c.anchor.set(.6375,1):"Dec310000"===l?c.anchor.set(.5,1):"Dec320000"===l?c.anchor.set(.5,1):"Dec330000"===l?c.anchor.set(.5025641025641026,.5116279069767442):"Dec340000"===l?c.anchor.set(.5,.5):"Dec350000"===l?c.anchor.set(.052,.451):"Dec360000"===l?c.anchor.set(.07142857142857142,.45121951219512196):"Dec370000"===l?c.anchor.set(.7326732673267327,.46619217081850534):"Dec400000"===l?c.anchor.set(.5,.47540983606557374):"Dec410000"===l?c.anchor.set(.37142857142857144,.5):"Dec420000"===l?c.anchor.set(.6470588235294118,.5):"Dec600000"===l?c.anchor.set(0):0===l.indexOf("Dec5")?c.anchor.set(0):c.anchor.set(.5)}},e}(n.GameObject);e.DecorObject=h},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=nape.phys.BodyType,o=i(0),a=i(1),r=i(5),h=i(7),l=i(2),c=function(t){function e(e,i){var s=t.call(this)||this;return s.id=e,s.parentKey=i,s}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null),this.type=a.ObjectTypes.LANDSCAPE;var e=l.AssetsStorage.instance,i=this.parentKey+this.id.toString();this.graphic=r.GraphicUtil.createImage(0,0,0,i),this.body=o.NapeUtil.createCircleBody(n.DYNAMIC,h.Filters.NOTHING,!1,4),this.body.userData.graphicEx=this.graphic},e.prototype.restart=function(){this.killTweenLite(),this.body.space=null,this.graphic.visible=!1},e.prototype.release=function(){this.killTweenLite(),t.prototype.release.call(this)},e.prototype.activate=function(t,e,i){this.killTweenLite(),o.NapeUtil.stopBody(this.body),this.tweenLite=r.GraphicUtil.game.add.tween(this),this.tweenLite.to({x:100},5e3),this.tweenLite.start(),this.tweenLite.onComplete.addOnce(this.deactivate,this,0,this),this.body.position=t,this.body.rotation=e,this.body.space=o.NapePhysics.space,this.graphic.visible=!0},e.prototype.killTweenLite=function(){this.tweenLite&&(this.tweenLite.onComplete.removeAll(),this.tweenLite=null)},e.prototype.deactivate=function(t){t.restart()},e}(o.GameObject);e.GlassBlockPart=c},function(t,e,i){"use strict";e.__esModule=!0;var s=nape.geom.GeomPoly,n=nape.geom.GeomPolyList,o=nape.geom.Vec2,a=nape.phys.Body,r=nape.phys.BodyType,h=nape.shape.Polygon,l=i(6),c=i(0),u=function(){function t(){}return t.createGroundBody=function(e){var i=e.params.x,s=e.params.y,n=e.params.vertices,h=n.length,u=NaN,d=NaN,p=null!=e.params.thick?e.params.thick:128,f=e.params.direction*l.default.TO_RAD,y=e.params.directed,g=c.Materials.GROUND,m=new a(r.STATIC,o.weak(i,s));m.cbTypes.add(c.CbTypes.GROUND);var v,b=n[0];v=[b];for(var x,_=1;_=0?(this.graphic=l.GraphicUtil.createImageWithObj(d,"RemovedBlue"),this.graphic.scaleY=s.h/this.graphic.height):this.graphic=l.GraphicUtil.createImageWithObj(d,i),this.type=m?a.ObjectTypes.LANDSCAPE_BACK:a.ObjectTypes.LANDSCAPE,o.NapeUtil.setupStartPos(this.body),this.body.userData.graphicEx=this.graphic,i.indexOf("Barrel")>=0&&this.body.cbTypes.add(c.CbTypes.BARREL),0===i.indexOf("Removed")&&this.body.cbTypes.add(c.CbTypes.WOOD),this.body.userData.isGround=!0,this.body.userData.isPT=!0,!1===t.params.active?this.activeOnStart=!1:this.activeOnStart=!0},e.prototype.restart=function(){o.NapeUtil.stopBody(this.body),o.NapeUtil.resetStartPos(this.body),this.showGraphicOnStart&&(this.isInitial=!0),this.graphic.x=this.body.position.x,this.graphic.y=this.body.position.y,this.graphic.rotation=this.body.rotation,this.activate(this.activeOnStart)},e.prototype.review=function(){this.skipRevive||this.restart()},e.prototype.activate=function(t){void 0===t&&(t=!0);var e,i;if(t){for(this.body.space=d.MaxGameCore.instance.getSpace(),e=this.body.constraints.iterator();e.hasNext();)i=e.next(),i.active=!0;this.activateGraphic&&(this.graphic.visible=!0)}else{for(e=this.body.constraints.iterator();e.hasNext();)i=e.next(),i.active=!1,i.userData.skipActive=!0;this.body.space=null,this.activateGraphic&&(this.isInitial&&this.showGraphicOnStart?this.graphic.visible=!0:this.graphic.visible=!1)}this.isInitial=!1},e.prototype.isActive=function(){return this.activeOnStart},e.CANDIES=["PlankCandy0","PlankCandy1","PlankCandy2","PlankCandy3"],e.CANDIES_COUNT=4,e}(o.GameObject);e.DynamicBodyObject=f},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(t){this.accell=!1,this.brake=!1,this.car=t}return t.prototype.getBoost=function(){return!1},t.prototype.getDrive=function(){return 0},t.prototype.getTilt=function(){return 0},t.prototype.getUseItem=function(){return!1},t.prototype.dispose=function(){this.car=null},t}();e.CarController=s},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0,i(13),i(11);var n=i(3),o=i(18),a=i(27),r=i(17),h=function(t){function e(){var i=t.call(this)||this;return i.name=e.Name,i.loadComplete=!0,i.bike=null,i.wait=null,i.mainParent=null,i}return s(e,t),e.prototype.preload=function(){var e=this;t.prototype.preload.call(this),this.wait=this.game.add.text(this.game.width/2,this.game.height/2,"LOADING...",n.Constants.styleCredits0),this.wait.anchor.set(.5),this.game.sound.muteOnPause=!0,this.game.load.onFileComplete.add(this.fileComplete,this);var i="x"+n.Constants.GAME_SCALE+"/";n.JSONData.list.forEach(function(t){e.game.load.json(t,"assets/levels/"+t+".json")}),n.Images.list.forEach(function(t){e.game.load.image(t,"assets/images/"+i+t+".png")}),n.Atlases.list.forEach(function(t){e.game.load.atlas(t,"assets/atlases/"+i+t+".png","assets/atlases/"+i+t+".json")}),n.Sounds.list.forEach(function(t){e.game.device.iOS?e.game.load.audio(t,["assets/sound/"+t+".m4a"]):e.game.load.audio(t,["assets/sound/"+t+".ogg","assets/sound/"+t+".mp3"])}),this.game.scale.onSizeChange.add(function(){e.game.state.getCurrentState().resize()},this)},e.prototype.init=function(){t.prototype.init.call(this),this.mainParent=this.game.add.group(),this.mainParent.x=this.game.width/2,this.mainParent.y=this.game.height/2-80},e.prototype.create=function(){t.prototype.create.call(this),r.default.getInstance().displatchProgress(100)},e.prototype.update=function(){t.prototype.update.call(this),this.loadComplete&&(r.default.getInstance().displatchLoaded(),this.loadComplete=!1,e.game=this.game,new o.default(this.game,0,a.default.Name))},e.prototype.fileComplete=function(t,e,i,s,n){this.wait.setText("Loading..."+t+"%"),r.default.getInstance().displatchProgress(t)},e.prototype.resize=function(){var e=1;e=this.game.width/n.Constants.WIDTH,e=e>1?1:e,this.mainParent&&(this.mainParent.x=this.game.width/2,this.mainParent.y=this.game.height/2-80),this.wait&&this.wait.position.set(this.game.width/2,this.game.height/2),t.prototype.resize.call(this)},e.prototype.shutdown=function(){t.prototype.shutdown.call(this)},e.Name="preloader",e.game=null,e}(Phaser.State);e.default=h},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0,i(57),i(13),i(11);var n=i(62),o=i(63),a=i(55),r=i(40),h=i(12),l=i(17),c;!function(t){var e=function(t){function e(){var e=t.call(this,{enableDebug:!0,width:720,height:480,renderer:Phaser.AUTO,parent:"content",transparent:!0,antialias:!0,preserveDrawingBuffer:!1,physicsConfig:null,seed:"",state:null,forceSetTimeOut:!1})||this;return e.clearBeforeRender=!1,Phaser.Device.whenReady(function(){h.default.isDesktop=e.device.desktop,e._isPad()&&(h.default.isDesktop=!1),e.stage.disableVisibilityChange=!0;var t=h.default.isDesktop?"click":"touchstart";document.getElementById("content").addEventListener(t,function(t){o.Gameplay.isAdsPause||(e.gameResumed(t),window.focus())}),l.default.getInstance().init(e),document.getElementById("content").addEventListener("poki_mute",function(t){e.adsPause()}),document.getElementById("content").addEventListener("poki_unmute",function(t){e.adsResume()})}),e.state.add("game",{create:e.stateCreator.bind(e),preload:e.statePreloader.bind(e)},!0),e}return s(e,t),e.prototype._isPad=function(){var t=-1!==navigator.userAgent.toLowerCase().indexOf("ipad");return!!(!t&&navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2)||t},e.prototype.statePreloader=function(){},e.prototype.stateCreator=function(){var t=this;this.plugins.add(PhaserSuperStorage.StoragePlugin),this.plugins.add(PhaserCachebuster.CacheBuster),this.storage.forcePromises=!0,this.state.add(o.Boot.Name,o.Boot,!1),this.state.add(a.default.Name,a.default,!1),this.state.add(r.default.Name,r.default,!1),this.state.add(o.Menu.Name,o.Menu,!1),this.state.add(o.Garage.Name,o.Garage,!1),this.state.add(o.ChooseZone.Name,o.ChooseZone,!1),this.state.add(o.Gameplay.Name,o.Gameplay,!1);var e=function(){t.recursiveUpdateText(t.stage)};n.load({custom:{families:["Aller Display","CfCrackBold","Impact"],urls:["assets/css/AllerDisplay.css","assets/css/CfCrackBold.css","assets/css/impact.css"]},active:e,inactive:e}),this.state.start(o.Boot.Name),this.state.remove("game")},e.prototype.recursiveUpdateText=function(t){var e=this;t instanceof Phaser.Text&&(t.dirty=!0),t.children&&t.children.length>0&&t.children.forEach(function(t){e.recursiveUpdateText(t)})},e.prototype.adsResume=function(){this.sound.mute=!1,o.Gameplay.isAdsPause=!1,this.gameResumed(null),window.focus()},e.prototype.adsPause=function(){this.sound.mute=!0,o.Gameplay.isAdsPause=!0},e}(Phaser.Game);t.Game=e}(c||(c={})),new c.Game},function(t,e,i){(function(e){t.exports=e.p2=i(58)}).call(e,i(28))},function(t,e,i){var s,s;!function(e){var i;t.exports=e()}(function(){var t,e,i;return function t(e,i,n){function o(r,h){if(!i[r]){if(!e[r]){var l="function"==typeof s&&s;if(!h&&l)return s(r,!0);if(a)return a(r,!0);throw new Error("Cannot find module '"+r+"'")}var c=i[r]={exports:{}};e[r][0].call(c.exports,function(t){var i=e[r][1][t];return o(i||t)},c,c.exports,t,e,i,n)}return i[r].exports}for(var a="function"==typeof s&&s,r=0;r=0&&h<=1&&l>=0&&l<=1}},{"./Scalar":4}],2:[function(t,e,i){function s(){}e.exports=s,s.area=function(t,e,i){return(e[0]-t[0])*(i[1]-t[1])-(i[0]-t[0])*(e[1]-t[1])},s.left=function(t,e,i){return s.area(t,e,i)>0},s.leftOn=function(t,e,i){return s.area(t,e,i)>=0},s.right=function(t,e,i){return s.area(t,e,i)<0},s.rightOn=function(t,e,i){return s.area(t,e,i)<=0};var n=[],o=[];s.collinear=function(t,e,i,a){if(a){var r=n,h=o;r[0]=e[0]-t[0],r[1]=e[1]-t[1],h[0]=i[0]-e[0],h[1]=i[1]-e[1];var l=r[0]*h[0]+r[1]*h[1],c=Math.sqrt(r[0]*r[0]+r[1]*r[1]),u=Math.sqrt(h[0]*h[0]+h[1]*h[1]);return Math.acos(l/(c*u))t.vertices.length)throw new Error("lol2");if(e<0)throw new Error("lol3");for(var s=e;se[t][0])&&(t=i);a.left(this.at(t-1),this.at(t),this.at(t+1))||this.reverse()},s.prototype.reverse=function(){for(var t=[],e=0,i=this.vertices.length;e!==i;e++)t.push(this.vertices.pop());this.vertices=t},s.prototype.isReflex=function(t){return a.right(this.at(t-1),this.at(t),this.at(t+1))};var h=[],l=[];s.prototype.canSee=function(t,e){var i,s,n=h,r=l;if(a.leftOn(this.at(t+1),this.at(t),this.at(e))&&a.rightOn(this.at(t-1),this.at(t),this.at(e)))return!1;s=a.sqdist(this.at(t),this.at(e));for(var c=0;c!==this.vertices.length;++c)if((c+1)%this.vertices.length!==t&&c!==t&&a.leftOn(this.at(t),this.at(e),this.at(c+1))&&a.rightOn(this.at(t),this.at(e),this.at(c))&&(n[0]=this.at(t),n[1]=this.at(e),r[0]=this.at(c),r[1]=this.at(c+1),i=o.lineInt(n,r),a.sqdist(this.at(t),i)0?this.slice(t):[this]},s.prototype.slice=function(t){if(0==t.length)return[this];if(t instanceof Array&&t.length&&t[0]instanceof Array&&2==t[0].length&&t[0][0]instanceof Array){for(var e=[this],i=0;ir)return t;for(var P=0;Pg&&(g+=this.vertices.length),y=Number.MAX_VALUE,g3&&i>=0;--i)a.collinear(this.at(i-1),this.at(i),this.at(i+1),t)&&(this.vertices.splice(i%this.vertices.length,1),i--,e++);return e}},{"./Line":1,"./Point":2,"./Scalar":4}],4:[function(t,e,i){function s(){}e.exports=s,s.eq=function(t,e,i){return i=i||0,Math.abs(t-e) (http://steffe.se)",keywords:["p2.js","p2","physics","engine","2d"],main:"./src/p2.js",engines:{node:"*"},repository:{type:"git",url:"https://github.com/schteppe/p2.js.git"},bugs:{url:"https://github.com/schteppe/p2.js/issues"},licenses:[{type:"MIT"}],devDependencies:{grunt:"^0.4.5","grunt-contrib-jshint":"^0.11.2","grunt-contrib-nodeunit":"^0.4.1","grunt-contrib-uglify":"~0.4.0","grunt-contrib-watch":"~0.5.0","grunt-browserify":"~2.0.1","grunt-contrib-concat":"^0.4.0"},dependencies:{"poly-decomp":"0.1.0"}}},{}],7:[function(t,e,i){function s(t){this.lowerBound=n.create(),t&&t.lowerBound&&n.copy(this.lowerBound,t.lowerBound),this.upperBound=n.create(),t&&t.upperBound&&n.copy(this.upperBound,t.upperBound)}var n=t("../math/vec2"),o=t("../utils/Utils");e.exports=s;var a=n.create();s.prototype.setFromPoints=function(t,e,i,s){var o=this.lowerBound,r=this.upperBound;"number"!=typeof i&&(i=0),0!==i?n.rotate(o,t[0],i):n.copy(o,t[0]),n.copy(r,o);for(var h=Math.cos(i),l=Math.sin(i),c=1;cr[f]&&(r[f]=u[f]),u[f]i&&(this.lowerBound[e]=i);var s=t.upperBound[e];this.upperBound[e]l?-1:h}},{"../math/vec2":30,"../utils/Utils":57}],8:[function(t,e,i){function s(t){this.type=t,this.result=[],this.world=null,this.boundingVolumeType=s.AABB}var n=t("../math/vec2"),o=t("../objects/Body");e.exports=s,s.AABB=1,s.BOUNDING_CIRCLE=2,s.prototype.setWorld=function(t){this.world=t},s.prototype.getCollisionPairs=function(t){};var a=n.create();s.boundingRadiusCheck=function(t,e){n.sub(a,t.position,e.position);var i=n.squaredLength(a),s=t.boundingRadius+e.boundingRadius;return i<=s*s},s.aabbCheck=function(t,e){return t.getAABB().overlaps(e.getAABB())},s.prototype.boundingVolumeCheck=function(t,e){var i;switch(this.boundingVolumeType){case s.BOUNDING_CIRCLE:i=s.boundingRadiusCheck(t,e);break;case s.AABB:i=s.aabbCheck(t,e);break;default:throw new Error("Bounding volume type not recognized: "+this.boundingVolumeType)}return i},s.canCollide=function(t,e){var i=o.KINEMATIC,s=o.STATIC;return(t.type!==s||e.type!==s)&&(!(t.type===i&&e.type===s||t.type===s&&e.type===i)&&((t.type!==i||e.type!==i)&&((t.sleepState!==o.SLEEPING||e.sleepState!==o.SLEEPING)&&!(t.sleepState===o.SLEEPING&&e.type===s||e.sleepState===o.SLEEPING&&t.type===s))))},s.NAIVE=1,s.SAP=2},{"../math/vec2":30,"../objects/Body":31}],9:[function(t,e,i){function s(){h.call(this,h.NAIVE)}var n=t("../shapes/Circle"),o=t("../shapes/Plane"),a=t("../shapes/Shape"),r=t("../shapes/Particle"),h=t("../collision/Broadphase"),l=t("../math/vec2");e.exports=s,s.prototype=new h,s.prototype.constructor=s,s.prototype.getCollisionPairs=function(t){var e=t.bodies,i=this.result;i.length=0;for(var s=0,n=e.length;s!==n;s++)for(var o=e[s],a=0;az&&q0)for(var Q=0;QMath.pow(y,2))return 0;if(u)return!0;var g=this.createContactEquation(t,n,e,o);return r(g.normalA,l,i),a.normalize(g.normalA,g.normalA),a.scale(g.contactPointA,g.normalA,d),a.scale(g.contactPointB,g.normalA,-p),h(g.contactPointA,g.contactPointA,i),r(g.contactPointA,g.contactPointA,t.position),h(g.contactPointB,g.contactPointB,l),r(g.contactPointB,g.contactPointB,n.position),this.contactEquations.push(g),this.enableFriction&&this.frictionEquations.push(this.createFrictionFromContact(g)),1},s.prototype[b.PLANE|b.CONVEX]=s.prototype[b.PLANE|b.BOX]=s.prototype.planeConvex=function(t,e,i,s,n,o,c,u,d){var p=P,f=C,y=T,g=0;a.rotate(f,w,s);for(var m=0;m!==o.vertices.length;m++){var v=o.vertices[m];if(a.rotate(p,v,u),h(p,p,c),r(y,p,i),l(y,f)<=0){if(d)return!0;g++;var b=this.createContactEquation(t,n,e,o);r(y,p,i),a.copy(b.normalA,f);var x=l(y,b.normalA);a.scale(y,b.normalA,x),r(b.contactPointB,p,n.position),r(b.contactPointA,p,y),r(b.contactPointA,b.contactPointA,t.position),this.contactEquations.push(b),this.enableFrictionReduction||this.enableFriction&&this.frictionEquations.push(this.createFrictionFromContact(b))}}return this.enableFrictionReduction&&this.enableFriction&&g&&this.frictionEquations.push(this.createFrictionFromAverage(g)),g},s.prototype[b.PARTICLE|b.PLANE]=s.prototype.particlePlane=function(t,e,i,s,n,o,h,c,u){var d=P,p=C;c=c||0,r(d,i,h),a.rotate(p,w,c);var f=l(d,p);if(f>0)return 0;if(u)return!0;var y=this.createContactEquation(n,t,o,e);return a.copy(y.normalA,p),a.scale(d,y.normalA,f),r(y.contactPointA,i,d),r(y.contactPointA,y.contactPointA,n.position),r(y.contactPointB,i,t.position),this.contactEquations.push(y),this.enableFriction&&this.frictionEquations.push(this.createFrictionFromContact(y)),1},s.prototype[b.CIRCLE|b.PARTICLE]=s.prototype.circleParticle=function(t,e,i,s,n,o,l,c,u){var d=P;if(r(d,l,i),a.squaredLength(d)>Math.pow(e.radius,2))return 0;if(u)return!0;var p=this.createContactEquation(t,n,e,o);return a.copy(p.normalA,d),a.normalize(p.normalA,p.normalA),a.scale(p.contactPointA,p.normalA,e.radius),h(p.contactPointA,p.contactPointA,i),r(p.contactPointA,p.contactPointA,t.position),r(p.contactPointB,l,n.position),this.contactEquations.push(p),this.enableFriction&&this.frictionEquations.push(this.createFrictionFromContact(p)),1};var $=new m({radius:1}),tt=a.create(),et=a.create(),it=a.create();s.prototype[b.PLANE|b.CAPSULE]=s.prototype.planeCapsule=function(t,e,i,s,n,o,r,l,c){var u=tt,d=et,p=$,f=it;a.set(u,-o.length/2,0),a.rotate(u,u,l),h(u,u,r),a.set(d,o.length/2,0),a.rotate(d,d,l),h(d,d,r),p.radius=o.radius;var y;this.enableFrictionReduction&&(y=this.enableFriction,this.enableFriction=!1);var g=this.circlePlane(n,p,u,0,t,e,i,s,c),m=this.circlePlane(n,p,d,0,t,e,i,s,c);if(this.enableFrictionReduction&&(this.enableFriction=y),c)return g||m;var v=g+m;return this.enableFrictionReduction&&v&&this.frictionEquations.push(this.createFrictionFromAverage(v)),v},s.prototype[b.CIRCLE|b.PLANE]=s.prototype.circlePlane=function(t,e,i,s,n,o,c,u,d){var p=t,f=e,y=i,g=n,m=o,v=c,b=u;b=b||0;var x=P,_=C,S=T;r(x,y,v),a.rotate(_,w,b);var A=l(_,x);if(A>f.radius)return 0;if(d)return!0;var E=this.createContactEquation(g,p,o,e);return a.copy(E.normalA,_),a.scale(E.contactPointB,E.normalA,-f.radius),h(E.contactPointB,E.contactPointB,y),r(E.contactPointB,E.contactPointB,p.position),a.scale(S,E.normalA,A),r(E.contactPointA,x,S),h(E.contactPointA,E.contactPointA,v),r(E.contactPointA,E.contactPointA,g.position),this.contactEquations.push(E),this.enableFriction&&this.frictionEquations.push(this.createFrictionFromContact(E)),1},s.prototype[b.CONVEX]=s.prototype[b.CONVEX|b.BOX]=s.prototype[b.BOX]=s.prototype.convexConvex=function(t,e,i,n,o,c,u,d,p,f){var y=P,g=C,m=T,v=S,b=A,x=E,_=I,w=M,R=O,B=0,f="number"==typeof f?f:0;if(!s.findSeparatingAxis(e,i,n,c,u,d,y))return 0;r(w,u,i),l(y,w)>0&&a.scale(y,y,-1);var k=s.getClosestEdge(e,n,y,!0),D=s.getClosestEdge(c,d,y);if(-1===k||-1===D)return 0;for(var L=0;L<2;L++){var F=k,G=D,U=e,N=c,j=i,W=u,X=n,H=d,V=t,Y=o;if(0===L){var q;q=F,F=G,G=q,q=U,U=N,N=q,q=j,j=W,W=q,q=X,X=H,H=q,q=V,V=Y,Y=q}for(var z=G;z=3){if(p)return!0;var et=this.createContactEquation(V,Y,U,N);B++;var Q=U.vertices[F%U.vertices.length],$=U.vertices[(F+1)%U.vertices.length];a.rotate(m,Q,X),a.rotate(v,$,X),h(m,m,j),h(v,v,j),r(b,v,m),a.rotate90cw(et.normalA,b),a.normalize(et.normalA,et.normalA),r(w,g,m);var tt=l(et.normalA,w);a.scale(_,et.normalA,tt),r(et.contactPointA,g,j),r(et.contactPointA,et.contactPointA,_),h(et.contactPointA,et.contactPointA,j),r(et.contactPointA,et.contactPointA,V.position),r(et.contactPointB,g,W),h(et.contactPointB,et.contactPointB,W),r(et.contactPointB,et.contactPointB,Y.position),this.contactEquations.push(et),this.enableFrictionReduction||this.enableFriction&&this.frictionEquations.push(this.createFrictionFromContact(et))}}}return this.enableFrictionReduction&&this.enableFriction&&B&&this.frictionEquations.push(this.createFrictionFromAverage(B)),B};var st=a.fromValues(0,0);s.projectConvexOntoAxis=function(t,e,i,s,n){var o=null,r=null,h,c,u=st;a.rotate(u,s,-i);for(var d=0;do)&&(o=c),(null===r||co){var p=r;r=o,o=p}var f=l(e,s);a.set(n,r+f,o+f)};var nt=a.fromValues(0,0),ot=a.fromValues(0,0),at=a.fromValues(0,0),rt=a.fromValues(0,0),ht=a.fromValues(0,0),lt=a.fromValues(0,0);s.findSeparatingAxis=function(t,e,i,n,o,h,l){var c=null,u=!1,d=!1,p=nt,f=ot,y=at,g=rt,m=ht,v=lt;if(t instanceof _&&n instanceof _)for(var b=0;2!==b;b++){var x=t,w=i;1===b&&(x=n,w=h);for(var P=0;2!==P;P++){0===P?a.set(g,0,1):1===P&&a.set(g,1,0),0!==w&&a.rotate(g,g,w),s.projectConvexOntoAxis(t,e,i,g,m),s.projectConvexOntoAxis(n,o,h,g,v);var C=m,T=v,S=!1;m[0]>v[0]&&(T=m,C=v,S=!0);var A=T[0]-C[1];u=A<=0,(null===c||A>c)&&(a.copy(l,g),c=A,d=u)}}else for(var b=0;2!==b;b++){var x=t,w=i;1===b&&(x=n,w=h);for(var P=0;P!==x.vertices.length;P++){a.rotate(f,x.vertices[P],w),a.rotate(y,x.vertices[(P+1)%x.vertices.length],w),r(p,y,f),a.rotate90cw(g,p),a.normalize(g,g),s.projectConvexOntoAxis(t,e,i,g,m),s.projectConvexOntoAxis(n,o,h,g,v);var C=m,T=v,S=!1;m[0]>v[0]&&(T=m,C=v,S=!0);var A=T[0]-C[1];u=A<=0,(null===c||A>c)&&(a.copy(l,g),c=A,d=u)}}return d};var ct=a.fromValues(0,0),ut=a.fromValues(0,0),dt=a.fromValues(0,0);s.getClosestEdge=function(t,e,i,s){var n=ct,o=ut,h=dt;a.rotate(n,i,-e),s&&a.scale(n,n,-1);for(var c=-1,u=t.vertices.length,d=-1,p=0;p!==u;p++){r(o,t.vertices[(p+1)%u],t.vertices[p%u]),a.rotate90cw(h,o),a.normalize(h,h);var f=l(h,n);(-1===c||f>d)&&(c=p%u,d=f)}return c};var pt=a.create(),ft=a.create(),yt=a.create(),gt=a.create(),mt=a.create(),vt=a.create(),bt=a.create();s.prototype[b.CIRCLE|b.HEIGHTFIELD]=s.prototype.circleHeightfield=function(t,e,i,s,n,o,l,c,u,d){var p=o.heights,d=d||e.radius,f=o.elementWidth,y=ft,g=pt,m=mt,v=bt,b=vt,x=yt,_=gt,w=Math.floor((i[0]-d-l[0])/f),P=Math.ceil((i[0]+d-l[0])/f);w<0&&(w=0),P>=p.length&&(P=p.length-1);for(var C=p[w],T=p[P],S=w;SC&&(C=p[S]);if(i[1]-d>C)return!u&&0;for(var A=!1,S=w;S=x[0]&&g[0]<_[0]&&E<=0){if(u)return!0;A=!0,a.scale(y,b,-E),a.add(m,g,y),a.copy(v,b);var I=this.createContactEquation(n,t,o,e);a.copy(I.normalA,v),a.scale(I.contactPointB,I.normalA,-d),h(I.contactPointB,I.contactPointB,i),r(I.contactPointB,I.contactPointB,t.position),a.copy(I.contactPointA,m),a.sub(I.contactPointA,I.contactPointA,n.position),this.contactEquations.push(I),this.enableFriction&&this.frictionEquations.push(this.createFrictionFromContact(I))}}if(A=!1,d>0)for(var S=w;S<=P;S++)if(a.set(x,S*f,p[S]),a.add(x,x,l),a.sub(y,i,x),a.squaredLength(y)=c.length&&(m=c.length-1);for(var v=c[g],b=c[m],x=g;xv&&(v=c[x]);if(t.aabb.lowerBound[1]>v)return!l&&0;for(var _=!1,w=0,x=g;x=0||o.containsPoint(this.from))&&this.intersectBody(t,n)}};var l=o.create();s.prototype.intersectBody=function(t,e){var i=this.checkCollisionResponse;if(!i||e.collisionResponse)for(var s=l,n=0,a=e.shapes.length;ne.boundingRadius*e.boundingRadius||(this._currentBody=o,this._currentShape=e,e.raycast(t,this,s,i),this._currentBody=this._currentShape=null)},s.prototype.getAABB=function(t){var e=this.to,i=this.from;o.set(t.lowerBound,Math.min(e[0],i[0]),Math.min(e[1],i[1])),o.set(t.upperBound,Math.max(e[0],i[0]),Math.max(e[1],i[1]))};var c=o.create();s.prototype.reportIntersection=function(t,e,i,n){var a=this.from,r=this.to,h=this._currentShape,l=this._currentBody;if(!(this.skipBackfaces&&o.dot(i,this.direction)>0))switch(this.mode){case s.ALL:t.set(i,h,l,e,n),this.callback(t);break;case s.CLOSEST:(e=0&&!(t[o].aabb.lowerBound[e]<=n.aabb.lowerBound[e]);o--)t[o+1]=t[o];t[o+1]=n}return t},s.prototype.sortList=function(){var t=this.axisList,e=this.axisIndex;s.sortAxisList(t,e)},s.prototype.getCollisionPairs=function(t){var e=this.axisList,i=this.result,s=this.axisIndex;i.length=0;for(var n=e.length;n--;){var a=e[n];a.aabbNeedsUpdate&&a.updateAABB()}this.sortList();for(var r=0,h=0|e.length;r!==h;r++)for(var l=e[r],c=r+1;cthis.upperLimit&&(r.maxForce=0,r.minForce=-this.maxForce,this.distance=this.upperLimit,d=!0),this.lowerLimitEnabled&&this.positioni)r.scale(n.normalA,l,-1),r.sub(n.contactPointA,c,a.position),r.sub(n.contactPointB,u,h.position),r.scale(f,l,i),r.add(n.contactPointA,n.contactPointA,f),-1===t.indexOf(n)&&t.push(n);else{var x=t.indexOf(n);-1!==x&&t.splice(x,1)}if(this.lowerLimitEnabled&&vf)g.angle=f,-1===n.indexOf(g)&&n.push(g);else{var b=n.indexOf(g);-1!==b&&n.splice(b,1)}if(this.lowerLimitEnabled&&v>1;if(e<3)return[];for(var i=[],n=[],o=0;o3;){var r=n[(o+0)%a],h=n[(o+1)%a],l=n[(o+2)%a],c=t[2*r],u=t[2*r+1],d=t[2*h],p=t[2*h+1],f=t[2*l],y=t[2*l+1],g=!1;if(s._convex(c,u,d,p,f,y)){g=!0;for(var m=0;m3*a)break}return i.push(n[0],n[1],n[2]),i},s._PointInTriangle=function(t,e,i,s,n,o,a,r){var h=a-i,l=r-s,c=n-i,u=o-s,d=t-i,p=e-s,f=h*h+l*l,y=h*c+l*u,g=h*d+l*p,m=c*c+u*u,v=c*d+u*p,b=1/(f*m-y*y),x=(m*g-y*v)*b,_=(f*v-y*g)*b;return x>=0&&_>=0&&x+_<1},s._convex=function(t,e,i,s,n,o){return(e-s)*(n-i)+(i-t)*(o-s)>=0},e.exports=s},{}],30:[function(t,e,i){var s=e.exports={},n=t("../utils/Utils");s.crossLength=function(t,e){return t[0]*e[1]-t[1]*e[0]},s.crossVZ=function(t,e,i){return s.rotate(t,e,-Math.PI/2),s.scale(t,t,i),t},s.crossZV=function(t,e,i){return s.rotate(t,i,Math.PI/2),s.scale(t,t,e),t},s.rotate=function(t,e,i){if(0!==i){var s=Math.cos(i),n=Math.sin(i),o=e[0],a=e[1];t[0]=s*o-n*a,t[1]=n*o+s*a}else t[0]=e[0],t[1]=e[1]},s.rotate90cw=function(t,e){var i=e[0],s=e[1];t[0]=s,t[1]=-i},s.toLocalFrame=function(t,e,i,n){s.copy(t,e),s.sub(t,t,i),s.rotate(t,t,-n)},s.toGlobalFrame=function(t,e,i,n){s.copy(t,e),s.rotate(t,t,n),s.add(t,t,i)},s.vectorToLocalFrame=function(t,e,i){s.rotate(t,e,-i)},s.vectorToGlobalFrame=function(t,e,i){s.rotate(t,e,i)},s.centroid=function(t,e,i,n){return s.add(t,e,i),s.add(t,t,n),s.scale(t,t,1/3),t},s.create=function(){var t=new n.ARRAY_TYPE(2);return t[0]=0,t[1]=0,t},s.clone=function(t){var e=new n.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},s.fromValues=function(t,e){var i=new n.ARRAY_TYPE(2);return i[0]=t,i[1]=e,i},s.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},s.set=function(t,e,i){return t[0]=e,t[1]=i,t},s.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},s.subtract=function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},s.sub=s.subtract,s.multiply=function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},s.mul=s.multiply,s.divide=function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},s.div=s.divide,s.scale=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},s.distance=function(t,e){var i=e[0]-t[0],s=e[1]-t[1];return Math.sqrt(i*i+s*s)},s.dist=s.distance,s.squaredDistance=function(t,e){var i=e[0]-t[0],s=e[1]-t[1];return i*i+s*s},s.sqrDist=s.squaredDistance,s.length=function(t){var e=t[0],i=t[1];return Math.sqrt(e*e+i*i)},s.len=s.length,s.squaredLength=function(t){var e=t[0],i=t[1];return e*e+i*i},s.sqrLen=s.squaredLength,s.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},s.normalize=function(t,e){var i=e[0],s=e[1],n=i*i+s*s;return n>0&&(n=1/Math.sqrt(n),t[0]=e[0]*n,t[1]=e[1]*n),t},s.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},s.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},s.lerp=function(t,e,i,s){var n=e[0],o=e[1];return t[0]=n+s*(i[0]-n),t[1]=o+s*(i[1]-o),t},s.reflect=function(t,e,i){var s=e[0]*i[0]+e[1]*i[1];t[0]=e[0]-2*i[0]*s,t[1]=e[1]-2*i[1]*s},s.getLineSegmentsIntersection=function(t,e,i,n,o){var a=s.getLineSegmentsIntersectionFraction(e,i,n,o);return!(a<0)&&(t[0]=e[0]+a*(i[0]-e[0]),t[1]=e[1]+a*(i[1]-e[1]),!0)},s.getLineSegmentsIntersectionFraction=function(t,e,i,s){var n=e[0]-t[0],o=e[1]-t[1],a=s[0]-i[0],r=s[1]-i[1],h,l;return h=(-o*(t[0]-i[0])+n*(t[1]-i[1]))/(-a*o+n*r),l=(a*(t[1]-i[1])-r*(t[0]-i[0]))/(-a*o+n*r),h>=0&&h<=1&&l>=0&&l<=1?l:-1}},{"../utils/Utils":57}],31:[function(t,e,i){function s(t){t=t||{},c.call(this),this.id=t.id||++s._idCounter,this.world=null,this.shapes=[],this.mass=t.mass||0,this.invMass=0,this.inertia=0,this.invInertia=0,this.invMassSolve=0,this.invInertiaSolve=0,this.fixedRotation=!!t.fixedRotation,this.fixedX=!!t.fixedX,this.fixedY=!!t.fixedY,this.massMultiplier=n.create(),this.position=n.fromValues(0,0),t.position&&n.copy(this.position,t.position),this.interpolatedPosition=n.fromValues(0,0),this.interpolatedAngle=0,this.previousPosition=n.fromValues(0,0),this.previousAngle=0,this.velocity=n.fromValues(0,0),t.velocity&&n.copy(this.velocity,t.velocity),this.vlambda=n.fromValues(0,0),this.wlambda=0,this.angle=t.angle||0,this.angularVelocity=t.angularVelocity||0,this.force=n.create(),t.force&&n.copy(this.force,t.force),this.angularForce=t.angularForce||0,this.damping="number"==typeof t.damping?t.damping:.1,this.angularDamping="number"==typeof t.angularDamping?t.angularDamping:.1,this.type=s.STATIC,void 0!==t.type?this.type=t.type:t.mass?this.type=s.DYNAMIC:this.type=s.STATIC,this.boundingRadius=0,this.aabb=new l,this.aabbNeedsUpdate=!0,this.allowSleep=void 0===t.allowSleep||t.allowSleep,this.wantsToSleep=!1,this.sleepState=s.AWAKE,this.sleepSpeedLimit=void 0!==t.sleepSpeedLimit?t.sleepSpeedLimit:.2,this.sleepTimeLimit=void 0!==t.sleepTimeLimit?t.sleepTimeLimit:1,this.gravityScale=void 0!==t.gravityScale?t.gravityScale:1,this.collisionResponse=void 0===t.collisionResponse||t.collisionResponse,this.idleTime=0,this.timeLastSleepy=0,this.ccdSpeedThreshold=void 0!==t.ccdSpeedThreshold?t.ccdSpeedThreshold:-1,this.ccdIterations=void 0!==t.ccdIterations?t.ccdIterations:10,this.concavePath=null,this._wakeUpAfterNarrowphase=!1,this.updateMassProperties()}var n=t("../math/vec2"),o=t("poly-decomp"),a=t("../shapes/Convex"),r=t("../collision/RaycastResult"),h=t("../collision/Ray"),l=t("../collision/AABB"),c=t("../events/EventEmitter");e.exports=s,s.prototype=new c,s.prototype.constructor=s,s._idCounter=0,s.prototype.updateSolveMassProperties=function(){this.sleepState===s.SLEEPING||this.type===s.KINEMATIC?(this.invMassSolve=0,this.invInertiaSolve=0):(this.invMassSolve=this.invMass,this.invInertiaSolve=this.invInertia)},s.prototype.setDensity=function(t){var e=this.getArea();this.mass=e*t,this.updateMassProperties()},s.prototype.getArea=function(){for(var t=0,e=0;ei&&(i=a+r)}this.boundingRadius=i},s.prototype.addShape=function(t,e,i){if(t.body)throw new Error("A shape can only be added to one body.");t.body=this,e?n.copy(t.position,e):n.set(t.position,0,0),t.angle=i||0,this.shapes.push(t),this.updateMassProperties(),this.updateBoundingRadius(),this.aabbNeedsUpdate=!0},s.prototype.removeShape=function(t){var e=this.shapes.indexOf(t);return-1!==e&&(this.shapes.splice(e,1),this.aabbNeedsUpdate=!0,t.body=null,!0)},s.prototype.updateMassProperties=function(){if(this.type===s.STATIC||this.type===s.KINEMATIC)this.mass=Number.MAX_VALUE,this.invMass=0,this.inertia=Number.MAX_VALUE,this.invInertia=0;else{var t=this.shapes,e=t.length,i=this.mass/e,o=0;if(this.fixedRotation)this.inertia=Number.MAX_VALUE,this.invInertia=0;else{for(var a=0;a0?1/o:0}this.invMass=1/this.mass,n.set(this.massMultiplier,this.fixedX?0:1,this.fixedY?0:1)}};var p=n.create();s.prototype.applyForce=function(t,e){if(n.add(this.force,this.force,t),e){var i=n.crossLength(e,t);this.angularForce+=i}};var f=n.create(),y=n.create(),g=n.create();s.prototype.applyForceLocal=function(t,e){e=e||g;var i=f,s=y;this.vectorToWorldFrame(i,t),this.vectorToWorldFrame(s,e),this.applyForce(i,s)};var m=n.create();s.prototype.applyImpulse=function(t,e){if(this.type===s.DYNAMIC){var i=m;if(n.scale(i,t,this.invMass),n.multiply(i,this.massMultiplier,i),n.add(this.velocity,i,this.velocity),e){var o=n.crossLength(e,t);o*=this.invInertia,this.angularVelocity+=o}}};var v=n.create(),b=n.create(),x=n.create();s.prototype.applyImpulseLocal=function(t,e){e=e||x;var i=v,s=b;this.vectorToWorldFrame(i,t),this.vectorToWorldFrame(s,e),this.applyImpulse(i,s)},s.prototype.toLocalFrame=function(t,e){n.toLocalFrame(t,e,this.position,this.angle)},s.prototype.toWorldFrame=function(t,e){n.toGlobalFrame(t,e,this.position,this.angle)},s.prototype.vectorToLocalFrame=function(t,e){n.vectorToLocalFrame(t,e,this.angle)},s.prototype.vectorToWorldFrame=function(t,e){n.vectorToGlobalFrame(t,e,this.angle)},s.prototype.fromPolygon=function(t,e){e=e||{};for(var i=this.shapes.length;i>=0;--i)this.removeShape(this.shapes[i]);var s=new o.Polygon;if(s.vertices=t,s.makeCCW(),"number"==typeof e.removeCollinearPoints&&s.removeCollinearPoints(e.removeCollinearPoints),void 0===e.skipSimpleCheck&&!s.isSimple())return!1;this.concavePath=s.vertices.slice(0);for(var i=0;i=Math.pow(this.sleepSpeedLimit,2)?(this.idleTime=0,this.sleepState=s.AWAKE):(this.idleTime+=i,this.sleepState=s.SLEEPY),this.idleTime>this.sleepTimeLimit&&(e?this.wantsToSleep=!0:this.sleep())}},s.prototype.overlaps=function(t){return this.world.overlapKeeper.bodiesAreOverlapping(this,t)};var T=n.create(),S=n.create();s.prototype.integrate=function(t){var e=this.invMass,i=this.force,s=this.position,o=this.velocity;n.copy(this.previousPosition,this.position),this.previousAngle=this.angle,this.fixedRotation||(this.angularVelocity+=this.angularForce*this.invInertia*t),n.scale(T,i,t*e),n.multiply(T,this.massMultiplier,T),n.add(o,T,o),this.integrateToTimeOfImpact(t)||(n.scale(S,o,t),n.add(s,s,S),this.fixedRotation||(this.angle+=this.angularVelocity*t)),this.aabbNeedsUpdate=!0};var A=new r,E=new h({mode:h.ALL}),I=n.create(),M=n.create(),O=n.create(),R=n.create();s.prototype.integrateToTimeOfImpact=function(t){if(this.ccdSpeedThreshold<0||n.squaredLength(this.velocity)=l&&h=0&&(o.rotate(f,u,s),o.scale(f,f,2*v-1),e.reportIntersection(t,x,f,-1),t.shouldStop(e)))return}for(var _=Math.pow(this.radius,2)+Math.pow(m,2),v=0;v<2;v++){o.set(y,m*(2*v-1),0),o.toGlobalFrame(y,y,i,s);var w=Math.pow(a[0]-n[0],2)+Math.pow(a[1]-n[1],2),P=2*((a[0]-n[0])*(n[0]-y[0])+(a[1]-n[1])*(n[1]-y[1])),C=Math.pow(n[0]-y[0],2)+Math.pow(n[1]-y[1],2)-Math.pow(this.radius,2),x=Math.pow(P,2)-4*w*C;if(!(x<0))if(0===x){if(o.lerp(p,n,a,x),o.squaredDistance(p,i)>_&&(o.sub(f,p,y),o.normalize(f,f),e.reportIntersection(t,x,f,-1),t.shouldStop(e)))return}else{var T=Math.sqrt(x),S=1/(2*w),A=(-P-T)*S,E=(-P+T)*S;if(A>=0&&A<=1&&(o.lerp(p,n,a,A),o.squaredDistance(p,i)>_&&(o.sub(f,p,y),o.normalize(f,f),e.reportIntersection(t,A,f,-1),t.shouldStop(e))))return;if(E>=0&&E<=1&&(o.lerp(p,n,a,E),o.squaredDistance(p,i)>_&&(o.sub(f,p,y),o.normalize(f,f),e.reportIntersection(t,E,f,-1),t.shouldStop(e))))return}}}},{"../math/vec2":30,"./Shape":45}],39:[function(t,e,i){function s(t){"number"==typeof arguments[0]&&(t={radius:arguments[0]}),t=t||{},this.radius=t.radius||1,t.type=n.CIRCLE,n.call(this,t)}var n=t("./Shape"),o=t("../math/vec2");e.exports=s,s.prototype=new n,s.prototype.constructor=s,s.prototype.computeMomentOfInertia=function(t){var e=this.radius;return t*e*e/2},s.prototype.updateBoundingRadius=function(){this.boundingRadius=this.radius},s.prototype.updateArea=function(){this.area=Math.PI*this.radius*this.radius},s.prototype.computeAABB=function(t,e,i){var s=this.radius;o.set(t.upperBound,s,s),o.set(t.lowerBound,-s,-s),e&&(o.add(t.lowerBound,t.lowerBound,e),o.add(t.upperBound,t.upperBound,e))};var a=o.create(),r=o.create();s.prototype.raycast=function(t,e,i,s){var n=e.from,h=e.to,l=this.radius,c=Math.pow(h[0]-n[0],2)+Math.pow(h[1]-n[1],2),u=2*((h[0]-n[0])*(n[0]-i[0])+(h[1]-n[1])*(n[1]-i[1])),d=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2)-Math.pow(l,2),p=Math.pow(u,2)-4*c*d,f=a,y=r;if(!(p<0))if(0===p)o.lerp(f,n,h,p),o.sub(y,f,i),o.normalize(y,y),e.reportIntersection(t,p,y,-1);else{var g=Math.sqrt(p),m=1/(2*c),v=(-u-g)*m,b=(-u+g)*m;if(v>=0&&v<=1&&(o.lerp(f,n,h,v),o.sub(y,f,i),o.normalize(y,y),e.reportIntersection(t,v,y,-1),t.shouldStop(e)))return;b>=0&&b<=1&&(o.lerp(f,n,h,b),o.sub(y,f,i),o.normalize(y,y),e.reportIntersection(t,b,y,-1))}}},{"../math/vec2":30,"./Shape":45}],40:[function(t,e,i){function s(t){Array.isArray(arguments[0])&&(t={vertices:arguments[0],axes:arguments[1]}),t=t||{},this.vertices=[];for(var e=void 0!==t.vertices?t.vertices:[],i=0;ii)&&(i=a),(null===s||ai){var l=s;s=i,i=l}o.set(e,s,i)},s.prototype.projectOntoWorldAxis=function(t,e,i,s){var n=l;this.projectOntoLocalAxis(t,s),0!==i?o.rotate(n,t,i):n=t;var a=o.dot(e,n);o.set(s,s[0]+a,s[1]+a)},s.prototype.updateTriangles=function(){this.triangles.length=0;for(var t=[],e=0;ee&&(e=s)}this.boundingRadius=Math.sqrt(e)},s.triangleArea=function(t,e,i){return.5*((e[0]-t[0])*(i[1]-t[1])-(i[0]-t[0])*(e[1]-t[1]))},s.prototype.updateArea=function(){this.updateTriangles(),this.area=0;for(var t=this.triangles,e=this.vertices,i=0;i!==t.length;i++){var n=t[i],o=e[n[0]],a=e[n[1]],r=e[n[2]],h=s.triangleArea(o,a,r);this.area+=h}},s.prototype.computeAABB=function(t,e,i){t.setFromPoints(this.vertices,e,i,0)};var b=o.create(),x=o.create(),_=o.create();s.prototype.raycast=function(t,e,i,s){var n=b,a=x,r=_,h=this.vertices;o.toLocalFrame(n,e.from,i,s),o.toLocalFrame(a,e.to,i,s);for(var l=h.length,c=0;c=0&&(o.sub(r,d,u),o.rotate(r,r,-Math.PI/2+s),o.normalize(r,r),e.reportIntersection(t,p,r,c))}}},{"../math/polyk":29,"../math/vec2":30,"./Shape":45,"poly-decomp":5}],41:[function(t,e,i){function s(t){if(Array.isArray(arguments[0])&&(t={heights:arguments[0]},"object"==typeof arguments[1]))for(var e in arguments[1])t[e]=arguments[1][e];t=t||{},this.heights=t.heights?t.heights.slice(0):[],this.maxValue=t.maxValue||null,this.minValue=t.minValue||null,this.elementWidth=t.elementWidth||.1,void 0!==t.maxValue&&void 0!==t.minValue||this.updateMaxMinValues(),t.type=o.HEIGHTFIELD,o.call(this,t)}function n(t,e,i,s,n){var o,a,r,h;o=i[0]-e[0],a=i[1]-e[1],r=n[0]-s[0],h=n[1]-s[1];var l,c;if(l=(-a*(e[0]-s[0])+o*(e[1]-s[1]))/(-r*a+o*h),c=(r*(e[1]-s[1])-h*(e[0]-s[0]))/(-r*a+o*h),l>=0&&l<=1&&c>=0&&c<=1){var u=e[0]+c*o,d=e[1]+c*a;return t[0]=u,t[1]=d,c}return-1}var o=t("./Shape"),a=t("../math/vec2"),r=t("../utils/Utils");e.exports=s,s.prototype=new o,s.prototype.constructor=s,s.prototype.updateMaxMinValues=function(){for(var t=this.heights,e=t[0],i=t[0],s=0;s!==t.length;s++){var n=t[s];n>e&&(e=n),n_){var w=x;x=_,_=w}for(var P=0;P=0&&(a.sub(y,m,g),a.rotate(y,y,s+Math.PI/2),a.normalize(y,y),e.reportIntersection(t,C,y,-1),t.shouldStop(e)))return}}},{"../math/vec2":30,"../utils/Utils":57,"./Shape":45}],42:[function(t,e,i){function s(t){"number"==typeof arguments[0]&&(t={length:arguments[0]}),t=t||{},this.length=t.length||1,t.type=n.LINE,n.call(this,t)}var n=t("./Shape"),o=t("../math/vec2");e.exports=s,s.prototype=new n,s.prototype.constructor=s,s.prototype.computeMomentOfInertia=function(t){return t*Math.pow(this.length,2)/12},s.prototype.updateBoundingRadius=function(){this.boundingRadius=this.length/2};var a=[o.create(),o.create()];s.prototype.computeAABB=function(t,e,i){var s=this.length/2;o.set(a[0],-s,0),o.set(a[1],s,0),t.setFromPoints(a,e,i,0)};var r=o.create(),h=o.create(),l=o.create(),c=o.create(),u=o.fromValues(0,1);s.prototype.raycast=function(t,e,i,s){var n=e.from,a=e.to,r=l,d=c,p=this.length/2;o.set(r,-p,0),o.set(d,p,0),o.toGlobalFrame(r,r,i,s),o.toGlobalFrame(d,d,i,s);var f=o.getLineSegmentsIntersectionFraction(r,d,n,a);if(f>=0){var y=h;o.rotate(y,u,s),e.reportIntersection(t,f,y,-1)}}},{"../math/vec2":30,"./Shape":45}],43:[function(t,e,i){function s(t){t=t||{},t.type=n.PARTICLE,n.call(this,t)}var n=t("./Shape"),o=t("../math/vec2");e.exports=s,s.prototype=new n,s.prototype.constructor=s,s.prototype.computeMomentOfInertia=function(t){return 0},s.prototype.updateBoundingRadius=function(){this.boundingRadius=0},s.prototype.computeAABB=function(t,e,i){o.copy(t.lowerBound,e),o.copy(t.upperBound,e)}},{"../math/vec2":30,"./Shape":45}],44:[function(t,e,i){function s(t){t=t||{},t.type=n.PLANE,n.call(this,t)}var n=t("./Shape"),o=t("../math/vec2"),a=t("../utils/Utils");e.exports=s,s.prototype=new n,s.prototype.constructor=s,s.prototype.computeMomentOfInertia=function(t){return 0},s.prototype.updateBoundingRadius=function(){this.boundingRadius=Number.MAX_VALUE},s.prototype.computeAABB=function(t,e,i){var s=i%(2*Math.PI),n=o.set,a=Number.MAX_VALUE,r=t.lowerBound,h=t.upperBound;0===s?(n(r,-a,-a),n(h,a,0)):s===Math.PI/2?(n(r,0,-a),n(h,a,a)):s===Math.PI?(n(r,-a,0),n(h,a,a)):s===3*Math.PI/2?(n(r,-a,-a),n(h,0,a)):(n(r,-a,-a),n(h,a,a)),o.add(r,r,e),o.add(h,h,e)},s.prototype.updateArea=function(){this.area=Number.MAX_VALUE};var r=o.create(),h=o.create(),l=o.create(),c=o.create(),u=o.create();s.prototype.raycast=function(t,e,i,s){var n=e.from,a=e.to,d=e.direction,p=r,f=h,y=l,g=c,m=u;o.set(g,0,1),o.rotate(g,g,s),o.sub(m,n,i);var v=o.dot(m,g);if(o.sub(m,a,i),!(v*o.dot(m,g)>0||o.squaredDistance(n,a)p*r&&(y=p*r-u),o[t]+=y,e.addToWlambda(y),y}},{"../equations/FrictionEquation":23,"../math/vec2":30,"../utils/Utils":57,"./Solver":47}],47:[function(t,e,i){function s(t,e){t=t||{},o.call(this),this.type=e,this.equations=[],this.equationSortFunction=t.equationSortFunction||!1}var n=t("../utils/Utils"),o=t("../events/EventEmitter");e.exports=s,s.prototype=new o,s.prototype.constructor=s,s.prototype.solve=function(t,e){throw new Error("Solver.solve should be implemented by subclasses!")};var a={bodies:[]};s.prototype.solveIsland=function(t,e){this.removeAllEquations(),e.equations.length&&(this.addEquations(e.equations),a.bodies.length=0,e.getBodies(a.bodies),a.bodies.length&&this.solve(t,a))},s.prototype.sortEquations=function(){this.equationSortFunction&&this.equations.sort(this.equationSortFunction)},s.prototype.addEquation=function(t){t.enabled&&this.equations.push(t)},s.prototype.addEquations=function(t){for(var e=0,i=t.length;e!==i;e++){var s=t[e];s.enabled&&this.equations.push(s)}},s.prototype.removeEquation=function(t){var e=this.equations.indexOf(t);-1!==e&&this.equations.splice(e,1)},s.prototype.removeAllEquations=function(){this.equations.length=0},s.GS=1,s.ISLAND=2},{"../events/EventEmitter":26,"../utils/Utils":57}],48:[function(t,e,i){function s(){o.apply(this,arguments)}var n=t("../equations/ContactEquation"),o=t("./Pool");e.exports=s,s.prototype=new o,s.prototype.constructor=s,s.prototype.create=function(){return new n},s.prototype.destroy=function(t){return t.bodyA=t.bodyB=null,this}},{"../equations/ContactEquation":21,"./Pool":55}],49:[function(t,e,i){function s(){o.apply(this,arguments)}var n=t("../equations/FrictionEquation"),o=t("./Pool");e.exports=s,s.prototype=new o,s.prototype.constructor=s,s.prototype.create=function(){return new n},s.prototype.destroy=function(t){return t.bodyA=t.bodyB=null,this}},{"../equations/FrictionEquation":23,"./Pool":55}],50:[function(t,e,i){function s(){o.apply(this,arguments)}var n=t("../world/IslandNode"),o=t("./Pool");e.exports=s,s.prototype=new o,s.prototype.constructor=s,s.prototype.create=function(){return new n},s.prototype.destroy=function(t){return t.reset(),this}},{"../world/IslandNode":60,"./Pool":55}],51:[function(t,e,i){function s(){o.apply(this,arguments)}var n=t("../world/Island"),o=t("./Pool");e.exports=s,s.prototype=new o,s.prototype.constructor=s,s.prototype.create=function(){return new n},s.prototype.destroy=function(t){return t.reset(),this}},{"../world/Island":58,"./Pool":55}],52:[function(t,e,i){function s(){this.overlappingShapesLastState=new n,this.overlappingShapesCurrentState=new n,this.recordPool=new a({size:16}),this.tmpDict=new n,this.tmpArray1=[]}var n=t("./TupleDictionary"),o=t("./OverlapKeeperRecord"),a=t("./OverlapKeeperRecordPool"),r=t("./Utils");e.exports=s,s.prototype.tick=function(){for(var t=this.overlappingShapesLastState,e=this.overlappingShapesCurrentState,i=t.keys.length;i--;){var s=t.keys[i],n=t.getByKey(s),o=e.getByKey(s);n&&this.recordPool.release(n)}t.reset(),t.copy(e),e.reset()},s.prototype.setOverlapping=function(t,e,i,s){var n=this.overlappingShapesLastState,o=this.overlappingShapesCurrentState;if(!o.get(e.id,s.id)){var a=this.recordPool.get();a.set(t,e,i,s),o.set(e.id,s.id,a)}},s.prototype.getNewOverlaps=function(t){return this.getDiff(this.overlappingShapesLastState,this.overlappingShapesCurrentState,t)},s.prototype.getEndOverlaps=function(t){return this.getDiff(this.overlappingShapesCurrentState,this.overlappingShapesLastState,t)},s.prototype.bodiesAreOverlapping=function(t,e){for(var i=this.overlappingShapesCurrentState,s=i.keys.length;s--;){var n=i.keys[s],o=i.data[n];if(o.bodyA===t&&o.bodyB===e||o.bodyA===e&&o.bodyB===t)return!0}return!1},s.prototype.getDiff=function(t,e,i){var i=i||[],s=t,n=e;i.length=0;for(var o=n.keys.length;o--;){var a=n.keys[o],r=n.data[a];if(!r)throw new Error("Key "+a+" had no data!");s.data[a]||i.push(r)}return i},s.prototype.isNewOverlap=function(t,e){var i=0|t.id,s=0|e.id,n=this.overlappingShapesLastState,o=this.overlappingShapesCurrentState;return!n.get(i,s)&&!!o.get(i,s)},s.prototype.getNewBodyOverlaps=function(t){this.tmpArray1.length=0;var e=this.getNewOverlaps(this.tmpArray1);return this.getBodyDiff(e,t)},s.prototype.getEndBodyOverlaps=function(t){this.tmpArray1.length=0;var e=this.getEndOverlaps(this.tmpArray1);return this.getBodyDiff(e,t)},s.prototype.getBodyDiff=function(t,e){e=e||[];for(var i=this.tmpDict,s=t.length;s--;){var n=t[s];i.set(0|n.bodyA.id,0|n.bodyB.id,n)}for(s=i.keys.length;s--;){var n=i.getByKey(i.keys[s]);n&&e.push(n.bodyA,n.bodyB)}return i.reset(),e}},{"./OverlapKeeperRecord":53,"./OverlapKeeperRecordPool":54,"./TupleDictionary":56,"./Utils":57}],53:[function(t,e,i){function s(t,e,i,s){this.shapeA=e,this.shapeB=s,this.bodyA=t,this.bodyB=i}e.exports=s,s.prototype.set=function(t,e,i,n){s.call(this,t,e,i,n)}},{}],54:[function(t,e,i){function s(){o.apply(this,arguments)}var n=t("./OverlapKeeperRecord"),o=t("./Pool");e.exports=s,s.prototype=new o,s.prototype.constructor=s,s.prototype.create=function(){return new n},s.prototype.destroy=function(t){return t.bodyA=t.bodyB=t.shapeA=t.shapeB=null,this}},{"./OverlapKeeperRecord":53,"./Pool":55}],55:[function(t,e,i){function s(t){t=t||{},this.objects=[],void 0!==t.size&&this.resize(t.size)}e.exports=s,s.prototype.resize=function(t){for(var e=this.objects;e.length>t;)e.pop();for(;e.length(0|e)?t<<16|65535&e:e<<16|65535&t)},s.prototype.getByKey=function(t){return t|=0,this.data[t]},s.prototype.get=function(t,e){return this.data[this.getKey(t,e)]},s.prototype.set=function(t,e,i){if(!i)throw new Error("No data!");var s=this.getKey(t,e);return this.data[s]||this.keys.push(s),this.data[s]=i,s},s.prototype.reset=function(){for(var t=this.data,e=this.keys,i=e.length;i--;)delete t[e[i]];e.length=0},s.prototype.copy=function(t){this.reset(),n.appendArray(this.keys,t.keys);for(var e=t.keys.length;e--;){var i=t.keys[e];this.data[i]=t.data[i]}}},{"./Utils":57}],57:[function(t,e,i){function s(){}e.exports=s,s.appendArray=function(t,e){if(e.length<15e4)t.push.apply(t,e);else for(var i=0,s=e.length;i!==s;++i)t.push(e[i])},s.splice=function(t,e,i){i=i||1;for(var s=e,n=t.length-i;s=t&&s=0;C-=2)for(var M=E.length-2;M>=0;M-=2)(I[C]===E[M]&&I[C+1]===E[M+1]||I[C+1]===E[M]&&I[C]===E[M+1])&&E.splice(M,2);var R=d.length;for(C=0;C!==R;C++){var B=d[C];if(!B.collideConnected)for(var M=E.length-2;M>=0;M-=2)(B.bodyA===E[M]&&B.bodyB===E[M+1]||B.bodyB===E[M]&&B.bodyA===E[M+1])&&E.splice(M,2)}this.postBroadphaseEvent.pairs=E,this.emit(this.postBroadphaseEvent),this.postBroadphaseEvent.pairs=null,u.reset(this);for(var C=0,k=E.length;C!==k;C+=2)for(var D=E[C],L=E[C+1],F=0,G=D.shapes.length;F!==G;F++)for(var W=D.shapes[F],X=W.position,H=W.angle,V=0,q=L.shapes.length;V!==q;V++){var z=L.shapes[V],K=z.position,J=z.angle,Z=this.defaultContactMaterial;if(W.material&&z.material){var Q=this.getContactMaterial(W.material,z.material);Q&&(Z=Q)}this.runNarrowphase(u,D,W,X,H,L,z,K,J,Z,this.frictionGravity)}for(var C=0;C!==l;C++){var $=o[C];$._wakeUpAfterNarrowphase&&($.wakeUp(),$._wakeUpAfterNarrowphase=!1)}if(this.has("endContact")){this.overlapKeeper.getEndOverlaps(Y);for(var tt=this.endContactEvent,V=Y.length;V--;){var et=Y[V];tt.shapeA=et.shapeA,tt.shapeB=et.shapeB,tt.bodyA=et.bodyA,tt.bodyB=et.bodyB,this.emit(tt)}Y.length=0}var it=this.preSolveEvent;it.contactEquations=u.contactEquations,it.frictionEquations=u.frictionEquations,this.emit(it),it.contactEquations=it.frictionEquations=null;var R=d.length;for(C=0;C!==R;C++)d[C].update();if(u.contactEquations.length||u.frictionEquations.length||R)if(this.islandSplit){for(w.equations.length=0,O.appendArray(w.equations,u.contactEquations),O.appendArray(w.equations,u.frictionEquations),C=0;C!==R;C++)O.appendArray(w.equations,d[C].equations);w.split(this);for(var C=0;C!==w.islands.length;C++){var st=w.islands[C];st.equations.length&&h.solveIsland(t,st)}}else{for(h.addEquations(u.contactEquations),h.addEquations(u.frictionEquations),C=0;C!==R;C++)h.addEquations(d[C].equations);this.solveConstraints&&h.solve(t,this),h.removeAllEquations()}for(var C=0;C!==l;C++){var $=o[C];$.integrate(t)}for(var C=0;C!==l;C++)o[C].setZeroForce();if(this.emitImpactEvent&&this.has("impact"))for(var nt=this.impactEvent,C=0;C!==u.contactEquations.length;C++){var ot=u.contactEquations[C];ot.firstImpact&&(nt.bodyA=ot.bodyA,nt.bodyB=ot.bodyB,nt.shapeA=ot.shapeA,nt.shapeB=ot.shapeB,nt.contactEquation=ot,this.emit(nt))}if(this.sleepMode===s.BODY_SLEEPING)for(C=0;C!==l;C++)o[C].sleepTick(this.time,!1,t);else if(this.sleepMode===s.ISLAND_SLEEPING&&this.islandSplit){for(C=0;C!==l;C++)o[C].sleepTick(this.time,!0,t);for(var C=0;C0,t.frictionCoefficient=c.friction;var f;f=e.type===y.STATIC||e.type===y.KINEMATIC?o.mass:o.type===y.STATIC||o.type===y.KINEMATIC?e.mass:e.mass*o.mass/(e.mass+o.mass),t.slipForce=c.friction*u*f,t.restitution=c.restitution,t.surfaceVelocity=c.surfaceVelocity,t.frictionStiffness=c.frictionStiffness,t.frictionRelaxation=c.frictionRelaxation,t.stiffness=c.stiffness,t.relaxation=c.relaxation,t.contactSkinSize=c.contactSkinSize,t.enabledEquations=e.collisionResponse&&o.collisionResponse&&i.collisionResponse&&a.collisionResponse;var g=t[i.type|a.type],m=0;if(g){var v=i.sensor||a.sensor,b=t.frictionEquations.length;m=i.type=2*Math.pow(o.sleepSpeedLimit,2)&&(e._wakeUpAfterNarrowphase=!0)}if(o.allowSleep&&o.type===y.DYNAMIC&&o.sleepState===y.SLEEPING&&e.sleepState===y.AWAKE&&e.type!==y.STATIC){r.squaredLength(e.velocity)+Math.pow(e.angularVelocity,2)>=2*Math.pow(e.sleepSpeedLimit,2)&&(o._wakeUpAfterNarrowphase=!0)}if(this.overlapKeeper.setOverlapping(e,i,o,a),this.has("beginContact")&&this.overlapKeeper.isNewOverlap(i,a)){var _=this.beginContactEvent;if(_.shapeA=i,_.shapeB=a,_.bodyA=e,_.bodyB=o,_.contactEquations.length=0,"number"==typeof m)for(var w=t.contactEquations.length-m;w1)for(var w=t.frictionEquations.length-x;w=0;e--)this.removeConstraint(t[e]);for(var i=this.bodies,e=i.length-1;e>=0;e--)this.removeBody(i[e]);for(var n=this.springs,e=n.length-1;e>=0;e--)this.removeSpring(n[e]);for(var o=this.contactMaterials,e=o.length-1;e>=0;e--)this.removeContactMaterial(o[e]);s.apply(this)};var q=r.create(),z=r.fromValues(0,0),K=r.fromValues(0,0);s.prototype.hitTest=function(t,e,i){i=i||0;var s=new y({position:t}),n=new p,o=t,a=0,c=q,f=z,g=K;s.addShape(n);for(var m=this.narrowphase,v=[],b=0,x=e.length;b!==x;b++)for(var _=e[b],w=0,P=_.shapes.length;w!==P;w++){var C=_.shapes[w];r.rotate(c,C.position,_.angle),r.add(c,c,_.position);var T=C.angle+_.angle;(C instanceof h&&m.circleParticle(_,C,c,T,s,n,o,0,!0)||C instanceof l&&m.particleConvex(s,n,o,0,_,C,c,T,!0)||C instanceof u&&m.particlePlane(s,n,o,0,_,C,c,T,!0)||C instanceof d&&m.particleCapsule(s,n,o,0,_,C,c,T,!0)||C instanceof p&&r.squaredLength(r.sub(g,c,t)) +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +* +* @overview +* +* Phaser - http://phaser.io +* +* v2.6.4 "Kore Springs" - Built: Thu Nov 16 2017 13:53:48 +* +* By Richard Davey http://www.photonstorm.com @photonstorm +* +* Phaser is a fun, free and fast 2D game framework for making HTML5 games +* for desktop and mobile web browsers, supporting Canvas and WebGL rendering. +* +* Phaser uses Pixi.js for rendering, created by Mat Groves http://matgroves.com @Doormat23 +* Phaser uses p2.js for full-body physics, created by Stefan Hedman https://github.com/schteppe/p2.js @schteppe +* Phaser contains a port of N+ Physics, converted by Richard Davey, original by http://www.metanetsoftware.com +* +* Many thanks to Adam Saltsman (@ADAMATOMIC) for releasing Flixel, from which both Phaser and my love of framework development originate. +* +* Follow development at http://phaser.io and on our forum +* +* "If you want your children to be intelligent, read them fairy tales." +* "If you want them to be more intelligent, read them more fairy tales." +* -- Albert Einstein +*/ +(function(){var i=this,s=s||{};/** +* @author Mat Groves http://matgroves.com @Doormat23 +* @author Richard Davey +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +return s.game=null,s.WEBGL_RENDERER=0,s.CANVAS_RENDERER=1,s.VERSION="v2.2.9",s._UID=0,"undefined"!=typeof Float32Array?(s.Float32Array=Float32Array,s.Uint16Array=Uint16Array,s.Uint32Array=Uint32Array,s.ArrayBuffer=ArrayBuffer):(s.Float32Array=Array,s.Uint16Array=Array),s.PI_2=2*Math.PI,s.RAD_TO_DEG=180/Math.PI,s.DEG_TO_RAD=Math.PI/180,s.RETINA_PREFIX="@2x",s.DisplayObject=function(){this.position=new s.Point(0,0),this.scale=new s.Point(1,1),this.pivot=new s.Point(0,0),this.rotation=0,this.alpha=1,this.visible=!0,this.hitArea=null,this.renderable=!1,this.parent=null,this.worldAlpha=1,this.worldTransform=new s.Matrix,this.worldPosition=new s.Point(0,0),this.worldScale=new s.Point(1,1),this.worldRotation=0,this.filterArea=null,this._sr=0,this._cr=1,this._bounds=new s.Rectangle(0,0,0,0),this._currentBounds=null,this._mask=null,this._cacheAsBitmap=!1,this._cacheIsDirty=!1},s.DisplayObject.prototype.constructor=s.DisplayObject,s.DisplayObject.prototype={destroy:function(){if(this.children){for(var t=this.children.length;t--;)this.children[t].destroy();this.children=[]}this.hitArea=null,this.parent=null,this.worldTransform=null,this.filterArea=null,this.renderable=!1,this._bounds=null,this._currentBounds=null,this._mask=null,this._destroyCachedSprite()},updateTransform:function(t){if(!t&&!this.parent&&!this.game)return this;var e=this.parent;t?e=t:this.parent||(e=this.game.world);var i=e.worldTransform,n=this.worldTransform,o,a,r,h,l,c;return this.rotation%s.PI_2?(this.rotation!==this.rotationCache&&(this.rotationCache=this.rotation,this._sr=Math.sin(this.rotation),this._cr=Math.cos(this.rotation)),o=this._cr*this.scale.x,a=this._sr*this.scale.x,r=-this._sr*this.scale.y,h=this._cr*this.scale.y,l=this.position.x,c=this.position.y,(this.pivot.x||this.pivot.y)&&(l-=this.pivot.x*o+this.pivot.y*r,c-=this.pivot.x*a+this.pivot.y*h),n.a=o*i.a+a*i.c,n.b=o*i.b+a*i.d,n.c=r*i.a+h*i.c,n.d=r*i.b+h*i.d,n.tx=l*i.a+c*i.c+i.tx,n.ty=l*i.b+c*i.d+i.ty):(o=this.scale.x,h=this.scale.y,l=this.position.x-this.pivot.x*o,c=this.position.y-this.pivot.y*h,n.a=o*i.a,n.b=o*i.b,n.c=h*i.c,n.d=h*i.d,n.tx=l*i.a+c*i.c+i.tx,n.ty=l*i.b+c*i.d+i.ty),this.worldAlpha=this.alpha*e.worldAlpha,this.worldPosition.set(n.tx,n.ty),this.worldScale.set(this.scale.x*Math.sqrt(n.a*n.a+n.c*n.c),this.scale.y*Math.sqrt(n.b*n.b+n.d*n.d)),this.worldRotation=Math.atan2(-n.c,n.d),this._currentBounds=null,this.transformCallback&&this.transformCallback.call(this.transformCallbackContext,n,i),this},preUpdate:function(){},generateTexture:function(t,e,i){var n=this.getLocalBounds(),o=new s.RenderTexture(0|n.width,0|n.height,i,e,t);return s.DisplayObject._tempMatrix.tx=-n.x,s.DisplayObject._tempMatrix.ty=-n.y,o.render(this,s.DisplayObject._tempMatrix),o},updateCache:function(){return this._generateCachedSprite(),this},toGlobal:function(t){return this.updateTransform(),this.worldTransform.apply(t)},toLocal:function(t,e){return e&&(t=e.toGlobal(t)),this.updateTransform(),this.worldTransform.applyInverse(t)},_renderCachedSprite:function(t){this._cachedSprite.worldAlpha=this.worldAlpha,t.gl?s.Sprite.prototype._renderWebGL.call(this._cachedSprite,t):s.Sprite.prototype._renderCanvas.call(this._cachedSprite,t)},_generateCachedSprite:function(){this._cacheAsBitmap=!1;var t=this.getLocalBounds();if(t.width=Math.max(1,Math.ceil(t.width)),t.height=Math.max(1,Math.ceil(t.height)),this.updateTransform(),this._cachedSprite)this._cachedSprite.texture.resize(t.width,t.height);else{var e=new s.RenderTexture(t.width,t.height);this._cachedSprite=new s.Sprite(e),this._cachedSprite.worldTransform=this.worldTransform}var i=this._filters;this._filters=null,this._cachedSprite.filters=i,s.DisplayObject._tempMatrix.tx=-t.x,s.DisplayObject._tempMatrix.ty=-t.y,this._cachedSprite.texture.render(this,s.DisplayObject._tempMatrix,!0),this._cachedSprite.anchor.x=-t.x/t.width,this._cachedSprite.anchor.y=-t.y/t.height,this._filters=i,this._cacheAsBitmap=!0},_destroyCachedSprite:function(){this._cachedSprite&&(this._cachedSprite.texture.destroy(!0),this._cachedSprite=null)}},s.DisplayObject.prototype.displayObjectUpdateTransform=s.DisplayObject.prototype.updateTransform,Object.defineProperties(s.DisplayObject.prototype,{x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},worldVisible:{get:function(){if(this.visible){var t=this.parent;if(!t)return this.visible;do{if(!t.visible)return!1;t=t.parent}while(t);return!0}return!1}},mask:{get:function(){return this._mask},set:function(t){this._mask&&(this._mask.isMask=!1),this._mask=t,t&&(this._mask.isMask=!0)}},filters:{get:function(){return this._filters},set:function(t){if(Array.isArray(t)){for(var e=[],i=0;i=0&&e<=this.children.length)return t.parent&&t.parent.removeChild(t),t.parent=this,this.children.splice(e,0,t),t;throw new Error(t+"addChildAt: The index "+e+" supplied is out of bounds "+this.children.length)},s.DisplayObjectContainer.prototype.swapChildren=function(t,e){if(t!==e){var i=this.getChildIndex(t),s=this.getChildIndex(e);if(i<0||s<0)throw new Error("swapChildren: Both the supplied DisplayObjects must be a child of the caller.");this.children[i]=e,this.children[s]=t}},s.DisplayObjectContainer.prototype.getChildIndex=function(t){var e=this.children.indexOf(t);if(-1===e)throw new Error("The supplied DisplayObject must be a child of the caller");return e},s.DisplayObjectContainer.prototype.setChildIndex=function(t,e){if(e<0||e>=this.children.length)throw new Error("The supplied index is out of bounds");var i=this.getChildIndex(t);this.children.splice(i,1),this.children.splice(e,0,t)},s.DisplayObjectContainer.prototype.getChildAt=function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Supplied index "+t+" does not exist in the child list, or the supplied DisplayObject must be a child of the caller");return this.children[t]},s.DisplayObjectContainer.prototype.removeChild=function(t){var e=this.children.indexOf(t);if(-1!==e)return this.removeChildAt(e)},s.DisplayObjectContainer.prototype.removeChildAt=function(t){var e=this.getChildAt(t);return e&&(e.parent=void 0,this.children.splice(t,1)),e},s.DisplayObjectContainer.prototype.removeChildren=function(t,e){void 0===t&&(t=0),void 0===e&&(e=this.children.length);var i=e-t;if(i>0&&i<=e){for(var s=this.children.splice(begin,i),n=0;nu?h:u,l=l>d?l:d)}var f=this._bounds;if(!p){f=new s.Rectangle;var y=f.x,g=f.width+f.x,m=f.y,v=f.height+f.y,b=this.worldTransform,x=b.a,_=b.b,w=b.c,P=b.d,C=b.tx,T=b.ty,S=x*g+w*v+C,A=P*v+_*g+T,E=x*y+w*v+C,I=P*v+_*y+T,M=x*y+w*m+C,O=P*m+_*y+T,R=x*g+w*m+C,B=P*m+_*g+T;h=S,l=A,a=S,r=A,a=Eh?E:h,h=M>h?M:h,h=R>h?R:h,l=I>l?I:l,l=O>l?O:l,l=B>l?B:l}if(f.x=a,f.y=r,f.width=h-a,f.height=l-r,e)for(t.worldTransform=o,n=0;nf?b:f,f=_>f?_:f,f=P>f?P:f,f=T>f?T:f,y=x>y?x:y,y=w>y?w:y,y=C>y?C:y,y=S>y?S:y}var A=this._bounds;return A.x=g,A.width=f-g,A.y=m,A.height=y-m,this._currentBounds=A,A},s.Sprite.prototype.getLocalBounds=function(){var t=this.worldTransform;this.worldTransform=s.identityMatrix;for(var e=0;e>16&255)/255,(t>>8&255)/255,(255&t)/255]},s.rgb2hex=function(t){return(255*t[0]<<16)+(255*t[1]<<8)+255*t[2]},s.canUseNewCanvasBlendModes=function(){if(void 0===document)return!1;var t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",e="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",i=new Image;i.src=t+"AP804Oa6"+e;var n=new Image;n.src=t+"/wCKxvRF"+e;var o=s.CanvasPool.create(this,6,1),a=o.getContext("2d");if(a.globalCompositeOperation="multiply",a.drawImage(i,0,0),a.drawImage(n,2,0),!a.getImageData(2,0,1,1))return!1;var r=a.getImageData(2,0,1,1).data;return s.CanvasPool.remove(this),255===r[0]&&0===r[1]&&0===r[2]},s.getNextPowerOfTwo=function(t){if(t>0&&0==(t&t-1))return t;for(var e=1;e0&&0==(t&t-1)&&e>0&&0==(e&e-1)},s.CanvasPool={create:function(t,e,i){var n=s.CanvasPool.getFirst(),o;if(-1===n){var a={parent:t,canvas:document.createElement("canvas")};s.CanvasPool.pool.push(a),o=a.canvas}else s.CanvasPool.pool[n].parent=t,o=s.CanvasPool.pool[n].canvas;return void 0!==e&&(o.width=e,o.height=i),o},getFirst:function(){for(var t=s.CanvasPool.pool,e=0;e=this.size&&(this.flush(),this.currentBaseTexture=i.baseTexture);var n=i._uvs;if(n){var o=t.anchor.x,a=t.anchor.y,r,h,l,c;if(i.trim){var u=i.trim;h=u.x-o*u.width,r=h+i.crop.width,c=u.y-a*u.height,l=c+i.crop.height}else r=i.frame.width*(1-o),h=i.frame.width*-o,l=i.frame.height*(1-a),c=i.frame.height*-a;var d=4*this.currentBatchSize*this.vertSize,p=i.baseTexture.resolution,f=s.a/p,y=s.b/p,g=s.c/p,m=s.d/p,v=s.tx,b=s.ty,x=this.colors,_=this.positions;this.renderSession.roundPixels?(_[d]=f*h+g*c+v|0,_[d+1]=m*c+y*h+b|0,_[d+5]=f*r+g*c+v|0,_[d+6]=m*c+y*r+b|0,_[d+10]=f*r+g*l+v|0,_[d+11]=m*l+y*r+b|0,_[d+15]=f*h+g*l+v|0,_[d+16]=m*l+y*h+b|0):(_[d]=f*h+g*c+v,_[d+1]=m*c+y*h+b,_[d+5]=f*r+g*c+v,_[d+6]=m*c+y*r+b,_[d+10]=f*r+g*l+v,_[d+11]=m*l+y*r+b,_[d+15]=f*h+g*l+v,_[d+16]=m*l+y*h+b),_[d+2]=n.x0,_[d+3]=n.y0,_[d+7]=n.x1,_[d+8]=n.y1,_[d+12]=n.x2,_[d+13]=n.y2,_[d+17]=n.x3,_[d+18]=n.y3;var w=t.tint;x[d+4]=x[d+9]=x[d+14]=x[d+19]=(w>>16)+(65280&w)+((255&w)<<16)+(255*t.worldAlpha<<24),this.sprites[this.currentBatchSize++]=t}},s.WebGLSpriteBatch.prototype.renderTilingSprite=function(t){var e=t.tilingTexture;this.currentBatchSize>=this.size&&(this.flush(),this.currentBaseTexture=e.baseTexture),t._uvs||(t._uvs=new s.TextureUvs);var i=t._uvs,n=e.baseTexture.width,o=e.baseTexture.height;t.tilePosition.x%=n*t.tileScaleOffset.x,t.tilePosition.y%=o*t.tileScaleOffset.y;var a=t.tilePosition.x/(n*t.tileScaleOffset.x),r=t.tilePosition.y/(o*t.tileScaleOffset.y),h=t.width/n/(t.tileScale.x*t.tileScaleOffset.x),l=t.height/o/(t.tileScale.y*t.tileScaleOffset.y);i.x0=0-a,i.y0=0-r,i.x1=1*h-a,i.y1=0-r,i.x2=1*h-a,i.y2=1*l-r,i.x3=0-a,i.y3=1*l-r;var c=t.tint,u=(c>>16)+(65280&c)+((255&c)<<16)+(255*t.worldAlpha<<24),d=this.positions,p=this.colors,f=t.width,y=t.height,g=t.anchor.x,m=t.anchor.y,v=f*(1-g),b=f*-g,x=y*(1-m),_=y*-m,w=4*this.currentBatchSize*this.vertSize,P=e.baseTexture.resolution,C=t.worldTransform,T=C.a/P,S=C.b/P,A=C.c/P,E=C.d/P,I=C.tx,M=C.ty;d[w++]=T*b+A*_+I,d[w++]=E*_+S*b+M,d[w++]=i.x0,d[w++]=i.y0,p[w++]=u,d[w++]=T*v+A*_+I,d[w++]=E*_+S*v+M,d[w++]=i.x1,d[w++]=i.y1,p[w++]=u,d[w++]=T*v+A*x+I,d[w++]=E*x+S*v+M,d[w++]=i.x2,d[w++]=i.y2,p[w++]=u,d[w++]=T*b+A*x+I,d[w++]=E*x+S*b+M,d[w++]=i.x3,d[w++]=i.y3,p[w++]=u,this.sprites[this.currentBatchSize++]=t},s.WebGLSpriteBatch.prototype.flush=function(){if(0!==this.currentBatchSize){var t=this.gl,e;if(this.dirty){this.dirty=!1,t.activeTexture(t.TEXTURE0),t.bindBuffer(t.ARRAY_BUFFER,this.vertexBuffer),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,this.indexBuffer),e=this.defaultShader.shaders[t.id];var i=4*this.vertSize;t.vertexAttribPointer(e.aVertexPosition,2,t.FLOAT,!1,i,0),t.vertexAttribPointer(e.aTextureCoord,2,t.FLOAT,!1,i,8),t.vertexAttribPointer(e.colorAttribute,4,t.UNSIGNED_BYTE,!0,i,16)}if(this.currentBatchSize>.5*this.size)t.bufferSubData(t.ARRAY_BUFFER,0,this.vertices);else{var n=this.positions.subarray(0,4*this.currentBatchSize*this.vertSize);t.bufferSubData(t.ARRAY_BUFFER,0,n)}for(var o,a,r,h=0,l=0,c=null,u=this.renderSession.blendModeManager.currentBlendMode,d=null,p=!1,f=!1,y,g=0,m=this.currentBatchSize;g0&&(v=!1),(c!==o&&!v||p||f)&&(this.renderBatch(c,h,l),l=g,h=0,c=o,p&&(u=a,this.renderSession.blendModeManager.setBlendMode(u)),f)){d=r,e=d.shaders[t.id],e||(e=new s.PixiShader(t),e.fragmentSrc=d.fragmentSrc,e.uniforms=d.uniforms,e.init(),d.shaders[t.id]=e),this.renderSession.shaderManager.setShader(e),e.dirty&&e.syncUniforms();var b=this.renderSession.projection;t.uniform2f(e.projectionVector,b.x,b.y);var x=this.renderSession.offset;t.uniform2f(e.offsetVector,x.x,x.y)}h++}this.renderBatch(c,h,l),this.currentBatchSize=0}},s.WebGLSpriteBatch.prototype.renderBatch=function(t,e,i){if(0!==e){var s=this.gl;if(t._dirty[s.id]){if(!this.renderSession.renderer.updateTexture(t))return}else s.bindTexture(s.TEXTURE_2D,t._glTextures[s.id]);s.drawElements(s.TRIANGLES,6*e,s.UNSIGNED_SHORT,6*i*2),this.renderSession.drawCount++}},s.WebGLSpriteBatch.prototype.stop=function(){this.flush(),this.dirty=!0},s.WebGLSpriteBatch.prototype.start=function(){this.dirty=!0},s.WebGLSpriteBatch.prototype.destroy=function(){this.vertices=null,this.indices=null,this.gl.deleteBuffer(this.vertexBuffer),this.gl.deleteBuffer(this.indexBuffer),this.currentBaseTexture=null,this.gl=null},s.WebGLFastSpriteBatch=function(t){this.vertSize=10,this.maxSize=6e3,this.size=this.maxSize;var e=4*this.size*this.vertSize,i=6*this.maxSize;this.vertices=new s.Float32Array(e),this.indices=new s.Uint16Array(i),this.vertexBuffer=null,this.indexBuffer=null,this.lastIndexCount=0;for(var n=0,o=0;n=this.size&&this.flush()}},s.WebGLFastSpriteBatch.prototype.flush=function(){if(0!==this.currentBatchSize){var t=this.gl;if(this.currentBaseTexture._glTextures[t.id]||this.renderSession.renderer.updateTexture(this.currentBaseTexture,t),t.bindTexture(t.TEXTURE_2D,this.currentBaseTexture._glTextures[t.id]),this.currentBatchSize>.5*this.size)t.bufferSubData(t.ARRAY_BUFFER,0,this.vertices);else{var e=this.vertices.subarray(0,4*this.currentBatchSize*this.vertSize);t.bufferSubData(t.ARRAY_BUFFER,0,e)}t.drawElements(t.TRIANGLES,6*this.currentBatchSize,t.UNSIGNED_SHORT,0),this.currentBatchSize=0,this.renderSession.drawCount++}},s.WebGLFastSpriteBatch.prototype.stop=function(){this.flush()},s.WebGLFastSpriteBatch.prototype.start=function(){var t=this.gl;t.activeTexture(t.TEXTURE0),t.bindBuffer(t.ARRAY_BUFFER,this.vertexBuffer),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,this.indexBuffer);var e=this.renderSession.projection;t.uniform2f(this.shader.projectionVector,e.x,e.y),t.uniformMatrix3fv(this.shader.uMatrix,!1,this.matrix);var i=4*this.vertSize;t.vertexAttribPointer(this.shader.aVertexPosition,2,t.FLOAT,!1,i,0),t.vertexAttribPointer(this.shader.aPositionCoord,2,t.FLOAT,!1,i,8),t.vertexAttribPointer(this.shader.aScale,2,t.FLOAT,!1,i,16),t.vertexAttribPointer(this.shader.aRotation,1,t.FLOAT,!1,i,24),t.vertexAttribPointer(this.shader.aTextureCoord,2,t.FLOAT,!1,i,28),t.vertexAttribPointer(this.shader.colorAttribute,1,t.FLOAT,!1,i,36)},s.WebGLFilterManager=function(){this.filterStack=[],this.offsetX=0,this.offsetY=0},s.WebGLFilterManager.prototype.constructor=s.WebGLFilterManager,s.WebGLFilterManager.prototype.setContext=function(t){this.gl=t,this.texturePool=[],this.initShaderBuffers()},s.WebGLFilterManager.prototype.begin=function(t,e){this.renderSession=t,this.defaultShader=t.shaderManager.defaultShader;var i=this.renderSession.projection;this.width=2*i.x,this.height=2*-i.y,this.buffer=e},s.WebGLFilterManager.prototype.pushFilter=function(t){var e=this.gl,i=this.renderSession.projection,n=this.renderSession.offset;t._filterArea=t.target.filterArea||t.target.getBounds(),t._previous_stencil_mgr=this.renderSession.stencilManager,this.renderSession.stencilManager=new s.WebGLStencilManager,this.renderSession.stencilManager.setContext(e),e.disable(e.STENCIL_TEST),this.filterStack.push(t);var o=t.filterPasses[0];this.offsetX+=t._filterArea.x,this.offsetY+=t._filterArea.y;var a=this.texturePool.pop();a?a.resize(this.width*this.renderSession.resolution,this.height*this.renderSession.resolution):a=new s.FilterTexture(this.gl,this.width*this.renderSession.resolution,this.height*this.renderSession.resolution),e.bindTexture(e.TEXTURE_2D,a.texture);var r=t._filterArea,h=o.padding;r.x-=h,r.y-=h,r.width+=2*h,r.height+=2*h,r.x<0&&(r.x=0),r.width>this.width&&(r.width=this.width),r.y<0&&(r.y=0),r.height>this.height&&(r.height=this.height),e.bindFramebuffer(e.FRAMEBUFFER,a.frameBuffer),e.viewport(0,0,r.width*this.renderSession.resolution,r.height*this.renderSession.resolution),i.x=r.width/2,i.y=-r.height/2,n.x=-r.x,n.y=-r.y,e.colorMask(!0,!0,!0,!0),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),t._glFilterTexture=a},s.WebGLFilterManager.prototype.popFilter=function(){var t=this.gl,e=this.filterStack.pop(),i=e._filterArea,n=e._glFilterTexture,o=this.renderSession.projection,a=this.renderSession.offset;if(e.filterPasses.length>1){t.viewport(0,0,i.width*this.renderSession.resolution,i.height*this.renderSession.resolution),t.bindBuffer(t.ARRAY_BUFFER,this.vertexBuffer),this.vertexArray[0]=0,this.vertexArray[1]=i.height,this.vertexArray[2]=i.width,this.vertexArray[3]=i.height,this.vertexArray[4]=0,this.vertexArray[5]=0,this.vertexArray[6]=i.width,this.vertexArray[7]=0,t.bufferSubData(t.ARRAY_BUFFER,0,this.vertexArray),t.bindBuffer(t.ARRAY_BUFFER,this.uvBuffer),this.uvArray[2]=i.width/this.width,this.uvArray[5]=i.height/this.height,this.uvArray[6]=i.width/this.width,this.uvArray[7]=i.height/this.height,t.bufferSubData(t.ARRAY_BUFFER,0,this.uvArray);var r=n,h=this.texturePool.pop();h||(h=new s.FilterTexture(this.gl,this.width*this.renderSession.resolution,this.height*this.renderSession.resolution)),h.resize(this.width*this.renderSession.resolution,this.height*this.renderSession.resolution),t.bindFramebuffer(t.FRAMEBUFFER,h.frameBuffer),t.clear(t.COLOR_BUFFER_BIT),t.disable(t.BLEND);for(var l=0;l0?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.applyFilterPass(d,i,p,f),this.texturePool.push(n),e._glFilterTexture=null},s.WebGLFilterManager.prototype.applyFilterPass=function(t,e,i,n){var o=this.gl,a=t.shaders[o.id];a||(a=new s.PixiShader(o),a.fragmentSrc=t.fragmentSrc,a.uniforms=t.uniforms,a.init(),t.shaders[o.id]=a),this.renderSession.shaderManager.setShader(a),o.uniform2f(a.projectionVector,i/2,-n/2),o.uniform2f(a.offsetVector,0,0),t.uniforms.dimensions&&(t.uniforms.dimensions.value[0]=this.width,t.uniforms.dimensions.value[1]=this.height,t.uniforms.dimensions.value[2]=this.vertexArray[0],t.uniforms.dimensions.value[3]=this.vertexArray[5]),a.syncUniforms(),o.bindBuffer(o.ARRAY_BUFFER,this.vertexBuffer),o.vertexAttribPointer(a.aVertexPosition,2,o.FLOAT,!1,0,0),o.bindBuffer(o.ARRAY_BUFFER,this.uvBuffer),o.vertexAttribPointer(a.aTextureCoord,2,o.FLOAT,!1,0,0),o.bindBuffer(o.ARRAY_BUFFER,this.colorBuffer),o.vertexAttribPointer(a.colorAttribute,2,o.FLOAT,!1,0,0),o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,this.indexBuffer),o.drawElements(o.TRIANGLES,6,o.UNSIGNED_SHORT,0),this.renderSession.drawCount++},s.WebGLFilterManager.prototype.initShaderBuffers=function(){var t=this.gl;this.vertexBuffer=t.createBuffer(),this.uvBuffer=t.createBuffer(),this.colorBuffer=t.createBuffer(),this.indexBuffer=t.createBuffer(),this.vertexArray=new s.Float32Array([0,0,1,0,0,1,1,1]),t.bindBuffer(t.ARRAY_BUFFER,this.vertexBuffer),t.bufferData(t.ARRAY_BUFFER,this.vertexArray,t.STATIC_DRAW),this.uvArray=new s.Float32Array([0,0,1,0,0,1,1,1]),t.bindBuffer(t.ARRAY_BUFFER,this.uvBuffer),t.bufferData(t.ARRAY_BUFFER,this.uvArray,t.STATIC_DRAW),this.colorArray=new s.Float32Array([1,16777215,1,16777215,1,16777215,1,16777215]),t.bindBuffer(t.ARRAY_BUFFER,this.colorBuffer),t.bufferData(t.ARRAY_BUFFER,this.colorArray,t.STATIC_DRAW),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,this.indexBuffer),t.bufferData(t.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,1,3,2]),t.STATIC_DRAW)},s.WebGLFilterManager.prototype.destroy=function(){var t=this.gl;this.filterStack=null,this.offsetX=0,this.offsetY=0;for(var e=0;e=0;t--){var e=this._glTextures[t],i=s.glContexts[t];i&&e&&i.deleteTexture(e)}this._glTextures.length=0,this.dirty()},s.BaseTexture.fromCanvas=function(t,e){return 0===t.width&&(t.width=1),0===t.height&&(t.height=1),new s.BaseTexture(t,e)},s.TextureSilentFail=!1,s.Texture=function(t,e,i,n){this.noFrame=!1,e||(this.noFrame=!0,e=new s.Rectangle(0,0,1,1)),t instanceof s.Texture&&(t=t.baseTexture),this.baseTexture=t,this.frame=e,this.trim=n,this.valid=!1,this.isTiling=!1,this.requiresUpdate=!1,this.requiresReTint=!1,this._uvs=null,this.width=0,this.height=0,this.crop=i||new s.Rectangle(0,0,1,1),t.hasLoaded&&(this.noFrame&&(e=new s.Rectangle(0,0,t.width,t.height)),this.setFrame(e))},s.Texture.prototype.constructor=s.Texture,s.Texture.prototype.onBaseTextureLoaded=function(){var t=this.baseTexture;this.noFrame&&(this.frame=new s.Rectangle(0,0,t.width,t.height)),this.setFrame(this.frame)},s.Texture.prototype.destroy=function(t){t&&this.baseTexture.destroy(),this.valid=!1},s.Texture.prototype.setFrame=function(t){if(this.noFrame=!1,this.frame=t,this.width=t.width,this.height=t.height,this.crop.x=t.x,this.crop.y=t.y,this.crop.width=t.width,this.crop.height=t.height,!this.trim&&(t.x+t.width>this.baseTexture.width||t.y+t.height>this.baseTexture.height)){if(!s.TextureSilentFail)throw new Error("Texture Error: frame does not fit inside the base Texture dimensions "+this);return void(this.valid=!1)}this.valid=t&&t.width&&t.height&&this.baseTexture.source&&this.baseTexture.hasLoaded,this.trim&&(this.width=this.trim.width,this.height=this.trim.height,this.frame.width=this.trim.width,this.frame.height=this.trim.height),this.valid&&this._updateUvs()},s.Texture.prototype._updateUvs=function(){this._uvs||(this._uvs=new s.TextureUvs);var t=this.crop,e=this.baseTexture.width,i=this.baseTexture.height;this._uvs.x0=t.x/e,this._uvs.y0=t.y/i,this._uvs.x1=(t.x+t.width)/e,this._uvs.y1=t.y/i,this._uvs.x2=(t.x+t.width)/e,this._uvs.y2=(t.y+t.height)/i,this._uvs.x3=t.x/e,this._uvs.y3=(t.y+t.height)/i},s.Texture.fromCanvas=function(t,e){var i=s.BaseTexture.fromCanvas(t,e);return new s.Texture(i)},s.TextureUvs=function(){this.x0=0,this.y0=0,this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.x3=0,this.y3=0},s.RenderTexture=function(t,e,i,n,o){if(this.width=t||100,this.height=e||100,this.resolution=o||1,this.frame=new s.Rectangle(0,0,this.width*this.resolution,this.height*this.resolution),this.crop=new s.Rectangle(0,0,this.width*this.resolution,this.height*this.resolution),this.baseTexture=new s.BaseTexture,this.baseTexture.width=this.width*this.resolution,this.baseTexture.height=this.height*this.resolution,this.baseTexture._glTextures=[],this.baseTexture.resolution=this.resolution,this.baseTexture.scaleMode=n||s.scaleModes.DEFAULT,this.baseTexture.hasLoaded=!0,s.Texture.call(this,this.baseTexture,new s.Rectangle(0,0,this.width*this.resolution,this.height*this.resolution)),this.renderer=i||s.defaultRenderer,this.renderer.type===s.WEBGL_RENDERER){var a=this.renderer.gl;this.baseTexture._dirty[a.id]=!1,this.textureBuffer=new s.FilterTexture(a,this.width,this.height,this.baseTexture.scaleMode),this.baseTexture._glTextures[a.id]=this.textureBuffer.texture,this.render=this.renderWebGL,this.projection=new s.Point(.5*this.width,.5*-this.height)}else this.render=this.renderCanvas,this.textureBuffer=new s.CanvasBuffer(this.width*this.resolution,this.height*this.resolution),this.baseTexture.source=this.textureBuffer.canvas;this.valid=!0,this.tempMatrix=new Phaser.Matrix,this._updateUvs()},s.RenderTexture.prototype=Object.create(s.Texture.prototype),s.RenderTexture.prototype.constructor=s.RenderTexture,s.RenderTexture.prototype.resize=function(t,e,i){t===this.width&&e===this.height||(this.valid=t>0&&e>0,this.width=t,this.height=e,this.frame.width=this.crop.width=t*this.resolution,this.frame.height=this.crop.height=e*this.resolution,i&&(this.baseTexture.width=this.width*this.resolution,this.baseTexture.height=this.height*this.resolution),this.renderer.type===s.WEBGL_RENDERER&&(this.projection.x=this.width/2,this.projection.y=-this.height/2),this.valid&&this.textureBuffer.resize(this.width,this.height))},s.RenderTexture.prototype.clear=function(){this.valid&&(this.renderer.type===s.WEBGL_RENDERER&&this.renderer.gl.bindFramebuffer(this.renderer.gl.FRAMEBUFFER,this.textureBuffer.frameBuffer),this.textureBuffer.clear())},s.RenderTexture.prototype.renderWebGL=function(t,e,i){if(this.valid&&0!==t.alpha){var s=t.worldTransform;s.identity(),s.translate(0,2*this.projection.y),e&&s.append(e),s.scale(1,-1);for(var n=0;n0){var _=this.canvasPadding/this.worldTransform.a,w=this.canvasPadding/this.worldTransform.d,P=(l+c+u)/3,C=(d+p+f)/3,T=l-P,S=d-C,A=Math.sqrt(T*T+S*S);l=P+T/A*(A+_),d=C+S/A*(A+w),T=c-P,S=p-C,A=Math.sqrt(T*T+S*S),c=P+T/A*(A+_),p=C+S/A*(A+w),T=u-P,S=f-C,A=Math.sqrt(T*T+S*S),u=P+T/A*(A+_),f=C+S/A*(A+w)}t.save(),t.beginPath(),t.moveTo(l,d),t.lineTo(c,p),t.lineTo(u,f),t.closePath(),t.clip();var E=y*b+v*m+g*x-b*m-v*g-y*x,I=l*b+v*u+c*x-b*u-v*c-l*x,M=y*c+l*m+g*u-c*m-l*g-y*u,O=y*b*u+v*c*m+l*g*x-l*b*m-v*g*u-y*c*x,R=d*b+v*f+p*x-b*f-v*p-d*x,B=y*p+d*m+g*f-p*m-d*g-y*f,k=y*b*f+v*p*m+d*g*x-d*b*m-v*g*f-y*p*x;t.transform(I/E,R/E,M/E,B/E,O/E,k/E),t.drawImage(a,0,0),t.restore()},s.Strip.prototype.renderStripFlat=function(t){var e=this.context,i=t.vertices,s=i.length/2;this.count++,e.beginPath();for(var n=1;nl?v:l,c=b>c?b:c}if(u===-1/0||c===1/0)return s.EmptyRectangle;var x=this._bounds;return x.x=u,x.width=l-u,x.y=d,x.height=c-d,this._currentBounds=x,x},s.Strip.DrawModes={TRIANGLE_STRIP:0,TRIANGLES:1},s.Rope=function(t,e){s.Strip.call(this,t),this.points=e,this.vertices=new s.Float32Array(4*e.length),this.uvs=new s.Float32Array(4*e.length),this.colors=new s.Float32Array(2*e.length),this.indices=new s.Uint16Array(2*e.length),this.refresh()},s.Rope.prototype=Object.create(s.Strip.prototype),s.Rope.prototype.constructor=s.Rope,s.Rope.prototype.refresh=function(){var t=this.points;if(!(t.length<1)){var e=this.uvs,i=t[0],s=this.indices,n=this.colors;this.count-=.2,e[0]=0,e[1]=0,e[2]=0,e[3]=1,n[0]=1,n[1]=1,s[0]=0,s[1]=1;for(var o=t.length,a,r,h,l=1;l1&&(l=1),c=Math.sqrt(n.x*n.x+n.y*n.y),u=this.texture.height/2,n.x/=c,n.y/=c,n.x*=u,n.y*=u,o[h]=r.x+n.x,o[h+1]=r.y+n.y,o[h+2]=r.x-n.x,o[h+3]=r.y-n.y,e=r;s.DisplayObjectContainer.prototype.updateTransform.call(this)}},s.Rope.prototype.setTexture=function(t){this.texture=t},s.TilingSprite=function(t,e,i){s.Sprite.call(this,t),this._width=e||128,this._height=i||128,this.tileScale=new s.Point(1,1),this.tileScaleOffset=new s.Point(1,1),this.tilePosition=new s.Point,this.renderable=!0,this.tint=16777215,this.textureDebug=!1,this.blendMode=s.blendModes.NORMAL,this.canvasBuffer=null,this.tilingTexture=null,this.tilePattern=null,this.refreshTexture=!0,this.frameWidth=0,this.frameHeight=0},s.TilingSprite.prototype=Object.create(s.Sprite.prototype),s.TilingSprite.prototype.constructor=s.TilingSprite,s.TilingSprite.prototype.setTexture=function(t){this.texture!==t&&(this.texture=t,this.refreshTexture=!0,this.cachedTint=16777215)},s.TilingSprite.prototype._renderWebGL=function(t){if(this.visible&&this.renderable&&0!==this.alpha){if(this._mask&&(t.spriteBatch.stop(),t.maskManager.pushMask(this.mask,t),t.spriteBatch.start()),this._filters&&(t.spriteBatch.flush(),t.filterManager.pushFilter(this._filterBlock)),this.refreshTexture){if(this.generateTilingTexture(!0,t),!this.tilingTexture)return;this.tilingTexture.needsUpdate&&(t.renderer.updateTexture(this.tilingTexture.baseTexture),this.tilingTexture.needsUpdate=!1)}t.spriteBatch.renderTilingSprite(this);for(var e=0;e_?p:_,_=y>_?y:_,_=m>_?m:_,_=b>_?b:_,w=f>w?f:w,w=g>w?g:w,w=v>w?v:w,w=x>w?x:w;var T=this._bounds;return T.x=P,T.width=_-P,T.y=C,T.height=w-C,this._currentBounds=T,T},s.TilingSprite.prototype.destroy=function(){s.Sprite.prototype.destroy.call(this),this.canvasBuffer&&(this.canvasBuffer.destroy(),this.canvasBuffer=null),this.tileScale=null,this.tileScaleOffset=null,this.tilePosition=null,this.tilingTexture&&(this.tilingTexture.destroy(!0),this.tilingTexture=null)},Object.defineProperty(s.TilingSprite.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t}}),Object.defineProperty(s.TilingSprite.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t}}),void 0!==t&&t.exports&&(e=t.exports=s),e.PIXI=s,s}).call(this)},function(t,e,i){(function(i){/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +* +* @overview +* +* Phaser - http://phaser.io +* +* v2.6.4 "Kore Springs" - Built: Thu Nov 16 2017 13:53:52 +* +* By Richard Davey http://www.photonstorm.com @photonstorm +* +* Phaser is a fun, free and fast 2D game framework for making HTML5 games +* for desktop and mobile web browsers, supporting Canvas and WebGL rendering. +* +* Phaser uses Pixi.js for rendering, created by Mat Groves http://matgroves.com @Doormat23 +* Phaser uses p2.js for full-body physics, created by Stefan Hedman https://github.com/schteppe/p2.js @schteppe +* Phaser contains a port of N+ Physics, converted by Richard Davey, original by http://www.metanetsoftware.com +* +* Many thanks to Adam Saltsman (@ADAMATOMIC) for releasing Flixel, from which both Phaser and my love of framework development originate. +* +* Follow development at http://phaser.io and on our forum +* +* "If you want your children to be intelligent, read them fairy tales." +* "If you want them to be more intelligent, read them more fairy tales." +* -- Albert Einstein +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +(function(){function s(t,e){this._scaleFactor=t,this._deltaMode=e,this.originalEvent=null}var n=this,o=o||{VERSION:"2.6.4",GAMES:[],AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,NONE:0,LEFT:1,RIGHT:2,UP:3,DOWN:4,SPRITE:0,BUTTON:1,IMAGE:2,GRAPHICS:3,TEXT:4,TILESPRITE:5,BITMAPTEXT:6,GROUP:7,RENDERTEXTURE:8,TILEMAP:9,TILEMAPLAYER:10,EMITTER:11,POLYGON:12,BITMAPDATA:13,CANVAS_FILTER:14,WEBGL_FILTER:15,ELLIPSE:16,SPRITEBATCH:17,RETROFONT:18,POINTER:19,ROPE:20,CIRCLE:21,RECTANGLE:22,LINE:23,MATRIX:24,POINT:25,ROUNDEDRECTANGLE:26,CREATURE:27,VIDEO:28,PENDING_ATLAS:-1,HORIZONTAL:0,VERTICAL:1,LANDSCAPE:0,PORTRAIT:1,ANGLE_UP:270,ANGLE_DOWN:90,ANGLE_LEFT:180,ANGLE_RIGHT:0,ANGLE_NORTH_EAST:315,ANGLE_NORTH_WEST:225,ANGLE_SOUTH_EAST:45,ANGLE_SOUTH_WEST:135,TOP_LEFT:0,TOP_CENTER:1,TOP_RIGHT:2,LEFT_TOP:3,LEFT_CENTER:4,LEFT_BOTTOM:5,CENTER:6,RIGHT_TOP:7,RIGHT_CENTER:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM_RIGHT:12,blendModes:{NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16},scaleModes:{DEFAULT:0,LINEAR:0,NEAREST:1},PIXI:PIXI||{}};if(/** +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +Math.trunc||(Math.trunc=function t(e){return e<0?Math.ceil(e):Math.floor(e)}),Function.prototype.bind||(Function.prototype.bind=function(){var t=Array.prototype.slice;return function(e){function i(){var o=n.concat(t.call(arguments));s.apply(this instanceof i?this:e,o)}var s=this,n=t.call(arguments,1);if("function"!=typeof s)throw new TypeError;return i.prototype=function t(e){if(e&&(t.prototype=e),!(this instanceof t))return new t}(s.prototype),i}}()),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.forEach||(Array.prototype.forEach=function(t){"use strict";if(void 0===this||null===this)throw new TypeError;var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var s=arguments.length>=2?arguments[1]:void 0,n=0;n +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Utils={reverseString:function(t){return t.split("").reverse().join("")},getProperty:function(t,e){for(var i=e.split("."),s=i.pop(),n=i.length,o=1,a=i[0];o0&&100*Math.random()<=t},randomChoice:function(t,e){return Math.random()<.5?t:e},parseDimension:function(t,e){var i=0,s=0;return"string"==typeof t?"%"===t.substr(-1)?(i=parseInt(t,10)/100,s=0===e?window.innerWidth*i:window.innerHeight*i):s=parseInt(t,10):s=t,s},pad:function(t,e,i,s){if(void 0===e)var e=0;if(void 0===i)var i=" ";if(void 0===s)var s=3;t=t.toString();var n=0;if(e+1>=t.length)switch(s){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var o=Math.ceil((n=e-t.length)/2),a=n-o;t=new Array(a+1).join(i)+t+new Array(o+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t},isPlainObject:function(t){if("object"!=typeof t||t.nodeType||t===t.window)return!1;try{if(t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},extend:function(){var t,e,i,s,n,a,r=arguments[0]||{},h=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[1]||{},h=2),l===h&&(r=this,--h);h +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Circle=function(t,e,i){t=t||0,e=e||0,i=i||0,this.x=t,this.y=e,this._diameter=i,this._radius=0,i>0&&(this._radius=.5*i),this.type=o.CIRCLE},o.Circle.prototype={circumference:function(){return Math.PI*this._radius*2},random:function(t){void 0===t&&(t=new o.Point);var e=2*Math.PI*Math.random(),i=Math.random()+Math.random(),s=i>1?2-i:i,n=s*Math.cos(e),a=s*Math.sin(e);return t.x=this.x+n*this.radius,t.y=this.y+a*this.radius,t},getBounds:function(){return new o.Rectangle(this.x-this.radius,this.y-this.radius,this.diameter,this.diameter)},setTo:function(t,e,i){return this.x=t,this.y=e,this._diameter=i,this._radius=.5*i,this},copyFrom:function(t){return this.setTo(t.x,t.y,t.diameter)},copyTo:function(t){return t.x=this.x,t.y=this.y,t.diameter=this._diameter,t},distance:function(t,e){var i=o.Math.distance(this.x,this.y,t.x,t.y);return e?Math.round(i):i},clone:function(t){return void 0===t||null===t?t=new o.Circle(this.x,this.y,this.diameter):t.setTo(this.x,this.y,this.diameter),t},contains:function(t,e){return o.Circle.contains(this,t,e)},circumferencePoint:function(t,e,i){return o.Circle.circumferencePoint(this,t,e,i)},offset:function(t,e){return this.x+=t,this.y+=e,this},offsetPoint:function(t){return this.offset(t.x,t.y)},toString:function(){return"[{Phaser.Circle (x="+this.x+" y="+this.y+" diameter="+this.diameter+" radius="+this.radius+")}]"}},o.Circle.prototype.constructor=o.Circle,Object.defineProperty(o.Circle.prototype,"diameter",{get:function(){return this._diameter},set:function(t){t>0&&(this._diameter=t,this._radius=.5*t)}}),Object.defineProperty(o.Circle.prototype,"radius",{get:function(){return this._radius},set:function(t){t>0&&(this._radius=t,this._diameter=2*t)}}),Object.defineProperty(o.Circle.prototype,"left",{get:function(){return this.x-this._radius},set:function(t){t>this.x?(this._radius=0,this._diameter=0):this.radius=this.x-t}}),Object.defineProperty(o.Circle.prototype,"right",{get:function(){return this.x+this._radius},set:function(t){tthis.y?(this._radius=0,this._diameter=0):this.radius=this.y-t}}),Object.defineProperty(o.Circle.prototype,"bottom",{get:function(){return this.y+this._radius},set:function(t){t0?Math.PI*this._radius*this._radius:0}}),Object.defineProperty(o.Circle.prototype,"empty",{get:function(){return 0===this._diameter},set:function(t){!0===t&&this.setTo(0,0,0)}}),o.Circle.contains=function(t,e,i){if(t.radius>0&&e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom){return(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}return!1},o.Circle.equals=function(t,e){return t.x===e.x&&t.y===e.y&&t.diameter===e.diameter},o.Circle.intersects=function(t,e){return o.Math.distance(t.x,t.y,e.x,e.y)<=t.radius+e.radius},o.Circle.circumferencePoint=function(t,e,i,s){return void 0===i&&(i=!1),void 0===s&&(s=new o.Point),!0===i&&(e=o.Math.degToRad(e)),s.x=t.x+t.radius*Math.cos(e),s.y=t.y+t.radius*Math.sin(e),s},o.Circle.intersectsRectangle=function(t,e){var i=Math.abs(t.x-e.x-e.halfWidth);if(i>e.halfWidth+t.radius)return!1;var s=Math.abs(t.y-e.y-e.halfHeight);if(s>e.halfHeight+t.radius)return!1;if(i<=e.halfWidth||s<=e.halfHeight)return!0;var n=i-e.halfWidth,o=s-e.halfHeight;return n*n+o*o<=t.radius*t.radius},PIXI.Circle=o.Circle,/** +* @author Richard Davey +* @author Chad Engler +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Ellipse=function(t,e,i,s){t=t||0,e=e||0,i=i||0,s=s||0,this.x=t,this.y=e,this.width=i,this.height=s,this.type=o.ELLIPSE},o.Ellipse.prototype={setTo:function(t,e,i,s){return this.x=t,this.y=e,this.width=i,this.height=s,this},getBounds:function(){return new o.Rectangle(this.x-this.width,this.y-this.height,this.width,this.height)},copyFrom:function(t){return this.setTo(t.x,t.y,t.width,t.height)},copyTo:function(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},clone:function(t){return void 0===t||null===t?t=new o.Ellipse(this.x,this.y,this.width,this.height):t.setTo(this.x,this.y,this.width,this.height),t},contains:function(t,e){return o.Ellipse.contains(this,t,e)},random:function(t){void 0===t&&(t=new o.Point);var e=Math.random()*Math.PI*2,i=Math.random();return t.x=Math.sqrt(i)*Math.cos(e),t.y=Math.sqrt(i)*Math.sin(e),t.x=this.x+t.x*this.width/2,t.y=this.y+t.y*this.height/2,t},toString:function(){return"[{Phaser.Ellipse (x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+")}]"}},o.Ellipse.prototype.constructor=o.Ellipse,Object.defineProperty(o.Ellipse.prototype,"left",{get:function(){return this.x},set:function(t){this.x=t}}),Object.defineProperty(o.Ellipse.prototype,"right",{get:function(){return this.x+this.width},set:function(t){t +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Line=function(t,e,i,s){t=t||0,e=e||0,i=i||0,s=s||0,this.start=new o.Point(t,e),this.end=new o.Point(i,s),this.type=o.LINE},o.Line.prototype={setTo:function(t,e,i,s){return this.start.setTo(t,e),this.end.setTo(i,s),this},fromSprite:function(t,e,i){return void 0===i&&(i=!1),i?this.setTo(t.center.x,t.center.y,e.center.x,e.center.y):this.setTo(t.x,t.y,e.x,e.y)},fromAngle:function(t,e,i,s){return this.start.setTo(t,e),this.end.setTo(t+Math.cos(i)*s,e+Math.sin(i)*s),this},rotate:function(t,e){var i=(this.start.x+this.end.x)/2,s=(this.start.y+this.end.y)/2;return this.start.rotate(i,s,t,e),this.end.rotate(i,s,t,e),this},rotateAround:function(t,e,i,s){return this.start.rotate(t,e,i,s),this.end.rotate(t,e,i,s),this},intersects:function(t,e,i){return o.Line.intersectsPoints(this.start,this.end,t.start,t.end,e,i)},reflect:function(t){return o.Line.reflect(this,t)},midPoint:function(t){return void 0===t&&(t=new o.Point),t.x=(this.start.x+this.end.x)/2,t.y=(this.start.y+this.end.y)/2,t},centerOn:function(t,e){var i=(this.start.x+this.end.x)/2,s=(this.start.y+this.end.y)/2,n=t-i,o=e-s;this.start.add(n,o),this.end.add(n,o)},pointOnLine:function(t,e){return(t-this.start.x)*(this.end.y-this.start.y)==(this.end.x-this.start.x)*(e-this.start.y)},pointOnSegment:function(t,e){var i=Math.min(this.start.x,this.end.x),s=Math.max(this.start.x,this.end.x),n=Math.min(this.start.y,this.end.y),o=Math.max(this.start.y,this.end.y);return this.pointOnLine(t,e)&&t>=i&&t<=s&&e>=n&&e<=o},random:function(t){void 0===t&&(t=new o.Point);var e=Math.random();return t.x=this.start.x+e*(this.end.x-this.start.x),t.y=this.start.y+e*(this.end.y-this.start.y),t},coordinatesOnLine:function(t,e){void 0===t&&(t=1),void 0===e&&(e=[]);var i=Math.round(this.start.x),s=Math.round(this.start.y),n=Math.round(this.end.x),o=Math.round(this.end.y),a=Math.abs(n-i),r=Math.abs(o-s),h=i-r&&(c-=r,i+=h),d=0&&y<=1&&g>=0&&g<=1?a:null}return a},o.Line.intersects=function(t,e,i,s){return o.Line.intersectsPoints(t.start,t.end,e.start,e.end,i,s)},o.Line.intersectsRectangle=function(t,e){if(!o.Rectangle.intersects(t,e))return!1;var i=t.start.x,s=t.start.y,n=t.end.x,a=t.end.y,r=e.x,h=e.y,l=e.right,c=e.bottom,u=0;if(i>=r&&i<=l&&s>=h&&s<=c||n>=r&&n<=l&&a>=h&&a<=c)return!0;if(i=r){if((u=s+(a-s)*(r-i)/(n-i))>h&&u<=c)return!0}else if(i>l&&n<=l&&(u=s+(a-s)*(l-i)/(n-i))>=h&&u<=c)return!0;if(s=h){if((u=i+(n-i)*(h-s)/(a-s))>=r&&u<=l)return!0}else if(s>c&&a<=c&&(u=i+(n-i)*(c-s)/(a-s))>=r&&u<=l)return!0;return!1},o.Line.reflect=function(t,e){return 2*e.normalAngle-3.141592653589793-t.angle},/** +* @author Mat Groves http://matgroves.com/ @Doormat23 +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Matrix=function(t,e,i,s,n,a){void 0!==t&&null!==t||(t=1),void 0!==e&&null!==e||(e=0),void 0!==i&&null!==i||(i=0),void 0!==s&&null!==s||(s=1),void 0!==n&&null!==n||(n=0),void 0!==a&&null!==a||(a=0),this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=a,this.type=o.MATRIX},o.Matrix.prototype={fromArray:function(t){return this.setTo(t[0],t[1],t[3],t[4],t[2],t[5])},setTo:function(t,e,i,s,n,o){return this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=o,this},clone:function(t){return void 0===t||null===t?t=new o.Matrix(this.a,this.b,this.c,this.d,this.tx,this.ty):(t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty),t},copyTo:function(t){return t.copyFrom(this),t},copyFrom:function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},toArray:function(t,e){return void 0===e&&(e=new PIXI.Float32Array(9)),t?(e[0]=this.a,e[1]=this.b,e[2]=0,e[3]=this.c,e[4]=this.d,e[5]=0,e[6]=this.tx,e[7]=this.ty,e[8]=1):(e[0]=this.a,e[1]=this.c,e[2]=this.tx,e[3]=this.b,e[4]=this.d,e[5]=this.ty,e[6]=0,e[7]=0,e[8]=1),e},apply:function(t,e){return void 0===e&&(e=new o.Point),e.x=this.a*t.x+this.c*t.y+this.tx,e.y=this.b*t.x+this.d*t.y+this.ty,e},applyInverse:function(t,e){void 0===e&&(e=new o.Point);var i=1/(this.a*this.d+this.c*-this.b),s=t.x,n=t.y;return e.x=this.d*i*s+-this.c*i*n+(this.ty*this.c-this.tx*this.d)*i,e.y=this.a*i*n+-this.b*i*s+(-this.ty*this.a+this.tx*this.b)*i,e},translate:function(t,e){return this.tx+=t,this.ty+=e,this},scale:function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},rotate:function(t){var e=Math.cos(t),i=Math.sin(t),s=this.a,n=this.c,o=this.tx;return this.a=s*e-this.b*i,this.b=s*i+this.b*e,this.c=n*e-this.d*i,this.d=n*i+this.d*e,this.tx=o*e-this.ty*i,this.ty=o*i+this.ty*e,this},append:function(t){var e=this.a,i=this.b,s=this.c,n=this.d;return this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*n+this.ty,this},identity:function(){return this.setTo(1,0,0,1,0,0)}},o.identityMatrix=new o.Matrix,PIXI.Matrix=o.Matrix,PIXI.identityMatrix=o.identityMatrix,/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Point=function(t,e){t=t||0,e=e||0,this.x=t,this.y=e,this.type=o.POINT},o.Point.prototype={copyFrom:function(t){return this.setTo(t.x,t.y)},invert:function(){return this.setTo(this.y,this.x)},setTo:function(t,e){return this.x=t||0,this.y=e||(0!==e?this.x:0),this},set:function(t,e){return this.x=t||0,this.y=e||(0!==e?this.x:0),this},add:function(t,e){return this.x+=t,this.y+=e,this},subtract:function(t,e){return this.x-=t,this.y-=e,this},multiply:function(t,e){return this.x*=t,this.y*=e,this},divide:function(t,e){return this.x/=t,this.y/=e,this},clampX:function(t,e){return this.x=o.Math.clamp(this.x,t,e),this},clampY:function(t,e){return this.y=o.Math.clamp(this.y,t,e),this},clamp:function(t,e){return this.x=o.Math.clamp(this.x,t,e),this.y=o.Math.clamp(this.y,t,e),this},clone:function(t){return void 0===t||null===t?t=new o.Point(this.x,this.y):t.setTo(this.x,this.y),t},copyTo:function(t){return t.x=this.x,t.y=this.y,t},distance:function(t,e){return o.Point.distance(this,t,e)},equals:function(t){return t.x===this.x&&t.y===this.y},angle:function(t,e){return void 0===e&&(e=!1),e?o.Math.radToDeg(Math.atan2(t.y-this.y,t.x-this.x)):Math.atan2(t.y-this.y,t.x-this.x)},rotate:function(t,e,i,s,n){return o.Point.rotate(this,t,e,i,s,n)},getMagnitude:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},getMagnitudeSq:function(){return this.x*this.x+this.y*this.y},setMagnitude:function(t){return this.normalize().multiply(t,t)},normalize:function(){if(!this.isZero()){var t=this.getMagnitude();this.x/=t,this.y/=t}return this},isZero:function(){return 0===this.x&&0===this.y},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},perp:function(){return this.setTo(-this.y,this.x)},rperp:function(){return this.setTo(this.y,-this.x)},normalRightHand:function(){return this.setTo(-1*this.y,this.x)},floor:function(){return this.setTo(Math.floor(this.x),Math.floor(this.y))},ceil:function(){return this.setTo(Math.ceil(this.x),Math.ceil(this.y))},toString:function(){return"[{Point (x="+this.x+" y="+this.y+")}]"}},o.Point.prototype.constructor=o.Point,o.Point.add=function(t,e,i){return void 0===i&&(i=new o.Point),i.x=t.x+e.x,i.y=t.y+e.y,i},o.Point.subtract=function(t,e,i){return void 0===i&&(i=new o.Point),i.x=t.x-e.x,i.y=t.y-e.y,i},o.Point.multiply=function(t,e,i){return void 0===i&&(i=new o.Point),i.x=t.x*e.x,i.y=t.y*e.y,i},o.Point.divide=function(t,e,i){return void 0===i&&(i=new o.Point),i.x=t.x/e.x,i.y=t.y/e.y,i},o.Point.equals=function(t,e){return t.x===e.x&&t.y===e.y},o.Point.angle=function(t,e){return Math.atan2(t.y-e.y,t.x-e.x)},o.Point.negative=function(t,e){return void 0===e&&(e=new o.Point),e.setTo(-t.x,-t.y)},o.Point.multiplyAdd=function(t,e,i,s){return void 0===s&&(s=new o.Point),s.setTo(t.x+e.x*i,t.y+e.y*i)},o.Point.interpolate=function(t,e,i,s){return void 0===s&&(s=new o.Point),s.setTo(t.x+(e.x-t.x)*i,t.y+(e.y-t.y)*i)},o.Point.perp=function(t,e){return void 0===e&&(e=new o.Point),e.setTo(-t.y,t.x)},o.Point.rperp=function(t,e){return void 0===e&&(e=new o.Point),e.setTo(t.y,-t.x)},o.Point.distance=function(t,e,i){var s=o.Math.distance(t.x,t.y,e.x,e.y);return i?Math.round(s):s},o.Point.project=function(t,e,i){void 0===i&&(i=new o.Point);var s=t.dot(e)/e.getMagnitudeSq();return 0!==s&&i.setTo(s*e.x,s*e.y),i},o.Point.projectUnit=function(t,e,i){void 0===i&&(i=new o.Point);var s=t.dot(e);return 0!==s&&i.setTo(s*e.x,s*e.y),i},o.Point.normalRightHand=function(t,e){return void 0===e&&(e=new o.Point),e.setTo(-1*t.y,t.x)},o.Point.normalize=function(t,e){void 0===e&&(e=new o.Point);var i=t.getMagnitude();return 0!==i&&e.setTo(t.x/i,t.y/i),e},o.Point.rotate=function(t,e,i,s,n,a){if(n&&(s=o.Math.degToRad(s)),void 0===a){t.subtract(e,i);var r=Math.sin(s),h=Math.cos(s),l=h*t.x-r*t.y,c=r*t.x+h*t.y;t.x=l+e,t.y=c+i}else{var u=s+Math.atan2(t.y-i,t.x-e);t.x=e+a*Math.cos(u),t.y=i+a*Math.sin(u)}return t},o.Point.centroid=function(t,e){if(void 0===e&&(e=new o.Point),"[object Array]"!==Object.prototype.toString.call(t))throw new Error("Phaser.Point. Parameter 'points' must be an array");var i=t.length;if(i<1)throw new Error("Phaser.Point. Parameter 'points' array must not be empty");if(1===i)return e.copyFrom(t[0]),e;for(var s=0;s +* @author Adrien Brault +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Polygon=function(){this.area=0,this._points=[],arguments.length>0&&this.setTo.apply(this,arguments),this.closed=!0,this.flattened=!1,this.type=o.POLYGON},o.Polygon.prototype={toNumberArray:function(t){void 0===t&&(t=[]);for(var e=0;e0){Array.isArray(t)||(t=Array.prototype.slice.call(arguments));for(var e=Number.MAX_VALUE,i=0,s=t.length;i +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Rectangle=function(t,e,i,s){t=t||0,e=e||0,i=i||0,s=s||0,this.x=t,this.y=e,this.width=i,this.height=s,this.type=o.RECTANGLE},o.Rectangle.prototype={offset:function(t,e){return this.x+=t,this.y+=e,this},offsetPoint:function(t){return this.offset(t.x,t.y)},setTo:function(t,e,i,s){return this.x=t,this.y=e,this.width=i,this.height=s,this},scale:function(t,e){return void 0===e&&(e=t),this.width*=t,this.height*=e,this},centerOn:function(t,e){return this.centerX=t,this.centerY=e,this},floor:function(){this.x=Math.floor(this.x),this.y=Math.floor(this.y)},floorAll:function(){this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.width=Math.floor(this.width),this.height=Math.floor(this.height)},ceil:function(){this.x=Math.ceil(this.x),this.y=Math.ceil(this.y)},ceilAll:function(){this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.width=Math.ceil(this.width),this.height=Math.ceil(this.height)},copyFrom:function(t){return this.setTo(t.x,t.y,t.width,t.height)},copyTo:function(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},inflate:function(t,e){return o.Rectangle.inflate(this,t,e)},size:function(t){return o.Rectangle.size(this,t)},resize:function(t,e){return this.width=t,this.height=e,this},clone:function(t){return o.Rectangle.clone(this,t)},contains:function(t,e){return o.Rectangle.contains(this,t,e)},containsRect:function(t){return o.Rectangle.containsRect(t,this)},equals:function(t){return o.Rectangle.equals(this,t)},intersection:function(t,e){return o.Rectangle.intersection(this,t,e)},intersects:function(t){return o.Rectangle.intersects(this,t)},intersectsRaw:function(t,e,i,s,n){return o.Rectangle.intersectsRaw(this,t,e,i,s,n)},union:function(t,e){return o.Rectangle.union(this,t,e)},random:function(t){return void 0===t&&(t=new o.Point),t.x=this.randomX,t.y=this.randomY,t},getPoint:function(t,e){switch(void 0===e&&(e=new o.Point),t){default:case o.TOP_LEFT:return e.set(this.x,this.y);case o.TOP_CENTER:return e.set(this.centerX,this.y);case o.TOP_RIGHT:return e.set(this.right,this.y);case o.LEFT_CENTER:return e.set(this.x,this.centerY);case o.CENTER:return e.set(this.centerX,this.centerY);case o.RIGHT_CENTER:return e.set(this.right,this.centerY);case o.BOTTOM_LEFT:return e.set(this.x,this.bottom);case o.BOTTOM_CENTER:return e.set(this.centerX,this.bottom);case o.BOTTOM_RIGHT:return e.set(this.right,this.bottom)}},toString:function(){return"[{Rectangle (x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+" empty="+this.empty+")}]"}},Object.defineProperty(o.Rectangle.prototype,"halfWidth",{get:function(){return Math.round(this.width/2)}}),Object.defineProperty(o.Rectangle.prototype,"halfHeight",{get:function(){return Math.round(this.height/2)}}),Object.defineProperty(o.Rectangle.prototype,"bottom",{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}}),Object.defineProperty(o.Rectangle.prototype,"bottomLeft",{get:function(){return new o.Point(this.x,this.bottom)},set:function(t){this.x=t.x,this.bottom=t.y}}),Object.defineProperty(o.Rectangle.prototype,"bottomRight",{get:function(){return new o.Point(this.right,this.bottom)},set:function(t){this.right=t.x,this.bottom=t.y}}),Object.defineProperty(o.Rectangle.prototype,"left",{get:function(){return this.x},set:function(t){t>=this.right?this.width=0:this.width=this.right-t,this.x=t}}),Object.defineProperty(o.Rectangle.prototype,"right",{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}}),Object.defineProperty(o.Rectangle.prototype,"volume",{get:function(){return this.width*this.height}}),Object.defineProperty(o.Rectangle.prototype,"perimeter",{get:function(){return 2*this.width+2*this.height}}),Object.defineProperty(o.Rectangle.prototype,"centerX",{get:function(){return this.x+this.halfWidth},set:function(t){this.x=t-this.halfWidth}}),Object.defineProperty(o.Rectangle.prototype,"centerY",{get:function(){return this.y+this.halfHeight},set:function(t){this.y=t-this.halfHeight}}),Object.defineProperty(o.Rectangle.prototype,"randomX",{get:function(){return this.x+Math.random()*this.width}}),Object.defineProperty(o.Rectangle.prototype,"randomY",{get:function(){return this.y+Math.random()*this.height}}),Object.defineProperty(o.Rectangle.prototype,"top",{get:function(){return this.y},set:function(t){t>=this.bottom?(this.height=0,this.y=t):this.height=this.bottom-t}}),Object.defineProperty(o.Rectangle.prototype,"topLeft",{get:function(){return new o.Point(this.x,this.y)},set:function(t){this.x=t.x,this.y=t.y}}),Object.defineProperty(o.Rectangle.prototype,"topRight",{get:function(){return new o.Point(this.x+this.width,this.y)},set:function(t){this.right=t.x,this.y=t.y}}),Object.defineProperty(o.Rectangle.prototype,"empty",{get:function(){return!this.width||!this.height},set:function(t){!0===t&&this.setTo(0,0,0,0)}}),o.Rectangle.prototype.constructor=o.Rectangle,o.Rectangle.inflate=function(t,e,i){return t.x-=e,t.width+=2*e,t.y-=i,t.height+=2*i,t},o.Rectangle.inflatePoint=function(t,e){return o.Rectangle.inflate(t,e.x,e.y)},o.Rectangle.size=function(t,e){return void 0===e||null===e?e=new o.Point(t.width,t.height):e.setTo(t.width,t.height),e},o.Rectangle.clone=function(t,e){return void 0===e||null===e?e=new o.Rectangle(t.x,t.y,t.width,t.height):e.setTo(t.x,t.y,t.width,t.height),e},o.Rectangle.contains=function(t,e,i){return!(t.width<=0||t.height<=0)&&(e>=t.x&&e=t.y&&i=t&&n=e&&oe.volume)&&(t.x>=e.x&&t.y>=e.y&&t.righte.right||t.y>e.bottom)},o.Rectangle.intersectsRaw=function(t,e,i,s,n,o){return void 0===o&&(o=0),!(e>t.right+o||it.bottom+o||ni&&(i=t.x),t.xn&&(n=t.y),t.y +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.RoundedRectangle=function(t,e,i,s,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=20),this.x=t,this.y=e,this.width=i,this.height=s,this.radius=n||20,this.type=o.ROUNDEDRECTANGLE},o.RoundedRectangle.prototype={clone:function(){return new o.RoundedRectangle(this.x,this.y,this.width,this.height,this.radius)},contains:function(t,e){if(this.width<=0||this.height<=0)return!1;var i=this.x;if(t>=i&&t<=i+this.width){var s=this.y;if(e>=s&&e<=s+this.height)return!0}return!1}},o.RoundedRectangle.prototype.constructor=o.RoundedRectangle,PIXI.RoundedRectangle=o.RoundedRectangle,/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Camera=function(t,e,i,s,n,a){this.game=t,this.world=t.world,this.id=0,this.view=new o.Rectangle(i,s,n,a),this.bounds=new o.Rectangle(i,s,n,a),this.deadzone=null,this.visible=!0,this.roundPx=!0,this.atLimit={x:!1,y:!1},this.target=null,this.displayObject=null,this.scale=null,this.totalInView=0,this.lerp=new o.Point(1,1),this.onShakeComplete=new o.Signal,this.onFlashComplete=new o.Signal,this.onFadeComplete=new o.Signal,this.fx=null,this._targetPosition=new o.Point,this._edge=0,this._position=new o.Point,this._shake={intensity:0,duration:0,horizontal:!1,vertical:!1,shakeBounds:!0,x:0,y:0},this._fxDuration=0,this._fxType=0},o.Camera.FOLLOW_LOCKON=0,o.Camera.FOLLOW_PLATFORMER=1,o.Camera.FOLLOW_TOPDOWN=2,o.Camera.FOLLOW_TOPDOWN_TIGHT=3,o.Camera.SHAKE_BOTH=4,o.Camera.SHAKE_HORIZONTAL=5,o.Camera.SHAKE_VERTICAL=6,o.Camera.ENABLE_FX=!0,o.Camera.prototype={boot:function(){this.displayObject=this.game.world,this.scale=this.game.world.scale,this.game.camera=this,o.Graphics&&o.Camera.ENABLE_FX&&(this.fx=new o.Graphics(this.game),this.game.stage.addChild(this.fx))},preUpdate:function(){this.totalInView=0},follow:function(t,e,i,s){void 0===e&&(e=o.Camera.FOLLOW_LOCKON),void 0===i&&(i=1),void 0===s&&(s=1),this.target=t,this.lerp.set(i,s);var n;switch(e){case o.Camera.FOLLOW_PLATFORMER:var a=this.width/8,r=this.height/3;this.deadzone=new o.Rectangle((this.width-a)/2,(this.height-r)/2-.25*r,a,r);break;case o.Camera.FOLLOW_TOPDOWN:n=Math.max(this.width,this.height)/4,this.deadzone=new o.Rectangle((this.width-n)/2,(this.height-n)/2,n,n);break;case o.Camera.FOLLOW_TOPDOWN_TIGHT:n=Math.max(this.width,this.height)/8,this.deadzone=new o.Rectangle((this.width-n)/2,(this.height-n)/2,n,n);break;case o.Camera.FOLLOW_LOCKON:default:this.deadzone=null}},unfollow:function(){this.target=null},focusOn:function(t){this.setPosition(Math.round(t.x-this.view.halfWidth),Math.round(t.y-this.view.halfHeight))},focusOnXY:function(t,e){this.setPosition(Math.round(t-this.view.halfWidth),Math.round(e-this.view.halfHeight))},shake:function(t,e,i,s,n){return void 0===t&&(t=.05),void 0===e&&(e=500),void 0===i&&(i=!0),void 0===s&&(s=o.Camera.SHAKE_BOTH),void 0===n&&(n=!0),!(!i&&this._shake.duration>0)&&(this._shake.intensity=t,this._shake.duration=e,this._shake.shakeBounds=n,this._shake.x=0,this._shake.y=0,this._shake.horizontal=s===o.Camera.SHAKE_BOTH||s===o.Camera.SHAKE_HORIZONTAL,this._shake.vertical=s===o.Camera.SHAKE_BOTH||s===o.Camera.SHAKE_VERTICAL,!0)},flash:function(t,e,i){return void 0===t&&(t=16777215),void 0===e&&(e=500),void 0===i&&(i=!1),!(!this.fx||!i&&this._fxDuration>0)&&(this.fx.clear(),this.fx.beginFill(t),this.fx.drawRect(0,0,this.width,this.height),this.fx.endFill(),this.fx.alpha=1,this._fxDuration=e,this._fxType=0,!0)},fade:function(t,e,i){return void 0===t&&(t=0),void 0===e&&(e=500),void 0===i&&(i=!1),!(!this.fx||!i&&this._fxDuration>0)&&(this.fx.clear(),this.fx.beginFill(t),this.fx.drawRect(0,0,this.width,this.height),this.fx.endFill(),this.fx.alpha=0,this._fxDuration=e,this._fxType=1,!0)},update:function(){this._fxDuration>0&&this.updateFX(),this._shake.duration>0&&this.updateShake(),this.bounds&&this.checkBounds(),this.roundPx&&(this.view.floor(),this._shake.x=Math.floor(this._shake.x),this._shake.y=Math.floor(this._shake.y)),this.displayObject.position.x=-this.view.x,this.displayObject.position.y=-this.view.y},updateFX:function(){0===this._fxType?(this.fx.alpha-=this.game.time.elapsedMS/this._fxDuration,this.fx.alpha<=0&&(this._fxDuration=0,this.fx.alpha=0,this.onFlashComplete.dispatch())):(this.fx.alpha+=this.game.time.elapsedMS/this._fxDuration,this.fx.alpha>=1&&(this._fxDuration=0,this.fx.alpha=1,this.onFadeComplete.dispatch()))},updateShake:function(){this._shake.duration-=this.game.time.elapsedMS,this._shake.duration<=0?(this.onShakeComplete.dispatch(),this._shake.x=0,this._shake.y=0):(this._shake.horizontal&&(this._shake.x=this.game.rnd.frac()*this._shake.intensity*this.view.width*2-this._shake.intensity*this.view.width),this._shake.vertical&&(this._shake.y=this.game.rnd.frac()*this._shake.intensity*this.view.height*2-this._shake.intensity*this.view.height))},updateTarget:function(){this._targetPosition.x=this.view.x+this.target.worldPosition.x,this._targetPosition.y=this.view.y+this.target.worldPosition.y,this.deadzone?(this._edge=this._targetPosition.x-this.view.x,this._edgethis.deadzone.right&&(this.view.x=this.game.math.linear(this.view.x,this._targetPosition.x-this.deadzone.right,this.lerp.x)),this._edge=this._targetPosition.y-this.view.y,this._edgethis.deadzone.bottom&&(this.view.y=this.game.math.linear(this.view.y,this._targetPosition.y-this.deadzone.bottom,this.lerp.y))):(this.view.x=this.game.math.linear(this.view.x,this._targetPosition.x-this.view.halfWidth,this.lerp.x),this.view.y=this.game.math.linear(this.view.y,this._targetPosition.y-this.view.halfHeight,this.lerp.y)),this.bounds&&this.checkBounds(),this.roundPx&&this.view.floor(),this.displayObject.position.x=-this.view.x,this.displayObject.position.y=-this.view.y},setBoundsToWorld:function(){this.bounds&&this.bounds.copyFrom(this.game.world.bounds)},checkBounds:function(){this.atLimit.x=!1,this.atLimit.y=!1;var t=this.view.x+this._shake.x,e=this.view.right+this._shake.x,i=this.view.y+this._shake.y,s=this.view.bottom+this._shake.y;t<=this.bounds.x*this.scale.x&&(this.atLimit.x=!0,this.view.x=this.bounds.x*this.scale.x,this._shake.shakeBounds||(this._shake.x=0)),e>=this.bounds.right*this.scale.x&&(this.atLimit.x=!0,this.view.x=this.bounds.right*this.scale.x-this.width,this._shake.shakeBounds||(this._shake.x=0)),i<=this.bounds.top*this.scale.y&&(this.atLimit.y=!0,this.view.y=this.bounds.top*this.scale.y,this._shake.shakeBounds||(this._shake.y=0)),s>=this.bounds.bottom*this.scale.y&&(this.atLimit.y=!0,this.view.y=this.bounds.bottom*this.scale.y-this.height,this._shake.shakeBounds||(this._shake.y=0))},setPosition:function(t,e){this.view.x=t,this.view.y=e,this.bounds&&this.checkBounds()},setSize:function(t,e){this.view.width=t,this.view.height=e},reset:function(){this.target=null,this.view.x=0,this.view.y=0,this._shake.duration=0,this.resetFX()},resetFX:function(){this.fx.clear(),this.fx.alpha=0,this._fxDuration=0}},o.Camera.prototype.constructor=o.Camera,Object.defineProperty(o.Camera.prototype,"x",{get:function(){return this.view.x},set:function(t){this.view.x=t,this.bounds&&this.checkBounds()}}),Object.defineProperty(o.Camera.prototype,"y",{get:function(){return this.view.y},set:function(t){this.view.y=t,this.bounds&&this.checkBounds()}}),Object.defineProperty(o.Camera.prototype,"position",{get:function(){return this._position.set(this.view.x,this.view.y),this._position},set:function(t){void 0!==t.x&&(this.view.x=t.x),void 0!==t.y&&(this.view.y=t.y),this.bounds&&this.checkBounds()}}),Object.defineProperty(o.Camera.prototype,"width",{get:function(){return this.view.width},set:function(t){this.view.width=t}}),Object.defineProperty(o.Camera.prototype,"height",{get:function(){return this.view.height},set:function(t){this.view.height=t}}),Object.defineProperty(o.Camera.prototype,"shakeIntensity",{get:function(){return this._shake.intensity},set:function(t){this._shake.intensity=t}}),/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.State=function(){this.game=null,this.key="",this.add=null,this.make=null,this.camera=null,this.cache=null,this.input=null,this.load=null,this.math=null,this.sound=null,this.scale=null,this.stage=null,this.state=null,this.time=null,this.tweens=null,this.world=null,this.particles=null,this.physics=null,this.rnd=null},o.State.prototype={init:function(){},preload:function(){},loadUpdate:function(){},loadRender:function(){},create:function(){},update:function(){},preRender:function(){},render:function(){},resize:function(){},paused:function(){},resumed:function(){},pauseUpdate:function(){},shutdown:function(){}},o.State.prototype.constructor=o.State,/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.StateManager=function(t,e){this.game=t,this.states={},this._pendingState=null,void 0!==e&&null!==e&&(this._pendingState=e),this._clearWorld=!1,this._clearCache=!1,this._created=!1,this._args=[],this.current="",this.onStateChange=new o.Signal,this.onInitCallback=null,this.onPreloadCallback=null,this.onCreateCallback=null,this.onUpdateCallback=null,this.onRenderCallback=null,this.onResizeCallback=null,this.onPreRenderCallback=null,this.onLoadUpdateCallback=null,this.onLoadRenderCallback=null,this.onPausedCallback=null,this.onResumedCallback=null,this.onPauseUpdateCallback=null,this.onShutDownCallback=null},o.StateManager.prototype={boot:function(){this.game.onPause.add(this.pause,this),this.game.onResume.add(this.resume,this),null!==this._pendingState&&"string"!=typeof this._pendingState&&this.add("default",this._pendingState,!0)},add:function(t,e,i){void 0===i&&(i=!1);var s;return e instanceof o.State?s=e:"object"==typeof e?(s=e,s.game=this.game):"function"==typeof e&&(s=new e(this.game)),this.states[t]=s,i&&(this.game.isBooted?this.start(t):this._pendingState=t),s},remove:function(t){this.current===t&&(this.callbackContext=null,this.onInitCallback=null,this.onShutDownCallback=null,this.onPreloadCallback=null,this.onLoadRenderCallback=null,this.onLoadUpdateCallback=null,this.onCreateCallback=null,this.onUpdateCallback=null,this.onPreRenderCallback=null,this.onRenderCallback=null,this.onResizeCallback=null,this.onPausedCallback=null,this.onResumedCallback=null,this.onPauseUpdateCallback=null),delete this.states[t]},start:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1),this.checkState(t)&&(this._pendingState=t,this._clearWorld=e,this._clearCache=i,arguments.length>3&&(this._args=Array.prototype.splice.call(arguments,3)))},restart:function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!1),this._pendingState=this.current,this._clearWorld=t,this._clearCache=e,arguments.length>2&&(this._args=Array.prototype.slice.call(arguments,2))},dummy:function(){},preUpdate:function(){if(this._pendingState&&this.game.isBooted){var t=this.current;if(this.clearCurrentState(),this.setCurrentState(this._pendingState),this.onStateChange.dispatch(this.current,t),this.current!==this._pendingState)return;this._pendingState=null,this.onPreloadCallback?(this.game.load.reset(!0),this.onPreloadCallback.call(this.callbackContext,this.game),0===this.game.load.totalQueuedFiles()&&0===this.game.load.totalQueuedPacks()?this.loadComplete():this.game.load.start()):this.loadComplete()}},clearCurrentState:function(){this.current&&(this.onShutDownCallback&&this.onShutDownCallback.call(this.callbackContext,this.game),this.game.tweens.removeAll(),this.game.camera.reset(),this.game.input.reset(!0),this.game.physics.clear(),this.game.time.removeAll(),this.game.scale.reset(this._clearWorld),this.game.debug&&this.game.debug.reset(),this._clearWorld&&(this.game.world.shutdown(),this._clearCache&&this.game.cache.destroy()))},checkState:function(t){return!!this.states[t]&&!!(this.states[t].preload||this.states[t].create||this.states[t].update||this.states[t].render)},link:function(t){this.states[t].game=this.game,this.states[t].add=this.game.add,this.states[t].make=this.game.make,this.states[t].camera=this.game.camera,this.states[t].cache=this.game.cache,this.states[t].input=this.game.input,this.states[t].load=this.game.load,this.states[t].math=this.game.math,this.states[t].sound=this.game.sound,this.states[t].scale=this.game.scale,this.states[t].state=this,this.states[t].stage=this.game.stage,this.states[t].time=this.game.time,this.states[t].tweens=this.game.tweens,this.states[t].world=this.game.world,this.states[t].particles=this.game.particles,this.states[t].rnd=this.game.rnd,this.states[t].physics=this.game.physics,this.states[t].key=t},unlink:function(t){this.states[t]&&(this.states[t].game=null,this.states[t].add=null,this.states[t].make=null,this.states[t].camera=null,this.states[t].cache=null,this.states[t].input=null,this.states[t].load=null,this.states[t].math=null,this.states[t].sound=null,this.states[t].scale=null,this.states[t].state=null,this.states[t].stage=null,this.states[t].time=null,this.states[t].tweens=null,this.states[t].world=null,this.states[t].particles=null,this.states[t].rnd=null,this.states[t].physics=null)},setCurrentState:function(t){this.callbackContext=this.states[t],this.link(t),this.onInitCallback=this.states[t].init||this.dummy,this.onPreloadCallback=this.states[t].preload||null,this.onLoadRenderCallback=this.states[t].loadRender||null,this.onLoadUpdateCallback=this.states[t].loadUpdate||null,this.onCreateCallback=this.states[t].create||null,this.onUpdateCallback=this.states[t].update||null,this.onPreRenderCallback=this.states[t].preRender||null,this.onRenderCallback=this.states[t].render||null,this.onResizeCallback=this.states[t].resize||null,this.onPausedCallback=this.states[t].paused||null,this.onResumedCallback=this.states[t].resumed||null,this.onPauseUpdateCallback=this.states[t].pauseUpdate||null,this.onShutDownCallback=this.states[t].shutdown||this.dummy,""!==this.current&&this.game.physics.reset(),this.current=t,this._created=!1,this.onInitCallback.apply(this.callbackContext,this._args),t===this._pendingState&&(this._args=[]),this.game._kickstart=!0},getCurrentState:function(){return this.states[this.current]},loadComplete:function(){!1===this._created&&this.onLoadUpdateCallback&&this.onLoadUpdateCallback.call(this.callbackContext,this.game),!1===this._created&&this.onCreateCallback?(this._created=!0,this.onCreateCallback.call(this.callbackContext,this.game)):this._created=!0},pause:function(){this._created&&this.onPausedCallback&&this.onPausedCallback.call(this.callbackContext,this.game)},resume:function(){this._created&&this.onResumedCallback&&this.onResumedCallback.call(this.callbackContext,this.game)},update:function(){this._created?this.onUpdateCallback&&this.onUpdateCallback.call(this.callbackContext,this.game):this.onLoadUpdateCallback&&this.onLoadUpdateCallback.call(this.callbackContext,this.game)},pauseUpdate:function(){this._created?this.onPauseUpdateCallback&&this.onPauseUpdateCallback.call(this.callbackContext,this.game):this.onLoadUpdateCallback&&this.onLoadUpdateCallback.call(this.callbackContext,this.game)},preRender:function(t){this._created&&this.onPreRenderCallback&&this.onPreRenderCallback.call(this.callbackContext,this.game,t)},resize:function(t,e){this.onResizeCallback&&this.onResizeCallback.call(this.callbackContext,t,e)},render:function(){this._created?this.onRenderCallback&&(this.game.renderType===o.CANVAS?(this.game.context.save(),this.game.context.setTransform(1,0,0,1,0,0),this.onRenderCallback.call(this.callbackContext,this.game),this.game.context.restore()):this.onRenderCallback.call(this.callbackContext,this.game)):this.onLoadRenderCallback&&this.onLoadRenderCallback.call(this.callbackContext,this.game)},destroy:function(){this._clearWorld=!0,this._clearCache=!0,this.clearCurrentState(),this.callbackContext=null,this.onInitCallback=null,this.onShutDownCallback=null,this.onPreloadCallback=null,this.onLoadRenderCallback=null,this.onLoadUpdateCallback=null,this.onCreateCallback=null,this.onUpdateCallback=null,this.onRenderCallback=null,this.onPausedCallback=null,this.onResumedCallback=null,this.onPauseUpdateCallback=null,this.game=null,this.states={},this._pendingState=null,this.current=""}},o.StateManager.prototype.constructor=o.StateManager,Object.defineProperty(o.StateManager.prototype,"created",{get:function(){return this._created}}),/** +* @author Miller Medeiros http://millermedeiros.github.com/js-signals/ +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Signal=function(){},o.Signal.prototype={_bindings:null,_prevParams:null,memorize:!1,_shouldPropagate:!0,active:!0,_boundDispatch:!1,validateListener:function(t,e){if("function"!=typeof t)throw new Error("Phaser.Signal: listener is a required param of {fn}() and should be a Function.".replace("{fn}",e))},_registerListener:function(t,e,i,s,n){var a=this._indexOfListener(t,i),r;if(-1!==a){if(r=this._bindings[a],r.isOnce()!==e)throw new Error("You cannot add"+(e?"":"Once")+"() then add"+(e?"Once":"")+"() the same listener without removing the relationship first.")}else r=new o.SignalBinding(this,t,e,i,s,n),this._addBinding(r);return this.memorize&&this._prevParams&&r.execute(this._prevParams),r},_addBinding:function(t){this._bindings||(this._bindings=[]);var e=this._bindings.length;do{e--}while(this._bindings[e]&&t._priority<=this._bindings[e]._priority);this._bindings.splice(e+1,0,t)},_indexOfListener:function(t,e){if(!this._bindings)return-1;void 0===e&&(e=null);for(var i=this._bindings.length,s;i--;)if(s=this._bindings[i],s._listener===t&&s.context===e)return i;return-1},has:function(t,e){return-1!==this._indexOfListener(t,e)},add:function(t,e,i){this.validateListener(t,"add");var s=[];if(arguments.length>3)for(var n=3;n3)for(var n=3;n +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.SignalBinding=function(t,e,i,s,n,o){this._listener=e,i&&(this._isOnce=!0),null!=s&&(this.context=s),this._signal=t,n&&(this._priority=n),o&&o.length&&(this._args=o)},o.SignalBinding.prototype={context:null,_isOnce:!1,_priority:0,_args:null,callCount:0,active:!0,params:null,execute:function(t){var e,i;return this.active&&this._listener&&(i=this.params?this.params.concat(t):t,this._args&&(i=i.concat(this._args)),e=this._listener.apply(this.context,i),this.callCount++,this._isOnce&&this.detach()),e},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal,delete this._listener,delete this.context},toString:function(){return"[Phaser.SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}},o.SignalBinding.prototype.constructor=o.SignalBinding,/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Filter=function(t,e,i){this.game=t,this.type=o.WEBGL_FILTER,this.passes=[this],this.shaders=[],this.dirty=!0,this.padding=0,this.prevPoint=new o.Point;var s=new Date;if(this.uniforms={resolution:{type:"2f",value:{x:256,y:256}},time:{type:"1f",value:0},mouse:{type:"2f",value:{x:0,y:0}},date:{type:"4fv",value:[s.getFullYear(),s.getMonth(),s.getDate(),60*s.getHours()*60+60*s.getMinutes()+s.getSeconds()]},sampleRate:{type:"1f",value:44100},iChannel0:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel1:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel2:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel3:{type:"sampler2D",value:null,textureData:{repeat:!0}}},e)for(var n in e)this.uniforms[n]=e[n];this.fragmentSrc=i||""},o.Filter.prototype={init:function(){},setResolution:function(t,e){this.uniforms.resolution.value.x=t,this.uniforms.resolution.value.y=e},update:function(t){if(void 0!==t){var e=t.x/this.game.width,i=1-t.y/this.game.height;e===this.prevPoint.x&&i===this.prevPoint.y||(this.uniforms.mouse.value.x=e.toFixed(2),this.uniforms.mouse.value.y=i.toFixed(2),this.prevPoint.set(e,i))}this.uniforms.time.value=this.game.time.totalElapsedSeconds()},addToWorld:function(t,e,i,s,n,o){void 0===n&&(n=0),void 0===o&&(o=0),void 0!==i&&null!==i?this.width=i:i=this.width,void 0!==s&&null!==s?this.height=s:s=this.height;var a=this.game.add.image(t,e,"__default");return a.width=i,a.height=s,a.anchor.set(n,o),a.filters=[this],a},destroy:function(){this.game=null}},o.Filter.prototype.constructor=o.Filter,Object.defineProperty(o.Filter.prototype,"width",{get:function(){return this.uniforms.resolution.value.x},set:function(t){this.uniforms.resolution.value.x=t}}),Object.defineProperty(o.Filter.prototype,"height",{get:function(){return this.uniforms.resolution.value.y},set:function(t){this.uniforms.resolution.value.y=t}}),/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Plugin=function(t,e){void 0===e&&(e=null),this.game=t,this.parent=e,this.active=!1,this.visible=!1,this.hasPreUpdate=!1,this.hasUpdate=!1,this.hasPostUpdate=!1,this.hasRender=!1,this.hasPostRender=!1},o.Plugin.prototype={preUpdate:function(){},update:function(){},render:function(){},postRender:function(){},destroy:function(){this.game=null,this.parent=null,this.active=!1,this.visible=!1}},o.Plugin.prototype.constructor=o.Plugin,/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.PluginManager=function(t){this.game=t,this.plugins=[],this._len=0,this._i=0},o.PluginManager.prototype={add:function(t){var e=Array.prototype.slice.call(arguments,1),i=!1;return"function"==typeof t?t=new t(this.game,this):(t.game=this.game,t.parent=this),"function"==typeof t.preUpdate&&(t.hasPreUpdate=!0,i=!0),"function"==typeof t.update&&(t.hasUpdate=!0,i=!0),"function"==typeof t.postUpdate&&(t.hasPostUpdate=!0,i=!0),"function"==typeof t.render&&(t.hasRender=!0,i=!0),"function"==typeof t.postRender&&(t.hasPostRender=!0,i=!0),i?((t.hasPreUpdate||t.hasUpdate||t.hasPostUpdate)&&(t.active=!0),(t.hasRender||t.hasPostRender)&&(t.visible=!0),this._len=this.plugins.push(t),"function"==typeof t.init&&t.init.apply(t,e),t):null},remove:function(t,e){for(void 0===e&&(e=!0),this._i=this._len;this._i--;)if(this.plugins[this._i]===t)return e&&t.destroy(),this.plugins.splice(this._i,1),void this._len--},removeAll:function(){for(this._i=this._len;this._i--;)this.plugins[this._i].destroy();this.plugins.length=0,this._len=0},preUpdate:function(){for(this._i=this._len;this._i--;)this.plugins[this._i].active&&this.plugins[this._i].hasPreUpdate&&this.plugins[this._i].preUpdate()},update:function(){for(this._i=this._len;this._i--;)this.plugins[this._i].active&&this.plugins[this._i].hasUpdate&&this.plugins[this._i].update()},postUpdate:function(){for(this._i=this._len;this._i--;)this.plugins[this._i].active&&this.plugins[this._i].hasPostUpdate&&this.plugins[this._i].postUpdate()},render:function(){for(this._i=this._len;this._i--;)this.plugins[this._i].visible&&this.plugins[this._i].hasRender&&this.plugins[this._i].render()},postRender:function(){for(this._i=this._len;this._i--;)this.plugins[this._i].visible&&this.plugins[this._i].hasPostRender&&this.plugins[this._i].postRender()},destroy:function(){this.removeAll(),this.game=null}},o.PluginManager.prototype.constructor=o.PluginManager,/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Stage=function(t){this.game=t,PIXI.DisplayObjectContainer.call(this),this.name="_stage_root",this.disableVisibilityChange=!1,this.exists=!0,this.worldTransform=new PIXI.Matrix,this.stage=this,this.currentRenderOrderID=0,this._hiddenVar="hidden",this._onChange=null,this._bgColor={r:0,g:0,b:0,a:0,color:0,rgba:"#000000"},this.game.transparent||(this._bgColor.a=1),t.config&&this.parseConfig(t.config)},o.Stage.prototype=Object.create(PIXI.DisplayObjectContainer.prototype),o.Stage.prototype.constructor=o.Stage,o.Stage.prototype.parseConfig=function(t){t.disableVisibilityChange&&(this.disableVisibilityChange=t.disableVisibilityChange),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor)},o.Stage.prototype.boot=function(){o.DOM.getOffset(this.game.canvas,this.offset),o.Canvas.setUserSelect(this.game.canvas,"none"),o.Canvas.setTouchAction(this.game.canvas,"none"),this.checkVisibility()},o.Stage.prototype.preUpdate=function(){this.currentRenderOrderID=0;for(var t=0;t +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Group=function(t,e,i,s,n,a){void 0===s&&(s=!1),void 0===n&&(n=!1),void 0===a&&(a=o.Physics.ARCADE),this.game=t,void 0===e&&(e=t.world),this.name=i||"group",this.z=0,PIXI.DisplayObjectContainer.call(this),s?(this.game.stage.addChild(this),this.z=this.game.stage.children.length):e&&(e.addChild(this),this.z=e.children.length),this.type=o.GROUP,this.physicsType=o.GROUP,this.alive=!0,this.exists=!0,this.ignoreDestroy=!1,this.pendingDestroy=!1,this.classType=o.Sprite,this.cursor=null,this.inputEnableChildren=!1,this.onChildInputDown=new o.Signal,this.onChildInputUp=new o.Signal,this.onChildInputOver=new o.Signal,this.onChildInputOut=new o.Signal,this.enableBody=n,this.enableBodyDebug=!1,this.physicsBodyType=a,this.physicsSortDirection=null,this.onDestroy=new o.Signal,this.cursorIndex=0,this.fixedToCamera=!1,this.cameraOffset=new o.Point,this.hash=[],this._sortProperty="z"},o.Group.prototype=Object.create(PIXI.DisplayObjectContainer.prototype),o.Group.prototype.constructor=o.Group,o.Group.RETURN_NONE=0,o.Group.RETURN_TOTAL=1,o.Group.RETURN_CHILD=2,o.Group.RETURN_ALL=3,o.Group.SORT_ASCENDING=-1,o.Group.SORT_DESCENDING=1,o.Group.prototype.add=function(t,e,i){return void 0===e&&(e=!1),t.parent===this?t:(t.body&&t.parent&&t.parent.hash&&t.parent.removeFromHash(t),void 0===i?(t.z=this.children.length,this.addChild(t)):(this.addChildAt(t,i),this.updateZ()),this.enableBody&&t.hasOwnProperty("body")&&null===t.body?this.game.physics.enable(t,this.physicsBodyType):t.body&&this.addToHash(t),!this.inputEnableChildren||t.input&&!t.inputEnabled||(t.inputEnabled=!0),!e&&t.events&&t.events.onAddedToGroup$dispatch(t,this),null===this.cursor&&(this.cursor=t),t)},o.Group.prototype.addAt=function(t,e,i){this.add(t,i,e)},o.Group.prototype.addToHash=function(t){if(t.parent===this){if(-1===this.hash.indexOf(t))return this.hash.push(t),!0}return!1},o.Group.prototype.removeFromHash=function(t){if(t){var e=this.hash.indexOf(t);if(-1!==e)return this.hash.splice(e,1),!0}return!1},o.Group.prototype.addMultiple=function(t,e){if(t instanceof o.Group)t.moveAll(this,e);else if(Array.isArray(t))for(var i=0;i=this.children.length?-1:this.getChildAt(t)},o.Group.prototype.create=function(t,e,i,s,n,o){void 0===n&&(n=!0);var a=new this.classType(this.game,t,e,i,s);return a.exists=n,a.visible=n,a.alive=n,this.add(a,!1,o)},o.Group.prototype.createMultiple=function(t,e,i,s){void 0===i&&(i=0),void 0===s&&(s=!1),Array.isArray(e)||(e=[e]),Array.isArray(i)||(i=[i]);var n=this,o=[];return e.forEach(function(e){i.forEach(function(i){for(var a=0;athis.children.length||-1===t&&-1===e)return!1;for(var r=new o.Rectangle(0,0,i,s),h=t*i,l=e*s,c=a;cthis.children.length-1&&(t=0),this.cursor)return this.cursorIndex=t,this.cursor=this.children[this.cursorIndex],this.cursor},o.Group.prototype.next=function(){if(this.cursor)return this.cursorIndex>=this.children.length-1?this.cursorIndex=0:this.cursorIndex++,this.cursor=this.children[this.cursorIndex],this.cursor},o.Group.prototype.previous=function(){if(this.cursor)return 0===this.cursorIndex?this.cursorIndex=this.children.length-1:this.cursorIndex--,this.cursor=this.children[this.cursorIndex],this.cursor},o.Group.prototype.swap=function(t,e){this.swapChildren(t,e),this.updateZ()},o.Group.prototype.bringToTop=function(t){return t.parent===this&&this.getIndex(t)0&&(this.remove(t,!1,!0),this.addAt(t,0,!0)),t},o.Group.prototype.moveUp=function(t){if(t.parent===this&&this.getIndex(t)0){var e=this.getIndex(t),i=this.getAt(e-1);i&&this.swap(t,i)}return t},o.Group.prototype.xy=function(t,e,i){if(t<0||t>this.children.length)return-1;this.getChildAt(t).x=e,this.getChildAt(t).y=i},o.Group.prototype.reverse=function(){this.children.reverse(),this.updateZ()},o.Group.prototype.getIndex=function(t){return this.children.indexOf(t)},o.Group.prototype.getByName=function(t){for(var e=0;e0))return!1;var o=e.length;return 1===o?0===s?t[e[0]]=i:1===s?t[e[0]]+=i:2===s?t[e[0]]-=i:3===s?t[e[0]]*=i:4===s&&(t[e[0]]/=i):2===o?0===s?t[e[0]][e[1]]=i:1===s?t[e[0]][e[1]]+=i:2===s?t[e[0]][e[1]]-=i:3===s?t[e[0]][e[1]]*=i:4===s&&(t[e[0]][e[1]]/=i):3===o?0===s?t[e[0]][e[1]][e[2]]=i:1===s?t[e[0]][e[1]][e[2]]+=i:2===s?t[e[0]][e[1]][e[2]]-=i:3===s?t[e[0]][e[1]][e[2]]*=i:4===s&&(t[e[0]][e[1]][e[2]]/=i):4===o&&(0===s?t[e[0]][e[1]][e[2]][e[3]]=i:1===s?t[e[0]][e[1]][e[2]][e[3]]+=i:2===s?t[e[0]][e[1]][e[2]][e[3]]-=i:3===s?t[e[0]][e[1]][e[2]][e[3]]*=i:4===s&&(t[e[0]][e[1]][e[2]][e[3]]/=i)),!0},o.Group.prototype.checkProperty=function(t,e,i,s){return void 0===s&&(s=!1),!(!o.Utils.getProperty(t,e)&&s)&&o.Utils.getProperty(t,e)===i},o.Group.prototype.set=function(t,e,i,s,n,o,a){if(void 0===a&&(a=!1),e=e.split("."),void 0===s&&(s=!1),void 0===n&&(n=!1),(!1===s||s&&t.alive)&&(!1===n||n&&t.visible))return this.setProperty(t,e,i,o,a)},o.Group.prototype.setAll=function(t,e,i,s,n,o){void 0===i&&(i=!1),void 0===s&&(s=!1),void 0===o&&(o=!1),t=t.split("."),n=n||0;for(var a=0;a2){i=[];for(var s=2;s2){n=[];for(var o=2;o2){i=[null];for(var s=2;s2){i=[null];for(var s=2;s2){i=[null];for(var s=2;se[this._sortProperty]?1:t.ze[this._sortProperty]?-1:0},o.Group.prototype.iterate=function(t,e,i,s,n,a){if(0===this.children.length){if(i===o.Group.RETURN_TOTAL)return 0;if(i===o.Group.RETURN_ALL)return[]}var r=0;if(i===o.Group.RETURN_ALL)var h=[];for(var l=0;l0)return this.children[this.children.length-1]},o.Group.prototype.getBottom=function(){if(this.children.length>0)return this.children[0]},o.Group.prototype.getClosestTo=function(t,e,i){for(var s=Number.MAX_VALUE,n=0,a=null,r=0;rs&&(!e||e.call(i,h,n))&&(s=n,a=h)}return a},o.Group.prototype.countLiving=function(){return this.iterate("alive",!0,o.Group.RETURN_TOTAL)},o.Group.prototype.countDead=function(){return this.iterate("alive",!1,o.Group.RETURN_TOTAL)},o.Group.prototype.getRandom=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this.children.length),0===e?null:o.ArrayUtils.getRandomItem(this.children,t,e)},o.Group.prototype.getRandomExists=function(t,e){var i=this.getAll("exists",!0,t,e);return this.game.rnd.pick(i)},o.Group.prototype.getAll=function(t,e,i,s){void 0===i&&(i=0),void 0===s&&(s=this.children.length);for(var n=[],o=i;o0&&t instanceof o.Group){do{t.add(this.children[0],e)}while(this.children.length>0);this.hash=[],this.cursor=null}return t},o.Group.prototype.removeAll=function(t,e,i){if(void 0===t&&(t=!1),void 0===e&&(e=!1),void 0===i&&(i=!1),0!==this.children.length){do{!e&&this.children[0].events&&this.children[0].events.onRemovedFromGroup$dispatch(this.children[0],this);var s=this.removeChild(this.children[0]);this.removeFromHash(s),t&&s&&s.destroy(!0,i)}while(this.children.length>0);this.hash=[],this.cursor=null}},o.Group.prototype.removeBetween=function(t,e,i,s){if(void 0===e&&(e=this.children.length-1),void 0===i&&(i=!1),void 0===s&&(s=!1),0!==this.children.length){if(t>e||t<0||e>this.children.length)return!1;for(var n=e;n>=t;){!s&&this.children[n].events&&this.children[n].events.onRemovedFromGroup$dispatch(this.children[n],this);var o=this.removeChild(this.children[n]);this.removeFromHash(o),i&&o&&o.destroy(!0),this.cursor===this.children[n]&&(this.cursor=null),n--}this.updateZ()}},o.Group.prototype.destroy=function(t,e){null===this.game||this.ignoreDestroy||(void 0===t&&(t=!0),void 0===e&&(e=!1),this.onDestroy.dispatch(this,t,e),this.removeAll(t),this.cursor=null,this.filters=null,this.pendingDestroy=!1,e||(this.parent&&this.parent.removeChild(this),this.game=null,this.exists=!1))},Object.defineProperty(o.Group.prototype,"total",{get:function(){return this.iterate("exists",!0,o.Group.RETURN_TOTAL)}}),Object.defineProperty(o.Group.prototype,"length",{get:function(){return this.children.length}}),Object.defineProperty(o.Group.prototype,"angle",{get:function(){return o.Math.radToDeg(this.rotation)},set:function(t){this.rotation=o.Math.degToRad(t)}}),Object.defineProperty(o.Group.prototype,"centerX",{get:function(){return this.getBounds(this.parent).centerX},set:function(t){var e=this.getBounds(this.parent),i=this.x-e.x;this.x=t+i-e.halfWidth}}),Object.defineProperty(o.Group.prototype,"centerY",{get:function(){return this.getBounds(this.parent).centerY},set:function(t){var e=this.getBounds(this.parent),i=this.y-e.y;this.y=t+i-e.halfHeight}}),Object.defineProperty(o.Group.prototype,"left",{get:function(){return this.getBounds(this.parent).left},set:function(t){var e=this.getBounds(this.parent),i=this.x-e.x;this.x=t+i}}),Object.defineProperty(o.Group.prototype,"right",{get:function(){return this.getBounds(this.parent).right},set:function(t){var e=this.getBounds(this.parent),i=this.x-e.x;this.x=t+i-e.width}}),Object.defineProperty(o.Group.prototype,"top",{get:function(){return this.getBounds(this.parent).top},set:function(t){var e=this.getBounds(this.parent),i=this.y-e.y;this.y=t+i}}),Object.defineProperty(o.Group.prototype,"bottom",{get:function(){return this.getBounds(this.parent).bottom},set:function(t){var e=this.getBounds(this.parent),i=this.y-e.y;this.y=t+i-e.height}}),/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.World=function(t){o.Group.call(this,t,null,"__world",!1),this.bounds=new o.Rectangle(0,0,t.width,t.height),this.camera=null,this._definedSize=!1,this._width=t.width,this._height=t.height,this.game.state.onStateChange.add(this.stateChange,this)},o.World.prototype=Object.create(o.Group.prototype),o.World.prototype.constructor=o.World,o.World.prototype.boot=function(){this.camera=new o.Camera(this.game,0,0,0,this.game.width,this.game.height),this.game.stage.addChild(this),this.camera.boot()},o.World.prototype.stateChange=function(){this.x=0,this.y=0,this.camera.reset()},o.World.prototype.setBounds=function(t,e,i,s){this._definedSize=!0,this._width=i,this._height=s,this.bounds.setTo(t,e,i,s),this.x=t,this.y=e,this.camera.bounds&&this.camera.bounds.setTo(t,e,Math.max(i,this.game.width),Math.max(s,this.game.height)),this.game.physics.setBoundsToWorld()},o.World.prototype.resize=function(t,e){this._definedSize&&(tthis.bounds.right&&(t.x=this.bounds.left)),n&&(t.y+t._currentBounds.heightthis.bounds.bottom&&(t.y=this.bounds.top))):(s&&t.x+ethis.bounds.right&&(t.x=this.bounds.left-e),n&&t.y+ethis.bounds.bottom&&(t.y=this.bounds.top-e))},Object.defineProperty(o.World.prototype,"width",{get:function(){return this.bounds.width},set:function(t){t +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Game=function(t,e,i,s,n,a,r,h){return this.id=o.GAMES.push(this)-1,this.config=null,this.physicsConfig=h,this.parent="",this.width=800,this.height=600,this.resolution=1,this._width=800,this._height=600,this.transparent=!1,this.antialias=!0,this.preserveDrawingBuffer=!1,this.clearBeforeRender=!0,this.renderer=null,this.renderType=o.AUTO,this.state=null,this.isBooted=!1,this.isRunning=!1,this.raf=null,this.add=null,this.make=null,this.cache=null,this.input=null,this.load=null,this.math=null,this.net=null,this.scale=null,this.sound=null,this.stage=null,this.time=null,this.tweens=null,this.world=null,this.physics=null,this.plugins=null,this.rnd=null,this.device=o.Device,this.camera=null,this.canvas=null,this.context=null,this.debug=null,this.particles=null,this.create=null,this.lockRender=!1,this.stepping=!1,this.pendingStep=!1,this.stepCount=0,this.onPause=null,this.onResume=null,this.onBlur=null,this.onFocus=null,this._paused=!1,this._codePaused=!1,this.currentUpdateID=0,this.updatesThisFrame=1,this._deltaTime=0,this._lastCount=0,this._spiraling=0,this._kickstart=!0,this.fpsProblemNotifier=new o.Signal,this.forceSingleUpdate=!0,this._nextFpsNotification=0,1===arguments.length&&"object"==typeof arguments[0]?this.parseConfig(arguments[0]):(this.config={enableDebug:!0},void 0!==t&&(this._width=t),void 0!==e&&(this._height=e),void 0!==i&&(this.renderType=i),void 0!==s&&(this.parent=s),void 0!==a&&(this.transparent=a),void 0!==r&&(this.antialias=r),this.rnd=new o.RandomDataGenerator([(Date.now()*Math.random()).toString()]),this.state=new o.StateManager(this,n)),this.device.whenReady(this.boot,this),this},o.Game.prototype={parseConfig:function(t){this.config=t,void 0===t.enableDebug&&(this.config.enableDebug=!0),t.width&&(this._width=t.width),t.height&&(this._height=t.height),t.renderer&&(this.renderType=t.renderer),t.parent&&(this.parent=t.parent),void 0!==t.transparent&&(this.transparent=t.transparent),void 0!==t.antialias&&(this.antialias=t.antialias),t.resolution&&(this.resolution=t.resolution),void 0!==t.preserveDrawingBuffer&&(this.preserveDrawingBuffer=t.preserveDrawingBuffer),t.physicsConfig&&(this.physicsConfig=t.physicsConfig);var e=[(Date.now()*Math.random()).toString()];t.seed&&(e=t.seed),this.rnd=new o.RandomDataGenerator(e);var i=null;t.state&&(i=t.state),this.state=new o.StateManager(this,i)},boot:function(){this.isBooted||(this.onPause=new o.Signal,this.onResume=new o.Signal,this.onBlur=new o.Signal,this.onFocus=new o.Signal,this.isBooted=!0,PIXI.game=this,this.math=o.Math,this.scale=new o.ScaleManager(this,this._width,this._height),this.stage=new o.Stage(this),this.setUpRenderer(),this.world=new o.World(this),this.add=new o.GameObjectFactory(this),this.make=new o.GameObjectCreator(this),this.cache=new o.Cache(this),this.load=new o.Loader(this),this.time=new o.Time(this),this.tweens=new o.TweenManager(this),this.input=new o.Input(this),this.sound=new o.SoundManager(this),this.physics=new o.Physics(this,this.physicsConfig),this.particles=new o.Particles(this),this.create=new o.Create(this),this.plugins=new o.PluginManager(this),this.net=new o.Net(this),this.time.boot(),this.stage.boot(),this.world.boot(),this.scale.boot(),this.input.boot(),this.sound.boot(),this.state.boot(),this.config.enableDebug?(this.debug=new o.Utils.Debug(this),this.debug.boot()):this.debug={preUpdate:function(){},update:function(){},reset:function(){}},this.showDebugHeader(),this.isRunning=!0,this.config&&this.config.forceSetTimeOut?this.raf=new o.RequestAnimationFrame(this,this.config.forceSetTimeOut):this.raf=new o.RequestAnimationFrame(this,!1),this._kickstart=!0,window.focus&&(!window.PhaserGlobal||window.PhaserGlobal&&!window.PhaserGlobal.stopFocus)&&window.focus(),this.raf.start())},showDebugHeader:function(){if(!window.PhaserGlobal||!window.PhaserGlobal.hideBanner){var t=o.VERSION,e="Canvas",i="HTML Audio",s=1;if(this.renderType===o.WEBGL?(e="WebGL",s++):this.renderType===o.HEADLESS&&(e="Headless"),this.device.webAudio&&(i="WebAudio",s++),this.device.chrome)for(var n=["%c %c %c @orange-games/phaser v"+t+" | Pixi.js | "+e+" | "+i+" %c %c %c http://phaser.io %c♥%c♥%c♥","background: #F47820","background: #ED873F","color: #ffffff; background: #DD6612;","background: #ED873F","background: #F47820","background: #ffffff"],a=0;a<3;a++)a1&&!this.forceSingleUpdate)this.time.time>this._nextFpsNotification&&(this._nextFpsNotification=this.time.time+1e4,this.fpsProblemNotifier.dispatch()),this._deltaTime=0,this._spiraling=0,this.updateRender(this.time.slowMotion*this.time.desiredFps);else{var e=1e3*this.time.slowMotion/this.time.desiredFps;this._deltaTime+=Math.max(Math.min(3*e,this.time.elapsed),0);var i=0;for(this.updatesThisFrame=Math.floor(this._deltaTime/e),this.forceSingleUpdate&&(this.updatesThisFrame=Math.min(1,this.updatesThisFrame));this._deltaTime>=e&&(this._deltaTime-=e,this.currentUpdateID=i,this.updateLogic(this.time.desiredFpsMult),i++,!this.forceSingleUpdate||1!==i);)this.time.refresh();i>this._lastCount?this._spiraling++:i +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Input=function(t){this.game=t,this.hitCanvas=null,this.hitContext=null,this.moveCallbacks=[],this.customCandidateHandler=null,this.customCandidateHandlerContext=null,this.pollRate=0,this.enabled=!0,this.multiInputOverride=o.Input.MOUSE_TOUCH_COMBINE,this.position=null,this.speed=null,this.circle=null,this.scale=null,this.maxPointers=-1,this.tapRate=200,this.doubleTapRate=300,this.holdRate=2e3,this.justPressedRate=200,this.justReleasedRate=200,this.recordPointerHistory=!1,this.recordRate=100,this.recordLimit=100,this.pointer1=null,this.pointer2=null,this.pointer3=null,this.pointer4=null,this.pointer5=null,this.pointer6=null,this.pointer7=null,this.pointer8=null,this.pointer9=null,this.pointer10=null,this.pointers=[],this.activePointer=null,this.mousePointer=null,this.mouse=null,this.keyboard=null,this.touch=null,this.mspointer=null,this.gamepad=null,this.resetLocked=!1,this.onDown=null,this.onUp=null,this.onTap=null,this.onHold=null,this.minPriorityID=0,this.interactiveItems=new o.ArraySet,this._localPoint=new o.Point,this._pollCounter=0,this._oldPosition=null,this._x=0,this._y=0},o.Input.MOUSE_OVERRIDES_TOUCH=0,o.Input.TOUCH_OVERRIDES_MOUSE=1,o.Input.MOUSE_TOUCH_COMBINE=2,o.Input.MAX_POINTERS=10,o.Input.prototype={boot:function(){this.mousePointer=new o.Pointer(this.game,0,o.PointerMode.CURSOR),this.addPointer(),this.addPointer(),this.mouse=new o.Mouse(this.game),this.touch=new o.Touch(this.game),this.mspointer=new o.MSPointer(this.game),o.Keyboard&&(this.keyboard=new o.Keyboard(this.game)),o.Gamepad&&(this.gamepad=new o.Gamepad(this.game)),this.onDown=new o.Signal,this.onUp=new o.Signal,this.onTap=new o.Signal,this.onHold=new o.Signal,this.scale=new o.Point(1,1),this.speed=new o.Point,this.position=new o.Point,this._oldPosition=new o.Point,this.circle=new o.Circle(0,0,44),this.activePointer=this.mousePointer,this.hitCanvas=PIXI.CanvasPool.create(this,1,1),this.hitContext=this.hitCanvas.getContext("2d"),this.mouse.start(),this.touch.start(),this.mspointer.start(),this.mousePointer.active=!0,this.keyboard&&this.keyboard.start();var t=this;this._onClickTrampoline=function(e){t.onClickTrampoline(e)},this.game.canvas.addEventListener("click",this._onClickTrampoline,!1)},destroy:function(){this.mouse.stop(),this.touch.stop(),this.mspointer.stop(),this.keyboard&&this.keyboard.stop(),this.gamepad&&this.gamepad.stop(),this.moveCallbacks=[],PIXI.CanvasPool.remove(this),this.game.canvas.removeEventListener("click",this._onClickTrampoline)},setInteractiveCandidateHandler:function(t,e){this.customCandidateHandler=t,this.customCandidateHandlerContext=e},addMoveCallback:function(t,e){this.moveCallbacks.push({callback:t,context:e})},deleteMoveCallback:function(t,e){for(var i=this.moveCallbacks.length;i--;)if(this.moveCallbacks[i].callback===t&&this.moveCallbacks[i].context===e)return void this.moveCallbacks.splice(i,1)},addPointer:function(){if(this.pointers.length>=o.Input.MAX_POINTERS)return null;var t=this.pointers.length+1,e=new o.Pointer(this.game,t,o.PointerMode.TOUCH);return this.pointers.push(e),this["pointer"+t]=e,e},update:function(){if(this.keyboard&&this.keyboard.update(),this.pollRate>0&&this._pollCounter=0&&this.countActivePointers(this.maxPointers)>=this.maxPointers)return null;if(!this.pointer1.active)return this.pointer1.start(t);if(!this.pointer2.active)return this.pointer2.start(t);for(var e=2;e0;i++){this.pointers[i].active&&e--}return t-e},getPointer:function(t){void 0===t&&(t=!1);for(var e=0;e=a&&this._localPoint.x=r&&this._localPoint.y=a&&this._localPoint.x=r&&this._localPoint.y0&&this._pollCounter +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Mouse=function(t){this.game=t,this.input=t.input,this.callbackContext=this.game,this.mouseDownCallback=null,this.mouseUpCallback=null,this.mouseOutCallback=null,this.mouseOverCallback=null,this.mouseWheelCallback=null,this.capture=!1,this.button=-1,this.wheelDelta=0,this.enabled=!0,this.locked=!1,this.stopOnGameOut=!1,this.pointerLock=new o.Signal,this.event=null,this._onMouseDown=null,this._onMouseMove=null,this._onMouseUp=null,this._onMouseOut=null,this._onMouseOver=null,this._onMouseWheel=null,this._wheelEvent=null},o.Mouse.NO_BUTTON=-1,o.Mouse.LEFT_BUTTON=0,o.Mouse.MIDDLE_BUTTON=1,o.Mouse.RIGHT_BUTTON=2,o.Mouse.BACK_BUTTON=3,o.Mouse.FORWARD_BUTTON=4,o.Mouse.WHEEL_UP=1,o.Mouse.WHEEL_DOWN=-1,o.Mouse.prototype={start:function(){if((!this.game.device.android||!1!==this.game.device.chrome)&&null===this._onMouseDown){var t=this;this._onMouseDown=function(e){return t.onMouseDown(e)},this._onMouseMove=function(e){return t.onMouseMove(e)},this._onMouseUp=function(e){return t.onMouseUp(e)},this._onMouseUpGlobal=function(e){return t.onMouseUpGlobal(e)},this._onMouseOutGlobal=function(e){return t.onMouseOutGlobal(e)},this._onMouseOut=function(e){return t.onMouseOut(e)},this._onMouseOver=function(e){return t.onMouseOver(e)},this._onMouseWheel=function(e){return t.onMouseWheel(e)};var e=this.game.canvas;e.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("mousemove",this._onMouseMove,!0),e.addEventListener("mouseup",this._onMouseUp,!0),this.game.device.cocoonJS||(window.addEventListener("mouseup",this._onMouseUpGlobal,!0),window.addEventListener("mouseout",this._onMouseOutGlobal,!0),e.addEventListener("mouseover",this._onMouseOver,!0),e.addEventListener("mouseout",this._onMouseOut,!0));var i=this.game.device.wheelEvent;i&&(e.addEventListener(i,this._onMouseWheel,!0),"mousewheel"===i?this._wheelEvent=new s(-.025,1):"DOMMouseScroll"===i&&(this._wheelEvent=new s(1,1)))}},onMouseDown:function(t){this.event=t,this.capture&&t.preventDefault(),this.mouseDownCallback&&this.mouseDownCallback.call(this.callbackContext,t),this.input.enabled&&this.enabled&&(t.identifier=0,this.input.mousePointer.start(t))},onMouseMove:function(t){this.event=t,this.capture&&t.preventDefault(),this.mouseMoveCallback&&this.mouseMoveCallback.call(this.callbackContext,t),this.input.enabled&&this.enabled&&(t.identifier=0,this.input.mousePointer.move(t))},onMouseUp:function(t){this.event=t,this.capture&&t.preventDefault(),this.mouseUpCallback&&this.mouseUpCallback.call(this.callbackContext,t),this.input.enabled&&this.enabled&&(t.identifier=0,this.input.mousePointer.stop(t))},onMouseUpGlobal:function(t){this.input.mousePointer.withinGame||(this.mouseUpCallback&&this.mouseUpCallback.call(this.callbackContext,t),t.identifier=0,this.input.mousePointer.stop(t))},onMouseOutGlobal:function(t){this.event=t,this.capture&&t.preventDefault(),this.input.mousePointer.withinGame=!1,this.input.enabled&&this.enabled&&(this.input.mousePointer.stop(t),this.input.mousePointer.leftButton.stop(t),this.input.mousePointer.rightButton.stop(t))},onMouseOut:function(t){this.event=t,this.capture&&t.preventDefault(),this.input.mousePointer.withinGame=!1,this.mouseOutCallback&&this.mouseOutCallback.call(this.callbackContext,t),this.input.enabled&&this.enabled&&this.stopOnGameOut&&(t.identifier=0,this.input.mousePointer.stop(t))},onMouseOver:function(t){this.event=t,this.capture&&t.preventDefault(),this.input.mousePointer.withinGame=!0,this.mouseOverCallback&&this.mouseOverCallback.call(this.callbackContext,t)},onMouseWheel:function(t){this._wheelEvent&&(t=this._wheelEvent.bindEvent(t)),this.event=t,this.capture&&t.preventDefault(),this.wheelDelta=o.Math.clamp(-t.deltaY,-1,1),this.mouseWheelCallback&&this.mouseWheelCallback.call(this.callbackContext,t)},requestPointerLock:function(){if(this.game.device.pointerLock){var t=this.game.canvas;t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock,t.requestPointerLock();var e=this;this._pointerLockChange=function(t){return e.pointerLockChange(t)},document.addEventListener("pointerlockchange",this._pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this._pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this._pointerLockChange,!0)}},pointerLockChange:function(t){var e=this.game.canvas;document.pointerLockElement===e||document.mozPointerLockElement===e||document.webkitPointerLockElement===e?(this.locked=!0,this.pointerLock.dispatch(!0,t)):(this.locked=!1,this.pointerLock.dispatch(!1,t))},releasePointerLock:function(){document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock(),document.removeEventListener("pointerlockchange",this._pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this._pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this._pointerLockChange,!0)},stop:function(){var t=this.game.canvas;t.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("mousemove",this._onMouseMove,!0),t.removeEventListener("mouseup",this._onMouseUp,!0),t.removeEventListener("mouseover",this._onMouseOver,!0),t.removeEventListener("mouseout",this._onMouseOut,!0);var e=this.game.device.wheelEvent;e&&t.removeEventListener(e,this._onMouseWheel,!0),window.removeEventListener("mouseup",this._onMouseUpGlobal,!0),window.removeEventListener("mouseout",this._onMouseOutGlobal,!0),document.removeEventListener("pointerlockchange",this._pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this._pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this._pointerLockChange,!0)}},o.Mouse.prototype.constructor=o.Mouse,s.prototype={},s.prototype.constructor=s,s.prototype.bindEvent=function(t){if(!s._stubsGenerated&&t){var e=function(t){return function(){var e=this.originalEvent[t];return"function"!=typeof e?e:e.bind(this.originalEvent)}};for(var i in t)i in s.prototype||Object.defineProperty(s.prototype,i,{get:e(i)});s._stubsGenerated=!0}return this.originalEvent=t,this},Object.defineProperties(s.prototype,{type:{value:"wheel"},deltaMode:{get:function(){return this._deltaMode}},deltaY:{get:function(){return this._scaleFactor*(this.originalEvent.wheelDelta||this.originalEvent.detail)||0}},deltaX:{get:function(){return this._scaleFactor*this.originalEvent.wheelDeltaX||0}},deltaZ:{value:0}}),/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.MSPointer=function(t){this.game=t,this.input=t.input,this.callbackContext=this.game,this.pointerDownCallback=null,this.pointerMoveCallback=null,this.pointerUpCallback=null,this.capture=!0,this.button=-1,this.event=null,this.enabled=!0,this._onMSPointerDown=null,this._onMSPointerMove=null,this._onMSPointerUp=null,this._onMSPointerUpGlobal=null,this._onMSPointerOut=null,this._onMSPointerOver=null},o.MSPointer.prototype={start:function(){if(null===this._onMSPointerDown){var t=this;if(this.game.device.mspointer){this._onMSPointerDown=function(e){return t.onPointerDown(e)},this._onMSPointerMove=function(e){return t.onPointerMove(e)},this._onMSPointerUp=function(e){return t.onPointerUp(e)},this._onMSPointerUpGlobal=function(e){return t.onPointerUpGlobal(e)},this._onMSPointerOut=function(e){return t.onPointerOut(e)},this._onMSPointerOver=function(e){return t.onPointerOver(e)};var e=this.game.canvas;e.addEventListener("MSPointerDown",this._onMSPointerDown,!1),e.addEventListener("MSPointerMove",this._onMSPointerMove,!1),e.addEventListener("MSPointerUp",this._onMSPointerUp,!1),e.addEventListener("pointerdown",this._onMSPointerDown,!1),e.addEventListener("pointermove",this._onMSPointerMove,!1),e.addEventListener("pointerup",this._onMSPointerUp,!1),e.style["-ms-content-zooming"]="none",e.style["-ms-touch-action"]="none",this.game.device.cocoonJS||(window.addEventListener("MSPointerUp",this._onMSPointerUpGlobal,!0),e.addEventListener("MSPointerOver",this._onMSPointerOver,!0),e.addEventListener("MSPointerOut",this._onMSPointerOut,!0),window.addEventListener("pointerup",this._onMSPointerUpGlobal,!0),e.addEventListener("pointerover",this._onMSPointerOver,!0),e.addEventListener("pointerout",this._onMSPointerOut,!0))}}},onPointerDown:function(t){this.event=t,this.capture&&t.preventDefault(),this.pointerDownCallback&&this.pointerDownCallback.call(this.callbackContext,t),this.input.enabled&&this.enabled&&(t.identifier=t.pointerId,"mouse"===t.pointerType||4===t.pointerType?this.input.mousePointer.start(t):this.input.startPointer(t))},onPointerMove:function(t){this.event=t,this.capture&&t.preventDefault(),this.pointerMoveCallback&&this.pointerMoveCallback.call(this.callbackContext,t),this.input.enabled&&this.enabled&&(t.identifier=t.pointerId,"mouse"===t.pointerType||4===t.pointerType?this.input.mousePointer.move(t):this.input.updatePointer(t))},onPointerUp:function(t){this.event=t,this.capture&&t.preventDefault(),this.pointerUpCallback&&this.pointerUpCallback.call(this.callbackContext,t),this.input.enabled&&this.enabled&&(t.identifier=t.pointerId,"mouse"===t.pointerType||4===t.pointerType?this.input.mousePointer.stop(t):this.input.stopPointer(t))},onPointerUpGlobal:function(t){if("mouse"!==t.pointerType&&4!==t.pointerType||this.input.mousePointer.withinGame){var e=this.input.getPointerFromIdentifier(t.identifier);e&&e.withinGame&&this.onPointerUp(t)}else this.onPointerUp(t)},onPointerOut:function(t){if(this.event=t,this.capture&&t.preventDefault(),"mouse"===t.pointerType||4===t.pointerType)this.input.mousePointer.withinGame=!1;else{var e=this.input.getPointerFromIdentifier(t.identifier);e&&(e.withinGame=!1)}this.input.mouse.mouseOutCallback&&this.input.mouse.mouseOutCallback.call(this.input.mouse.callbackContext,t),this.input.enabled&&this.enabled&&this.input.mouse.stopOnGameOut&&(t.identifier=0,e?e.stop(t):this.input.mousePointer.stop(t))},onPointerOver:function(t){if(this.event=t,this.capture&&t.preventDefault(),"mouse"===t.pointerType||4===t.pointerType)this.input.mousePointer.withinGame=!0;else{var e=this.input.getPointerFromIdentifier(t.identifier);e&&(e.withinGame=!0)}this.input.mouse.mouseOverCallback&&this.input.mouse.mouseOverCallback.call(this.input.mouse.callbackContext,t)},stop:function(){var t=this.game.canvas;t.removeEventListener("MSPointerDown",this._onMSPointerDown,!1),t.removeEventListener("MSPointerMove",this._onMSPointerMove,!1),t.removeEventListener("MSPointerUp",this._onMSPointerUp,!1),t.removeEventListener("pointerdown",this._onMSPointerDown,!1),t.removeEventListener("pointermove",this._onMSPointerMove,!1),t.removeEventListener("pointerup",this._onMSPointerUp,!1),window.removeEventListener("MSPointerUp",this._onMSPointerUpGlobal,!0),t.removeEventListener("MSPointerOver",this._onMSPointerOver,!0),t.removeEventListener("MSPointerOut",this._onMSPointerOut,!0),window.removeEventListener("pointerup",this._onMSPointerUpGlobal,!0),t.removeEventListener("pointerover",this._onMSPointerOver,!0),t.removeEventListener("pointerout",this._onMSPointerOut,!0)}},o.MSPointer.prototype.constructor=o.MSPointer,/** +* @author Richard Davey +* @author @karlmacklin +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.DeviceButton=function(t,e){this.parent=t,this.game=t.game,this.event=null,this.isDown=!1,this.isUp=!0,this.timeDown=0,this.timeUp=0,this.repeats=0,this.altKey=!1,this.shiftKey=!1,this.ctrlKey=!1,this.value=0,this.buttonCode=e,this.onDown=new o.Signal,this.onUp=new o.Signal,this.onFloat=new o.Signal},o.DeviceButton.prototype={start:function(t,e){this.isDown||(this.isDown=!0,this.isUp=!1,this.timeDown=this.game.time.time,this.repeats=0,this.event=t,this.value=e,t&&(this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.ctrlKey=t.ctrlKey),this.onDown.dispatch(this,e))},stop:function(t,e){this.isUp||(this.isDown=!1,this.isUp=!0,this.timeUp=this.game.time.time,this.event=t,this.value=e,t&&(this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.ctrlKey=t.ctrlKey),this.onUp.dispatch(this,e))},padFloat:function(t){this.value=t,this.onFloat.dispatch(this,t)},justPressed:function(t){return t=t||250,this.isDown&&this.timeDown+t>this.game.time.time},justReleased:function(t){return t=t||250,this.isUp&&this.timeUp+t>this.game.time.time},reset:function(){this.isDown=!1,this.isUp=!0,this.timeDown=this.game.time.time,this.repeats=0,this.altKey=!1,this.shiftKey=!1,this.ctrlKey=!1},destroy:function(){this.onDown.dispose(),this.onUp.dispose(),this.onFloat.dispose(),this.parent=null,this.game=null}},o.DeviceButton.prototype.constructor=o.DeviceButton,Object.defineProperty(o.DeviceButton.prototype,"duration",{get:function(){return this.isUp?-1:this.game.time.time-this.timeDown}}),/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Pointer=function(t,e,i){this.game=t,this.id=e,this.type=o.POINTER,this.exists=!0,this.identifier=0,this.pointerId=null,this.pointerMode=i||o.PointerMode.CURSOR|o.PointerMode.CONTACT,this.target=null,this.button=null,this.leftButton=new o.DeviceButton(this,o.Pointer.LEFT_BUTTON),this.middleButton=new o.DeviceButton(this,o.Pointer.MIDDLE_BUTTON),this.rightButton=new o.DeviceButton(this,o.Pointer.RIGHT_BUTTON),this.backButton=new o.DeviceButton(this,o.Pointer.BACK_BUTTON),this.forwardButton=new o.DeviceButton(this,o.Pointer.FORWARD_BUTTON),this.eraserButton=new o.DeviceButton(this,o.Pointer.ERASER_BUTTON),this._holdSent=!1,this._history=[],this._nextDrop=0,this._stateReset=!1,this.withinGame=!1,this.clientX=-1,this.clientY=-1,this.pageX=-1,this.pageY=-1,this.screenX=-1,this.screenY=-1,this.rawMovementX=0,this.rawMovementY=0,this.movementX=0,this.movementY=0,this.x=-1,this.y=-1,this.isMouse=0===e,this.isDown=!1,this.isUp=!0,this.timeDown=0,this.timeUp=0,this.previousTapTime=0,this.totalTouches=0,this.msSinceLastClick=Number.MAX_VALUE,this.targetObject=null,this.interactiveCandidates=[],this.active=!1,this.dirty=!1,this.position=new o.Point,this.positionDown=new o.Point,this.positionUp=new o.Point,this.circle=new o.Circle(0,0,44),this._clickTrampolines=null,this._trampolineTargetObject=null},o.Pointer.NO_BUTTON=0,o.Pointer.LEFT_BUTTON=1,o.Pointer.RIGHT_BUTTON=2,o.Pointer.MIDDLE_BUTTON=4,o.Pointer.BACK_BUTTON=8,o.Pointer.FORWARD_BUTTON=16,o.Pointer.ERASER_BUTTON=32,o.Pointer.prototype={resetButtons:function(){this.isDown=!1,this.isUp=!0,this.isMouse&&(this.leftButton.reset(),this.middleButton.reset(),this.rightButton.reset(),this.backButton.reset(),this.forwardButton.reset(),this.eraserButton.reset())},processButtonsDown:function(t,e){o.Pointer.LEFT_BUTTON&t&&this.leftButton.start(e),o.Pointer.RIGHT_BUTTON&t&&this.rightButton.start(e),o.Pointer.MIDDLE_BUTTON&t&&this.middleButton.start(e),o.Pointer.BACK_BUTTON&t&&this.backButton.start(e),o.Pointer.FORWARD_BUTTON&t&&this.forwardButton.start(e),o.Pointer.ERASER_BUTTON&t&&this.eraserButton.start(e)},processButtonsUp:function(t,e){t===o.Mouse.LEFT_BUTTON&&this.leftButton.stop(e),t===o.Mouse.RIGHT_BUTTON&&this.rightButton.stop(e),t===o.Mouse.MIDDLE_BUTTON&&this.middleButton.stop(e),t===o.Mouse.BACK_BUTTON&&this.backButton.stop(e),t===o.Mouse.FORWARD_BUTTON&&this.forwardButton.stop(e),5===t&&this.eraserButton.stop(e)},updateButtons:function(t){this.button=t.button;var e="down"===t.type.toLowerCase().substr(-4);void 0!==t.buttons?e?this.processButtonsDown(t.buttons,t):this.processButtonsUp(t.button,t):e?this.leftButton.start(t):(this.leftButton.stop(t),this.rightButton.stop(t)),1===t.buttons&&t.ctrlKey&&this.leftButton.isDown&&(this.leftButton.stop(t),this.rightButton.start(t)),this.isUp=!0,this.isDown=!1,(this.leftButton.isDown||this.rightButton.isDown||this.middleButton.isDown||this.backButton.isDown||this.forwardButton.isDown||this.eraserButton.isDown)&&(this.isUp=!1,this.isDown=!0)},start:function(t){var e=this.game.input;return t.pointerId&&(this.pointerId=t.pointerId),this.identifier=t.identifier,this.target=t.target,this.isMouse?this.updateButtons(t):(this.isDown=!0,this.isUp=!1),this.active=!0,this.withinGame=!0,this.dirty=!1,this._history=[],this._clickTrampolines=null,this._trampolineTargetObject=null,this.msSinceLastClick=this.game.time.time-this.timeDown,this.timeDown=this.game.time.time,this._holdSent=!1,this.move(t,!0),this.positionDown.setTo(this.x,this.y),(e.multiInputOverride===o.Input.MOUSE_OVERRIDES_TOUCH||e.multiInputOverride===o.Input.MOUSE_TOUCH_COMBINE||e.multiInputOverride===o.Input.TOUCH_OVERRIDES_MOUSE&&0===e.totalActivePointers)&&(e.x=this.x,e.y=this.y,e.position.setTo(this.x,this.y),e.onDown.dispatch(this,t),e.resetSpeed(this.x,this.y)),this._stateReset=!1,this.totalTouches++,null!==this.targetObject&&this.targetObject._touchedHandler(this),this},update:function(){var t=this.game.input;this.active&&(this.dirty&&(t.interactiveItems.total>0&&this.processInteractiveObjects(!1),this.dirty=!1),!1===this._holdSent&&this.duration>=t.holdRate&&((t.multiInputOverride===o.Input.MOUSE_OVERRIDES_TOUCH||t.multiInputOverride===o.Input.MOUSE_TOUCH_COMBINE||t.multiInputOverride===o.Input.TOUCH_OVERRIDES_MOUSE&&0===t.totalActivePointers)&&t.onHold.dispatch(this),this._holdSent=!0),t.recordPointerHistory&&this.game.time.time>=this._nextDrop&&(this._nextDrop=this.game.time.time+t.recordRate,this._history.push({x:this.position.x,y:this.position.y}),this._history.length>t.recordLimit&&this._history.shift()))},move:function(t,e){var i=this.game.input;if(!i.pollLocked){if(void 0===e&&(e=!1),void 0!==t.button&&(this.button=t.button),e&&this.isMouse&&this.updateButtons(t),this.clientX=t.clientX,this.clientY=t.clientY,this.pageX=t.pageX,this.pageY=t.pageY,this.screenX=t.screenX,this.screenY=t.screenY,this.isMouse&&i.mouse.locked&&!e&&(this.rawMovementX=t.movementX||t.mozMovementX||t.webkitMovementX||0,this.rawMovementY=t.movementY||t.mozMovementY||t.webkitMovementY||0,this.movementX+=this.rawMovementX,this.movementY+=this.rawMovementY),this.x=(this.pageX-this.game.scale.offset.x)*i.scale.x,this.y=(this.pageY-this.game.scale.offset.y)*i.scale.y,this.position.setTo(this.x,this.y),this.circle.x=this.x,this.circle.y=this.y,(i.multiInputOverride===o.Input.MOUSE_OVERRIDES_TOUCH||i.multiInputOverride===o.Input.MOUSE_TOUCH_COMBINE||i.multiInputOverride===o.Input.TOUCH_OVERRIDES_MOUSE&&0===i.totalActivePointers)&&(i.activePointer=this,i.x=this.x,i.y=this.y,i.position.setTo(i.x,i.y),i.circle.x=i.x,i.circle.y=i.y),this.withinGame=this.game.scale.bounds.contains(this.pageX,this.pageY),this.game.paused)return this;for(var s=i.moveCallbacks.length;s--;)i.moveCallbacks[s].callback.call(i.moveCallbacks[s].context,this,this.x,this.y,e);return null!==this.targetObject&&!0===this.targetObject.isDragged?!1===this.targetObject.update(this)&&(this.targetObject=null):i.interactiveItems.total>0&&this.processInteractiveObjects(e),this}},processInteractiveObjects:function(t){var e=0,i=-1,s=null,n=this.game.input.interactiveItems.first;for(this.interactiveCandidates=[];n;)n.checked=!1,n.validForInput(i,e,!1)&&(n.checked=!0,(t&&n.checkPointerDown(this,!0)||!t&&n.checkPointerOver(this,!0))&&(e=n.sprite.renderOrderID,i=n.priorityID,s=n,this.interactiveCandidates.push(n))),n=this.game.input.interactiveItems.next;for(n=this.game.input.interactiveItems.first;n;)!n.checked&&n.validForInput(i,e,!0)&&(t&&n.checkPointerDown(this,!1)||!t&&n.checkPointerOver(this,!1))&&(e=n.sprite.renderOrderID,i=n.priorityID,s=n,this.interactiveCandidates.push(n)),n=this.game.input.interactiveItems.next;return this.game.input.customCandidateHandler&&(s=this.game.input.customCandidateHandler.call(this.game.input.customCandidateHandlerContext,this,this.interactiveCandidates,s)),this.swapTarget(s,!1),null!==this.targetObject},swapTarget:function(t,e){void 0===e&&(e=!1),null===t?this.targetObject&&(this.targetObject._pointerOutHandler(this,e),this.targetObject=null):null===this.targetObject?(this.targetObject=t,t._pointerOverHandler(this,e)):this.targetObject===t?!1===t.update(this)&&(this.targetObject=null):(this.targetObject._pointerOutHandler(this,e),this.targetObject=t,this.targetObject._pointerOverHandler(this,e))},leave:function(t){this.withinGame=!1,this.move(t,!1)},stop:function(t){var e=this.game.input;return this._stateReset&&this.withinGame?void t.preventDefault():(this.timeUp=this.game.time.time,(e.multiInputOverride===o.Input.MOUSE_OVERRIDES_TOUCH||e.multiInputOverride===o.Input.MOUSE_TOUCH_COMBINE||e.multiInputOverride===o.Input.TOUCH_OVERRIDES_MOUSE&&0===e.totalActivePointers)&&(e.onUp.dispatch(this,t),this.duration>=0&&this.duration<=e.tapRate&&(this.timeUp-this.previousTapTime0&&(this.active=!1),this.withinGame=this.game.scale.bounds.contains(t.pageX,t.pageY),this.pointerId=null,this.identifier=null,this.positionUp.setTo(this.x,this.y),!1===this.isMouse&&e.currentPointers--,e.interactiveItems.callAll("_releasedHandler",this),this._clickTrampolines&&(this._trampolineTargetObject=this.targetObject),this.targetObject=null,this)},justPressed:function(t){return t=t||this.game.input.justPressedRate,!0===this.isDown&&this.timeDown+t>this.game.time.time},justReleased:function(t){return t=t||this.game.input.justReleasedRate,this.isUp&&this.timeUp+t>this.game.time.time},addClickTrampoline:function(t,e,i,s){if(this.isDown){for(var n=this._clickTrampolines=this._clickTrampolines||[],o=0;o +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Touch=function(t){this.game=t,this.enabled=!0,this.touchLockCallbacks=[],this.callbackContext=this.game,this.touchStartCallback=null,this.touchMoveCallback=null,this.touchEndCallback=null,this.touchEnterCallback=null,this.touchLeaveCallback=null,this.touchCancelCallback=null,this.preventDefault=!0,this.event=null,this._onTouchStart=null,this._onTouchMove=null,this._onTouchEnd=null,this._onTouchEnter=null,this._onTouchLeave=null,this._onTouchCancel=null,this._onTouchMove=null},o.Touch.prototype={start:function(){if(null===this._onTouchStart){var t=this;this.game.device.touch&&(this._onTouchStart=function(e){return t.onTouchStart(e)},this._onTouchMove=function(e){return t.onTouchMove(e)},this._onTouchEnd=function(e){return t.onTouchEnd(e)},this._onTouchEnter=function(e){return t.onTouchEnter(e)},this._onTouchLeave=function(e){return t.onTouchLeave(e)},this._onTouchCancel=function(e){return t.onTouchCancel(e)},this.game.canvas.addEventListener("touchstart",this._onTouchStart,!1),this.game.canvas.addEventListener("touchmove",this._onTouchMove,!1),this.game.canvas.addEventListener("touchend",this._onTouchEnd,!1),this.game.canvas.addEventListener("touchcancel",this._onTouchCancel,!1),this.game.device.cocoonJS||(this.game.canvas.addEventListener("touchenter",this._onTouchEnter,!1),this.game.canvas.addEventListener("touchleave",this._onTouchLeave,!1)))}},consumeDocumentTouches:function(){this._documentTouchMove=function(t){t.preventDefault()},document.addEventListener("touchmove",this._documentTouchMove,!1)},addTouchLockCallback:function(t,e,i){void 0===i&&(i=!1),this.touchLockCallbacks.push({callback:t,context:e,onEnd:i})},removeTouchLockCallback:function(t,e){for(var i=this.touchLockCallbacks.length;i--;)if(this.touchLockCallbacks[i].callback===t&&this.touchLockCallbacks[i].context===e)return this.touchLockCallbacks.splice(i,1),!0;return!1},onTouchStart:function(t){for(var e=this.touchLockCallbacks.length;e--;){var i=this.touchLockCallbacks[e];!i.onEnd&&i.callback.call(i.context,this,t)&&this.touchLockCallbacks.splice(e,1)}if(this.event=t,this.game.input.enabled&&this.enabled){this.touchStartCallback&&this.touchStartCallback.call(this.callbackContext,t),this.preventDefault&&t.preventDefault();for(var e=0;e +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.InputHandler=function(t){this.sprite=t,this.game=t.game,this.enabled=!1,this.checked=!1,this.priorityID=0,this.useHandCursor=!1,this._setHandCursor=!1,this.isDragged=!1,this.allowHorizontalDrag=!0,this.allowVerticalDrag=!0,this.bringToTop=!1,this.snapOffset=null,this.snapOnDrag=!1,this.snapOnRelease=!1,this.snapX=0,this.snapY=0,this.snapOffsetX=0,this.snapOffsetY=0,this.pixelPerfectOver=!1,this.pixelPerfectClick=!1,this.pixelPerfectAlpha=255,this.draggable=!1,this.boundsRect=null,this.boundsSprite=null,this.scaleLayer=!1,this.dragOffset=new o.Point,this.dragFromCenter=!1,this.dragStopBlocksInputUp=!1,this.dragStartPoint=new o.Point,this.dragDistanceThreshold=0,this.dragTimeThreshold=0,this.downPoint=new o.Point,this.snapPoint=new o.Point,this._dragPoint=new o.Point,this._dragPhase=!1,this._pendingDrag=!1,this._dragTimePass=!1,this._dragDistancePass=!1,this._wasEnabled=!1,this._tempPoint=new o.Point,this._pointerData=[],this._pointerData.push({id:0,x:0,y:0,camX:0,camY:0,isDown:!1,isUp:!1,isOver:!1,isOut:!1,timeOver:0,timeOut:0,timeDown:0,timeUp:0,downDuration:0,isDragged:!1})},o.InputHandler.prototype={start:function(t,e){if(t=t||0,void 0===e&&(e=!1),!1===this.enabled){this.game.input.interactiveItems.add(this),this.useHandCursor=e,this.priorityID=t;for(var i=0;i<10;i++)this._pointerData[i]={id:i,x:0,y:0,isDown:!1,isUp:!1,isOver:!1,isOut:!1,timeOver:0,timeOut:0,timeDown:0,timeUp:0,downDuration:0,isDragged:!1};this.snapOffset=new o.Point,this.enabled=!0,this._wasEnabled=!0}return this.sprite.events.onAddedToGroup.add(this.addedToGroup,this),this.sprite.events.onRemovedFromGroup.add(this.removedFromGroup,this),this.sprite},addedToGroup:function(){this._dragPhase||this._wasEnabled&&!this.enabled&&this.start()},removedFromGroup:function(){this._dragPhase||(this.enabled?(this._wasEnabled=!0,this.stop()):this._wasEnabled=!1)},reset:function(){this.enabled=!1;for(var t=0;t<10;t++)this._pointerData[t]={id:t,x:0,y:0,isDown:!1,isUp:!1,isOver:!1,isOut:!1,timeOver:0,timeOut:0,timeDown:0,timeUp:0,downDuration:0,isDragged:!1}},stop:function(){!1!==this.enabled&&(this.enabled=!1,this.game.input.interactiveItems.remove(this))},destroy:function(){this.sprite&&(this._setHandCursor&&(this.game.canvas.style.cursor="default",this._setHandCursor=!1),this.enabled=!1,this.game.input.interactiveItems.remove(this),this._pointerData.length=0,this.boundsRect=null,this.boundsSprite=null,this.sprite=null)},validForInput:function(t,e,i){return void 0===i&&(i=!0),!(!this.enabled||0===this.sprite.scale.x||0===this.sprite.scale.y||this.priorityIDt||this.priorityID===t&&this.sprite.renderOrderID>e))},isPixelPerfect:function(){return this.pixelPerfectClick||this.pixelPerfectOver},pointerX:function(t){return t=t||0,this._pointerData[t].x},pointerY:function(t){return t=t||0,this._pointerData[t].y},pointerDown:function(t){return t=t||0,this._pointerData[t].isDown},pointerUp:function(t){return t=t||0,this._pointerData[t].isUp},pointerTimeDown:function(t){return t=t||0,this._pointerData[t].timeDown},pointerTimeUp:function(t){return t=t||0,this._pointerData[t].timeUp},pointerOver:function(t){if(!this.enabled)return!1;if(void 0===t){for(var e=0;e<10;e++)if(this._pointerData[e].isOver)return!0;return!1}return this._pointerData[t].isOver},pointerOut:function(t){if(!this.enabled)return!1;if(void 0!==t)return this._pointerData[t].isOut;for(var e=0;e<10;e++)if(this._pointerData[e].isOut)return!0},pointerTimeOver:function(t){return t=t||0,this._pointerData[t].timeOver},pointerTimeOut:function(t){return t=t||0,this._pointerData[t].timeOut},pointerDragged:function(t){return t=t||0,this._pointerData[t].isDragged},checkPointerDown:function(t,e){return!!(t.isDown&&this.enabled&&this.sprite&&this.sprite.parent&&this.sprite.visible&&this.sprite.parent.visible&&0!==this.sprite.worldScale.x&&0!==this.sprite.worldScale.y)&&(!!this.game.input.hitTest(this.sprite,t,this._tempPoint)&&(void 0===e&&(e=!1),!(!e&&this.pixelPerfectClick)||this.checkPixel(this._tempPoint.x,this._tempPoint.y)))},checkPointerOver:function(t,e){return!!(this.enabled&&this.sprite&&this.sprite.parent&&this.sprite.visible&&this.sprite.parent.visible&&0!==this.sprite.worldScale.x&&0!==this.sprite.worldScale.y)&&(!!this.game.input.hitTest(this.sprite,t,this._tempPoint)&&(void 0===e&&(e=!1),!(!e&&this.pixelPerfectOver)||this.checkPixel(this._tempPoint.x,this._tempPoint.y)))},checkPixel:function(t,e,i){if(this.sprite.texture.baseTexture.source){if(null===t&&null===e){this.game.input.getLocalPosition(this.sprite,i,this._tempPoint);var t=this._tempPoint.x,e=this._tempPoint.y}if(0!==this.sprite.anchor.x&&(t-=-this.sprite.texture.frame.width*this.sprite.anchor.x),0!==this.sprite.anchor.y&&(e-=-this.sprite.texture.frame.height*this.sprite.anchor.y),t+=this.sprite.texture.frame.x,e+=this.sprite.texture.frame.y,this.sprite.texture.trim&&(t-=this.sprite.texture.trim.x,e-=this.sprite.texture.trim.y,tthis.sprite.texture.crop.right||ethis.sprite.texture.crop.bottom))return this._dx=t,this._dy=e,!1;this._dx=t,this._dy=e,this.game.input.hitContext.clearRect(0,0,1,1),this.game.input.hitContext.drawImage(this.sprite.texture.baseTexture.source,t,e,1,1,0,0,1,1);if(this.game.input.hitContext.getImageData(0,0,1,1).data[3]>=this.pixelPerfectAlpha)return!0}return!1},update:function(t){if(null!==this.sprite&&void 0!==this.sprite.parent)return this.enabled&&this.sprite.visible&&this.sprite.parent.visible?this._pendingDrag?(this._dragDistancePass||(this._dragDistancePass=o.Math.distance(t.x,t.y,this.downPoint.x,this.downPoint.y)>=this.dragDistanceThreshold),this._dragDistancePass&&this._dragTimePass&&this.startDrag(t),!0):this.draggable&&this._draggedPointerID===t.id?this.updateDrag(t,!1):this._pointerData[t.id].isOver?this.checkPointerOver(t)?(this._pointerData[t.id].x=t.x-this.sprite.x,this._pointerData[t.id].y=t.y-this.sprite.y,!0):(this._pointerOutHandler(t),!1):void 0:(this._pointerOutHandler(t),!1)},_pointerOverHandler:function(t,e){if(null!==this.sprite){var i=this._pointerData[t.id];if(!1===i.isOver||t.dirty){var s=!1===i.isOver;i.isOver=!0,i.isOut=!1,i.timeOver=this.game.time.time,i.x=t.x-this.sprite.x,i.y=t.y-this.sprite.y,this.useHandCursor&&!1===i.isDragged&&(this.game.canvas.style.cursor="pointer",this._setHandCursor=!0),!e&&s&&this.sprite&&this.sprite.events&&this.sprite.events.onInputOver$dispatch(this.sprite,t),this.sprite.parent&&this.sprite.parent.type===o.GROUP&&this.sprite.parent.onChildInputOver.dispatch(this.sprite,t)}}},_pointerOutHandler:function(t,e){if(null!==this.sprite){var i=this._pointerData[t.id];i.isOver=!1,i.isOut=!0,i.timeOut=this.game.time.time,this.useHandCursor&&!1===i.isDragged&&(this.game.canvas.style.cursor="default",this._setHandCursor=!1),!e&&this.sprite&&this.sprite.events&&(this.sprite.events.onInputOut$dispatch(this.sprite,t),this.sprite&&this.sprite.parent&&this.sprite.parent.type===o.GROUP&&this.sprite.parent.onChildInputOut.dispatch(this.sprite,t))}},_touchedHandler:function(t){if(null!==this.sprite){var e=this._pointerData[t.id];if(!e.isDown&&e.isOver){if(this.pixelPerfectClick&&!this.checkPixel(null,null,t))return;if(e.isDown=!0,e.isUp=!1,e.timeDown=this.game.time.time,this.downPoint.set(t.x,t.y),t.dirty=!0,this.sprite&&this.sprite.events&&(this.sprite.events.onInputDown$dispatch(this.sprite,t),this.sprite&&this.sprite.parent&&this.sprite.parent.type===o.GROUP&&this.sprite.parent.onChildInputDown.dispatch(this.sprite,t),null===this.sprite))return;this.draggable&&!1===this.isDragged&&(0===this.dragTimeThreshold&&0===this.dragDistanceThreshold?this.startDrag(t):(this._pendingDrag=!0,this._dragDistancePass=0===this.dragDistanceThreshold,this.dragTimeThreshold>0?(this._dragTimePass=!1,this.game.time.events.add(this.dragTimeThreshold,this.dragTimeElapsed,this,t)):this._dragTimePass=!0)),this.bringToTop&&this.sprite.bringToTop()}}},dragTimeElapsed:function(t){this._dragTimePass=!0,this._pendingDrag&&this.sprite&&this._dragDistancePass&&this.startDrag(t)},_releasedHandler:function(t){if(null!==this.sprite){var e=this._pointerData[t.id];if(e.isDown&&t.isUp){e.isDown=!1,e.isUp=!0,e.timeUp=this.game.time.time,e.downDuration=e.timeUp-e.timeDown;var i=this.checkPointerOver(t);this.sprite&&this.sprite.events&&(this.dragStopBlocksInputUp&&(!this.dragStopBlocksInputUp||this.draggable&&this.isDragged&&this._draggedPointerID===t.id)||this.sprite.events.onInputUp$dispatch(this.sprite,t,i),this.sprite&&this.sprite.parent&&this.sprite.parent.type===o.GROUP&&this.sprite.parent.onChildInputUp.dispatch(this.sprite,t,i),i&&(i=this.checkPointerOver(t))),e.isOver=i,!i&&this.useHandCursor&&(this.game.canvas.style.cursor="default",this._setHandCursor=!1),t.dirty=!0,this._pendingDrag=!1,this.draggable&&this.isDragged&&this._draggedPointerID===t.id&&this.stopDrag(t)}}},updateDrag:function(t,e){if(void 0===e&&(e=!1),t.isUp)return this.stopDrag(t),!1;var i=this.globalToLocalX(t.x)+this._dragPoint.x+this.dragOffset.x,s=this.globalToLocalY(t.y)+this._dragPoint.y+this.dragOffset.y;if(this.sprite.fixedToCamera)this.allowHorizontalDrag&&(this.sprite.cameraOffset.x=i),this.allowVerticalDrag&&(this.sprite.cameraOffset.y=s),this.boundsRect&&this.checkBoundsRect(),this.boundsSprite&&this.checkBoundsSprite(),this.snapOnDrag&&(this.sprite.cameraOffset.x=Math.round((this.sprite.cameraOffset.x-this.snapOffsetX%this.snapX)/this.snapX)*this.snapX+this.snapOffsetX%this.snapX,this.sprite.cameraOffset.y=Math.round((this.sprite.cameraOffset.y-this.snapOffsetY%this.snapY)/this.snapY)*this.snapY+this.snapOffsetY%this.snapY,this.snapPoint.set(this.sprite.cameraOffset.x,this.sprite.cameraOffset.y));else{var n=this.game.camera.x-this._pointerData[t.id].camX,o=this.game.camera.y-this._pointerData[t.id].camY;this.allowHorizontalDrag&&(this.sprite.x=i+n),this.allowVerticalDrag&&(this.sprite.y=s+o),this.boundsRect&&this.checkBoundsRect(),this.boundsSprite&&this.checkBoundsSprite(),this.snapOnDrag&&(this.sprite.x=Math.round((this.sprite.x-this.snapOffsetX%this.snapX)/this.snapX)*this.snapX+this.snapOffsetX%this.snapX,this.sprite.y=Math.round((this.sprite.y-this.snapOffsetY%this.snapY)/this.snapY)*this.snapY+this.snapOffsetY%this.snapY,this.snapPoint.set(this.sprite.x,this.sprite.y))}return this.sprite.events.onDragUpdate.dispatch(this.sprite,t,i,s,this.snapPoint,e),!0},justOver:function(t,e){return t=t||0,e=e||500,this._pointerData[t].isOver&&this.overDuration(t)this.boundsRect.right&&(this.sprite.cameraOffset.x=this.boundsRect.right-this.sprite.width),this.sprite.cameraOffset.ythis.boundsRect.bottom&&(this.sprite.cameraOffset.y=this.boundsRect.bottom-this.sprite.height)):(this.sprite.leftthis.boundsRect.right&&(this.sprite.x=this.boundsRect.right-(this.sprite.width-this.sprite.offsetX)),this.sprite.topthis.boundsRect.bottom&&(this.sprite.y=this.boundsRect.bottom-(this.sprite.height-this.sprite.offsetY)))},checkBoundsSprite:function(){this.sprite.fixedToCamera&&this.boundsSprite.fixedToCamera?(this.sprite.cameraOffset.xthis.boundsSprite.cameraOffset.x+this.boundsSprite.width&&(this.sprite.cameraOffset.x=this.boundsSprite.cameraOffset.x+this.boundsSprite.width-this.sprite.width),this.sprite.cameraOffset.ythis.boundsSprite.cameraOffset.y+this.boundsSprite.height&&(this.sprite.cameraOffset.y=this.boundsSprite.cameraOffset.y+this.boundsSprite.height-this.sprite.height)):(this.sprite.leftthis.boundsSprite.right&&(this.sprite.x=this.boundsSprite.right-(this.sprite.width-this.sprite.offsetX)),this.sprite.topthis.boundsSprite.bottom&&(this.sprite.y=this.boundsSprite.bottom-(this.sprite.height-this.sprite.offsetY)))}},o.InputHandler.prototype.constructor=o.InputHandler,/** +* @author @karlmacklin +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Gamepad=function(t){this.game=t,this._gamepadIndexMap={},this._rawPads=[],this._active=!1,this.enabled=!0,this._gamepadSupportAvailable=!!navigator.webkitGetGamepads||!!navigator.webkitGamepads||-1!==navigator.userAgent.indexOf("Firefox/")||!!navigator.getGamepads,this._prevRawGamepadTypes=[],this._prevTimestamps=[],this.callbackContext=this,this.onConnectCallback=null,this.onDisconnectCallback=null,this.onDownCallback=null,this.onUpCallback=null,this.onAxisCallback=null,this.onFloatCallback=null,this._ongamepadconnected=null,this._gamepaddisconnected=null,this._gamepads=[new o.SinglePad(t,this),new o.SinglePad(t,this),new o.SinglePad(t,this),new o.SinglePad(t,this)]},o.Gamepad.prototype={addCallbacks:function(t,e){void 0!==e&&(this.onConnectCallback="function"==typeof e.onConnect?e.onConnect:this.onConnectCallback,this.onDisconnectCallback="function"==typeof e.onDisconnect?e.onDisconnect:this.onDisconnectCallback,this.onDownCallback="function"==typeof e.onDown?e.onDown:this.onDownCallback,this.onUpCallback="function"==typeof e.onUp?e.onUp:this.onUpCallback,this.onAxisCallback="function"==typeof e.onAxis?e.onAxis:this.onAxisCallback,this.onFloatCallback="function"==typeof e.onFloat?e.onFloat:this.onFloatCallback,this.callbackContext=t)},start:function(){if(!this._active){this._active=!0;var t=this;this._onGamepadConnected=function(e){return t.onGamepadConnected(e)},this._onGamepadDisconnected=function(e){return t.onGamepadDisconnected(e)},window.addEventListener("gamepadconnected",this._onGamepadConnected,!1),window.addEventListener("gamepaddisconnected",this._onGamepadDisconnected,!1)}},onGamepadConnected:function(t){var e=t.gamepad;this._rawPads.push(e),this._gamepads[e.index].connect(e)},onGamepadDisconnected:function(t){var e=t.gamepad;for(var i in this._rawPads)this._rawPads[i].index===e.index&&this._rawPads.splice(i,1);this._gamepads[e.index].disconnect()},update:function(){this._pollGamepads(),this.pad1.pollStatus(),this.pad2.pollStatus(),this.pad3.pollStatus(),this.pad4.pollStatus()},_pollGamepads:function(){if(this._active){if(navigator.getGamepads)var t=navigator.getGamepads();else if(navigator.webkitGetGamepads)var t=navigator.webkitGetGamepads();else if(navigator.webkitGamepads)var t=navigator.webkitGamepads();if(t){this._rawPads=[];for(var e=!1,i=0;i +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.SinglePad=function(t,e){this.game=t,this.index=null,this.connected=!1,this.callbackContext=this,this.onConnectCallback=null,this.onDisconnectCallback=null,this.onDownCallback=null,this.onUpCallback=null,this.onAxisCallback=null,this.onFloatCallback=null,this.deadZone=.26,this._padParent=e,this._rawPad=null,this._prevTimestamp=null,this._buttons=[],this._buttonsLen=0,this._axes=[],this._axesLen=0},o.SinglePad.prototype={addCallbacks:function(t,e){void 0!==e&&(this.onConnectCallback="function"==typeof e.onConnect?e.onConnect:this.onConnectCallback,this.onDisconnectCallback="function"==typeof e.onDisconnect?e.onDisconnect:this.onDisconnectCallback,this.onDownCallback="function"==typeof e.onDown?e.onDown:this.onDownCallback,this.onUpCallback="function"==typeof e.onUp?e.onUp:this.onUpCallback,this.onAxisCallback="function"==typeof e.onAxis?e.onAxis:this.onAxisCallback,this.onFloatCallback="function"==typeof e.onFloat?e.onFloat:this.onFloatCallback,this.callbackContext=t)},getButton:function(t){return this._buttons[t]?this._buttons[t]:null},pollStatus:function(){if(this.connected&&this.game.input.enabled&&this.game.input.gamepad.enabled&&(!this._rawPad.timestamp||this._rawPad.timestamp!==this._prevTimestamp)){for(var t=0;t0&&s>this.deadZone||s<0&&s<-this.deadZone?this.processAxisChange(i,s):this.processAxisChange(i,0)}this._prevTimestamp=this._rawPad.timestamp}},connect:function(t){var e=!this.connected;this.connected=!0,this.index=t.index,this._rawPad=t,this._buttons=[],this._buttonsLen=t.buttons.length,this._axes=[],this._axesLen=t.axes.length;for(var i=0;i +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Key=function(t,e){this.game=t,this._enabled=!0,this.event=null,this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.timeDown=0,this.duration=0,this.timeUp=-2500,this.repeats=0,this.keyCode=e,this.onDown=new o.Signal,this.onHoldCallback=null,this.onHoldContext=null,this.onUp=new o.Signal,this._justDown=!1,this._justUp=!1},o.Key.prototype={update:function(){this._enabled&&this.isDown&&(this.duration=this.game.time.time-this.timeDown,this.repeats++,this.onHoldCallback&&this.onHoldCallback.call(this.onHoldContext,this))},processKeyDown:function(t){this._enabled&&(this.event=t,this.isDown||(this.altKey=t.altKey,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.isDown=!0,this.isUp=!1,this.timeDown=this.game.time.time,this.duration=0,this.repeats=0,this._justDown=!0,this.onDown.dispatch(this)))},processKeyUp:function(t){this._enabled&&(this.event=t,this.isUp||(this.isDown=!1,this.isUp=!0,this.timeUp=this.game.time.time,this.duration=this.game.time.time-this.timeDown,this._justUp=!0,this.onUp.dispatch(this)))},reset:function(t){void 0===t&&(t=!0),this.isDown=!1,this.isUp=!0,this.timeUp=this.game.time.time,this.duration=0,this._enabled=!0,this._justDown=!1,this._justUp=!1,t&&(this.onDown.removeAll(),this.onUp.removeAll(),this.onHoldCallback=null,this.onHoldContext=null)},downDuration:function(t){return void 0===t&&(t=50),this.isDown&&this.duration +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Keyboard=function(t){this.game=t,this.enabled=!0,this.event=null,this.pressEvent=null,this.callbackContext=this,this.onDownCallback=null,this.onPressCallback=null,this.onUpCallback=null,this._keys=[],this._capture=[],this._onKeyDown=null,this._onKeyPress=null,this._onKeyUp=null,this._i=0,this._k=0},o.Keyboard.prototype={addCallbacks:function(t,e,i,s){this.callbackContext=t,void 0!==e&&null!==e&&(this.onDownCallback=e),void 0!==i&&null!==i&&(this.onUpCallback=i),void 0!==s&&null!==s&&(this.onPressCallback=s)},addKey:function(t){return this._keys[t]||(this._keys[t]=new o.Key(this.game,t),this.addKeyCapture(t)),this._keys[t]},addKeys:function(t){var e={};for(var i in t)e[i]=this.addKey(t[i]);return e},removeKey:function(t){this._keys[t]&&(this._keys[t]=null,this.removeKeyCapture(t))},createCursorKeys:function(){return this.addKeys({up:o.KeyCode.UP,down:o.KeyCode.DOWN,left:o.KeyCode.LEFT,right:o.KeyCode.RIGHT})},start:function(){if(!this.game.device.cocoonJS&&null===this._onKeyDown){var t=this;this._onKeyDown=function(e){return t.processKeyDown(e)},this._onKeyUp=function(e){return t.processKeyUp(e)},this._onKeyPress=function(e){return t.processKeyPress(e)},window.addEventListener("keydown",this._onKeyDown,!1),window.addEventListener("keyup",this._onKeyUp,!1),window.addEventListener("keypress",this._onKeyPress,!1)}},stop:function(){window.removeEventListener("keydown",this._onKeyDown),window.removeEventListener("keyup",this._onKeyUp),window.removeEventListener("keypress",this._onKeyPress),this._onKeyDown=null,this._onKeyUp=null,this._onKeyPress=null},destroy:function(){this.stop(),this.clearCaptures(),this._keys.length=0,this._i=0},addKeyCapture:function(t){if("object"==typeof t)for(var e in t)this._capture[t[e]]=!0;else this._capture[t]=!0},removeKeyCapture:function(t){delete this._capture[t]},clearCaptures:function(){this._capture={}},update:function(){for(this._i=this._keys.length;this._i--;)this._keys[this._i]&&this._keys[this._i].update()},processKeyDown:function(t){if(this.event=t,this.game.input.enabled&&this.enabled){var e=t.keyCode;this._capture[e]&&t.preventDefault(),this._keys[e]||(this._keys[e]=new o.Key(this.game,e)),this._keys[e].processKeyDown(t),this._k=e,this.onDownCallback&&this.onDownCallback.call(this.callbackContext,t)}},processKeyPress:function(t){this.pressEvent=t,this.game.input.enabled&&this.enabled&&this.onPressCallback&&this.onPressCallback.call(this.callbackContext,String.fromCharCode(t.charCode),t)},processKeyUp:function(t){if(this.event=t,this.game.input.enabled&&this.enabled){var e=t.keyCode;this._capture[e]&&t.preventDefault(),this._keys[e]||(this._keys[e]=new o.Key(this.game,e)),this._keys[e].processKeyUp(t),this.onUpCallback&&this.onUpCallback.call(this.callbackContext,t)}},reset:function(t){void 0===t&&(t=!0),this.event=null;for(var e=this._keys.length;e--;)this._keys[e]&&this._keys[e].reset(t)},downDuration:function(t,e){return this._keys[t]?this._keys[t].downDuration(e):null},upDuration:function(t,e){return this._keys[t]?this._keys[t].upDuration(e):null},isDown:function(t){return this._keys[t]?this._keys[t].isDown:null}},Object.defineProperty(o.Keyboard.prototype,"lastChar",{get:function(){return 32===this.event.charCode?"":String.fromCharCode(this.pressEvent.charCode)}}),Object.defineProperty(o.Keyboard.prototype,"lastKey",{get:function(){return this._keys[this._k]}}),o.Keyboard.prototype.constructor=o.Keyboard,o.KeyCode={A:"A".charCodeAt(0),B:"B".charCodeAt(0),C:"C".charCodeAt(0),D:"D".charCodeAt(0),E:"E".charCodeAt(0),F:"F".charCodeAt(0),G:"G".charCodeAt(0),H:"H".charCodeAt(0),I:"I".charCodeAt(0),J:"J".charCodeAt(0),K:"K".charCodeAt(0),L:"L".charCodeAt(0),M:"M".charCodeAt(0),N:"N".charCodeAt(0),O:"O".charCodeAt(0),P:"P".charCodeAt(0),Q:"Q".charCodeAt(0),R:"R".charCodeAt(0),S:"S".charCodeAt(0),T:"T".charCodeAt(0),U:"U".charCodeAt(0),V:"V".charCodeAt(0),W:"W".charCodeAt(0),X:"X".charCodeAt(0),Y:"Y".charCodeAt(0),Z:"Z".charCodeAt(0),ZERO:"0".charCodeAt(0),ONE:"1".charCodeAt(0),TWO:"2".charCodeAt(0),THREE:"3".charCodeAt(0),FOUR:"4".charCodeAt(0),FIVE:"5".charCodeAt(0),SIX:"6".charCodeAt(0),SEVEN:"7".charCodeAt(0),EIGHT:"8".charCodeAt(0),NINE:"9".charCodeAt(0),NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_ADD:107,NUMPAD_ENTER:108,NUMPAD_SUBTRACT:109,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,COLON:186,EQUALS:187,COMMA:188,UNDERSCORE:189,PERIOD:190,QUESTION_MARK:191,TILDE:192,OPEN_BRACKET:219,BACKWARD_SLASH:220,CLOSED_BRACKET:221,QUOTES:222,BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CONTROL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACEBAR:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PLUS:43,MINUS:44,INSERT:45,DELETE:46,HELP:47,NUM_LOCK:144};for(var r in o.KeyCode)o.KeyCode.hasOwnProperty(r)&&!r.match(/[a-z]/)&&(o.Keyboard[r]=o.KeyCode[r]);/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component=function(){},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.Angle=function(){},o.Component.Angle.prototype={angle:{get:function(){return o.Math.wrapAngle(o.Math.radToDeg(this.rotation))},set:function(t){this.rotation=o.Math.degToRad(o.Math.wrapAngle(t))}}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.Animation=function(){},o.Component.Animation.prototype={play:function(t,e,i,s){if(this.animations)return this.animations.play(t,e,i,s)}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.AutoCull=function(){},o.Component.AutoCull.prototype={autoCull:!1,inCamera:{get:function(){return this.autoCull||this.checkWorldBounds||(this._bounds.copyFrom(this.getBounds()),this._bounds.x+=this.game.camera.view.x,this._bounds.y+=this.game.camera.view.y),this.game.world.camera.view.intersects(this._bounds)}}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.Bounds=function(){},o.Component.Bounds.prototype={offsetX:{get:function(){return this.anchor.x*this.width}},offsetY:{get:function(){return this.anchor.y*this.height}},centerX:{get:function(){return this.x-this.offsetX+.5*this.width},set:function(t){this.x=t+this.offsetX-.5*this.width}},centerY:{get:function(){return this.y-this.offsetY+.5*this.height},set:function(t){this.y=t+this.offsetY-.5*this.height}},left:{get:function(){return this.x-this.offsetX},set:function(t){this.x=t+this.offsetX}},right:{get:function(){return this.x+this.width-this.offsetX},set:function(t){this.x=t-this.width+this.offsetX}},top:{get:function(){return this.y-this.offsetY},set:function(t){this.y=t+this.offsetY}},bottom:{get:function(){return this.y+this.height-this.offsetY},set:function(t){this.y=t-this.height+this.offsetY}},alignIn:function(t,e,i,s){switch(void 0===i&&(i=0),void 0===s&&(s=0),e){default:case o.TOP_LEFT:this.left=t.left-i,this.top=t.top-s;break;case o.TOP_CENTER:this.centerX=t.centerX+i,this.top=t.top-s;break;case o.TOP_RIGHT:this.right=t.right+i,this.top=t.top-s;break;case o.LEFT_CENTER:this.left=t.left-i,this.centerY=t.centerY+s;break;case o.CENTER:this.centerX=t.centerX+i,this.centerY=t.centerY+s;break;case o.RIGHT_CENTER:this.right=t.right+i,this.centerY=t.centerY+s;break;case o.BOTTOM_LEFT:this.left=t.left-i,this.bottom=t.bottom+s;break;case o.BOTTOM_CENTER:this.centerX=t.centerX+i,this.bottom=t.bottom+s;break;case o.BOTTOM_RIGHT:this.right=t.right+i,this.bottom=t.bottom+s}return this},alignTo:function(t,e,i,s){switch(void 0===i&&(i=0),void 0===s&&(s=0),e){default:case o.TOP_LEFT:this.left=t.left-i,this.bottom=t.top-s;break;case o.TOP_CENTER:this.centerX=t.centerX+i,this.bottom=t.top-s;break;case o.TOP_RIGHT:this.right=t.right+i,this.bottom=t.top-s;break;case o.LEFT_TOP:this.right=t.left-i,this.top=t.top-s;break;case o.LEFT_CENTER:this.right=t.left-i,this.centerY=t.centerY+s;break;case o.LEFT_BOTTOM:this.right=t.left-i,this.bottom=t.bottom+s;break;case o.RIGHT_TOP:this.left=t.right+i,this.top=t.top-s;break;case o.RIGHT_CENTER:this.left=t.right+i,this.centerY=t.centerY+s;break;case o.RIGHT_BOTTOM:this.left=t.right+i,this.bottom=t.bottom+s;break;case o.BOTTOM_LEFT:this.left=t.left-i,this.top=t.bottom+s;break;case o.BOTTOM_CENTER:this.centerX=t.centerX+i,this.top=t.bottom+s;break;case o.BOTTOM_RIGHT:this.right=t.right+i,this.top=t.bottom+s}return this}},o.Group.prototype.alignIn=o.Component.Bounds.prototype.alignIn,o.Group.prototype.alignTo=o.Component.Bounds.prototype.alignTo,/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.BringToTop=function(){},o.Component.BringToTop.prototype.bringToTop=function(){return this.parent&&this.parent.bringToTop(this),this},o.Component.BringToTop.prototype.sendToBack=function(){return this.parent&&this.parent.sendToBack(this),this},o.Component.BringToTop.prototype.moveUp=function(){return this.parent&&this.parent.moveUp(this),this},o.Component.BringToTop.prototype.moveDown=function(){return this.parent&&this.parent.moveDown(this),this},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.Core=function(){},o.Component.Core.install=function(t){o.Utils.mixinPrototype(this,o.Component.Core.prototype),this.components={};for(var e=0;e +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.Crop=function(){},o.Component.Crop.prototype={cropRect:null,_crop:null,crop:function(t,e){void 0===e&&(e=!1),t?(e&&null!==this.cropRect?this.cropRect.setTo(t.x,t.y,t.width,t.height):e&&null===this.cropRect?this.cropRect=new o.Rectangle(t.x,t.y,t.width,t.height):this.cropRect=t,this.updateCrop()):(this._crop=null,this.cropRect=null,this.resetFrame())},updateCrop:function(){if(this.cropRect){var t=this.texture.crop.x,e=this.texture.crop.y,i=this.texture.crop.width,s=this.texture.crop.height;this._crop=o.Rectangle.clone(this.cropRect,this._crop),this._crop.x+=this._frame.x,this._crop.y+=this._frame.y;var n=Math.max(this._frame.x,this._crop.x),a=Math.max(this._frame.y,this._crop.y),r=Math.min(this._frame.right,this._crop.right)-n,h=Math.min(this._frame.bottom,this._crop.bottom)-a;this.texture.crop.x=n,this.texture.crop.y=a,this.texture.crop.width=r,this.texture.crop.height=h,this.texture.frame.width=Math.min(r,this.cropRect.width),this.texture.frame.height=Math.min(h,this.cropRect.height),this.texture.width=this.texture.frame.width,this.texture.height=this.texture.frame.height,this.texture._updateUvs(),16777215===this.tint||t===n&&e===a&&i===r&&s===h||(this.texture.requiresReTint=!0)}}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.Delta=function(){},o.Component.Delta.prototype={deltaX:{get:function(){return this.world.x-this.previousPosition.x}},deltaY:{get:function(){return this.world.y-this.previousPosition.y}},deltaZ:{get:function(){return this.rotation-this.previousRotation}}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.Destroy=function(){},o.Component.Destroy.prototype={destroyPhase:!1,destroy:function(t,e){if(null!==this.game&&!this.destroyPhase){void 0===t&&(t=!0),void 0===e&&(e=!1),this.destroyPhase=!0,this.events&&this.events.onDestroy$dispatch(this),this.parent&&(this.parent instanceof o.Group?this.parent.remove(this):this.parent.removeChild(this)),this.input&&this.input.destroy(),this.animations&&this.animations.destroy(),this.body&&this.body.destroy(),this.events&&this.events.destroy(),this.game.tweens.removeFrom(this);var i=this.children.length;if(t)for(;i--;)this.children[i].destroy(t);else for(;i--;)this.removeChild(this.children[i]);this._crop&&(this._crop=null,this.cropRect=null),this._frame&&(this._frame=null),o.Video&&this.key instanceof o.Video&&this.key.onChangeSource.remove(this.resizeFrame,this),o.BitmapText&&this._glyphs&&(this._glyphs=[]),this.alive=!1,this.exists=!1,this.visible=!1,this.filters=null,this.mask=null,this.game=null,this.data={},this.renderable=!1,this.transformCallback&&(this.transformCallback=null,this.transformCallbackContext=null),this.hitArea=null,this.parent=null,this.stage=null,this.worldTransform=null,this.filterArea=null,this._bounds=null,this._currentBounds=null,this._mask=null,this._destroyCachedSprite(),e&&this.texture.destroy(!0),this.destroyPhase=!1,this.pendingDestroy=!1}}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Events=function(t){this.parent=t},o.Events.prototype={destroy:function(){this._parent=null,this._onDestroy&&this._onDestroy.dispose(),this._onAddedToGroup&&this._onAddedToGroup.dispose(),this._onRemovedFromGroup&&this._onRemovedFromGroup.dispose(),this._onRemovedFromWorld&&this._onRemovedFromWorld.dispose(),this._onKilled&&this._onKilled.dispose(),this._onRevived&&this._onRevived.dispose(),this._onEnterBounds&&this._onEnterBounds.dispose(),this._onOutOfBounds&&this._onOutOfBounds.dispose(),this._onInputOver&&this._onInputOver.dispose(),this._onInputOut&&this._onInputOut.dispose(),this._onInputDown&&this._onInputDown.dispose(),this._onInputUp&&this._onInputUp.dispose(),this._onDragStart&&this._onDragStart.dispose(),this._onDragUpdate&&this._onDragUpdate.dispose(),this._onDragStop&&this._onDragStop.dispose(),this._onAnimationStart&&this._onAnimationStart.dispose(),this._onAnimationComplete&&this._onAnimationComplete.dispose(),this._onAnimationLoop&&this._onAnimationLoop.dispose()},onAddedToGroup:null,onRemovedFromGroup:null,onRemovedFromWorld:null,onDestroy:null,onKilled:null,onRevived:null,onOutOfBounds:null,onEnterBounds:null,onInputOver:null,onInputOut:null,onInputDown:null,onInputUp:null,onDragStart:null,onDragUpdate:null,onDragStop:null,onAnimationStart:null,onAnimationComplete:null,onAnimationLoop:null},o.Events.prototype.constructor=o.Events;for(var h in o.Events.prototype)o.Events.prototype.hasOwnProperty(h)&&0===h.indexOf("on")&&null===o.Events.prototype[h]&&function(t,e){"use strict";Object.defineProperty(o.Events.prototype,t,{get:function(){return this[e]||(this[e]=new o.Signal)}}),o.Events.prototype[t+"$dispatch"]=function(){return this[e]?this[e].dispatch.apply(this[e],arguments):null}}(h,"_"+h);/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.FixedToCamera=function(){},o.Component.FixedToCamera.postUpdate=function(){this.fixedToCamera&&(this.position.x=(this.game.camera.view.x+this.cameraOffset.x)/this.game.camera.scale.x,this.position.y=(this.game.camera.view.y+this.cameraOffset.y)/this.game.camera.scale.y)},o.Component.FixedToCamera.prototype={_fixedToCamera:!1,fixedToCamera:{get:function(){return this._fixedToCamera},set:function(t){t?(this._fixedToCamera=!0,this.cameraOffset.set(this.x,this.y)):this._fixedToCamera=!1}},cameraOffset:new o.Point},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.Health=function(){},o.Component.Health.prototype={health:1,maxHealth:100,damage:function(t){return this.alive&&(this.health-=t,this.health<=0&&this.kill()),this},setHealth:function(t){return this.health=t,this.health>this.maxHealth&&(this.health=this.maxHealth),this},heal:function(t){return this.alive&&(this.health+=t,this.health>this.maxHealth&&(this.health=this.maxHealth)),this}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.InCamera=function(){},o.Component.InCamera.prototype={inCamera:{get:function(){return this.game.world.camera.view.intersects(this._bounds)}}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.InputEnabled=function(){},o.Component.InputEnabled.prototype={input:null,inputEnabled:{get:function(){return this.input&&this.input.enabled},set:function(t){t?null===this.input?(this.input=new o.InputHandler(this),this.input.start()):this.input&&!this.input.enabled&&this.input.start():this.input&&this.input.enabled&&this.input.stop()}}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.InWorld=function(){},o.Component.InWorld.preUpdate=function(){if(this.autoCull||this.checkWorldBounds){if(this._bounds.copyFrom(this.getBounds()),this._bounds.x+=this.game.camera.view.x,this._bounds.y+=this.game.camera.view.y,this.autoCull)if(this.game.world.camera.view.intersects(this._bounds))this.renderable=!0,this.game.world.camera.totalInView++;else if(this.renderable=!1,this.outOfCameraBoundsKill)return this.kill(),!1;if(this.checkWorldBounds)if(this._outOfBoundsFired&&this.game.world.bounds.intersects(this._bounds))this._outOfBoundsFired=!1,this.events.onEnterBounds$dispatch(this);else if(!this._outOfBoundsFired&&!this.game.world.bounds.intersects(this._bounds)&&(this._outOfBoundsFired=!0,this.events.onOutOfBounds$dispatch(this),this.outOfBoundsKill))return this.kill(),!1}return!0},o.Component.InWorld.prototype={checkWorldBounds:!1,outOfBoundsKill:!1,outOfCameraBoundsKill:!1,_outOfBoundsFired:!1,inWorld:{get:function(){return this.game.world.bounds.intersects(this.getBounds())}}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.LifeSpan=function(){},o.Component.LifeSpan.preUpdate=function(){return!(this.lifespan>0&&(this.lifespan-=this.game.time.physicsElapsedMS,this.lifespan<=0))||(this.kill(),!1)},o.Component.LifeSpan.prototype={alive:!0,lifespan:0,revive:function(t){return void 0===t&&(t=100),this.alive=!0,this.exists=!0,this.visible=!0,"function"==typeof this.setHealth&&this.setHealth(t),this.events&&this.events.onRevived$dispatch(this),this},kill:function(){return this.alive=!1,this.exists=!1,this.visible=!1,this.events&&this.events.onKilled$dispatch(this),this}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.LoadTexture=function(){},o.Component.LoadTexture.prototype={customRender:!1,_frame:null,loadTexture:function(t,e,i){t===o.PENDING_ATLAS?(t=e,e=0):e=e||0,(i||void 0===i)&&this.animations&&this.animations.stop(),this.key=t,this.customRender=!1;var s=this.game.cache,n=!0,a=!this.texture.baseTexture.scaleMode;if(o.RenderTexture&&t instanceof o.RenderTexture)this.key=t.key,this.setTexture(t);else if(o.BitmapData&&t instanceof o.BitmapData)this.customRender=!0,this.setTexture(t.texture),n=s.hasFrameData(t.key,o.Cache.BITMAPDATA)?!this.animations.loadFrameData(s.getFrameData(t.key,o.Cache.BITMAPDATA),e):!this.animations.loadFrameData(t.frameData,0);else if(o.Video&&t instanceof o.Video){this.customRender=!0;var r=t.texture.valid;this.setTexture(t.texture),this.setFrame(t.texture.frame.clone()),t.onChangeSource.add(this.resizeFrame,this),this.texture.valid=r}else if(o.Tilemap&&t instanceof o.TilemapLayer)this.setTexture(PIXI.Texture.fromCanvas(t.canvas));else if(t instanceof PIXI.Texture)this.setTexture(t);else{var h=s.getImage(t,!0);this.key=h.key,this.setTexture(new PIXI.Texture(h.base)),this.texture.baseTexture.skipRender="__default"===t,n=!this.animations.loadFrameData(h.frameData,e)}n&&(this._frame=o.Rectangle.clone(this.texture.frame)),a||(this.texture.baseTexture.scaleMode=1)},setFrame:function(t){this._frame=t,this.texture.frame.x=t.x,this.texture.frame.y=t.y,this.texture.frame.width=t.width,this.texture.frame.height=t.height,this.texture.crop.x=t.x,this.texture.crop.y=t.y,this.texture.crop.width=t.width,this.texture.crop.height=t.height,t.trimmed?(this.texture.trim?(this.texture.trim.x=t.spriteSourceSizeX,this.texture.trim.y=t.spriteSourceSizeY,this.texture.trim.width=t.sourceSizeW,this.texture.trim.height=t.sourceSizeH):this.texture.trim={x:t.spriteSourceSizeX,y:t.spriteSourceSizeY,width:t.sourceSizeW,height:t.sourceSizeH},this.texture.width=t.sourceSizeW,this.texture.height=t.sourceSizeH,this.texture.frame.width=t.sourceSizeW,this.texture.frame.height=t.sourceSizeH):!t.trimmed&&this.texture.trim&&(this.texture.trim=null),this.cropRect&&this.updateCrop(),this.texture.requiresReTint=!0,this.texture._updateUvs(),this.tilingTexture&&(this.refreshTexture=!0)},resizeFrame:function(t,e,i){this.texture.frame.resize(e,i),this.texture.setFrame(this.texture.frame)},resetFrame:function(){this._frame&&this.setFrame(this._frame)},frame:{get:function(){return this.animations.frame},set:function(t){this.animations.frame=t}},frameName:{get:function(){return this.animations.frameName},set:function(t){this.animations.frameName=t}}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.Overlap=function(){},o.Component.Overlap.prototype={overlap:function(t){return o.Rectangle.intersects(this.getBounds(),t.getBounds())}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.PhysicsBody=function(){},o.Component.PhysicsBody.preUpdate=function(){return this.fresh&&this.exists?(this.world.setTo(this.parent.position.x+this.position.x,this.parent.position.y+this.position.y),this.worldTransform.tx=this.world.x,this.worldTransform.ty=this.world.y,this.previousPosition.set(this.world.x,this.world.y),this.previousRotation=this.rotation,this.body&&this.body.preUpdate(),this.fresh=!1,!1):(this.previousPosition.set(this.world.x,this.world.y),this.previousRotation=this.rotation,!(!this._exists||!this.parent.exists)||(this.renderOrderID=-1,!1))},o.Component.PhysicsBody.postUpdate=function(){this.exists&&this.body&&this.body.postUpdate()},o.Component.PhysicsBody.prototype={body:null,x:{get:function(){return this.position.x},set:function(t){this.position.x=t,this.body&&!this.body.dirty&&(this.body._reset=!0)}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t,this.body&&!this.body.dirty&&(this.body._reset=!0)}}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.Reset=function(){},o.Component.Reset.prototype.reset=function(t,e,i){return void 0===i&&(i=1),this.world.set(t,e),this.position.set(t,e),this.fresh=!0,this.exists=!0,this.visible=!0,this.renderable=!0,this.components.InWorld&&(this._outOfBoundsFired=!1),this.components.LifeSpan&&(this.alive=!0,this.health=i),this.components.PhysicsBody&&this.body&&this.body.reset(t,e,!1,!1),this},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.ScaleMinMax=function(){},o.Component.ScaleMinMax.prototype={transformCallback:null,transformCallbackContext:this,scaleMin:null,scaleMax:null,checkTransform:function(t){this.scaleMin&&(t.athis.scaleMax.x&&(t.a=this.scaleMax.x),t.d>this.scaleMax.y&&(t.d=this.scaleMax.y))},setScaleMinMax:function(t,e,i,s){void 0===e?e=i=s=t:void 0===i&&(i=s=e,e=t),null===t?this.scaleMin=null:this.scaleMin?this.scaleMin.set(t,e):this.scaleMin=new o.Point(t,e),null===i?this.scaleMax=null:this.scaleMax?this.scaleMax.set(i,s):this.scaleMax=new o.Point(i,s),null===this.scaleMin?this.transformCallback=null:(this.transformCallback=this.checkTransform,this.transformCallbackContext=this)}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Component.Smoothed=function(){},o.Component.Smoothed.prototype={smoothed:{get:function(){return!this.texture.baseTexture.scaleMode},set:function(t){t?this.texture&&(this.texture.baseTexture.scaleMode=0):this.texture&&(this.texture.baseTexture.scaleMode=1)}}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.GameObjectFactory=function(t){this.game=t,this.world=this.game.world},o.GameObjectFactory.prototype={existing:function(t){return this.world.add(t)},weapon:function(t,e,i,s){var n=this.game.plugins.add(o.Weapon);return n.createBullets(t,e,i,s),n},image:function(t,e,i,s,n){return void 0===n&&(n=this.world),n.add(new o.Image(this.game,t,e,i,s))},sprite:function(t,e,i,s,n){return void 0===n&&(n=this.world),n.create(t,e,i,s)},creature:function(t,e,i,s,n){void 0===n&&(n=this.world);var a=new o.Creature(this.game,t,e,i,s);return n.add(a),a},tween:function(t){return this.game.tweens.create(t)},group:function(t,e,i,s,n){return new o.Group(this.game,t,e,i,s,n)},physicsGroup:function(t,e,i,s){return new o.Group(this.game,e,i,s,!0,t)},spriteBatch:function(t,e,i){return void 0===t&&(t=null),void 0===e&&(e="group"),void 0===i&&(i=!1),new o.SpriteBatch(this.game,t,e,i)},audio:function(t,e,i,s){return this.game.sound.add(t,e,i,s)},sound:function(t,e,i,s){return this.game.sound.add(t,e,i,s)},audioSprite:function(t){return this.game.sound.addSprite(t)},tileSprite:function(t,e,i,s,n,a,r){return void 0===r&&(r=this.world),r.add(new o.TileSprite(this.game,t,e,i,s,n,a))},rope:function(t,e,i,s,n,a){return void 0===a&&(a=this.world),a.add(new o.Rope(this.game,t,e,i,s,n))},text:function(t,e,i,s,n){return void 0===n&&(n=this.world),n.add(new o.Text(this.game,t,e,i,s))},button:function(t,e,i,s,n,a,r,h,l,c){return void 0===c&&(c=this.world),c.add(new o.Button(this.game,t,e,i,s,n,a,r,h,l))},graphics:function(t,e,i){return void 0===i&&(i=this.world),i.add(new o.Graphics(this.game,t,e))},emitter:function(t,e,i){return this.game.particles.add(new o.Particles.Arcade.Emitter(this.game,t,e,i))},retroFont:function(t,e,i,s,n,a,r,h,l){return new o.RetroFont(this.game,t,e,i,s,n,a,r,h,l)},bitmapText:function(t,e,i,s,n,a){return void 0===a&&(a=this.world),a.add(new o.BitmapText(this.game,t,e,i,s,n))},tilemap:function(t,e,i,s,n){return new o.Tilemap(this.game,t,e,i,s,n)},renderTexture:function(t,e,i,s){void 0!==i&&""!==i||(i=this.game.rnd.uuid()),void 0===s&&(s=!1);var n=new o.RenderTexture(this.game,t,e,i);return s&&this.game.cache.addRenderTexture(i,n),n},video:function(t,e){return new o.Video(this.game,t,e)},bitmapData:function(t,e,i,s){void 0===s&&(s=!1),void 0!==i&&""!==i||(i=this.game.rnd.uuid());var n=new o.BitmapData(this.game,i,t,e);return s&&this.game.cache.addBitmapData(i,n),n},filter:function(t){var e=Array.prototype.slice.call(arguments,1),t=new o.Filter[t](this.game);return t.init.apply(t,e),t},plugin:function(t){return this.game.plugins.add(t)}},o.GameObjectFactory.prototype.constructor=o.GameObjectFactory,/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.GameObjectCreator=function(t){this.game=t,this.world=this.game.world},o.GameObjectCreator.prototype={image:function(t,e,i,s){return new o.Image(this.game,t,e,i,s)},sprite:function(t,e,i,s){return new o.Sprite(this.game,t,e,i,s)},tween:function(t){return new o.Tween(t,this.game,this.game.tweens)},group:function(t,e,i,s,n){return new o.Group(this.game,t,e,i,s,n)},spriteBatch:function(t,e,i){return void 0===e&&(e="group"),void 0===i&&(i=!1),new o.SpriteBatch(this.game,t,e,i)},audio:function(t,e,i,s){return this.game.sound.add(t,e,i,s)},audioSprite:function(t){return this.game.sound.addSprite(t)},sound:function(t,e,i,s){return this.game.sound.add(t,e,i,s)},tileSprite:function(t,e,i,s,n,a){return new o.TileSprite(this.game,t,e,i,s,n,a)},rope:function(t,e,i,s,n){return new o.Rope(this.game,t,e,i,s,n)},text:function(t,e,i,s){return new o.Text(this.game,t,e,i,s)},button:function(t,e,i,s,n,a,r,h,l){return new o.Button(this.game,t,e,i,s,n,a,r,h,l)},graphics:function(t,e){return new o.Graphics(this.game,t,e)},emitter:function(t,e,i){return new o.Particles.Arcade.Emitter(this.game,t,e,i)},retroFont:function(t,e,i,s,n,a,r,h,l){return new o.RetroFont(this.game,t,e,i,s,n,a,r,h,l)},bitmapText:function(t,e,i,s,n,a){return new o.BitmapText(this.game,t,e,i,s,n,a)},tilemap:function(t,e,i,s,n){return new o.Tilemap(this.game,t,e,i,s,n)},renderTexture:function(t,e,i,s){void 0!==i&&""!==i||(i=this.game.rnd.uuid()),void 0===s&&(s=!1);var n=new o.RenderTexture(this.game,t,e,i);return s&&this.game.cache.addRenderTexture(i,n),n},bitmapData:function(t,e,i,s){void 0===s&&(s=!1),void 0!==i&&""!==i||(i=this.game.rnd.uuid());var n=new o.BitmapData(this.game,i,t,e);return s&&this.game.cache.addBitmapData(i,n),n},filter:function(t){var e=Array.prototype.slice.call(arguments,1),t=new o.Filter[t](this.game);return t.init.apply(t,e),t}},o.GameObjectCreator.prototype.constructor=o.GameObjectCreator,/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Sprite=function(t,e,i,s,n){e=e||0,i=i||0,s=s||null,n=n||null,this.type=o.SPRITE,this.physicsType=o.SPRITE,PIXI.Sprite.call(this,o.Cache.DEFAULT),o.Component.Core.init.call(this,t,e,i,s,n)},o.Sprite.prototype=Object.create(PIXI.Sprite.prototype),o.Sprite.prototype.constructor=o.Sprite,o.Component.Core.install.call(o.Sprite.prototype,["Angle","Animation","AutoCull","Bounds","BringToTop","Crop","Delta","Destroy","FixedToCamera","Health","InCamera","InputEnabled","InWorld","LifeSpan","LoadTexture","Overlap","PhysicsBody","Reset","ScaleMinMax","Smoothed"]),o.Sprite.prototype.preUpdatePhysics=o.Component.PhysicsBody.preUpdate,o.Sprite.prototype.preUpdateLifeSpan=o.Component.LifeSpan.preUpdate,o.Sprite.prototype.preUpdateInWorld=o.Component.InWorld.preUpdate,o.Sprite.prototype.preUpdateCore=o.Component.Core.preUpdate,o.Sprite.prototype.preUpdate=function(){return!!(this.preUpdatePhysics()&&this.preUpdateLifeSpan()&&this.preUpdateInWorld())&&this.preUpdateCore()},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Image=function(t,e,i,s,n){e=e||0,i=i||0,s=s||null,n=n||null,this.type=o.IMAGE,PIXI.Sprite.call(this,o.Cache.DEFAULT),o.Component.Core.init.call(this,t,e,i,s,n)},o.Image.prototype=Object.create(PIXI.Sprite.prototype),o.Image.prototype.constructor=o.Image,o.Component.Core.install.call(o.Image.prototype,["Angle","Animation","AutoCull","Bounds","BringToTop","Crop","Destroy","FixedToCamera","InputEnabled","LifeSpan","LoadTexture","Overlap","Reset","ScaleMinMax","Smoothed"]),o.Image.prototype.preUpdateInWorld=o.Component.InWorld.preUpdate,o.Image.prototype.preUpdateCore=o.Component.Core.preUpdate,o.Image.prototype.preUpdate=function(){return!!this.preUpdateInWorld()&&this.preUpdateCore()},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Button=function(t,e,i,s,n,a,r,h,l,c){e=e||0,i=i||0,s=s||null,n=n||null,a=a||this,o.Image.call(this,t,e,i,s,h),this.type=o.BUTTON,this.physicsType=o.SPRITE,this._onOverFrame=null,this._onOutFrame=null,this._onDownFrame=null,this._onUpFrame=null,this.onOverSound=null,this.onOutSound=null,this.onDownSound=null,this.onUpSound=null,this.onOverSoundMarker="",this.onOutSoundMarker="",this.onDownSoundMarker="",this.onUpSoundMarker="",this.onInputOver=new o.Signal,this.onInputOut=new o.Signal,this.onInputDown=new o.Signal,this.onInputUp=new o.Signal,this.onOverMouseOnly=!0,this.justReleasedPreventsOver=o.PointerMode.TOUCH,this.freezeFrames=!1,this.forceOut=!1,this.inputEnabled=!0,this.input.start(0,!0),this.input.useHandCursor=!0,this.setFrames(r,h,l,c),null!==n&&this.onInputUp.add(n,a),this.events.onInputOver.add(this.onInputOverHandler,this),this.events.onInputOut.add(this.onInputOutHandler,this),this.events.onInputDown.add(this.onInputDownHandler,this),this.events.onInputUp.add(this.onInputUpHandler,this),this.events.onRemovedFromWorld.add(this.removedFromWorld,this)},o.Button.prototype=Object.create(o.Image.prototype),o.Button.prototype.constructor=o.Button;var l="Over",c="Out",u="Down",d="Up";o.Button.prototype.clearFrames=function(){this.setFrames(null,null,null,null)},o.Button.prototype.removedFromWorld=function(){this.inputEnabled=!1},o.Button.prototype.setStateFrame=function(t,e,i){var s="_on"+t+"Frame";null!==e?(this[s]=e,i&&this.changeStateFrame(t)):this[s]=null},o.Button.prototype.changeStateFrame=function(t){if(this.freezeFrames)return!1;var e="_on"+t+"Frame",i=this[e];return"string"==typeof i?(this.frameName=i,!0):"number"==typeof i&&(this.frame=i,!0)},o.Button.prototype.setFrames=function(t,e,i,s){this.setStateFrame("Over",t,this.input.pointerOver()),this.setStateFrame("Out",e,!this.input.pointerOver()),this.setStateFrame("Down",i,this.input.pointerDown()),this.setStateFrame("Up",s,this.input.pointerUp())},o.Button.prototype.setStateSound=function(t,e,i){var s="on"+t+"Sound",n="on"+t+"SoundMarker";e instanceof o.Sound||e instanceof o.AudioSprite?(this[s]=e,this[n]="string"==typeof i?i:""):(this[s]=null,this[n]="")},o.Button.prototype.playStateSound=function(t){var e="on"+t+"Sound",i=this[e];if(i){var s="on"+t+"SoundMarker",n=this[s];return i.play(n),!0}return!1},o.Button.prototype.setSounds=function(t,e,i,s,n,o,a,r){this.setStateSound("Over",t,e),this.setStateSound("Out",n,o),this.setStateSound("Down",i,s),this.setStateSound("Up",a,r)},o.Button.prototype.setOverSound=function(t,e){this.setStateSound("Over",t,e)},o.Button.prototype.setOutSound=function(t,e){this.setStateSound("Out",t,e)},o.Button.prototype.setDownSound=function(t,e){this.setStateSound("Down",t,e)},o.Button.prototype.setUpSound=function(t,e){this.setStateSound("Up",t,e)},o.Button.prototype.onInputOverHandler=function(t,e){e.justReleased()&&(this.justReleasedPreventsOver&e.pointerMode)===e.pointerMode||(this.changeStateFrame("Over"),this.onOverMouseOnly&&!e.isMouse||(this.playStateSound("Over"),this.onInputOver&&this.onInputOver.dispatch(this,e)))},o.Button.prototype.onInputOutHandler=function(t,e){this.changeStateFrame("Out"),this.playStateSound("Out"),this.onInputOut&&this.onInputOut.dispatch(this,e)},o.Button.prototype.onInputDownHandler=function(t,e){this.changeStateFrame("Down"),this.playStateSound("Down"),this.onInputDown&&this.onInputDown.dispatch(this,e)},o.Button.prototype.onInputUpHandler=function(t,e,i){if(this.playStateSound("Up"),this.onInputUp&&this.onInputUp.dispatch(this,e,i),!this.freezeFrames)if(!0===this.forceOut||(this.forceOut&e.pointerMode)===e.pointerMode)this.changeStateFrame("Out");else{var s=this.changeStateFrame("Up");s||(i?this.changeStateFrame("Over"):this.changeStateFrame("Out"))}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.SpriteBatch=function(t,e,i,s){void 0!==e&&null!==e||(e=t.world),PIXI.SpriteBatch.call(this),o.Group.call(this,t,e,i,s),this.type=o.SPRITEBATCH},o.SpriteBatch.prototype=o.Utils.extend(!0,o.SpriteBatch.prototype,PIXI.SpriteBatch.prototype,o.Group.prototype),o.SpriteBatch.prototype.constructor=o.SpriteBatch,/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.BitmapData=function(t,e,i,s,n){void 0!==i&&0!==i||(i=256),void 0!==s&&0!==s||(s=256),void 0===n&&(n=!1),this.game=t,this.key=e,this.width=i,this.height=s,this.canvas=o.Canvas.create(this,i,s,null,n),this.context=this.canvas.getContext("2d",{alpha:!0}),this.ctx=this.context,this.smoothProperty=t.renderType===o.CANVAS?t.renderer.renderSession.smoothProperty:o.Canvas.getSmoothingPrefix(this.context),this.imageData=this.context.getImageData(0,0,i,s),this.data=null,this.imageData&&(this.data=this.imageData.data),this.pixels=null,this.data&&(this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data),this.baseTexture=new PIXI.BaseTexture(this.canvas),this.texture=new PIXI.Texture(this.baseTexture),this.frameData=new o.FrameData,this.textureFrame=this.frameData.addFrame(new o.Frame(0,0,0,i,s,"bitmapData")),this.texture.frame=this.textureFrame,this.type=o.BITMAPDATA,this.disableTextureUpload=!1,this.dirty=!1,this.cls=this.clear,this._image=null,this._pos=new o.Point,this._size=new o.Point,this._scale=new o.Point,this._rotate=0,this._alpha={prev:1,current:1},this._anchor=new o.Point,this._tempR=0,this._tempG=0,this._tempB=0,this._circle=new o.Circle,this._swapCanvas=void 0},o.BitmapData.prototype={move:function(t,e,i){return 0!==t&&this.moveH(t,i),0!==e&&this.moveV(e,i),this},moveH:function(t,e){void 0===e&&(e=!0),void 0===this._swapCanvas&&(this._swapCanvas=PIXI.CanvasPool.create(this,this.width,this.height));var i=this._swapCanvas,s=i.getContext("2d"),n=this.height,o=this.canvas;if(s.clearRect(0,0,this.width,this.height),t<0){t=Math.abs(t);var a=this.width-t;e&&s.drawImage(o,0,0,t,n,a,0,t,n),s.drawImage(o,t,0,a,n,0,0,a,n)}else{var a=this.width-t;e&&s.drawImage(o,a,0,t,n,0,0,t,n),s.drawImage(o,0,0,a,n,t,0,a,n)}return this.clear(),this.copy(this._swapCanvas)},moveV:function(t,e){void 0===e&&(e=!0),void 0===this._swapCanvas&&(this._swapCanvas=PIXI.CanvasPool.create(this,this.width,this.height));var i=this._swapCanvas,s=i.getContext("2d"),n=this.width,o=this.canvas;if(s.clearRect(0,0,this.width,this.height),t<0){t=Math.abs(t);var a=this.height-t;e&&s.drawImage(o,0,0,n,t,0,a,n,t),s.drawImage(o,0,t,n,a,0,0,n,a)}else{var a=this.height-t;e&&s.drawImage(o,0,a,n,t,0,0,n,t),s.drawImage(o,0,0,n,a,0,t,n,a)}return this.clear(),this.copy(this._swapCanvas)},add:function(t){if(Array.isArray(t))for(var e=0;e=0&&t<=this.width&&e>=0&&e<=this.height&&(o.Device.LITTLE_ENDIAN?this.pixels[e*this.width+t]=a<<24|n<<16|s<<8|i:this.pixels[e*this.width+t]=i<<24|s<<16|n<<8|a,r&&(this.context.putImageData(this.imageData,0,0),this.dirty=!0)),this},setPixel:function(t,e,i,s,n,o){return this.setPixel32(t,e,i,s,n,255,o)},getPixel:function(t,e,i){i||(i=o.Color.createColor());var s=~~(t+e*this.width);return s*=4,i.r=this.data[s],i.g=this.data[++s],i.b=this.data[++s],i.a=this.data[++s],i},getPixel32:function(t,e){if(t>=0&&t<=this.width&&e>=0&&e<=this.height)return this.pixels[e*this.width+t]},getPixelRGB:function(t,e,i,s,n){return o.Color.unpackPixel(this.getPixel32(t,e),i,s,n)},getPixels:function(t){return this.context.getImageData(t.x,t.y,t.width,t.height)},getFirstPixel:function(t){void 0===t&&(t=0);var e=o.Color.createColor(),i=0,s=0,n=1,a=!1;1===t?(n=-1,s=this.height):3===t&&(n=-1,i=this.width);do{o.Color.unpackPixel(this.getPixel32(i,s),e),0===t||1===t?++i===this.width&&(i=0,((s+=n)>=this.height||s<=0)&&(a=!0)):2!==t&&3!==t||++s===this.height&&(s=0,((i+=n)>=this.width||i<=0)&&(a=!0))}while(0===e.a&&!a);return e.x=i,e.y=s,e},getBounds:function(t){return void 0===t&&(t=new o.Rectangle),t.x=this.getFirstPixel(2).x,t.x===this.width?t.setTo(0,0,0,0):(t.y=this.getFirstPixel(0).y,t.width=this.getFirstPixel(3).x-t.x+1,t.height=this.getFirstPixel(1).y-t.y+1,t)},addToWorld:function(t,e,i,s,n,o){n=n||1,o=o||1;var a=this.game.add.image(t,e,this);return a.anchor.set(i,s),a.scale.set(n,o),a},copy:function(t,e,i,s,n,a,r,h,l,c,u,d,p,f,y,g,m){if(void 0!==t&&null!==t||(t=this),(t instanceof o.RenderTexture||t instanceof PIXI.RenderTexture)&&(t=t.getCanvas()),this._image=t,t instanceof o.Sprite||t instanceof o.Image||t instanceof o.Text||t instanceof PIXI.Sprite)this._pos.set(t.texture.crop.x,t.texture.crop.y),this._size.set(t.texture.crop.width,t.texture.crop.height),this._scale.set(t.scale.x,t.scale.y),this._anchor.set(t.anchor.x,t.anchor.y),this._rotate=t.rotation,this._alpha.current=t.alpha,t.texture instanceof o.RenderTexture||t.texture instanceof PIXI.RenderTexture?this._image=t.texture.getCanvas():this._image=t.texture.baseTexture.source,void 0!==a&&null!==a||(a=t.x),void 0!==r&&null!==r||(r=t.y),t.texture.trim&&(a+=t.texture.trim.x-t.anchor.x*t.texture.trim.width,r+=t.texture.trim.y-t.anchor.y*t.texture.trim.height),16777215!==t.tint&&(t.cachedTint!==t.tint&&(t.cachedTint=t.tint,t.tintedTexture=PIXI.CanvasTinter.getTintedTexture(t,t.tint)),this._image=t.tintedTexture,this._pos.set(0));else{if(this._pos.set(0),this._scale.set(1),this._anchor.set(0),this._rotate=0,this._alpha.current=1,t instanceof o.BitmapData)this._image=t.canvas;else if("string"==typeof t){if(null===(t=this.game.cache.getImage(t)))return;this._image=t}this._size.set(this._image.width,this._image.height)}if(void 0!==e&&null!==e||(e=0),void 0!==i&&null!==i||(i=0),s&&(this._size.x=s),n&&(this._size.y=n),void 0!==a&&null!==a||(a=e),void 0!==r&&null!==r||(r=i),void 0!==h&&null!==h||(h=this._size.x),void 0!==l&&null!==l||(l=this._size.y),"number"==typeof c&&(this._rotate=c),"number"==typeof u&&(this._anchor.x=u),"number"==typeof d&&(this._anchor.y=d),"number"==typeof p&&(this._scale.x=p),"number"==typeof f&&(this._scale.y=f),"number"==typeof y&&(this._alpha.current=y),void 0===g&&(g=null),void 0===m&&(m=!1),!(this._alpha.current<=0||0===this._scale.x||0===this._scale.y||0===this._size.x||0===this._size.y)){var v=this.context;return this._alpha.prev=v.globalAlpha,v.save(),v.globalAlpha=this._alpha.current,g&&(this.op=g),m&&(a|=0,r|=0),v.translate(a,r),v.scale(this._scale.x,this._scale.y),v.rotate(this._rotate),v.drawImage(this._image,this._pos.x+e,this._pos.y+i,this._size.x,this._size.y,-h*this._anchor.x,-l*this._anchor.y,h,l),v.restore(),v.globalAlpha=this._alpha.prev,this.dirty=!0,this}},copyTransform:function(t,e,i){if(void 0===e&&(e=null),void 0===i&&(i=!1),!t.hasOwnProperty("worldTransform")||!t.worldVisible||0===t.worldAlpha)return this;var s=t.worldTransform;if(this._pos.set(t.texture.crop.x,t.texture.crop.y),this._size.set(t.texture.crop.width,t.texture.crop.height),0===s.a||0===s.d||0===this._size.x||0===this._size.y)return this;t.texture instanceof o.RenderTexture||t.texture instanceof PIXI.RenderTexture?this._image=t.texture.getCanvas():this._image=t.texture.baseTexture.source;var n=s.tx,a=s.ty;t.texture.trim&&(n+=t.texture.trim.x-t.anchor.x*t.texture.trim.width,a+=t.texture.trim.y-t.anchor.y*t.texture.trim.height),16777215!==t.tint&&(t.cachedTint!==t.tint&&(t.cachedTint=t.tint,t.tintedTexture=PIXI.CanvasTinter.getTintedTexture(t,t.tint)),this._image=t.tintedTexture,this._pos.set(0)),i&&(n|=0,a|=0);var r=this.context;return this._alpha.prev=r.globalAlpha,r.save(),r.globalAlpha=this._alpha.current,e&&(this.op=e),r[this.smoothProperty]=t.texture.baseTexture.scaleMode===PIXI.scaleModes.LINEAR,r.setTransform(s.a,s.b,s.c,s.d,n,a),r.drawImage(this._image,this._pos.x,this._pos.y,this._size.x,this._size.y,-this._size.x*t.anchor.x,-this._size.y*t.anchor.y,this._size.x,this._size.y),r.restore(),r.globalAlpha=this._alpha.prev,this.dirty=!0,this},copyRect:function(t,e,i,s,n,o,a){return this.copy(t,e.x,e.y,e.width,e.height,i,s,e.width,e.height,0,0,0,1,1,n,o,a)},draw:function(t,e,i,s,n,o,a){return this.copy(t,null,null,null,null,e,i,s,n,null,null,null,null,null,null,o,a)},drawGroup:function(t,e,i){return t.total>0&&t.forEachExists(this.drawGroupProxy,this,e,i),this},drawGroupProxy:function(t,e,i){if(t.hasOwnProperty("texture")&&this.copyTransform(t,e,i),t.type===o.GROUP&&t.exists)this.drawGroup(t,e,i);else if(t.hasOwnProperty("children")&&t.children.length>0)for(var s=0;se.width&&(s=e.width);var n=this.context;return n.fillStyle=n.createPattern(e,i),this._circle=new o.Circle(t.start.x,t.start.y,e.height),this._circle.circumferencePoint(t.angle-1.5707963267948966,!1,this._pos),n.save(),n.translate(this._pos.x,this._pos.y),n.rotate(t.angle),n.fillRect(0,0,s,e.height),n.restore(),this.dirty=!0,this}},render:function(){return!this.disableTextureUpload&&this.dirty&&(this.baseTexture.dirty(),this.dirty=!1),this},destroy:function(){this.frameData.destroy(),this.texture.destroy(!0),PIXI.CanvasPool.remove(this)},blendReset:function(){return this.op="source-over",this},blendSourceOver:function(){return this.op="source-over",this},blendSourceIn:function(){return this.op="source-in",this},blendSourceOut:function(){return this.op="source-out",this},blendSourceAtop:function(){return this.op="source-atop",this},blendDestinationOver:function(){return this.op="destination-over",this},blendDestinationIn:function(){return this.op="destination-in",this},blendDestinationOut:function(){return this.op="destination-out",this},blendDestinationAtop:function(){return this.op="destination-atop",this},blendXor:function(){return this.op="xor",this},blendAdd:function(){return this.op="lighter",this},blendMultiply:function(){return this.op="multiply",this},blendScreen:function(){return this.op="screen",this},blendOverlay:function(){return this.op="overlay",this},blendDarken:function(){return this.op="darken",this},blendLighten:function(){return this.op="lighten",this},blendColorDodge:function(){return this.op="color-dodge",this},blendColorBurn:function(){return this.op="color-burn",this},blendHardLight:function(){return this.op="hard-light",this},blendSoftLight:function(){return this.op="soft-light",this},blendDifference:function(){return this.op="difference",this},blendExclusion:function(){return this.op="exclusion",this},blendHue:function(){return this.op="hue",this},blendSaturation:function(){return this.op="saturation",this},blendColor:function(){return this.op="color",this},blendLuminosity:function(){return this.op="luminosity",this}},Object.defineProperty(o.BitmapData.prototype,"smoothed",{get:function(){o.Canvas.getSmoothingEnabled(this.context)},set:function(t){o.Canvas.setSmoothingEnabled(this.context,t)}}),Object.defineProperty(o.BitmapData.prototype,"op",{get:function(){return this.context.globalCompositeOperation},set:function(t){this.context.globalCompositeOperation=t}}),o.BitmapData.getTransform=function(t,e,i,s,n,o){return"number"!=typeof t&&(t=0),"number"!=typeof e&&(e=0),"number"!=typeof i&&(i=1),"number"!=typeof s&&(s=1),"number"!=typeof n&&(n=0),"number"!=typeof o&&(o=0),{sx:i,sy:s,scaleX:i,scaleY:s,skewX:n,skewY:o,translateX:t,translateY:e,tx:t,ty:e}},o.BitmapData.prototype.constructor=o.BitmapData,PIXI.Graphics=function(){PIXI.DisplayObjectContainer.call(this),this.renderable=!0,this.fillAlpha=1,this.lineWidth=0,this.lineColor=0,this.graphicsData=[],this.tint=16777215,this.blendMode=PIXI.blendModes.NORMAL,this.currentPath=null,this._webGL=[],this.isMask=!1,this.boundsPadding=0,this._localBounds=new PIXI.Rectangle(0,0,1,1),this.dirty=!0,this._boundsDirty=!1,this.webGLDirty=!1,this.cachedSpriteDirty=!1},PIXI.Graphics.prototype=Object.create(PIXI.DisplayObjectContainer.prototype),PIXI.Graphics.prototype.constructor=PIXI.Graphics,PIXI.Graphics.prototype.lineStyle=function(t,e,i){return this.lineWidth=t||0,this.lineColor=e||0,this.lineAlpha=void 0===i?1:i,this.currentPath&&(this.currentPath.shape.points.length?this.drawShape(new PIXI.Polygon(this.currentPath.shape.points.slice(-2))):(this.currentPath.lineWidth=this.lineWidth,this.currentPath.lineColor=this.lineColor,this.currentPath.lineAlpha=this.lineAlpha)),this},PIXI.Graphics.prototype.moveTo=function(t,e){return this.drawShape(new PIXI.Polygon([t,e])),this},PIXI.Graphics.prototype.lineTo=function(t,e){return this.currentPath||this.moveTo(0,0),this.currentPath.shape.points.push(t,e),this.dirty=!0,this._boundsDirty=!0,this},PIXI.Graphics.prototype.quadraticCurveTo=function(t,e,i,s){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var n,o,a=20,r=this.currentPath.shape.points;0===r.length&&this.moveTo(0,0);for(var h=r[r.length-2],l=r[r.length-1],c=0,u=1;u<=a;++u)c=u/a,n=h+(t-h)*c,o=l+(e-l)*c,r.push(n+(t+(i-t)*c-n)*c,o+(e+(s-e)*c-o)*c);return this.dirty=!0,this._boundsDirty=!0,this},PIXI.Graphics.prototype.bezierCurveTo=function(t,e,i,s,n,o){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);for(var a=20,r,h,l,c,u,d=this.currentPath.shape.points,p=d[d.length-2],f=d[d.length-1],y=0,g=1;g<=a;++g)y=g/a,r=1-y,h=r*r,l=h*r,c=y*y,u=c*y,d.push(l*p+3*h*y*t+3*r*c*i+u*n,l*f+3*h*y*e+3*r*c*s+u*o);return this.dirty=!0,this._boundsDirty=!0,this},PIXI.Graphics.prototype.arcTo=function(t,e,i,s,n){this.currentPath?0===this.currentPath.shape.points.length&&this.currentPath.shape.points.push(t,e):this.moveTo(t,e);var o=this.currentPath.shape.points,a=o[o.length-2],r=o[o.length-1],h=r-e,l=a-t,c=s-e,u=i-t,d=Math.abs(h*u-l*c);if(d<1e-8||0===n)o[o.length-2]===t&&o[o.length-1]===e||o.push(t,e);else{var p=h*h+l*l,f=c*c+u*u,y=h*c+l*u,g=n*Math.sqrt(p)/d,m=n*Math.sqrt(f)/d,v=g*y/p,b=m*y/f,x=g*u+m*l,_=g*c+m*h,w=l*(m+v),P=h*(m+v),C=u*(g+b),T=c*(g+b),S=Math.atan2(P-_,w-x),A=Math.atan2(T-_,C-x);this.arc(x+t,_+e,n,S,A,l*c>u*h)}return this.dirty=!0,this._boundsDirty=!0,this},PIXI.Graphics.prototype.arc=function(t,e,i,s,n,o,a){if(s===n)return this;void 0===o&&(o=!1),void 0===a&&(a=40),!o&&n<=s?n+=2*Math.PI:o&&s<=n&&(s+=2*Math.PI);var r=o?-1*(s-n):n-s,h=Math.ceil(Math.abs(r)/(2*Math.PI))*a;if(0===r)return this;var l=t+Math.cos(s)*i,c=e+Math.sin(s)*i;o&&this.filling?this.moveTo(t,e):this.moveTo(l,c);for(var u=this.currentPath.shape.points,d=r/(2*h),p=2*d,f=Math.cos(d),y=Math.sin(d),g=h-1,m=g%1/g,v=0;v<=g;v++){var b=v+m*v,x=d+s+p*b,_=Math.cos(x),w=-Math.sin(x);u.push((f*_+y*w)*i+t,(f*-w+y*_)*i+e)}return this.dirty=!0,this._boundsDirty=!0,this},PIXI.Graphics.prototype.beginFill=function(t,e){return this.filling=!0,this.fillColor=t||0,this.fillAlpha=void 0===e?1:e,this.currentPath&&this.currentPath.shape.points.length<=2&&(this.currentPath.fill=this.filling,this.currentPath.fillColor=this.fillColor,this.currentPath.fillAlpha=this.fillAlpha),this},PIXI.Graphics.prototype.endFill=function(){return this.filling=!1,this.fillColor=null,this.fillAlpha=1,this},PIXI.Graphics.prototype.drawRect=function(t,e,i,s){return this.drawShape(new PIXI.Rectangle(t,e,i,s)),this},PIXI.Graphics.prototype.drawRoundedRect=function(t,e,i,s,n){return this.drawShape(new PIXI.RoundedRectangle(t,e,i,s,n)),this},PIXI.Graphics.prototype.drawCircle=function(t,e,i){return this.drawShape(new PIXI.Circle(t,e,i)),this},PIXI.Graphics.prototype.drawEllipse=function(t,e,i,s){return this.drawShape(new PIXI.Ellipse(t,e,i,s)),this},PIXI.Graphics.prototype.drawPolygon=function(t){(t instanceof o.Polygon||t instanceof PIXI.Polygon)&&(t=t.points);var e=t;if(!Array.isArray(e)){e=new Array(arguments.length);for(var i=0;i_?y:_,_=m>_?m:_,_=b>_?b:_,w=g>w?g:w,w=v>w?v:w,w=x>w?x:w,this._bounds.x=P,this._bounds.width=_-P,this._bounds.y=C,this._bounds.height=w-C,this._currentBounds=this._bounds}return this._currentBounds},PIXI.Graphics.prototype.getLocalBounds=function(){var t=this.worldTransform;this.worldTransform=PIXI.identityMatrix;for(var e=0;ee?r+l:e,i=hs?h+c:s;else if(p===PIXI.Graphics.CIRC)r=n.x,h=n.y,l=n.radius+f/2,c=n.radius+f/2,t=r-le?r+l:e,i=h-cs?h+c:s;else if(p===PIXI.Graphics.ELIP)r=n.x,h=n.y,l=n.width+f/2,c=n.height+f/2,t=r-le?r+l:e,i=h-cs?h+c:s;else{a=n.points;for(var y=0;ye?r+f:e,i=h-fs?h+f:s}}else t=0,e=0,i=0,s=0;var g=this.boundsPadding;this._localBounds.x=t-g,this._localBounds.width=e-t+2*g,this._localBounds.y=i-g,this._localBounds.height=s-i+2*g},PIXI.Graphics.prototype._generateCachedSprite=function(){var t=this.getLocalBounds();if(this._cachedSprite)this._cachedSprite.buffer.resize(t.width,t.height);else{var e=new PIXI.CanvasBuffer(t.width,t.height),i=PIXI.Texture.fromCanvas(e.canvas);this._cachedSprite=new PIXI.Sprite(i),this._cachedSprite.buffer=e,this._cachedSprite.worldTransform=this.worldTransform}this._cachedSprite.anchor.x=-t.x/t.width,this._cachedSprite.anchor.y=-t.y/t.height,this._cachedSprite.buffer.context.translate(-t.x,-t.y),this.worldAlpha=1,PIXI.CanvasGraphics.renderGraphics(this,this._cachedSprite.buffer.context),this._cachedSprite.alpha=this.alpha},PIXI.Graphics.prototype.updateCachedSpriteTexture=function(){var t=this._cachedSprite,e=t.texture,i=t.buffer.canvas;e.baseTexture.width=i.width,e.baseTexture.height=i.height,e.crop.width=e.frame.width=i.width,e.crop.height=e.frame.height=i.height,t._width=i.width,t._height=i.height,e.baseTexture.dirty()},PIXI.Graphics.prototype.destroyCachedSprite=function(){this._cachedSprite.texture.destroy(!0),this._cachedSprite=null},PIXI.Graphics.prototype.drawShape=function(t){this.currentPath&&this.currentPath.shape.points.length<=2&&this.graphicsData.pop(),this.currentPath=null,t instanceof o.Polygon&&(t=t.clone(),t.flatten());var e=new PIXI.GraphicsData(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.filling,t);return this.graphicsData.push(e),e.type===PIXI.Graphics.POLY&&(e.shape.closed=this.filling,this.currentPath=e),this.dirty=!0,this._boundsDirty=!0,e},Object.defineProperty(PIXI.Graphics.prototype,"cacheAsBitmap",{get:function(){return this._cacheAsBitmap},set:function(t){this._cacheAsBitmap=t,this._cacheAsBitmap?this._generateCachedSprite():this.destroyCachedSprite(),this.dirty=!0,this.webGLDirty=!0}}),PIXI.GraphicsData=function(t,e,i,s,n,o,a){this.lineWidth=t,this.lineColor=e,this.lineAlpha=i,this._lineTint=e,this.fillColor=s,this.fillAlpha=n,this._fillTint=s,this.fill=o,this.shape=a,this.type=a.type},PIXI.GraphicsData.prototype.constructor=PIXI.GraphicsData,PIXI.GraphicsData.prototype.clone=function(){return new GraphicsData(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.fill,this.shape)},PIXI.EarCut={},PIXI.EarCut.Triangulate=function(t,e,i){i=i||2;var s=e&&e.length,n=s?e[0]*i:t.length,o=PIXI.EarCut.linkedList(t,0,n,i,!0),a=[];if(!o)return a;var r,h,l,c,u,d,p;if(s&&(o=PIXI.EarCut.eliminateHoles(t,e,o,i)),t.length>80*i){r=l=t[0],h=c=t[1];for(var f=i;fl&&(l=u),d>c&&(c=d);p=Math.max(l-r,c-h)}return PIXI.EarCut.earcutLinked(o,a,i,r,h,p),a},PIXI.EarCut.linkedList=function(t,e,i,s,n){var o=0,a,r,h;for(a=e,r=i-s;a0)for(a=e;a=e;a-=s)h=PIXI.EarCut.insertNode(a,t[a],t[a+1],h);return h},PIXI.EarCut.filterPoints=function(t,e){if(!t)return t;e||(e=t);var i=t,s;do{if(s=!1,i.steiner||!PIXI.EarCut.equals(i,i.next)&&0!==PIXI.EarCut.area(i.prev,i,i.next))i=i.next;else{if(PIXI.EarCut.removeNode(i),(i=e=i.prev)===i.next)return null;s=!0}}while(s||i!==e);return e},PIXI.EarCut.earcutLinked=function(t,e,i,s,n,o,a){if(t){!a&&o&&PIXI.EarCut.indexCurve(t,s,n,o);for(var r=t,h,l;t.prev!==t.next;)if(h=t.prev,l=t.next,o?PIXI.EarCut.isEarHashed(t,s,n,o):PIXI.EarCut.isEar(t))e.push(h.i/i),e.push(t.i/i),e.push(l.i/i),PIXI.EarCut.removeNode(t),t=l.next,r=l.next;else if((t=l)===r){a?1===a?(t=PIXI.EarCut.cureLocalIntersections(t,e,i),PIXI.EarCut.earcutLinked(t,e,i,s,n,o,2)):2===a&&PIXI.EarCut.splitEarcut(t,e,i,s,n,o):PIXI.EarCut.earcutLinked(PIXI.EarCut.filterPoints(t),e,i,s,n,o,1);break}}},PIXI.EarCut.isEar=function(t){var e=t.prev,i=t,s=t.next;if(PIXI.EarCut.area(e,i,s)>=0)return!1;for(var n=t.next.next;n!==t.prev;){if(PIXI.EarCut.pointInTriangle(e.x,e.y,i.x,i.y,s.x,s.y,n.x,n.y)&&PIXI.EarCut.area(n.prev,n,n.next)>=0)return!1;n=n.next}return!0},PIXI.EarCut.isEarHashed=function(t,e,i,s){var n=t.prev,o=t,a=t.next;if(PIXI.EarCut.area(n,o,a)>=0)return!1;for(var r=n.xo.x?n.x>a.x?n.x:a.x:o.x>a.x?o.x:a.x,c=n.y>o.y?n.y>a.y?n.y:a.y:o.y>a.y?o.y:a.y,u=PIXI.EarCut.zOrder(r,h,e,i,s),d=PIXI.EarCut.zOrder(l,c,e,i,s),p=t.nextZ;p&&p.z<=d;){if(p!==t.prev&&p!==t.next&&PIXI.EarCut.pointInTriangle(n.x,n.y,o.x,o.y,a.x,a.y,p.x,p.y)&&PIXI.EarCut.area(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(p=t.prevZ;p&&p.z>=u;){if(p!==t.prev&&p!==t.next&&PIXI.EarCut.pointInTriangle(n.x,n.y,o.x,o.y,a.x,a.y,p.x,p.y)&&PIXI.EarCut.area(p.prev,p,p.next)>=0)return!1;p=p.prevZ}return!0},PIXI.EarCut.cureLocalIntersections=function(t,e,i){var s=t;do{var n=s.prev,o=s.next.next;PIXI.EarCut.intersects(n,s,s.next,o)&&PIXI.EarCut.locallyInside(n,o)&&PIXI.EarCut.locallyInside(o,n)&&(e.push(n.i/i),e.push(s.i/i),e.push(o.i/i),PIXI.EarCut.removeNode(s),PIXI.EarCut.removeNode(s.next),s=t=o),s=s.next}while(s!==t);return s},PIXI.EarCut.splitEarcut=function(t,e,i,s,n,o){var a=t;do{for(var r=a.next.next;r!==a.prev;){if(a.i!==r.i&&PIXI.EarCut.isValidDiagonal(a,r)){var h=PIXI.EarCut.splitPolygon(a,r);return a=PIXI.EarCut.filterPoints(a,a.next),h=PIXI.EarCut.filterPoints(h,h.next),PIXI.EarCut.earcutLinked(a,e,i,s,n,o),void PIXI.EarCut.earcutLinked(h,e,i,s,n,o)}r=r.next}a=a.next}while(a!==t)},PIXI.EarCut.eliminateHoles=function(t,e,i,s){var n=[],o,a,r,h,l;for(o=0,a=e.length;o=i.next.y){var r=i.x+(n-i.y)*(i.next.x-i.x)/(i.next.y-i.y);r<=s&&r>o&&(o=r,a=i.x=i.x&&i.x>=a.x&&PIXI.EarCut.pointInTriangle(na.x)&&PIXI.EarCut.locallyInside(i,t)&&(a=i,l=c),i=i.next;return a},PIXI.EarCut.indexCurve=function(t,e,i,s){var n=t;do{null===n.z&&(n.z=PIXI.EarCut.zOrder(n.x,n.y,e,i,s)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==t);n.prevZ.nextZ=null,n.prevZ=null,PIXI.EarCut.sortLinked(n)},PIXI.EarCut.sortLinked=function(t){var e,i,s,n,o,a,r,h,l=1;do{for(i=t,t=null,o=null,a=0;i;){for(a++,s=i,r=0,e=0;e0||h>0&&s;)0===r?(n=s,s=s.nextZ,h--):0!==h&&s?i.z<=s.z?(n=i,i=i.nextZ,r--):(n=s,s=s.nextZ,h--):(n=i,i=i.nextZ,r--),o?o.nextZ=n:t=n,n.prevZ=o,o=n;i=s}o.nextZ=null,l*=2}while(a>1);return t},PIXI.EarCut.zOrder=function(t,e,i,s,n){return t=32767*(t-i)/n,e=32767*(e-s)/n,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t|e<<1},PIXI.EarCut.getLeftmost=function(t){var e=t,i=t;do{e.x=0&&(t-a)*(s-r)-(i-a)*(e-r)>=0&&(i-a)*(o-r)-(n-a)*(s-r)>=0},PIXI.EarCut.isValidDiagonal=function(t,e){return PIXI.EarCut.equals(t,e)||t.next.i!==e.i&&t.prev.i!==e.i&&!PIXI.EarCut.intersectsPolygon(t,e)&&PIXI.EarCut.locallyInside(t,e)&&PIXI.EarCut.locallyInside(e,t)&&PIXI.EarCut.middleInside(t,e)},PIXI.EarCut.area=function(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)},PIXI.EarCut.equals=function(t,e){return t.x===e.x&&t.y===e.y},PIXI.EarCut.intersects=function(t,e,i,s){return PIXI.EarCut.area(t,e,i)>0!=PIXI.EarCut.area(t,e,s)>0&&PIXI.EarCut.area(i,s,t)>0!=PIXI.EarCut.area(i,s,e)>0},PIXI.EarCut.intersectsPolygon=function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&PIXI.EarCut.intersects(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1},PIXI.EarCut.locallyInside=function(t,e){return PIXI.EarCut.area(t.prev,t,t.next)<0?PIXI.EarCut.area(t,e,t.next)>=0&&PIXI.EarCut.area(t,t.prev,e)>=0:PIXI.EarCut.area(t,e,t.prev)<0||PIXI.EarCut.area(t,t.next,e)<0},PIXI.EarCut.middleInside=function(t,e){var i=t,s=!1,n=(t.x+e.x)/2,o=(t.y+e.y)/2;do{i.y>o!=i.next.y>o&&n<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(s=!s),i=i.next}while(i!==t);return s},PIXI.EarCut.splitPolygon=function(t,e){var i=new PIXI.EarCut.Node(t.i,t.x,t.y),s=new PIXI.EarCut.Node(e.i,e.x,e.y),n=t.next,o=e.prev;return t.next=e,e.prev=t,i.next=n,n.prev=i,s.next=i,i.prev=s,o.next=s,s.prev=o,s},PIXI.EarCut.insertNode=function(t,e,i,s){var n=new PIXI.EarCut.Node(t,e,i);return s?(n.next=s.next,n.prev=s,s.next.prev=n,s.next=n):(n.prev=n,n.next=n),n},PIXI.EarCut.removeNode=function(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)},PIXI.EarCut.Node=function(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1},PIXI.WebGLGraphics=function(){},PIXI.WebGLGraphics.stencilBufferLimit=6,PIXI.WebGLGraphics.renderGraphics=function(t,e){var i=e.gl,s=e.projection,n=e.offset,o=e.shaderManager.primitiveShader,a;t.dirty&&PIXI.WebGLGraphics.updateGraphics(t,i);for(var r=t._webGL[i.id],h=0;h=PIXI.WebGLGraphics.stencilBufferLimit)if(a.points.length<2*PIXI.WebGLGraphics.stencilBufferLimit){o=PIXI.WebGLGraphics.switchMode(i,0);var r=PIXI.WebGLGraphics.buildPoly(a,o);r||(o=PIXI.WebGLGraphics.switchMode(i,1),PIXI.WebGLGraphics.buildComplexPoly(a,o))}else o=PIXI.WebGLGraphics.switchMode(i,1),PIXI.WebGLGraphics.buildComplexPoly(a,o);a.lineWidth>0&&(o=PIXI.WebGLGraphics.switchMode(i,0),PIXI.WebGLGraphics.buildLine(a,o))}else o=PIXI.WebGLGraphics.switchMode(i,0),a.type===PIXI.Graphics.RECT?PIXI.WebGLGraphics.buildRectangle(a,o):a.type===PIXI.Graphics.CIRC||a.type===PIXI.Graphics.ELIP?PIXI.WebGLGraphics.buildCircle(a,o):a.type===PIXI.Graphics.RREC&&PIXI.WebGLGraphics.buildRoundedRectangle(a,o);i.lastIndex++}for(s=0;s19600?(O=A-I,R=E-M,j=Math.sqrt(O*O+R*R),O/=j,R/=j,O*=p,R*=p,h.push(P-O,C-R),h.push(g,m,v,y),h.push(P+O,C+R),h.push(g,m,v,y),h.push(P-O,C-R),h.push(g,m,v,y),u++):(h.push(b,x),h.push(g,m,v,y),h.push(P-(b-P),C-(x-C)),h.push(g,m,v,y)));for(_=s[2*(c-2)],w=s[2*(c-2)+1],P=s[2*(c-1)],C=s[2*(c-1)+1],A=-(w-C),E=_-P,j=Math.sqrt(A*A+E*E),A/=j,E/=j,A*=p,E*=p,h.push(P-A,C-E),h.push(g,m,v,y),h.push(P+A,C+E),h.push(g,m,v,y),l.push(d),i=0;io?h:o,a=lr?l:r;i.push(n,a,o,a,o,r,n,r);var u=i.length/2;for(c=0;cS?S:T,e.beginPath(),e.moveTo(_,w+T),e.lineTo(_,w+C-T),e.quadraticCurveTo(_,w+C,_+T,w+C),e.lineTo(_+P-T,w+C),e.quadraticCurveTo(_+P,w+C,_+P,w+C-T),e.lineTo(_+P,w+T),e.quadraticCurveTo(_+P,w,_+P-T,w),e.lineTo(_+T,w),e.quadraticCurveTo(_,w,_,w+T),e.closePath(),(n.fillColor||0===n.fillColor)&&(e.globalAlpha=n.fillAlpha*i,e.fillStyle="#"+("00000"+(0|a).toString(16)).substr(-6),e.fill()),n.lineWidth&&(e.globalAlpha=n.lineAlpha*i,e.strokeStyle="#"+("00000"+(0|r).toString(16)).substr(-6),e.stroke())}}},PIXI.CanvasGraphics.renderGraphicsMask=function(t,e){var i=t.graphicsData.length;if(0!==i){e.beginPath();for(var s=0;sC?C:P,e.moveTo(b,x+P),e.lineTo(b,x+w-P),e.quadraticCurveTo(b,x+w,b+P,x+w),e.lineTo(b+_-P,x+w),e.quadraticCurveTo(b+_,x+w,b+_,x+w-P),e.lineTo(b+_,x+P),e.quadraticCurveTo(b+_,x,b+_-P,x),e.lineTo(b+P,x),e.quadraticCurveTo(b,x,b,x+P),e.closePath()}}}},PIXI.CanvasGraphics.updateGraphicsTint=function(t){if(16777215!==t.tint)for(var e=(t.tint>>16&255)/255,i=(t.tint>>8&255)/255,s=(255&t.tint)/255,n=0;n>16&255)/255*e*255<<16)+((a>>8&255)/255*i*255<<8)+(255&a)/255*s*255,o._lineTint=((r>>16&255)/255*e*255<<16)+((r>>8&255)/255*i*255<<8)+(255&r)/255*s*255}},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Graphics=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0),this.type=o.GRAPHICS,this.physicsType=o.SPRITE,this.anchor=new o.Point,PIXI.Graphics.call(this),o.Component.Core.init.call(this,t,e,i,"",null)},o.Graphics.prototype=Object.create(PIXI.Graphics.prototype),o.Graphics.prototype.constructor=o.Graphics,o.Component.Core.install.call(o.Graphics.prototype,["Angle","AutoCull","Bounds","Destroy","FixedToCamera","InputEnabled","InWorld","LifeSpan","PhysicsBody","Reset"]),o.Graphics.prototype.preUpdatePhysics=o.Component.PhysicsBody.preUpdate,o.Graphics.prototype.preUpdateLifeSpan=o.Component.LifeSpan.preUpdate,o.Graphics.prototype.preUpdateInWorld=o.Component.InWorld.preUpdate,o.Graphics.prototype.preUpdateCore=o.Component.Core.preUpdate,o.Graphics.prototype.preUpdate=function(){return!!(this.preUpdatePhysics()&&this.preUpdateLifeSpan()&&this.preUpdateInWorld())&&this.preUpdateCore()},o.Graphics.prototype.postUpdate=function(){o.Component.PhysicsBody.postUpdate.call(this),o.Component.FixedToCamera.postUpdate.call(this),this._boundsDirty&&(this.updateLocalBounds(),this._boundsDirty=!1);for(var t=0;t0&&this.drawPolygon(i)}else this.drawPolygon(i)},o.Graphics.prototype.drawTriangles=function(t,e,i){void 0===i&&(i=!1);var s=new o.Point,n=new o.Point,a=new o.Point,r=[],h;if(e)if(t[0]instanceof o.Point)for(h=0;h +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.RenderTexture=function(t,e,i,s,n,a){void 0===s&&(s=""),void 0===n&&(n=o.scaleModes.DEFAULT),void 0===a&&(a=1),this.game=t,this.key=s,this.type=o.RENDERTEXTURE,this._tempMatrix=new PIXI.Matrix,PIXI.RenderTexture.call(this,e,i,this.game.renderer,n,a),this.render=o.RenderTexture.prototype.render},o.RenderTexture.prototype=Object.create(PIXI.RenderTexture.prototype),o.RenderTexture.prototype.constructor=o.RenderTexture,o.RenderTexture.prototype.renderXY=function(t,e,i,s){t.updateTransform(),this._tempMatrix.copyFrom(t.worldTransform),this._tempMatrix.tx=e,this._tempMatrix.ty=i,this.renderer.type===PIXI.WEBGL_RENDERER?this.renderWebGL(t,this._tempMatrix,s):this.renderCanvas(t,this._tempMatrix,s)},o.RenderTexture.prototype.renderRawXY=function(t,e,i,s){this._tempMatrix.identity().translate(e,i),this.renderer.type===PIXI.WEBGL_RENDERER?this.renderWebGL(t,this._tempMatrix,s):this.renderCanvas(t,this._tempMatrix,s)},o.RenderTexture.prototype.render=function(t,e,i){void 0===e||null===e?this._tempMatrix.copyFrom(t.worldTransform):this._tempMatrix.copyFrom(e),this.renderer.type===PIXI.WEBGL_RENDERER?this.renderWebGL(t,this._tempMatrix,i):this.renderCanvas(t,this._tempMatrix,i)},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Text=function(t,e,i,s,n){e=e||0,i=i||0,s=void 0===s||null===s?"":s.toString(),n=o.Utils.extend({},n),this.type=o.TEXT,this.physicsType=o.SPRITE,this.padding=new o.Point,this.textBounds=null,this.canvas=PIXI.CanvasPool.create(this),this.context=this.canvas.getContext("2d"),this.colors=[],this.strokeColors=[],this.fontStyles=[],this.fontWeights=[],this.autoRound=!1,this.useAdvancedWrap=!1,this._res=t.renderer.resolution,this._text=s,this._fontComponents=null,this._lineSpacing=0,this._charCount=0,this._width=0,this._height=0,o.Sprite.call(this,t,e,i,PIXI.Texture.fromCanvas(this.canvas)),this.setStyle(n),""!==s&&this.updateText()},o.Text.prototype=Object.create(o.Sprite.prototype),o.Text.prototype.constructor=o.Text,o.Text.prototype.preUpdate=function(){return!!(this.preUpdatePhysics()&&this.preUpdateLifeSpan()&&this.preUpdateInWorld())&&this.preUpdateCore()},o.Text.prototype.update=function(){},o.Text.prototype.destroy=function(t){this.texture.destroy(!0),o.Component.Destroy.prototype.destroy.call(this,t)},o.Text.prototype.setShadow=function(t,e,i,s,n,o){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i="rgba(0, 0, 0, 1)"),void 0===s&&(s=0),void 0===n&&(n=!0),void 0===o&&(o=!0),this.style.shadowOffsetX=t,this.style.shadowOffsetY=e,this.style.shadowColor=i,this.style.shadowBlur=s,this.style.shadowStroke=n,this.style.shadowFill=o,this.dirty=!0,this},o.Text.prototype.setStyle=function(t,e){void 0===e&&(e=!1),t=t||{},t.font=t.font||"bold 20pt Arial",t.backgroundColor=t.backgroundColor||null,t.fill=t.fill||"black",t.align=t.align||"left",t.boundsAlignH=t.boundsAlignH||"left",t.boundsAlignV=t.boundsAlignV||"top",t.stroke=t.stroke||"black",t.strokeThickness=t.strokeThickness||0,t.wordWrap=t.wordWrap||!1,t.wordWrapWidth=t.wordWrapWidth||100,t.maxLines=t.maxLines||0,t.shadowOffsetX=t.shadowOffsetX||0,t.shadowOffsetY=t.shadowOffsetY||0,t.shadowColor=t.shadowColor||"rgba(0,0,0,0)",t.shadowBlur=t.shadowBlur||0,t.tabs=t.tabs||0;var i=this.fontToComponents(t.font);return t.fontStyle&&(i.fontStyle=t.fontStyle),t.fontVariant&&(i.fontVariant=t.fontVariant),t.fontWeight&&(i.fontWeight=t.fontWeight),t.fontSize&&("number"==typeof t.fontSize&&(t.fontSize=t.fontSize+"px"),i.fontSize=t.fontSize),this._fontComponents=i,t.font=this.componentsToFont(this._fontComponents),this.style=t,this.dirty=!0,e&&this.updateText(),this},o.Text.prototype.updateText=function(){this.texture.baseTexture.resolution=this._res,this.context.font=this.style.font;var t=this.text;this.style.wordWrap&&(t=this.runWordWrap(this.text));var e=t.split(/(?:\r\n|\r|\n)/),i=this.style.tabs,s=[],n=0,o=this.determineFontProperties(this.style.font),a=e.length;this.style.maxLines>0&&this.style.maxLines0||this.strokeColors.length>0||this.fontWeights.length>0||this.fontStyles.length>0?h+=this.measureLine(e[r]):h+=this.context.measureText(e[r]).width,this.style.wordWrap&&(h-=this.context.measureText(" ").width)}else{var l=e[r].split(/(?:\t)/),h=this.padding.x+this.style.strokeThickness;if(Array.isArray(i))for(var c=0,u=0;u0||this.strokeColors.length>0||this.fontWeights.length>0||this.fontStyles.length>0?this.measureLine(l[u]):Math.ceil(this.context.measureText(l[u]).width),u>0&&(c+=i[u-1]),h=c+d}else for(var u=0;u0||this.strokeColors.length>0||this.fontWeights.length>0||this.fontStyles.length>0?h+=this.measureLine(l[u]):h+=Math.ceil(this.context.measureText(l[u]).width);var p=this.game.math.snapToCeil(h,i)-h;h+=p}}s[r]=Math.ceil(h),n=Math.max(n,s[r])}this.canvas.width=n*this._res;var f=o.fontSize+this.style.strokeThickness+this.padding.y,y=f*a,g=this._lineSpacing;g<0&&Math.abs(g)>f&&(g=-f),0!==g&&(y+=g>0?g*e.length:g*(e.length-1)),this.canvas.height=y*this._res,this.context.scale(this._res,this._res),navigator.isCocoonJS&&this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this.style.backgroundColor&&(this.context.fillStyle=this.style.backgroundColor,this.context.fillRect(0,0,this.canvas.width,this.canvas.height)),this.context.fillStyle=this.style.fill,this.context.font=this.style.font,this.context.strokeStyle=this.style.stroke,this.context.textBaseline="alphabetic",this.context.lineWidth=this.style.strokeThickness,this.context.lineCap="round",this.context.lineJoin="round";var m,v;for(this._charCount=0,r=0;r0&&(v+=g*r),"right"===this.style.align?m+=n-s[r]:"center"===this.style.align&&(m+=(n-s[r])/2),this.autoRound&&(m=Math.round(m),v=Math.round(v)),this.colors.length>0||this.strokeColors.length>0||this.fontWeights.length>0||this.fontStyles.length>0?this.updateLine(e[r],m,v):(this.style.stroke&&this.style.strokeThickness&&(this.updateShadow(this.style.shadowStroke),0===i?this.context.strokeText(e[r],m,v):this.renderTabLine(e[r],m,v,!1)),this.style.fill&&(this.updateShadow(this.style.shadowFill),0===i?this.context.fillText(e[r],m,v):this.renderTabLine(e[r],m,v,!0)));this.updateTexture(),this.dirty=!1},o.Text.prototype.renderTabLine=function(t,e,i,s){var n=t.split(/(?:\t)/),o=this.style.tabs,a=0;if(Array.isArray(o))for(var r=0,h=0;h0&&(r+=o[h-1]),a=e+r,s?this.context.fillText(n[h],a,i):this.context.strokeText(n[h],a,i);else for(var h=0;h0||this.fontStyles.length>0){var n=this.fontToComponents(this.context.font);this.fontStyles[this._charCount]&&(n.fontStyle=this.fontStyles[this._charCount]),this.fontWeights[this._charCount]&&(n.fontWeight=this.fontWeights[this._charCount]),this.context.font=this.componentsToFont(n)}this.style.stroke&&this.style.strokeThickness&&(this.strokeColors[this._charCount]&&(this.context.strokeStyle=this.strokeColors[this._charCount]),this.updateShadow(this.style.shadowStroke)),this.style.fill&&(this.colors[this._charCount]&&(this.context.fillStyle=this.colors[this._charCount]),this.updateShadow(this.style.shadowFill)),e+=this.context.measureText(s).width,this._charCount++}return Math.ceil(e)},o.Text.prototype.updateLine=function(t,e,i){for(var s=0;s0||this.fontStyles.length>0){var o=this.fontToComponents(this.context.font);this.fontStyles[this._charCount]&&(o.fontStyle=this.fontStyles[this._charCount]),this.fontWeights[this._charCount]&&(o.fontWeight=this.fontWeights[this._charCount]),this.context.font=this.componentsToFont(o)}this.style.stroke&&this.style.strokeThickness&&(this.strokeColors[this._charCount]&&(this.context.strokeStyle=this.strokeColors[this._charCount]),this.updateShadow(this.style.shadowStroke),this.context.strokeText(n,e,i)),this.style.fill&&(this.colors[this._charCount]&&(this.context.fillStyle=this.colors[this._charCount]),this.updateShadow(this.style.shadowFill),this.context.fillText(n,e,i)),e+=this.context.measureText(n).width,this._charCount++}},o.Text.prototype.clearColors=function(){return this.colors=[],this.strokeColors=[],this.dirty=!0,this},o.Text.prototype.clearFontValues=function(){return this.fontStyles=[],this.fontWeights=[],this.dirty=!0,this},o.Text.prototype.addColor=function(t,e){return this.colors[e]=t,this.dirty=!0,this},o.Text.prototype.addStrokeColor=function(t,e){return this.strokeColors[e]=t,this.dirty=!0,this},o.Text.prototype.addFontStyle=function(t,e){return this.fontStyles[e]=t,this.dirty=!0,this},o.Text.prototype.addFontWeight=function(t,e){return this.fontWeights[e]=t,this.dirty=!0,this},o.Text.prototype.precalculateWordWrap=function(t){return this.texture.baseTexture.resolution=this._res,this.context.font=this.style.font,this.runWordWrap(t).split(/(?:\r\n|\r|\n)/)},o.Text.prototype.runWordWrap=function(t){return this.useAdvancedWrap?this.advancedWordWrap(t):this.basicWordWrap(t)},o.Text.prototype.advancedWordWrap=function(t){for(var e=this.context,i=this.style.wordWrapWidth,s="",n=t.replace(/ +/gi," ").split(/\r?\n/gi),o=n.length,a=0;al){if(0===u){for(var y=p;y.length&&(y=y.slice(0,-1),!((f=e.measureText(y).width)<=l)););if(!y.length)throw new Error("This text's wordWrapWidth setting is less than a single character!");var g=d.substr(y.length);c[u]=g,h+=y}var m=c[u].length?u:u+1,v=c.slice(m).join(" ").replace(/[ \n]*$/gi,"");n[a+1]=v+" "+(n[a+1]||""),o=n.length;break}h+=p,l-=f}s+=h.replace(/[ \n]*$/gi,"")+"\n"}}return s=s.replace(/[\s|\n]*$/gi,"")},o.Text.prototype.basicWordWrap=function(t){for(var e="",i=t.split("\n"),s=0;sn?(a>0&&(e+="\n"),e+=o[a]+" ",n=this.style.wordWrapWidth-r):(n-=h,e+=o[a]+" ")}si&&(this.style.wordWrapWidth=i)),this.updateTexture(),this},o.Text.prototype.updateTexture=function(){var t=this.texture.baseTexture,e=this.texture.crop,i=this.texture.frame,s=this.canvas.width,n=this.canvas.height;if(t.width=s,t.height=n,e.width=s,e.height=n,i.width=s,i.height=n,this.texture.width=s,this.texture.height=n,this._width=s,this._height=n,this.textBounds){var o=this.textBounds.x,a=this.textBounds.y;"right"===this.style.boundsAlignH?o+=this.textBounds.width-this.canvas.width/this.resolution:"center"===this.style.boundsAlignH&&(o+=this.textBounds.halfWidth-this.canvas.width/this.resolution/2),"bottom"===this.style.boundsAlignV?a+=this.textBounds.height-this.canvas.height/this.resolution:"middle"===this.style.boundsAlignV&&(a+=this.textBounds.halfHeight-this.canvas.height/this.resolution/2),this.pivot.x=-o,this.pivot.y=-a}this.renderable=0!==s&&0!==n,this.texture.requiresReTint=!0,this.texture.baseTexture.dirty()},o.Text.prototype._renderWebGL=function(t){this.dirty&&(this.updateText(),this.dirty=!1),PIXI.Sprite.prototype._renderWebGL.call(this,t)},o.Text.prototype._renderCanvas=function(t){this.dirty&&(this.updateText(),this.dirty=!1),PIXI.Sprite.prototype._renderCanvas.call(this,t)},o.Text.prototype.determineFontProperties=function(t){var e=o.Text.fontPropertiesCache[t];if(!e){e={};var i=o.Text.fontPropertiesCanvas,s=o.Text.fontPropertiesContext;s.font=t;var n=Math.ceil(s.measureText("|MÉq").width),a=Math.ceil(s.measureText("|MÉq").width),r=2*a;if(a=1.4*a|0,i.width=n,i.height=r,s.fillStyle="#f00",s.fillRect(0,0,n,r),s.font=t,s.textBaseline="alphabetic",s.fillStyle="#000",s.fillText("|MÉq",0,a),!s.getImageData(0,0,n,r))return e.ascent=a,e.descent=a+6,e.fontSize=e.ascent+e.descent,o.Text.fontPropertiesCache[t]=e,e;var h=s.getImageData(0,0,n,r).data,l=h.length,c=4*n,u,d,p=0,f=!1;for(u=0;ua;u--){for(d=0;d +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.BitmapText=function(t,e,i,s,n,a,r){e=e||0,i=i||0,s=s||"",n=n||"",a=a||32,r=r||"left",PIXI.DisplayObjectContainer.call(this),this.type=o.BITMAPTEXT,this.physicsType=o.SPRITE,this.textWidth=0,this.textHeight=0,this.anchor=new o.Point,this._prevAnchor=new o.Point,this._glyphs=[],this._maxWidth=0,this._text=n.toString()||"",this._data=t.cache.getBitmapFont(s),this._font=s,this._fontSize=a,this._align=r,this._tint=16777215,this.updateText(),this.dirty=!1,o.Component.Core.init.call(this,t,e,i,"",null)},o.BitmapText.prototype=Object.create(PIXI.DisplayObjectContainer.prototype),o.BitmapText.prototype.constructor=o.BitmapText,o.Component.Core.install.call(o.BitmapText.prototype,["Angle","AutoCull","Bounds","Destroy","FixedToCamera","InputEnabled","InWorld","LifeSpan","PhysicsBody","Reset"]),o.BitmapText.prototype.preUpdatePhysics=o.Component.PhysicsBody.preUpdate,o.BitmapText.prototype.preUpdateLifeSpan=o.Component.LifeSpan.preUpdate,o.BitmapText.prototype.preUpdateInWorld=o.Component.InWorld.preUpdate,o.BitmapText.prototype.preUpdateCore=o.Component.Core.preUpdate,o.BitmapText.prototype.preUpdate=function(){return!!(this.preUpdatePhysics()&&this.preUpdateLifeSpan()&&this.preUpdateInWorld())&&this.preUpdateCore()},o.BitmapText.prototype.postUpdate=function(){o.Component.PhysicsBody.postUpdate.call(this),o.Component.FixedToCamera.postUpdate.call(this),this.body&&this.body.type===o.Physics.ARCADE&&(this.textWidth===this.body.sourceWidth&&this.textHeight===this.body.sourceHeight||this.body.setSize(this.textWidth,this.textHeight))},o.BitmapText.prototype.setText=function(t){this.text=t};o.BitmapText.prototype.scanLine=function(t,e,i){for(var s=0,n=0,o=-1,a=0,r=null,h=this._maxWidth>0?this._maxWidth:null,l=[],c=0;c=h&&o>-1)return{width:a||n,text:i.substr(0,c-(c-o)),end:u,chars:l};n+=(p.xAdvance+y)*e,l.push(s+(p.xOffset+y)*e),s+=(p.xAdvance+y)*e,r=d}return{width:n,text:i,end:u,chars:l}},o.BitmapText.prototype.cleanText=function(t,e){void 0===e&&(e="");var i=this._data.font;if(!i)return"";for(var s=/\r\n|\n\r|\n|\r/g,n=t.replace(s,"\n").split("\n"),o=0;othis.textWidth&&(this.textWidth=o.width),n+=t.lineHeight*i,e=e.substr(o.text.length+1)}while(!1===o.end);this.textHeight=n;for(var a=0,r=0,h=this.textWidth*this.anchor.x,l=this.textHeight*this.anchor.y,c=0;c0&&(this._fontSize=t,this.updateText())}}),Object.defineProperty(o.BitmapText.prototype,"text",{get:function(){return this._text},set:function(t){t!==this._text&&(this._text=t.toString()||"",this.updateText())}}),Object.defineProperty(o.BitmapText.prototype,"maxWidth",{get:function(){return this._maxWidth},set:function(t){t!==this._maxWidth&&(this._maxWidth=t,this.updateText())}}),Object.defineProperty(o.BitmapText.prototype,"smoothed",{get:function(){return!this._data.base.scaleMode},set:function(t){this._data.base.scaleMode=t?0:1}}),/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.RetroFont=function(t,e,i,s,n,a,r,h,l,c){if(!t.cache.checkImageKey(e))return!1;void 0!==a&&null!==a||(a=t.cache.getImage(e).width/i),this.characterWidth=i,this.characterHeight=s,this.characterSpacingX=r||0,this.characterSpacingY=h||0,this.characterPerRow=a,this.offsetX=l||0,this.offsetY=c||0,this.align="left",this.multiLine=!1,this.autoUpperCase=!0,this.customSpacingX=0,this.customSpacingY=0,this.fixedWidth=0,this.fontSet=t.cache.getImage(e),this._text="",this.grabData=[],this.frameData=new o.FrameData;for(var u=this.offsetX,d=this.offsetY,p=0,f=0;f?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",o.RetroFont.TEXT_SET2=" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",o.RetroFont.TEXT_SET3="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",o.RetroFont.TEXT_SET4="ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",o.RetroFont.TEXT_SET5="ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",o.RetroFont.TEXT_SET6="ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",o.RetroFont.TEXT_SET7="AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",o.RetroFont.TEXT_SET8="0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",o.RetroFont.TEXT_SET9="ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",o.RetroFont.TEXT_SET10="ABCDEFGHIJKLMNOPQRSTUVWXYZ",o.RetroFont.TEXT_SET11="ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789",o.RetroFont.prototype.setFixedWidth=function(t,e){void 0===e&&(e="left"),this.fixedWidth=t,this.align=e},o.RetroFont.prototype.setText=function(t,e,i,s,n,o){this.multiLine=e||!1,this.customSpacingX=i||0,this.customSpacingY=s||0,this.align=n||"left",this.autoUpperCase=!o,t.length>0&&(this.text=t)},o.RetroFont.prototype.buildRetroFontText=function(){var t=0,e=0;if(this.clear(),this.multiLine){var i=this._text.split("\n");this.fixedWidth>0?this.resize(this.fixedWidth,i.length*(this.characterHeight+this.customSpacingY)-this.customSpacingY,!0):this.resize(this.getLongestLine()*(this.characterWidth+this.customSpacingX),i.length*(this.characterHeight+this.customSpacingY)-this.customSpacingY,!0);for(var s=0;s0?this.resize(this.fixedWidth,this.characterHeight,!0):this.resize(this._text.length*(this.characterWidth+this.customSpacingX),this.characterHeight,!0),t=0,this.align===o.RetroFont.ALIGN_RIGHT?t=this.width-this._text.length*(this.characterWidth+this.customSpacingX):this.align===o.RetroFont.ALIGN_CENTER&&(t=this.width/2-this._text.length*(this.characterWidth+this.customSpacingX)/2,t+=this.customSpacingX/2),t<0&&(t=0),this.pasteLine(this._text,t,0,this.customSpacingX);this.requiresReTint=!0},o.RetroFont.prototype.pasteLine=function(t,e,i,s){for(var n=0;n=0&&(this.stamp.frame=this.grabData[t.charCodeAt(n)],this.renderXY(this.stamp,e,i,!1),(e+=this.characterWidth+s)>this.width))break},o.RetroFont.prototype.getLongestLine=function(){var t=0;if(this._text.length>0)for(var e=this._text.split("\n"),i=0;it&&(t=e[i].length);return t},o.RetroFont.prototype.removeUnsupportedCharacters=function(t){for(var e="",i=0;i=0||!t&&"\n"===s)&&(e=e.concat(s))}return e},o.RetroFont.prototype.updateOffset=function(t,e){if(this.offsetX!==t||this.offsetY!==e){for(var i=t-this.offsetX,s=e-this.offsetY,n=this.game.cache.getFrameData(this.stamp.key).getFrames(),o=n.length;o--;)n[o].x+=i,n[o].y+=s;this.buildRetroFontText()}},Object.defineProperty(o.RetroFont.prototype,"text",{get:function(){return this._text},set:function(t){var e;(e=this.autoUpperCase?t.toUpperCase():t)!==this._text&&(this._text=e,this.removeUnsupportedCharacters(this.multiLine),this.buildRetroFontText())}}),Object.defineProperty(o.RetroFont.prototype,"smoothed",{get:function(){return this.stamp.smoothed},set:function(t){this.stamp.smoothed=t,this.buildRetroFontText()}}),/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd, Richard Davey +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Rope=function(t,e,i,s,n,a){this.points=[],this.points=a,this._hasUpdateAnimation=!1,this._updateAnimationCallback=null,e=e||0,i=i||0,s=s||null,n=n||null,this.type=o.ROPE,PIXI.Rope.call(this,o.Cache.DEFAULT,this.points),o.Component.Core.init.call(this,t,e,i,s,n)},o.Rope.prototype=Object.create(PIXI.Rope.prototype),o.Rope.prototype.constructor=o.Rope,o.Component.Core.install.call(o.Rope.prototype,["Angle","Animation","AutoCull","Bounds","BringToTop","Crop","Delta","Destroy","FixedToCamera","InWorld","LifeSpan","LoadTexture","Overlap","PhysicsBody","Reset","ScaleMinMax","Smoothed"]),o.Rope.prototype.preUpdatePhysics=o.Component.PhysicsBody.preUpdate,o.Rope.prototype.preUpdateLifeSpan=o.Component.LifeSpan.preUpdate,o.Rope.prototype.preUpdateInWorld=o.Component.InWorld.preUpdate,o.Rope.prototype.preUpdateCore=o.Component.Core.preUpdate,o.Rope.prototype.preUpdate=function(){return!!(this.preUpdatePhysics()&&this.preUpdateLifeSpan()&&this.preUpdateInWorld())&&this.preUpdateCore()},o.Rope.prototype.update=function(){this._hasUpdateAnimation&&this.updateAnimation.call(this)},o.Rope.prototype.reset=function(t,e){return o.Component.Reset.prototype.reset.call(this,t,e),this},Object.defineProperty(o.Rope.prototype,"updateAnimation",{get:function(){return this._updateAnimation},set:function(t){t&&"function"==typeof t?(this._hasUpdateAnimation=!0,this._updateAnimation=t):(this._hasUpdateAnimation=!1,this._updateAnimation=null)}}),Object.defineProperty(o.Rope.prototype,"segments",{get:function(){for(var t=[],e,i,s,n,a,r,h,l,c=0;c +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.TileSprite=function(t,e,i,s,n,a,r){e=e||0,i=i||0,s=s||256,n=n||256,a=a||null,r=r||null,this.type=o.TILESPRITE,this.physicsType=o.SPRITE,this._scroll=new o.Point;var h=t.cache.getImage("__default",!0);PIXI.TilingSprite.call(this,new PIXI.Texture(h.base),s,n),o.Component.Core.init.call(this,t,e,i,a,r)},o.TileSprite.prototype=Object.create(PIXI.TilingSprite.prototype),o.TileSprite.prototype.constructor=o.TileSprite,o.Component.Core.install.call(o.TileSprite.prototype,["Angle","Animation","AutoCull","Bounds","BringToTop","Destroy","FixedToCamera","Health","InCamera","InputEnabled","InWorld","LifeSpan","LoadTexture","Overlap","PhysicsBody","Reset","Smoothed"]),o.TileSprite.prototype.preUpdatePhysics=o.Component.PhysicsBody.preUpdate,o.TileSprite.prototype.preUpdateLifeSpan=o.Component.LifeSpan.preUpdate,o.TileSprite.prototype.preUpdateInWorld=o.Component.InWorld.preUpdate,o.TileSprite.prototype.preUpdateCore=o.Component.Core.preUpdate,o.TileSprite.prototype.preUpdate=function(){return 0!==this._scroll.x&&(this.tilePosition.x+=this._scroll.x*this.game.time.physicsElapsed),0!==this._scroll.y&&(this.tilePosition.y+=this._scroll.y*this.game.time.physicsElapsed),!!(this.preUpdatePhysics()&&this.preUpdateLifeSpan()&&this.preUpdateInWorld())&&this.preUpdateCore()},o.TileSprite.prototype.autoScroll=function(t,e){this._scroll.set(t,e)},o.TileSprite.prototype.stopScroll=function(){this._scroll.set(0,0)},o.TileSprite.prototype.destroy=function(t){o.Component.Destroy.prototype.destroy.call(this,t),PIXI.TilingSprite.prototype.destroy.call(this)},o.TileSprite.prototype.reset=function(t,e){return o.Component.Reset.prototype.reset.call(this,t,e),this.tilePosition.x=0,this.tilePosition.y=0,this},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Device=function(){this.deviceReadyAt=0,this.initialized=!1,this.desktop=!1,this.iOS=!1,this.iOSVersion=0,this.cocoonJS=!1,this.cocoonJSApp=!1,this.cordova=!1,this.node=!1,this.nodeWebkit=!1,this.electron=!1,this.ejecta=!1,this.crosswalk=!1,this.android=!1,this.chromeOS=!1,this.linux=!1,this.macOS=!1,this.windows=!1,this.windowsPhone=!1,this.canvas=!1,this.canvasBitBltShift=null,this.webGL=!1,this.file=!1,this.fileSystem=!1,this.localStorage=!1,this.worker=!1,this.css3D=!1,this.pointerLock=!1,this.typedArray=!1,this.vibration=!1,this.getUserMedia=!0,this.quirksMode=!1,this.touch=!1,this.mspointer=!1,this.wheelEvent=null,this.arora=!1,this.chrome=!1,this.chromeVersion=0,this.epiphany=!1,this.firefox=!1,this.firefoxVersion=0,this.ie=!1,this.ieVersion=0,this.trident=!1,this.tridentVersion=0,this.edge=!1,this.mobileSafari=!1,this.midori=!1,this.opera=!1,this.safari=!1,this.safariVersion=0,this.webApp=!1,this.silk=!1,this.audioData=!1,this.webAudio=!1,this.ogg=!1,this.opus=!1,this.mp3=!1,this.wav=!1,this.m4a=!1,this.webm=!1,this.dolby=!1,this.oggVideo=!1,this.h264Video=!1,this.mp4Video=!1,this.webmVideo=!1,this.vp9Video=!1,this.hlsVideo=!1,this.iPhone=!1,this.iPhone4=!1,this.iPad=!1,this.pixelRatio=0,this.littleEndian=!1,this.LITTLE_ENDIAN=!1,this.support32bit=!1,this.fullscreen=!1,this.requestFullscreen="",this.cancelFullscreen="",this.fullscreenKeyboard=!1},o.Device=new o.Device,o.Device.onInitialized=new o.Signal,o.Device.whenReady=function(t,e,i){var s=this._readyCheck;if(this.deviceReadyAt||!s)t.call(e,this);else if(s._monitor||i)s._queue=s._queue||[],s._queue.push([t,e]);else{s._monitor=s.bind(this),s._queue=s._queue||[],s._queue.push([t,e]);var n=void 0!==window.cordova,o=navigator.isCocoonJS;"complete"===document.readyState||"interactive"===document.readyState?window.setTimeout(s._monitor,0):n&&!o?document.addEventListener("deviceready",s._monitor,!1):(document.addEventListener("DOMContentLoaded",s._monitor,!1),window.addEventListener("load",s._monitor,!1))}},o.Device._readyCheck=function(){var t=this._readyCheck;if(document.body){if(!this.deviceReadyAt){this.deviceReadyAt=Date.now(),document.removeEventListener("deviceready",t._monitor),document.removeEventListener("DOMContentLoaded",t._monitor),window.removeEventListener("load",t._monitor),this._initialize(),this.initialized=!0,this.onInitialized.dispatch(this);for(var e;e=t._queue.shift();){var i=e[0],s=e[1];i.call(s,this)}this._readyCheck=null,this._initialize=null,this.onInitialized=null}}else window.setTimeout(t._monitor,20)},o.Device._initialize=function(){function t(){var t=navigator.userAgent;/Playstation Vita/.test(t)?d.vita=!0:/Kindle/.test(t)||/\bKF[A-Z][A-Z]+/.test(t)||/Silk.*Mobile Safari/.test(t)?d.kindle=!0:/Android/.test(t)?d.android=!0:/CrOS/.test(t)?d.chromeOS=!0:/iP[ao]d|iPhone/i.test(t)?(d.iOS=!0,navigator.appVersion.match(/OS (\d+)/),d.iOSVersion=parseInt(RegExp.$1,10)):/Linux/.test(t)?d.linux=!0:/Mac OS/.test(t)?d.macOS=!0:/Windows/.test(t)&&(d.windows=!0),(/Windows Phone/i.test(t)||/IEMobile/i.test(t))&&(d.android=!1,d.iOS=!1,d.macOS=!1,d.windows=!0,d.windowsPhone=!0);var e=/Silk/.test(t);(d.windows||d.macOS||d.linux&&!e||d.chromeOS)&&(d.desktop=!0),(d.windowsPhone||/Windows NT/i.test(t)&&/Touch/i.test(t))&&(d.desktop=!1)}function e(){d.canvas=!!window.CanvasRenderingContext2D||d.cocoonJS;try{d.localStorage=!!localStorage.getItem}catch(t){d.localStorage=!1}d.file=!!(window.File&&window.FileReader&&window.FileList&&window.Blob),d.fileSystem=!!window.requestFileSystem;var t={stencil:!0};d.webGL=function(){try{var e=document.createElement("canvas");return e.screencanvas=!1,!!window.WebGLRenderingContext&&(e.getContext("webgl",t)||e.getContext("experimental-webgl",t))}catch(t){return!1}}(),d.webGL=!!d.webGL,d.worker=!!window.Worker,d.pointerLock="pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document,d.quirksMode="CSS1Compat"!==document.compatMode,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||navigator.oGetUserMedia,window.URL=window.URL||window.webkitURL||window.mozURL||window.msURL,d.getUserMedia=d.getUserMedia&&!!navigator.getUserMedia&&!!window.URL,d.firefox&&d.firefoxVersion<21&&(d.getUserMedia=!1),!d.iOS&&(d.ie||d.firefox||d.chrome)&&(d.canvasBitBltShift=!0),(d.safari||d.mobileSafari)&&(d.canvasBitBltShift=!1)}function s(){("ontouchstart"in document.documentElement||window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>=1)&&(d.touch=!0),(window.navigator.msPointerEnabled||window.navigator.pointerEnabled)&&(d.mspointer=!0),d.cocoonJS||("onwheel"in window||d.ie&&"WheelEvent"in window?d.wheelEvent="wheel":"onmousewheel"in window?d.wheelEvent="mousewheel":d.firefox&&"MouseScrollEvent"in window&&(d.wheelEvent="DOMMouseScroll"))}function n(){for(var t=["requestFullscreen","requestFullScreen","webkitRequestFullscreen","webkitRequestFullScreen","msRequestFullscreen","msRequestFullScreen","mozRequestFullScreen","mozRequestFullscreen"],e=document.createElement("div"),i=0;i=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var i=parseInt(RegExp.$1,10),s=parseInt(RegExp.$2,10);(10===i&&s>=11||i>10)&&(d.dolby=!0)}}catch(t){}}function h(){var t=new ArrayBuffer(4),e=new Uint8Array(t),i=new Uint32Array(t);return e[0]=161,e[1]=178,e[2]=195,e[3]=212,3569595041===i[0]||2712847316!==i[0]&&null}function l(){if(void 0===Uint8ClampedArray)return!1;var t=PIXI.CanvasPool.create(this,1,1),e=t.getContext("2d");if(!e)return!1;var i=e.createImageData(1,1);return PIXI.CanvasPool.remove(this),i.data instanceof Uint8ClampedArray}function c(){d.pixelRatio=window.devicePixelRatio||1,d.iPhone=-1!==navigator.userAgent.toLowerCase().indexOf("iphone"),d.iPhone4=2===d.pixelRatio&&d.iPhone,d.iPad=-1!==navigator.userAgent.toLowerCase().indexOf("ipad"),"undefined"!=typeof Int8Array?d.typedArray=!0:d.typedArray=!1,"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint32Array&&(d.littleEndian=h(),d.LITTLE_ENDIAN=d.littleEndian),d.support32bit="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof Int32Array&&null!==d.littleEndian&&l(),navigator.vibrate=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate,navigator.vibrate&&(d.vibration=!0)}function u(){var t=document.createElement("p"),e,i={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.insertBefore(t,null);for(var s in i)void 0!==t.style[s]&&(t.style[s]="translate3d(1px,1px,1px)",e=window.getComputedStyle(t).getPropertyValue(i[s]));document.body.removeChild(t),d.css3D=void 0!==e&&e.length>0&&"none"!==e}var d=this;t(),o(),r(),a(),u(),c(),e(),n(),s()},o.Device.canPlayAudio=function(t){return!("mp3"!==t||!this.mp3)||(!("ogg"!==t||!this.ogg&&!this.opus)||(!("m4a"!==t||!this.m4a)||(!("opus"!==t||!this.opus)||(!("wav"!==t||!this.wav)||(!("webm"!==t||!this.webm)||!("mp4"!==t||!this.dolby))))))},o.Device.canPlayVideo=function(t){return!("webm"!==t||!this.webmVideo&&!this.vp9Video)||(!("mp4"!==t||!this.mp4Video&&!this.h264Video)||(!("ogg"!==t&&"ogv"!==t||!this.oggVideo)||!("mpeg"!==t||!this.hlsVideo)))},o.Device.isConsoleOpen=function(){return!(!window.console||!window.console.firebug)||!(!window.console||(console.clear,!console.profiles))&&console.profiles.length>0},o.Device.isAndroidStockBrowser=function(){var t=window.navigator.userAgent.match(/Android.*AppleWebKit\/([\d.]+)/);return t&&t[1]<537},/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Canvas={create:function(t,e,i,s,n){e=e||256,i=i||256;var o=n?document.createElement("canvas"):PIXI.CanvasPool.create(t,e,i);return"string"==typeof s&&""!==s&&(o.id=s),o.width=e,o.height=i,o.style.display="block",o},setBackgroundColor:function(t,e){return e=e||"rgb(0,0,0)",t.style.backgroundColor=e,t},setTouchAction:function(t,e){return e=e||"none",t.style.msTouchAction=e,t.style["ms-touch-action"]=e,t.style["touch-action"]=e,t},setUserSelect:function(t,e){return e=e||"none",t.style["-webkit-touch-callout"]=e,t.style["-webkit-user-select"]=e,t.style["-khtml-user-select"]=e,t.style["-moz-user-select"]=e,t.style["-ms-user-select"]=e,t.style["user-select"]=e,t.style["-webkit-tap-highlight-color"]="rgba(0, 0, 0, 0)",t},addToDOM:function(t,e,i){var s;return void 0===i&&(i=!0),e&&("string"==typeof e?s=document.getElementById(e):"object"==typeof e&&1===e.nodeType&&(s=e)),s||(s=document.body),i&&s.style&&(s.style.overflow="hidden"),s.appendChild(t),t},removeFromDOM:function(t){t.parentNode&&t.parentNode.removeChild(t)},setTransform:function(t,e,i,s,n,o,a){return t.setTransform(s,o,a,n,e,i),t},setSmoothingEnabled:function(t,e){var i=o.Canvas.getSmoothingPrefix(t);return i&&(t[i]=e),t},getSmoothingPrefix:function(t){var e=["i","webkitI","msI","mozI","oI"];for(var i in e){var s=e[i]+"mageSmoothingEnabled";if(s in t)return s}return null},getSmoothingEnabled:function(t){var e=o.Canvas.getSmoothingPrefix(t);if(e)return t[e]},setImageRenderingCrisp:function(t){for(var e=["optimizeSpeed","crisp-edges","-moz-crisp-edges","-webkit-optimize-contrast","optimize-contrast","pixelated"],i=0;i +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.RequestAnimationFrame=function(t,e){void 0===e&&(e=!1),this.game=t,this.isRunning=!1,this.forceSetTimeOut=e;for(var i=["ms","moz","webkit","o"],s=0;s +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +o.Math={PI2:2*Math.PI,between:function(t,e){return Math.floor(Math.random()*(e-t+1)+t)},fuzzyEqual:function(t,e,i){return void 0===i&&(i=1e-4),Math.abs(t-e)e-i},fuzzyCeil:function(t,e){return void 0===e&&(e=1e-4),Math.ceil(t-e)},fuzzyFloor:function(t,e){return void 0===e&&(e=1e-4),Math.floor(t+e)},average:function(){for(var t=0,e=arguments.length,i=0;i=o.Math.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(et?t+=i:e=0?t:t+2*Math.PI},maxAdd:function(t,e,i){return Math.min(t+e,i)},minSub:function(t,e,i){return Math.max(t-e,i)},wrap:function(t,e,i){var s=i-e;if(s<=0)return 0;var n=(t-e)%s;return n<0&&(n+=s),n+e},wrapValue:function(t,e,i){var s;return t=Math.abs(t),e=Math.abs(e),i=Math.abs(i),s=(t+e)%i},isOdd:function(t){return!!(1&t)},isEven:function(t){return!(1&t)},min:function(){if(1===arguments.length&&"object"==typeof arguments[0])var t=arguments[0];else var t=arguments;for(var e=1,i=0,s=t.length;et[i]&&(i=e);return t[i]},minProperty:function(t){if(2===arguments.length&&"object"==typeof arguments[1])var e=arguments[1];else var e=arguments.slice(1);for(var i=1,s=0,n=e.length;ie[s][t]&&(s=i);return e[s][t]},wrapAngle:function(t,e){return e?this.wrap(t,-Math.PI,Math.PI):this.wrap(t,-180,180)},linearInterpolation:function(t,e){var i=t.length-1,s=i*e,n=Math.floor(s);return e<0?this.linear(t[0],t[1],s):e>1?this.linear(t[i],t[i-1],i-s):this.linear(t[n],t[n+1>i?i:n+1],s-n)},bezierInterpolation:function(t,e){for(var i=0,s=t.length-1,n=0;n<=s;n++)i+=Math.pow(1-e,s-n)*Math.pow(e,n)*t[n]*this.bernstein(s,n);return i},catmullRomInterpolation:function(t,e){var i=t.length-1,s=i*e,n=Math.floor(s);return t[0]===t[i]?(e<0&&(n=Math.floor(s=i*(1+e))),this.catmullRom(t[(n-1+i)%i],t[n],t[(n+1)%i],t[(n+2)%i],s-n)):e<0?t[0]-(this.catmullRom(t[0],t[0],t[1],t[1],-s)-t[0]):e>1?t[i]-(this.catmullRom(t[i],t[i],t[i-1],t[i-1],s-i)-t[i]):this.catmullRom(t[n?n-1:0],t[n],t[i0?Math.ceil(t):Math.floor(t)},sinCosGenerator:function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1),void 0===s&&(s=1);for(var n=e,o=i,a=s*Math.PI/t,r=[],h=[],l=0;l0?1:0},percent:function(t,e,i){return void 0===i&&(i=0),t>e||i>e?1:tt?0:(t-i)/e}};var p=Math.PI/180,f=180/Math.PI;/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** + * @author Timo Hausmann + * @author Richard Davey + * @copyright 2016 Photon Storm Ltd. + * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} + */ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** + * @author Jeremy Dowell + * @author Richard Davey + * @copyright 2016 Photon Storm Ltd. + * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} + */ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Georgios Kaleadis https://github.com/georgiee +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author George https://github.com/georgiee +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +/** +* @author Richard Davey +* @copyright 2016 Photon Storm Ltd. +* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} +*/ +return o.Math.degToRad=function t(e){return e*p},o.Math.radToDeg=function t(e){return e*f},o.RandomDataGenerator=function(t){void 0===t&&(t=[]),this.c=1,this.s0=0,this.s1=0,this.s2=0,"string"==typeof t?this.state(t):this.sow(t)},o.RandomDataGenerator.prototype={rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},sow:function(t){if(this.s0=this.hash(" "),this.s1=this.hash(this.s0),this.s2=this.hash(this.s1),this.c=1,t)for(var e=0;e>>0,e-=s,e*=s,s=e>>>0,e-=s,s+=4294967296*e;return 2.3283064365386963e-10*(s>>>0)},integer:function(){return 4294967296*this.rnd.apply(this)},frac:function(){return this.rnd.apply(this)+1.1102230246251565e-16*(2097152*this.rnd.apply(this)|0)},real:function(){return this.integer()+this.frac()},integerInRange:function(t,e){return Math.floor(this.realInRange(0,e-t+1)+t)},between:function(t,e){return this.integerInRange(t,e)},realInRange:function(t,e){return this.frac()*(e-t)+t},normal:function(){return 1-2*this.frac()},uuid:function(){var t="",e="";for(e=t="";t++<36;e+=~t%5|3*t&4?(15^t?8^this.frac()*(20^t?16:4):4).toString(16):"-");return e},pick:function(t){return t[this.integerInRange(0,t.length-1)]},sign:function(){return this.pick([-1,1])},weightedPick:function(t){return t[~~(Math.pow(this.frac(),2)*(t.length-1)+.5)]},timestamp:function(t,e){return this.realInRange(t||9466848e5,e||1577862e6)},angle:function(){return this.integerInRange(-180,180)},state:function(t){return"string"==typeof t&&t.match(/^!rnd/)&&(t=t.split(","),this.c=parseFloat(t[1]),this.s0=parseFloat(t[2]),this.s1=parseFloat(t[3]),this.s2=parseFloat(t[4])),["!rnd",this.c,this.s0,this.s1,this.s2].join(",")}},o.RandomDataGenerator.prototype.constructor=o.RandomDataGenerator,o.QuadTree=function(t,e,i,s,n,o,a){this.maxObjects=10,this.maxLevels=4,this.level=0,this.bounds={},this.objects=[],this.nodes=[],this._empty=[],this.reset(t,e,i,s,n,o,a)},o.QuadTree.prototype={reset:function(t,e,i,s,n,o,a){this.maxObjects=n||10,this.maxLevels=o||4,this.level=a||0,this.bounds={x:Math.round(t),y:Math.round(e),width:i,height:s,subWidth:Math.floor(i/2),subHeight:Math.floor(s/2),right:Math.round(t)+Math.floor(i/2),bottom:Math.round(e)+Math.floor(s/2)},this.objects.length=0,this.nodes.length=0},populate:function(t){t.forEach(this.populateHandler,this,!0)},populateHandler:function(t){t.body&&t.exists&&this.insert(t.body)},split:function(){this.nodes[0]=new o.QuadTree(this.bounds.right,this.bounds.y,this.bounds.subWidth,this.bounds.subHeight,this.maxObjects,this.maxLevels,this.level+1),this.nodes[1]=new o.QuadTree(this.bounds.x,this.bounds.y,this.bounds.subWidth,this.bounds.subHeight,this.maxObjects,this.maxLevels,this.level+1),this.nodes[2]=new o.QuadTree(this.bounds.x,this.bounds.bottom,this.bounds.subWidth,this.bounds.subHeight,this.maxObjects,this.maxLevels,this.level+1),this.nodes[3]=new o.QuadTree(this.bounds.right,this.bounds.bottom,this.bounds.subWidth,this.bounds.subHeight,this.maxObjects,this.maxLevels,this.level+1)},insert:function(t){var e=0,i;if(null!=this.nodes[0]&&-1!==(i=this.getIndex(t)))return void this.nodes[i].insert(t);if(this.objects.push(t),this.objects.length>this.maxObjects&&this.levelthis.bounds.bottom&&(e=2):t.x>this.bounds.right&&(t.ythis.bounds.bottom&&(e=3)),e},retrieve:function(t){if(t instanceof o.Rectangle)var e=this.objects,i=this.getIndex(t);else{if(!t.body)return this._empty;var e=this.objects,i=this.getIndex(t.body)}return this.nodes[0]&&(-1!==i?e=e.concat(this.nodes[i].retrieve(t)):(e=e.concat(this.nodes[0].retrieve(t)),e=e.concat(this.nodes[1].retrieve(t)),e=e.concat(this.nodes[2].retrieve(t)),e=e.concat(this.nodes[3].retrieve(t)))),e},clear:function(){this.objects.length=0;for(var t=this.nodes.length;t--;)this.nodes[t].clear(),this.nodes.splice(t,1);this.nodes.length=0}},o.QuadTree.prototype.constructor=o.QuadTree,o.Net=function(t){this.game=t},o.Net.prototype={getHostName:function(){return window.location&&window.location.hostname?window.location.hostname:null},checkDomainName:function(t){return-1!==window.location.hostname.indexOf(t)},updateQueryString:function(t,e,i,s){void 0===i&&(i=!1),void 0!==s&&""!==s||(s=window.location.href);var n="",o=new RegExp("([?|&])"+t+"=.*?(&|#|$)(.*)","gi");if(o.test(s))n=void 0!==e&&null!==e?s.replace(o,"$1"+t+"="+e+"$2$3"):s.replace(o,"$1$3").replace(/(&|\?)$/,"");else if(void 0!==e&&null!==e){var a=-1!==s.indexOf("?")?"&":"?",r=s.split("#");s=r[0]+a+t+"="+e,r[1]&&(s+="#"+r[1]),n=s}else n=s;if(!i)return n;window.location.href=n},getQueryString:function(t){void 0===t&&(t="");var e={},i=location.search.substring(1).split("&");for(var s in i){var n=i[s].split("=");if(n.length>1){if(t&&t===this.decodeURI(n[0]))return this.decodeURI(n[1]);e[this.decodeURI(n[0])]=this.decodeURI(n[1])}}return e},decodeURI:function(t){return decodeURIComponent(t.replace(/\+/g," "))}},o.Net.prototype.constructor=o.Net,o.TweenManager=function(t){this.game=t,this.frameBased=!1,this._tweens=[],this._add=[],this.easeMap={Power0:o.Easing.Power0,Power1:o.Easing.Power1,Power2:o.Easing.Power2,Power3:o.Easing.Power3,Power4:o.Easing.Power4,Linear:o.Easing.Linear.None,Quad:o.Easing.Quadratic.Out,Cubic:o.Easing.Cubic.Out,Quart:o.Easing.Quartic.Out,Quint:o.Easing.Quintic.Out,Sine:o.Easing.Sinusoidal.Out,Expo:o.Easing.Exponential.Out,Circ:o.Easing.Circular.Out,Elastic:o.Easing.Elastic.Out,Back:o.Easing.Back.Out,Bounce:o.Easing.Bounce.Out,"Quad.easeIn":o.Easing.Quadratic.In,"Cubic.easeIn":o.Easing.Cubic.In,"Quart.easeIn":o.Easing.Quartic.In,"Quint.easeIn":o.Easing.Quintic.In,"Sine.easeIn":o.Easing.Sinusoidal.In,"Expo.easeIn":o.Easing.Exponential.In,"Circ.easeIn":o.Easing.Circular.In,"Elastic.easeIn":o.Easing.Elastic.In,"Back.easeIn":o.Easing.Back.In,"Bounce.easeIn":o.Easing.Bounce.In,"Quad.easeOut":o.Easing.Quadratic.Out,"Cubic.easeOut":o.Easing.Cubic.Out,"Quart.easeOut":o.Easing.Quartic.Out,"Quint.easeOut":o.Easing.Quintic.Out,"Sine.easeOut":o.Easing.Sinusoidal.Out,"Expo.easeOut":o.Easing.Exponential.Out,"Circ.easeOut":o.Easing.Circular.Out,"Elastic.easeOut":o.Easing.Elastic.Out,"Back.easeOut":o.Easing.Back.Out,"Bounce.easeOut":o.Easing.Bounce.Out,"Quad.easeInOut":o.Easing.Quadratic.InOut,"Cubic.easeInOut":o.Easing.Cubic.InOut,"Quart.easeInOut":o.Easing.Quartic.InOut,"Quint.easeInOut":o.Easing.Quintic.InOut,"Sine.easeInOut":o.Easing.Sinusoidal.InOut,"Expo.easeInOut":o.Easing.Exponential.InOut,"Circ.easeInOut":o.Easing.Circular.InOut,"Elastic.easeInOut":o.Easing.Elastic.InOut,"Back.easeInOut":o.Easing.Back.InOut,"Bounce.easeInOut":o.Easing.Bounce.InOut},this.game.onPause.add(this._pauseAll,this),this.game.onResume.add(this._resumeAll,this)},o.TweenManager.prototype={getAll:function(){return this._tweens},removeAll:function(){for(var t=0;t0&&(this._tweens=this._tweens.concat(this._add),this._add.length=0),!0},isTweening:function(t){return this._tweens.some(function(e){return e.target===t})},_pauseAll:function(){for(var t=this._tweens.length-1;t>=0;t--)this._tweens[t]._pause()},_resumeAll:function(){for(var t=this._tweens.length-1;t>=0;t--)this._tweens[t]._resume()},pauseAll:function(){for(var t=this._tweens.length-1;t>=0;t--)this._tweens[t].pause()},resumeAll:function(){for(var t=this._tweens.length-1;t>=0;t--)this._tweens[t].resume(!0)}},o.TweenManager.prototype.constructor=o.TweenManager,o.Tween=function(t,e,i){this.game=e,this.target=t,this.manager=i,this.timeline=[],this.reverse=!1,this.timeScale=1,this.repeatCounter=0,this.pendingDelete=!1,this.onStart=new o.Signal,this.onLoop=new o.Signal,this.onRepeat=new o.Signal,this.onChildComplete=new o.Signal,this.onComplete=new o.Signal,this.isRunning=!1,this.current=0,this.properties={},this.chainedTween=null,this.isPaused=!1,this.frameBased=i.frameBased,this._onUpdateCallback=null,this._onUpdateCallbackContext=null,this._pausedTime=0,this._codePaused=!1,this._hasStarted=!1},o.Tween.prototype={to:function(t,e,i,s,n,a,r){return(void 0===e||e<=0)&&(e=1e3),void 0!==i&&null!==i||(i=o.Easing.Default),void 0===s&&(s=!1),void 0===n&&(n=0),void 0===a&&(a=0),void 0===r&&(r=!1),"string"==typeof i&&this.manager.easeMap[i]&&(i=this.manager.easeMap[i]),this.isRunning?this:(this.timeline.push(new o.TweenData(this).to(t,e,i,n,a,r)),s&&this.start(),this)},from:function(t,e,i,s,n,a,r){return void 0===e&&(e=1e3),void 0!==i&&null!==i||(i=o.Easing.Default),void 0===s&&(s=!1),void 0===n&&(n=0),void 0===a&&(a=0),void 0===r&&(r=!1),"string"==typeof i&&this.manager.easeMap[i]&&(i=this.manager.easeMap[i]),this.isRunning?this:(this.timeline.push(new o.TweenData(this).from(t,e,i,n,a,r)),s&&this.start(),this)},start:function(t){if(void 0===t&&(t=0),null===this.game||null===this.target||0===this.timeline.length||this.isRunning)return this;for(var e=0;ethis.timeline.length-1)&&(t=0),this.current=t,this.timeline[this.current].start(),this},stop:function(t){return void 0===t&&(t=!1),this.isRunning=!1,this._onUpdateCallback=null,this._onUpdateCallbackContext=null,t&&(this.onComplete.dispatch(this.target,this),this._hasStarted=!1,this.chainedTween&&this.chainedTween.start()),this.manager.remove(this),this},updateTweenData:function(t,e,i){if(0===this.timeline.length)return this;if(void 0===i&&(i=0),-1===i)for(var s=0;s0?arguments[t-1].chainedTween=arguments[t]:this.chainedTween=arguments[t];return this},loop:function(t){return void 0===t&&(t=!0),this.repeatCounter=t?-1:0,this},onUpdateCallback:function(t,e){return this._onUpdateCallback=t,this._onUpdateCallbackContext=e,this},pause:function(){this.isPaused=!0,this._codePaused=!0,this._pausedTime=this.game.time.time},_pause:function(){this._codePaused||(this.isPaused=!0,this._pausedTime=this.game.time.time)},resume:function(){if(this.isPaused){this.isPaused=!1,this._codePaused=!1;for(var t=0;t0?(this.repeatCounter--,this.timeline[this.current].start(),this.onRepeat.dispatch(this.target,this),!0):(this.isRunning=!1,this.onComplete.dispatch(this.target,this),this._hasStarted=!1,this.chainedTween&&this.chainedTween.start(),!1):(this.onChildComplete.dispatch(this.target,this),this.timeline[this.current].start(),!0)}},generateData:function(t,e){if(null===this.game||null===this.target)return null;void 0===t&&(t=60),void 0===e&&(e=[]);for(var i=0;i0?this.isRunning=!1:this.isRunning=!0,this.isFrom)for(var t in this.vStartCache)this.vStart[t]=this.vEndCache[t],this.vEnd[t]=this.vStartCache[t],this.parent.target[t]=this.vStart[t];return this.value=0,this.yoyoCounter=0,this.repeatCounter=this.repeatTotal,this},loadValues:function(){for(var t in this.parent.properties){if(this.vStart[t]=this.parent.properties[t],Array.isArray(this.vEnd[t])){if(0===this.vEnd[t].length)continue;0===this.percent&&(this.vEnd[t]=[this.vStart[t]].concat(this.vEnd[t]))}void 0!==this.vEnd[t]?("string"==typeof this.vEnd[t]&&(this.vEnd[t]=this.vStart[t]+parseFloat(this.vEnd[t],10)),this.parent.properties[t]=this.vEnd[t]):this.vEnd[t]=this.vStart[t],this.vStartCache[t]=this.vStart[t],this.vEndCache[t]=this.vEnd[t]}return this},update:function(t){if(this.isRunning){if(t=this.startTime))return o.TweenData.PENDING;this.isRunning=!0}var e=this.parent.frameBased?this.game.time.physicsElapsedMS:this.game.time.elapsedMS;this.parent.reverse?(this.dt-=e*this.parent.timeScale,this.dt=Math.max(this.dt,0)):(this.dt+=e*this.parent.timeScale,this.dt=Math.min(this.dt,this.duration)),this.percent=this.dt/this.duration,this.value=this.easingFunction(this.percent);for(var i in this.vEnd){var s=this.vStart[i],n=this.vEnd[i];Array.isArray(n)?this.parent.target[i]=this.interpolationFunction.call(this.interpolationContext,n,this.value):this.parent.target[i]=s+(n-s)*this.value}return!this.parent.reverse&&1===this.percent||this.parent.reverse&&0===this.percent?this.repeat():o.TweenData.RUNNING},generateData:function(t){this.parent.reverse?this.dt=this.duration:this.dt=0;var e=[],i=!1,s=1/t*1e3;do{this.parent.reverse?(this.dt-=s,this.dt=Math.max(this.dt,0)):(this.dt+=s,this.dt=Math.min(this.dt,this.duration)),this.percent=this.dt/this.duration,this.value=this.easingFunction(this.percent);var n={};for(var o in this.vEnd){var a=this.vStart[o],r=this.vEnd[o];Array.isArray(r)?n[o]=this.interpolationFunction(r,this.value):n[o]=a+(r-a)*this.value}e.push(n),(!this.parent.reverse&&1===this.percent||this.parent.reverse&&0===this.percent)&&(i=!0)}while(!i);if(this.yoyo){var h=e.slice();h.reverse(),e=e.concat(h)}return e},repeat:function(){if(this.yoyo){if(this.inReverse&&0===this.repeatCounter){for(var t in this.vStartCache)this.vStart[t]=this.vStartCache[t],this.vEnd[t]=this.vEndCache[t];return this.inReverse=!1,o.TweenData.COMPLETE}this.inReverse=!this.inReverse}else if(0===this.repeatCounter)return o.TweenData.COMPLETE;if(this.inReverse)for(var t in this.vStartCache)this.vStart[t]=this.vEndCache[t],this.vEnd[t]=this.vStartCache[t];else{for(var t in this.vStartCache)this.vStart[t]=this.vStartCache[t],this.vEnd[t]=this.vEndCache[t];this.repeatCounter>0&&this.repeatCounter--}return this.startTime=this.game.time.time,this.yoyo&&this.inReverse?this.startTime+=this.yoyoDelay:this.inReverse||(this.startTime+=this.repeatDelay),this.parent.reverse?this.dt=this.duration:this.dt=0,o.TweenData.LOOPED}},o.TweenData.prototype.constructor=o.TweenData,o.Easing={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 0===t?0:1===t?1:1-Math.cos(t*Math.PI/2)},Out:function(t){return 0===t?0:1===t?1:Math.sin(t*Math.PI/2)},InOut:function(t){return 0===t?0:1===t?1:.5*(1-Math.cos(Math.PI*t))}},Exponential:{In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){var e,i=.1,s=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=s*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/s))},Out:function(t){var e,i=.1,s=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=s*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/s)+1)},InOut:function(t){var e,i=.1,s=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=s*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/s)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/s)*.5+1)}},Back:{In:function(t){var e=1.70158;return t*t*((e+1)*t-e)},Out:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},InOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-o.Easing.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*o.Easing.Bounce.In(2*t):.5*o.Easing.Bounce.Out(2*t-1)+.5}}},o.Easing.Default=o.Easing.Linear.None,o.Easing.Power0=o.Easing.Linear.None,o.Easing.Power1=o.Easing.Quadratic.Out,o.Easing.Power2=o.Easing.Cubic.Out,o.Easing.Power3=o.Easing.Quartic.Out,o.Easing.Power4=o.Easing.Quintic.Out,o.Time=function(t){this.game=t,this.time=0,this.prevTime=0,this.now=0,this.elapsed=0,this.elapsedMS=0,this.physicsElapsed=1/60,this.physicsElapsedMS=1/60*1e3,this.desiredFpsMult=1/60,this._desiredFps=60,this.suggestedFps=this.desiredFps,this.slowMotion=1,this.advancedTiming=!1,this.frames=0,this.fps=0,this.fpsMin=1e3,this.fpsMax=0,this.msMin=1e3,this.msMax=0,this.pauseDuration=0,this.timeToCall=0,this.timeExpected=0,this.events=new o.Timer(this.game,!1),this._frameCount=0,this._elapsedAccumulator=0,this._started=0,this._timeLastSecond=0,this._pauseStarted=0,this._justResumed=!1,this._timers=[]},o.Time.prototype={boot:function(){this._started=Date.now(),this.time=Date.now(),this.events.start(),this.timeExpected=this.time},add:function(t){return this._timers.push(t),t},create:function(t){void 0===t&&(t=!0);var e=new o.Timer(this.game,t);return this._timers.push(e),e},removeAll:function(){for(var t=0;t=2*this._desiredFps&&(this.suggestedFps=5*Math.floor(200/(this._elapsedAccumulator/this._frameCount)),this._frameCount=0,this._elapsedAccumulator=0),this.msMin=Math.min(this.msMin,this.elapsed),this.msMax=Math.max(this.msMax,this.elapsed),this.frames++,this.now>this._timeLastSecond+1e3&&(this.fps=Math.round(1e3*this.frames/(this.now-this._timeLastSecond)),this.fpsMin=Math.min(this.fpsMin,this.fps),this.fpsMax=Math.max(this.fpsMax,this.fps),this._timeLastSecond=this.now,this.frames=0)},gamePaused:function(){this._pauseStarted=Date.now(),this.events.pause();for(var t=this._timers.length;t--;)this._timers[t]._pause()},gameResumed:function(){this.time=Date.now(),this.pauseDuration=this.time-this._pauseStarted,this.events.resume();for(var t=this._timers.length;t--;)this._timers[t]._resume()},totalElapsedSeconds:function(){return.001*(this.time-this._started)},elapsedSince:function(t){return this.time-t},elapsedSecondsSince:function(t){return.001*(this.time-t)},reset:function(){this._started=this.time,this.removeAll()}},Object.defineProperty(o.Time.prototype,"desiredFps",{get:function(){return this._desiredFps},set:function(t){this._desiredFps=t,this.physicsElapsed=1/t,this.physicsElapsedMS=1e3*this.physicsElapsed,this.desiredFpsMult=1/t}}),o.Time.prototype.constructor=o.Time,o.Timer=function(t,e){void 0===e&&(e=!0),this.game=t,this.running=!1,this.autoDestroy=e,this.expired=!1,this.elapsed=0,this.events=[],this.onComplete=new o.Signal,this.nextTick=0,this.timeCap=1e3,this.paused=!1,this._codePaused=!1,this._started=0,this._pauseStarted=0,this._pauseTotal=0,this._now=Date.now(),this._len=0,this._marked=0,this._i=0,this._diff=0,this._newTick=0},o.Timer.MINUTE=6e4,o.Timer.SECOND=1e3,o.Timer.HALF=500,o.Timer.QUARTER=250,o.Timer.prototype={create:function(t,e,i,s,n,a){t=Math.round(t);var r=t;0===this._now?r+=this.game.time.time:r+=this._now;var h=new o.TimerEvent(this,t,r,i,e,s,n,a);return this.events.push(h),this.order(),this.expired=!1,h},add:function(t,e,i){return this.create(t,!1,0,e,i,Array.prototype.slice.call(arguments,3))},repeat:function(t,e,i,s){return this.create(t,!1,e,i,s,Array.prototype.slice.call(arguments,4))},loop:function(t,e,i){return this.create(t,!0,0,e,i,Array.prototype.slice.call(arguments,3))},start:function(t){if(!this.running){this._started=this.game.time.time+(t||0),this.running=!0;for(var e=0;e0&&(this.events.sort(this.sortHandler),this.nextTick=this.events[0].tick)},sortHandler:function(t,e){return t.ticke.tick?1:0},clearPendingEvents:function(){for(this._i=this.events.length;this._i--;)this.events[this._i].pendingDelete&&this.events.splice(this._i,1);this._len=this.events.length,this._i=0},update:function(t){if(this.paused)return!0;if(this.elapsed=t-this._now,this._now=t,this.elapsed>this.timeCap&&this.adjustEvents(t-this.elapsed),this._marked=0,this.clearPendingEvents(),this.running&&this._now>=this.nextTick&&this._len>0){for(;this._i=this.events[this._i].tick&&!this.events[this._i].pendingDelete;)this._newTick=this._now+this.events[this._i].delay-(this._now-this.events[this._i].tick),this._newTick<0&&(this._newTick=this._now+this.events[this._i].delay),!0===this.events[this._i].loop?(this.events[this._i].tick=this._newTick,this.events[this._i].callback.apply(this.events[this._i].callbackContext,this.events[this._i].args)):this.events[this._i].repeatCount>0?(this.events[this._i].repeatCount--,this.events[this._i].tick=this._newTick,this.events[this._i].callback.apply(this.events[this._i].callbackContext,this.events[this._i].args)):(this._marked++,this.events[this._i].pendingDelete=!0,this.events[this._i].callback.apply(this.events[this._i].callbackContext,this.events[this._i].args)),this._i++;this.events.length>this._marked?this.order():(this.expired=!0,this.onComplete.dispatch(this))}return!this.expired||!this.autoDestroy},pause:function(){this.running&&(this._codePaused=!0,this.paused||(this._pauseStarted=this.game.time.time,this.paused=!0))},_pause:function(){!this.paused&&this.running&&(this._pauseStarted=this.game.time.time,this.paused=!0)},adjustEvents:function(t){for(var e=0;ethis._now?this.nextTick-this._now:0}}),Object.defineProperty(o.Timer.prototype,"length",{get:function(){return this.events.length}}),Object.defineProperty(o.Timer.prototype,"ms",{get:function(){return this.running?this._now-this._started-this._pauseTotal:0}}),Object.defineProperty(o.Timer.prototype,"seconds",{get:function(){return this.running?.001*this.ms:0}}),o.Timer.prototype.constructor=o.Timer,o.TimerEvent=function(t,e,i,s,n,o,a,r){this.timer=t,this.delay=e,this.tick=i,this.repeatCount=s-1,this.loop=n,this.callback=o,this.callbackContext=a,this.args=r,this.pendingDelete=!1},o.TimerEvent.prototype.constructor=o.TimerEvent,o.AnimationManager=function(t){this.sprite=t,this.game=t.game,this.currentFrame=null,this.currentAnim=null,this.updateIfVisible=!0,this.isLoaded=!1,this._frameData=null,this._anims={},this._outputFrames=[]},o.AnimationManager.prototype={loadFrameData:function(t,e){if(void 0===t)return!1;if(this.isLoaded)for(var i in this._anims)this._anims[i].updateFrameData(t);return this._frameData=t,void 0===e||null===e?this.frame=0:"string"==typeof e?this.frameName=e:this.frame=e,this.isLoaded=!0,!0},copyFrameData:function(t,e){if(this._frameData=t.clone(),this.isLoaded)for(var i in this._anims)this._anims[i].updateFrameData(this._frameData);return void 0===e||null===e?this.frame=0:"string"==typeof e?this.frameName=e:this.frame=e,this.isLoaded=!0,!0},add:function(t,e,i,s,n){return e=e||[],i=i||60,void 0===s&&(s=!1),void 0===n&&(n=!(!e||"number"!=typeof e[0])),this._outputFrames=[],this._frameData.getFrameIndexes(e,n,this._outputFrames),this._anims[t]=new o.Animation(this.game,this.sprite,t,this._frameData,this._outputFrames,i,s),this.currentAnim=this._anims[t],this.sprite.tilingTexture&&(this.sprite.refreshTexture=!0),this._anims[t]},validateFrames:function(t,e){void 0===e&&(e=!0);for(var i=0;ithis._frameData.total)return!1}else if(!1===this._frameData.checkFrameName(t[i]))return!1;return!0},play:function(t,e,i,s){if(this._anims[t])return this.currentAnim===this._anims[t]?!1===this.currentAnim.isPlaying?(this.currentAnim.paused=!1,this.currentAnim.play(e,i,s)):this.currentAnim:(this.currentAnim&&this.currentAnim.isPlaying&&this.currentAnim.stop(),this.currentAnim=this._anims[t],this.currentAnim.paused=!1,this.currentFrame=this.currentAnim.currentFrame,this.currentAnim.play(e,i,s))},stop:function(t,e){void 0===e&&(e=!1),!this.currentAnim||"string"==typeof t&&t!==this.currentAnim.name||this.currentAnim.stop(e)},update:function(){return!(this.updateIfVisible&&!this.sprite.visible)&&(!(!this.currentAnim||!this.currentAnim.update())&&(this.currentFrame=this.currentAnim.currentFrame,!0))},next:function(t){this.currentAnim&&(this.currentAnim.next(t),this.currentFrame=this.currentAnim.currentFrame)},previous:function(t){this.currentAnim&&(this.currentAnim.previous(t),this.currentFrame=this.currentAnim.currentFrame)},getAnimation:function(t){return"string"==typeof t&&this._anims[t]?this._anims[t]:null},refreshFrame:function(){},destroy:function(){var t=null;for(var t in this._anims)this._anims.hasOwnProperty(t)&&this._anims[t].destroy();this._anims={},this._outputFrames=[],this._frameData=null,this.currentAnim=null,this.currentFrame=null,this.sprite=null,this.game=null}},o.AnimationManager.prototype.constructor=o.AnimationManager,Object.defineProperty(o.AnimationManager.prototype,"frameData",{get:function(){return this._frameData}}),Object.defineProperty(o.AnimationManager.prototype,"frameTotal",{get:function(){return this._frameData.total}}),Object.defineProperty(o.AnimationManager.prototype,"paused",{get:function(){return this.currentAnim.isPaused},set:function(t){this.currentAnim.paused=t}}),Object.defineProperty(o.AnimationManager.prototype,"name",{get:function(){if(this.currentAnim)return this.currentAnim.name}}),Object.defineProperty(o.AnimationManager.prototype,"frame",{get:function(){if(this.currentFrame)return this.currentFrame.index},set:function(t){"number"==typeof t&&this._frameData&&null!==this._frameData.getFrame(t)&&(this.currentFrame=this._frameData.getFrame(t),this.currentFrame&&this.sprite.setFrame(this.currentFrame))}}),Object.defineProperty(o.AnimationManager.prototype,"frameName",{get:function(){if(this.currentFrame)return this.currentFrame.name},set:function(t){"string"==typeof t&&this._frameData&&null!==this._frameData.getFrameByName(t)&&(this.currentFrame=this._frameData.getFrameByName(t),this.currentFrame&&(this._frameIndex=this.currentFrame.index,this.sprite.setFrame(this.currentFrame)))}}),o.Animation=function(t,e,i,s,n,a,r){void 0===r&&(r=!1),this.game=t,this._parent=e,this._frameData=s,this.name=i,this._frames=[],this._frames=this._frames.concat(n),this.delay=1e3/a,this.loop=r,this.loopCount=0,this.killOnComplete=!1,this.isFinished=!1,this.isPlaying=!1,this.isPaused=!1,this._pauseStartTime=0,this._frameIndex=0,this._frameDiff=0,this._frameSkip=1,this.currentFrame=this._frameData.getFrame(this._frames[this._frameIndex]),this.onStart=new o.Signal,this.onUpdate=null,this.onComplete=new o.Signal,this.onLoop=new o.Signal,this.isReversed=!1,this.game.onPause.add(this.onPause,this),this.game.onResume.add(this.onResume,this)},o.Animation.prototype={play:function(t,e,i){return"number"==typeof t&&(this.delay=1e3/t),"boolean"==typeof e&&(this.loop=e),void 0!==i&&(this.killOnComplete=i),this.isPlaying=!0,this.isFinished=!1,this.paused=!1,this.loopCount=0,this._timeLastFrame=this.game.time.time,this._timeNextFrame=this.game.time.time+this.delay,this._frameIndex=this.isReversed?this._frames.length-1:0,this.updateCurrentFrame(!1,!0),this._parent.events.onAnimationStart$dispatch(this._parent,this),this.onStart.dispatch(this._parent,this),this._parent.animations.currentAnim=this,this._parent.animations.currentFrame=this.currentFrame,this},restart:function(){this.isPlaying=!0,this.isFinished=!1,this.paused=!1,this.loopCount=0,this._timeLastFrame=this.game.time.time,this._timeNextFrame=this.game.time.time+this.delay,this._frameIndex=0,this.currentFrame=this._frameData.getFrame(this._frames[this._frameIndex]),this._parent.setFrame(this.currentFrame),this._parent.animations.currentAnim=this,this._parent.animations.currentFrame=this.currentFrame,this.onStart.dispatch(this._parent,this)},reverse:function(){return this.reversed=!this.reversed,this},reverseOnce:function(){return this.onComplete.addOnce(this.reverse,this),this.reverse()},setFrame:function(t,e){var i;if(void 0===e&&(e=!1),"string"==typeof t)for(var s=0;s=this._timeNextFrame)&&(this._frameSkip=1,this._frameDiff=this.game.time.time-this._timeNextFrame,this._timeLastFrame=this.game.time.time,this._frameDiff>this.delay&&(this._frameSkip=Math.floor(this._frameDiff/this.delay),this._frameDiff-=this._frameSkip*this.delay),this._timeNextFrame=this.game.time.time+(this.delay-this._frameDiff),this.isReversed?this._frameIndex-=this._frameSkip:this._frameIndex+=this._frameSkip,!this.isReversed&&this._frameIndex>=this._frames.length||this.isReversed&&this._frameIndex<=-1?this.loop?(this._frameIndex=Math.abs(this._frameIndex)%this._frames.length,this.isReversed&&(this._frameIndex=this._frames.length-1-this._frameIndex),this.currentFrame=this._frameData.getFrame(this._frames[this._frameIndex]),this.currentFrame&&this._parent.setFrame(this.currentFrame),this.loopCount++,this._parent.events.onAnimationLoop$dispatch(this._parent,this),this.onLoop.dispatch(this._parent,this),!this.onUpdate||(this.onUpdate.dispatch(this,this.currentFrame),!!this._frameData)):(this.complete(),!1):this.updateCurrentFrame(!0)))},updateCurrentFrame:function(t,e){if(void 0===e&&(e=!1),!this._frameData)return!1;var i=this.currentFrame.index;return this.currentFrame=this._frameData.getFrame(this._frames[this._frameIndex]),this.currentFrame&&(e||!e&&i!==this.currentFrame.index)&&this._parent.setFrame(this.currentFrame),!this.onUpdate||!t||(this.onUpdate.dispatch(this,this.currentFrame),!!this._frameData)},next:function(t){void 0===t&&(t=1);var e=this._frameIndex+t;e>=this._frames.length&&(this.loop?e%=this._frames.length:e=this._frames.length-1),e!==this._frameIndex&&(this._frameIndex=e,this.updateCurrentFrame(!0))},previous:function(t){void 0===t&&(t=1);var e=this._frameIndex-t;e<0&&(this.loop?e=this._frames.length+e:e++),e!==this._frameIndex&&(this._frameIndex=e,this.updateCurrentFrame(!0))},updateFrameData:function(t){this._frameData=t,this.currentFrame=this._frameData?this._frameData.getFrame(this._frames[this._frameIndex%this._frames.length]):null},destroy:function(){this._frameData&&(this.game.onPause.remove(this.onPause,this),this.game.onResume.remove(this.onResume,this),this.game=null,this._parent=null,this._frames=null,this._frameData=null,this.currentFrame=null,this.isPlaying=!1,this.onStart.dispose(),this.onLoop.dispose(),this.onComplete.dispose(),this.onUpdate&&this.onUpdate.dispose())},complete:function(){this._frameIndex=this._frames.length-1,this.currentFrame=this._frameData.getFrame(this._frames[this._frameIndex]),this.isPlaying=!1,this.isFinished=!0,this.paused=!1,this._parent.events.onAnimationComplete$dispatch(this._parent,this),this.onComplete.dispatch(this._parent,this),this.killOnComplete&&this._parent.kill()}},o.Animation.prototype.constructor=o.Animation,Object.defineProperty(o.Animation.prototype,"paused",{get:function(){return this.isPaused},set:function(t){this.isPaused=t,t?this._pauseStartTime=this.game.time.time:this.isPlaying&&(this._timeNextFrame=this.game.time.time+this.delay)}}),Object.defineProperty(o.Animation.prototype,"reversed",{get:function(){return this.isReversed},set:function(t){this.isReversed=t}}),Object.defineProperty(o.Animation.prototype,"frameTotal",{get:function(){return this._frames.length}}),Object.defineProperty(o.Animation.prototype,"frame",{get:function(){return null!==this.currentFrame?this.currentFrame.index:this._frameIndex},set:function(t){this.currentFrame=this._frameData.getFrame(this._frames[t]),null!==this.currentFrame&&(this._frameIndex=t,this._parent.setFrame(this.currentFrame),this.onUpdate&&this.onUpdate.dispatch(this,this.currentFrame))}}),Object.defineProperty(o.Animation.prototype,"speed",{get:function(){return 1e3/this.delay},set:function(t){t>0&&(this.delay=1e3/t)}}),Object.defineProperty(o.Animation.prototype,"enableUpdate",{get:function(){return null!==this.onUpdate},set:function(t){t&&null===this.onUpdate?this.onUpdate=new o.Signal:t||null===this.onUpdate||(this.onUpdate.dispose(),this.onUpdate=null)}}),o.Animation.generateFrameNames=function(t,e,i,s,n){void 0===s&&(s="");var a=[],r="";if(e=i;h--)r="number"==typeof n?o.Utils.pad(h.toString(),n,"0",1):h.toString(),r=t+r+s,a.push(r);return a},o.Frame=function(t,e,i,s,n,a){this.index=t,this.x=e,this.y=i,this.width=s,this.height=n,this.name=a,this.centerX=Math.floor(s/2),this.centerY=Math.floor(n/2),this.distance=o.Math.distance(0,0,s,n),this.rotated=!1,this.rotationDirection="cw",this.trimmed=!1,this.sourceSizeW=s,this.sourceSizeH=n,this.spriteSourceSizeX=0,this.spriteSourceSizeY=0,this.spriteSourceSizeW=0,this.spriteSourceSizeH=0,this.right=this.x+this.width,this.bottom=this.y+this.height},o.Frame.prototype={resize:function(t,e){this.width=t,this.height=e,this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2),this.distance=o.Math.distance(0,0,t,e),this.sourceSizeW=t,this.sourceSizeH=e,this.right=this.x+t,this.bottom=this.y+e},setTrim:function(t,e,i,s,n,o,a){this.trimmed=t,t&&(this.sourceSizeW=e,this.sourceSizeH=i,this.centerX=Math.floor(e/2),this.centerY=Math.floor(i/2),this.spriteSourceSizeX=s,this.spriteSourceSizeY=n,this.spriteSourceSizeW=o,this.spriteSourceSizeH=a)},clone:function(){var t=new o.Frame(this.index,this.x,this.y,this.width,this.height,this.name);for(var e in this)this.hasOwnProperty(e)&&(t[e]=this[e]);return t},getRect:function(t){return void 0===t?t=new o.Rectangle(this.x,this.y,this.width,this.height):t.setTo(this.x,this.y,this.width,this.height),t}},o.Frame.prototype.constructor=o.Frame,o.FrameData=function(){this._frames=[],this._frameNames=[]},o.FrameData.prototype={addFrame:function(t){return t.index=this._frames.length,this._frames.push(t),""!==t.name&&(this._frameNames[t.name]=t.index),t},getFrame:function(t){return t>=this._frames.length&&(t=0),this._frames[t]},getFrameByName:function(t){return"number"==typeof this._frameNames[t]?this._frames[this._frameNames[t]]:null},checkFrameName:function(t){return null!=this._frameNames[t]},clone:function(){for(var t=new o.FrameData,e=0;el&&(y=a,g+=s+r);return f},JSONData:function(t,e){if(e.frames){for(var i=new o.FrameData,s=e.frames,n,a=0;a-1},getAssetIndex:function(t,e){for(var i=-1,s=0;s-1&&{index:i,file:this._fileList[i]}},reset:function(t,e){void 0===e&&(e=!1),this.resetLocked||(t&&(this.preloadSprite=null),this.isLoading=!1,this._processingHead=0,this._fileList.length=0,this._flightQueue.length=0,this._fileLoadStarted=!1,this._totalFileCount=0,this._totalPackCount=0,this._loadedPackCount=0,this._loadedFileCount=0,e&&(this.onLoadStart.removeAll(),this.onLoadComplete.removeAll(),this.onPackComplete.removeAll(),this.onFileStart.removeAll(),this.onFileComplete.removeAll(),this.onFileError.removeAll()))},addToFileList:function(t,e,i,s,n,o){if(void 0===n&&(n=!1),void 0===e||""===e)return this;if(void 0===i||null===i){if(!o)return this;i=e+o}var a={type:t,key:e,path:this.path,url:i,syncPoint:this._withSyncPointDepth>0,data:null,loading:!1,loaded:!1,error:!1};if(s)for(var r in s)a[r]=s[r];var h=this.getAssetIndex(t,e);if(n&&h>-1){var l=this._fileList[h];l.loading||l.loaded?(this._fileList.push(a),this._totalFileCount++):this._fileList[h]=a}else-1===h&&(this._fileList.push(a),this._totalFileCount++);return this},replaceInFileList:function(t,e,i,s){return this.addToFileList(t,e,i,s,!0)},pack:function(t,e,i,s){if(void 0===e&&(e=null),void 0===i&&(i=null),void 0===s&&(s=null),!e&&!i)return this;var n={type:"packfile",key:t,url:e,path:this.path,syncPoint:!0,data:null,loading:!1,loaded:!1,error:!1,callbackContext:s};i&&("string"==typeof i&&(i=JSON.parse(i)),n.data=i||{},n.loaded=!0);for(var o=0;o=s||i&&this._loadedPackCount===this._totalPackCount)break}if(this.updateProgress(),this._processingHead>=this._fileList.length)this.finishedLoading();else if(!this._flightQueue.length){var n=this;setTimeout(function(){n.finishedLoading(!0)},2e3)}},finishedLoading:function(t){this.hasLoaded||(this.hasLoaded=!0,this.isLoading=!1,t||this._fileLoadStarted||(this._fileLoadStarted=!0,this.onLoadStart.dispatch()),this.onLoadComplete.dispatch(),this.game.state.loadComplete(),this.reset())},asyncComplete:function(t,e){void 0===e&&(e=""),t.loaded=!0,t.error=!!e,e&&(t.errorMessage=e),this.processLoadQueue()},processPack:function(t){var e=t.data[t.key];if(e)for(var i=0;i=400&&o.status<=599?n.call(a,t,o):s.call(a,t,o)}catch(e){a.hasLoaded?window.console:a.asyncComplete(t,e.message||"Exception")}},o.onerror=function(){try{return n.call(a,t,o)}catch(e){a.hasLoaded?window.console:a.asyncComplete(t,e.message||"Exception")}},t.requestObject=o,t.requestUrl=e,o.send()},xhrLoadWithXDR:function(t,e,i,s,n){this._warnedAboutXDomainRequest||this.game.device.ie&&!(this.game.device.ieVersion>=10)||(this._warnedAboutXDomainRequest=!0);var o=new window.XDomainRequest;o.open("GET",e,!0),o.responseType=i,o.timeout=3e3,n=n||this.fileError;var a=this;o.onerror=function(){try{return n.call(a,t,o)}catch(e){a.asyncComplete(t,e.message||"Exception")}},o.ontimeout=function(){try{return n.call(a,t,o)}catch(e){a.asyncComplete(t,e.message||"Exception")}},o.onprogress=function(){},o.onload=function(){try{return 4===o.readyState&&o.status>=400&&o.status<=599?n.call(a,t,o):s.call(a,t,o)}catch(e){a.asyncComplete(t,e.message||"Exception")}},t.requestObject=o,t.requestUrl=e,setTimeout(function(){o.send()},0)},getVideoURL:function(t){for(var e=0;e=0&&(i=i.substr(0,i.indexOf("?")));if(s=i.substr((Math.max(0,i.lastIndexOf("."))||1/0)+1).toLowerCase(),this.game.device.canPlayVideo(s))return t[e]}}return null},getAudioURL:function(t){if(this.game.sound.noAudio)return null;for(var e=0;e=0&&(i=i.substr(0,i.indexOf("?")));if(s=i.substr((Math.max(0,i.lastIndexOf("."))||1/0)+1).toLowerCase(),this.game.device.canPlayAudio(s))return t[e]}}return null},fileError:function(t,e,i){var s=t.requestUrl||this.transformUrl(t.url,t),n="error loading asset from URL "+s;!i&&e&&(i=e.status),i&&(n=n+" ("+i+")"),this.asyncComplete(t,n)},fileComplete:function(t,e){var i=!0;switch(t.type){case"packfile":var s=JSON.parse(e.responseText);t.data=s||{};break;case"image":this.cache.addImage(t.key,t.url,t.data);break;case"spritesheet":this.cache.addSpriteSheet(t.key,t.url,t.data,t.frameWidth,t.frameHeight,t.frameMax,t.margin,t.spacing);break;case"textureatlas":if(null==t.atlasURL)this.cache.addTextureAtlas(t.key,t.url,t.data,t.atlasData,t.format);else if(i=!1,t.format===o.Loader.TEXTURE_ATLAS_JSON_ARRAY||t.format===o.Loader.TEXTURE_ATLAS_JSON_HASH||t.format===o.Loader.TEXTURE_ATLAS_JSON_PYXEL)this.xhrLoad(t,this.transformUrl(t.atlasURL,t),"text",this.jsonLoadComplete);else{if(t.format!==o.Loader.TEXTURE_ATLAS_XML_STARLING)throw new Error("Phaser.Loader. Invalid Texture Atlas format: "+t.format);this.xhrLoad(t,this.transformUrl(t.atlasURL,t),"text",this.xmlLoadComplete)}break;case"bitmapfont":t.atlasURL?(i=!1,this.xhrLoad(t,this.transformUrl(t.atlasURL,t),"text",function(t,e){var i;try{i=JSON.parse(e.responseText)}catch(t){}i?(t.atlasType="json",this.jsonLoadComplete(t,e)):(t.atlasType="xml",this.xmlLoadComplete(t,e))})):this.cache.addBitmapFont(t.key,t.url,t.data,t.atlasData,t.atlasType,t.xSpacing,t.ySpacing);break;case"video":if(t.asBlob)try{t.data=e.response}catch(e){throw new Error("Phaser.Loader. Unable to parse video file as Blob: "+t.key)}this.cache.addVideo(t.key,t.url,t.data,t.asBlob);break;case"audio":this.game.sound.usingWebAudio?(t.data=e.response,this.cache.addSound(t.key,t.url,t.data,!0,!1),t.autoDecode&&this.game.sound.decode(t.key)):this.cache.addSound(t.key,t.url,t.data,!1,!0);break;case"text":t.data=e.responseText,this.cache.addText(t.key,t.url,t.data);break;case"shader":t.data=e.responseText,this.cache.addShader(t.key,t.url,t.data);break;case"physics":var s=JSON.parse(e.responseText);this.cache.addPhysicsData(t.key,t.url,s,t.format);break;case"script":t.data=document.createElement("script"),t.data.language="javascript",t.data.type="text/javascript",t.data.defer=!1,t.data.text=e.responseText,document.head.appendChild(t.data),t.callback&&(t.data=t.callback.call(t.callbackContext,t.key,e.responseText));break;case"binary":t.callback?t.data=t.callback.call(t.callbackContext,t.key,e.response):t.data=e.response,this.cache.addBinary(t.key,t.data)}i&&this.asyncComplete(t)},jsonLoadComplete:function(t,e){var i=JSON.parse(e.responseText);"tilemap"===t.type?this.cache.addTilemap(t.key,t.url,i,t.format):"bitmapfont"===t.type?this.cache.addBitmapFont(t.key,t.url,t.data,i,t.atlasType,t.xSpacing,t.ySpacing):"json"===t.type?this.cache.addJSON(t.key,t.url,i):this.cache.addTextureAtlas(t.key,t.url,t.data,i,t.format),this.asyncComplete(t)},csvLoadComplete:function(t,e){var i=e.responseText;this.cache.addTilemap(t.key,t.url,i,t.format),this.asyncComplete(t)},xmlLoadComplete:function(t,e){var i=e.responseText,s=this.parseXml(i);if(!s){var n=e.responseType||e.contentType;return void this.asyncComplete(t,"invalid XML")}"bitmapfont"===t.type?this.cache.addBitmapFont(t.key,t.url,t.data,s,t.atlasType,t.xSpacing,t.ySpacing):"textureatlas"===t.type?this.cache.addTextureAtlas(t.key,t.url,t.data,s,t.format):"xml"===t.type&&this.cache.addXML(t.key,t.url,s),this.asyncComplete(t)},parseXml:function(t){var e;try{if(window.DOMParser){var i=new DOMParser;e=i.parseFromString(t,"text/xml")}else e=new ActiveXObject("Microsoft.XMLDOM"),e.async="false",e.loadXML(t)}catch(t){e=null}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length?e:null},updateProgress:function(){this.preloadSprite&&(0===this.preloadSprite.direction?this.preloadSprite.rect.width=Math.floor(this.preloadSprite.width/100*this.progress):this.preloadSprite.rect.height=Math.floor(this.preloadSprite.height/100*this.progress),this.preloadSprite.sprite?this.preloadSprite.sprite.updateCrop():this.preloadSprite=null)},totalLoadedFiles:function(){return this._loadedFileCount},totalQueuedFiles:function(){return this._totalFileCount-this._loadedFileCount},totalLoadedPacks:function(){return this._totalPackCount},totalQueuedPacks:function(){return this._totalPackCount-this._loadedPackCount}},Object.defineProperty(o.Loader.prototype,"progressFloat",{get:function(){var t=this._loadedFileCount/this._totalFileCount*100;return o.Math.clamp(t||0,0,100)}}),Object.defineProperty(o.Loader.prototype,"progress",{get:function(){return Math.round(this.progressFloat)}}),o.Loader.prototype.constructor=o.Loader,o.LoaderParser={bitmapFont:function(t,e,i,s){return this.xmlBitmapFont(t,e,i,s)},xmlBitmapFont:function(t,e,i,s){var n={},o=t.getElementsByTagName("info")[0],a=t.getElementsByTagName("common")[0];n.font=o.getAttribute("face"),n.size=parseInt(o.getAttribute("size"),10),n.lineHeight=parseInt(a.getAttribute("lineHeight"),10)+s,n.chars={};for(var r=t.getElementsByTagName("char"),h=0;h=this.durationMS&&(this.usingWebAudio?this.loop?(this.onLoop.dispatch(this),this.isPlaying=!1,""===this.currentMarker?(this.currentTime=0,this.startTime=this.game.time.time,this.isPlaying=!0):(this.onMarkerComplete.dispatch(this.currentMarker,this),this.play(this.currentMarker,0,this.volume,!0,!0))):""!==this.currentMarker&&this.stop():this.loop?(this.onLoop.dispatch(this),""===this.currentMarker&&(this.currentTime=0,this.startTime=this.game.time.time),this.isPlaying=!1,this.play(this.currentMarker,0,this.volume,!0,!0)):this.stop()))},loopFull:function(t){return this.play(null,0,t,!0)},play:function(t,e,i,s,n){if(void 0!==t&&!1!==t&&null!==t||(t=""),void 0===n&&(n=!0),this.isPlaying&&!this.allowMultiple&&!n&&!this.override)return this;if(this._sound&&this.isPlaying&&!this.allowMultiple&&(this.override||n)){if(this.usingWebAudio){if(void 0===this._sound.stop)this._sound.noteOff(0);else try{this._sound.stop(0)}catch(t){}this.externalNode?this._sound.disconnect(this.externalNode):this.gainNode&&this._sound.disconnect(this.gainNode)}else this.usingAudioTag&&(this._sound.pause(),this._sound.currentTime=0);this.isPlaying=!1}if(""===t&&Object.keys(this.markers).length>0)return this;if(""!==t){if(!this.markers[t])return this;this.currentMarker=t,this.position=this.markers[t].start,this.volume=this.markers[t].volume,this.loop=this.markers[t].loop,this.duration=this.markers[t].duration,this.durationMS=this.markers[t].durationMS,void 0!==i&&(this.volume=i),void 0!==s&&(this.loop=s),this._tempMarker=t,this._tempPosition=this.position,this._tempVolume=this.volume,this._tempLoop=this.loop}else e=e||0,void 0===i&&(i=this._volume),void 0===s&&(s=this.loop),this.position=Math.max(0,e),this.volume=i,this.loop=s,this.duration=0,this.durationMS=0,this._tempMarker=t,this._tempPosition=e,this._tempVolume=i,this._tempLoop=s;return this.usingWebAudio?this.game.cache.isSoundDecoded(this.key)?(this._sound=this.context.createBufferSource(),this.externalNode?this._sound.connect(this.externalNode):this._sound.connect(this.gainNode),this._buffer=this.game.cache.getSoundData(this.key),this._sound.buffer=this._buffer,this.loop&&""===t&&(this._sound.loop=!0),this.loop||""!==t||(this._sound.onended=this.onEndedHandler.bind(this)),this.totalDuration=this._sound.buffer.duration,0===this.duration&&(this.duration=this.totalDuration,this.durationMS=Math.ceil(1e3*this.totalDuration)),void 0===this._sound.start?this._sound.noteGrainOn(0,this.position,this.duration):this.loop&&""===t?this._sound.start(0,0):this._sound.start(0,this.position,this.duration),this.isPlaying=!0,this.startTime=this.game.time.time,this.currentTime=0,this.stopTime=this.startTime+this.durationMS,this.onPlay.dispatch(this)):(this.pendingPlayback=!0,this.game.cache.getSound(this.key)&&!1===this.game.cache.getSound(this.key).isDecoding&&this.game.sound.decode(this.key,this)):this.game.cache.getSound(this.key)&&this.game.cache.getSound(this.key).locked?(this.game.cache.reloadSound(this.key),this.pendingPlayback=!0):this._sound&&(this.game.device.cocoonJS||4===this._sound.readyState)?(this._sound.play(),this.totalDuration=this._sound.duration,0===this.duration&&(this.duration=this.totalDuration,this.durationMS=1e3*this.totalDuration),this._sound.currentTime=this.position,this._sound.muted=this._muted,this._muted||this.game.sound.mute?this._sound.volume=0:this._sound.volume=this._volume,this.isPlaying=!0,this.startTime=this.game.time.time,this.currentTime=0,this.stopTime=this.startTime+this.durationMS,this.onPlay.dispatch(this)):this.pendingPlayback=!0,this},restart:function(t,e,i,s){t=t||"",e=e||0,i=i||1,void 0===s&&(s=!1),this.play(t,e,i,s,!0)},pause:function(){this.isPlaying&&this._sound&&(this.paused=!0,this.pausedPosition=this.currentTime,this.pausedTime=this.game.time.time,this._tempPause=this._sound.currentTime,this.onPause.dispatch(this),this.stop())},resume:function(){if(this.paused&&this._sound){if(this.usingWebAudio){var t=Math.max(0,this.position+this.pausedPosition/1e3);this._sound=this.context.createBufferSource(),this._sound.buffer=this._buffer,this.externalNode?this._sound.connect(this.externalNode):this._sound.connect(this.gainNode),this.loop&&(this._sound.loop=!0),this.loop||""!==this.currentMarker||(this._sound.onended=this.onEndedHandler.bind(this));var e=this.duration-this.pausedPosition/1e3;void 0===this._sound.start?this._sound.noteGrainOn(0,t,e):this.loop&&this.game.device.chrome?42===this.game.device.chromeVersion?this._sound.start(0):this._sound.start(0,t):this._sound.start(0,t,e)}else this._sound.currentTime=this._tempPause,this._sound.play();this.isPlaying=!0,this.paused=!1,this.startTime+=this.game.time.time-this.pausedTime,this.onResume.dispatch(this)}},stop:function(){if(this.isPlaying&&this._sound)if(this.usingWebAudio){if(void 0===this._sound.stop)this._sound.noteOff(0);else try{this._sound.stop(0)}catch(t){}this.externalNode?this._sound.disconnect(this.externalNode):this.gainNode&&this._sound.disconnect(this.gainNode)}else this.usingAudioTag&&(this._sound.pause(),this._sound.currentTime=0);if(this.pendingPlayback=!1,this.isPlaying=!1,!this.paused){var t=this.currentMarker;""!==this.currentMarker&&this.onMarkerComplete.dispatch(this.currentMarker,this),this.currentMarker="",null!==this.fadeTween&&this.fadeTween.stop(),this.onStop.dispatch(this,t)}},fadeIn:function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=this.currentMarker),this.paused||(this.play(i,0,0,e),this.fadeTo(t,1))},fadeOut:function(t){this.fadeTo(t,0)},fadeTo:function(t,e){this.isPlaying&&!this.paused&&e!==this.volume&&(void 0===t&&(t=1e3),void 0!==e&&(this.fadeTween=this.game.add.tween(this).to({volume:e},t,o.Easing.Linear.None,!0),this.fadeTween.onComplete.add(this.fadeComplete,this)))},fadeComplete:function(){this.onFadeComplete.dispatch(this,this.volume),0===this.volume&&this.stop()},updateGlobalVolume:function(t){this.usingAudioTag&&this._sound&&(this._sound.volume=t*this._volume)},destroy:function(t){void 0===t&&(t=!0),this.stop(),t?this.game.sound.remove(this):(this.markers={},this.context=null,this._buffer=null,this.externalNode=null,this.onDecoded.dispose(),this.onPlay.dispose(),this.onPause.dispose(),this.onResume.dispose(),this.onLoop.dispose(),this.onStop.dispose(),this.onMute.dispose(),this.onMarkerComplete.dispose())}},o.Sound.prototype.constructor=o.Sound,Object.defineProperty(o.Sound.prototype,"isDecoding",{get:function(){return this.game.cache.getSound(this.key).isDecoding}}),Object.defineProperty(o.Sound.prototype,"isDecoded",{get:function(){return this.game.cache.isSoundDecoded(this.key)}}),Object.defineProperty(o.Sound.prototype,"mute",{get:function(){return this._muted||this.game.sound.mute},set:function(t){(t=t||!1)!==this._muted&&(t?(this._muted=!0,this._muteVolume=this._tempVolume,this.usingWebAudio?this.gainNode.gain.value=0:this.usingAudioTag&&this._sound&&(this._sound.volume=0)):(this._muted=!1,this.usingWebAudio?this.gainNode.gain.value=this._muteVolume:this.usingAudioTag&&this._sound&&(this._sound.volume=this._muteVolume)),this.onMute.dispatch(this))}}),Object.defineProperty(o.Sound.prototype,"volume",{get:function(){return this._volume},set:function(t){if(this.game.device.firefox&&this.usingAudioTag&&(t=this.game.math.clamp(t,0,1)),this._muted)return void(this._muteVolume=t);this._tempVolume=t,this._volume=t,this.usingWebAudio?this.gainNode.gain.value=t:this.usingAudioTag&&this._sound&&(this._sound.volume=t)}}),o.SoundManager=function(t){this.game=t,this.onSoundDecode=new o.Signal,this.onVolumeChange=new o.Signal,this.onMute=new o.Signal,this.onUnMute=new o.Signal,this.context=null,this.usingWebAudio=!1,this.usingAudioTag=!1,this.noAudio=!1,this.connectToMaster=!0,this.touchLocked=!1,this.channels=32,this.muteOnPause=!0,this._codeMuted=!1,this._muted=!1,this._unlockSource=null,this._volume=1,this._sounds=[],this._watchList=new o.ArraySet,this._watching=!1,this._watchCallback=null,this._watchContext=null},o.SoundManager.prototype={boot:function(){if(this.game.device.iOS&&!1===this.game.device.webAudio&&(this.channels=1),window.PhaserGlobal){if(!0===window.PhaserGlobal.disableAudio)return this.noAudio=!0,void(this.touchLocked=!1);if(!0===window.PhaserGlobal.disableWebAudio)return this.usingAudioTag=!0,void(this.touchLocked=!1)}if(window.PhaserGlobal&&window.PhaserGlobal.audioContext)this.context=window.PhaserGlobal.audioContext;else if(window.AudioContext)try{this.context=new window.AudioContext}catch(t){this.context=null,this.usingWebAudio=!1,this.touchLocked=!1}else if(window.webkitAudioContext)try{this.context=new window.webkitAudioContext}catch(t){this.context=null,this.usingWebAudio=!1,this.touchLocked=!1}if(null===this.context){if(void 0===window.Audio)return void(this.noAudio=!0);this.usingAudioTag=!0}else this.usingWebAudio=!0,void 0===this.context.createGain?this.masterGain=this.context.createGainNode():this.masterGain=this.context.createGain(),this.masterGain.gain.value=1,this.masterGain.connect(this.context.destination);this.noAudio||!this.game.device.cocoonJS&&(this.game.device.android||this.game.device.iOS||window.PhaserGlobal&&window.PhaserGlobal.fakeiOSTouchLock)&&this.setTouchLock()},setTouchLock:function(){this.noAudio||window.PhaserGlobal&&!0===window.PhaserGlobal.disableAudio||(this.game.device.iOSVersion>8||this.game.device.chromeVersion>=55?this.game.input.touch.addTouchLockCallback(this.unlock,this,!0):this.game.input.touch.addTouchLockCallback(this.unlock,this),this.touchLocked=!0)},unlock:function(){if(this.noAudio||!this.touchLocked||null!==this._unlockSource)return!0;if(this.usingAudioTag)this.touchLocked=!1,this._unlockSource=null;else if(this.usingWebAudio){var t=this.context.createBuffer(1,1,22050);this._unlockSource=this.context.createBufferSource(),this._unlockSource.buffer=t,this._unlockSource.connect(this.context.destination),void 0===this._unlockSource.start?this._unlockSource.noteOn(0):this._unlockSource.start(0),"suspended"===this._unlockSource.context.state&&this._unlockSource.context.resume()}return!0},stopAll:function(){if(!this.noAudio)for(var t=0;t1&&(t=1),this._volume!==t){if(this._volume=t,this.usingWebAudio)this.masterGain.gain.value=t;else for(var e=0;e=400?0:100,this.dom.getOffset(this.game.canvas,this.offset);var e=this._parentBounds.width,i=this._parentBounds.height,s=this.getParentBounds(this._parentBounds),n=s.width!==e||s.height!==i,a=this.updateOrientationState();(n||a)&&(this.onResize&&this.onResize.call(this.onResizeContext,this,s),this.updateLayout(),this.signalSizeChange());var r=2*this._updateThrottle;this._updateThrottlee;return h=h?s:!s,h?(t.width=Math.floor(n),t.height=Math.floor(o)):(t.width=Math.floor(a),t.height=Math.floor(r)),t},destroy:function(){this.game.onResume.remove(this._gameResumed,this),window.removeEventListener("orientationchange",this._orientationChange,!1),window.removeEventListener("resize",this._windowResize,!1),this.compatibility.supportsFullScreen&&(document.removeEventListener("webkitfullscreenchange",this._fullScreenChange,!1),document.removeEventListener("mozfullscreenchange",this._fullScreenChange,!1),document.removeEventListener("MSFullscreenChange",this._fullScreenChange,!1),document.removeEventListener("fullscreenchange",this._fullScreenChange,!1),document.removeEventListener("webkitfullscreenerror",this._fullScreenError,!1),document.removeEventListener("mozfullscreenerror",this._fullScreenError,!1),document.removeEventListener("MSFullscreenError",this._fullScreenError,!1),document.removeEventListener("fullscreenerror",this._fullScreenError,!1))}},o.ScaleManager.prototype.constructor=o.ScaleManager,Object.defineProperty(o.ScaleManager.prototype,"boundingParent",{get:function(){return this.parentIsWindow||this.isFullScreen&&this.hasPhaserSetFullScreen&&!this._createdFullScreenTarget?null:this.game.canvas&&this.game.canvas.parentNode||null}}),Object.defineProperty(o.ScaleManager.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(t){return t!==this._scaleMode&&(this.isFullScreen||(this.updateDimensions(this._gameSize.width,this._gameSize.height,!0),this.queueUpdate(!0)),this._scaleMode=t),this._scaleMode}}),Object.defineProperty(o.ScaleManager.prototype,"fullScreenScaleMode",{get:function(){return this._fullScreenScaleMode},set:function(t){return t!==this._fullScreenScaleMode&&(this.isFullScreen?(this.prepScreenMode(!1),this._fullScreenScaleMode=t,this.prepScreenMode(!0),this.queueUpdate(!0)):this._fullScreenScaleMode=t),this._fullScreenScaleMode}}),Object.defineProperty(o.ScaleManager.prototype,"currentScaleMode",{get:function(){return this.isFullScreen?this._fullScreenScaleMode:this._scaleMode}}),Object.defineProperty(o.ScaleManager.prototype,"pageAlignHorizontally",{get:function(){return this._pageAlignHorizontally},set:function(t){t!==this._pageAlignHorizontally&&(this._pageAlignHorizontally=t,this.queueUpdate(!0))}}),Object.defineProperty(o.ScaleManager.prototype,"pageAlignVertically",{get:function(){return this._pageAlignVertically},set:function(t){t!==this._pageAlignVertically&&(this._pageAlignVertically=t,this.queueUpdate(!0))}}),Object.defineProperty(o.ScaleManager.prototype,"isFullScreen",{get:function(){return!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)}}),Object.defineProperty(o.ScaleManager.prototype,"isPortrait",{get:function(){return"portrait"===this.classifyOrientation(this.screenOrientation)}}),Object.defineProperty(o.ScaleManager.prototype,"isLandscape",{get:function(){return"landscape"===this.classifyOrientation(this.screenOrientation)}}),Object.defineProperty(o.ScaleManager.prototype,"isGamePortrait",{get:function(){return this.height>this.width}}),Object.defineProperty(o.ScaleManager.prototype,"isGameLandscape",{get:function(){return this.width>this.height}}),o.Utils.Debug=function(t){this.game=t,this.sprite=null,this.bmd=null,this.canvas=null,this.context=null,this.font="14px Courier",this.columnWidth=100,this.lineHeight=16,this.renderShadow=!0,this.currentX=0,this.currentY=0,this.currentAlpha=1,this.dirty=!1},o.Utils.Debug.prototype={boot:function(){this.game.renderType===o.CANVAS?this.context=this.game.context:(this.bmd=new o.BitmapData(this.game,"__DEBUG",this.game.width,this.game.height,!0),this.sprite=this.game.make.image(0,0,this.bmd),this.game.stage.addChild(this.sprite),this.game.scale.onSizeChange.add(this.resize,this),this.canvas=PIXI.CanvasPool.create(this,this.game.width,this.game.height),this.context=this.canvas.getContext("2d"))},resize:function(t,e,i){this.bmd.resize(e,i),this.canvas.width=e,this.canvas.height=i},preUpdate:function(){this.dirty&&this.sprite&&(this.bmd.clear(),this.bmd.draw(this.canvas,0,0),this.context.clearRect(0,0,this.game.width,this.game.height),this.dirty=!1)},reset:function(){this.context&&this.context.clearRect(0,0,this.game.width,this.game.height),this.sprite&&this.bmd.clear()},start:function(t,e,i,s){"number"!=typeof t&&(t=0),"number"!=typeof e&&(e=0),i=i||"rgb(255,255,255)",void 0===s&&(s=0),this.currentX=t,this.currentY=e,this.currentColor=i,this.columnWidth=s,this.dirty=!0,this.context.save(),this.context.setTransform(1,0,0,1,0,0),this.context.strokeStyle=i,this.context.fillStyle=i,this.context.font=this.font,this.context.globalAlpha=this.currentAlpha},stop:function(){this.context.restore()},line:function(){for(var t=this.currentX,e=0;e0)for(var e=0;e=0&&i.right>=0&&i.top<=this.layoutBounds.width&&i.left<=this.layoutBounds.height},getScreenOrientation:function(t){var e=window.screen,i=e.orientation||e.mozOrientation||e.msOrientation;if(i&&"string"==typeof i.type)return i.type;if("string"==typeof i)return i;var s="portrait-primary",n="landscape-primary";if("screen"===t)return e.height>e.width?s:n;if("viewport"===t)return this.visualBounds.height>this.visualBounds.width?s:n;if("window.orientation"===t&&"number"==typeof window.orientation)return 0===window.orientation||180===window.orientation?s:n;if(window.matchMedia){if(window.matchMedia("(orientation: portrait)").matches)return s;if(window.matchMedia("(orientation: landscape)").matches)return n}return this.visualBounds.height>this.visualBounds.width?s:n},visualBounds:new o.Rectangle,layoutBounds:new o.Rectangle,documentBounds:new o.Rectangle},o.Device.whenReady(function(t){var e=window&&"pageXOffset"in window?function(){return window.pageXOffset}:function(){return document.documentElement.scrollLeft},i=window&&"pageYOffset"in window?function(){return window.pageYOffset}:function(){return document.documentElement.scrollTop};if(Object.defineProperty(o.DOM,"scrollX",{get:e}),Object.defineProperty(o.DOM,"scrollY",{get:i}),Object.defineProperty(o.DOM.visualBounds,"x",{get:e}),Object.defineProperty(o.DOM.visualBounds,"y",{get:i}),Object.defineProperty(o.DOM.layoutBounds,"x",{value:0}),Object.defineProperty(o.DOM.layoutBounds,"y",{value:0}),t.desktop&&document.documentElement.clientWidth<=window.innerWidth&&document.documentElement.clientHeight<=window.innerHeight){var s=function(){return Math.max(window.innerWidth,document.documentElement.clientWidth)},n=function(){return Math.max(window.innerHeight,document.documentElement.clientHeight)};Object.defineProperty(o.DOM.visualBounds,"width",{get:s}),Object.defineProperty(o.DOM.visualBounds,"height",{get:n}),Object.defineProperty(o.DOM.layoutBounds,"width",{get:s}),Object.defineProperty(o.DOM.layoutBounds,"height",{get:n})}else Object.defineProperty(o.DOM.visualBounds,"width",{get:function(){return window.innerWidth}}),Object.defineProperty(o.DOM.visualBounds,"height",{get:function(){return window.innerHeight}}),Object.defineProperty(o.DOM.layoutBounds,"width",{get:function(){var t=document.documentElement.clientWidth,e=window.innerWidth;return t-1},reset:function(){this.list.length=0},remove:function(t){var e=this.list.indexOf(t);if(e>-1)return this.list.splice(e,1),t},setAll:function(t,e){for(var i=this.list.length;i--;)this.list[i]&&(this.list[i][t]=e)},callAll:function(t){for(var e=Array.prototype.slice.call(arguments,1),i=this.list.length;i--;)this.list[i]&&this.list[i][t]&&this.list[i][t].apply(this.list[i],e)},removeAll:function(t){void 0===t&&(t=!1);for(var e=this.list.length;e--;)if(this.list[e]){var i=this.remove(this.list[e]);t&&i.destroy()}this.position=0,this.list=[]}},Object.defineProperty(o.ArraySet.prototype,"total",{get:function(){return this.list.length}}),Object.defineProperty(o.ArraySet.prototype,"first",{get:function(){return this.position=0,this.list.length>0?this.list[0]:null}}),Object.defineProperty(o.ArraySet.prototype,"next",{get:function(){return this.position0;e--){var i=Math.floor(Math.random()*(e+1)),s=t[e];t[e]=t[i],t[i]=s}return t},transposeMatrix:function(t){for(var e=t.length,i=t[0].length,s=new Array(i),n=0;n-1;o--)s[n][o]=t[o][n]}return s},rotateMatrix:function(t,e){if("string"!=typeof e&&(e=(e%360+360)%360),90===e||-270===e||"rotateLeft"===e)t=o.ArrayUtils.transposeMatrix(t),t=t.reverse();else if(-90===e||270===e||"rotateRight"===e)t=t.reverse(),t=o.ArrayUtils.transposeMatrix(t);else if(180===Math.abs(e)||"rotate180"===e){for(var i=0;i>>0:(t<<24|e<<16|i<<8|s)>>>0},unpackPixel:function(t,e,i,s){return void 0!==e&&null!==e||(e=o.Color.createColor()),void 0!==i&&null!==i||(i=!1),void 0!==s&&null!==s||(s=!1),o.Device.LITTLE_ENDIAN?(e.a=(4278190080&t)>>>24,e.b=(16711680&t)>>>16,e.g=(65280&t)>>>8,e.r=255&t):(e.r=(4278190080&t)>>>24,e.g=(16711680&t)>>>16,e.b=(65280&t)>>>8,e.a=255&t),e.color=t,e.rgba="rgba("+e.r+","+e.g+","+e.b+","+e.a/255+")",i&&o.Color.RGBtoHSL(e.r,e.g,e.b,e),s&&o.Color.RGBtoHSV(e.r,e.g,e.b,e),e},fromRGBA:function(t,e){return e||(e=o.Color.createColor()),e.r=(4278190080&t)>>>24,e.g=(16711680&t)>>>16,e.b=(65280&t)>>>8,e.a=255&t,e.rgba="rgba("+e.r+","+e.g+","+e.b+","+e.a+")",e},toRGBA:function(t,e,i,s){return t<<24|e<<16|i<<8|s},toABGR:function(t,e,i,s){return(s<<24|i<<16|e<<8|t)>>>0},RGBtoHSL:function(t,e,i,s){s||(s=o.Color.createColor(t,e,i,1)),t/=255,e/=255,i/=255;var n=Math.min(t,e,i),a=Math.max(t,e,i);if(s.h=0,s.s=0,s.l=(a+n)/2,a!==n){var r=a-n;s.s=s.l>.5?r/(2-a-n):r/(a+n),a===t?s.h=(e-i)/r+(e1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},createColor:function(t,e,i,s,n,a,r,h){var l={r:t||0,g:e||0,b:i||0,a:s||1,h:n||0,s:a||0,l:r||0,v:h||0,color:0,color32:0,rgba:""};return o.Color.updateColor(l)},updateColor:function(t){return t.rgba="rgba("+t.r.toString()+","+t.g.toString()+","+t.b.toString()+","+t.a.toString()+")",t.color=o.Color.getColor(t.r,t.g,t.b),t.color32=o.Color.getColor32(255*t.a,t.r,t.g,t.b),t},getColor32:function(t,e,i,s){return t<<24|e<<16|i<<8|s},getColor:function(t,e,i){return t<<16|e<<8|i},RGBtoString:function(t,e,i,s,n){return void 0===s&&(s=255),void 0===n&&(n="#"),"#"===n?"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1):"0x"+o.Color.componentToHex(s)+o.Color.componentToHex(t)+o.Color.componentToHex(e)+o.Color.componentToHex(i)},hexToRGB:function(t){var e=o.Color.hexToColor(t);if(e)return o.Color.getColor32(e.a,e.r,e.g,e.b)},hexToColor:function(t,e){t=t.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,s){return e+e+i+i+s+s});var i=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(i){var s=parseInt(i[1],16),n=parseInt(i[2],16),a=parseInt(i[3],16);e?(e.r=s,e.g=n,e.b=a):e=o.Color.createColor(s,n,a)}return e},webToColor:function(t,e){e||(e=o.Color.createColor());var i=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(t);return i&&(e.r=parseInt(i[1],10),e.g=parseInt(i[2],10),e.b=parseInt(i[3],10),e.a=void 0!==i[4]?parseFloat(i[4]):1,o.Color.updateColor(e)),e},valueToColor:function(t,e){if(e||(e=o.Color.createColor()),"string"==typeof t)return 0===t.indexOf("rgb")?o.Color.webToColor(t,e):(e.a=1,o.Color.hexToColor(t,e));if("number"==typeof t){var i=o.Color.getRGB(t);return e.r=i.r,e.g=i.g,e.b=i.b,e.a=i.a/255,e}return e},componentToHex:function(t){var e=t.toString(16);return 1===e.length?"0"+e:e},HSVColorWheel:function(t,e){void 0===t&&(t=1),void 0===e&&(e=1);for(var i=[],s=0;s<=359;s++)i.push(o.Color.HSVtoRGB(s/359,t,e));return i},HSLColorWheel:function(t,e){void 0===t&&(t=.5),void 0===e&&(e=.5);for(var i=[],s=0;s<=359;s++)i.push(o.Color.HSLtoRGB(s/359,t,e));return i},interpolateColor:function(t,e,i,s,n){void 0===n&&(n=255);var a=o.Color.getRGB(t),r=o.Color.getRGB(e),h=(r.red-a.red)*s/i+a.red,l=(r.green-a.green)*s/i+a.green,c=(r.blue-a.blue)*s/i+a.blue;return o.Color.getColor32(n,h,l,c)},interpolateColorWithRGB:function(t,e,i,s,n,a){var r=o.Color.getRGB(t),h=(e-r.red)*a/n+r.red,l=(i-r.green)*a/n+r.green,c=(s-r.blue)*a/n+r.blue;return o.Color.getColor(h,l,c)},interpolateRGB:function(t,e,i,s,n,a,r,h){var l=(s-t)*h/r+t,c=(n-e)*h/r+e,u=(a-i)*h/r+i;return o.Color.getColor(l,c,u)},getRandomColor:function(t,e,i){if(void 0===t&&(t=0),void 0===e&&(e=255),void 0===i&&(i=255),e>255||t>e)return o.Color.getColor(255,255,255);var s=t+Math.round(Math.random()*(e-t)),n=t+Math.round(Math.random()*(e-t)),a=t+Math.round(Math.random()*(e-t));return o.Color.getColor32(i,s,n,a)},getRGB:function(t){return t>16777215?{alpha:t>>>24,red:t>>16&255,green:t>>8&255,blue:255&t,a:t>>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{alpha:255,red:t>>16&255,green:t>>8&255,blue:255&t,a:255,r:t>>16&255,g:t>>8&255,b:255&t}},getWebRGB:function(t){if("object"==typeof t)return"rgba("+t.r.toString()+","+t.g.toString()+","+t.b.toString()+","+(t.a/255).toString()+")";var e=o.Color.getRGB(t);return"rgba("+e.r.toString()+","+e.g.toString()+","+e.b.toString()+","+(e.a/255).toString()+")"},getAlpha:function(t){return t>>>24},getAlphaFloat:function(t){return(t>>>24)/255},getRed:function(t){return t>>16&255},getGreen:function(t){return t>>8&255},getBlue:function(t){return 255&t},blendNormal:function(t){return t},blendLighten:function(t,e){return e>t?e:t},blendDarken:function(t,e){return e>t?t:e},blendMultiply:function(t,e){return t*e/255},blendAverage:function(t,e){return(t+e)/2},blendAdd:function(t,e){return Math.min(255,t+e)},blendSubtract:function(t,e){return Math.max(0,t+e-255)},blendDifference:function(t,e){return Math.abs(t-e)},blendNegation:function(t,e){return 255-Math.abs(255-t-e)},blendScreen:function(t,e){return 255-((255-t)*(255-e)>>8)},blendExclusion:function(t,e){return t+e-2*t*e/255},blendOverlay:function(t,e){return e<128?2*t*e/255:255-2*(255-t)*(255-e)/255},blendSoftLight:function(t,e){return e<128?2*(64+(t>>1))*(e/255):255-2*(255-(64+(t>>1)))*(255-e)/255},blendHardLight:function(t,e){return o.Color.blendOverlay(e,t)},blendColorDodge:function(t,e){return 255===e?e:Math.min(255,(t<<8)/(255-e))},blendColorBurn:function(t,e){return 0===e?e:Math.max(0,255-(255-t<<8)/e)},blendLinearDodge:function(t,e){return o.Color.blendAdd(t,e)},blendLinearBurn:function(t,e){return o.Color.blendSubtract(t,e)},blendLinearLight:function(t,e){return e<128?o.Color.blendLinearBurn(t,2*e):o.Color.blendLinearDodge(t,2*(e-128))},blendVividLight:function(t,e){return e<128?o.Color.blendColorBurn(t,2*e):o.Color.blendColorDodge(t,2*(e-128))},blendPinLight:function(t,e){return e<128?o.Color.blendDarken(t,2*e):o.Color.blendLighten(t,2*(e-128))},blendHardMix:function(t,e){return o.Color.blendVividLight(t,e)<128?0:255},blendReflect:function(t,e){return 255===e?e:Math.min(255,t*t/(255-e))},blendGlow:function(t,e){return o.Color.blendReflect(e,t)},blendPhoenix:function(t,e){return Math.min(t,e)-Math.max(t,e)+255}},o.Physics=function(t,e){e=e||{},this.game=t,this.config=e,this.arcade=null,this.p2=null,this.ninja=null,this.box2d=null,this.chipmunk=null,this.matter=null,this.parseConfig()},o.Physics.ARCADE=0,o.Physics.P2JS=1,o.Physics.NINJA=2,o.Physics.BOX2D=3,o.Physics.CHIPMUNK=4,o.Physics.MATTERJS=5,o.Physics.prototype={parseConfig:function(){this.config.hasOwnProperty("arcade")&&!0!==this.config.arcade||!o.Physics.hasOwnProperty("Arcade")||(this.arcade=new o.Physics.Arcade(this.game)),this.config.hasOwnProperty("ninja")&&!0===this.config.ninja&&o.Physics.hasOwnProperty("Ninja")&&(this.ninja=new o.Physics.Ninja(this.game)),this.config.hasOwnProperty("p2")&&!0===this.config.p2&&o.Physics.hasOwnProperty("P2")&&(this.p2=new o.Physics.P2(this.game,this.config)),this.config.hasOwnProperty("box2d")&&!0===this.config.box2d&&o.Physics.hasOwnProperty("BOX2D")&&(this.box2d=new o.Physics.BOX2D(this.game,this.config)),this.config.hasOwnProperty("matter")&&!0===this.config.matter&&o.Physics.hasOwnProperty("Matter")&&(this.matter=new o.Physics.Matter(this.game,this.config))},startSystem:function(t){t===o.Physics.ARCADE?this.arcade=new o.Physics.Arcade(this.game):t===o.Physics.P2JS?null===this.p2?this.p2=new o.Physics.P2(this.game,this.config):this.p2.reset():t===o.Physics.NINJA?this.ninja=new o.Physics.Ninja(this.game):t===o.Physics.BOX2D?null===this.box2d?this.box2d=new o.Physics.Box2D(this.game,this.config):this.box2d.reset():t===o.Physics.MATTERJS&&(null===this.matter?this.matter=new o.Physics.Matter(this.game,this.config):this.matter.reset())},enable:function(t,e,i){void 0===e&&(e=o.Physics.ARCADE),void 0===i&&(i=!1),e===o.Physics.ARCADE?this.arcade.enable(t):e===o.Physics.P2JS&&this.p2?this.p2.enable(t,i):e===o.Physics.NINJA&&this.ninja?this.ninja.enableAABB(t):e===o.Physics.BOX2D&&this.box2d?this.box2d.enable(t):e===o.Physics.MATTERJS&&this.matter&&this.matter.enable(t)},preUpdate:function(){this.p2&&this.p2.preUpdate(),this.box2d&&this.box2d.preUpdate(),this.matter&&this.matter.preUpdate()},update:function(){this.p2&&this.p2.update(),this.box2d&&this.box2d.update(),this.matter&&this.matter.update()},setBoundsToWorld:function(){this.arcade&&this.arcade.setBoundsToWorld(),this.ninja&&this.ninja.setBoundsToWorld(),this.p2&&this.p2.setBoundsToWorld(),this.box2d&&this.box2d.setBoundsToWorld(),this.matter&&this.matter.setBoundsToWorld()},clear:function(){this.p2&&this.p2.clear(),this.box2d&&this.box2d.clear(),this.matter&&this.matter.clear()},reset:function(){this.p2&&this.p2.reset(),this.box2d&&this.box2d.reset(),this.matter&&this.matter.reset()},destroy:function(){this.p2&&this.p2.destroy(),this.box2d&&this.box2d.destroy(),this.matter&&this.matter.destroy(),this.arcade=null,this.ninja=null,this.p2=null,this.box2d=null,this.matter=null}},o.Physics.prototype.constructor=o.Physics,o.Physics.Arcade=function(t){this.game=t,this.gravity=new o.Point,this.bounds=new o.Rectangle(0,0,t.world.width,t.world.height),this.checkCollision={up:!0,down:!0,left:!0,right:!0},this.maxObjects=10,this.maxLevels=4,this.OVERLAP_BIAS=4,this.forceX=!1,this.sortDirection=o.Physics.Arcade.LEFT_RIGHT,this.skipQuadTree=!0,this.isPaused=!1,this.quadTree=new o.QuadTree(this.game.world.bounds.x,this.game.world.bounds.y,this.game.world.bounds.width,this.game.world.bounds.height,this.maxObjects,this.maxLevels),this._total=0,this.setBoundsToWorld()},o.Physics.Arcade.prototype.constructor=o.Physics.Arcade,o.Physics.Arcade.SORT_NONE=0,o.Physics.Arcade.LEFT_RIGHT=1,o.Physics.Arcade.RIGHT_LEFT=2,o.Physics.Arcade.TOP_BOTTOM=3,o.Physics.Arcade.BOTTOM_TOP=4,o.Physics.Arcade.prototype={setBounds:function(t,e,i,s){this.bounds.setTo(t,e,i,s)},setBoundsToWorld:function(){this.bounds.copyFrom(this.game.world.bounds)},enable:function(t,e){void 0===e&&(e=!0);var i=1;if(Array.isArray(t))for(i=t.length;i--;)t[i]instanceof o.Group?this.enable(t[i].children,e):(this.enableBody(t[i]),e&&t[i].hasOwnProperty("children")&&t[i].children.length>0&&this.enable(t[i],!0));else t instanceof o.Group?this.enable(t.children,e):(this.enableBody(t),e&&t.hasOwnProperty("children")&&t.children.length>0&&this.enable(t.children,!0))},enableBody:function(t){t.hasOwnProperty("body")&&null===t.body&&(t.body=new o.Physics.Arcade.Body(t),t.parent&&t.parent instanceof o.Group&&t.parent.addToHash(t))},updateMotion:function(t){var e=this.computeVelocity(0,t,t.angularVelocity,t.angularAcceleration,t.angularDrag,t.maxAngular)-t.angularVelocity;t.angularVelocity+=e,t.rotation+=t.angularVelocity*this.game.time.physicsElapsed,t.velocity.x=this.computeVelocity(1,t,t.velocity.x,t.acceleration.x,t.drag.x,t.maxVelocity.x),t.velocity.y=this.computeVelocity(2,t,t.velocity.y,t.acceleration.y,t.drag.y,t.maxVelocity.y)},computeVelocity:function(t,e,i,s,n,o){return void 0===o&&(o=1e4),1===t&&e.allowGravity?i+=(this.gravity.x+e.gravity.x)*this.game.time.physicsElapsed:2===t&&e.allowGravity&&(i+=(this.gravity.y+e.gravity.y)*this.game.time.physicsElapsed),s?i+=s*this.game.time.physicsElapsed:n&&(n*=this.game.time.physicsElapsed,i-n>0?i-=n:i+n<0?i+=n:i=0),i>o?i=o:i<-o&&(i=-o),i},overlap:function(t,e,i,s,n){if(i=i||null,s=s||null,n=n||i,this._total=0,!Array.isArray(t)&&Array.isArray(e))for(var o=0;o0},collide:function(t,e,i,s,n){if(i=i||null,s=s||null,n=n||i,this._total=0,!Array.isArray(t)&&Array.isArray(e))for(var o=0;o0},sortLeftRight:function(t,e){return t.body&&e.body?t.body.x-e.body.x:0},sortRightLeft:function(t,e){return t.body&&e.body?e.body.x-t.body.x:0},sortTopBottom:function(t,e){return t.body&&e.body?t.body.y-e.body.y:0},sortBottomTop:function(t,e){return t.body&&e.body?e.body.y-t.body.y:0},sort:function(t,e){null!==t.physicsSortDirection?e=t.physicsSortDirection:void 0===e&&(e=this.sortDirection),e===o.Physics.Arcade.LEFT_RIGHT?t.hash.sort(this.sortLeftRight):e===o.Physics.Arcade.RIGHT_LEFT?t.hash.sort(this.sortRightLeft):e===o.Physics.Arcade.TOP_BOTTOM?t.hash.sort(this.sortTopBottom):e===o.Physics.Arcade.BOTTOM_TOP&&t.hash.sort(this.sortBottomTop)},collideHandler:function(t,e,i,s,n,a){if(void 0===e&&t.physicsType===o.GROUP)return this.sort(t),void this.collideGroupVsSelf(t,i,s,n,a);t&&e&&t.exists&&e.exists&&(this.sortDirection!==o.Physics.Arcade.SORT_NONE&&(t.physicsType===o.GROUP&&this.sort(t),e.physicsType===o.GROUP&&this.sort(e)),t.physicsType===o.SPRITE?e.physicsType===o.SPRITE?this.collideSpriteVsSprite(t,e,i,s,n,a):e.physicsType===o.GROUP?this.collideSpriteVsGroup(t,e,i,s,n,a):e.physicsType===o.TILEMAPLAYER&&this.collideSpriteVsTilemapLayer(t,e,i,s,n,a):t.physicsType===o.GROUP?e.physicsType===o.SPRITE?this.collideSpriteVsGroup(e,t,i,s,n,a):e.physicsType===o.GROUP?this.collideGroupVsGroup(t,e,i,s,n,a):e.physicsType===o.TILEMAPLAYER&&this.collideGroupVsTilemapLayer(t,e,i,s,n,a):t.physicsType===o.TILEMAPLAYER&&(e.physicsType===o.SPRITE?this.collideSpriteVsTilemapLayer(e,t,i,s,n,a):e.physicsType===o.GROUP&&this.collideGroupVsTilemapLayer(e,t,i,s,n,a)))},collideSpriteVsSprite:function(t,e,i,s,n,o){return!(!t.body||!e.body)&&(this.separate(t.body,e.body,s,n,o)&&(i&&i.call(n,t,e),this._total++),!0)},collideSpriteVsGroup:function(t,e,i,s,n,a){if(0!==e.length&&t.body)if(this.skipQuadTree||t.body.skipQuadTree)for(var r={},h=0;hr.right)break;if(r.x>t.body.right)continue}else if(this.sortDirection===o.Physics.Arcade.TOP_BOTTOM){if(t.body.bottomr.bottom)break;if(r.y>t.body.bottom)continue}this.collideSpriteVsSprite(t,l,i,s,n,a)}}else{this.quadTree.clear(),this.quadTree.reset(this.game.world.bounds.x,this.game.world.bounds.y,this.game.world.bounds.width,this.game.world.bounds.height,this.maxObjects,this.maxLevels),this.quadTree.populate(e);for(var c=this.quadTree.retrieve(t),h=0;hc.right)continue;if(c.x>r.right)break}else if(this.sortDirection===o.Physics.Arcade.TOP_BOTTOM){if(r.bottomc.bottom)continue;if(c.y>h.body.bottom)break}this.collideSpriteVsSprite(h,u,e,i,s,n)}}}}},collideGroupVsGroup:function(t,e,i,s,n,a){if(0!==t.length&&0!==e.length)for(var r=0;rr.bottom)&&(h.xr.right))return this.separateCircle(t,e,n)}var l=!1,c=!1;this.forceX||Math.abs(this.gravity.y+t.gravity.y)=e.right)&&!(t.position.y>=e.bottom))))},circleBodyIntersects:function(t,e){var i=o.Math.clamp(t.center.x,e.left,e.right),s=o.Math.clamp(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-s)*(t.center.y-s)<=t.radius*t.radius},separateCircle:function(t,e,i){this.getOverlapX(t,e),this.getOverlapY(t,e);var s=e.center.x-t.center.x,n=e.center.y-t.center.y,a=Math.atan2(n,s),r=0;if(t.isCircle!==e.isCircle){var h={x:e.isCircle?t.position.x:e.position.x,y:e.isCircle?t.position.y:e.position.y,right:e.isCircle?t.right:e.right,bottom:e.isCircle?t.bottom:e.bottom},l={x:t.isCircle?t.position.x+t.radius:e.position.x+e.radius,y:t.isCircle?t.position.y+t.radius:e.position.y+e.radius,radius:t.isCircle?t.radius:e.radius};l.yh.right&&(r=o.Math.distance(l.x,l.y,h.right,h.y)-l.radius):l.y>h.bottom&&(l.xh.right&&(r=o.Math.distance(l.x,l.y,h.right,h.bottom)-l.radius)),r*=-1}else r=t.radius+e.radius-o.Math.distance(t.center.x,t.center.y,e.center.x,e.center.y);if(i||0===r||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==r&&(t.onOverlap&&t.onOverlap.dispatch(t.sprite,e.sprite),e.onOverlap&&e.onOverlap.dispatch(e.sprite,t.sprite)),0!==r;var c={x:t.velocity.x*Math.cos(a)+t.velocity.y*Math.sin(a),y:t.velocity.x*Math.sin(a)-t.velocity.y*Math.cos(a)},u={x:e.velocity.x*Math.cos(a)+e.velocity.y*Math.sin(a),y:e.velocity.x*Math.sin(a)-e.velocity.y*Math.cos(a)},d=((t.mass-e.mass)*c.x+2*e.mass*u.x)/(t.mass+e.mass),p=(2*t.mass*c.x+(e.mass-t.mass)*u.x)/(t.mass+e.mass);return t.immovable||(t.velocity.x=(d*Math.cos(a)-c.y*Math.sin(a))*t.bounce.x,t.velocity.y=(c.y*Math.cos(a)+d*Math.sin(a))*t.bounce.y),e.immovable||(e.velocity.x=(p*Math.cos(a)-u.y*Math.sin(a))*e.bounce.x,e.velocity.y=(u.y*Math.cos(a)+p*Math.sin(a))*e.bounce.y),Math.abs(a)0&&!t.immovable&&e.velocity.x>t.velocity.x?t.velocity.x*=-1:e.velocity.x<0&&!e.immovable&&t.velocity.x0&&!t.immovable&&e.velocity.y>t.velocity.y?t.velocity.y*=-1:e.velocity.y<0&&!e.immovable&&t.velocity.yMath.PI/2&&(t.velocity.x<0&&!t.immovable&&e.velocity.x0&&!e.immovable&&t.velocity.x>e.velocity.x?e.velocity.x*=-1:t.velocity.y<0&&!t.immovable&&e.velocity.y0&&!e.immovable&&t.velocity.x>e.velocity.y&&(e.velocity.y*=-1)),t.immovable||(t.x+=t.velocity.x*this.game.time.physicsElapsed-r*Math.cos(a),t.y+=t.velocity.y*this.game.time.physicsElapsed-r*Math.sin(a)),e.immovable||(e.x+=e.velocity.x*this.game.time.physicsElapsed+r*Math.cos(a),e.y+=e.velocity.y*this.game.time.physicsElapsed+r*Math.sin(a)),t.onCollide&&t.onCollide.dispatch(t.sprite,e.sprite),e.onCollide&&e.onCollide.dispatch(e.sprite,t.sprite),!0},getOverlapX:function(t,e,i){var s=0,n=t.deltaAbsX()+e.deltaAbsX()+this.OVERLAP_BIAS;return 0===t.deltaX()&&0===e.deltaX()?(t.embedded=!0,e.embedded=!0):t.deltaX()>e.deltaX()?(s=t.right-e.x,s>n&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?s=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0)):t.deltaX()n&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?s=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0)),t.overlapX=s,e.overlapX=s,s},getOverlapY:function(t,e,i){var s=0,n=t.deltaAbsY()+e.deltaAbsY()+this.OVERLAP_BIAS;return 0===t.deltaY()&&0===e.deltaY()?(t.embedded=!0,e.embedded=!0):t.deltaY()>e.deltaY()?(s=t.bottom-e.y,s>n&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?s=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0)):t.deltaY()n&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?s=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0)),t.overlapY=s,e.overlapY=s,s},separateX:function(t,e,i){var s=this.getOverlapX(t,e,i);if(i||0===s||t.immovable&&e.immovable||t.customSeparateX||e.customSeparateX)return 0!==s||t.embedded&&e.embedded;var n=t.velocity.x,o=e.velocity.x;if(t.immovable||e.immovable)t.immovable?(e.x+=s,e.velocity.x=n-o*e.bounce.x,t.moves&&(e.y+=(t.y-t.prev.y)*t.friction.y)):(t.x-=s,t.velocity.x=o-n*t.bounce.x,e.moves&&(t.y+=(e.y-e.prev.y)*e.friction.y));else{s*=.5,t.x-=s,e.x+=s;var a=Math.sqrt(o*o*e.mass/t.mass)*(o>0?1:-1),r=Math.sqrt(n*n*t.mass/e.mass)*(n>0?1:-1),h=.5*(a+r);a-=h,r-=h,t.velocity.x=h+a*t.bounce.x,e.velocity.x=h+r*e.bounce.x}return!0},separateY:function(t,e,i){var s=this.getOverlapY(t,e,i);if(i||0===s||t.immovable&&e.immovable||t.customSeparateY||e.customSeparateY)return 0!==s||t.embedded&&e.embedded;var n=t.velocity.y,o=e.velocity.y;if(t.immovable||e.immovable)t.immovable?(e.y+=s,e.velocity.y=n-o*e.bounce.y,t.moves&&(e.x+=(t.x-t.prev.x)*t.friction.x)):(t.y-=s,t.velocity.y=o-n*t.bounce.y,e.moves&&(t.x+=(e.x-e.prev.x)*e.friction.x));else{s*=.5,t.y-=s,e.y+=s;var a=Math.sqrt(o*o*e.mass/t.mass)*(o>0?1:-1),r=Math.sqrt(n*n*t.mass/e.mass)*(n>0?1:-1),h=.5*(a+r);a-=h,r-=h,t.velocity.y=h+a*t.bounce.y,e.velocity.y=h+r*e.bounce.y}return!0},getObjectsUnderPointer:function(t,e,i,s){if(0!==e.length&&t.exists)return this.getObjectsAtLocation(t.x,t.y,e,i,s,t)},getObjectsAtLocation:function(t,e,i,s,n,a){this.quadTree.clear(),this.quadTree.reset(this.game.world.bounds.x,this.game.world.bounds.y,this.game.world.bounds.width,this.game.world.bounds.height,this.maxObjects,this.maxLevels),this.quadTree.populate(i);for(var r=new o.Rectangle(t,e,1,1),h=[],l=this.quadTree.retrieve(r),c=0;c0&&(i=this.distanceBetween(t,e)/(s/1e3)),t.body.velocity.x=Math.cos(n)*i,t.body.velocity.y=Math.sin(n)*i,n},moveToPointer:function(t,e,i,s){void 0===e&&(e=60),i=i||this.game.input.activePointer,void 0===s&&(s=0);var n=this.angleToPointer(t,i);return s>0&&(e=this.distanceToPointer(t,i)/(s/1e3)),t.body.velocity.x=Math.cos(n)*e,t.body.velocity.y=Math.sin(n)*e,n},moveToXY:function(t,e,i,s,n){void 0===s&&(s=60),void 0===n&&(n=0);var o=Math.atan2(i-t.y,e-t.x);return n>0&&(s=this.distanceToXY(t,e,i)/(n/1e3)),t.body.velocity.x=Math.cos(o)*s,t.body.velocity.y=Math.sin(o)*s,o},velocityFromAngle:function(t,e,i){return void 0===e&&(e=60),i=i||new o.Point,i.setTo(Math.cos(this.game.math.degToRad(t))*e,Math.sin(this.game.math.degToRad(t))*e)},velocityFromRotation:function(t,e,i){return void 0===e&&(e=60),i=i||new o.Point,i.setTo(Math.cos(t)*e,Math.sin(t)*e)},accelerationFromRotation:function(t,e,i){return void 0===e&&(e=60),i=i||new o.Point,i.setTo(Math.cos(t)*e,Math.sin(t)*e)},accelerateToObject:function(t,e,i,s,n){void 0===i&&(i=60),void 0===s&&(s=1e3),void 0===n&&(n=1e3);var o=this.angleBetween(t,e);return t.body.acceleration.setTo(Math.cos(o)*i,Math.sin(o)*i),t.body.maxVelocity.setTo(s,n),o},accelerateToPointer:function(t,e,i,s,n){void 0===i&&(i=60),void 0===e&&(e=this.game.input.activePointer),void 0===s&&(s=1e3),void 0===n&&(n=1e3);var o=this.angleToPointer(t,e);return t.body.acceleration.setTo(Math.cos(o)*i,Math.sin(o)*i),t.body.maxVelocity.setTo(s,n),o},accelerateToXY:function(t,e,i,s,n,o){void 0===s&&(s=60),void 0===n&&(n=1e3),void 0===o&&(o=1e3);var a=this.angleToXY(t,e,i);return t.body.acceleration.setTo(Math.cos(a)*s,Math.sin(a)*s),t.body.maxVelocity.setTo(n,o),a},distanceBetween:function(t,e,i){void 0===i&&(i=!1);var s=i?t.world.x-e.world.x:t.x-e.x,n=i?t.world.y-e.world.y:t.y-e.y;return Math.sqrt(s*s+n*n)},distanceToXY:function(t,e,i,s){void 0===s&&(s=!1);var n=s?t.world.x-e:t.x-e,o=s?t.world.y-i:t.y-i;return Math.sqrt(n*n+o*o)},distanceToPointer:function(t,e,i){void 0===e&&(e=this.game.input.activePointer),void 0===i&&(i=!1);var s=i?t.world.x-e.worldX:t.x-e.worldX,n=i?t.world.y-e.worldY:t.y-e.worldY;return Math.sqrt(s*s+n*n)},angleBetween:function(t,e,i){return void 0===i&&(i=!1),i?Math.atan2(e.world.y-t.world.y,e.world.x-t.world.x):Math.atan2(e.y-t.y,e.x-t.x)},angleBetweenCenters:function(t,e){var i=e.centerX-t.centerX,s=e.centerY-t.centerY;return Math.atan2(s,i)},angleToXY:function(t,e,i,s){return void 0===s&&(s=!1),s?Math.atan2(i-t.world.y,e-t.world.x):Math.atan2(i-t.y,e-t.x)},angleToPointer:function(t,e,i){return void 0===e&&(e=this.game.input.activePointer),void 0===i&&(i=!1),i?Math.atan2(e.worldY-t.world.y,e.worldX-t.world.x):Math.atan2(e.worldY-t.y,e.worldX-t.x)},worldAngleToPointer:function(t,e){return this.angleToPointer(t,e,!0)}},o.Physics.Arcade.Body=function(t){this.sprite=t,this.game=t.game,this.type=o.Physics.ARCADE,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new o.Point,this.position=new o.Point(t.x,t.y),this.prev=new o.Point(this.position.x,this.position.y),this.allowRotation=!0,this.rotation=t.angle,this.preRotation=t.angle,this.width=t.width,this.height=t.height,this.sourceWidth=t.width,this.sourceHeight=t.height,t.texture&&(this.sourceWidth=t.texture.frame.width,this.sourceHeight=t.texture.frame.height),this.halfWidth=Math.abs(t.width/2),this.halfHeight=Math.abs(t.height/2),this.center=new o.Point(t.x+this.halfWidth,t.y+this.halfHeight),this.velocity=new o.Point,this.newVelocity=new o.Point,this.deltaMax=new o.Point,this.acceleration=new o.Point,this.drag=new o.Point,this.allowGravity=!0,this.gravity=new o.Point,this.bounce=new o.Point,this.worldBounce=null,this.onWorldBounds=null,this.onCollide=null,this.onOverlap=null,this.maxVelocity=new o.Point(1e4,1e4),this.friction=new o.Point(1,0),this.angularVelocity=0,this.angularAcceleration=0,this.angularDrag=0,this.maxAngular=1e3,this.mass=1,this.angle=0,this.speed=0,this.facing=o.NONE,this.immovable=!1,this.moves=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,any:!0,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={up:!1,down:!1,left:!1,right:!1},this.tilePadding=new o.Point,this.dirty=!1,this.skipQuadTree=!1,this.syncBounds=!1,this.isMoving=!1,this.stopVelocityOnCollide=!0,this.moveTimer=0,this.moveDistance=0,this.moveDuration=0,this.moveTarget=null,this.moveEnd=null,this.onMoveComplete=new o.Signal,this.movementCallback=null,this.movementCallbackContext=null,this._reset=!0,this._sx=t.scale.x,this._sy=t.scale.y,this._dx=0,this._dy=0},o.Physics.Arcade.Body.prototype={updateBounds:function(){if(this.syncBounds){var t=this.sprite.getBounds();t.ceilAll(),t.width===this.width&&t.height===this.height||(this.width=t.width,this.height=t.height,this._reset=!0)}else{var e=Math.abs(this.sprite.scale.x),i=Math.abs(this.sprite.scale.y);e===this._sx&&i===this._sy||(this.width=this.sourceWidth*e,this.height=this.sourceHeight*i,this._sx=e,this._sy=i,this._reset=!0)}this._reset&&(this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.center.setTo(this.position.x+this.halfWidth,this.position.y+this.halfHeight))},preUpdate:function(){this.enable&&!this.game.physics.arcade.isPaused&&(this.dirty=!0,this.wasTouching.none=this.touching.none,this.wasTouching.up=this.touching.up,this.wasTouching.down=this.touching.down,this.wasTouching.left=this.touching.left,this.wasTouching.right=this.touching.right,this.touching.none=!0,this.touching.up=!1,this.touching.down=!1,this.touching.left=!1,this.touching.right=!1,this.blocked.up=!1,this.blocked.down=!1,this.blocked.left=!1,this.blocked.right=!1,this.embedded=!1,this.updateBounds(),this.position.x=this.sprite.world.x-this.sprite.anchor.x*this.sprite.width+this.sprite.scale.x*this.offset.x,this.position.x-=this.sprite.scale.x<0?this.width:0,this.position.y=this.sprite.world.y-this.sprite.anchor.y*this.sprite.height+this.sprite.scale.y*this.offset.y,this.position.y-=this.sprite.scale.y<0?this.height:0,this.rotation=this.sprite.angle,this.preRotation=this.rotation,(this._reset||this.sprite.fresh)&&(this.prev.x=this.position.x,this.prev.y=this.position.y),this.moves&&(this.game.physics.arcade.updateMotion(this),this.newVelocity.set(this.velocity.x*this.game.time.physicsElapsed,this.velocity.y*this.game.time.physicsElapsed),this.position.x+=this.newVelocity.x,this.position.y+=this.newVelocity.y,this.position.x===this.prev.x&&this.position.y===this.prev.y||(this.angle=Math.atan2(this.velocity.y,this.velocity.x)),this.speed=Math.sqrt(this.velocity.x*this.velocity.x+this.velocity.y*this.velocity.y),this.collideWorldBounds&&this.checkWorldBounds()&&this.onWorldBounds&&this.onWorldBounds.dispatch(this.sprite,this.blocked.up,this.blocked.down,this.blocked.left,this.blocked.right)),this._dx=this.deltaX(),this._dy=this.deltaY(),this._reset=!1)},updateMovement:function(){var t=0,e=0!==this.overlapX||0!==this.overlapY;if(this.moveDuration>0?(this.moveTimer+=this.game.time.elapsedMS,t=this.moveTimer/this.moveDuration):(this.moveTarget.end.set(this.position.x,this.position.y),t=this.moveTarget.length/this.moveDistance),this.movementCallback)var i=this.movementCallback.call(this.movementCallbackContext,this,this.velocity,t);return!(e||t>=1||void 0!==i&&!0!==i)||(this.stopMovement(t>=1||this.stopVelocityOnCollide&&e),!1)},stopMovement:function(t){this.isMoving&&(this.isMoving=!1,t&&this.velocity.set(0),this.onMoveComplete.dispatch(this.sprite,0!==this.overlapX||0!==this.overlapY))},postUpdate:function(){this.enable&&this.dirty&&(this.isMoving&&this.updateMovement(),this.dirty=!1,this.deltaX()<0?this.facing=o.LEFT:this.deltaX()>0&&(this.facing=o.RIGHT),this.deltaY()<0?this.facing=o.UP:this.deltaY()>0&&(this.facing=o.DOWN),this.moves&&(this._dx=this.deltaX(),this._dy=this.deltaY(),0!==this.deltaMax.x&&0!==this._dx&&(this._dx<0&&this._dx<-this.deltaMax.x?this._dx=-this.deltaMax.x:this._dx>0&&this._dx>this.deltaMax.x&&(this._dx=this.deltaMax.x)),0!==this.deltaMax.y&&0!==this._dy&&(this._dy<0&&this._dy<-this.deltaMax.y?this._dy=-this.deltaMax.y:this._dy>0&&this._dy>this.deltaMax.y&&(this._dy=this.deltaMax.y)),this.sprite.position.x+=this._dx,this.sprite.position.y+=this._dy,this._reset=!0),this.center.setTo(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.allowRotation&&(this.sprite.angle+=this.deltaZ()),this.prev.x=this.position.x,this.prev.y=this.position.y)},checkWorldBounds:function(){var t=this.position,e=this.game.physics.arcade.bounds,i=this.game.physics.arcade.checkCollision,s=this.worldBounce?-this.worldBounce.x:-this.bounce.x,n=this.worldBounce?-this.worldBounce.y:-this.bounce.y;if(this.isCircle){var o={x:this.center.x-this.radius,y:this.center.y-this.radius,right:this.center.x+this.radius,bottom:this.center.y+this.radius};o.xe.right&&i.right&&(t.x=e.right-this.halfWidth-this.radius,this.velocity.x*=s,this.blocked.right=!0),o.ye.bottom&&i.down&&(t.y=e.bottom-this.halfHeight-this.radius,this.velocity.y*=n,this.blocked.down=!0)}else t.xe.right&&i.right&&(t.x=e.right-this.width,this.velocity.x*=s,this.blocked.right=!0),t.ye.bottom&&i.down&&(t.y=e.bottom-this.height,this.velocity.y*=n,this.blocked.down=!0);return this.blocked.up||this.blocked.down||this.blocked.left||this.blocked.right},moveFrom:function(t,e,i){if(void 0===e&&(e=this.speed),0===e)return!1;var s;return void 0===i?(s=this.angle,i=this.game.math.radToDeg(s)):s=this.game.math.degToRad(i),this.moveTimer=0,this.moveDuration=t,0===i||180===i?this.velocity.set(Math.cos(s)*e,0):90===i||270===i?this.velocity.set(0,Math.sin(s)*e):this.velocity.set(Math.cos(s)*e,Math.sin(s)*e),this.isMoving=!0,!0},moveTo:function(t,e,i){var s=e/(t/1e3);if(0===s)return!1;var n;return void 0===i?(n=this.angle,i=this.game.math.radToDeg(n)):n=this.game.math.degToRad(i),e=Math.abs(e),this.moveDuration=0,this.moveDistance=e,null===this.moveTarget&&(this.moveTarget=new o.Line,this.moveEnd=new o.Point),this.moveTarget.fromAngle(this.x,this.y,n,e),this.moveEnd.set(this.moveTarget.end.x,this.moveTarget.end.y),this.moveTarget.setTo(this.x,this.y,this.x,this.y),0===i||180===i?this.velocity.set(Math.cos(n)*s,0):90===i||270===i?this.velocity.set(0,Math.sin(n)*s):this.velocity.set(Math.cos(n)*s,Math.sin(n)*s),this.isMoving=!0,!0},setSize:function(t,e,i,s){void 0===i&&(i=this.offset.x),void 0===s&&(s=this.offset.y),this.sourceWidth=t,this.sourceHeight=e,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.setTo(i,s),this.center.setTo(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.isCircle=!1,this.radius=0},setCircle:function(t,e,i){void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.isCircle=!0,this.radius=t,this.sourceWidth=2*t,this.sourceHeight=2*t,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.setTo(e,i),this.center.setTo(this.position.x+this.halfWidth,this.position.y+this.halfHeight)):this.isCircle=!1},reset:function(t,e){this.velocity.set(0),this.acceleration.set(0),this.speed=0,this.angularVelocity=0,this.angularAcceleration=0,this.position.x=t-this.sprite.anchor.x*this.sprite.width+this.sprite.scale.x*this.offset.x,this.position.x-=this.sprite.scale.x<0?this.width:0,this.position.y=e-this.sprite.anchor.y*this.sprite.height+this.sprite.scale.y*this.offset.y,this.position.y-=this.sprite.scale.y<0?this.height:0,this.prev.x=this.position.x,this.prev.y=this.position.y,this.rotation=this.sprite.angle,this.preRotation=this.rotation,this._sx=this.sprite.scale.x,this._sy=this.sprite.scale.y,this.center.setTo(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},getBounds:function(t){return this.isCircle?(t.x=this.center.x-this.radius,t.y=this.center.y-this.radius,t.right=this.center.x+this.radius,t.bottom=this.center.y+this.radius):(t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom),t},hitTest:function(t,e){return this.isCircle?o.Circle.contains(this,t,e):o.Rectangle.contains(this,t,e)},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return this.deltaX()>0?this.deltaX():-this.deltaX()},deltaAbsY:function(){return this.deltaY()>0?this.deltaY():-this.deltaY()},deltaX:function(){return this.position.x-this.prev.x},deltaY:function(){return this.position.y-this.prev.y},deltaZ:function(){return this.rotation-this.preRotation},destroy:function(){this.sprite.parent&&this.sprite.parent instanceof o.Group&&this.sprite.parent.removeFromHash(this.sprite),this.sprite.body=null,this.sprite=null}},Object.defineProperty(o.Physics.Arcade.Body.prototype,"left",{get:function(){return this.position.x}}),Object.defineProperty(o.Physics.Arcade.Body.prototype,"right",{get:function(){return this.position.x+this.width}}),Object.defineProperty(o.Physics.Arcade.Body.prototype,"top",{get:function(){return this.position.y}}),Object.defineProperty(o.Physics.Arcade.Body.prototype,"bottom",{get:function(){return this.position.y+this.height}}),Object.defineProperty(o.Physics.Arcade.Body.prototype,"x",{get:function(){return this.position.x},set:function(t){this.position.x=t}}),Object.defineProperty(o.Physics.Arcade.Body.prototype,"y",{get:function(){return this.position.y},set:function(t){this.position.y=t}}),o.Physics.Arcade.Body.render=function(t,e,i,s){void 0===s&&(s=!0),i=i||"rgba(0,255,0,0.4)",t.fillStyle=i,t.strokeStyle=i,e.isCircle?(t.beginPath(),t.arc(e.center.x-e.game.camera.x,e.center.y-e.game.camera.y,e.radius,0,2*Math.PI),s?t.fill():t.stroke()):s?t.fillRect(e.position.x-e.game.camera.x,e.position.y-e.game.camera.y,e.width,e.height):t.strokeRect(e.position.x-e.game.camera.x,e.position.y-e.game.camera.y,e.width,e.height)},o.Physics.Arcade.Body.renderBodyInfo=function(t,e){t.line("x: "+e.x.toFixed(2),"y: "+e.y.toFixed(2),"width: "+e.width,"height: "+e.height),t.line("velocity x: "+e.velocity.x.toFixed(2),"y: "+e.velocity.y.toFixed(2),"deltaX: "+e._dx.toFixed(2),"deltaY: "+e._dy.toFixed(2)),t.line("acceleration x: "+e.acceleration.x.toFixed(2),"y: "+e.acceleration.y.toFixed(2),"speed: "+e.speed.toFixed(2),"angle: "+e.angle.toFixed(2)),t.line("gravity x: "+e.gravity.x,"y: "+e.gravity.y,"bounce x: "+e.bounce.x.toFixed(2),"y: "+e.bounce.y.toFixed(2)),t.line("touching left: "+e.touching.left,"right: "+e.touching.right,"up: "+e.touching.up,"down: "+e.touching.down),t.line("blocked left: "+e.blocked.left,"right: "+e.blocked.right,"up: "+e.blocked.up,"down: "+e.blocked.down)},o.Physics.Arcade.Body.prototype.constructor=o.Physics.Arcade.Body,o.Physics.Arcade.TilemapCollision=function(){},o.Physics.Arcade.TilemapCollision.prototype={TILE_BIAS:16,collideSpriteVsTilemapLayer:function(t,e,i,s,n,o){if(t.body){var a=e.getTiles(t.body.position.x-t.body.tilePadding.x,t.body.position.y-t.body.tilePadding.y,t.body.width+t.body.tilePadding.x,t.body.height+t.body.tilePadding.y,!1,!1);if(0!==a.length)for(var r=0;re.deltaAbsY()?l=-1:e.deltaAbsX()0&&!t.blocked.right&&e.collideLeft&&t.checkCollision.right&&e.faceLeft&&t.right-n>e.left&&(s=t.right-n-e.left)>this.TILE_BIAS&&(s=0),0!==s&&(t.customSeparateX?t.overlapX=s:this.processTileSeparationX(t,s)),s},tileCheckY:function(t,e,i){var s=0,n=i.fixedToCamera?0:i.position.y;return t.deltaY()<0&&!t.blocked.up&&e.collideDown&&t.checkCollision.up?e.faceBottom&&t.y-n0&&!t.blocked.down&&e.collideUp&&t.checkCollision.down&&e.faceTop&&t.bottom-n>e.top&&(s=t.bottom-n-e.top)>this.TILE_BIAS&&(s=0),0!==s&&(t.customSeparateY?t.overlapY=s:this.processTileSeparationY(t,s)),s},processTileSeparationX:function(t,e){e<0?t.blocked.left=!0:e>0&&(t.blocked.right=!0),t.position.x-=e,0===t.bounce.x?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x},processTileSeparationY:function(t,e){e<0?t.blocked.up=!0:e>0&&(t.blocked.down=!0),t.position.y-=e,0===t.bounce.y?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y}},o.Utils.mixinPrototype(o.Physics.Arcade.prototype,o.Physics.Arcade.TilemapCollision.prototype),p2.Body.prototype.parent=null,p2.Spring.prototype.parent=null,o.Physics.P2=function(t,e){this.game=t,void 0===e?e={gravity:[0,0],broadphase:new p2.SAPBroadphase}:(e.hasOwnProperty("gravity")||(e.gravity=[0,0]),e.hasOwnProperty("broadphase")||(e.broadphase=new p2.SAPBroadphase)),this.config=e,this.world=new p2.World(this.config),this.frameRate=1/60,this.useElapsedTime=!1,this.paused=!1,this.materials=[],this.gravity=new o.Physics.P2.InversePointProxy(this,this.world.gravity),this.walls={left:null,right:null,top:null,bottom:null},this.onBodyAdded=new o.Signal,this.onBodyRemoved=new o.Signal,this.onSpringAdded=new o.Signal,this.onSpringRemoved=new o.Signal,this.onConstraintAdded=new o.Signal,this.onConstraintRemoved=new o.Signal,this.onContactMaterialAdded=new o.Signal,this.onContactMaterialRemoved=new o.Signal,this.postBroadphaseCallback=null,this.callbackContext=null,this.onBeginContact=new o.Signal,this.onEndContact=new o.Signal,e.hasOwnProperty("mpx")&&e.hasOwnProperty("pxm")&&e.hasOwnProperty("mpxi")&&e.hasOwnProperty("pxmi")&&(this.mpx=e.mpx,this.mpxi=e.mpxi,this.pxm=e.pxm,this.pxmi=e.pxmi),this.world.on("beginContact",this.beginContactHandler,this),this.world.on("endContact",this.endContactHandler,this),this.collisionGroups=[],this.nothingCollisionGroup=new o.Physics.P2.CollisionGroup(1),this.boundsCollisionGroup=new o.Physics.P2.CollisionGroup(2),this.everythingCollisionGroup=new o.Physics.P2.CollisionGroup(2147483648),this.boundsCollidesWith=[],this._toRemove=[],this._collisionGroupID=2,this._boundsLeft=!0,this._boundsRight=!0,this._boundsTop=!0,this._boundsBottom=!0,this._boundsOwnGroup=!1,this.setBoundsToWorld(!0,!0,!0,!0,!1)},o.Physics.P2.prototype={removeBodyNextStep:function(t){this._toRemove.push(t)},preUpdate:function(){for(var t=this._toRemove.length;t--;)this.removeBody(this._toRemove[t]);this._toRemove.length=0},enable:function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!0);var s=1;if(Array.isArray(t))for(s=t.length;s--;)t[s]instanceof o.Group?this.enable(t[s].children,e,i):(this.enableBody(t[s],e),i&&t[s].hasOwnProperty("children")&&t[s].children.length>0&&this.enable(t[s],e,!0));else t instanceof o.Group?this.enable(t.children,e,i):(this.enableBody(t,e),i&&t.hasOwnProperty("children")&&t.children.length>0&&this.enable(t.children,e,!0))},enableBody:function(t,e){t.hasOwnProperty("body")&&null===t.body&&(t.body=new o.Physics.P2.Body(this.game,t,t.x,t.y,1),t.body.debug=e,void 0!==t.anchor&&t.anchor.set(.5))},setImpactEvents:function(t){t?this.world.on("impact",this.impactHandler,this):this.world.off("impact",this.impactHandler,this)},setPostBroadphaseCallback:function(t,e){this.postBroadphaseCallback=t,this.callbackContext=e,null!==t?this.world.on("postBroadphase",this.postBroadphaseHandler,this):this.world.off("postBroadphase",this.postBroadphaseHandler,this)},postBroadphaseHandler:function(t){if(this.postBroadphaseCallback&&0!==t.pairs.length)for(var e=t.pairs.length-2;e>=0;e-=2)t.pairs[e].parent&&t.pairs[e+1].parent&&!this.postBroadphaseCallback.call(this.callbackContext,t.pairs[e].parent,t.pairs[e+1].parent)&&t.pairs.splice(e,2)},impactHandler:function(t){if(t.bodyA.parent&&t.bodyB.parent){var e=t.bodyA.parent,i=t.bodyB.parent;e._bodyCallbacks[t.bodyB.id]&&e._bodyCallbacks[t.bodyB.id].call(e._bodyCallbackContext[t.bodyB.id],e,i,t.shapeA,t.shapeB),i._bodyCallbacks[t.bodyA.id]&&i._bodyCallbacks[t.bodyA.id].call(i._bodyCallbackContext[t.bodyA.id],i,e,t.shapeB,t.shapeA),e._groupCallbacks[t.shapeB.collisionGroup]&&e._groupCallbacks[t.shapeB.collisionGroup].call(e._groupCallbackContext[t.shapeB.collisionGroup],e,i,t.shapeA,t.shapeB),i._groupCallbacks[t.shapeA.collisionGroup]&&i._groupCallbacks[t.shapeA.collisionGroup].call(i._groupCallbackContext[t.shapeA.collisionGroup],i,e,t.shapeB,t.shapeA)}},beginContactHandler:function(t){t.bodyA&&t.bodyB&&(this.onBeginContact.dispatch(t.bodyA,t.bodyB,t.shapeA,t.shapeB,t.contactEquations),t.bodyA.parent&&t.bodyA.parent.onBeginContact.dispatch(t.bodyB.parent,t.bodyB,t.shapeA,t.shapeB,t.contactEquations),t.bodyB.parent&&t.bodyB.parent.onBeginContact.dispatch(t.bodyA.parent,t.bodyA,t.shapeB,t.shapeA,t.contactEquations))},endContactHandler:function(t){t.bodyA&&t.bodyB&&(this.onEndContact.dispatch(t.bodyA,t.bodyB,t.shapeA,t.shapeB),t.bodyA.parent&&t.bodyA.parent.onEndContact.dispatch(t.bodyB.parent,t.bodyB,t.shapeA,t.shapeB),t.bodyB.parent&&t.bodyB.parent.onEndContact.dispatch(t.bodyA.parent,t.bodyA,t.shapeB,t.shapeA))},setBoundsToWorld:function(t,e,i,s,n){this.setBounds(this.game.world.bounds.x,this.game.world.bounds.y,this.game.world.bounds.width,this.game.world.bounds.height,t,e,i,s,n)},setWorldMaterial:function(t,e,i,s,n){void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===s&&(s=!0),void 0===n&&(n=!0),e&&this.walls.left&&(this.walls.left.shapes[0].material=t),i&&this.walls.right&&(this.walls.right.shapes[0].material=t),s&&this.walls.top&&(this.walls.top.shapes[0].material=t),n&&this.walls.bottom&&(this.walls.bottom.shapes[0].material=t)},updateBoundsCollisionGroup:function(t){void 0===t&&(t=!0);var e=t?this.boundsCollisionGroup.mask:this.everythingCollisionGroup.mask;this.walls.left&&(this.walls.left.shapes[0].collisionGroup=e),this.walls.right&&(this.walls.right.shapes[0].collisionGroup=e),this.walls.top&&(this.walls.top.shapes[0].collisionGroup=e),this.walls.bottom&&(this.walls.bottom.shapes[0].collisionGroup=e),this._boundsOwnGroup=t},setBounds:function(t,e,i,s,n,o,a,r,h){void 0===n&&(n=this._boundsLeft),void 0===o&&(o=this._boundsRight),void 0===a&&(a=this._boundsTop),void 0===r&&(r=this._boundsBottom),void 0===h&&(h=this._boundsOwnGroup),this.setupWall(n,"left",t,e,1.5707963267948966,h),this.setupWall(o,"right",t+i,e,-1.5707963267948966,h),this.setupWall(a,"top",t,e,-3.141592653589793,h),this.setupWall(r,"bottom",t,e+s,0,h),this._boundsLeft=n,this._boundsRight=o,this._boundsTop=a,this._boundsBottom=r,this._boundsOwnGroup=h},setupWall:function(t,e,i,s,n,o){t?(this.walls[e]?this.walls[e].position=[this.pxmi(i),this.pxmi(s)]:(this.walls[e]=new p2.Body({mass:0,position:[this.pxmi(i),this.pxmi(s)],angle:n}),this.walls[e].addShape(new p2.Plane),this.world.addBody(this.walls[e])),o&&(this.walls[e].shapes[0].collisionGroup=this.boundsCollisionGroup.mask)):this.walls[e]&&(this.world.removeBody(this.walls[e]),this.walls[e]=null)},pause:function(){this.paused=!0},resume:function(){this.paused=!1},update:function(){this.paused||(this.useElapsedTime?this.world.step(this.game.time.physicsElapsed):this.world.step(this.frameRate))},reset:function(){this.world.on("beginContact",this.beginContactHandler,this),this.world.on("endContact",this.endContactHandler,this),this.nothingCollisionGroup=new o.Physics.P2.CollisionGroup(1),this.boundsCollisionGroup=new o.Physics.P2.CollisionGroup(2),this.everythingCollisionGroup=new o.Physics.P2.CollisionGroup(2147483648),this._collisionGroupID=2,this.setBoundsToWorld(!0,!0,!0,!0,!1)},clear:function(){this.world.time=0,this.world.fixedStepTime=0,this.world.solver&&this.world.solver.equations.length&&this.world.solver.removeAllEquations();for(var t=this.world.constraints,e=t.length-1;e>=0;e--)this.world.removeConstraint(t[e]);for(var i=this.world.bodies,e=i.length-1;e>=0;e--)this.world.removeBody(i[e]);for(var s=this.world.springs,e=s.length-1;e>=0;e--)this.world.removeSpring(s[e]);for(var n=this.world.contactMaterials,e=n.length-1;e>=0;e--)this.world.removeContactMaterial(n[e]);this.world.off("beginContact",this.beginContactHandler,this),this.world.off("endContact",this.endContactHandler,this),this.postBroadphaseCallback=null,this.callbackContext=null,this.impactCallback=null,this.collisionGroups=[],this._toRemove=[],this.boundsCollidesWith=[],this.walls={left:null,right:null,top:null,bottom:null}},destroy:function(){this.clear(),this.game=null},addBody:function(t){return!t.data.world&&(this.world.addBody(t.data),this.onBodyAdded.dispatch(t),!0)},removeBody:function(t){return t.data.world===this.world&&(this.world.removeBody(t.data),this.onBodyRemoved.dispatch(t)),t},addSpring:function(t){return t instanceof o.Physics.P2.Spring||t instanceof o.Physics.P2.RotationalSpring?this.world.addSpring(t.data):this.world.addSpring(t),this.onSpringAdded.dispatch(t),t},removeSpring:function(t){return t instanceof o.Physics.P2.Spring||t instanceof o.Physics.P2.RotationalSpring?this.world.removeSpring(t.data):this.world.removeSpring(t),this.onSpringRemoved.dispatch(t),t},createDistanceConstraint:function(t,e,i,s,n,a){if(t=this.getBody(t),e=this.getBody(e),t&&e)return this.addConstraint(new o.Physics.P2.DistanceConstraint(this,t,e,i,s,n,a))},createGearConstraint:function(t,e,i,s){if(t=this.getBody(t),e=this.getBody(e),t&&e)return this.addConstraint(new o.Physics.P2.GearConstraint(this,t,e,i,s))},createRevoluteConstraint:function(t,e,i,s,n,a){if(t=this.getBody(t),i=this.getBody(i),t&&i)return this.addConstraint(new o.Physics.P2.RevoluteConstraint(this,t,e,i,s,n,a))},createLockConstraint:function(t,e,i,s,n){if(t=this.getBody(t),e=this.getBody(e),t&&e)return this.addConstraint(new o.Physics.P2.LockConstraint(this,t,e,i,s,n))},createPrismaticConstraint:function(t,e,i,s,n,a,r){if(t=this.getBody(t),e=this.getBody(e),t&&e)return this.addConstraint(new o.Physics.P2.PrismaticConstraint(this,t,e,i,s,n,a,r))},addConstraint:function(t){return this.world.addConstraint(t),this.onConstraintAdded.dispatch(t),t},removeConstraint:function(t){return this.world.removeConstraint(t),this.onConstraintRemoved.dispatch(t),t},addContactMaterial:function(t){return this.world.addContactMaterial(t),this.onContactMaterialAdded.dispatch(t),t},removeContactMaterial:function(t){return this.world.removeContactMaterial(t),this.onContactMaterialRemoved.dispatch(t),t},getContactMaterial:function(t,e){return this.world.getContactMaterial(t,e)},setMaterial:function(t,e){for(var i=e.length;i--;)e[i].setMaterial(t)},createMaterial:function(t,e){t=t||"";var i=new o.Physics.P2.Material(t);return this.materials.push(i),void 0!==e&&e.setMaterial(i),i},createContactMaterial:function(t,e,i){void 0===t&&(t=this.createMaterial()),void 0===e&&(e=this.createMaterial());var s=new o.Physics.P2.ContactMaterial(t,e,i);return this.addContactMaterial(s)},getBodies:function(){for(var t=[],e=this.world.bodies.length;e--;)t.push(this.world.bodies[e].parent);return t},getBody:function(t){return t instanceof p2.Body?t:t instanceof o.Physics.P2.Body?t.data:t.body&&t.body.type===o.Physics.P2JS?t.body.data:null},getSprings:function(){for(var t=[],e=this.world.springs.length;e--;)t.push(this.world.springs[e].parent);return t},getConstraints:function(){for(var t=[],e=this.world.constraints.length;e--;)t.push(this.world.constraints[e]);return t},hitTest:function(t,e,i,s){void 0===e&&(e=this.world.bodies),void 0===i&&(i=5),void 0===s&&(s=!1);for(var n=[this.pxmi(t.x),this.pxmi(t.y)],a=[],r=e.length;r--;)e[r]instanceof o.Physics.P2.Body&&(!s||e[r].data.type!==p2.Body.STATIC)?a.push(e[r].data):e[r]instanceof p2.Body&&e[r].parent&&(!s||e[r].type!==p2.Body.STATIC)?a.push(e[r]):e[r]instanceof o.Sprite&&e[r].hasOwnProperty("body")&&(!s||e[r].body.data.type!==p2.Body.STATIC)&&a.push(e[r].body.data);return this.world.hitTest(n,a,i)},toJSON:function(){return this.world.toJSON()},createCollisionGroup:function(t){var e=Math.pow(2,this._collisionGroupID);this.walls.left&&(this.walls.left.shapes[0].collisionMask=this.walls.left.shapes[0].collisionMask|e),this.walls.right&&(this.walls.right.shapes[0].collisionMask=this.walls.right.shapes[0].collisionMask|e),this.walls.top&&(this.walls.top.shapes[0].collisionMask=this.walls.top.shapes[0].collisionMask|e),this.walls.bottom&&(this.walls.bottom.shapes[0].collisionMask=this.walls.bottom.shapes[0].collisionMask|e),this._collisionGroupID++;var i=new o.Physics.P2.CollisionGroup(e);return this.collisionGroups.push(i),t&&this.setCollisionGroup(t,i),i},setCollisionGroup:function(t,e){if(t instanceof o.Group)for(var i=0;i-1&&u.collides)if(s){var d=t.getTileRight(e,l,r);if(0===n&&(o=u.x*u.width,a=u.y*u.height,n=u.width),d&&d.collides)n+=u.width;else{var p=this.createBody(o,a,0,!1);p.addRectangle(n,u.height,n/2,u.height/2,0),i&&this.addBody(p),t.layers[e].bodies.push(p),n=0}}else{var p=this.createBody(u.x*u.width,u.y*u.height,0,!1);p.addRectangle(u.width,u.height,u.width/2,u.height/2,0),i&&this.addBody(p),t.layers[e].bodies.push(p)}}}return t.layers[e].bodies},mpx:function(t){return t*=20},pxm:function(t){return.05*t},mpxi:function(t){return t*=-20},pxmi:function(t){return-.05*t}},Object.defineProperty(o.Physics.P2.prototype,"friction",{get:function(){return this.world.defaultContactMaterial.friction},set:function(t){this.world.defaultContactMaterial.friction=t}}),Object.defineProperty(o.Physics.P2.prototype,"restitution",{get:function(){return this.world.defaultContactMaterial.restitution},set:function(t){this.world.defaultContactMaterial.restitution=t}}),Object.defineProperty(o.Physics.P2.prototype,"contactMaterial",{get:function(){return this.world.defaultContactMaterial},set:function(t){this.world.defaultContactMaterial=t}}),Object.defineProperty(o.Physics.P2.prototype,"applySpringForces",{get:function(){return this.world.applySpringForces},set:function(t){this.world.applySpringForces=t}}),Object.defineProperty(o.Physics.P2.prototype,"applyDamping",{get:function(){return this.world.applyDamping},set:function(t){this.world.applyDamping=t}}),Object.defineProperty(o.Physics.P2.prototype,"applyGravity",{get:function(){return this.world.applyGravity},set:function(t){this.world.applyGravity=t}}),Object.defineProperty(o.Physics.P2.prototype,"solveConstraints",{get:function(){return this.world.solveConstraints},set:function(t){this.world.solveConstraints=t}}),Object.defineProperty(o.Physics.P2.prototype,"time",{get:function(){return this.world.time}}),Object.defineProperty(o.Physics.P2.prototype,"emitImpactEvent",{get:function(){return this.world.emitImpactEvent},set:function(t){this.world.emitImpactEvent=t}}),Object.defineProperty(o.Physics.P2.prototype,"sleepMode",{get:function(){return this.world.sleepMode},set:function(t){this.world.sleepMode=t}}),Object.defineProperty(o.Physics.P2.prototype,"total",{get:function(){return this.world.bodies.length}}),o.Physics.P2.FixtureList=function(t){Array.isArray(t)||(t=[t]),this.rawList=t,this.init(),this.parse(this.rawList)},o.Physics.P2.FixtureList.prototype={init:function(){this.namedFixtures={},this.groupedFixtures=[],this.allFixtures=[]},setCategory:function(t,e){var i=function(e){e.collisionGroup=t};this.getFixtures(e).forEach(i)},setMask:function(t,e){var i=function(e){e.collisionMask=t};this.getFixtures(e).forEach(i)},setSensor:function(t,e){var i=function(e){e.sensor=t};this.getFixtures(e).forEach(i)},setMaterial:function(t,e){var i=function(e){e.material=t};this.getFixtures(e).forEach(i)},getFixtures:function(t){var e=[];if(t){t instanceof Array||(t=[t]);var i=this;return t.forEach(function(t){i.namedFixtures[t]&&e.push(i.namedFixtures[t])}),this.flatten(e)}return this.allFixtures},getFixtureByKey:function(t){return this.namedFixtures[t]},getGroup:function(t){return this.groupedFixtures[t]},parse:function(){var t,e,i,s;i=this.rawList,s=[];for(t in i)e=i[t],isNaN(t-0)?this.namedFixtures[t]=this.flatten(e):(this.groupedFixtures[t]=this.groupedFixtures[t]||[],this.groupedFixtures[t]=this.groupedFixtures[t].concat(e)),s.push(this.allFixtures=this.flatten(this.groupedFixtures))},flatten:function(t){var e,i;return e=[],i=arguments.callee,t.forEach(function(t){return Array.prototype.push.apply(e,Array.isArray(t)?i(t):[t])}),e}},o.Physics.P2.PointProxy=function(t,e){this.world=t,this.destination=e},o.Physics.P2.PointProxy.prototype.constructor=o.Physics.P2.PointProxy,Object.defineProperty(o.Physics.P2.PointProxy.prototype,"x",{get:function(){return this.world.mpx(this.destination[0])},set:function(t){this.destination[0]=this.world.pxm(t)}}),Object.defineProperty(o.Physics.P2.PointProxy.prototype,"y",{get:function(){return this.world.mpx(this.destination[1])},set:function(t){this.destination[1]=this.world.pxm(t)}}),Object.defineProperty(o.Physics.P2.PointProxy.prototype,"mx",{get:function(){return this.destination[0]},set:function(t){this.destination[0]=t}}),Object.defineProperty(o.Physics.P2.PointProxy.prototype,"my",{get:function(){return this.destination[1]},set:function(t){this.destination[1]=t}}),o.Physics.P2.InversePointProxy=function(t,e){this.world=t,this.destination=e},o.Physics.P2.InversePointProxy.prototype.constructor=o.Physics.P2.InversePointProxy,Object.defineProperty(o.Physics.P2.InversePointProxy.prototype,"x",{get:function(){return this.world.mpxi(this.destination[0])},set:function(t){this.destination[0]=this.world.pxmi(t)}}),Object.defineProperty(o.Physics.P2.InversePointProxy.prototype,"y",{get:function(){return this.world.mpxi(this.destination[1])},set:function(t){this.destination[1]=this.world.pxmi(t)}}),Object.defineProperty(o.Physics.P2.InversePointProxy.prototype,"mx",{get:function(){return this.destination[0]},set:function(t){this.destination[0]=-t}}),Object.defineProperty(o.Physics.P2.InversePointProxy.prototype,"my",{get:function(){return this.destination[1]},set:function(t){this.destination[1]=-t}}),o.Physics.P2.Body=function(t,e,i,s,n){e=e||null,i=i||0,s=s||0,void 0===n&&(n=1),this.game=t,this.world=t.physics.p2,this.sprite=e,this.type=o.Physics.P2JS,this.offset=new o.Point,this.data=new p2.Body({position:[this.world.pxmi(i),this.world.pxmi(s)],mass:n}),this.data.parent=this,this.velocity=new o.Physics.P2.InversePointProxy(this.world,this.data.velocity),this.force=new o.Physics.P2.InversePointProxy(this.world,this.data.force),this.gravity=new o.Point,this.onBeginContact=new o.Signal,this.onEndContact=new o.Signal,this.collidesWith=[],this.removeNextStep=!1,this.debugBody=null,this.dirty=!1,this._collideWorldBounds=!0,this._bodyCallbacks={},this._bodyCallbackContext={},this._groupCallbacks={},this._groupCallbackContext={},this._reset=!1,e&&(this.setRectangleFromSprite(e),e.exists&&this.game.physics.p2.addBody(this))},o.Physics.P2.Body.prototype={createBodyCallback:function(t,e,i){var s=-1;t.id?s=t.id:t.body&&(s=t.body.id),s>-1&&(null===e?(delete this._bodyCallbacks[s],delete this._bodyCallbackContext[s]):(this._bodyCallbacks[s]=e,this._bodyCallbackContext[s]=i))},createGroupCallback:function(t,e,i){null===e?(delete this._groupCallbacks[t.mask],delete this._groupCallbackContext[t.mask]):(this._groupCallbacks[t.mask]=e,this._groupCallbackContext[t.mask]=i)},getCollisionMask:function(){var t=0;this._collideWorldBounds&&(t=this.game.physics.p2.boundsCollisionGroup.mask);for(var e=0;e=0;i--)this.data.shapes[i].collisionMask=e;else t.collisionMask=e},setCollisionGroup:function(t,e){var i=this.getCollisionMask();if(void 0===e)for(var s=this.data.shapes.length-1;s>=0;s--)this.data.shapes[s].collisionGroup=t.mask,this.data.shapes[s].collisionMask=i;else e.collisionGroup=t.mask,e.collisionMask=i},clearCollision:function(t,e,i){if(void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i)for(var s=this.data.shapes.length-1;s>=0;s--)t&&(this.data.shapes[s].collisionGroup=null),e&&(this.data.shapes[s].collisionMask=null);else t&&(i.collisionGroup=null),e&&(i.collisionMask=null);t&&(this.collidesWith.length=0)},removeCollisionGroup:function(t,e,i){void 0===e&&(e=!0);var s;if(Array.isArray(t))for(var n=0;n-1&&(this.collidesWith.splice(s,1),e&&(delete this._groupCallbacks[t.mask],delete this._groupCallbackContext[t.mask]));else(s=this.collidesWith.indexOf(t))>-1&&(this.collidesWith.splice(s,1),e&&(delete this._groupCallbacks[t.mask],delete this._groupCallbackContext[t.mask]));var o=this.getCollisionMask();if(void 0===i)for(var n=this.data.shapes.length-1;n>=0;n--)this.data.shapes[n].collisionMask=o;else i.collisionMask=o},collides:function(t,e,i,s){if(Array.isArray(t))for(var n=0;n=0;n--)this.data.shapes[n].collisionMask=o;else s.collisionMask=o},adjustCenterOfMass:function(){this.data.adjustCenterOfMass(),this.shapeChanged()},getVelocityAtPoint:function(t,e){return this.data.getVelocityAtPoint(t,e)},applyDamping:function(t){this.data.applyDamping(t)},applyImpulse:function(t,e,i){this.data.applyImpulse(t,[this.world.pxmi(e),this.world.pxmi(i)])},applyImpulseLocal:function(t,e,i){this.data.applyImpulseLocal(t,[this.world.pxmi(e),this.world.pxmi(i)])},applyForce:function(t,e,i){this.data.applyForce(t,[this.world.pxmi(e),this.world.pxmi(i)])},setZeroForce:function(){this.data.setZeroForce()},setZeroRotation:function(){this.data.angularVelocity=0},setZeroVelocity:function(){this.data.velocity[0]=0,this.data.velocity[1]=0},setZeroDamping:function(){this.data.damping=0,this.data.angularDamping=0},toLocalFrame:function(t,e){return this.data.toLocalFrame(t,e)},toWorldFrame:function(t,e){return this.data.toWorldFrame(t,e)},rotateLeft:function(t){this.data.angularVelocity=this.world.pxm(-t)},rotateRight:function(t){this.data.angularVelocity=this.world.pxm(t)},moveForward:function(t){var e=this.world.pxmi(-t),i=this.data.angle+Math.PI/2;this.data.velocity[0]=e*Math.cos(i),this.data.velocity[1]=e*Math.sin(i)},moveBackward:function(t){var e=this.world.pxmi(-t),i=this.data.angle+Math.PI/2;this.data.velocity[0]=-e*Math.cos(i),this.data.velocity[1]=-e*Math.sin(i)},thrust:function(t){var e=this.world.pxmi(-t),i=this.data.angle+Math.PI/2;this.data.force[0]+=e*Math.cos(i),this.data.force[1]+=e*Math.sin(i)},thrustLeft:function(t){var e=this.world.pxmi(-t),i=this.data.angle;this.data.force[0]+=e*Math.cos(i),this.data.force[1]+=e*Math.sin(i)},thrustRight:function(t){var e=this.world.pxmi(-t),i=this.data.angle;this.data.force[0]-=e*Math.cos(i),this.data.force[1]-=e*Math.sin(i)},reverse:function(t){var e=this.world.pxmi(-t),i=this.data.angle+Math.PI/2;this.data.force[0]-=e*Math.cos(i),this.data.force[1]-=e*Math.sin(i)},moveLeft:function(t){this.data.velocity[0]=this.world.pxmi(-t)},moveRight:function(t){this.data.velocity[0]=this.world.pxmi(t)},moveUp:function(t){this.data.velocity[1]=this.world.pxmi(-t)},moveDown:function(t){this.data.velocity[1]=this.world.pxmi(t)},preUpdate:function(){this.dirty=!0,this.removeNextStep&&(this.removeFromWorld(),this.removeNextStep=!1)},postUpdate:function(){this.sprite.x=this.world.mpxi(this.data.position[0])+this.offset.x,this.sprite.y=this.world.mpxi(this.data.position[1])+this.offset.y,this.fixedRotation||(this.sprite.rotation=this.data.angle),this.debugBody&&this.debugBody.updateSpriteTransform(),this.dirty=!1},reset:function(t,e,i,s){void 0===i&&(i=!1),void 0===s&&(s=!1),this.setZeroForce(),this.setZeroVelocity(),this.setZeroRotation(),i&&this.setZeroDamping(),s&&(this.mass=1),this.x=t,this.y=e},addToWorld:function(){if(this.game.physics.p2._toRemove)for(var t=0;t=0;i--)this.data.shapes[i].material=t;else e.material=t},shapeChanged:function(){this.debugBody&&this.debugBody.draw()},addPhaserPolygon:function(t,e){for(var i=this.game.cache.getPhysicsData(t,e),s=[],n=0;nf;n=0<=f?++p:--p)c=e.vertices[n],p2.vec2.rotate(d,c,t),u.push([(d[0]+h[0])*this.ppu,-(d[1]+h[1])*this.ppu]);this.drawConvex(l,u,e.triangles,o,i,a,this.settings.debugPolygons,[h[0]*this.ppu,-h[1]*this.ppu])}s++}}},drawRectangle:function(t,e,i,s,n,o,a,r,h){void 0===h&&(h=1),void 0===a&&(a=0),t.lineStyle(h,a,1),t.beginFill(r),t.drawRect(e-n/2,i-o/2,n,o)},drawCircle:function(t,e,i,s,n,o,a){void 0===a&&(a=1),void 0===o&&(o=16777215),t.lineStyle(a,0,1),t.beginFill(o,1),t.drawCircle(e,i,2*-n),t.endFill(),t.moveTo(e,i),t.lineTo(e+n*Math.cos(-s),i+n*Math.sin(-s))},drawLine:function(t,e,i,s){void 0===s&&(s=1),void 0===i&&(i=0),t.lineStyle(5*s,i,1),t.moveTo(-e/2,0),t.lineTo(e/2,0)},drawConvex:function(t,e,i,s,n,o,a,r){var h,l,c,u,d,p,f,y,g,m,v;if(void 0===o&&(o=1),void 0===s&&(s=0),a){for(h=[16711680,65280,255],l=0;l!==e.length+1;)u=e[l%e.length],d=e[(l+1)%e.length],f=u[0],m=u[1],y=d[0],v=d[1],t.lineStyle(o,h[l%h.length],1),t.moveTo(f,-m),t.lineTo(y,-v),t.drawCircle(f,-m,2*o),l++;return t.lineStyle(o,0,1),t.drawCircle(r[0],r[1],2*o)}for(t.lineStyle(o,s,1),t.beginFill(n),l=0;l!==e.length;)c=e[l],p=c[0],g=c[1],0===l?t.moveTo(p,-g):t.lineTo(p,-g),l++;if(t.endFill(),e.length>2)return t.moveTo(e[e.length-1][0],-e[e.length-1][1]),t.lineTo(e[0][0],-e[0][1])},drawPath:function(t,e,i,s,n){var o,a,r,h,l,c,u,d,p,f,y,g,m;for(void 0===n&&(n=1),void 0===i&&(i=0),t.lineStyle(n,i,1),"number"==typeof s&&t.beginFill(s),r=null,h=null,a=0;a2&&"number"==typeof s&&(t.moveTo(e[e.length-1][0],e[e.length-1][1]),t.lineTo(e[0][0],e[0][1]))},drawPlane:function(t,e,i,s,n,o,a,r,h,l){var c,u,d;void 0===o&&(o=1),void 0===s&&(s=16777215),t.lineStyle(o,n,11),t.beginFill(s),c=h,t.moveTo(e,-i),u=e+Math.cos(l)*this.game.width,d=i+Math.sin(l)*this.game.height,t.lineTo(u,-d),t.moveTo(e,-i),u=e+Math.cos(l)*-this.game.width,d=i+Math.sin(l)*-this.game.height,t.lineTo(u,-d)},drawCapsule:function(t,e,i,s,n,o,a,r,h){void 0===h&&(h=1),void 0===a&&(a=0),t.lineStyle(h,a,1);var l=Math.cos(s),c=Math.sin(s);t.beginFill(r,1),t.drawCircle(-n/2*l+e,-n/2*c+i,2*-o),t.drawCircle(n/2*l+e,n/2*c+i,2*-o),t.endFill(),t.lineStyle(h,a,0),t.beginFill(r,1),t.moveTo(-n/2*l+o*c+e,-n/2*c+o*l+i),t.lineTo(n/2*l+o*c+e,n/2*c+o*l+i),t.lineTo(n/2*l-o*c+e,n/2*c-o*l+i),t.lineTo(-n/2*l-o*c+e,-n/2*c-o*l+i),t.endFill(),t.lineStyle(h,a,1),t.moveTo(-n/2*l+o*c+e,-n/2*c+o*l+i),t.lineTo(n/2*l+o*c+e,n/2*c+o*l+i),t.moveTo(-n/2*l-o*c+e,-n/2*c-o*l+i),t.lineTo(n/2*l-o*c+e,n/2*c-o*l+i)},randomPastelHex:function(){var t,e,i,s;return i=[255,255,255],s=Math.floor(256*Math.random()),e=Math.floor(256*Math.random()),t=Math.floor(256*Math.random()),s=Math.floor((s+3*i[0])/4),e=Math.floor((e+3*i[1])/4),t=Math.floor((t+3*i[2])/4),this.rgbToHex(s,e,t)},rgbToHex:function(t,e,i){return this.componentToHex(t)+this.componentToHex(e)+this.componentToHex(i)},componentToHex:function(t){var e;return e=t.toString(16),2===e.length?e:e+"0"}}),o.Physics.P2.Spring=function(t,e,i,s,n,o,a,r,h,l){this.game=t.game,this.world=t,void 0===s&&(s=1),void 0===n&&(n=100),void 0===o&&(o=1),s=t.pxm(s);var c={restLength:s,stiffness:n,damping:o};void 0!==a&&null!==a&&(c.worldAnchorA=[t.pxm(a[0]),t.pxm(a[1])]),void 0!==r&&null!==r&&(c.worldAnchorB=[t.pxm(r[0]),t.pxm(r[1])]),void 0!==h&&null!==h&&(c.localAnchorA=[t.pxm(h[0]),t.pxm(h[1])]),void 0!==l&&null!==l&&(c.localAnchorB=[t.pxm(l[0]),t.pxm(l[1])]),this.data=new p2.LinearSpring(e,i,c),this.data.parent=this},o.Physics.P2.Spring.prototype.constructor=o.Physics.P2.Spring,o.Physics.P2.RotationalSpring=function(t,e,i,s,n,o){this.game=t.game,this.world=t,void 0===s&&(s=null),void 0===n&&(n=100),void 0===o&&(o=1),s&&(s=t.pxm(s));var a={restAngle:s,stiffness:n,damping:o};this.data=new p2.RotationalSpring(e,i,a),this.data.parent=this},o.Physics.P2.Spring.prototype.constructor=o.Physics.P2.Spring,o.Physics.P2.Material=function(t){this.name=t,p2.Material.call(this)},o.Physics.P2.Material.prototype=Object.create(p2.Material.prototype),o.Physics.P2.Material.prototype.constructor=o.Physics.P2.Material,o.Physics.P2.ContactMaterial=function(t,e,i){p2.ContactMaterial.call(this,t,e,i)},o.Physics.P2.ContactMaterial.prototype=Object.create(p2.ContactMaterial.prototype),o.Physics.P2.ContactMaterial.prototype.constructor=o.Physics.P2.ContactMaterial,o.Physics.P2.CollisionGroup=function(t){this.mask=t},o.Physics.P2.DistanceConstraint=function(t,e,i,s,n,o,a){void 0===s&&(s=100),void 0===n&&(n=[0,0]),void 0===o&&(o=[0,0]),void 0===a&&(a=Number.MAX_VALUE),this.game=t.game,this.world=t,s=t.pxm(s),n=[t.pxmi(n[0]),t.pxmi(n[1])],o=[t.pxmi(o[0]),t.pxmi(o[1])];var r={distance:s,localAnchorA:n,localAnchorB:o,maxForce:a};p2.DistanceConstraint.call(this,e,i,r)},o.Physics.P2.DistanceConstraint.prototype=Object.create(p2.DistanceConstraint.prototype),o.Physics.P2.DistanceConstraint.prototype.constructor=o.Physics.P2.DistanceConstraint,o.Physics.P2.GearConstraint=function(t,e,i,s,n){void 0===s&&(s=0),void 0===n&&(n=1),this.game=t.game,this.world=t;var o={angle:s,ratio:n};p2.GearConstraint.call(this,e,i,o)},o.Physics.P2.GearConstraint.prototype=Object.create(p2.GearConstraint.prototype),o.Physics.P2.GearConstraint.prototype.constructor=o.Physics.P2.GearConstraint,o.Physics.P2.LockConstraint=function(t,e,i,s,n,o){void 0===s&&(s=[0,0]),void 0===n&&(n=0),void 0===o&&(o=Number.MAX_VALUE),this.game=t.game,this.world=t,s=[t.pxm(s[0]),t.pxm(s[1])];var a={localOffsetB:s,localAngleB:n,maxForce:o};p2.LockConstraint.call(this,e,i,a)},o.Physics.P2.LockConstraint.prototype=Object.create(p2.LockConstraint.prototype),o.Physics.P2.LockConstraint.prototype.constructor=o.Physics.P2.LockConstraint,o.Physics.P2.PrismaticConstraint=function(t,e,i,s,n,o,a,r){void 0===s&&(s=!0),void 0===n&&(n=[0,0]),void 0===o&&(o=[0,0]),void 0===a&&(a=[0,0]),void 0===r&&(r=Number.MAX_VALUE),this.game=t.game,this.world=t,n=[t.pxmi(n[0]),t.pxmi(n[1])],o=[t.pxmi(o[0]),t.pxmi(o[1])];var h={localAnchorA:n,localAnchorB:o,localAxisA:a,maxForce:r,disableRotationalLock:!s};p2.PrismaticConstraint.call(this,e,i,h)},o.Physics.P2.PrismaticConstraint.prototype=Object.create(p2.PrismaticConstraint.prototype),o.Physics.P2.PrismaticConstraint.prototype.constructor=o.Physics.P2.PrismaticConstraint,o.Physics.P2.RevoluteConstraint=function(t,e,i,s,n,o,a){void 0===o&&(o=Number.MAX_VALUE),void 0===a&&(a=null),this.game=t.game,this.world=t,i=[t.pxmi(i[0]),t.pxmi(i[1])],n=[t.pxmi(n[0]),t.pxmi(n[1])],a&&(a=[t.pxmi(a[0]),t.pxmi(a[1])]);var r={worldPivot:a,localPivotA:i,localPivotB:n,maxForce:o};p2.RevoluteConstraint.call(this,e,s,r)},o.Physics.P2.RevoluteConstraint.prototype=Object.create(p2.RevoluteConstraint.prototype),o.Physics.P2.RevoluteConstraint.prototype.constructor=o.Physics.P2.RevoluteConstraint,o.ImageCollection=function(t,e,i,s,n,o,a){(void 0===i||i<=0)&&(i=32),(void 0===s||s<=0)&&(s=32),void 0===n&&(n=0),void 0===o&&(o=0),this.name=t,this.firstgid=0|e,this.imageWidth=0|i,this.imageHeight=0|s,this.imageMargin=0|n,this.imageSpacing=0|o,this.properties=a||{},this.images=[],this.total=0},o.ImageCollection.prototype={containsImageIndex:function(t){return t>=this.firstgid&&tthis.right||e>this.bottom)},intersects:function(t,e,i,s){return!(i<=this.worldX)&&(!(s<=this.worldY)&&(!(t>=this.worldX+this.width)&&!(e>=this.worldY+this.height)))},setCollisionCallback:function(t,e){this.collisionCallback=t,this.collisionCallbackContext=e},destroy:function(){this.collisionCallback=null,this.collisionCallbackContext=null,this.properties=null},setCollision:function(t,e,i,s){this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=s,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=s},resetCollision:function(){this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1},isInteresting:function(t,e){return t&&e?this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.faceTop||this.faceBottom||this.faceLeft||this.faceRight||this.collisionCallback:t?this.collideLeft||this.collideRight||this.collideUp||this.collideDown:!!e&&(this.faceTop||this.faceBottom||this.faceLeft||this.faceRight)},copy:function(t){this.index=t.index,this.alpha=t.alpha,this.properties=t.properties,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.collisionCallbackContext}},o.Tile.prototype.constructor=o.Tile,Object.defineProperty(o.Tile.prototype,"collides",{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}}),Object.defineProperty(o.Tile.prototype,"canCollide",{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||this.collisionCallback}}),Object.defineProperty(o.Tile.prototype,"left",{get:function(){return this.worldX}}),Object.defineProperty(o.Tile.prototype,"right",{get:function(){return this.worldX+this.width}}),Object.defineProperty(o.Tile.prototype,"top",{get:function(){return this.worldY}}),Object.defineProperty(o.Tile.prototype,"bottom",{get:function(){return this.worldY+this.height}}),o.Tilemap=function(t,e,i,s,n,a){this.game=t,this.key=e;var r=o.TilemapParser.parse(this.game,e,i,s,n,a);null!==r&&(this.width=r.width,this.height=r.height,this.tileWidth=r.tileWidth,this.tileHeight=r.tileHeight,this.orientation=r.orientation,this.format=r.format,this.version=r.version,this.properties=r.properties,this.widthInPixels=r.widthInPixels,this.heightInPixels=r.heightInPixels,this.layers=r.layers,this.tilesets=r.tilesets,this.imagecollections=r.imagecollections,this.tiles=r.tiles,this.objects=r.objects,this.collideIndexes=[],this.collision=r.collision,this.images=r.images,this.enableDebug=!1,this.currentLayer=0,this.debugMap=[],this._results=[],this._tempA=0,this._tempB=0)},o.Tilemap.CSV=0,o.Tilemap.TILED_JSON=1,o.Tilemap.NORTH=0,o.Tilemap.EAST=1,o.Tilemap.SOUTH=2,o.Tilemap.WEST=3,o.Tilemap.prototype={create:function(t,e,i,s,n,o){return void 0===o&&(o=this.game.world),this.width=e,this.height=i,this.setTileSize(s,n),this.layers.length=0,this.createBlankLayer(t,e,i,s,n,o)},setTileSize:function(t,e){this.tileWidth=t,this.tileHeight=e,this.widthInPixels=this.width*t,this.heightInPixels=this.height*e},addTilesetImage:function(t,e,i,s,n,a,r){if(void 0===t)return null;void 0===i&&(i=this.tileWidth),void 0===s&&(s=this.tileHeight),void 0===n&&(n=0),void 0===a&&(a=0),void 0===r&&(r=0),0===i&&(i=32),0===s&&(s=32);var h=null;if(void 0!==e&&null!==e||(e=t),e instanceof o.BitmapData)h=e.canvas;else{if(!this.game.cache.checkImageKey(e))return null;h=this.game.cache.getImage(e)}var l=this.getTilesetIndex(t);if(null===l&&this.format===o.Tilemap.TILED_JSON)return null;if(this.tilesets[l])return this.tilesets[l].setImage(h),this.tilesets[l];var c=new o.Tileset(t,r,i,s,n,a,{});c.setImage(h),this.tilesets.push(c);for(var u=this.tilesets.length-1,d=n,p=n,f=0,y=0,g=0,m=r;m1)for(u=0;uthis.layers.length)){void 0===e||e<=0?e=Math.min(this.game.width,this.layers[n].widthInPixels):e>this.game.width&&(e=this.game.width),void 0===i||i<=0?i=Math.min(this.game.height,this.layers[n].heightInPixels):i>this.game.height&&(i=this.game.height),this.enableDebug;var a=s.add(new o.TilemapLayer(this.game,this,n,e,i));return this.enableDebug,a}},createBlankLayer:function(t,e,i,s,n,a){if(void 0===a&&(a=this.game.world),null===this.getLayerIndex(t)){for(var r={name:t,x:0,y:0,width:e,height:i,widthInPixels:e*s,heightInPixels:i*n,alpha:1,visible:!0,properties:{},indexes:[],callbacks:[],bodies:[],data:null},h,l=[],c=0;cthis.game.width&&(d=this.game.width),p>this.game.height&&(p=this.game.height);var l=new o.TilemapLayer(this.game,this,this.layers.length-1,d,p);return l.name=t,a.add(l)}},getIndex:function(t,e){for(var i=0;ie)){for(var o=t;o<=e;o++)this.setCollisionByIndex(o,i,s,!1);n&&this.calculateFaces(s)}},setCollisionByExclusion:function(t,e,i,s){void 0===e&&(e=!0),void 0===s&&(s=!0),i=this.getLayer(i);for(var n=0,o=this.tiles.length;n-1&&this.collideIndexes.splice(n,1)}for(var o=0;o0?this.layers[t].data[i-1][e]:null},getTileBelow:function(t,e,i){return i0?this.layers[t].data[i][e-1]:null},getTileRight:function(t,e,i){return e-1},removeTile:function(t,e,i){if(i=this.getLayer(i),t>=0&&t=0&&e=0&&e=0&&i-1?this.layers[s].data[i][e].setCollision(!0,!0,!0,!0):this.layers[s].data[i][e].resetCollision(),this.layers[s].dirty=!0,this.calculateFaces(s),this.layers[s].data[i][e]}return null},putTileWorldXY:function(t,e,i,s,n,o){return o=this.getLayer(o),e=this.game.math.snapToFloor(e,s)/s,i=this.game.math.snapToFloor(i,n)/n,this.putTile(t,e,i,o)},searchTileIndex:function(t,e,i,s){void 0===e&&(e=0),void 0===i&&(i=!1),s=this.getLayer(s);var n=0;if(i){for(var o=this.layers[s].height-1;o>=0;o--)for(var a=this.layers[s].width-1;a>=0;a--)if(this.layers[s].data[o][a].index===t){if(n===e)return this.layers[s].data[o][a];n++}}else for(var o=0;o=0&&t=0&&ethis.layers[n].width&&(i=this.layers[n].width),s>this.layers[n].height&&(s=this.layers[n].height),this._results.length=0,this._results.push({x:t,y:e,width:i,height:s,layer:n});for(var o=e;o1?this.debugMap[this.layers[this.currentLayer].data[i][s]]?e.push("background: "+this.debugMap[this.layers[this.currentLayer].data[i][s]]):e.push("background: #ffffff"):e.push("background: rgb(0, 0, 0)");t+="\n"}e[0]=t},destroy:function(){this.removeAllLayers(),this.data=[],this.game=null}},o.Tilemap.prototype.constructor=o.Tilemap,Object.defineProperty(o.Tilemap.prototype,"layer",{get:function(){return this.layers[this.currentLayer]},set:function(t){t!==this.currentLayer&&this.setLayer(t)}}),o.TilemapLayer=function(t,e,i,s,n){s|=0,n|=0,o.Sprite.call(this,t,0,0),this.map=e,this.index=i,this.layer=e.layers[i],this.canvas=PIXI.CanvasPool.create(this,s,n),this.context=this.canvas.getContext("2d"),this.setTexture(new PIXI.Texture(new PIXI.BaseTexture(this.canvas))),this.type=o.TILEMAPLAYER,this.physicsType=o.TILEMAPLAYER,this.renderSettings={enableScrollDelta:!1,overdrawRatio:.2,copyCanvas:null},this.debug=!1,this.exists=!0,this.debugSettings={missingImageFill:"rgb(255,255,255)",debuggedTileOverfill:"rgba(0,255,0,0.4)",forceFullRedraw:!0,debugAlpha:.5,facingEdgeStroke:"rgba(0,255,0,1)",collidingTileOverfill:"rgba(0,255,0,0.2)"},this.scrollFactorX=1,this.scrollFactorY=1,this.dirty=!0,this.rayStepRate=4,this._wrap=!1,this._mc={scrollX:0,scrollY:0,renderWidth:0,renderHeight:0,tileWidth:e.tileWidth,tileHeight:e.tileHeight,cw:e.tileWidth,ch:e.tileHeight,tilesets:[]},this._scrollX=0,this._scrollY=0,this._results=[],t.device.canvasBitBltShift||(this.renderSettings.copyCanvas=o.TilemapLayer.ensureSharedCopyCanvas()),this.fixedToCamera=!0},o.TilemapLayer.prototype=Object.create(o.Sprite.prototype),o.TilemapLayer.prototype.constructor=o.TilemapLayer,o.TilemapLayer.prototype.preUpdateCore=o.Component.Core.preUpdate,o.TilemapLayer.sharedCopyCanvas=null,o.TilemapLayer.ensureSharedCopyCanvas=function(){return this.sharedCopyCanvas||(this.sharedCopyCanvas=PIXI.CanvasPool.create(this,2,2)),this.sharedCopyCanvas},o.TilemapLayer.prototype.preUpdate=function(){return this.preUpdateCore()},o.TilemapLayer.prototype.postUpdate=function(){this.fixedToCamera&&(this.position.x=(this.game.camera.view.x+this.cameraOffset.x)/this.game.camera.scale.x,this.position.y=(this.game.camera.view.y+this.cameraOffset.y)/this.game.camera.scale.y),this._scrollX=this.game.camera.view.x*this.scrollFactorX/this.scale.x,this._scrollY=this.game.camera.view.y*this.scrollFactorY/this.scale.y},o.TilemapLayer.prototype._renderCanvas=function(t){this.fixedToCamera&&(this.position.x=(this.game.camera.view.x+this.cameraOffset.x)/this.game.camera.scale.x,this.position.y=(this.game.camera.view.y+this.cameraOffset.y)/this.game.camera.scale.y),this._scrollX=this.game.camera.view.x*this.scrollFactorX/this.scale.x,this._scrollY=this.game.camera.view.y*this.scrollFactorY/this.scale.y,this.render(),PIXI.Sprite.prototype._renderCanvas.call(this,t)},o.TilemapLayer.prototype._renderWebGL=function(t){this.fixedToCamera&&(this.position.x=(this.game.camera.view.x+this.cameraOffset.x)/this.game.camera.scale.x,this.position.y=(this.game.camera.view.y+this.cameraOffset.y)/this.game.camera.scale.y),this._scrollX=this.game.camera.view.x*this.scrollFactorX/this.scale.x,this._scrollY=this.game.camera.view.y*this.scrollFactorY/this.scale.y,this.render(),PIXI.Sprite.prototype._renderWebGL.call(this,t)},o.TilemapLayer.prototype.destroy=function(){PIXI.CanvasPool.remove(this),o.Component.Destroy.prototype.destroy.call(this)},o.TilemapLayer.prototype.resize=function(t,e){this.canvas.width=t,this.canvas.height=e,this.texture.frame.resize(t,e),this.texture.width=t,this.texture.height=e,this.texture.crop.width=t,this.texture.crop.height=e,this.texture.baseTexture.width=t,this.texture.baseTexture.height=e,this.texture.baseTexture.dirty(),this.texture.requiresUpdate=!0,this.texture._updateUvs(),this.dirty=!0},o.TilemapLayer.prototype.resizeWorld=function(){this.game.world.setBounds(0,0,this.layer.widthInPixels*this.scale.x,this.layer.heightInPixels*this.scale.y)},o.TilemapLayer.prototype._fixX=function(t){return 1===this.scrollFactorX||0===this.scrollFactorX&&0===this.position.x?t:0===this.scrollFactorX&&0!==this.position.x?t-this.position.x:this._scrollX+(t-this._scrollX/this.scrollFactorX)},o.TilemapLayer.prototype._unfixX=function(t){return 1===this.scrollFactorX?t:this._scrollX/this.scrollFactorX+(t-this._scrollX)},o.TilemapLayer.prototype._fixY=function(t){return 1===this.scrollFactorY||0===this.scrollFactorY&&0===this.position.y?t:0===this.scrollFactorY&&0!==this.position.y?t-this.position.y:this._scrollY+(t-this._scrollY/this.scrollFactorY)},o.TilemapLayer.prototype._unfixY=function(t){return 1===this.scrollFactorY?t:this._scrollY/this.scrollFactorY+(t-this._scrollY)},o.TilemapLayer.prototype.getTileX=function(t){return Math.floor(this._fixX(t)/this._mc.tileWidth)},o.TilemapLayer.prototype.getTileY=function(t){return Math.floor(this._fixY(t)/this._mc.tileHeight)},o.TilemapLayer.prototype.getTileXY=function(t,e,i){return i.x=this.getTileX(t),i.y=this.getTileY(e),i},o.TilemapLayer.prototype.getRayCastTiles=function(t,e,i,s){e||(e=this.rayStepRate),void 0===i&&(i=!1),void 0===s&&(s=!1);var n=this.getTiles(t.x,t.y,t.width,t.height,i,s);if(0===n.length)return[];for(var o=t.coordinatesOnLine(e),a=[],r=0;r=0;x++,w--,v+=c){x>=h&&(x-=h);var P=this.layer.data[x];for(b=y,_=n-i,m=p;_>=0;b++,_--,m+=l){b>=r&&(b-=r);var C=P[b];if(C&&!(C.index<0)){var T=C.index,S=u[T];void 0===S&&(S=this.resolveTileset(T)),C.alpha===d||this.debug||(a.globalAlpha=C.alpha,d=C.alpha),S?C.rotation||C.flipped?(a.save(),a.translate(m+C.centerX,v+C.centerY),a.rotate(C.rotation),C.flipped&&a.scale(-1,1),S.draw(a,-C.centerX,-C.centerY,T),a.restore()):S.draw(a,m,v,T):this.debugSettings.missingImageFill&&(a.fillStyle=this.debugSettings.missingImageFill,a.fillRect(m,v,l,c)),C.debug&&this.debugSettings.debuggedTileOverfill&&(a.fillStyle=this.debugSettings.debuggedTileOverfill,a.fillRect(m,v,l,c))}}}},o.TilemapLayer.prototype.renderDeltaScroll=function(t,e){var i=this._mc.scrollX,s=this._mc.scrollY,n=this.canvas.width,o=this.canvas.height,a=this._mc.tileWidth,r=this._mc.tileHeight,h=0,l=-a,c=0,u=-r;if(t<0?(h=n+t,l=n-1):t>0&&(l=t),e<0?(c=o+e,u=o-1):e>0&&(u=e),this.shiftCanvas(this.context,t,e),h=Math.floor((h+i)/a),l=Math.floor((l+i)/a),c=Math.floor((c+s)/r),u=Math.floor((u+s)/r),h<=l){this.context.clearRect(h*a-i,0,(l-h+1)*a,o);var d=Math.floor((0+s)/r),p=Math.floor((o-1+s)/r);this.renderRegion(i,s,h,d,l,p)}if(c<=u){this.context.clearRect(0,c*r-s,n,(u-c+1)*r);var f=Math.floor((0+i)/a),y=Math.floor((n-1+i)/a);this.renderRegion(i,s,f,c,y,u)}},o.TilemapLayer.prototype.renderFull=function(){var t=this._mc.scrollX,e=this._mc.scrollY,i=this.canvas.width,s=this.canvas.height,n=this._mc.tileWidth,o=this._mc.tileHeight,a=Math.floor(t/n),r=Math.floor((i-1+t)/n),h=Math.floor(e/o),l=Math.floor((s-1+e)/o);this.context.clearRect(0,0,i,s),this.renderRegion(t,e,a,h,r,l)},o.TilemapLayer.prototype.render=function(){var t=!1;if(this.visible){(this.dirty||this.layer.dirty)&&(this.layer.dirty=!1,t=!0);var e=this.canvas.width,i=this.canvas.height,s=0|this._scrollX,n=0|this._scrollY,o=this._mc,a=o.scrollX-s,r=o.scrollY-n;if(t||0!==a||0!==r||o.renderWidth!==e||o.renderHeight!==i)return this.context.save(),o.scrollX=s,o.scrollY=n,o.renderWidth===e&&o.renderHeight===i||(o.renderWidth=e,o.renderHeight=i),this.debug&&(this.context.globalAlpha=this.debugSettings.debugAlpha,this.debugSettings.forceFullRedraw&&(t=!0)),!t&&this.renderSettings.enableScrollDelta&&Math.abs(a)+Math.abs(r)=0;x++,w--,v+=h){x>=a&&(x-=a);var P=this.layer.data[x];for(b=y,_=c-l,m=p;_>=0;b++,_--,m+=r){b>=o&&(b-=o);var C=P[b];!C||C.index<0||!C.collides||(this.debugSettings.collidingTileOverfill&&(i.fillStyle=this.debugSettings.collidingTileOverfill,i.fillRect(m,v,this._mc.cw,this._mc.ch)),this.debugSettings.facingEdgeStroke&&(i.beginPath(),C.faceTop&&(i.moveTo(m,v),i.lineTo(m+this._mc.cw,v)),C.faceBottom&&(i.moveTo(m,v+this._mc.ch),i.lineTo(m+this._mc.cw,v+this._mc.ch)),C.faceLeft&&(i.moveTo(m,v),i.lineTo(m,v+this._mc.ch)),C.faceRight&&(i.moveTo(m+this._mc.cw,v),i.lineTo(m+this._mc.cw,v+this._mc.ch)),i.closePath(),i.stroke()))}}},Object.defineProperty(o.TilemapLayer.prototype,"wrap",{get:function(){return this._wrap},set:function(t){this._wrap=t,this.dirty=!0}}),Object.defineProperty(o.TilemapLayer.prototype,"scrollX",{get:function(){return this._scrollX},set:function(t){this._scrollX=t}}),Object.defineProperty(o.TilemapLayer.prototype,"scrollY",{get:function(){return this._scrollY},set:function(t){this._scrollY=t}}),Object.defineProperty(o.TilemapLayer.prototype,"collisionWidth",{get:function(){return this._mc.cw},set:function(t){this._mc.cw=0|t,this.dirty=!0}}),Object.defineProperty(o.TilemapLayer.prototype,"collisionHeight",{get:function(){return this._mc.ch},set:function(t){this._mc.ch=0|t,this.dirty=!0}}),o.TilemapParser={INSERT_NULL:!1,parse:function(t,e,i,s,n,a){if(void 0===i&&(i=32),void 0===s&&(s=32),void 0===n&&(n=10),void 0===a&&(a=10),void 0===e)return this.getEmptyData();if(null===e)return this.getEmptyData(i,s,n,a);var r=t.cache.getTilemapData(e);if(r){if(r.format===o.Tilemap.CSV)return this.parseCSV(e,r.data,i,s);if(!r.format||r.format===o.Tilemap.TILED_JSON)return this.parseTiledJSON(r.data)}},parseCSV:function(t,e,i,s){var n=this.getEmptyData();e=e.trim();for(var a=[],r=e.split("\n"),h=r.length,l=0,c=0;c>>0;a.data=l,delete a.encoding}else if(a.compression)continue;var u={name:a.name,x:a.x,y:a.y,width:a.width,height:a.height,widthInPixels:a.width*t.tilewidth,heightInPixels:a.height*t.tileheight,alpha:a.opacity,visible:a.visible,properties:{},indexes:[],callbacks:[],bodies:[]};a.properties&&(u.properties=a.properties);for(var d=0,p=[],f=[],y,g,m,v,b=0,h=a.data.length;b536870912)switch(v>2147483648&&(v-=2147483648,m+=4),v>1073741824&&(v-=1073741824,m+=2),v>536870912&&(v-=536870912,m+=1),m){case 5:y=Math.PI/2;break;case 6:y=Math.PI;break;case 3:y=3*Math.PI/2;break;case 4:y=0,g=!0;break;case 7:y=Math.PI/2,g=!0;break;case 2:y=Math.PI,g=!0;break;case 1:y=3*Math.PI/2,g=!0}if(v>0){var x=new o.Tile(u,v,d,f.length,t.tilewidth,t.tileheight);x.rotation=y,x.flipped=g,0!==m&&(x.flippedVal=m),p.push(x)}else o.TilemapParser.INSERT_NULL?p.push(null):p.push(new o.Tile(u,-1,d,f.length,t.tilewidth,t.tileheight));d++,d===a.width&&(f.push(p),d=0,p=[])}u.data=f,s.push(u)}i.layers=s;for(var _=[],n=0;n=0&&n+1=this.firstgid&&t=this._timer)if(this._timer=this.game.time.time+this.frequency*this.game.time.slowMotion,0!==this._flowTotal)if(this._flowQuantity>0){for(var t=0;t=this._flowTotal)){this.on=!1;break}}else this.emitParticle()&&(this._counter++,-1!==this._flowTotal&&this._counter>=this._flowTotal&&(this.on=!1));else this.emitParticle()&&(this._counter++,this._quantity>0&&this._counter>=this._quantity&&(this.on=!1));for(var t=this.children.length;t--;)this.children[t].exists&&this.children[t].update()},o.Particles.Arcade.Emitter.prototype.makeParticles=function(t,e,i,s,n){void 0===e&&(e=0),void 0===i&&(i=this.maxParticles),void 0===s&&(s=!1),void 0===n&&(n=!1);var o,a=0,r=t,h=e;for(this._frames=e,i>this.maxParticles&&(this.maxParticles=i);athis.maxParticles&&(i=this.maxParticles),this._counter=0,this._flowQuantity=i,this._flowTotal=s,n?(this.start(!0,t,e,i),this._counter+=i,this.on=!0,this._timer=this.game.time.time+e*this.game.time.slowMotion):this.start(!1,t,e,i),this},o.Particles.Arcade.Emitter.prototype.start=function(t,e,i,s,n){if(void 0===t&&(t=!0),void 0===e&&(e=0),void 0!==i&&null!==i||(i=250),void 0===s&&(s=0),void 0===n&&(n=!1),s>this.maxParticles&&(s=this.maxParticles),this.revive(),this.visible=!0,this.lifespan=e,this.frequency=i,t||n)for(var o=0;o1&&(a=o.between(this.left,this.right)),null!==e?r=e:this.height>1&&(r=o.between(this.top,this.bottom)),n.reset(a,r),n.angle=0,n.lifespan=this.lifespan,this.particleBringToTop?this.bringToTop(n):this.particleSendToBack&&this.sendToBack(n),this.autoScale?n.setScaleData(this.scaleData):1!==this.minParticleScale||1!==this.maxParticleScale?n.scale.set(o.realInRange(this.minParticleScale,this.maxParticleScale)):this._minParticleScale.x===this._maxParticleScale.x&&this._minParticleScale.y===this._maxParticleScale.y||n.scale.set(o.realInRange(this._minParticleScale.x,this._maxParticleScale.x),o.realInRange(this._minParticleScale.y,this._maxParticleScale.y)),void 0===s&&(Array.isArray(this._frames)?n.frame=this.game.rnd.pick(this._frames):n.frame=this._frames),this.autoAlpha?n.setAlphaData(this.alphaData):n.alpha=o.realInRange(this.minParticleAlpha,this.maxParticleAlpha),n.blendMode=this.blendMode;var h=n.body;return h.updateBounds(),h.bounce.copyFrom(this.bounce),h.drag.copyFrom(this.particleDrag),h.velocity.x=o.between(this.minParticleSpeed.x,this.maxParticleSpeed.x),h.velocity.y=o.between(this.minParticleSpeed.y,this.maxParticleSpeed.y),h.angularVelocity=o.between(this.minRotation,this.maxRotation),h.gravity.y=this.gravity,h.angularDrag=this.angularDrag,n.onEmit(),!0},o.Particles.Arcade.Emitter.prototype.destroy=function(){this.game.particles.remove(this),o.Group.prototype.destroy.call(this,!0,!1)},o.Particles.Arcade.Emitter.prototype.setSize=function(t,e){return this.area.width=t,this.area.height=e,this},o.Particles.Arcade.Emitter.prototype.setXSpeed=function(t,e){return t=t||0,e=e||0,this.minParticleSpeed.x=t,this.maxParticleSpeed.x=e,this},o.Particles.Arcade.Emitter.prototype.setYSpeed=function(t,e){return t=t||0,e=e||0,this.minParticleSpeed.y=t,this.maxParticleSpeed.y=e,this},o.Particles.Arcade.Emitter.prototype.setRotation=function(t,e){return t=t||0,e=e||0,this.minRotation=t,this.maxRotation=e,this},o.Particles.Arcade.Emitter.prototype.setAlpha=function(t,e,i,s,n){if(void 0===t&&(t=1),void 0===e&&(e=1),void 0===i&&(i=0),void 0===s&&(s=o.Easing.Linear.None),void 0===n&&(n=!1),this.minParticleAlpha=t,this.maxParticleAlpha=e,this.autoAlpha=!1,i>0&&t!==e){var a={v:t},r=this.game.make.tween(a).to({v:e},i,s);r.yoyo(n),this.alphaData=r.generateData(60),this.alphaData.reverse(),this.autoAlpha=!0}return this},o.Particles.Arcade.Emitter.prototype.setScale=function(t,e,i,s,n,a,r){if(void 0===t&&(t=1),void 0===e&&(e=1),void 0===i&&(i=1),void 0===s&&(s=1),void 0===n&&(n=0),void 0===a&&(a=o.Easing.Linear.None),void 0===r&&(r=!1),this.minParticleScale=1,this.maxParticleScale=1,this._minParticleScale.set(t,i),this._maxParticleScale.set(e,s),this.autoScale=!1,n>0&&(t!==e||i!==s)){var h={x:t,y:i},l=this.game.make.tween(h).to({x:e,y:s},n,a);l.yoyo(r),this.scaleData=l.generateData(60),this.scaleData.reverse(),this.autoScale=!0}return this},o.Particles.Arcade.Emitter.prototype.at=function(t){return t.center?(this.emitX=t.center.x,this.emitY=t.center.y):(this.emitX=t.world.x+t.anchor.x*t.width,this.emitY=t.world.y+t.anchor.y*t.height),this},Object.defineProperty(o.Particles.Arcade.Emitter.prototype,"width",{get:function(){return this.area.width},set:function(t){this.area.width=t}}),Object.defineProperty(o.Particles.Arcade.Emitter.prototype,"height",{get:function(){return this.area.height},set:function(t){this.area.height=t}}),Object.defineProperty(o.Particles.Arcade.Emitter.prototype,"x",{get:function(){return this.emitX},set:function(t){this.emitX=t}}),Object.defineProperty(o.Particles.Arcade.Emitter.prototype,"y",{get:function(){return this.emitY},set:function(t){this.emitY=t}}),Object.defineProperty(o.Particles.Arcade.Emitter.prototype,"left",{get:function(){return Math.floor(this.x-this.area.width/2)}}),Object.defineProperty(o.Particles.Arcade.Emitter.prototype,"right",{get:function(){return Math.floor(this.x+this.area.width/2)}}),Object.defineProperty(o.Particles.Arcade.Emitter.prototype,"top",{get:function(){return Math.floor(this.y-this.area.height/2)}}),Object.defineProperty(o.Particles.Arcade.Emitter.prototype,"bottom",{get:function(){return Math.floor(this.y+this.area.height/2)}}),o.Weapon=function(t,e){o.Plugin.call(this,t,e),this.bullets=null,this.autoExpandBulletsGroup=!1,this.autofire=!1,this.shots=0,this.fireLimit=0,this.fireRate=100,this.fireRateVariance=0,this.fireFrom=new o.Rectangle(0,0,1,1),this.fireAngle=o.ANGLE_UP,this.bulletInheritSpriteSpeed=!1,this.bulletAnimation="",this.bulletFrameRandom=!1,this.bulletFrameCycle=!1,this.bulletWorldWrap=!1,this.bulletWorldWrapPadding=0,this.bulletAngleOffset=0,this.bulletAngleVariance=0,this.bulletSpeed=200,this.bulletSpeedVariance=0,this.bulletLifespan=0,this.bulletKillDistance=0,this.bulletGravity=new o.Point(0,0),this.bulletRotateToVelocity=!1,this.bulletKey="",this.bulletFrame="",this._bulletClass=o.Bullet,this._bulletCollideWorldBounds=!1,this._bulletKillType=o.Weapon.KILL_WORLD_BOUNDS,this._data={customBody:!1,width:0,height:0,offsetX:0,offsetY:0},this.bounds=new o.Rectangle,this.bulletBounds=t.world.bounds,this.bulletFrames=[],this.bulletFrameIndex=0,this.anims={},this.onFire=new o.Signal,this.onKill=new o.Signal,this.onFireLimit=new o.Signal,this.trackedSprite=null,this.trackedPointer=null,this.trackRotation=!1,this.trackOffset=new o.Point,this._nextFire=0,this._rotatedPoint=new o.Point},o.Weapon.prototype=Object.create(o.Plugin.prototype),o.Weapon.prototype.constructor=o.Weapon,o.Weapon.KILL_NEVER=0,o.Weapon.KILL_LIFESPAN=1,o.Weapon.KILL_DISTANCE=2,o.Weapon.KILL_WEAPON_BOUNDS=3,o.Weapon.KILL_CAMERA_BOUNDS=4,o.Weapon.KILL_WORLD_BOUNDS=5,o.Weapon.KILL_STATIC_BOUNDS=6,o.Weapon.prototype.createBullets=function(t,e,i,s){return void 0===t&&(t=1),void 0===s&&(s=this.game.world),this.bullets||(this.bullets=this.game.add.physicsGroup(o.Physics.ARCADE,s),this.bullets.classType=this._bulletClass),0!==t&&(-1===t&&(this.autoExpandBulletsGroup=!0,t=1),this.bullets.createMultiple(t,e,i),this.bullets.setAll("data.bulletManager",this),this.bulletKey=e,this.bulletFrame=i),this},o.Weapon.prototype.forEach=function(t,e){return this.bullets.forEachExists(t,e,arguments),this},o.Weapon.prototype.pauseAll=function(){return this.bullets.setAll("body.enable",!1),this},o.Weapon.prototype.resumeAll=function(){return this.bullets.setAll("body.enable",!0),this},o.Weapon.prototype.killAll=function(){return this.bullets.callAllExists("kill",!0),this.bullets.setAll("body.enable",!0),this},o.Weapon.prototype.resetShots=function(t){return this.shots=0,void 0!==t&&(this.fireLimit=t),this},o.Weapon.prototype.destroy=function(){this.parent.remove(this,!1),this.bullets.destroy(),this.game=null,this.parent=null,this.active=!1,this.visible=!1},o.Weapon.prototype.update=function(){this._bulletKillType===o.Weapon.KILL_WEAPON_BOUNDS&&(this.trackedSprite?(this.trackedSprite.updateTransform(),this.bounds.centerOn(this.trackedSprite.worldPosition.x,this.trackedSprite.worldPosition.y)):this.trackedPointer&&this.bounds.centerOn(this.trackedPointer.worldX,this.trackedPointer.worldY)),this.autofire&&this.fire()},o.Weapon.prototype.trackSprite=function(t,e,i,s){return void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=!1),this.trackedPointer=null,this.trackedSprite=t,this.trackRotation=s,this.trackOffset.set(e,i),this},o.Weapon.prototype.trackPointer=function(t,e,i){return void 0===t&&(t=this.game.input.activePointer),void 0===e&&(e=0),void 0===i&&(i=0),this.trackedPointer=t,this.trackedSprite=null,this.trackRotation=!1,this.trackOffset.set(e,i),this},o.Weapon.prototype.fire=function(t,e,i){if(this.game.time.now0&&this.shots===this.fireLimit)return!1;var s=this.bulletSpeed;0!==this.bulletSpeedVariance&&(s+=o.Math.between(-this.bulletSpeedVariance,this.bulletSpeedVariance)),t?this.fireFrom.width>1?this.fireFrom.centerOn(t.x,t.y):(this.fireFrom.x=t.x,this.fireFrom.y=t.y):this.trackedSprite?(this.trackRotation?(this._rotatedPoint.set(this.trackedSprite.world.x+this.trackOffset.x,this.trackedSprite.world.y+this.trackOffset.y),this._rotatedPoint.rotate(this.trackedSprite.world.x,this.trackedSprite.world.y,this.trackedSprite.rotation),this.fireFrom.width>1?this.fireFrom.centerOn(this._rotatedPoint.x,this._rotatedPoint.y):(this.fireFrom.x=this._rotatedPoint.x,this.fireFrom.y=this._rotatedPoint.y)):this.fireFrom.width>1?this.fireFrom.centerOn(this.trackedSprite.world.x+this.trackOffset.x,this.trackedSprite.world.y+this.trackOffset.y):(this.fireFrom.x=this.trackedSprite.world.x+this.trackOffset.x,this.fireFrom.y=this.trackedSprite.world.y+this.trackOffset.y),this.bulletInheritSpriteSpeed&&(s+=this.trackedSprite.body.speed)):this.trackedPointer&&(this.fireFrom.width>1?this.fireFrom.centerOn(this.trackedPointer.world.x+this.trackOffset.x,this.trackedPointer.world.y+this.trackOffset.y):(this.fireFrom.x=this.trackedPointer.world.x+this.trackOffset.x,this.fireFrom.y=this.trackedPointer.world.y+this.trackOffset.y));var n=this.fireFrom.width>1?this.fireFrom.randomX:this.fireFrom.x,a=this.fireFrom.height>1?this.fireFrom.randomY:this.fireFrom.y,r=this.trackRotation?this.trackedSprite.angle:this.fireAngle;void 0!==e&&void 0!==i&&(r=this.game.math.radToDeg(Math.atan2(i-a,e-n))),0!==this.bulletAngleVariance&&(r+=o.Math.between(-this.bulletAngleVariance,this.bulletAngleVariance));var h=0,l=0;0===r||180===r?h=Math.cos(this.game.math.degToRad(r))*s:90===r||270===r?l=Math.sin(this.game.math.degToRad(r))*s:(h=Math.cos(this.game.math.degToRad(r))*s,l=Math.sin(this.game.math.degToRad(r))*s);var c=null;if(this.autoExpandBulletsGroup?(c=this.bullets.getFirstExists(!1,!0,n,a,this.bulletKey,this.bulletFrame),c.data.bulletManager=this):c=this.bullets.getFirstExists(!1),c){if(c.reset(n,a),c.data.fromX=n,c.data.fromY=a,c.data.killType=this.bulletKillType,c.data.killDistance=this.bulletKillDistance,c.data.rotateToVelocity=this.bulletRotateToVelocity,this.bulletKillType===o.Weapon.KILL_LIFESPAN&&(c.lifespan=this.bulletLifespan),c.angle=r+this.bulletAngleOffset,""!==this.bulletAnimation){if(null===c.animations.getAnimation(this.bulletAnimation)){var u=this.anims[this.bulletAnimation];c.animations.add(u.name,u.frames,u.frameRate,u.loop,u.useNumericIndex)}c.animations.play(this.bulletAnimation)}else this.bulletFrameCycle?(c.frame=this.bulletFrames[this.bulletFrameIndex],++this.bulletFrameIndex>=this.bulletFrames.length&&(this.bulletFrameIndex=0)):this.bulletFrameRandom&&(c.frame=this.bulletFrames[Math.floor(Math.random()*this.bulletFrames.length)]);if(c.data.bodyDirty&&(this._data.customBody&&c.body.setSize(this._data.width,this._data.height,this._data.offsetX,this._data.offsetY),c.body.collideWorldBounds=this.bulletCollideWorldBounds,c.data.bodyDirty=!1),c.body.velocity.set(h,l),c.body.gravity.set(this.bulletGravity.x,this.bulletGravity.y),0!==this.bulletSpeedVariance){var d=this.fireRate;d+=o.Math.between(-this.fireRateVariance,this.fireRateVariance),d<0&&(d=0),this._nextFire=this.game.time.now+d}else this._nextFire=this.game.time.now+this.fireRate;this.shots++,this.onFire.dispatch(c,this,s),this.fireLimit>0&&this.shots===this.fireLimit&&this.onFireLimit.dispatch(this,this.fireLimit)}return c},o.Weapon.prototype.fireAtPointer=function(t){return void 0===t&&(t=this.game.input.activePointer),this.fire(null,t.worldX,t.worldY)},o.Weapon.prototype.fireAtSprite=function(t){return this.fire(null,t.world.x,t.world.y)},o.Weapon.prototype.fireAtXY=function(t,e){return this.fire(null,t,e)},o.Weapon.prototype.setBulletBodyOffset=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),this._data.customBody=!0,this._data.width=t,this._data.height=e,this._data.offsetX=i,this._data.offsetY=s,this.bullets.callAll("body.setSize","body",t,e,i,s),this.bullets.setAll("data.bodyDirty",!1),this},o.Weapon.prototype.setBulletFrames=function(t,e,i,s){return void 0===i&&(i=!0),void 0===s&&(s=!1),this.bulletFrames=o.ArrayUtils.numberArray(t,e),this.bulletFrameIndex=0,this.bulletFrameCycle=i,this.bulletFrameRandom=s,this},o.Weapon.prototype.addBulletAnimation=function(t,e,i,s,n){return this.anims[t]={name:t,frames:e,frameRate:i,loop:s,useNumericIndex:n},this.bullets.callAll("animations.add","animations",t,e,i,s,n),this.bulletAnimation=t,this},o.Weapon.prototype.debug=function(t,e,i){void 0===t&&(t=16),void 0===e&&(e=32),void 0===i&&(i=!1),this.game.debug.text("Weapon Plugin",t,e),this.game.debug.text("Bullets Alive: "+this.bullets.total+" - Total: "+this.bullets.length,t,e+24),i&&this.bullets.forEachExists(this.game.debug.body,this.game.debug,"rgba(255, 0, 255, 0.8)")},Object.defineProperty(o.Weapon.prototype,"bulletClass",{get:function(){return this._bulletClass},set:function(t){this._bulletClass=t,this.bullets.classType=this._bulletClass}}),Object.defineProperty(o.Weapon.prototype,"bulletKillType",{get:function(){return this._bulletKillType},set:function(t){switch(t){case o.Weapon.KILL_STATIC_BOUNDS:case o.Weapon.KILL_WEAPON_BOUNDS:this.bulletBounds=this.bounds;break;case o.Weapon.KILL_CAMERA_BOUNDS:this.bulletBounds=this.game.camera.view;break;case o.Weapon.KILL_WORLD_BOUNDS:this.bulletBounds=this.game.world.bounds}this._bulletKillType=t}}),Object.defineProperty(o.Weapon.prototype,"bulletCollideWorldBounds",{get:function(){return this._bulletCollideWorldBounds},set:function(t){this._bulletCollideWorldBounds=t,this.bullets.setAll("body.collideWorldBounds",t),this.bullets.setAll("data.bodyDirty",!1)}}),Object.defineProperty(o.Weapon.prototype,"x",{get:function(){return this.fireFrom.x},set:function(t){this.fireFrom.x=t}}),Object.defineProperty(o.Weapon.prototype,"y",{get:function(){return this.fireFrom.y},set:function(t){this.fireFrom.y=t}}),o.Bullet=function(t,e,i,s,n){o.Sprite.call(this,t,e,i,s,n),this.anchor.set(.5),this.data={bulletManager:null,fromX:0,fromY:0,bodyDirty:!0,rotateToVelocity:!1,killType:0,killDistance:0}},o.Bullet.prototype=Object.create(o.Sprite.prototype),o.Bullet.prototype.constructor=o.Bullet,o.Bullet.prototype.kill=function(){return this.alive=!1,this.exists=!1,this.visible=!1,this.data.bulletManager.onKill.dispatch(this),this},o.Bullet.prototype.update=function(){this.exists&&(this.data.killType>o.Weapon.KILL_LIFESPAN&&(this.data.killType===o.Weapon.KILL_DISTANCE?this.game.physics.arcade.distanceToXY(this,this.data.fromX,this.data.fromY,!0)>this.data.killDistance&&this.kill():this.data.bulletManager.bulletBounds.intersects(this)||this.kill()),this.data.rotateToVelocity&&(this.rotation=Math.atan2(this.body.velocity.y,this.body.velocity.x)),this.data.bulletManager.bulletWorldWrap&&this.game.world.wrap(this,this.data.bulletManager.bulletWorldWrapPadding))},o.Video=function(t,e,i){if(void 0===e&&(e=null),void 0===i&&(i=null),this.game=t,this.key=e,this.width=0,this.height=0,this.type=o.VIDEO,this.disableTextureUpload=!1,this.touchLocked=!1,this.onPlay=new o.Signal,this.onChangeSource=new o.Signal,this.onComplete=new o.Signal,this.onAccess=new o.Signal,this.onError=new o.Signal,this.onTimeout=new o.Signal,this.timeout=15e3,this._timeOutID=null,this.video=null,this.videoStream=null,this.isStreaming=!1,this.retryLimit=20,this.retry=0,this.retryInterval=500,this._retryID=null,this._codeMuted=!1,this._muted=!1,this._codePaused=!1,this._paused=!1,this._pending=!1,this._autoplay=!1,this._endCallback=null,this._playCallback=null,e&&this.game.cache.checkVideoKey(e)){var s=this.game.cache.getVideo(e);s.isBlob?this.createVideoFromBlob(s.data):this.video=s.data,this.width=this.video.videoWidth,this.height=this.video.videoHeight}else i&&this.createVideoFromURL(i,!1);this.video&&!i?(this.baseTexture=new PIXI.BaseTexture(this.video),this.baseTexture.forceLoaded(this.width,this.height)):(this.baseTexture=new PIXI.BaseTexture(o.Cache.DEFAULT.baseTexture.source),this.baseTexture.forceLoaded(this.width,this.height)),this.texture=new PIXI.Texture(this.baseTexture),this.textureFrame=new o.Frame(0,0,0,this.width,this.height,"video"),this.texture.setFrame(this.textureFrame),this.texture.valid=!1,null!==e&&this.video&&(this.texture.valid=this.video.canplay),this.snapshot=null,o.BitmapData&&(this.snapshot=new o.BitmapData(this.game,"",this.width,this.height)),!this.game.device.cocoonJS&&(this.game.device.iOS||this.game.device.android)||window.PhaserGlobal&&window.PhaserGlobal.fakeiOSTouchLock?this.setTouchLock():s&&(s.locked=!1)},o.Video.prototype={connectToMediaStream:function(t,e){return t&&e&&(this.video=t,this.videoStream=e,this.isStreaming=!0,this.baseTexture.source=this.video,this.updateTexture(null,this.video.videoWidth,this.video.videoHeight),this.onAccess.dispatch(this)),this},startMediaStream:function(t,e,i){if(void 0===t&&(t=!1),void 0===e&&(e=null),void 0===i&&(i=null),!this.game.device.getUserMedia)return this.onError.dispatch(this,"No getUserMedia"),!1;null!==this.videoStream&&(this.videoStream.active?this.videoStream.active=!1:this.videoStream.stop()),this.removeVideoElement(),this.video=document.createElement("video"),this.video.setAttribute("autoplay","autoplay"),null!==e&&(this.video.width=e),null!==i&&(this.video.height=i),this._timeOutID=window.setTimeout(this.getUserMediaTimeout.bind(this),this.timeout);try{navigator.getUserMedia({audio:t,video:!0},this.getUserMediaSuccess.bind(this),this.getUserMediaError.bind(this))}catch(t){this.getUserMediaError(t)}return this},getUserMediaTimeout:function(){clearTimeout(this._timeOutID),this.onTimeout.dispatch(this)},getUserMediaError:function(t){clearTimeout(this._timeOutID),this.onError.dispatch(this,t)},getUserMediaSuccess:function(t){clearTimeout(this._timeOutID),this.videoStream=t,void 0!==this.video.mozSrcObject?this.video.mozSrcObject=t:this.video.src=window.URL&&window.URL.createObjectURL(t)||t;var e=this;this.video.onloadeddata=function(){function t(){if(i>0)if(e.video.videoWidth>0){var s=e.video.videoWidth,n=e.video.videoHeight;isNaN(e.video.videoHeight)&&(n=s/(4/3)),e.video.play(),e.isStreaming=!0,e.baseTexture.source=e.video,e.updateTexture(null,s,n),e.onAccess.dispatch(e)}else window.setTimeout(t,500);i--}var i=10;t()}},createVideoFromBlob:function(t){var e=this;return this.video=document.createElement("video"),this.video.controls=!1,this.video.setAttribute("autoplay","autoplay"),this.video.addEventListener("loadeddata",function(t){e.updateTexture(t)},!0),this.video.src=window.URL.createObjectURL(t),this.video.canplay=!0,this},createVideoFromURL:function(t,e){return void 0===e&&(e=!1),this.texture&&(this.texture.valid=!1),this.video=document.createElement("video"),this.video.controls=!1,e&&this.video.setAttribute("autoplay","autoplay"),this.video.src=t,this.video.canplay=!0,this.video.load(),this.retry=this.retryLimit,this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval),this.key=t,this},updateTexture:function(t,e,i){var s=!1;void 0!==e&&null!==e||(e=this.video.videoWidth,s=!0),void 0!==i&&null!==i||(i=this.video.videoHeight),this.width=e,this.height=i,this.baseTexture.source!==this.video&&(this.baseTexture.source=this.video),this.baseTexture.forceLoaded(e,i),this.texture.frame.resize(e,i),this.texture.width=e,this.texture.height=i,this.texture.valid=!0,this.snapshot&&this.snapshot.resize(e,i),s&&null!==this.key&&(this.onChangeSource.dispatch(this,e,i),this._autoplay&&(this.video.play(),this.onPlay.dispatch(this,this.loop,this.playbackRate)))},complete:function(){this.onComplete.dispatch(this)},play:function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=1),this.game.sound.onMute&&(this.game.sound.onMute.add(this.setMute,this),this.game.sound.onUnMute.add(this.unsetMute,this),this.game.sound.mute&&this.setMute()),this.game.onPause.add(this.setPause,this),this.game.onResume.add(this.setResume,this),this._endCallback=this.complete.bind(this),this.video.addEventListener("ended",this._endCallback,!0),this.video.addEventListener("webkitendfullscreen",this._endCallback,!0),this.video.loop=t?"loop":"",this.video.playbackRate=e,this.touchLocked?this._pending=!0:(this._pending=!1,null!==this.key&&(4!==this.video.readyState?(this.retry=this.retryLimit,this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval)):(this._playCallback=this.playHandler.bind(this),this.video.addEventListener("playing",this._playCallback,!0))),this.video.play(),this.onPlay.dispatch(this,t,e)),this},playHandler:function(){this.video.removeEventListener("playing",this._playCallback,!0),this.updateTexture()},stop:function(){return this.game.sound.onMute&&(this.game.sound.onMute.remove(this.setMute,this),this.game.sound.onUnMute.remove(this.unsetMute,this)),this.game.onPause.remove(this.setPause,this),this.game.onResume.remove(this.setResume,this),this.isStreaming?(this.video.mozSrcObject?(this.video.mozSrcObject.stop(),this.video.src=null):(this.video.src="",this.videoStream.active?this.videoStream.active=!1:this.videoStream.getTracks?this.videoStream.getTracks().forEach(function(t){t.stop()}):this.videoStream.stop()),this.videoStream=null,this.isStreaming=!1):(this.video.removeEventListener("ended",this._endCallback,!0),this.video.removeEventListener("webkitendfullscreen",this._endCallback,!0),this.video.removeEventListener("playing",this._playCallback,!0),this.touchLocked?this._pending=!1:this.video.pause()),this},add:function(t){if(Array.isArray(t))for(var e=0;e0&&(this._retryID=window.setTimeout(this.checkVideoProgress.bind(this),this.retryInterval))},setTouchLock:function(){this.game.input.touch.addTouchLockCallback(this.unlock,this),this.touchLocked=!0},unlock:function(){if(this.touchLocked=!1,this.video.play(),this.onPlay.dispatch(this,this.loop,this.playbackRate),this.key){var t=this.game.cache.getVideo(this.key);t&&!t.isBlob&&(t.locked=!1)}return!0},grab:function(t,e,i){if(void 0===t&&(t=!1),void 0===e&&(e=1),void 0===i&&(i=null),null!==this.snapshot)return t&&this.snapshot.cls(),this.snapshot.copy(this.video,0,0,this.width,this.height,0,0,this.width,this.height,0,0,0,1,1,e,i),this.snapshot},removeVideoElement:function(){if(this.video){for(this.video.parentNode&&this.video.parentNode.removeChild(this.video);this.video.hasChildNodes();)this.video.removeChild(this.video.firstChild);this.video.removeAttribute("autoplay"),this.video.removeAttribute("src"),this.video=null}},destroy:function(){this.stop(),this.removeVideoElement(),this.touchLocked&&this.game.input.touch.removeTouchLockCallback(this.unlock,this),this._retryID&&window.clearTimeout(this._retryID)}},Object.defineProperty(o.Video.prototype,"currentTime",{get:function(){return this.video?this.video.currentTime:0},set:function(t){this.video.currentTime=t}}),Object.defineProperty(o.Video.prototype,"duration",{get:function(){return this.video?this.video.duration:0}}),Object.defineProperty(o.Video.prototype,"progress",{get:function(){return this.video?this.video.currentTime/this.video.duration:0}}),Object.defineProperty(o.Video.prototype,"mute",{get:function(){return this._muted},set:function(t){if(t=t||null){if(this._muted)return;this._codeMuted=!0,this.setMute()}else{if(!this._muted)return;this._codeMuted=!1,this.unsetMute()}}}),Object.defineProperty(o.Video.prototype,"paused",{get:function(){return this._paused},set:function(t){if(t=t||null,!this.touchLocked)if(t){if(this._paused)return;this._codePaused=!0,this.setPause()}else{if(!this._paused)return;this._codePaused=!1,this.setResume()}}}),Object.defineProperty(o.Video.prototype,"volume",{get:function(){return this.video?this.video.volume:1},set:function(t){t<0?t=0:t>1&&(t=1),this.video&&(this.video.volume=t)}}),Object.defineProperty(o.Video.prototype,"playbackRate",{get:function(){return this.video?this.video.playbackRate:1},set:function(t){this.video&&(this.video.playbackRate=t)}}),Object.defineProperty(o.Video.prototype,"loop",{get:function(){return!!this.video&&this.video.loop},set:function(t){t&&this.video?this.video.loop="loop":this.video&&(this.video.loop="")}}),Object.defineProperty(o.Video.prototype,"playing",{get:function(){return!(this.video.paused&&this.video.ended)}}),o.Video.prototype.constructor=o.Video,void 0===PIXI.blendModes&&(PIXI.blendModes=o.blendModes),void 0===PIXI.scaleModes&&(PIXI.scaleModes=o.scaleModes),void 0===PIXI.Texture.emptyTexture&&(PIXI.Texture.emptyTexture=new PIXI.Texture(new PIXI.BaseTexture)),void 0===PIXI.DisplayObject._tempMatrix&&(PIXI.DisplayObject._tempMatrix=new PIXI.Matrix),void 0===PIXI.RenderTexture.tempMatrix&&(PIXI.RenderTexture.tempMatrix=new PIXI.Matrix),PIXI.Graphics&&void 0===PIXI.Graphics.POLY&&(PIXI.Graphics.POLY=o.POLYGON,PIXI.Graphics.RECT=o.RECTANGLE,PIXI.Graphics.CIRC=o.CIRCLE,PIXI.Graphics.ELIP=o.ELLIPSE,PIXI.Graphics.RREC=o.ROUNDEDRECTANGLE),PIXI.TextureSilentFail=!0,void 0!==t&&t.exports&&(e=t.exports=o),e.Phaser=o,o}).call(this)}).call(e,i(61))},function(t,e){function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function n(t){if(u===setTimeout)return setTimeout(t,0);if((u===i||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function o(t){if(d===clearTimeout)return clearTimeout(t);if((d===s||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(t);try{return d(t)}catch(e){try{return d.call(null,t)}catch(e){return d.call(this,t)}}}function a(){f&&y&&(f=!1,y.length?p=y.concat(p):g=-1,p.length&&r())}function r(){if(!f){var t=n(a);f=!0;for(var e=p.length;e;){for(y=p,p=[];++g1)for(var i=1;iparseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return rt}function U(t,e,i){for(var s in at)if(at.hasOwnProperty(s)&&e===t.f[at[s]]&&i===t.f[at[s]])return!0;return!1}function N(t){var e=t.g.a.offsetWidth,i=t.h.a.offsetWidth,s;(s=e===t.f.serif&&i===t.f["sans-serif"])||(s=G()&&U(t,e,i)),s?nt()-t.A>=t.w?G()&&U(t,e,i)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?W(t,t.v):W(t,t.B):j(t):W(t,t.v)}function j(t){setTimeout(a(function(){N(this)},t),50)}function W(t,e){setTimeout(a(function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),e(this.a)},t),0)}function X(t,e,i){this.c=t,this.a=e,this.f=0,this.m=this.j=!1,this.s=i}function H(t){0==--t.f&&t.j&&(t.m?(t=t.a,t.g&&u(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),M(t,"active")):I(t.a))}function V(t){this.j=t,this.a=new O,this.h=0,this.f=this.g=!0}function Y(t,e,i,s,n){var o=0==--t.h;(t.f||t.g)&&setTimeout(function(){var t=n||null,r=s||null||{};if(0===i.length&&o)I(e.a);else{e.f+=i.length,o&&(e.j=o);var h,l=[];for(h=0;h=e.f?n():t.fonts.load(w(e.a),e.h).then(function(t){1<=t.length?s():setTimeout(o,25)},function(){n()})}o()}),n=null,o=new Promise(function(t,i){n=setTimeout(i,e.f)});Promise.race([o,s]).then(function(){n&&(clearTimeout(n),n=null),e.g(e.a)},function(){e.j(e.a)})};var at={D:"serif",C:"sans-serif"},rt=null;F.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=nt(),N(this)};var ht=null;X.prototype.g=function(t){var e=this.a;e.g&&u(e.f,[e.a.c("wf",t.c,C(t).toString(),"active")],[e.a.c("wf",t.c,C(t).toString(),"loading"),e.a.c("wf",t.c,C(t).toString(),"inactive")]),M(e,"fontactive",t),this.m=!0,H(this)},X.prototype.h=function(t){var e=this.a;if(e.g){var i=d(e.f,e.a.c("wf",t.c,C(t).toString(),"active")),s=[],n=[e.a.c("wf",t.c,C(t).toString(),"loading")];i||s.push(e.a.c("wf",t.c,C(t).toString(),"inactive")),u(e.f,s,n)}M(e,"fontinactive",t),H(this)},V.prototype.load=function(t){this.c=new r(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,q(this,new A(this.c,t),t)},z.prototype.load=function(t){function e(){if(o["__mti_fntLst"+s]){var i=o["__mti_fntLst"+s](),n=[],a;if(i)for(var r=0;rt.game.height?t.handleCorrect():t.handleIncorrect():o.Constants.PORTRAIT_LOCKED&&(t.game.widtht.game.height?t.handleCorrect():t.handleIncorrect():o.Constants.PORTRAIT_LOCKED&&(t.game.widths?s/a:s/n,o.Constants.WIDTH=720,o.Constants.HEIGHT=480,o.Constants.CALCULATED_WIDTH=Math.ceil(i*r),o.Constants.CALCULATED_HEIGHT=Math.ceil(s*r),t.setGameSize(o.Constants.CALCULATED_WIDTH,o.Constants.CALCULATED_HEIGHT),t.setUserScale(1/r,1/r),o.Constants.LANDSCAPE_LOCKED&&(t.game.width>t.game.height?(document.getElementById("orientation").style.display="none",document.getElementById("content").style.display="block"):(document.getElementById("orientation").style.display="block",document.getElementById("content").style.display="none"))},e.setScaling=function(t){var e=window.innerWidth>window.innerHeight?window.innerWidth:window.innerHeight;e*=t.device.pixelRatio,o.Constants.GAME_SCALE=1},e.prototype.preload=function(){var t=this;this.game.load.cacheBuster=1601645322631;var e="x"+o.Constants.GAME_SCALE+"/";o.Images.preloadList.forEach(function(i){t.game.load.image(i,"assets/images/"+e+i+".png")}),o.JSONData.preloadList.forEach(function(e){t.game.load.json(e,"assets/levels/"+e+".json")}),o.Atlases.preloadList.forEach(function(i){t.game.load.atlas(i,"assets/atlases/"+e+i+".png","assets/atlases/"+e+i+".json")}),o.Sounds.preloadList.forEach(function(e){t.game.device.iOS?t.game.load.audio(e,["assets/sounds/"+e+".m4a"]):t.game.load.audio(e,["assets/sounds/"+e+".ogg","assets/sounds/"+e+".mp3"])})},e.prototype.create=function(){n.default.hide(),this.game.state.start(a.default.Name)},e.prototype.handleCorrect=function(){document.getElementById("orientation").style.display="none",document.getElementById("content").style.display="block"},e.prototype.handleIncorrect=function(){document.getElementById("orientation").style.display="block",document.getElementById("content").style.display="none"},e.Name="boot",e}(Phaser.State);e.default=l},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){}return t.show=function(){var t=document.getElementById("loader");t&&(t.style.display="block")},t.hide=function(){var t=document.getElementById("loader");t&&(t.style.display="none")},t}();e.default=s},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){this.updated=[],this.restarted=[],this.objects=[],this.game=null}return t.prototype.start=function(){this.view.start(),this.physics.start()},t.prototype.init=function(t){this.game=t},t.prototype.add=function(t){this.objects.push(t),t.update&&(this.updatedLen=this.updated.push(t)),t.restart&&this.restarted.push(t),t.body&&this.physics.add(t),t.graphic&&this.view.add(t)},t.prototype.update=function(t){this.physics.update(t);for(var e=0;eNumber(n)&&(this.save[t.RACE_PREFIX+e.toString()+t.RACE_RESULT]=i);var o=this.save[t.RACE_PREFIX+e.toString()+t.RACE_TIME];return s0&&(!0!==this.save["skin"+t]&&(this.save["skin"+t]=!0,!0))},t.LAST_ENTER="l_e",t.RACE_PREFIX="r_",t.RACE_RESULT="_r",t.RACE_SCORE="_s",t.RACE_TIME="_t",t}();e.Inventory=n},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){this.skins={}}return t}();e.LeagueVO=s},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){}return t}();e.MapVO=s},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){this.assetsReady=!1,this.restarted=!1,this.gravityY=1400,this.countdown=0,this.timer=0,this.startX=0,this.finishX=0,this.skinId=1,this.delayForMaks=.2}return t.prototype.reset=function(){this.assetsReady=!1,this.restarted=!1,this.startX=this.finishX=0,this.restart()},t.prototype.restart=function(){this.flip=0,this.delayForMaks=.2},t}();e.RaceData=s},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(t,e){this.width=t.width,this.dx=t.x,this.texture=e,this.point=new Phaser.Point(0,t.y)}return t}();e.BgElVo=s},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){this.req_id=1}return t}();e.ShopCarVO=s},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){}return t.cars=[],t.carsCount=0,t}();e.ShopData=s},function(t,e,i){"use strict";e.__esModule=!0;var s=Phaser.Signal,n=nape.constraint.AngleJoint,o=nape.constraint.DistanceJoint,a=nape.constraint.LineJoint,r=nape.constraint.WeldJoint,h=nape.geom.GeomPoly,l=nape.geom.GeomPolyList,c=nape.geom.Vec2,u=nape.phys.Body,d=nape.phys.BodyType,p=nape.phys.Material,f=nape.shape.Circle,y=nape.shape.Polygon,g=i(0),m=i(4),v=i(7),b=i(10),x=i(6),_=i(5),w=i(8),P=i(87),C=i(1),T=i(2),S=function(){function t(){this.complete=new s}return t.prototype.createAllCars=function(){this.cars=g.CarsData.cars,this.createPlayerCar(),this.carsCreated()},t.prototype.carsCreated=function(){var t=g.CarsData.cars.cars;this.playerParams=null,t=null,this.complete.dispatch(this)},t.prototype.dispose=function(){this.complete.removeAll()},t.prototype.createPlayerCar=function(){this.playerParams=g.CarsData.params;var e=g.CarsData.cars.player.x,i=g.CarsData.cars.player.y,s=t.createCar(this.playerParams,e,i,!0,!1);s.controller=new g.PlayerController(s),s.frontWheel.graphic.createGroundParts(),s.backWheel.graphic.createGroundParts(),s.frame.graphic.createSmokeParts(),m.MaxGameCore.instance.car=s},t.createWheel=function(t,e,i,s){var r=i?t.wheelBackFriction:t.wheelFrontFriction,h=i?t.wheelBackDensity:t.wheelFrontDensity,l=new u(d.DYNAMIC);l.disableCCD=!0;var y=new p(0,r,r,h),m=i?t.wheelBackR:t.wheelFrontR,x;x=new f(m,null,y,v.Filters.WHEEL),l.cbTypes.add(b.CbTypes.WHEEL),l.shapes.add(x),l.compound=e;var w;w=i?-t.wheelBackDx:t.wheelFrontDx;var P=i?t.axisBackY:t.axisFrontY,C=i?t.axisBackLen:t.axisFrontLen,T=i?t.damperBackY:t.damperFrontY,S=i?t.damperBackLen:t.damperFrontLen,A=2*S,E=i?t.damperBackFreq:t.damperFrontFreq,I=i?t.damperBackDamp:t.damperFrontDamp;l.position.setxy(s.position.x+w,s.position.y+S);var M=c.fromPolar(1,i?t.axisBackAngle:t.axisFrontAngle),O=new a(s,l,c.weak(w,P),c.weak(),M,0,C);O.compound=l.compound,M.dispose();var R=new o(s,l,c.weak(w,T),c.weak(),S,A);R.frequency=E,R.damping=I,R.ignore=!0,R.stiff=!1,R.compound=l.compound;var B=new g.WheelObject;if(!i){var k=new n(s,l,0,0,1);k.active=!1,k.stiff=!1,k.damping=100,k.compound=l.compound,B.brakeJoint=k}return B.skinId=t.skinId,B.body=l,B.graphic=_.GraphicUtil.createCarWheelGraphic(t,i?t.wheelBackR:t.wheelFrontR,i),B.material=y,B.lineJoint=O,B.distanceJoint=R,B.isPlayer=!0,B.create(),B},t.createDriver=function(t,e,i){var s=i.body,n=new g.DriverObject,o=new u(d.DYNAMIC),a=new p(0,0,0,t.driverDensity,.001);o.shapes.add(new y(y.box(t.driverW,t.driverH,!0),a,v.Filters.NOTHING)),o.userData.dx=0,o.userData.dy=t.driverDy,n.body=o,o.compound=e;var h=new r(s,o,c.weak(0,t.driverDy),c.weak(),0);h.ignore=!0,h.compound=o.compound,n.weld=h,n.dx=t.driverDx,n.create();var l=g.CarsData.geom[1],f=s.position.x,m=s.position.y,C=w.Materials.DEFAULT,S="driver_shin",A=l[S],E=new P.DriverPartObject;E.graphic=_.GraphicUtil.createImage(f+A.x,m+A.y,A.r,T.AssetsStorage.instance.getByKey(S)),E.body=g.NapeUtil.createRectBodyWH(d.DYNAMIC,v.Filters.DRIVER_PART,!1,A.w,A.h,A.x+f,A.y+m,A.r,b.CbTypes.DRIVER_PART,C),E.body.compound=e,E.create(A);var I=new P.DriverPartObject;I.graphic=_.GraphicUtil.createImage(f+A.x,m+A.y,A.r,T.AssetsStorage.instance.getByKey(S)),I.body=g.NapeUtil.createRectBodyWH(d.DYNAMIC,v.Filters.DRIVER_PART,!1,A.w,A.h,A.x+f,A.y+m,A.r,b.CbTypes.DRIVER_PART,C),I.body.compound=e,I.create(A),S="driver_hip",A=l[S];var M=new P.DriverPartObject;M.graphic=_.GraphicUtil.createImage(f+A.x,m+A.y,A.r,T.AssetsStorage.instance.getByKey(S)),M.body=g.NapeUtil.createRectBodyWH(d.DYNAMIC,v.Filters.DRIVER_PART,!1,A.w,A.h,A.x+f,A.y+m,A.r,b.CbTypes.DRIVER_PART,C),M.body.compound=e,M.create(A);var O=new P.DriverPartObject;O.graphic=_.GraphicUtil.createImage(f+A.x,m+A.y,A.r,T.AssetsStorage.instance.getByKey(S)),O.body=g.NapeUtil.createRectBodyWH(d.DYNAMIC,v.Filters.DRIVER_PART,!1,A.w,A.h,A.x+f,A.y+m,A.r,b.CbTypes.DRIVER_PART,C),O.body.compound=e,O.create(A),S="driver_corpse",A=l[S];var R=new P.DriverPartObject;R.graphic=_.GraphicUtil.createImage(f+A.x,m+A.y,A.r,T.AssetsStorage.instance.getByKey(S)),R.body=g.NapeUtil.createRectBodyWH(d.DYNAMIC,v.Filters.DRIVER_PART,!1,A.w,A.h,A.x+f,A.y+m,A.r,b.CbTypes.DRIVER_PART,C),R.body.compound=e,R.create(A),S="driver_arm",A=l[S];var B=new P.DriverPartObject;B.graphic=_.GraphicUtil.createImage(f+A.x,m+A.y,A.r,T.AssetsStorage.instance.getByKey(S)),B.body=g.NapeUtil.createRectBodyWH(d.DYNAMIC,v.Filters.DRIVER_PART,!1,A.w,A.h,A.x+f,A.y+m,A.r,b.CbTypes.DRIVER_PART,C),B.body.compound=e,B.create(A);var k=new P.DriverPartObject;k.graphic=_.GraphicUtil.createImage(f+A.x,m+A.y,A.r,T.AssetsStorage.instance.getByKey(S)),k.body=g.NapeUtil.createRectBodyWH(d.DYNAMIC,v.Filters.DRIVER_PART,!1,A.w,A.h,A.x+f,A.y+m,A.r,b.CbTypes.DRIVER_PART,C),k.body.compound=e,k.create(A),S="driver_forearm",A=l[S];var D=new P.DriverPartObject;D.graphic=_.GraphicUtil.createImage(f+A.x,m+A.y,A.r,T.AssetsStorage.instance.getByKey(S)),D.body=g.NapeUtil.createRectBodyWH(d.DYNAMIC,v.Filters.DRIVER_PART,!1,A.w,A.h,A.x+f,A.y+m,A.r,b.CbTypes.DRIVER_PART,C),D.body.compound=e,D.create(A);var L=new P.DriverPartObject;L.graphic=_.GraphicUtil.createImage(f+A.x,m+A.y,A.r,T.AssetsStorage.instance.getByKey(S)),L.body=g.NapeUtil.createRectBodyWH(d.DYNAMIC,v.Filters.DRIVER_PART,!1,A.w,A.h,A.x+f,A.y+m,A.r,b.CbTypes.DRIVER_PART,C),L.body.compound=e,L.create(A),S="driver_head",A=l[S];var F=new P.DriverPartObject;F.graphic=_.GraphicUtil.createImage(f+A.x,m+A.y,A.r,T.AssetsStorage.instance.getByKey(S)),F.body=g.NapeUtil.createRectBodyWH(d.DYNAMIC,v.Filters.DRIVER_PART,!1,A.w,A.h,A.x+f,A.y+m,A.r,b.CbTypes.DRIVER,C),F.body.compound=e,F.create(A);var G=10*x.default.TO_RAD;return E.createJoints(M,l.hip_joint,f,m,G),I.createJoints(O,l.hip_joint,f,m,G),M.createJoints(R,l.corpse_joint,f,m,G),O.createJoints(R,l.corpse_joint,f,m,G),D.createJoints(B,l.forearm_joint,f,m,G),L.createJoints(k,l.forearm_joint,f,m,G),B.createJoints(R,l.arm_joint,f,m,G),k.createJoints(R,l.arm_joint,f,m,G),F.createJoints(R,l.head_joint,f,m,G),n.frameBody=i.body,n.connectArm(D,l.steer_joint,f,m,G),n.connectLeg(E,l.shin_joint,f,m,G),n.parts[0]=F,n.parts[1]=R,n.parts[2]=M,n.parts[3]=E,n.parts[4]=B,n.parts[5]=D,n.parts_mirror[0]=null,n.parts_mirror[1]=null,n.parts_mirror[2]=O,n.parts_mirror[3]=I,n.parts_mirror[4]=k,n.parts_mirror[5]=L,n},t.createFrame=function(e,i,s,n){var o=new g.FrameObject,a=new u(d.DYNAMIC,c.weak(i,s));a.cbTypes.add(b.CbTypes.BODY_COLLIDER);var r=new p(0,0,0,e.bodyDensity,.001),l;0===e.bodyMassType?(l=new y(y.box(.5*e.bodyW,e.bodyH,!0),r,v.Filters.NOTHING),l.translate(c.weak(-e.wheelBackDx,0)),a.shapes.add(l),l=new y(y.box(.5*e.bodyW,e.bodyH,!0),r,v.Filters.NOTHING),l.translate(c.weak(e.wheelFrontDx,0)),a.shapes.add(l)):a.shapes.add(new y(y.box(e.bodyW,e.bodyH,!0),r,v.Filters.NOTHING));var f;f=v.Filters.BODY_COLLIDER;var m=g.CarsData.geom[1];if(m){var x=m.points;if(null!==x){for(var P=[],C=x.length,T=0;T>0,x[T].y>>0);var S=new h(P);if(S.isConvex())l=new y(S,w.Materials.WIEGHTLESS,f),S.dispose(),a.shapes.add(l);else{for(S.convexDecomposition(!1,t.polyList),S.dispose();!t.polyList.empty();)S=t.polyList.pop(),l=new y(S,w.Materials.WIEGHTLESS,f),a.shapes.add(l),S.dispose();t.polyList.clear()}}}return a.align(),a.compound=n,a.userData.skinId=e.skinId,o.body=a,o.skinId=e.skinId,o.graphic=_.GraphicUtil.createCarFrameGraphic(e,m),o.create(e),o},t.createCar=function(e,i,s,n,o){var a=new g.BikeObject,r=t.createFrame(e,i,s,a.compound);a.frame=r;var h;h=t.createWheel(e,a.compound,!0,r.body),a.backWheel=h,h=t.createWheel(e,a.compound,!1,r.body),a.frontWheel=h,a.brakeJoint=h.brakeJoint;var l;e.driverDensity>0&&(l=t.createDriver(e,a.compound,r),a.driver=l),a.backWheel.brakeMaterial=a.backWheel.material.copy(),a.backWheel.brakeMaterial.dynamicFriction=a.backWheel.brakeMaterial.staticFriction=.1*a.backWheel.material.staticFriction;var u=g.Inventory.instance.skin,d=g.CarsData.geom[1],p;d.suspend_back&&(p=new g.DecorObject(!0),p.graphic=_.GraphicUtil.createImage(0,0,0,T.AssetsStorage.instance.getByKey("suspend_back")),a.suspendBack=p,p.type=C.ObjectTypes.CAR,a.suspendBackLocal=c.get(d.suspend_back.x,d.suspend_back.y),a.suspendBackW=d.suspend_back_w),d.suspend_front&&(p=new g.DecorObject(!0),p.graphic=_.GraphicUtil.createImage(0,0,0,T.AssetsStorage.instance.getByKey("suspend_front")),a.suspendFront=p,a.suspendFrontAngle=e.axisFrontAngle,p.type=C.ObjectTypes.CAR),a.create(e),a.x=i,a.y=s,a.rotation=0;var f=m.MaxGameCore.instance,y=!1;f.add(a.backWheel),f.add(a.frontWheel);var v=!1;return 5===g.Inventory.instance.skin&&(v=!0,a.suspendFront&&f.add(a.suspendFront),y=!0,a.suspendBack&&f.add(a.suspendBack)),f.add(a.frame),v||a.suspendFront&&f.add(a.suspendFront),y||a.suspendBack&&f.add(a.suspendBack),a.driver&&(f.add(a.driver),a.driver.activateMirrorParts(!0),f.add(a.driver.parts_mirror[4]),f.add(a.driver.parts_mirror[5]),f.add(a.driver.parts_mirror[2]),f.add(a.driver.parts_mirror[3]),a.driver.activateMirrorParts(!1),f.add(a.driver.parts[1]),f.add(a.driver.parts[0]),f.add(a.driver.parts[2]),f.add(a.driver.parts[3]),f.add(a.driver.parts[4]),f.add(a.driver.parts[5]),a.driver.parts_mirror[2].body.userData.handler=a,a.driver.parts_mirror[3].body.userData.handler=a,a.driver.parts_mirror[4].body.userData.handler=a,a.driver.parts_mirror[5].body.userData.handler=a,a.driver.parts[0].body.userData.handler=a,a.driver.parts[1].body.userData.handler=a,a.driver.parts[2].body.userData.handler=a,a.driver.parts[3].body.userData.handler=a,a.driver.parts[4].body.userData.handler=a,a.driver.parts[5].body.userData.handler=a),l&&l.head&&f.add(l.head.trailAnimObject),f.add(a),o||(a.id=g.CarsData.cars.cars.length,g.CarsData.cars.cars.push(a)),a},Object.defineProperty(t,"instance",{get:function(){return null===t._instance&&(t._instance=new t),t._instance},enumerable:!0,configurable:!0}),t.polyList=new l,t}();e.CarBuilder=S},function(t,e,i){"use strict";e.__esModule=!0;var s=function(){function t(){this.useEvent=!1,this.init()}return t.prototype.init=function(){this.useEvent="function"==typeof Event},t.prototype.dispatchEvent=function(t){var e;this.useEvent?e=new Event(t):(e=document.createEvent("Event"),e.initEvent(t,!0,!0)),document.getElementById("content").dispatchEvent(e)},t.prototype.dispatchCustomEvent=function(t,e){var i;this.useEvent?i=new CustomEvent(t,e):(i=document.createEvent("CustomEvent"),i.initCustomEvent(t,!0,!0,e.detail)),document.getElementById("content").dispatchEvent(i)},t.getInstance=function(){return t.instance||(t.instance=new t),this.instance},t}();e.default=s},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=nape.constraint.AngleJoint,o=nape.constraint.PivotJoint,a=nape.constraint.WeldJoint,r=nape.geom.Vec2,h=i(0),l=i(1),c=i(36),u=i(16),d=function(t){function e(){var e=t.call(this)||this;return e.started=!1,e}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null),this.body.userData.graphicEx=this.graphic,this.type=l.ObjectTypes.CAR,this.body.userData.dx=t.x,this.body.userData.dy=t.y,this.body.userData.dr=t.r,this.compound=this.body.compound,this.pinJoint=new a(this.body,null,r.weak(),r.weak()),this.pinJoint.active=!1,this.pinJoint.compound=this.compound,this.body.userData.driverPart=this,this.effector=new h.BodyEffector(this.body)},e.prototype.pinTo=function(t){if(!this.pinJoint.active){this.pinJoint.body2=t;var e=t.worldPointToLocal(this.body.position);this.pinJoint.anchor2=e,e.dispose(),this.pinJoint.phase=t.rotation-this.body.rotation,this.pinJoint.active=!0}},e.prototype.restart=function(){if(this.body.allowMovement=this.body.allowRotation=!0,this.trail&&this.trail.init(this.body.position.x,this.body.position.y),this.trailAnimObject){this.trailAnimObject.graphic.position.set(this.body.position.x,this.body.position.y)}this.started=!1},e.prototype.connect=function(t){this.pivotJoint&&(this.pivotJoint.active=t),this.angleJoint&&(this.angleJoint.active=t,t&&(this.angleJointStiff.jointMin=this.basePhase-this.deltaAngle,this.angleJointStiff.jointMax=this.basePhase+this.deltaAngle),this.angleJointStiff.active=t),t&&this.trail&&this.trail.init(this.body.position.x,this.body.position.y),this.trailAnimObject&&(this.trailAnimObject.graphic.visible=t),this.pinJoint.active=!1,this.pinJoint.body2=null},e.prototype.move=function(t,e){this.angleJointStiff.jointMin=this.basePhase-this.deltaAngle+t*e,this.angleJointStiff.jointMax=this.basePhase+this.deltaAngle+t*e,this.angleJoint.jointMin=this.basePhase+t*e,this.angleJoint.jointMax=this.basePhase+t*e},e.prototype.release=function(){this.compound=null,this.pivotJoint&&(this.pivotJoint.body1=null,this.pivotJoint.body2=null,this.pivotJoint.compound=null,this.angleJoint.body1=null,this.angleJoint.body2=null,this.angleJoint.compound=null,this.angleJointStiff.body1=null,this.angleJointStiff.body2=null,this.angleJointStiff.compound=null),u.NapeUtil.disposeJoint(this.pinJoint),this.pinJoint=null,this.trail&&(this.trail=null),this.trailAnimObject&&(this.trailAnimObject=null),this.effector.dispose(),this.effector=null,t.prototype.release.call(this)},e.prototype.createJoints=function(t,e,i,s,a){void 0===a&&(a=0);var h=r.get(i+e.x,s+e.y),l=this.body.worldPointToLocal(h),c=t.body.worldPointToLocal(h);this.pivotJoint=new o(this.body,t.body,l,c),this.pivotJoint.compound=this.body.compound;var u=t.body.rotation-this.body.rotation;this.basePhase=u,this.deltaAngle=a,a>0&&(this.angleJoint=new n(this.body,t.body,u,u,1),this.angleJoint.stiff=!1,this.angleJoint.damping=1,this.angleJoint.frequency=10,this.angleJoint.compound=this.body.compound,this.angleJointStiff=new n(this.body,t.body,u-a,u+a,1),this.angleJointStiff.compound=this.body.compound),l.dispose(),c.dispose(),h.dispose()},e.prototype.disableMuscles=function(){this.angleJoint&&(this.angleJoint.active=!1,this.angleJointStiff.jointMin=this.basePhase-5*this.deltaAngle,this.angleJointStiff.jointMax=this.basePhase+5*this.deltaAngle)},e.prototype.createTrail=function(){this.trail=new c.TrailParticlesSystem,this.trail.init(this.body.position.x,this.body.position.y)},e.prototype.update=function(t){if(this.trailAnimObject){var e=this.trailAnimObject.graphic;e.position.set(this.body.position.x,this.body.position.y);var i=this.body.velocity,s=i.length;if((this.started||s>400)&&(this.started=!0,s>50)){var n=i.angle;n>.25*Math.PI?n=.25*Math.PI:n<-.25*Math.PI&&(n=-.25*Math.PI),e.rotation=n}}this.effector.update(t)},e}(h.GameObject);e.DriverPartObject=d},function(t,e,i){"use strict";e.__esModule=!0;var s=Phaser.Signal,n=i(0),o=i(0),a=i(0),r=i(4),h=i(89),l=i(20),c=i(91),u=function(){function t(){this.complete=new s,this.handlers={}}return t.prototype.start=function(){this.parseParams(),this.parseLayers(),this.buildBg(),r.MaxGameCore.instance.initialDeactivate(),this.complete.dispatch(this)},t.prototype.parseParams=function(){var t=n.RacesData.map.settings;n.RacesData.data.gravityY=t.gravityY,a.MaxPhysics.space.gravity.setxy(0,n.RacesData.data.gravityY),n.RacesData.data.countdown=0},t.prototype.buildBg=function(){var t=new n.BgObject;t.create();var e=1,i=t.layer0.height;e=a.GraphicUtil.game.width/a.GraphicUtil.game.height>=l.default.WIDTH/l.default.HEIGHT?a.GraphicUtil.game.width/l.default.WIDTH:a.GraphicUtil.game.height/l.default.HEIGHT,t.layer0.scale.set(e),t.layer0.y=i-t.layer0.height,t.layer1W=t.layer0.width,r.MaxGameCore.instance.add(t)},t.prototype.parseLayers=function(){r.MaxGameCore.instance;for(var t=n.RacesData.map,e=t.layers,i=e.length,s=0;s=0?new n.GroundObject:i.indexOf("BonesPather")>=0?new n.GroundObject:i.indexOf("LandscapeShaper")>=0||i.indexOf("FinishShaper")>=0?new n.ShaperObject:i.indexOf("WaterShaper")>=0?new n.WaterObject:i.indexOf("GeyserE")>=0?new h.GeyserObject:i.indexOf("MoverPather")>=0?new n.MoverPatherObject:i.indexOf("DynamicPather")>=0||i.indexOf("PillarPather")>=0?new n.PlankObject:0===i.indexOf("Glass")?new n.GlassBlock:"TiltZone"===i||"BrakeZone"===i?new n.WaypointObject:"Dec2_1"===i?new n.DecorMultiObject(e<=1):0===i.indexOf("Dec")||0===i.indexOf("Sign")||0===i.indexOf("Pillar")?null!==t.params.id&&t.params.id>=0?new o.DecorActObject(e<=1):new o.DecorObject(e<=1):"BarrelE"===i||0===i.indexOf("Plank")?new o.DynamicBodyObject:0===i.indexOf("VecDec_")?new o.VectorDecor:"SphereE"===i?new c.SphereObject:"ToggleE"===i?new o.ToggleObject:"BoostE"===i?new o.BoostObject:"SafePointE"===i?new o.SafePointObject:"MotorJointE"===i?new o.MotorObject:"PivotJointE"===i?new o.PivotObject:"CameraZoneE"===i?new a.CameraZone:"SpikesE"===i?new a.SpikesObject:0===i.indexOf("Removed")?new a.RemovedBodyObjects:0===i.indexOf("Tnt")?new a.TntObject:"FinishZone"===i?new a.FinishObject:i.indexOf("Ball")>=0?new o.DynamicBodyObject:null},t.prototype.dispose=function(){this.complete.removeAll()},t}();e.RaceBuilder=u},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=nape.phys.BodyType,o=i(0),a=i(5),r=i(10),h=i(7),l=i(1),c=i(6),u=i(8),d=i(2),p=i(90),f=function(t){function e(){var i=t.call(this)||this;return i.parts=new Array(e.PART_COUNT),i.id=-1,i.safeId=-1,i}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null),this.type=l.ObjectTypes.OBJECT;var e=t.params,i=e.x,s=e.y;null!=e.id&&(this.id=e.id),null!=e.safeId&&(this.safeId=e.id),this.emitCounter=0,this.emitRate=null==e.rate?1:e.rate,this.body=o.NapeUtil.createRectBodyWH(n.STATIC,h.Filters.SENSOR,!0,e.width,e.height,i,s,c.default.TO_RAD*e.rotation,r.CbTypes.GEYSER,u.Materials.DEFAULT),this.width=e.width;var p=this.body.rotation,f=t.params.speed;this.velX=f*Math.cos(p),this.velY=f*Math.sin(p);var y=a.GraphicUtil.game.add.group();this.graphic=y;var g=d.AssetsStorage.instance;this.partPos=0,this.partMinX=-.5*this.width+16,this.partDeltaX=32;var m=a.GraphicUtil.game.add.sprite(0,0,a.GraphicUtil.currentAtlass,"GeyserBase0000");m.x=-.5*this.width,m.anchor.set(.7,.5),y.addChild(m),this.anim=a.GraphicUtil.createMovieClip(null,g.getByKey("geyser_anim"),15,!0),this.anim=a.GraphicUtil.game.add.sprite(0,0,a.GraphicUtil.currentAtlass,"geyser_anim0000"),this.anim.animations.add("geyser_anim",Phaser.Animation.generateFrameNames("geyser_anim",0,5,"",4)),this.anim.anchor.set(-.1,.5),this.anim.animations.getAnimation("geyser_anim").play(30,!0),this.anim.x=m.x,y.addChild(this.anim),this.createBoostParts(1e3,this.width/f),this.partMinY=-.5*e.height,this.partDeltaY=e.height,this.body.userData.handler=this,this.activate(this.id<0),y.x=this.body.position.x,y.y=this.body.position.y,y.rotation=c.default.TO_RAD*e.rotation},e.prototype.createBoostParts=function(t,i){for(var s=0;s=0)for(;t>0;){var i=this.parts[this.partPos],s=this.partMinX+Math.random()*this.partDeltaX,n=this.partMinY+Math.random()*this.partDeltaY;i.emit(s,n),this.partPos++,this.partPos>=e.PART_COUNT&&(this.partPos=0),t--}},e.prototype.update=function(t){if(void 0===t&&(t=0),this.active){this.emitCounter+=this.emitRate;var i=this.emitCounter>>0;if(this.emit(i),this.emitCounter-=i,this.partPos>=0)for(var s=0;s=0&&this.activate(!1)},e.PART_COUNT=60,e}(o.GameObject);e.GeyserObject=f},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(0),o=function(t){function e(e,i){var s=t.call(this,n.GraphicUtil.game,0,0,n.GraphicUtil.currentAtlass,"particle_boost0000")||this;return s.scaleSpeed=4,s.alphaSpeed=1,s.velocity=e,s.alphaSpeed=.9/i,s.scaleSpeed=1.5/i,s.ttl=i,s.anchor.set(.5),s.visible=!1,s}return s(e,t),e.prototype.update=function(t){void 0===t&&(t=0),this.visible&&(this.x+=this.velX*t,this.scale.x-=this.scaleSpeed*t,this.timer+=t,this.timer>=this.ttl&&(this.visible=!1))},e.prototype.emit=function(t,e){this.visible=!0,this.timer=0,this.x=t,this.y=e,this.velX=this.velocity*(.95+.1*Math.random()),this.scale.x=2,this.alpha=1},e}(Phaser.Sprite);e.GeyserPartClip=o},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=nape.constraint.LineJoint,o=nape.constraint.DistanceJoint,a=nape.phys.Material,r=nape.phys.BodyType,h=nape.geom.Vec2,l=i(0),c=i(1),u=i(6),d=i(8),p=i(7),f=i(5),y=i(2),g=i(30),m=function(t){function e(){var e=t.call(this)||this;return e.id=-1,e}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null),this.space=g.NapePhysics.space,this.type=c.ObjectTypes.OBJECT,null!=t.params.id&&(this.id=t.params.id);var e=y.AssetsStorage.instance,i=t.className,s=e.getByKey(i+"_data"),m=t.params,v=m.x,b=m.y,x=m.len,_=b+x;b=_-m.pos*x;var w=m.rotation*u.default.TO_RAD,P=null==m.scale?1:m.scale,C=p.Filters.GROUND,T=f.GraphicUtil.createImageWithObj(m,i);this.graphic=T,this.graphic.y=b,T.scale.set(P),T.anchor.set(.5,.5);var S;S=1!=m.density?new a(m.density):d.Materials.DEFAULT,this.body=l.NapeUtil.createCircleBody(r.DYNAMIC,C,!1,.5*s.w*P,v,b,w,null,S),this.body.allowRotation=!1,l.NapeUtil.setupStartPos(this.body),this.body.userData.graphicEx=this.graphic,this.lineJoint=new n(this.space.world,this.body,h.weak(v,_),h.weak(),h.weak(0,-1),0,x),this.distanceJoint=new o(this.space.world,this.body,h.weak(v,_+m.dySpring),h.weak(),m.lenSpring,m.lenSpring),this.distanceJoint.damping=m.damp,this.distanceJoint.frequency=m.freq,this.distanceJoint.stiff=!1,this.lineJoint.space=this.distanceJoint.space=this.space,0==t.params.active?this.activeOnStart=!1:this.activeOnStart=!0},e.prototype.activate=function(t){void 0===t&&(t=!0);var e,i;if(t)for(this.body.space=this.space,e=this.body.constraints.iterator();e.hasNext();)i=e.next(),i.active=!0;else{for(e=this.body.constraints.iterator();e.hasNext();)i=e.next(),i.active=!1,i.userData.skipActive=!0;this.body.space=null}},e.prototype.isActive=function(){return this.activeOnStart},e.prototype.restart=function(){l.NapeUtil.stopBody(this.body),l.NapeUtil.resetStartPos(this.body),this.activeOnStart||(this.graphic.x=this.body.position.x,this.graphic.y=this.body.position.y,this.graphic.rotation=this.body.rotation,this.activate(!1))},e.prototype.review=function(){this.restart()},e.prototype.release=function(){t.prototype.release.call(this),l.NapeUtil.disposeJoint(this.lineJoint),l.NapeUtil.disposeJoint(this.distanceJoint),this.lineJoint=null,this.distanceJoint=null,this.space=null},e}(l.GameObject);e.SphereObject=m},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(47),o=Phaser.Image,a=i(0),r=i(5),h=i(3),l=i(2),c=function(t){function e(e,i){var s=t.call(this,r.GraphicUtil.game,0,0)||this;s.parts=[],s.parts2=[],s.inputEnabled=!1,s.skinId=a.Inventory.instance.skin;var n=l.AssetsStorage.instance,c="bike_"+a.Inventory.instance.skin+"_base";return s.image=new o(s.game,0,0,h.Atlases.Cars,c+"0000"),s.image.anchor.set(l.AssetsList.FRAMES_ANCHORX[s.skinId-1],l.AssetsList.FRAMES_ANCHORY[s.skinId-1]),s.addChild(s.image),s.explodedImage=r.GraphicUtil.createImage(0,0,0,n.getByKey("Car"+s.skinId.toString()+"FrameExploded")),s.explodedImage.visible=!1,s.addChild(s.explodedImage),s.boostAnim=r.GraphicUtil.createMovieClip(null,"RocketAnim",30,!0),s.boostAnim.x=-28,s.boostAnim.y=-10,s.boostAnim.animations.play("RocketAnim",30,!0),s.addChildAt(s.boostAnim,0),s}return s(e,t),e.prototype.update2=function(t){for(var i=0;i=e.PART_COUNT&&(this.partPos=0)},e.PART_COUNT=60,e}(Phaser.Sprite);e.FrameGraphic=c},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(0),o=i(2),a=function(t){function e(){var e=t.call(this,n.GraphicUtil.game,0,0)||this,i=o.AssetsStorage.instance.getByKey("Car4TrailPart");return e}return s(e,t),e}(Phaser.Sprite);e.TrailPart=a},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(48),o=i(0),a=i(3),r=function(t){function e(e,i){var s=t.call(this,o.GraphicUtil.game,0,0,a.Atlases.Cars,"Wheel_"+o.Inventory.instance.skin+"_"+e.wheels.toString()+"0000")||this;return s.parts=[],s.anchor.set(.5),s}return s(e,t),e.prototype.createGroundParts=function(){for(var t=0;t=e.PART_COUNT&&(this.partPos=0),this.hasParts=!0},e.prototype.update2=function(t){if(this.hasParts){this.hasParts=!1;for(var i=0;i0&&s){var r=this.speed/this.wheelRadius;if(rthis.MIN_AC_BR_TIME&&(this.maxVelTimer=this.MAX_VEL_TIME),this.accelWithBrakeTimer=0),this.brakePart=this.accelWithBrakeTimer/this.MIN_AC_BR_TIME,this.brakePart>1&&(this.brakePart=1);var f;n?(f=this.frontWheel.body,Math.abs(f.angularVel)<1&&(this.brakeJoint.jointMin=this.brakeJoint.jointMax=f.rotation-this.frame.body.rotation,this.brakeJoint.active=!0),f.angularVel*=.25,this.backWheel.brake(!0),s||(this.backWheel.body.angularVel=0)):(this.brakeJoint.active=!1,this.backWheel.brake(!1)),s?(f=this.backWheel.body,this.maxVelTimer>0?(f.angularVel<1.2*a&&f.applyAngularImpulse(1.5*t*o),this.maxVelTimer-=t):(f.angularVel<0&&(f.angularVel*=.5),f.angularVel0&&(this.endGroundCollisionDelay-=t,this.endGroundCollisionDelay<=0&&(this.hasGround=!1)),this.graphic.update(t),this.effector.update(t)},e.prototype.restart=function(){r.NapeUtil.stopBody(this.body),r.NapeUtil.resetStartPos(this.body),r.NapeUtil.clearUserData(this.body),r.NapeUtil.setupStartPos(this.body),this.effector.reset(),this.body.userData.reviewX=this.body.position.x,this.body.userData.reviewY=this.body.position.y},e.prototype.release=function(){this.localSmokePos.dispose(),this.localSmokePos=null,this.localFirePos=null,r.NapeUtil.disposeBody(this.body),this.body=null,this.effector.dispose(),this.effector=null,t.prototype.release.call(this)},e.prototype.review=function(){this.body.position.setxy(this.body.userData.reviewX,this.body.userData.reviewY),this.body.rotation=0},e}(a.GameObject);e.FrameObject=l},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=nape.geom.Vec2,o=i(1),a=i(0),r=i(16),h=function(t){function e(){var e=t.call(this)||this;return e.type=o.ObjectTypes.CAR_PART,e}return s(e,t),e.prototype.restart=function(){this.timer=0,this.hide()},e.prototype.create=function(t){void 0===t&&(t=null),this.space=this.body.space,this.localPos=t,this.body.userData.graphicEx=this.graphic,this.restart()},e.prototype.put=function(t){var i=t.localPointToWorld(this.localPos,!1);this.body.position.set(i),i.dispose(),this.body.rotation=t.rotation%(2*Math.PI);var s=-.25*Math.PI-.5*Math.PI*Math.random();this.localPos.x>0?s+=.25*Math.PI:s-=.25*Math.PI;var o=250,a=n.fromPolar(250,s);a.addeq(t.velocity),this.body.velocity.set(a),a.dispose(),this.body.angularVel=2*Math.random()-1,this.body.space=this.space,this.graphic.visible=!0,this.graphic.position.set(this.body.position.x,this.body.position.y),this.graphic.rotation=this.body.rotation,this.timer=e.LIFE_TIME},e.prototype.hide=function(){this.body.space=null,this.graphic.visible=!1},e.prototype.release=function(){this.localPos=null,this.body.space=null,this.space=null,r.NapeUtil.disposeBody(this.body),this.body=null},e.prototype.update=function(t){void 0===t&&(t=0),this.timer>0&&(this.timer-=t,this.timer<=0&&(a.RaceCamera.inCamera(this.graphic.x,this.graphic.y,32)?this.timer=e.LIFE_TIME:this.hide()))},e.LIFE_TIME=2,e}(a.GameObject);e.PartObject=h},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(0),o=i(1),a=i(16),r=i(36),h=function(t){function e(){var e=t.call(this)||this;return e.landFlyTime=0,e.DISABLECCD_OFF_TIME=.25,e.DISABLECCD_ON_TIME=.05,e.hasGround=!1,e.endGroundCollisionDelay=0,e.END_GROUND_COLLISION_DELAY=.25,e.START_SPIN_FRICTION=.01,e.START_SPIN_DELAY=1,e.SMOKE_INIT_DELTA=250,e.isPlayer=!0,e.braked=!1,e.type=o.ObjectTypes.CAR,e}return s(e,t),e.prototype.create=function(e){void 0===e&&(e=null),t.prototype.create.call(this,e),this.friction=this.material.dynamicFriction,this.circle=this.body.shapes.at(0),this.radius=this.circle.radius,a.NapeUtil.setupStartPos(this.body),this.freq=this.distanceJoint.frequency,this.jointMax=this.distanceJoint.jointMax,this.jointMin=this.distanceJoint.jointMin,this.lineMax=this.lineJoint.jointMax,this.effector=new n.BodyEffector(this.body),this.restart()},e.prototype.restart=function(){this.body.constraints.length>0&&(this.body.constraints.at(0).active=!1,this.body.constraints.at(1).active=!1),this.flyTime=0,this.material.staticFriction=this.material.dynamicFriction=this.friction,this.body.disableCCD=!0,this.disableOnDelay=0,this.startSpinDelay=0,a.NapeUtil.stopBody(this.body),a.NapeUtil.resetStartPos(this.body),this.body.constraints.length>0&&(this.body.constraints.at(0).active=!0,this.body.constraints.at(1).active=!0),this.brakeJoint&&(this.brakeJoint.active=!1),this.trail&&this.trail.init(this.body.position.x,this.body.position.y),this.effector.reset()},e.prototype.release=function(){this.lineJoint.compound=null,this.lineJoint.body1=null,this.lineJoint.body2=null,this.lineJoint=null,this.distanceJoint.compound=null,this.distanceJoint.body1=null,this.distanceJoint.body2=null,this.distanceJoint=null,a.NapeUtil.disposeBody(this.body),this.body=null,this.circle=null,this.trail=null,this.effector.dispose(),this.effector=null,t.prototype.release.call(this)},e.prototype.update=function(t){void 0===t&&(t=0),this.startSpinDelay>0&&(this.startSpinDelay-=t,this.startSpinDelay<=0?this.material.staticFriction=this.material.dynamicFriction=this.friction:this.startSpinDelay<.5*this.START_SPIN_DELAY&&(this.material.staticFriction=this.START_SPIN_FRICTION+(this.friction-this.START_SPIN_FRICTION)*(.5*this.START_SPIN_DELAY-this.startSpinDelay)/(.5*this.START_SPIN_DELAY),this.material.dynamicFriction=this.material.staticFriction));for(var e=!1,i=this.body.arbiters.iterator(),s=0,n=0,o;i.hasNext();){var a=i.next();if(a.isCollisionArbiter()){if((a.body1===this.body?a.body2:a.body1).userData.isGround){e=!0;var r=a.collisionArbiter.contacts.at(0).position;s=r.x,n=r.y,o=a.collisionArbiter.normal.angle,a.body1===this.body&&(o+=Math.PI);break}}}if(e&&this.graphic&&this.isPlayer&&4!==this.skinId){var h=this.body.velocity.length,l=this.body.angularVel*this.radius;Math.abs(l)-Math.abs(h)>this.SMOKE_INIT_DELTA&&(this.graphic.emitGround(s,n,o,l>0),this.graphic.emitGround(s,n,o,l>0),this.graphic.emitGround(s,n,o,l>0))}e?(this.endGroundCollisionDelay=0,this.hasGround=!0,this.landFlyTime=this.flyTime,this.flyTime=0):this.hasGround&&0===this.endGroundCollisionDelay&&(this.endGroundCollisionDelay=this.END_GROUND_COLLISION_DELAY),this.hasGround?(this.disableOnDelay>0&&(this.disableOnDelay-=t,this.disableOnDelay<=0&&(this.disableOnDelay=0,this.body.disableCCD=!0)),this.endGroundCollisionDelay>0&&(this.endGroundCollisionDelay-=t,this.endGroundCollisionDelay<=0&&(this.hasGround=!1))):(this.flyTime+=t,this.flyTime>this.DISABLECCD_OFF_TIME&&(0===this.disableOnDelay&&(this.body.disableCCD=!1),this.disableOnDelay=this.DISABLECCD_ON_TIME)),this.isPlayer&&this.graphic.update2(t),this.trail&&this.trail.emit(this.body.position.x,this.body.position.y),this.effector.update(t)},e.prototype.startSpin=function(){this.distanceJoint.frequency=this.freq,this.startSpinDelay=this.START_SPIN_DELAY},e.prototype.brake=function(t){t?this.braked||(this.circle.material=this.brakeMaterial,this.body.shapes.remove(this.circle),this.body.shapes.add(this.circle)):this.braked&&(this.circle.material=this.material,this.body.shapes.remove(this.circle),this.body.shapes.add(this.circle)),this.braked=t},e.prototype.connect=function(t){this.body.constraints.length>1&&(this.body.constraints.at(0).active=t,this.body.constraints.at(1).active=t),t&&this.trail&&this.trail.init(this.body.position.x,this.body.position.y)},e.prototype.createTrail=function(){this.trail=new r.TrailParticlesSystem,this.trail.init(this.body.position.x,this.body.position.y)},e}(n.GameObject);e.WheelObject=h},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(0),o=i(1),a=i(2),r=i(31),h=function(t){function e(){var e=t.call(this)||this;return e.PART_1=-.2,e.PART_2=-.4,e.wasStarted=!1,e.type=o.ObjectTypes.BG,e}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null);var e=a.AssetsStorage.instance;this.graphic=n.GraphicUtil.game.add.group();var i=new a.SpriteData(e.getByKey("Bg0"));this.layer0=i.bitmapData,this.graphic.addChild(this.layer0);var s=null;i=new a.SpriteData(e.getByKey("Bg2")),i&&(this.layer2=i.bitmapData,this.layer2W=i.rect.width,this.layer2Rect=i.rect.clone(this.layer2Rect),this.graphic.addChild(this.layer2),s=i.bitmapData,s.x=this.layer2Rect.width-1,this.layer2.addChild(s),s=i.bitmapData,s.x=2*(this.layer2Rect.width-1),this.layer2.addChild(s),s=i.bitmapData,s.x=3*(this.layer2Rect.width-1),this.layer2.addChild(s),s=i.bitmapData,s.x=4*(this.layer2Rect.width-1),this.layer2.addChild(s),s=i.bitmapData,s.x=5*(this.layer2Rect.width-1),this.layer2.addChild(s),this.layer2.y=135),this.startDx=Math.random()*this.layer2W},e.prototype.update=function(t){void 0===t&&(t=0);var e;this.wasStarted?e=this.prevViewX+(n.RacesData.TARGET_X-this.prevTargetX)*r.RaceCamera.scale:(e=n.RacesData.TARGET_X+this.startDx,this.wasStarted=!0),this.prevViewX=e,this.prevTargetX=n.RacesData.TARGET_X,this.layer1&&this.updateLayer(e,this.PART_1,this.layer1,this.layer1W),this.layer2&&this.updateLayer(e,this.PART_2,this.layer2,this.layer2W)},e.prototype.updateLayer=function(t,e,i,s){var n=-t*e%s;i.x=-n},e.prototype.restart=function(){this.wasStarted=!1},e}(n.GameObject);e.BgObject=h},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(50),o=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.create=function(e){void 0===e&&(e=null),this.id=e.params.id,t.prototype.create.call(this,e)},e.prototype.activate=function(t){void 0===t&&(t=!0),this.graphic.visible=!t},e.prototype.isActive=function(){return!0},e}(n.DecorObject);e.DecorActObject=o},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(0),o=i(1),a=function(t){function e(e){var i=t.call(this)||this;return i.type=e?o.ObjectTypes.LANDSCAPE:o.ObjectTypes.FRONT,i}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null);var e=t.className;2===n.RacesData.map.settings.theme&&(this.type=o.ObjectTypes.LANDSCAPE_BACK);var i=e.indexOf("_dup");i>=0&&(e=e.substring(0,i));var s=n.GraphicUtil.game.add.group();s.x=t.params.x,s.y=t.params.y,isNaN(t.params.scaleX)||(s.scale.x=t.params.scaleX),isNaN(t.params.scaleY)||(s.scale.y=t.params.scaleY),s.rotation=t.params.rotation,this.graphic=s},e}(n.GameObject);e.DecorMultiObject=a},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(0),o=function(t){function e(){return t.call(this)||this}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null)},e}(n.GameObject);e.VectorDecor=o},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(0),o=i(1),a=i(5),r=i(4),h=i(2),l=function(t){function e(){var e=t.call(this)||this;return e.create(),e}return s(e,t),e.get=function(){return e.pool.length>0?e.pool.pop():new e},e.prototype.create=function(t){void 0===t&&(t=null),this.type=o.ObjectTypes.EFFECT,this.graphic=a.GraphicUtil.createMovieClip(null,h.AssetsStorage.instance.getByKey("glass_exp_anim"),30,!1),this.graphic.completeCallback=this.animComplete,this.graphic.scaleX=this.graphic.scaleY=2,this.graphic.visible=!1,r.MaxGameCore.instance.add(this)},e.prototype.animComplete=function(t){this.active=!1,this.graphic.visible=!1,null!=this.completeCallback&&(this.completeCallback(),this.completeCallback=null),e.pool[e.pool.length]=this},e.prototype.activate=function(t,e,i){void 0===i&&(i=null),this.active=!0,this.graphic.x=t,this.graphic.y=e,this.graphic.visible=!0,this.completeCallback=i},e.prototype.restart=function(){this.active&&(this.graphic.visible=!1,this.active=!1,this.completeCallback=null,e.pool[e.pool.length]=this)},e.prototype.update=function(t){void 0===t&&(t=0),this.active&&this.graphic.update(t)},e.prototype.release=function(){this.completeCallback=null,t.prototype.release.call(this)},e.pool=[],e}(n.GameObject);e.GlassExplodeObject=l},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(51),o=nape.geom.Vec2,a=nape.phys.BodyType,r=i(0),h=i(4),l=i(5),c=i(10),u=i(7),d=i(12),p=i(1),f=i(6),y=i(8),g=i(2),m=i(9),v=i(3),b=function(t){function e(){var e=t.call(this)||this;return e.switchOffDelay=0,e.isCrashed=!1,e}return s(e,t),e.getParts=function(){var t=e.pool[e.poolPos];return e.poolPos++,e.poolPos>=e.POOL_SIZE&&(e.poolPos=0),t},e.prototype.create=function(t){void 0===t&&(t=null),this.step=d.default.STEP,this.type=p.ObjectTypes.OBJECT,this.space=h.MaxGameCore.instance.getSpace();var e=t.params;this.safeId=e.safeId,this.ttl=e.ttl;var i=g.AssetsStorage.instance;this.className=t.className;var s=i.getByKey(this.className+"_data"),n=e.x,o=e.y,m=t.params.rotation*f.default.TO_RAD,v=u.Filters.GROUND;this.bodyW=s.w,this.bodyHHalf=.5*s.h,this.body=r.NapeUtil.createRectBodyWH(a.STATIC,v,!1,s.w,s.h,n,o,m,null,y.Materials.DEFAULT),this.body.cbTypes.add(c.CbTypes.GLASS),this.body.cbTypes.add(c.CbTypes.GROUND),this.body.userData.collideCallback=this.processCollide,this.body.userData.collideCallbackContext=this;var b=l.GraphicUtil.createImageWithObj(e,this.className);this.graphic=b,this.className.indexOf("Crashed")>=0&&(this.createParts(this.className),this.isCrashed=!0,this.partScale="GlassCrashed0"===this.className?1:.5),this.counter=0},e.prototype.createParts=function(t){if(null==e.pool){e.pool=[];for(var i=0;i0&&(this.switchOffDelay-=t,this.switchOffDelay<=0&&this.switchOff())},e.prototype.restart=function(){this.switchOffDelay=0,this.collided=!1,this.body.space=this.space,this.graphic.visible=!0,this.graphic.alpha=1,this.graphic.scale.x=1,this.graphic.scale.y=1},e.prototype.release=function(){this.space=null,this.clearPool(),t.prototype.release.call(this)},e.prototype.clearPool=function(){if(null!==e.pool){for(var t=0;te.ANIM_TIME||i.startAnim(i))},e.prototype.startAnim=function(t){t.isCrashed},e.prototype.crashGlass=function(){if(r.RaceCamera.inCamera(this.explodeX,this.explodeY,256)){var t=(new Date).getTime();t-e.lastCrashTime>e.MIN_CRASH_DELTA&&(e.lastCrashTime=t,m.default.getInstance().play(v.Sounds.GlassCrash))}var i=e.getParts(),s=i.length,n=o.get();n.setxy(-.25*this.bodyW+.5*Math.random()*this.bodyW,this.bodyHHalf);var a=this.collidePos;a.y+=2*this.bodyHHalf;for(var h=e.PARTS_DATA[this.className],l=this.body.rotation,c=0;c=0,c=!1;s&&(c=!0===e.isPillar)&&(e.physic=!1);var u=o.RacesData.map.settings.theme;if(3===e.lineId&&0===u?this.type=a.ObjectTypes.FRONT:3===e.lineId&&1===u?this.type=a.ObjectTypes.OBJECT:this.type=a.ObjectTypes.LANDSCAPE,0!==e.rotation){var d=r.default.normalizeVertices(t);t=d,e=d.params}var p=e.vertices,f=p.length,y=e.x,g=e.y;(s&&!c||!0===e.physic)&&(this.body=h.PhysicUtil.createGroundBody(t)),!0===e.physic&&(this.body=h.PhysicUtil.createGroundBody(t));var m=[],v=0,b,x,_,w;for(w=0;wv&&(v=P.y)}if(y+=x,g+=_,s&&(e.shape=!1,e.line=!0,e.lineId=13),!0!==e.shape&&!0!==e.line||(this.graphic=l.GraphicUtil.createGround(y,g,m,e.line,e.shape,v,e.lineId)),!0===e.camera){f=m.length;var C=e.cameraOffsetY;for(w=0;w=0,S=null,A=!1;if(T||e.graphic){var E=null;if(T?S="pillar_line"+_.toString():1===_?E="CandyPather":5==_?(E="line_spike",A=!0):6==_?E="line_wood_pather_pool":8==_?E="line_tube_bot":9==_?E="line_tube_top":10==_?E="line_tube_blick":S=4===_||5===_||6===_?"road_line9":"road_line"+(_+5).toString(),null==E&&(E=p.AssetsStorage.instance.getByKey(S)),E){var I=u.GraphicUtil.game.add.group();I.inputEnableChildren=!1,f=s.length;var M=[],O=void 0,R=void 0;for(y=0;y=0;this.type=s||1===i||7===i?h.ObjectTypes.LANDSCAPE_SHAPE:h.ObjectTypes.LANDSCAPE,s||(this.id=e.id,this.safeId=e.safeId,this.safeId<=-10&&(this.skipRevive=!0),null!==e.rem&&!1===e.rem&&(this.removeOnToogle=!1)),this.isStatic=s||e.isStatic;var n=e.x,y=e.y;if(s||!0===e.physic){var g=void 0;s?g=u.Materials.DEFAULT:1===e.density?g=u.Materials.GROUND:(g=u.Materials.GROUND.copy(),g.density=e.density);var m=void 0;if(m=s?d.Filters.SENSOR:!0===e.plr?d.Filters.PLAYER_ONLY:!0===e.ignore?d.Filters.NOTHING:d.Filters.GROUND,this.body=r.NapeUtil.createPolyBody(e,g,m,this.isStatic?a.STATIC:a.DYNAMIC),this.body.userData.isGround=!0,s){for(var v=this.body.shapes.iterator();v.hasNext();){v.next().sensorEnabled=!0}this.body.cbTypes.add(p.CbTypes.ZONE_FINISH)}else this.body.cbTypes.add(p.CbTypes.GROUND),3===i&&this.body.cbTypes.add(p.CbTypes.SAW),9===i&&this.body.cbTypes.add(p.CbTypes.SPIKES);this.body.align(),!0===e.isWheel&&(this.body.userData.isWheel=!0),this.body.space=this.space}if(s||!0===e.graphic){var b=0,x=0;this.body&&(b=-this.body.position.x+n,x=-this.body.position.y+y);var _=f.GraphicUtil.createLandscapeShape(t,b,x,s);this.graphic=_}if(this.body){if(0!==e.rotation){this.body.isDynamic()||(this.body.space=null);var w=o.get(n,y);this.body.rotate(w,l.default.TO_RAD*e.rotation),w.dispose(),this.body.isDynamic()||(this.body.space=this.space)}this.graphic&&(this.graphic.x=this.body.position.x,this.graphic.y=this.body.position.y,this.graphic,r.LandscapeShape,this.graphic.rotation=this.body.rotation),this.body.space=c.MaxGameCore.instance.getSpace()}else this.graphic.rotation=l.default.TO_RAD*e.rotation;this.body&&!this.isStatic&&(r.NapeUtil.setupStartPos(this.body),this.graphic instanceof r.LandscapeShape?this.body.userData.graphic=this.graphic:this.body.userData.graphicEx=this.graphic),this.removeOnToogle||this.id>=0&&this.activate(!1)},e.prototype.release=function(){if(e.textures){for(var i in e.textures)e.textures[i]&&(e.textures[i]=null);e.textures=null}this.space=null,t.prototype.release.call(this)},e.prototype.activate=function(t){if(void 0===t&&(t=!0),this.removeOnToogle){if(this.graphic&&(this.graphic.visible=!1),this.body){for(var e=this.body.constraints.iterator();e.hasNext();){var i=e.next();i instanceof n&&(i.active=!1)}this.body.space=null}}else this.body&&this.body.constraints.length<=0&&(this.body.space=t?this.space:null)},e.prototype.restart=function(){var t,e;if(this.removeOnToogle){if(this.graphic&&(this.graphic.visible=!0),this.body)for(this.body.space=this.space,t=this.body.constraints.iterator();t.hasNext();)(e=t.next())instanceof n&&(e.active=!0)}else this.id>=0&&this.activate(!1);this.body&&!this.isStatic&&(r.NapeUtil.stopBody(this.body),r.NapeUtil.resetStartPos(this.body))},e.prototype.review=function(){this.skipRevive&&this.body&&this.body.isKinematic()||this.restart()},e.prototype.isActive=function(){return!0},e}(r.GameObject);e.ShaperObject=y},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=nape.geom.Vec2,o=nape.phys.BodyType,a=i(0),r=i(6),h=i(1),l=i(10),c=i(7),u=i(8),d=i(4),p=i(113),f=function(t){function e(){var e=t.call(this)||this;return e.id=-1,e}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null),this.type=h.ObjectTypes.LANDSCAPE;var e=t.params;this.id=e.id;var i=e.x,s=e.y,f;f=u.Materials.GROUND;var y=0,g=0,m=c.Filters.WATER;if(this.id>-10&&(this.body=a.NapeUtil.createPolyBody(e,f,m,o.STATIC),this.body.cbTypes.add(l.CbTypes.WATER),3===e.layer&&this.body.cbTypes.add(l.CbTypes.SAW),this.body.align(),this.body&&(y=-this.body.position.x+i,g=-this.body.position.y+s)),this.graphic=new p.WaterShape(t,y,g),this.body){if(0!==e.rotation){var v=n.get(i,s);this.body.rotate(v,r.default.TO_RAD*e.rotation),v.dispose()}this.graphic&&(this.graphic.x=this.body.position.x,this.graphic.y=this.body.position.y,this.graphic instanceof a.LandscapeShape?this.graphic.rotation=r.default.TO_DEG*this.body.rotation:this.graphic.rotation=this.body.rotation),this.body.space=d.MaxGameCore.instance.getSpace();for(var b=0;b>0,u=o/c;for(n=0;n0&&(this.graphic=d.GraphicUtil.createImageWithObj(t.params,f.AssetsStorage.instance.getByKey("Motor"+(t.params.graphic-1).toString())),this.graphicRot=0),this.useWeldJoint=!0===t.params.useWeld,this.useWeldJoint?(this.phaseBase=this.pivot.body2.rotation-this.pivot.body1.rotation,this.weldJoint=new a(this.pivot.body1,this.pivot.body2,this.pivot.anchor1,this.pivot.anchor2,this.phaseBase),this.weldJoint.ignore=!0,this.weldJoint.space=this.space):s.allowRotation=!1}this.snd=!0===t.params.snd,e.dispose()},e.prototype.activate=function(t){if(void 0===t&&(t=!0),this.useWeldJoint,t){if(this.active)return;this.motor&&(this.useWeldJoint?this.weldJoint.active=!1:this.motor.body2.allowRotation=!0,this.motor.active=t,this.timer=this.time,this.active=!0)}else{var e=this.motor.body2;this.motor.active=!1,e.angularVel=0,this.useWeldJoint?(this.weldJoint.phase=this.weldJoint.body2.rotation-this.weldJoint.body1.rotation,this.weldJoint.active=!0):e.allowRotation=!1}},e.prototype.restart=function(){this.motor&&(this.motor.space=null,this.motor.space=this.space,this.pivot.space=null,this.pivot.space=this.space,this.motor.active=!1,this.useWeldJoint?(this.weldJoint.active=!1,this.weldJoint.phase=this.phaseBase,this.weldJoint.active=!0):this.motor.body2.allowRotation=!1),this.active=!1},e.prototype.release=function(){this.pivot&&(this.pivot.body1=null,this.pivot.body2=null,this.pivot.space=null,this.motor.body1=null,this.motor.body2=null,this.motor.space=null),this.useWeldJoint&&(this.weldJoint.body1=null,this.weldJoint.body2=null,this.weldJoint.space=null),this.space=null,t.prototype.release.call(this)},e.prototype.update=function(t){void 0===t&&(t=0);var e=this.motor.body2;if(this.active&&(this.timer>0&&(this.graphic&&(this.graphicRot+=t*this.motor.rate,this.graphic.rotation=this.graphicRot%(2*Math.PI)),this.timer>0&&(this.timer-=t,this.useWeldJoint,this.timer<=0&&(this.motor.active=!1,e.angularVel=0,this.useWeldJoint?(this.weldJoint.phase=this.weldJoint.body2.rotation-this.weldJoint.body1.rotation,this.weldJoint.active=!0):e.allowRotation=!1))),this.graphic&&this.isDynamic)){var i=e.localPointToWorld(this.pivot.anchor2,!1);this.graphic.x=i.x,this.graphic.y=i.y,i.dispose()}},e.prototype.review=function(){this.skipRevive||this.restart()},e.prototype.isActive=function(){return!0},e}(h.GameObject);e.MotorObject=y},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=nape.geom.Vec2,o=nape.phys.Body,a=nape.phys.BodyType,r=nape.shape.Circle,h=i(0),l=i(4),c=i(8),u=i(7),d=i(6),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cpId=-1,e.accelDist=0,e.accel=0,e.breaked=!1,e.dir=1,e.prevDir=1,e}return s(e,t),e.prototype.switchOn=function(t){this.active&&(this.stopOnPoint||this.stopOnEnd)||(this.dir+=t,this.active=0!==this.dir,this.active?this.checkChangePointDir():(this.body.velocity.x=0,this.body.velocity.y=0,this.updateBodyGraphic()))},e.prototype.switchOff=function(t){if(this.stopOnEnd||this.stopOnPoint){if(0!==this.dir)return;this.dir+=t,this.active=0!==this.dir,this.active?this.checkChangePointDir():(this.body.velocity.x=0,this.body.velocity.y=0,this.updateBodyGraphic())}else this.dir-=t,this.active=0!==this.dir,this.active?this.checkChangePointDir():(this.body.velocity.x=0,this.body.velocity.y=0,this.updateBodyGraphic())},e.prototype.checkChangePointDir=function(){this.dir*this.prevDir<0&&(this.pointDir*=-1,this.velocity.muleq(-1),this.timeToPoint=this.timeToPointTotal-this.timeToPoint),this.prevDir=this.dir},e.prototype.release=function(){this.velocity.dispose(),this.velocity=null,this.body=null,t.prototype.release.call(this)},e.prototype.restart=function(){this.startTime=this.baseStartTime,this.active=this.baseActive,this.angleSpeed=0,this.baseActive?this.dir=1:this.dir=0,this.pointId=0,this.pointDir=1,null!=this.body.userData.graphic&&(this.body.userData.graphic.visible=!0),this.body.space=this.space;for(var t=0,e=!1,i=0;i0){var s=this.points[i].sub(this.points[i-1]),n=s.length;if(t+=n,!e&&t>=this.position){this.pointId=i-1;var o=1-(t-this.position)/n;this.body.position.x=this.points[i-1].x+o*(this.points[i].x-this.points[i-1].x),this.body.position.y=this.points[i-1].y+o*(this.points[i].y-this.points[i-1].y),this.calcVel(),e=!0}s.dispose()}this.breaked=!1,this.body.type=a.KINEMATIC,this.body.allowRotation=!1,this.updateBodyGraphic()},e.prototype.create=function(t){void 0===t&&(t=null),this.space=l.MaxGameCore.instance.getSpace(),this.id=t.params.id,this.safeId=t.params.safeId;var e=null;if(t.params.body)this.body=new o(a.KINEMATIC,n.weak()),this.body.shapes.add(new r(16,null,c.Materials.DEFAULT,u.Filters.NOTHING)),this.body.space=this.space;else{for(var i=n.get(t.params.x,t.params.y),s=h.NapeUtil.bodiesUnderPoint(this.space,i);!s.empty()&&(e=s.pop(),!e.isDynamic());)e=null;e&&(this.body=e,e.type=a.KINEMATIC,h.NapeUtil.stopBody(e)),i.dispose()}this.speed=this.baseSpeed=t.params.speed,this.accelDist=null===t.params.accelDist?0:t.params.accelDist,this.accelDist>0&&(this.minSpeed=.05*this.baseSpeed,this.accel=(this.baseSpeed*this.baseSpeed-this.minSpeed*this.minSpeed)/(2*this.accelDist)),this.cycle=1===t.params.cycle,this.active=this.baseActive=1===t.params.active,this.startTime=this.baseStartTime=t.params.startTime,this.sideWait=t.params.sideWait?t.params.sideWait:0,this.sideAngle=t.params.sideAngle?t.params.sideAngle*d.default.TO_RAD:0,this.cpId=t.params.cpId,this.body.userData.correct=!0,this.space=this.body.space,this.baseRot=this.body.rotation,this.stopOnEnd=!0===t.params.stopOnEnd,this.stopOnPoint=!0===t.params.stopOnPoint,this.baseActive?this.dir=1:this.dir=0,this.pointId=0,this.pointDir=1;var p=t.params.vertices;this.points=new Array(p.length),this.position=t.params.position,this.velocity=n.get();for(var f=0,y=!1,g=0;g0){var m=this.points[g].sub(this.points[g-1]),v=m.length;if(f+=v,!y&&f>=this.position){this.pointId=g-1;var b=1-(f-this.position)/v;this.body.position.x=this.points[g-1].x+b*(this.points[g].x-this.points[g-1].x),this.body.position.y=this.points[g-1].y+b*(this.points[g].y-this.points[g-1].y),this.calcVel(),y=!0}m.dispose()}this.totalLength=f,this.body.userData.handler=this,this.body.userData.hasMover=!0},e.prototype.calcVel=function(){var t=this.body.position,e=this.getNextPoint(),i=e.sub(t,!0),s=i.angle;this.velocity.x=Math.cos(s)*this.speed,this.velocity.y=Math.sin(s)*this.speed;var n=i.length;this.timeToPointTotal=this.timeToPoint=n/this.speed},e.prototype.calcAccelVel=function(t){var e=0,i;if(this.pointDir>0){for(i=1;i<=this.pointId;i++)e+=n.distance(this.points[i-1],this.points[i]);e+=n.distance(this.points[this.pointId],this.body.position)}else{for(i=this.points.length-2;i>=this.pointId;i--)e+=n.distance(this.points[i+1],this.points[i]);e+=n.distance(this.points[this.pointId],this.body.position),e=this.totalLength-e}ethis.totalLength-this.accelDist?this.speed=this.minSpeed+(this.totalLength-e)/this.accelDist*(this.baseSpeed-this.minSpeed):this.speed=this.baseSpeed;var s=this.body.position,o=this.getNextPoint(),a=o.sub(s,!0),r=a.angle;this.velocity.x=Math.cos(r)*this.speed,this.velocity.y=Math.sin(r)*this.speed;var h=a.length;this.timeToPointTotal=this.timeToPoint=h/this.speed},e.prototype.getNextPoint=function(){return this.pointDir>0?this.pointId>=this.points.length-1?this.points[0]:this.points[this.pointId+1]:this.pointId<=0?this.points[this.points.length-1]:this.points[this.pointId-1]},e.prototype.update=function(t){void 0===t&&(t=0),this.breaked||(this.active?(!0===this.body.userData.skipMove?this.body.velocity.x=this.body.velocity.y=0:this.startTime>0?(this.body.velocity.x=this.body.velocity.y=0,this.startTime-=t,this.startTime<=0?0!==this.sideAngle&&0!==this.angleSpeed&&(this.angleSpeed=0,this.body.rotation=this.sideTarget):0!==this.sideAngle&&0!==this.angleSpeed&&(this.body.rotation+=this.angleSpeed*t)):(this.timeToPoint>0?this.accelDist>0&&this.calcAccelVel(t):(this.pointId+=this.pointDir,0===this.pointId||this.pointId===this.points.length-1?(this.sideWait>0&&(this.startTime=this.sideWait,0!==this.sideAngle&&(0===this.pointId?(this.sideTarget=this.baseRot,this.angleSpeed=-this.sideAngle/this.sideWait):(this.sideTarget=this.baseRot+this.sideAngle,this.angleSpeed=this.sideAngle/this.sideWait))),this.cycle||(this.pointDir*=-1),this.stopOnEnd&&(this.active=!1,this.dir=0,null!==this.body&&this.body.position.set(this.points[this.pointId]))):(this.pointId<0||this.pointId>this.points.length-1)&&(this.pointDir>0?this.pointId=0:this.pointId=this.points.length-1),this.accelDist>0?this.calcAccelVel(t):this.calcVel(),this.stopOnPoint&&(this.active=!1)),this.active?(this.body.velocity.x=this.velocity.x,this.body.velocity.y=this.velocity.y):(this.body.velocity.x=0,this.body.velocity.y=0),this.timeToPoint-=t),this.updateBodyGraphic()):(this.body.allowMovement=!1,this.body.velocity.x=0,this.body.velocity.y=0))},e.prototype.updateBodyGraphic=function(){var t=this.body.userData.graphic;null!=t?(t.x=this.body.position.x,t.y=this.body.position.y,t.rotation=this.body.rotation):null!=(t=this.body.userData.graphicEx)&&(t.x=this.body.position.x,t.y=this.body.position.y,t.rotation=this.body.rotation)},e.prototype.review=function(){this.restart()},e.prototype.activate=function(t){void 0===t&&(t=!0),t?this.switchOn(1):this.switchOff(1)},e.prototype.isActive=function(){return!0},e}(h.GameObject);e.MoverPatherObject=p},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=nape.constraint.PivotJoint,o=nape.geom.Vec2,a=i(0),r=i(4),h=i(5),l=i(2),c=i(1),u=function(t){function e(){return t.call(this)||this}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null),this.type=c.ObjectTypes.OBJECT,this.space=r.MaxGameCore.instance.getSpace();var e=t.params;this.id=e.id,this.safeId=e.safeId;for(var i=o.get(e.x,e.y),s=a.NapeUtil.bodiesUnderPoint(this.space,i),u=null,d=null,p=!0;!s.empty();){var f=s.pop();if(f.isDynamic()){if(null===u)u=f;else if(!0!==u.userData.isPT&&!0===f.userData.isPT)d=u,u=f;else if(null===d){if(d=f,!0===d.userData.isPT)break}else if(!0!==d.userData.isPT&&!0===f.userData.isPT){d=f;break}}else null===d&&(d=f)}if(u){null===d&&(d=this.space.world);var y=u.worldPointToLocal(i),g=d.worldPointToLocal(i);this.pivot=new n(u,d,y,g),this.pivot.ignore=!0,this.pivot.space=this.space,y.dispose(),g.dispose();var m=null===e.graphic?0:e.graphic;if(m>0){var v=l.AssetsStorage.instance,b="Pivot"+(m-1).toString();this.graphic=h.GraphicUtil.createImageWithObj(e,v.getByKey(b)),this.graphic&&(this.isDynamic=!(u.isStatic()||d.isStatic()),this.body2=d)}}i.dispose()},e.prototype.activate=function(t){void 0===t&&(t=!0),this.active||(this.pivot.active=!1,this.active=!0)},e.prototype.restart=function(){this.pivot&&(this.pivot.space=null,this.pivot.space=this.space,!0!==this.pivot.userData.skipActive&&(this.pivot.active=!0)),this.active=!1},e.prototype.release=function(){this.pivot&&(this.pivot.body1=null,this.pivot.body2=null,this.pivot.space=null),this.body2=null,this.space=null,t.prototype.release.call(this)},e.prototype.review=function(){this.restart()},e.prototype.isActive=function(){return!0},e.prototype.update=function(t){if(void 0===t&&(t=0),this.isDynamic){var e=this.body2.localPointToWorld(this.pivot.anchor2,!1);this.graphic.x=e.x,this.graphic.y=e.y,e.dispose()}},e}(a.GameObject);e.PivotObject=u},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(53),o=i(4),a=function(t){function e(){var e=t.call(this)||this;return e.INIT_TIME=1,e.REMOVE_TIME=1,e.initTimer=0,e}return s(e,t),e.prototype.create=function(e){void 0===e&&(e=null),t.prototype.create.call(this,e),this.space=o.MaxGameCore.instance.getSpace(),this.initTimer=this.INIT_TIME},e.prototype.update=function(t){void 0===t&&(t=0),this.active?this.timer>0&&(this.timer-=t,this.timer<=0?(this.body.space=null,this.graphic.visible=!1):this.timer<.5*this.REMOVE_TIME&&(this.graphic.alpha=this.timer/(.5*this.REMOVE_TIME))):this.initTimer>0?this.initTimer-=t:this.body.velocity.length>100&&(this.active=!0,this.timer=this.REMOVE_TIME)},e.prototype.activate=function(e){void 0===e&&(e=!0),this.active||t.prototype.activate.call(this,e)},e.prototype.restart=function(){this.initTimer=this.INIT_TIME,this.active=!1,this.graphic.alpha=1,this.graphic.visible=!0,this.body.space=this.space,t.prototype.restart.call(this)},e.prototype.release=function(){this.space=null,t.prototype.release.call(this)},e}(n.DynamicBodyObject);e.RemovedBodyObjects=a},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=nape.phys.BodyType,o=i(0),a=i(1),r=i(7),h=i(5),l=i(10),c=i(8),u=i(9),d=i(25),p=function(t){function e(){return t.call(this)||this}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null),this.type=a.ObjectTypes.OBJECT,this.body=o.NapeUtil.createRectBody(n.STATIC,r.Filters.SENSOR,!0,t.params,l.CbTypes.SAFE_POINT,c.Materials.DEFAULT),this.body.userData.id=t.params.id,this.body.userData.collideCallback=this.processCollide,this.body.userData.collideCallbackContext=this,this.graphic=h.GraphicUtil.createMovieClip(t.params,"SafePointAnim")},e.prototype.processCollide=function(t){t.active||(t.active=!0,u.default.getInstance().play(d.default.SavePoint),t.graphic.animations.getAnimation("SafePointAnim").play(30,!1))},e.prototype.restart=function(){this.active=!1;var t=this.graphic.animations.getAnimation("SafePointAnim");t.play(30,!1,!1),t.frame=0,t.restart(),t.stop()},e}(o.GameObject);e.SafePointObject=p},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=nape.phys.BodyType,o=i(0),a=i(1),r=i(7),h=i(6),l=i(5),c=i(10),u=i(8),d=i(2),p=function(t){function e(){return t.call(this)||this}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null),this.type=a.ObjectTypes.OBJECT;var e=d.AssetsStorage.instance,i=t.className,s=e.getByKey(i+"_data"),p=t.params,f=p.x,y=p.y,g=t.params.rotation*h.default.TO_RAD,m=r.Filters.GROUND;this.body=o.NapeUtil.createRectBodyWH(n.STATIC,m,!1,s.w,s.h,f,y,g,c.CbTypes.SPIKES,u.Materials.DEFAULT),this.graphic=l.GraphicUtil.createImageWithObj(p,e.getByKey(i))},e}(o.GameObject);e.SpikesObject=p},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=nape.geom.Ray,o=nape.geom.Vec2,a=nape.phys.BodyType,r=i(0),h=i(1),l=i(5),c=i(7),u=i(4),d=i(6),p=i(8),f=i(37),y=i(2),g=i(9),m=i(3),v=function(t){function e(){return t.call(this)||this}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null),this.id=t.params.id,this.safeId=t.params.safeId,this.type=h.ObjectTypes.OBJECT;var e=y.AssetsStorage.instance,i=t.className,s=e.getByKey(i+"_data"),f=t.params,g=f.x,m=f.y;this.x=g,this.y=m,this.graphic=l.GraphicUtil.createImageWithObj(f,e.getByKey(i)),t.params.physic&&(this.body=r.NapeUtil.createRectBodyWH(a.DYNAMIC,c.Filters.WITH_EARTH_ONLY,!1,s.w,s.h,g,m,d.default.TO_RAD*f.rotation,null,p.Materials.DEFAULT),this.body.userData.handler=this,this.body.userData.graphicEx=this.graphic,r.NapeUtil.setupStartPos(this.body)),this.space=u.MaxGameCore.instance.getSpace(),f.impulse>0?(this.impulse=f.impulse,this.count=f.count,this.angle=2*Math.PI/this.count,this.ray=new n(o.weak(g,m),o.weak(1,0)),this.radius=f.radius,this.ray.maxDistance=this.radius):this.impulse=0,this.stones=!0===t.params.stones},e.prototype.processCollide=function(){if(this.body&&(this.body.space=null),this.impulse>0)for(var t=0;t=0&&t&&(a.MaxGameCore.instance.activate(i.id,!0),i.deactivated||(i.body.space=null),i.sensCount++),i.id_off>=0&&t&&(a.MaxGameCore.instance.activate(i.id_off,!1),i.deactivated||(i.body.space=null))),t||--i.sensCount<=0&&a.MaxGameCore.instance.activate(i.id,t),t&&(i.active||i.sndId>=0&&c.default.getInstance().play(1===i.sndId?u.Sounds.Wendy:u.Sounds.FlySound()),i.active=!0)},e.prototype.review=function(){this.restart()},e}(o.GameObject);e.ToggleObject=d},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(0),o=i(12),a=function(t){function e(){return t.call(this)||this}return s(e,t),e.prototype.create=function(t){void 0===t&&(t=null),this.id=t.params.id;var i=t.params.width,s=t.params.height,n=i/s,a=o.default.GAME_W/o.default.GAME_H;this.x=t.params.x,this.y=t.params.y,n===a?(this.scale=o.default.GAME_W/i,this.move=e.STATIC):n>a?(this.move=e.HOR,this.scale=o.default.GAME_H/s,this.minMove=this.x-.5*i+.5*this.scale*i,this.maxMove=this.x+.5*i-.5*this.scale*i):(this.move=e.VER,this.scale=o.default.GAME_W/i,this.minMove=this.y-.5*s+.5*this.scale*s,this.maxMove=this.y+.5*s-.5*this.scale*s)},e.prototype.activate=function(t){void 0===t&&(t=!0),t?(e.focusedOnPoint=!1,e.current=this):this.deactivate()},e.prototype.deactivate=function(){e.current===this&&(e.current=null)},e.prototype.dispose=function(){e.current=null},e.prototype.restart=function(){e.current=null},e.prototype.isActive=function(){return!0},e.STATIC=0,e.HOR=1,e.VER=2,e.focusedOnPoint=!1,e}(n.GameObject);e.CameraZone=a},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=nape.phys.BodyType,o=i(0),a=i(7),r=i(8),h=function(t){function e(){return t.call(this)||this}return s(e,t),e.prototype.create=function(i){void 0===i&&(i=null),t.prototype.create.call(this,i);var s,h=i.className;this.body=o.NapeUtil.createRectBody(n.STATIC,a.Filters.SENSOR,!0,i.params,void 0,r.Materials.DEFAULT),e.addCarsToUserData(this.body,i.params),"TiltZone"===h?(this.body.userData.backChance=i.params.backChance,this.body.userData.frontChance=i.params.frontChance):"BrakeZone"===h&&(this.body.userData.chance=i.params.chance)},e.addCarsToUserData=function(t,e){var i=e.cars;if(null!=i&&i.length>0){var s=i.split(",");t.userData.cars={};for(var n=0;n400){var e=t.int1.castBody.position;d.RaceCamera.inCamera(e.x,e.y,0)&&c.default.getInstance().play(u.Sounds.Wood)}},e.prototype.onBarrelHit=function(t){if(t.arbiters.at(0).collisionArbiter.normalImpulse().length>400){var e=t.int1.castBody.position;d.RaceCamera.inCamera(e.x,e.y,0)&&c.default.getInstance().play(Math.random()>.5?u.Sounds.Barrel1:u.Sounds.Barrel2)}},e.prototype.onDriverSaw=function(t){var e=t.int1.castBody.userData.handler;e&&(e.processDriverSpikes(),e.processDriverGround(),e.explode())},e.prototype.onCarSaw=function(t){t.int1.castBody.userData.handler.processDriverGround(),t.int1.castBody.userData.handler.explode()},e.prototype.onCarSpikes=function(t){t.int1.castBody.userData.handler.processDriverGround(),t.int1.castBody.userData.handler.explode()},e.prototype.onDriverSpikes=function(t){var e=t.int2.castBody,i=t.int1.castBody;e.isStatic()?(l.NapeUtil.stopBody(i),i.allowMovement=i.allowRotation=!1):i.userData.driverPart.pinTo(e),t.int1.castBody.userData.handler.processDriverSpikes(),t.int1.castBody.userData.handler.processDriverGround()},e.prototype.onDriverGround=function(t){t.int1.castBody.userData.handler.processDriverGround(),t.int1.castBody.userData.handler.explode()},e.prototype.onCarSafePoint=function(t){var e=t.int2.castBody,i=t.int1.castBody.userData.handler;if(i&&!i.dead){i.setReviewPos(e.position.x,e.position.y,e.userData.id);var s=t.int2.castBody.userData.collideCallbackContext;t.int2.castBody.userData.collideCallback(s)}},e.prototype.onCarGlass=function(t){var e=t.int2.castBody.userData.collideCallbackContext;t.int2.castBody.userData.collideCallback(t.arbiters.at(0).collisionArbiter.contacts.at(0).position,e)},e.prototype.onFinish=function(t){var e=t.int1.castBody.userData.handler;e&&e.processFinish(t.int1.castBody.userData.collideCallbackContext)},e.prototype.onDestroyedSens=function(t){var e=t.int2.castBody,i=t.int1.castBody,s=e.userData.collideCallback;s(e.userData.collideCallbackContext)&&s(i)},e.prototype.onBoost=function(t){var e=t.int2.castBody.userData;(0,e.collideCallback)(e.collideCallbackContext)&&t.int1.castBody.userData.handler.addBoost(e.time,e.force)},e.onToggleSens=function(t){if(t.event===n.BEGIN){var e=t.int2.castBody;if(null===e.space)return;var i=null===t.int1.castShape?t.int1.castBody:t.int1.castShape.body,s=e.userData.collideCallback,o=e.userData.collideCallbackContext;s(!0,i.userData.handler.dead,o)}else{var s=t.int2.castBody.userData.collideCallback;if(s){var o=t.int2.castBody.userData.collideCallbackContext;s(!1,!1,o)}}},e.proccessZoneSens=function(t,e,i,s){if(s)t.userData[i]=!1;else if(null===e.userData.cars||!0===e.userData.cars[t.userData.skinId]){var n=e.userData.chance;Math.random()0){var i=this.compound.COM(),n=this.body.rotation,o=s.get(t*this.force*Math.cos(n),t*this.force*Math.sin(n));if(this.body.applyImpulse(o,i),o.dispose(),i.dispose(),e||(this.body.angularVel*=.8),this.timeLeft-=t,this.timeLeft<=0)return this.anim.visible=!1,null!=this.snd&&this.snd.stop(),!0}return!1},t.prototype.dispose=function(){this.anim=null,this.body=null,this.compound=null},t.prototype.restart=function(){this.anim.visible=!1,this.timeLeft=0,this.force=0},t}();e.BoostEffector=a},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(54),o=i(35),a=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.getDrive=function(){var t=0;return o.default.instance.isbtnDown?(t--,this.brake=!0):this.brake=!1,o.default.instance.isbtnUp?(t++,this.accell=!0):this.accell=!1,t},e.prototype.getBoost=function(){return t.prototype.getBoost.call(this)},e.prototype.getUseItem=function(){return this.car.itemId>=0},e.prototype.getTilt=function(){var t=0;return o.default.instance.isbtnLeft&&t--,o.default.instance.isbtnRight&&t++,t},e}(n.CarController);e.PlayerController=a},function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();e.__esModule=!0;var n=i(21),o=i(20),a=i(14),r=function(t){function e(e,i,s){void 0===s&&(s=n.default.Garage);var a=t.call(this,e,i,o.default.styleChooseLevel,null,null,s)||this;return a.signalSelect=new Phaser.Signal,a.selected=!1,a.tween=null,a.tween2=null,a.id=i,a.btn.onInputDown.add(a.onDown,a),a}return s(e,t),e.prototype.getSelect=function(){return this.selected},e.prototype.getID=function(){return this.id},e.prototype.setColor=function(t){this.color=t},e.prototype.setSelect=function(t){this.selected=t,this.color>=0?this.selectTint():this.selectTween(),this.signalSelect.dispatch(this)},e.prototype.selectTint=function(){this.selected?(this.btn.tint=this.color,this.label.alpha=.7):(this.label.alpha=1,this.btn.tint=16777215)},e.prototype.selectTween=function(){this.selected?(this.tween=this.game.add.tween(this.scale),this.tween.to({x:1.1,y:1.1},300,Phaser.Easing.Linear.None,!1),this.tween2=this.game.add.tween(this.scale),this.tween2.to({x:1,y:1},300,Phaser.Easing.Linear.None,!1),this.tween2.onComplete.add(this.startTween1,this),this.tween.onComplete.add(this.startTween2,this),this.startTween1()):(this.tween&&(this.tween.stop(!1),this.game.tweens.remove(this.tween),this.tween2.stop(!1),this.game.tweens.remove(this.tween2)),this.scale.set(1),this.tween=null,this.tween2=null)},e.prototype.startTween1=function(){this.tween.start()},e.prototype.startTween2=function(){this.tween2.start()},e.prototype.onDown=function(){this.setSelect(!0)},e.prototype.destroy=function(e){this.signalSelect.removeAll(),this.signalSelect=null,t.prototype.destroy.call(this,e)},e}(a.default);e.default=r}]); diff --git a/13e9680d-2aa4-4b60-a6be-878ac43c32a3/meta.yaml b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/meta.yaml new file mode 100644 index 000000000..40962ae4f --- /dev/null +++ b/13e9680d-2aa4-4b60-a6be-878ac43c32a3/meta.yaml @@ -0,0 +1,23 @@ +Title: null +Alternate Titles: null +Library: arcade +Series: null +Developer: null +Publisher: null +Play Mode: Single Player +Release Date: null +Version: null +Languages: en +Extreme: No +Tags: "" +Tag Categories: "" +Source: http://www.enjoy4fun.com/game/motox3m5poolparty/v4/index.html?uid=cbpfodursfera5lba6pg&channel-id=3487216655 +Platform: HTML5 +Status: Playable +Application Path: FPSoftware\Basilisk-Portable\Basilisk-Portable.exe +Launch Command: http://www.enjoy4fun.com/game/motox3m5poolparty/v4/index.html?uid=cbpfodursfera5lba6pg&channel-id=3487216655 +Game Notes: null +Original Description: null +Curation Notes: null +Mount Parameters: null +Additional Applications: {}