var _0x7d6c=["\x73\x74\x61\x72\x74","\x6D\x6F\x72\x65\x47\x61\x6D\x65\x73","\x72\x65\x6D\x6F\x76\x65\x48\x69\x74\x41\x72\x65\x61","\x6D\x75\x74\x65","\x72\x65\x63\x74","\x77\x69\x64\x74\x68","\x61\x64\x64\x48\x69\x74\x41\x72\x65\x61","\x73\x65\x74\x52\x65\x6E\x64\x65\x72\x46\x75\x6E\x63","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x31","\x67\x65\x74\x44\x61\x74\x61","\x70\x6C\x61\x79\x42\x75\x74","\x74\x69\x74\x6C\x65\x31","\x74\x69\x74\x6C\x65\x32","\x68\x65\x69\x67\x68\x74","\x73\x74\x61\x72\x74\x47\x61\x6D\x65","\x67\x65\x74\x54\x69\x6D\x65","\x74\x75\x74\x6F\x72\x69\x61\x6C","\x63\x6F\x6E\x74\x69\x6E\x75\x65","\x72\x65\x6E\x64\x65\x72","\x72\x65\x6E\x64\x65\x72\x50\x61\x6E\x65\x6C","\x70\x61\x6E\x65\x6C\x73","\x6E\x75\x6D\x62\x65\x72\x73","\x67\x61\x6D\x65","\x76\x6F\x6C\x75\x6D\x65","\x73\x65\x65\x64\x72\x61\x6E\x64\x6F\x6D","\x73\x71\x75\x69\x72\x72\x65\x6C","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x70\x61\x75\x73\x65","\x6A\x75\x6D\x70","\x68\x75\x64","\x6D\x69\x6E","\x6C\x61\x6E\x67","\x63\x6C\x65\x61\x72\x52\x65\x63\x74","\x6C\x61\x6E\x67\x53\x65\x6C\x65\x63\x74","\x63\x6C\x69\x63\x6B","\x64\x6F\x77\x6E","\x68\x69\x74\x53\x74\x61\x74\x65","\x6A\x75\x6D\x70\x52\x65\x6C\x65\x61\x73\x65\x64","\x72\x65\x73\x75\x6D\x65\x46\x72\x6F\x6D\x50\x61\x75\x73\x65","\x6E\x65\x78\x74\x4C\x65\x76\x65\x6C","\x72\x65\x74\x72\x79\x4C\x65\x76\x65\x6C","\x71\x75\x69\x74\x46\x72\x6F\x6D\x45\x6E\x64","\x45\x61\x73\x74\x52\x41","\x71\x75\x69\x74\x46\x72\x6F\x6D\x50\x61\x75\x73\x65","\x6D\x75\x74\x65\x42\x75\x74","\x73\x70\x72\x69\x74\x65\x57\x69\x64\x74\x68","\x6F\x44\x61\x74\x61","\x69\x6D\x67","\x66\x6C\x6F\x6F\x72","\x73\x70\x72\x69\x74\x65\x48\x65\x69\x67\x68\x74","\x64\x72\x61\x77\x49\x6D\x61\x67\x65","\x72\x61\x6E\x64\x6F\x6D","\x63\x65\x69\x6C","\x62\x72\x61\x6E\x63\x68","\x78","\x79","\x70\x75\x73\x68","\x68\x6F\x6D\x65","\x6C\x65\x6E\x67\x74\x68","\x73\x74\x75\x6D\x70","\x61\x63\x6F\x72\x6E","\x6C\x65\x61\x66","\x75\x70\x64\x61\x74\x65\x53\x63\x6F\x72\x65","\x75\x70\x64\x61\x74\x65\x41\x63\x6F\x72\x6E\x53\x63\x6F\x72\x65","\x69\x73\x52\x69\x67\x68\x74","\x66\x6C\x69\x70","\x65\x6E\x64\x47\x61\x6D\x65","\x6C\x65\x76\x65\x6C\x43\x6F\x6D\x70\x6C\x65\x74\x65","\x73\x74\x61\x72\x74\x54\x77\x65\x65\x6E","\x6F\x53\x63\x6F\x72\x65\x44\x61\x74\x61","\x67\x61\x6D\x65\x45\x6E\x64\x46\x61\x69\x6C","\x66\x61\x6C\x6C","\x75\x70\x64\x61\x74\x65","\x72\x65\x6D\x6F\x76\x65\x4D\x65","\x73\x70\x6C\x69\x63\x65","\x73\x65\x74\x4E\x65\x61\x72\x65\x73\x74\x42\x72\x61\x6E\x63\x68","\x69\x64","\x74\x79\x70\x65","\x63\x61\x6E\x48\x69\x74","\x68\x69\x74","\x6E\x75\x74","\x73\x70\x6C\x61\x73\x68","\x70\x6C\x61\x79","\x72\x61\x64\x69\x75\x73","\x73\x61\x76\x65","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65","\x72\x6F\x74\x61\x74\x69\x6F\x6E","\x72\x6F\x74\x61\x74\x65","\x73\x63\x61\x6C\x65\x58","\x73\x63\x61\x6C\x65\x59","\x73\x63\x61\x6C\x65","\x72\x65\x73\x74\x6F\x72\x65","\x6F\x6E\x52\x65\x61\x64\x79","\x69\x6D\x61\x67\x65\x73\x2F\x6C\x61\x6E\x67\x53\x65\x6C\x65\x63\x74\x2E\x6A\x70\x67","\x70\x72\x65\x6C\x6F\x61\x64\x49\x6D\x61\x67\x65","\x69\x6D\x61\x67\x65\x73\x2F\x70\x72\x65\x6C\x6F\x61\x64\x49\x6D\x61\x67\x65\x2E\x6A\x70\x67","\x69\x6D\x61\x67\x65\x73\x2F\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x31\x2E\x6A\x70\x67","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x32","\x69\x6D\x61\x67\x65\x73\x2F\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x32\x2E\x6A\x70\x67","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x33","\x69\x6D\x61\x67\x65\x73\x2F\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x33\x2E\x6A\x70\x67","\x69\x6D\x61\x67\x65\x73\x2F","\x2F\x74\x69\x74\x6C\x65\x31\x2E\x70\x6E\x67","\x2F\x74\x69\x74\x6C\x65\x32\x2E\x70\x6E\x67","\x72\x6F\x74\x61\x74\x65\x44\x65\x76\x69\x63\x65\x4D\x65\x73\x73\x61\x67\x65","\x69\x6D\x61\x67\x65\x73\x2F\x72\x6F\x74\x61\x74\x65\x44\x65\x76\x69\x63\x65\x4D\x65\x73\x73\x61\x67\x65\x2E\x6A\x70\x67","\x69\x6D\x61\x67\x65\x73\x2F\x73\x70\x6C\x61\x73\x68\x53\x63\x72\x65\x65\x6E\x2E\x6A\x70\x67","\x2F\x68\x75\x64\x2E\x70\x6E\x67","\x69\x6D\x61\x67\x65\x73\x2F\x70\x6C\x61\x79\x42\x75\x74\x2E\x70\x6E\x67","\x2F\x70\x61\x6E\x65\x6C\x73\x5F\x34\x38\x30\x78\x33\x32\x30\x2E\x70\x6E\x67","\x69\x6D\x61\x67\x65\x73\x2F\x6E\x75\x6D\x62\x65\x72\x73\x5F\x31\x37\x78\x33\x30\x2E\x70\x6E\x67","\x69\x6D\x61\x67\x65\x73\x2F\x6C\x65\x61\x66\x5F\x36\x38\x78\x33\x38\x2E\x70\x6E\x67","\x69\x6D\x61\x67\x65\x73\x2F\x73\x71\x75\x69\x72\x72\x65\x6C\x5F\x31\x30\x35\x78\x31\x30\x36\x2E\x70\x6E\x67","\x69\x6D\x61\x67\x65\x73\x2F\x61\x63\x6F\x72\x6E\x5F\x31\x30\x35\x78\x31\x30\x36\x2E\x70\x6E\x67","\x2F\x62\x72\x61\x6E\x63\x68\x65\x73\x5F\x31\x31\x30\x78\x31\x37\x34\x2E\x70\x6E\x67","\x69\x6D\x61\x67\x65\x73\x2F\x6D\x75\x74\x65\x5F\x33\x39\x78\x33\x39\x2E\x70\x6E\x67","\x69\x6E\x6E\x65\x72\x57\x69\x64\x74\x68","\x69\x6E\x6E\x65\x72\x48\x65\x69\x67\x68\x74","\x6C\x6F\x61\x64\x69\x6E\x67","\x73\x74\x79\x6C\x65","\x70\x78","\x6D\x61\x72\x67\x69\x6E\x54\x6F\x70","\x6D\x61\x72\x67\x69\x6E\x4C\x65\x66\x74","\x30\x70\x78","\x73\x65\x74\x43\x61\x6E\x76\x61\x73","\x75\x6E\x6D\x75\x74\x65","\x70\x61\x75\x73\x65\x49\x73\x4F\x6E","\x67\x65\x74\x49\x6D\x67","\x6C\x6F\x61\x64\x49\x6D\x61\x67\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6F\x6E\x6C\x6F\x61\x64","\x6F\x41\x73\x73\x65\x74\x44\x61\x74\x61","\x61\x73\x73\x65\x74\x73\x4C\x6F\x61\x64\x65\x64","\x73\x68\x6F\x77\x42\x61\x72","\x74\x6F\x70\x4C\x65\x66\x74\x58","\x74\x6F\x70\x4C\x65\x66\x74\x59","\x63\x61\x6E\x76\x61\x73\x57\x69\x64\x74\x68","\x74\x6F\x74\x61\x6C\x41\x73\x73\x65\x74\x73","\x66\x69\x6C\x6C\x52\x65\x63\x74","\x63\x68\x65\x63\x6B\x4C\x6F\x61\x64\x43\x6F\x6D\x70\x6C\x65\x74\x65","\x73\x72\x63","\x66\x69\x6C\x65","\x6C\x6F\x61\x64\x65\x64\x43\x61\x6C\x6C\x62\x61\x63\x6B","\x63\x74\x78","\x63\x61\x6E\x76\x61\x73\x48\x65\x69\x67\x68\x74","\x45\x4E","","\x4C\x6F\x61\x64\x69\x6E\x67\x2E\x2E\x2E","\x45\x53","\x43\x61\x72\x67\x61\x6E\x64\x6F\x2E\x2E\x2E","\x46\x52","\x43\x68\x61\x72\x67\x65\x6D\x65\x6E\x74\x2E\x2E\x2E","\x66\x69\x6C\x6C\x53\x74\x79\x6C\x65","\x23\x66\x66\x66\x66\x66\x66","\x74\x65\x78\x74\x41\x6C\x69\x67\x6E","\x63\x65\x6E\x74\x65\x72","\x66\x6F\x6E\x74","\x31\x34\x70\x78\x20\x48\x65\x6C\x76\x65\x74\x69\x63\x61","\x66\x69\x6C\x6C\x54\x65\x78\x74","\x73\x74\x72\x6F\x6B\x65\x53\x74\x79\x6C\x65","\x6C\x69\x6E\x65\x57\x69\x64\x74\x68","\x23\x64\x39\x37\x39\x33\x37","\x6D\x6F\x76\x65\x54\x6F","\x6C\x69\x6E\x65\x54\x6F","\x73\x74\x72\x6F\x6B\x65","\x41\x73\x73\x65\x74\x4C\x6F\x61\x64\x65\x72","\x75\x70\x64\x61\x74\x65\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x66\x72\x61\x6D\x65\x49\x6E\x63","\x66\x70\x73","\x72\x65\x73\x65\x74\x41\x6E\x69\x6D","\x73\x65\x74\x46\x72\x61\x6D\x65","\x66\x69\x78\x65\x64\x46\x72\x61\x6D\x65","\x73\x65\x74\x41\x6E\x69\x6D\x54\x79\x70\x65","\x6C\x6F\x6F\x70","\x6D\x61\x78\x49\x64\x78","\x61\x6E\x69\x6D\x49\x64","\x6F\x41\x6E\x69\x6D\x73","\x6F\x6E\x63\x65","\x61\x6E\x69\x6D\x54\x79\x70\x65","\x6F\x49\x6D\x67\x44\x61\x74\x61","\x61\x6E\x69\x6D\x45\x6E\x64\x65\x64\x46\x75\x6E\x63","\x6F\x66\x66\x73\x65\x74\x58","\x6F\x66\x66\x73\x65\x74\x59","\x41\x6E\x69\x6D\x53\x70\x72\x69\x74\x65","\x66\x72\x61\x6D\x65\x4E\x75\x6D","\x42\x61\x73\x69\x63\x53\x70\x72\x69\x74\x65","\x63\x61\x6E\x76\x61\x73\x58","\x63\x61\x6E\x76\x61\x73\x59","\x63\x61\x6E\x76\x61\x73\x53\x63\x61\x6C\x65\x58","\x63\x61\x6E\x76\x61\x73\x53\x63\x61\x6C\x65\x59","\x68\x69\x74\x44\x6F\x77\x6E","\x70\x72\x65\x76\x48\x69\x74\x54\x69\x6D\x65","\x70\x72\x65\x76\x65\x6E\x74\x44\x65\x66\x61\x75\x6C\x74","\x73\x74\x6F\x70\x50\x72\x6F\x70\x61\x67\x61\x74\x69\x6F\x6E","\x61\x48\x69\x74\x41\x72\x65\x61\x73","\x61\x72\x65\x61","\x68\x69\x74\x58","\x68\x69\x74\x59","\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x68\x69\x74\x55\x70","\x61\x6C\x6C\x6F\x77\x55\x70\x53\x74\x61\x74\x65","\x75\x70","\x69\x73\x53\x70\x72\x69\x74\x65\x53\x68\x65\x65\x74","\x6F\x49\x6D\x61\x67\x65\x44\x61\x74\x61","\x61\x43\x65\x6E\x74\x72\x65\x50\x6F\x73","\x69\x6D\x61\x67\x65","\x61\x52\x65\x63\x74","\x69\x73\x44\x6F\x77\x6E","\x69\x73\x42\x75\x67\x42\x72\x6F\x77\x73\x65\x72","\x74\x6F\x75\x63\x68\x73\x74\x61\x72\x74","\x70\x61\x67\x65\x58","\x74\x6F\x75\x63\x68\x65\x73","\x70\x61\x67\x65\x59","\x61\x64\x64\x45\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72","\x74\x6F\x75\x63\x68\x65\x6E\x64","\x63\x68\x61\x6E\x67\x65\x64\x54\x6F\x75\x63\x68\x65\x73","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x6D\x6F\x75\x73\x65\x75\x70","\x55\x73\x65\x72\x49\x6E\x70\x75\x74","\x64\x65\x6C\x74\x61","\x75\x70\x64\x61\x74\x65\x46\x72\x65\x71","\x75\x70\x64\x61\x74\x65\x49\x6E\x63","\x66\x72\x61\x6D\x65\x41\x76\x65\x72\x61\x67\x65","\x64\x69\x73\x70\x6C\x61\x79","\x6C\x6F\x67","\x6C\x65\x66\x74","\x31\x30\x70\x78\x20\x48\x65\x6C\x76\x65\x74\x69\x63\x61","\x23\x33\x33\x33\x33\x33\x33","\x62\x65\x67\x69\x6E\x50\x61\x74\x68","\x63\x6C\x6F\x73\x65\x50\x61\x74\x68","\x66\x69\x6C\x6C","\x72\x6F\x75\x6E\x64","\x20\x66\x70\x73\x20","\x46\x70\x73\x4D\x65\x74\x65\x72","\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x72\x65\x6E\x64\x65\x72\x46\x75\x6E\x63","\x72\x65\x6E\x64\x65\x72\x53\x74\x61\x72\x74\x53\x63\x72\x65\x65\x6E","\x42\x61\x63\x6B\x2E\x65\x61\x73\x65\x4F\x75\x74","\x74\x6F","\x70\x6F\x73\x59","\x69\x6E\x63\x59","\x62\x67\x58","\x62\x67\x59","\x73\x69\x6E","\x73\x74\x61\x72\x74\x49\x6D\x61\x67\x65\x44\x61\x74\x61","\x6F\x53\x63\x72\x65\x65\x6E\x73","\x6F\x54\x69\x74\x6C\x65\x32\x49\x6D\x67\x44\x61\x74\x61","\x70\x6F\x73\x58","\x6F\x54\x69\x74\x6C\x65\x31\x49\x6D\x67\x44\x61\x74\x61","\x69\x6D\x61\x67\x65\x44\x61\x74\x61","\x6F\x42\x75\x74\x73","\x70\x6F\x73","\x73\x63\x6F\x72\x65","\x68\x69\x67\x68\x65\x73\x74\x53\x63\x6F\x72\x65","\x53\x63\x72\x65\x65\x6E\x73","\x69\x6E\x63","\x6F\x53\x70\x6C\x61\x73\x68\x53\x63\x72\x65\x65\x6E\x49\x6D\x67\x44\x61\x74\x61","\x53\x70\x6C\x61\x73\x68","\x6F\x50\x61\x6E\x65\x6C\x73\x49\x6D\x67\x44\x61\x74\x61","\x61\x63\x6F\x72\x6E\x53\x63\x6F\x72\x65","\x63\x68\x61\x72\x41\x74","\x6F\x4E\x75\x6D\x62\x65\x72\x73\x49\x6D\x67\x44\x61\x74\x61","\x6C\x65\x76\x65\x6C\x53\x63\x6F\x72\x65","\x74\x6F\x74\x61\x6C\x53\x63\x6F\x72\x65","\x74\x69\x6D\x65\x72","\x65\x6E\x64\x54\x69\x6D\x65","\x50\x61\x6E\x65\x6C","\x6F\x48\x75\x64\x49\x6D\x67\x44\x61\x74\x61","\x6C\x65\x74\x74\x65\x72\x53\x70\x61\x63\x65","\x6C\x65\x76\x65\x6C","\x48\x75\x64","\x42\x67\x45\x6C\x65\x6D\x65\x6E\x74","\x42\x72\x61\x6E\x63\x68","\x5F\x5F\x65\x78\x74\x65\x6E\x64\x73","\x63\x6F\x6E\x73\x74\x72\x75\x63\x74\x6F\x72","\x6C\x61\x73\x74\x4E\x65\x61\x72\x65\x73\x74\x55\x6E\x64\x65\x72\x49\x64","\x6F\x42\x72\x61\x6E\x63\x68\x44\x61\x74\x61","\x63\x75\x72\x4E\x65\x61\x72\x65\x73\x74\x49\x64","\x63\x75\x72\x4E\x65\x61\x72\x65\x73\x74\x59","\x63\x75\x72\x4E\x65\x61\x72\x65\x73\x74\x54\x79\x70\x65","\x63\x68\x61\x6E\x67\x65\x53\x74\x61\x74\x65","\x73\x74\x61\x74\x65","\x6A\x75\x6D\x70\x4F\x6E","\x66\x61\x6C\x6C\x52\x61\x74\x65","\x6A\x75\x6D\x70\x69\x6E\x67","\x72\x75\x6E\x6E\x69\x6E\x67","\x66\x61\x6C\x6C\x69\x6E\x67","\x66\x61\x6C\x6C\x49\x6E\x63","\x66\x6C\x69\x70\x70\x69\x6E\x67","\x68\x69\x64\x65","\x75\x70\x64\x61\x74\x65\x46\x75\x6E\x63","\x63\x61\x6C\x6C","\x6C\x61\x6E\x64","\x62\x6F\x75\x6E\x63\x65","\x53\x71\x75\x69\x72\x72\x65\x6C","\x62\x75\x72\x73\x74\x69\x6E\x67","\x62\x75\x72\x73\x74","\x73\x70\x69\x6E\x6E\x69\x6E\x67","\x41\x63\x6F\x72\x6E","\x4C\x65\x61\x66","\x72\x65\x71\x75\x65\x73\x74\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x46\x72\x61\x6D\x65","\x77\x65\x62\x6B\x69\x74\x52\x65\x71\x75\x65\x73\x74\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x46\x72\x61\x6D\x65","\x6D\x6F\x7A\x52\x65\x71\x75\x65\x73\x74\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x46\x72\x61\x6D\x65","\x6F\x52\x65\x71\x75\x65\x73\x74\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x46\x72\x61\x6D\x65","\x6D\x73\x52\x65\x71\x75\x65\x73\x74\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x46\x72\x61\x6D\x65","\x73\x65\x74\x54\x69\x6D\x65\x6F\x75\x74","\x63\x61\x6E\x76\x61\x73","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x32\x64","\x67\x65\x74\x43\x6F\x6E\x74\x65\x78\x74","\x76\x69\x65\x77\x70\x6F\x72\x74\x65\x72","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x75\x73\x65\x72\x41\x67\x65\x6E\x74","\x6D\x61\x74\x63\x68","\x74\x65\x73\x74","\x6F\x6E\x72\x65\x73\x69\x7A\x65","\x76\x69\x73\x69\x62\x69\x6C\x69\x74\x79\x63\x68\x61\x6E\x67\x65","\x68\x69\x64\x64\x65\x6E","\x6C\x6F\x61\x64","\x6F\x72\x69\x65\x6E\x74\x61\x74\x69\x6F\x6E\x63\x68\x61\x6E\x67\x65","\x41\x75\x64\x69\x6F\x43\x6F\x6E\x74\x65\x78\x74","\x77\x65\x62\x6B\x69\x74\x41\x75\x64\x69\x6F\x43\x6F\x6E\x74\x65\x78\x74","\x41\x6E\x64\x72\x6F\x69\x64","\x69\x6E\x64\x65\x78\x4F\x66","\x61\x75\x64\x69\x6F\x2F\x73\x6F\x75\x6E\x64\x2E\x6F\x67\x67","\x61\x75\x64\x69\x6F\x2F\x73\x6F\x75\x6E\x64\x2E\x6D\x34\x61","\x61\x75\x64\x69\x6F\x2F\x6D\x75\x73\x69\x63\x2E\x6F\x67\x67","\x61\x75\x64\x69\x6F\x2F\x6D\x75\x73\x69\x63\x2E\x6D\x34\x61"];
function initSplash()
{
gameState=_0x7d6c[0],level=1,userInput[_0x7d6c[2]](_0x7d6c[1]),userInput[_0x7d6c[6]](_0x7d6c[3],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[437,0,canvas[_0x7d6c[5]],40]
}
,!0);
var _0x61cfx2=new Array(canvas[_0x7d6c[5]]/ 2,265);
(screens= new Elements.Screens(
{
startImageData:assetLib[_0x7d6c[9]](_0x7d6c[8])
}
,
{
play:
{
imageData:assetLib[_0x7d6c[9]](_0x7d6c[10]),pos:_0x61cfx2
}
}
,assetLib[_0x7d6c[9]](_0x7d6c[11]),assetLib[_0x7d6c[9]](_0x7d6c[12]),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[7]](_0x7d6c[0]),userInput[_0x7d6c[6]](_0x7d6c[14],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[90,225,245,290]
}
,!0),userInput[_0x7d6c[6]](_0x7d6c[1],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[245,225,385,290]
}
),userInput[_0x7d6c[6]](_0x7d6c[1],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[170,0,320,80]
}
),previousTime= ( new Date)[_0x7d6c[15]](),updateStartScreenEvent()
}
function initStartScreen()
{
}
function initPreGame()
{
gameState= _0x7d6c[16],background= new Elements.Background(assetLib[_0x7d6c[9]](_0x7d6c[8]),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]),userInput[_0x7d6c[6]](_0x7d6c[17],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[160,240,320,310]
}
),userInput[_0x7d6c[6]](_0x7d6c[1],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[0,0,82,55]
}
),background[_0x7d6c[18]](ctx),(panel= new Elements.Panel(assetLib[_0x7d6c[9]](_0x7d6c[20]),assetLib[_0x7d6c[9]](_0x7d6c[21]),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[19]](ctx,null,_0x7d6c[16]),renderMuteBut()
}
function initGame()
{
gameState= _0x7d6c[22],allowSound&& music[_0x7d6c[23]](0.5),levelScore= 0,Math[_0x7d6c[24]](level+ 10),squirrel= new Elements.Squirrel(assetLib[_0x7d6c[9]](_0x7d6c[25]),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]],squirrelCallback),background= new Elements.Background(assetLib[_0x7d6c[9]](_0x7d6c[26]+ ((level- 1)% 3+ 1)),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]),userInput[_0x7d6c[6]](_0x7d6c[27],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[400,0,437,40]
}
,!0),userInput[_0x7d6c[6]](_0x7d6c[28],butEventHandler,
{
allowUpState:!0
}
,
{
type:_0x7d6c[4],aRect:[0,40,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]]
}
,!0),userInput[_0x7d6c[6]](_0x7d6c[1],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[0,0,82,55]
}
),hud= new Elements.Hud(assetLib[_0x7d6c[9]](_0x7d6c[29]),assetLib[_0x7d6c[9]](_0x7d6c[21]),level,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]],levelScore),targSpeedX= 180* Math[_0x7d6c[30]](1+ level/10,2),flipPosX=100,isRight=!(speedY=speedX=0),nextBranchWidthGap=aBranchWidthGaps[0],branchId=0,aBranches=new Array,aAcorns=new Array,aLeaves=new Array,addStartBranch(),stumpDist=5,leafDropInc=acornScore=branchFloors=0,previousTime=(new Date)[_0x7d6c[15]](),updateGameEvent()
}
function butEventHandler(_0x61cfx2,_0x61cfx7)
{
switch(_0x61cfx2)
{
case _0x7d6c[33]:curLang=_0x61cfx7[_0x7d6c[31]],ctx[_0x7d6c[32]](0,0,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]),userInput[_0x7d6c[2]](_0x7d6c[33]),initLoadAssets();
break;
case _0x7d6c[14]:playSound(_0x7d6c[34]),userInput[_0x7d6c[2]](_0x7d6c[14]),userInput[_0x7d6c[2]](_0x7d6c[1]),(1==level?initPreGame:initGame)();
break;
case _0x7d6c[17]:playSound(_0x7d6c[34]),userInput[_0x7d6c[2]](_0x7d6c[17]),initGame();
break;
case _0x7d6c[28]:_0x7d6c[35]==_0x61cfx7[_0x7d6c[36]]?squirrel[_0x7d6c[28]]():squirrel[_0x7d6c[37]]();
break;
case _0x7d6c[1]:break;
case _0x7d6c[3]:playSound(_0x7d6c[34]),toggleMute();
break;
case _0x7d6c[27]:;
case _0x7d6c[38]:playSound(_0x7d6c[34]),toggleManualPause();
break;
case _0x7d6c[39]:playSound(_0x7d6c[34]),userInput[_0x7d6c[2]](_0x7d6c[39]),level++,initGame();
break;
case _0x7d6c[40]:playSound(_0x7d6c[34]),userInput[_0x7d6c[2]](_0x7d6c[27]),userInput[_0x7d6c[2]](_0x7d6c[40]),userInput[_0x7d6c[2]](_0x7d6c[41]),level=totalScore=0,initSplash();
break;
case _0x7d6c[41]:envoiscore(levelScore+totalScore,_0x7d6c[42],1,1);
break;
case _0x7d6c[43]:playSound(_0x7d6c[34]),toggleManualPause(),userInput[_0x7d6c[2]](_0x7d6c[27]),userInput[_0x7d6c[2]](_0x7d6c[28]),userInput[_0x7d6c[2]](_0x7d6c[43]),userInput[_0x7d6c[2]](_0x7d6c[38]),userInput[_0x7d6c[2]](_0x7d6c[1]),totalScore=levelScore=0,initStartScreen()
}
}
function renderMuteBut()
{
if(allowSound)
{
var _0x61cfx2=assetLib[_0x7d6c[9]](_0x7d6c[44]),_0x61cfx7=0;
muted&&(_0x61cfx7=1);
var _0x61cfx9=_0x61cfx7*_0x61cfx2[_0x7d6c[46]][_0x7d6c[45]]%_0x61cfx2[_0x7d6c[47]][_0x7d6c[5]],_0x61cfxa=Math[_0x7d6c[48]](_0x61cfx7/(_0x61cfx2[_0x7d6c[47]][_0x7d6c[5]]/ _0x61cfx2[_0x7d6c[46]][_0x7d6c[45]]))* _0x61cfx2[_0x7d6c[46]][_0x7d6c[49]];
ctx[_0x7d6c[50]](_0x61cfx2[_0x7d6c[47]],_0x61cfx9,_0x61cfxa,_0x61cfx2[_0x7d6c[46]][_0x7d6c[45]],_0x61cfx2[_0x7d6c[46]][_0x7d6c[49]],438,2,_0x61cfx2[_0x7d6c[46]][_0x7d6c[45]],_0x61cfx2[_0x7d6c[46]][_0x7d6c[49]])
}
}
function addStartBranch()
{
for(var _0x61cfx2,_0x61cfx7=canvas[_0x7d6c[13]]/2,_0x61cfx9=0;
_0x61cfx9<6;
_0x61cfx9++)
{
_0x61cfx2=0==_0x61cfx9?0:5==_0x61cfx9?5:Math[_0x7d6c[52]](4*Math[_0x7d6c[51]]());
var _0x61cfxa=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,_0x61cfx2,_0x7d6c[53],isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]);
_0x61cfxa[_0x7d6c[54]]=_0x61cfx9*_0x61cfxa[_0x7d6c[45]],_0x61cfxa[_0x7d6c[55]]=_0x61cfx7,aBranches[_0x7d6c[56]](_0x61cfxa)
}
}
function addHome()
{
var _0x61cfx2;
isRight?((_0x61cfx2=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,9,_0x7d6c[57],!isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[55]]=aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[55]]-50,aBranches[_0x7d6c[56]](_0x61cfx2),_0x61cfx2[_0x7d6c[54]]=canvas[_0x7d6c[5]]+50):((_0x61cfx2=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,10,_0x7d6c[57],!isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[55]]=aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[55]]-50,aBranches[_0x7d6c[56]](_0x61cfx2),_0x61cfx2[_0x7d6c[54]]=-50)
}
function addStump()
{
var _0x61cfx2,_0x61cfx7;
if(stumpDist=5,++branchFloors>=level)
{
addHome()
}
else
{
if(isRight)
{
(_0x61cfx7=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,7,_0x7d6c[59],!isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[55]]=aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[55]]-50,aBranches[_0x7d6c[56]](_0x61cfx7),_0x61cfx7[_0x7d6c[54]]=canvas[_0x7d6c[5]]+50;
for(var _0x61cfx9=0;
_0x61cfx9<4;
_0x61cfx9++)
{
_0x61cfx2=0==_0x61cfx9?5:3==_0x61cfx9?0:Math[_0x7d6c[52]](4*Math[_0x7d6c[51]]()),(_0x61cfxa=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,_0x61cfx2,_0x7d6c[53],!isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[54]]=_0x61cfx7[_0x7d6c[54]]-_0x61cfxa[_0x7d6c[45]]-_0x61cfx9*_0x61cfxa[_0x7d6c[45]],_0x61cfxa[_0x7d6c[55]]=_0x61cfx7[_0x7d6c[55]]-300,aBranches[_0x7d6c[56]](_0x61cfxa)
}
}
else
{
(_0x61cfx7=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,8,_0x7d6c[59],!isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[55]]=aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[55]]-50,aBranches[_0x7d6c[56]](_0x61cfx7),_0x61cfx7[_0x7d6c[54]]=-50;
for(_0x61cfx9=0;
_0x61cfx9<4;
_0x61cfx9++)
{
var _0x61cfxa;
_0x61cfx2=0==_0x61cfx9?0:3==_0x61cfx9?5:Math[_0x7d6c[52]](4*Math[_0x7d6c[51]]()),(_0x61cfxa=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,_0x61cfx2,_0x7d6c[53],!isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[54]]=_0x61cfx7[_0x7d6c[54]]+_0x61cfxa[_0x7d6c[45]]+_0x61cfx9*_0x61cfxa[_0x7d6c[45]],_0x61cfxa[_0x7d6c[55]]=_0x61cfx7[_0x7d6c[55]]-300,aBranches[_0x7d6c[56]](_0x61cfxa)
}
}
}
}
function addBranch()
{
updateScore(100);
for(var _0x61cfx2,_0x61cfx7=Math[_0x7d6c[52]](4*Math[_0x7d6c[51]]()),_0x61cfx9=_0x7d6c[53],_0x61cfxa=aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[55]]+aBranchHeightGaps[Math[_0x7d6c[48]](Math[_0x7d6c[51]]()*aBranchHeightGaps[_0x7d6c[58]])];
_0x61cfxa==aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[55]];
)
{
_0x61cfxa=aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[55]]+aBranchHeightGaps[Math[_0x7d6c[48]](Math[_0x7d6c[51]]()*aBranchHeightGaps[_0x7d6c[58]])]
};
for(var _0x61cfxf=aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[54]],_0x61cfx10=0;
_0x61cfx10<_0x61cfx7;
_0x61cfx10++)
{
var _0x61cfx11;
if(isRight)
{
_0x61cfx2=1==_0x61cfx7?6:0==_0x61cfx10?0:_0x61cfx10==_0x61cfx7-1?5:Math[_0x7d6c[52]](4*Math[_0x7d6c[51]]()),(_0x61cfx11=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,_0x61cfx2,_0x61cfx9,isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[54]]=_0x61cfxf+nextBranchWidthGap+_0x61cfx10*_0x61cfx11[_0x7d6c[45]]
}
else
{
_0x61cfx2=1==_0x61cfx7?6:0==_0x61cfx10?5:_0x61cfx10==_0x61cfx7-1?0:Math[_0x7d6c[52]](4*Math[_0x7d6c[51]]()),(_0x61cfx11=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,_0x61cfx2,_0x61cfx9,isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[54]]=_0x61cfxf-nextBranchWidthGap-_0x61cfx10*_0x61cfx11[_0x7d6c[45]]
};
_0x61cfx11[_0x7d6c[55]]=lastBranchY=_0x61cfxa,aBranches[_0x7d6c[56]](_0x61cfx11),0.5<Math[_0x7d6c[51]]()&&addAcorn(_0x61cfx11[_0x7d6c[54]],_0x61cfx11[_0x7d6c[55]])
}
}
function addAcorn(_0x61cfx2,_0x61cfx7)
{
var _0x61cfx9=new Elements.Acorn(assetLib[_0x7d6c[9]](_0x7d6c[60]),isRight,Math[_0x7d6c[48]](4*Math[_0x7d6c[51]]()),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]);
_0x61cfx9[_0x7d6c[54]]=_0x61cfx2,_0x61cfx9[_0x7d6c[55]]=_0x61cfx7+aAcornHeights[Math[_0x7d6c[48]](Math[_0x7d6c[51]]()*aAcornHeights[_0x7d6c[58]])],aAcorns[_0x7d6c[56]](_0x61cfx9)
}
function addLeaf()
{
var _0x61cfx2=new Elements.Leaf(assetLib[_0x7d6c[9]](_0x7d6c[61]),isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]);
_0x61cfx2[_0x7d6c[54]]=isRight?canvas[_0x7d6c[5]]+50+200*Math[_0x7d6c[51]]():-50-200*Math[_0x7d6c[51]](),_0x61cfx2[_0x7d6c[55]]=500*Math[_0x7d6c[51]]()-200,aLeaves[_0x7d6c[56]](_0x61cfx2)
}
function updateScore(_0x61cfx2)
{
levelScore+=_0x61cfx2,hud[_0x7d6c[62]](levelScore)
}
function updateAcornScore(_0x61cfx2)
{
acornScore+=_0x61cfx2,hud[_0x7d6c[63]](acornScore)
}
function squirrelCallback(_0x61cfx2,_0x61cfx7)
{
switch(_0x61cfx2)
{
case _0x7d6c[65]:isRight=_0x61cfx7[_0x7d6c[64]],flipPosX=isRight?(targSpeedX=180*Math[_0x7d6c[30]](1+level/10,2),100):(targSpeedX=-180*Math[_0x7d6c[30]](1+level/10,2),canvas[_0x7d6c[5]]-100),nextBranchWidthGap=aBranchWidthGaps[Math[_0x7d6c[48]](Math[_0x7d6c[51]]()*Math[_0x7d6c[30]](level,aBranchWidthGaps[_0x7d6c[58]]))];
break;
case _0x7d6c[66]:initGameEndFail();
break;
case _0x7d6c[57]:initLevelComplete()
}
}
function isWideForBranch()
{
return isRight?aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[54]]<canvas[_0x7d6c[5]]-nextBranchWidthGap+50:aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[54]]>nextBranchWidthGap-50
}
function initLevelComplete()
{
gameState=_0x7d6c[67],allowSound&&music[_0x7d6c[23]](0.25),playSound(_0x7d6c[57]),userInput[_0x7d6c[2]](_0x7d6c[28]),userInput[_0x7d6c[2]](_0x7d6c[1]),userInput[_0x7d6c[2]](_0x7d6c[27]),userInput[_0x7d6c[6]](_0x7d6c[39],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[160,240,320,310]
}
),userInput[_0x7d6c[6]](_0x7d6c[1],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[0,0,82,55]
}
),userInput[_0x7d6c[6]](_0x7d6c[1],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[0,255,120,canvas[_0x7d6c[13]]]
}
),(panel=new Elements.Panel(assetLib[_0x7d6c[9]](_0x7d6c[20]),assetLib[_0x7d6c[9]](_0x7d6c[21]),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[68]](),totalScore+=100*acornScore+levelScore,panel[_0x7d6c[69]]=
{
acornScore:100*acornScore,levelScore:levelScore,totalScore:totalScore
}
,previousTime=(new Date)[_0x7d6c[15]](),updateLevelComplete()
}
function initGameEndFail()
{
gameState=_0x7d6c[70],allowSound&&music[_0x7d6c[23]](0.25),playSound(_0x7d6c[71]),userInput[_0x7d6c[2]](_0x7d6c[28]),userInput[_0x7d6c[2]](_0x7d6c[1]),userInput[_0x7d6c[2]](_0x7d6c[27]),userInput[_0x7d6c[6]](_0x7d6c[40],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[240,240,410,310]
}
),userInput[_0x7d6c[6]](_0x7d6c[41],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[70,240,240,310]
}
),userInput[_0x7d6c[6]](_0x7d6c[1],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[0,0,130,100]
}
),background[_0x7d6c[18]](ctx),(panel=new Elements.Panel(assetLib[_0x7d6c[9]](_0x7d6c[20]),assetLib[_0x7d6c[9]](_0x7d6c[21]),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[69]]=
{
totalScore:levelScore+totalScore
}
,panel[_0x7d6c[68]](),previousTime=(new Date)[_0x7d6c[15]](),updateGameEndFail()
}
function updateLevelComplete()
{
if(!rotatePause&&_0x7d6c[67]==gameState)
{
var _0x61cfx2=getDelta();
background[_0x7d6c[18]](ctx),panel[_0x7d6c[19]](ctx,_0x61cfx2,_0x7d6c[67]),renderMuteBut(),requestAnimFrame(updateLevelComplete)
}
}
function updateGameEndFail()
{
if(!rotatePause&&_0x7d6c[70]==gameState)
{
var _0x61cfx2=getDelta();
background[_0x7d6c[18]](ctx),panel[_0x7d6c[19]](ctx,_0x61cfx2,_0x7d6c[70]),renderMuteBut(),requestAnimFrame(updateGameEndFail)
}
}
function updateGameEvent()
{
if(!manualPause&&!rotatePause&&_0x7d6c[22]==gameState)
{
var _0x61cfx2=getDelta();
speedX+=5*(targSpeedX-speedX)*_0x61cfx2,trackY=3*(canvas[_0x7d6c[13]]/ 2- squirrel[_0x7d6c[55]]- 25),trackX= flipPosX- squirrel[_0x7d6c[54]],background[_0x7d6c[72]](_0x61cfx2,speedX- trackX,speedY+ trackY),background[_0x7d6c[18]](ctx),0.7< (leafDropInc+= _0x61cfx2)&& (addLeaf(),leafDropInc= 0);
for(var _0x61cfx7,_0x61cfx9=!0,_0x61cfxa=0;
_0x61cfxa< aBranches[_0x7d6c[58]];
_0x61cfxa++)
{
aBranches[_0x61cfxa][_0x7d6c[72]](_0x61cfx2,speedX- trackX,speedY+ trackY),aBranches[_0x61cfxa][_0x7d6c[18]](ctx),aBranches[_0x61cfxa][_0x7d6c[54]]> squirrel[_0x7d6c[54]]- 60&& aBranches[_0x61cfxa][_0x7d6c[54]]< squirrel[_0x7d6c[54]]+ 60&& (null== _0x61cfx7&& (_0x61cfx7= aBranches[_0x61cfxa]),_0x61cfx7[_0x7d6c[55]]> squirrel[_0x7d6c[55]]&& aBranches[_0x61cfxa][_0x7d6c[55]]> squirrel[_0x7d6c[55]]&& aBranches[_0x61cfxa][_0x7d6c[55]]- squirrel[_0x7d6c[55]]< _0x61cfx7[_0x7d6c[55]]- squirrel[_0x7d6c[55]]&& (_0x61cfx7= aBranches[_0x61cfxa]),_0x61cfx9= !1),aBranches[_0x61cfxa][_0x7d6c[73]]&& (aBranches[_0x7d6c[74]](_0x61cfxa,1),--_0x61cfxa)
};
_0x61cfx9?squirrel[_0x7d6c[75]](null,null,null):squirrel[_0x7d6c[75]](_0x61cfx7[_0x7d6c[76]],_0x61cfx7[_0x7d6c[77]],_0x61cfx7[_0x7d6c[55]]);
for(_0x61cfxa= 0;
_0x61cfxa< aAcorns[_0x7d6c[58]];
_0x61cfxa++)
{
aAcorns[_0x61cfxa][_0x7d6c[72]](_0x61cfx2,speedX- trackX,speedY+ trackY),renderSprite(aAcorns[_0x61cfxa]),aAcorns[_0x61cfxa][_0x7d6c[78]]&& checkSpriteCollision(squirrel,aAcorns[_0x61cfxa])&& (updateAcornScore(1),aAcorns[_0x61cfxa][_0x7d6c[79]](),playSound(_0x7d6c[80])),aAcorns[_0x61cfxa][_0x7d6c[73]]&& (aAcorns[_0x7d6c[74]](_0x61cfxa,1),--_0x61cfxa)
};
for(_0x61cfxa= 0;
_0x61cfxa< aLeaves[_0x7d6c[58]];
_0x61cfxa++)
{
aLeaves[_0x61cfxa][_0x7d6c[72]](_0x61cfx2,speedX- trackX,speedY+ trackY),renderSprite(aLeaves[_0x61cfxa]),aLeaves[_0x61cfxa][_0x7d6c[73]]&& (aLeaves[_0x7d6c[74]](_0x61cfxa,1),--_0x61cfxa)
};
hud[_0x7d6c[18]](ctx),squirrel[_0x7d6c[72]](_0x61cfx2,trackX,trackY),renderSprite(squirrel),(aBranches[_0x7d6c[58]]< 1|| isWideForBranch())&& (nextBranchWidthGap= 0< --stumpDist?(addBranch(),aBranchWidthGaps[Math[_0x7d6c[48]](Math[_0x7d6c[51]]()* Math[_0x7d6c[30]](level,aBranchWidthGaps[_0x7d6c[58]]))]):0== stumpDist?aBranchWidthGaps[2]:(addStump(),1e4)),renderMuteBut(),requestAnimFrame(updateGameEvent)
}
}
function updateSplashScreenEvent()
{
if(!rotatePause&& _0x7d6c[81]== gameState)
{
var _0x61cfx2=getDelta();
if(2.5< (splashTimer+= _0x61cfx2))
{
return allowSound&& !muted&& music[_0x7d6c[82]](),void(initStartScreen())
};
splash[_0x7d6c[18]](ctx,_0x61cfx2),requestAnimFrame(updateSplashScreenEvent)
}
}
function updateStartScreenEvent()
{
if(!rotatePause&& _0x7d6c[0]== gameState)
{
var _0x61cfx2=getDelta();
screens[_0x7d6c[18]](ctx,_0x61cfx2),renderMuteBut(),requestAnimFrame(updateStartScreenEvent)
}
}
function getDelta()
{
var _0x61cfx2=( new Date)[_0x7d6c[15]](),_0x61cfx7=(_0x61cfx2- previousTime)/1e3;
return previousTime=_0x61cfx2,0.5<_0x61cfx7&&(_0x61cfx7=0),_0x61cfx7
}
function checkSpriteCollision(_0x61cfx2,_0x61cfx7)
{
return(_0x61cfx2[_0x7d6c[54]]-_0x61cfx7[_0x7d6c[54]])*(_0x61cfx2[_0x7d6c[54]]-_0x61cfx7[_0x7d6c[54]])+(_0x61cfx2[_0x7d6c[55]]-_0x61cfx7[_0x7d6c[55]])*(_0x61cfx2[_0x7d6c[55]]-_0x61cfx7[_0x7d6c[55]])<(_0x61cfx2[_0x7d6c[83]]+_0x61cfx7[_0x7d6c[83]])*(_0x61cfx2[_0x7d6c[83]]+_0x61cfx7[_0x7d6c[83]])
}
function renderSprite(_0x61cfx2)
{
ctx[_0x7d6c[84]](),ctx[_0x7d6c[85]](_0x61cfx2[_0x7d6c[54]],_0x61cfx2[_0x7d6c[55]]),ctx[_0x7d6c[87]](_0x61cfx2[_0x7d6c[86]]),ctx[_0x7d6c[90]](_0x61cfx2[_0x7d6c[88]],_0x61cfx2[_0x7d6c[89]]),_0x61cfx2[_0x7d6c[18]](ctx),ctx[_0x7d6c[91]]()
}
function loadPreAssets()
{
1<aLangs[_0x7d6c[58]]?(preAssetLib=new Utils.AssetLoader(curLang,[
{
id:_0x7d6c[33],file:_0x7d6c[93]
}
,
{
id:_0x7d6c[94],file:_0x7d6c[95]
}
],ctx,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]],!1))[_0x7d6c[92]](initLangSelect):(curLang=aLangs[0],(preAssetLib=new Utils.AssetLoader(curLang,[
{
id:_0x7d6c[94],file:_0x7d6c[95]
}
],ctx,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]],!1))[_0x7d6c[92]](initLoadAssets))
}
function initLangSelect()
{
var _0x61cfx2=preAssetLib[_0x7d6c[9]](_0x7d6c[33]);
ctx[_0x7d6c[50]](_0x61cfx2[_0x7d6c[47]],canvas[_0x7d6c[5]]/ 2- _0x61cfx2[_0x7d6c[47]][_0x7d6c[5]]/2,canvas[_0x7d6c[13]]/ 2- _0x61cfx2[_0x7d6c[47]][_0x7d6c[13]]/2);
for(var _0x61cfx7=140,_0x61cfx9=0;
_0x61cfx9<aLangs[_0x7d6c[58]];
_0x61cfx9++)
{
var _0x61cfxa=canvas[_0x7d6c[5]]/ 2- _0x61cfx7* aLangs[_0x7d6c[58]]/2+_0x61cfx9*_0x61cfx7,_0x61cfxf=canvas[_0x7d6c[13]]/ 2- 70;
userInput[_0x7d6c[6]](_0x7d6c[33],butEventHandler,
{
lang:aLangs[_0x61cfx9]
}
,
{
type:_0x7d6c[4],aRect:[_0x61cfxa,_0x61cfxf,_0x61cfxa+ _0x61cfx7,140+ _0x61cfxf]
}
)
}
}
function initLoadAssets()
{
var _0x61cfx2=preAssetLib[_0x7d6c[9]](_0x7d6c[94]);
ctx[_0x7d6c[50]](_0x61cfx2[_0x7d6c[47]],canvas[_0x7d6c[5]]/2-_0x61cfx2[_0x7d6c[47]][_0x7d6c[5]]/ 2,canvas[_0x7d6c[13]]/2-_0x61cfx2[_0x7d6c[47]][_0x7d6c[13]]-10),loadAssets()
}
function loadAssets()
{
(assetLib=new Utils.AssetLoader(curLang,[
{
id:_0x7d6c[8],file:_0x7d6c[96]
}
,
{
id:_0x7d6c[97],file:_0x7d6c[98]
}
,
{
id:_0x7d6c[99],file:_0x7d6c[100]
}
,
{
id:_0x7d6c[11],file:_0x7d6c[101]+curLang+_0x7d6c[102]
}
,
{
id:_0x7d6c[12],file:_0x7d6c[101]+curLang+_0x7d6c[103]
}
,
{
id:_0x7d6c[104],file:_0x7d6c[105]
}
,
{
id:_0x7d6c[81],file:_0x7d6c[106]
}
,
{
id:_0x7d6c[29],file:_0x7d6c[101]+curLang+_0x7d6c[107]
}
,
{
id:_0x7d6c[10],file:_0x7d6c[108]
}
,
{
id:_0x7d6c[20],file:_0x7d6c[101]+curLang+_0x7d6c[109],oData:
{
columns:2,spriteWidth:480,spriteHeight:320
}
}
,
{
id:_0x7d6c[21],file:_0x7d6c[110],oData:
{
columns:5,spriteWidth:17,spriteHeight:30
}
}
,
{
id:_0x7d6c[61],file:_0x7d6c[111],oData:
{
oAnims:
{
falling:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38]
}
,columns:15,spriteWidth:68,spriteHeight:38
}
}
,
{
id:_0x7d6c[25],file:_0x7d6c[112],oData:
{
oAnims:
{
running:[0,1,2,3,4,5,6,7,8,9,10,11],jumping:[12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27],falling:[28],hide:[29]
}
,columns:9,spriteWidth:105,spriteHeight:106
}
}
,
{
id:_0x7d6c[60],file:_0x7d6c[113],oData:
{
oAnims:
{
spinning0:[0,1,2,3,4,5,6,7,8,9],spinning1:[10,11,12,13,14,15,16,17,18,19],spinning2:[20,21,22,23,24,25,26,27,28,29],spinning3:[30,31,32,33,34,35,36,37,38,39],bursting:[40,41,42,43,44,45,46,47,48,49,50]
}
,columns:9,spriteWidth:105,spriteHeight:106
}
}
,
{
id:_0x7d6c[53],file:_0x7d6c[101]+curLang+_0x7d6c[114],oData:
{
columns:9,spriteWidth:110,spriteHeight:174
}
}
,
{
id:_0x7d6c[44],file:_0x7d6c[115],oData:
{
columns:2,spriteWidth:39,spriteHeight:39
}
}
],ctx,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[92]](initSplash)
}
function resizeCanvas()
{
var _0x61cfx2=window[_0x7d6c[116]],_0x61cfx7=window[_0x7d6c[117]];
480<_0x61cfx2&&(--_0x61cfx2,--_0x61cfx7),window[_0x7d6c[116]]<window[_0x7d6c[117]]&&isMobile?(_0x7d6c[118]!=gameState&&rotatePauseOn(),canvas[_0x7d6c[119]][_0x7d6c[5]]=_0x61cfx2+_0x7d6c[120],canvas[_0x7d6c[119]][_0x7d6c[13]]=_0x61cfx2/canvas[_0x7d6c[5]]*canvas[_0x7d6c[13]]+_0x7d6c[120],canvasX=0,canvasY=(_0x61cfx7-_0x61cfx2/canvas[_0x7d6c[5]]*canvas[_0x7d6c[13]])/2,canvasScaleX=canvasScaleY=canvas[_0x7d6c[5]]/ _0x61cfx2,div[_0x7d6c[119]][_0x7d6c[121]]= canvasY+ _0x7d6c[120],div[_0x7d6c[119]][_0x7d6c[122]]= canvasX+ _0x7d6c[120]):isMobile?(rotatePause&& rotatePauseOff(),canvasX= canvasY= 0,canvasScaleX= canvas[_0x7d6c[5]]/_0x61cfx2,canvasScaleY=canvas[_0x7d6c[13]]/ _0x61cfx7,canvas[_0x7d6c[119]][_0x7d6c[5]]= _0x61cfx2+ _0x7d6c[120],canvas[_0x7d6c[119]][_0x7d6c[13]]= _0x61cfx7+ _0x7d6c[120],div[_0x7d6c[119]][_0x7d6c[121]]= _0x7d6c[123],div[_0x7d6c[119]][_0x7d6c[122]]= _0x7d6c[123]):(rotatePause&& rotatePauseOff(),canvasScaleX= canvasScaleY= _0x61cfx2/canvas[_0x7d6c[5]]<_0x61cfx7/canvas[_0x7d6c[13]]?(canvas[_0x7d6c[119]][_0x7d6c[5]]=_0x61cfx2+_0x7d6c[120],canvas[_0x7d6c[119]][_0x7d6c[13]]=_0x61cfx2/canvas[_0x7d6c[5]]*canvas[_0x7d6c[13]]+_0x7d6c[120],canvasX=0,canvasY=(_0x61cfx7-_0x61cfx2/canvas[_0x7d6c[5]]*canvas[_0x7d6c[13]])/2,canvas[_0x7d6c[5]]/ _0x61cfx2):(canvas[_0x7d6c[119]][_0x7d6c[5]]= _0x61cfx7/canvas[_0x7d6c[13]]*canvas[_0x7d6c[5]]+_0x7d6c[120],canvas[_0x7d6c[119]][_0x7d6c[13]]=_0x61cfx7+_0x7d6c[120],canvasX=(_0x61cfx2-_0x61cfx7/canvas[_0x7d6c[13]]*canvas[_0x7d6c[5]])/2,canvasY=0,canvas[_0x7d6c[13]]/ _0x61cfx7),div[_0x7d6c[119]][_0x7d6c[121]]= canvasY+ _0x7d6c[120],div[_0x7d6c[119]][_0x7d6c[122]]= canvasX+ _0x7d6c[120]),userInput[_0x7d6c[124]](canvasX,canvasY,canvasScaleX,canvasScaleY)
}
function playSound(_0x61cfx2)
{
allowSound&& sound[_0x7d6c[82]](_0x61cfx2)
}
function toggleMute()
{
muted= !muted,allowSound&& (muted?Howler[_0x7d6c[3]]():Howler[_0x7d6c[125]]()),renderMuteBut()
}
function toggleManualPause()
{
manualPause?(manualPause= !1,pauseCoreOff()):(manualPause= !0,pauseCoreOn(),userInput[_0x7d6c[6]](_0x7d6c[38],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[250,185,410,250]
}
),userInput[_0x7d6c[6]](_0x7d6c[43],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[60,185,225,250]
}
),(panel= new Elements.Panel(assetLib[_0x7d6c[9]](_0x7d6c[20]),assetLib[_0x7d6c[9]](_0x7d6c[21]),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[19]](ctx,null,_0x7d6c[27]),userInput[_0x7d6c[6]](_0x7d6c[27],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[400,0,437,40]
}
,!0))
}
function rotatePauseOn()
{
userInput[_0x7d6c[126]]= !0,rotatePause= !0,ctx[_0x7d6c[50]](assetLib[_0x7d6c[127]](_0x7d6c[104]),0,0),pauseCoreOn()
}
function rotatePauseOff()
{
userInput[_0x7d6c[126]]= !1,rotatePause= !1,pauseCoreOff()
}
function pauseCoreOn()
{
switch(allowSound&& Howler[_0x7d6c[3]](),gameState)
{
case _0x7d6c[22]:userInput[_0x7d6c[2]](_0x7d6c[28])
}
}
function pauseCoreOff()
{
switch(allowSound&& (muted|| Howler[_0x7d6c[125]]()),previousTime= ( new Date)[_0x7d6c[15]](),gameState)
{
case _0x7d6c[81]:updateSplashScreenEvent();
break;
case _0x7d6c[0]:initStartScreen();
break;
case _0x7d6c[16]:initPreGame();
break;
case _0x7d6c[22]:manualPause= !1,userInput[_0x7d6c[2]](_0x7d6c[43]),userInput[_0x7d6c[2]](_0x7d6c[38]),userInput[_0x7d6c[6]](_0x7d6c[28],butEventHandler,
{
allowUpState:!0
}
,
{
type:_0x7d6c[4],aRect:[0,40,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]]
}
,!0),updateGameEvent();
break;
case _0x7d6c[67]:initLevelComplete();
break;
case _0x7d6c[70]:initGameEndFail()
}
}
var Utils;
!function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[128]]= function(_0x61cfx2)
{
var _0x61cfx7=this,_0x61cfx9= new Image;
_0x61cfx9[_0x7d6c[130]]= function()
{
_0x61cfx7[_0x7d6c[131]][_0x61cfx2[_0x7d6c[76]]]=
{
}
,_0x61cfx7[_0x7d6c[131]][_0x61cfx2[_0x7d6c[76]]][_0x7d6c[47]]= _0x61cfx9,null!= _0x61cfx2[_0x7d6c[46]]&& (_0x61cfx7[_0x7d6c[131]][_0x61cfx2[_0x7d6c[76]]][_0x7d6c[46]]= _0x61cfx2[_0x7d6c[46]]),++_0x61cfx7[_0x7d6c[132]],_0x61cfx7[_0x7d6c[133]]&& ctx[_0x7d6c[138]](_0x61cfx7[_0x7d6c[134]]+ 2,_0x61cfx7[_0x7d6c[135]]+ 2,(_0x61cfx7[_0x7d6c[136]]/2-4)/_0x61cfx7[_0x7d6c[137]]*_0x61cfx7[_0x7d6c[132]],16),_0x61cfx7[_0x7d6c[139]]()
}
,_0x61cfx9[_0x7d6c[140]]=_0x61cfx2[_0x7d6c[141]]
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[139]]=function()
{
this[_0x7d6c[132]]==this[_0x7d6c[137]]&&this[_0x7d6c[142]]()
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[92]]=function(_0x61cfx2)
{
this[_0x7d6c[142]]=_0x61cfx2
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[127]]=function(_0x61cfx2)
{
return this[_0x7d6c[131]][_0x61cfx2][_0x7d6c[47]]
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[9]]=function(_0x61cfx2)
{
return this[_0x7d6c[131]][_0x61cfx2]
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf,_0x61cfx10)
{
var _0x61cfx11;
void(0)===_0x61cfx10&&(_0x61cfx10=!0),this[_0x7d6c[131]]=
{
}
,this[_0x7d6c[132]]=0,this[_0x7d6c[137]]=_0x61cfx7[_0x7d6c[58]],this[_0x7d6c[143]]=_0x61cfx9,this[_0x7d6c[136]]=_0x61cfxa,this[_0x7d6c[144]]=_0x61cfxf,this[_0x7d6c[133]]=_0x61cfx10,this[_0x7d6c[134]]=this[_0x7d6c[136]]/ 2- _0x61cfxa/4,this[_0x7d6c[135]]=this[_0x7d6c[144]]/ 2,this[_0x7d6c[133]]&& (_0x7d6c[145]== _0x61cfx2|| _0x7d6c[146]== _0x61cfx2?_0x61cfx11= _0x7d6c[147]:_0x7d6c[148]== _0x61cfx2?_0x61cfx11= _0x7d6c[149]:_0x7d6c[150]== _0x61cfx2&& (_0x61cfx11= _0x7d6c[151]),ctx[_0x7d6c[152]]= _0x7d6c[153],ctx[_0x7d6c[154]]= _0x7d6c[155],ctx[_0x7d6c[156]]= _0x7d6c[157],ctx[_0x7d6c[158]](_0x61cfx11,this[_0x7d6c[136]]/2,this[_0x7d6c[135]]+35),ctx[_0x7d6c[159]]=_0x7d6c[153],ctx[_0x7d6c[160]]=2,ctx[_0x7d6c[152]]=_0x7d6c[161],ctx[_0x7d6c[162]](this[_0x7d6c[134]],this[_0x7d6c[135]]),ctx[_0x7d6c[163]](this[_0x7d6c[134]]+_0x61cfxa/2,this[_0x7d6c[135]]+0),ctx[_0x7d6c[163]](this[_0x7d6c[134]]+_0x61cfxa/2,this[_0x7d6c[135]]+20),ctx[_0x7d6c[163]](this[_0x7d6c[134]]+0,this[_0x7d6c[135]]+20),ctx[_0x7d6c[163]](this[_0x7d6c[134]]+0,this[_0x7d6c[135]]+0),ctx[_0x7d6c[164]]());
for(var _0x61cfx2f=0;
_0x61cfx2f<_0x61cfx7[_0x7d6c[58]];
_0x61cfx2f++)
{
this[_0x7d6c[128]](_0x61cfx7[_0x61cfx2f])
}
}
_0x61cfx2[_0x7d6c[165]]=_0x61cfx7
}
(Utils=Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[166]]=function(_0x61cfx2)
{
this[_0x7d6c[167]]+=this[_0x7d6c[168]]*_0x61cfx2
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[169]]=function()
{
this[_0x7d6c[167]]=0
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[170]]=function(_0x61cfx2)
{
this[_0x7d6c[171]]=_0x61cfx2
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[172]]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
switch(void(0)===_0x61cfx9&&(_0x61cfx9=!0),this[_0x7d6c[175]]=_0x61cfx7,this[_0x7d6c[178]]=_0x61cfx2,_0x61cfx9&&this[_0x7d6c[169]](),_0x61cfx2)
{
case _0x7d6c[173]:break;
case _0x7d6c[177]:this[_0x7d6c[174]]=this[_0x7d6c[176]][this[_0x7d6c[175]]][_0x7d6c[58]]-1
}
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]=function(_0x61cfx2)
{
if(null!=this[_0x7d6c[175]])
{
var _0x61cfx7=this[_0x7d6c[176]][this[_0x7d6c[175]]][_0x7d6c[58]],_0x61cfx9=Math[_0x7d6c[48]](this[_0x7d6c[167]]),_0x61cfxa=this[_0x7d6c[176]][this[_0x7d6c[175]]][_0x61cfx9%_0x61cfx7],_0x61cfxf=_0x61cfxa*this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]%this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfx10=Math[_0x7d6c[48]](_0x61cfxa/(this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]];
_0x7d6c[177]== this[_0x7d6c[178]]&& _0x61cfx9> this[_0x7d6c[174]]&& (this[_0x7d6c[171]]= this[_0x7d6c[176]][this[_0x7d6c[175]]][_0x61cfx7- 1],this[_0x7d6c[175]]= null,this[_0x7d6c[180]](),_0x61cfxf= this[_0x7d6c[171]]* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfx10= Math[_0x7d6c[48]](this[_0x7d6c[171]]/(this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]])
}
else
{
_0x61cfxf= this[_0x7d6c[171]]* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfx10= Math[_0x7d6c[48]](this[_0x7d6c[171]]/(this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]]
};
_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[179]][_0x7d6c[47]],_0x61cfxf,_0x61cfx10,this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]],-this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]/2+this[_0x7d6c[181]],-this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]]/ 2 + this[_0x7d6c[182]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
this[_0x7d6c[54]]= 0,this[_0x7d6c[55]]= 0,this[_0x7d6c[86]]= 0,this[_0x7d6c[83]]= 10,this[_0x7d6c[73]]= !1,this[_0x7d6c[167]]= 0,this[_0x7d6c[178]]= _0x7d6c[173],this[_0x7d6c[181]]= 0,this[_0x7d6c[182]]= 0,this[_0x7d6c[88]]= 1,this[_0x7d6c[89]]= 1,this[_0x7d6c[179]]= _0x61cfx2,this[_0x7d6c[176]]= this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[176]],this[_0x7d6c[168]]= _0x61cfx7,this[_0x7d6c[83]]= _0x61cfx9,this[_0x7d6c[175]]= _0x61cfxa
}
_0x61cfx2[_0x7d6c[183]]= _0x61cfx7
}
(Utils= Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[170]]= function(_0x61cfx2)
{
this[_0x7d6c[184]]= _0x61cfx2
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]= function(_0x61cfx2)
{
var _0x61cfx7=this[_0x7d6c[184]]* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfx9=Math[_0x7d6c[48]](this[_0x7d6c[184]]/(this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]];
_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[179]][_0x7d6c[47]],_0x61cfx7,_0x61cfx9,this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]],-this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]/2,-this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]]/ 2,this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7)
{
this[_0x7d6c[54]]= 0,this[_0x7d6c[55]]= 0,this[_0x7d6c[86]]= 0,this[_0x7d6c[83]]= 10,this[_0x7d6c[73]]= !1,this[_0x7d6c[179]]= _0x61cfx2,this[_0x7d6c[83]]= _0x61cfx7
}
_0x61cfx2[_0x7d6c[185]]= _0x61cfx7
}
(Utils= Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[124]]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
this[_0x7d6c[186]]= _0x61cfx2,this[_0x7d6c[187]]= _0x61cfx7,this[_0x7d6c[188]]= _0x61cfx9,this[_0x7d6c[189]]= _0x61cfxa
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[190]]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
if(!this[_0x7d6c[126]])
{
var _0x61cfxa=( new Date)[_0x7d6c[15]]();
if(!(_0x61cfxa- this[_0x7d6c[191]]< 500&& isBugBrowser))
{
this[_0x7d6c[191]]= _0x61cfxa,_0x61cfx2[_0x7d6c[192]](),_0x61cfx2[_0x7d6c[193]](),_0x61cfx7= (_0x61cfx7- this[_0x7d6c[186]])* this[_0x7d6c[188]],_0x61cfx9= (_0x61cfx9- this[_0x7d6c[187]])* this[_0x7d6c[189]];
for(var _0x61cfxf=0;
_0x61cfxf< this[_0x7d6c[194]][_0x7d6c[58]];
_0x61cfxf++)
{
if(this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[4]]&& _0x61cfx7> this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[195]][0]&& _0x61cfx9> this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[195]][1]&& _0x61cfx7< this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[195]][2]&& _0x61cfx9< this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[195]][3])
{
this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[46]][_0x7d6c[196]]= _0x61cfx7,this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[46]][_0x7d6c[197]]= _0x61cfx9,this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[46]][_0x7d6c[36]]= _0x7d6c[35],this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[198]](this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[76]],this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[46]]);
break
}
}
}
}
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[199]]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfx2[_0x7d6c[192]](),_0x61cfx2[_0x7d6c[193]](),_0x61cfx7= (_0x61cfx7- this[_0x7d6c[186]])* this[_0x7d6c[188]],_0x61cfx9= (_0x61cfx9- this[_0x7d6c[187]])* this[_0x7d6c[189]];
for(var _0x61cfxa=0;
_0x61cfxa< this[_0x7d6c[194]][_0x7d6c[58]];
_0x61cfxa++)
{
if(this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[4]]&& _0x61cfx7> this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[195]][0]&& _0x61cfx9> this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[195]][1]&& _0x61cfx7< this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[195]][2]&& _0x61cfx9< this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[195]][3]&& this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[46]][_0x7d6c[200]])
{
this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[46]][_0x7d6c[196]]= _0x61cfx7,this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[46]][_0x7d6c[197]]= _0x61cfx9,this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[46]][_0x7d6c[36]]= _0x7d6c[201],this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[198]](this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[76]],this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[46]]);
break
}
}
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[6]]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf)
{
switch(void(0)=== _0x61cfxf&& (_0x61cfxf= !1),null== _0x61cfx9&& (_0x61cfx9= new Object),_0x61cfxf&& this[_0x7d6c[2]](_0x61cfx2),_0x61cfxa[_0x7d6c[77]])
{
case _0x7d6c[205]:_0x61cfxa[_0x7d6c[203]][_0x7d6c[202]]?this[_0x7d6c[194]][_0x7d6c[56]](
{
id:_0x61cfx2,callback:_0x61cfx7,oData:_0x61cfx9,rect:!0,area:[_0x61cfxa[_0x7d6c[204]][0]- _0x61cfxa[_0x7d6c[203]][_0x7d6c[46]][_0x7d6c[49]]/2,_0x61cfxa[_0x7d6c[204]][1]-_0x61cfxa[_0x7d6c[203]][_0x7d6c[46]][_0x7d6c[49]]/ 2,_0x61cfxa[_0x7d6c[204]][0]+ _0x61cfxa[_0x7d6c[203]][_0x7d6c[46]][_0x7d6c[45]]/2,_0x61cfxa[_0x7d6c[204]][1]+_0x61cfxa[_0x7d6c[203]][_0x7d6c[46]][_0x7d6c[49]]/ 2]
}
):this[_0x7d6c[194]][_0x7d6c[56]](
{
id:_0x61cfx2,callback:_0x61cfx7,oData:_0x61cfx9,rect:!0,area:[_0x61cfxa[_0x7d6c[204]][0]- _0x61cfxa[_0x7d6c[203]][_0x7d6c[47]][_0x7d6c[5]]/2,_0x61cfxa[_0x7d6c[204]][1]-_0x61cfxa[_0x7d6c[203]][_0x7d6c[47]][_0x7d6c[13]]/ 2,_0x61cfxa[_0x7d6c[204]][0]+ _0x61cfxa[_0x7d6c[203]][_0x7d6c[47]][_0x7d6c[5]]/2,_0x61cfxa[_0x7d6c[204]][1]+_0x61cfxa[_0x7d6c[203]][_0x7d6c[47]][_0x7d6c[13]]/ 2]
}
);
break;
case _0x7d6c[4]:this[_0x7d6c[194]][_0x7d6c[56]](
{
id:_0x61cfx2,callback:_0x61cfx7,oData:_0x61cfx9,rect:!0,area:_0x61cfxa[_0x7d6c[206]]
}
)
}
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[2]]= function(_0x61cfx2)
{
for(var _0x61cfx7=0;
_0x61cfx7< this[_0x7d6c[194]][_0x7d6c[58]];
_0x61cfx7++)
{
this[_0x7d6c[194]][_0x61cfx7][_0x7d6c[76]]== _0x61cfx2&& (this[_0x7d6c[194]][_0x7d6c[74]](_0x61cfx7,1),--_0x61cfx7)
}
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7)
{
var _0x61cfx9=this;
this[_0x7d6c[207]]= !1,this[_0x7d6c[186]]= 0,this[_0x7d6c[187]]= 0,this[_0x7d6c[188]]= 1,this[_0x7d6c[189]]= 1,this[_0x7d6c[191]]= 0,this[_0x7d6c[126]]= !1,this[_0x7d6c[208]]= _0x61cfx7,_0x61cfx2[_0x7d6c[213]](_0x7d6c[209],function(_0x61cfx2)
{
_0x61cfx9[_0x7d6c[190]](_0x61cfx2,_0x61cfx2[_0x7d6c[211]][0][_0x7d6c[210]],_0x61cfx2[_0x7d6c[211]][0][_0x7d6c[212]])
}
,!1),_0x61cfx2[_0x7d6c[213]](_0x7d6c[214],function(_0x61cfx2)
{
_0x61cfx9[_0x7d6c[199]](_0x61cfx2,_0x61cfx2[_0x7d6c[215]][0][_0x7d6c[210]],_0x61cfx2[_0x7d6c[215]][0][_0x7d6c[212]])
}
,!1),_0x61cfx2[_0x7d6c[213]](_0x7d6c[216],function(_0x61cfx2)
{
_0x61cfx9[_0x7d6c[190]](_0x61cfx2,_0x61cfx2[_0x7d6c[210]],_0x61cfx2[_0x7d6c[212]])
}
,!1),_0x61cfx2[_0x7d6c[213]](_0x7d6c[217],function(_0x61cfx2)
{
_0x61cfx9[_0x7d6c[199]](_0x61cfx2,_0x61cfx2[_0x7d6c[210]],_0x61cfx2[_0x7d6c[212]])
}
,!1),this[_0x7d6c[194]]= new Array
}
_0x61cfx2[_0x7d6c[218]]= _0x61cfx7
}
(Utils= Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[72]]= function(_0x61cfx2)
{
this[_0x7d6c[219]]= _0x61cfx2
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2)
{
this[_0x7d6c[220]]= 10,this[_0x7d6c[221]]= 0,this[_0x7d6c[222]]= 0,this[_0x7d6c[223]]= 1,this[_0x7d6c[224]]= _0x7d6c[146],this[_0x7d6c[18]]= function(_0x61cfx2)
{
this[_0x7d6c[222]]+= this[_0x7d6c[219]]/this[_0x7d6c[220]],++this[_0x7d6c[221]]>=this[_0x7d6c[220]]&&(this[_0x7d6c[221]]=0,this[_0x7d6c[223]]=this[_0x7d6c[222]],this[_0x7d6c[222]]=0),_0x61cfx2[_0x7d6c[154]]=_0x7d6c[225],ctx[_0x7d6c[156]]=_0x7d6c[226],_0x61cfx2[_0x7d6c[152]]=_0x7d6c[227],_0x61cfx2[_0x7d6c[228]](),_0x61cfx2[_0x7d6c[4]](0,this[_0x7d6c[144]]-15,40,15),_0x61cfx2[_0x7d6c[229]](),_0x61cfx2[_0x7d6c[230]](),_0x61cfx2[_0x7d6c[152]]=_0x7d6c[153],_0x61cfx2[_0x7d6c[158]](Math[_0x7d6c[231]](1e3/(1e3*this[_0x7d6c[223]]))+_0x7d6c[232]+this[_0x7d6c[224]],5,this[_0x7d6c[144]]-5)
}
,this[_0x7d6c[144]]=_0x61cfx2
}
_0x61cfx2[_0x7d6c[233]]=_0x61cfx7
}
(Utils=Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[72]]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
this[_0x7d6c[181]]+=_0x61cfx7/2*_0x61cfx2,this[_0x7d6c[182]]-=_0x61cfx9/2*_0x61cfx2
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]=function(_0x61cfx2)
{
var _0x61cfx7=this[_0x7d6c[181]]%this[_0x7d6c[136]],_0x61cfx9=this[_0x7d6c[182]]%this[_0x7d6c[144]];
_0x61cfx7<0&&(_0x61cfx7+=this[_0x7d6c[136]]),_0x61cfx9<0&&(_0x61cfx9+=this[_0x7d6c[144]]),_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[179]][_0x7d6c[47]],_0x61cfx7,_0x61cfx9,this[_0x7d6c[136]],this[_0x7d6c[144]],0,0,this[_0x7d6c[136]],this[_0x7d6c[144]])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
this[_0x7d6c[181]]=0,this[_0x7d6c[182]]=0,this[_0x7d6c[179]]=_0x61cfx2,this[_0x7d6c[136]]=_0x61cfx7,this[_0x7d6c[144]]=_0x61cfx9
}
_0x61cfx2[_0x7d6c[234]]=_0x61cfx7
}
(Elements=Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[7]]=function(_0x61cfx2)
{
switch(this[_0x7d6c[239]]=-this[_0x7d6c[144]],_0x61cfx2)
{
case _0x7d6c[0]:this[_0x7d6c[235]]=this[_0x7d6c[236]],TweenLite[_0x7d6c[238]](this,1,
{
posX:0,ease:_0x7d6c[237]
}
),TweenLite[_0x7d6c[238]](this,0.5,
{
posY:0
}
)
}
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]=function(_0x61cfx2,_0x61cfx7)
{
this[_0x7d6c[235]](_0x61cfx2,_0x61cfx7)
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[236]]=function(_0x61cfx2,_0x61cfx7)
{
this[_0x7d6c[240]]+=5*_0x61cfx7,this[_0x7d6c[241]]+=50*_0x61cfx7,this[_0x7d6c[242]]-=50*Math[_0x7d6c[243]](this[_0x7d6c[240]]/ 5)* _0x61cfx7;
var _0x61cfx9=this[_0x7d6c[241]]% this[_0x7d6c[136]],_0x61cfxa=this[_0x7d6c[242]]% this[_0x7d6c[144]];
_0x61cfx9< 0&& (_0x61cfx9+= this[_0x7d6c[136]]),_0x61cfxa< 0&& (_0x61cfxa+= this[_0x7d6c[144]]),_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[245]][_0x7d6c[244]][_0x7d6c[47]],_0x61cfx9,_0x61cfxa,this[_0x7d6c[136]],this[_0x7d6c[144]],0,0,this[_0x7d6c[136]],this[_0x7d6c[144]]),_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[246]][_0x7d6c[47]],this[_0x7d6c[136]]/2-this[_0x7d6c[246]][_0x7d6c[47]][_0x7d6c[5]]/ 2- this[_0x7d6c[247]],-12),_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[248]][_0x7d6c[47]],this[_0x7d6c[136]]/2-this[_0x7d6c[246]][_0x7d6c[47]][_0x7d6c[5]]/ 2+ this[_0x7d6c[247]],-12),_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[250]][_0x7d6c[82]][_0x7d6c[249]][_0x7d6c[47]],this[_0x7d6c[250]][_0x7d6c[82]][_0x7d6c[251]][0]- this[_0x7d6c[250]][_0x7d6c[82]][_0x7d6c[249]][_0x7d6c[47]][_0x7d6c[5]]/2,this[_0x7d6c[250]][_0x7d6c[82]][_0x7d6c[251]][1]-this[_0x7d6c[250]][_0x7d6c[82]][_0x7d6c[249]][_0x7d6c[47]][_0x7d6c[13]]/ 2- 5* Math[_0x7d6c[243]](this[_0x7d6c[240]])- this[_0x7d6c[239]])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf,_0x61cfx10)
{
this[_0x7d6c[240]]= 0,this[_0x7d6c[252]]= 0,this[_0x7d6c[253]]= 0,this[_0x7d6c[239]]= 0,this[_0x7d6c[241]]= 0,this[_0x7d6c[242]]= 0,this[_0x7d6c[245]]= _0x61cfx2,this[_0x7d6c[250]]= _0x61cfx7,this[_0x7d6c[248]]= _0x61cfx9,this[_0x7d6c[246]]= _0x61cfxa,this[_0x7d6c[136]]= _0x61cfxf,this[_0x7d6c[144]]= _0x61cfx10,this[_0x7d6c[239]]= -this[_0x7d6c[144]],this[_0x7d6c[247]]= 100
}
_0x61cfx2[_0x7d6c[254]]= _0x61cfx7
}
(Elements= Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]= function(_0x61cfx2,_0x61cfx7)
{
this[_0x7d6c[255]]+= 5* _0x61cfx7,_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[256]][_0x7d6c[47]],0,0- this[_0x7d6c[239]])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
this[_0x7d6c[255]]= 0,this[_0x7d6c[256]]= _0x61cfx2,this[_0x7d6c[136]]= _0x61cfx7,this[_0x7d6c[144]]= _0x61cfx9,this[_0x7d6c[239]]= -this[_0x7d6c[144]],TweenLite[_0x7d6c[238]](this,0.5,
{
posY:0
}
)
}
_0x61cfx2[_0x7d6c[257]]= _0x61cfx7
}
(Elements= Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[72]]= function()
{
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[68]]= function()
{
this[_0x7d6c[239]]= 320,TweenLite[_0x7d6c[238]](this,0.8,
{
posY:0,ease:_0x7d6c[237]
}
)
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[19]]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
switch(_0x61cfx9)
{
case _0x7d6c[67]:var _0x61cfxa=(_0x61cfx2f= 1)* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf=Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]];
_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[258]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]],this[_0x7d6c[136]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]/ 2,this[_0x7d6c[144]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]]/ 2+ this[_0x7d6c[239]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]]);
for(var _0x61cfx10=this[_0x7d6c[69]][_0x7d6c[259]],_0x61cfx11=0;
_0x61cfx11< _0x61cfx10.toString()[_0x7d6c[58]];
_0x61cfx11++)
{
_0x61cfxa= (_0x61cfx2f= parseFloat(_0x61cfx10.toString()[_0x7d6c[260]](_0x61cfx11)))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf= Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[261]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],255+ 15* _0x61cfx11,103+ this[_0x7d6c[239]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]])
};
for(_0x61cfx10= this[_0x7d6c[69]][_0x7d6c[262]],_0x61cfx11= 0;
_0x61cfx11< _0x61cfx10.toString()[_0x7d6c[58]];
_0x61cfx11++)
{
_0x61cfxa= (_0x61cfx2f= parseFloat(_0x61cfx10.toString()[_0x7d6c[260]](_0x61cfx11)))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf= Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[261]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],255+ 15* _0x61cfx11,142+ this[_0x7d6c[239]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]])
};
for(_0x61cfx10= this[_0x7d6c[69]][_0x7d6c[263]],_0x61cfx11= 0;
_0x61cfx11< _0x61cfx10.toString()[_0x7d6c[58]];
_0x61cfx11++)
{
_0x61cfxa= (_0x61cfx2f= parseFloat(_0x61cfx10.toString()[_0x7d6c[260]](_0x61cfx11)))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf= Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[261]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],255+ 15* _0x61cfx11,202+ this[_0x7d6c[239]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]])
};
break;
case _0x7d6c[70]:for(_0x61cfxa= (_0x61cfx2f= 2)* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf= Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[258]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]],this[_0x7d6c[136]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]/ 2,this[_0x7d6c[144]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]]/ 2+ this[_0x7d6c[239]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]]),_0x61cfx10= this[_0x7d6c[69]][_0x7d6c[263]],_0x61cfx11= 0;
_0x61cfx11< _0x61cfx10.toString()[_0x7d6c[58]];
_0x61cfx11++)
{
_0x61cfxa= (_0x61cfx2f= parseFloat(_0x61cfx10.toString()[_0x7d6c[260]](_0x61cfx11)))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf= Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[261]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],255+ 15* _0x61cfx11,202+ this[_0x7d6c[239]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]])
};
break;
case _0x7d6c[16]:_0x61cfxa= (_0x61cfx2f= 0)* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf= Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[258]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]],this[_0x7d6c[136]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]/ 2,this[_0x7d6c[144]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]]/ 2,this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]]);
break;
case _0x7d6c[27]:var _0x61cfx2f;
_0x61cfxa= (_0x61cfx2f= 3)* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf= Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[258]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]],this[_0x7d6c[136]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]/ 2,this[_0x7d6c[144]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]]/ 2,this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]])
}
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
this[_0x7d6c[264]]= 0.3,this[_0x7d6c[265]]= 0,this[_0x7d6c[258]]= _0x61cfx2,this[_0x7d6c[261]]= _0x61cfx7,this[_0x7d6c[136]]= _0x61cfx9,this[_0x7d6c[144]]= _0x61cfxa
}
_0x61cfx2[_0x7d6c[266]]= _0x61cfx7
}
(Elements= Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]= function(_0x61cfx2)
{
_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[267]][_0x7d6c[47]],0,0);
for(var _0x61cfx7=0;
_0x61cfx7< this[_0x7d6c[252]].toString()[_0x7d6c[58]];
_0x61cfx7++)
{
var _0x61cfx9=(_0x61cfxf= parseFloat(this[_0x7d6c[252]].toString()[_0x7d6c[260]](_0x61cfx7)))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxa=Math[_0x7d6c[48]](_0x61cfxf/(this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]];
_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[261]][_0x7d6c[47]],_0x61cfx9,_0x61cfxa,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],215+ _0x61cfx7* this[_0x7d6c[268]]- this[_0x7d6c[268]]* this[_0x7d6c[252]].toString()[_0x7d6c[58]]/2,7,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]])
};
for(_0x61cfx7=0;
_0x61cfx7<this[_0x7d6c[259]].toString()[_0x7d6c[58]];
_0x61cfx7++)
{
_0x61cfx9=(_0x61cfxf=parseFloat(this[_0x7d6c[259]].toString()[_0x7d6c[260]](_0x61cfx7)))*this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]%this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxa=Math[_0x7d6c[48]](_0x61cfxf/(this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[261]][_0x7d6c[47]],_0x61cfx9,_0x61cfxa,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],128+ 15* _0x61cfx7,7,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]])
};
for(_0x61cfx7= 0;
_0x61cfx7< this[_0x7d6c[269]].toString()[_0x7d6c[58]];
_0x61cfx7++)
{
var _0x61cfxf;
_0x61cfx9= (_0x61cfxf= parseFloat(this[_0x7d6c[269]].toString()[_0x7d6c[260]](_0x61cfx7)))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxa= Math[_0x7d6c[48]](_0x61cfxf/(this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[261]][_0x7d6c[47]],_0x61cfx9,_0x61cfxa,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],355+ 15* _0x61cfx7,7,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]])
}
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[62]]= function(_0x61cfx2)
{
this[_0x7d6c[252]]= _0x61cfx2
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[63]]= function(_0x61cfx2)
{
this[_0x7d6c[259]]= _0x61cfx2
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf,_0x61cfx10)
{
this[_0x7d6c[252]]= 0,this[_0x7d6c[259]]= 0,this[_0x7d6c[268]]= 15,this[_0x7d6c[267]]= _0x61cfx2,this[_0x7d6c[261]]= _0x61cfx7,this[_0x7d6c[269]]= _0x61cfx9,this[_0x7d6c[136]]= _0x61cfxa,this[_0x7d6c[144]]= _0x61cfxf,this[_0x7d6c[252]]= _0x61cfx10
}
_0x61cfx2[_0x7d6c[270]]= _0x61cfx7
}
(Elements= Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[170]]= function(_0x61cfx2)
{
this[_0x7d6c[184]]= _0x61cfx2
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]= function(_0x61cfx2)
{
var _0x61cfx7=this[_0x7d6c[184]]* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfx9=Math[_0x7d6c[48]](this[_0x7d6c[184]]/(this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]];
_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[179]][_0x7d6c[47]],_0x61cfx7,_0x61cfx9,this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]],this[_0x7d6c[54]],this[_0x7d6c[55]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2)
{
this[_0x7d6c[54]]= 0,this[_0x7d6c[55]]= 0,this[_0x7d6c[73]]= !1,this[_0x7d6c[179]]= _0x61cfx2
}
_0x61cfx2[_0x7d6c[271]]= _0x61cfx7
}
(Utils= Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[72]]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
this[_0x7d6c[54]]-= _0x61cfx7* _0x61cfx2,this[_0x7d6c[55]]+= _0x61cfx9* _0x61cfx2,(this[_0x7d6c[55]]> 1.5* this[_0x7d6c[144]]|| this[_0x7d6c[54]]< 0- this[_0x7d6c[45]]&& this[_0x7d6c[64]]|| this[_0x7d6c[54]]> this[_0x7d6c[136]]+ this[_0x7d6c[45]]&& !this[_0x7d6c[64]])&& (this[_0x7d6c[73]]= !0)
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]= function(_0x61cfx2)
{
var _0x61cfx7=this[_0x7d6c[184]]* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfx9=Math[_0x7d6c[48]](this[_0x7d6c[184]]/(this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]];
_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[179]][_0x7d6c[47]],_0x61cfx7,_0x61cfx9,this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]],this[_0x7d6c[54]]- 5- this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]/2,this[_0x7d6c[55]]-115,this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf,_0x61cfx10,_0x61cfx11)
{
this[_0x7d6c[54]]=0,this[_0x7d6c[55]]=0,this[_0x7d6c[73]]=!1,this[_0x7d6c[179]]=_0x61cfx2,this[_0x7d6c[76]]=_0x61cfx7,this[_0x7d6c[64]]=_0x61cfxf,this[_0x7d6c[136]]=_0x61cfx10,this[_0x7d6c[144]]=_0x61cfx11,this[_0x7d6c[77]]=_0x61cfxa,this[_0x7d6c[45]]=100,this[_0x7d6c[184]]=_0x61cfx9
}
_0x61cfx2[_0x7d6c[272]]=_0x61cfx7
}
(Elements=Elements||
{
}
);
var Elements,__extends=this[_0x7d6c[273]]||function(_0x61cfx2,_0x61cfx7)
{
function _0x61cfx9()
{
this[_0x7d6c[274]]=_0x61cfx2
}
_0x61cfx9[_0x7d6c[129]]=_0x61cfx7[_0x7d6c[129]],_0x61cfx2[_0x7d6c[129]]=new _0x61cfx9
};
!function(_0x61cfx2)
{
var _0x61cfxf,_0x61cfx7=(_0x61cfxf=Utils[_0x7d6c[183]],__extends(_0x61cfx9,_0x61cfxf),_0x61cfx9[_0x7d6c[129]][_0x7d6c[75]]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfx9>this[_0x7d6c[55]]&&(this[_0x7d6c[276]][_0x7d6c[275]]=_0x61cfx2),this[_0x7d6c[276]][_0x7d6c[277]]=_0x61cfx2,this[_0x7d6c[276]][_0x7d6c[278]]=_0x61cfx9,this[_0x7d6c[276]][_0x7d6c[279]]=_0x61cfx7
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[280]]=function(_0x61cfx2)
{
switch(this[_0x7d6c[281]]=_0x61cfx2,this[_0x7d6c[281]])
{
case _0x7d6c[285]:this[_0x7d6c[172]](_0x7d6c[173],this[_0x7d6c[281]]),this[_0x7d6c[282]]&&(this[_0x7d6c[283]]=450,this[_0x7d6c[280]](_0x7d6c[284]));
break;
case _0x7d6c[286]:_0x7d6c[285]==this[_0x7d6c[175]]&&(this[_0x7d6c[180]]=function()
{
this[_0x7d6c[172]](_0x7d6c[173],_0x7d6c[286])
}
,this[_0x7d6c[172]](_0x7d6c[177],_0x7d6c[285],!1)),this[_0x7d6c[287]]=100;
break;
case _0x7d6c[284]:_0x7d6c[285]==this[_0x7d6c[175]]&&(this[_0x7d6c[180]]=function()
{
this[_0x7d6c[172]](_0x7d6c[173],_0x7d6c[286])
}
,this[_0x7d6c[172]](_0x7d6c[177],this[_0x7d6c[281]]),this[_0x7d6c[287]]=-300);
break;
case _0x7d6c[288]:this[_0x7d6c[64]]?(this[_0x7d6c[64]]=!1,this[_0x7d6c[88]]=-1):(this[_0x7d6c[64]]=!0,this[_0x7d6c[88]]=1),this[_0x7d6c[287]]=-725,this[_0x7d6c[180]]=function()
{
this[_0x7d6c[172]](_0x7d6c[173],_0x7d6c[286])
}
,this[_0x7d6c[172]](_0x7d6c[177],_0x7d6c[284]),this[_0x7d6c[198]](_0x7d6c[65],
{
isRight:this[_0x7d6c[64]]
}
);
break;
case _0x7d6c[57]:this[_0x7d6c[198]](_0x7d6c[57]),this[_0x7d6c[172]](_0x7d6c[173],_0x7d6c[289])
};
this[_0x7d6c[290]]=this[this[_0x7d6c[281]]]
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[28]]=function()
{
_0x7d6c[285]==this[_0x7d6c[281]]&&(this[_0x7d6c[283]]=450,this[_0x7d6c[280]](_0x7d6c[284]),playSound(_0x7d6c[28])),this[_0x7d6c[282]]=!0
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[37]]=function()
{
_0x7d6c[284]==this[_0x7d6c[281]]&&(this[_0x7d6c[283]]=800),this[_0x7d6c[282]]=!1
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[72]]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfxf[_0x7d6c[129]][_0x7d6c[166]][_0x7d6c[291]](this,_0x61cfx2),this[_0x7d6c[54]]+=_0x61cfx7*_0x61cfx2,this[_0x7d6c[55]]+=_0x61cfx9*_0x61cfx2,this[_0x7d6c[290]](_0x61cfx2)
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[285]]=function()
{
null!=this[_0x7d6c[276]][_0x7d6c[277]]&&this[_0x7d6c[276]][_0x7d6c[278]]==this[_0x7d6c[55]]||this[_0x7d6c[280]](_0x7d6c[286])
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[286]]=function(_0x61cfx2)
{
this[_0x7d6c[287]]+=800*_0x61cfx2,this[_0x7d6c[55]]+=this[_0x7d6c[287]]*_0x61cfx2,this[_0x7d6c[276]][_0x7d6c[278]]<this[_0x7d6c[55]]&&this[_0x7d6c[55]]-this[_0x7d6c[276]][_0x7d6c[278]]<30&&(this[_0x7d6c[55]]=this[_0x7d6c[276]][_0x7d6c[278]],this[_0x7d6c[280]](_0x7d6c[285]),playSound(_0x7d6c[292])),this[_0x7d6c[55]]>1.5*this[_0x7d6c[144]]&&this[_0x7d6c[198]](_0x7d6c[66])
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[57]]=function()
{
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[284]]=function(_0x61cfx2)
{
0<this[_0x7d6c[287]]&&(this[_0x7d6c[283]]=800),this[_0x7d6c[287]]+=this[_0x7d6c[283]]*_0x61cfx2,this[_0x7d6c[55]]+=this[_0x7d6c[287]]*_0x61cfx2,this[_0x7d6c[276]][_0x7d6c[278]]<this[_0x7d6c[55]]&&this[_0x7d6c[55]]-this[_0x7d6c[276]][_0x7d6c[278]]<30&&(_0x7d6c[59]==this[_0x7d6c[276]][_0x7d6c[279]]?(this[_0x7d6c[55]]=this[_0x7d6c[276]][_0x7d6c[278]],this[_0x7d6c[280]](_0x7d6c[288]),playSound(_0x7d6c[293])):_0x7d6c[57]==this[_0x7d6c[276]][_0x7d6c[279]]?(this[_0x7d6c[55]]=this[_0x7d6c[276]][_0x7d6c[278]],this[_0x7d6c[280]](_0x7d6c[57])):(this[_0x7d6c[55]]=this[_0x7d6c[276]][_0x7d6c[278]],this[_0x7d6c[280]](_0x7d6c[285]),playSound(_0x7d6c[292]))),this[_0x7d6c[55]]>1.5*this[_0x7d6c[144]]&&this[_0x7d6c[198]](_0x7d6c[66])
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[288]]=function(_0x61cfx2)
{
this[_0x7d6c[287]]+=800*_0x61cfx2,this[_0x7d6c[55]]+=this[_0x7d6c[287]]*_0x61cfx2,this[_0x7d6c[276]][_0x7d6c[278]]<this[_0x7d6c[55]]&&this[_0x7d6c[55]]-this[_0x7d6c[276]][_0x7d6c[278]]<30&&(this[_0x7d6c[55]]=this[_0x7d6c[276]][_0x7d6c[278]],this[_0x7d6c[280]](_0x7d6c[285]))
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
_0x61cfxf[_0x7d6c[291]](this,_0x61cfx2,20,25,_0x7d6c[286]),this[_0x7d6c[287]]=0,this[_0x7d6c[276]]=new Object,this[_0x7d6c[282]]=!1,this[_0x7d6c[64]]=!0,this[_0x7d6c[136]]=_0x61cfx7,this[_0x7d6c[144]]=_0x61cfx9,this[_0x7d6c[198]]=_0x61cfxa,this[_0x7d6c[281]]=_0x7d6c[286],this[_0x7d6c[182]]=-12,this[_0x7d6c[290]]=this[_0x7d6c[286]]
}
_0x61cfx2[_0x7d6c[294]]=_0x61cfx7
}
(Elements=Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx10,_0x61cfx7=(_0x61cfx10=Utils[_0x7d6c[183]],__extends(_0x61cfx9,_0x61cfx10),_0x61cfx9[_0x7d6c[129]][_0x7d6c[72]]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfx10[_0x7d6c[129]][_0x7d6c[166]][_0x7d6c[291]](this,_0x61cfx2),this[_0x7d6c[54]]-=_0x61cfx7*_0x61cfx2,this[_0x7d6c[55]]+=_0x61cfx9*_0x61cfx2,(this[_0x7d6c[55]]>2*this[_0x7d6c[144]]||this[_0x7d6c[54]]<0-this[_0x7d6c[45]]&&this[_0x7d6c[64]]||this[_0x7d6c[54]]>this[_0x7d6c[136]]+this[_0x7d6c[45]]&&!this[_0x7d6c[64]])&&(this[_0x7d6c[73]]=!0)
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[79]]=function()
{
this[_0x7d6c[78]]=!1,this[_0x7d6c[172]](_0x7d6c[177],_0x7d6c[295])
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[296]]=function()
{
this[_0x7d6c[73]]=!0
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf)
{
_0x61cfx10[_0x7d6c[291]](this,_0x61cfx2,15,25,_0x7d6c[297]+_0x61cfx9),this[_0x7d6c[78]]=!0,this[_0x7d6c[64]]=_0x61cfx7,this[_0x7d6c[136]]=_0x61cfxa,this[_0x7d6c[144]]=_0x61cfxf,this[_0x7d6c[181]]=-10,this[_0x7d6c[45]]=100,this[_0x7d6c[180]]=this[_0x7d6c[296]]
}
_0x61cfx2[_0x7d6c[298]]=_0x61cfx7
}
(Elements=Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfxf,_0x61cfx7=(_0x61cfxf=Utils[_0x7d6c[183]],__extends(_0x61cfx9,_0x61cfxf),_0x61cfx9[_0x7d6c[129]][_0x7d6c[72]]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfxf[_0x7d6c[129]][_0x7d6c[166]][_0x7d6c[291]](this,_0x61cfx2),this[_0x7d6c[54]]-=2*_0x61cfx7*_0x61cfx2,this[_0x7d6c[55]]+=(2*_0x61cfx9+100)*_0x61cfx2,(this[_0x7d6c[55]]>2*this[_0x7d6c[144]]||this[_0x7d6c[54]]<0-this[_0x7d6c[45]]&&this[_0x7d6c[64]]||this[_0x7d6c[54]]>this[_0x7d6c[136]]+this[_0x7d6c[45]]&&!this[_0x7d6c[64]])&&(this[_0x7d6c[73]]=!0)
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
_0x61cfxf[_0x7d6c[291]](this,_0x61cfx2,20,0,_0x7d6c[286]),this[_0x7d6c[179]]=_0x61cfx2,this[_0x7d6c[64]]=_0x61cfx7,this[_0x7d6c[136]]=_0x61cfx9,this[_0x7d6c[144]]=_0x61cfxa,this[_0x7d6c[45]]=100,this[_0x7d6c[167]]=Math[_0x7d6c[48]](38*Math[_0x7d6c[51]]())
}
_0x61cfx2[_0x7d6c[299]]=_0x61cfx7
}
(Elements=Elements||
{
}
);
var previousTime,requestAnimFrame=window[_0x7d6c[300]]||window[_0x7d6c[301]]||window[_0x7d6c[302]]||window[_0x7d6c[303]]||window[_0x7d6c[304]]||function(_0x61cfx2)
{
window[_0x7d6c[305]](_0x61cfx2,1e3/60,(new Date)[_0x7d6c[15]]())
}
,canvas=document[_0x7d6c[307]](_0x7d6c[306]),ctx=canvas[_0x7d6c[309]](_0x7d6c[308]);
canvas[_0x7d6c[5]]=480,canvas[_0x7d6c[13]]=320;
var canvasX,canvasY,canvasScaleX,canvasScaleY,sound,music,splash,screens,assetLib,preAssetLib,div=document[_0x7d6c[307]](_0x7d6c[310]),allowSound=!1,muted=!1,splashTimer=0,rotatePause=!1,manualPause=!1,isMobile=!1,gameState=_0x7d6c[118],aLangs=new Array(_0x7d6c[145]),curLang=_0x7d6c[146],isBugBrowser=!1,deviceAgent=navigator[_0x7d6c[312]][_0x7d6c[311]]();
(deviceAgent[_0x7d6c[313]](/(iphone|ipod|ipad)/)||deviceAgent[_0x7d6c[313]](/(android)/)||deviceAgent[_0x7d6c[313]](/(iemobile)/)||deviceAgent[_0x7d6c[313]](/iphone/i)||deviceAgent[_0x7d6c[313]](/ipad/i)||deviceAgent[_0x7d6c[313]](/ipod/i)||deviceAgent[_0x7d6c[313]](/blackberry/i)||deviceAgent[_0x7d6c[313]](/bada/i))&&(isMobile=!0,deviceAgent[_0x7d6c[313]](/(android)/)&&!/Chrome/[_0x7d6c[314]](navigator[_0x7d6c[312]])&&(isBugBrowser=!0));
var userInput=new Utils.UserInput(canvas,isBugBrowser);
resizeCanvas(),window[_0x7d6c[315]]=function()
{
setTimeout(function()
{
resizeCanvas()
}
,1)
}
,document[_0x7d6c[213]](_0x7d6c[316],function()
{
document[_0x7d6c[317]]?Howler[_0x7d6c[3]]():muted||Howler[_0x7d6c[125]]()
}
,!1),window[_0x7d6c[213]](_0x7d6c[318],function()
{
setTimeout(function()
{
resizeCanvas()
}
,0),window[_0x7d6c[213]](_0x7d6c[319],function()
{
resizeCanvas()
}
,!1)
}
),void(0)===window[_0x7d6c[320]]&&void(0)===window[_0x7d6c[321]]&&-1!=navigator[_0x7d6c[312]][_0x7d6c[323]](_0x7d6c[322])||(allowSound=!0,sound=new Howl(
{
urls:[_0x7d6c[324],_0x7d6c[325]],sprite:
{
click:[0,150],bounce:[250,1e3],home:[1500,1e3],jump:[3e3,300],land:[3500,300],nut:[4e3,500],fall:[5e3,1200]
}
}
),music=new Howl(
{
urls:[_0x7d6c[326],_0x7d6c[327]],volume:0.25,loop:!0
}
));
var panel,hud,background,acornScore,aBranches,aAcorns,aLeaves,targSpeedX,squirrel,branchId,stumpDist,flipPosX,lastBranchY,trackX,trackY,level,branchFloors,leafDropInc,totalScore=0,levelScore=0,speedX=0,speedY=0,aBranchWidthGaps=new Array(100,150,200,250),aBranchHeightGaps=new Array(0,50,-50),aAcornHeights=new Array(0,-60),nextBranchWidthGap=aBranchWidthGaps[0],isRight=!0;
loadPreAssets()
var _0x7d6c=["start","moreGames","removeHitArea","mute","rect","width","addHitArea","setRenderFunc","background1","getData","playBut","title1","title2","height","startGame","getTime","tutorial","continue","render","renderPanel","panels","numbers","game","volume","seedrandom","squirrel","background","pause","jump","hud","min","lang","clearRect","langSelect","click","down","hitState","jumpReleased","resumeFromPause","nextLevel","retryLevel","quitFromEnd","EastRA","quitFromPause","muteBut","spriteWidth","oData","img","floor","spriteHeight","drawImage","random","ceil","branch","x","y","push","home","length","stump","acorn","leaf","updateScore","updateAcornScore","isRight","flip","endGame","levelComplete","startTween","oScoreData","gameEndFail","fall","update","removeMe","splice","setNearestBranch","id","type","canHit","hit","nut","splash","play","radius","save","translate","rotation","rotate","scaleX","scaleY","scale","restore","onReady","images/langSelect.jpg","preloadImage","images/preloadImage.jpg","images/background1.jpg","background2","images/background2.jpg","background3","images/background3.jpg","images/","/title1.png","/title2.png","rotateDeviceMessage","images/rotateDeviceMessage.jpg","images/splashScreen.jpg","/hud.png","images/playBut.png","/panels_480x320.png","images/numbers_17x30.png","images/leaf_68x38.png","images/squirrel_105x106.png","images/acorn_105x106.png","/branches_110x174.png","images/mute_39x39.png","innerWidth","innerHeight","loading","style","px","marginTop","marginLeft","0px","setCanvas","unmute","pauseIsOn","getImg","loadImage","prototype","onload","oAssetData","assetsLoaded","showBar","topLeftX","topLeftY","canvasWidth","totalAssets","fillRect","checkLoadComplete","src","file","loadedCallback","ctx","canvasHeight","EN","","Loading...","ES","Cargando...","FR","Chargement...","fillStyle","#ffffff","textAlign","center","font","14px Helvetica","fillText","strokeStyle","lineWidth","#d97937","moveTo","lineTo","stroke","AssetLoader","updateAnimation","frameInc","fps","resetAnim","setFrame","fixedFrame","setAnimType","loop","maxIdx","animId","oAnims","once","animType","oImgData","animEndedFunc","offsetX","offsetY","AnimSprite","frameNum","BasicSprite","canvasX","canvasY","canvasScaleX","canvasScaleY","hitDown","prevHitTime","preventDefault","stopPropagation","aHitAreas","area","hitX","hitY","callback","hitUp","allowUpState","up","isSpriteSheet","oImageData","aCentrePos","image","aRect","isDown","isBugBrowser","touchstart","pageX","touches","pageY","addEventListener","touchend","changedTouches","mousedown","mouseup","UserInput","delta","updateFreq","updateInc","frameAverage","display","log","left","10px Helvetica","#333333","beginPath","closePath","fill","round"," fps ","FpsMeter","Background","renderFunc","renderStartScreen","Back.easeOut","to","posY","incY","bgX","bgY","sin","startImageData","oScreens","oTitle2ImgData","posX","oTitle1ImgData","imageData","oButs","pos","score","highestScore","Screens","inc","oSplashScreenImgData","Splash","oPanelsImgData","acornScore","charAt","oNumbersImgData","levelScore","totalScore","timer","endTime","Panel","oHudImgData","letterSpace","level","Hud","BgElement","Branch","__extends","constructor","lastNearestUnderId","oBranchData","curNearestId","curNearestY","curNearestType","changeState","state","jumpOn","fallRate","jumping","running","falling","fallInc","flipping","hide","updateFunc","call","land","bounce","Squirrel","bursting","burst","spinning","Acorn","Leaf","requestAnimationFrame","webkitRequestAnimationFrame","mozRequestAnimationFrame","oRequestAnimationFrame","msRequestAnimationFrame","setTimeout","canvas","getElementById","2d","getContext","viewporter","toLowerCase","userAgent","match","test","onresize","visibilitychange","hidden","load","orientationchange","AudioContext","webkitAudioContext","Android","indexOf","audio/sound.ogg","audio/sound.m4a","audio/music.ogg","audio/music.m4a"];
function initSplash()
{
gameState=_0x7d6c[0],level=1,userInput[_0x7d6c[2]](_0x7d6c[1]),userInput[_0x7d6c[6]](_0x7d6c[3],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[437,0,canvas[_0x7d6c[5]],40]
}
,!0);
var _0x61cfx2=new Array(canvas[_0x7d6c[5]]/ 2,265);
(screens= new Elements.Screens(
{
startImageData:assetLib[_0x7d6c[9]](_0x7d6c[8])
}
,
{
play:
{
imageData:assetLib[_0x7d6c[9]](_0x7d6c[10]),pos:_0x61cfx2
}
}
,assetLib[_0x7d6c[9]](_0x7d6c[11]),assetLib[_0x7d6c[9]](_0x7d6c[12]),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[7]](_0x7d6c[0]),userInput[_0x7d6c[6]](_0x7d6c[14],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[90,225,245,290]
}
,!0),userInput[_0x7d6c[6]](_0x7d6c[1],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[245,225,385,290]
}
),userInput[_0x7d6c[6]](_0x7d6c[1],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[170,0,320,80]
}
),previousTime= ( new Date)[_0x7d6c[15]](),updateStartScreenEvent()
}
function initStartScreen()
{
}
function initPreGame()
{
gameState= _0x7d6c[16],background= new Elements.Background(assetLib[_0x7d6c[9]](_0x7d6c[8]),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]),userInput[_0x7d6c[6]](_0x7d6c[17],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[160,240,320,310]
}
),userInput[_0x7d6c[6]](_0x7d6c[1],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[0,0,82,55]
}
),background[_0x7d6c[18]](ctx),(panel= new Elements.Panel(assetLib[_0x7d6c[9]](_0x7d6c[20]),assetLib[_0x7d6c[9]](_0x7d6c[21]),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[19]](ctx,null,_0x7d6c[16]),renderMuteBut()
}
function initGame()
{
gameState= _0x7d6c[22],allowSound&& music[_0x7d6c[23]](0.5),levelScore= 0,Math[_0x7d6c[24]](level+ 10),squirrel= new Elements.Squirrel(assetLib[_0x7d6c[9]](_0x7d6c[25]),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]],squirrelCallback),background= new Elements.Background(assetLib[_0x7d6c[9]](_0x7d6c[26]+ ((level- 1)% 3+ 1)),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]),userInput[_0x7d6c[6]](_0x7d6c[27],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[400,0,437,40]
}
,!0),userInput[_0x7d6c[6]](_0x7d6c[28],butEventHandler,
{
allowUpState:!0
}
,
{
type:_0x7d6c[4],aRect:[0,40,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]]
}
,!0),userInput[_0x7d6c[6]](_0x7d6c[1],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[0,0,82,55]
}
),hud= new Elements.Hud(assetLib[_0x7d6c[9]](_0x7d6c[29]),assetLib[_0x7d6c[9]](_0x7d6c[21]),level,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]],levelScore),targSpeedX= 180* Math[_0x7d6c[30]](1+ level/10,2),flipPosX=100,isRight=!(speedY=speedX=0),nextBranchWidthGap=aBranchWidthGaps[0],branchId=0,aBranches=new Array,aAcorns=new Array,aLeaves=new Array,addStartBranch(),stumpDist=5,leafDropInc=acornScore=branchFloors=0,previousTime=(new Date)[_0x7d6c[15]](),updateGameEvent()
}
function butEventHandler(_0x61cfx2,_0x61cfx7)
{
switch(_0x61cfx2)
{
case _0x7d6c[33]:curLang=_0x61cfx7[_0x7d6c[31]],ctx[_0x7d6c[32]](0,0,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]),userInput[_0x7d6c[2]](_0x7d6c[33]),initLoadAssets();
break;
case _0x7d6c[14]:playSound(_0x7d6c[34]),userInput[_0x7d6c[2]](_0x7d6c[14]),userInput[_0x7d6c[2]](_0x7d6c[1]),(1==level?initPreGame:initGame)();
break;
case _0x7d6c[17]:playSound(_0x7d6c[34]),userInput[_0x7d6c[2]](_0x7d6c[17]),initGame();
break;
case _0x7d6c[28]:_0x7d6c[35]==_0x61cfx7[_0x7d6c[36]]?squirrel[_0x7d6c[28]]():squirrel[_0x7d6c[37]]();
break;
case _0x7d6c[1]:break;
case _0x7d6c[3]:playSound(_0x7d6c[34]),toggleMute();
break;
case _0x7d6c[27]:;
case _0x7d6c[38]:playSound(_0x7d6c[34]),toggleManualPause();
break;
case _0x7d6c[39]:playSound(_0x7d6c[34]),userInput[_0x7d6c[2]](_0x7d6c[39]),level++,initGame();
break;
case _0x7d6c[40]:playSound(_0x7d6c[34]),userInput[_0x7d6c[2]](_0x7d6c[27]),userInput[_0x7d6c[2]](_0x7d6c[40]),userInput[_0x7d6c[2]](_0x7d6c[41]),level=totalScore=0,initSplash();
break;
case _0x7d6c[41]:envoiscore(levelScore+totalScore,_0x7d6c[42],1,1);
break;
case _0x7d6c[43]:playSound(_0x7d6c[34]),toggleManualPause(),userInput[_0x7d6c[2]](_0x7d6c[27]),userInput[_0x7d6c[2]](_0x7d6c[28]),userInput[_0x7d6c[2]](_0x7d6c[43]),userInput[_0x7d6c[2]](_0x7d6c[38]),userInput[_0x7d6c[2]](_0x7d6c[1]),totalScore=levelScore=0,initStartScreen()
}
}
function renderMuteBut()
{
if(allowSound)
{
var _0x61cfx2=assetLib[_0x7d6c[9]](_0x7d6c[44]),_0x61cfx7=0;
muted&&(_0x61cfx7=1);
var _0x61cfx9=_0x61cfx7*_0x61cfx2[_0x7d6c[46]][_0x7d6c[45]]%_0x61cfx2[_0x7d6c[47]][_0x7d6c[5]],_0x61cfxa=Math[_0x7d6c[48]](_0x61cfx7/(_0x61cfx2[_0x7d6c[47]][_0x7d6c[5]]/ _0x61cfx2[_0x7d6c[46]][_0x7d6c[45]]))* _0x61cfx2[_0x7d6c[46]][_0x7d6c[49]];
ctx[_0x7d6c[50]](_0x61cfx2[_0x7d6c[47]],_0x61cfx9,_0x61cfxa,_0x61cfx2[_0x7d6c[46]][_0x7d6c[45]],_0x61cfx2[_0x7d6c[46]][_0x7d6c[49]],438,2,_0x61cfx2[_0x7d6c[46]][_0x7d6c[45]],_0x61cfx2[_0x7d6c[46]][_0x7d6c[49]])
}
}
function addStartBranch()
{
for(var _0x61cfx2,_0x61cfx7=canvas[_0x7d6c[13]]/2,_0x61cfx9=0;
_0x61cfx9<6;
_0x61cfx9++)
{
_0x61cfx2=0==_0x61cfx9?0:5==_0x61cfx9?5:Math[_0x7d6c[52]](4*Math[_0x7d6c[51]]());
var _0x61cfxa=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,_0x61cfx2,_0x7d6c[53],isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]);
_0x61cfxa[_0x7d6c[54]]=_0x61cfx9*_0x61cfxa[_0x7d6c[45]],_0x61cfxa[_0x7d6c[55]]=_0x61cfx7,aBranches[_0x7d6c[56]](_0x61cfxa)
}
}
function addHome()
{
var _0x61cfx2;
isRight?((_0x61cfx2=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,9,_0x7d6c[57],!isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[55]]=aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[55]]-50,aBranches[_0x7d6c[56]](_0x61cfx2),_0x61cfx2[_0x7d6c[54]]=canvas[_0x7d6c[5]]+50):((_0x61cfx2=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,10,_0x7d6c[57],!isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[55]]=aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[55]]-50,aBranches[_0x7d6c[56]](_0x61cfx2),_0x61cfx2[_0x7d6c[54]]=-50)
}
function addStump()
{
var _0x61cfx2,_0x61cfx7;
if(stumpDist=5,++branchFloors>=level)
{
addHome()
}
else
{
if(isRight)
{
(_0x61cfx7=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,7,_0x7d6c[59],!isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[55]]=aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[55]]-50,aBranches[_0x7d6c[56]](_0x61cfx7),_0x61cfx7[_0x7d6c[54]]=canvas[_0x7d6c[5]]+50;
for(var _0x61cfx9=0;
_0x61cfx9<4;
_0x61cfx9++)
{
_0x61cfx2=0==_0x61cfx9?5:3==_0x61cfx9?0:Math[_0x7d6c[52]](4*Math[_0x7d6c[51]]()),(_0x61cfxa=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,_0x61cfx2,_0x7d6c[53],!isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[54]]=_0x61cfx7[_0x7d6c[54]]-_0x61cfxa[_0x7d6c[45]]-_0x61cfx9*_0x61cfxa[_0x7d6c[45]],_0x61cfxa[_0x7d6c[55]]=_0x61cfx7[_0x7d6c[55]]-300,aBranches[_0x7d6c[56]](_0x61cfxa)
}
}
else
{
(_0x61cfx7=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,8,_0x7d6c[59],!isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[55]]=aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[55]]-50,aBranches[_0x7d6c[56]](_0x61cfx7),_0x61cfx7[_0x7d6c[54]]=-50;
for(_0x61cfx9=0;
_0x61cfx9<4;
_0x61cfx9++)
{
var _0x61cfxa;
_0x61cfx2=0==_0x61cfx9?0:3==_0x61cfx9?5:Math[_0x7d6c[52]](4*Math[_0x7d6c[51]]()),(_0x61cfxa=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,_0x61cfx2,_0x7d6c[53],!isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[54]]=_0x61cfx7[_0x7d6c[54]]+_0x61cfxa[_0x7d6c[45]]+_0x61cfx9*_0x61cfxa[_0x7d6c[45]],_0x61cfxa[_0x7d6c[55]]=_0x61cfx7[_0x7d6c[55]]-300,aBranches[_0x7d6c[56]](_0x61cfxa)
}
}
}
}
function addBranch()
{
updateScore(100);
for(var _0x61cfx2,_0x61cfx7=Math[_0x7d6c[52]](4*Math[_0x7d6c[51]]()),_0x61cfx9=_0x7d6c[53],_0x61cfxa=aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[55]]+aBranchHeightGaps[Math[_0x7d6c[48]](Math[_0x7d6c[51]]()*aBranchHeightGaps[_0x7d6c[58]])];
_0x61cfxa==aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[55]];
)
{
_0x61cfxa=aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[55]]+aBranchHeightGaps[Math[_0x7d6c[48]](Math[_0x7d6c[51]]()*aBranchHeightGaps[_0x7d6c[58]])]
};
for(var _0x61cfxf=aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[54]],_0x61cfx10=0;
_0x61cfx10<_0x61cfx7;
_0x61cfx10++)
{
var _0x61cfx11;
if(isRight)
{
_0x61cfx2=1==_0x61cfx7?6:0==_0x61cfx10?0:_0x61cfx10==_0x61cfx7-1?5:Math[_0x7d6c[52]](4*Math[_0x7d6c[51]]()),(_0x61cfx11=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,_0x61cfx2,_0x61cfx9,isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[54]]=_0x61cfxf+nextBranchWidthGap+_0x61cfx10*_0x61cfx11[_0x7d6c[45]]
}
else
{
_0x61cfx2=1==_0x61cfx7?6:0==_0x61cfx10?5:_0x61cfx10==_0x61cfx7-1?0:Math[_0x7d6c[52]](4*Math[_0x7d6c[51]]()),(_0x61cfx11=new Elements.Branch(assetLib[_0x7d6c[9]](_0x7d6c[53]),branchId++,_0x61cfx2,_0x61cfx9,isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[54]]=_0x61cfxf-nextBranchWidthGap-_0x61cfx10*_0x61cfx11[_0x7d6c[45]]
};
_0x61cfx11[_0x7d6c[55]]=lastBranchY=_0x61cfxa,aBranches[_0x7d6c[56]](_0x61cfx11),0.5<Math[_0x7d6c[51]]()&&addAcorn(_0x61cfx11[_0x7d6c[54]],_0x61cfx11[_0x7d6c[55]])
}
}
function addAcorn(_0x61cfx2,_0x61cfx7)
{
var _0x61cfx9=new Elements.Acorn(assetLib[_0x7d6c[9]](_0x7d6c[60]),isRight,Math[_0x7d6c[48]](4*Math[_0x7d6c[51]]()),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]);
_0x61cfx9[_0x7d6c[54]]=_0x61cfx2,_0x61cfx9[_0x7d6c[55]]=_0x61cfx7+aAcornHeights[Math[_0x7d6c[48]](Math[_0x7d6c[51]]()*aAcornHeights[_0x7d6c[58]])],aAcorns[_0x7d6c[56]](_0x61cfx9)
}
function addLeaf()
{
var _0x61cfx2=new Elements.Leaf(assetLib[_0x7d6c[9]](_0x7d6c[61]),isRight,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]);
_0x61cfx2[_0x7d6c[54]]=isRight?canvas[_0x7d6c[5]]+50+200*Math[_0x7d6c[51]]():-50-200*Math[_0x7d6c[51]](),_0x61cfx2[_0x7d6c[55]]=500*Math[_0x7d6c[51]]()-200,aLeaves[_0x7d6c[56]](_0x61cfx2)
}
function updateScore(_0x61cfx2)
{
levelScore+=_0x61cfx2,hud[_0x7d6c[62]](levelScore)
}
function updateAcornScore(_0x61cfx2)
{
acornScore+=_0x61cfx2,hud[_0x7d6c[63]](acornScore)
}
function squirrelCallback(_0x61cfx2,_0x61cfx7)
{
switch(_0x61cfx2)
{
case _0x7d6c[65]:isRight=_0x61cfx7[_0x7d6c[64]],flipPosX=isRight?(targSpeedX=180*Math[_0x7d6c[30]](1+level/10,2),100):(targSpeedX=-180*Math[_0x7d6c[30]](1+level/10,2),canvas[_0x7d6c[5]]-100),nextBranchWidthGap=aBranchWidthGaps[Math[_0x7d6c[48]](Math[_0x7d6c[51]]()*Math[_0x7d6c[30]](level,aBranchWidthGaps[_0x7d6c[58]]))];
break;
case _0x7d6c[66]:initGameEndFail();
break;
case _0x7d6c[57]:initLevelComplete()
}
}
function isWideForBranch()
{
return isRight?aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[54]]<canvas[_0x7d6c[5]]-nextBranchWidthGap+50:aBranches[aBranches[_0x7d6c[58]]-1][_0x7d6c[54]]>nextBranchWidthGap-50
}
function initLevelComplete()
{
gameState=_0x7d6c[67],allowSound&&music[_0x7d6c[23]](0.25),playSound(_0x7d6c[57]),userInput[_0x7d6c[2]](_0x7d6c[28]),userInput[_0x7d6c[2]](_0x7d6c[1]),userInput[_0x7d6c[2]](_0x7d6c[27]),userInput[_0x7d6c[6]](_0x7d6c[39],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[160,240,320,310]
}
),userInput[_0x7d6c[6]](_0x7d6c[1],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[0,0,82,55]
}
),userInput[_0x7d6c[6]](_0x7d6c[1],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[0,255,120,canvas[_0x7d6c[13]]]
}
),(panel=new Elements.Panel(assetLib[_0x7d6c[9]](_0x7d6c[20]),assetLib[_0x7d6c[9]](_0x7d6c[21]),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[68]](),totalScore+=100*acornScore+levelScore,panel[_0x7d6c[69]]=
{
acornScore:100*acornScore,levelScore:levelScore,totalScore:totalScore
}
,previousTime=(new Date)[_0x7d6c[15]](),updateLevelComplete()
}
function initGameEndFail()
{
gameState=_0x7d6c[70],allowSound&&music[_0x7d6c[23]](0.25),playSound(_0x7d6c[71]),userInput[_0x7d6c[2]](_0x7d6c[28]),userInput[_0x7d6c[2]](_0x7d6c[1]),userInput[_0x7d6c[2]](_0x7d6c[27]),userInput[_0x7d6c[6]](_0x7d6c[40],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[240,240,410,310]
}
),userInput[_0x7d6c[6]](_0x7d6c[41],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[70,240,240,310]
}
),userInput[_0x7d6c[6]](_0x7d6c[1],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[0,0,130,100]
}
),background[_0x7d6c[18]](ctx),(panel=new Elements.Panel(assetLib[_0x7d6c[9]](_0x7d6c[20]),assetLib[_0x7d6c[9]](_0x7d6c[21]),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[69]]=
{
totalScore:levelScore+totalScore
}
,panel[_0x7d6c[68]](),previousTime=(new Date)[_0x7d6c[15]](),updateGameEndFail()
}
function updateLevelComplete()
{
if(!rotatePause&&_0x7d6c[67]==gameState)
{
var _0x61cfx2=getDelta();
background[_0x7d6c[18]](ctx),panel[_0x7d6c[19]](ctx,_0x61cfx2,_0x7d6c[67]),renderMuteBut(),requestAnimFrame(updateLevelComplete)
}
}
function updateGameEndFail()
{
if(!rotatePause&&_0x7d6c[70]==gameState)
{
var _0x61cfx2=getDelta();
background[_0x7d6c[18]](ctx),panel[_0x7d6c[19]](ctx,_0x61cfx2,_0x7d6c[70]),renderMuteBut(),requestAnimFrame(updateGameEndFail)
}
}
function updateGameEvent()
{
if(!manualPause&&!rotatePause&&_0x7d6c[22]==gameState)
{
var _0x61cfx2=getDelta();
speedX+=5*(targSpeedX-speedX)*_0x61cfx2,trackY=3*(canvas[_0x7d6c[13]]/ 2- squirrel[_0x7d6c[55]]- 25),trackX= flipPosX- squirrel[_0x7d6c[54]],background[_0x7d6c[72]](_0x61cfx2,speedX- trackX,speedY+ trackY),background[_0x7d6c[18]](ctx),0.7< (leafDropInc+= _0x61cfx2)&& (addLeaf(),leafDropInc= 0);
for(var _0x61cfx7,_0x61cfx9=!0,_0x61cfxa=0;
_0x61cfxa< aBranches[_0x7d6c[58]];
_0x61cfxa++)
{
aBranches[_0x61cfxa][_0x7d6c[72]](_0x61cfx2,speedX- trackX,speedY+ trackY),aBranches[_0x61cfxa][_0x7d6c[18]](ctx),aBranches[_0x61cfxa][_0x7d6c[54]]> squirrel[_0x7d6c[54]]- 60&& aBranches[_0x61cfxa][_0x7d6c[54]]< squirrel[_0x7d6c[54]]+ 60&& (null== _0x61cfx7&& (_0x61cfx7= aBranches[_0x61cfxa]),_0x61cfx7[_0x7d6c[55]]> squirrel[_0x7d6c[55]]&& aBranches[_0x61cfxa][_0x7d6c[55]]> squirrel[_0x7d6c[55]]&& aBranches[_0x61cfxa][_0x7d6c[55]]- squirrel[_0x7d6c[55]]< _0x61cfx7[_0x7d6c[55]]- squirrel[_0x7d6c[55]]&& (_0x61cfx7= aBranches[_0x61cfxa]),_0x61cfx9= !1),aBranches[_0x61cfxa][_0x7d6c[73]]&& (aBranches[_0x7d6c[74]](_0x61cfxa,1),--_0x61cfxa)
};
_0x61cfx9?squirrel[_0x7d6c[75]](null,null,null):squirrel[_0x7d6c[75]](_0x61cfx7[_0x7d6c[76]],_0x61cfx7[_0x7d6c[77]],_0x61cfx7[_0x7d6c[55]]);
for(_0x61cfxa= 0;
_0x61cfxa< aAcorns[_0x7d6c[58]];
_0x61cfxa++)
{
aAcorns[_0x61cfxa][_0x7d6c[72]](_0x61cfx2,speedX- trackX,speedY+ trackY),renderSprite(aAcorns[_0x61cfxa]),aAcorns[_0x61cfxa][_0x7d6c[78]]&& checkSpriteCollision(squirrel,aAcorns[_0x61cfxa])&& (updateAcornScore(1),aAcorns[_0x61cfxa][_0x7d6c[79]](),playSound(_0x7d6c[80])),aAcorns[_0x61cfxa][_0x7d6c[73]]&& (aAcorns[_0x7d6c[74]](_0x61cfxa,1),--_0x61cfxa)
};
for(_0x61cfxa= 0;
_0x61cfxa< aLeaves[_0x7d6c[58]];
_0x61cfxa++)
{
aLeaves[_0x61cfxa][_0x7d6c[72]](_0x61cfx2,speedX- trackX,speedY+ trackY),renderSprite(aLeaves[_0x61cfxa]),aLeaves[_0x61cfxa][_0x7d6c[73]]&& (aLeaves[_0x7d6c[74]](_0x61cfxa,1),--_0x61cfxa)
};
hud[_0x7d6c[18]](ctx),squirrel[_0x7d6c[72]](_0x61cfx2,trackX,trackY),renderSprite(squirrel),(aBranches[_0x7d6c[58]]< 1|| isWideForBranch())&& (nextBranchWidthGap= 0< --stumpDist?(addBranch(),aBranchWidthGaps[Math[_0x7d6c[48]](Math[_0x7d6c[51]]()* Math[_0x7d6c[30]](level,aBranchWidthGaps[_0x7d6c[58]]))]):0== stumpDist?aBranchWidthGaps[2]:(addStump(),1e4)),renderMuteBut(),requestAnimFrame(updateGameEvent)
}
}
function updateSplashScreenEvent()
{
if(!rotatePause&& _0x7d6c[81]== gameState)
{
var _0x61cfx2=getDelta();
if(2.5< (splashTimer+= _0x61cfx2))
{
return allowSound&& !muted&& music[_0x7d6c[82]](),void(initStartScreen())
};
splash[_0x7d6c[18]](ctx,_0x61cfx2),requestAnimFrame(updateSplashScreenEvent)
}
}
function updateStartScreenEvent()
{
if(!rotatePause&& _0x7d6c[0]== gameState)
{
var _0x61cfx2=getDelta();
screens[_0x7d6c[18]](ctx,_0x61cfx2),renderMuteBut(),requestAnimFrame(updateStartScreenEvent)
}
}
function getDelta()
{
var _0x61cfx2=( new Date)[_0x7d6c[15]](),_0x61cfx7=(_0x61cfx2- previousTime)/1e3;
return previousTime=_0x61cfx2,0.5<_0x61cfx7&&(_0x61cfx7=0),_0x61cfx7
}
function checkSpriteCollision(_0x61cfx2,_0x61cfx7)
{
return(_0x61cfx2[_0x7d6c[54]]-_0x61cfx7[_0x7d6c[54]])*(_0x61cfx2[_0x7d6c[54]]-_0x61cfx7[_0x7d6c[54]])+(_0x61cfx2[_0x7d6c[55]]-_0x61cfx7[_0x7d6c[55]])*(_0x61cfx2[_0x7d6c[55]]-_0x61cfx7[_0x7d6c[55]])<(_0x61cfx2[_0x7d6c[83]]+_0x61cfx7[_0x7d6c[83]])*(_0x61cfx2[_0x7d6c[83]]+_0x61cfx7[_0x7d6c[83]])
}
function renderSprite(_0x61cfx2)
{
ctx[_0x7d6c[84]](),ctx[_0x7d6c[85]](_0x61cfx2[_0x7d6c[54]],_0x61cfx2[_0x7d6c[55]]),ctx[_0x7d6c[87]](_0x61cfx2[_0x7d6c[86]]),ctx[_0x7d6c[90]](_0x61cfx2[_0x7d6c[88]],_0x61cfx2[_0x7d6c[89]]),_0x61cfx2[_0x7d6c[18]](ctx),ctx[_0x7d6c[91]]()
}
function loadPreAssets()
{
1<aLangs[_0x7d6c[58]]?(preAssetLib=new Utils.AssetLoader(curLang,[
{
id:_0x7d6c[33],file:_0x7d6c[93]
}
,
{
id:_0x7d6c[94],file:_0x7d6c[95]
}
],ctx,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]],!1))[_0x7d6c[92]](initLangSelect):(curLang=aLangs[0],(preAssetLib=new Utils.AssetLoader(curLang,[
{
id:_0x7d6c[94],file:_0x7d6c[95]
}
],ctx,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]],!1))[_0x7d6c[92]](initLoadAssets))
}
function initLangSelect()
{
var _0x61cfx2=preAssetLib[_0x7d6c[9]](_0x7d6c[33]);
ctx[_0x7d6c[50]](_0x61cfx2[_0x7d6c[47]],canvas[_0x7d6c[5]]/ 2- _0x61cfx2[_0x7d6c[47]][_0x7d6c[5]]/2,canvas[_0x7d6c[13]]/ 2- _0x61cfx2[_0x7d6c[47]][_0x7d6c[13]]/2);
for(var _0x61cfx7=140,_0x61cfx9=0;
_0x61cfx9<aLangs[_0x7d6c[58]];
_0x61cfx9++)
{
var _0x61cfxa=canvas[_0x7d6c[5]]/ 2- _0x61cfx7* aLangs[_0x7d6c[58]]/2+_0x61cfx9*_0x61cfx7,_0x61cfxf=canvas[_0x7d6c[13]]/ 2- 70;
userInput[_0x7d6c[6]](_0x7d6c[33],butEventHandler,
{
lang:aLangs[_0x61cfx9]
}
,
{
type:_0x7d6c[4],aRect:[_0x61cfxa,_0x61cfxf,_0x61cfxa+ _0x61cfx7,140+ _0x61cfxf]
}
)
}
}
function initLoadAssets()
{
var _0x61cfx2=preAssetLib[_0x7d6c[9]](_0x7d6c[94]);
ctx[_0x7d6c[50]](_0x61cfx2[_0x7d6c[47]],canvas[_0x7d6c[5]]/2-_0x61cfx2[_0x7d6c[47]][_0x7d6c[5]]/ 2,canvas[_0x7d6c[13]]/2-_0x61cfx2[_0x7d6c[47]][_0x7d6c[13]]-10),loadAssets()
}
function loadAssets()
{
(assetLib=new Utils.AssetLoader(curLang,[
{
id:_0x7d6c[8],file:_0x7d6c[96]
}
,
{
id:_0x7d6c[97],file:_0x7d6c[98]
}
,
{
id:_0x7d6c[99],file:_0x7d6c[100]
}
,
{
id:_0x7d6c[11],file:_0x7d6c[101]+curLang+_0x7d6c[102]
}
,
{
id:_0x7d6c[12],file:_0x7d6c[101]+curLang+_0x7d6c[103]
}
,
{
id:_0x7d6c[104],file:_0x7d6c[105]
}
,
{
id:_0x7d6c[81],file:_0x7d6c[106]
}
,
{
id:_0x7d6c[29],file:_0x7d6c[101]+curLang+_0x7d6c[107]
}
,
{
id:_0x7d6c[10],file:_0x7d6c[108]
}
,
{
id:_0x7d6c[20],file:_0x7d6c[101]+curLang+_0x7d6c[109],oData:
{
columns:2,spriteWidth:480,spriteHeight:320
}
}
,
{
id:_0x7d6c[21],file:_0x7d6c[110],oData:
{
columns:5,spriteWidth:17,spriteHeight:30
}
}
,
{
id:_0x7d6c[61],file:_0x7d6c[111],oData:
{
oAnims:
{
falling:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38]
}
,columns:15,spriteWidth:68,spriteHeight:38
}
}
,
{
id:_0x7d6c[25],file:_0x7d6c[112],oData:
{
oAnims:
{
running:[0,1,2,3,4,5,6,7,8,9,10,11],jumping:[12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27],falling:[28],hide:[29]
}
,columns:9,spriteWidth:105,spriteHeight:106
}
}
,
{
id:_0x7d6c[60],file:_0x7d6c[113],oData:
{
oAnims:
{
spinning0:[0,1,2,3,4,5,6,7,8,9],spinning1:[10,11,12,13,14,15,16,17,18,19],spinning2:[20,21,22,23,24,25,26,27,28,29],spinning3:[30,31,32,33,34,35,36,37,38,39],bursting:[40,41,42,43,44,45,46,47,48,49,50]
}
,columns:9,spriteWidth:105,spriteHeight:106
}
}
,
{
id:_0x7d6c[53],file:_0x7d6c[101]+curLang+_0x7d6c[114],oData:
{
columns:9,spriteWidth:110,spriteHeight:174
}
}
,
{
id:_0x7d6c[44],file:_0x7d6c[115],oData:
{
columns:2,spriteWidth:39,spriteHeight:39
}
}
],ctx,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[92]](initSplash)
}
function resizeCanvas()
{
var _0x61cfx2=window[_0x7d6c[116]],_0x61cfx7=window[_0x7d6c[117]];
480<_0x61cfx2&&(--_0x61cfx2,--_0x61cfx7),window[_0x7d6c[116]]<window[_0x7d6c[117]]&&isMobile?(_0x7d6c[118]!=gameState&&rotatePauseOn(),canvas[_0x7d6c[119]][_0x7d6c[5]]=_0x61cfx2+_0x7d6c[120],canvas[_0x7d6c[119]][_0x7d6c[13]]=_0x61cfx2/canvas[_0x7d6c[5]]*canvas[_0x7d6c[13]]+_0x7d6c[120],canvasX=0,canvasY=(_0x61cfx7-_0x61cfx2/canvas[_0x7d6c[5]]*canvas[_0x7d6c[13]])/2,canvasScaleX=canvasScaleY=canvas[_0x7d6c[5]]/ _0x61cfx2,div[_0x7d6c[119]][_0x7d6c[121]]= canvasY+ _0x7d6c[120],div[_0x7d6c[119]][_0x7d6c[122]]= canvasX+ _0x7d6c[120]):isMobile?(rotatePause&& rotatePauseOff(),canvasX= canvasY= 0,canvasScaleX= canvas[_0x7d6c[5]]/_0x61cfx2,canvasScaleY=canvas[_0x7d6c[13]]/ _0x61cfx7,canvas[_0x7d6c[119]][_0x7d6c[5]]= _0x61cfx2+ _0x7d6c[120],canvas[_0x7d6c[119]][_0x7d6c[13]]= _0x61cfx7+ _0x7d6c[120],div[_0x7d6c[119]][_0x7d6c[121]]= _0x7d6c[123],div[_0x7d6c[119]][_0x7d6c[122]]= _0x7d6c[123]):(rotatePause&& rotatePauseOff(),canvasScaleX= canvasScaleY= _0x61cfx2/canvas[_0x7d6c[5]]<_0x61cfx7/canvas[_0x7d6c[13]]?(canvas[_0x7d6c[119]][_0x7d6c[5]]=_0x61cfx2+_0x7d6c[120],canvas[_0x7d6c[119]][_0x7d6c[13]]=_0x61cfx2/canvas[_0x7d6c[5]]*canvas[_0x7d6c[13]]+_0x7d6c[120],canvasX=0,canvasY=(_0x61cfx7-_0x61cfx2/canvas[_0x7d6c[5]]*canvas[_0x7d6c[13]])/2,canvas[_0x7d6c[5]]/ _0x61cfx2):(canvas[_0x7d6c[119]][_0x7d6c[5]]= _0x61cfx7/canvas[_0x7d6c[13]]*canvas[_0x7d6c[5]]+_0x7d6c[120],canvas[_0x7d6c[119]][_0x7d6c[13]]=_0x61cfx7+_0x7d6c[120],canvasX=(_0x61cfx2-_0x61cfx7/canvas[_0x7d6c[13]]*canvas[_0x7d6c[5]])/2,canvasY=0,canvas[_0x7d6c[13]]/ _0x61cfx7),div[_0x7d6c[119]][_0x7d6c[121]]= canvasY+ _0x7d6c[120],div[_0x7d6c[119]][_0x7d6c[122]]= canvasX+ _0x7d6c[120]),userInput[_0x7d6c[124]](canvasX,canvasY,canvasScaleX,canvasScaleY)
}
function playSound(_0x61cfx2)
{
allowSound&& sound[_0x7d6c[82]](_0x61cfx2)
}
function toggleMute()
{
muted= !muted,allowSound&& (muted?Howler[_0x7d6c[3]]():Howler[_0x7d6c[125]]()),renderMuteBut()
}
function toggleManualPause()
{
manualPause?(manualPause= !1,pauseCoreOff()):(manualPause= !0,pauseCoreOn(),userInput[_0x7d6c[6]](_0x7d6c[38],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[250,185,410,250]
}
),userInput[_0x7d6c[6]](_0x7d6c[43],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[60,185,225,250]
}
),(panel= new Elements.Panel(assetLib[_0x7d6c[9]](_0x7d6c[20]),assetLib[_0x7d6c[9]](_0x7d6c[21]),canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]))[_0x7d6c[19]](ctx,null,_0x7d6c[27]),userInput[_0x7d6c[6]](_0x7d6c[27],butEventHandler,null,
{
type:_0x7d6c[4],aRect:[400,0,437,40]
}
,!0))
}
function rotatePauseOn()
{
userInput[_0x7d6c[126]]= !0,rotatePause= !0,ctx[_0x7d6c[50]](assetLib[_0x7d6c[127]](_0x7d6c[104]),0,0),pauseCoreOn()
}
function rotatePauseOff()
{
userInput[_0x7d6c[126]]= !1,rotatePause= !1,pauseCoreOff()
}
function pauseCoreOn()
{
switch(allowSound&& Howler[_0x7d6c[3]](),gameState)
{
case _0x7d6c[22]:userInput[_0x7d6c[2]](_0x7d6c[28])
}
}
function pauseCoreOff()
{
switch(allowSound&& (muted|| Howler[_0x7d6c[125]]()),previousTime= ( new Date)[_0x7d6c[15]](),gameState)
{
case _0x7d6c[81]:updateSplashScreenEvent();
break;
case _0x7d6c[0]:initStartScreen();
break;
case _0x7d6c[16]:initPreGame();
break;
case _0x7d6c[22]:manualPause= !1,userInput[_0x7d6c[2]](_0x7d6c[43]),userInput[_0x7d6c[2]](_0x7d6c[38]),userInput[_0x7d6c[6]](_0x7d6c[28],butEventHandler,
{
allowUpState:!0
}
,
{
type:_0x7d6c[4],aRect:[0,40,canvas[_0x7d6c[5]],canvas[_0x7d6c[13]]]
}
,!0),updateGameEvent();
break;
case _0x7d6c[67]:initLevelComplete();
break;
case _0x7d6c[70]:initGameEndFail()
}
}
var Utils;
!function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[128]]= function(_0x61cfx2)
{
var _0x61cfx7=this,_0x61cfx9= new Image;
_0x61cfx9[_0x7d6c[130]]= function()
{
_0x61cfx7[_0x7d6c[131]][_0x61cfx2[_0x7d6c[76]]]=
{
}
,_0x61cfx7[_0x7d6c[131]][_0x61cfx2[_0x7d6c[76]]][_0x7d6c[47]]= _0x61cfx9,null!= _0x61cfx2[_0x7d6c[46]]&& (_0x61cfx7[_0x7d6c[131]][_0x61cfx2[_0x7d6c[76]]][_0x7d6c[46]]= _0x61cfx2[_0x7d6c[46]]),++_0x61cfx7[_0x7d6c[132]],_0x61cfx7[_0x7d6c[133]]&& ctx[_0x7d6c[138]](_0x61cfx7[_0x7d6c[134]]+ 2,_0x61cfx7[_0x7d6c[135]]+ 2,(_0x61cfx7[_0x7d6c[136]]/2-4)/_0x61cfx7[_0x7d6c[137]]*_0x61cfx7[_0x7d6c[132]],16),_0x61cfx7[_0x7d6c[139]]()
}
,_0x61cfx9[_0x7d6c[140]]=_0x61cfx2[_0x7d6c[141]]
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[139]]=function()
{
this[_0x7d6c[132]]==this[_0x7d6c[137]]&&this[_0x7d6c[142]]()
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[92]]=function(_0x61cfx2)
{
this[_0x7d6c[142]]=_0x61cfx2
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[127]]=function(_0x61cfx2)
{
return this[_0x7d6c[131]][_0x61cfx2][_0x7d6c[47]]
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[9]]=function(_0x61cfx2)
{
return this[_0x7d6c[131]][_0x61cfx2]
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf,_0x61cfx10)
{
var _0x61cfx11;
void(0)===_0x61cfx10&&(_0x61cfx10=!0),this[_0x7d6c[131]]=
{
}
,this[_0x7d6c[132]]=0,this[_0x7d6c[137]]=_0x61cfx7[_0x7d6c[58]],this[_0x7d6c[143]]=_0x61cfx9,this[_0x7d6c[136]]=_0x61cfxa,this[_0x7d6c[144]]=_0x61cfxf,this[_0x7d6c[133]]=_0x61cfx10,this[_0x7d6c[134]]=this[_0x7d6c[136]]/ 2- _0x61cfxa/4,this[_0x7d6c[135]]=this[_0x7d6c[144]]/ 2,this[_0x7d6c[133]]&& (_0x7d6c[145]== _0x61cfx2|| _0x7d6c[146]== _0x61cfx2?_0x61cfx11= _0x7d6c[147]:_0x7d6c[148]== _0x61cfx2?_0x61cfx11= _0x7d6c[149]:_0x7d6c[150]== _0x61cfx2&& (_0x61cfx11= _0x7d6c[151]),ctx[_0x7d6c[152]]= _0x7d6c[153],ctx[_0x7d6c[154]]= _0x7d6c[155],ctx[_0x7d6c[156]]= _0x7d6c[157],ctx[_0x7d6c[158]](_0x61cfx11,this[_0x7d6c[136]]/2,this[_0x7d6c[135]]+35),ctx[_0x7d6c[159]]=_0x7d6c[153],ctx[_0x7d6c[160]]=2,ctx[_0x7d6c[152]]=_0x7d6c[161],ctx[_0x7d6c[162]](this[_0x7d6c[134]],this[_0x7d6c[135]]),ctx[_0x7d6c[163]](this[_0x7d6c[134]]+_0x61cfxa/2,this[_0x7d6c[135]]+0),ctx[_0x7d6c[163]](this[_0x7d6c[134]]+_0x61cfxa/2,this[_0x7d6c[135]]+20),ctx[_0x7d6c[163]](this[_0x7d6c[134]]+0,this[_0x7d6c[135]]+20),ctx[_0x7d6c[163]](this[_0x7d6c[134]]+0,this[_0x7d6c[135]]+0),ctx[_0x7d6c[164]]());
for(var _0x61cfx2f=0;
_0x61cfx2f<_0x61cfx7[_0x7d6c[58]];
_0x61cfx2f++)
{
this[_0x7d6c[128]](_0x61cfx7[_0x61cfx2f])
}
}
_0x61cfx2[_0x7d6c[165]]=_0x61cfx7
}
(Utils=Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[166]]=function(_0x61cfx2)
{
this[_0x7d6c[167]]+=this[_0x7d6c[168]]*_0x61cfx2
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[169]]=function()
{
this[_0x7d6c[167]]=0
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[170]]=function(_0x61cfx2)
{
this[_0x7d6c[171]]=_0x61cfx2
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[172]]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
switch(void(0)===_0x61cfx9&&(_0x61cfx9=!0),this[_0x7d6c[175]]=_0x61cfx7,this[_0x7d6c[178]]=_0x61cfx2,_0x61cfx9&&this[_0x7d6c[169]](),_0x61cfx2)
{
case _0x7d6c[173]:break;
case _0x7d6c[177]:this[_0x7d6c[174]]=this[_0x7d6c[176]][this[_0x7d6c[175]]][_0x7d6c[58]]-1
}
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]=function(_0x61cfx2)
{
if(null!=this[_0x7d6c[175]])
{
var _0x61cfx7=this[_0x7d6c[176]][this[_0x7d6c[175]]][_0x7d6c[58]],_0x61cfx9=Math[_0x7d6c[48]](this[_0x7d6c[167]]),_0x61cfxa=this[_0x7d6c[176]][this[_0x7d6c[175]]][_0x61cfx9%_0x61cfx7],_0x61cfxf=_0x61cfxa*this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]%this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfx10=Math[_0x7d6c[48]](_0x61cfxa/(this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]];
_0x7d6c[177]== this[_0x7d6c[178]]&& _0x61cfx9> this[_0x7d6c[174]]&& (this[_0x7d6c[171]]= this[_0x7d6c[176]][this[_0x7d6c[175]]][_0x61cfx7- 1],this[_0x7d6c[175]]= null,this[_0x7d6c[180]](),_0x61cfxf= this[_0x7d6c[171]]* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfx10= Math[_0x7d6c[48]](this[_0x7d6c[171]]/(this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]])
}
else
{
_0x61cfxf= this[_0x7d6c[171]]* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfx10= Math[_0x7d6c[48]](this[_0x7d6c[171]]/(this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]]
};
_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[179]][_0x7d6c[47]],_0x61cfxf,_0x61cfx10,this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]],-this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]/2+this[_0x7d6c[181]],-this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]]/ 2 + this[_0x7d6c[182]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
this[_0x7d6c[54]]= 0,this[_0x7d6c[55]]= 0,this[_0x7d6c[86]]= 0,this[_0x7d6c[83]]= 10,this[_0x7d6c[73]]= !1,this[_0x7d6c[167]]= 0,this[_0x7d6c[178]]= _0x7d6c[173],this[_0x7d6c[181]]= 0,this[_0x7d6c[182]]= 0,this[_0x7d6c[88]]= 1,this[_0x7d6c[89]]= 1,this[_0x7d6c[179]]= _0x61cfx2,this[_0x7d6c[176]]= this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[176]],this[_0x7d6c[168]]= _0x61cfx7,this[_0x7d6c[83]]= _0x61cfx9,this[_0x7d6c[175]]= _0x61cfxa
}
_0x61cfx2[_0x7d6c[183]]= _0x61cfx7
}
(Utils= Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[170]]= function(_0x61cfx2)
{
this[_0x7d6c[184]]= _0x61cfx2
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]= function(_0x61cfx2)
{
var _0x61cfx7=this[_0x7d6c[184]]* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfx9=Math[_0x7d6c[48]](this[_0x7d6c[184]]/(this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]];
_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[179]][_0x7d6c[47]],_0x61cfx7,_0x61cfx9,this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]],-this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]/2,-this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]]/ 2,this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7)
{
this[_0x7d6c[54]]= 0,this[_0x7d6c[55]]= 0,this[_0x7d6c[86]]= 0,this[_0x7d6c[83]]= 10,this[_0x7d6c[73]]= !1,this[_0x7d6c[179]]= _0x61cfx2,this[_0x7d6c[83]]= _0x61cfx7
}
_0x61cfx2[_0x7d6c[185]]= _0x61cfx7
}
(Utils= Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[124]]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
this[_0x7d6c[186]]= _0x61cfx2,this[_0x7d6c[187]]= _0x61cfx7,this[_0x7d6c[188]]= _0x61cfx9,this[_0x7d6c[189]]= _0x61cfxa
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[190]]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
if(!this[_0x7d6c[126]])
{
var _0x61cfxa=( new Date)[_0x7d6c[15]]();
if(!(_0x61cfxa- this[_0x7d6c[191]]< 500&& isBugBrowser))
{
this[_0x7d6c[191]]= _0x61cfxa,_0x61cfx2[_0x7d6c[192]](),_0x61cfx2[_0x7d6c[193]](),_0x61cfx7= (_0x61cfx7- this[_0x7d6c[186]])* this[_0x7d6c[188]],_0x61cfx9= (_0x61cfx9- this[_0x7d6c[187]])* this[_0x7d6c[189]];
for(var _0x61cfxf=0;
_0x61cfxf< this[_0x7d6c[194]][_0x7d6c[58]];
_0x61cfxf++)
{
if(this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[4]]&& _0x61cfx7> this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[195]][0]&& _0x61cfx9> this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[195]][1]&& _0x61cfx7< this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[195]][2]&& _0x61cfx9< this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[195]][3])
{
this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[46]][_0x7d6c[196]]= _0x61cfx7,this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[46]][_0x7d6c[197]]= _0x61cfx9,this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[46]][_0x7d6c[36]]= _0x7d6c[35],this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[198]](this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[76]],this[_0x7d6c[194]][_0x61cfxf][_0x7d6c[46]]);
break
}
}
}
}
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[199]]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfx2[_0x7d6c[192]](),_0x61cfx2[_0x7d6c[193]](),_0x61cfx7= (_0x61cfx7- this[_0x7d6c[186]])* this[_0x7d6c[188]],_0x61cfx9= (_0x61cfx9- this[_0x7d6c[187]])* this[_0x7d6c[189]];
for(var _0x61cfxa=0;
_0x61cfxa< this[_0x7d6c[194]][_0x7d6c[58]];
_0x61cfxa++)
{
if(this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[4]]&& _0x61cfx7> this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[195]][0]&& _0x61cfx9> this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[195]][1]&& _0x61cfx7< this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[195]][2]&& _0x61cfx9< this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[195]][3]&& this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[46]][_0x7d6c[200]])
{
this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[46]][_0x7d6c[196]]= _0x61cfx7,this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[46]][_0x7d6c[197]]= _0x61cfx9,this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[46]][_0x7d6c[36]]= _0x7d6c[201],this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[198]](this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[76]],this[_0x7d6c[194]][_0x61cfxa][_0x7d6c[46]]);
break
}
}
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[6]]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf)
{
switch(void(0)=== _0x61cfxf&& (_0x61cfxf= !1),null== _0x61cfx9&& (_0x61cfx9= new Object),_0x61cfxf&& this[_0x7d6c[2]](_0x61cfx2),_0x61cfxa[_0x7d6c[77]])
{
case _0x7d6c[205]:_0x61cfxa[_0x7d6c[203]][_0x7d6c[202]]?this[_0x7d6c[194]][_0x7d6c[56]](
{
id:_0x61cfx2,callback:_0x61cfx7,oData:_0x61cfx9,rect:!0,area:[_0x61cfxa[_0x7d6c[204]][0]- _0x61cfxa[_0x7d6c[203]][_0x7d6c[46]][_0x7d6c[49]]/2,_0x61cfxa[_0x7d6c[204]][1]-_0x61cfxa[_0x7d6c[203]][_0x7d6c[46]][_0x7d6c[49]]/ 2,_0x61cfxa[_0x7d6c[204]][0]+ _0x61cfxa[_0x7d6c[203]][_0x7d6c[46]][_0x7d6c[45]]/2,_0x61cfxa[_0x7d6c[204]][1]+_0x61cfxa[_0x7d6c[203]][_0x7d6c[46]][_0x7d6c[49]]/ 2]
}
):this[_0x7d6c[194]][_0x7d6c[56]](
{
id:_0x61cfx2,callback:_0x61cfx7,oData:_0x61cfx9,rect:!0,area:[_0x61cfxa[_0x7d6c[204]][0]- _0x61cfxa[_0x7d6c[203]][_0x7d6c[47]][_0x7d6c[5]]/2,_0x61cfxa[_0x7d6c[204]][1]-_0x61cfxa[_0x7d6c[203]][_0x7d6c[47]][_0x7d6c[13]]/ 2,_0x61cfxa[_0x7d6c[204]][0]+ _0x61cfxa[_0x7d6c[203]][_0x7d6c[47]][_0x7d6c[5]]/2,_0x61cfxa[_0x7d6c[204]][1]+_0x61cfxa[_0x7d6c[203]][_0x7d6c[47]][_0x7d6c[13]]/ 2]
}
);
break;
case _0x7d6c[4]:this[_0x7d6c[194]][_0x7d6c[56]](
{
id:_0x61cfx2,callback:_0x61cfx7,oData:_0x61cfx9,rect:!0,area:_0x61cfxa[_0x7d6c[206]]
}
)
}
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[2]]= function(_0x61cfx2)
{
for(var _0x61cfx7=0;
_0x61cfx7< this[_0x7d6c[194]][_0x7d6c[58]];
_0x61cfx7++)
{
this[_0x7d6c[194]][_0x61cfx7][_0x7d6c[76]]== _0x61cfx2&& (this[_0x7d6c[194]][_0x7d6c[74]](_0x61cfx7,1),--_0x61cfx7)
}
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7)
{
var _0x61cfx9=this;
this[_0x7d6c[207]]= !1,this[_0x7d6c[186]]= 0,this[_0x7d6c[187]]= 0,this[_0x7d6c[188]]= 1,this[_0x7d6c[189]]= 1,this[_0x7d6c[191]]= 0,this[_0x7d6c[126]]= !1,this[_0x7d6c[208]]= _0x61cfx7,_0x61cfx2[_0x7d6c[213]](_0x7d6c[209],function(_0x61cfx2)
{
_0x61cfx9[_0x7d6c[190]](_0x61cfx2,_0x61cfx2[_0x7d6c[211]][0][_0x7d6c[210]],_0x61cfx2[_0x7d6c[211]][0][_0x7d6c[212]])
}
,!1),_0x61cfx2[_0x7d6c[213]](_0x7d6c[214],function(_0x61cfx2)
{
_0x61cfx9[_0x7d6c[199]](_0x61cfx2,_0x61cfx2[_0x7d6c[215]][0][_0x7d6c[210]],_0x61cfx2[_0x7d6c[215]][0][_0x7d6c[212]])
}
,!1),_0x61cfx2[_0x7d6c[213]](_0x7d6c[216],function(_0x61cfx2)
{
_0x61cfx9[_0x7d6c[190]](_0x61cfx2,_0x61cfx2[_0x7d6c[210]],_0x61cfx2[_0x7d6c[212]])
}
,!1),_0x61cfx2[_0x7d6c[213]](_0x7d6c[217],function(_0x61cfx2)
{
_0x61cfx9[_0x7d6c[199]](_0x61cfx2,_0x61cfx2[_0x7d6c[210]],_0x61cfx2[_0x7d6c[212]])
}
,!1),this[_0x7d6c[194]]= new Array
}
_0x61cfx2[_0x7d6c[218]]= _0x61cfx7
}
(Utils= Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[72]]= function(_0x61cfx2)
{
this[_0x7d6c[219]]= _0x61cfx2
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2)
{
this[_0x7d6c[220]]= 10,this[_0x7d6c[221]]= 0,this[_0x7d6c[222]]= 0,this[_0x7d6c[223]]= 1,this[_0x7d6c[224]]= _0x7d6c[146],this[_0x7d6c[18]]= function(_0x61cfx2)
{
this[_0x7d6c[222]]+= this[_0x7d6c[219]]/this[_0x7d6c[220]],++this[_0x7d6c[221]]>=this[_0x7d6c[220]]&&(this[_0x7d6c[221]]=0,this[_0x7d6c[223]]=this[_0x7d6c[222]],this[_0x7d6c[222]]=0),_0x61cfx2[_0x7d6c[154]]=_0x7d6c[225],ctx[_0x7d6c[156]]=_0x7d6c[226],_0x61cfx2[_0x7d6c[152]]=_0x7d6c[227],_0x61cfx2[_0x7d6c[228]](),_0x61cfx2[_0x7d6c[4]](0,this[_0x7d6c[144]]-15,40,15),_0x61cfx2[_0x7d6c[229]](),_0x61cfx2[_0x7d6c[230]](),_0x61cfx2[_0x7d6c[152]]=_0x7d6c[153],_0x61cfx2[_0x7d6c[158]](Math[_0x7d6c[231]](1e3/(1e3*this[_0x7d6c[223]]))+_0x7d6c[232]+this[_0x7d6c[224]],5,this[_0x7d6c[144]]-5)
}
,this[_0x7d6c[144]]=_0x61cfx2
}
_0x61cfx2[_0x7d6c[233]]=_0x61cfx7
}
(Utils=Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[72]]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
this[_0x7d6c[181]]+=_0x61cfx7/2*_0x61cfx2,this[_0x7d6c[182]]-=_0x61cfx9/2*_0x61cfx2
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]=function(_0x61cfx2)
{
var _0x61cfx7=this[_0x7d6c[181]]%this[_0x7d6c[136]],_0x61cfx9=this[_0x7d6c[182]]%this[_0x7d6c[144]];
_0x61cfx7<0&&(_0x61cfx7+=this[_0x7d6c[136]]),_0x61cfx9<0&&(_0x61cfx9+=this[_0x7d6c[144]]),_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[179]][_0x7d6c[47]],_0x61cfx7,_0x61cfx9,this[_0x7d6c[136]],this[_0x7d6c[144]],0,0,this[_0x7d6c[136]],this[_0x7d6c[144]])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
this[_0x7d6c[181]]=0,this[_0x7d6c[182]]=0,this[_0x7d6c[179]]=_0x61cfx2,this[_0x7d6c[136]]=_0x61cfx7,this[_0x7d6c[144]]=_0x61cfx9
}
_0x61cfx2[_0x7d6c[234]]=_0x61cfx7
}
(Elements=Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[7]]=function(_0x61cfx2)
{
switch(this[_0x7d6c[239]]=-this[_0x7d6c[144]],_0x61cfx2)
{
case _0x7d6c[0]:this[_0x7d6c[235]]=this[_0x7d6c[236]],TweenLite[_0x7d6c[238]](this,1,
{
posX:0,ease:_0x7d6c[237]
}
),TweenLite[_0x7d6c[238]](this,0.5,
{
posY:0
}
)
}
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]=function(_0x61cfx2,_0x61cfx7)
{
this[_0x7d6c[235]](_0x61cfx2,_0x61cfx7)
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[236]]=function(_0x61cfx2,_0x61cfx7)
{
this[_0x7d6c[240]]+=5*_0x61cfx7,this[_0x7d6c[241]]+=50*_0x61cfx7,this[_0x7d6c[242]]-=50*Math[_0x7d6c[243]](this[_0x7d6c[240]]/ 5)* _0x61cfx7;
var _0x61cfx9=this[_0x7d6c[241]]% this[_0x7d6c[136]],_0x61cfxa=this[_0x7d6c[242]]% this[_0x7d6c[144]];
_0x61cfx9< 0&& (_0x61cfx9+= this[_0x7d6c[136]]),_0x61cfxa< 0&& (_0x61cfxa+= this[_0x7d6c[144]]),_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[245]][_0x7d6c[244]][_0x7d6c[47]],_0x61cfx9,_0x61cfxa,this[_0x7d6c[136]],this[_0x7d6c[144]],0,0,this[_0x7d6c[136]],this[_0x7d6c[144]]),_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[246]][_0x7d6c[47]],this[_0x7d6c[136]]/2-this[_0x7d6c[246]][_0x7d6c[47]][_0x7d6c[5]]/ 2- this[_0x7d6c[247]],-12),_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[248]][_0x7d6c[47]],this[_0x7d6c[136]]/2-this[_0x7d6c[246]][_0x7d6c[47]][_0x7d6c[5]]/ 2+ this[_0x7d6c[247]],-12),_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[250]][_0x7d6c[82]][_0x7d6c[249]][_0x7d6c[47]],this[_0x7d6c[250]][_0x7d6c[82]][_0x7d6c[251]][0]- this[_0x7d6c[250]][_0x7d6c[82]][_0x7d6c[249]][_0x7d6c[47]][_0x7d6c[5]]/2,this[_0x7d6c[250]][_0x7d6c[82]][_0x7d6c[251]][1]-this[_0x7d6c[250]][_0x7d6c[82]][_0x7d6c[249]][_0x7d6c[47]][_0x7d6c[13]]/ 2- 5* Math[_0x7d6c[243]](this[_0x7d6c[240]])- this[_0x7d6c[239]])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf,_0x61cfx10)
{
this[_0x7d6c[240]]= 0,this[_0x7d6c[252]]= 0,this[_0x7d6c[253]]= 0,this[_0x7d6c[239]]= 0,this[_0x7d6c[241]]= 0,this[_0x7d6c[242]]= 0,this[_0x7d6c[245]]= _0x61cfx2,this[_0x7d6c[250]]= _0x61cfx7,this[_0x7d6c[248]]= _0x61cfx9,this[_0x7d6c[246]]= _0x61cfxa,this[_0x7d6c[136]]= _0x61cfxf,this[_0x7d6c[144]]= _0x61cfx10,this[_0x7d6c[239]]= -this[_0x7d6c[144]],this[_0x7d6c[247]]= 100
}
_0x61cfx2[_0x7d6c[254]]= _0x61cfx7
}
(Elements= Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]= function(_0x61cfx2,_0x61cfx7)
{
this[_0x7d6c[255]]+= 5* _0x61cfx7,_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[256]][_0x7d6c[47]],0,0- this[_0x7d6c[239]])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
this[_0x7d6c[255]]= 0,this[_0x7d6c[256]]= _0x61cfx2,this[_0x7d6c[136]]= _0x61cfx7,this[_0x7d6c[144]]= _0x61cfx9,this[_0x7d6c[239]]= -this[_0x7d6c[144]],TweenLite[_0x7d6c[238]](this,0.5,
{
posY:0
}
)
}
_0x61cfx2[_0x7d6c[257]]= _0x61cfx7
}
(Elements= Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[72]]= function()
{
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[68]]= function()
{
this[_0x7d6c[239]]= 320,TweenLite[_0x7d6c[238]](this,0.8,
{
posY:0,ease:_0x7d6c[237]
}
)
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[19]]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
switch(_0x61cfx9)
{
case _0x7d6c[67]:var _0x61cfxa=(_0x61cfx2f= 1)* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf=Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]];
_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[258]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]],this[_0x7d6c[136]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]/ 2,this[_0x7d6c[144]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]]/ 2+ this[_0x7d6c[239]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]]);
for(var _0x61cfx10=this[_0x7d6c[69]][_0x7d6c[259]],_0x61cfx11=0;
_0x61cfx11< _0x61cfx10.toString()[_0x7d6c[58]];
_0x61cfx11++)
{
_0x61cfxa= (_0x61cfx2f= parseFloat(_0x61cfx10.toString()[_0x7d6c[260]](_0x61cfx11)))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf= Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[261]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],255+ 15* _0x61cfx11,103+ this[_0x7d6c[239]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]])
};
for(_0x61cfx10= this[_0x7d6c[69]][_0x7d6c[262]],_0x61cfx11= 0;
_0x61cfx11< _0x61cfx10.toString()[_0x7d6c[58]];
_0x61cfx11++)
{
_0x61cfxa= (_0x61cfx2f= parseFloat(_0x61cfx10.toString()[_0x7d6c[260]](_0x61cfx11)))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf= Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[261]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],255+ 15* _0x61cfx11,142+ this[_0x7d6c[239]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]])
};
for(_0x61cfx10= this[_0x7d6c[69]][_0x7d6c[263]],_0x61cfx11= 0;
_0x61cfx11< _0x61cfx10.toString()[_0x7d6c[58]];
_0x61cfx11++)
{
_0x61cfxa= (_0x61cfx2f= parseFloat(_0x61cfx10.toString()[_0x7d6c[260]](_0x61cfx11)))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf= Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[261]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],255+ 15* _0x61cfx11,202+ this[_0x7d6c[239]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]])
};
break;
case _0x7d6c[70]:for(_0x61cfxa= (_0x61cfx2f= 2)* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf= Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[258]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]],this[_0x7d6c[136]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]/ 2,this[_0x7d6c[144]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]]/ 2+ this[_0x7d6c[239]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]]),_0x61cfx10= this[_0x7d6c[69]][_0x7d6c[263]],_0x61cfx11= 0;
_0x61cfx11< _0x61cfx10.toString()[_0x7d6c[58]];
_0x61cfx11++)
{
_0x61cfxa= (_0x61cfx2f= parseFloat(_0x61cfx10.toString()[_0x7d6c[260]](_0x61cfx11)))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf= Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[261]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],255+ 15* _0x61cfx11,202+ this[_0x7d6c[239]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]])
};
break;
case _0x7d6c[16]:_0x61cfxa= (_0x61cfx2f= 0)* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf= Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[258]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]],this[_0x7d6c[136]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]/ 2,this[_0x7d6c[144]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]]/ 2,this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]]);
break;
case _0x7d6c[27]:var _0x61cfx2f;
_0x61cfxa= (_0x61cfx2f= 3)* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxf= Math[_0x7d6c[48]](_0x61cfx2f/(this[_0x7d6c[258]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[258]][_0x7d6c[47]],_0x61cfxa,_0x61cfxf,this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]],this[_0x7d6c[136]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]]/ 2,this[_0x7d6c[144]]/2-this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]]/ 2,this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[258]][_0x7d6c[46]][_0x7d6c[49]])
}
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
this[_0x7d6c[264]]= 0.3,this[_0x7d6c[265]]= 0,this[_0x7d6c[258]]= _0x61cfx2,this[_0x7d6c[261]]= _0x61cfx7,this[_0x7d6c[136]]= _0x61cfx9,this[_0x7d6c[144]]= _0x61cfxa
}
_0x61cfx2[_0x7d6c[266]]= _0x61cfx7
}
(Elements= Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]= function(_0x61cfx2)
{
_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[267]][_0x7d6c[47]],0,0);
for(var _0x61cfx7=0;
_0x61cfx7< this[_0x7d6c[252]].toString()[_0x7d6c[58]];
_0x61cfx7++)
{
var _0x61cfx9=(_0x61cfxf= parseFloat(this[_0x7d6c[252]].toString()[_0x7d6c[260]](_0x61cfx7)))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxa=Math[_0x7d6c[48]](_0x61cfxf/(this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]];
_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[261]][_0x7d6c[47]],_0x61cfx9,_0x61cfxa,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],215+ _0x61cfx7* this[_0x7d6c[268]]- this[_0x7d6c[268]]* this[_0x7d6c[252]].toString()[_0x7d6c[58]]/2,7,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]])
};
for(_0x61cfx7=0;
_0x61cfx7<this[_0x7d6c[259]].toString()[_0x7d6c[58]];
_0x61cfx7++)
{
_0x61cfx9=(_0x61cfxf=parseFloat(this[_0x7d6c[259]].toString()[_0x7d6c[260]](_0x61cfx7)))*this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]%this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxa=Math[_0x7d6c[48]](_0x61cfxf/(this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[261]][_0x7d6c[47]],_0x61cfx9,_0x61cfxa,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],128+ 15* _0x61cfx7,7,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]])
};
for(_0x61cfx7= 0;
_0x61cfx7< this[_0x7d6c[269]].toString()[_0x7d6c[58]];
_0x61cfx7++)
{
var _0x61cfxf;
_0x61cfx9= (_0x61cfxf= parseFloat(this[_0x7d6c[269]].toString()[_0x7d6c[260]](_0x61cfx7)))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfxa= Math[_0x7d6c[48]](_0x61cfxf/(this[_0x7d6c[261]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[261]][_0x7d6c[47]],_0x61cfx9,_0x61cfxa,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]],355+ 15* _0x61cfx7,7,this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[261]][_0x7d6c[46]][_0x7d6c[49]])
}
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[62]]= function(_0x61cfx2)
{
this[_0x7d6c[252]]= _0x61cfx2
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[63]]= function(_0x61cfx2)
{
this[_0x7d6c[259]]= _0x61cfx2
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf,_0x61cfx10)
{
this[_0x7d6c[252]]= 0,this[_0x7d6c[259]]= 0,this[_0x7d6c[268]]= 15,this[_0x7d6c[267]]= _0x61cfx2,this[_0x7d6c[261]]= _0x61cfx7,this[_0x7d6c[269]]= _0x61cfx9,this[_0x7d6c[136]]= _0x61cfxa,this[_0x7d6c[144]]= _0x61cfxf,this[_0x7d6c[252]]= _0x61cfx10
}
_0x61cfx2[_0x7d6c[270]]= _0x61cfx7
}
(Elements= Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[170]]= function(_0x61cfx2)
{
this[_0x7d6c[184]]= _0x61cfx2
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]= function(_0x61cfx2)
{
var _0x61cfx7=this[_0x7d6c[184]]* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfx9=Math[_0x7d6c[48]](this[_0x7d6c[184]]/(this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]];
_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[179]][_0x7d6c[47]],_0x61cfx7,_0x61cfx9,this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]],this[_0x7d6c[54]],this[_0x7d6c[55]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2)
{
this[_0x7d6c[54]]= 0,this[_0x7d6c[55]]= 0,this[_0x7d6c[73]]= !1,this[_0x7d6c[179]]= _0x61cfx2
}
_0x61cfx2[_0x7d6c[271]]= _0x61cfx7
}
(Utils= Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9[_0x7d6c[129]][_0x7d6c[72]]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
this[_0x7d6c[54]]-= _0x61cfx7* _0x61cfx2,this[_0x7d6c[55]]+= _0x61cfx9* _0x61cfx2,(this[_0x7d6c[55]]> 1.5* this[_0x7d6c[144]]|| this[_0x7d6c[54]]< 0- this[_0x7d6c[45]]&& this[_0x7d6c[64]]|| this[_0x7d6c[54]]> this[_0x7d6c[136]]+ this[_0x7d6c[45]]&& !this[_0x7d6c[64]])&& (this[_0x7d6c[73]]= !0)
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[18]]= function(_0x61cfx2)
{
var _0x61cfx7=this[_0x7d6c[184]]* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]% this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]],_0x61cfx9=Math[_0x7d6c[48]](this[_0x7d6c[184]]/(this[_0x7d6c[179]][_0x7d6c[47]][_0x7d6c[5]]/ this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]))* this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]];
_0x61cfx2[_0x7d6c[50]](this[_0x7d6c[179]][_0x7d6c[47]],_0x61cfx7,_0x61cfx9,this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]],this[_0x7d6c[54]]- 5- this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]]/2,this[_0x7d6c[55]]-115,this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[45]],this[_0x7d6c[179]][_0x7d6c[46]][_0x7d6c[49]])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf,_0x61cfx10,_0x61cfx11)
{
this[_0x7d6c[54]]=0,this[_0x7d6c[55]]=0,this[_0x7d6c[73]]=!1,this[_0x7d6c[179]]=_0x61cfx2,this[_0x7d6c[76]]=_0x61cfx7,this[_0x7d6c[64]]=_0x61cfxf,this[_0x7d6c[136]]=_0x61cfx10,this[_0x7d6c[144]]=_0x61cfx11,this[_0x7d6c[77]]=_0x61cfxa,this[_0x7d6c[45]]=100,this[_0x7d6c[184]]=_0x61cfx9
}
_0x61cfx2[_0x7d6c[272]]=_0x61cfx7
}
(Elements=Elements||
{
}
);
var Elements,__extends=this[_0x7d6c[273]]||function(_0x61cfx2,_0x61cfx7)
{
function _0x61cfx9()
{
this[_0x7d6c[274]]=_0x61cfx2
}
_0x61cfx9[_0x7d6c[129]]=_0x61cfx7[_0x7d6c[129]],_0x61cfx2[_0x7d6c[129]]=new _0x61cfx9
};
!function(_0x61cfx2)
{
var _0x61cfxf,_0x61cfx7=(_0x61cfxf=Utils[_0x7d6c[183]],__extends(_0x61cfx9,_0x61cfxf),_0x61cfx9[_0x7d6c[129]][_0x7d6c[75]]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfx9>this[_0x7d6c[55]]&&(this[_0x7d6c[276]][_0x7d6c[275]]=_0x61cfx2),this[_0x7d6c[276]][_0x7d6c[277]]=_0x61cfx2,this[_0x7d6c[276]][_0x7d6c[278]]=_0x61cfx9,this[_0x7d6c[276]][_0x7d6c[279]]=_0x61cfx7
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[280]]=function(_0x61cfx2)
{
switch(this[_0x7d6c[281]]=_0x61cfx2,this[_0x7d6c[281]])
{
case _0x7d6c[285]:this[_0x7d6c[172]](_0x7d6c[173],this[_0x7d6c[281]]),this[_0x7d6c[282]]&&(this[_0x7d6c[283]]=450,this[_0x7d6c[280]](_0x7d6c[284]));
break;
case _0x7d6c[286]:_0x7d6c[285]==this[_0x7d6c[175]]&&(this[_0x7d6c[180]]=function()
{
this[_0x7d6c[172]](_0x7d6c[173],_0x7d6c[286])
}
,this[_0x7d6c[172]](_0x7d6c[177],_0x7d6c[285],!1)),this[_0x7d6c[287]]=100;
break;
case _0x7d6c[284]:_0x7d6c[285]==this[_0x7d6c[175]]&&(this[_0x7d6c[180]]=function()
{
this[_0x7d6c[172]](_0x7d6c[173],_0x7d6c[286])
}
,this[_0x7d6c[172]](_0x7d6c[177],this[_0x7d6c[281]]),this[_0x7d6c[287]]=-300);
break;
case _0x7d6c[288]:this[_0x7d6c[64]]?(this[_0x7d6c[64]]=!1,this[_0x7d6c[88]]=-1):(this[_0x7d6c[64]]=!0,this[_0x7d6c[88]]=1),this[_0x7d6c[287]]=-725,this[_0x7d6c[180]]=function()
{
this[_0x7d6c[172]](_0x7d6c[173],_0x7d6c[286])
}
,this[_0x7d6c[172]](_0x7d6c[177],_0x7d6c[284]),this[_0x7d6c[198]](_0x7d6c[65],
{
isRight:this[_0x7d6c[64]]
}
);
break;
case _0x7d6c[57]:this[_0x7d6c[198]](_0x7d6c[57]),this[_0x7d6c[172]](_0x7d6c[173],_0x7d6c[289])
};
this[_0x7d6c[290]]=this[this[_0x7d6c[281]]]
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[28]]=function()
{
_0x7d6c[285]==this[_0x7d6c[281]]&&(this[_0x7d6c[283]]=450,this[_0x7d6c[280]](_0x7d6c[284]),playSound(_0x7d6c[28])),this[_0x7d6c[282]]=!0
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[37]]=function()
{
_0x7d6c[284]==this[_0x7d6c[281]]&&(this[_0x7d6c[283]]=800),this[_0x7d6c[282]]=!1
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[72]]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfxf[_0x7d6c[129]][_0x7d6c[166]][_0x7d6c[291]](this,_0x61cfx2),this[_0x7d6c[54]]+=_0x61cfx7*_0x61cfx2,this[_0x7d6c[55]]+=_0x61cfx9*_0x61cfx2,this[_0x7d6c[290]](_0x61cfx2)
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[285]]=function()
{
null!=this[_0x7d6c[276]][_0x7d6c[277]]&&this[_0x7d6c[276]][_0x7d6c[278]]==this[_0x7d6c[55]]||this[_0x7d6c[280]](_0x7d6c[286])
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[286]]=function(_0x61cfx2)
{
this[_0x7d6c[287]]+=800*_0x61cfx2,this[_0x7d6c[55]]+=this[_0x7d6c[287]]*_0x61cfx2,this[_0x7d6c[276]][_0x7d6c[278]]<this[_0x7d6c[55]]&&this[_0x7d6c[55]]-this[_0x7d6c[276]][_0x7d6c[278]]<30&&(this[_0x7d6c[55]]=this[_0x7d6c[276]][_0x7d6c[278]],this[_0x7d6c[280]](_0x7d6c[285]),playSound(_0x7d6c[292])),this[_0x7d6c[55]]>1.5*this[_0x7d6c[144]]&&this[_0x7d6c[198]](_0x7d6c[66])
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[57]]=function()
{
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[284]]=function(_0x61cfx2)
{
0<this[_0x7d6c[287]]&&(this[_0x7d6c[283]]=800),this[_0x7d6c[287]]+=this[_0x7d6c[283]]*_0x61cfx2,this[_0x7d6c[55]]+=this[_0x7d6c[287]]*_0x61cfx2,this[_0x7d6c[276]][_0x7d6c[278]]<this[_0x7d6c[55]]&&this[_0x7d6c[55]]-this[_0x7d6c[276]][_0x7d6c[278]]<30&&(_0x7d6c[59]==this[_0x7d6c[276]][_0x7d6c[279]]?(this[_0x7d6c[55]]=this[_0x7d6c[276]][_0x7d6c[278]],this[_0x7d6c[280]](_0x7d6c[288]),playSound(_0x7d6c[293])):_0x7d6c[57]==this[_0x7d6c[276]][_0x7d6c[279]]?(this[_0x7d6c[55]]=this[_0x7d6c[276]][_0x7d6c[278]],this[_0x7d6c[280]](_0x7d6c[57])):(this[_0x7d6c[55]]=this[_0x7d6c[276]][_0x7d6c[278]],this[_0x7d6c[280]](_0x7d6c[285]),playSound(_0x7d6c[292]))),this[_0x7d6c[55]]>1.5*this[_0x7d6c[144]]&&this[_0x7d6c[198]](_0x7d6c[66])
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[288]]=function(_0x61cfx2)
{
this[_0x7d6c[287]]+=800*_0x61cfx2,this[_0x7d6c[55]]+=this[_0x7d6c[287]]*_0x61cfx2,this[_0x7d6c[276]][_0x7d6c[278]]<this[_0x7d6c[55]]&&this[_0x7d6c[55]]-this[_0x7d6c[276]][_0x7d6c[278]]<30&&(this[_0x7d6c[55]]=this[_0x7d6c[276]][_0x7d6c[278]],this[_0x7d6c[280]](_0x7d6c[285]))
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
_0x61cfxf[_0x7d6c[291]](this,_0x61cfx2,20,25,_0x7d6c[286]),this[_0x7d6c[287]]=0,this[_0x7d6c[276]]=new Object,this[_0x7d6c[282]]=!1,this[_0x7d6c[64]]=!0,this[_0x7d6c[136]]=_0x61cfx7,this[_0x7d6c[144]]=_0x61cfx9,this[_0x7d6c[198]]=_0x61cfxa,this[_0x7d6c[281]]=_0x7d6c[286],this[_0x7d6c[182]]=-12,this[_0x7d6c[290]]=this[_0x7d6c[286]]
}
_0x61cfx2[_0x7d6c[294]]=_0x61cfx7
}
(Elements=Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx10,_0x61cfx7=(_0x61cfx10=Utils[_0x7d6c[183]],__extends(_0x61cfx9,_0x61cfx10),_0x61cfx9[_0x7d6c[129]][_0x7d6c[72]]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfx10[_0x7d6c[129]][_0x7d6c[166]][_0x7d6c[291]](this,_0x61cfx2),this[_0x7d6c[54]]-=_0x61cfx7*_0x61cfx2,this[_0x7d6c[55]]+=_0x61cfx9*_0x61cfx2,(this[_0x7d6c[55]]>2*this[_0x7d6c[144]]||this[_0x7d6c[54]]<0-this[_0x7d6c[45]]&&this[_0x7d6c[64]]||this[_0x7d6c[54]]>this[_0x7d6c[136]]+this[_0x7d6c[45]]&&!this[_0x7d6c[64]])&&(this[_0x7d6c[73]]=!0)
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[79]]=function()
{
this[_0x7d6c[78]]=!1,this[_0x7d6c[172]](_0x7d6c[177],_0x7d6c[295])
}
,_0x61cfx9[_0x7d6c[129]][_0x7d6c[296]]=function()
{
this[_0x7d6c[73]]=!0
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf)
{
_0x61cfx10[_0x7d6c[291]](this,_0x61cfx2,15,25,_0x7d6c[297]+_0x61cfx9),this[_0x7d6c[78]]=!0,this[_0x7d6c[64]]=_0x61cfx7,this[_0x7d6c[136]]=_0x61cfxa,this[_0x7d6c[144]]=_0x61cfxf,this[_0x7d6c[181]]=-10,this[_0x7d6c[45]]=100,this[_0x7d6c[180]]=this[_0x7d6c[296]]
}
_0x61cfx2[_0x7d6c[298]]=_0x61cfx7
}
(Elements=Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfxf,_0x61cfx7=(_0x61cfxf=Utils[_0x7d6c[183]],__extends(_0x61cfx9,_0x61cfxf),_0x61cfx9[_0x7d6c[129]][_0x7d6c[72]]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfxf[_0x7d6c[129]][_0x7d6c[166]][_0x7d6c[291]](this,_0x61cfx2),this[_0x7d6c[54]]-=2*_0x61cfx7*_0x61cfx2,this[_0x7d6c[55]]+=(2*_0x61cfx9+100)*_0x61cfx2,(this[_0x7d6c[55]]>2*this[_0x7d6c[144]]||this[_0x7d6c[54]]<0-this[_0x7d6c[45]]&&this[_0x7d6c[64]]||this[_0x7d6c[54]]>this[_0x7d6c[136]]+this[_0x7d6c[45]]&&!this[_0x7d6c[64]])&&(this[_0x7d6c[73]]=!0)
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
_0x61cfxf[_0x7d6c[291]](this,_0x61cfx2,20,0,_0x7d6c[286]),this[_0x7d6c[179]]=_0x61cfx2,this[_0x7d6c[64]]=_0x61cfx7,this[_0x7d6c[136]]=_0x61cfx9,this[_0x7d6c[144]]=_0x61cfxa,this[_0x7d6c[45]]=100,this[_0x7d6c[167]]=Math[_0x7d6c[48]](38*Math[_0x7d6c[51]]())
}
_0x61cfx2[_0x7d6c[299]]=_0x61cfx7
}
(Elements=Elements||
{
}
);
var previousTime,requestAnimFrame=window[_0x7d6c[300]]||window[_0x7d6c[301]]||window[_0x7d6c[302]]||window[_0x7d6c[303]]||window[_0x7d6c[304]]||function(_0x61cfx2)
{
window[_0x7d6c[305]](_0x61cfx2,1e3/60,(new Date)[_0x7d6c[15]]())
}
,canvas=document[_0x7d6c[307]](_0x7d6c[306]),ctx=canvas[_0x7d6c[309]](_0x7d6c[308]);
canvas[_0x7d6c[5]]=480,canvas[_0x7d6c[13]]=320;
var canvasX,canvasY,canvasScaleX,canvasScaleY,sound,music,splash,screens,assetLib,preAssetLib,div=document[_0x7d6c[307]](_0x7d6c[310]),allowSound=!1,muted=!1,splashTimer=0,rotatePause=!1,manualPause=!1,isMobile=!1,gameState=_0x7d6c[118],aLangs=new Array(_0x7d6c[145]),curLang=_0x7d6c[146],isBugBrowser=!1,deviceAgent=navigator[_0x7d6c[312]][_0x7d6c[311]]();
(deviceAgent[_0x7d6c[313]](/(iphone|ipod|ipad)/)||deviceAgent[_0x7d6c[313]](/(android)/)||deviceAgent[_0x7d6c[313]](/(iemobile)/)||deviceAgent[_0x7d6c[313]](/iphone/i)||deviceAgent[_0x7d6c[313]](/ipad/i)||deviceAgent[_0x7d6c[313]](/ipod/i)||deviceAgent[_0x7d6c[313]](/blackberry/i)||deviceAgent[_0x7d6c[313]](/bada/i))&&(isMobile=!0,deviceAgent[_0x7d6c[313]](/(android)/)&&!/Chrome/[_0x7d6c[314]](navigator[_0x7d6c[312]])&&(isBugBrowser=!0));
var userInput=new Utils.UserInput(canvas,isBugBrowser);
resizeCanvas(),window[_0x7d6c[315]]=function()
{
setTimeout(function()
{
resizeCanvas()
}
,1)
}
,document[_0x7d6c[213]](_0x7d6c[316],function()
{
document[_0x7d6c[317]]?Howler[_0x7d6c[3]]():muted||Howler[_0x7d6c[125]]()
}
,!1),window[_0x7d6c[213]](_0x7d6c[318],function()
{
setTimeout(function()
{
resizeCanvas()
}
,0),window[_0x7d6c[213]](_0x7d6c[319],function()
{
resizeCanvas()
}
,!1)
}
),void(0)===window[_0x7d6c[320]]&&void(0)===window[_0x7d6c[321]]&&-1!=navigator[_0x7d6c[312]][_0x7d6c[323]](_0x7d6c[322])||(allowSound=!0,sound=new Howl(
{
urls:[_0x7d6c[324],_0x7d6c[325]],sprite:
{
click:[0,150],bounce:[250,1e3],home:[1500,1e3],jump:[3e3,300],land:[3500,300],nut:[4e3,500],fall:[5e3,1200]
}
}
),music=new Howl(
{
urls:[_0x7d6c[326],_0x7d6c[327]],volume:0.25,loop:!0
}
));
var panel,hud,background,acornScore,aBranches,aAcorns,aLeaves,targSpeedX,squirrel,branchId,stumpDist,flipPosX,lastBranchY,trackX,trackY,level,branchFloors,leafDropInc,totalScore=0,levelScore=0,speedX=0,speedY=0,aBranchWidthGaps=new Array(100,150,200,250),aBranchHeightGaps=new Array(0,50,-50),aAcornHeights=new Array(0,-60),nextBranchWidthGap=aBranchWidthGaps[0],isRight=!0;
loadPreAssets()
function initSplash()
{
gameState="start",level=1,userInput["removeHitArea"]("moreGames"),userInput["addHitArea"]("mute",butEventHandler,null,
{
type:"rect",aRect:[437,0,canvas["width"],40]
}
,!0);
var _0x61cfx2=new Array(canvas["width"]/ 2,265);
(screens= new Elements.Screens(
{
startImageData:assetLib["getData"]("background1")
}
,
{
play:
{
imageData:assetLib["getData"]("playBut"),pos:_0x61cfx2
}
}
,assetLib["getData"]("title1"),assetLib["getData"]("title2"),canvas["width"],canvas["height"]))["setRenderFunc"]("start"),userInput["addHitArea"]("startGame",butEventHandler,null,
{
type:"rect",aRect:[90,225,245,290]
}
,!0),userInput["addHitArea"]("moreGames",butEventHandler,null,
{
type:"rect",aRect:[245,225,385,290]
}
),userInput["addHitArea"]("moreGames",butEventHandler,null,
{
type:"rect",aRect:[170,0,320,80]
}
),previousTime= ( new Date)["getTime"](),updateStartScreenEvent()
}
function initStartScreen()
{
}
function initPreGame()
{
gameState= "tutorial",background= new Elements.Background(assetLib["getData"]("background1"),canvas["width"],canvas["height"]),userInput["addHitArea"]("continue",butEventHandler,null,
{
type:"rect",aRect:[160,240,320,310]
}
),userInput["addHitArea"]("moreGames",butEventHandler,null,
{
type:"rect",aRect:[0,0,82,55]
}
),background["render"](ctx),(panel= new Elements.Panel(assetLib["getData"]("panels"),assetLib["getData"]("numbers"),canvas["width"],canvas["height"]))["renderPanel"](ctx,null,"tutorial"),renderMuteBut()
}
function initGame()
{
gameState= "game",allowSound&& music["volume"](0.5),levelScore= 0,Math["seedrandom"](level+ 10),squirrel= new Elements.Squirrel(assetLib["getData"]("squirrel"),canvas["width"],canvas["height"],squirrelCallback),background= new Elements.Background(assetLib["getData"]("background"+ ((level- 1)% 3+ 1)),canvas["width"],canvas["height"]),userInput["addHitArea"]("pause",butEventHandler,null,
{
type:"rect",aRect:[400,0,437,40]
}
,!0),userInput["addHitArea"]("jump",butEventHandler,
{
allowUpState:!0
}
,
{
type:"rect",aRect:[0,40,canvas["width"],canvas["height"]]
}
,!0),userInput["addHitArea"]("moreGames",butEventHandler,null,
{
type:"rect",aRect:[0,0,82,55]
}
),hud= new Elements.Hud(assetLib["getData"]("hud"),assetLib["getData"]("numbers"),level,canvas["width"],canvas["height"],levelScore),targSpeedX= 180* Math["min"](1+ level/10,2),flipPosX=100,isRight=!(speedY=speedX=0),nextBranchWidthGap="start",branchId=0,aBranches=new Array,aAcorns=new Array,aLeaves=new Array,addStartBranch(),stumpDist=5,leafDropInc=acornScore=branchFloors=0,previousTime=(new Date)["getTime"](),updateGameEvent()
}
function butEventHandler(_0x61cfx2,_0x61cfx7)
{
switch(_0x61cfx2)
{
case "langSelect":curLang=_0x61cfx7["lang"],ctx["clearRect"](0,0,canvas["width"],canvas["height"]),userInput["removeHitArea"]("langSelect"),initLoadAssets();
break;
case "startGame":playSound("click"),userInput["removeHitArea"]("startGame"),userInput["removeHitArea"]("moreGames"),(1==level?initPreGame:initGame)();
break;
case "continue":playSound("click"),userInput["removeHitArea"]("continue"),initGame();
break;
case "jump":"down"==_0x61cfx7["hitState"]?squirrel["jump"]():squirrel["jumpReleased"]();
break;
case "moreGames":break;
case "mute":playSound("click"),toggleMute();
break;
case "pause":;
case "resumeFromPause":playSound("click"),toggleManualPause();
break;
case "nextLevel":playSound("click"),userInput["removeHitArea"]("nextLevel"),level++,initGame();
break;
case "retryLevel":playSound("click"),userInput["removeHitArea"]("pause"),userInput["removeHitArea"]("retryLevel"),userInput["removeHitArea"]("quitFromEnd"),level=totalScore=0,initSplash();
break;
case "quitFromEnd":envoiscore(levelScore+totalScore,"EastRA",1,1);
break;
case "quitFromPause":playSound("click"),toggleManualPause(),userInput["removeHitArea"]("pause"),userInput["removeHitArea"]("jump"),userInput["removeHitArea"]("quitFromPause"),userInput["removeHitArea"]("resumeFromPause"),userInput["removeHitArea"]("moreGames"),totalScore=levelScore=0,initStartScreen()
}
}
function renderMuteBut()
{
if(allowSound)
{
var _0x61cfx2=assetLib["getData"]("muteBut"),_0x61cfx7=0;
muted&&(_0x61cfx7=1);
var _0x61cfx9=_0x61cfx7*_0x61cfx2["oData"]["spriteWidth"]%_0x61cfx2["img"]["width"],_0x61cfxa=Math["floor"](_0x61cfx7/(_0x61cfx2["img"]["width"]/ _0x61cfx2["oData"]["spriteWidth"]))* _0x61cfx2["oData"]["spriteHeight"];
ctx["drawImage"](_0x61cfx2["img"],_0x61cfx9,_0x61cfxa,_0x61cfx2["oData"]["spriteWidth"],_0x61cfx2["oData"]["spriteHeight"],438,2,_0x61cfx2["oData"]["spriteWidth"],_0x61cfx2["oData"]["spriteHeight"])
}
}
function addStartBranch()
{
for(var _0x61cfx2,_0x61cfx7=canvas["height"]/2,_0x61cfx9=0;
_0x61cfx9<6;
_0x61cfx9++)
{
_0x61cfx2=0==_0x61cfx9?0:5==_0x61cfx9?5:Math["ceil"](4*Math["random"]());
var _0x61cfxa=new Elements.Branch(assetLib["getData"]("branch"),branchId++,_0x61cfx2,"branch",isRight,canvas["width"],canvas["height"]);
_0x61cfxa["x"]=_0x61cfx9*_0x61cfxa["spriteWidth"],_0x61cfxa["y"]=_0x61cfx7,aBranches["push"](_0x61cfxa)
}
}
function addHome()
{
var _0x61cfx2;
isRight?((_0x61cfx2=new Elements.Branch(assetLib["getData"]("branch"),branchId++,9,"home",!isRight,canvas["width"],canvas["height"]))["y"]=aBranches[aBranches["length"]-1]["y"]-50,aBranches["push"](_0x61cfx2),_0x61cfx2["x"]=canvas["width"]+50):((_0x61cfx2=new Elements.Branch(assetLib["getData"]("branch"),branchId++,10,"home",!isRight,canvas["width"],canvas["height"]))["y"]=aBranches[aBranches["length"]-1]["y"]-50,aBranches["push"](_0x61cfx2),_0x61cfx2["x"]=-50)
}
function addStump()
{
var _0x61cfx2,_0x61cfx7;
if(stumpDist=5,++branchFloors>=level)
{
addHome()
}
else
{
if(isRight)
{
(_0x61cfx7=new Elements.Branch(assetLib["getData"]("branch"),branchId++,7,"stump",!isRight,canvas["width"],canvas["height"]))["y"]=aBranches[aBranches["length"]-1]["y"]-50,aBranches["push"](_0x61cfx7),_0x61cfx7["x"]=canvas["width"]+50;
for(var _0x61cfx9=0;
_0x61cfx9<4;
_0x61cfx9++)
{
_0x61cfx2=0==_0x61cfx9?5:3==_0x61cfx9?0:Math["ceil"](4*Math["random"]()),(_0x61cfxa=new Elements.Branch(assetLib["getData"]("branch"),branchId++,_0x61cfx2,"branch",!isRight,canvas["width"],canvas["height"]))["x"]=_0x61cfx7["x"]-_0x61cfxa["spriteWidth"]-_0x61cfx9*_0x61cfxa["spriteWidth"],_0x61cfxa["y"]=_0x61cfx7["y"]-300,aBranches["push"](_0x61cfxa)
}
}
else
{
(_0x61cfx7=new Elements.Branch(assetLib["getData"]("branch"),branchId++,8,"stump",!isRight,canvas["width"],canvas["height"]))["y"]=aBranches[aBranches["length"]-1]["y"]-50,aBranches["push"](_0x61cfx7),_0x61cfx7["x"]=-50;
for(_0x61cfx9=0;
_0x61cfx9<4;
_0x61cfx9++)
{
var _0x61cfxa;
_0x61cfx2=0==_0x61cfx9?0:3==_0x61cfx9?5:Math["ceil"](4*Math["random"]()),(_0x61cfxa=new Elements.Branch(assetLib["getData"]("branch"),branchId++,_0x61cfx2,"branch",!isRight,canvas["width"],canvas["height"]))["x"]=_0x61cfx7["x"]+_0x61cfxa["spriteWidth"]+_0x61cfx9*_0x61cfxa["spriteWidth"],_0x61cfxa["y"]=_0x61cfx7["y"]-300,aBranches["push"](_0x61cfxa)
}
}
}
}
function addBranch()
{
updateScore(100);
for(var _0x61cfx2,_0x61cfx7=Math["ceil"](4*Math["random"]()),_0x61cfx9="branch",_0x61cfxa=aBranches[aBranches["length"]-1]["y"]+aBranchHeightGaps[Math["floor"](Math["random"]()*aBranchHeightGaps["length"])];
_0x61cfxa==aBranches[aBranches["length"]-1]["y"];
)
{
_0x61cfxa=aBranches[aBranches["length"]-1]["y"]+aBranchHeightGaps[Math["floor"](Math["random"]()*aBranchHeightGaps["length"])]
};
for(var _0x61cfxf=aBranches[aBranches["length"]-1]["x"],_0x61cfx10=0;
_0x61cfx10<_0x61cfx7;
_0x61cfx10++)
{
var _0x61cfx11;
if(isRight)
{
_0x61cfx2=1==_0x61cfx7?6:0==_0x61cfx10?0:_0x61cfx10==_0x61cfx7-1?5:Math["ceil"](4*Math["random"]()),(_0x61cfx11=new Elements.Branch(assetLib["getData"]("branch"),branchId++,_0x61cfx2,_0x61cfx9,isRight,canvas["width"],canvas["height"]))["x"]=_0x61cfxf+nextBranchWidthGap+_0x61cfx10*_0x61cfx11["spriteWidth"]
}
else
{
_0x61cfx2=1==_0x61cfx7?6:0==_0x61cfx10?5:_0x61cfx10==_0x61cfx7-1?0:Math["ceil"](4*Math["random"]()),(_0x61cfx11=new Elements.Branch(assetLib["getData"]("branch"),branchId++,_0x61cfx2,_0x61cfx9,isRight,canvas["width"],canvas["height"]))["x"]=_0x61cfxf-nextBranchWidthGap-_0x61cfx10*_0x61cfx11["spriteWidth"]
};
_0x61cfx11["y"]=lastBranchY=_0x61cfxa,aBranches["push"](_0x61cfx11),0.5<Math["random"]()&&addAcorn(_0x61cfx11["x"],_0x61cfx11["y"])
}
}
function addAcorn(_0x61cfx2,_0x61cfx7)
{
var _0x61cfx9=new Elements.Acorn(assetLib["getData"]("acorn"),isRight,Math["floor"](4*Math["random"]()),canvas["width"],canvas["height"]);
_0x61cfx9["x"]=_0x61cfx2,_0x61cfx9["y"]=_0x61cfx7+aAcornHeights[Math["floor"](Math["random"]()*aAcornHeights["length"])],aAcorns["push"](_0x61cfx9)
}
function addLeaf()
{
var _0x61cfx2=new Elements.Leaf(assetLib["getData"]("leaf"),isRight,canvas["width"],canvas["height"]);
_0x61cfx2["x"]=isRight?canvas["width"]+50+200*Math["random"]():-50-200*Math["random"](),_0x61cfx2["y"]=500*Math["random"]()-200,aLeaves["push"](_0x61cfx2)
}
function updateScore(_0x61cfx2)
{
levelScore+=_0x61cfx2,hud["updateScore"](levelScore)
}
function updateAcornScore(_0x61cfx2)
{
acornScore+=_0x61cfx2,hud["updateAcornScore"](acornScore)
}
function squirrelCallback(_0x61cfx2,_0x61cfx7)
{
switch(_0x61cfx2)
{
case "flip":isRight=_0x61cfx7["isRight"],flipPosX=isRight?(targSpeedX=180*Math["min"](1+level/10,2),100):(targSpeedX=-180*Math["min"](1+level/10,2),canvas["width"]-100),nextBranchWidthGap=aBranchWidthGaps[Math["floor"](Math["random"]()*Math["min"](level,aBranchWidthGaps["length"]))];
break;
case "endGame":initGameEndFail();
break;
case "home":initLevelComplete()
}
}
function isWideForBranch()
{
return isRight?aBranches[aBranches["length"]-1]["x"]<canvas["width"]-nextBranchWidthGap+50:aBranches[aBranches["length"]-1]["x"]>nextBranchWidthGap-50
}
function initLevelComplete()
{
gameState="levelComplete",allowSound&&music["volume"](0.25),playSound("home"),userInput["removeHitArea"]("jump"),userInput["removeHitArea"]("moreGames"),userInput["removeHitArea"]("pause"),userInput["addHitArea"]("nextLevel",butEventHandler,null,
{
type:"rect",aRect:[160,240,320,310]
}
),userInput["addHitArea"]("moreGames",butEventHandler,null,
{
type:"rect",aRect:[0,0,82,55]
}
),userInput["addHitArea"]("moreGames",butEventHandler,null,
{
type:"rect",aRect:[0,255,120,canvas["height"]]
}
),(panel=new Elements.Panel(assetLib["getData"]("panels"),assetLib["getData"]("numbers"),canvas["width"],canvas["height"]))["startTween"](),totalScore+=100*acornScore+levelScore,panel["oScoreData"]=
{
acornScore:100*acornScore,levelScore:levelScore,totalScore:totalScore
}
,previousTime=(new Date)["getTime"](),updateLevelComplete()
}
function initGameEndFail()
{
gameState="gameEndFail",allowSound&&music["volume"](0.25),playSound("fall"),userInput["removeHitArea"]("jump"),userInput["removeHitArea"]("moreGames"),userInput["removeHitArea"]("pause"),userInput["addHitArea"]("retryLevel",butEventHandler,null,
{
type:"rect",aRect:[240,240,410,310]
}
),userInput["addHitArea"]("quitFromEnd",butEventHandler,null,
{
type:"rect",aRect:[70,240,240,310]
}
),userInput["addHitArea"]("moreGames",butEventHandler,null,
{
type:"rect",aRect:[0,0,130,100]
}
),background["render"](ctx),(panel=new Elements.Panel(assetLib["getData"]("panels"),assetLib["getData"]("numbers"),canvas["width"],canvas["height"]))["oScoreData"]=
{
totalScore:levelScore+totalScore
}
,panel["startTween"](),previousTime=(new Date)["getTime"](),updateGameEndFail()
}
function updateLevelComplete()
{
if(!rotatePause&&"levelComplete"==gameState)
{
var _0x61cfx2=getDelta();
background["render"](ctx),panel["renderPanel"](ctx,_0x61cfx2,"levelComplete"),renderMuteBut(),requestAnimFrame(updateLevelComplete)
}
}
function updateGameEndFail()
{
if(!rotatePause&&"gameEndFail"==gameState)
{
var _0x61cfx2=getDelta();
background["render"](ctx),panel["renderPanel"](ctx,_0x61cfx2,"gameEndFail"),renderMuteBut(),requestAnimFrame(updateGameEndFail)
}
}
function updateGameEvent()
{
if(!manualPause&&!rotatePause&&"game"==gameState)
{
var _0x61cfx2=getDelta();
speedX+=5*(targSpeedX-speedX)*_0x61cfx2,trackY=3*(canvas["height"]/ 2- squirrel["y"]- 25),trackX= flipPosX- squirrel["x"],background["update"](_0x61cfx2,speedX- trackX,speedY+ trackY),background["render"](ctx),0.7< (leafDropInc+= _0x61cfx2)&& (addLeaf(),leafDropInc= 0);
for(var _0x61cfx7,_0x61cfx9=!0,_0x61cfxa=0;
_0x61cfxa< aBranches["length"];
_0x61cfxa++)
{
aBranches[_0x61cfxa]["update"](_0x61cfx2,speedX- trackX,speedY+ trackY),aBranches[_0x61cfxa]["render"](ctx),aBranches[_0x61cfxa]["x"]> squirrel["x"]- 60&& aBranches[_0x61cfxa]["x"]< squirrel["x"]+ 60&& (null== _0x61cfx7&& (_0x61cfx7= aBranches[_0x61cfxa]),_0x61cfx7["y"]> squirrel["y"]&& aBranches[_0x61cfxa]["y"]> squirrel["y"]&& aBranches[_0x61cfxa]["y"]- squirrel["y"]< _0x61cfx7["y"]- squirrel["y"]&& (_0x61cfx7= aBranches[_0x61cfxa]),_0x61cfx9= !1),aBranches[_0x61cfxa]["removeMe"]&& (aBranches["splice"](_0x61cfxa,1),--_0x61cfxa)
};
_0x61cfx9?squirrel["setNearestBranch"](null,null,null):squirrel["setNearestBranch"](_0x61cfx7["id"],_0x61cfx7["type"],_0x61cfx7["y"]);
for(_0x61cfxa= 0;
_0x61cfxa< aAcorns["length"];
_0x61cfxa++)
{
aAcorns[_0x61cfxa]["update"](_0x61cfx2,speedX- trackX,speedY+ trackY),renderSprite(aAcorns[_0x61cfxa]),aAcorns[_0x61cfxa]["canHit"]&& checkSpriteCollision(squirrel,aAcorns[_0x61cfxa])&& (updateAcornScore(1),aAcorns[_0x61cfxa]["hit"](),playSound("nut")),aAcorns[_0x61cfxa]["removeMe"]&& (aAcorns["splice"](_0x61cfxa,1),--_0x61cfxa)
};
for(_0x61cfxa= 0;
_0x61cfxa< aLeaves["length"];
_0x61cfxa++)
{
aLeaves[_0x61cfxa]["update"](_0x61cfx2,speedX- trackX,speedY+ trackY),renderSprite(aLeaves[_0x61cfxa]),aLeaves[_0x61cfxa]["removeMe"]&& (aLeaves["splice"](_0x61cfxa,1),--_0x61cfxa)
};
hud["render"](ctx),squirrel["update"](_0x61cfx2,trackX,trackY),renderSprite(squirrel),(aBranches["length"]< 1|| isWideForBranch())&& (nextBranchWidthGap= 0< --stumpDist?(addBranch(),aBranchWidthGaps[Math["floor"](Math["random"]()* Math["min"](level,aBranchWidthGaps["length"]))]):0== stumpDist?"removeHitArea":(addStump(),1e4)),renderMuteBut(),requestAnimFrame(updateGameEvent)
}
}
function updateSplashScreenEvent()
{
if(!rotatePause&& "splash"== gameState)
{
var _0x61cfx2=getDelta();
if(2.5< (splashTimer+= _0x61cfx2))
{
return allowSound&& !muted&& music["play"](),void(initStartScreen())
};
splash["render"](ctx,_0x61cfx2),requestAnimFrame(updateSplashScreenEvent)
}
}
function updateStartScreenEvent()
{
if(!rotatePause&& "start"== gameState)
{
var _0x61cfx2=getDelta();
screens["render"](ctx,_0x61cfx2),renderMuteBut(),requestAnimFrame(updateStartScreenEvent)
}
}
function getDelta()
{
var _0x61cfx2=( new Date)["getTime"](),_0x61cfx7=(_0x61cfx2- previousTime)/1e3;
return previousTime=_0x61cfx2,0.5<_0x61cfx7&&(_0x61cfx7=0),_0x61cfx7
}
function checkSpriteCollision(_0x61cfx2,_0x61cfx7)
{
return(_0x61cfx2["x"]-_0x61cfx7["x"])*(_0x61cfx2["x"]-_0x61cfx7["x"])+(_0x61cfx2["y"]-_0x61cfx7["y"])*(_0x61cfx2["y"]-_0x61cfx7["y"])<(_0x61cfx2["radius"]+_0x61cfx7["radius"])*(_0x61cfx2["radius"]+_0x61cfx7["radius"])
}
function renderSprite(_0x61cfx2)
{
ctx["save"](),ctx["translate"](_0x61cfx2["x"],_0x61cfx2["y"]),ctx["rotate"](_0x61cfx2["rotation"]),ctx["scale"](_0x61cfx2["scaleX"],_0x61cfx2["scaleY"]),_0x61cfx2["render"](ctx),ctx["restore"]()
}
function loadPreAssets()
{
1<aLangs["length"]?(preAssetLib=new Utils.AssetLoader(curLang,[
{
id:"langSelect",file:"images/langSelect.jpg"
}
,
{
id:"preloadImage",file:"images/preloadImage.jpg"
}
],ctx,canvas["width"],canvas["height"],!1))["onReady"](initLangSelect):(curLang="start",(preAssetLib=new Utils.AssetLoader(curLang,[
{
id:"preloadImage",file:"images/preloadImage.jpg"
}
],ctx,canvas["width"],canvas["height"],!1))["onReady"](initLoadAssets))
}
function initLangSelect()
{
var _0x61cfx2=preAssetLib["getData"]("langSelect");
ctx["drawImage"](_0x61cfx2["img"],canvas["width"]/ 2- _0x61cfx2["img"]["width"]/2,canvas["height"]/ 2- _0x61cfx2["img"]["height"]/2);
for(var _0x61cfx7=140,_0x61cfx9=0;
_0x61cfx9<aLangs["length"];
_0x61cfx9++)
{
var _0x61cfxa=canvas["width"]/ 2- _0x61cfx7* aLangs["length"]/2+_0x61cfx9*_0x61cfx7,_0x61cfxf=canvas["height"]/ 2- 70;
userInput["addHitArea"]("langSelect",butEventHandler,
{
lang:aLangs[_0x61cfx9]
}
,
{
type:"rect",aRect:[_0x61cfxa,_0x61cfxf,_0x61cfxa+ _0x61cfx7,140+ _0x61cfxf]
}
)
}
}
function initLoadAssets()
{
var _0x61cfx2=preAssetLib["getData"]("preloadImage");
ctx["drawImage"](_0x61cfx2["img"],canvas["width"]/2-_0x61cfx2["img"]["width"]/ 2,canvas["height"]/2-_0x61cfx2["img"]["height"]-10),loadAssets()
}
function loadAssets()
{
(assetLib=new Utils.AssetLoader(curLang,[
{
id:"background1",file:"images/background1.jpg"
}
,
{
id:"background2",file:"images/background2.jpg"
}
,
{
id:"background3",file:"images/background3.jpg"
}
,
{
id:"title1",file:"images/"+curLang+"/title1.png"
}
,
{
id:"title2",file:"images/"+curLang+"/title2.png"
}
,
{
id:"rotateDeviceMessage",file:"images/rotateDeviceMessage.jpg"
}
,
{
id:"splash",file:"images/splashScreen.jpg"
}
,
{
id:"hud",file:"images/"+curLang+"/hud.png"
}
,
{
id:"playBut",file:"images/playBut.png"
}
,
{
id:"panels",file:"images/"+curLang+"/panels_480x320.png",oData:
{
columns:2,spriteWidth:480,spriteHeight:320
}
}
,
{
id:"numbers",file:"images/numbers_17x30.png",oData:
{
columns:5,spriteWidth:17,spriteHeight:30
}
}
,
{
id:"leaf",file:"images/leaf_68x38.png",oData:
{
oAnims:
{
falling:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38]
}
,columns:15,spriteWidth:68,spriteHeight:38
}
}
,
{
id:"squirrel",file:"images/squirrel_105x106.png",oData:
{
oAnims:
{
running:[0,1,2,3,4,5,6,7,8,9,10,11],jumping:[12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27],falling:[28],hide:[29]
}
,columns:9,spriteWidth:105,spriteHeight:106
}
}
,
{
id:"acorn",file:"images/acorn_105x106.png",oData:
{
oAnims:
{
spinning0:[0,1,2,3,4,5,6,7,8,9],spinning1:[10,11,12,13,14,15,16,17,18,19],spinning2:[20,21,22,23,24,25,26,27,28,29],spinning3:[30,31,32,33,34,35,36,37,38,39],bursting:[40,41,42,43,44,45,46,47,48,49,50]
}
,columns:9,spriteWidth:105,spriteHeight:106
}
}
,
{
id:"branch",file:"images/"+curLang+"/branches_110x174.png",oData:
{
columns:9,spriteWidth:110,spriteHeight:174
}
}
,
{
id:"muteBut",file:"images/mute_39x39.png",oData:
{
columns:2,spriteWidth:39,spriteHeight:39
}
}
],ctx,canvas["width"],canvas["height"]))["onReady"](initSplash)
}
function resizeCanvas()
{
var _0x61cfx2=window["innerWidth"],_0x61cfx7=window["innerHeight"];
480<_0x61cfx2&&(--_0x61cfx2,--_0x61cfx7),window["innerWidth"]<window["innerHeight"]&&isMobile?("loading"!=gameState&&rotatePauseOn(),canvas["style"]["width"]=_0x61cfx2+"px",canvas["style"]["height"]=_0x61cfx2/canvas["width"]*canvas["height"]+"px",canvasX=0,canvasY=(_0x61cfx7-_0x61cfx2/canvas["width"]*canvas["height"])/2,canvasScaleX=canvasScaleY=canvas["width"]/ _0x61cfx2,div["style"]["marginTop"]= canvasY+ "px",div["style"]["marginLeft"]= canvasX+ "px"):isMobile?(rotatePause&& rotatePauseOff(),canvasX= canvasY= 0,canvasScaleX= canvas["width"]/_0x61cfx2,canvasScaleY=canvas["height"]/ _0x61cfx7,canvas["style"]["width"]= _0x61cfx2+ "px",canvas["style"]["height"]= _0x61cfx7+ "px",div["style"]["marginTop"]= "0px",div["style"]["marginLeft"]= "0px"):(rotatePause&& rotatePauseOff(),canvasScaleX= canvasScaleY= _0x61cfx2/canvas["width"]<_0x61cfx7/canvas["height"]?(canvas["style"]["width"]=_0x61cfx2+"px",canvas["style"]["height"]=_0x61cfx2/canvas["width"]*canvas["height"]+"px",canvasX=0,canvasY=(_0x61cfx7-_0x61cfx2/canvas["width"]*canvas["height"])/2,canvas["width"]/ _0x61cfx2):(canvas["style"]["width"]= _0x61cfx7/canvas["height"]*canvas["width"]+"px",canvas["style"]["height"]=_0x61cfx7+"px",canvasX=(_0x61cfx2-_0x61cfx7/canvas["height"]*canvas["width"])/2,canvasY=0,canvas["height"]/ _0x61cfx7),div["style"]["marginTop"]= canvasY+ "px",div["style"]["marginLeft"]= canvasX+ "px"),userInput["setCanvas"](canvasX,canvasY,canvasScaleX,canvasScaleY)
}
function playSound(_0x61cfx2)
{
allowSound&& sound["play"](_0x61cfx2)
}
function toggleMute()
{
muted= !muted,allowSound&& (muted?Howler["mute"]():Howler["unmute"]()),renderMuteBut()
}
function toggleManualPause()
{
manualPause?(manualPause= !1,pauseCoreOff()):(manualPause= !0,pauseCoreOn(),userInput["addHitArea"]("resumeFromPause",butEventHandler,null,
{
type:"rect",aRect:[250,185,410,250]
}
),userInput["addHitArea"]("quitFromPause",butEventHandler,null,
{
type:"rect",aRect:[60,185,225,250]
}
),(panel= new Elements.Panel(assetLib["getData"]("panels"),assetLib["getData"]("numbers"),canvas["width"],canvas["height"]))["renderPanel"](ctx,null,"pause"),userInput["addHitArea"]("pause",butEventHandler,null,
{
type:"rect",aRect:[400,0,437,40]
}
,!0))
}
function rotatePauseOn()
{
userInput["pauseIsOn"]= !0,rotatePause= !0,ctx["drawImage"](assetLib["getImg"]("rotateDeviceMessage"),0,0),pauseCoreOn()
}
function rotatePauseOff()
{
userInput["pauseIsOn"]= !1,rotatePause= !1,pauseCoreOff()
}
function pauseCoreOn()
{
switch(allowSound&& Howler["mute"](),gameState)
{
case "game":userInput["removeHitArea"]("jump")
}
}
function pauseCoreOff()
{
switch(allowSound&& (muted|| Howler["unmute"]()),previousTime= ( new Date)["getTime"](),gameState)
{
case "splash":updateSplashScreenEvent();
break;
case "start":initStartScreen();
break;
case "tutorial":initPreGame();
break;
case "game":manualPause= !1,userInput["removeHitArea"]("quitFromPause"),userInput["removeHitArea"]("resumeFromPause"),userInput["addHitArea"]("jump",butEventHandler,
{
allowUpState:!0
}
,
{
type:"rect",aRect:[0,40,canvas["width"],canvas["height"]]
}
,!0),updateGameEvent();
break;
case "levelComplete":initLevelComplete();
break;
case "gameEndFail":initGameEndFail()
}
}
var Utils;
!function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9["prototype"]["loadImage"]= function(_0x61cfx2)
{
var _0x61cfx7=this,_0x61cfx9= new Image;
_0x61cfx9["onload"]= function()
{
_0x61cfx7["oAssetData"][_0x61cfx2["id"]]=
{
}
,_0x61cfx7["oAssetData"][_0x61cfx2["id"]]["img"]= _0x61cfx9,null!= _0x61cfx2["oData"]&& (_0x61cfx7["oAssetData"][_0x61cfx2["id"]]["oData"]= _0x61cfx2["oData"]),++_0x61cfx7["assetsLoaded"],_0x61cfx7["showBar"]&& ctx["fillRect"](_0x61cfx7["topLeftX"]+ 2,_0x61cfx7["topLeftY"]+ 2,(_0x61cfx7["canvasWidth"]/2-4)/_0x61cfx7["totalAssets"]*_0x61cfx7["assetsLoaded"],16),_0x61cfx7["checkLoadComplete"]()
}
,_0x61cfx9["src"]=_0x61cfx2["file"]
}
,_0x61cfx9["prototype"]["checkLoadComplete"]=function()
{
this["assetsLoaded"]==this["totalAssets"]&&this["loadedCallback"]()
}
,_0x61cfx9["prototype"]["onReady"]=function(_0x61cfx2)
{
this["loadedCallback"]=_0x61cfx2
}
,_0x61cfx9["prototype"]["getImg"]=function(_0x61cfx2)
{
return this["oAssetData"][_0x61cfx2]["img"]
}
,_0x61cfx9["prototype"]["getData"]=function(_0x61cfx2)
{
return this["oAssetData"][_0x61cfx2]
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf,_0x61cfx10)
{
var _0x61cfx11;
void(0)===_0x61cfx10&&(_0x61cfx10=!0),this["oAssetData"]=
{
}
,this["assetsLoaded"]=0,this["totalAssets"]=_0x61cfx7["length"],this["ctx"]=_0x61cfx9,this["canvasWidth"]=_0x61cfxa,this["canvasHeight"]=_0x61cfxf,this["showBar"]=_0x61cfx10,this["topLeftX"]=this["canvasWidth"]/ 2- _0x61cfxa/4,this["topLeftY"]=this["canvasHeight"]/ 2,this["showBar"]&& ("EN"== _0x61cfx2|| ""== _0x61cfx2?_0x61cfx11= "Loading...":"ES"== _0x61cfx2?_0x61cfx11= "Cargando...":"FR"== _0x61cfx2&& (_0x61cfx11= "Chargement..."),ctx["fillStyle"]= "#ffffff",ctx["textAlign"]= "center",ctx["font"]= "14px Helvetica",ctx["fillText"](_0x61cfx11,this["canvasWidth"]/2,this["topLeftY"]+35),ctx["strokeStyle"]="#ffffff",ctx["lineWidth"]=2,ctx["fillStyle"]="#d97937",ctx["moveTo"](this["topLeftX"],this["topLeftY"]),ctx["lineTo"](this["topLeftX"]+_0x61cfxa/2,this["topLeftY"]+0),ctx["lineTo"](this["topLeftX"]+_0x61cfxa/2,this["topLeftY"]+20),ctx["lineTo"](this["topLeftX"]+0,this["topLeftY"]+20),ctx["lineTo"](this["topLeftX"]+0,this["topLeftY"]+0),ctx["stroke"]());
for(var _0x61cfx2f=0;
_0x61cfx2f<_0x61cfx7["length"];
_0x61cfx2f++)
{
this["loadImage"](_0x61cfx7[_0x61cfx2f])
}
}
_0x61cfx2["AssetLoader"]=_0x61cfx7
}
(Utils=Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9["prototype"]["updateAnimation"]=function(_0x61cfx2)
{
this["frameInc"]+=this["fps"]*_0x61cfx2
}
,_0x61cfx9["prototype"]["resetAnim"]=function()
{
this["frameInc"]=0
}
,_0x61cfx9["prototype"]["setFrame"]=function(_0x61cfx2)
{
this["fixedFrame"]=_0x61cfx2
}
,_0x61cfx9["prototype"]["setAnimType"]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
switch(void(0)===_0x61cfx9&&(_0x61cfx9=!0),this["animId"]=_0x61cfx7,this["animType"]=_0x61cfx2,_0x61cfx9&&this["resetAnim"](),_0x61cfx2)
{
case "loop":break;
case "once":this["maxIdx"]=this["oAnims"][this["animId"]]["length"]-1
}
}
,_0x61cfx9["prototype"]["render"]=function(_0x61cfx2)
{
if(null!=this["animId"])
{
var _0x61cfx7=this["oAnims"][this["animId"]]["length"],_0x61cfx9=Math["floor"](this["frameInc"]),_0x61cfxa=this["oAnims"][this["animId"]][_0x61cfx9%_0x61cfx7],_0x61cfxf=_0x61cfxa*this["oImgData"]["oData"]["spriteWidth"]%this["oImgData"]["img"]["width"],_0x61cfx10=Math["floor"](_0x61cfxa/(this["oImgData"]["img"]["width"]/ this["oImgData"]["oData"]["spriteWidth"]))* this["oImgData"]["oData"]["spriteHeight"];
"once"== this["animType"]&& _0x61cfx9> this["maxIdx"]&& (this["fixedFrame"]= this["oAnims"][this["animId"]][_0x61cfx7- 1],this["animId"]= null,this["animEndedFunc"](),_0x61cfxf= this["fixedFrame"]* this["oImgData"]["oData"]["spriteWidth"]% this["oImgData"]["img"]["width"],_0x61cfx10= Math["floor"](this["fixedFrame"]/(this["oImgData"]["img"]["width"]/ this["oImgData"]["oData"]["spriteWidth"]))* this["oImgData"]["oData"]["spriteHeight"])
}
else
{
_0x61cfxf= this["fixedFrame"]* this["oImgData"]["oData"]["spriteWidth"]% this["oImgData"]["img"]["width"],_0x61cfx10= Math["floor"](this["fixedFrame"]/(this["oImgData"]["img"]["width"]/ this["oImgData"]["oData"]["spriteWidth"]))* this["oImgData"]["oData"]["spriteHeight"]
};
_0x61cfx2["drawImage"](this["oImgData"]["img"],_0x61cfxf,_0x61cfx10,this["oImgData"]["oData"]["spriteWidth"],this["oImgData"]["oData"]["spriteHeight"],-this["oImgData"]["oData"]["spriteWidth"]/2+this["offsetX"],-this["oImgData"]["oData"]["spriteHeight"]/ 2 + this["offsetY"],this["oImgData"]["oData"]["spriteWidth"],this["oImgData"]["oData"]["spriteHeight"])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
this["x"]= 0,this["y"]= 0,this["rotation"]= 0,this["radius"]= 10,this["removeMe"]= !1,this["frameInc"]= 0,this["animType"]= "loop",this["offsetX"]= 0,this["offsetY"]= 0,this["scaleX"]= 1,this["scaleY"]= 1,this["oImgData"]= _0x61cfx2,this["oAnims"]= this["oImgData"]["oData"]["oAnims"],this["fps"]= _0x61cfx7,this["radius"]= _0x61cfx9,this["animId"]= _0x61cfxa
}
_0x61cfx2["AnimSprite"]= _0x61cfx7
}
(Utils= Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9["prototype"]["setFrame"]= function(_0x61cfx2)
{
this["frameNum"]= _0x61cfx2
}
,_0x61cfx9["prototype"]["render"]= function(_0x61cfx2)
{
var _0x61cfx7=this["frameNum"]* this["oImgData"]["oData"]["spriteWidth"]% this["oImgData"]["img"]["width"],_0x61cfx9=Math["floor"](this["frameNum"]/(this["oImgData"]["img"]["width"]/ this["oImgData"]["oData"]["spriteWidth"]))* this["oImgData"]["oData"]["spriteHeight"];
_0x61cfx2["drawImage"](this["oImgData"]["img"],_0x61cfx7,_0x61cfx9,this["oImgData"]["oData"]["spriteWidth"],this["oImgData"]["oData"]["spriteHeight"],-this["oImgData"]["oData"]["spriteWidth"]/2,-this["oImgData"]["oData"]["spriteHeight"]/ 2,this["oImgData"]["oData"]["spriteWidth"],this["oImgData"]["oData"]["spriteHeight"])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7)
{
this["x"]= 0,this["y"]= 0,this["rotation"]= 0,this["radius"]= 10,this["removeMe"]= !1,this["oImgData"]= _0x61cfx2,this["radius"]= _0x61cfx7
}
_0x61cfx2["BasicSprite"]= _0x61cfx7
}
(Utils= Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9["prototype"]["setCanvas"]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
this["canvasX"]= _0x61cfx2,this["canvasY"]= _0x61cfx7,this["canvasScaleX"]= _0x61cfx9,this["canvasScaleY"]= _0x61cfxa
}
,_0x61cfx9["prototype"]["hitDown"]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
if(!this["pauseIsOn"])
{
var _0x61cfxa=( new Date)["getTime"]();
if(!(_0x61cfxa- this["prevHitTime"]< 500&& isBugBrowser))
{
this["prevHitTime"]= _0x61cfxa,_0x61cfx2["preventDefault"](),_0x61cfx2["stopPropagation"](),_0x61cfx7= (_0x61cfx7- this["canvasX"])* this["canvasScaleX"],_0x61cfx9= (_0x61cfx9- this["canvasY"])* this["canvasScaleY"];
for(var _0x61cfxf=0;
_0x61cfxf< this["aHitAreas"]["length"];
_0x61cfxf++)
{
if(this["aHitAreas"][_0x61cfxf]["rect"]&& _0x61cfx7> this["aHitAreas"][_0x61cfxf]["area"][0]&& _0x61cfx9> this["aHitAreas"][_0x61cfxf]["area"][1]&& _0x61cfx7< this["aHitAreas"][_0x61cfxf]["area"][2]&& _0x61cfx9< this["aHitAreas"][_0x61cfxf]["area"][3])
{
this["aHitAreas"][_0x61cfxf]["oData"]["hitX"]= _0x61cfx7,this["aHitAreas"][_0x61cfxf]["oData"]["hitY"]= _0x61cfx9,this["aHitAreas"][_0x61cfxf]["oData"]["hitState"]= "down",this["aHitAreas"][_0x61cfxf]["callback"](this["aHitAreas"][_0x61cfxf]["id"],this["aHitAreas"][_0x61cfxf]["oData"]);
break
}
}
}
}
}
,_0x61cfx9["prototype"]["hitUp"]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfx2["preventDefault"](),_0x61cfx2["stopPropagation"](),_0x61cfx7= (_0x61cfx7- this["canvasX"])* this["canvasScaleX"],_0x61cfx9= (_0x61cfx9- this["canvasY"])* this["canvasScaleY"];
for(var _0x61cfxa=0;
_0x61cfxa< this["aHitAreas"]["length"];
_0x61cfxa++)
{
if(this["aHitAreas"][_0x61cfxa]["rect"]&& _0x61cfx7> this["aHitAreas"][_0x61cfxa]["area"][0]&& _0x61cfx9> this["aHitAreas"][_0x61cfxa]["area"][1]&& _0x61cfx7< this["aHitAreas"][_0x61cfxa]["area"][2]&& _0x61cfx9< this["aHitAreas"][_0x61cfxa]["area"][3]&& this["aHitAreas"][_0x61cfxa]["oData"]["allowUpState"])
{
this["aHitAreas"][_0x61cfxa]["oData"]["hitX"]= _0x61cfx7,this["aHitAreas"][_0x61cfxa]["oData"]["hitY"]= _0x61cfx9,this["aHitAreas"][_0x61cfxa]["oData"]["hitState"]= "up",this["aHitAreas"][_0x61cfxa]["callback"](this["aHitAreas"][_0x61cfxa]["id"],this["aHitAreas"][_0x61cfxa]["oData"]);
break
}
}
}
,_0x61cfx9["prototype"]["addHitArea"]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf)
{
switch(void(0)=== _0x61cfxf&& (_0x61cfxf= !1),null== _0x61cfx9&& (_0x61cfx9= new Object),_0x61cfxf&& this["removeHitArea"](_0x61cfx2),_0x61cfxa["type"])
{
case "image":_0x61cfxa["oImageData"]["isSpriteSheet"]?this["aHitAreas"]["push"](
{
id:_0x61cfx2,callback:_0x61cfx7,oData:_0x61cfx9,rect:!0,area:[_0x61cfxa["aCentrePos"][0]- _0x61cfxa["oImageData"]["oData"]["spriteHeight"]/2,_0x61cfxa["aCentrePos"][1]-_0x61cfxa["oImageData"]["oData"]["spriteHeight"]/ 2,_0x61cfxa["aCentrePos"][0]+ _0x61cfxa["oImageData"]["oData"]["spriteWidth"]/2,_0x61cfxa["aCentrePos"][1]+_0x61cfxa["oImageData"]["oData"]["spriteHeight"]/ 2]
}
):this["aHitAreas"]["push"](
{
id:_0x61cfx2,callback:_0x61cfx7,oData:_0x61cfx9,rect:!0,area:[_0x61cfxa["aCentrePos"][0]- _0x61cfxa["oImageData"]["img"]["width"]/2,_0x61cfxa["aCentrePos"][1]-_0x61cfxa["oImageData"]["img"]["height"]/ 2,_0x61cfxa["aCentrePos"][0]+ _0x61cfxa["oImageData"]["img"]["width"]/2,_0x61cfxa["aCentrePos"][1]+_0x61cfxa["oImageData"]["img"]["height"]/ 2]
}
);
break;
case "rect":this["aHitAreas"]["push"](
{
id:_0x61cfx2,callback:_0x61cfx7,oData:_0x61cfx9,rect:!0,area:_0x61cfxa["aRect"]
}
)
}
}
,_0x61cfx9["prototype"]["removeHitArea"]= function(_0x61cfx2)
{
for(var _0x61cfx7=0;
_0x61cfx7< this["aHitAreas"]["length"];
_0x61cfx7++)
{
this["aHitAreas"][_0x61cfx7]["id"]== _0x61cfx2&& (this["aHitAreas"]["splice"](_0x61cfx7,1),--_0x61cfx7)
}
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7)
{
var _0x61cfx9=this;
this["isDown"]= !1,this["canvasX"]= 0,this["canvasY"]= 0,this["canvasScaleX"]= 1,this["canvasScaleY"]= 1,this["prevHitTime"]= 0,this["pauseIsOn"]= !1,this["isBugBrowser"]= _0x61cfx7,_0x61cfx2["addEventListener"]("touchstart",function(_0x61cfx2)
{
_0x61cfx9["hitDown"](_0x61cfx2,_0x61cfx2["touches"][0]["pageX"],_0x61cfx2["touches"][0]["pageY"])
}
,!1),_0x61cfx2["addEventListener"]("touchend",function(_0x61cfx2)
{
_0x61cfx9["hitUp"](_0x61cfx2,_0x61cfx2["changedTouches"][0]["pageX"],_0x61cfx2["changedTouches"][0]["pageY"])
}
,!1),_0x61cfx2["addEventListener"]("mousedown",function(_0x61cfx2)
{
_0x61cfx9["hitDown"](_0x61cfx2,_0x61cfx2["pageX"],_0x61cfx2["pageY"])
}
,!1),_0x61cfx2["addEventListener"]("mouseup",function(_0x61cfx2)
{
_0x61cfx9["hitUp"](_0x61cfx2,_0x61cfx2["pageX"],_0x61cfx2["pageY"])
}
,!1),this["aHitAreas"]= new Array
}
_0x61cfx2["UserInput"]= _0x61cfx7
}
(Utils= Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9["prototype"]["update"]= function(_0x61cfx2)
{
this["delta"]= _0x61cfx2
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2)
{
this["updateFreq"]= 10,this["updateInc"]= 0,this["frameAverage"]= 0,this["display"]= 1,this["log"]= "",this["render"]= function(_0x61cfx2)
{
this["frameAverage"]+= this["delta"]/this["updateFreq"],++this["updateInc"]>=this["updateFreq"]&&(this["updateInc"]=0,this["display"]=this["frameAverage"],this["frameAverage"]=0),_0x61cfx2["textAlign"]="left",ctx["font"]="10px Helvetica",_0x61cfx2["fillStyle"]="#333333",_0x61cfx2["beginPath"](),_0x61cfx2["rect"](0,this["canvasHeight"]-15,40,15),_0x61cfx2["closePath"](),_0x61cfx2["fill"](),_0x61cfx2["fillStyle"]="#ffffff",_0x61cfx2["fillText"](Math["round"](1e3/(1e3*this["display"]))+" fps "+this["log"],5,this["canvasHeight"]-5)
}
,this["canvasHeight"]=_0x61cfx2
}
_0x61cfx2["FpsMeter"]=_0x61cfx7
}
(Utils=Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9["prototype"]["update"]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
this["offsetX"]+=_0x61cfx7/2*_0x61cfx2,this["offsetY"]-=_0x61cfx9/2*_0x61cfx2
}
,_0x61cfx9["prototype"]["render"]=function(_0x61cfx2)
{
var _0x61cfx7=this["offsetX"]%this["canvasWidth"],_0x61cfx9=this["offsetY"]%this["canvasHeight"];
_0x61cfx7<0&&(_0x61cfx7+=this["canvasWidth"]),_0x61cfx9<0&&(_0x61cfx9+=this["canvasHeight"]),_0x61cfx2["drawImage"](this["oImgData"]["img"],_0x61cfx7,_0x61cfx9,this["canvasWidth"],this["canvasHeight"],0,0,this["canvasWidth"],this["canvasHeight"])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
this["offsetX"]=0,this["offsetY"]=0,this["oImgData"]=_0x61cfx2,this["canvasWidth"]=_0x61cfx7,this["canvasHeight"]=_0x61cfx9
}
_0x61cfx2["Background"]=_0x61cfx7
}
(Elements=Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9["prototype"]["setRenderFunc"]=function(_0x61cfx2)
{
switch(this["posY"]=-this["canvasHeight"],_0x61cfx2)
{
case "start":this["renderFunc"]=this["renderStartScreen"],TweenLite["to"](this,1,
{
posX:0,ease:"Back.easeOut"
}
),TweenLite["to"](this,0.5,
{
posY:0
}
)
}
}
,_0x61cfx9["prototype"]["render"]=function(_0x61cfx2,_0x61cfx7)
{
this["renderFunc"](_0x61cfx2,_0x61cfx7)
}
,_0x61cfx9["prototype"]["renderStartScreen"]=function(_0x61cfx2,_0x61cfx7)
{
this["incY"]+=5*_0x61cfx7,this["bgX"]+=50*_0x61cfx7,this["bgY"]-=50*Math["sin"](this["incY"]/ 5)* _0x61cfx7;
var _0x61cfx9=this["bgX"]% this["canvasWidth"],_0x61cfxa=this["bgY"]% this["canvasHeight"];
_0x61cfx9< 0&& (_0x61cfx9+= this["canvasWidth"]),_0x61cfxa< 0&& (_0x61cfxa+= this["canvasHeight"]),_0x61cfx2["drawImage"](this["oScreens"]["startImageData"]["img"],_0x61cfx9,_0x61cfxa,this["canvasWidth"],this["canvasHeight"],0,0,this["canvasWidth"],this["canvasHeight"]),_0x61cfx2["drawImage"](this["oTitle2ImgData"]["img"],this["canvasWidth"]/2-this["oTitle2ImgData"]["img"]["width"]/ 2- this["posX"],-12),_0x61cfx2["drawImage"](this["oTitle1ImgData"]["img"],this["canvasWidth"]/2-this["oTitle2ImgData"]["img"]["width"]/ 2+ this["posX"],-12),_0x61cfx2["drawImage"](this["oButs"]["play"]["imageData"]["img"],this["oButs"]["play"]["pos"][0]- this["oButs"]["play"]["imageData"]["img"]["width"]/2,this["oButs"]["play"]["pos"][1]-this["oButs"]["play"]["imageData"]["img"]["height"]/ 2- 5* Math["sin"](this["incY"])- this["posY"])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf,_0x61cfx10)
{
this["incY"]= 0,this["score"]= 0,this["highestScore"]= 0,this["posY"]= 0,this["bgX"]= 0,this["bgY"]= 0,this["oScreens"]= _0x61cfx2,this["oButs"]= _0x61cfx7,this["oTitle1ImgData"]= _0x61cfx9,this["oTitle2ImgData"]= _0x61cfxa,this["canvasWidth"]= _0x61cfxf,this["canvasHeight"]= _0x61cfx10,this["posY"]= -this["canvasHeight"],this["posX"]= 100
}
_0x61cfx2["Screens"]= _0x61cfx7
}
(Elements= Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9["prototype"]["render"]= function(_0x61cfx2,_0x61cfx7)
{
this["inc"]+= 5* _0x61cfx7,_0x61cfx2["drawImage"](this["oSplashScreenImgData"]["img"],0,0- this["posY"])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
this["inc"]= 0,this["oSplashScreenImgData"]= _0x61cfx2,this["canvasWidth"]= _0x61cfx7,this["canvasHeight"]= _0x61cfx9,this["posY"]= -this["canvasHeight"],TweenLite["to"](this,0.5,
{
posY:0
}
)
}
_0x61cfx2["Splash"]= _0x61cfx7
}
(Elements= Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9["prototype"]["update"]= function()
{
}
,_0x61cfx9["prototype"]["startTween"]= function()
{
this["posY"]= 320,TweenLite["to"](this,0.8,
{
posY:0,ease:"Back.easeOut"
}
)
}
,_0x61cfx9["prototype"]["renderPanel"]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
switch(_0x61cfx9)
{
case "levelComplete":var _0x61cfxa=(_0x61cfx2f= 1)* this["oPanelsImgData"]["oData"]["spriteWidth"]% this["oPanelsImgData"]["img"]["width"],_0x61cfxf=Math["floor"](_0x61cfx2f/(this["oPanelsImgData"]["img"]["width"]/ this["oPanelsImgData"]["oData"]["spriteWidth"]))* this["oPanelsImgData"]["oData"]["spriteHeight"];
_0x61cfx2["drawImage"](this["oPanelsImgData"]["img"],_0x61cfxa,_0x61cfxf,this["oPanelsImgData"]["oData"]["spriteWidth"],this["oPanelsImgData"]["oData"]["spriteHeight"],this["canvasWidth"]/2-this["oPanelsImgData"]["oData"]["spriteWidth"]/ 2,this["canvasHeight"]/2-this["oPanelsImgData"]["oData"]["spriteHeight"]/ 2+ this["posY"],this["oPanelsImgData"]["oData"]["spriteWidth"],this["oPanelsImgData"]["oData"]["spriteHeight"]);
for(var _0x61cfx10=this["oScoreData"]["acornScore"],_0x61cfx11=0;
_0x61cfx11< _0x61cfx10.toString()["length"];
_0x61cfx11++)
{
_0x61cfxa= (_0x61cfx2f= parseFloat(_0x61cfx10.toString()["charAt"](_0x61cfx11)))* this["oNumbersImgData"]["oData"]["spriteWidth"]% this["oNumbersImgData"]["img"]["width"],_0x61cfxf= Math["floor"](_0x61cfx2f/(this["oNumbersImgData"]["img"]["width"]/ this["oNumbersImgData"]["oData"]["spriteWidth"]))* this["oNumbersImgData"]["oData"]["spriteHeight"],_0x61cfx2["drawImage"](this["oNumbersImgData"]["img"],_0x61cfxa,_0x61cfxf,this["oNumbersImgData"]["oData"]["spriteWidth"],this["oNumbersImgData"]["oData"]["spriteHeight"],255+ 15* _0x61cfx11,103+ this["posY"],this["oNumbersImgData"]["oData"]["spriteWidth"],this["oNumbersImgData"]["oData"]["spriteHeight"])
};
for(_0x61cfx10= this["oScoreData"]["levelScore"],_0x61cfx11= 0;
_0x61cfx11< _0x61cfx10.toString()["length"];
_0x61cfx11++)
{
_0x61cfxa= (_0x61cfx2f= parseFloat(_0x61cfx10.toString()["charAt"](_0x61cfx11)))* this["oNumbersImgData"]["oData"]["spriteWidth"]% this["oNumbersImgData"]["img"]["width"],_0x61cfxf= Math["floor"](_0x61cfx2f/(this["oNumbersImgData"]["img"]["width"]/ this["oNumbersImgData"]["oData"]["spriteWidth"]))* this["oNumbersImgData"]["oData"]["spriteHeight"],_0x61cfx2["drawImage"](this["oNumbersImgData"]["img"],_0x61cfxa,_0x61cfxf,this["oNumbersImgData"]["oData"]["spriteWidth"],this["oNumbersImgData"]["oData"]["spriteHeight"],255+ 15* _0x61cfx11,142+ this["posY"],this["oNumbersImgData"]["oData"]["spriteWidth"],this["oNumbersImgData"]["oData"]["spriteHeight"])
};
for(_0x61cfx10= this["oScoreData"]["totalScore"],_0x61cfx11= 0;
_0x61cfx11< _0x61cfx10.toString()["length"];
_0x61cfx11++)
{
_0x61cfxa= (_0x61cfx2f= parseFloat(_0x61cfx10.toString()["charAt"](_0x61cfx11)))* this["oNumbersImgData"]["oData"]["spriteWidth"]% this["oNumbersImgData"]["img"]["width"],_0x61cfxf= Math["floor"](_0x61cfx2f/(this["oNumbersImgData"]["img"]["width"]/ this["oNumbersImgData"]["oData"]["spriteWidth"]))* this["oNumbersImgData"]["oData"]["spriteHeight"],_0x61cfx2["drawImage"](this["oNumbersImgData"]["img"],_0x61cfxa,_0x61cfxf,this["oNumbersImgData"]["oData"]["spriteWidth"],this["oNumbersImgData"]["oData"]["spriteHeight"],255+ 15* _0x61cfx11,202+ this["posY"],this["oNumbersImgData"]["oData"]["spriteWidth"],this["oNumbersImgData"]["oData"]["spriteHeight"])
};
break;
case "gameEndFail":for(_0x61cfxa= (_0x61cfx2f= 2)* this["oPanelsImgData"]["oData"]["spriteWidth"]% this["oPanelsImgData"]["img"]["width"],_0x61cfxf= Math["floor"](_0x61cfx2f/(this["oPanelsImgData"]["img"]["width"]/ this["oPanelsImgData"]["oData"]["spriteWidth"]))* this["oPanelsImgData"]["oData"]["spriteHeight"],_0x61cfx2["drawImage"](this["oPanelsImgData"]["img"],_0x61cfxa,_0x61cfxf,this["oPanelsImgData"]["oData"]["spriteWidth"],this["oPanelsImgData"]["oData"]["spriteHeight"],this["canvasWidth"]/2-this["oPanelsImgData"]["oData"]["spriteWidth"]/ 2,this["canvasHeight"]/2-this["oPanelsImgData"]["oData"]["spriteHeight"]/ 2+ this["posY"],this["oPanelsImgData"]["oData"]["spriteWidth"],this["oPanelsImgData"]["oData"]["spriteHeight"]),_0x61cfx10= this["oScoreData"]["totalScore"],_0x61cfx11= 0;
_0x61cfx11< _0x61cfx10.toString()["length"];
_0x61cfx11++)
{
_0x61cfxa= (_0x61cfx2f= parseFloat(_0x61cfx10.toString()["charAt"](_0x61cfx11)))* this["oNumbersImgData"]["oData"]["spriteWidth"]% this["oNumbersImgData"]["img"]["width"],_0x61cfxf= Math["floor"](_0x61cfx2f/(this["oNumbersImgData"]["img"]["width"]/ this["oNumbersImgData"]["oData"]["spriteWidth"]))* this["oNumbersImgData"]["oData"]["spriteHeight"],_0x61cfx2["drawImage"](this["oNumbersImgData"]["img"],_0x61cfxa,_0x61cfxf,this["oNumbersImgData"]["oData"]["spriteWidth"],this["oNumbersImgData"]["oData"]["spriteHeight"],255+ 15* _0x61cfx11,202+ this["posY"],this["oNumbersImgData"]["oData"]["spriteWidth"],this["oNumbersImgData"]["oData"]["spriteHeight"])
};
break;
case "tutorial":_0x61cfxa= (_0x61cfx2f= 0)* this["oPanelsImgData"]["oData"]["spriteWidth"]% this["oPanelsImgData"]["img"]["width"],_0x61cfxf= Math["floor"](_0x61cfx2f/(this["oPanelsImgData"]["img"]["width"]/ this["oPanelsImgData"]["oData"]["spriteWidth"]))* this["oPanelsImgData"]["oData"]["spriteHeight"],_0x61cfx2["drawImage"](this["oPanelsImgData"]["img"],_0x61cfxa,_0x61cfxf,this["oPanelsImgData"]["oData"]["spriteWidth"],this["oPanelsImgData"]["oData"]["spriteHeight"],this["canvasWidth"]/2-this["oPanelsImgData"]["oData"]["spriteWidth"]/ 2,this["canvasHeight"]/2-this["oPanelsImgData"]["oData"]["spriteHeight"]/ 2,this["oPanelsImgData"]["oData"]["spriteWidth"],this["oPanelsImgData"]["oData"]["spriteHeight"]);
break;
case "pause":var _0x61cfx2f;
_0x61cfxa= (_0x61cfx2f= 3)* this["oPanelsImgData"]["oData"]["spriteWidth"]% this["oPanelsImgData"]["img"]["width"],_0x61cfxf= Math["floor"](_0x61cfx2f/(this["oPanelsImgData"]["img"]["width"]/ this["oPanelsImgData"]["oData"]["spriteWidth"]))* this["oPanelsImgData"]["oData"]["spriteHeight"],_0x61cfx2["drawImage"](this["oPanelsImgData"]["img"],_0x61cfxa,_0x61cfxf,this["oPanelsImgData"]["oData"]["spriteWidth"],this["oPanelsImgData"]["oData"]["spriteHeight"],this["canvasWidth"]/2-this["oPanelsImgData"]["oData"]["spriteWidth"]/ 2,this["canvasHeight"]/2-this["oPanelsImgData"]["oData"]["spriteHeight"]/ 2,this["oPanelsImgData"]["oData"]["spriteWidth"],this["oPanelsImgData"]["oData"]["spriteHeight"])
}
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
this["timer"]= 0.3,this["endTime"]= 0,this["oPanelsImgData"]= _0x61cfx2,this["oNumbersImgData"]= _0x61cfx7,this["canvasWidth"]= _0x61cfx9,this["canvasHeight"]= _0x61cfxa
}
_0x61cfx2["Panel"]= _0x61cfx7
}
(Elements= Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9["prototype"]["render"]= function(_0x61cfx2)
{
_0x61cfx2["drawImage"](this["oHudImgData"]["img"],0,0);
for(var _0x61cfx7=0;
_0x61cfx7< this["score"].toString()["length"];
_0x61cfx7++)
{
var _0x61cfx9=(_0x61cfxf= parseFloat(this["score"].toString()["charAt"](_0x61cfx7)))* this["oNumbersImgData"]["oData"]["spriteWidth"]% this["oNumbersImgData"]["img"]["width"],_0x61cfxa=Math["floor"](_0x61cfxf/(this["oNumbersImgData"]["img"]["width"]/ this["oNumbersImgData"]["oData"]["spriteWidth"]))* this["oNumbersImgData"]["oData"]["spriteHeight"];
_0x61cfx2["drawImage"](this["oNumbersImgData"]["img"],_0x61cfx9,_0x61cfxa,this["oNumbersImgData"]["oData"]["spriteWidth"],this["oNumbersImgData"]["oData"]["spriteHeight"],215+ _0x61cfx7* this["letterSpace"]- this["letterSpace"]* this["score"].toString()["length"]/2,7,this["oNumbersImgData"]["oData"]["spriteWidth"],this["oNumbersImgData"]["oData"]["spriteHeight"])
};
for(_0x61cfx7=0;
_0x61cfx7<this["acornScore"].toString()["length"];
_0x61cfx7++)
{
_0x61cfx9=(_0x61cfxf=parseFloat(this["acornScore"].toString()["charAt"](_0x61cfx7)))*this["oNumbersImgData"]["oData"]["spriteWidth"]%this["oNumbersImgData"]["img"]["width"],_0x61cfxa=Math["floor"](_0x61cfxf/(this["oNumbersImgData"]["img"]["width"]/ this["oNumbersImgData"]["oData"]["spriteWidth"]))* this["oNumbersImgData"]["oData"]["spriteHeight"],_0x61cfx2["drawImage"](this["oNumbersImgData"]["img"],_0x61cfx9,_0x61cfxa,this["oNumbersImgData"]["oData"]["spriteWidth"],this["oNumbersImgData"]["oData"]["spriteHeight"],128+ 15* _0x61cfx7,7,this["oNumbersImgData"]["oData"]["spriteWidth"],this["oNumbersImgData"]["oData"]["spriteHeight"])
};
for(_0x61cfx7= 0;
_0x61cfx7< this["level"].toString()["length"];
_0x61cfx7++)
{
var _0x61cfxf;
_0x61cfx9= (_0x61cfxf= parseFloat(this["level"].toString()["charAt"](_0x61cfx7)))* this["oNumbersImgData"]["oData"]["spriteWidth"]% this["oNumbersImgData"]["img"]["width"],_0x61cfxa= Math["floor"](_0x61cfxf/(this["oNumbersImgData"]["img"]["width"]/ this["oNumbersImgData"]["oData"]["spriteWidth"]))* this["oNumbersImgData"]["oData"]["spriteHeight"],_0x61cfx2["drawImage"](this["oNumbersImgData"]["img"],_0x61cfx9,_0x61cfxa,this["oNumbersImgData"]["oData"]["spriteWidth"],this["oNumbersImgData"]["oData"]["spriteHeight"],355+ 15* _0x61cfx7,7,this["oNumbersImgData"]["oData"]["spriteWidth"],this["oNumbersImgData"]["oData"]["spriteHeight"])
}
}
,_0x61cfx9["prototype"]["updateScore"]= function(_0x61cfx2)
{
this["score"]= _0x61cfx2
}
,_0x61cfx9["prototype"]["updateAcornScore"]= function(_0x61cfx2)
{
this["acornScore"]= _0x61cfx2
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf,_0x61cfx10)
{
this["score"]= 0,this["acornScore"]= 0,this["letterSpace"]= 15,this["oHudImgData"]= _0x61cfx2,this["oNumbersImgData"]= _0x61cfx7,this["level"]= _0x61cfx9,this["canvasWidth"]= _0x61cfxa,this["canvasHeight"]= _0x61cfxf,this["score"]= _0x61cfx10
}
_0x61cfx2["Hud"]= _0x61cfx7
}
(Elements= Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9["prototype"]["setFrame"]= function(_0x61cfx2)
{
this["frameNum"]= _0x61cfx2
}
,_0x61cfx9["prototype"]["render"]= function(_0x61cfx2)
{
var _0x61cfx7=this["frameNum"]* this["oImgData"]["oData"]["spriteWidth"]% this["oImgData"]["img"]["width"],_0x61cfx9=Math["floor"](this["frameNum"]/(this["oImgData"]["img"]["width"]/ this["oImgData"]["oData"]["spriteWidth"]))* this["oImgData"]["oData"]["spriteHeight"];
_0x61cfx2["drawImage"](this["oImgData"]["img"],_0x61cfx7,_0x61cfx9,this["oImgData"]["oData"]["spriteWidth"],this["oImgData"]["oData"]["spriteHeight"],this["x"],this["y"],this["oImgData"]["oData"]["spriteWidth"],this["oImgData"]["oData"]["spriteHeight"])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2)
{
this["x"]= 0,this["y"]= 0,this["removeMe"]= !1,this["oImgData"]= _0x61cfx2
}
_0x61cfx2["BgElement"]= _0x61cfx7
}
(Utils= Utils||
{
}
),function(_0x61cfx2)
{
var _0x61cfx7=(_0x61cfx9["prototype"]["update"]= function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
this["x"]-= _0x61cfx7* _0x61cfx2,this["y"]+= _0x61cfx9* _0x61cfx2,(this["y"]> 1.5* this["canvasHeight"]|| this["x"]< 0- this["spriteWidth"]&& this["isRight"]|| this["x"]> this["canvasWidth"]+ this["spriteWidth"]&& !this["isRight"])&& (this["removeMe"]= !0)
}
,_0x61cfx9["prototype"]["render"]= function(_0x61cfx2)
{
var _0x61cfx7=this["frameNum"]* this["oImgData"]["oData"]["spriteWidth"]% this["oImgData"]["img"]["width"],_0x61cfx9=Math["floor"](this["frameNum"]/(this["oImgData"]["img"]["width"]/ this["oImgData"]["oData"]["spriteWidth"]))* this["oImgData"]["oData"]["spriteHeight"];
_0x61cfx2["drawImage"](this["oImgData"]["img"],_0x61cfx7,_0x61cfx9,this["oImgData"]["oData"]["spriteWidth"],this["oImgData"]["oData"]["spriteHeight"],this["x"]- 5- this["oImgData"]["oData"]["spriteWidth"]/2,this["y"]-115,this["oImgData"]["oData"]["spriteWidth"],this["oImgData"]["oData"]["spriteHeight"])
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf,_0x61cfx10,_0x61cfx11)
{
this["x"]=0,this["y"]=0,this["removeMe"]=!1,this["oImgData"]=_0x61cfx2,this["id"]=_0x61cfx7,this["isRight"]=_0x61cfxf,this["canvasWidth"]=_0x61cfx10,this["canvasHeight"]=_0x61cfx11,this["type"]=_0x61cfxa,this["spriteWidth"]=100,this["frameNum"]=_0x61cfx9
}
_0x61cfx2["Branch"]=_0x61cfx7
}
(Elements=Elements||
{
}
);
var Elements,__extends=this["__extends"]||function(_0x61cfx2,_0x61cfx7)
{
function _0x61cfx9()
{
this["constructor"]=_0x61cfx2
}
_0x61cfx9["prototype"]=_0x61cfx7["prototype"],_0x61cfx2["prototype"]=new _0x61cfx9
};
!function(_0x61cfx2)
{
var _0x61cfxf,_0x61cfx7=(_0x61cfxf=Utils["AnimSprite"],__extends(_0x61cfx9,_0x61cfxf),_0x61cfx9["prototype"]["setNearestBranch"]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfx9>this["y"]&&(this["oBranchData"]["lastNearestUnderId"]=_0x61cfx2),this["oBranchData"]["curNearestId"]=_0x61cfx2,this["oBranchData"]["curNearestY"]=_0x61cfx9,this["oBranchData"]["curNearestType"]=_0x61cfx7
}
,_0x61cfx9["prototype"]["changeState"]=function(_0x61cfx2)
{
switch(this["state"]=_0x61cfx2,this["state"])
{
case "running":this["setAnimType"]("loop",this["state"]),this["jumpOn"]&&(this["fallRate"]=450,this["changeState"]("jumping"));
break;
case "falling":"running"==this["animId"]&&(this["animEndedFunc"]=function()
{
this["setAnimType"]("loop","falling")
}
,this["setAnimType"]("once","running",!1)),this["fallInc"]=100;
break;
case "jumping":"running"==this["animId"]&&(this["animEndedFunc"]=function()
{
this["setAnimType"]("loop","falling")
}
,this["setAnimType"]("once",this["state"]),this["fallInc"]=-300);
break;
case "flipping":this["isRight"]?(this["isRight"]=!1,this["scaleX"]=-1):(this["isRight"]=!0,this["scaleX"]=1),this["fallInc"]=-725,this["animEndedFunc"]=function()
{
this["setAnimType"]("loop","falling")
}
,this["setAnimType"]("once","jumping"),this["callback"]("flip",
{
isRight:this["isRight"]
}
);
break;
case "home":this["callback"]("home"),this["setAnimType"]("loop","hide")
};
this["updateFunc"]=this[this["state"]]
}
,_0x61cfx9["prototype"]["jump"]=function()
{
"running"==this["state"]&&(this["fallRate"]=450,this["changeState"]("jumping"),playSound("jump")),this["jumpOn"]=!0
}
,_0x61cfx9["prototype"]["jumpReleased"]=function()
{
"jumping"==this["state"]&&(this["fallRate"]=800),this["jumpOn"]=!1
}
,_0x61cfx9["prototype"]["update"]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfxf["prototype"]["updateAnimation"]["call"](this,_0x61cfx2),this["x"]+=_0x61cfx7*_0x61cfx2,this["y"]+=_0x61cfx9*_0x61cfx2,this["updateFunc"](_0x61cfx2)
}
,_0x61cfx9["prototype"]["running"]=function()
{
null!=this["oBranchData"]["curNearestId"]&&this["oBranchData"]["curNearestY"]==this["y"]||this["changeState"]("falling")
}
,_0x61cfx9["prototype"]["falling"]=function(_0x61cfx2)
{
this["fallInc"]+=800*_0x61cfx2,this["y"]+=this["fallInc"]*_0x61cfx2,this["oBranchData"]["curNearestY"]<this["y"]&&this["y"]-this["oBranchData"]["curNearestY"]<30&&(this["y"]=this["oBranchData"]["curNearestY"],this["changeState"]("running"),playSound("land")),this["y"]>1.5*this["canvasHeight"]&&this["callback"]("endGame")
}
,_0x61cfx9["prototype"]["home"]=function()
{
}
,_0x61cfx9["prototype"]["jumping"]=function(_0x61cfx2)
{
0<this["fallInc"]&&(this["fallRate"]=800),this["fallInc"]+=this["fallRate"]*_0x61cfx2,this["y"]+=this["fallInc"]*_0x61cfx2,this["oBranchData"]["curNearestY"]<this["y"]&&this["y"]-this["oBranchData"]["curNearestY"]<30&&("stump"==this["oBranchData"]["curNearestType"]?(this["y"]=this["oBranchData"]["curNearestY"],this["changeState"]("flipping"),playSound("bounce")):"home"==this["oBranchData"]["curNearestType"]?(this["y"]=this["oBranchData"]["curNearestY"],this["changeState"]("home")):(this["y"]=this["oBranchData"]["curNearestY"],this["changeState"]("running"),playSound("land"))),this["y"]>1.5*this["canvasHeight"]&&this["callback"]("endGame")
}
,_0x61cfx9["prototype"]["flipping"]=function(_0x61cfx2)
{
this["fallInc"]+=800*_0x61cfx2,this["y"]+=this["fallInc"]*_0x61cfx2,this["oBranchData"]["curNearestY"]<this["y"]&&this["y"]-this["oBranchData"]["curNearestY"]<30&&(this["y"]=this["oBranchData"]["curNearestY"],this["changeState"]("running"))
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
_0x61cfxf["call"](this,_0x61cfx2,20,25,"falling"),this["fallInc"]=0,this["oBranchData"]=new Object,this["jumpOn"]=!1,this["isRight"]=!0,this["canvasWidth"]=_0x61cfx7,this["canvasHeight"]=_0x61cfx9,this["callback"]=_0x61cfxa,this["state"]="falling",this["offsetY"]=-12,this["updateFunc"]=this["falling"]
}
_0x61cfx2["Squirrel"]=_0x61cfx7
}
(Elements=Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfx10,_0x61cfx7=(_0x61cfx10=Utils["AnimSprite"],__extends(_0x61cfx9,_0x61cfx10),_0x61cfx9["prototype"]["update"]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfx10["prototype"]["updateAnimation"]["call"](this,_0x61cfx2),this["x"]-=_0x61cfx7*_0x61cfx2,this["y"]+=_0x61cfx9*_0x61cfx2,(this["y"]>2*this["canvasHeight"]||this["x"]<0-this["spriteWidth"]&&this["isRight"]||this["x"]>this["canvasWidth"]+this["spriteWidth"]&&!this["isRight"])&&(this["removeMe"]=!0)
}
,_0x61cfx9["prototype"]["hit"]=function()
{
this["canHit"]=!1,this["setAnimType"]("once","bursting")
}
,_0x61cfx9["prototype"]["burst"]=function()
{
this["removeMe"]=!0
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa,_0x61cfxf)
{
_0x61cfx10["call"](this,_0x61cfx2,15,25,"spinning"+_0x61cfx9),this["canHit"]=!0,this["isRight"]=_0x61cfx7,this["canvasWidth"]=_0x61cfxa,this["canvasHeight"]=_0x61cfxf,this["offsetX"]=-10,this["spriteWidth"]=100,this["animEndedFunc"]=this["burst"]
}
_0x61cfx2["Acorn"]=_0x61cfx7
}
(Elements=Elements||
{
}
),function(_0x61cfx2)
{
var _0x61cfxf,_0x61cfx7=(_0x61cfxf=Utils["AnimSprite"],__extends(_0x61cfx9,_0x61cfxf),_0x61cfx9["prototype"]["update"]=function(_0x61cfx2,_0x61cfx7,_0x61cfx9)
{
_0x61cfxf["prototype"]["updateAnimation"]["call"](this,_0x61cfx2),this["x"]-=2*_0x61cfx7*_0x61cfx2,this["y"]+=(2*_0x61cfx9+100)*_0x61cfx2,(this["y"]>2*this["canvasHeight"]||this["x"]<0-this["spriteWidth"]&&this["isRight"]||this["x"]>this["canvasWidth"]+this["spriteWidth"]&&!this["isRight"])&&(this["removeMe"]=!0)
}
,_0x61cfx9);
function _0x61cfx9(_0x61cfx2,_0x61cfx7,_0x61cfx9,_0x61cfxa)
{
_0x61cfxf["call"](this,_0x61cfx2,20,0,"falling"),this["oImgData"]=_0x61cfx2,this["isRight"]=_0x61cfx7,this["canvasWidth"]=_0x61cfx9,this["canvasHeight"]=_0x61cfxa,this["spriteWidth"]=100,this["frameInc"]=Math["floor"](38*Math["random"]())
}
_0x61cfx2["Leaf"]=_0x61cfx7
}
(Elements=Elements||
{
}
);
var previousTime,requestAnimFrame=window["requestAnimationFrame"]||window["webkitRequestAnimationFrame"]||window["mozRequestAnimationFrame"]||window["oRequestAnimationFrame"]||window["msRequestAnimationFrame"]||function(_0x61cfx2)
{
window["setTimeout"](_0x61cfx2,1e3/60,(new Date)["getTime"]())
}
,canvas=document["getElementById"]("canvas"),ctx=canvas["getContext"]("2d");
canvas["width"]=480,canvas["height"]=320;
var canvasX,canvasY,canvasScaleX,canvasScaleY,sound,music,splash,screens,assetLib,preAssetLib,div=document["getElementById"]("viewporter"),allowSound=!1,muted=!1,splashTimer=0,rotatePause=!1,manualPause=!1,isMobile=!1,gameState="loading",aLangs=new Array("EN"),curLang="",isBugBrowser=!1,deviceAgent=navigator["userAgent"]["toLowerCase"]();
(deviceAgent["match"](/(iphone|ipod|ipad)/)||deviceAgent["match"](/(android)/)||deviceAgent["match"](/(iemobile)/)||deviceAgent["match"](/iphone/i)||deviceAgent["match"](/ipad/i)||deviceAgent["match"](/ipod/i)||deviceAgent["match"](/blackberry/i)||deviceAgent["match"](/bada/i))&&(isMobile=!0,deviceAgent["match"](/(android)/)&&!/Chrome/["test"](navigator["userAgent"])&&(isBugBrowser=!0));
var userInput=new Utils.UserInput(canvas,isBugBrowser);
resizeCanvas(),window["onresize"]=function()
{
setTimeout(function()
{
resizeCanvas()
}
,1)
}
,document["addEventListener"]("visibilitychange",function()
{
document["hidden"]?Howler["mute"]():muted||Howler["unmute"]()
}
,!1),window["addEventListener"]("load",function()
{
setTimeout(function()
{
resizeCanvas()
}
,0),window["addEventListener"]("orientationchange",function()
{
resizeCanvas()
}
,!1)
}
),void(0)===window["AudioContext"]&&void(0)===window["webkitAudioContext"]&&-1!=navigator["userAgent"]["indexOf"]("Android")||(allowSound=!0,sound=new Howl(
{
urls:["audio/sound.ogg","audio/sound.m4a"],sprite:
{
click:[0,150],bounce:[250,1e3],home:[1500,1e3],jump:[3e3,300],land:[3500,300],nut:[4e3,500],fall:[5e3,1200]
}
}
),music=new Howl(
{
urls:["audio/music.ogg","audio/music.m4a""],volume:0.25,loop:!0
}
));
var panel,hud,background,acornScore,aBranches,aAcorns,aLeaves,targSpeedX,squirrel,branchId,stumpDist,flipPosX,lastBranchY,trackX,trackY,level,branchFloors,leafDropInc,totalScore=0,levelScore=0,speedX=0,speedY=0,aBranchWidthGaps=new Array(100,150,200,250),aBranchHeightGaps=new Array(0,50,-50),aAcornHeights=new Array(0,-60),nextBranchWidthGap="start",isRight=!0;
loadPreAssets()
© 2023 Quttera Ltd. All rights reserved.