STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228023
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2560 · P5119

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/91930579?noj=FRM91930579-19DC" width="1" height="1"></div>

Isaac_1.50.swf

This is the info page for
Flash #237164

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 315 { } movieClip 349 { } movieClip 356 b500 { frame 1 { stop(); } frame 18 { done = true; } } movieClip 357 soundz { } movieClip 360 p0 { frame 19 { done = true; } } movieClip 362 necksegment2 { frame 1 { _visible = false; } } movieClip 367 { frame 4 { stop(); } } movieClip 371 { } movieClip 373 { } // unknown tag 88 length 65 movieClip 381 { frame 4 { stop(); } } movieClip 382 { } movieClip 404 { frame 1 { stop(); } } movieClip 444 { frame 1 { stop(); } } movieClip 460 { } movieClip 473 { frame 1 { stop(); } } movieClip 476 { } movieClip 484 { } movieClip 485 { frame 8 { stop(); } } movieClip 487 { } movieClip 489 { } movieClip 491 { } movieClip 493 { } movieClip 502 { } movieClip 504 { } movieClip 507 { } movieClip 509 { } movieClip 517 { } movieClip 536 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } button 539 { on (release, keyPress '<Space>') { _root.a.unpause = true; } } button 542 { on (release, keyPress '<Escape>') { gotoAndStop(6); } } button 545 { on (rollOver) { _root.showoff = _currentframe; } } movieClip 675 { } button 679 { on (release, keyPress '<Enter>') { gotoAndStop(5); } } movieClip 686 { } movieClip 693 { frame 1 { gotoAndStop(_root.skiner + 1); } } movieClip 774 { } movieClip 785 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } button 788 { on (release) { _root.levz = undefined; _root.a.moveon(); _root.door = undefined; _root.gotoAndStop('menu'); } } button 791 { on (release, keyPress '<Space>') { _root.a.moveon(); _root.levz = undefined; _root.door = undefined; _root.a.newstart(true); _root.gotoAndStop('reset'); } } movieClip 856 { frame 1 { gotoAndStop(_root.unlll); } } movieClip 857 { frame 1 { stop(); gogo = true; } frame 87 { nogo = false; } } button 862 { on (release) { gotoAndStop(8); } } button 865 { on (release, keyPress '<Escape>') { if (_root._currentframe == 2) { gotoAndStop(2); } else { gotoAndStop(1); _root.men.men.pos = -1; _root.men.men.fire = 30; } } } button 869 { on (release) { _root.doit(this); _root.showit(); } } button 873 { on (release) { _root.doit(this); _root.showit(); } } movieClip 874 { } button 879 { on (release) { _root.qua('HIGH'); } } movieClip 880 { } button 885 { on (release) { _root.qua('MEDIUM'); } } movieClip 886 { } button 891 { on (release) { _root.qua('AUTO'); } } movieClip 892 { } button 897 { on (release) { _root.qua('LOW'); } } movieClip 898 { } movieClip 900 { } // unknown tag 88 length 78 button 904 { on (release) { _root.reser(_currentframe); } } movieClip 912 { } button 916 { on (release) { _root.wiq(2); } } movieClip 917 { } button 918 { on (release) { _root.wiq(true); } } movieClip 919 { } button 923 { on (release) { _root.wiq(false); } } movieClip 924 { } button 927 { on (release) { _root.a.unpause = true; } } button 928 { on (release) { _root.levz = undefined; _root.a.moveon(); _root.door = undefined; _root.gotoAndStop('menu'); } } button 933 { on (release, keyPress '<Enter>') { _root.levz = undefined; _root.a.moveon(); _root.door = undefined; _root.gotoAndStop('menu'); } } button 936 { on (release, keyPress '<Escape>') { gotoAndStop(2); } } button 939 { on (release) { so = SharedObject.getLocal('so', '/'); so.clear(); so.flush(); var myAppPath = mdm.Application.path; mdm.FileSystem.deleteFile(myAppPath + 'serial.txt'); _root.soz(); _parent.prevFrame(); } } button 940 { on (release, keyPress '<Escape>') { _parent.prevFrame(); } } movieClip 941 { } button 943 { on (release, keyPress '<Escape>') { gotoAndStop(5); } } movieClip 944 { frame 1 { function itit() { f2 = true; f3 = true; i = 0; while (i < 20) { trg = this['i' + i]; f1 = _root.cols[i]; if (f1 > 0) { trg.gotoAndStop(f1); } else { if (_root.colit > 0 && f2) { f2 = false; trg.gotoAndStop(_root.colit); } else { if (_root.it == 11 && f3) { f3 = false; if (_root.pilc >= 7) { trg.gotoAndStop(61); } else { trg.gotoAndStop(43); } } else { trg._visible = false; } } } ++i; } } stop(); } frame 2 { itit(); } frame 3 { itit(); _root.unl.gogo = true; } frame 5 { _root.qshow(); itit(); _root.showit(); } frame 6 { itit(); } frame 8 { _root.qshow(); itit(); _root.showit(); } } movieClip 946 { } movieClip 949 { } movieClip 951 { frame 9 { _parent.prevFrame(); } } movieClip 952 { frame 7 { _parent.nextFrame(); } } movieClip 953 { } movieClip 954 { } movieClip 956 { } movieClip 959 { frame 83 { stop(); _visible = false; } } movieClip 960 hud { frame 1 { _visible = false; } } movieClip 964 { } movieClip 966 { } movieClip 967 hearter { } movieClip 969 { } movieClip 970 { } movieClip 985 { } movieClip 987 { } movieClip 1045 { frame 41 { _parent.nextFrame(); } } movieClip 1046 fireblock { frame 1 { stop(); fire = true; } } movieClip 1047 emptyz { } movieClip 1053 { } movieClip 1062 { } movieClip 1077 { frame 23 { stop(); } } movieClip 1079 { } movieClip 1080 { frame 19 { _parent.gotoAndStop(1); } } movieClip 1081 breakblock { frame 1 { stop(); } } movieClip 1086 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 1087 bloo { frame 141 { done = true; } } movieClip 1089 { } movieClip 1090 batter { } movieClip 1094 { } movieClip 1095 b9 { frame 1 { stop(); } frame 18 { done = true; } } movieClip 1099 gibs-red { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 1100 { } movieClip 1109 b8 { frame 1 { stop(); } frame 18 { done = true; } } movieClip 1111 { } movieClip 1113 { } movieClip 1115 { } movieClip 1117 { } movieClip 1119 { } movieClip 1121 { } movieClip 1123 { } movieClip 1124 { } movieClip 1126 { } movieClip 1127 { } movieClip 1128 { frame 15 { _parent.nextFrame(); } } movieClip 1129 { } movieClip 1131 { } movieClip 1133 { } movieClip 1135 { } movieClip 1136 { } movieClip 1169 { } movieClip 1170 { } movieClip 1171 { } movieClip 1173 { } movieClip 1175 { } movieClip 1176 { } movieClip 1177 { } movieClip 1178 { } movieClip 1179 { } movieClip 1180 { } movieClip 1181 { } movieClip 1182 { } movieClip 1183 b74 { frame 1 { stop(); h.stop(); } } movieClip 1187 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 1188 b7 { frame 1 { stop(); } frame 18 { done = true; } } movieClip 1191 { } movieClip 1192 { } movieClip 1194 { } movieClip 1195 { } movieClip 1196 { } movieClip 1197 b54 { frame 1 { stop(); } } movieClip 1199 { } movieClip 1201 { } movieClip 1203 { } movieClip 1205 { } movieClip 1207 { } movieClip 1208 { } movieClip 1210 { } movieClip 1211 { } movieClip 1213 { } movieClip 1214 { } movieClip 1216 { } movieClip 1217 { } movieClip 1220 { } movieClip 1221 { } movieClip 1222 b45 { } movieClip 1225 { } movieClip 1275 b2 { frame 1 { stop(); } frame 18 { done = true; } } movieClip 1276 { } movieClip 1278 { } movieClip 1279 { frame 18 { stop(); } } movieClip 1280 { } movieClip 1281 b42 { } movieClip 1289 { frame 1 { if (_parent._parent._parent._parent.s != 4) { _visible = false; } } } movieClip 1292 { } movieClip 1293 { } movieClip 1295 { frame 1 { stop(); } } movieClip 1296 { frame 59 { _parent._parent.dones = true; _parent.gotoAndStop(3); } } movieClip 1312 { } movieClip 1313 { } movieClip 1314 { frame 26 { _root.soundy('Fetus_Land_1.wav', 100); } frame 35 { _parent.gotoAndStop(1); } } movieClip 1315 { } movieClip 1316 b4 { frame 1 { stop(); } } movieClip 1318 { } movieClip 1320 { } movieClip 1322 { } movieClip 1324 { } movieClip 1325 { } movieClip 1327 { } movieClip 1328 { } movieClip 1329 { } movieClip 1331 { } movieClip 1332 { } movieClip 1333 { frame 9 { now = true; } } movieClip 1335 { } movieClip 1337 { } movieClip 1339 { } movieClip 1340 { frame 16 { now = true; } } movieClip 1341 { frame 16 { now = true; } } movieClip 1342 { frame 16 { now = true; } } movieClip 1343 { frame 5 { now = true; } frame 8 { if (_root.a.ball.length < 15) { now = true; } } } movieClip 1344 { frame 18 { now = true; } } movieClip 1345 b36 { } movieClip 1348 { frame 1 { _root.a.gish(this); } } movieClip 1351 { frame 1 { _root.a.gish(this); } } movieClip 1354 { frame 1 { _root.a.gish(this); } } movieClip 1357 { frame 1 { _root.a.gish(this); } } movieClip 1360 { frame 1 { _root.a.gish(this); } } movieClip 1363 { frame 1 { _root.a.gish(this); } } movieClip 1366 { frame 1 { _root.a.gish(this); } } movieClip 1369 { frame 1 { _root.a.gish(this); } } movieClip 1372 { frame 1 { _root.a.gish(this); } } movieClip 1375 { frame 1 { _root.a.gish(this); } } movieClip 1378 { frame 1 { _root.a.gish(this); } } movieClip 1381 { frame 1 { _root.a.gish(this); } } movieClip 1384 { frame 1 { _root.a.gish(this); } } movieClip 1387 { frame 1 { _root.a.gish(this); } } movieClip 1390 { frame 1 { _root.a.gish(this); } } movieClip 1391 { frame 1 { stop(); } } movieClip 1394 { frame 1 { _root.a.gish(this); } } movieClip 1397 { frame 1 { _root.a.gish(this); } } movieClip 1399 { } movieClip 1402 { frame 1 { _root.a.gish(this); } } movieClip 1403 { frame 22 { _parent.gotoAndStop(1); } } movieClip 1404 { frame 22 { _parent.gotoAndStop(1); } } movieClip 1405 { frame 22 { _parent.gotoAndStop(1); } } movieClip 1406 { } movieClip 1407 { } movieClip 1408 { } movieClip 1409 { } movieClip 1420 { } movieClip 1421 { } movieClip 1422 { } movieClip 1423 { } movieClip 1424 { } movieClip 1425 { } movieClip 1426 b28 { } movieClip 1428 { } movieClip 1430 { } movieClip 1432 { } movieClip 1434 { } movieClip 1436 { } movieClip 1438 { } movieClip 1440 { } movieClip 1442 { } movieClip 1444 { } movieClip 1445 { } movieClip 1446 { } movieClip 1447 { } movieClip 1448 { } movieClip 1459 { } movieClip 1460 { } movieClip 1461 { } movieClip 1462 b20 { frame 1 { stop(); h.stop(); } } movieClip 1467 { frame 1 { stop(); } } movieClip 1468 { } movieClip 1469 { } movieClip 1474 { frame 1 { stop(); } } movieClip 1475 { } movieClip 1476 { } movieClip 1478 { } movieClip 1479 { } movieClip 1480 b19 { frame 1 { stop(); h.stop(); } } movieClip 1483 { } movieClip 1484 { } movieClip 1485 b17 { frame 1 { stop(); } } movieClip 1487 { } movieClip 1500 { } movieClip 1501 { } movieClip 1502 b11 { frame 1 { stop(); } } movieClip 1504 { } movieClip 1505 { } movieClip 1519 { } movieClip 1533 { } movieClip 1534 { frame 1 { stop(); } } movieClip 1536 { } movieClip 1537 { } movieClip 1539 { } movieClip 1542 { } movieClip 1543 { } movieClip 1556 { } movieClip 1569 { } movieClip 1570 { } movieClip 1583 { } movieClip 1596 { } movieClip 1597 { } movieClip 1600 { } movieClip 1601 { } movieClip 1605 { } movieClip 1606 { } movieClip 1608 { } movieClip 1609 { } movieClip 1613 { } movieClip 1614 { } movieClip 1628 { } movieClip 1641 { } movieClip 1642 { } movieClip 1648 { } movieClip 1656 { } movieClip 1658 { } movieClip 1671 { } movieClip 1684 { } movieClip 1685 { frame 1 { stop(); } } movieClip 1697 { } movieClip 1710 { } movieClip 1711 { frame 1 { stop(); } } movieClip 1717 { } movieClip 1725 { } movieClip 1727 { } movieClip 1740 { } movieClip 1753 { } movieClip 1754 { frame 1 { stop(); } } movieClip 1756 { } movieClip 1757 { } movieClip 1760 { } movieClip 1772 { } movieClip 1773 { } movieClip 1775 { } movieClip 1776 { } movieClip 1782 { } movieClip 1783 { } movieClip 1785 { } movieClip 1787 { } movieClip 1789 { } movieClip 1792 { } movieClip 1793 { frame 1 { stop(); } } movieClip 1797 { frame 1 { stop(); } } movieClip 1802 { frame 1 { stop(); } } movieClip 1803 { frame 1 { stop(); } } movieClip 1812 { frame 1 { stop(); } } movieClip 1817 { } movieClip 1822 { } movieClip 1827 { } movieClip 1832 { } movieClip 1837 { } movieClip 1843 { } movieClip 1848 { } movieClip 1853 { frame 1 { stop(); } } movieClip 1858 { frame 1 { stop(); } } movieClip 1863 { frame 1 { stop(); } } movieClip 1868 { } movieClip 1870 { } movieClip 1871 { } movieClip 1876 { } movieClip 1881 { } movieClip 1885 { } movieClip 1889 { } movieClip 1894 { } movieClip 1899 { } movieClip 1904 { } movieClip 1909 { } movieClip 1914 { } movieClip 1918 { } movieClip 1924 { } movieClip 1925 { } movieClip 1930 { } movieClip 1935 { } movieClip 1939 { } movieClip 1944 { } movieClip 1947 { } movieClip 1951 { } movieClip 1955 { frame 1 { stop(); } } movieClip 1960 { } movieClip 1963 { } movieClip 1968 { } movieClip 1975 { } movieClip 1984 { } movieClip 1993 { frame 1 { stop(); } } movieClip 1995 { } movieClip 1996 { } movieClip 2001 { } movieClip 2002 { frame 1 { stop(); } } movieClip 2007 { } movieClip 2015 { frame 1 { stop(); } } movieClip 2024 { frame 1 { stop(); } } movieClip 2033 { frame 1 { stop(); } } movieClip 2042 { frame 1 { stop(); } } movieClip 2051 { frame 1 { stop(); } } movieClip 2060 { frame 1 { stop(); } } movieClip 2069 { frame 1 { stop(); } } movieClip 2072 { } movieClip 2075 { } movieClip 2078 { } movieClip 2079 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 2088 { } movieClip 2096 { } movieClip 2100 { frame 1 { stop(); } } movieClip 2109 { frame 1 { stop(); } } movieClip 2118 { frame 1 { stop(); } } movieClip 2127 { frame 1 { stop(); } } movieClip 2132 { } movieClip 2135 { } movieClip 2140 { } movieClip 2144 { frame 1 { stop(); } } movieClip 2147 { } movieClip 2150 { } movieClip 2151 { } movieClip 2154 { frame 1 { stop(); } } movieClip 2163 { frame 1 { stop(); } } movieClip 2172 { frame 1 { stop(); } } movieClip 2179 { } movieClip 2186 { } movieClip 2193 { } movieClip 2198 { frame 1 { stop(); } } movieClip 2207 { frame 1 { stop(); } } movieClip 2216 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 2225 { frame 1 { stop(); } } movieClip 2234 { frame 1 { stop(); } } movieClip 2243 { frame 1 { stop(); } } movieClip 2249 { } movieClip 2252 { } movieClip 2255 { } movieClip 2258 { } movieClip 2263 { frame 1 { stop(); } } movieClip 2272 { frame 1 { stop(); } } movieClip 2281 { frame 1 { stop(); } } movieClip 2294 { frame 1 { stop(); } } movieClip 2307 { frame 1 { stop(); } } movieClip 2316 { frame 1 { stop(); } } movieClip 2325 { frame 1 { stop(); } } movieClip 2332 { } movieClip 2333 { } movieClip 2334 { } movieClip 2341 { } movieClip 2342 { } movieClip 2343 { } movieClip 2350 { } movieClip 2351 { } movieClip 2352 { } movieClip 2358 { } movieClip 2364 { frame 1 { stop(); } } movieClip 2370 { } movieClip 2372 { } movieClip 2373 { frame 1 { stop(); } } movieClip 2382 { frame 1 { stop(); } } movieClip 2383 { frame 1 { stop(); } } movieClip 2384 { } movieClip 2387 { } movieClip 2388 { } movieClip 2399 { } movieClip 2400 { } movieClip 2402 { } movieClip 2404 { } movieClip 2406 { } movieClip 2411 { } movieClip 2415 { } movieClip 2417 { } movieClip 2418 { } movieClip 2420 { } movieClip 2421 { } movieClip 2422 { } movieClip 2423 { } movieClip 2424 { } movieClip 2425 { } movieClip 2427 { } movieClip 2429 { } movieClip 2489 { } movieClip 2502 { } movieClip 2555 { frame 1 { stop(); } } movieClip 2556 { } movieClip 2557 { } movieClip 2560 { } movieClip 2561 { } movieClip 2563 { } movieClip 2564 { frame 20 { gotoAndPlay(1); } frame 21 { stop(); } } movieClip 2566 { } movieClip 2567 { } movieClip 2568 { frame 42 { stop(); } } movieClip 2569 { } movieClip 2570 { frame 42 { stop(); } } movieClip 2571 { } movieClip 2572 { frame 42 { stop(); } } movieClip 2573 { frame 42 { stop(); } } movieClip 2575 { } movieClip 2576 { frame 42 { stop(); } } movieClip 2577 { frame 42 { stop(); } } movieClip 2579 { } movieClip 2580 { frame 42 { stop(); } } movieClip 2581 { } movieClip 2583 { } movieClip 2585 { } movieClip 2587 { } movieClip 2588 { } movieClip 2592 { } movieClip 2593 { } movieClip 2594 { } movieClip 2595 { } movieClip 2596 { } movieClip 2597 { } movieClip 2598 { } movieClip 2601 { } movieClip 2602 { } movieClip 2603 { } movieClip 2604 { } movieClip 2607 { } movieClip 2611 { } movieClip 2612 { } movieClip 2614 { } movieClip 2616 { } movieClip 2617 { } movieClip 2619 { } movieClip 2620 { frame 78 { stop(); } } movieClip 2622 { } movieClip 2623 { } movieClip 2624 { frame 78 { stop(); } } movieClip 2626 { } movieClip 2627 { } movieClip 2628 { frame 78 { stop(); } } movieClip 2630 { } movieClip 2631 { } movieClip 2632 { frame 78 { stop(); } } movieClip 2634 { } movieClip 2635 { } movieClip 2636 { frame 78 { stop(); } } movieClip 2638 { } movieClip 2639 { } movieClip 2640 { frame 78 { stop(); } } movieClip 2642 { } movieClip 2643 { } movieClip 2644 { frame 78 { stop(); } } movieClip 2645 { } movieClip 2647 { } movieClip 2648 { } movieClip 2649 { } movieClip 2654 { } movieClip 2656 { } movieClip 2661 { } movieClip 2669 { } movieClip 2677 { } movieClip 2685 { } movieClip 2696 { } movieClip 2704 { } movieClip 2712 { } movieClip 2713 { } movieClip 2714 { } movieClip 2715 { } movieClip 2717 { } movieClip 2718 { } movieClip 2720 { } movieClip 2721 { } movieClip 2726 { } movieClip 2729 { } movieClip 2730 { } movieClip 2735 { } movieClip 2738 { } movieClip 2739 { } movieClip 2740 { frame 20 { stop(); } } movieClip 2741 { frame 20 { stop(); } } movieClip 2742 { frame 21 { stop(); } } movieClip 2743 { frame 20 { stop(); } } movieClip 2744 { frame 20 { stop(); } } movieClip 2745 { frame 20 { stop(); } } movieClip 2746 { frame 21 { stop(); } } movieClip 2747 { } movieClip 2749 { } movieClip 2750 b1 { frame 1 { stop(); } } movieClip 2752 { } movieClip 2755 { frame 1 { if (_root.locker[45]) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 2756 { } movieClip 2758 { } movieClip 2759 { } movieClip 2760 { } movieClip 2761 { } movieClip 2762 { } movieClip 2763 { frame 14 { stop(); } } movieClip 2764 b78 { } movieClip 2766 { } movieClip 2767 { } movieClip 2769 { } movieClip 2770 { } movieClip 2772 { } movieClip 2776 { } movieClip 2777 { } movieClip 2782 { } movieClip 2792 { } movieClip 2801 { } movieClip 2805 { } movieClip 2806 { frame 17 { stop(); } } movieClip 2807 b62 { } movieClip 2821 { } movieClip 2834 { } movieClip 2835 { } movieClip 2844 { frame 1 { stop(); } } movieClip 2845 { } movieClip 2847 { } movieClip 2849 { } movieClip 2851 { } movieClip 2855 { } movieClip 2856 { } movieClip 2858 { } movieClip 2860 { } movieClip 2861 { } movieClip 2862 b52 { frame 1 { stop(); h.stop(); } } movieClip 2864 { } movieClip 2866 { } movieClip 2868 { } movieClip 2870 { } movieClip 2872 { } movieClip 2874 { } movieClip 2876 { } movieClip 2877 { } movieClip 2878 { } movieClip 2879 { } movieClip 2881 { } movieClip 2882 { } movieClip 2884 { } movieClip 2885 { frame 37 { gotoAndStop(_currentframe - 2); } } movieClip 2887 { } movieClip 2888 { frame 27 { _parent.nextFrame(); } } movieClip 2889 { } movieClip 2902 { } movieClip 2915 { } movieClip 2916 { } movieClip 2920 { } movieClip 2923 { } movieClip 2924 b65 { } movieClip 2926 { } movieClip 2928 { } movieClip 2930 { } movieClip 2932 { } movieClip 2933 { } movieClip 2934 { } movieClip 2935 { } movieClip 2937 { } movieClip 2938 { } movieClip 2940 { } movieClip 2941 { frame 27 { _parent.nextFrame(); } } movieClip 2942 { } movieClip 2943 { } movieClip 2944 { } movieClip 2946 { } movieClip 2947 { } movieClip 2948 b63 { } movieClip 2951 { frame 1 { _root.a.gish(this); } } movieClip 2954 { frame 1 { _root.a.gish(this); } } movieClip 2957 { frame 1 { _root.a.gish(this); } } movieClip 2958 { } movieClip 2961 { frame 1 { _root.a.gish(this); } } movieClip 2964 { frame 1 { _root.a.gish(this); } } movieClip 2965 { } movieClip 2968 { frame 1 { _root.a.gish(this); } } movieClip 2971 { frame 1 { _root.a.gish(this); } } movieClip 2972 { } movieClip 2973 { } movieClip 2976 { frame 1 { _root.a.gish(this); } } movieClip 2977 { } movieClip 2978 { } movieClip 2979 { } movieClip 2980 b43 { frame 1 { stop(); h.stop(); } } movieClip 2990 { frame 1 { stop(); } } movieClip 3002 { } movieClip 3015 { } movieClip 3016 { } movieClip 3018 { } movieClip 3019 { } movieClip 3022 { } movieClip 3023 b50 { frame 1 { stop(); h.stop(); } } movieClip 3025 { } movieClip 3027 { } movieClip 3030 { } movieClip 3031 { frame 1 { function onEnterFrame() { gotoAndStop(_root.slugeye); } gotoAndStop(_root.slugeye); } } movieClip 3032 { } movieClip 3033 { } movieClip 3034 { } movieClip 3036 { } movieClip 3038 { } movieClip 3039 { } movieClip 3040 { } movieClip 3042 { } movieClip 3044 { } movieClip 3045 { } movieClip 3046 { } movieClip 3048 { } movieClip 3049 { } movieClip 3050 { frame 33 { _parent.nextFrame(); } } movieClip 3051 { } movieClip 3052 b68 { frame 1 { stop(); h.stop(); } } movieClip 3054 { } movieClip 3058 { } movieClip 3060 { } movieClip 3061 { } movieClip 3062 { } movieClip 3063 { } movieClip 3065 { } movieClip 3068 { } movieClip 3069 { } movieClip 3072 { } movieClip 3073 { } movieClip 3074 { } movieClip 3075 b67 { frame 1 { stop(); h.stop(); } } movieClip 3077 { } movieClip 3079 { } movieClip 3081 { } movieClip 3084 { } movieClip 3085 { } movieClip 3086 { } movieClip 3087 { } movieClip 3090 { } movieClip 3092 { } movieClip 3093 b51 { frame 1 { stop(); h.stop(); } } movieClip 3095 { } movieClip 3097 { } movieClip 3099 { } movieClip 3101 { } movieClip 3102 { } movieClip 3103 { } movieClip 3104 { } movieClip 3106 { } movieClip 3108 { } movieClip 3109 { } movieClip 3110 { } movieClip 3111 { } movieClip 3113 { } movieClip 3114 { } movieClip 3116 { } movieClip 3117 { } movieClip 3118 b69 { frame 1 { stop(); } } movieClip 3120 { } movieClip 3121 { } movieClip 3122 b48 { frame 1 { stop(); h.stop(); } } movieClip 3123 { } movieClip 3124 b47 { frame 1 { stop(); h.stop(); } } movieClip 3127 { frame 1 { stop(); } } movieClip 3129 { } movieClip 3136 { } movieClip 3137 b46 { frame 1 { stop(); h.stop(); } } movieClip 3140 { } movieClip 3142 { } movieClip 3154 { } movieClip 3156 { } movieClip 3159 { } movieClip 3161 { } movieClip 3164 { } movieClip 3166 { } movieClip 3168 { } movieClip 3170 { } movieClip 3173 { } movieClip 3176 { } movieClip 3178 { } movieClip 3181 { } movieClip 3183 { } movieClip 3184 b49 { frame 1 { stop(); h.stop(); } } movieClip 3187 { } movieClip 3188 { } movieClip 3189 { } movieClip 3192 { } movieClip 3193 { } movieClip 3194 { } movieClip 3197 { } movieClip 3198 { } movieClip 3199 b71 { frame 1 { stop(); h.stop(); } } movieClip 3201 { } movieClip 3204 { } movieClip 3205 { frame 1 { stop(); } } movieClip 3206 { } movieClip 3207 { frame 9 { doit = true; } } movieClip 3208 { frame 8 { doit = true; } frame 10 { doit = true; } frame 13 { doit = true; } frame 15 { doit = true; } frame 17 { doit = true; } frame 19 { doit = true; } frame 21 { doit = true; } frame 23 { doit = true; } } movieClip 3209 { } movieClip 3210 b60 { frame 1 { stop(); } } movieClip 3212 { } movieClip 3214 { } movieClip 3216 { } movieClip 3218 { } movieClip 3220 { } movieClip 3222 { } movieClip 3223 { } movieClip 3224 { } movieClip 3225 { } movieClip 3226 { } movieClip 3227 { } movieClip 3229 { } movieClip 3230 { } movieClip 3231 b59 { frame 1 { stop(); } } movieClip 3234 { } movieClip 3235 { } movieClip 3238 { } movieClip 3239 { } movieClip 3240 b56 { frame 1 { stop(); } } movieClip 3242 { } movieClip 3251 { frame 1 { stop(); } } movieClip 3252 { } movieClip 3254 { } movieClip 3255 { } movieClip 3256 b53 { frame 1 { stop(); h.stop(); } } movieClip 3259 { frame 1 { _root.a.gish(this); } } movieClip 3262 { frame 1 { _root.a.gish(this); } } movieClip 3265 { frame 1 { _root.a.gish(this); } } movieClip 3268 { frame 1 { _root.a.gish(this); } } movieClip 3269 { } movieClip 3272 { frame 1 { _root.a.gish(this); } } movieClip 3273 { } movieClip 3276 { frame 1 { _root.a.gish(this); } } movieClip 3279 { frame 1 { _root.a.gish(this); } } movieClip 3280 { } movieClip 3283 { frame 1 { _root.a.gish(this); } } movieClip 3284 { } movieClip 3285 { } movieClip 3288 { frame 1 { _root.a.gish(this); } } movieClip 3291 { frame 1 { _root.a.gish(this); } } movieClip 3292 { } movieClip 3293 { frame 18 { _parent.nextFrame(); } } movieClip 3294 { } movieClip 3295 b79 { } movieClip 3302 { } movieClip 3303 { } movieClip 3304 { } movieClip 3306 { } movieClip 3308 { } movieClip 3309 { } movieClip 3310 { } movieClip 3311 b58 { frame 1 { stop(); } } movieClip 3315 { } movieClip 3316 { } movieClip 3317 { } movieClip 3318 { } movieClip 3319 b57 { frame 1 { stop(); } } movieClip 3324 { } movieClip 3329 { } movieClip 3330 { } movieClip 3335 { } movieClip 3340 { } movieClip 3341 { } movieClip 3342 { } movieClip 3347 { } movieClip 3352 { } movieClip 3353 { } movieClip 3354 b55 { frame 1 { stop(); } } movieClip 3357 { } movieClip 3358 { frame 26 { _parent.nextFrame(); } } movieClip 3359 locktile { frame 1 { stop(); } } movieClip 3364 { } movieClip 3365 { } movieClip 3366 { } movieClip 3367 b32 { frame 1 { stop(); } } movieClip 3371 { } movieClip 3374 { } movieClip 3375 { frame 1 { stop(); } } movieClip 3380 { frame 1 { stop(); } } movieClip 3381 { } movieClip 3383 { } movieClip 3384 b41 { frame 1 { stop(); h.stop(); } } movieClip 3386 { } movieClip 3387 { } movieClip 3389 { } movieClip 3390 { } movieClip 3392 { } movieClip 3393 { } movieClip 3394 { } movieClip 3395 b34 { frame 1 { stop(); } } movieClip 3398 { } movieClip 3401 { } movieClip 3402 { frame 1 { stop(); } } movieClip 3403 { } movieClip 3412 { } movieClip 3413 b26 { frame 1 { stop(); } } movieClip 3415 { } movieClip 3416 { } movieClip 3418 { } movieClip 3419 { } movieClip 3420 { } movieClip 3422 { } movieClip 3423 { } movieClip 3424 b21 { frame 1 { stop(); } } movieClip 3429 { } movieClip 3445 { } movieClip 3446 { } movieClip 3447 b61 { frame 1 { stop(); } } movieClip 3450 { } movieClip 3451 { } movieClip 3454 { } movieClip 3457 { } movieClip 3460 { } movieClip 3463 { } movieClip 3464 { } movieClip 3465 { } movieClip 3468 { } movieClip 3469 { } movieClip 3470 b15 { } movieClip 3479 { } movieClip 3480 { } movieClip 3481 b80 { frame 1 { stop(); } } movieClip 3484 { } movieClip 3488 { } movieClip 3489 { } movieClip 3499 { } movieClip 3500 b14 { frame 1 { stop(); } } movieClip 3504 { } movieClip 3533 { } movieClip 3543 { } movieClip 3544 b12 { frame 1 { stop(); } } movieClip 3545 { } movieClip 3546 b18 { frame 1 { stop(); } } movieClip 3548 { } movieClip 3550 { } movieClip 3552 { } movieClip 3553 { } movieClip 3554 { } movieClip 3555 { } movieClip 3557 { } movieClip 3559 { } movieClip 3560 { } movieClip 3562 { } movieClip 3563 { } movieClip 3564 { } movieClip 3565 { frame 33 { _parent.gotoAndStop(11); } } movieClip 3566 { } movieClip 3567 { } movieClip 3568 { } movieClip 3569 { } movieClip 3571 { } movieClip 3572 { } movieClip 3573 { } movieClip 3574 { } movieClip 3575 b66 { } movieClip 3577 { } movieClip 3578 { } movieClip 3580 { } movieClip 3581 { } movieClip 3582 { } movieClip 3584 { } movieClip 3585 { } movieClip 3587 { } movieClip 3588 { } movieClip 3590 { } movieClip 3591 { } movieClip 3592 { } movieClip 3593 b31 { frame 1 { stop(); } } movieClip 3595 { } movieClip 3597 { } movieClip 3599 { } movieClip 3601 { } movieClip 3602 { } movieClip 3604 { } movieClip 3606 { } movieClip 3607 { } movieClip 3609 { } movieClip 3610 { } movieClip 3611 { } movieClip 3612 { } movieClip 3613 { } movieClip 3615 { } movieClip 3617 { } movieClip 3618 { } movieClip 3619 b64 { } movieClip 3621 { } movieClip 3622 { } movieClip 3623 { } movieClip 3625 { } movieClip 3626 { } movieClip 3627 { } movieClip 3628 { } movieClip 3629 b38 { frame 1 { stop(); } } movieClip 3630 { } movieClip 3631 b39 { frame 1 { stop(); h.stop(); } } movieClip 3646 { frame 1 { stop(); } } movieClip 3647 { } movieClip 3648 { } movieClip 3649 { } movieClip 3650 b30 { } movieClip 3652 necksegment { frame 1 { _visible = false; } } movieClip 3654 { } movieClip 3655 b35 { frame 1 { stop(); h.stop(); } } movieClip 3657 { } movieClip 3658 { } movieClip 3659 { } movieClip 3660 { } movieClip 3661 b40 { frame 1 { stop(); } } movieClip 3663 { frame 1 { stop(); h.stop(); } } movieClip 3664 { } movieClip 3665 b44 { frame 1 { stop(); h.stop(); } } movieClip 3666 { } movieClip 3667 { } movieClip 3668 b29 { frame 1 { stop(); } } movieClip 3670 { } movieClip 3671 { } movieClip 3673 { } movieClip 3674 { } movieClip 3675 { } movieClip 3678 { } movieClip 3681 { } movieClip 3684 { } movieClip 3685 b23 { frame 1 { stop(); } } movieClip 3688 { } movieClip 3691 { } movieClip 3692 { } movieClip 3693 { } movieClip 3694 b25 { frame 1 { stop(); } } movieClip 3696 { } movieClip 3698 { } movieClip 3708 { frame 50 { _root.soundy('death_reverse.wav'); } frame 74 { _parent.hp += 15; _parent.outway = false; } } movieClip 3709 b24 { frame 1 { stop(); h.stop(); } } movieClip 3713 { } movieClip 3716 { } movieClip 3717 { frame 1 { stop(); } } movieClip 3721 { } movieClip 3722 { } movieClip 3726 { } movieClip 3728 { } movieClip 3729 { } movieClip 3730 b16 { frame 1 { stop(); } } movieClip 3733 { frame 1 { stop(); } } movieClip 3735 { frame 1 { _visible = false; } } movieClip 3736 { } movieClip 3737 { frame 9 { open = true; } frame 55 { open = false; } frame 62 { _parent.gotoAndStop(1); } } movieClip 3738 b27 { frame 1 { stop(); } } movieClip 3742 { frame 1 { stop(); } } movieClip 3743 { } movieClip 3744 { } movieClip 3745 { } movieClip 3748 { frame 1 { stop(); } } movieClip 3749 { } movieClip 3750 b22 { frame 1 { stop(); } } movieClip 3755 { } movieClip 3756 egg { frame 1 { stop(); egg = true; } } movieClip 3776 { frame 1 { stop(); } } movieClip 3784 { } movieClip 3786 { } movieClip 3787 b10 { frame 1 { stop(); h.stop(); } } movieClip 3789 { } movieClip 3791 { } movieClip 3793 { } movieClip 3796 { } movieClip 3797 { } movieClip 3798 { } movieClip 3799 { } movieClip 3802 { } movieClip 3805 { } movieClip 3806 { } movieClip 3810 { } movieClip 3814 { } movieClip 3815 { } movieClip 3817 { } movieClip 3818 { frame 15 { _parent.nextFrame(); } } movieClip 3819 { } movieClip 3820 { } movieClip 3821 b81 { } movieClip 3838 bloodsplash { frame 17 { done = true; } } movieClip 3839 { frame 1 { stop(); } } movieClip 3840 bullet1 { } movieClip 3845 { } movieClip 3847 { } movieClip 3849 { } movieClip 3851 { } movieClip 3853 { } movieClip 3855 { } movieClip 3856 { frame 41 { stop(); } } movieClip 3861 { } movieClip 3863 { } movieClip 3865 { } movieClip 3866 { frame 37 { stop(); } } movieClip 3867 { frame 1 { stop(); } } movieClip 3869 { } movieClip 3871 { } movieClip 3873 { } movieClip 3875 { } movieClip 3876 { } movieClip 3878 { } movieClip 3879 { } movieClip 3885 { } movieClip 3887 { } movieClip 3889 { } movieClip 3891 { } movieClip 3893 { } movieClip 3895 { } movieClip 3897 { } movieClip 3898 { } movieClip 3900 { } movieClip 3901 { } movieClip 3902 { } movieClip 3904 { } movieClip 3906 { } movieClip 3908 { } movieClip 3910 { } movieClip 3912 { } movieClip 3913 { } movieClip 3924 { } movieClip 3926 { } movieClip 3927 { } movieClip 3930 { } movieClip 3932 { } movieClip 3936 { } movieClip 3937 { } movieClip 3938 b84 { } movieClip 3940 { } movieClip 3941 b501 { } movieClip 3943 { } movieClip 3944 { } movieClip 3945 { } movieClip 3947 { } movieClip 3948 { } movieClip 3949 { frame 24 { _parent.nextFrame(); } } movieClip 3951 { } movieClip 3952 { } movieClip 3953 b83 { } movieClip 3968 { } movieClip 3969 { } movieClip 3970 b13 { frame 1 { stop(); } } movieClip 3983 { } movieClip 3985 { } movieClip 3986 { frame 1 { stop(); } } movieClip 3996 { } movieClip 3997 { frame 1 { stop(); } } movieClip 3998 { } movieClip 4000 { } movieClip 4001 { frame 1 { stop(); h.stop(); } } movieClip 4018 { } movieClip 4020 { frame 1 { stop(); } } movieClip 4023 { frame 1 { stop(); } } movieClip 4025 { frame 1 { stop(); } } movieClip 4027 { frame 1 { stop(); } } movieClip 4030 { } movieClip 4040 { } movieClip 4041 { frame 1 { stop(); } } movieClip 4043 b3 { frame 1 { stop(); } } movieClip 4046 { } movieClip 4047 { frame 192 { done = true; } } movieClip 4049 { } movieClip 4051 { } movieClip 4052 { } movieClip 4053 ball { } movieClip 4069 { } movieClip 4070 { frame 35 { _parent.gotoAndStop(1); } } movieClip 4071 { } movieClip 4074 { frame 1 { stop(); } } movieClip 4081 { } movieClip 4097 { } movieClip 4098 { frame 35 { _parent.gotoAndStop(1); } } movieClip 4099 { } movieClip 4100 { } movieClip 4116 { } movieClip 4117 { frame 35 { _parent.gotoAndStop(1); } } movieClip 4118 { } movieClip 4119 { } movieClip 4121 { } movieClip 4143 { frame 20 { stop(); } } movieClip 4148 { frame 22 { _parent.gotoAndStop(1); } } movieClip 4150 { } movieClip 4173 { frame 20 { stop(); } } movieClip 4185 { frame 19 { _parent.gotoAndStop(1); } } movieClip 4187 { } movieClip 4194 { } movieClip 4195 { } movieClip 4211 { } movieClip 4212 { frame 35 { _parent.gotoAndStop(1); } } movieClip 4213 { } movieClip 4215 { } movieClip 4217 { } movieClip 4219 { } movieClip 4221 { } movieClip 4223 { } movieClip 4224 { } movieClip 4226 { } movieClip 4228 { } movieClip 4229 { } movieClip 4230 { } movieClip 4232 { } movieClip 4233 { } movieClip 4234 { } movieClip 4236 { } movieClip 4237 { } movieClip 4239 { } movieClip 4240 { } movieClip 4241 { } movieClip 4242 { } movieClip 4243 { } movieClip 4246 { } movieClip 4247 { } movieClip 4250 { } movieClip 4252 { } movieClip 4254 { } movieClip 4256 { } movieClip 4258 { } movieClip 4259 { } movieClip 4261 { } movieClip 4262 { } movieClip 4263 { frame 61 { _parent._parent._parent.done = true; } } movieClip 4264 { } movieClip 4265 { } movieClip 4266 { } movieClip 4267 { } movieClip 4268 { } movieClip 4269 { frame 1 { stop(); } } movieClip 4271 { } movieClip 4273 { } movieClip 4285 { } movieClip 4291 { } movieClip 4297 { } movieClip 4303 { } movieClip 4316 { } movieClip 4329 { } movieClip 4342 { } movieClip 4343 { frame 1 { gotoAndStop(Math.min(7, _root.a.sk)); } } movieClip 4344 { frame 1 { stop(); } frame 56 { _root.a.nextcha(); } } movieClip 4345 { } movieClip 4355 { } movieClip 4357 { } movieClip 4358 { frame 49 { _parent.gotoAndStop(1); } } movieClip 4359 { } movieClip 4360 b5 { } movieClip 4362 { } movieClip 4364 { } movieClip 4366 { } movieClip 4367 { } movieClip 4368 { } movieClip 4369 { } movieClip 4370 { } movieClip 4371 b82 { } frame 1 { function nooo() { if (!linx) { mdm.Application.exit(); } else { fscommand('quit'); } } function ffss1(f0) { if (f0 == true) { f0 = 1; } if (f0 <= 0) { f0 = 0; } return f0; } function add(v1) { if (v1.length > 0) { f1 += ',' + ffss1(v1[0]); z = 1; while (z < v1.length) { f1 += '\'' + ffss1(v1[z]); ++z; } } else { if (v1 == undefined or !v1 or v1 == 'false') { v1 = 0; } f1 += ',' + v1; } } function sub(f3) { ++f1; var v1 = checker2[f1]; if (f3) { v1 = v1.split('\''); for (z in v1) { v1[z] *= 1; if (v1[z] <= 0) { v1[z] = 0; } } return v1; } else { if (v1 * 1 > 0) { v1 *= 1; } if (v1 == 'undefined') { v1 = undefined; } if (v1 == 'true') { v1 = true; } if (v1 == 'false') { v1 = false; } if (v1 == '0') { v1 = 0; } return v1; } } function aloc() { checker1 = new Array(200); e = 0; while (e < 200) { checker1[e] = checker[e]; ++e; } for (e in locker) { if (locker[e]) { f1 = e * 2 + 11; checker1[f1] += e % 4 + 1; if (checker1[f1] > 9) { checker1[f1] -= 9; } } } f1 = ''; e = 0; while (e < 200) { f1 += checker1[e]; ++e; } add(so.data.frog); add(so.data.left); add(so.data.frog); add(so.data.wins); add(so.data.shits); add(so.data.pill); add(so.data.dde); add(so.data.gams); add(so.data.bomb); add(so.data.deads); add(so.data.rocks); add(so.data.cols); add(so.data.boss); add(so.data.lcomp); add(so.data.mwin); if (!linx) { var v1 = mdm.Application.path; mdm.FileSystem.saveFile(v1 + 'serial.txt', f1); } } function aloc2() { if (!linx) { var v3 = mdm.Application.path; var v2 = mdm.FileSystem.loadFile(v3 + 'serial.txt'); checker2 = v2.split(','); f1 = 0; if (!so.data.cocks) { if (so.data.deads > 5) { so.data.cocks = true; } if (checker2.length > 10) { so.data.cocks = true; so.data.frog = sub(); so.data.left = sub(); so.data.frog = sub(); so.data.wins = sub(); so.data.shits = sub(); so.data.pill = sub(); so.data.dde = sub(); so.data.gams = sub(); so.data.bomb = sub(); so.data.deads = sub(); so.data.rocks = sub(); so.data.cols = sub(true); so.data.boss = sub(true); so.data.lcomp = sub(true); so.data.mwin = sub(true); } } checker1 = checker2[0].split(''); e = 0; while (e < 100) { if (!locker[e]) { f1 = e * 2 + 11; f2 = checker[f1] * 1 + (e % 4) * 1 + 1; if (f2 > 9) { f2 -= 9; } if (f2 == checker1[f1]) { ulocker[e] = true; locker[e] = ulocker[e]; _root.lockor.unshift(e); } } ++e; } } } function soundy(nam, vol, xxasda) { if (_root.soundonce[nam] == undefined or xxasda) { _root.soundonce[nam] = true; if (!so.data.soff or xxasda) { mpp = nam.indexOf('.mp3') <= 0; if (nam.indexOf('.mp') > 0 && mpp) { nam += '3'; } mpp = true; if (vol == undefined) { vol = 100; } vol *= _root.soundvol; v0 = _root.sz.length; f1 = false; f2 = f1; if (_root.bossl == _root.lev) { if (nam == 'bossintro.mp3' && _root.chaps == 6) { f1 = true; nam = 'm10-0.mp3'; _root.bossmusic = true; } else { if (nam == 'bossintro.mp3' && _root.chaps == 8) { f1 = true; nam = 'm8-0.mp3'; _root.bossmusic = true; } else { if (nam == 'bossintro.mp3' && _root.chaps > 8) { f1 = true; nam = 'm20-0.mp3'; _root.bossmusic = true; } } } } ++_root.szz; _root.sz[v0] = _root.attachMovie('soundz', 'sz' + _root.szz, _root.szz + 2000000000); _root.sz[v0].nam = nam; _root.sz[v0].s = new Sound(_root.sz[v0]); if (mpp) { _root.sz[v0].s.attachSound(nam); } else { _root.sz[v0].s.loadSound(nam, false); } z = 0; while (z < 25) { if (nam == 'm' + z + '-1.mp3') { f1 = true; f2 = true; if (z == 19) { vol = 0; } } if (nam == 'm' + z + '-0.mp3') { f1 = true; } ++z; } if (f1 or nam == 'bossintro.mp3' or nam == 'isaacbosswin.mp3' or nam == 'ambushwin.mp3' or nam == 'levelbumper.mp3' or nam == 'm1-2.mp3' or nam == 'm-b0.mp3' or nam == 'm-b1.mp3' or nam == 'isaactitleloop.mp3' or nam == 'credits1-0.mp3' or nam == 'credits1-1.mp3') { if (nam == 'bossintro.mp3') { _root.bossmusic = true; } if (_root.musc != undefined) { _root.fade = true; } if (nam == 'isaacbosswin.mp3' or nam == 'ambushwin.mp3') { _root.sz[v0].wining = true; } if (_root.amusc == undefined) { if (f2 or nam == 'm-b1.mp3' or nam == 'isaactitleloop.mp3') { _root.sz[v0].looper = true; _root.sz[v0].s.start(lop, 0); } else { _root.sz[v0].s.start(0, 0); } _root.amusc = _root.sz[v0]; vol = mvol; } _root.sz[v0].s.setVolume(vol); return _root.sz[v0]; } if (nam.indexOf('loop') > 0) { _root.sz[v0].s.start(0, 999999); _root.sz[v0].looper2 = true; } else { _root.sz[v0].s.start(0, 0); } if (nam.indexOf('Lightning_Zap') > 0) { light.dones = true; light = _root.sz[v0]; } _root.sz[v0].s.setVolume(vol); return _root.sz[v0]; } } } function soz() { so = SharedObject.getLocal('so', '/'); if (so.data.qqal == undefined) { qua('MEDIUM'); } else { qua(so.data.qqal); } _root.musicoff = so.data.moff; if (so.data.wins == undefined) { so.data.wins = 0; } if (so.data.shits == undefined) { so.data.shits = 0; } if (so.data.pill == undefined) { so.data.pill = 0; } if (so.data.dde == undefined) { so.data.dde = 0; } if (so.data.gams == undefined) { so.data.gams = 0; } if (so.data.bomb == undefined) { so.data.bomb = 0; } if (so.data.deads == undefined) { so.data.deads = 0; } if (so.data.rocks <= 0) { so.data.rocks = 0; } if (so.data.cols == undefined) { so.data.cols = []; } if (so.data.lock == undefined) { so.data.lock = []; } if (so.data.lockor == undefined) { so.data.lockor = []; } if (so.data.ulock == undefined) { so.data.ulock = []; } if (so.data.boss == undefined) { so.data.boss = []; } if (so.data.lcomp == undefined) { so.data.lcomp = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } if (so.data.mwin == undefined) { so.data.mwin = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } _root.minwin = so.data.mwin; _root.locker = so.data.lock; _root.lockor = so.data.lockor; _root.ulocker = so.data.ulock; _root.res = so.data.res; if (so.data.wind == undefined) { _root.hdd = true; } else { _root.hdd = so.data.wind; } aloc2(); aloc(); if (so.data.cols == undefined) { so.data.cols = []; } if (so.data.lock == undefined) { so.data.lock = []; } if (so.data.lockor == undefined) { so.data.lockor = []; } if (so.data.ulock == undefined) { so.data.ulock = []; } if (so.data.boss == undefined) { so.data.boss = []; } if (so.data.lcomp == undefined) { so.data.lcomp = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } if (so.data.mwin == undefined) { so.data.mwin = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } _root.colss = so.data.cols; _root.bossk = so.data.boss; _root.lcomp = so.data.lcomp; } function unlos() { if (_root.unl._currentframe > 2) { _root.unl.play(); } if ((_root.unl._currentframe == 1 or _root.unl.gogo) && !_root.unl.nogo) { _root.unl.gogo = false; f1 = 0; f3 = 1000; for (z in _root.locker) { if (_root.locker[z] && !_root.ulocker[z]) { f4 = z; if (f4 < f3) { f3 = f4; f1 = z; } } } if (f1 == 0) { } else { _root.unl.nogo = true; _root.unl.gotoAndPlay(4); _root.ulocker[f1] = true; _root.lockor.unshift(f1); _root.unlll = f3; if (acnam[f1] != 0) { callit(acnam[f1]); } } } if (_root._currentframe > 2) { _root.winners = so.data.wins; if (_root.winners >= 2) { _root.locker[8] = true; } if (_root.winners >= 3) { _root.locker[9] = true; } if (_root.winners >= 4) { _root.locker[10] = true; } if (_root.winners >= 5) { _root.locker[11] = true; } if (_root.winners >= 6) { _root.locker[42] = true; } if (_root.winners >= 7) { _root.locker[43] = true; } if (_root.winners >= 8) { _root.locker[44] = true; } if (_root.winners >= 9) { _root.locker[45] = true; } if (_root.winners >= 10) { _root.locker[12] = true; _root.locker[41] = true; } z = 0; while (z < 3) { _root.locker[z + 15] = _root.locker[z + 1]; ++z; } if (_root.locker[54]) { _root.locker[56] = true; _root.locker[57] = true; } } } function soundfra() { _root.soundonce = []; if (Key.isDown(77)) { if (nomute) { nomute = false; _root.musicoff = !_root.musicoff; } } else { nomute = true; } if (_root.musc == undefined) { _root.musc = _root.amusc; _root.amusc = undefined; } so.data.moff = _root.musicoff; if (_root.musc.nam == 'bossintro.mp3' && _root.musc.s.position > 4000) { fade = true; } if (_root.a.flyshut > 0) { if (_root.flyss == undefined) { _root.flyss = _root.soundy('insect_swarm_loop.wav', 100); } _root.flyss.s.setVolume(Math.min(150, _root.a.flyshut * 30 + 30)); } else { _root.flyss.dones = true; _root.flyss = undefined; } if (_root.dmusic && (_root.a.player.hp > 0 or _root._currentframe != 2)) { _root.dmusic = false; _root.fade = true; } if (_root.amas && !_root.amusic) { _root.amas = false; _root.fade = true; } if (_currentframe == 2 && _root.musc.nam == 'm1-2.mp3') { _root.fade = false; } if (_root.musicoff or _root.fade) { f1 = _root.musc.s.getVolume(); if (f1 > 5) { _root.musc.s.setVolume(f1 - 5); } else { _root.musc.done = true; _root.musc = undefined; _root.fade = false; if (introz or intro == 2) { introz = false; } else { intro = true; } } } else { if (_currentframe != 1 && _root._currentframe <= 5 or _currentframe == 20 or _currentframe == 21 or _currentframe == 41) { f5 = _root._currentframe == 2 && _root.lev == _root.gamb; f6 = _root._currentframe == 2 && _root.lev == _root.shopl && _root.lev != _root.minb; f7 = _root._currentframe == 2 && _root.lev == 166 && _root.kramper != _root.chaps; f8 = _root._currentframe == 2 && _root.lev == _root.hide && _root.lev != _root.minb; if (_root.musc == undefined && _root.amusc == undefined) { --menubeen; if (f8) { if (intro) { soundy('m15-0.mp3'); intro = false; } else { soundy('m15-1.mp3'); } } else { if (f7) { if (intro) { soundy('m14-0.mp3'); intro = false; } else { soundy('m14-1.mp3'); } } else { if (f6) { if (intro) { soundy('m13-0.mp3'); intro = false; } else { soundy('m13-1.mp3'); } } else { if (f5) { if (intro) { soundy('m12-0.mp3'); intro = false; } else { soundy('m12-1.mp3'); } } else { if (_root._currentframe == 20 or _root._currentframe == 21) { if (so.data.wins > 9) { if (intro) { soundy('m11-0.mp3'); intro = false; } else { soundy('m11-1.mp3'); } } else { if (intro) { soundy('credits1-0.mp3'); intro = false; } else { soundy('credits1-1.mp3'); } } } else { if (_root._currentframe == 5) { soundy('isaactitleloop.mp3'); } else { if (_root.bossmusic && !_root.dmusic) { if (_root.a.ashut > 0.9 or _root._currentframe == 4) { f1 = _root.lev == _root.bossl; if (_root.chaps == 6 && f1) { soundy('m10-1.mp3'); } else { if (_root.chaps == 8 && f1) { soundy('m8-1.mp3'); } else { if (_root.chaps == 9 && f1) { soundy('m20-1.mp3'); } else { if (_root.intro) { soundy('m-b0.mp3'); _root.intro = false; } else { soundy('m-b1.mp3'); } } } } } else { if (_root.intro == 2) { soundy('m9-1.mp3'); } else { if (_root.intro) { if (_root.a.fra > 50) { if (_root.lev == _root.bossl) { soundy('isaacbosswin.mp3', 35); } else { soundy('ambushwin.mp3', 85); } } _root.intro = 2; } else { soundy('m9-1.mp3'); } } } } else { f1 = Math.min(Math.round(_root.chaps / 2), 4); if (f1 <= 0) { f1 = 1; } if (_root.chaps == 9) { f1 = 19; } if (_root.dmusic) { _root.bossmusic = false; f1 = 7; } else { if (_root.amusic) { f1 = 6; if (_root.lev != chamb) { _root.amas = true; } } } if (intro) { soundy('m' + f1 + '-0.mp3'); intro = false; } else { soundy('m' + f1 + '-1.mp3'); } } } } } } } } } else { if (_root.mmus == undefined && _root.musc.s.getVolume() < mvol) { if (!_root.musc.wait) { f11 = Math.min(_root.musc.s.getVolume() + 1, mvol); _root.musc.s.setVolume(f11); } } } if (_root.musc.nam != undefined && !fader) { if (_root.bossmusic) { if (_root.lev != _root.bossl && _root.lev != _root.gamb && (_root.lev != 166 or _root.kramper != _root.chaps) && _root.lev != _root.minb && _root.lev != _root.chamb && _root._currentframe != 4) { _root.bossmusic = false; fade = true; } if (_root.a.ashut == 0 && _root.musc.nam != 'm9-0.mp3' && _root.musc.nam != 'm9-1.mp3' && _root.a.fra > 20 && _root.bossmusic != 2) { _root.bossmusic = 2; fade = true; } } if (_currentframe != 5 && _root.musc.nam == 'isaactitleloop.mp3') { _root.fade = true; } if (_currentframe == 5 && _root.musc.nam != 'isaactitleloop.mp3') { _root.fade = true; } if (f5 && _root.musc.nam != 'm12-1.mp3' && _root.musc.nam != 'm12-0.mp3') { _root.fade = true; } if (!f5 && (_root.musc.nam == 'm12-1.mp3' or _root.musc.nam == 'm12-0.mp3')) { _root.fade = true; } if (f6 && _root.musc.nam != 'm13-0.mp3' && _root.musc.nam != 'm13-1.mp3') { _root.fade = true; } if (!f6 && (_root.musc.nam == 'm13-0.mp3' or _root.musc.nam == 'm13-1.mp3')) { _root.fade = true; introz = true; } if (f7 && _root.musc.nam != 'm14-0.mp3' && _root.musc.nam != 'm14-1.mp3') { _root.fade = true; } if (!f7 && (_root.musc.nam == 'm14-0.mp3' or _root.musc.nam == 'm14-1.mp3')) { _root.fade = true; } if (f8 && _root.musc.nam != 'm15-0.mp3' && _root.musc.nam != 'm15-1.mp3') { _root.fade = true; } if (!f8 && (_root.musc.nam == 'm15-0.mp3' or _root.musc.nam == 'm15-1.mp3')) { _root.fade = true; introz = true; } if (_currentframe != 20 && _currentframe != 21 && (_root.musc.nam == 'credits1-0.mp3' or _root.musc.nam == 'credits1-1.mp3' or _root.musc.nam == 'm11-0.mp3' or _root.musc.nam == 'm11-1.mp3')) { _root.fade = true; } if ((_currentframe == 20 or _currentframe == 21) && (_root.musc.nam != 'credits1-0.mp3' && _root.musc.nam != 'credits1-1.mp3' && _root.musc.nam != 'm11-0.mp3' && _root.musc.nam != 'm11-1.mp3')) { _root.fade = true; } } } else { fade = true; } } for (e in sz) { trg = sz[e]; if (trg.dones) { f1 = trg.s.getVolume() - 20; trg.s.setVolume(f1); if (f1 < 20) { trg.done = true; } } if (trg.looper && trg.s.duration - lop2 < trg.s.position) { trg.s.stop(); trg.s.start(lop, 0); } if (_root.musc == trg && trg.s.duration - lop2 < trg.s.position) { trg.s.stop(); trg.done = true; _root.musc = undefined; } if (_root.musc == trg && trg.wining && trg.s.duration - 2500 < trg.s.position) { _root.musc = undefined; } if (_root.mmus == trg && trg.s.duration - 1000 < trg.s.position) { _root.mmus = undefined; } if (trg.s.duration == trg.s.position && !trg.looper && !trg.looper2 or trg.done) { if (_root.mmus == trg) { _root.mmus = undefined; } if (_root.musc == trg) { _root.musc = undefined; } trg.s.stop(); trg.swapDepths(100); removeMovieClip(trg); sz.splice(e, 1); } } if (random(1000) == 0) { f1 = []; e = 0; while (e < sz.length) { f1[e] = sz[e]; ++e; } sz = []; e = 0; while (e < f1.length) { sz[e] = f1[e]; ++e; } } if (_root.mmus != undefined) { _root.musc.s.setVolume(Math.max(5, _root.musc.s.getVolume() - 7)); } } function prelod() { lod = _root.getBytesLoaded(); tot = _root.getBytesTotal(); v1 = Math.round((lod / tot) * 100); v2 = (v1 - cent) * 0.5; v3 = 100; if (Key.isDown(65)) { v3 += 5; } cent += Math.min(v3, v2); if (_currentframe != 1) { prelod = undefined; } if (cent > 99.5) { v1 = passw.toLowerCase(); _root.gotoAndStop('intro'); } else {} } function fullf(f1) { if (linx) { hdd = true; _root._xscale = 125; _root._yscale = 125; _root.a.mapd(); _root._x = (1 - _root._xscale / 125) * 800 / 2; _root._y = (1 - _root._yscale / 125) * 600 / 2; } else { lasf = fra; if (f1) { so.data.full = !so.data.full; } fscommand('allowscale', 'false'); if (_root.res <= 0 or !win) { if (!wider) { if (wid > 1000) { _root.res = 6; } else { _root.res = 1; } } else { if (wid > 1200) { if (wider == 2) { _root.res = 5; } else { _root.res = 4; } } else { _root.res = 2; } } } if (so.data.full) { f2 = refs[_root.res][0]; f3 = refs[_root.res][1]; mdm.Forms.thisForm.showFullScreen(true); if (win) { mdm.System.DirectX.enable(f2, f3, colz); mdm.Forms.thisForm.hideCaption(true); } if (f2 >= 1000 && f3 >= 800) { _root._xscale = 166.7; } else { if (f2 >= 800 && f3 >= 700) { _root._xscale = 154; } else { if (f2 >= 720 && f3 >= 600) { _root._xscale = 125; } else { _root._xscale = 100; } } } } else { mdm.Forms.thisForm.showFullScreen(false); mdm.Application.restore(); if (win) { mdm.System.DirectX.disable(); mdm.Forms.thisForm.hideCaption(false); } if (hdd == 2) { mdm.Forms.thisForm.width = 1024; mdm.Forms.thisForm.height = 800; _root._xscale = 163.5; } else { if (hdd) { mdm.Forms.thisForm.width = 800; mdm.Forms.thisForm.height = 620; _root._xscale = 125; } else { mdm.Forms.thisForm.width = 640; mdm.Forms.thisForm.height = 510; _root._xscale = 100; } } } _root._yscale = _root._xscale; _root.a.mapd(); _root._x = (1 - _root._xscale / 125) * 800 / 2; _root._y = (1 - _root._yscale / 125) * 600 / 2; if (!so.data.full) { f1 = mdm.System.getResolution(); mdm.Forms.thisForm.x = (f1[0] - mdm.Forms.thisForm.width) / 2 - 2; mdm.Forms.thisForm.y = (f1[1] - mdm.Forms.thisForm.height) / 2 - 20; } } } function callit(f1) { if (!linx) { var v2 = mdm.Application.path; if (win) { var v3 = mdm.Process.create('My App', 0, 0, 500, 600, '', v2 + 'FlashAchievements.exe ' + f1, v2, 2, 4); } else { if (fuk) { mdm.Process.setParams(f1); f1 = ''; } else { f1 = ' ' + f1; } fuk = !fuk; var v3 = mdm.Process.create('My App', 0, 0, 500, 600, '', v2 + 'FlashAchievements ' + f1, v2, 2, 4); } } } function doit(trg) { switch (trg._name) { case 'b4': so.data.frog = !so.data.frog; break; case 'b3': so.data.left = !so.data.left; break; case 'b0': fullf(true); break; case 'b1': so.data.soff = !so.data.soff; break; case 'b2': _root.musicoff = !_root.musicoff; } } function wiq(f1) { _root.hdd = f1; so.data.wind = _root.hdd; showit(); fullf(); } function reser(f1) { if (win) { f2 = refs[f1]; _root.res = f1; so.data.res = _root.res; showit(); if (so.data.full) { fullf(); } } } function showit() { trg = _root.paus; _root.paus.b0.gotoAndStop(1); _root.paus.b1.gotoAndStop(1); _root.paus.b2.gotoAndStop(1); _root.paus.b3.gotoAndStop(1); _root.paus.b4.gotoAndStop(1); trg.wq0.gotoAndStop(2); trg.wq1.gotoAndStop(2); trg.wq2.gotoAndStop(2); if (_root.hdd == 2) { trg.wq0.gotoAndStop(1); } else { if (_root.hdd) { trg.wq1.gotoAndStop(1); } else { trg.wq2.gotoAndStop(1); } } if (!so.data.full) { _root.paus.b0.gotoAndStop(2); } if (!so.data.soff) { _root.paus.b1.gotoAndStop(2); } if (!so.data.frog) { _root.paus.b4.gotoAndStop(2); } if (!so.data.left) { _root.paus.b3.gotoAndStop(2); } if (_root.musicoff) { _root.paus.b2.gotoAndStop(2); } trg.r0.gotoAndStop(_root.res); e = 1; while (e < 8) { trg2 = trg['r' + e]; trg2.gotoAndStop(e); trg2.as._visible = e == _root.res; ++e; } } function qshow() { f1 = ['HIGH', 'MEDIUM', 'LOW', 'AUTO']; z = 0; while (z < 4) { trg = _root.paus['bq' + z]; if (f1[z] == qqua or z == 3 && qqua == undefined) { trg.gotoAndStop(1); } else { trg.gotoAndStop(2); } ++z; } } function qua(f1) { qqua = so.data.qqal; if (f1) { qqua = f1; } else { if (qqua == 'AUTO') { qqua = 'HIGH'; } else { if (qqua == 'MEDIUM') { qqua = 'LOW'; } else { if (qqua == 'LOW') { qqua = 'AUTO'; } else { qqua = 'MEDIUM'; } } } } if (qqua == 'AUTO') { _quality = 'MEDIUM'; } else { _quality = qqua; } _root.a.st22(qqua); so.data.qqal = qqua; qshow(); } function goblack() { if (_currentframe >= 3 && _currentframe < 10) { f1 = _currentframe; } else { f1 = 0; } if (ala != f1) { ala = f1; overlay2._alpha = 100; _root.hud._visible = false; } } function colorit(trg, f1, f2, f3, f4, f5, f6) { var v1 = new flash.geom.ColorTransform(); v1.redMultiplier = f1; v1.greenMultiplier = f2; v1.blueMultiplier = f3; v1.redOffset = f4; v1.greenOffset = f5; v1.blueOffset = f6; var v2 = new flash.geom.Transform(trg); v2.colorTransform = v1; } function uncolera() { trg2 = hud.it; if (itb >= 0) { if (itb % 5 == 0) { if (itb % 10 == 0) { } else {} } } --itb; } function darky(f1) { if (f1 != 150) { if (f1 > 0) { dark = f1; } } else { dark = 5; _root.men.men.pos = 4; fader = true; _root.musc.done = true; if (!_root.musicoff) { _root.soundy('m1-2.mp3'); } _root.intro = true; _root.fade = false; _root.chaps = 1; } if (dark > 0 or undark) { f1 = 2.5; f1 = getTimer() - dda; f1 /= 15; if (f1 > 15 or f1 <= 0) { f5 = 15; } if (fader) { dark += f1 * 2; if (dark > 160) { fader = false; _root.gotoAndStop('game'); } } dark -= f1; undark = dark > 0; f1 = 1 - dark / 100; f2 = 0; colo = new flash.geom.ColorTransform(); colo.redMultiplier = f1; colo.greenMultiplier = f1; colo.blueMultiplier = f1; colo.redOffset = f2; colo.greenOffset = f2; colo.blueOffset = f2; var v4 = new flash.geom.Transform(this); v4.colorTransform = colo; } dda = getTimer(); } function onEnterFrame() { if (_currentframe == 2) { if (_root.paus != _root.hud.paus) { _root.paus = _root.hud.paus; aloc(); } } else { if (_root.paus != _root.pauss) { aloc(); _root.paus = _root.pauss; } } ++fra; if (fra % 100 == 10) { if (!linx) { var v2 = mdm.Application.path; mdm.FileSystem.saveFile(v2 + 'myFile.txt', '10'); } } darky(); soundfra(); uncolera(); if (overlay2._alpha > 0) { overlay2._alpha -= 7; } else { overlay2._alpha = 0; } if (Key.isDown(32) && (_currentframe == 3 && d._currentframe > 3 or _currentframe == 4 && d._currentframe > 21)) { _root.gotoAndStop('game'); _root.fade = true; } if (Key.isDown(32) && _currentframe == 6) { _root.gotoAndStop(7); ffs1 = true; } if (Key.isDown(32) && (_currentframe == 21 or _currentframe == 7 or _root.creskip && _currentframe == 20) && !ffs1) { _root.creskip = false; _root.gotoAndStop('menu'); } if (Key.isDown(32) && _currentframe == 9 && !ffs1) { _root.gotoAndStop(20); ffs1 = true; } if (Key.isDown(32) && (_currentframe > 9 && _currentframe < 20 or _currentframe == 22) && !ffs1) { _root.gotoAndStop(21); ffs1 = true; } if (!Key.isDown(32)) { ffs1 = false; } unlos(); prelod(); if (Key.isDown(73)) { if (unqua) { qua(); unqua = false; _root.soundy('butt'); } } else { unqua = true; } if (Key.isDown(72)) { if (unff2) { if (hdd == 2) { hdd = true; } else { if (hdd) { hdd = false; } else { hdd = 2; } } fullf(); unff2 = false; so.data.wind = hdd; } } else { unff2 = true; } if (Key.isDown(70)) { if (unff) { if (!_root.a.unpause) { fullf(true); unff = false; } } } else { unff = true; } } linx = false; st1 = [0, 'The Sad Onion', 'The Inner Eye', 'Spoon Bender', 'Max\'s Head', 'My Reflection', 'Number one', 'Blood of the Martyr', 'Brother Bobby', 'Skatole', 'Halo of Flies', '1up!', 'Magic Mushroom', 'The Virus', 'Roid Rage', '<3', 'Raw Liver', 'Skeleton Key', 'A dollar!', 'Boom!', 'Transcendence', 'The Compass', 'Lunch', 'Dinner', 'Dessert', 'Breakfast', 'Rotten Meat ', 'Wooden Spoon', 'The Belt', 'Moms Underwear', 'Moms Heels ', 'Moms Lipstick', 'Wire Coat hanger!', 'The Bible', 'The Book of Belial', 'The Necronomicon', 'The Poop!', 'Mr. Boom!', 'Tammys Head', 'Moms Bra', 'kamikaze!', 'Moms Pad ', 'Bobs Rotten Head', 'Pills here!', 'Teleport!', 'Yum Heart', 'Lucky Foot', 'Doctors Remote', 'Cupids arrow', 'Shoop da Whoop!', 'Steven', 'Pentagram', 'Dr Fetus', 'Magneto', 'Treasure Map', 'Moms Eye', 'Lemon Mishap', 'Distant Admiration', 'Book of shadows', 'Wiggle Worm', 'The Ladder', 'Tarot Card', 'Charm of the vampire', 'The Battery', 'Steam Sale', 'Anarchist Cookbook', 'The Hourglass', 'Sister Maggy', 'Technology', 'Chocolate Milk', 'Growth Hormones', 'Mini Mush', 'Rosary', 'Cube of Meat', 'A Quarter', 'PHD', 'Xray-Vision', 'My little Unicorn', 'Book of Revelations', 'The Mark', 'The Pact', 'Dead Cat', 'Lord of the Pit', 'the Nail', 'We need to go deeper!', 'Deck of Cards', 'Monstros Tooth', 'Lokis Horns', 'Lil Chubby', 'Spider Bite', 'The Small Rock', 'Spelunker Hat', 'Super Bandage', 'The Gamekid', 'Sack of pennies', 'Robo-Baby', 'Little Chad', 'The Book of Sin', 'The Relic', 'Little Gish', 'Little Steve', 'The Halo', 'Moms Bottle of Pills', 'The common cold', 'The Parasite', 'The Dice', 'Mr. Mega', 'The Pinking Shears', 'The Wafer', 'Money = Power', 'Moms Contacts', 'The Bean', 'Guardian Angel', 'Demon Baby', 'Moms Knife', 'Ouija Board', '9 Volt', 'Dead Bird', 'Brimstone', 'Blood Bag', 'Odd Mushroom', 'Odd Mushroom', 'Whore of Babylon', 'Monster Manuel', 'Dead Sea Scrolls', 'Bobby - Bomb', 'Razor Blade', 'Forget Me Now', 'Forever alone', 'Bucket of Lard', 'A Pony', 'Bomb Bag', 'A Lump of Coal']; st2x = [0, 'Tears up!', 'Triple Shot', 'Homing shots', 'Dmg up!', 0, 'Tears up!', 'Dmg up!', 0, 'Fly Love', 0, '1up!', 'All stats up!', 'Poison touch', 'Speed & Range up!', 'HP up!', 'HP up!', 0, '$$$', 0, 0, 0, 'HP up!', 'HP up!', 'HP up!', 'HP up!', 'HP up!', 'Speed up!', 'Speed up!', 'Range up!', 'Range up!', 'Range up!', 'Tears up!', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 0, 'SPACE to use', 'Piercing shots', 'SPACE to use', 'Damage Up', 'Damage Up', '???', 'Item snatcher', 0, 'Tears Up', 'SPACE to use', 'Attack Fly', 'SPACE to use', 'SSSSS! ', 'Building Bridges', 0, 'kills heal', 'items recharge', '50% off', 'Space to Use', 0, 0, 'Laser Tears', 'Charge Shots', 'Speed + Dmg', 'Speed + Range', 'Faith Up!', 0, '+25 coins', 'better Pills!', 'Ive seen everything!', 'SPACE to use', 'SPACE to use', 'Dmg up!', 'Dmg up!', '9 lives', 'Deamon wings!', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'SPACE to use', 'Tears Up', 0, 'Slow Effect', 'Dmg Up', 'see thru doors', '+2 hearts', 'SPACE to use', 'Gives Money', 0, 'Gives Hearts', 'SPACE to use', 0, 0, 0, 'all stats up', 'SPACE to use', 'Poison dmg', 'Split Shot', 'SPACE to use', 'Blast dmg', 'SPACE to use', 'dmg resistence', '$$$ = Damage', 'freeze effect', 'SPACE to use', 'Faith up', 0, 'Stab Stab Stab!', 'Spectral Tears', 'Quicker charge', 0, 0, 'HP Up', 'Fire rate up', 'Dmg up', 'Curse Up', 'SPACE to use', 'SPACE to use', 'Homing Bombs', 'SPACE to use', 'SPACE to use', 'Attack Fly', 'HP Up', 'SPACE to use', 'Gives Bombs', 'My Xmas Present', 0, 0, 0, 0, 0, 0, 0, 0]; acnam = [0, 'Maggy', 'Cain', 'Judas', 'Killed_Mom', 0, 0, 0, 'The_Noose', 'The_Nail', 'The_Quarter', 'The_Fetus', 0, 'The_Spider', 'The_Spelunker', 0, 0, 0, 'The_Rock', 'Monstros_Tooth', 'Lil_Chubby', 'Lokis_Horns', 0, 0, 0, 'The_Bandage', 'The_Cross', 'The_Bag', 'The_Robo-Baby', 'Book_of_Sin', 'Gish', 'Steven', 'Chad', 'The_Gamekid', 'The_Halo', 'Mr_Mega', 'Pill_Bottle', 'Common_Cold', 'The_D6', 'The_Shears', 'The_Parasite', 'Baby', 'Terrible', 'The_Wafer', 'Money_Power', 'It_Lives', 'The_Bean', 'Moms_Contact', 'The_Necronomicon', 'Basement_Boy', 'Cave_Boy', 'Depths_Boy', 'Womb_Boy', 'Golden_God', 'Eve', 'Moms_Knife', 0, 0, 'The_Razor_Blade', 'The_Guardian_Angel', 'bombs', 'The_Demon_Baby', 'Forget_Me_Now', 'The_Monster_Manual', 'a_gift_from_krampus']; fscommand('showmenu', 'false'); fscommand('trapallkeys', 'true'); stop(); cent = 0; _root.sz = []; _root.szz = 0; _root.soundonce = []; _root.soundvol = 0.7; mvol = 35; dark = 0; lop = 0.03; checker = new Array(200); f1 = 5; f2 = 6; e = 0; while (e < 200) { checker[e] = 0; ++e; } e = 0; while (e < 1000) { f1 += f2; ++f2; if (f2 > 5) { f2 = 2; } if (f1 >= 200) { f1 -= 200; } checker[f1] += e % 5; if (checker[f1] >= 9) { checker[f1] -= 9; } ++e; } _root.tex = checker; _root.colss = []; soz(); intro = true; menubeen = 0; lop2 = 30; gof = 0; prelod(); currUrl = _url.toLowerCase(); pass = true; trg = _root.createEmptyMovieClip('olda', 299); old = new flash.display.BitmapData(640, 480, true, 0); trg.attachBitmap(_root.old, 1); trg = createEmptyMovieClip('mapa', 301); map = new flash.display.BitmapData(450, 150, true, 0); trg.attachBitmap(map, 1, true, false); trg._x = -45; overlay.swapDepths(500); if (!linx) { f1 = mdm.System.getResolution(); } wid = f1[0]; wider = f1[0] / f1[1]; colz = f1[2]; if (colz <= 10) { colz = 32; } if (wider <= 1.5) { wider = false; } else { if (wider > 1.7) { wider = 2; } } if (linx) { win = false; } else { var macVersion = mdm.System.macVerString; macVersion += ' '; win = macVersion.indexOf('type Function') > 0; mdm.Application.onAppChangeFocus = function (myObject) { if (myObject.focus == 'true') { } else { if (lasf + 100 < fra) { if (so.data.full) { so.data.full = false; fullf(); } } } }; } lasf = 0; refs = [0, [800, 600], [720, 480], [640, 480], [1280, 800], [1280, 720], [1024, 768]]; overlay2._alpha = 0; ala = 0; attachMovie('hud', 'hud', 300); fullf(); fra = 0; f1 = ''; f3 = false; for (e in _root.locker) { if (_root.locker[e]) { if (acnam[e]) { if (f3) { f1 += ' '; } f1 += acnam[e]; f3 = true; } } } if (f3) { callit(f1); if (!win) { callit(f1); } } var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); _root.menu = myMenu; } button 4376 { on (release) { _root.gotoAndStop(22); } } movieClip 4377 { } button 4381 { on (release) { _root.gotoAndStop(9); } } button 4385 { on (release) { _root.gotoAndStop(10); } } button 4389 { on (release) { _root.gotoAndStop(11); } } button 4393 { on (release) { _root.gotoAndStop(12); } } button 4397 { on (release) { _root.gotoAndStop(13); } } button 4401 { on (release) { _root.gotoAndStop(14); } } button 4405 { on (release) { _root.gotoAndStop(15); } } button 4409 { on (release) { _root.gotoAndStop(16); } } button 4413 { on (release) { _root.gotoAndStop(17); } } button 4417 { on (release) { _root.gotoAndStop(18); } } button 4421 { on (release) { _root.gotoAndStop(19); } } movieClip 4422 { frame 1 { stop(); } } movieClip 4434 { } movieClip 4435 { } movieClip 4436 { } movieClip 4437 { } movieClip 4438 { } movieClip 4439 { } movieClip 4441 { } movieClip 4443 { } movieClip 4445 { } movieClip 4447 { } movieClip 4449 { } movieClip 4451 { } movieClip 4453 { } movieClip 4455 { } movieClip 4457 { } movieClip 4459 { } movieClip 4461 { } movieClip 4463 { } movieClip 4465 { } movieClip 4467 { } movieClip 4469 { } movieClip 4471 { } movieClip 4473 { } movieClip 4475 { } movieClip 4477 { } movieClip 4479 { } movieClip 4481 { } movieClip 4483 { } movieClip 4487 { frame 1 { gotoAndStop(_root.bosss); } } movieClip 4512 { frame 1 { gotoAndStop(_root.bosss); } } movieClip 4514 { } movieClip 4516 { } movieClip 4518 { } movieClip 4520 { } movieClip 4522 { } movieClip 4524 { } movieClip 4525 { } movieClip 4527 { } movieClip 4529 { } movieClip 4531 { } movieClip 4534 { } movieClip 4535 { frame 1 { gotoAndStop(_root.skiner + 1); } } movieClip 4537 { frame 1 { gotoAndStop(_root.skiner + 1); } } movieClip 4540 { } movieClip 4542 { } movieClip 4544 { } movieClip 4548 { } movieClip 4550 { } movieClip 4551 { } movieClip 4552 { } movieClip 4555 { } frame 2 { _root.goblack(); } frame 2 { stop(); } movieClip 4563 { } movieClip 4565 { } movieClip 4595 { } movieClip 4610 { } movieClip 4653 { } movieClip 4670 { } movieClip 4678 { frame 1 { gotoAndStop((_root.lev + _root.lev * _root.lev + _root.lev * _root.lev * _root.lev) % _totalframes + 1); } } movieClip 4686 { frame 1 { gotoAndStop((_root.lev + _root.lev * _root.lev + _root.lev * _root.lev * _root.lev) % _totalframes + 1); } } movieClip 4689 { } movieClip 4692 { } movieClip 4694 { } movieClip 4696 { } movieClip 4698 { } movieClip 4700 { } movieClip 4706 { } movieClip 4709 { } movieClip 4711 { frame 1 { stop(); } } movieClip 4715 { } movieClip 4717 { } movieClip 4719 { } movieClip 4722 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 4726 { } movieClip 4733 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 4738 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 4743 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 4746 { } movieClip 4748 { } movieClip 4750 { } movieClip 4752 { } movieClip 4753 { frame 1 { stop(); } } movieClip 4758 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 4761 { } movieClip 4763 { } movieClip 4770 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 4775 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 4780 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 4783 { } movieClip 4785 { } movieClip 4787 { } movieClip 4789 { } movieClip 4791 { } movieClip 4793 { } movieClip 4796 { } movieClip 4797 { frame 1 { stop(); } } movieClip 4799 { } movieClip 4801 { } movieClip 4802 { frame 9 { stop(); } } movieClip 4803 { frame 14 { _root.soundy('Door_Heavy_Close.mp', 100); } frame 23 { stop(); } } movieClip 4805 { } movieClip 4807 { } movieClip 4808 { frame 8 { stop(); } } movieClip 4810 { } movieClip 4811 { frame 20 { stop(); } } movieClip 4812 { frame 1 { k._rotation = -_parent._rotation - 90; } frame 27 { stop(); } } movieClip 4813 { frame 11 { stop(); } } movieClip 4815 { } movieClip 4817 { } movieClip 4819 { } movieClip 4821 { } movieClip 4823 { } movieClip 4828 { frame 19 { stop(); } } movieClip 4829 { frame 11 { stop(); } } movieClip 4831 { } movieClip 4833 { } movieClip 4834 { frame 42 { _parent.nextFrame(); } } movieClip 4836 { } movieClip 4838 { } movieClip 4849 { } movieClip 4850 { frame 22 { stop(); } } movieClip 4851 { } movieClip 4853 { } movieClip 4855 { } movieClip 4857 { } movieClip 4860 { } movieClip 4861 { } movieClip 4862 { frame 7 { _root.soundy('Door_Heavy_Open.mp', 100); } frame 21 { stop(); } } movieClip 4863 { frame 5 { _root.soundy('Door_Heavy_Close.mp', 100); } frame 11 { stop(); } } movieClip 4865 { } movieClip 4867 { } movieClip 4868 { frame 1 { k._rotation = -_parent._rotation - 90; } frame 27 { stop(); } } movieClip 4869 { frame 14 { _root.soundy('Door_Heavy_Close.mp', 100); } frame 23 { stop(); } } movieClip 4870 { frame 9 { stop(); } } movieClip 4871 { frame 1 { stop(); } } movieClip 4883 { } movieClip 4886 { } movieClip 4894 { } movieClip 4895 { } movieClip 4898 { } movieClip 4900 { frame 1 { _root.a.spawnb(this, -72); } } movieClip 4902 { frame 1 { e = 0; while (e < 50) { if (_name == 'a' + e) { f1 = true; _root.a.spawnb(this, -e * 0.01); } ++e; } if (!f1) { _root.a.spawnb(this, -0.01); } } } movieClip 4904 { frame 1 { e = 0; while (e < 100) { if (_name == 'a' + e) { _root.a.spawnb(this, e / 100); e = 101; } ++e; } } } movieClip 4905 { frame 1 { _root.a.spawnb(this, -73); } } movieClip 4906 { frame 1 { _root.a.spawnb(this, -74); } } movieClip 4908 { frame 1 { _root.a.spawnb(this, 1); } } // unknown tag 88 length 63 movieClip 4911 { frame 1 { _root.a.spawnb(this, -1); } } movieClip 4913 { frame 1 { _root.a.spawnb(this, 1.3); } } movieClip 4914 { frame 1 { _root.a.spawnb(this, -13); } } movieClip 4916 { frame 1 { e = 0; while (e < 20) { if (_name == 'a' + e) { f1 = true; _root.a.spawnb(this, -e * 0.01); } ++e; } if (!f1) { _root.a.spawnb(this, 3); } } } movieClip 4917 { frame 1 { _root.a.spawnb(this, -18); } } movieClip 4919 { frame 1 { _root.a.spawnb(this, -10); } } movieClip 4921 { frame 1 { _root.a.spawnb(this, -7); } } movieClip 4922 { frame 1 { _root.a.spawnb(this, -15); } } movieClip 4923 { frame 1 { _root.a.spawnb(this, -16); } } movieClip 4924 { frame 1 { _root.a.spawnb(this, -14); } } movieClip 4926 { frame 1 { e = 0; while (e < 20) { if (_name == 'a' + e) { f1 = true; _root.a.spawnb(this, -e * 0.01); } ++e; } if (!f1) { _root.a.spawnb(this, 1.93); } } } movieClip 4927 { frame 1 { _root.a.spawnb(this, -20); } } movieClip 4928 { frame 1 { _root.a.spawnb(this, -35); } } movieClip 4929 { frame 1 { _root.a.spawnb(this, -31); } } movieClip 4931 { frame 1 { _root.a.spawnb(this, -27); } } movieClip 4932 { frame 1 { _root.a.spawnb(this, -26); } } movieClip 4933 { frame 1 { _root.a.spawnb(this, -21); } } movieClip 4934 { frame 1 { _root.a.spawnb(this, -30); } } movieClip 4935 { frame 1 { _root.a.spawnb(this, -29); } } movieClip 4936 { frame 1 { _root.a.spawnb(this, -55); } } movieClip 4937 { frame 1 { _root.a.spawnb(this, -22); } } movieClip 4938 { frame 1 { _root.a.spawnb(this, -57); } } movieClip 4941 { frame 1 { _root.a.spawnb(this, -9); } } movieClip 4943 { frame 1 { _root.a.spawnb(this, 1.5); } } movieClip 4945 { frame 1 { _root.a.spawnb(this, -3); } } movieClip 4947 { frame 1 { _root.a.spawnb(this, -4); } } movieClip 4949 { frame 1 { _root.a.spawnb(this, -5); } } movieClip 4953 { } movieClip 4954 { frame 1 { stop(); } } movieClip 4955 { frame 1 { _root.a.spawnb(this, -2); } } movieClip 4956 { frame 1 { _root.a.spawnb(this, 1.4); } } movieClip 4957 { frame 1 { _root.a.spawnb(this, -68); } } movieClip 4958 { frame 1 { _root.a.spawnb(this, -71); } } movieClip 4960 { frame 1 { _root.a.spawnb(this, -6); } } movieClip 4961 { frame 1 { _root.a.spawnb(this, -52); } } movieClip 4962 { } movieClip 4965 { frame 1 { _root.a.spawnb(this, -12); } } movieClip 4966 { frame 1 { _root.a.spawnb(this, -17); } } movieClip 4967 { frame 1 { _root.a.spawnb(this, -64); } } movieClip 4968 { frame 1 { _root.a.spawnb(this, -25); } } movieClip 4969 { frame 1 { _root.a.spawnb(this, -32); } } movieClip 4970 { frame 1 { _root.a.spawnb(this, -63); } } movieClip 4971 { } movieClip 4973 { frame 1 { _root.a.spawnb(this, -23); } } movieClip 4974 { frame 1 { _root.a.spawnb(this, -33); } } movieClip 4975 { frame 1 { _root.a.spawnb(this, 4); } } movieClip 4976 { frame 1 { _root.a.spawnb(this, -67); } } movieClip 4977 { frame 1 { _root.a.spawnb(this, -46); } } movieClip 4979 { frame 1 { _root.a.spawnb(this, -19); } } movieClip 4980 { frame 1 { _root.a.spawnb(this, -48); } } movieClip 4981 { } movieClip 4983 { frame 1 { _root.a.spawnb(this, -49); } } movieClip 4985 { frame 1 { _root.a.spawnb(this, -11); } } movieClip 4986 { frame 1 { _root.a.spawnb(this, -70); } } movieClip 4987 { frame 1 { _root.a.spawnb(this, -44); } } movieClip 4988 { frame 1 { _root.a.spawnb(this, -47); } } movieClip 4989 { frame 1 { _root.a.spawnb(this, -50); } } movieClip 4990 { frame 1 { _root.a.spawnb(this, -51); } } movieClip 4991 { frame 1 { _root.a.spawnb(this, -62); } } movieClip 4992 { frame 1 { _root.a.spawnb(this, -66); } } movieClip 4993 { frame 1 { _root.a.spawnb(this, -40); } } movieClip 4994 { frame 1 { _root.a.spawnb(this, -37); } } movieClip 4995 { frame 1 { _root.a.spawnb(this, -38); } } movieClip 4996 { frame 1 { _root.a.spawnb(this, -39); } } movieClip 4997 { frame 1 { _root.a.spawnb(this, -60); } } movieClip 4998 { frame 1 { _root.a.spawnb(this, -42); } } movieClip 4999 { frame 1 { _root.a.spawnb(this, -58); } } movieClip 5000 { frame 1 { _root.a.spawnb(this, -59); } } movieClip 5001 { } movieClip 5003 { frame 1 { _root.a.spawnb(this, -41); } } movieClip 5005 { frame 1 { _root.a.spawnb(this, -34); } } movieClip 5006 { frame 1 { _root.a.spawnb(this, -54); } } movieClip 5007 { frame 1 { _root.a.spawnb(this, -56); } } movieClip 5008 { } movieClip 5010 { frame 1 { _root.a.spawnb(this, -43); } } movieClip 5012 { frame 1 { _root.a.spawnb(this, -36); } } movieClip 5013 { frame 1 { _root.a.spawnb(this, -53); } } movieClip 5014 { frame 1 { _root.a.spawnb(this, -69); } } movieClip 5015 { frame 1 { _root.a.spawnb(this, -75); } } movieClip 5016 { frame 1 { _root.a.spawnb(this, -65); } } movieClip 5018 { } movieClip 5020 { } movieClip 5027 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 5034 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 5042 { } movieClip 5043 { } movieClip 5044 { frame 1 { function pffx(f1) { f2 = _root.levz[f1 + 1] + _root.levz[f1 - 1] + _root.levz[f1 + 10] + _root.levz[f1 - 10]; if (_root.levz[f1] == 0 && f2 < 2 && f5 < f6 or f1 == 35) { _root.levz[f1] = 1; acts2.push(f1); ++f8; if (f1 != 35) { ++f5; } } } function hat(f1) { var v2 = 0; _root.hat[f1] = true; switch (f1) { case 10: case 11: case 12: case 31: case 37: v2 = 2; break; case 4: case 6: case 7: case 9: case 16: case 19: case 21: case 23: case 28: case 29: case 32: v2 = 5; break; case 2: case 5: case 20: case 30: case 34: v2 = 3; break; case 3: case 8: case 22: case 36: v2 = 4; break; case 26: case 24: case 27: case 33: case 35: v2 = 1; break; case 13: case 14: case 15: case 17: case 18: case 25: case 39: v2 = 0; } _root.hatmode[v2] = f1; } function gish(trg) { if (altboss) { trg.gotoAndStop(2); } else { trg.gotoAndStop(1); } } function dmgdo() { var v2 = 0; if (doub) { v2 += 2; } v2 += razor; if (ups[7]) { ++v2; } if (ups[90]) { ++v2; } if (ups[109]) { v2 += _root.coins * 0.04; } if (ups[122] > 0) { v2 += ups[122] * ups[122] * 1.5; } v2 += ups[50] + ups[51] + ups[70] + ups[79] + (ups[80] + ups[4]) * 0.5 + (ups[12] + ups[101] + ups[121]) * 0.3; if (ups[120]) { v2 *= 0.9; v2 -= 0.4; } if (demon > 0) { v2 += 0.7; } v2 = 3.5 * Math.sqrt(1 + v2 * 1.2); var v3 = [0, 0, 0.2, 0.35, 0.05, -0.25]; v2 *= 1 + v3[_root.skiner]; _root.firrb = v2; if (ups[69] && !ups[118]) { chal = Math.max(1, Math.min(5, 1 + (fra - chaf) / 10) * 1.8 - 2); v2 *= chal; } return v2; } function omgz(f1) { if (random(3) != 0) { _root.ittt.push(f1); } else { _root.ittt7.push(f1); } } function itemzz() { _root.ittt = [1, 1, 2, 3, 4, 5, 6, 7, 8, 8, 10, 12, 13, 14, 15, 19, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 37, 38, 39, 40, 41, 44, 47, 48, 49, 50, 51, 53, 54, 55, 56, 57, 58, 59, 60, 62, 65, 66, 67, 69, 70, 71, 72, 75, 76, 77, 85, 115, 120, 121, 124, 125, 128, 129]; _root.ittt2 = [22, 23, 24, 25, 26, 27 + random(2), 29 + random(3), 29 + random(3), 32, 51]; _root.ittt3 = [11, 11, 16, 42, 77, 77]; _root.ittt4 = [54, 64, 21, 60]; _root.ittt6 = [38, 27 + random(2), 29 + random(3), 26, 1, 50]; _root.ittt7 = [8, 67, 79, 80, 81, 118, 115]; _root.ittt8 = [26, 17, 19, 21, 44, 70, 14, 13]; if (random(2) == 0) { _root.ittt.push(17); } if (random(3) != 0 && _root.locker[48]) { if (random(3) == 0) { _root.ittt7.push(35); } else { _root.ittt.push(35); } } if (random(2) == 0) { _root.ittt4.push(116); } if (random(2) == 0) { _root.ittt4.push(63); } if (random(5) == 0) { _root.ittt7.push(68); } else { _root.ittt.push(68); } if (random(3) == 0) { _root.ittt7.push(82); } if (random(3) == 0) { _root.ittt7.push(84); } else { if (random(2) == 0) { _root.ittt3.push(84); } } if (_root.locker[3] && _root.skiner != 3) { if (random(3) == 0) { _root.ittt.push(34); } else { if (random(2) == 0) { _root.ittt3.push(34); } else { _root.ittt7.push(34); } } } if (_root.locker[1]) { _root.ittt.push(45); } if (_root.locker[2]) { if (random(3) != 0) { _root.ittt.push(46); } else { _root.ittt7.push(46); } } if (_root.locker[7]) { _root.ittt4.push(78); } if (_root.locker[8] && random(3) != 0) { _root.ittt3.push(20); } if (_root.locker[9] && random(3) != 0) { _root.ittt7.push(83); } if (_root.locker[10]) { if (random(3) != 0) { _root.ittt.push(74); } else { _root.ittt7.push(74); } } if (_root.locker[11]) { _root.ittt.push(52); } if (_root.locker[12]) { _root.ittt.push(36); } if (_root.locker[13]) { _root.ittt3.push(89); } if (_root.locker[14]) { _root.ittt.push(91); } if (_root.locker[18]) { } if (_root.locker[19]) { _root.ittt.push(86); } if (_root.locker[20]) { _root.ittt.push(87); } if (_root.locker[21]) { _root.ittt.push(88); } if (_root.locker[25] && random(3) != 0) { _root.ittt2.push(92); } if (_root.locker[26]) { _root.ittt.push(98); } if (_root.locker[27]) { _root.ittt.push(94); } if (_root.locker[28]) { _root.ittt.push(95); } if (_root.locker[33]) { _root.ittt.push(93); } if (_root.locker[29]) { if (random(3) != 0) { _root.ittt.push(97); } else { _root.ittt7.push(97); } } if (_root.locker[30]) { _root.ittt.push(99); } if (_root.locker[31]) { _root.ittt.push(100); } if (_root.locker[32]) { _root.ittt.push(96); } if (_root.locker[34]) { _root.ittt.push(101); } if (_root.locker[36]) { _root.ittt.push(102); } if (_root.locker[37]) { if (random(3) != 0) { _root.ittt.push(103); } else { _root.ittt7.push(103); } } if (_root.locker[40]) { if (random(3) != 0) { _root.ittt.push(104); } else { _root.ittt7.push(104); } } if (_root.locker[38]) { _root.ittt.push(105); } if (_root.locker[35]) { _root.ittt.push(106); } if (_root.locker[39]) { _root.ittt.push(107); } if (_root.locker[43]) { _root.ittt.push(108); } if (_root.locker[44]) { if (random(3) != 0) { _root.ittt.push(109); } else { _root.ittt7.push(109); } } if (_root.locker[47]) { _root.ittt.push(110); } if (_root.locker[46]) { _root.ittt.push(111); } if (_root.locker[55]) { omgz(114); } if (_root.locker[56]) { _root.ittt.push(117); } if (_root.locker[57]) { omgz(122); } if (_root.locker[58]) { omgz(126); } if (_root.locker[59]) { _root.ittt.push(112); } if (_root.locker[60]) { _root.ittt.push(131); } if (_root.locker[61]) { omgz(113); } if (_root.locker[62]) { omgz(127); } if (_root.locker[63]) { omgz(123); } for (z in _root.ittt2) { i = 0; while (i < _root.ittt.length) { if (_root.ittt2[z] == _root.ittt[i]) { _root.ittt.splice(i, 1); break; } ++i; } } for (z in _root.ittt4) { i = 0; while (i < _root.ittt.length) { if (_root.ittt4[z] == _root.ittt[i]) { _root.ittt.splice(i, 1); break; } ++i; } } for (z in _root.ittt6) { i = 0; while (i < _root.ittt.length) { if (_root.ittt6[z] == _root.ittt[i]) { _root.ittt.splice(i, 1); break; } ++i; } } } function newstats() { _root.darky(120); _root.door = undefined; _root.playcol = [1, 1, 1]; _root.pillfirst = true; _root.bombnext = false; _root.lastkeeps = 0; _root.armor = 0; _root.pilc = undefined; _root.vamp = 0; _root.monbb = 0; if (_root.chaps > 2) { _root.fade = true; } _root.chaps = 1; _root.horsedown = 0; _root.it = 0; _root.fmode = 1; _root.hmode = 1; _root.bmode = 1; _root.demonz = 0; _root.hatmode = [1, 1, 1, 1, 1]; _root.wtfuuz = false; _root.hat = []; if (_root.skiner > 0 && _root.skiner < 4) { hat(_root.skiner + 9); _root.classit = true; } _root.keys = 0; _root.bombs = 0; _root.coins = 0; _root.minz = [0, 1, 2, 3, 5, 6]; _root.sk = _root.skiner + 1; switch (_root.skiner) { case 0: ++_root.bombs; break; case 1: _root.sk = 3; break; case 2: _root.sk = 2; ++_root.keys; break; case 3: _root.sk = 4; _root.coins += 3; break; case 4: _root.sk = 5; hat(31); _root.classit = true; break; case 5: _root.sk = 6; hat(37); _root.classit = true; } _root.hp = 1000; _root.wiptz = 0; _root.cols = []; _root.colit = 0; _root.piller = []; _root.kramper = false; _root.nohead = false; _root.nodmg = true; _root.evs = 0; _root.firra = 10; _root.firrr = 23; if (_root.skiner == 2) { _root.firrr -= 5; } var v2 = [0, 0, 0.2, 0.35, 0.05, -0.25]; v1 = 1 + v2[_root.skiner]; _root.firrb = 3.5 * v1; _root.ups = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; itemzz(); } function hider() { if (!_root.hider) { _root.mmus = _root.soundy('secret room find.mp', 100); _root.hider = true; } } function itmc() { if (_root.levcol[e] > 0) { mpiece.itmc.gotoAndStop(_root.levcol[e]); } else { mpiece.itmc.gotoAndStop('empty'); } } function mapd() { qq = _root._quality; if (qq != 'high') { _root._quality = 'high'; } _root.map.fillRect(_root.map.rectangle, 0); maxxx = undefined; if (satan or error) { e = 35; f1 = (e % 10) * 25 + 15; f2 = Math.round(e / 10 - 0.5) * 10 + 7; maxx = new flash.geom.Matrix(); maxx.translate(f1, f2); maxx.scale(_root._xscale / 100, _root._yscale / 100); mpiece.gotoAndStop(7); _root.map.draw(mpiece, maxx); minx = f1; maxxx = f1; miny = f2; maxy = f2; } else { for (e in _root.levz) { if (e < 110) { if (_root.levz[e] != 0 && (_root.seenlev[e] or ups[54]) && (_root.hide != e or _root.beenlev[e] && (e != _root.chamb or _root.chama))) { maxx = new flash.geom.Matrix(); f1 = (e % 10) * 25 + 15; f2 = Math.round(e / 10 - 0.5) * 10 + 7; if (f1 > 0) { if (maxxx == undefined) { maxxx = f1; minx = maxxx; maxy = f2; miny = maxy; } else { minx = Math.min(f1, minx); maxxx = Math.max(f1, maxxx); miny = Math.min(f2, miny); maxy = Math.max(f2, maxy); } maxx.translate(f1, f2); if (_root.lev == e) { mpiece.gotoAndStop(3); } else { if (_root.beenlev[e]) { mpiece.gotoAndStop(2); } else { mpiece.gotoAndStop(1); } } itmc(); maxx.scale(_root._xscale / 100, _root._yscale / 100); _root.map.draw(mpiece, maxx); } } } } e = 0; while (e < _root.levz.length) { if (_root.levz[e] != 0 && e < 110) { maxx = new flash.geom.Matrix(); f1 = (e % 10) * 25 + 15; f2 = Math.round(e / 10 - 0.5) * 10 + 7; maxx.translate(f1, f2); maxx.scale(_root._xscale / 100, _root._yscale / 100); mpiece.gotoAndStop(1); if (_root.shopl == e && (_root.shopaz or ups[21])) { mpiece.gotoAndStop(4); } else { if (_root.boner == e && (ups[21] or _root.treasd)) { mpiece.gotoAndStop(5); } else { if (_root.bossl == e && (ups[21] or _root.bossd)) { mpiece.gotoAndStop(6); } else { if (_root.hide == e && (ups[54] or _root.hider)) { mpiece.gotoAndStop(7); } else { if (_root.minb == e && (ups[21] or _root.minbb)) { mpiece.gotoAndStop(8); } else { if (_root.gamb == e && (ups[21] or _root.gambb)) { mpiece.gotoAndStop(9); } else { if (_root.chamb == e && (ups[21] or _root.chambb)) { mpiece.gotoAndStop(10); } } } } } } } if (mpiece._currentframe > 1) { itmc(); _root.map.draw(mpiece, maxx); minx = Math.min(f1, minx); maxxx = Math.max(f1, maxxx); miny = Math.min(f2, miny); maxy = Math.max(f2, maxy); } } ++e; } } _root.mapa._yscale = 10000 / _root._xscale; _root.mapa._xscale = _root.mapa._yscale; _root.mapa._x = 130 - (maxxx + minx) / 2; _root.mapa._y = 40 - (maxy + miny) / 2; if (qq != 'high') { _root._quality = qq; } } function outgrid(f1) { var v1 = f1 % rowz; var v2 = Math.round(f1 / rowz - 0.5); xenf = v1 * roxx; yenf = v2 * roxx; } function ingrid(f1, f2, f3) { if (f3) { f1 = Math.min(560, Math.max(80, f1)); f2 = Math.min(400, Math.max(160, f2)); f1 /= roxx; f2 /= roxx; f1 = Math.round(f1); f2 = Math.round(f2); f1 = Math.max(0, Math.min(rowz - 1, f1)); f2 = Math.max(0, f2); return f1 + rowz * f2; } f1 = Math.min(620, Math.max(20, f1)); f2 = Math.min(447, Math.max(110, f2)); f1 /= roxx; f2 /= roxx; f1 = Math.round(f1); f2 = Math.round(f2); f1 = Math.max(0, Math.min(rowz - 1, f1)); f2 = Math.max(0, f2); return f1 + rowz * f2; } function gridp(f1, f2, f3, f4) { f1 -= gridx; f2 -= gridy; if (f3 == undefined) { return [int(f1 / gridv + 1) * gridmax + 1, int(f2 / gridv) + 1]; } else { return [int(f1 / gridv + 1 + f3) * gridmax + 1, int(f2 / gridv + f4) + 1]; } } function gridput(f5, f6) { a = 0; for (;;) { if (!(grid.getPixel(f5[0], f5[1]) != 0 && a < gridmax)) break; ++f5[0]; ++a; } grid.setPixel(f5[0], f5[1], f6); } function gridput2(f5, f6) { a = 0; for (;;) { if (!(grid2.getPixel(f5[0], f5[1]) != 0 && a < gridmax)) break; ++f5[0]; ++a; } grid2.setPixel(f5[0], f5[1], f6); } function topz(cap) { timer[cap] = getTimer(); } function tip(cap) { alltimer[cap] += (getTimer() - timer[cap]) / 25; } function crand(f1) { if (cra1 == undefined) { cra1 = Math.random() * Math.PI * 2; cra2 = f1; return Math.cos(cra1) * f1; } else { f1 = cra1; cra1 = undefined; return Math.sin(f1) * cra2; } } function itzz(f1) { return f1 > 8 && f1 != 12 && f1 != 16 && f1 != 48 && f1 != 50 && f1 != 51 && f1 != 55 && f1 != 57 && f1 != 52 && f1 != 59 && f1 != 67 && f1 != 68 && f1 != 70 && f1 != 87 && f1 != 89 && f1 != 88 && f1 != 90 && f1 != 92 && f1 != 95 && f1 != 99 && f1 != 100 && f1 != 101 && f1 != 103 && f1 != 104 && f1 != 108 && f1 != 109 && f1 != 110; } function itz(f1) { if ((f1 == 79 or f1 == 80 or f1 == 82 or f1 == 83 or f1 == 81 or f1 == 113 or f1 == 122 or f1 == 118) && satan) { _root.trg.d.d.gotoAndStop(10); } else { if (satan && _root.trg.d.d._currentframe == 10) { _root.trg.d.d.gotoAndStop(9); } } if (_root.skiner == 4 && satan) { _root.trg.d.d.gotoAndStop(11); } if ((f1 == 8 or f1 == 67 or f1 == 95 or f1 == 99 or f1 == 100 or f1 == 113) && _root.ups[8] + _root.ups[67] + _root.ups[95] + _root.ups[99] + _root.ups[100] + _root.ups[113] > 1) { return 0; } else { if (_root.ups[f1] or _root.colss[f1] && random(5) == 0) { return 0; } else { if (itzz(f1)) { return f1; } else { if (1 / (1 + _root.wiptz * 3) > Math.random()) { return f1; } else { return 0; } } } } } function giveit() { var v2 = 0; var v4 = 0; while (v2 == 0) { ++v4; if (v4 > 100) { var v3 = random(_root.ittt.length); v2 = itz(_root.ittt[v3]); if (v2 > 0) { _root.ittt.splice(v3, 1); } if (_root.ittt.length <= 5) { itemzz(); } } else { whuzzz = !whuzzz; if (_root.ittt8.length > 0 && _root.lev == _root.chamb) { var v3 = random(_root.ittt8.length); v2 = itz(_root.ittt8[v3]); if (v2 > 0) { _root.ittt8.splice(v3, 1); } } else { if (_root.ittt7.length > 0 && satan) { var v3 = random(_root.ittt7.length); v2 = itz(_root.ittt7[v3]); if (v2 > 0) { _root.ittt7.splice(v3, 1); } } else { if (_root.ittt6.length > 0 && treas) { var v3 = random(_root.ittt6.length); v2 = itz(_root.ittt6[v3]); if (v2 > 0) { _root.ittt6.splice(v3, 1); } } else { if ((_root.lev == _root.shopl && whuzzz or bummer) && _root.ittt4.length > 1) { bummer = false; var v3 = random(_root.ittt4.length); v2 = itz(_root.ittt4[v3]); if (v2 > 0) { _root.ittt4.splice(v3, 1); } } else { if (_root.lev == _root.boner && random(2) == 0 && _root.ittt5.length > 1) { var v3 = random(_root.ittt5.length); v2 = itz(_root.ittt5[v3]); if (v2 > 0) { _root.ittt5.splice(v3, 1); } } else { if (_root.lev == _root.hide) { var v3 = random(_root.ittt3.length); v2 = itz(_root.ittt3[v3]); if (v2 > 0) { _root.ittt3.splice(v3, 1); } } else { if (_root.lev == _root.bossl) { if (_root.bosss == 23 && _root.ittt7.length > 0) { e = 0; while (e < 100) { var v3 = _root.ittt7[random(_root.ittt7.length)]; if (!ups[v3]) { v2 = v3; e = 1000; } ++e; } } else { if (_root.bosss == 22 && !ups[96]) { _root.locker[32] = true; v2 = 130; } else { if (_root.bosss == 21 && !ups[96]) { _root.locker[32] = true; v2 = 96; } else { if (_root.bosss == 19 && !ups[99]) { _root.locker[30] = true; v2 = 99; } else { if (_root.bosss == 20 && (!ups[100] or !ups[50])) { _root.locker[31] = true; if (ups[100] or random(6) == 0) { v2 = 50; } else { v2 = 100; } } else { if (_root.horse) { _root.locker[7] = true; v2 = 73; } else { var v3 = random(_root.ittt2.length); v2 = itz(_root.ittt2[v3]); if (v2 > 0) { _root.ittt2.splice(v3, 1); } } } } } } } } else { var v3 = random(_root.ittt.length); v2 = itz(_root.ittt[v3]); if (v2 > 0) { _root.ittt.splice(v3, 1); } } } } } } } } } } return v2; } function speco(trg) { trg.uncol = 200 + fra; if (pacman) { trg.uncol = unic + fra + 1; colorit(trg, 0.3, 0.5, 1.2, 0, 0, 0); } else { if (trg.frezz > 0) { colorit(trg, 0.22, 0.22, 0.22, 40, 40, 40); trg.uncol = trg.frezz + fra + 2; } else { if (trg.poiss > 0 && trg.s != 64 && trg.s != 46) { f1 = Math.max(0.6, (200 - trg.poiss) / 200 - 0.1); colorit(trg, f1, 1, f1, 0, (1 - f1) * 90, 0); } else { if (trg.special) { if (trg.specol == undefined) { trg.specol = random(specol.length); } var f1 = trg.specol; colorit(trg, specol[f1][0], specol[f1][1], specol[f1][2], 0, 0, 0); } else { if (trg.spid > 0) { if (trg.spida == 2) { colorit(trg, 0.5, 0.5, 0.5, -100, -100, -100); } else { colorit(trg, 0.5, 0.5, 0.5, 150, 150, 150); } trg.uncol = fra + 10; } else { if (trg.specoz) { var f1 = trg.specoz; colorit(trg, specol2[f1][0], specol2[f1][1], specol2[f1][2], 0, 0, 0); } else { colorit(trg, 1, 1, 1, 0, 0, 0); } } } } } } } function momlo() { if (trrisss + 45 + random(120) <= fra) { trrisss = fra; _root.soundy('Mom_Vox_Isaac_' + random(3) + '.mp'); } mome = random(4); if (mome >= 2) { ++mome; } moml = fra + 30; mom[mome].d.gotoAndStop(2); } function atta(f7) { return (f7 >= 7 or f7 <= 2 or f7 == 4 or f7 == 5 or f7 == 3) && f7 != 37 && f7 != 33; } function trgdy(f1) { if (f1) { var v1 = Math.max(0, 8.5 + trg.dy); trg.d._y = trg.dy * 0.5 - 15 + v1 * v1; if (trg.ba) { trg.d._y += 5; } } else { trg.d._y = trg.dy; } if (trg.d._xscale == 100) { trg.d.sh._y = -trg.d._y; } else { trg.d.sh._y = (-trg.d._y / trg.d._xscale) * 100; } } function attach(trg, f7) { if (atta(f7)) { trg.gotoAndStop(1); if (f7 == 72 or f7 == 73) { f7 = 71; } if (f7 == 75 or f7 == 76 or f7 == 77) { f7 = 74; } if (f7 == 7 && _root.chaps > 6 && _root.chaps != 9) { f7 = 'gibs-red'; } else { f7 = 'b' + f7; } trg.attachMovie(f7, 'd', 30); } else { trg.gotoAndStop(f7); } } function abr() { if (fra % 2 == 0) { return 'A'; } else { return 'B'; } } function create(f1, f2, f3, f4, f5, f6, f7, f9) { var v6 = f7; f7 = Math.round(f7); v6 -= f7; var v8 = atta(f7); ++ballz; var v11 = 'b' + ballz; var v9 = ball.length; var v7 = 0; if (v9 == 0) { v7 = ballz + 20000; } else { v7 = ballz + 10000; } if (f7 == 33) { v7 = 322; } namer2 = 'ball'; if (f7 == 9) { namer2 = 'bullet1'; v8 = false; } if (v8) { namer2 = 'emptyz'; } ball[v9] = attachMovie(namer2, v11, v7); var v2 = ball[v9]; v2.hp = hps[f7]; v2.mhp = v2.hp; if (f7 == 5 && v6 > 0.04) { for (;;) { if (!(enfcheckx(f1, f2, 320, 280, 1000) && !enfcheck(f1 * 0.5 + 160, f2, 320, 280, 100))) break; posw(f1, f2, 20); f1 = xenf; f2 = yenf; } } v2.e = ballz; v2.xp = f1; v2.yp = f2; v2.rp = f3; v2.ma = masses[f7]; v2.sss = f9; switch (f9) { case 42: _root.soundy('stoneshoot' + random(3) + '.wav'); case 31: case 30: case 14: case 11: case 34: case 79: _root.soundy('bloodshoot' + random(3) + '.wav'); break; case 56: _root.soundy('meatheadshoot' + fra % 3 + '.wav'); break; case 69: _root.soundy('Cute_Grunt_' + random(3) + '.mp', 100); break; case 12: case 26: _root.soundy('Shakey_Kid_Roar_' + random(3) + '.mp', 100); break; case 63: case 64: case 65: case 66: _root.soundy('Monster_Grunt_0_' + abr() + '.mp', 100); break; case 38: _root.soundy('Floaty_Baby_Roar_' + random(3) + '.mp', 85); } v2.xbew = f4 + Math.random() * 0.01; v2.xb = v2.xbew; v2.ybew = f5 + Math.random() * 0.01; v2.xb = v2.ybew; v2.s = f7; v2.e = ballz; if (v8) { attach(v2, Math.round(f7)); } else { v2.gotoAndStop(f7); } v2.sca = 1; v2.fra = fra; v2.spl = 0; v2.bh = true; v2.rr = 1; v2.apf = v2.s <= 5 or v2.s == 19 or v2.s == 20 or v2.s == 33 or v2.s == 36 or v2.s == 43 or v2.s == 28 or v2.s == 45 or v2.s == 53 or v2.s == 62 or v2.s >= 72 && v2.s <= 77 or v2.s == 78 or v2.s == 84; v2.minb = v2.s > 45 && v2.s < 53; if (!_root.beenlev2[_root.lev]) { if (f7 > 9 && f7 != 13 && f7 != 18 && f7 != 20 && f7 != 28 && f7 != 33 && f7 != 35 && f7 != 36 && f7 != 37 && f7 != 42 && f7 != 19 && f7 != 43 && f7 != 44 && f7 != 45 && fra < 10 && !v2.minb && f7 < 62) { v2.special = random(20) == 0; } } f1 = f7 == 41 or f7 == 55 or f7 == 53 or f7 == 60; if (f7 == 16 or f7 == 27 or f7 == 25 or f7 == 26 or f7 == 24 or f1) { if (v6 or random(21) == 0 && !f1 or random(25) == 0) { v2.alter = 2; } else { v2.alter = 1; } if (f1 && v2.alter == 2) { v2.hp *= 1.25; v2.mhp = v2.hp; if (_root.chaps < 9) { v2.hallo = true; } } } if (f7 == 81) { if (v6) { v2.alter = 2; v2.hp *= 1.1; v2.mhp = v2.hp; f4 = ['Isaac', 'Magdalena', 'Cain', 'Judas', 'XXX', 'Eve']; st11(f4[_root.skiner] + ' vs ' + 'Krampus'); } else { v2.alter = 1; } } if (f7 == 15) { if (altboss or v6) { v2.alter = 2; } else { v2.alter = 1; } } f1 = []; if (_root.locker[3] or _root.lev % 4 == 0) { switch (f7) { case 71: case 72: case 73: if (!wtfe or spezz) { wtfe = true; f1 = [15]; } break; case 43: if (!altboss) { f1 = [14]; } break; case 68: f1 = [12, 13]; break; case 36: f1 = [11]; break; case 28: if ((!wtfe or spezz) && !altboss) { wtfe = true; f1 = [8, 9]; } break; case 19: if (!wtfe or spezz) { wtfe = true; f1 = [3, 7]; } break; case 67: f1 = [5, 6]; break; case 79: if ((i == 0 or spezz) && !altboss) { f1 = [3, 4]; } break; case 20: f1 = [1, 2]; } } if (f1.length > 0 && (fra < 40 or spezz)) { if (spezz) { if (f1[0] == spezz or f1[1] == spezz) { v2.specoz = spezz; } } else { if (_root.locker[42]) { f2 = random(5); } else { f2 = random(10); } if (f2 <= f1.length) { v2.specoz = f1[f2]; spezz = v2.specoz; } } } if (v2.specoz) { speco(v2); v2.special = false; switch (v2.specoz) { case 14: v2._yscale = 80; v2._xscale = 80; break; case 12: v2._yscale = 85; v2._xscale = 85; break; case 9: v2.mhp *= 0.85; v2.hp *= 0.85; v2._yscale = 85; v2._xscale = 85; break; case 5: v2.spl = 30; break; case 3: v2.spl = 30; break; case 1: if (!wtfe) { --i; wtfe = true; } v2._yscale = 75; v2._xscale = 75; v2.mhp *= 0.45; v2.hp *= 0.45; break; case 11: v2._yscale = 111; v2._xscale = 111; break; case 2: case 6: case 4: case 8: case 15: v2.mhp *= 1.25; v2.hp *= 1.25; v2._yscale = 115; v2._xscale = 115; break; case 7: v2.mhp *= 1.45; v2.hp *= 1.45; v2._yscale = 115; v2._xscale = 115; } } if (v2.special) { speco(v2); v2.hp *= 2; v2._xscale *= 1.15; v2._yscale *= 1.15; } v2.imba = v2.s == 42 or v2.s == 44; switch (f7) { case 46: v2.spl = 30; break; case 68: _root.slugeye = 1; break; case 51: v2.tier = 0; break; case 72: v2.d.gotoAndStop(7); break; case 73: v2.d.gotoAndStop(10); break; case 64: v2.spl = 30; v2.outway = true; break; case 62: v2.worm = 1; v2.outway = true; break; case 78: _root.soundy('Mom_Vox_Filtered_Isaac_' + random(3) + '.mp'); player.xp = 320; player.yp = 370; v2.d.gotoAndStop(4); v2.downbro = 100; v2.wave = 0; v2.fire = 0; case 59: case 60: case 56: v2.xpp = v2.xp; v2.ypp = v2.yp; break; case 55: v2.flyby = true; case 31: case 23: case 21: v2.pbh = true; break; case 45: v2.alter = 1; if (_root.pilc != 25) { player.xp = 320; player.yp = 370; } v2.spl = 0; v2.outway = true; v2.d.gotoAndStop(1); break; case 42: v2.xpp = v2.xp; v2.ypp = v2.yp; v2.til = ingrid(v2.xp, v2.yp); levz[v2.til] = 3; break; case 40: v2.outway = true; break; case 38: v2.telp = 0; v2.flyby = true; break; case 37: v2.bh = false; break; case 36: v2.yp += 25; v2.xpp = v2.xp; v2.ypp = v2.yp; player.xp = 320; player.yp = 400; break; case 32: v2.pbh = true; v2.rrr = random(4) * 0.06 + 0.9; break; case 33: v2.ggh = true; v2.nod = true; v2.bh = false; break; case 30: v2.hppp = 0; if (!v6) { v2.hp = 7; } v2.xpp = v2.xp; v2.ypp = v2.yp; break; case 25: v2.flyby = true; break; case 3: v2.lfra = 0; break; case 28: v2.fail2 = 0; v2.beenx = [v2.xp]; v2.beeny = [v2.yp]; break; case 4: v2.lfra = fra; v2.spl = -10; break; case 16: v2.noco = 0; break; case 5: v2.ph = true; v2.bh = false; v2.d.gotoAndStop(Math.max(1, Math.round(v6 * 100 - 0.499))); if (v2.d._currentframe == 11 or v2.d._currentframe == 16) { v2.d.prevFrame(); } f1 = Math.round(v6 * 1000000000) - Math.round(v6 * 10000000) * 100; if (fra > 10) { switch (v2.d._currentframe) { if (v2.d._currentframe !== 6) { } else { case 5: _root.soundy('Chest_Drop.mp', 100); } } } if (v2.d._currentframe == 31) { v2.d.gotoAndStop(8); v2.col = 1; } if (v2.d._currentframe == 32) { v2.d.gotoAndStop(8); v2.col = 2; } if (v2.d._currentframe == 33) { v2.d.gotoAndStop(8); v2.col = 10; } if (f1 > 0) { v2.col = f1; } else { if (v2.d._currentframe == 7) { v2.col = random(6) + 1; } if (v2.d._currentframe == 30) { v2.d.gotoAndStop(7); v6 = 0; v2.col = random(22) + 7; } if (v2.d._currentframe == 2 or v2.d._currentframe == 1 or v2.d._currentframe == 4) { f1 = [0, 2, 20, 0, 7]; if (random(f1[v2.d._currentframe]) == 0) { v2.col = 2; } else { v2.col = 1; } if (v2.d._currentframe == 4 && random(10) == 0) { v2.col = 3; } if (v2.d._currentframe == 1 && (random(10) == 0 or random(16) == 0 && _root.skiner == 5)) { v2.col = 3; } } } if (v2.d._currentframe != 8) { v2.d.d.gotoAndStop(3); } if (Math.round(v6 * 100) >= 15 && Math.round(v6 * 100) < 20) { if (v6 > 0.1500000001) { v2.d.d.gotoAndStop(Math.round((v6 - 0.1500499) * 1000)); } else { if (satan) { if (random(5) == 0) { v2.d.d.gotoAndStop(11); } else { v2.d.d.gotoAndStop(9 + random(2)); } } else { f1 = -1; while (!it1[f1]) { f1 = random(7); } if (f1 == 4 or f1 == 3) { watz = -100; } else { ++watz; } if (watz > 1 or watz == 1 && random(3) == 0) { f1 = 3; watz = -100; } it1[f1] = false; if (f1 == 4) { f1 = 3; } else { if (f1 > 4) { f1 += 6; } } wtftex += ' ' + f1; v2.d.d.gotoAndStop(f1 + 1); v2.may = true; if (v2.d.d._currentframe == 3) { v2.col = random(15) + 1; } if (v2.d.d._currentframe == 13) { v2.col = 3; } } } if (v2.may && random(5) == 0 && !salefail && (v2.d.d._currentframe < 5 or v2.d.d._currentframe == 12 or v2.d.d._currentframe == 13)) { salefail = true; v2.d.d.gotoAndStop(v2.d.d._currentframe + 4); } if (v2.d.d._currentframe == 3 or v2.d.d._currentframe == 7) { v2.d.d.d.gotoAndStop(v2.col); } if (v2.d.d._currentframe == 13 or v2.d.d._currentframe == 17) { v2.d.d.d.d.d.gotoAndStop(3); } if (v2.d.d._currentframe == 4 or v2.d.d._currentframe >= 8 && v2.d.d._currentframe < 12) { _root.trg = v2; if (v6 >= 0.1504 && v6 < 0.4) { v2.it = Math.round((v6 - 0.15 - v2.d.d._currentframe * 0.001) * 1000000); } else { v2.it = giveit(); } v2.d.d.d.gotoAndStop(v2.it); } } else { if (v6 > 0.09 && v6 < 0.2) { if (v6 > 0.1 && v6 < 0.4) { v2.it = Math.round((v6 - 0.1) * 10000); } else { v2.it = giveit(); } v2.d.d.d.d.gotoAndStop(v2.it); } } v2.xpp = v2.xp; v2.ypp = v2.yp; if (v2.d._currentframe == 8) { if (v2.col == 10) { v2.d.d.gotoAndStop(41); } else { if (v2.col == 1) { v2.d.d.gotoAndStop(32); } else { if (v2.col > 1) { v2.d.d.gotoAndStop(36); } } } } break; case 61: case 13: case 14: case 18: case 80: v2.flyai = true; v2.d.d.d.gotoAndPlay(random(2) + 1); v2.ybb = 0; v2.xbb = 0; break; break; case 12: case 7: case 8: if (f7 == 8) { var v10 = new flash.geom.Transform(v2); v10.colorTransform = bloc; } v2.ypp = v2.ybew; v2.bh = false; v2.d._rotation = random(360); v2.fd = 1.3; if (f7 == 7) { v2.spl = 10; } else { v2.spl = 0; } v2.dm = -random(30) + 5; v2.dy = -23; 75; break; case 9: v2.dy = -23; 75; v2.shot = true; v2.ph = true; v2.spl = 0; v2.dm = rand() * 0.2; break; case 2: v2.dy = -23; 75; v2.spl = 10; v2.dm = rand() * 0.2; if (babymode) { v2.ba = babymode; v2.dmg = 3.5; if (babymode == 5) { v2.dmg = 3; attach(v2, 500); v2.d._xscale = 80; v2.d._yscale = v2.d._xscale; v2.spl = 0; v2.dm = 1.2; } else { if (babymode == 2) { v2.dmg = 5; attach(v2, 500); v2.d._xscale = 106; v2.d._yscale = v2.d._xscale; v2.spl = 0; } else { if (babymode == 3) { colorit(v2, 0.95, 0.8, 0.6, -150, -150, -150); } else { if (babymode == 4) { colorit(v2, 0.4, 0.15, 0.38, 71, 0, 116); v2.dm -= 3; } } } } babymode = undefined; } else { v2.dmg = dmgdo(); if (ups[7] or doub or demon > 0 or v2.dmg > 5.5 && !ups[69] or ups[122]) { attach(v2, 500); v2.d._xscale = 90; v2.d._yscale = v2.d._xscale; v2.spl = 0; } else { if (ups[115]) { colorit(v2, 1.5, 2, 2, 0, 0, 0); } else { if (ups[132]) { colorit(v2, 0.2, 0.09, 0.065, 0, 0, 0); } else { if (ups[103]) { v2.spl = 30; colorit(v2, 0.5, 0.97, 0.5, 0, 0, 0); } else { if (ups[104]) { colorit(v2, 0.9, 0.3, 0.08, 0, 0, 0); } else { if (ups[90]) { colorit(v2, 0.4, 0.4, 0.4, 50, 50, 50); } else { if (ups[110]) { v2.spl = 0; colorit(v2, 1.25, 0.05, 0.15, 0, 0, 0); } else { if (ups[89]) { colorit(v2, 2, 2, 2, 50, 50, 50); } else { if (ups[69]) { colorit(v2, 0.33, 0.18, 0.18, 66, 40, 40); } else { if (ups[6]) { colorit(v2, 1, 1, 0, 45, 15, 0); v2.spl = 20; v2.piss = true; } else { if (ups[3]) { colorit(v2, 0.4, 0.15, 0.38, 71, 0, 116); } } } } } } } } } } } if (ups[132]) { v2.gro = 0; v2.d._xscale -= 15; v2.d._yscale -= 15; } if (ups[115]) { v2._alpha = 50; } if (ups[6]) { v2.dy += 13; } else { if (_root.skiner == 2) { v2.dy += 6; } } } v2.nuts = 0.2; v2.dir = Math.abs(v2.xbew) < Math.abs(v2.ybew); v2.hh = []; v2.shot = true; if (!v2.ba) { if (ups[5]) { v2.xbew *= 1.6; v2.ybew *= 1.6; } v2.dy -= (ups[12] - ups[71] + ups[30] + ups[31] + ups[29]) * 5; if (ups[4] or doub && ups[7] or ups[12]) { v2.dmg *= 1.5; } f1 = ups[12] + ups[30] + ups[31] + ups[29] + ups[71] * 3 + ups[101] + ups[110] + ups[121]; f1 *= 0.5; v2.dm -= f1; v2.dy -= f1 * 0.5; _root.firrr = -v2.dm * 5 - v2.dy; } f1 = 0.7 + v2.dmg * 0.04 + Math.sqrt(v2.dmg) * 0.15; if (chal && !v2.ba) { f1 -= (chal - 1) * 0.13; } v2.d._xscale *= f1; v2.d._yscale = v2.d._xscale; break; case 11: v2.bnuts = !v6; break; case 10: v2.gonuts = !v6; v2.bnuts = random(3) == 0; } if (f7 == 45) { v2.d.gotoAndStop(1); } return v2; } function parc(f1, f2, f3, f4, f5, f6) { dang = true; ++parz; namer = 'p' + parz; f0 = par.length; if (f6 == undefined) { f6 = parz + 100000; } if (f1 == 'bloo') { par[f0] = blorz.attachMovie(f1, namer, f6); } else { par[f0] = attachMovie(f1, namer, f6); } par[f0]._x = f2; par[f0]._y = f3; if (f4) { par[f0]._rotation = f4; } if (f5) { par[f0]._yscale = f5; par[f0]._xscale = par[f0]._yscale; } par[f0].stop(); return par[f0]; } function rotc(f0) { return f0; } function rand() { return Math.random() - 0.5; } function rotrund(f1) { while (f1 > 180) { f1 -= 360; } while (f1 < -180) { f1 += 360; } return f1; } function rotget(f1, f2) { f0 = (Math.atan(-f1 / f2) / Math.PI) * 180 + 90; if (f2 >= 0) { f0 += 180; } return f0; } function linearcut(f1, f2, f3, f4, f5, f6) { return (f1 * f6 - f2 * f5) / (f3 * f6 - f5 * f4); } function absmax(f1, f2) { if (f1 > f2) { f1 = f2; return f1; } if (f1 < -f2) { f1 = -f2; } return f1; } function enfget(f1, f2) { f1 = f1 * f1 + f2 * f2; if (f1 > 0) { f1 = Math.sqrt(f1); return f1; } f1 = 0.001; return f1; } function enfcheckx(f1, f2, f3, f4, siz) { xenf = f1 - f3; yenf = f2 - f4; if (Math.abs(xenf) < roxx2 or Math.abs(yenf) < roxx2) { enf = enfget(xenf, yenf); if (enf < siz) { return enf; } } } function enfcheck(f1, f2, f3, f4, siz) { xenf = f1 - f3; if (Math.abs(xenf) < siz) { yenf = f2 - f4; if (Math.abs(yenf) < siz) { enf = enfget(xenf, yenf); if (enf < siz) { return enf; } } } } function t3d(f1, f2) { f2 += f1._rotation; f2 += 45; while (f2 > 360) { f2 -= 360; } while (f2 < 0) { f2 += 360; } f1.gotoAndStop(Math.round((f2 / 360) * 72) + 1); } function pff(f1, f2) { if (trg.gridder[f1] >= 0 && trg.gridder[f1] < 1) { if (trg.gridder[f1] == 0) { --f2; } else { f2 -= 7; } trg.gridder[f1] = f2; acts2.push(f1); } } function pff1(f1, f2) { if (trg.gridder[f1] + f2 * 3 > v3 && trg.gridder[f1] < 0) { v3 = trg.gridder[f1]; v4 = f1; } } function pff2(f1) { if (levz[f1] != 0) { outgrid(f1); if (Math.abs(xenf) > 0 && Math.abs(yenf) > 0) { if (Math.abs(xenf - trg.xp) < roxx * 0.8 && Math.abs(yenf - trg.yp) < roxx * 0.8) { if (xenf < trg.xp) { minx = xenf + roxx * 0.8; } else { maxx = xenf - roxx * 0.8; } if (yenf < trg.xp) { miny = yenf + roxx * 0.8; } else { maxy = yenf - roxx * 0.8; } } } } } function momkill() { if (momdown != 100) { for (z in ball) { momdown = 100; if (_root.chaps == 6) { _root.soundy('Mom_Vox_Death_' + random(2) + '.mp'); } else { if (_root.chaps == 9) { } else { _root.soundy('Mom_Vox_Filtered_Death_1.mp'); } } if (trg.s != 78) { hurt(ball[z], 100); } } } mheart._visible = false; } function hurt(trg, f1) { if (trg == mheart) { mheart.downbro -= 3; } if (trg.s == 45) { if (f1 > 10 + random(20)) { if (trriss + 25 + random(30) <= fra) { trriss = fra; _root.soundy('Mom_Vox_Hurt_' + random(4) + '.mp'); } } } if (trg == mheart) { if (f1 > 10 + random(20)) { if (trriss + 25 + random(30) <= fra) { trriss = fra; _root.soundy('Mom_Vox_Filtered_Hurt_' + random(4) + '.mp'); } } } if (trg.randd + 2 > fra && random(5) == 0) { trg.xpp = trg.xp; trg.ypp = trg.yp; } if (!trg.dones) { if (trg.s == 30) { trg.hppp = 0; } if (trg.s == 38) { trg.telp = 20; } if (trg.imba) { f1 = 0; } if (trg.s == 62) { if (trg.worm == 1 && trg.d._currentframe == 8) { trg = worm[6]; } else { if (trg.worm != 6) { f1 = 0; lows.dones = false; } else { f1 *= 5; } } } if (trg.s == 27 && trg.alter != 2) { trg.fire = Math.min(10, trg.fire + f1); if (f1 > 10) { trg.d.t._visible = true; trg.d.t.t.gotoAndPlay(1); } } if (f1 > 0 && trg.mhp > 0 && trg != player && (trg.d.d.open or trg.s != 27 or trg.alter == 2 or lows.meat > 2 or lows.bird)) { if (trg.s == 19) { if (!trg.whop) { trg.whop = -1; } } else { if (trg.s == 21) { trg.xpp = undefined; } } if (trg.s == 45) { for (z in mom) { mom[z].hp -= f1; } } else { if (trg.s == 28) { mags[1].hp -= f1; mags[2].hp -= f1; mags[3].hp -= f1; } else { trg.hp -= f1; } } if (trg.hp < 0) { if (pacman) { if (!paccer) { player.hp += 0.5; } paccer = !paccer; } if (trg.poiss > 0) { trg.spl = 30; } if (trg == mheart) { momkill(); } if (trg.s == 84 && trg.pow > 3) { momkill(); } if (!trg.flyai && ups[62] && trg.s >= 10) { if (_root.vamp++ >= 12 && player.mhp > 0) { _root.vamp = 0; player.hp += 0.5; parc('hearter', player.xp, player.yp - 20, 0, 100, player.dpppp + 5000); _root.soundy('Vamp_Gulp.mp'); } } if (trg.s == 62) { for (z in worm) { worm[z].dones = true; } } else { if (trg.s == 45) { for (z in mom) { mom[z].dones = true; mom[z]._visible = false; } momkill(); } else { if (trg.s == 28) { _root.soundy('Monster_Roar_2.mp', 50); mags[1].dones = true; mags[2].dones = true; mags[3].dones = true; } } } if (trg.s == 74) { trg.d.gotoAndStop(6); } else { if (trg.s == 75) { trg.d.gotoAndStop(9); } else { if (trg.s == 15 && random(2) == 0 && !blackout == 2) { trg.gosplash = true; trg.s = 17; attach(trg, 17); trg.hp = hps[trg.s]; trg.ypp = 0; trg.xpp = 0; } else { if (trg.s == 10 && random(2) == 0 && trg.hp > -25) { trg.gosplash = true; attach(trg, 11); trg.s = 11; trg.outway = true; trg.hp = hps[trg.s]; splater(trg.xp, trg.yp, random(10) + 1, Math.random() + 0.6); } else { if (trg.s == 24 && trg.d._currentframe < 3) { trg.gosplash = true; trg.d.gotoAndStop(5); trg.outway = true; trg.hp = 10; splater(trg.xp, trg.yp, random(10) + 1, Math.random() + 0.6); } else { if (trg.s == 84) { ++trg.pow; if (trg.pow == 4) { trg.hp = trg.mhp; trg.d.gotoAndStop(8); trg.bh = false; } } else { trg.dones = true; } } } } } } } else { colorit(trg, 0.5, 0.5, 0.5, 200, 0, 0); trg.uncol = Math.round(fra + Math.min(6, f1 / 1.5)); if (trg.hbar) { _root.hud.bar.bar.gotoAndPlay(1); } if (trg.s == 62) { trg.uncol = Math.round(fra + Math.min(6, f1 / 1.5)); for (z in worm) { if (worm[z].bh) { colorit(worm[z], 0.5, 0.5, 0.5, 200, 0, 0); worm[z].uncol = trg.uncol; } } } else { if (trg.s == 45) { trg.uncol = Math.round(fra + 1); for (z in mom) { if (mom[z].bh or mom[z].mom == 3) { colorit(mom[z], 0.5, 0.5, 0.5, 200, 0, 0); mom[z].uncol = trg.uncol; } } trg.uncol = Math.round(fra + Math.min(6, f1 / 1.5)); } else { if (trg.s == 28) { colorit(mags[1], 0.5, 0.5, 0.5, 200, 0, 0); mags[1].uncol = trg.uncol; colorit(mags[2], 0.5, 0.5, 0.5, 200, 0, 0); mags[2].uncol = trg.uncol; colorit(mags[3], 0.5, 0.5, 0.5, 200, 0, 0); mags[3].uncol = trg.uncol; } } } } } } } function colorit(trg, f1, f2, f3, f4, f5, f6) { var v1 = new flash.geom.ColorTransform(); v1.redMultiplier = f1; v1.greenMultiplier = f2; v1.blueMultiplier = f3; v1.redOffset = f4; v1.greenOffset = f5; v1.blueOffset = f6; var v3 = new flash.geom.Transform(trg); if (trg.s == 9 or trg.s == 8) { trg.colo = v1; } v3.colorTransform = v1; } function pilcol(f1, f2, f3) { colorit(player, 0.3, 0.3, 0.3, f1 * 1.3, f2 * 1.3, f3 * 1.3); pillef = fra + 30; _root.playcol[0] *= 0.4; _root.playcol[1] *= 0.4; _root.playcol[2] *= 0.4; _root.playcol[0] += f1 / 160; _root.playcol[1] += f2 / 160; _root.playcol[2] += f3 / 160; } function playcol(f1) { if (pillef > fra) { player._alpha = 100; } else { if (unic > 30 && !pacman) { if (unic % 4 == 0 && player.d._currentframe < 4) { v1 = 50; v2 = 70; if (roll(6)) { colorit(player, 1, 0, 0, v1, v1, v1); } else { if (roll()) { colorit(player, 0, 1, 0, v1, v1, v1); } else { if (roll()) { colorit(player, 0, 0, 1, v1, v1, v1); } else { if (roll()) { colorit(player, 1, 1, 0, v2, v2, v2); } else { if (roll()) { colorit(player, 0, 1, 1, v2, v2, v2); } else { if (roll()) { colorit(player, 1, 0, 1, v2, v2, v2); } } } } } } } } else { if (f1) { player._alpha = 0; } else { if (!trg.free) { player._alpha = 100; colorit(player, _root.playcol[0], _root.playcol[1], _root.playcol[2], 0, 0, 0); } } } } } function teller() { player.d.gotoAndStop(7); telf = fra + player.d.d._totalframes - 3; _root.soundy('hell_portal2.wav'); } function playerhurt(f1, f2) { if (_root.chaps > 6) { f1 = Math.max(f1, 1); } if (ups[108]) { f1 = 0.5; } if (f2 == 45) { if (trrisx + 50 + random(130) <= fra) { trrisx = fra; _root.soundy('Mom_Vox_EvilLaugh.mp'); } } if (_root.chaps == 9 && _root.lev == _root.bossl) { plh = true; } if (mhheart) { if (trrisx + 50 + random(130) <= fra) { trrisx = fra; _root.soundy('Mom_Vox_Filtered_EvilLaugh.mp'); } } if (lasth - fra < 0 && player._visible && telf == undefined && playsave < 0 && unic < 0 && player.hp > 0 && horse <= 0) { if (f1 > 0) { lastk = f2; plah = true; if (f2 <= 200) { _root.nodmg = false; } if (_root.armor > 0) { _root.armor -= f1; if (_root.armor <= 0) { _root.armor = 0; } } else { _root.armor = 0; player.hp -= f1; if (_root.devil != 2 && _root.devil != 3 && f2 <= 200) { _root.devil = false; } if (f2 <= 200) { bossdmg = false; } } lasth = fra + f1 * 60; if (_root.ups[122] && !ups[122] && player.hp > 0 && player.hp < 1) { ups[122] = 1.2; curs(); lasth = fra + 90; } else { if (ups[117]) { ups[117] = 0.55; } } if (demon > 0) { _root.soundy('Monster_Grunt_' + random(2) + '_B.mp'); } else { _root.soundy('Isaac_Hurt_Grunt' + random(3) + '.mp'); } if (player.hp <= 0 or !(player.mhp > 0 or _root.armor > 0)) { player.d.gotoAndStop(6); player.d.d.gotoAndStop(sk); player.dones = true; return true; } player.d.gotoAndStop(2); return true; } } } function splater(f1, f2, f3, f4) { if (f3 >= 1) { blood.gotoAndStop(f3); v1 = f4; if (random(2) == 0) { v2 = -v1; } else { v2 = v1; } maxx = new flash.geom.Matrix(); maxx.scale(v1, v2); maxx.translate(f1 + crand(5), f2 + crand(5) - 5); maxx.scale(hdx, hdx); splat.draw(blood, maxx, bloc); } } function shadow(f1, f2) { poi.x = f1; poi.y = f2; shad.copyPixels(org, org.rectangle, poi, undefined, undefined, true); maxx = new flash.geom.Matrix(); maxx.translate(f1, f2); shad.draw(shaz, maxx); } function turd(f1, e, cent) { if (fra > 10 && levz[e] < 0.9) { levz[e] = 1.5; clevzc[e] = 1.5; } if (levz[e] > 1.1) { var v4 = _root.levsav[_root.lev][savv]; outgrid(e); var v2 = attachMovie(f1, 'de' + e * 1, Math.round(e + 501), {'_x': xenf, '_y': yenf}); v2.xp = v2._x; v2.yp = v2._y; v2.cent = cent; v2.savv = savv; v2.nam = f1; if (v4 > 0) { v2.gotoAndStop(v4); if (levz[e] == 4) { levz[e] = 0; } else { levz[e] -= 0.13 * (v4 - 1); } } if (fra < 10) { v2.p.gotoAndStop(v2.p._totalframes); } if (fra > 10) { v2.gotoAndStop(6); } if (f1 == 'locktile' && v4 > 1) { v2.gotoAndStop(3); } ++savv; } } function upa() { ups = _root.ups.slice(0, -1); if (_root.world) { ups[54] = true; ups[21] = ups[54]; } if (ups[69] && ups[52]) { ups[69] = 0; } if (_root.ups[122]) { if (player.hp < 1) { ups[122] = 1; sk = 7; cus = true; } else { ups[122] = 0; } } } function curs() { sk = 7; _root.mmus = _root.soundy('isaacsatanitemget.mp', 100); _root.over.gotoAndStop(13); player.d.gotoAndStop(11); player.it = 122; } function golev() { upa(); if (_root.ups[122]) { if (player.hp < 1) { ups[122] = 1; cus = true; } else { ups[122] = 0; } } if (_root.skiner > 0 && _root.classit) { _root.classit = false; f10 = [0, 45, 46, 34, 36, 117]; highs = player; player.it = f10[_root.skiner]; powerlevel(); if (_root.skiner == 5) { _root.ups[122] = 1; _root.cols.push(122); } } if (!_root.wtfuuz && _root.locker[38] && _root.skiner == 0) { player.empty = false; lastcra = -100; _root.wtfuuz = true; highs = player; player.it = 105; powerlevel(); } if (_root.shroom) { player.d.gotoAndStop(4); if (_root.shroom == 3) { player.it = 127; } else { if (_root.shroom == 2) { player.it = 81; } else { player.it = 11; _root.soundy('1up.wav'); } } _root.shroom = false; } for (e in _root.bomf[_root.lev]) { maxx = new flash.geom.Matrix(); maxx.translate(_root.bomf[_root.lev][e][0], _root.bomf[_root.lev][e][1]); maxx.scale(hdx, hdx); splat.draw(crater, maxx); } savv = 0; if (_root.levsav[_root.lev] == undefined) { _root.levsav[_root.lev] = []; } if (_root.bomf[_root.lev] == undefined) { _root.bomf[_root.lev] = []; } if (_root.levblow[_root.lev] == undefined) { _root.levblow[_root.lev] = []; } else { for (e in _root.levblow[_root.lev]) { f1 = _root.levblow[_root.lev][e]; levz[f1] = 0; } } player.xp = _root.playerx; player.yp = _root.playery; if (!nomore && _root.donelev[_root.lev] && _root.chesttype[_root.lev] != 4) { _root.m.nextFrame(); } qq = _root._quality; if (qq != 'high') { _root._quality = 'high'; } if (!error) { maxx = new flash.geom.Matrix(); maxx.translate(b._x, b._y - bggg._y); maxx.scale(hdx, hdx); bgg.draw(b, maxx); f1 = 18; b.w1.gotoAndStop(f1); b.w2.gotoAndStop(f1); b.w3.gotoAndStop(f1); b.w4.gotoAndStop(f1); b.bg.gotoAndStop(f1); b._visible = false; } v1 = e + a; trg = createEmptyMovieClip('dblockx', 489); dblock = new flash.display.BitmapData(gridxs, gridys, true, 0); maxx = new flash.geom.Matrix(); maxx.translate(0, 0); trg.attachBitmap(dblock, 1); trg._xscale = 100 / hdx; trg._yscale = trg._xscale; e = 0; while (e < levz.length) { if (levz[e] > 0 && levz[e] <= 1 or levz[e] == 1.9 or levz[e] == 1.93 or levz[e] == 3) { outgrid(e); if (levz[e] == 1.93) { levz[e] = 0.99; if (_root.chaps >= 7 && _root.chaps != 9) { tiles.gotoAndStop(70); } else { tiles.gotoAndStop(21); } } else { if (levz[e] == 3) { v1 = [levz[e + 1] == 3, levz[e + rowz] == 3, levz[e - 1] == 3, levz[e - rowz] == 3]; v2 = random(2) - 1; if (v1[0]) { v2 = 1; } if (v1[1]) { v2 = 2; } if (v1[2]) { v2 = 3; } if (v1[3]) { v2 = 4; } if (v1[2] && v1[0]) { v2 = 5; } if (v1[3] && v1[1]) { v2 = 6; } if (v1[0] && v1[1]) { v2 = 7; } if (v1[1] && v1[2]) { v2 = 8; } if (v1[2] && v1[3]) { v2 = 9; } if (v1[3] && v1[0]) { v2 = 10; } if (v1[0] && v1[1] && v1[2]) { v2 = 11; } if (v1[1] && v1[2] && v1[3]) { v2 = 12; } if (v1[2] && v1[3] && v1[0]) { v2 = 13; } if (v1[3] && v1[0] && v1[1]) { v2 = 14; } if (v1[0] && v1[1] && v1[2] && v1[3]) { v2 = 15; } tiles.gotoAndStop(23 + v2); } else { if (levz[e] == 1.9) { levz[e] = 1.8; tiles.gotoAndStop(random(4) + 11); } else { if (levz[e] == 1) { if (_root.chaps >= 7 && _root.chaps != 9) { tiles.gotoAndStop(80 + random(3)); } else { if (_root.rarer[_root.lev] == e) { tiles.gotoAndStop(15); } else { tiles.gotoAndStop(random(10) + 1); } } } else { tiles.gotoAndStop(94 + random(5) + _root.chaps * 5); levz[e] = 0; clevc[e] = 0; } } } } maxx = new flash.geom.Matrix(); maxx.translate(xenf, yenf); maxx.scale(hdx, hdx); dblock.draw(tiles, maxx); } ++e; } yyo = 1; e = 0; while (e < levz.length) { switch (levz[e]) { case 4: turd('locktile', e); break; case 1.3: turd('egg', e); break; case 1.4: turd('fireblock', e); break; case 1.5: turd('breakblock', e); } ++e; } if (qq != 'high') { _root._quality = qq; } e = 0; while (e < 700) { levz[ingrid(40 + e, 130)] = 1.9; e += 10; } e = 0; while (e < 700) { levz[ingrid(40 + e, 450)] = 1.9; e += 10; } e = 0; while (e < 300) { levz[ingrid(40, 130 + e)] = 1.9; e += 10; } e = 0; while (e < 300) { levz[ingrid(600, 130 + e)] = 1.9; e += 10; } e = 0; while (e < levz.length) { if (levz[e] < 0) { f1 = 9 - levz[e]; if (!firsttime or f1 == 42) { outgrid(e); if (f1 < 10) { f1 = 5 - levz[e]; } f2 = 1; if (f1 == 62) { f2 = 7; } if (!_root.beenlev2[_root.lev] or f1 > 6) { i = 0; while (i < f2) { create(xenf, yenf + 10 + i, 0, 0, 0, 0, f1); ++i; } } levz[e] = 0; } } if (Math.abs(levz[e]) <= 0) { levz[e] = 0; } ++e; } if (firsttime) { e = 0; while (e < levz.length) { if (levz[e] < 0) { levz[e] = 0; } if (Math.abs(levz[e]) <= 0) { levz[e] = 0; } ++e; } } clevc = levz.slice(0, -1); e = 0; while (e < levz.length) { if (clevc[e] == 2 or clevc[e] == 0.99 or clevc[e] == 3.6) { clevc[e] = 0; } if (clevc[e] > 1 && clevc[e] < 2 or clevc[e] == 3) { clevc[e] = 1; } ++e; } e = 0; while (e < levz.length) { f2 = clevc[e] + ' ' + clevc[e + rowz + 1]; f3 = clevc[e + 1] + ' ' + clevc[e + rowz]; if (f2 == '0 0' && f3 == '1 1') { clevc[e] = 2; clevc[e + rowz + 1] = 2; } if (f2 == '1 1' && f3 == '0 0') { clevc[e + 1] = 2; clevc[e + rowz] = 2; } ++e; } for (e in clevc) { if (clevc[e] == 2) { clevc[e] = 1; } } e = 0; while (e < levz.length) { f2 = clevc[e] + ' ' + clevc[e + 1]; f4 = levz[e] + ' ' + levz[e + 1]; f3 = clevc[e] + ' ' + clevc[e + rowz]; f5 = levz[e] + ' ' + levz[e + rowz]; if (f2 == '1 1' && f4 == '0 0') { clevc[e] = 0; clevc[e + 1] = 0; } if (f3 == '1 1' && f5 == '0 0') { clevc[e + 1] = 0; clevc[e + rowz] = 0; } ++e; } for (e in door) { trg = door[e]; trg.gotoAndStop(4); if (error) { trg._visible = false; } else { if (_root.lev == _root.bossl && !trg._visible && (Math.abs(e - _root.door) == 2 or e == _root.door or _root.door <= 0) && !sat) { sat = true; trg._visible = true; trg.gol = 166; } else { if (satan) { trg._visible = false; if ((Math.abs(e - _root.door) == 2 or _root.door <= 0) && !sat) { sat = true; trg.gol = _root.lastl; if (trg.gol == 166 or trg.gol <= 0) { trg.gol = 35; } trg._visible = true; } } } } if (trg._visible) { trg.blo = ingrid(trg._x, trg._y); _root.seenlev[trg.gol] = true; if (_root.lev == _root.boner) { _root.treasd = true; } if (ups[91]) { if (trg.gol == _root.boner) { _root.treasd = true; } if (trg.gol == _root.hide) { hider(); } if (trg.gol == _root.minb) { _root.minbb = true; } } if (_root.lev == _root.hide && (_root.lastl == undefined or _root.lastl == _root.lev) && trg.gol != _root.bossl) { _root.lastl = trg.gol; } if (_root.lev == _root.hide && (_root.lastl == trg.gol or ups[76]) or ups[76] && trg.gol == _root.hide && _root.lev != _root.bossl && _root.lev != _root.minb) { trg.hide = true; trg.gotoAndStop(17); levz[trg.blo] = 0; } else { if ((trg.gol == _root.hide or _root.lev == _root.hide) && !satan) { trg.hide = true; trg.gotoAndStop(10); levz[trg.blo] = 1.85; if (trg.gol == _root.bossl or _root.lev == _root.bossl or _root.lev == _root.minb or _root.lev == _root.chamb) { levz[trg.blo] = 2; } } else { if (satan or trg.gol == 166) { trg.sat = true; trg.gotoAndStop(12); } else { if (trg.gol == _root.bossl or _root.lev == _root.bossl) { trg.boss = true; _root.bossd = true; trg.gotoAndStop(16); } else { if (trg.gol == _root.chamb or _root.lev == _root.chamb) { chama = 1; _root.chambb = true; trg.chamb = true; trg.gotoAndStop(27); } else { if (trg.gol == _root.gamb) { _root.gambb = true; trg.gamb = true; trg.gotoAndStop(20); } else { if (trg.gol == _root.boner or _root.lev == _root.boner) { _root.treasd = true; trg.boner = true; if (_root.bona) { trg.gotoAndStop(32); } else { trg.gotoAndStop(30); } } else { if (trg.gol == _root.shopl) { _root.shopaz = true; trg.shop = true; trg.gotoAndStop(9); } else { levz[trg.blo] = 1.85; } } } } } } } } } f2 = 28; f1 = ((trg._rotation - 90) / 180) * Math.PI; trg.xp = trg._x - Math.sin(f1) * f2; trg.yp = trg._y + Math.cos(f1) * f2; } mapd(); for (e in _root.levit[_root.lev]) { create(_root.levit[_root.lev][e][1], _root.levit[_root.lev][e][2], 0, 0, 0, 0, 5 + _root.levit[_root.lev][e][0] * 0.01); } if (gopill) { create(320, 240, 0, 0, 0, 0, 5.07); } if (inem) { inl.gotoAndStop('empty'); inl.swapDepths(33901); } else { gotoAndStop('empty'); } lads.swapDepths(491); _root.beenlev2[_root.lev] = true; } function spawnb(f1, f2) { if (levz.length <= 1) { levz = new Array(200); } if (f1._alpha < 75) { if (f2 == 1) { f2 = 1.9; } else { if (f2 < -0.5 or f2 > 0) { f2 -= 0.1; } } } var v2 = ingrid(f1._x, f1._y); levz[v2] = f2; } function sideflip(f1, trg2) { trg.sf2 = trg2; if (trg2 == undefined) { if (trg.sf2 == undefined) { trg2 = trg.d; } else { trg2 = trg.sf2; } } trg.sf = true; if (f1 * trg2._xscale < -100) { trg2._xscale *= -1; } } function pathfind(trg, f1, f2, f3) { if (trg.speed == undefined) { trg.speed = 1; } if (trg.s == 35) { f3 *= 1.1; } if ((trg.xp != f1 or trg.yp != f2) && fra > 5) { v1 = ingrid(f1, f2); outgrid(v1); xpp = xenf; ypp = yenf; v2 = ingrid(trg.xp, trg.yp); outgrid(v2); xppp = xenf; yppp = yenf; if (v2 != trg.tiler) { --trg.tiletimer; if (trg.tiler == undefined or trg.tiletimer < 0 or trg == player) { trg.tiler = v2; trg.tiletimer = 2 / Math.max(0.2, f3); } } if (fra % 3 == 1) { v2 = 40 / enfget(trg.xbew, trg.ybew); v2 = levz[ingrid(trg.xp + trg.xbew * v2, trg.yp + trg.ybew * v2)]; if (v2 > 0 && v2 < 1) { trg.speed = 0.7; } else { trg.speed = 1; } } v2 = trg.tiler; if (levz[trg.tiler] < 0.99 && trg.s != 16) { if (trg.s == 58) { levz[trg.tiler] = 0.2; } else { levz[trg.tiler] = 0.9; } } if (f3 == undefined) { f3 = 1; } f3 *= trg.speed; nogo = true; if ((fra + trg.e) % 10 == 1) { if (trg.see) { v5 = linecheckxx(xppp, yppp, xpp, ypp); trg.lastv = v5; } else { v5 = linecheck(xppp, yppp, xpp, ypp); trg.lastv = v5; } if (trg.lastv && trg.firss + 40 <= fra && random(3) == 0 && gochar) { trg.firss = fra; _root.soundy('Zombie_Walker_Kid.mp', 100); } } else { v5 = trg.lastv; } trg.d.h.stop(); if (!trg.gonuts) { f3 *= 0.83; } if (trg.d.h._currentframe > 2) { f3 *= 1.2; trg.d.h.nextFrame(); } else { if (trg.gonuts) { trg.d.h.gotoAndStop(2); } } if (v5 && enf or v1 == v2) { if (trg.gonuts) { trg.d.h.nextFrame(); f3 *= 1.1; } trg.tiletimer -= 5; trg.gridtime -= 10; xenf = f1; yenf = f2; nogo = false; } else { if (levz[v1] != 1) { if ((trg.gridder == undefined or trg.gridtime < 0) && nogridyet) { nogridyet = false; trg.gridder = levz.slice(0, -1); acts = []; acts2 = []; z = -1; for (;;) { if (!(z > -100 && trg.gridder[v2] >= 0)) break; if (z == -1) { pff(v1, -1); } else { for (e in acts) { v1 = trg.gridder[acts[e]]; if (v1 < z) { acts2.push(acts[e]); } else { outgrid(acts[e]); pff(ingrid(xenf, yenf + roxx), v1); pff(ingrid(xenf + roxx, yenf), v1); pff(ingrid(xenf - roxx, yenf), v1); pff(ingrid(xenf, yenf - roxx), v1); } } } acts2[acts2.length] = 0; acts = acts2.slice(0, -1); acts2 = []; --z; } if (z < -99) { trg.gridder = 0; } trg.gridtime = Math.min(20, -z) + ball.length * 2 + 7; } trg.gridtime * 0.9; trg.gridtime -= f3 * 3; if (trg.gridder != undefined && trg.gridder != 0) { outgrid(v2); v3 = -100; testarr = [ingrid(xenf + roxx, yenf), ingrid(xenf - roxx, yenf + roxx), ingrid(xenf - roxx, yenf), ingrid(xenf - roxx, yenf - roxx), ingrid(xenf, yenf - roxx), ingrid(xenf + roxx, yenf - roxx), ingrid(xenf, yenf + roxx), ingrid(xenf + roxx, yenf + roxx)]; arrr = [0, 0, 0, 0, 0, 0, 0, 0]; arrrr = [0, 0, 0, 0, 0, 0, 0, 0]; for (e in testarr) { if (levz[testarr[e]] != 0) { arrr[e] = 1; } } for (e in testarr) { if (arrr[e] == 1) { arrrr[e] = -1; arrrr[e + 1] = -1; arrrr[e - 1] = -1; if (e == 0 or e == 7) { arrrr[7] = -1; arrrr[0] = -1; } } } for (e in testarr) { if (clevc[testarr[e]] == 0) { pff1(testarr[e], 0); } } if (v3 < 0) { outgrid(v4); nogo = false; } } } else {} } if (!nogo && enf > 0.1) { var v6 = xenf - trg.xp; var v7 = yenf - trg.yp; xenf = v6; yenf = v7; enf = enfget(xenf, yenf); if (enf > 1) { enf = (Math.min(enf * 0.1, 2) / enf) * f3; trg.xbew *= 0.7; trg.ybew *= 0.7; trg.xbew += xenf * enf; trg.ybew += yenf * enf; } } else { yenf = 0; xenf = 0; trg.xbew *= 0.5; trg.ybew *= 0.5; } } else { yenf = 0; xenf = 0; trg.xbew *= 0.85; trg.ybew *= 0.85; } gochar = false; } function mhity(f1, f2) { if (f1 > 20 && f1 < 620 && f2 > 110 && f2 < 447) { f1 = levz[ingrid(f1, f2)]; if (f1 >= 1 && f1 != 3) { return true; } } else { return true; } } function mhitx(f1, f2) { if (f1 > 20 && f1 < 620 && f2 > 110 && f2 < 447) { f1 = levz[ingrid(f1, f2)]; if (f1 > 1.8 && f1 != 3) { return true; } } else { return true; } } function shit(f1, f2) { return blorz.hitTest(f1 + _x, f2 + _y, true); } function mhit(f1, f2) { if (f1 > 20 && f1 < 620 && f2 > 110 && f2 < 447) { f1 = levz[ingrid(f1, f2)]; if (f1 >= 1) { return true; } } else { return true; } } function pff3(f4) { f4 = levz[f4]; if (f4 != 0.99) { if (f4 >= 1) { f5 = -1; } else { if (f4 > 0) { f5 -= 0.3; } } } } function pff3x1(f4) { f4 = levz[f4]; if (f4 != 3) { if (f4 >= 1) { f5 = -1; } else { if (f4 > 0) { f5 -= 0.3; } } } } function linecheckxx(f1, f2, f3, f4) { var v5 = f1 - f3; var v6 = f2 - f4; var v7 = enfget(v5, v6); var v8 = 2.5; if (v7 > 0) { v5 /= v7; v6 /= v7; v5 *= 10; v6 *= 10; var v2 = 0; while (v2 < v7) { f1 -= v5; f2 -= v6; f3 = ingrid(f1, f2); if (levz[f3] >= 1.8 && levz[f3] != 1.85 && levz[f3] != 3) { v8 = -1; } v2 += 10; } } return v8 > 0; } function linecheckx(f1, f2, f3, f4) { var v5 = f1 - f3; var v6 = f2 - f4; var v4 = enfget(v5, v6); f5 = 2.5; f6 = 5; if (v4 > 0) { v5 /= v4; v6 /= v4; v5 *= 10; v6 *= 10; var v1 = 0; while (v1 < v4) { f1 -= v5; f2 -= v6; pff3(ingrid(f1, f2)); v1 += 10; } } return f5 > 0; } function linecheck(f1, f2, f3, f4) { var v5 = f1 - f3; var v6 = f2 - f4; var v4 = enfget(v5, v6); f5 = 2.5; f6 = 5; if (v4 > 0) { v5 /= v4; v6 /= v4; v5 *= 10; v6 *= 10; var v3 = 0; while (v3 < v4) { f1 -= v5; f2 -= v6; pff3(ingrid(f1 + f6, f2 + f6)); pff3(ingrid(f1 - f6, f2 + f6)); pff3(ingrid(f1 - f6, f2 - f6)); pff3(ingrid(f1 + f6, f2 - f6)); v3 += 10; } } return f5 > 0; } function linechecky(f1, f2, f3, f4) { var v5 = f1 - f3; var v6 = f2 - f4; var v4 = enfget(v5, v6); f5 = 2.5; f6 = 2; if (v4 > 0) { v5 /= v4; v6 /= v4; v5 *= 10; v6 *= 10; var v3 = 0; while (v3 < v4) { f1 -= v5; f2 -= v6; pff3x1(ingrid(f1 + f6, f2 + f6)); pff3x1(ingrid(f1 - f6, f2 + f6)); pff3x1(ingrid(f1 - f6, f2 - f6)); pff3x1(ingrid(f1 + f6, f2 - f6)); v3 += 10; } } return f5 > 0; } function st11(f1) { _root.hud.st1.tex = f1; _root.hud.st1.gotoAndPlay(1); _root.hud.st1._visible = true; } function itn2(f1) { if (f1 >= 18 or f1 == 16) { return 40; } else { return 32; } } function itn(f1) { if (f1 < 55) { return 32; } else { return 40; } } function powerlevel() { var v3 = _root.fmode; if (!highs.empty) { if (fra - lastcraf > 30) { lastcraf = fra; if (_root.lev == 35 && _root.chaps == 1 && fra < 15) { } else { if (highs.it == 12 or highs.it == 11 or highs.it == 71) { _root.soundy('1up.wav'); } else { if (highs.it == 92) { _root.soundy('band aid pick up.wav', 50); } else { if (_root.lev == _root.bossl or _root.lev == _root.minb) { _root.soundy('Powerup2.mp', 50); } else { if (_root.lev == _root.boner) { _root.soundy('Powerup1.mp', 50); } else { if (_root.lev == _root.shopl) { _root.soundy('Powerup3.mp', 50); } else { _root.soundy('Choir_unlock.wav', 50); } } } } } } } } maxp = true; if (!highs.empty && fra - lastcra >= 30) { if (chama == 1 && _root.lev == _root.chamb) { chama = 2; } st11(_root.st1[highs.it]); st22(_root.st2x[highs.it]); if (highs.d._currentframe == 10) { var v2 = highs.d.d; } else { var v2 = highs.d; } highs.empty = true; if (highs.it == 22 or highs.it == 23 or highs.it == 24 or highs.it == 25 or highs.it == 26) { ++player.hp; } else { if (highs.it == 12 or highs.it == 15 or highs.it == 16) { player.hp = 1000; if (highs.it == 15) { hat(25); } } } ++_root.ups[highs.it]; _root.colss[highs.it] = true; ups[highs.it] = _root.ups[highs.it]; if (highs != player) { highs.d.d.d.gotoAndPlay(21); } player.d.gotoAndStop(4); player.it = highs.it; if (highs.it == 7) { _root.fmode = 8; hat(7); } else { if (highs.it < 8) { _root.fmode = 1 + highs.it; _root.hmode = _root.fmode; } } if (highs.it == 27) { hat(27); } if (highs.it == 81) { if (_root.skiner == 4) { _root.armor = 1; } else { _root.ups[23] += 1 - player.mhp; } ups[23] = _root.ups[23]; } if (highs.it == 52) { _root.ittt.push(125, 125, 125, 125, 125, 125, 106, 106, 106, 106, 106, 106); } if (highs.it == 125) { _root.bombs += 5; } else { if (highs.it == 118) { _root.sk = 7; sk = 7; } else { if (highs.it == 114) { _root.bmode = 15; } else { if (highs.it == 122) { ups[122] = false; } else { if (highs.it == 116) { _root.itc = 1; hat(36); } else { if (highs.it == 132) { hat(39); } else { if (highs.it == 119) { player.hp += 5; hat(35); } else { if (highs.it == 129) { player.hp += 0.5; _root.bmode = 14; } else { if (highs.it == 115) { _root.hmode = 32; _root.fmode = 18; } else { if (highs.it == 110) { hat(33); } else { if (highs.it == 109) { hat(34); } else { if (highs.it == 103) { _root.hmode = 26; _root.fmode = 15; } else { if (highs.it == 104) { _root.fmode = 16; hat(32); } else { if (highs.it == 106) { _root.hmode = 9; _root.bombs += 5; } else { if (highs.it == 101) { ++player.hp; hat(29); } else { if (highs.it == 59) { _root.hmode = 24; } else { if (highs.it == 29) { _root.bmode = 10; } else { if (highs.it == 46) { _root.bmode = 11; } else { if (highs.it == 64) { hat(26); } else { if (highs.it == 63) { hat(24); } else { if (highs.it == 92) { _root.armor += 2; ++player.hp; hat(23); } else { if (highs.it == 86) { } else { if (highs.it == 87) { hat(22); } else { if (highs.it == 88) { } else { if (highs.it == 89) { hat(20); _root.fmode = 14; } else { if (highs.it == 90) { hat(21); } else { if (highs.it == 91) { hat(19); } else { if (highs.it == 81) { _root.ups[81] = 8; ups[81] = 8; } else { if (highs.it == 82) { _root.hmode = 22; _root.sk = 7; sk = 7; } else { if (highs.it == 72) { _root.armor += 3; _root.ittt4.push(33, 33, 33, 33, 33, 33, 33); _root.bmode = 6; } else { if (highs.it == 79) { _root.armor += 1; hat(17); } else { if (highs.it == 80) { _root.armor += 2; _root.bmode = 8; _root.hmode = 20; _root.sk = 7; sk = 7; } else { if (highs.it == 20) { _root.bmode = 3; } else { if (highs.it == 13) { _root.bmode = 4; _root.hmode = 12; } else { if (highs.it == 14) { _root.hmode = 11; } else { if (highs.it == 59) { _root.fmode = 11; } else { if (highs.it == 31) { _root.hmode = 13; } else { if (highs.it == 30) { _root.bmode = 5; } else { if (highs.it == 21 or highs.it == 54) { mapd(); } else { if (highs.it == 9) { hat(9); } else { if (highs.it == 69) { _root.hmode = 17; } else { if (highs.it == 55) { _root.hmode = 18; } else { if (highs.it == 76) { hat(13); } else { if (highs.it == 75) { player.hp += 2; hat(15); } else { if (highs.it == 32) { hat(16); } else { if (highs.it == 28) { _root.bmode = 7; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } if (highs.it == 48) { _root.fmode = 10; } if (highs.it >= 33 && highs.it != 46 && highs.it != 48 && highs.it < 50 or highs.it == 56 or highs.it == 58 or highs.it == 65 or highs.it == 66 or highs.it == 77 or highs.it == 78 or highs.it == 83 or highs.it == 84 or highs.it == 85 or highs.it == 86 or highs.it == 93 or highs.it == 97 or highs.it == 102 or highs.it == 105 or highs.it == 107 or highs.it == 111 or highs.it == 123 or highs.it == 124 or highs.it == 126 or highs.it == 127 or highs.it == 130) { _root.ups[highs.it] = 1; itb = 15; _root.hud.it.gotoAndStop(8); _root.colit = highs.it; _root.iter[_root.it] = _root.itc; if (_root.it > 0) { if (_root.it == 90) { player.flyby = false; } highs.d.gotoAndStop(10); v2 = highs.d.d; v2.d.gotoAndPlay(1); f11 = _root.it + itn2(_root.it); v2.d.d.gotoAndStop(f1); _root.it = highs.it - itn(highs.it); highs.it = f11; highs.empty = false; highs.done = false; highs.dones = false; highs.d.d.d.d.gotoAndStop(highs.it); } else { _root.it = highs.it - itn(highs.it); } if (_root.it != 11) { _root.itc = _root.iter[_root.it]; if (ups[116]) { _root.itc = Math.max(0.334, _root.itc); } } } else { if (highs.d._currentframe != 10 && highs.s == 5) { highs.d.gotoAndStop(11); } _root.cols.push(highs.it); if (!itzz(highs.it) && !satan) { if (highs.it == 5) { _root.wiptz += 0.2; } else { ++_root.wiptz; } wtftex = _root.wiptz; } } if (highs.it >= 50 && highs.it < 54) { hat(highs.it - 48); } else { switch (highs.it) { case 19: _root.bombs += 10; hat(30); break; case 17: _root.keys = 99; hat(14); break; case 18: _root.coins = 99; break; case 74: _root.coins += 25; } } if (highs.it == 48) { hat(6); } if (highs.it == 70) { hat(8); } if (highs.it == 62) { _root.hmode = 15; } if (highs.it == 69) { _root.fmode = 13; } lastcra = fra; if (highs != player) { if (highs.d._currentframe == 10) { highs.dones = false; } else { highs.done = true; } } if (_root.ups[4] + _root.ups[38] + _root.ups[42] + Math.max(0, _root.ups[81]) >= 1.1) { _root.locker[40] = true; } if (_root.ups[13] + _root.ups[14] + _root.ups[70] >= 2) { _root.locker[37] = true; } if (_root.ups[55] && _root.ups[31] + _root.ups[30] + _root.ups[39] + _root.ups[41] >= 1) { _root.locker[47] = true; } } else { highs.dones = false; } nohit = false; if (_root.fmode != v3) { } } function invp() { player._visible = false; for (e in ball) { trg2 = ball[e]; if (trg2.s <= 3) { trg2._visible = false; } } } function st22(f1) { if (f1 != 0) { _root.st2._visible = f1 != 0; _root.st2.gotoAndPlay(1); _root.st2.tex = f1; f1 = f1.split(''); _root.st2._x = 620 - f1.length * 10; } } function frez(trg) { if (trg.frezz < 0 or !trg.frezz) { trg.frezz = 70; trg.uncol = Math.round(fra + trg.freez + 1); speco(trg); } } function spidcol(trg) { if (ups[110] && !lows.ba && random(5) == 0 && !trg.mom) { if (trg.mag) { for (z in mags) { frez(mags[z]); } } if (trg.worm == 6) { for (z in worm) { frez(worm[z]); } } else { if (!trg.worm) { frez(trg); } } if (trg.s == 19) { trg2 = trg; while (trg2.trg2) { trg2 = trg2.trg2; frez(trg2); } trg2 = trg; while (trg2.trg3) { trg2 = trg2.trg3; frez(trg2); } } } if (ups[103] && !lows.ba && random(4) == 0) { if (trg.poiss > 20) { trg.poiss += 40; } else { trg.poiss = 60; } trg.poisd = 2; trg.uncol = Math.round(fra + 60); speco(trg); } if (ups[89] && random(4) == 0 or lows.ba == 3 && random(2) == 0) { if (lows.ba == 3) { colorit(trg, 0.5, 0.5, 0.5, -100, -100, -100); trg.spida = 2; } else { colorit(trg, 0.5, 0.5, 0.5, 150, 150, 150); trg.spida = 1; } trg.spid = 60; trg.uncol = Math.round(fra + 60); } } function pillc(trg) { if (trg > 7) { f2 = trg; } else { if (trg == 4) { f2 = random(6) + 1; } else { if (trg == 3) { f2 = 7 + random(22); } else { f2 = trg.col; } } } if (f2 < 7) { st11('Pills here!'); _root.soundy('shellgame' + random(2) + '.wav'); _root.colss[43] = true; } else { _root.colss[61] = true; tart(f2); _root.soundy('Book Page Turn 12.wav', 100); } if (_root.pilc > 0) { f1 = _root.pilc; _root.pilc = f2; if (trg == 3 or trg == 4) { trg = spaw(player.xp, player.yp, 0, 5.3); } trg.d.gotoAndStop(7); trg.col = f1; trg.dones = false; trg.done = false; trg.fra = fra + 10; trg.d.d.gotoAndStop(3); if (highs.yp > 0) { trg.ybew -= -Math.min(player.yp - highs.yp, 0) * 0.5; } } else { if (trg == 3 or trg == 4) { pilll = true; } else {} _root.pilc = f2; trg.d.d.gotoAndStop(2); } _root.hud.pilll.gotoAndStop(2); player.d.gotoAndStop(4); player.it = 43; player.pilc = _root.pilc; } function balljunk() { if ((lows.s == 14 or lows.s == 18) && highs.s == 36) { nohit = true; lows.xbew += xenf * 0.01; lows.ybew += yenf * 0.01; } if (highs.s == 4) { if (lows.fly or lows.ang or lows.meat < 3) { nohit = true; } } if (lows.s == 30 && highs.s == 30) { highs.dones = true; nohit = true; } if (lows.s == 30 && highs.s == 36) { nohit = true; } if (lows.fly or lows.meat or lows.bird or lows.charge or lows.ang) { switch (highs.s) { if (highs.s !== 18) { } else { case 9: case 13: case 14: highs.dones = true; } } } else { if (lows == player && !nohit) { dodo = false; switch (highs.s) { case 53: nohit = true; break; case 33: nohit = true; case 31: case 32: case 24: case 28: case 45: case 46: case 47: case 48: case 49: case 50: case 52: case 68: case 57: case 62: case 63: case 64: case 65: case 66: case 69: case 71: case 74: case 75: case 76: case 55: case 58: case 59: case 57: case 81: case 82: case 83: case 84: if (freez <= 0) { dodo = true; } if (highs.s == 62 && highs.dy < -30) { nohit = true; } else { case 10: case 11: case 12: case 15: case 17: case 18: case 19: case 20: case 21: case 25: case 23: case 26: case 29: case 34: case 35: case 36: case 26.5: case 38: case 39: case 40: case 41: case 43: case 44: case 51: case 54: case 56: case 60: case 61: case 67: case 72: case 73: case 75: case 76: case 77: case 79: case 80: if (highs.s == 9 && highs.doub) { dodo = true; } dodo = dodo or highs.special or trg.specoz == 7 or trg.specoz == 2; if (freez <= 0 && horse <= 0) { if (dodo) { playerhurt(1, highs.s); } else { playerhurt(0.5, highs.s); } } if (highs.die) { highs.dones = true; } case 13: case 14: case 27: case 30: case 16: if ((ups[13] or unic > 0 or demon > 0 or horse > 0) && highs.aidsdone <= fra) { highs.aidsdone = fra + 30; if (horse > 0) { nohit = true; } if (ups[13]) { highs.poiss = 60; highs.poisd = 3.5; hurt(highs, 30); } else { hurt(highs, 40); } } } } } } if (highs.s == 4) { if (fra - highs.lfra < 4) { nohit = true; highs.lfra = fra; } else { highs.xbew += lows.xbew * 0.4; highs.ybew += lows.ybew * 0.4; } } if (lows.s == 4 && highs.s != 62) { lows.xbew *= 0.9; lows.ybew *= 0.9; highs.xbew *= 0.2; highs.ybew *= 0.2; } if (highs.s == 44 && lows.s != 44) { if (highs.s != 69) { hurt(lows, 20); } } if (highs.s == 66 && highs.horse && lows.s != 66) { hurt(lows, 20); } if (highs.s == 45 && lows.s != 45 && fra - lows.fra > 10) { hurt(lows, 20); } if (lows.s == 44 && highs.s != 44) { hurt(highs, 20); } if (highs.s == 63 && highs.d._currentframe == 7) { hurt(lows, 20); } if (highs.s == 28 && mags[1].mode == 2) { if (lows.s == 23) { hurt(lows, 20); } if (highs.mag == 1 && lows.s == 4) { _root.soundy('SMB_large_chews_4.wav'); lows.done = true; highs.mode = 4; highs.bomb = 0; nohit = true; } } if (lows == player && highs.s == 5 && !highs.dones) { if (_root.keys >= 1 or highs.d._currentframe != 6) { nohit = true; if (highs.d._currentframe < 7 && (highs.col != 3 or highs.d._currentframe != 4)) { highs.d.d.gotoAndStop(2); } highs.dones = true; switch (highs.d._currentframe) { case 34: _root.levz = undefined; moveon(); _root.door = undefined; f1 = Math.min(9 + _root.so.data.wins, 21); if (f1 == 20) { f1 = 21; } if (_root.chaps == 9) { f1 = 22; } _root.gotoAndStop(f1); highs.dones = false; nohit = false; break; case 1: if (highs.col == 3) { ++_root.armor; } else { if (player.hp < player.mhp) { if (highs.col != 2) { ++player.hp; red = 7; } else { player.hp += 0.5; red = 5; } } else { nohit = false; highs.dones = false; highs.d.d.gotoAndStop(1); } } if (highs.col == 3) { _root.soundy('Holy.mp', 100); } else { if (nohit) { _root.soundy('boss2_bubbles' + random(2) + '.wav', 100); } } break; case 2: if (highs.col != 2) { ++_root.coins; _root.soundy('pennypickup.mp'); } else { _root.coins += 5; st22('a Nickel'); _root.soundy('nickelpickup.mp'); } break; case 3: ++_root.keys; _root.soundy('KeyPickup_Gauntlet.wav', 85); break; case 4: if (highs.col == 3) { nohit = false; highs.dones = false; } else { if (highs.col != 2) { ++_root.bombs; } else { _root.bombs += 2; st22('1 + 1 free'); } } if (nohit) { _root.soundy('fetus_feet' + random(2) + '.wav', 100); } break; case 5: if (!highs.empty && chestopenchestopen == undefined) { _root.soundy('Chest_Open.mp', 100); chestopen = highs; } nohit = false; highs.dones = false; break; case 6: if (_root.keys >= 1 && !highs.empty && chestopen == undefined) { _root.soundy('Unlock00.wav', 100); --_root.keys; chestopen = highs; _root.soundy('Chest_Open.mp', 100); } nohit = false; highs.dones = false; break; case 7: if (fra - highs.fra > 0) { pillc(highs); } else { highs.dones = false; highs.fra = fra + 10; } break; case 8: if (highs.col == 1) { if (!highs.spin && !highs.busted) { if (_root.chaps > 6 && player.hp < 1 && _root.armor > 0 && player.mhp > 0) { _root.armor -= 0.5; player.hp += 0.5; } if (player.hp > 0.5 or _root.armor <= 0) { f11 = _root.armor; _root.armor = 0; playerhurt(0.5, 201); _root.armor = f11; } else { playerhurt(0.5, 201); } ++_root.so.data.pill; if (_root.so.data.pill > 20) { _root.locker[36] = true; } _root.soundy('bloodbank touched.wav', 90); highs.d.d.gotoAndStop(33); highs.d.d.d.gotoAndPlay(1); highs.spin = true; lastspin = fra + 100; highs.wtf = false; } } else { if (highs.col == 10) { if (highs.spin && highs.d.d.d._currentframe > 110) { if (Math.abs(xenf) < 13) { highs.d.d.gotoAndStop(44); } else { if (highs.xp > lows.xp) { highs.d.d.gotoAndStop(43); } else { highs.d.d.gotoAndStop(45); } } highs.wtf = false; lastspin = fra + 15; } } if (_root.coins >= 1 && !highs.spin && !highs.busted && (highs.col != 10 or highs.yp - lows.yp < 0)) { --_root.coins; if (highs.col == 10) { highs.d.d.gotoAndStop(42); highs.itt = random(4); if (random(13) == 0 && !ups[9]) { highs.itt = 5; } } else { if (highs.col > 1) { highs.d.d.gotoAndStop(37); } else { _root.soundy('Coin_Slot.mp', 100); highs.d.d.gotoAndStop(2); } } highs.spin = true; lastspin = fra + 100; } } highs.dones = false; nohit = false; break; case 9: if (highs.d.d._currentframe > 10 && highs.d.d._currentframe < 24 && highs.open) { player._visible = false; plxxx = highs.xp; plyyx = highs.yp; highs.d.d.gotoAndPlay(25); } highs.dones = false; break; case 15: f1 = [0, 3, 5, 5, 15, 2, 3, 3, 7, 1, 2, 3, 5, 5, 0, 0, 3, 3]; f1 = f1[highs.d.d._currentframe]; if (_root.coins >= f1 && !satan or satan && (_root.armor >= 3 or highs.d.d._currentframe != 11)) { if (satan) { ++_root.evs; if (_root.evs > 1) { _root.locker[54] = true; } if (f1 == 3) { lasth = -100; if (_root.armor >= 3) { playerhurt(3, 200); } else { playerhurt(3, 200); } } else { _root.ups[22] -= f1; ups[22] = _root.ups[22]; lasth = -100; f11 = _root.armor; f2 = f1 - player.mhp + player.hp; player.mhp -= f1; playerhurt(Math.max(0, f2), 200); if (player.mhp > 0 or f11 > 0 && player.mhp >= 0) { _root.armor = f11; } else { f11 = 0; _root.armor = 0; playerhurt(10, 200); } } _root.mmus = _root.soundy('isaacsatanitemget.mp', 100); plffff = player.d._currentframe; } else { _root.coins -= f1; } highs.done = true; switch (highs.d.d._currentframe) { case 12: case 16: ++_root.keys; _root.soundy('KeyPickup_Gauntlet.wav', 85); player.d.gotoAndStop(4); player.it = 202; break; case 13: case 17: ++_root.armor; _root.soundy('Holy.mp', 100); player.d.gotoAndStop(4); player.it = 203; break; case 1: case 5: _root.soundy('boss2_bubbles' + random(2) + '.wav', 100); ++player.hp; player.d.gotoAndStop(4); player.it = 200; break; case 3: case 7: pillc(highs); break; case 2: case 6: ++_root.bombs; _root.soundy('fetus_feet' + random(2) + '.wav', 100); player.d.gotoAndStop(4); player.it = 201; break; case 4: case 8: case 9: case 10: case 11: powerlevel(); } if (satan && player.hp <= 0) { player.d.gotoAndStop(plffff); } } else { highs.dones = false; } break; case 10: powerlevel(); } } } } function ballhit(e, a) { trg = ball[e]; trg2 = ball[a]; if (trg.s != 2 or trg2.s != 2) { f1 = Math.max(e, a); f2 = Math.min(e, a); if (tests.getPixel(f1, f2) == 0) { tests.setPixel(f1, f2, 1); nohit = false; if (trg.s > trg2.s) { lows = trg2; highs = trg; } else { lows = trg; highs = trg2; } if (highs.s == 28 && lows.s == 28) { nohit = true; } if (lows.s == 5 && highs.s != 5) { nohit = true; } if (highs.s < 4) { nohit = true; } if (highs.s == 5 && lows != player) { nohit = true; } if (lows.s == 9 or highs.s == 9 && (lows != player && !lows.fly && !lows.meat && !lows.ang && !lows.bird)) { nohit = true; } if (lows.outway or highs.outway && lows != player && lows.s != 2 && !lows.damger) { nohit = true; } if (lows.s == 44 && highs.outway or highs.s == 44 && lows.outway) { nohit = false; } if (lows.s == 44 && highs.s == 69) { nohit = true; } if (trg.fra == fra or trg2.fra == fra) { nohit = true; } if (lows.bird && highs.s == 4) { nohit = true; } if (!nohit && !trg.dones && !trg2.dones) { xenf = trg2.xp - trg.xp; siz = sizes[Math.round(trg.s)] + sizes[Math.round(trg2.s)]; siz2 = siz; if (highs.s == 5 && (highs.col == 10 && highs.d._currentframe == 8 or highs.d._currentframe == 34)) { if (highs.d._currentframe == 34) { siz2 += 17; } else { siz2 += 28; } siz = siz2; } if (Math.abs(xenf) < siz) { yenf = trg2.yp - trg.yp; if (Math.abs(yenf) < siz) { enf = xenf * xenf + yenf * yenf; if (enf > 0 && enf < siz * siz) { balljunk(); if (!nohit) { v6 = lows.damger; if (lows.s == 2 or v6) { if (lows.charge) { nohit = true; } nohit = highs.s == 23 or highs.s == 41 or highs.s == 32 or highs.s == 25 or highs.s == 55 or highs.s == 62; if (lows.meat > 2) { nohit = false; } if (!lows.hh[highs.e]) { lows.hh[highs.e] = true; v1 = lows.dmg; if (lows.d._yscale == 135.5) { v1 += 25; } if (highs.s == 41 && !ups[48]) { if (highs.d.hx.h._currentframe == 1 && lows.ybew < 0) { v1 = 0; } if (highs.d.hx.h._currentframe == 2 && lows.xbew < 0) { v1 = 0; } if (highs.d.hx.h._currentframe == 3 && lows.ybew > 0) { v1 = 0; } if (highs.d.hx.h._currentframe == 4 && lows.xbew > 0) { v1 = 0; } } hurt(highs, v1); if (lows.s == 2) { spidcol(highs); } } if (ups[48] && !lows.ba or v6 or lows.knife) { nohit = true; } else { lows.dones = true; lows.xp += lows.xbew * 0.8; lows.yp += lows.ybew * 0.8; } } else { if (highs.s != 28 && (lows != player or highs.s != 41 && highs.s != 23)) { trg.gh = true; trg2.gh = true; } } if (!nohit) { if (highs.s == 9 && lows == player) { highs.dones = true; if (highs.d._xscale > 115) { playerhurt(1, highs.sss); } else { playerhurt(0.5, highs.sss); } if (highs.sss == 50) { coinl = true; } } v = trg.ma / (trg.ma + trg2.ma); vv = 1 - v; enf = Math.sqrt(enf); f1 = (siz - enf) / enf; trg.xp -= xenf * vv * f1; trg.yp -= yenf * vv * f1; trg2.xp += xenf * v * f1; trg2.yp += yenf * v * f1; xbewenf = trg2.xbew - trg.xbew; ybewenf = trg2.ybew - trg.ybew; bewenf = xbewenf * xbewenf + ybewenf * ybewenf; if (bewenf > 0) { bewenf = Math.sqrt(bewenf); } else { bewenf = 0; } enf = bewenf / enf; if (bewenf > 2.5) { soundy('bh'); } if (maxp) { enf += 0.5; } xenf *= enf; yenf *= enf; trg.xb -= xenf * vv; trg.yb -= yenf * vv; trg2.xb += xenf * v; trg2.yb += yenf * v; if (maxp) { highs.xb *= 0.5; highs.yb *= 0.5; } if (lows.s == 2 && (highs.s == 18 or highs.s == 14)) { highs.xbew *= 0.5; highs.ybew *= 0.5; highs.xbew += lows.xbew * 0.5; highs.ybew += lows.ybew * 0.5; } } } } } } } } } maxp = false; } function nextcha() { newstart(false); } function pull(f1, f2, f3, f4, f5) { if (f1 == 0) { v = 0.8; } else { v = 1.2; } v = 1; f1 = ball[f1]; f2 = ball[f2]; f5 = leg[f5]; f5._x = f1._x; f5._y = f1._y; xenf = f1._x - f2._x; yenf = f1._y - f2._y; f5._rotation = (Math.atan(-xenf / yenf) / Math.PI) * 180 + 90; if (yenf >= 0) { f5._rotation += 180; } enf = Math.sqrt(xenf * xenf + yenf * yenf); f5._xscale = enf; f5._yscale = 50; xenf = f1._x + f1.xbew - f2._x - f2.xbew; yenf = f1._y + f1.ybew - f2._y - f2.ybew; enf = Math.sqrt(xenf * xenf + yenf * yenf); if (enf != 0) { enf = (f3 - enf) / enf; xenf *= enf * f4; yenf *= enf * f4; f1.xbew += xenf * v; f1.ybew += yenf * v; f2.xbew -= xenf / v; f2.ybew -= yenf / v; } } function trgnextd(trg2, f2) { if (trg2 == undefined) { trg2 = trg.d.d; } if (!trg.free or slow <= 0 or fra % 2 == 0) { trg2.nextFrame(); } if (trg2._currentframe == trg2._totalframes) { var v2 = trg2._parent._currentframe; if (!f2) { trg2._parent.gotoAndStop(1); } return v2; } } function walkframe(f1) { trg.wf = true; if (f1 <= 0) { f1 = 1; } if (trg.d._currentframe < 3) { if (enfget(trg.xbew, trg.ybew) * f1 > 2) { trg.d.gotoAndStop(2); } else { trg.d.gotoAndStop(1); } } } function randrun() { trg.randd = fra; if (trg.xpp == undefined) { f1 = 40; if (trg.s == 68) { f1 = 80; } f1 = trg.xp + crand(f1); f2 = trg.yp + crand(); if (trg.s == 68) { f1 = Math.min(540, Math.max(120, f1)); f2 = Math.min(360, Math.max(210, f2)); } f1 = ingrid(f1, f2); if (levz[f1] < 1) { outgrid(f1); trg.xpp = xenf; trg.ypp = yenf; } } if (trg.xpp != undefined) { if (trg.s != 64 && (trg.s != 66 or trg.d._currentframe < 7) && trg.s != 77 && trg.s != 76) { trg.d.gotoAndStop(2); } xenf = trg.xp - trg.xpp; yenf = trg.yp - trg.ypp; enf = enfget(xenf, yenf); if (enf < 3 or enfget(trg.xbew, trg.ybew) < 0.2 && random(10) == 0) { trg.mode = 1; trg.xpp = undefined; } enf = 0.5 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; if (trg.s != 68) { sideflip(-xenf); } } } function randruny() { if (trg.d.d._currentframe == 19) { _root.soundy('Meat_impacts_' + random(3) + '.wav'); } if (trg.xpp == undefined) { trg.d.d.gotoAndStop(1); if (trg.s == 54) { f1 = random(50); } else { f1 = 0; } if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 130 + f1 * 1.3)) { f2 = player.yp - yenf * f1 / 200; f1 = player.xp - xenf * f1 / 200; if (trg.s == 54) { f1 += player.xbew * 5; f2 += player.ybew * 5; } } else { f1 = trg.xp + crand(95 + f1); f2 = trg.yp + crand(); } f1 = Math.min(620, Math.max(20, f1)); f2 = Math.min(447, Math.max(110, f2)); f1 = ingrid(f1, f2); if (levz[f1] < 1) { outgrid(f1); trg.xpp = xenf; trg.ypp = yenf; } } if (trg.xpp != undefined) { trg.d.gotoAndStop(2); trg.d.d.nextFrame(); xenf = trg.xp - trg.xpp; yenf = trg.yp - trg.ypp; enf = enfget(xenf, yenf); if (trg.s == 54) { f1 = trg.d.d._currentframe - enf * 0.6; } else { f1 = trg.d.d._currentframe - enf * 0.3; } if (trg.d.d._currentframe < 5) { xenf *= 0.1; yenf *= 0.1; } else { if (f1 > 30) { trg.d.d.prevFrame(); if (f1 > 45) { trg.d.d.prevFrame(); } } } if (enf < 10 or enfget(trg.xbew + trg.ybew) < 0.75 && random(10) == 0) { if (trg.d.d._currentframe == trg.d.d._totalframes) { trg.xpp = undefined; } } enf = Math.min(3, enf * 0.1) / enf; if (trg.s == 54) { trg.xbew *= 0.8; trg.ybew *= 0.8; enf *= 2; } trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; sideflip(-xenf); } } function markhere(trg) { var v2 = ingrid(trg.xp, trg.yp); if (trg != undefined) { trg.til = v2; } if (mags.length < 2 or trg.s == 28) { if (levz[v2] < 0.99) { levz[v2] = 0.9; } } } function borderliner(f0) { if (f0 == undefined) { f0 = 1; } f9 = [0, 1, 1, 0, 0, -1, -1, 0, 0, 1]; if (trg.dir == undefined) { trg.dir = 0; f2 = 0; while (f2 < 4) { ++f2; f1 = trg.dir * 2; f3 = ingrid(trg.xp + f9[f1] * roxx, trg.yp + f9[f1 + 1] * roxx); if (levz[f3] < 0.95) { ++trg.dir; } else { f2 = 10; } } } trg.xbew *= 0.6; trg.ybew *= 0.6; if (trg.xpp == undefined) { f1 = trg.dir * 2; f3 = ingrid(trg.xp + (-f9[f1] - f9[f1 + 1]) * roxx, trg.yp + (-f9[f1 + 1] + f9[f1]) * roxx, true); f4 = ingrid(trg.xp - f9[f1 + 1] * roxx, trg.yp + f9[f1] * roxx, true); if (levz[f3] > 0.95 && levz[f4] < 0.95 && !trg.lastdd) { --trg.dir; trg.lastdd = true; } else { f3 = ingrid(trg.xp + f9[f1] * roxx, trg.yp + f9[f1 + 1] * roxx); if (levz[f3] < 0.9) { outgrid(f3); trg.xpp = xenf; trg.ypp = yenf; trg.lastdd = false; } else { ++trg.dir; } } } if (trg.dir > 3) { trg.dir -= 4; } if (trg.dir < 0) { trg.dir += 4; } if (trg.xpp != undefined) { enfcheck(trg.xp, trg.yp, trg.xpp, trg.ypp, 1000); if (enf < 5) { trg.xpp = undefined; } enf = f0 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; if (trg.xpp != undefined) { if (Math.abs(xenf) < Math.abs(yenf)) { trg.xbew *= 0.6; trg.xbew += (trg.xpp - trg.xp) * 0.4; xenf = 0; } else { trg.ybew *= 0.6; trg.ybew += (trg.ypp - trg.yp) * 0.4; yenf = 0; } } } } function newxx() { f9 = [0, 1, 1, 0, 0, -1, -1, 0]; f10 = 0; for (;;) { if (!(trg.xpp == undefined && f10++ < 10)) break; f8 = []; a = 0; while (a < 4) { xenf = f9[a * 2] * roxx; yenf = f9[a * 2 + 1] * roxx; f4 = random(7); f1 = trg.xp + xenf * f4; f2 = trg.yp + yenf * f4; if (f1 > 620 or f1 < 20) { f1 = false; } if (f2 > 447 or f2 < 110) { f1 = false; } if (f1) { i = 1; while (i < f4) { f1 = trg.xp + xenf * i; f2 = trg.yp + yenf * i; f3 = ingrid(f1, f2); if (levz[f3] > 0.3 && (f10 < 9 or levz[f3] > 1)) { --i; break; } ++i; } f1 = trg.xp + xenf * i + yenf; f2 = trg.yp + yenf * i - xenf; f3 = ingrid(f1, f2, true); f1 = trg.xp + xenf * i - yenf; f2 = trg.yp + yenf * i + xenf; f4 = ingrid(f1, f2, true); if (levz[f3] < 0.3 or levz[f4] < 0.3 or random(10) == 0) { f8[a] = i; } } else { f8[a] = 0; } ++a; } f7 = 0.8; f6 = -1; for (a in f8) { if (f8[a] > f7) { f7 = f8[a]; f6 = a; } } if (f7 < 2 && random(10) == 0) { f6 = -1; } if (f6 > -1) { xenf = f9[f6 * 2] * roxx; yenf = f9[f6 * 2 + 1] * roxx; f3 = Math.abs(xenf) > Math.abs(yenf); f1 = trg.xp + xenf * f7; f2 = trg.yp + yenf * f7; f1 = ingrid(f1, f2); if (levz[f1] < 1) { outgrid(f1); trg.xpp = xenf; trg.ypp = yenf; } if (f3) { trg.ybew = 0; } else { trg.xbew = 0; } } trg.fail = 0; } } function randrunx(f0) { newxx(); if (trg.xpp != undefined) { trg.xpp = Math.min(620, Math.max(20, trg.xpp)); trg.ypp = Math.min(447, Math.max(110, trg.ypp)); xenf = trg.xp + trg.xbew - trg.xpp; yenf = trg.yp + trg.ybew - trg.ypp; enf = enfget(xenf, yenf); if (enf < 3) { trg.mode = 1; trg.xp = trg.xpp; trg.yp = trg.ypp; trg.xpp = undefined; } else { if (enfget(trg.xbew, trg.ybew) < 0.6) { if (trg.fail++ > 10) { trg.xpp = undefined; } } } enf = f0 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; f1 = enfget(trg.xbew, trg.ybew); enf = roxx / f1; xenf = trg.xbew * enf; yenf = trg.ybew * enf; trg.nextl = ingrid(trg.xp + xenf, trg.yp + yenf); if (levz[trg.nextl] > 0.7 && f1 > 3) { if (trg.fail++ > 2) { trg.xpp = undefined; } } if (trg.xpp == undefined) { newxx(); } } } function cirf(f1, f2, f3, f4) { var v1 = Math.random() * Math.PI; var v3 = (Math.PI / f4) * 2; z = 0; while (z < f4) { v1 += v3; f6 = Math.sin(v1) * f3; f7 = Math.cos(v1) * f3; ffmo(f1, f2, 0, f6, f7, 0, 9, trg.s, true); ++z; } } function quadf(f1, f2, f3, f4) { gibb += 10; if (f4 != 2) { ffmo(f1, f2, 0, f3, 0, 0, 9, trg.s, true); ffmo(f1, f2, 0, -f3, 0, 0, 9, trg.s, true); ffmo(f1, f2, 0, 0, f3, 0, 9, trg.s, true); ffmo(f1, f2, 0, 0, -f3, 0, 9, trg.s, true); } f3 /= Math.SQRT2; if (f4) { ffmo(f1, f2, 0, f3, f3, 0, 9, trg.s, true); ffmo(f1, f2, 0, -f3, f3, 0, 9, trg.s, true); ffmo(f1, f2, 0, f3, -f3, 0, 9, trg.s, true); ffmo(f1, f2, 0, -f3, -f3, 0, 9, trg.s, true); } } function ffmo(f1, f2, f3, f4, f5, f6, f7, f8) { var v1 = create(f1, f2, f3, f4, f5, f6, f7, trg.s); if (trg.spid > 0) { v1.xbew *= 0.5; v1.ybew *= 0.5; } if (trg.s == 68) { colorit(v1, 0.6, 1.2, 0.2, 50, 60, 0); } v1.ggh = false; if (!f8) { v1.dm = -3; v1.fd = 0.1; } if (v3) { v1.dm -= 1; v1.xbew *= 1.2; v1.ybew *= 1.2; v1.xbew += trg.xbew * 0.4; v1.ybew += trg.ybew * 0.4; } if (trg.s == 79) { v1.dm += 3; v1.dy -= 15; v1.xbew *= 1.2; v1.ybew *= 1.2; } else { if (trg.s == 36) { v1.fd *= 0.4; } else { if (trg.s == 42) { v1.dm -= 3; v1.dy = -10; v1.ggh = true; v1.nog = 15; } } } if (trg.s == 59) { v1.dy += 15; } if (trg.special or trg.s == 59 or trg.s == 57 or trg.s == 53 or trg.s == 43 or trg.s == 75 or trg.s == 76 or trg.s == 84) { v1.doub = true; v1.d._yscale = 140; v1.d._xscale = 140; } if (trg.s == 42 or trg.s == 38 or trg.s == 27) { v1.fd -= 0.05; v1.xbew *= 1.07; v1.ybew *= 1.07; } if (trg.s == 57) { v1.dy += 15; v1.dm -= 0.2; } if (trg.s == 84) { v1.fd -= 0.07000000000000001; } if (trg.s == 65) { v1.dy -= 45; v1.dm += 7; } return v1; } function shots(v1, v2, xenf, yenf, v3) { if (v3 == 2) { if (v3) { ffmo(v1, v2, 0, xenf * 0.9 - yenf * 0.1, yenf * 0.9 + xenf * 0.1, 0, 9); ffmo(v1, v2, 0, xenf * 0.9 + yenf * 0.1, yenf * 0.9 - xenf * 0.1, 0, 9); ffmo(v1, v2, 0, xenf * 0.7 - yenf * 0.3, yenf * 0.7 + xenf * 0.3, 0, 9); ffmo(v1, v2, 0, xenf * 0.7 + yenf * 0.3, yenf * 0.7 - xenf * 0.3, 0, 9); } } else { trg2 = ffmo(v1, v2, 0, xenf, yenf, 0, 9); if (v3) { ffmo(v1, v2, 0, xenf * 0.8 - yenf * 0.2, yenf * 0.8 + xenf * 0.2, 0, 9); ffmo(v1, v2, 0, xenf * 0.8 + yenf * 0.2, yenf * 0.8 - xenf * 0.2, 0, 9); } if (trg.s == 36 or trg.s == 56 or trg.s == 27 && trg.alter == 2 or trg.s == 84) { ffmo(v1, v2, 0, xenf * 0.6800000000000001 - yenf * 0.42, yenf * 0.58 + xenf * 0.42, 0, 9); ffmo(v1, v2, 0, xenf * 0.6800000000000001 + yenf * 0.42, yenf * 0.58 - xenf * 0.42, 0, 9); trg2.xbew *= 0.85; trg2.ybew *= 0.9; } } } function firemode(siz, f1) { if (trg.s == 56) { siz += 60; } else { if (trg.s == 42 or trg.s == 38 or trg.s == 27) { siz += 40; } } if (trg.s == 56) { f1 += 5; } if ((fra + trg.e) % 7 == 0) { if (trg.fire <= 0) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, siz); if (enf) { if (linechecky(trg.xp, trg.yp, player.xp, player.yp)) { if (trg.s == 42) { trg.d.gotoAndStop(2); } else { sideflip(xenf); if (trg.s == 79) { trg.d.gotoAndStop(8); } else { if (trg.s == 63) { trg.d.gotoAndStop(9); } else { trg.d.gotoAndStop(5); } } } trg.fire = f1; trg.fir = -7; if (trg.s == 27) { trg.fir = -25; trg.fire += 6; } } } } if (!trg.free or slow <= 0 or fra % 2 == 0) { --trg.fire; } } if (trg.fir++ > 0 && (trg.s != 79 or trg.d.d._currentframe == 17) && (trg.s != 56 or trg.d.d._currentframe == 33) && (trg.s != 63 or trg.d.d._currentframe == 19)) { if (trg.s == 63 or trg.s == 79) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000); } else { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); } sideflip(xenf); trg.fir = undefined; enf = enfget(xenf, yenf); enf = -7 / enf; xenf *= enf; yenf *= enf; if (trg.s == 63) { xenf *= 1.3; yenf *= 1.3; } shots(trg.xp, trg.yp, xenf, yenf, trg.s == 27 or trg.s == 63); } } function firewalk() { if (trg.fire <= 0) { f1 = trg.xp; f2 = trg.yp; enf = enfget(trg.xbew, trg.ybew); enf = -5 / enf; if (trg.s == 19) { enf *= 1.5; } trg.fire = 40 + random(20); var v1 = create(f1, f2, 0, -trg.xbew * enf, -trg.ybew * enf, 0, 9, trg.s); v1.fd = 0.3; v1.dm = -5; } --trg.fire; } function angstfind(v1, v2) { if (v1 == undefined) { v1 = player.xp; v2 = player.yp; } if (trg.failfind <= 0) { trg.failfind = 0; } trg.failfind = Math.min(trg.failfind, 20); topz(8); if ((trg.e + fra) % 14 == 1) { f13 = linecheckx(trg.xp, trg.yp, v1, v2); if (f13) { siz = 250; if (trris + 45 + random(100) <= fra && random(4) == 0) { trris = fra; _root.soundy('Scared_Whimper_' + random(3) + '.mp', 100); } } else { siz = 170; } if (enfcheck(trg.xp, trg.yp, v1, v2, siz)) { if (trg.needmove <= 0) { trg.ypp = undefined; trg.xpp = trg.ypp; } trg.needmove = 3; } else { --trg.needmove; } } if ((trg.e + fra) % 30 == 0) { trg.checked = []; } if (trg.needmove > 0) { if (trg.rpx) { trg.rpx = undefined; trg.xpp = undefined; } f0 = enfcheck(trg.xp, trg.yp, v1, v2, 500); if (trg.xpp == undefined or trg.failfind > 20) { if (f0 > 0) { f1 = 1.5 / f0; trg.xbew += xenf * f1; trg.ybew += yenf * f1; enf = 30 / f0; var v4 = xenf * enf + trg.xp; var v5 = yenf * enf + trg.yp; } else { var v4 = trg.xp; var v5 = trg.yp; } i = 0; for (;;) { if (!(trg.xpp == undefined && i < 7 - trg.failfind * 0.3)) break; f10 = 450 * Math.random() + 30; if (random(2) == 0) { if (Math.abs(xenf) > Math.abs(yenf)) { yenf = 0; } else { xenf = 0; } } xenf = v4 + crand(f10); yenf = v5 + crand() * 0.5; f1 = ingrid(xenf, yenf); if (trg.checked[f1]) { i -= 0.7; } else { outgrid(f1); trg.checked[f1] = true; if (!mhit(xenf, yenf)) { if (linecheckx(trg.xp, trg.yp, xenf, yenf)) { f13 = !linecheckx(v1, v2, xenf, yenf); if (f13 or trg.failfind >= 20) { f7 = xenf; f8 = yenf; if (enfcheck(v1, v2, trg.xpp, trg.ypp, 100 + f0 + f10 / 3 + trg.failfind - trg.noco * 10)) { ++trg.noco; } else { trg.xpp = f7; trg.ypp = f8; i = 100; if (f13) { trg.failfind /= 2; } } } else { trg.failfind += 0.35; } } } } ++i; } } if (trg.xpp != undefined) { if ((trg.e + fra) % 10 == 1) { f13 = enfcheck(v1, v2, trg.xpp, trg.ypp, 200); if (linecheckx(v1, v2, trg.xpp, trg.ypp) && trg.failfind < 20 or f13 or Math.abs(xenf) < 20 or Math.abs(yenf) < 20) { trg.ypp = undefined; trg.xpp = trg.ypp; } } pathfind(trg, trg.xpp, trg.ypp, 1.3); } } else { trg.failfind *= 0.9; trg.rpx = true; trg.noco = 0; randrun(); trg.xbew *= 0.9; trg.ybew *= 0.9; } tip(8); } function pffy(f1, f2) { if (trg.s != 54) { f1 = ingrid(f1, f2); f3 = levz[f1] == 0.99 && !trg.flyby && !trg.flyai; if (levz[f1] > 1 && levz[f1] < 2 or f3) { var v4 = this['de' + f1]; if (v4.fire or f3) { relf = f3; if (trg.s == 27) { trg.dones = true; } outgrid(f1); enf = enfcheck(trg.xp, trg.yp, xenf, yenf, siz); if (f3) { enf += 20; } if (trg.s == 29 && v4.fire) { trg.s = 54; attach(trg, 54); trg.hp += 20; } if (enf < siz) { if (!f3 && trg.firs + 10 <= fra) { trg.firs = fra; _root.soundy('Firedeath_hiss.wav', Math.min(100, 50 + trg.hp * 5)); } siz = enf; f4 = xenf; f5 = yenf; f6 = enf; f7 = f3; return true; } } } } } function firecheck(trg) { trg3 = 0; siz = 38; var v2 = 20; relf = true; var v3 = pffy(trg.xp + v2, trg.yp + v2) or pffy(trg.xp - v2, trg.yp + v2) or pffy(trg.xp + v2, trg.yp - v2) or pffy(trg.xp - v2, trg.yp - v2); if (v3) { if (!f7) { xenf = f4; yenf = f5; enf = f6; enf = 4 / enf; trg.xbew += xenf * enf; trg.ybew += yenf * enf; } } if (dang) { if (trg == player && !trg.flyby) { if (shit(trg.xp, trg.yp)) { if (blackout == 2) { if (trg == player) { trg.xbew *= 0.5; trg.ybew *= 0.5; } } else { v3 = true; relf = 2; } } } } if (dang2 && !trg.flyby && !trg.flyai) { if (trg != player) { if (dang2.hitTest(trg.xp, trg.yp, true)) { v3 = true; } } } return v3; } function breakfloor(f1) { if (levz[f1] < 0.99) { var v1 = true; for (i in brr) { v1 = v1 && f1 != brr[i]; } for (i in brr2) { v1 = v1 && f1 != brr2[i]; } if (v1) { v1 = [levz[f1 + 1] == 3, levz[f1 + rowz] == 3, levz[f1 - 1] == 3, levz[f1 - rowz] == 3]; if (v1[0] && v1[2] or v1[1] && v1[3]) { brr.push(f1); } else { brr2.push(f1); } } } } function breakall() { f1 = false; for (i in brr) { f1 = brr[i]; outgrid(f1); tiles.gotoAndStop(67); maxx = new flash.geom.Matrix(); maxx.translate(xenf, yenf); maxx.scale(hdx, hdx); dblock.draw(tiles, maxx); } } function pathcheck(trg, v2, v3) { v1 = ingrid(trg.xp, trg.yp); trg.gridder = levz.slice(0, -1); z = 0; for (z in v3) { trg.gridder[v3[z]] = 1; } trg.gridder[v2] = 0; acts = []; acts2 = []; z = -1; for (;;) { if (!(z > -100 && trg.gridder[v2] >= 0)) break; if (z == -1) { pff(v1, -1); } else { for (i in acts) { v1 = trg.gridder[acts[i]]; if (v1 < z) { acts2.push(acts[i]); } else { outgrid(acts[i]); pff(ingrid(xenf, yenf + roxx), v1); pff(ingrid(xenf + roxx, yenf), v1); pff(ingrid(xenf - roxx, yenf), v1); pff(ingrid(xenf, yenf - roxx), v1); } } } acts2[acts2.length] = 0; acts = acts2.slice(0, -1); acts2 = []; --z; } if (z < -99) { trg.gridder = 0; return false; } else { return z; } } function bloww(v2) { _root.levblow[_root.lev].push(v2, f5, f6); gibs(xenf, yenf); dblock.fillRect(new flash.geom.Rectangle((xenf - roxx2 - 2) * hdx, (yenf - roxx2 - 2) * hdx, (roxx + 4) * hdx, (roxx + 4) * hdx), 0); if (levz[v2] == 1) { ++_root.so.data.rocks; if (_root.so.data.rocks > 49) { _root.locker[18] = true; } if (_root.chaps < 7 or _root.chaps == 9) { _root.soundy('Rock_crumble ' + random(3) + '.wav', 100); tiles.gotoAndStop(60 + random(5)); } else { _root.soundy('Meaty_Deaths_' + random(6) + '.mp', 100); tiles.gotoAndStop(85 + random(5)); } maxx = new flash.geom.Matrix(); maxx.translate(xenf, yenf); maxx.scale(hdx, hdx); dblock.draw(tiles, maxx); if (Math.abs(f5) > Math.abs(f6)) { f6 = 0; if (f5 > 0) { f5 = roxx; } else { f5 = -roxx; } } else { f5 = 0; if (f6 > 0) { f6 = roxx; } else { f6 = -roxx; } } f1 = ingrid(xenf + f5, yenf + f6); if (levz[f1] == 3) { _root.levblow[_root.lev].push(f1); levz[f1] = 0; outgrid(f1); tiles.gotoAndStop(66); maxx = new flash.geom.Matrix(); maxx.translate(xenf, yenf); maxx.scale(hdx, hdx); dblock.draw(tiles, maxx); } if (_root.rarer[_root.lev] == v2) { levz[v2] = 0; outgrid(v2); chestox = xenf; chestoy = yenf; chestopen = 2; _root.rarer[_root.lev] = -100; } } levz[v2] = 0; } function gosplash() { if (trg.s == 4 or trg.s == 45 or trg.s == 84 && !trg.dones) { if (!trg.dsound) { trg.dsound = true; _root.soundy('boss1_explosions' + random(3) + '.wav', 100); } if (trg.pois) { trg2 = parc('bloo', trg.xp, trg.yp); trg2._xscale *= 3; trg2._yscale = trg2._xscale; splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() + 0.8); if (trg.pois == 4) { } else { if (blackout != 2) { colorit(trg2, 0, 2, 0, 0, 40, 0); } else { colorit(trg2, 0, 0, 0, 0, 0, 0); } } } else { _root.bomf[_root.lev].push([trg.xp, trg.yp]); } f4 = 60; if (trg.dmg > 25 && trg.s != 45) { f4 = 90; } if (trg.dmg >= 45 && trg.s != 45) { f4 = 105; } f11 = []; z = 0; while (z < 150) { var v2 = Math.random() * f4; f5 = crand(v2); f6 = crand(); f1 = trg.xp + f5; f2 = trg.yp + f6; v2 = ingrid(f1, f2); if (levz[v2] >= 1.9 && f4 < 90) { f4 = 90; } outgrid(v2); if (!f11[v2]) { f11[v2] = true; if (levz[v2] > 0.9) { if (linecheckxx(trg.xp, trg.yp, xenf, yenf)) { if (levz[v2] == 1 or levz[v2] == 1.85) { bloww(v2, f5, f6); } else { killshit(v2, 10); } if (v2 < 40) { breakfloor(v2); } } } } ++z; } for (z in ball) { trg2 = ball[z]; siz = 85 + sizes[Math.round(trg2.s)]; enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, siz); if (enf < siz && !trg2.dones && (trg.s == 4 or trg.s == 45 && trg2 != player or trg2.s == 7) && trg2.bh && !trg2.shot) { f1 = false; if (trg2.s == 5 && trg2.d._currentframe == 8 && chestopen == undefined) { if (trg2.col == 1) { trg2.d.d.gotoAndStop(34); } else { if (trg2.col > 1) { trg2.d.d.gotoAndStop(39); trg2.dones = true; _root.bumkill = true; } else { trg2.d.d.gotoAndStop(30); } } trg2.spin = false; trg2.busted = true; chestopen = trg2; f1 = true; } if (trg2.s != 5 or fra - trg2.fra > 30 or f1) { enf = Math.min(siz - enf, 15) / enf; f1 = trg2.s == 7 or trg2.s == 8 or trg2.s == 45; f2 = true; if (!f1) { f2 = linecheckxx(trg.xp, trg.yp, trg2.xp, trg2.yp); } if (f2) { if (enf > 0) { if (f1 or trg2.s > 61) { enf *= 0.015; } if (trg2.s == 59) { enf = 0; } trg2.xbew *= 0.5; trg2.ybew *= 0.5; trg2.xbew -= xenf * enf; trg2.ybew -= yenf * enf; } if ((trg2.s == 46 or trg2.s == 59 or trg2.s == 64 or trg2.s == 78 or trg2.s == 82 or trg2.s == 83) && trg.dfr or trg2.s == 52 && trg.col == 3) { } else { if (trg2.s == 48) { if (trg.man) { hurt(trg2, 10); } else { hurt(trg2, 100); } } else { if (trg2.s == 28) { hurt(trg2, 18); } else { if (trg.dmg > 0) { hurt(trg2, 50 + trg.dmg); } else { hurt(trg2, 40); } } if (trg.header) { trg2.poiss = 300; trg2.poisd = 7; } } } if (trg2 == player) { playerhurt(1, 4); } } } } trg2 = undefined; } if (trg.s != 45 && trg.s != 84) { if (blackout == 2) { z = 0; while (z < 5) { splater(trg.xp + crand(), trg.yp + crand(random(10)), 1 + random(10), Math.random() + 1); ++z; } } else { if (!trg.pois) { maxx = new flash.geom.Matrix(); if (f4 > 100) { maxx.scale(1.5, 1.5); } maxx.translate(trg.xp, trg.yp); maxx.scale(hdx, hdx); splat.draw(crater, maxx); } if (trg.header) { gibs(); z = 0; while (z < 20) { f1 = z * 3; splater(trg.xp + crand(f1), trg.yp + crand(f1), 31 + random(10), Math.random() * 0.5 + 1.2 - z / 20); ++z; } } } } } big = 0; if (trg.s != 13 && trg.s != 14 && trg.s != 5 && trg.s != 18 && trg.s != 45 && trg.s != 80 && trg.s != 4.5) { gibs(); } if (trg.frezz > 0) { _root.soundy('Rock_crumble ' + random(3) + '.wav', 100); } else { if (trg.s == 38 or trg.s == 59 or trg.s == 77) { _root.soundy('goodeath' + random(3) + '.wav', 180); } else { switch (big) { case 0: if (!trg.flyai) { } else { case 1: _root.soundy('Death_Burst_Small_' + random(3) + '.mp', 100); break; case 2: case 3: if (trg.lasts or !trg.aboss) { _root.soundy('Death_Burst_Large_' + random(2) + '.mp', 100); } else { _root.soundy('Rocket_Blast_Death_1.wav'); } } } } } } function flya() { f1 = [13, 13, 13, 13, 13, 13, 13, 14, 18, 18, 18]; i = 0; while (i < 4 / (1 + ashut * 0.2)) { f0 = Math.random() * 6; create(trg.xp + crand(f0), trg.yp + crand(f0), 0, 0, 0, 0, f1[random(f1.length)]); if (trg.s == 67) { i -= 0.5; } ++i; } f1 = 8; } function gibs(v1, v2) { big = 1; f10 = 0; f1 = 10; if (trg.s == 25 && !trg.nobomb or trg.s == 55 && trg.alter == 2) { bomf.push([trg.xp, trg.yp]); } if (trg.s == 4 or trg.s == 45 or trg.s == 84) { f2 = 7; f1 = -1; } else { f2 = 8; } if (v1 > 0 && v2 > 0) { f1 = 5; } if (v1 <= 0 or v2 <= 0) { v1 = trg.xp; v2 = trg.yp; } f1 /= 1 + gibb * 0.1; i = 0; while (i < f1) { ++gibb; f10 = Math.random() * 4; f11 = trg.s == 20 or trg.s == 43 or trg.s == 36 or trg.s == 28 or trg.s == 49 or trg.s >= 62 && !trg.sic && trg.s != 73 && trg.s != 71 && trg.s != 77 && trg.s != 74 or trg.s == 57 or trg.special or trg.minb; if (f11) { f10 *= 1.7; big = 2; } if (trg.s == 36 or trg.s == 19 or trg.s == 71 or trg.s == 74) { big = 3; f10 *= 1.3; } var v1 = create(v1, v2, 0, crand(f10), crand(f10) * 0.5, 0, f2); if (f11 or trg.s == 19) { v1.ybew *= 1.4; v1.d._yscale = 100 + random(70); v1.d._xscale = v1.d._yscale; } else { if (trg.s == 36 or trg.s == 71 or trg.s == 74) { v1.d._yscale = 140 + random(80); v1.d._xscale = v1.d._yscale; } } if (trg.frezz > 0) { colorit(v1, 0.18, 0.22, 0.22, 60, 60, 60); } else { if (trg.poiss > 0 or trg.spl == 30) { colorit(v1, 0.2, 1, 0.2, 0, 70, 17); v1.spl = 30; } else { if (trg.specol) { f1 = trg.specol; colorit(v1, specol[f1][0], specol[f1][1], specol[f1][2], 0, 0, 0); } } } ++i; } } function bombfail(f1, f2, f3, f4) { var v1 = create(f1, f2, 0, 0, 0, 0, 4); v1.pois = f4; v1.dones = true; if (f3 == 5) { trg.mager = true; return v1; } if (f3 == 4) { v1.dmg = 30; v1._yscale = 113; v1._xscale = 113; v1.d.gotoAndStop(2); return v1; } if (f3) { v1.dfr = true; if (f4 == 4) { v1.d.gotoAndStop(6); } else { v1.d.gotoAndStop(5); } if (blackout == 2) { colorit(v1, 0, 0, 0, 0, 0, 0); } return v1; } v1.d.gotoAndStop(2); return v1; } function bomb(f1) { if (fra - lastbo >= 30 or f1) { if (f1) { if (f1 != 2) { } } else { if (_root.bombs > 0) { --_root.bombs; } else { return false; } } lastbo = fra; _root.soundy('Fetus_Land_' + random(2) + '.wav', 100); trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 4); trg2.dmg = 10; if (f1 && f1 != 2 or ups[106]) { trg2.dmg += 50; trg2._yscale = 123; trg2._xscale = 123; trg2.col = 4; if (ups[106]) { trg2.col = 5; } } ++_root.so.data.bomb; return trg2; } } function killshit(v2, v3) { if (levz[v2] > 1 && levz[v2] < 1.8) { trg2 = this['de' + v2]; levz[v2] -= 0.13; if (trg2._currentframe == 6) { trg2.gotoAndStop(2); } else { trg2.nextFrame(); } if (v3 && levz[v2] > 1) { levz[v2] -= 0.13; trg2.nextFrame(); } if (random(3) == 0 or v3 > 5) { levz[v2] -= 0.13; trg2.nextFrame(); } if (trg2.nam == 'breakblock' && random(3) == 0 or v3 > 7) { levz[v2] -= 0.13; trg2.nextFrame(); } if (levz[v2] <= 1) { switch (trg2.nam) { case 'locktile': trg2.gotoAndStop(2); break; case 'breakblock': if (!trg2.cent) { ++_root.so.data.shits; if (_root.so.data.shits > 50) { _root.locker[46] = true; } } _root.soundy('plop.wav', 100); trg2.gotoAndStop(5); break; case 'fireblock': _root.soundy('steam_halfsec.wav', 85); trg2.gotoAndStop(5); } if (Math.random() < 0.1 && (!trg2.cent or random(5) == 0) && !trg2.egg && !v3) { if (Math.random() < 0.25 or trg2.cent) { f0 = 5; } else { f0 = 5.02; } create(trg2._x, trg2._y, 0, 0, 0, 0, f0); } levz[v2] = 0.9; clevc[v2] = 0; if (trg2.egg) { bomf.push([trg2._x, trg2._y]); } } _root.levsav[_root.lev][trg2.savv] = trg2._currentframe; return true; } else { return false; } } function moveon() { _root.aloc(); _root.lastl = _root.lev; _root.mapa._visible = false; _root.hud._visible = false; onEnterFrame = undefined; } function getf() { if (Math.abs(xenf) > Math.abs(yenf)) { if (xenf > 0) { f1 = 2; } else { f1 = 1; } } else { if (yenf < 0) { f1 = 4; } else { f1 = 3; } } } function bosssp() { if (!trg.firsttx && !nobob) { nobob = true; trg.firsttx = true; if (_root.chaps != 8 && (_root.chaps != 6 or _root.locker[4]) && _root.chaps != 9) { create(320, 200, 0, 0, 0, 0, 5.09); create(320, 360, 0, 0, 0, 0, 5.1); f1 = ingrid(320, 200); bloww(f1); f1 = ingrid(320, 360); bloww(f1); } else { if (_root.chaps == 6) { } else { if (_root.chaps == 9) { var v2 = [55, 59, 60, 63, 62, 61]; _root.locker[v2[_root.skiner]] = true; } else { _root.locker[3] = true; if (_root.skiner == 5) { _root.locker[58] = true; } else { if (_root.skiner == 4) { _root.locker[38] = true; } else { if (_root.skiner >= 1) { _root.locker[25 + _root.skiner] = true; } } } } ++_root.so.data.wins; if (_root.so.data.wins > 10 && _root.chaps != 9) { create(320, 280, 0, 0, 0, 0, 5.09); } else { create(320, 280, 0, 0, 0, 0, 5.34); } } } if (_root.chaps == 2 or _root.chaps == 4 or _root.chaps == 6 or _root.chaps == 8) { if (_root.nodmg) { _root.locker[48 + _root.chaps / 2] = true; } _root.nodmg = true; } ++_root.lcomp[_root.chaps]; _root.bossk[_root.bosss] = true; if (_root.bosss >= 9 && _root.bosss <= 12 or _root.bosss == 22) { ++_root.horsedown; } if (_root.bossk[1] && _root.bossk[2] && _root.bossk[13] && _root.bossk[17]) { _root.locker[19] = true; } if (_root.bossk[3] && _root.bossk[4] && _root.bossk[14] && _root.bossk[18]) { _root.locker[20] = true; } if (_root.bossk[5] && _root.bossk[6] && _root.bossk[15]) { _root.locker[21] = true; } if (_root.bossk[9] && _root.bossk[10] && _root.bossk[11] && _root.bossk[12] && _root.horsedown >= 4) { _root.locker[25] = true; } if (_root.chaps == 2) { _root.locker[13] = true; } if (_root.chaps == 4) { _root.locker[14] = true; } if (_root.lcomp[2] >= 25) { _root.locker[22] = true; } if (_root.lcomp[4] >= 20) { _root.locker[23] = true; } if (_root.lcomp[6] >= 15) { _root.locker[24] = true; } } } function firr(trg) { var v3 = ups[6] * 1.5 + (ups[32] + ups[80] + ups[1] + ups[120]) * 0.7 + ups[59] * 0.4 + (ups[101] + ups[90]) * 0.2; if (ups[120]) { ++v3; } v3 = Math.sqrt(1 + v3 * 1.3); trg.fire = Math.max(5, 16 - v3 * 6); if (ups[69]) { trg.fire *= 0.8; } if (ups[2]) { trg.fire *= 2.1; trg.fire += 3; } if (trg == player) { _root.firra = trg.fire; } } function bossfire(f10, f9, f11, f12, f13) { f1 = trg.xp; f2 = trg.yp; f3 = 10; if (f11 <= 0) { f11 = 0; } if (helpss > 1 && trg.s == 20) { f10 *= 0.6; } if (helpss > 2 && trg.s == 20) { f10 *= 0.8; } i = 0; while (i < f10) { if (f9) { yenf = 0; xenf = 0; if (f12 != 0 or f12 == undefined) { xenf = trg.xp - player.xp; } if (f13 != 0 or f13 == undefined) { yenf = trg.yp - player.yp; } if (f13) { if (f13 * yenf > 0) { yenf = 0; } yenf *= Math.abs(f13); } if (f12) { if (f12 * xenf > 0) { xenf = 0; } xenf *= Math.abs(f12); } enf = enfget(xenf, yenf); enf = -7 / enf; xenf *= enf; yenf *= enf; f14 = Math.random() * 3.5; if (trg.worm && f10 == 1) { f14 *= 3; } xenf += crand(f14); yenf += crand(); } else { xenf = crand(7); yenf = crand(); } f0 = Math.random() * 6; trg2 = create(trg.xp, trg.yp, 0, xenf, yenf, 0, 9, trg.s); trg2.fd = 0.32 + f11 * 0.1; trg2.dm = -random(30) * 0.8 + 5 - f11; trg2.d._yscale = 90 + random(2) * 40 + Math.random() * 5; trg2.d._xscale = trg2.d._yscale; if (trg.s == 62) { trg2.dy -= 50; } ++i; } } function newstart(f1) { if (f1) { _root.hp = 100; newstats(); _root.newstartt = true; } else { _root.getup = true; ++_root.chaps; _root.cuts = true; } _root.levz = undefined; _root.door = -1; _root.playery = 0; _root.playerx = 0; moveon(); _root.gotoAndStop('reset'); } function plff() { plox = Math.max(7, plox); if (ups[69] or ups[118] && (xenf != 0 or yenf != 0)) { chax = xenf; chay = yenf; if (chaf == undefined) { chaf = fra + Math.max(0, _root.firra - 10) * 4; wtftex = chaf; lchaf = chaf; } } if (xenf != 0 or yenf != 0) { xxenf = xenf; yyenf = yenf; } if (trg.fire < 0 && (!ups[69] && !ups[118] or chaz or _root.bombnext) && unic <= 0 && (xenf != 0 or yenf != 0)) { firr(trg); if (ups[118] && !_root.bombnext) { trg.fire = 20; f11 = true; trg.xpp = xenf; trg.ypp = yenf; trg.xbew *= 0.7; trg.ybew *= 0.7; } else { f11 = ups[68] && !_root.bombnext && !ups[52]; if (f11) { trg.xpp = xenf; trg.ypp = yenf; trg.d.d.d.d.d.gotoAndStop(plo); lasershow(trg, true); _root.soundy('RedLightning_Zap_' + random(3) + '.mp', 60); llss = true; xenf = trg.xpp; yenf = trg.ypp; } else { llss = false; } } enf = enfget(xenf, yenf); enf = 10 / enf; xenf *= enf; yenf *= enf; xxenf = xenf; yyenf = yenf; xenf += trg.xbew * 0.6; yenf += trg.ybew * 0.6; enf = enfget(xenf, yenf); if (enf < 10) { enf = 10 / enf; xenf *= enf; yenf *= enf; } if (sob == 1 && !_root.hat[11]) { sob = -1; } else { sob = 1; } v1 = 0.3 + Math.random() * 0.2; if (ups[2]) { v1 = 0.8; sob = 1; } f1 = trg.xp - yenf * sob * v1; f2 = trg.yp + xenf * sob * v1; if (!llss) { _root.soundy('Tears_Fire_' + random(3) + '.mp'); } if (ups[55] && (random(2) == 0 or ups[2]) or ups[87] && random(8) == 0) { f1 = trg.xp; f2 = trg.yp; create(f1, f2, 0, -xxenf, -yyenf, 0, 2); if (ups[87]) { create(f1, f2, 0, -yyenf, xxenf, 0, 2); create(f1, f2, 0, yyenf, -xxenf, 0, 2); } } if (!f11) { var v2 = create(f1, f2, 0, xenf, yenf, 0, 2); if (ups[52] && !_root.bombnext) { trg.fire *= 3; trg.fire += 10; enf = 14 / enfget(v2.xbew, v2.ybew); v2.xbew *= enf; v2.ybew *= enf; v2.s = 4; attach(v2, 4); v2.d.d.gotoAndPlay(30); v2.lfra = fra; v2.spl = -10; v2.flyby = false; v2.dmg *= 3; if (ups[106]) { v2.dmg += 50; v2._yscale = 123; v2._xscale = 123; if (ups[106]) { v2.col = 5; } } } else { if (_root.bombnext) { if (v2 != player) { _root.bombnext = false; v2.bomb = true; attach(v2, 2); colorit(v2, 1, 1, 1, 0, 0, 0); v2.d.gotoAndStop('head'); v2.dy -= 10; v2.dm += 1.2; trg.d.d.d.gotoAndStop(29); } } else { if (ups[2]) { v2.xbew -= yenf * 0.05; v2.ybew += xenf * 0.05; f1 = trg.xp + yenf * sob * v1; f2 = trg.yp - xenf * sob * v1; create(f1, f2, 0, xenf + yenf * 0.05, yenf - xenf * 0.05, 0, 2); f1 = trg.xp + xenf; f2 = trg.yp + yenf; create(f1, f2, 0, xenf, yenf, 0, 2); } } } } plox = 7 + trg.fire * 0.45; if (ups[118]) { if (v2.bomb) { plo = 1; plox = 1; trg.d.d.d.d.gotoAndStop(1); } else { plox = 24; } } chaf = undefined; chaz = chaf; } else { if (trg.fire1 < 0) { trg.fire1 = 10; xenf = xxenf; yenf = yyenf; enf = enfget(xenf, yenf); enf = 10 / enf; xenf *= enf; yenf *= enf; xxenf = xenf; yyenf = yenf; xenf += trg.xbew * 0.6; yenf += trg.ybew * 0.6; enf = enfget(xenf, yenf); if (enf < 10) { enf = 10 / enf; xenf *= enf; yenf *= enf; } v1 = 0.3 + Math.random() * 0.2; if (ups[2]) { v1 = 0.8; sob = 1; } f1 = trg.xp; f2 = trg.yp; e = 0; while (e < folz.length) { var v2 = folz[e]; if (fra - v2.lfra > trg.fire1 + 3 && !v2.cat && !v2.mon) { if (v2.maga) { v2.outway = false; v2.charge = true; v2.xbew = xenf; v2.ybew = yenf; v2.xp = player.xp; v2.yp = player.yp; if (Math.abs(xenf) > Math.abs(yenf)) { sideflip(xenf, v2.d); v2.d.gotoAndStop(35); } else { if (yenf < 0) { v2.d.gotoAndStop(36); } else { v2.d.gotoAndStop(37); } } v2.lfra = fra + 80; v2.dmg = 3.5; } else { if (v2.baa != 5) { v2.d.gotoAndStop(plo + 4); v2.lfra = fra; if (v2.laser) { v2.d.gotoAndStop(plo + 45); f1 = 1 / enfget(xenf, yenf); v2.xpp = xenf * f1; v2.ypp = yenf * f1; lassd = 3; lasershow(v2, 2); _root.soundy('RedLightning_Zap_' + random(3) + '.mp', 60); } else { if (!llss) { _root.soundy('Tears_Fire_' + random(3) + '.mp'); } if (v2.dou) { babymode = 2; } else { if (v2.baa > 1) { babymode = v2.baa; } else { babymode = 1; } } f1 = v2.xp; f2 = v2.yp; f10 = doub; doub = v2.dou; var v3 = create(f1, f2, 0, xenf, yenf, 0, 2); v3.d._xscale *= 0.8; v3.d._yscale *= 0.8; if (v2.baa == 4) { v2.d.gotoAndStop(plo + 68); } else { if (v2.baa == 3) { v2.d.gotoAndStop(plo + 59); } else { if (v2.meat) { v2.d.gotoAndStop(plo + 27); } else { if (v2.dou) { v2.d.gotoAndStop(plo + 13); } } } } doub = f10; } if (!ups[52]) { ++e; } } } } ++e; } plox1 = 7 + trg.fire1 * 0.45; } } if (plox > 8 or _root.fmode == 7 && !ups[68] && !ups[118]) { if (ups[68] && ups[59]) { trg.d.d.d.d.gotoAndStop(plo + 8); } else { trg.d.d.d.d.gotoAndStop(plo + 4); } } else { trg.d.d.d.d.gotoAndStop(plo); } } function chaa(f9) { outgrid(trg.til); f3 = xenf; f4 = yenf; f5 = random(8); f1 = player.xp + player.xbew * f5; f2 = player.yp + player.ybew * f5; if (enfcheckx(f3, f4, f1, f2, 200)) { if (!f9) { f3 = linecheck(f3, f4, f1, f2); } else { f3 = linecheckxx(f3, f4, f1, f2); } if (f3) { f1 = 1; if (Math.abs(xenf) > Math.abs(yenf)) { yenf = 0; if (xenf < 0) { xenf = f1; } else { xenf = -f1; } trg.xpp = xenf; trg.ypp = yenf; return true; } xenf = 0; if (yenf < 0) { yenf = f1; trg.xpp = xenf; trg.ypp = yenf; return true; } yenf = -f1; trg.xpp = xenf; trg.ypp = yenf; return true; } } } function friends() { trg.damger = trg.s == 3 && (trg.alt && trg.fly or trg.meat or trg.charge or trg.ang or trg.bird); trg.ggh = true; colorit(trg, 1, 1, 1, 0, 0, 0); trg.dou = false; if (trg.meat && trg.meat != 5) { if (trg.me2) { trg.meat = Math.min(4, ups[73] - 4); } else { trg.meat = Math.min(4, ups[73]); } } if (trg.meat > 2 or trg.bird) { if (random(4) == 0 && !trg.bird) { splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.3 + 0.1); } trg.ggh = false; if (fra % 14 == 0) { trg.hh = []; } if (trg.bird) { trg.ggh = true; trg.dmg = 2; trg.d.gotoAndStop(83); } else { if (trg.meat == 5) { trg.dmg = 7; if (sk == 5) { trg.d.gotoAndStop(80); } else { if (sk == 7) { trg.d.gotoAndStop(81); } else { trg.d.gotoAndStop(79); } } trg.sp = _root.playsp * 2; } else { if (trg.meat > 3) { trg._yscale = 143; trg._xscale = 143; trg.dmg = 5.5; trg.sp = 2.2; trg.d.gotoAndStop(54); } else { trg.dmg = 3.5; trg.sp = 1.8; trg.d.gotoAndStop(54); } } } trg.outway = false; if (trg.trg2.dones) { trg.trg2 = player; trg.fire = 50 - trg.dmg * 5; } if (trg.trg2 == undefined or trg.trg2 == mheart && !trg.trg2.bh) { trg.trg2 = player; trg.fire = 5; } trg2 = trg.trg2; if (trg2 == player) { f1 = 80; } else { f1 = 20; } --trg.fire; if (fra % 4 == 0 or trg.whaf == undefined) { trg.whaf = !enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, f1) && trg.fire <= 0; } if (trg.whaf) { if (trg.bird) { xenf = trg2.xp - trg.xp; yenf = trg2.yp - trg.yp; enf = enfget(xenf, yenf); enf = 1 / enf; xenf *= enf; yenf *= enf; trg.xbew += xenf; trg.ybew += yenf; } else { pathfind(trg, trg2.xp, trg2.yp, trg.sp); } } if (enfget(trg.xbew, trg.ybew) > 2) { trg.d.d.gotoAndStop(2); sideflip(trg.xbew, trg); trg.d.d.he.gotoAndStop(5); } else { trg.d.d.he.gotoAndStop(1); trg.d.d.gotoAndStop(1); } if (ashut > 0 && (trg2 == player or trg.fire < 200) && fra % 13 == 0) { f2 = false; if (random(2) == 0) { f6 = player.xp; f7 = player.yp; } else { f6 = trg.xp; f7 = trg.yp; } for (z in ball) { trg2 = ball[z]; if (trg2.s > 9 && !trg2.dones) { if (enfcheck(trg2.xp, trg2.yp, f6, f7, 65 + trg.dmg * 15)) { if (trg2 != mheart && !trg2.mom && trg2.pow >= 3 or trg2.bh) { f2 = trg2; } } } } if (f2 && trg.trg2 != f2) { trg.fire = 5; trg.trg2 = f2; } } if (trg.bird) { trg.xbew *= 0.9; trg.ybew *= 0.9; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; } } else { if (trg.maga && trg.charge) { if (mhity(trg.xp + trg.xbew, trg.yp + trg.ybew) or trg.charge > 1) { killshit(ingrid(trg.xp, trg.yp)); if (trg.charge > 1) { ++trg.charge; } else { trg.charge = 2; } trg.xbew *= 0.5; trg.ybew *= 0.5; if (trg.charge > 10) { trg.charge = false; } } } else { if (trg.fly or trg.meat or trg.ang) { f1 = player.xp - 2; f2 = player.yp - 4; if (trg.alt) { if (fra % 2 == 0) { trg.hh = []; } if (trg.alt == 2) { trg.d.gotoAndStop(19); trg.dmg = 2; f11 = fra * 0.013 * Math.PI; if (ups[112]) { f11 *= 1.5; } trg.xp = f1 + Math.sin(f11) * 110; trg.yp = f2 + Math.cos(f11) * 90; } else { trg.d.gotoAndStop(21); trg.dmg = 5; f11 = -fra * 0.02 * Math.PI; if (ups[112]) { f11 *= 1.5; } trg.xp = f1 + Math.sin(f11) * 60; trg.yp = f2 + Math.cos(f11) * 45; } } else { if (trg.ang) { trg.dmg = 7; if (fra % 18 == 0) { trg.hh = []; } trg.d.gotoAndStop(97); } else { if (trg.meat) { trg.dmg = 7; if (fra % 18 == 0) { trg.hh = []; } if (trg.meat <= 1) { trg.d.gotoAndStop(22); } else { f11 += 11; trg.dou = true; if (trg.lfra + 4 < fra) { trg.d.gotoAndStop(plo + 23); } folz.push(trg); } } else { trg.d.gotoAndStop(20); } } flys.push(e); f12 = fra * 0.03; if (ups[112]) { f12 *= 2; } f11 = (f12 + ffly * fll) * Math.PI; trg.xp = f1 + Math.sin(f11) * 25; trg.yp = f2 + Math.cos(f11) * 20; if (trg.fly) { lff = trg; } ++ffly; if (ffly > 3) { lff.done = true; } _root.tex = ffly; } trg.xbew *= 0.8; trg.ybew *= 0.8; } else { trg.outway = true; f1 = (follow == player or follow.maga or follow.dou or follow.ba) && !trg.maga; trg.baa = 0; if (f1) { if (ups[95] && lastbb != 2) { trg.baa = 2; lastbb = 2; } else { if (ups[67] && lastbb != 1) { trg.baa = 1; lastbb = 1; } else { if (ups[99] && lastbb != 3) { trg.baa = 3; lastbb = 3; } else { if (ups[113] && lastbb != 5) { trg.baa = 5; lastbb = 5; } else { if (ups[100] && lastbb != 4) { trg.baa = 4; lastbb = 4; } } } } } } trg.laser = trg.baa == 2; trg.dou = trg.baa == 1; enfcheck(trg.xp, trg.yp, follow.xp, follow.yp, 100000); f1 = 20; f2 = enf < 75; if (enf > f1) { enf = ((enf - f1) / enf) * 0.1; trg.xp -= xenf * enf; trg.yp -= yenf * enf; } if (!trg.maga or f2) { folz.push(trg); } else { trg.xbew *= 0.8; trg.ybew *= 0.8; } follow = trg; if (trg.maga) { trg.d.gotoAndStop(34); } else { if (trg.cat) { if (trg.cat == 2) { trg.d.gotoAndStop(77); } else { trg.d.gotoAndStop(33); } } else { if (trg.mon) { if (trg.mon == 4) { trg.d.gotoAndStop(95); } else { if (trg.mon == 3) { trg.d.gotoAndStop(75); } else { if (trg.mon == 2) { trg.d.gotoAndStop(52); } else { trg.d.gotoAndStop(40); } } } if (trg.d.d._currentframe > 1 or _root.monbb >= 1) { trg.d.d.nextFrame(); if (trg.d.d._currentframe == 4) { _root.monbb = 0; switch (trg.mon) { case 4: f1 = 5.04; break; case 3: f1 = 5.0103; break; case 2: f1 = 5.0102; _root.soundy('kiss_lips1.wav'); break; case 1: f1 = 5.02; } trg2 = spaw(trg.xp, trg.yp, 0, f1); if (trg.mon > 1 && trg.mon < 4) { trg2.col = trg.mon; } } } } else { trg.ba = true; if (trg.lfra + 4 < fra) { if (trg.baa == 5) { if (trg.plo == undefined) { trg.plo = 1; } trg.d.gotoAndStop(trg.plo + 84); if (fra % 10 == 0) { f2 = false; for (z in ball) { trg2 = ball[z]; if (trg2.s > 9 && !trg2.dones) { if (enfcheck(trg2.xp, trg2.yp, trg.xp, trg.yp, 150)) { if (linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp)) { if (trg2.bh) { f2 = trg2; } } } } } if (f2 && trg.trg2 != f2) { trg.trg2 = f2; trg2 = trg.trg2; } else { trg2 = trg.trg2; } if (trg2 == player or trg2.dones) { trg.trg2 = undefined; trg2 = trg.trg2; } if (!f2) { if (!linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp)) { trg.trg2 = undefined; trg2 = trg.trg2; } } if (trg2) { xenf = trg.xp - trg2.xp; yenf = trg.yp - trg2.yp; enf = enfget(xenf, yenf); enf = 8 / enf; xenf *= enf; yenf *= enf; babymode = 5; if (Math.abs(xenf) > Math.abs(yenf)) { if (xenf < 0) { trg.plo = 2; } else { trg.plo = 4; } } else { if (yenf > 0) { trg.plo = 3; } else { trg.plo = 1; } } trg.d.gotoAndStop(trg.plo + 88); trg2 = create(trg.xp, trg.yp, 0, -xenf, -yenf, 0, 2); } else { trg.plo = 1; } } } else { if (trg.baa == 4) { trg.d.gotoAndStop(plo + 64); } else { if (trg.baa == 3) { trg.d.gotoAndStop(plo + 55); } else { if (trg.laser) { trg.d.gotoAndStop(plo + 41); } else { if (trg.dou) { trg.d.gotoAndStop(plo + 9); } else { trg.d.gotoAndStop(plo); } } } } } } } } } trg.xbew *= 0.8; trg.ybew *= 0.8; } } } } function actions1() { f2 = 0; f3 = fra % 3; if (f3 == 0) { f1 = 0.45; } else { if (f3 == 1) { f1 = 1; } else { f1 = 1.85; } } if (blackout == 2) { if (f1 == 1) { f2 = 30; } f1 *= 0.7; f1 -= 0.5; } bull = new flash.geom.ColorTransform(); bull.redMultiplier = f1; bull.greenMultiplier = f1; bull.blueMultiplier = f1; bull.redOffset = f2; bull.greenOffset = f2; bull.blueOffset = f2; bull2 = new flash.geom.ColorTransform(); if (fra % 2 == 0) { f3 = (fra % 6) / 2; if (f3 == 0) { f1 = 0.45; } else { if (f3 == 1) { f1 = 1; } else { f1 = 1.85; } } f1 = f1 * 0.2 + 0.85; if (blackout == 2) { f1 = 1; } bull2.redMultiplier = f1; bull2.greenMultiplier = f1; bull2.blueMultiplier = f1; bull2.redOffset = f2; bull2.greenOffset = f2; bull2.blueOffset = f2; } var v2 = new flash.geom.Transform(blorz); v2.colorTransform = bull2; magget = 0; momet = 0; wormet = 0; if (fra % 3 == 0) { for (e in levz) { if (levz[e] > 0 && levz[e] < 0.99) { levz[e] -= 0.1; if (levz[e] < 0) { levz[e] = 0; } } } } if (fra > 10) { _root.levit[_root.lev] = []; } ashut = shutdoor; shutdoor = 0; if (fra > 10) { _root.levcol[_root.lev] = 0; } follow = player; folz = []; ffly = 0; if (anarch-- > 0) { if (anarch % 5 == 0) { trg2 = spaw(320, 280, random(300), 5.04); trg2.col = 3; } } if (killa) { for (z in levz) { if (killshit(z)) { killshit(z); killshit(z); killshit(z); killshit(z); } } killa = false; } if (momdown-- > 0) { if (_root.chaps == 6) { f1 = Math.max(0, 1 - Math.abs(momdown - 50) / 40); f2 = 1 - f1; f3 = 150 * f1; colorit(_root, f2, f2, f2, f3, 0, 0); if (momdown == 50 && !_root.locker[4]) { _root.locker[4] = true; _root.locker[5] = true; _root.locker[6] = true; colorit(_root, 1, 1, 1, 0, 0, 0); _root.levz = undefined; moveon(); _root.door = undefined; _root.gotoAndStop(9); } } while (random(2) != 0) { f10 = random(15) + 2; xenf = crand(f10); yenf = crand(f10); trg2 = create(320 - xenf * 100, 280 - yenf * 100, 0, xenf, yenf, 0, 8); trg2.d._yscale = 140 + random(80); trg2.d._xscale = trg2.d._yscale; trg2.md -= random(20); trg2.fd += 0.5; } } helpss = helps; helps = 0; help = 0; for (e in ball) { trg = ball[e]; if (trg.bosser && trg.dones) { trg.bosser = false; --bosser; if (bosser == 0 && !bossheart) { bossheart = true; f0 = 5.01; if (trg.s == 45 or trg.s == 78) { f1 = 320; f2 = 280; } else { f1 = trg.xp; f2 = trg.yp; } if (_root.bossl == _root.lev) { create(f1, f2, 0, crand(7), crand(7), 0, f0); if (_root.so.data.wins < 6) { create(f1, f2, 0, crand(7), crand(7), 0, f0); } } if (spezz) { trg2 = create(f1, f2, 0, crand(7), crand(7), 0, 5.01); if (spezz == 4 or spezz == 7) { trg2.col = 3; } } } } } bosser = 0; lastbb = -1; topz(1); for (e in ball) { trg = ball[e]; if ((hps[trg.s] / mux > 199 && trg.s != 62 && trg.pow != 5 or trg.s == 19 or trg.s == 20 or trg.s == 79 or trg.s == 82 or trg.s == 83 or trg.minb or trg.worm == 6 or trg.s == 67 or trg.s >= 71 && trg.s <= 77) && !trg.dones && !trg.sic && !trg.horse && !trg.weap && !mheart or trg == mheart) { ++bosser; trg.bosser = !trg.minb; trg.aboss = trg.bosser; if (trg.hp > trg.mhp) { trg.mhp = trg.hp; } help += trg.hp / trg.mhp; ++helps; f1 = 0; if (trg.s == 74) { f1 = 10; } if (trg.s == 75) { f1 = 4; } if (trg.s == 76) { f1 = 1; } if (trg.s == 71) { f1 = 12; } if (trg.s == 72) { f1 = 2; } help += f1; helps += f1; bosser += f1; trg.hbar = true; mins = trg.minb or _root.lev != _root.bossl && _root.lev != 166; } if ((trg.flyai or trg.s == 25 && !trg.alt) && !trg.dones) { ++flyshut; } if (trg.gosplash) { gosplash(); trg.gosplash = false; } if ((trg.s == 61 or trg.s == 26 && trg.alter == 2) && trg.dones && !trg.wtfst) { trg.wtfst = true; quadf(trg.xp, trg.yp, 8); } if (trg.s == 81 && trg.alter == 2) { if (trg.dones) { trg.alter = 0; _root.locker[64] = true; f0 = 5.1132; spaw(trg.xp, trg.yp, 0, f0); } } if (trg.minb) { if (!fonter) { fonter = true; f4 = ['Isaac', 'Magdalena', 'Cain', 'Judas', 'XXX', 'Eve']; f1 = ['Sloth', 'Lust', 'Wrath', 'Gluttony', 'Greed', 'Envy', 'Pride', 'Krampus']; f0 = trg.s - 46; st11(f4[_root.skiner] + ' vs ' + f1[f0]); } if (trg.dones && helpss == 0 && !minsber) { minsber = true; trg.minb = false; f1 = [5.3, 42, 5.07, 13, 5.04, 37, 5.01, 15, 5.02, 64, 5.04, 49, 5.3, 65]; f0 = trg.s - 46; _root.minwin[f0] = true; if (_root.minwin[0] && _root.minwin[1] && _root.minwin[2] && _root.minwin[3] && _root.minwin[4] && _root.minwin[5] && _root.minwin[6]) { _root.locker[29] = true; } f0 *= 2; f2 = false; if (random(4) == 0) { f2 = true; } if (f2 && !_root.ups[f1[f0 + 1]]) { f0 = f1[f0 + 1]; f0 = 5.1 + f0 / 10000; } else { f0 = f1[f0]; } if (f0 == 5.04 && trg.s == 51) { trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, f0); trg2.col = 3; } else { if (f0 == 5.02) { f3 = 4 + random(5); z = 0; while (z < f3) { f4 = random(5) + 2; create(trg.xp, trg.yp, 0, crand(f4), crand(f4), 0, f0); ++z; } } else { if (f0 == 5.01 or f0 == 5.04) { f1 = crand(5); f2 = crand(); create(trg.xp, trg.yp, 0, f1, f2, 0, f0); create(trg.xp, trg.yp, 0, -f1, -f2, 0, f0); } else { spaw(trg.xp, trg.yp, 0, f0); } } } } } else { if (trg.special or trg.hallo) { if (trg.dones) { trg.special = false; trg.hallo = false; f1 = Math.random(); if (f1 < 0.4) { f0 = 5.02; } else { if (f1 < 0.6) { f0 = 5.01; } else { if (f1 < 0.76 - _root.chaps * 0.01) { f0 = 5.03; } else { if (f1 < 0.8) { if (random(2) == 0) { f0 = 5.3; } else { f0 = 5.07; } } else { if (f1 < 0.95) { f0 = 5.04; } else { f0 = 5.05; } } } } } spaw(trg.xp, trg.yp, 0, f0); } } } if (trg.s == 51 && trg.tier <= 2 && trg.dones && !trg.wtfst) { ++helpss; helps = 1; trg.wtfst = true; f1 = crand(10); f2 = crand(); trg2 = []; f3 = trg.s; trg2.push(create(trg.xp + f1, trg.yp + f2, 0, f1 * 0.4, f2 * 0.4, 0, f3)); trg2.push(create(trg.xp - f1, trg.yp - f2, 0, -f1 * 0.4, -f2 * 0.4, 0, f3)); for (z in trg2) { trg2[z].fra = -100; trg2[z].tier = trg.tier + 1; trg2[z].hp /= trg.tier + 2; trg2[z].d.gotoAndStop(5 + trg.tier); } } if (trg.s == 76 && trg.dones && !trg.wtfst) { trg.wtfst = true; trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 77); trg2.fra = -100; } if (trg.s == 73 && trg.dones && !trg.wtfst) { trg.wtfst = true; f1 = 23; if (trg.specoz == 15) { f1 = 25; } trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, f1); _root.soundy('summonsound.wav', 80); trg2.hp *= 0.75; } if ((trg.s == 71 or trg.s == 72) && trg.dones && !trg.wtfst) { trg.wtfst = true; f1 = crand(20); f2 = crand(); trg2 = []; f3 = trg.s + 1; trg2.push(create(trg.xp + f1, trg.yp + f2, 0, f1 * 0.2, f2 * 0.2, 0, f3)); trg2.push(create(trg.xp - f1, trg.yp - f2, 0, -f1 * 0.2, -f2 * 0.2, 0, f3)); if (trg.s == 71) { if (trg.specoz == 15) { trg2.push(create(trg.xp + f2, trg.yp - f1, 0, 0, 0, 0, f3)); } else { trg2.push(create(trg.xp + f2, trg.yp - f1, 0, f2 * 0.2, -f1 * 0.2, 0, f3)); trg2.push(create(trg.xp - f2, trg.yp + f1, 0, -f2 * 0.2, f1 * 0.2, 0, f3)); } } for (z in trg2) { trg2[z].fra = -100; trg2[z].d.gotoAndStop(2 + (f3 - 71) * 3); } } if (trg.s == 57 && trg.dones && !trg.wtfst) { trg.wtfst = true; f1 = crand(10); f2 = crand(); create(trg.xp + f1, trg.yp + f2, 0, 0, 0, 0, 32); create(trg.xp - f1, trg.yp - f2, 0, 0, 0, 0, 32); } if (trg.s == 79 && altboss && !trg.wtfst && trg.dones) { trg.wtfst = true; quadf(trg.xp, trg.yp, 10, true); } if (trg.s == 80 && !trg.wtfst && trg.dones && trg.hp > -20) { trg.wtfst = true; f1 = player.yp - trg.yp; f2 = trg.xp - player.xp; enf = enfget(f1, f2); if (enf > 0) { enf = 10 / enf; f1 *= enf; f2 *= enf; } else { f1 = crand(10); f2 = crand(10); } trg2 = create(trg.xp + f1, trg.yp + f2, 0, f1, f2, 0, 18); trg3 = create(trg.xp - f1, trg.yp - f2, 0, -f1, -f2, 0, 18); trg2.fra = -10; trg3.fra = -10; } if (trg.s == 2 && trg.dones && !trg.wtfst) { trg.wtfst = true; if (ups[104] && !trg.ba) { if (slugsp <= fra) { slugsp = fra + 5; xenf = trg.ybb; yenf = -trg.xbb; enf = enfget(xenf, yenf); f1 = trg.xp; f2 = trg.yp; if (mhity(f1, f2)) { f1 = trg.xpp; trg.xp = f1; f2 = trg.ypp; trg.yp = f2; } if (enf > 0) { enf = 8.5 / enf; xenf *= enf; yenf *= enf; trg2 = create(f1, f2, 0, xenf, yenf, 0, 2); trg3 = create(f1, f2, 0, -xenf, -yenf, 0, 2); trg2.wtfst = true; trg3.wtfst = true; trg2.bh = false; trg3.bh = false; trg3.dy = trg.dy; trg2.dy = trg.dy; trg3.dm = 1.2; trg2.dm = 1.2; trg2.d._xscale = trg.d._xscale; trg3.d._xscale = trg2.d._xscale; trg2.d._yscale = trg.d._yscale; trg3.d._yscale = trg2.d._yscale; trg2.dmg = trg.dmg; trg3.dmg = trg2.dmg; if (ups[132]) { trg2.gro = trg.gro; trg3.gro = trg2.gro; } } } } } else { if (trg.s == 2 && !trg.dones) { trg.xbb = trg.xbew; trg.ybb = trg.ybew; trg.xpp = trg.xp; trg.ypp = trg.yp; } } if (trg.s == 25 && trg.alter == 2 && !trg.wtfst && trg.dones) { trg.wtfst = true; cirf(trg.xp, trg.yp, 8, 6); } if ((trg.s == 16 or trg.s == 22 or trg.s == 67) && trg.dones && !trg.wtfst) { trg.wtfst = true; if (trg.alter == 2) { quadf(trg.xp, trg.yp, 8, 2); trg2 = spaw(trg.xp, trg.yp, 0, 5.04); trg2.col = 3; } else { if (trg.hp > -20) { flya(); } } } if (trg.frezz > 0) { --trg.frezz; trg.free = true; } else { if (trg.frezz < 1) { trg.free = false; } } if (trg.poiss > 0) { --trg.poiss; if (trg.poiss % 20 == 1) { hurt(trg, trg.poisd); } } if (trg.uncol < fra) { speco(trg); } if (trg.s <= 9) { if (!trg.dones) { switch (trg.s) { case 3: friends(); break; case 2: if (trg.fra + 2 < fra) { trg.bh = true; } if (ups[5] && !trg.ba) { trg2 = player; enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 500); enf = 0.6 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; trg.xbew *= 0.98; trg.ybew *= 0.98; trg.fd = -0.045; } if (ups[132] && !trg.ba && !ups[114]) { if (trg.gro++ < 150) { trg.dmg += 0.14; trg.d._xscale += 1; trg.d._yscale += 1; _root.tex = trg.dmg; } } if (ups[3] && !trg.ba or trg.ba == 4) { if (trg.trg2 == undefined or trg.trg2.dones or trg.trg2.xp <= 0) { if ((fra + trg.e) % 9 == 0) { f1 = trg.xp + trg.xbew * 5; f2 = trg.yp + trg.ybew * 5; siz = 100; for (i in ball) { trg2 = ball[i]; if (trg2.s > 9 && !trg2.dones && !trg.hh[trg2.e]) { enf = enfcheck(f1, f2, trg2.xp, trg2.yp, siz); if (enf) { if (trg2.pos >= 3 && (trg2 != mheart or trg2.bh)) { siz = enf; trg.trg2 = trg2; } } } } if (trg.trg2 != undefined) { trg2 = trg.trg2; if (linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp)) { trg.gonuts = true; } } } } else { if (trg.trg2 != undefined) { trg2 = trg.trg2; if ((fra + trg.e) % 5 == 0) { if (linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp)) { trg.gonuts = true; } } if (trg2.dones or trg.hh[trg.trg2.e]) { trg.trg2 = undefined; trg.gonuts = false; } else { if (trg.gonuts && random(2) == 0) { enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 100); if (enf > 0) { enf = 2 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; trg.xbew *= 0.85; trg.ybew *= 0.85; } } } } } } if (ups[59] && trg.trg2 == undefined && !trg.ba) { outgrid(ingrid(trg.xp, trg.yp)); trg.nuts *= 0.5; if (trg.dir) { trg.nuts += Math.abs(trg.xbew) * 0.02; trg.xbew /= 0.8 + trg.nuts; trg.xbew += (xenf - trg.xp) * 0.3; } else { trg.nuts += Math.abs(trg.ybew) * 0.02; trg.ybew /= 0.8 + trg.nuts; trg.ybew += (yenf - trg.yp) * 0.3; } } case 9: if (trg.s == 9 && (!trg.bomb or blackout == 2) && trg.sss != 68) { v2 = new flash.geom.Transform(trg); v2.colorTransform = bull; } if (random(16) == 0) { splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.3 + 0.1); } case 8: if (random(3) == 0 && trg.s == 8) { splater(trg.xp, trg.yp, trg.spl + 1 + random(10), (Math.random() * 0.3 + 0.1) * trg.d._xscale / 100); } case 7: if (!trg.knife) { trg.dm *= 0.9; trg.dm += 0.1; if (trg.fd) { trg.dm += trg.fd; } trg.dy += trg.dm; trg.d._y = trg.dy; if (trg.dy > -5) { if (trg.s == 2) { trg.wtfst = true; } if ((trg.s == 8 or trg.s == 7) && !mhit(trg.xp, trg.yp)) { maxx = new flash.geom.Matrix(); maxx.translate(trg.xp, trg.yp); maxx.scale(hdx, hdx); if (trg.colo) { gut.draw(trg, maxx, trg.colo); } else { if (trg.s == 8) { gut.draw(trg, maxx, bloc); } else { gut.draw(trg, maxx); } } trg._visible = false; } if (random(2) == 0) { _root.soundy('splatter0' + random(3) + '.wav'); } trg.d.gotoAndStop('groundhit'); trg.dones = true; } } if (trg.s == 9) { if (trg.nog-- <= 0) { if (trg.dy < -50) { trg.bh = false; trg.ggh = true; } else { trg.ggh = false; trg.bh = true; } } } break; case 5: if (trg.d.d.d._currentframe == 25 && trg.d.d._currentframe == 3 && fra > 35) { switch (trg.d._currentframe) { case 1: _root.soundy('Meat_Feet_slow0.wav'); break; case 2: if (trg.col == 1) { _root.soundy('pennydrop.mp'); } else { _root.soundy('nickeldrop.mp'); } break; case 3: _root.soundy('Key_drop0.wav'); break; case 7: if (trg.col < 7) { _root.soundy('Fetus_Jump_' + random(2) + '.wav'); } else { _root.soundy('scamper' + random(2) + '.wav'); } } } if (fra % 30 == 0) { if (trg.d._currentframe == 8) { for (a in ball) { trg2 = ball[a]; if (trg != trg2 && trg2.s == 5 && trg2.d._currentframe < 8) { enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 40); if (enf) { if (enfget(trg2.xbew, trg2.ybew) < 0.2) { if (enf == 0) { xenf = crand(1); yenf = crand(1); enf = 1; } enf = 2 / enf; trg2.xbew -= xenf * enf; trg2.ybew -= yenf * enf; } } } } } } if (trg.col == 10 && trg.d._currentframe == 8) { trg.xbew = 0; trg.ybew = 0; } if (trg.d._currentframe == 15) { if (ups[64] && (trg.d.d._currentframe < 5 or trg.d.d._currentframe == 12 or trg.d.d._currentframe == 13)) { f1 = trg.d.d.d._currentframe; trg.d.d.gotoAndStop(trg.d.d._currentframe + 4); trg.d.d.d.gotoAndStop(f1); } } if (trg.spin) { if (trg.d.d._currentframe == 2 && trg.d.d.d._currentframe == 17) { _root.soundy('slot touched.wav'); } if (trg.d.d._currentframe == 42 && trg.d.d.d._currentframe == 35) { _root.soundy('shellgame' + random(2) + '.wav'); } if (trg.d.d._currentframe == 42 && trg.d.d.d._currentframe == 35) { _root.soundy('shellgame' + random(2) + '.wav'); } if (trg.d.d._currentframe >= 42 && trg.d.d.d._currentframe == 65) { _root.soundy('shell game.wav'); } if (trg.d.d._currentframe == 40 && trg.d.d.d._currentframe == 20) { _root.soundy('bum shoot off.wav'); } f1 = trgnextd(trg.d.d.d, true); if (trg.d.d._currentframe == 42) { trg.d.d.d.it.gotoAndStop(trg.itt + 1); } if (f1 == 43 or f1 == 44 or f1 == 45) { trg.spin = false; } else { if (f1 == 42) { lastspin = fra + 50; trg.wtf = false; } else { if (f1 == 37) { if (trg.col++ > random(2) + random(4) + random(4)) { if (ups[46]) { ++trg.col; } trg.col = 2 + random(2); trg.d.d.gotoAndStop(38); } else { trg.d.d.gotoAndStop(36); trg.spin = false; } trg.col = Math.min(9, trg.col); trg.wtf = false; } else { if (f1 == 2) { if (random(50) == 0 && chestopen == undefined) { chestopen = trg; trg.d.d.gotoAndStop(30); trg.spin = false; trg.busted = true; _root.soundy('boss1_explosions' + random(3) + '.wav', 80); } else { if (ups[42]) { trg.d.d.gotoAndStop(3 + random(15)); } else { trg.d.d.gotoAndStop(3 + random(21)); } if (trg.d.d._currentframe >= 9 && random(5) != 0) { trg.d.d.nextFrame(); } if (trg.d.d._currentframe == 7 && random(3) == 0) { trg.d.d.gotoAndStop(10); } trg.wtf = false; } } else { if (f1 > 2 && trg.col <= 1) { trg.spin = false; } } } } } if (trg.d.d.d._currentframe > 15 && trg.d.d._currentframe > 2 && !trg.wtf) { if (trg.col != 1 or trg.d.d.d._currentframe > 36) { lastspin = fra + 12; trg.wtf = true; f1 = trg.d.d._currentframe; f2 = 0; f12 = 1; switch (f1) { case 43: case 44: case 45: if (random(3) == 0 or random(3) == 0 && ups[46]) { f2 = 5.01 + trg.itt * 0.01; if (f2 == 5.02) { f12 = 2 + random(2); } else { f12 = Math.max(random(3), 2); } if (trg.itt == 5) { f2 = 5.1009; } } else { f2 = 18; _root.soundy('boss2intro_errorbuzz.wav'); } break; break; case 42: case 38: trg.spin = false; f2 = 5.1022 + random(5) * 0.0001; if (random(2) == 0) { if (random(3) == 0) { f2 = 5; } else { f2 = 5.03 + random(2) * 0.01; } } else { if (random(2) == 0) { if (random(2) == 0) { f2 = 5.1022 + random(5) * 0.0001; } else { f2 = 5.3; } } else { f2 = 5.1; } } trg.d.d.gotoAndStop(36); break; case 33: if (random(15) == 0) { f2 = 5.1; trg.done = true; _root.soundy('boss1_explosions' + random(3) + '.wav', 80); } else { f2 = 5.02; f12 = Math.max(1, random(3)); if (ups[75]) { ++f12; } _root.soundy('bloodbank spawn' + random(2) + '.wav', 90); } break; case 3: if (random(3) == 0) { _root.ups[10] += 0.5; ups[10] = _root.ups[10]; st22('Pretty Fly'); emo(); } else { f2 = 13; emo(true); } break; case 4: f2 = 5.04; break; case 5: case 6: f2 = 5; break; case 10: case 11: case 12: f2 = 5.02; f12 = Math.max(1, random(3)); break; case 7: f2 = 5.03; break; case 8: f2 = 5.07; break; case 9: enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, f1); if (enf < f1) { enf = ((f1 - enf) / enf) * 0.4; player.xbew -= xenf * enf; player.ybew -= yenf * enf; } f2 = 5.1; trg.done = true; _root.soundy('boss1_explosions' + random(3) + '.wav', 80); break; case 37: break; default: emo(true); } if (f2 > 0) { if (f1 < 33) { emosound = false; } if (f2 < 7 && f1 != 33) { emo(); } emosound = true; if (f1 < 33) { _root.soundy('slotspawn' + random(3) + '.wav'); } if (f2 >= 5.1 && trg.col > 1 && f2 < 5.3) { bummer = true; spaw(trg.xp, trg.yp + 80, 0, f2); trg.empty = true; trg.dones = true; trg.d.d.gotoAndStop(40); } else { i = 0; while (i < f12) { f13 = 0; while (f13++ < 10) { if (f1 >= 43 && f1 <= 45) { yenf = 4 + crand(2); xenf = (f1 - 44) * 4 + crand(2); f14 = xenf * 5; f15 = 5; } else { xenf = crand(5); yenf = crand(5) * 0.2 + 3; f14 = 0; f15 = 0; } if (linecheckx(trg.xp + f14, trg.yp + f15, trg.xp + xenf * 7, trg.yp + yenf * 7)) { f13 = 1000; } } var trg2 = create(trg.xp + f14, trg.yp, 0, xenf, yenf, 0, f2); trg2.alt = 2; if (f2 == 18) { trg2.fra = -10; trg2.xp += xenf * 4; } if (f2 == 5.1) { if (trg.col == 1) { trg2.it = 119; trg2.alt = 3; } else { trg2.it = 18; } trg2.fra -= 15; trg2.d.d.gotoAndStop(44); } ++i; } } } } } } if (trg.alt) { if (trg.alt == 3) { trg.d.d.al.gotoAndStop(4); } else { if (trg.alt == 2) { trg.d.d.al.gotoAndStop(3); } else { trg.d.d.al.gotoAndStop(2); } } } if (fra - trg.fra > 25) { trg.bh = true; } if (trg.it > 0) { f1 = trg.it / 100; } else { f1 = 0; } if (trg.d._currentframe == 4) { if (trg.fail == undefined) { trg.fail = 0; } if (trg.col == 3 && trg.fail++ > 60) { trg.done = true; trg2 = bombfail(trg.xp, trg.yp); trg2.col = 3; } } if (trg.d._currentframe == 9) { trg.nod = true; trg.swapDepths(300 + e); if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 50) && !trg.open) { trg.d.d.gotoAndStop(1); } else { trg.open = true; if (trg.d.d._currentframe != 23) { trg.d.d.nextFrame(); } } } else { if (trg.d._currentframe == 10) { trg.d.d.nextFrame(); trg.d.d.d.d.gotoAndStop(trg.it); if (trg.empty) { trg.d.d.d.gotoAndStop(21); } } else { if (trg.d._currentframe == 15) { f1 = trg.d.d._currentframe / 10 + f1 / 100; trg.d.d.d.gotoAndStop(trg.it); } } } if (trg.col) { f1 += trg.col / 10000000; } f1 = trg.d._currentframe + f1; if (!trg.empty or trg.spin) { _root.levit[_root.lev].push([f1, trg.xp, trg.yp]); } if (trg.d._currentframe >= 5 && trg.d._curretnframe != 7) { trg.xbew *= 0.8; trg.ybew *= 0.8; } if (trg.d._currentframe >= 8 && !trg.busted && (trg.d._currentframe != 10 or !trg.alt)) { trg.xp = trg.xpp; trg.yp = trg.ypp; } trg.xbew *= 0.965; trg.ybew *= 0.965; if (!trg.empty) { f1 = trg.d._currentframe; if (f1 == 7) { if (trg.col < 7) { f1 = 8; } } else { if (f1 == 8) { f1 = 9; } else { if (f1 == 9) { f1 = 0; } } } f2 = _root.levcol[_root.lev]; if (f1 == 1 && f2 < 5) { f2 = 0; } if (f2 == 1 && f1 < 5) { f1 = 0; } _root.levcol[_root.lev] = Math.max(f2, f1); } break; case 4: if (ups[125] or ups[52] && ups[3]) { if (trg.trg2 == undefined or trg.trg2.dones or trg.trg2.xp <= 0) { if (fra % 3 == 0) { f1 = trg.xp + trg.xbew * 5; f2 = trg.yp + trg.ybew * 5; siz = 150; for (i in ball) { trg2 = ball[i]; if (trg2.s > 9 && !trg2.dones && !trg.hh[trg2.e]) { enf = enfcheck(f1, f2, trg2.xp, trg2.yp, siz); if (enf) { siz = enf; trg.trg2 = trg2; } } } if (trg.trg2 != undefined) { trg2 = trg.trg2; if (linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp)) { trg.gonuts = true; } } } } else { if (trg.trg2 != undefined) { trg2 = trg.trg2; if ((fra + trg.e) % 5 == 0) { if (linecheckx(trg.xp, trg.yp, trg2.xp, trg2.yp)) { trg.gonuts = true; } } if (trg2.dones or trg.hh[trg.trg2.e]) { trg.trg2 = undefined; trg.gonuts = false; } else { if (trg.gonuts) { enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 100); if (enf > 0) { enf = 0.5 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; trg.xbew *= 0.95; trg.ybew *= 0.95; } } } } } } if (trg.d._currentframe == 1) { trg.d.d.nextFrame(); } if (fra - trg.fra > 30) { trg.ph = false; } if (fra - trg.fra > 15) { trg.bh = true; } if (fra - trg.lfra > 3 && !trg.nex) { trg.nex = true; nextbo = true; } if (!trg.empty) { _root.levit[_root.lev].push([-100, trg.xp, trg.yp]); } trg.xbew *= 0.95; trg.ybew *= 0.95; trg.d.d.p.gotoAndStop(trg.col); } } } else { if (fra - trg.fra < 10 && !trg.dones && trg.s != 84) { trg.d.gotoAndStop(4); } if (firecheck(trg)) { if (fra - trg.lastfir >= 10) { trg.lastfir = fra; hurt(trg, 8); } } if (trg.s != 42 && trg.s != 44 && !trg.dones && trg.s != 33 && trg.s != 37 && !trg.weap) { ++shutdoor; } if (trg.d._currentframe == 4 && !trg.apf && !trg.dones) { trg.xbew *= 0.45; trg.ybew *= 0.45; trgnextd(); if (trg.s == 10) { if (trg.gonuts) { trg.d.d.h.gotoAndStop(2); } } if (trg.s == 30) { f1 = trg.hp / hps[trg.s]; trg.d.d.h.d.gotoAndStop(Math.max(1, 14 - Math.round(f1 * 13))); } if (trg.s == 11) { if (!trg.bnuts) { trg.d.bb._visible = false; trg.d.d.bb._visible = false; } } } if (trg.s == 30) { trg.xp = trg.xpp; trg.yp = trg.ypp; } if ((trg.d._currentframe != 4 or trg.apf) && !trg.dones) { if (freez > 0 or trg.frezz > 0 or trg.s < 4 && sloww) { trg.xbew *= 0.8; trg.ybew *= 0.8; trg.free = true; } else { if (trg.flyai) { switch (trg.s) { case 14: trgnextd(); if (!ups[9]) { firemode(200, 4); } if (trg.fire > 0) { trg.xbew *= 0.8; trg.ybew *= 0.8; trg.xbb *= 0.7; trg.ybb *= 0.7; } case 80: case 18: if (trg.duke) { ++dukes; if (duke.dones or duke.send) { trg.duke = false; if (enfcheck(trg.xp, trg.yp, duke.xp, duke.yp, 260)) { f1 = 18 / enf; trg.xbew += xenf * f1; trg.ybew += yenf * f1; } } else { if (fra % 3 == 1) { if (enfcheck(trg.xp, trg.yp, duke.xp, duke.yp, 260)) { f3 = duked; f1 = (absmax(enf - f3, 5) / enf) * 0.5; f2 = 0.2 / (2 + Math.abs(f3 - enf)); trg.xbew -= xenf * f1; trg.ybew -= yenf * f1; trg.xbew += yenf * f2; trg.ybew -= xenf * f2; trg.xbew += duke.xbew * 0.4; trg.ybew += duke.ybew * 0.4; } } } } case 13: case 61: trg.outway = fra % 2 == 0; if (fra % 3 == 0) { if (ups[9] && trg.s == 18 && !trg.duke) { trg.s = 13; attach(trg, 13); trg.ggh = true; } if (ups[9] && trg.s == 80) { trg.s = 13; } if (!trg.duke) { if (trg.s == 18 or trg.s == 61 or ups[9] or trg.s == 80) { trg.goshit = 1; } else { f1 = trg.xp + crand(Math.random() * Math.random() * 240); f2 = trg.yp + crand(); f3 = ingrid(f1, f2); v1 = levz[f3]; if (v1 > 1 && v1 < 1.8) { trg.goshit = f3; } } } } if (trg.goshit > 0 && fra % 2 == 0) { outgrid(trg.goshit); v1 = 30; if (trg.s == 18 or trg.s == 61 or trg.s == 80 or ups[9]) { xenf = player.xp; yenf = player.yp; v1 = 25; } if (trg.s == 61 or trg.d._xscale > 110) { v1 = 15; } xenf = trg.xp - xenf; yenf = (trg.yp - yenf) / 2; enf = enfget(xenf, yenf); if (enf > v1) { v1 = Math.min(0.6, (enf - v1) * 0.04) * 2; } else { if (random(1000) == 0) { if (killshit(trg.goshit)) { trg.s = 14; attach(trg, 14); } } v1 = 0; } enf = v1 / enf; if (trg.s != 18 && trg.s != 61 && trg.s != 80) { trg.xbb *= 0.7; trg.ybb *= 0.7; } if (trg.die) { trg.xbew *= 0.9; trg.ybew *= 0.9; } trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; } if (trg.s == 18) { f0 = 0.3; } else { f0 = 0.17; } if (fra % 4 == 1) { trg.xbb += crand(f0 * 2); trg.ybb += crand(); trg.xbb *= 0.8; trg.ybb *= 0.8; f1 = levz[ingrid(trg.xp, trg.yp)]; f1 = f1 >= 1 && f1 != 3; f2 = levz[ingrid(trg.xp + trg.xbb * 16, trg.yp + trg.ybb * 16)]; f2 = f2 >= 1 && f2 != 3; if ((f1 or f2) && !(f1 && f2)) { trg.xbb *= 0.5; trg.ybb *= 0.5; } else { if (f1 && !f2) { trg.xbb *= 1.3; trg.ybb *= 1.3; } } } trg.ph = fra % 3 == 2; if (trg.ph) { if (!trg.duke) { v1 = 0.06; if (trg.yp < 230) { trg.ybb += v1; } if (trg.yp > 420) { trg.ybb -= v1; } if (trg.xp > 540) { trg.xbb -= v1; } if (trg.xp < 80) { trg.xbb += v1; } } trg.xbew += trg.xbb * 2; trg.ybew += trg.ybb * 2; trg.xbew *= 0.6; trg.ybew *= 0.6; } } } else { smarts(); } } } } } tip(1); if (helps >= 1) { mhelps = Math.max(helps, mhelps); if (sati.pow == 1 or sati.pow == 2) { --mhelps; help -= 1; } help /= mhelps; _root.hud.bar.bar._xscale = 100 * help; _root.hud.bar._visible = true; if (mins) { _root.hud.bar.gotoAndStop(3); _root.hud.bar.bar._xscale *= 0.5600000000000001; } else { _root.hud.bar.gotoAndStop(1); } } else { _root.hud.bar.gotoAndStop(2); _root.hud.bar._visible = false; } } function green(f11, f12) { bossfire(1, !f12, 10); trg2.bomb = true; trg2.d._yscale = 160; trg2.d._xscale = 160; if (trg.s != 43) { trg2.xbew *= 0.55; trg2.ybew *= 0.55; } if (f12) { f1 = Math.random() + 0.6; trg2.xbew *= f1; trg2.ybew *= f1; } trg2.fd -= 0.3; trg2.dm *= 0.7; trg2.dm -= 13; if (trg.s == 64 or trg.s == 43 or trg.s == 82) { trg2.xp -= trg.d._xscale * 0.2; trg2.pois = true; trg2.spl = 30; if (trg.d._currentframe < 7 or trg.s == 82) { trg2.dy -= 27; } } if (trg.s == 82 or trg.s == 78) { trg2.pois = 4; trg2.spl = 0; } else { if (f11 == 2) { colorit(trg2, 0.2, 0.2, 0.2, 0, 0, 0); } else { if (!f11) { colorit(trg2, 0.4, 2, 0.5, 0, 0, 0); } } } if (trg.s == 62) { trg2.dy -= 40; } } function smartsx() { switch (trg.s) { case 74: case 75: case 76: if (trris + 45 + random(100) <= fra && random(100) == 0) { trris = fra; _root.soundy('boss2_bubbles' + random(2) + '.wav', 100); } case 77: f1 = trg.s - 74; f2 = [5, 17, 16, 15]; f3 = [1, 7, 10, 13]; f2 = f2[f1]; f3 = f3[f1]; trg.xbew *= 0.8; trg.ybew *= 0.8; if (fra - trg.fra < 10) { trg.d.gotoAndStop(f2); } if (trg.d._currentframe == f2) { trg.xbew *= 0.45; trg.ybew *= 0.45; } trgnextd(); if (trg.d._currentframe == 1) { trg.d.gotoAndStop(f3); } if (trg.d._currentframe == 13 && trg.d.d._currentframe == 17) { if (trriss + 5 + random(20) <= fra) { trriss = fra; _root.soundy('gooattach0' + random(2) + '.wav', 40 + random(30)); } } if (trg.d._currentframe == 10 && trg.d.d._currentframe == 18) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 60); } if ((trg.d._currentframe == 2 or trg.d._currentframe == 7 or trg.d._currentframe == 8) && trg.d.d._currentframe == 22) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 80); } if (trg.d._currentframe == 3 && trg.d.d._currentframe == 24) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 100); } if (trg.d._currentframe == 5 && trg.d.d._currentframe == 22) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 120); } trg.bh = (trg.d._currentframe != 4 or trg.d.d._currentframe < 11) && (trg.d._currentframe != 5 or trg.d.d._currentframe > 21); switch (trg.d._currentframe) { case 10: if (trg.d.d._currentframe == 1) { if (random(2) == 0) { trg.d.gotoAndStop(11); } else { trg.xpp = undefined; } } else { randrun(); } if (trg.d.d._currentframe > 19) { trg.xbew *= 0.6; trg.ybew *= 0.6; } break; case 11: if (trg.d.d._currentframe == 21) { quadf(trg.xp, trg.yp, 8); _root.soundy('heartout.wav'); } break; case 7: if (trg.d.d._currentframe == 1) { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1500); f1 = 0; if (enf < 250) { if (random(2) == 0) { trg.d.gotoAndStop(8); f1 = 0.4; } else { f1 = 1.5; } } else { f1 = 1.5; xenf = crand(10); yenf = crand(); enf = 10; } f1 /= enf; trg.xpp = -xenf * f1; trg.ypp = -yenf * f1; } case 8: if (trg.d.d._currentframe < 23 && trg.d.d._currentframe > 4) { if (trg.xpp != undefined) { trg.xbew += trg.xpp; trg.ybew += trg.ypp; } } else { trg.xbew *= 0.9; trg.ybew *= 0.9; } if (trg.d.d._currentframe == 23 && trg.d._currentframe == 8) { quadf(trg.xp, trg.yp, 10, random(2) * 2); } break; case 1: if (trg.s == 74) { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1500); f1 = 0; if (enf < 250) { if (random(2) == 0) { trg.d.gotoAndStop(3); f1 = 0.4; } else { trg.d.gotoAndStop(2); f1 = 1.5; } } else { f1 = 3; trg.d.gotoAndStop(4); } f1 /= enf; trg.xpp = -xenf * f1; trg.ypp = -yenf * f1; } break; case 5: case 3: if (trg.d.d._currentframe == 23 && fra > 60) { if (trg.d._currentframe == 5) { quadf(trg.xp, trg.yp + 25, 10, true); } else { bossfire(8, false); } } case 2: if (trg.d.d._currentframe < 23 && trg.d.d._currentframe > 4) { if (trg.xpp != undefined) { trg.xbew += trg.xpp; trg.ybew += trg.ypp; } } else { trg.xbew *= 0.9; trg.ybew *= 0.9; } break; case 6: case 9: if (trg.s == 75 && trg.d.d._currentframe == 19 or trg.s == 74 && trg.d.d._currentframe == 30) { if (trg.s == 74) { f1 = 30; } else { f1 = 20; } f1 = crand(f1); f2 = crand(); f3 = 0.3; trg2 = create(trg.xp + f1, trg.yp + f2, 0, f1 * f3, f2 * f3, 0, trg.s + 1); trg3 = create(trg.xp - f1, trg.yp - f2, 0, -f1 * f3, -f2 * f3, 0, trg.s + 1); trg2.fra = -100; trg3.fra = -100; trg.dones = true; trg.dfr = true; } break; case 13: randrun(); if (trg.d.d._currentframe == 1) { trg.xpp = undefined; } if (trg.d.d._currentframe > 19) { trg.xbew *= 0.6; trg.ybew *= 0.6; } } break; case 73: trg.outway = true; case 72: case 71: if (trg.specoz == 15) { trg.xbew *= 0.9; trg.ybew *= 0.9; } f1 = trg.s - 71; if (fra - trg.fra < 10) { trg.d.gotoAndStop(4 + f1 * 3); } if (trg.d._currentframe == 4 + f1 * 3) { trgnextd(); trg.xbew *= 0.45; trg.ybew *= 0.45; } if (trg.d._currentframe != 4 + f1 * 3) { trg.d.gotoAndStop(2 + f1 * 3); f2 = 0.2 + f1 * 0.18; if (trg.xbew > 0) { xenf = f2; } else { xenf = -f2; } if (trg.ybew > 0) { yenf = f2; } else { yenf = -f2; } trg.xbew *= 0.9; trg.ybew *= 0.9; trg.xbew += xenf; trg.ybew += yenf; } break; case 57: if (trg.d._currentframe == 5) { if (trg.d.d._currentframe == 26) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 80); } } trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); switch (trg.d._currentframe) { case 1: case 2: randrun(); if (random(30) == 0) { trg.d.gotoAndStop(5); } break; case 5: if (trg.d.d._currentframe == 30) { quadf(trg.xp, trg.yp, 10, true); } } sideflip(100); break; case 32: if (fra % 3 == 0) { splater(trg.xp, trg.yp + 8, 1 + random(10), Math.random() * 0.5 + 0.2); } markhere(trg); if (!trg.gogo) { randrunx(0.75); trg.xbew *= 0.85; trg.ybew *= 0.8; if ((fra + trg.e) % 7 == 0) { trg.gogo = chaa(); } } else { if (trg.gh) { trg.gogo = false; trg.ypp = undefined; trg.xpp = trg.ypp; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; trg.xbew += trg.xpp; trg.ybew += trg.ypp; outgrid(trg.til); if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { trg.yp *= 0.9; trg.yp += yenf * 0.1; } else { trg.xp *= 0.9; trg.xp += xenf * 0.1; } } } if (ashut < 5) { f11 = (fra + trg.e) % 12 == 0; f2 = (fra + trg.e) % 12 == 6; } else { if (ashut < 10) { f11 = (fra + trg.e) % 18 == 0; f2 = (fra + trg.e) % 18 == 9; } else { f11 = (fra + trg.e) % 24 == 0; f2 = (fra + trg.e) % 24 == 12; } } if (f11 or enfget(trg.xbew, trg.ybew) > 3 && f2) { trg2 = parc('bloo', trg.xp, trg.yp, 0, 123); if (trg.special) { trg2.specol = trg.specol; trg2.special = true; speco(trg2); } else { colorit(trg2, trg.rrr, trg.rrr, trg.rrr, 0, 0, 0); } } break; case 30: trg.xbew *= 0.8; trg.ybew *= 0.8; f1 = trg.hp / hps[trg.s]; if (f1 >= 1) { trgnextd(); if (trg.d._currentframe == 1) { if (!trg.boss or random(50) == 0) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 230) or random(4) == 0) { trg.d.gotoAndStop(5); } else { trg.d.gotoAndStop(2); } } else { trg.d.d.gotoAndStop(1); } trg.fire = 0; } else { if (trg.d._currentframe == 5) { if (trg.fire++ == 10) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 250 - Math.random() * 20) && !trg.boss) { bossfire(3 + random(2), true, 10); } else { bossfire(3 + random(2), false, 10); } } } } } else { trg.fire = 0; trg.hp += trg.hppp * 1.2; if (trg.boss) { trg.hppp += 0.01; } else { trg.hppp += 0.02; } trg.hppp *= 0.9; trg.d.gotoAndStop(1); trg.d.d.gotoAndStop(Math.max(1, 14 - Math.round(f1 * 13))); } break; case 25: if (trg.alt) { trg.nobomb = true; trg.d.gotoAndStop(9); splater(trg.xp, trg.yp, 1 + random(10), Math.random() * 0.3 + 0.3); if (helpss <= 0 or slug == undefined) { trg.dones = true; } } if (trg.alter == 2) { trg.nobomb = true; } if (ups[9]) { f1 = 0.25; } else { f1 = 0.45; } if (trg.ybew > 0) { f2 = f1; } else { f2 = -f1; } if (trg.xbew > 0) { f1 = f1; } else { f1 = -f1; } trg.xbew *= 0.9; trg.ybew *= 0.9; trg.xbew += f1; trg.ybew += f2; break; case 43: case 20: if (altboss && trg.s == 43) { blackout = 2; } trg.bh = (trg.d._currentframe != 6 or trg.d.d._currentframe > 22 or trg.d.d._currentframe < 8) && (trg.d._currentframe != 2 or trg.d.d._currentframe < 8) && (trg.d._currentframe != 3 or trg.d.d._currentframe > 33) && trg.d._currentframe != 5; whuf = trg.s == 43 && fra % 2 == 0 && trg.specoz == 14; if (trg.weap) { trgnextd(); if (whuf) { trgnextd(); } trg.xbew *= 0.8; trg.ybew *= 0.8; switch (trg.d._currentframe) { case 2: if (trg.d.d._currentframe == 16) { trg.done = true; } break; case 3: if (!trg.bh) { trg2 = trg.trg2; if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 1000) > 0) { trg.xbew -= xenf * 0.01; trg.ybew -= yenf * 0.01; } } if (trg.d.d._currentframe == 32) { for (z in ball) { trg2 = ball[z]; if (trg2.s > 9 && trg != trg2) { if (enfcheck(trg2.xp, trg2.yp, trg.xp, trg.yp, 80)) { hurt(trg2, 120); } } } } else { if (trg.d.d._currentframe == 72) { trg.d.gotoAndStop(2); } } } } else { trg.ggh = !trg.bh; trg.flyby = !trg.bh; if ((fra + trg.e) % 5 == 0 && fra > 10) { splater(trg.xp, trg.yp, 1 + random(10), (Math.random() + 1) * trg._xscale / 100); } trg.xbew *= 0.9; trg.ybew *= 0.9; switch (trg.mode) { case 10: trg.d.gotoAndStop(7); if (whuf) { trgnextd(); } trgnextd(); if (trg.d._currentframe == 1) { trg.mode = undefined; } break; default: if (trg.fra + 10 > fra) { trg.mode = 10; trg.d.gotoAndStop(7); } else { trg.modedone = false; trg.xpp = undefined; trg.d.gotoAndStop(1); if (trg.s == 43 && !altboss) { yenf = trg.yp - player.yp; if (Math.abs(yenf) < 20 + Math.random() * 50) { trg.mode = 1; } else { if (random(2) == 0) { trg.mode = 2; } else { trg.mode = 0; } } } else { trg.mode = random(3); if (trg.specoz == 2 && trg.mode == 2) { trg.mode = 1; } } if (trg.mode == 2) { _root.soundy('Boss_Lite_Roar.mp', 100); } if (trg.mode == 0) { _root.soundy('Boss_Lite_Roar.mp', 50); } if (trg.mode == 1) { sideflip(trg.xp - player.xp); trg.xpp = trg.xp - player.xp; } } goto 188807; case 1: //Invalid switch } trgnextd(); if (trg.d._currentframe == 1 && trg.modedone) { trg.mode = undefined; } else { if (altboss && trg.s == 43) { trg.d.gotoAndStop(8); sideflip(trg.xp - player.xp); } else { trg.d.gotoAndStop(4); } if (trg.s == 43) { if (trg.d.d._currentframe > 27 && trg.d.d._currentframe < 60) { if (altboss) { if (trg.d.d._currentframe == 29) { green(true); } trg.modedone = true; } else { trg.ypp = 0; trg.xpp = -trg.d._xscale; lasershow(trg); trg.modedone = true; } } } else { if (trg.d.d._currentframe > 23 && !trg.modedone) { _root.soundy('Boss_Spit_Blob_Barf.mp', 100); bossfire(13, true); trg.modedone = true; } } } goto 188807; case 55: trg.d.gotoAndStop(6); trgnextd(); if (whuf) { trgnextd(); } if (trg.xpp == undefined) { f1 = player.xp; f2 = player.yp; f1 = ingrid(f1, f2); if (levz[f1] < 1) { outgrid(f1); trg.xpp = xenf; trg.ypp = yenf; } } if (trg.d.d._currentframe == 23) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 50); if (trg.s == 43) { f1 = trg.xp; f2 = trg.yp; for (a in ball) { trg2 = ball[a]; if (trg2.flyai) { if (enfcheck(f1, f2, trg2.xp, trg2.yp, 60)) { hurt(trg2, 30); } } } } } if (trg.xpp != undefined && trg.d._currentframe == 1) { if (random(2) == 0) { trg.xpp = undefined; trg.mode = trg.xpp; } else { _root.soundy('Boss_Lite_Roar.mp', 40); trg.xpp = undefined; } } else { if (trg.xpp != undefined && trg.d.d._currentframe < 24) { xenf = trg.xp - trg.xpp; yenf = trg.yp - trg.ypp; enf = enfget(xenf, yenf); enf = 1.2 / enf; if (trg.specoz == 14) { enf *= 1.5; } trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; trg.xbew *= 0.9; trg.ybew *= 0.9; sideflip(xenf); } else { trg.xbew *= 0.8; trg.ybew *= 0.8; } } goto 188807; case 31: trg.d.gotoAndStop(2); trgnextd(); if (whuf) { trgnextd(); } if (trg.d._currentframe == 1) { trg.d.gotoAndStop(3); trg.mode = 3; trg.modedone = false; trg.xpp = undefined; } else {} goto 188807; case 23: if (whuf) { trgnextd(); } trgnextd(); if (trg.d._currentframe == 1) { bossrep = !bossrep; if (!bossrep or trg.s != 43) { trg.mode = undefined; trg.xpp = undefined; } else { trg.mode = 2; trg.xpp = undefined; } } if (trg.xpp == undefined) { f1 = player.xp; f2 = player.yp; f1 = ingrid(f1, f2); if (levz[f1] < 1) { outgrid(f1); trg.xpp = xenf; trg.ypp = yenf; } } if (trg.d.d._currentframe == 33 or trg.d.d._currentframe == 34 && whuf) { f3 = 5; if (trg.s == 43) { f1 = trg.xp; f2 = trg.yp; for (a in ball) { trg2 = ball[a]; if (trg2.flyai) { if (enfcheck(f1, f2, trg2.xp, trg2.yp, 70)) { hurt(trg2, 30); } } } if (bossrep) { if (altboss) { if (ashut < 3) { trg2 = []; trg2[0] = create(f1, f2, 0, f3, 0, 0, 15); trg2[0].hp -= 20; if (ashut < 2) { trg2[1] = create(f1, f2, 0, -f3, 0, 0, 15); trg2[1].hp -= 20; _root.soundy('summonsound.wav', 150); } else { _root.soundy('summonsound.wav', 100); } } } else { trg2 = []; trg2[0] = create(f1, f2, 0, f3, 0, 0, 61); trg2[2] = create(f1, f2, 0, 0, f3, 0, 61); trg2[0].die = true; trg2[2].die = true; if (trg.specoz != 14) { trg2[1] = create(f1, f2, 0, -f3, 0, 0, 61); trg2[3] = create(f1, f2, 0, 0, -f3, 0, 61); trg2[1].die = true; trg2[3].die = true; _root.soundy('summonsound.wav', 150); } else { _root.soundy('summonsound.wav', 100); } } } else { if (altboss) { trg2 = parc('bloo', trg.xp, trg.yp); trg2._xscale *= 3; trg2._yscale = trg2._xscale; trg2.perm = true; colorit(trg2, 0, 0, 0, 0, 0, 0); } else { quadf(trg.xp, trg.yp, 10, true); } } } else { bossfire(18); } _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 100); } if (trg.xpp != undefined && trg.d.d._currentframe < 32) { xenf = trg.xp - trg.xpp; yenf = trg.yp - trg.ypp; enf = enfget(xenf, yenf); enf = (0.3 + enf * 0.006) / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; } } label 188807: break; label 188807: case 21: case 34: case 54: case 29: trg.ggh = fra % 2 == 0; trg.gonuts = trg.s == 23 or trg.s == 55; markhere(trg); if (trg.fire-- > 0) { trg.xbew *= 0.85; trg.ybew *= 0.85; trg.d.d.nextFrame(); if (trg.d.d._currentframe == trg.d.d._totalframes) { trg.fire = 0; } if (trg.d.d._currentframe == 8) { f1 = 8; if (Math.abs(trg.xpp) > Math.abs(trg.ypp)) { trg.ypp = 0; if (trg.xpp > 0) { trg.xpp = f1; } else { trg.xpp = -f1; } } else { trg.xpp = 0; if (trg.ypp > 0) { trg.ypp = f1; } else { trg.ypp = -f1; } } trg2 = create(trg.xp, trg.yp, 0, trg.xpp, trg.ypp, 0, 9, trg.s); trg2.dy = -14; trg2.fd = -0.08; trg.xpp = undefined; } } else { if (!trg.gogo) { if (trg.s == 21) { randrunx(0.75); } else { if (trg.s == 55) { randrunx(0.85); } else { if (trg.s == 31) { randrunx(0.72); } else { randrunx(0.6); } } } trg.xbew *= 0.85; trg.ybew *= 0.7; if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { f1 = 1; sideflip(-trg.xbew); } else { if (trg.ybew > 0) { f1 = 2; } else { f1 = 5; } } trg.d.gotoAndStop(f1); if (trg.gonuts && (fra + trg.e) % 4 == 0) { trg.gogo = chaa(trg.s == 55); if (trg.gogo) { if (trg.s == 55) { if (trris + 20 <= fra) { trris = fra; _root.soundy('leech' + random(3) + '.wav'); } trg.xpp *= 1.55; trg.ypp *= 1.55; } else { if (trris2 + 20 <= fra) { trris2 = fra; _root.soundy('maggotcharge' + random(2) + '.wav'); } trg.xpp *= 1.3; trg.ypp *= 1.3; } } } else { if (random(35) == 0 && trg.s == 31) { trg.d.gotoAndStop(trg.d._currentframe + 5); trg.xpp = trg.xbew; trg.ypp = trg.ybew; trg.fire = 50; } } } else { if (trg.gh) { trg.gogo = false; trg.ypp = undefined; trg.xpp = trg.ypp; } else { if (trg.s == 23) { trg.xbew *= 0.8; trg.ybew *= 0.8; } else { trg.xbew *= 0.9; trg.ybew *= 0.9; } trg.xbew += trg.xpp; trg.ybew += trg.ypp; outgrid(trg.til); if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { f1 = 7; sideflip(-trg.xbew); trg.yp *= 0.9; trg.yp += yenf * 0.1; } else { if (trg.ybew > 0) { f1 = 6; } else { f1 = 8; } trg.xp *= 0.9; trg.xp += xenf * 0.1; } if (trg.s == 55) { if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { f1 = 1; } else { if (trg.ybew > 0) { f1 = 2; } else { f1 = 5; } } } trg.d.gotoAndStop(f1); } } } tip(0); break; case 28: if (random(7) == 0) { splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.12); } case 10: case 1: if (trg.flyby) { if (trg.d._currentframe < 5) { trgnextd(); trg.d.gotoAndStop(5); trg.xpp = player.xp; trg.ypp = player.yp; trg.f1 = 0; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; if (trg.d._currentframe == 5 && trg.d.d._currentframe > 6 or trg.d._currentframe == 6 && trg.d.d._currentframe < 18) { trg.f1 += 0.02; trg.xp = trg.xpp * trg.f1 + trg.xp * (1 - trg.f1); trg.yp = trg.ypp * trg.f1 + trg.yp * (1 - trg.f1); trg.bh = false; } else { trg.bh = true; } if (trg.d._currentframe == 5) { trgnextd(); if (trg.d._currentframe == 1) { trg.d.gotoAndStop(6); } } else { trgnextd(); if (trg.d.d._currentframe == 19) { _root.soundy('Meat_impacts_' + random(3) + '.wav', 200); quadf(trg.xp, trg.yp, 9); } if (trg.d._currentframe == 1) { trg.flyby = false; trg.xpp = undefined; } } } } else { randruny(); trg.xbew *= 0.7; trg.ybew *= 0.7; if (trg.s == 34) { if (trg.xpp == undefined && random(7) == 0) { trg.flyby = true; } } } break; case 0: if (altboss) { f1 = trg.hp / hps[trg.s]; trg._yscale = 70 + f1 * 35; trg._xscale = trg._yscale; trg.xbew *= 1.1 - f1 * 0.14; } ++magget; trg.mag = magget; mags[magget] = trg; if (fra - 20 < trg.fra) { trg.d.gotoAndStop(magget + 9); } if (trg.d._currentframe >= 10) { trgnextd(); trg.xbew = 0; trg.ybew = 0; if (trg.mag == 3 && !trg.wtfu) { trg.wtfu = true; trg.xp *= 0.65; trg.yp *= 0.65; trg.xp += mags[2].xp * 0.35; trg.yp += mags[2].yp * 0.35; } } if (trg.d._currentframe < 10) { trg.d.gotoAndStop(magget); markhere(trg); if (magget != 1) { trg2 = mags[magget - 1]; if (trg2.beenx.length > 0) { f10 = true; while (f10) { if (trg.specoz == 9) { f0 = Math.min(15 - magget * 2, trg2.beenx.length - 1); } else { f0 = Math.min(17 - magget * 2, trg2.beenx.length - 1); } enf = enfcheck(trg.xp, trg.yp, trg2.beenx[f0], trg2.beeny[f0], 1000); f2 = 10; if (enf < f2) { trg.xp = trg2.beenx[f0]; trg.yp = trg2.beeny[f0]; f10 = false; } else { enf = f2 / enf; xenf *= enf; yenf *= enf; trg.xp -= xenf; trg.yp -= yenf; trg2.beenx.push(trg2.beenx[f0] + xenf); trg2.beeny.push(trg2.beeny[f0] + yenf); } } } } else { trg.d.gotoAndStop(1); killshit(trg.nextl); switch (trg.mode) { randrunx(1.5); if (trg.charf + 50 <= fra) { if (chaa()) { trg.charf = fra; trg.mode = 2; _root.soundy('Monster_Roar_0.mp', 100); } } if (trg.mode != 2 && random(100) == 0 && ashut < 5 && (trg.specoz != 8 or ashut < 4 or random(4) == 0)) { _root.soundy('Monster_Roar_1.mp', 100); trg.mode = 3; magss = fra + 10; } f2 = 0; case 4: f2 = 12; ++trg.bomb; if (trg.bomb == 3) { } if (trg.bomb > 35) { trg.bomb = undefined; trg.mode = 0; trg.d.d.gotoAndStop(1); hurt(trg, 20); bombfail(trg.xp, trg.yp, 5); trg.xpp = undefined; f2 = 0; _root.soundy('Monster_Roar_2.mp', 50); } break; case 2: if (trg.gh) { trg.mode = 1; trg.ypp = undefined; trg.xpp = trg.ypp; } else { trg.xbew *= 0.9; trg.ybew *= 0.9; trg.xbew += trg.xpp * 3.7; trg.ybew += trg.ypp * 3.7; } f2 = 6; break; case 3: f1 = fra - magss; if (f1 > 0) { f2 = 9; } else { f2 = 3; } if (f1 > 20) { trg.mode = 1; } } if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { sideflip(-trg.xbew); f1 = 2; } else { if (trg.ybew > 0) { f1 = 1; } else { f1 = 3; } } if (trg.d.d._currentframe <= 12) { trg.d.d.gotoAndStop(f1 + f2); } } enf = enfcheck(trg.xp, trg.yp, trg.beenx[0], trg.beeny[0], 1000); while (enf > 2) { enf = 2 / enf; trg.beenx.unshift(trg.beenx[0] + xenf * enf); trg.beeny.unshift(trg.beeny[0] + yenf * enf); enf = enfcheck(trg.xp, trg.yp, trg.beenx[0], trg.beeny[0], 1000); } if (trg.beenx.length > 30) { f2 = []; f3 = []; a = 0; while (a < 20) { f2[a] = trg.beenx[a]; f3[a] = trg.beeny[a]; ++a; } trg.beenx = new Array(20); trg.beeny = new Array(20); a = 0; while (a < 20) { trg.beenx[a] = f2[a]; trg.beeny[a] = f3[a]; ++a; } } if (trg.specoz == 8) { trg.xbew *= 0.75; trg.ybew *= 0.75; } else { if (trg.specoz == 9) { trg.xbew *= 0.86; trg.ybew *= 0.86; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; } } if (fra > 20 && magss == fra && magget == 3) { f1 = 5; f2 = ingrid(trg.beenx[f1], trg.beeny[f1]); outgrid(f2); if (altboss) { f1 = 61; } else { if (trg.specoz == 8) { f1 = 30; } else { if (trg.specoz == 9) { f1 = 31; } else { f1 = 23; } } } if (f1 != 30) { create(xenf, yenf, 0, 0, 0, 0, f1); _root.soundy('summonsound.wav', 100); } else { _root.soundy('summonsound.wav', 70); } trg2 = create(xenf, yenf, 0, 0, 0, 0, f1); if (f1 == 30) { trg2.spl = 30; trg2.specoz = 10; trg2.outway = true; speco(trg2); } xenf -= trg.xp; yenf -= trg.yp; trg2.xbew += xenf * 0.1; trg2.ybew += yenf * 0.1; trg2.d.d.gotoAndStop(1); f1 = 0; if (Math.abs(xenf) > Math.abs(yenf)) { sideflip(xenf); f1 = 2; } else { if (yenf > 0) { f1 = 3; } else { f1 = 4; } } trg.d.d.gotoAndStop(f1); } } //Invalid switch } } function ssmarts() { switch (trg.s) { case 45: if (trg.d._currentframe == 5) { if (trg.d.d._currentframe == 5) { _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 150); } } trg.bh = trg.d._currentframe == 20 && trg.d.d._currentframe > 27 && trg.d.d._currentframe < 62 or trg.d._currentframe == 19; if (trg.d._currentframe == 20 && trg.d.d._currentframe == 26 or trg.whu == 3) { trg.whu = 0; trg.dmg = 300; gosplash(); _root.soundy('Hellboss_Groundpound_' + random(2) + '.wav'); } if (trg.weap) { if (trg.d._currentframe == 20) { if (trg.d.d._currentframe < 24) { trg2 = trg.trg2; if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 1000) > 0) { trg.xbew -= xenf * 0.03; trg.ybew -= yenf * 0.03; } } if (trg.d.d._currentframe == 74) { trg.done = true; } } trg.xbew *= 0.8; trg.ybew *= 0.8; } else { mom[momet] = trg; ++momet; trg.mom = momet; if (trg.xpp > 0) { trg.xp = trg.xpp; trg.yp = trg.ypp; trg.xbew *= 0.8; trg.ybew *= 0.8; } if (fra < 20) { if (trg.mom == mome) { trg.d.gotoAndStop(2); } else { trg.d.gotoAndStop(1); } if (mome == undefined && trg.mom == 5) { momlo(); } oldm = 3; } if (trg.d._currentframe != 19) { trgnextd(); } if (trg.mom == 3) { if (moml - fra < 0) { f1 = random(3); if (fra < 50) { f1 = 0; } mome = -1; if (oldm != f1) { switch (f1) { case 0: _root.soundy('Mom_Vox_Grunt_' + random(4) + '.mp'); moml = fra + 80; for (i in mom) { if (i != 2) { trg2 = mom[i]; if (enfcheckx(trg2.xp, trg2.yp, player.xp, player.yp, 100) or enfcheck(trg2.xp, trg2.yp, player.xp, player.yp, 75)) { mome = i; } } } if (mome > -1 && fra > 50) { mom[mome].d.gotoAndStop(5); } else { trg.d.gotoAndStop(20); trg._visible = true; if (fra < 50) { trg.xpp = trg.xp; trg.ypp = trg.yp; } else { trg.xpp = player.xp; trg.ypp = player.yp; } } break; case 1: if (ashut < 8) { moml = fra + 45; z = 0; for (;;) { if (!(z < random(3) + 2 && ashut < 8 + random(2))) break; i = random(5); if (i != 2) { ++z; ++ashut; mom[i].d.gotoAndStop(random(2) + 3); } undefined; } } break; case 2: momlo(); } oldm = f1; } } if (trg.d._currentframe < 20) { trg._visible = false; } } else { if (trg.d._currentframe == 3 or trg.d._currentframe == 4) { if (trg.d.d._currentframe == 3) { f1 = [10, 11, 12, 14, 15, 16, 18, 21, 23, 24, 25.5, 26]; xenf = trg.xp - 320; yenf = trg.yp - 280; enf = enfget(xenf, yenf); enf = 18 / enf; xenf *= enf; yenf *= enf; f2 = random(f1.length); create(trg.xp - xenf, trg.yp - yenf, 0, -xenf, -yenf, 0, f1[f2]); _root.soundy('summonsound.wav', f2 * 5 + 80); } } if (trg.d._currentframe == 5) { trg2 = mom[2]; if (trg.d.d._currentframe > 45) { trg2.d.gotoAndStop(18); } else { if (trg.d.d._currentframe > 3) { trg2.whu = trg.d.d._currentframe; trg2.d.gotoAndStop(19); xenf = trg.xp - 320; yenf = trg.yp - 280; enf = enfget(xenf, yenf); enf = 60 / enf; trg2.xpp = trg.xp - xenf * enf; trg2.xp = trg2.xpp; trg2.ypp = trg.yp - yenf * enf; trg2.yp = trg2.ypp; } } } trg.bh = trg.d._currentframe != 1; if (trg.xpp <= 0) { for (a in door) { trg2 = door[a]; if (enfcheck(trg2._x, trg2._y, trg.xp, trg.yp, 50)) { trg.xpp = trg2._x; trg.ypp = trg2._y; trg.d._rotation = trg2._rotation + 90; trg2._visible = false; } } } } } break; case 33: trg.d.nextFrame(); dang2 = trg; break; case 41: sideflip(trg.xbew, trg.d.d); if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { if (trg.xbew > 0) { f1 = 2; } else { f1 = 4; } trg.d.d.gotoAndStop(2); } else { if (trg.ybew > 0) { f1 = 1; } else { f1 = 3; } trg.d.d.gotoAndStop(1); } trg.d.hx.h.gotoAndStop(f1); case 44: if (trg.s == 44 && ashut == 0 && fra > 80) { trg.dones = true; } markhere(trg); if (!trg.gogo) { if (trg.s == 44) { randrunx(1); } else { randrunx(0.75 + trg.alter * 0.25); } trg.xbew *= 0.8; trg.ybew *= 0.8; if ((fra + trg.e) % 3 == 0) { trg.gogo = chaa(); if (trg.alter == 2 && trg.gogo) { trg.xpp *= 1.65; trg.ypp *= 1.65; } } } if (trg.gogo) { if (trg.gh) { trg.gogo = false; trg.ypp = undefined; trg.xpp = trg.ypp; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; trg.xbew += trg.xpp; trg.ybew += trg.ypp; outgrid(trg.til); if (trg.s == 44) { f1 = 5; if (Math.abs(trg.xpp) > Math.abs(trg.ypp)) { trg.yp *= 0.5; trg.yp += yenf * 0.5; if (trg.s == 44) { trg.ybew *= 0.5; } } else { trg.xp *= 0.5; trg.xp += xenf * 0.5; if (trg.s == 44) { trg.xbew *= 0.5; } } } else { if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { trg.yp *= 0.9; trg.yp += yenf * 0.1; } else { trg.xp *= 0.9; trg.xp += xenf * 0.1; } } } } break; case 40: borderliner(3); trg.d.d._rotation += enfget(trg.xbew, trg.ybew) * 4; trg.d.sh.d._rotation = trg.d.d._rotation; if ((fra + trg.e) % 5 == 0) { splater(trg.xp, trg.yp + 5, 1 + random(10), Math.random() * 0.7); } break; case 47: sideflip(trg.xbew); walkframe(); if (Math.abs(trg.xbew) < Math.abs(trg.ybew)) { trg.d.bo.gotoAndStop(2); } else { trg.d.bo.gotoAndStop(3); } trg.xbew *= 0.95; trg.ybew *= 0.95; if (enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000)) { if (linecheck(trg.xp, trg.yp, player.xp, player.yp)) { enf = 0.65 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; trg.gridimer = -3; trg.tiletimer = -3; } else { pathfind(trg, playx, playy, 1.2); } } break; case 46: trg.xbew *= 0.75; trg.ybew *= 0.75; walkframe(); trgnextd(); if (trg.d._currentframe < 3) { sideflip(trg.xbew); randrunx(1); if (random(50) == 0) { if (random(2) == 0 && ashut < 4) { trg.d.gotoAndStop(6); } else { trg.d.gotoAndStop(5); } } } else { sideflip(player.xp - trg.xp); if (trg.d.d._currentframe == 5) { if (trg.d._currentframe == 6) { trg2 = create(trg.xp + trg.d._xscale * 0.3, trg.yp, 0, 0, 0, 0, 23); _root.soundy('summonsound.wav', 80); _root.soundy('Monster_Grunt_2_' + abr() + '.mp', 100); trg2.apf = true; trg2.gogo = true; trg2.xpp = trg.d._xscale / 100; trg2.ypp = 0; trg.outway = true; } else { green(); _root.soundy('heartout.wav', 70); } } } break; case 53: trg.alt = Math.abs(player.xp - 320) > Math.abs(player.yp - 280) * 0.65; trg.xbew *= 0.75; trg.ybew *= 0.75; if (trg.alter == 2) { trg.flyby = true; } if (enfget(trg.xbew, trg.ybew) > 2) { if (Math.abs(trg.xbew) < Math.abs(trg.ybew)) { if (trg.alter == 2) { trg.d.hx.bo.gotoAndStop(1); } else { trg.d.hx.bo.gotoAndStop(2); } } else { if (trg.alter == 2) { trg.d.hx.bo.gotoAndStop(2); } else { trg.d.hx.bo.gotoAndStop(3); } } } else { trg.d.hx.bo.gotoAndStop(1); } f1 = plo; f2 = f1 == 3 or f1 == 1; if (!trg.alt && f2 or trg.alt && !f2) { f1 += 2; if (f1 > 4) { f1 -= 4; } } --trg.fire; if (player.fire > lpf) { if (trg.fire <= 0) { f3 = 10; yenf = 0; xenf = 0; switch (f1) { case 1: xenf = 0; yenf = f3; break; case 3: xenf = 0; yenf = -f3; break; case 2: xenf = f3; yenf = 0; break; case 4: xenf = -f3; yenf = 0; } if (trg.alter == 2) { trg.fire = 30; shots(trg.xp, trg.yp, xenf, yenf, true); } else { shots(trg.xp, trg.yp, xenf, yenf); } } } lpf = player.fire; if (plox > 8) { f1 += 4; } trg.d.hx.h.gotoAndStop(f1); if (trg.d.hx.bo != undefined) { sideflip(trg.xbew, trg.d.hx.bo); } trgnextd(); trg.xpp = trg.xp; trg.ypp = trg.yp; trg.xp = 640 - player.xp; trg.yp = 580 - player.yp; trg.xbew = -player.xbew; trg.ybew = -player.ybew; break; case 51: f1 = 0.25 + trg.tier * 0.1; if (tier == 3) { f1 = 0.35; } if (trg.ybew > 0) { f2 = f1; } else { f2 = -f1; } if (trg.xbew > 0) { f1 = f1; } else { f1 = -f1; } trg.xbew *= 0.9; trg.ybew *= 0.9; trg.xbew += f1; trg.ybew += f2; sideflip(trg.xbew); break; case 52: trg.xbew *= 0.75; trg.ybew *= 0.75; if (enfget(trg.xbew, trg.ybew) < 1) { trg.d.bo.gotoAndStop(1); } else { if (Math.abs(trg.xbew) < Math.abs(trg.ybew)) { trg.d.bo.gotoAndStop(2); } else { trg.d.bo.gotoAndStop(3); } } sideflip(-trg.xbew); trgnextd(); if (trg.d._currentframe < 3) { randrunx(1); if (random(50) == 0) { if (random(2) == 0) { trg.d.gotoAndStop(6); } else { trg.d.gotoAndStop(5); } } } else { if (trg.d._currentframe == 5) { if (trg.d.d._currentframe >= 20 && trg.d.d._currentframe <= 37) { lasershowx((0.25 + 0.5 * (fra % 4)) * Math.PI); } } if (trg.d.d._currentframe == 5) { if (trg.d._currentframe == 6) { anarch = 20; } } } break; case 50: trg.xbew *= 0.75; trg.ybew *= 0.75; walkframe(); if (Math.abs(trg.xbew) < Math.abs(trg.ybew)) { trg.d.bo.gotoAndStop(1); } else { trg.d.bo.gotoAndStop(2); } sideflip(-trg.xbew); trgnextd(); if (trg.d._currentframe < 3) { randrunx(1); if (random(50) == 0) { if (random(3) == 0 && ashut < 3) { trg.d.gotoAndStop(6); } else { trg.d.gotoAndStop(5); } } } else { if (trg.d._currentframe == 5) { sideflip(100); f1 = 10; xenf = trg.xp - player.xp; yenf = trg.yp - player.yp; if (Math.abs(xenf) > Math.abs(yenf)) { yenf = 0; if (xenf > 0) { xenf = f1; f3 = 2; } else { xenf = -f1; f3 = 4; } } else { xenf = 0; if (yenf > 0) { f3 = 3; yenf = f1; } else { f3 = 1; yenf = -f1; } } if (trg.d.d._currentframe < 6) { trg.d.d.h.gotoAndStop(f3); } else { trg.d.d.h.gotoAndStop(f3 + 4); } } if (trg.d.d._currentframe == 5) { if (trg.d._currentframe == 6) { if (ashut == 1) { spaw(trg.xp - 50, trg.yp, 0, 29); spaw(trg.xp + 50, trg.yp, 0, 29); } else { spaw(trg.xp, trg.yp - 50, 0, 29); spaw(trg.xp, trg.yp + 50, 0, 29); } _root.soundy('summonsound.wav', 120); } else { shots(trg.xp, trg.yp, -xenf, -yenf, true); } } } break; case 48: trg.xbew *= 0.85; trg.ybew *= 0.85; walkframe(); if (Math.abs(trg.xbew) < Math.abs(trg.ybew)) { trg.d.bo.gotoAndStop(1); } else { trg.d.bo.gotoAndStop(2); } sideflip(trg.xbew); trgnextd(); if (trg.d._currentframe < 3) { if (trg.gogo) { if (trg.gh) { trg.gogo = false; trg.ypp = undefined; trg.xpp = trg.ypp; } else { trg.xbew *= 0.8; trg.ybew *= 0.8; trg.xbew += trg.xpp * 1.5; trg.ybew += trg.ypp * 1.5; outgrid(trg.til); if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { trg.yp *= 0.9; trg.yp += yenf * 0.1; } else { trg.xp *= 0.9; trg.xp += xenf * 0.1; } } } else { if (trg.trg2.s > 0) { trg2 = trg.trg2; if (trg2.dones) { trg.trg2 = undefined; trg.xpp = undefined; } siz = 130; if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, siz)) { enf = (Math.min(1, siz - enf) / enf) * 0; trg.xbew += xenf * enf; trg.ybew += yenf * enf; randrunx(1); trg2 = trg.trg2; f1 = (trg.xp - trg.xpp) * (trg.xp - trg2.xp); f2 = (trg.yp - trg.ypp) * (trg.yp - trg2.yp); if (f1 > 50 or f2 > 50) { trg.xbew *= 0.5; trg.ybew *= 0.5; trg.xpp = undefined; } } } else { randrunx(1); if (random(Math.max(60, enfcheck(trg.xp, trg.yp, player.xp, player.yp, 10000))) == 0) { trg.d.gotoAndStop(5); trg.xpp = 0; trg.ypp = 0; } else { trg.til = ingrid(trg.xp, trg.yp); if (chaa()) { if (random(2) == 0) { trg.d.gotoAndStop(5); } else { trg.gogo = true; } } } } } } else { if (trg.d._currentframe == 5 && trg.d.d._currentframe == 5) { outgrid(ingrid(trg.xp, trg.yp)); trg.trg2 = create(xenf, yenf, 0, trg.xpp * 10, trg.ypp * 10, 0, 4); if (trg.xpp != 0 or trg.ypp != 0) { trg.trg2.ph = true; } else { trg.trg2.bh = false; } trg.xpp = undefined; trg.trg2.man = true; } } break; case 39: if ((fra + trg.e) % 5 == 0) { splater(trg.xp, trg.yp + 5, 1 + random(10), Math.random() * 0.7); } case 49: markhere(trg); if (trg.d._currentframe < 3) { randrunx(0.7); walkframe(); sideflip(trg.xbew); if ((fra + trg.e) % 3 == 0) { f1 = true; if (trg.s == 49) { f1 = random(10) == 0; if (random(7) == 0) { f1 = true; if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 70 + random(130))) { f1 = false; trg.d.gotoAndStop(8); } } } if (f1) { if (enfcheckx(trg.xp, trg.yp, player.xp, player.yp, 400)) { if (Math.abs(xenf) > Math.abs(yenf)) { f1 = 5; sideflip(-xenf); } else { if (yenf > 0) { f1 = 7; } else { f1 = 6; } } trg.d.gotoAndStop(f1); trg.xpp = -xenf; trg.ypp = -yenf; } } } } else { trgnextd(); if (trg.d._currentframe == 8) { if (trg.d.d._currentframe == 14) { quadf(trg.xp, trg.yp, 8, true); } } else { if (trg.d.d._currentframe > 29 && trg.d.d._currentframe < 81) { lasershow(trg); } } if (trg.d._currentframe < 3) { trg.xpp = undefined; } } trg.xbew *= 0.8; trg.ybew *= 0.8; break; case 36: gurdy = true; for (a in ball) { trg2 = ball[a]; if (trg2.flyai) { siz = 80; if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, siz)) { enf = -(siz - enf) * 0.03 / enf; trg2.xbew += xenf * enf; trg2.ybew += yenf * enf; } } } trgnextd(); if (trg.d._currentframe == 1) { trg.idle = !trg.idle; if (trg.idle) { if (plah) { trg.d.gotoAndStop(5); plah = false; } else { trg.d.gotoAndStop(6 + random(2)); } } else { if (random(3) != 0 && player.yp > 200 && ashut < 8 && trg.specoz != 11) { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 10000); if (Math.abs(xenf) > Math.abs(yenf) or yenf > 0) { if (xenf > 0) { f1 = 10; } else { f1 = 11; } } else { f1 = 9; } trg.d.gotoAndStop(f1); } else { if (ashut < 14) { f1 = [8, 12, 13]; trg.d.gotoAndStop(f1[random(f1.length)]); if (ashut > 15) { trg.d.gotoAndStop(13); } } else { trg.idle = true; } } } } if (trg.d.d.now) { switch (trg.d._currentframe) { case 8: create(trg.xp + 60, trg.yp - 25, 0, 10, 0, 0, 14); _root.soundy('summonsound.wav', 70); _root.soundy('Boss_Bug_Hiss.mp', 100); break; case 12: trg2 = create(trg.xp + 40, trg.yp - 65, 0, 0, -20, 0, 18); trg3 = create(trg.xp - 40, trg.yp - 65, 0, 0, -20, 0, 18); _root.soundy('summonsound.wav', 100); _root.soundy('Boss_Lite_HIss.mp', 100); trg2.die = true; trg3.die = true; trg2.hp -= 2; trg3.hp -= 2; break; case 13: trg2 = create(trg.xp + 42, trg.yp + 45, 0, 0, 0, 0, 30); trg3 = create(trg.xp - 42, trg.yp + 45, 0, 0, 0, 0, 30); _root.soundy('summonsound.wav', 120); trg2.boss = true; trg3.boss = true; break; case 9: shots(trg.xp + rand() * 30, trg.yp - 20, rand() * 3, 10, true); _root.soundy('Boss_Lite_Gurgle.mp', 100); break; case 10: shots(trg.xp + 13, trg.yp - 18 - rand() * 30, -10, 1 + rand() * 3, true); _root.soundy('Boss_Gurgle_Roar.mp', 100); break; case 11: shots(trg.xp - 13, trg.yp - 18 - rand() * 30, 10, 1 + rand() * 3, true); _root.soundy('Boss_Gurgle_Roar.mp', 100); } trg.d.d.now = false; } trg.xp = trg.xpp; trg.yp = trg.ypp; trg.xbew *= 0.8; trg.ybew *= 0.8; } } function telpx(f3) { if (f3 == 2) { f2 = 120 + Math.random() * 80; } else { f2 = 250 * Math.random() + 60; } f1 = trg.xp + crand(f2); f2 = trg.yp + crand(); if (f3 == 2) { f3 = enfcheck(f1, f2, player.xp, player.yp, 700); if (f3) { f3 = f3 > 180; } } else { if (!f3) { f3 = !enfcheckx(f1, f2, player.xp, player.yp, 400) && !enfcheck(f1, f2, player.xp, player.yp, 200); } else { f3 = enfcheck(f1, f2, player.xp, player.yp, 300); f3 = f3 > 130 && f3 < 1000; } } if (f3) { f3 = ingrid(f1, f2); if (levz[f3] < 0.5) { outgrid(f3); trg.xpp = xenf; trg.ypp = yenf; } } } function smartd() { switch (trg.s) { case 79: trg.xbew *= 0.8; trg.ybew *= 0.8; if (trg.specoz) { trg.xbew *= 0.92; trg.ybew *= 0.92; if (trg.alt) { } } if (trg.alt) { trg.ggh = true; trg2 = trg.trg2; if (trg2.dones or altboss && trg2.hp < 60 or trg.onown) { trg.xp = Math.min(580, Math.max(60, trg.xp)); trg.yp = Math.min(410, Math.max(170, trg.yp)); if (!trg.onown) { trg.onown = true; _root.soundy('Cute_Grunt_' + random(3) + '.mp', 100); } i = 0; while (i < 19) { trg3 = trg2['n' + i]; trg3._visible = false; ++i; } if (trg.d._currentframe <= 9) { trg.d.gotoAndStop(9); trg.ma = 8; } trg.xbew /= 0.85; trg.ybew /= 0.85; enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.5 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; sideflip(-trg.xbew); } else { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.25 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; trgnextd(); if (trg.d._currentframe <= 6) { trg.d.gotoAndStop(7); } firemode(300, 5); } } else { if (trg.trg2 == undefined && fra < 80) { trg.fire = 0; trg.trg2 = create(trg.xp, trg.yp - 8, 0, 0, 0, 0, trg.s); trg2 = trg.trg2; trg2.fra = -100; trg2.alt = true; trg2.outway = true; trg2.trg2 = trg; if (!altboss && trg.specoz != 3) { i = 0; while (i < 17) { trg3 = trg.attachMovie('necksegment2', 'n' + i, i); ++i; } } } if (trg.fire == 0) { trg.sp = 1.4; if (random(60) == 0) { ++trg.fire; _root.soundy('Monster_Yell_B_' + random(2) + '.mp', 100); } trg.d.gotoAndStop(1); } else { ++trg.fire; if (trg.fire > 0) { trg.d.gotoAndStop(2); trg.sp += 0.04; trg.sp *= 0.98; if (trg.fire > 100) { trg.fire = -100; } } else { trg.d.gotoAndStop(5); trg.sp = 0; } } pathfind(trg, playx, playy, trg.sp); f1 = 0; if (altboss) { f1 = 3; } if (enfget(trg.xbew, trg.ybew) > 3) { if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { trg.d.bo.gotoAndStop(3 + f1); } else { trg.d.bo.gotoAndStop(2 + f1); } sideflip(trg.xbew); } else { trg.d.bo.gotoAndStop(1 + f1); } trg2 = trg.trg2; if (trg.s == trg2.s && trg.specoz != 3) { enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 1000); f3 = 76; if (altboss) { if (enf > 0 && !trg2.onown) { f2 = ((enf - 20) / enf) * 0.1; trg2.xbew += xenf * f2; trg2.ybew += yenf * f2; } } else { if (enf > f3) { f2 = ((enf - f3) / enf) * 0.01; trg2.xbew += xenf * f2; trg2.ybew += yenf * f2; } } f3 += 120; i = 0; while (i < 19) { trg3 = trg['n' + i]; f1 = (16 - i) / 18; trg3._x = -xenf * f1 - 6; f2 = Math.abs(i - 9) * 0.5; f2 = 16 - f2 * f2; f2 *= Math.max(0, f3 - enf) / f3; trg3._y = -yenf * f1 - 35 + f2 * 1.5 + i * 0.8; trg3._visible = true; if (yenf < 0) { trg3.swapDepths(60 - i); } else { trg3.swapDepths(3 + i); } ++i; } trg.n18._visible = false; } else { i = 0; while (i < 19) { trg3 = trg['n' + i]; trg3._visible = false; ++i; } } } break; case 78: mheart = trg; trg.outway = true; trg.xbew *= 0.8; trg.ybew *= 0.8; trg.xp = trg.xpp; trg.yp = trg.ypp; f3 = Math.min(3, 4 - Math.round((trg.hp / hps[trg.s]) * 3 + 0.45)); if (momstate == 3) { splater(trg.xp + crand() * 2, trg.yp + crand(Math.random() * Math.random() * 200) + 8, 1 + random(10), Math.random() * 0.5 + 0.2); } if (momstate != f3) { momstate = f3; } if (trg.d._currentframe != 5 && (trg.d._currentframe != 4 or trg.d.d._currentframe > 30)) { trg.d.gotoAndStop(momstate); if (trg.downbro-- < 0 && momstate != 3) { trg.d.gotoAndStop(5); _root.soundy('heartin.wav'); } } else { if (trg.d._currentframe == 5 or momstate == 3) { if (trg.fire < 40) { trg.downbro = 100; trg.d.gotoAndStop(4); _root.soundy('heartout.wav'); _root.soundy('Mom_Vox_Filtered_Isaac_' + random(3) + '.mp'); } } } trg.bh = trg.d._currentframe != 5 && (trg.d._currentframe != 4 or trg.d.d._currentframe > 5); if (ashut < 2) { --trg.fire; } if (momstate !== 3) { } else { if (random(2) == 0 && fra % 23 == 0) { green(true, true); } } if (trg.fire < 0) { if (lmo != momstate) { trg.wave = 0; } f5 = _root.locker[45]; if (f5) { switch (momstate) { case 1: f2 = [60, 55, 20, 19]; break; case 2: f2 = [41, 59, 67, 28]; break; case 3: f2 = [61, 24, 14, 23]; } } else { switch (momstate) { case 1: f2 = [60, 59, 24]; break; case 2: f2 = [55, 24, 27.4]; break; case 3: f2 = [25.5, 61, 14]; } } f2 = f2[trg.wave]; if (f2 == 60 && fra < 100) { f1 = 180; } else { f1 = 40; } _root.soundy('summonsound.wav', 100 + momstate * 10); create(trg.xp + f1, trg.yp, 0, 0, 0, 0, f2); if (f2 != 20 && f2 != 67) { create(trg.xp - f1, trg.yp, 0, 0, 0, 0, f2); if (f2 == 19) { create(trg.xp + f1, trg.yp + 30, 0, 0, 0, 0, f2); create(trg.xp - f1, trg.yp + 30, 0, 0, 0, 0, f2); create(trg.xp + f1, trg.yp + 60, 0, 0, 0, 0, f2); create(trg.xp - f1, trg.yp + 60, 0, 0, 0, 0, f2); } else { if (f2 != 60 && f2 != 59 && f2 != 24 && f2 != 27.4 && f2 != 25.5) { f1 *= 0.8; if (f2 != 28) { create(trg.xp, trg.yp + f1, 0, 0, 0, 0, f2); } create(trg.xp, trg.yp - f1, 0, 0, 0, 0, f2); } } } trg.fire = 75; ++trg.wave; if (trg.wave > 2 && !f5 or trg.wave > 3 && f5) { trg.wave = 0; } lmo = momstate; } break; case 69: trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); switch (trg.d._currentframe) { case 1: case 2: randrun(); if (random(40) == 0 && enfcheckx(trg.xp, trg.yp, player.xp, player.yp, 300)) { trg.d.gotoAndStop(5); } else { if (random(140) == 0) { trg.d.gotoAndStop(9); } else { if (random(100) == 0) { trg.d.gotoAndStop(7); } else { if (random(70) == 0 && ashut < 3 + random(3)) { trg.d.gotoAndStop(8); } } } } break; case 5: if (trg.d.d._currentframe == trg.d.d._totalframes - 1) { trg.d.gotoAndStop(6); if (trg.xpp > 0) { trg.xp = trg.xpp; trg.yp = trg.ypp; } } else { telpx(); } break; case 8: if (trg.d.d._currentframe == 22) { trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 25); _root.soundy('summonsound.wav'); trg2.outway = true; } break; case 9: if (trg.d.d._currentframe == 26) { quadf(trg.xp, trg.yp, 10, true); } break; case 7: if (trg.d.d._currentframe == 28) { quadf(trg.xp, trg.yp, 10); } if (trg.d.d._currentframe == 51) { quadf(trg.xp, trg.yp, 10, 2); } if (trg.d.d._currentframe == 77) { quadf(trg.xp, trg.yp, 10); } } break; case 68: trgnextd(); slug = trg; if (trg.specoz == 12 && fra % 13 == 0) { trg2 = parc('bloo', trg.xp, trg.yp); trg2._xscale *= 1.6; trg2._yscale = trg2._xscale; colorit(trg2, 0.6, 1.5, 0.2, 100, 120, 0); } switch (trg.d._currentframe) { case 1: case 2: randrun(); if (trg.specoz != 12 or random(3) == 0) { if (random(23) == 0) { trg.d.gotoAndStop(10); } if (random(20) == 0) { trg.d.gotoAndStop(5 + random(2)); } } break; case 11: if (trg.d.d._currentframe == 28) { cirf(trg.xp, trg.yp, 10, 12); _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 100); } break; case 5: if (trg.d.d._currentframe == 38) { cirf(trg.xp, trg.yp, 10, 8); _root.soundy('ForestBoss_Stomps' + random(3) + '.wav', 80); } break; case 6: if (trg.d.d._currentframe > 30 && trg.d.d._currentframe < 40) { if (trg.d.d._currentframe == 31) { _root.soundy('Sink Drain Gurgle.wav', 100); } f1 = crand(random(100)); f2 = crand(); trg2 = parc('bloo', trg.xp + f1, trg.yp + f2); trg2._xscale *= 2; trg2._yscale = trg2._xscale; colorit(trg2, 0.6, 1.5, 0.2, 100, 120, 0); } break; case 10: if (trg.d.d._currentframe == 30) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 10000); if (enf > 0) { enf = 0.03333333333333333; trg.xbew = -xenf * enf; trg.ybew = -yenf * enf; } } } trg.bh = (trg.d._currentframe != 10 or trg.d.d._currentframe < 29) && (trg.d._currentframe != 11 or trg.d.d._currentframe > 27); if (trg.bh) { if (trg.specoz == 12) { trg.xbew *= 0.8; trg.ybew *= 0.8; } else { trg.xbew *= 0.6; trg.ybew *= 0.6; } } f3 = Math.min(3, 4 - Math.round((trg.hp / hps[trg.s]) * 3 + 0.45)); splater(trg.xp + crand() * 2, trg.yp + crand(random(20)) + 8, 21 + random(10), Math.random() * 0.5 + 0.2); if (_root.slugeye != f3 && fra > 30 && trg.specoz != 13 or trg.specoz == 13 && _root.slugeye < 3) { if (trg.specoz == 13) { ++_root.slugeye; } f1 = crand(30); f2 = crand(); _root.soundy('plop.wav'); trg2 = create(trg.xp + f1, trg.yp + f2, 0, f1 * 0.4, f2 * 0.4, 0, 25); trg2.alt = true; trg2.fra = -100; trg2.d.gotoAndStop(9); trg2.hp *= 200; trg2.imba = true; } if (trg.specoz != 13) { _root.slugeye = f3; } break; case 67: trg.ggh = true; duked = 65 + Math.sin(fra * 0.02) * 5; trg.xp = Math.min(580, Math.max(60, trg.xp)); if (trg.xp == 580) { trg.xbew = -1; } if (trg.xp == 60) { trg.xbew = 1; } trg.yp = Math.min(410, Math.max(180, trg.yp)); if (trg.yp == 410) { trg.ybew = -1; } if (trg.yp == 180) { trg.ybew = 1; } duke = trg; trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); if (trg.xbew > 0) { xenf = 1; } else { xenf = -1; } if (trg.ybew >= 0.1) { yenf = 1; } else { yenf = -1; } trg.xbew += xenf * 0.4; trg.ybew += yenf * 0.4; if (trg.specoz == 6) { trg.xbew *= 0.9; trg.ybew *= 0.9; } switch (trg.d._currentframe) { case 1: case 2: if (random(40) == 0 && dukes + ashut < 9) { trg.d.gotoAndStop(5); } else { if (random(70) == 0 && ashut - dukes * 0.5 < 5) { trg.d.gotoAndStop(6); } else { if (random(45) == 0 && dukes > 4 && ashut - dukes < 5 && trg.specoz != 5 or trg.specoz == 5 && random(70) == 0) { trg.d.gotoAndStop(7); } } } break; case 5: if (trg.d.d._currentframe == 20) { _root.soundy('Monster_Grunt_2_' + abr() + '.mp', 100); trg2 = []; f1 = 5; trg2.push(create(trg.xp + f1 * 2, trg.yp + 20, 0, 0, 0, 0, 18)); trg2.push(create(trg.xp, trg.yp + 20, 0, 0, 0, 0, 18)); trg2.push(create(trg.xp - f1 * 2, trg.yp + 20, 0, 0, 0, 0, 18)); for (z in trg2) { trg2[z].die = true; trg2[z].duke = true; trg2[z].fra = -20; } } break; case 6: if (trg.d.d._currentframe == 18) { _root.soundy('Monster_Grunt_1_' + abr() + '.mp', 100); trg2 = []; f5 = 5; if (trg.specoz == 6) { trg2.push(create(trg.xp, trg.yp + 20, 0, 0, 0, 0, 61)); } else { if (trg.specoz == 5) { trg2.push(create(trg.xp, trg.yp + 20, 0, 0, 0, 0, 80)); } else { trg2.push(create(trg.xp, trg.yp + 20, 0, 0, 0, 0, 18)); } } for (z in trg2) { trg2[z].fra = -20; trg2[z].die = true; if (!trg.specoz) { trg2[z].d._yscale = 125; trg2[z].d._xscale = 125; trg2[z].hp *= 1.8; } } } break; case 7: trg.send = trg.d.d._currentframe == 17; if (trg.send) { if (trg.specoz == 5) { cirf(trg.xp, trg.yp, 7, 8); trg.send = false; } _root.soundy('Monster_Grunt_4_' + abr() + '.mp', 100); } } dukes = 0; } } function devl() { trg._visible = trg.d._currentframe != 1; if (trg.d._currentframe < 8) { trg.d.gotoAndStop(9); trg.xp = player.xp; trg.yp = player.yp; trg2 = trg.trg2; siz = 111; if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, siz)) { enf = (siz - enf) / enf; xenf *= enf; yenf *= enf; trg.xp += xenf; trg.yp += yenf; } if (ashut < 4 && random(2) == 0) { f1 = [55.3]; spaw(player.xp, player.yp, 200, f1[random(f1.length)]); } if (random(2) == 0) { _root.soundy('satan stomp ' + random(3) + '.mp3'); } } if (trg.trg3 != undefined) { if (trg.hp < trg.mhp) { trg.trg3.hp -= trg.mhp - trg.hp; trg.hp = trg.mhp; if (trg.trg3.hp < 0) { trg.trg3.done = true; trg.done = true; momkill(); } } } else {} trg.bh = trg.d._currentframe == 9 && trg.d.d._currentframe > 27 && trg.d.d._currentframe < 62; if (trg.d._currentframe == 9 && trg.d.d._currentframe == 26) { trg.dmg = 300; gosplash(); _root.soundy('Hellboss_Groundpound_' + random(2) + '.wav'); } } function smartb() { smartd(); switch (trg.s) { case 66: blackout = true; if (!trg.sic) { trg.xbew *= 0.8; trg.ybew *= 0.8; } trgnextd(); if (trg.sic) { if (!trg.whut) { sideflip(player.xp - trg.xp); trg.whut = true; trg.d.gotoAndStop(12); trg.ffa = fra - enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000) * 0.1 + 80; } else { if (trg.d._currentframe < 11) { trg.d.gotoAndStop(13); } } } else { if (trg.horse) { trg.d.gotoAndStop(8); if (trg.hp + 40 > death.hp) { --trg.hp; } } else { if ((trg.whut or trg.hp / hps[trg.s] < 0.5) && trg.d._currentframe < 7) { trg.xp = Math.min(580, Math.max(60, trg.xp)); death = trg; if (!trg.whut) { sideflip(player.xp - trg.xp); trg.whut = true; trg.d.gotoAndStop(7); } else { trg.d.gotoAndStop(9); } } } } switch (trg.d._currentframe) { case 13: trg.xbew *= 0.975; trg.ybew *= 0.975; if (trg.alt) { if (trg.ffa > fra) { yenf = 0; xenf = 0; trg.d.d.gotoAndStop(1); } else { if (trg.ffa < fra - 180) { trg.done = true; } if (!trg.whuzz) { trg.whuzz = true; enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.75 / enf; xenf *= enf; yenf *= enf; trg.xpp = xenf; trg.ypp = yenf; } else { xenf = trg.xpp; yenf = trg.ypp; } } } else { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.5 / enf; xenf *= enf; yenf *= enf; } trg.xbew -= xenf; trg.ybew -= yenf; break; case 10: if (trg.d.d._currentframe == 16) { xenf = crand(10); yenf = crand(); create(trg.xp + xenf, trg.yp + yenf, 0, 0, 0, 0, 41); create(trg.xp - xenf, trg.yp - yenf, 0, 0, 0, 0, 41); _root.soundy('summonsound.wav', 120); _root.soundy('Monster_Grunt_5.mp', 100); } break; case 9: randrun(); if (random(90) == 0 && ashut < 3) { trg.d.gotoAndStop(10); } break; case 1: case 2: randrun(); f1 = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); if (random(90) == 0 && ashut < 2 + random(2)) { trg.d.gotoAndStop(5); } else { if (random(180) == 0 && sloww <= -100) { trg.d.gotoAndStop(6); } else { if (random(100) == 0 && ashut < 5) { trg.d.gotoAndStop(14); } } } break; case 5: if (trg.d.d._currentframe == 20) { _root.soundy('Monster_Grunt_5.mp', 100); _root.soundy('summonsound.wav', 120); i = 0; while (i < 1.9) { trg2 = spaw(trg.xp, trg.yp, 250 + random(100), 66); if (enfcheck(trg2.xp, trg.yp, player.xp, player.yp, 150)) { trg2.done = true; trg2.sic = true; trg2._visible = false; trg2.bh = false; trg.outway = true; i -= 0.95; } else { trg2.sic = true; trg2.apf = true; trg2.d.gotoAndStop(12); trg2.hp = 15; } trg.outway = true; ++i; } } break; case 6: if (trg.d.d._currentframe == 22) { sloww = 100; _root.over.gotoAndStop(7); } break; case 14: if (trg.d.d._currentframe == 18) { trg2 = []; trg2.push(create(20, trg.yp, 0, 0, 0, 0, 66)); trg2.push(create(620, trg.yp, 0, 0, 0, 0, 66)); trg2.push(create(trg.xp, 120, 0, 0, 0, 0, 66)); trg2.push(create(trg.xp, 460, 0, 0, 0, 0, 66)); _root.soundy('summonsound.wav', 150); _root.soundy('Monster_Grunt_0_' + abr() + '.mp', 100); for (z in trg2) { trg2[z].sic = true; trg2[z].apf = true; trg2[z].d.gotoAndStop(12); trg2[z].hp = 15; trg2[z].outway = true; trg2[z].alt = true; } } break; case 11: if (!trg.whuuu) { _root.soundy('Monster_Yell_A_' + random(3) + '.mp', 100); trg.whuuu = true; trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 66); _root.soundy('summonsound.wav', 150); trg2.d.gotoAndStop(8); trg2.horse = true; trg2.gogo = true; trg2.d._xscale = trg.d._xscale; trg2.apf = true; trg.outway = true; } break; case 8: trg.xbew = trg.d._xscale * 0.18; if (trg.gogo) { f1 = false; if (trg.xp > 750) { trg.xp = 10; f1 = true; } else { if (trg.xp < -150) { trg.xp = 630; f1 = true; } } if (f1) { f1 = 95; trg.yp += f1; if (trg.yp > 430) { trg.yp -= f1 * 3; } } } } break; case 65: trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); if ((trg.whut or trg.hp / hps[trg.s] < 0.5) && trg.d._currentframe < 9) { trg.xp = Math.min(580, Math.max(60, trg.xp)); if (!trg.whut) { trg.gosplash = true; trg.whut = true; trg.d.gotoAndStop(10); } else { trg.d.gotoAndStop(9); } } switch (trg.d._currentframe) { case 9: trg.sp += 0.1; trg.sp *= 0.955; f1 = 1 + trg.sp * 0.1; trg.xbew *= f1; trg.ybew *= f1; pathfind(trg, playx, playy, trg.sp * 0.55 + 0.5); trg.xp = Math.min(580, Math.max(60, trg.xp)); trg.yp = Math.min(410, Math.max(180, trg.yp)); if (mhit(trg.xp, trg.yp)) { trg.xp += crand(5); trg.yp += crand(5); } sideflip(trg.xbew); if (trg.ffra + 10 > fra) { trg.hpp = trg.hp; } if (trg.hp + 85 - trg.sp * 5 < trg.hpp) { trg.d.gotoAndStop(10); } if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { trg.d.bo.gotoAndStop(3); } else { trg.d.bo.gotoAndStop(2); } break; case 10: trg.ffra = fra; trg.hpp = trg.hp; trg.sp = 0.5; break; case 1: case 2: randrun(); f1 = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); if (random(90) == 0 && f1 < 200) { trg.d.gotoAndStop(5); } else { if (f1 > 150 && random(200) == 0 or Math.abs(yenf) < 20 && random(30) == 0) { _root.soundy('Monster_Yell_A_' + random(3) + '.mp', 100); sideflip(player.xp - trg.xp); trg.d.gotoAndStop(7); trg.xpp = trg.xp; trg.ypp = trg.yp; trg.gogo = 3; trg.bh = true; trg._visible = trg.bh; } else { if (random(180) == 0) { trg.d.gotoAndStop(6); _root.soundy('Monster_Roar_' + random(4) + '.mp'); } } } break; case 5: if (trg.d.d._currentframe == 5) { quadf(trg.xp, trg.yp, 10, true); } break; case 6: if (trg.d.d._currentframe == 30) { trg.bh = false; anarch = 25; } else { if (!trg.bh && anarch < -80) { trg.bh = true; trg.d.gotoAndStop(8); trg.xpp = trg.xp; trg.ypp = trg.yp; if (player.xp > 320) { trg.xp = 10; sideflip(100); } else { sideflip(-100); trg.xp = 630; } trg._visible = true; } } if (trg.d.d._currentframe == 33) { trg._visible = false; } break; case 8: trg.xbew = trg.d._xscale * 0.18; if (trg.gogo > 0) { f1 = false; if (trg.xp > 619) { trg.xp = 10; f1 = true; } else { if (trg.xp < 21) { trg.xp = 630; f1 = true; } } if (f1) { f1 = 95; trg.yp += f1; if (trg.yp > 430) { trg.yp -= f1 * 3; } --trg.gogo; } } else { if ((trg.xp - trg.ypp) * trg.xbew > 0) { trg.d.gotoAndStop(1); } } } break; case 81: trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); if ((trg.whut or trg.hp / hps[trg.s] < 0.5) && trg._xscale > 90 && trg.alter == 1) { if (!trg.whut) { trg.gosplash = true; trg.whut = true; _root.soundy('Monster_Roar_2.mp', 100); } trg.d.gotoAndStop(9); } switch (trg.d._currentframe) { case 1: case 2: randrunx(1); sideflip(trg.xbew); walkframe(3); if (random(3) == 0 or trg._xscale > 90) { if (random(140 - trg.alter * 60) == 0 && (trg.alter == 1 or enfcheckx(trg.xp, trg.yp, player.xp, player.yp, 400))) { if (trg.alter == 1) { trg.d.gotoAndStop(7); } else { trg.d.gotoAndStop(6); } _root.soundy('Monster_Yell_B_0.mp3', 100); } else { if (random(20) == 0) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 230)) { sideflip(player.xp - trg.xp); trg.d.gotoAndStop(5); } } } } break; case 9: trg.bh = false; if (trg.d.d._currentframe == 25) { _root.soundy('summonsound.wav', 200); xenf = 30; trg2 = create(trg.xp + xenf, trg.yp - 20, 0, 0, 0, 0, 81); trg3 = create(trg.xp - xenf, trg.yp - 20, 0, 0, 0, 0, 81); trg2.hp *= 0.5; trg3.hp *= 0.5; trg3._yscale = 75; trg2._xscale = 75; trg2._yscale = 75; trg3._xscale = 75; } if (trg.d.d._currentframe == 65) { trg.done = true; } break; case 5: if (trg.d.d._currentframe == 20 or trg.d.d._currentframe == 34) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000); if (trg.d.d._currentframe == 20) { f1 = true; _root.soundy('Monster_Grunt_2_' + abr() + '.mp', 100); } else { f1 = 2; _root.soundy('Monster_Grunt_1_' + abr() + '.mp', 100); } enf = enfget(xenf, yenf); enf = -8.199999999999999 / enf; xenf *= enf; yenf *= enf; shots(trg.xp, trg.yp, xenf, yenf, f1); } break; case 7: if (trg.d.d._currentframe < 7) { } else { trg.whup = trg.hp; case 8: enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000); enf = 1.4 / enf; xenf *= enf; yenf *= enf; trg.xbew -= xenf; trg.ybew -= yenf; sideflip(player.xp - trg.xp); if (trg.whup > trg.hp + trg.mhp / 8) { trg.d.gotoAndStop(6); } break; case 6: if (trg.d.d._currentframe > 20 && trg.d.d._currentframe < 50) { trg.ypp = 0; trg.xpp = random(2) - 0.5; lasershow(trg); trg.xpp = 0; trg.ypp = random(2) - 0.5; lasershow(trg); trg.ypp = undefined; trg.xpp = trg.ypp; } } } break; case 84: if (!trg.app) { trg.app = true; _root.soundy('satan appear.mp'); } if (trg.d._currentframe == 3 && trg.d.d._currentframe == 17) { _root.soundy('satan blast.mp', 50); } if (trg.d._currentframe == 8 && trg.d.d._currentframe == 83) { _root.soundy('satan grow.mp', 50); } trg.ybew *= 0.8; trg.xbew *= 0.8; trgnextd(); trg.alter = 2; if (trg.pow == 5) { devl(); } else { if (trg.pow == undefined) { trg.pow = 1; trg.fire = 0; if (trg.pow < 3) { trg.bh = false; trg.d.gotoAndStop(1); trg.til = ingrid(trg.xp, trg.yp + 80); levz[trg.til] = 1; } } sati = trg; switch (trg.pow) { case 1: levz[trg.til] = 2; if (trg.fire++ > 130) { trg.fire = 0; ++trg.pow; xenf = 50; yenf = 110; create(trg.xp, trg.yp + yenf, 0, 0, 0, 0, 81); create(trg.xp + xenf, trg.yp + yenf, 0, 0, 0, 0, 55.3); create(trg.xp - xenf, trg.yp + yenf, 0, 0, 0, 0, 55.3); _root.soundy('satan blast.mp'); _root.soundy('summonsound.wav', 200); } if (plh) { plh = false; trg.d.gotoAndStop(2); } break; case 2: if (helps == 1) { if (trg.fire++ > 25) { if (trg.d._currentframe != 3) { _root.soundy('satan rise up.mp'); trg.d.gotoAndStop(3); } if (trg.d.d._currentframe > 54) { ++trg.pow; } } } levz[trg.til] = 1; break; case 3: mhelps = 1; trg.bh = true; levz[trg.til] = 0; if (trg.d._currentframe < 4) { trg.d.gotoAndStop(4); } trg.yp = Math.max(165, trg.yp); _root.tex = xenf; switch (trg.d._currentframe) { case 4: yenf = Math.max(305, player.yp * 0.9300000000000001) - trg.yp - 140; xenf = player.xp - trg.xp; xenf1 = player.xp + player.xbew * 25 - trg.xp; wtftex = xenf + ' ' + xenf1; if (xenf * xenf1 < 0 && yenf > -70 && (trg.llo != 6 or random(10) == 0) or trg.llo == 7 && Math.abs(xenf) < 40 && random(3) == 0) { trg.d.gotoAndStop(6); _root.soundy('satan charge up.mp'); trg.llo = 6; } else { if (random(15) == 0 or random(3) == 0 && (trg.llo == 7 or trg.llo == 6)) { trg.d.gotoAndStop(5); trg.llo = 5; } else { if (Math.abs(xenf) > 100 or yenf < 0) { trg.xbew += absmax(xenf, 15) * 0.1; trg.ybew += absmax(yenf, 7) * 0.1; } else { if (Math.abs(xenf) > 40 && Math.abs(xenf1) < 200 && yenf >= 0) { trg.d.gotoAndStop(7); _root.soundy('satan charge up.mp', 50); trg.llo = 7; } } } } break; case 5: if (trg.d.d._currentframe == 56) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000); if (enf > 300 && random(3) != 0) { trg.d.d.gotoAndStop(12); } } if (trg.d.d._currentframe == 15 or trg.d.d._currentframe == 36) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000); if (trg.d.d._currentframe == 15) { f1 = true; _root.soundy('satan spit.mp', 100); } else { f1 = 2; _root.soundy('satan spit 2.mp', 100); } if (enf > 300) { enf = -10 / enf; } else { enf = -8.199999999999999 / enf; } xenf *= enf; yenf *= enf; shots(trg.xp, trg.yp, xenf, yenf, f1); } break; case 6: if (trg.d.d._currentframe > 20 && trg.d.d._currentframe < 48) { trg.xpp = 0; trg.ypp = 1; v1 = 20; lasershow(trg); trg.xp -= v1; lasershow(trg); trg.xp += v1 + v1; lasershow(trg); trg.xp -= v1; } break; case 7: if (trg.d.d._currentframe > 18 && trg.d.d._currentframe < 46) { trg.xpp = 0; trg.ypp = 1; v1 = 85; trg.xp -= v1; lasershow(trg); trg.xp += v1 + v1; lasershow(trg); trg.xp -= v1; } } break; case 4: if (trg.app != 2) { trg.app = 2; _root.soundy('satan hurt.mp'); } devl(); if (trg.trg2 == undefined && trg.d.d._currentframe == 50 && trg.d._currentframe == 9) { trg.trg2 = create(player.xp, player.yp, 0, 0, 0, 0, 84); trg2 = trg.trg2; trg2.pow = 5; trg2._visible = false; trg2.trg3 = trg; trg2.trg2 = trg2.trg3; } } } break; case 83: trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); switch (trg.d._currentframe) { case 1: case 2: trg.xp = Math.min(580, Math.max(60, trg.xp)); randrun(); sideflip(trg.xbew); f1 = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); if (random(30) == 0 && f1 < 200) { trg.d.gotoAndStop(7); } else { if (random(120) == 0 or Math.abs(yenf) < 20 && random(80) == 0) { _root.soundy('Monster_Yell_A_' + random(3) + '.mp', 100); sideflip(player.xp - trg.xp); trg.d.gotoAndStop(5); trg.xpp = trg.xp; trg.ypp = trg.yp; trg.gogo = 3; trg.bh = true; trg._visible = trg.bh; } } break; case 7: if (trg.d.d._currentframe == 13) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 5, player.yp + player.ybew * 5, 1000); f1 = true; _root.soundy('Monster_Grunt_2_' + abr() + '.mp', 100); enf = enfget(xenf, yenf); enf = -9.199999999999999 / enf; xenf *= enf; yenf *= enf; shots(trg.xp, trg.yp, xenf, yenf, f1); } break; case 6: trg.xbew = trg.d._xscale * 0.18; if (trg.gogo > 0) { f1 = false; if (trg.xp > 619) { trg.xp = 10; f1 = true; } else { if (trg.xp < 21) { trg.xp = 630; f1 = true; } } if (f1) { f1 = 95; trg.yp += f1; if (trg.yp > 430) { trg.yp -= f1 * 3; } --trg.gogo; } } else { if ((trg.xp - trg.ypp) * trg.xbew > 0) { trg.d.gotoAndStop(1); } } } break; case 82: trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); switch (trg.d._currentframe) { case 1: case 2: randrunx(1); sideflip(trg.xbew); walkframe(3); if (random(40) == 0) { trg.d.gotoAndStop(5); } break; case 5: if (trg.d.d._currentframe == 9) { green(); _root.soundy('heartout.wav', 100); } } break; case 64: trg.xp = Math.min(580, Math.max(60, trg.xp)); if (fra % 3 == 0) { splater(trg.xp + crand(), trg.yp + crand(random(20)), trg.spl + 1 + random(10), Math.random() * 0.5 + 0.4); } trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); if ((trg.whut or trg.hp / hps[trg.s] < 0.5) && trg.d._currentframe < 7) { if (!trg.whut) { trg.gosplash = true; trg.whut = true; } trg.d.gotoAndStop(7); } if (fra % 7 == 0) { trg2 = parc('bloo', trg.xp, trg.yp); trg2._xscale *= 2; trg2._yscale = trg2._xscale; colorit(trg2, 0, 2, 0, 0, 40, 0); } switch (trg.d._currentframe) { case 7: trg.xp = Math.min(580, Math.max(60, trg.xp)); randrun(); if (random(40) == 0 && ashut < 4) { trg.d.gotoAndStop(9); } else { if (random(20) == 0) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 230)) { sideflip(player.xp - trg.xp); trg.d.gotoAndStop(8); } } } break; case 1: case 2: randrunx(1); sideflip(trg.xbew); walkframe(3); if (random(40) == 0 && ashut < 4) { trg.d.gotoAndStop(6); } else { if (random(20) == 0) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 230)) { sideflip(player.xp - trg.xp); trg.d.gotoAndStop(5); } } } break; case 6: if (trg.d.d._currentframe == 25) { _root.soundy('Monster_Grunt_5.mp', 100); xenf = crand(10); yenf = crand(); create(trg.xp + xenf, trg.yp + yenf, 0, 0, 0, 0, 23 + random(2) * 8); create(trg.xp - xenf, trg.yp - yenf, 0, 0, 0, 0, 23 + random(2) * 8); _root.soundy('summonsound.wav', 120); } break; case 9: if (trg.d.d._currentframe == 25) { _root.soundy('Wheezy_Cough_' + random(3) + '.mp', 100); xenf = crand(10); yenf = crand(); trg2 = create(trg.xp + trg.d._xscale * 0.4 + xenf, trg.yp + yenf, 0, 0, 0, 0, 18); trg3 = create(trg.xp + trg.d._xscale * 0.4 - xenf, trg.yp - yenf, 0, 0, 0, 0, 18); trg3.die = true; trg2.die = trg3.die; trg3.fra = -20; trg2.fra = -20; } break; case 5: if (trg.d.d._currentframe == 22) { green(); } break; case 8: if (trg.d.d._currentframe == 9) { green(); } } break; case 63: trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); if ((trg.whut or trg.hp / hps[trg.s] < 0.3) && trg.d._currentframe < 8) { if (!trg.whut) { trg.gosplash = true; trg.whut = true; } trg.d.gotoAndStop(8); } switch (trg.d._currentframe) { case 8: case 9: firemode(300, 8); splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.6 + 0.6); if (trg.fire <= 0) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.5 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; } break; case 1: case 2: randrun(); if (random(40) == 0 && ashut < 3) { trg.d.gotoAndStop(5); } else { if (Math.abs(trg.yp - player.yp) < 20 && random(5) == 0) { _root.soundy('Monster_Yell_A_' + random(3) + '.mp', 100); sideflip(player.xp - trg.xp); trg.d.gotoAndStop(6); trg.xpp = trg.xp; trg.ypp = trg.yp; trg.gogo = true; } } break; case 5: if (trg.d.d._currentframe == 25) { _root.soundy('Monster_Grunt_5.mp', 100); xenf = crand(50); yenf = crand(); create(trg.xp + xenf, trg.yp + yenf, 0, 0, 0, 0, 14); _root.soundy('summonsound.wav', 80); } break; case 7: trg.xbew = trg.d._xscale * 0.18; if (trg.gogo) { if (trg.xp > 619) { trg.xp = 0; trg.gogo = false; } else { if (trg.xp < 21) { trg.xp = 640; trg.gogo = false; } } } else { if ((trg.xp - trg.ypp) * trg.xbew > 0) { trg.d.gotoAndStop(1); } } } break; case 62: ++wormet; trg.worm = wormet; worm[wormet] = trg; if (trg.worm == 1) { if (trg.d._currentframe == 8 or trg.d._currentframe == 9) { trg.xppp = 0; trgnextd(); trg.bh = true; trg._visible = true; trg.ybew = 0; trg.xbew = 0; trg.d._y = 0; if (trg.d._currentframe == 1) { trg.gogo = 3; trg._visible = false; } if (trg.d.d._currentframe == 46 && trg.d._currentframe == 8) { _root.soundy('Boss_Lite_HIss.mp', 100); bossfire(15, true); } else { if (trg.d._currentframe == 9) { if (trg.d.d._currentframe == 23) { _root.soundy('Monster_Roar_2.mp', 100); } if (trg.d.d._currentframe == 23 or trg.d.d._currentframe == 24 or trg.d.d._currentframe == 25) { green(); } } } } else { if (!trg.whut) { trg.beenx = [trg.xp]; trg.beeny = [trg.yp]; trg.beenf = [35]; trg.xpp = 320 - trg.xp; trg.ypp = 280 - trg.yp; trg.gogo = true; trg.whut = true; } if (trg.ybew < -0.5) { trg.d.gotoAndStop(2); } else { trg.d.gotoAndStop(1); } if (!enfcheck(trg.xp, trg.yp, trg.beenx[0], trg.beeny[0], 3) or trg.d._y > 10) { trg.beenx.unshift(trg.xp); trg.beeny.unshift(trg.yp); trg.beenf.unshift(trg.d._y); } if (trg.beenx.length > 80) { f2 = []; f3 = []; f4 = []; a = 0; while (a < 50) { f2[a] = trg.beenx[a]; f3[a] = trg.beeny[a]; f4[a] = trg.beenf[a]; ++a; } trg.beenx = new Array(50); trg.beeny = new Array(50); trg.beenf = new Array(50); a = 0; while (a < 50) { trg.beenx[a] = f2[a]; trg.beeny[a] = f3[a]; trg.beenf[a] = f4[a]; ++a; } } if (trg.gogo && trg.gogo != 2) { if (random(2) == 0 && fra > 100 && trg.gogo != 3) { trg.gogo = false; if (random(2) == 0) { trg.d.gotoAndStop(8); } else { trg.d.gotoAndStop(9); } } else { enf = enfget(trg.xpp, trg.ypp); trg.zp = -2 - enf * 0.02; enf = 8 / enf; trg.xpp *= enf; trg.ypp *= enf; trg.xppp = trg.xp; trg.yppp = trg.yp; trg.lasx = fra; trg.d._y = 10; trg.gogo = false; trg.rem = true; trg.xbew = trg.xpp; trg.ybew = trg.ypp; _root.soundy('Maggot_Burst_Out_' + random(2) + '.wav', 100); } } trg.d._y += trg.zp; trg.zp += 0.4; if (trg.d._y < 33) { trg.bh = true; if (trg.d._y > 10 && trg.rem && trg.zp > 0) { trg.rem = false; trg.xppp = trg.xp; trg.yppp = trg.yp; trg.lasx = fra + 5; _root.soundy('Maggot_Enter_Ground_' + random(2) + '.wav', 100); } trg.gogo = 2; trg._visible = trg.d._y < 23; } else { trg._visible = false; trg.bh = false; trg.d._y = 33; enfcheck(trg.xp, trg.yp, player.xp, player.yp, 10000); f1 = enf; trg.xbew *= 0.95; trg.ybew *= 0.95; enf = ((250 - enf) / enf) * 0.003; trg.xbew += xenf * enf; trg.ybew += yenf * enf; enfcheck(trg.xp, trg.yp, 320, 280, 10000); enf = (Math.min(200, enf) / enf) * 0.002; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; if (trg.zp - f1 / 20 > 15 && trg.gogo == 2 && f1 > 100) { trg.xpp = player.xp; trg.ypp = player.yp; trg.xpp -= trg.xp; trg.ypp -= trg.yp; trg.gogo = true; } } } } else { if (trg.worm == 7) { trg.bh = false; if (worm[1].xppp > 0) { trg.ybew = 0; trg.xbew = 0; trg2 = worm[1]; if (trg2.lasx + 15 > fra) { trg.d.gotoAndStop(6); } else { trg.d.gotoAndStop(10); } trg.xp = trg2.xppp; trg.yp = trg2.yppp; trg._visible = true; } else { trg._visible = false; } } else { trg.xbew *= 0.8; trg.ybew *= 0.8; f1 = [0, 0, 4, 2, 4, 4, 5]; trg.d.gotoAndStop(f1[trg.worm]); f1 = [0, 0, 100, 100, 92, 85, 100]; trg.d.d._yscale = f1[trg.worm]; trg.d.d._xscale = trg.d.d._yscale; f1 = [0, 0, 3, 7, 11, 15, 18]; trg2 = worm[1]; f2 = Math.min(trg2.beenx.length - 1, f1[trg.worm]); if (f2 > 0) { trg.xp = trg2.beenx[f2]; trg.yp = trg2.beeny[f2]; trg.d._y = trg2.beenf[f2]; if (trg.d._y < 33) { trg.bh = true; trg._visible = trg.d._y < 26; } else { trg._visible = false; trg.bh = false; trg.d._y = 33; } } else { trg._visible = false; trg.bh = false; } } } trg.d.sh._y = -trg.d._y; } } function smarts() { smartsx(); ssmarts(); smartb(); switch (trg.s) { case 19: if (trg.specoz == 7) { trg.xbew *= 0.96; trg.ybew *= 0.96; } trg.outway = true; trg.ggh = true; markhere(); if (levz[trg.til] > 1.8) { hurt(trg, 3); } if (!trg.donelook) { trg.d.gotoAndStop(7); trg.fail2 = 0; trg.donelook = true; for (a in ball) { trg2 = ball[a]; if (trg2.s == 19) { if (enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, roxx + 2) && trg2.trg2 != trg && trg2 != trg) { trg.trg2 = trg2; trg2.whop = true; } } } trg.beenx = []; trg.beeny = []; trg.beenf = []; f1 = 1; } else { if (fra - trg.fra < 25) { if (trg.trg2.s == 19) { trg.d.gotoAndStop(4); } else { trg.d.gotoAndStop(9); } } else { if (trg.trg2.s == 19) { trg2 = trg.trg2; trg2.trg3 = trg; if (trg.specoz == 7) { if (Math.abs(trg2.hp - trg.hp) > 1) { f1 = (trg2.hp - trg.hp) / 2; trg2.hp -= f1; trg.hp += f1; } } trg.d.gotoAndStop(7); if (trg2.dones) { trg.trg2 = undefined; } else { if (trg2.beenx.length > 0) { if (trg.specoz == 7) { f0 = Math.min(6, trg2.beenx.length - 1); } else { f0 = Math.min(4, trg2.beenx.length - 1); } enf = enfcheck(trg.xp, trg.yp, trg2.beenx[f0], trg2.beeny[f0], 1000); f2 = 10; if (enf < f2) { trg.xp = trg2.beenx[f0]; trg.yp = trg2.beeny[f0]; f1 = trg2.beenf[f0]; } else { enf = f2 / enf; xenf *= enf; yenf *= enf; trg.xp -= xenf; trg.yp -= yenf; getf(); trg2.beenx.push(trg2.beenx[f0] + xenf); trg2.beeny.push(trg2.beeny[f0] + yenf); trg2.beenf.push(f1); } trg2.whop = true; } } } else { if (!trg.whop) { if (trg.fail2++ > 10) { trg.dones = true; } } else { if (!trg.hpu) { trg.hpu = true; if (trg.specoz != 7) { trg.hp += 25; } } else { if (trg.fire <= 30) { trg.d.gotoAndStop(1); randrunx(2); killshit(trg.nextl); xenf = trg.xbew; yenf = trg.ybew; getf(); if (trg.specoz == 3 && random(3) == 0) { firewalk(); } } else { --trg.fire; } } } } if (!enfcheck(trg.xp, trg.yp, trg.beenx[0], trg.beeny[0], 3)) { trg.beenx.unshift(trg.xp); trg.beeny.unshift(trg.yp); trg.beenf.unshift(f1); } } } trg.d.d.d.gotoAndStop(f1); if (trg.beenx.length > 10) { f2 = []; f3 = []; f4 = []; a = 0; while (a < 7) { f2[a] = trg.beenx[a]; f3[a] = trg.beeny[a]; f4[a] = trg.beenf[a]; ++a; } trg.beenx = new Array(7); trg.beeny = new Array(7); trg.beenf = new Array(7); a = 0; while (a < 7) { trg.beenx[a] = f2[a]; trg.beeny[a] = f3[a]; trg.beenf[a] = f4[a]; ++a; } } trg.xbew *= 0.8; trg.ybew *= 0.8; if (random(16) == 0) { splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.6 + 0.6); } if (trg.whop > 0) { } else { if (_root.lev != _root.chamb && fra > 20 && (random(100) == 0 or random(20) == 0 && trg.whop < 0)) { f1 = 5; f2 = ingrid(trg.beenx[f1], trg.beeny[f1]); if (trg.specoz != 7) { turd('breakblock', f2, true); } } } trg.whop = false; break; case 22: trg.pbh = fra % 2 == 0; if (trg.d._currentframe < 3) { angstfind(); sideflip(trg.xbew); walkframe(2); trg.xbew *= 0.8; trg.ybew *= 0.8; } else { trgnextd(); } if (trg.needmove > 0 && trg.fire-- <= 0 && ashut < random(5) + 4) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 300); if (enf) { if (linecheckxx(trg.xp, trg.yp, player.xp, player.yp)) { trg.fire = 75; trg.d.gotoAndStop(5); sideflip(-xenf); f1 = trg.xp; f2 = trg.yp; enf = -7 / enf; xenf *= enf; yenf *= enf; var trg2 = create(f1, f2, 0, xenf, yenf, 0, 18); _root.soundy('Wheezy_Cough_' + random(3) + '.mp', 100); trg2.fra -= 20; trg2.die = true; trg2.pbh = true; } else { trg.fire = 7; } } else { trg.fire = 3; } } break; case 16: trg.pbh = fra % 2 == 0; if (trg.d._currentframe < 3) { angstfind(); sideflip(trg.xbew); walkframe(2); trg.xbew *= 0.8; trg.ybew *= 0.8; if (trg.needmove > 0) { trg.d.hx.gotoAndStop(2); trg.d.d.hx.gotoAndStop(2); } else { trg.d.hx.gotoAndStop(1); trg.d.d.hx.gotoAndStop(1); } if (trg.gh && random(300) == 0) { trg.d.gotoAndStop(5); } } else { trg.xbew *= 0.8; trg.ybew *= 0.8; trgnextd(); if (trg.d.d._currentframe > 20) { trg.dones = true; quadf(trg.xp, trg.yp, 7); } } break; case 17: randrun(); if ((fra + trg.e) % 3 == 0) { splater(trg.xp, trg.yp, 1 + random(10), Math.random() * 0.9 + 0.5); } trg.xbew *= 0.6; trg.ybew *= 0.6; break; case 15: trg.pbh = fra % 2 == 0; trgnextd(); if (trg.alter == 2) { blackout = 2; } if ((fra + trg.e) % 5 == 0) { splater(trg.xp, trg.yp, 1 + random(10), Math.random() * 0.7 + 0.5); } trg.xbew *= 0.9; trg.ybew *= 0.9; switch (trg.mode) { trg.modedone = false; trg.mode = random(2) + 1; trg.mof = fra; case 1: if (trg.d._currentframe == 1 && trg.modedone or random(30) == 0 && fra - trg.mof > 30) { trg.mode = 2; trg.modedone = false; } else { trg.d.gotoAndStop(5); if (trg.d.d._currentframe > 8 && !trg.modedone) { if (trg.alter == 2) { quadf(trg.xp, trg.yp, 7, 2); } else { quadf(trg.xp, trg.yp, 7); } trg.modedone = true; } } break; case 2: randrun(); } break; break; case 38: markhere(trg); trg.xbew *= 0.7; trg.ybew *= 0.7; if (trg.d._currentframe <= 5) { if (random(10) == 0) { splater(trg.xp, trg.yp, random(10), Math.random() * 0.3 + 0.2); } trgnextd(); firemode(200, 5); if (enfcheckx(trg.xp, trg.yp, player.xp, player.yp, 400) or trg.telp > 20) { ++trg.telp; } trg.telp += Math.random() * 0.1; if (trg.telp > 20) { if (trg.xpp == undefined) { telpx(); } if (trg.d._currentframe == 1 && trg.telp > 40 && trg.xpp != undefined) { trg.d.gotoAndStop(6); } } trg.bh = true; } else { trg.bh = false; trgnextd(); if (trg.d._currentframe == 1 && trg.xpp != undefined) { trg.d.gotoAndStop(7); trg.xp = trg.xpp; trg.yp = trg.ypp; trg.xpp = undefined; trg.telp = 0; } } if (trg.fire <= 0) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.33 / enf; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; } break; case 59: markhere(trg); trg.xbew *= 0.65; trg.ybew *= 0.65; f1 = false; f2 = trgnextd(); if (f2 == 2 or f2 == 5) { trg.d.gotoAndStop(6); } if ((trg.d._currentframe == 2 or trg.d._currentframe == 5) && trg.d.d._currentframe == 29 or trg.d._currentframe == 6 && trg.d.d._currentframe == 5) { _root.soundy('Meat_jumps' + random(5) + '.wav'); } if (trg.d._currentframe == 1) { f1 = true; if (random(30) == 0) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 200)) { trg.d.gotoAndStop(8); } } if (random(20) == 0) { enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 100 / enf; posw(trg.xp - xenf * enf, trg.yp - yenf * enf, 0); trg.xpp = xenf; trg.ypp = yenf; if (trg.yp > trg.ypp) { trg.d.gotoAndStop(2); } else { trg.d.gotoAndStop(5); } trg.f1 = 0; f1 = false; } } else { if (trg.d._currentframe == 2 or trg.d._currentframe == 5) { if (trg.d.d._currentframe > 4) { trg.bh = trg.d.d._currentframe < 27; if (trg.d.d._currentframe > 27) { if (trg.d.d._currentframe == 29) { quadf(trg.xp, trg.yp + 10, 7, 2); _root.soundy('meatheadshoot' + fra % 3 + '.wav'); } telpx(true); } else { trg.f1 = Math.min(1, trg.f1 * 1.07 + 0.005); trg.xp = trg.xpp * trg.f1 + trg.xp * (1 - trg.f1); trg.yp = trg.ypp * trg.f1 + trg.yp * (1 - trg.f1); } } f1 = false; } else { if (trg.d._currentframe == 6) { f1 = true; } else { if (trg.d._currentframe == 8) { if (trg.d.d._currentframe == 9) { _root.soundy('heartout.wav', 70); green(); } f1 = true; } } } } if (f1) { trg.bh = trg.d._currentframe != 2 && trg.d._currentframe != 5 or trg.d.d._currentframe < 30; trg.xp = trg.xpp; trg.yp = trg.ypp; } break; case 60: if (trg.d._currentframe != 5) { trg.d.gotoAndStop(1); } trg.xbew *= 0.8; trg.ybew *= 0.8; trg.xp = trg.xpp; trg.yp = trg.ypp; if (trg.d._currentframe == 1) { f1 = rotget(trg.xp - player.xp - player.xbew * 1, trg.yp - player.yp - player.xbew * 1) - 90; f1 -= trg.rp; enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); f2 = 3 + trg.alter * 3 - enf / 330; f1 = absmax(rotrund(f1), f2); if (Math.abs(f1) < f2 / 2 && random(10) == 0) { trg.d.gotoAndStop(5); } trg.rp += f1; } else { if (trg.d._currentframe == 5) { if (trgnextd(trg.d.d.d)) { trg.d.gotoAndStop(1); } if (trg.d.d.d.doit) { trg.d.d.d.doit = false; lasershowx(trg.rp * p180); } trg.d.d.d._rotation = trg.rp; } } trg.d.hx._rotation = trg.rp; break; case 26: if (trg.s == 26) { trg.xp = Math.min(580, Math.max(60, trg.xp)); trg.yp = Math.min(410, Math.max(170, trg.yp)); } trg.outway = false; if (random(10) == 0) { splater(trg.xp, trg.yp, random(10), Math.random() * 0.5 + 0.4); } if (trg.fire <= 0) { enf = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 1000); enf = 0.13 / enf; if (trg.alter == 2) { enf *= 3; } trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; } trg.xbew *= 0.9300000000000001; trg.ybew *= 0.9300000000000001; case 56: case 12: case 27: case 42: if (trg.s == 27) { if (trg.d._currentframe == 5 && (trg.d.d._currentframe == 9 or trg.d.d._currentframe == 55)) { _root.soundy('animal_squish' + random(3) + '.wav', 100); } } f1 = 4; if (trg.s == 42) { trg.xp = trg.xpp; trg.yp = trg.ypp; f1 = 12; levz[trg.til] = 3; } if (justnow > 30 && trg.s == 42) { trg.d.gotoAndStop(3); } else { if (trg.s != 26) { trg.xbew *= 0.7; trg.ybew *= 0.7; } if (trg.s != 56 or trg.d.d._currentframe != 22 or trg.fire > 0) { trgnextd(); } else { if (random(50) == 0) { trg.d.gotoAndStop(5); trg.d.d.gotoAndStop(49); } } if (trg.alter != 2 or trg.s == 27) { firemode(200, f1); } } if (trg.s == 56) { markhere(trg); if (trg.whuz) { if (trg.d._currentframe < 3) { trg.d.gotoAndStop(2); trg.bh = false; telpx(); if (random(20) == 0) { trg.d.gotoAndStop(5); } } else { trg.bh = true; } } else { trg.whuz = true; trg.d.gotoAndStop(5); trg.d.d.gotoAndStop(21); } trg.bh = trg.d._currentframe != 5 or trg.d.d._currentframe > 11 && trg.d.d._currentframe < 54; if (trg.d._currentframe == 5 && (trg.d.d._currentframe == 11 or trg.d.d._currentframe == 54)) { _root.soundy('Meat_jumps' + random(5) + '.wav'); } } if (trg.s == 56) { trg.xp = trg.xpp; trg.yp = trg.ypp; } if (trg.s == 42) { levz[trg.til] = 2; } break; case 26.5: trg.s = 26; trg._visible = true; trg.bh = true; if (random(10) == 0 && trg._visible) { splater(trg.xp, trg.yp, random(10), Math.random() * 0.5 + 0.2); } break; case 11: if (!trg.bnuts) { trg.d.bb._visible = false; } else { firewalk(); } if (random(10) == 0) { splater(trg.xp, trg.yp, random(10), Math.random() * 0.5 + 0.4); } trg.xbew *= 0.75; trg.ybew *= 0.75; randrun(); walkframe(2); sideflip(trg.xbew); break; case 35: trg.phb = true; if (trg.trg2 == undefined) { trg.trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 26); trg.trg2.outway = true; trg2.trg2 = trg; } else { trg2 = trg.trg2; if (trg2.hp <= 0 or random(1000) == 0) { trg.gosplash = true; attach(trg, 11); trg.s = 11; trg.outway = true; trg.hp = hps[trg.s]; splater(trg.xp, trg.yp, random(10) + 1, Math.random() + 0.6); } else { trg2.d._xscale = trg.d._xscale; trg2.d.gotoAndStop(6); trg2.fra = -100; trg2.s = 26.5; trg2.pbh = true; trg2.alter = 1; --trg.fire; if (trg.d._currentframe < 3) { trg2.xp = trg.xp; trg2.yp = trg.yp; trg2.ybew = 0; trg2.xbew = 0; trg2._visible = false; trg2.bh = false; if (fra % 4 == 0) { enf = enfcheck(trg.xp, trg.yp, player.xp + player.xbew * 1.5, player.yp + player.ybew * 1.5, 130); if (enf) { trg.see = true; if (trg.lastv) { enf = 14 / enf; trg2.xbew = -xenf * enf; trg2.ybew = -yenf * enf; trg.d.gotoAndStop(6); trg.fire = 30; _root.soundy('meatheadshoot' + random(3) + '.wav'); } } else { trg.see = false; } } } if (trg.d._currentframe >= 3) { enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, 30000); if (enf < 5 && trg.fire < 15) { trg.d.gotoAndStop(1); } else { if (trg.d._xscale < 0) { xenf = -xenf; } i = 0; while (i < 9) { trg3 = trg.d['n' + i]; f1 = (7 - i) / 8; trg3._x = -xenf * f1; f2 = Math.abs(i - 4); f2 = 16 - f2 * f2; f3 = 100; f2 *= Math.max(0, f3 - enf) / f3; trg3._y = -yenf * f1 - 25 + f2 + i - 6; trg3._visible = true; ++i; } if (trg.d._xscale < 0) { xenf = -xenf; } enf = 0.7 / enf; trg2.xbew += xenf * enf; trg2.ybew += yenf * enf; f1 = 0.9 + trg.fire * 0.0028; trg2.xbew *= f1; trg2.ybew *= f1; trg2._visible = true; trg2.bh = true; } } } } case 58: case 24: case 10: gochar = trg.s != 58; if (trg.s != 35) { f1 = trgnextd(); if (trg.d._currentframe == 6 && trg.s == 58) { telpx(true); } if (f1 == 6 && trg.s == 58) { if (trg.xpp != undefined) { trg.xp = trg.xpp; trg.yp = trg.ypp; trg.d.gotoAndStop(5); trg.xpp = undefined; } } } if (trg.s == 58) { trg.bh = (trg.d._currentframe != 5 or trg.d.d._currentframe > 3) && (trg.d._currentframe != 6 or trg.d.d._currentframe < 7); if (trg.d._currentframe == 5 && trg.d.d._currentframe == 3 or trg.d._currentframe == 6 && trg.d.d._currentframe == 7) { _root.soundy('Meat_jumps' + random(5) + '.wav'); } } if (trg.d._currentframe < 3) { if (random(10) == 0 && trg.s != 10) { splater(trg.xp, trg.yp, random(10), Math.random() * 0.5 + 0.2); } walkframe(); if (trg.s == 58) { pathfind(trg, playx, playy, 0.8); } else { if (trg.s == 24) { pathfind(trg, playx, playy, 0.4 + trg.alter * 0.35); } else { pathfind(trg, playx, playy, 0.6); } } sideflip(trg.xbew); if (trg.s == 58) { if (random(30) == 0 && !trg.lastv) { trg.d.gotoAndStop(6); } } } else { if (trg.alter == 2) { if (enfcheck(trg.xp, trg.yp, player.xp, player.yp, 200)) { enf = 0.5 / enf; trg.xbew += xenf * enf; trg.ybew += yenf * enf; } trg.xbew *= 0.83; trg.ybew *= 0.83; } else { trg.xbew *= 0.7; trg.ybew *= 0.7; } } } } function physix() { for (e in ball) { trg = ball[e]; f1 = 1; if (trg.s < 5) { if (sloww > -40) { f1 = Math.max(0.75, 0.5 - sloww / 80); if (sloww > 0) { trg.free = true; } } else { f1 = 1; } } else { if (slow > -40) { f1 = Math.max(0.5, 0.5 - slow / 80); if (slow > 0) { trg.free = true; } } else { if (trg.spid > 0) { --trg.spid; trg.xbew *= 0.7; trg.ybew *= 0.7; } } } if (trg.s == 7 or trg.s == 8) { if (Math.abs(trg.ybew) <= 0) { trg.ybew = trg.ypp * 0.7; } } if (trg.frezz <= 0 or scare > 0) { if (f1 == 1) { trg.xp += trg.xbew; trg.yp += trg.ybew; } else { trg.xp += trg.xbew * f1; trg.yp += trg.ybew * f1; } } trg.rr = 0; trg.yb = 0; trg.xb = 0; } for (e in ball) { trg = ball[e]; if (trg.dones) { trg.ybew = 0; trg.xbew = 0; trg2 = undefined; if (trg.s == 9) { if (trg.bomb) { bomf.push([trg.xp, trg.yp, true, trg.pois]); } else { trg2 = parc('bloodsplash', trg.xp, trg.yp + trg.d._y, random(360), trg.d._xscale, trg.dpppp + 123); if (trg.colo) { var v2 = new flash.geom.Transform(trg2); v2.colorTransform = trg.colo; } if (blackout == 2) { colorit(trg2, 0, 0, 0, 0, 0, 0); } } trg.done = true; } switch (trg.s) { break; case 1: case 43: case 20: trg.d.gotoAndStop(5); trg2 = trg.d.d; if (trg2._currentframe < 66 && fra % 10 == 0) { trg.lasts = trg2._currentframe < 55; gosplash(); } break; case 5: trg2 = trg.d.d.d; break; case 2: if (trg.bomb) { trg.spl = 30; trg.header = true; trg.dfr = true; trg.s = 4; attach(trg, 4); trg.d.gotoAndStop(5); trg2 = undefined; } else { case 9: if (!trg.dsound) { trg.dsound = true; _root.soundy('TearImpacts' + random(3) + '.mp', 85); } case 7: case 8: if (trg.s != 4) { if (!trg.firstt) { trg.firstt = true; trg.d._rotation = random(360); } if (random(30) == 0) { splater(trg.xp, trg.yp, trg.spl + 1 + random(10), Math.random() * 0.8 + 0.1); } trg2 = trg.d; } break; case 19: if (_root.levz[_root.lev] <= 0) { f1 = true; for (a in ball) { trg2 = ball[a]; if (trg2.s == 19 && !trg2.dones) { f1 = false; } } if (f1) { trg.bossd = true; } } default: if (trg.s == 77) { trg.d.gotoAndStop(14); } else { if (trg.s == 76) { trg.d.gotoAndStop(12); } else { if (trg.s == 73) { trg.d.gotoAndStop(9); } else { if (trg.s == 72) { trg.d.gotoAndStop(6); } else { if (trg.s == 28) { trg.d.gotoAndStop(trg.mag + 6); } else { if (!trg.dfr) { trg.d.gotoAndStop(3); } } } } } } trg2 = trg.d.d; if (trg.s == 28) { if (trg2._currentframe > 70 - trg.mag * 18 && trg2._currentframe < 84 - trg.mag * 21 && fra % 5 == 0) { splater(trg.xp, trg.yp, random(10) + 1 + trg.spl, 1 + Math.random() * 2); gosplash(); } } else { if (trg.s == 36) { if (trg2._currentframe < 80 && fra % 7 == 0) { splater(trg.xp, trg.yp, random(10) + 1 + trg.spl, 1 + Math.random() * 3.5); gosplash(); } } else { if (!trg.firsttx) { trg.firsttx = true; gosplash(); } } } f1 = Math.random() * 0.7 + 0.4; if (trg.s == 14) { f1 *= 0.7; } if (trg2._currentframe <= 3) { splater(trg.xp, trg.yp, random(10) + 1 + trg.spl, f1); } } } if (trg2._currentframe == trg2._totalframes && trg2._alpha) { trg.done = true; } else { trg2.nextFrame(); } trg.sh._visible = false; } } e = 0; while (e < ball.length) { trg = ball[e]; if (trg.d.done or trg.done or trg.s <= -10) { if (trg.s == 4) { if (_root.so.data.bomb > 100) { _root.locker[35] = true; } } ball.splice(e, 1); removeMovieClip(trg); trg.swapDepths(87); } ++e; } e = 0; while (e < ball.length) { trg = ball[e]; trg.gh = false; ++e; } topz(3); grid.fillRect(grid.rectangle, 0); grid2.fillRect(grid2.rectangle, 0); tests.fillRect(tests.rectangle, 0); e = 0; bollocks = []; bollocks2 = []; while (e < ball.length) { trg = ball[e]; if (trg == player) { ea = e; } ++e; if (trg.s > 3) { if ((trg.pbh or trg.outway) && trg.bh && !trg.dones) { f1 = gridp(trg.xp, trg.yp, -0.5, -0.5); gridput2([int(f1[0] + gridmax), int(f1[1])], e); gridput2([int(f1[0] + gridmax), int(f1[1] + 1)], e); gridput2([int(f1[0]), int(f1[1])], e); gridput2([int(f1[0]), int(f1[1] + 1)], e); } else { if (trg.ph && trg.bh && !trg.dones) { bollocks.push(e - 1); } else { if (trg.bh && !trg.dones) { f1 = gridp(trg.xp, trg.yp, -0.5, -0.5); gridput([int(f1[0] + gridmax), int(f1[1])], e); gridput([int(f1[0] + gridmax), int(f1[1] + 1)], e); gridput([int(f1[0]), int(f1[1])], e); gridput([int(f1[0]), int(f1[1] + 1)], e); } } } } } gxee = gxe * gridmax; i = 1; while (i < gxee) { o = 1; while (o < gye) { z = 0; for (;;) { if (!(z < gridmax && grid.getPixel(i + z, o) != 0)) break; e = grid.getPixel(i + z, o) - 1; c = z + 1; for (;;) { if (!(c < gridmax && grid.getPixel(i + c, o) != 0)) break; a = grid.getPixel(i + c, o) - 1; ballhit(e, a); ++c; } ++z; } ++o; } i += gridmax; } bollocks3 = []; for (e in ball) { trg = ball[e]; if (trg.bh && !trg.outway) { if (trg.s < 5 or trg.s == 44 or trg.s == 28) { f1 = gridp(trg.xp, trg.yp); i = f1[0]; o = f1[1]; z = 0; for (;;) { if (!(z < gridmax && grid2.getPixel(i + z, o) != 0)) break; a = grid2.getPixel(i + z, o) - 1; ballhit(e, a); ++z; } if (trg.s < 5) { z = 0; for (;;) { if (!(z < gridmax && grid.getPixel(i + z, o) != 0)) break; a = grid.getPixel(i + z, o) - 1; ballhit(e, a); ++z; } } } } } for (i in bollocks) { a = bollocks[i]; e = ea; ballhit(e, a); for (z in flys) { e = flys[z]; ballhit(e, a); } } tip(3); if (flys.length > 2) { fll = 0.6666666666666666; } else { fll = 1; } flys = []; for (e in ball) { trg = ball[e]; trg.xbew += trg.xb; trg.ybew += trg.yb; trg.rr = 0; trg.yb = 0; trg.xb = 0; } topz(4); for (e in ball) { trg = ball[e]; if (!trg.ggh && !trg.dones) { f1 = trg.s > 2; if (trg == player or trg.s == 23 or trg.s == 55 or trg.s == 32 or trg.s == 44) { f1 = !enfcheckx(trg.xp, trg.yp, 320, 280, 1000) or hhorse > 0; } if (trg.s == 84) { trg.xp = Math.min(580, Math.max(60, trg.xp)); } else { if (trg.s < 67 && trg.s > 62 or trg.s == 83) { trg.yp = Math.min(410, Math.max(170, trg.yp)); } else { if (trg.flyai) { trg.xp = Math.min(580, Math.max(60, trg.xp)); trg.yp = Math.min(410, Math.max(180, trg.yp)); } else { if (f1 && !trg.sic && !trg.horse && trg.s != 9 && !(trg.s >= 63 && trg.s <= 66)) { trg.xp = Math.min(580, Math.max(60, trg.xp)); trg.yp = Math.min(417, Math.max(145, trg.yp)); if (trg == player) { if (trg.xp == 580 or trg.xp == 60 or trg.xp == 417 or trg.xp == 145) { if (horse < 90) { horse = undefined; trg.xbew *= 0.6; trg.ybew *= 0.6; } f1 = ingrid(trg.xp, trg.yp); if (levz[f1] > 1 && hhorse <= 0) { turdb = f1; } } } } } } } if (trg == player) { if (turdb) { outgrid(turdb); if (enfcheck(xenf, yenf, trg.xp, trg.yp, 35)) { turdz = levz[turdb]; levz[turdb] = 0; } else { turdb = undefined; } } } f1 = trg.xp; f2 = trg.yp; f6 = 0; f5 = 0; siz = sizes[trg.s] + 2; v1 = trg.s; if (trg == player) { if (ladder != undefined) { if (levz[ladder] == 3) { levz[ladder] = 0; } } } if (trg.shot) { if (trg._alpha > 50 && trg.sss != 84 && !trg.knife) { if (mhity(f1, f2)) { f3 = false; for (i in hardx[v1]) { f3 = !f3; if (f3) { if (mhity(f1 + hardx[v1][i], f2 + hardy[v1][i])) { f5 += hardx[v1][i]; f6 += hardy[v1][i]; } } } f3 = true; if (Math.abs(f5) > 0 or Math.abs(f6) > 0 or trg.gh) { for (i in hardx[v1]) { f3 = !f3; if (f3) { if (mhity(f1 + hardx[v1][i], f2 + hardy[v1][i])) { f5 += hardx[v1][i]; f6 += hardy[v1][i]; } } } } } } else { if (random(10) == 0 or trg.knife) { killshit(ingrid(trg.xp, trg.yp)); } } } else { if (trg.flyby) { f3 = false; for (i in hardx[v1]) { f3 = !f3; if (f3) { if (mhitx(f1 + hardx[v1][i], f2 + hardy[v1][i])) { f5 += hardx[v1][i]; f6 += hardy[v1][i]; } } } f3 = true; if (Math.abs(f5) > 0 or Math.abs(f6) > 0 or trg.gh) { for (i in hardx[v1]) { f3 = !f3; if (f3) { if (mhitx(f1 + hardx[v1][i], f2 + hardy[v1][i])) { f5 += hardx[v1][i]; f6 += hardy[v1][i]; } } } } } else { f3 = false; for (i in hardx[v1]) { f3 = !f3; if (f3) { if (mhit(f1 + hardx[v1][i], f2 + hardy[v1][i])) { f5 += hardx[v1][i]; f6 += hardy[v1][i]; } } } f3 = true; if (Math.abs(f5) > 0 or Math.abs(f6) > 0 or trg.gh) { for (i in hardx[v1]) { f3 = !f3; if (f3) { if (mhit(f1 + hardx[v1][i], f2 + hardy[v1][i])) { f5 += hardx[v1][i]; f6 += hardy[v1][i]; } } } } } } if (Math.abs(f5) > 0 or Math.abs(f6) > 0) { if (trg.s == 9) { trg.dones = true; } if (trg == player && fra > 20) { if (horse < 90) { horse = undefined; trg.xbew *= 0.6; trg.ybew *= 0.6; } f1 = f6 * trg.ybew + f5 * trg.xbew; trg.xbew *= 0.88; trg.ybew *= 0.88; if (f1 > 0 or lastf1 > fra) { if (f1 > 0) { lastf1 = fra + 4; } trg.ghhh = true; if (lastf2 <= fra) { lastf2 = fra + 10; if (Math.abs(f5) > Math.abs(f6)) { lastxx = 0; lastxy = 1; } else { lastxy = 0; lastxx = 1; } } } } if (trg.s == 2 && !trg.dones) { trg.dones = true; v2 = 10 / enfget(trg.xbew, trg.ybew); v2 = ingrid(trg.xp + trg.xbew * v2, trg.yp + trg.ybew * v2); v1 = trg.dmg > 5; if (!killshit(v2, v1)) { if (!killshit(ingrid(trg.xp + 10, trg.yp), v1)) { if (!killshit(ingrid(trg.xp, trg.yp + 10), v1)) { if (!killshit(ingrid(trg.xp - 10, trg.yp), v1)) { killshit(ingrid(trg.xp, trg.yp - 10, v1)); } } } } } roty = sizes[trg.s] * Math.PI / 180; f7 = Math.sqrt(f5 * f5 + f6 * f6); f5 /= f7; f6 /= f7; if (trg.rotn != undefined) { trg.roty = (Math.atan(-f5 / f6) / Math.PI) * 180; if (f6 >= 0) { trg.roty += 180; } trg.rotn = 3; } f8 = -f5 * trg.xbew - f6 * trg.ybew; if (f8 < 0) { ++trg.rr; trg.gh = true; f9 = f8 * 1.8 - 0.1; if (f9 < -10) { soundy('mh'); } trg.xbew += f5 * f9; trg.ybew += f6 * f9; siz = Math.sqrt(trg.xbew * trg.xbew + trg.ybew * trg.ybew); siz2 = sizes[trg.s]; if (siz > 0 && f8 < 0) { f1 = trg.xp; f2 = trg.yp; if (trg.shot) { if (trg.s == 14 or trg.s == 13) { siz2 = 5; } v2 = siz2 - 10; for (;;) { if (!(!mhity(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10)) break; v2 += 4; } v2 -= 4; for (;;) { if (!(!mhity(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10)) break; v2 += 0.5; } } else { if (trg.flyby) { v2 = siz2 - 10; for (;;) { if (!(!mhitx(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10)) break; v2 += 4; } v2 -= 4; for (;;) { if (!(!mhitx(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10)) break; v2 += 0.5; } } else { v2 = siz2 - 10; for (;;) { if (!(!mhit(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10)) break; v2 += 4; } v2 -= 4; for (;;) { if (!(!mhit(f1 + f5 * v2, f2 + f6 * v2) && v2 < siz2 + 10)) break; v2 += 0.5; } } } v2 -= siz2; if (v2 > 0) { v2 = 0; } else { v2 *= Math.max(0.2 - v2 * 0.05, 1); } trg.xp += f5 * v2; trg.yp += f6 * v2; f8 = -f8 / siz; f8 = 1 - f8 * 0.5; trg.xbew *= f8; trg.ybew *= f8; } } } if (turdz) { levz[turdb] = turdz; turdz = undefined; } if (trg.rr > 0) { trg.xbew += trg.xb / trg.rr; trg.ybew += trg.yb / trg.rr; } if (trg == player) { if (ladder != undefined) { if (levz[ladder] == 0) { levz[ladder] = 3; } } } } } e = 0; while (e < ball.length) { trg = ball[e]; if (trg.laser) { trg2 = trg.d.l; if (Math.abs(trg.xpp) > Math.abs(trg.ypp)) { f1 = lass; } else { f1 = lass; } trg2._yscale = f1; trg2._xscale = lassd * 30; } trg._x = trg.xp; trg._y = trg.yp; if (trg.s == 19) { } else { if (trg.s == 26.5) { } if (trg.worm) { if (trg.d._y > 10) { trg2 = worm[1]; trg._y = Math.min(trg._y, trg2.yppp); } } if (trg.s == 2) { trgdy(!trg.piss); } else { if (trg.s == 7 or trg.s == 8 or trg.s == 9) { trgdy(); } } if (!trg.nod) { trg.dpppp = Math.max(e, Math.round(trg.yp) * 100 + 10030 + e); if (trg.s == 28) { trg.dpppp += 2500 - trg.mag * 1000; } if (trg.s == 5 && trg.d._currentframe == 9) { trg.dpppp -= 2500; } if (trg.s == 26.5) { trg.dpppp += 2500; } if (trg.worm) { if (trg.worm == 7) { trg.dpppp += 1000; } else { trg.dpppp -= Math.max(-30, trg.d._y) * 200; } } if (trg.s == 1 && trg.dones) { trg.dpppp += 100000000; } if (trg.flyai && gurdy) { trg.dpppp += 6000; } trg.swapDepths(trg.dpppp); } if (trg.col) { trg.d.d.d.d.d.p.gotoAndStop(trg.col); trg.d.d.d.d.p.gotoAndStop(trg.col); trg.d.d.d.p.gotoAndStop(trg.col); trg.d.d.p.gotoAndStop(trg.col); } } ++e; } tip(4); } function emo(f1) { if (f1) { if (emosound) { _root.soundy('thumbs down.wav'); } player.d.gotoAndStop(10); } else { if (emosound) { _root.soundy('thumbsup.wav'); } player.d.gotoAndStop(9); } } function lsou() { if (trg.ris + 27 <= fra) { if (trg.s == 84) { _root.soundy('hand lasers.mp'); } else { if (trg.s == 1 or trg.s == 43 or trg.s == 49) { _root.soundy('Blood_Laser_Large.mp'); } else { if (trg.s == 60) { _root.soundy('RedLightning_Zap_' + random(3) + '.mp'); } else { _root.soundy('Blood_Laser' + random(2) + '.mp'); } } } } trg.ris = fra; } function lasershowx(f1) { lsou(); xenf = Math.cos(f1); yenf = Math.sin(f1); for (a in ball) { trg2 = ball[a]; if (trg2.s != trg.s && !trg2.dones && (trg2.bh or trg2.s == 19) && trg2.s != 78 && !trg2.shot) { f4 = trg.xp - trg2.xp; f5 = trg.yp - trg2.yp; f2 = linearcut(f4, f5, xenf, yenf, -yenf, xenf); if (Math.abs(f2) < sizes[trg2.s] + 5) { if (linearcut(f4, f5, -yenf, xenf, xenf, yenf) < 0) { if (trg2 == player) { playerhurt(1, trg.s); } else { if (trg == player or !trg2.bosser) { hurt(trg2, 22); } } } } } } } function lasershow(trg, f50) { if (!f50) { lsou(); } if ((fra + trg.e) % 2 == 0 or trg == player && ups[118] or f50) { if (f50) { f1 = trg.xp; f2 = trg.yp; lass = 700; i = 1; while (i < 700) { f1 += trg.xpp * 10; f2 += trg.ypp * 10; f3 = ingrid(f1, f2); if (levz[f3] >= 1 && levz[f3] != 3 && (!ups[115] or !ups[68]) or f2 < 140 or f2 > 440 or f1 > 615 or f1 < 40) { lass = i; i = 1000; } i += 10; } lasx = trg.xp; lasy = trg.yp; } if (f50 != 2) { lassd = dmgdo(); if (ups[2]) { lassd *= 3; } if (ups[132]) { lassd += 2; } wtftex = lassd; if (ups[118]) { lass = 10000; lassd *= 3; if (ups[69]) { v111 = Math.max(0.1, Math.min(1, (fra - lchaf) / 60)); lassd *= v111; wtftex += ' ' + lchaf; wtftex += ' ' + v111; } } _root.firrb = lassd; } for (a in ball) { trg2 = ball[a]; if (trg2.s != trg.s && (trg.s != 3 or trg2 != player) && !trg2.dones && trg2.bh && !trg2.shot) { if (hps[trg2.s] > 0) { f1 = false; xenf = trg.xp - trg2.xp; yenf = trg.yp - trg2.yp; if (f50) { f2 = 5; } else { f2 = 25; } if (trg2 == player) { f2 = 10; } f2 += sizes[trg2.s]; if (Math.abs(trg.xpp) > Math.abs(trg.ypp)) { if (Math.abs(yenf) < f2) { if (xenf * trg.xpp < 0) { f1 = true; } } } else { if (Math.abs(xenf) < f2) { if (yenf * trg.ypp < 0) { f1 = true; } } } if (f1) { if (trg2 == player) { playerhurt(0.5, trg.s); } else { if (f50 or !f50 && trg == player && ups[118]) { if (enfget(xenf, yenf) - 20 < lass) { hurt(trg2, lassd); spidcol(trg2); } } else { if (trg.s != 39 && (trg2.s != 84 or trg == player)) { hurt(trg2, 22); } } } } } } } f1 = 1000; if (f50) { f1 = lass + 10; } a = 0; while (a < f1) { killshit(ingrid(trg.xp + trg.xpp * a, trg.yp + trg.ypp * a), f50 && lassd > 5); a += 10; } } } function laps() { keyhole = false; if (keypoww > 0) { keypoww -= 0.2; } if (_root.keys > 0 or ups[60] or demon > 0 or _root.coins > 0 or unic > 0) { f1 = roxx / enfget(player.xbew, player.ybew); f3 = ingrid(player.xp + player.xbew * f1, player.yp + player.ybew * f1); outgrid(f3); trg.s = 4; if (levz[f3] == 1 && demon > 0) { bloww(f3, trg.xbew, trg.ybew); } else { if (demon > 0 or unic > 0) { killshit(f3, demon > 0); } } trg.s = 1; if (_root.keys > 0 or _root.coins > 0) { keyhole = f3; } if (levz[f3] == 4 && _root.keys > 0) { if (f3 != keypow) { keypow = f3; keypoww = 0; } else { if (keypoww++ > 2.8 && !player.flyby) { _root.soundy('Unlock00.wav', 100); --_root.keys; levz[f3] = 1.01; killshit(f3); _root.soundy('metal_blockbreak' + random(2) + '.wav', 100); } } } if (levz[f3] == 3 && ups[60]) { if (ladder != ingrid(player.xp, player.yp)) { if (Math.abs(trg.xbew) < Math.abs(trg.ybew)) { if (f3 != alad) { if (trg.ybew < 0) { lads._rotation = 0; } else { lads._rotation = 180; } } if (levz[f3 + rowz] == 3 or levz[f3 - rowz] == 3) { f3 = 0; } } else { if (f3 != alad) { if (trg.xbew > 0) { lads._rotation = 90; } else { lads._rotation = -90; } } if (levz[f3 + 1] == 3 or levz[f3 - 1] == 3) { f3 = 0; } } if (f3 > 0) { ladder = f3; alad = ladder; outgrid(ladder); lads._x = xenf; lads._y = yenf; lads._visible = true; } } } } if (ladder != undefined) { outgrid(ladder); if (!enfcheck(xenf, yenf, player.xp, player.yp, 100)) { ladder = undefined; lads._x = -10000; lads._visible = false; } else { outgrid(ladder); lads._x = xenf; lads._y = yenf; lads._visible = true; } } } function roll(f1) { if (f1) { roller = f1 - 1; } --roller; return random(roller + 1) == 0; } function tart(f1, f3) { var v1 = ['X Wheel of fortune', 'XV The Devil', 'XIII Death', 'XI Strength', '0 The Fool', 'I The Magician', 'IX The hermit', 'XVIII The Moon', 'XII The hanged Man', 'XX Judgement', 'VII The Chariot', 'VI The Lovers', 'XXI The World', 'VIII Justice', 'XVI Temperance', 'IV The Emperor', 'XVI The Tower', 'V The Hierophant', 'II The High Priestess', 'III The Empress', 'XIX The Sun', 'XVII The Stars']; v1 = v1[f1 - 7]; if (!f3) { st11(v1); } else { return v1; } } function goodpill() { _root.soundy('Powerup_spewer.wav', 100); } function fart() { trg2 = create(trg.xp, trg.yp, 0, 0, 0, 0, 4); trg2.dones = true; trg2._yscale = 70; trg2._xscale = 70; trg2.d.gotoAndStop(5); trg2.s = 4.5; trg2.dfr = true; showit = false; for (z in ball) { trg2 = ball[z]; siz = 85 + sizes[Math.round(trg2.s)]; enf = enfcheck(trg.xp, trg.yp, trg2.xp, trg2.yp, siz); if (enf < siz && !trg2.dones && trg2.s > 9 && trg2.bh && !trg2.shot) { trg2.poiss = 200; trg2.poisd = 3.5; hurt(trg2, 5); } } _root.soundy('fart.mp'); } function horss(f1) { if (horse == 100 or hfff == fra) { if (f1) { xenf = -xenf; yenf = -yenf; } if (xenf != 0 or yenf != 0) { horsx = xenf; horsy = yenf; if (xenf != 0 && yenf != 0) { if (Math.abs(trg.xbew) > Math.abs(trg.ybew)) { horsy = 0; } else { horsx = 0; } } horse = 99; hfff = fra; } if (f1) { xenf = -xenf; yenf = -yenf; } } } function piller() { f10 = !ups[46] && !ups[75]; f1 = _root.piller[_root.pilc]; while (f1 == undefined) { if (f1 == undefined or f1 == 3 && ups[75] or f1 == 6 && (!f10 or player.hp < 1)) { if ((player.hp < player.mhp or _root.skiner == 4 && _root.armor < 3) && random(5) == 0) { f1 = 1; } else { if (random(10) == 0) { f1 = 12; } else { if (random(13) == 0 && !ups[75]) { f1 = 2; } else { if (random(8) == 0 && !ups[75]) { f1 = 3; } else { if (random(8) == 0) { f1 = 4; } else { if (random(20) == 0) { f1 = 5; } else { if (random(8) == 0 && player.hp + _root.armor > 1 && f10) { f1 = 6; } else { if (random(6) == 0) { f1 = 7 + random(2) * 0.2; } else { if (random(5) == 0 && (_root.bombs > 0 or _root.keys > 0)) { f1 = 8; } else { if (random(4) == 0 or random(3) == 0 && ups[75]) { f1 = 9 + random(2) * 0.2; } else { if (random(3) == 0) { f1 = 10 + random(2) * 0.2; } else { if (random(2) == 0 or ups[75]) { f1 = 11 + random(2) * 0.2; } else { f1 = 13; } } } } } } } } } } } } for (z in _root.piller) { if (f1 == _root.piller[z]) { f1 = undefined; } } _root.piller[_root.pilc] = f1; } } f1 = Math.round(_root.piller[_root.pilc]); if (f1 != _root.piller[_root.pilc]) { f2 = true; } else { f2 = false; } if (!f10) { f2 = true; } } function playc() { trg = player; f1 = levz[ingrid(trg.xp, trg.yp)]; if (f1 < 1) { playx = trg.xp; playy = trg.yp; } if (fra < 10 && (player.hp < 1 && _root.skiner != 4 or _root.armor < 1 && _root.skiner == 4)) { if (_root.skiner == 5) { splater(trg.xp, trg.yp, random(10) + 1, 0.3 + Math.random() * 0.5); } else { splater(trg.xp, trg.yp, random(10) + 20, 0.3 + Math.random() * 0.5); } } if (coinl) { coinl = false; if (_root.coins > 0) { --_root.coins; f3 = Math.min(_root.coins, random(3) + 1); z = 0; while (z < f3) { --_root.coins; f4 = random(5) + 2; trg2 = create(player.xp, player.yp, 0, crand(f4), crand(f4), 0, 5.02); trg2.col = 1; ++z; } } } if (bombdrop-- > 0) { drop.d.gotoAndStop(Math.max(1, Math.round(100 - bombdrop))); if (bombdrop == 2) { bomf.push([drop.xp, drop.yp, 4]); drop.done = true; } } trg2 = player; if (ups[53]) { for (a in ball) { trg = ball[a]; siz = 270; if (trg.s == 5) { if (!trg.empty && trg.d._currentframe <= 4 && trg.bh && (trg.d._currentframe != 1 or trg.col == 3 or player.hp < player.mhp)) { if (enfcheck(trg2.xp, trg2.yp, trg.xp, trg.yp, siz)) { enf = 0.5 / enf; trg.xbew += xenf * enf; trg.ybew += yenf * enf; trg.xbew *= 0.8; trg.ybew *= 0.8; trg.ggh = true; } } else { trg.ggh = false; } } } } if (scare > 0) { for (a in ball) { trg = ball[a]; siz = 270; if (trg.s > 9 && (!trg.flyai or trg.s == 18)) { trg.xp = Math.min(580, Math.max(60, trg.xp)); trg.yp = Math.min(410, Math.max(170, trg.yp)); if (enfcheck(trg2.xp, trg2.yp, trg.xp, trg.yp, siz)) { enf = ((siz - enf) / enf) * 0.007; trg.xbew -= xenf * enf; trg.ybew -= yenf * enf; trg.xbew *= 0.85; trg.ybew *= 0.85; if (trg.sf) { sideflip(trg.xbew); } if (trg.wf) { walkframe(); } } } } } else { if (slow > 0 or sloww > 0) { for (a in ball) { trg = ball[a]; if (trg.free) { colorit(trg, 1, 1, 1.3, 40, 40, 40); } } } else { if (freez > 0) { for (a in ball) { trg = ball[a]; if (trg.free) { trg.frezz = freez + 1; colorit(trg, 0.22, 0.22, 0.22, 40, 40, 40); } } } else { if (freez == 0 or slow == 0 or sloww == 0) { for (a in ball) { trg = ball[a]; if (trg.free) { trg.free = undefined; speco(trg); } } } } } } trg = player; trg = player; trg = player; if (trg.dones) { unpause = false; trg.xbew *= 0.8; trg.ybew *= 0.8; playcol(); } else { if (firecheck(player)) { if (!relf) { playerhurt(0.5, 6); } else { if (relf == 2) { playerhurt(1, 5); } else { playerhurt(1, 7); } } } f1 = lasth - fra; if (f1 > 6 or unic > 0 && (!pacman or unic < 30)) { if (f1 % 3 == 0 or unic > 0) { if (f1 % 2 == 0) { playcol(true); } else { playcol(); } } } else { playcol(); } for (e in door) { trg = door[e]; if (trg._visible && player._visible && lastspin <= fra && !(hhorse > 0 && ashut > 0)) { v1 = enfcheck(trg.xp, trg.yp, player.xp, player.yp, 35); if (v1 < 25 && trg.nod && fra > 30) { if (shutdoor != 0) { _root.beenlev[_root.lev] = false; } _root.door = e; if (e == 0 or e == 2) { _root.playerx = 610 - trg._x * 0.9; _root.playery = 280; } else { _root.playerx = 320; _root.playery = 530 - trg._y * 0.9; } invp(); _root.old.fillRect(_root.old.rectangle, 0); _root.old.draw(this); _root.olda._x = 0; _root.olda._y = 0; _root.olda._visible = true; moveon(); _root.lev = trg.gol; _root.gotoAndStop('reset'); } if (!v1) { trg.nod = true; } } } trg = player; if (_root.bombnext) { if (trg.d._currentframe == 11) { if (trg.d.d.d._currentframe > 9) { trg.d.d.d.gotoAndStop(10); } } else { trg.d.gotoAndStop(11); trg.it = 42; } } if (trg.d._currentframe >= 3) { if (!_root.bombnext) { trg.fire = 5; } trg.xbew *= 0.8; trg.ybew *= 0.8; } else { if (Key.isDown(17) or Key.isDown(16) or Key.isDown(69)) { bomb(); } bomberfail -= 0.024; if (bomberfail > 0 && nextbo) { --bomberfail; lastbo = 0; bomb(2); nextbo = false; } if ((Key.isDown(81) && !_root.so.data.frog or Key.isDown(65) && _root.so.data.frog) && fra > 30 && _root.pilc != undefined) { _root.hud.pilll.gotoAndStop(3); player.d.gotoAndStop(11); player.it = 43; player.d.d.d.it.d.gotoAndStop(player.it); player.d.d.d.it.d.p.gotoAndStop(_root.pilc); if (_root.pilc >= 7) { tart(_root.pilc); switch (_root.pilc) { case 28: teller(); tar = _root.boner; _root.bona = true; break; case 27: _root.over.gotoAndStop(15); player.hp = 1000; ups[54] = true; ups[21] = ups[54]; _root.world = true; mapd(); for (e in ball) { trg2 = ball[e]; hurt(trg2, 100); } break; case 26: curs(); ups[122] = 1.5; break; case 25: f1 = 0; f2 = 4; for (z in ball) { trg2 = ball[z]; if (trg2.s > 9 && trg2.s != 45 or trg2 == player) { if (trg2.hp > f2 && trg2.pow != 1 && trg2.pow != 2) { f2 = trg2.hp; f1 = z; } } } trg3 = ball[f1]; trg2 = create(trg3.xp, trg3.yp, 0, 0, 0, 0, 45); trg2.weap = true; trg2.ggh = true; trg2.d.gotoAndStop(20); trg2.trg2 = trg3; trg2.bh = false; trg2.fra = -100; break; case 20: spaw(player.xp, player.yp, 45, 5.01); spaw(player.xp, player.yp, 45, 5.02); spaw(player.xp, player.yp, 45, 5.03); spaw(player.xp, player.yp, 45, 5.04); break; case 19: ups[54] = true; ups[21] = ups[54]; _root.world = true; mapd(); break; case 18: f1 = 40; trg2 = spaw(player.xp + f1, player.yp, 0, 5.01); trg3 = spaw(player.xp - f1, player.yp, 0, 5.01); trg2.col = 1; trg3.col = 1; break; case 24: f1 = 40; trg2 = spaw(player.xp + f1, player.yp, 0, 5.01); trg3 = spaw(player.xp - f1, player.yp, 0, 5.01); trg2.col = 3; trg3.col = 3; break; case 17: player.it = 77; unic = 180; _root.mmus = _root.soundy('isaacunicorn.mp', 100); break; case 23: anarch = 30; break; case 21: spaw(player.xp, player.yp, 45, 5.31); _root.soundy('summonsound.wav', 120); break; case 22: teller(); tar = _root.bossl; break; case 16: spaw(player.xp, player.yp, 45, 5.32); _root.soundy('summonsound.wav', 120); break; case 7: spaw(player.xp, player.yp, 45, 5.08); _root.soundy('summonsound.wav', 120); break; case 8: doub = true; _root.over.gotoAndStop(2); _root.soundy('Devil_Card.mp', 100); break; case 9: _root.over.gotoAndStop(11); _root.soundy('Death_Card.mp', 100); for (e in ball) { trg2 = ball[e]; hurt(trg2, 60); } ++_root.so.data.dde; if (_root.so.data.dde > 4) { _root.locker[48] = true; } break; case 10: ++player.hp; ++ups[12]; break; case 11: teller(); tar = 35; break; case 12: ++ups[3]; break; case 13: teller(); tar = _root.shopl; _root.shopa = true; break; case 14: teller(); tar = _root.hide; break; case 15: ++ups[20]; } } else { piller(); switch (Math.round(f1)) { case 6: if (player.hp + _root.armor > 1) { lasth = 0; playerhurt(1, 201); st22('Bad Trip!'); } else { case 1: if (_root.skiner == 4) { if (_root.armor < 3) { _root.armor = 3; } } else { player.hp = player.mhp; } st22('Full Health'); goodpill(); emo(); break; case 2: _root.hmode = 16; st11('I found Pills'); st22('And ate them!'); _root.soundy('derp.mp'); break; case 3: bomberfail = 5.5; st22('Oh no!'); emo(true); _root.soundy('fart.mp'); break; case 4: _root.armor += 2; st22('Balls of Steel'); goodpill(); emo(); break; case 5: _root.ups[10] += 0.5; ups[10] = _root.ups[10]; st22('Pretty Fly'); goodpill(); emo(); break; case 7: if (_root.skiner != 4) { f13 = player.mhp; } else { f13 = _root.armor; } if (f13 <= 1 or f2) { st22('Health Up'); if (_root.skiner == 4) { ++_root.armor; } else { ++_root.ups[15]; } pilcol(100, 50, 50); goodpill(); emo(); } else { if (_root.skiner == 4) { --_root.armor; } else { --_root.ups[15]; } st22('Health Down'); emo(true); } ups[15] = _root.ups[15]; break; case 8: f1 = _root.bombs; _root.bombs = _root.keys; _root.keys = f1; st22('Bombs are Key'); emo(); break; case 9: if (f2) { _root.ups[32] += 0.5; st22('Tears Up'); pilcol(80, 80, 100); goodpill(); emo(); } else { _root.ups[32] -= 0.4; st22('Tears Down'); emo(true); } ups[32] = _root.ups[32]; break; case 10: if (f2 or ups[6] && _root.chaps < 8) { _root.ups[31] += 0.5; st22('Range Up'); pilcol(50, 100, 100); emo(); goodpill(); } else { _root.ups[31] -= 0.4; st22('Range Down'); emo(true); } ups[31] = _root.ups[31]; break; case 11: if (f2) { ++_root.ups[27]; st22('Speed Up'); pilcol(100, 100, 50); goodpill(); emo(); } else { _root.ups[27] -= 0.8; st22('Speed Down'); emo(true); } ups[27] = _root.ups[27]; break; case 12: fart(); st22('Bad Gas'); break; default: f1 = random(15); if (_root.chaps != 9) { if (f1 == 0) { tar = 169; } else { if (f1 == 0 && _root.chaps != 1) { tar = 166; } } } st22('TelePills'); teller(); } } } player.pilc = _root.pilc; _root.pilc = undefined; } if ((Key.isDown(32) or Key.isDown(90) && !_root.so.data.frog) && (fra > 30 or _root.it == 90 && _root.lev != _root.bossl && _root.lev != 35) && player._visible) { if (!nosp) { nosp = true; if (_root.it > 0 && _root.itc >= 1) { doit = true; showit = true; pacman = false; if (_root.it == 84) { f1 = [2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 16, 17, 18, 19, 25, 26, 37, 38, 43, 44, 45, 46, 53, 57, 62, 67]; if (f1.length > 0) { f1 = f1[random(f1.length)]; _root.it = f1; f1 += itn2(f1); st22(_root.st1[f1]); } _root.over.gotoAndStop(14); goper = true; } switch (_root.it) { case 90: showit = false; horse = 100; break; case 83: _root.soundy('satan grow.mp', 70); f1 = [8, 73, 10, 57, 67, 88, 95, 99, 100, 112, 113, 128]; for (e in f1) { if (ups[f1[e]]) { f1.splice(e, 1); } } if (f1.length > 0) { f1 = f1[random(f1.length)]; ups[f1] = 1; } if (f1 == 73) { ups[f1] = random(2) + 2; } st22(_root.st1[f1]); _root.over.gotoAndStop(12); break; break; case 84: case 87: _root.beenlev[_root.lev] = false; _root.shroom = 3; _root.it = 0; _root.door = undefined; _root.playerx = 320; _root.playery = 400; _root.getup = true; --_root.chaps; newstart(false); _root.gotoAndStop('reset'); break; case 86: razor += 2; if (player.hp > 0.5 or _root.armor <= 0) { f11 = _root.armor; _root.armor = 0; playerhurt(0.5, 202); _root.armor = f11; } else { playerhurt(0.5, 202); } lasth = 0; if (player.hp > 0.5 or _root.armor <= 0) { f11 = _root.armor; _root.armor = 0; playerhurt(0.5, 202); _root.armor = f11; } else { playerhurt(0.5, 202); } showit = false; break; case 71: fart(); break; case 67: ++ups[20]; bodd = true; _root.soundy('bloodbank spawn1.wav', 300); break; case 65: for (a in ball) { trg2 = ball[a]; if (trg2.s == 5 && trg2.it && !trg2.empty) { trg2.it = giveit(); if (trg2.d._currentframe == 10) { trg2.d.d.gotoAndPlay(1); } } } break; case 62: pillc(4); showit = false; break; case 57: f1 = [5.0101, 5.0103, 5.0401, 5.03, 5.07, 5.3, 5.02]; f1 = f1[random(f1.length)]; spaw(trg.xp, trg.yp, 40, f1); break; case 38: if (_root.horsem && _root.lev != _root.bossl && _root.chaps < 8 && _root.chaps != 6) { _root.horse = true; _root.horsem = false; f1 = Math.round(_root.chaps / 2); _root.bosss = f1 + 8; if (random(10) == 0 && !_root.nohead) { _root.nohead = true; f1 = 5; _root.bosss = 22; } _root.levz[_root.bossl] = 'h' + f1; } ++_root.armor; break; case 43: demon = 200; _root.soundy('Monster_Yell_A_0.mp'); ++_root.armor; break; case 44: if (_root.chaps < 9) { spaw(trg.xp, trg.yp, 0, 5.09); } else { showit = false; doit = false; } break; case 45: pillc(3); showit = false; break; case 53: _root.mmus = _root.soundy('isaacunicorn.mp', 100); unic = 200; pacman = true; scare = 180; for (z in ball) { trg2 = ball[z]; trg2.uncol = fra + 2; } break; case 46: f1 = 0; f2 = 4; for (z in ball) { trg2 = ball[z]; if (trg2.s > 9 && trg2.s != 20) { if (trg2.hp > f2) { if (!enfcheck(trg2.xp, trg2.yp, player.xp, player.yp, 40)) { f2 = trg2.hp; f1 = z; } } } } if (f1 > 0) { trg3 = ball[f1]; trg2 = create(trg3.xp, trg3.yp, 0, 0, 0, 0, 20); trg2.weap = true; trg2.ggh = true; trg2.d.gotoAndStop(3); trg2.trg2 = trg3; trg2.bh = false; trg2.fra = -100; } else { showit = false; doit = false; } break; case 1: if (_root.chaps == 9 && _root.lev == _root.bossl) { _root.armor = 0; playerhurt(1000, 200); } else { if ((mom.length > 3 or mheart != undefined) && !bibs && (_root.chaps == 6 or _root.chaps == 8) && _root.lev == _root.bossl) { bibs = true; mheart.dones = true; for (z in mom) { mom[z].dones = true; mom[z]._visible = false; } momkill(); _root.locker[34] = true; } } bible = true; _root.over.gotoAndStop(8); _root.soundy('Book Page Turn 12.wav', 100); break; case 37: unic = 180; _root.mmus = _root.soundy('isaacunicorn.mp', 100); break; case 18: playsave = 300; break; case 16: create(trg.xp, trg.yp, 0, 0, 0, 0, 33); _root.soundy('BGascan_pour.wav', 100); break; case 2: doub = true; _root.over.gotoAndStop(2); _root.soundy('Devil_Card.mp', 100); break; case 3: _root.over.gotoAndStop(3); _root.soundy('Death_Card.mp', 100); for (e in ball) { trg2 = ball[e]; hurt(trg2, 40); } break; case 4: showit = false; f1 = ingrid(trg.xp, trg.yp); outgrid(f1); turd('breakblock', f1); _root.soundy('fart.mp'); turdb = f1; break; case 11: doit = false; showit = false; break; case 10: _root.bombnext = true; break; case 15: bombdrop = 100; drop = create(player.xp, player.yp, 0, 0, 0, 0, 37); break; case 7: _root.over.gotoAndStop(4); freez = 220; bra = true; break; case 9: _root.over.gotoAndStop(5); scare = 180; freez = 160; break; case 8: showit = false; if (fra - lastbo >= 30) { lasth = 0; lastbo = fra; bombfail(trg.xp, trg.yp); } break; case 5: showit = false; bomb(true); break; case 6: e = 0; while (e < 10) { trg2 = create(trg.xp, trg.yp, 0, Math.sin((e / 5) * Math.PI) * 10, Math.cos((e / 5) * Math.PI) * 10, 0, 2); trg2.d._xscale = 135.5; trg2.d._yscale = 135.5; ++e; } break; case 12: showit = false; teller(); break; case 13: ++player.hp; _root.soundy('Vamp_Gulp.mp'); break; case 17: showit = false; laser = 1; break; case 25: _root.over.gotoAndStop(6); _root.soundy('Book Page Turn 12.wav', 100); anarch = 30; break; case 26: _root.over.gotoAndStop(7); slow = 230; } if (showit) { player.d.gotoAndStop(11); player.it = _root.colit; player.d.d.d.it.d.gotoAndStop(player.it); player.d.d.d.it.d.p.gotoAndStop(player.pilc); } if (itc[_root.it] > 0 && doit) { if (ups[116]) { _root.itc = 0.334; } else { _root.itc = 0; } nocharge = 10; } if (goper) { goper = false; _root.it = 84; } } } } else { nosp = false; } } f1 = _root.bmode; if (demon > 0 or ups[122]) { sk = 7; } else { sk = _root.sk; } if (ups[20]) { f1 = 3; trg.flyby = true; } if (ups[82]) { f1 = 9; trg.flyby = true; } if (bible) { f1 = 12; trg.flyby = true; } if (sk == 7) { if (trg.flyby) { f1 = 9; } else { f1 = 8; } } else { if (sk == 5) { _root.hmode = 25; _root.bmode = 13; } } if (razor > 0) { } if (_root.it == 8 && !ups[20]) { f1 = 2; } if (_root.it == 90) { f1 = 16; trg.flyby = true; if (sk == 7) { f1 = 18; } else { if (sk == 5) { f1 = 17; } } } trg.d.bo.gotoAndStop(f1); if (enfget(trg.xbew, trg.ybew) < 2) { if (_root.it != 90 or fra < 3) { trg.d.bo.d.gotoAndStop(1); } } else { f1 = Math.abs(trg.xbew) > Math.abs(trg.ybew); if (_root.it == 9) { f1 = Math.abs(trg.xbew) * 0.5 > Math.abs(trg.ybew); } if (f1) { trg.d.bo.d.gotoAndStop(3); if (trg.xbew * trg.d.bo._xscale < -100) { trg.d.bo._xscale *= -1; } } else { if (_root.it == 90) { if (trg.ybew > 0) { trg.d.bo.d.gotoAndStop(1); } else { trg.d.bo.d.gotoAndStop(2); } } else { trg.d.bo.d.gotoAndStop(2); } if (_root.it == 90) { if (trg.xbew * trg.d.bo._xscale < -100) { trg.d.bo._xscale *= -1; } } } } dirkey(true); horss(true); if (xenf == 0) { lastx = fra; } if (yenf == 0) { lasty = fra; } if (md) { xenf = _xmouse - trg.xp; yenf = _ymouse - trg.yp + 10; if (Math.abs(xenf) < Math.abs(yenf)) { xenf = 0; } else { yenf = 0; } } if (ups[114]) { xxenf = xenf; yyenf = yenf; } if (xenf != 0 && yenf != 0) { if (lasty > lastx) { xenf = 0; } else { yenf = 0; } } if (nomove && !_root.bombnext && !chaf) { yenf = 0; xenf = 0; } if (bombdrop > 0) { if (!md) { drop.xbew += xenf * 4; drop.ybew += yenf * 4; } else { enfcheck(drop.xp, drop.yp, _xmouse, _ymouse, 10000); enf = Math.min(enf / 3, 4) / enf; drop.xbew -= xenf * enf; drop.ybew -= yenf * enf; } drop.xbew *= 0.8; drop.ybew *= 0.8; yenf = 0; xenf = 0; } v1 = plo; if (laser <= 1) { if (xenf != 0 or yenf != 0) { if (plox <= 8 && (!ups[118] or trg.fire <= 0 or chaf == undefined or _root.bombnext)) { if (Math.abs(xenf) > Math.abs(yenf)) { yenf = 0; if (xenf > 0) { xenf = 1; plo = 2; } else { plo = 4; xenf = -1; } } else { xenf = 0; if (yenf < 0) { plo = 3; yenf = -1; } else { yenf = 1; plo = 1; } } } if (laser == 1) { trg.xpp = xenf; trg.ypp = yenf; yenf = 0; xenf = 0; } ++laser; } } if (ups[68] && plox > 8) { plo = v1; } if (laser > 1) { trg.d.gotoAndStop(1); ++laser; trg.xbew *= 0.9; trg.ybew *= 0.9; if (laser > 21 && laser < 32 && fra % 3 != 0) { lasershow(trg); } if (laser > 40) { laser = undefined; } yenf = 0; xenf = 0; } if (ups[114] && !_root.bombnext) { if (knil == undefined) { knil = 23; knill = 0; knife.xppp = trg.xp; knife.yppp = trg.yp; knife.xbew = trg.xbew; knife.ybew = trg.ybew; } if (_root.knif == undefined) { _root.knif = 0; } if (ups[114]) { f1 = xxenf; f2 = yyenf; xxenf = xenf; yyenf = yenf; xenf = f1; yenf = f2; } else { xxenf = xenf; yyenf = yenf; } if (xenf != 0 or yenf != 0) { f1 = rotget(xenf, yenf) + 180; _root.knir = f1; } else { f1 = _root.knir; } knife.dmg = dmgdo() * (2 + Math.min(Math.max(knill, 0), 4)); knil += knill; knill -= 1.4; f1 -= knife.d.z._rotation; f1 = absmax(rotrund(f1), Math.max(0, 40 - knil)); knife.d.z._rotation += f1 * 0.7; _root.knif *= 0.98; if (knil < 23) { knil = 23; if ((xenf != 0 or yenf != 0) && Math.abs(f1) < 5) { firr(trg); _root.knif += Math.max(0.2, Math.min(0.35, (0.2 / trg.fire) * 10)); } if (_root.knif > 0.35 && xenf == 0 && yenf == 0 && !kkk) { knill = Math.min(20, Math.max(10, _root.firrr * 0.51) * (0.3 + _root.knif * 0.2)); _root.knif = 0; } knife.xppp = trg.xp; knife.yppp = trg.yp; knife.xbew = trg.xbew; knife.ybew = trg.ybew; } else { if (knill < 0) { knife.xppp *= 0.5; knife.yppp *= 0.5; knife.xppp += trg.xp * 0.5; knife.yppp += trg.yp * 0.5; } else { knife.xppp *= 0.8; knife.yppp *= 0.8; knife.xppp += trg.xp * 0.2; knife.yppp += trg.yp * 0.2; } } f1 = (knife.d.z._rotation / 180) * Math.PI; if (knife.d.z._rotation < -90 or knife.d.z._rotation > 90) { knife.d.z._yscale = -100; } else { knife.d.z._yscale = 100; } if (fra > 3) { knife.xp = knife.xppp + Math.cos(f1) * knil; knife.yp = knife.yppp + Math.sin(f1) * knil * 0.8 - Math.cos(f1) * 3; knife.xppp += knife.xbew; knife.yppp += knife.ybew; knife.xbew *= 0.8; knife.ybew *= 0.8; } if (fra % 3 == 0) { knife.hh = []; } yenf = 0; xenf = 0; } if (ups[118] && trg.d.d.d.d._currentframe > 4) { trg.d.d.d.d.z.nextFrame(); if (trg.d.d.d.d.z._currentframe == 4 or trg.d.d.d.d.z._currentframe == 11) { lasershow(trg); yenf = 0; xenf = 0; } } f1 = _root.fmode; f2 = _root.hmode; nohat = false; if (doub) { f1 = 8; f2 = 8; } if (ups[3] && !_root.ups[3]) { f1 = 4; f2 = 4; } if (sk != 5 && ups[69]) { f2 = 17; } if (ups[122]) { f2 = 30; } else { if (sk == 7) { if (ups[80]) { f2 = 20; } else { f2 = 22; } } } if (razor > 0) { f2 = 29; } if (demon > 0) { f2 = 21; nohat = true; } if (ups[68]) { if (sk == 5) { f2 = 28; } else { if (sk == 7) { f2 = 27; } else { f2 = 10; } } f1 = 12; } if (ups[118]) { f2 = 31; } if (laser) { f2 = 14; } if (unic > 0) { if (pacman) { f2 = 23; } else { f2 = 19; } nohat = true; } chaaf = 0; if (trg.d._currentframe == 1 or _root.bombnext) { if (trg.d._currentframe == 1) { trg.d.d.d.gotoAndStop(f2); if (f2 == 17 or f2 == 31) { f0 = Math.round((fra - chaf) / 8); if (plox <= 8 && chaf == undefined) { f0 = 0; if (f2 == 31) { trg.d.d.d.gotoAndStop(33); plo = 1; } else { trg.d.d.d.gotoAndStop(1); } } else { chaaf = Math.max(1, Math.min(6, f0)); } } z = 0; while (z < 6) { trg2 = trg.d.d.d['hat' + z]; f3 = _root.hatmode[z]; if (_root.colit == 86 && z == 0) { f3 = 18; } if (z == 4) { if (ups[117]) { f3 = 38; } if (bra && freez > 0) { f3 = 28; } } if (f3 > 0 && !nohat) { trg2.gotoAndStop(f3); trg2.d.stop(); trg2.d.gotoAndStop(plo); if (z != 0) { trg2._x = trg.d.d.d.hat0._x; trg2._y = trg.d.d.d.hat0._y; } } else { trg2.gotoAndStop(1); } ++z; } } _root.hud.weap.gotoAndStop(f1); if (Math.abs(xenf) < 0.5 && Math.abs(yenf) < 0.5 && !kkk && (ups[69] or ups[118]) && !_root.bombnext) { if (chaf > -1000 && Math.abs(chax) + Math.abs(chay) > 0) { if (chaaf > 4.7 or ups[69]) { chaz = true; xenf = chax; yenf = chay; } else { chay = 0; chax = 0; chaf = undefined; plo = 1; } } } if (pacman) { if (trg.d.d.d.d._xscale * trg.xbew < -300) { trg.d.d.d.d._xscale *= -1; if (trg.d.d.d.d._xscale < 0) { trg.d.d.d.d._x = 40.7; } else { trg.d.d.d.d._x = 0; } } } else { if (pacoo) { pacoo = false; trg.d.d.d.d._xscale = 100; trg.d.d.d.d._x = plxx; } else { plxx = trg.d.d.d.d._x; } if (Math.abs(xenf) > 0.5 or Math.abs(yenf) > 0.5 or ups[114] && (xxenf != 0 or yyenf != 0)) { plff(); } else { if (plox < 0 && laser <= 1 && !ups[118]) { plo = 1; } if (!ups[118] or trg.fire < 4) { trg.d.d.d.d.gotoAndStop(plo); } } } if (trg.d._currentframe == 1) { if (laser > 1) { trg.d.d.d.d.d.gotoAndStop(laser); } if (chaaf > 0) { if (trg.d.d.d.d._currentframe < 5) { trg.d.d.d.d.d.gotoAndStop(chaaf); } } else { if (_root.hmode == 17) { if (plox > 8) { trg.d.d.d.d.gotoAndStop(plo + 4); } } } if (ups[68]) { trg2 = player.d.d.d.d.l; if (ups[115]) { colorit(trg2, 1.5, 2, 2, 0, 0, 0); trg2._alpha = 50; } else { if (ups[103]) { colorit(trg2, 0.4, 0.97, 0.5, 0, 150, 0); } else { if (ups[104]) { colorit(trg2, 1, 0.4, 0.13, 30, 0, 0); } else { if (ups[89]) { colorit(trg2, 3, 3, 3, 150, 150, 150); } else { if (ups[90]) { colorit(trg2, 0.4, 0.4, 0.4, 100, 100, 100); } else { if (ups[69]) { colorit(trg2, 0.33, 0.18, 0.18, 66, 40, 40); } else { if (ups[6]) { colorit(trg2, 0.2, 1, 0, 255, 255, 0); } else { if (ups[3]) { colorit(trg2, 0.4, 0.15, 0.38, 90, 0, 180); } } } } } } } } if (Math.abs(trg.xpp) > Math.abs(trg.ypp)) { f1 = (lass / trg.d.d._xscale / trg._xscale) * 10000 + (trg2._x - 6) * trg.xpp - 13; } else { f1 = (lass / trg.d.d._xscale / trg._xscale) * 10000 + (trg2._y + 20) * trg.ypp; } trg2._yscale = f1; trg2._xscale = lassd * 30; trg2._x -= trg.xp - lasx; trg2._y -= trg.yp - lasy; lasx = trg.xp; lasy = trg.yp; } } } --plox; --plox1; --trg.fire; --trg.fire1; dirkey(false); if (horse > 0) { if (horse == 100) { horss(); } else { --horse; xenf = horsx * 4.5; yenf = horsy * 4.5; trg.xbew *= 0.7; trg.ybew *= 0.7; if (horse % 6 < 3) { colorit(player, 1.2, 1.2, 1.2, 55, 55, 55); } } hhorse = 10; } else { if (horse == undefined) { --hhorse; } else { horse = undefined; } } f1 = 100 + (ups[12] - ups[71] + ups[122]) * 25; if (demon > 0) { f1 += 25; } trg._yscale = f1; trg._xscale = trg._yscale; if (trg.d._currentframe == 1) { f1 = 100 + (ups[121] - ups[120]) * 20; trg.d.d._yscale = f1; trg.d.d._xscale = trg.d.d._yscale; } f10 = [0, -0.15, 0.3, 0, 0.1, 0.23]; f1 = 1; _root.playsp = 1 + Math.min(1, (ups[119] + ups[27] + ups[28] + ups[12] + ups[71] + ups[101] + ups[122] + ups[120]) * 0.3 + Math.min(1, ups[14]) * 0.6 - Math.min(1, ups[13] + ups[121]) * 0.1 + f10[_root.skiner] + ups[70] * 0.4 + ups[79] * 0.2 + ups[82] * 0.3) - (ups[90] + ups[129]) * 0.2; if (unic > 0) { _root.playsp += 0.28; } if (demon > 0) { _root.playsp -= 0.18; } if (_root.it == 90) { _root.playsp = Math.max(1.5, _root.playsp); } f1 = _root.playsp; xenf *= 0.75 + f1 * 0.25; yenf *= 0.75 + f1 * 0.25; nomove = trg.d._currentframe >= 3 && trg.d._currentframe < 9 or fra < 20; if (nomove) { yenf = 0; xenf = 0; } if (xenf == 0) { lastxx = fra; } if (yenf == 0) { lastxy = fra; } if (trg.ghhh) { if (xenf != 0 && yenf != 0) { if (lastxy > lastxx) { xenf = 0; } else { yenf = 0; } } } else { if (xenf != 0 && yenf != 0) { xenf /= Math.SQRT2; yenf /= Math.SQRT2; } } trg.ghhh = false; v1 = 0; if (xenf != 0 && yenf == 0) { v1 = Math.abs(trg.ybew); trg.ybew *= 0.5; } else { if (yenf != 0 && xenf == 0) { v1 = Math.abs(trg.xbew); trg.xbew *= 0.5; } } v1 *= 0.3; v2 = xenf * trg.xbew + trg.ybew * yenf; v1 = v1 * 0.1 + Math.max(0, v2 * 0.2); v1 = 3 + v1 / _root.playsp; v1 *= 0.8; trg.xbew -= xenf * v1; trg.ybew -= yenf * v1; trg.xbew *= 0.7 + _root.playsp * 0.075; trg.ybew *= 0.7 + _root.playsp * 0.075; } laps(); } function posw(f1, f2, f3) { var v2 = -100; var v1 = -100; while (mhit(v2, v1) or levz[ingrid(v2, v1)] >= 0.6) { if (f3 > 500) { f3 = 0; } f3 += 5; v2 = f1 + crand(f3); v1 = f2 + crand(); outgrid(ingrid(v2, v1)); v2 = xenf; v1 = yenf; } } function spaw(f1, f2, f3, f0) { posw(f1, f2, f3); levz[ingrid(xenf, yenf)] = 0.9; return create(xenf, yenf, 0, 0, 0, 0, f0); } function scerf() { if (bgg2 == undefined) { trg = createEmptyMovieClip('bggg2', 35670000); bgg2 = new flash.display.BitmapData(gridxs, gridys - f1, true, 0); trg.attachBitmap(bgg2, 1); trg._xscale = 100 / hdx; trg._yscale = trg._xscale; maxx = new flash.geom.Matrix(); maxx.scale(hdx, hdx); bgg2.draw(this, maxx); } } function dirkey(f1) { enf = 0; yenf = 0; xenf = 0; kkk = false; if (_root.so.data.left) { f1 = !f1; } if (!f1) { if (_root.so.data.frog) { if (Key.isDown(81)) { kkk = true; ++xenf; } if (Key.isDown(90)) { kkk = true; ++yenf; } } else { if (Key.isDown(65)) { kkk = true; ++xenf; } if (Key.isDown(87)) { kkk = true; ++yenf; } } if (Key.isDown(68)) { kkk = true; --xenf; } if (Key.isDown(83)) { kkk = true; --yenf; } } else { if (Key.isDown(39)) { kkk = true; ++xenf; } if (Key.isDown(37)) { kkk = true; --xenf; } if (Key.isDown(38)) { kkk = true; --yenf; } if (Key.isDown(40)) { kkk = true; ++yenf; } } if (_root.so.data.left) { xenf *= -1; yenf *= -1; } } function onEnterFrame() { if (ups[114]) { ups[118] = 0; ups[69] = 0; } if (playfirst) { player.d.gotoAndStop(1); playfirst = false; } _root.chaf = chaf != undefined; if (player.dones) { if (gameover == 2) { ++_root.so.data.deads; if (_root.so.data.deads >= 100) { _root.locker[39] = true; } } if (gameover > 1) { if (!_root.ups[11] && _root.ups[81] <= 0) { if (!_root.dmusic) { _root.dmusic = true; _root.fade = true; } } } if (gameover++ > 50) { if (_root.ups[11] or _root.ups[81] > 0) { _root.armor = 0; if (ahsut <= 0) { _root.beenlev[_root.lev] = false; } _root.shroom = true; if (!_root.ups[11]) { _root.shroom = 2; --_root.ups[81]; if (_root.skiner == 4) { _root.armor = 1; _root.ups[23] += -player.mhp; } else { _root.ups[23] += 1 - player.mhp; } } else { if (_root.skiner == 4) { _root.armor = 3; } } _root.ups[11] = 0; _root.door = _root.door * 1 + 2; if (_root.door >= 4) { _root.door -= 4; } _root.playerx = 320; _root.playery = 400; invp(); _root.old.fillRect(_root.old.rectangle, 0); _root.old.draw(this); _root.olda._x = 0; _root.olda._y = 0; _root.olda._visible = true; _root.lev = _root.lastl; if (_root.lev <= 0) { _root.lev = 35; _root.lastl = 35; } _root.hp = 1000; _root.getup = true; moveon(); _root.gotoAndStop('reset'); } else { _root.map.fillRect(_root.map.rectangle, 0); _root.hud.paus.gotoAndStop(3); if (lastk <= 0) { lastk = 1; } _root.hud.paus.kill.gotoAndStop(Math.round(lastk)); _root.hud.paus.nam.gotoAndStop(Math.max(1, _root.skiner)); _root.hud.paus.loco.gotoAndStop(Math.max(1, _root.chaps)); onEnterFrame = undefined; } } } player.d.bub2._visible = ups[108]; player.d.bub._visible = playsave > 0; if (player.d.bub._visible) { if (playsave < 50) { if (playsave % 5 == 0) { co = !co; if (co) { player.d.bub._alpha = 100; } else { player.d.bub._alpha = 0; } } } } if (fra == telf) { _root.door = undefined; _root.soundy('hell_portal1.wav'); if (shutdoor != 0) { _root.beenlev[_root.lev] = false; } moveon(); if (tar) { _root.lev = tar; } else { while (_root.lev == _root.lastl or !_root.levz[_root.lev] or _root.lev > 150) { _root.lev = random(_root.levz.length) + 1; } } _root.tell = true; _root.door = undefined; _root.lastl = undefined; _root.gotoAndStop('reset'); } if (fra % 3 == 0) { for (e in bomf) { bombfail(bomf[e][0], bomf[e][1], bomf[e][2], bomf[e][3]); } bomf = []; } if (ups[114] && knife == undefined && player.d._currentframe < 3) { trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 2); knife = trg; attach(trg, 501); trg.dy = undefined; trg.knife = true; } if (ups[81] && !cats && player.d._currentframe < 3) { cats = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.cat = true; } if (ups[11] && !catss && player.d._currentframe < 3) { catss = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.cat = 2; } if (ups[94] && !monb && player.d._currentframe < 3) { monb = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.mon = 1; } if (ups[96] && !monb2 && player.d._currentframe < 3) { monb2 = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.mon = 2; } if (ups[98] && !monb3 && player.d._currentframe < 3) { monb3 = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.mon = 3; } if (ups[131] && !monb4 && player.d._currentframe < 3) { monb4 = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.mon = 4; } if (ups[73] && !meats && player.d._currentframe < 3) { meats = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.meat = true; } if (ups[73] > 4 && !meats2 && player.d._currentframe < 3) { meats2 = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.meat = true; trg.me2 = true; } if (Math.min(2, ups[112]) > flyby4 && player.d._currentframe < 3) { ++flyby4; trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg2.ang = true; } if (Math.min(2, ups[8] + ups[67] + ups[95] + ups[99] + ups[100] + ups[113]) > minions && player.d._currentframe < 3) { ++minions; create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); } if (ups[117] == 0.55) { ups[117] = 0; trg2 = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg2.bird = true; } if (bodd && player.d._currentframe < 3) { bodd = false; trg2 = spaw(trg.xp, trg.yp, 0, 3); trg2.meat = 5; colorit(trg2, _root.playcol[0], _root.playcol[1], _root.playcol[2], 0, 0, 0); } if (Math.min(3, ups[10] * 2) > flyby && player.d._currentframe < 3) { ++flyby; trg = create(player.xp, player.yp, 0, 0, 0, 0, 3); trg.fly = true; } if (Math.min(1, ups[57]) > flyby2 && player.d._currentframe < 3) { ++flyby2; trg = create(player.xp, player.yp, 0, 0, 0, 0, 3); trg.fly = true; trg.alt = true; } if (Math.min(1, ups[128]) > flyby3 && player.d._currentframe < 3) { ++flyby3; trg = create(player.xp, player.yp, 0, 0, 0, 0, 3); trg.fly = true; trg.alt = 2; } if (ups[88] && !magsss && player.d._currentframe < 3) { magsss = true; trg = create(player.xp, player.yp - 10, 0, 0, 0, 0, 3); trg.maga = true; } gibb += ball.length * 0.1 - 0.4; gibb *= 0.9; for (e in door) { trg = door[e]; if (trg._visible && levz[trg.blo] == 0 && (justnow < 10 or trg.hide)) { trg.blown = true; if (trg.hide) { hider(); trg.gotoAndStop(17); } else { if (mom.length > 4 or _root.lev == _root.minb) { levz[trg.blo] = 1; trg.blown = false; } else { trg.gotoAndStop(5); } } } if (trg.blown && levz[trg.blo] < 1) { levz[trg.blo] = 0.9; } } if (ups[75] && random(150) == 0) { piller(); } f1 = _root.it; if (f1 < 1) { f1 = 'empty'; _root.itc = 1; _root.hud.it.gotoAndStop(7); _root.hud.it.d.gotoAndStop(20); } f10 = [3, 4, 2, 1, 3, 2]; player.mhp = Math.min(f10[_root.skiner] + ups[22] + ups[23] + ups[121] + ups[24] + ups[25] + ups[26] + ups[12] + ups[101] + ups[15] + ups[92] + ups[119] + ups[16] * 2 + ups[129] * 2, 12); if (_root.skiner == 4) { if (player.mhp > 0) { --_root.ups[22]; ups[22] = _root.ups[22]; ++_root.armor; } player.mhp = 0; } if (player.mhp >= 7) { _root.locker[1] = true; } if (player.hp > mhpp) { if (fra > 10) { if (player.hp - mhpp > 0.55) { red = 7; } else { red = 4; } } } mhpp = player.hp; if (_root.armor > ahpp) { if (fra > 10) { blue = 7; } } if (player.hp > 0) { player.hp = Math.max(0.5, Math.min(player.mhp, player.hp)); } if (_root.itc >= 0.9) { _root.itc = 1; if (_root.hud.it._currentframe <= 14) { _root.hud.it.nextFrame(); } else { if (itb-- < 0) { _root.hud.it.gotoAndStop(15); } } } else { if (itb-- > 0) { _root.hud.it.gotoAndStop(16); } else { hudder = _root.hud.it._currentframe; _root.hud.it.gotoAndStop(Math.round(_root.itc * 6 - 0.5) + 1); } } _root.hud.extra._visible = _root.pilc != undefined; if (_root.hud.extra._visible) { f1 = _root.it; _root.hud.extra.d.gotoAndStop(11); _root.hud.extra.d.p.gotoAndStop(_root.pilc); if (_root.pilc > 6) { _root.hud.pilll.tex = tart(_root.pilc, true); } else { f10 = !ups[46] && !ups[75]; f11 = Math.round(_root.piller[_root.pilc]); if (f11 != _root.piller[_root.pilc]) { f2 = true; } else { f2 = false; } if (!f10) { f2 = true; } if (!_root.piller[_root.pilc]) { f11 = '???'; } else { switch (Math.round(f11)) { case 6: if (player.hp + _root.armor > 1) { f11 = 'Bad Trip!'; } else { case 1: f11 = 'Full Health'; break; case 2: f11 = 'I found Pills'; break; case 3: f11 = 'Explosive Diarrhea!'; break; case 4: f11 = 'Balls of Steel'; break; case 5: f11 = 'Pretty Fly'; break; case 7: if (_root.skiner != 4) { f13 = player.mhp; } else { f13 = _root.armor; } if (f13 <= 1 or f2) { f11 = 'Health Up'; } else { f11 = 'Health Down'; } break; case 8: f11 = 'Bombs are Key'; break; case 9: if (f2) { f11 = 'Tears Up'; } else { f11 = 'Tears Down'; } break; case 10: if (f2 or ups[6] && _root.chaps < 8) { f11 = 'Range Up'; } else { f11 = 'Range Down'; } break; case 11: if (f2) { f11 = 'Speed Up'; } else { f11 = 'Speed Down'; } break; case 12: f11 = 'Bad Gas'; break; default: f11 = 'TelePills'; } } } _root.hud.pilll.tex = f11; } f11 = _root.hud.pilll.tex.split(''); _root.hud.pilll.black._xscale = f11.length * 7 + 20; _root.hud.extra.d._alpha = 100; if (_root.hud.pilll._currentframe > 2) { _root.hud.pilll.gotoAndStop(1); } } else { if (_root.hud.pilll._currentframe < 3) { _root.hud.pilll.gotoAndStop(4); } _root.hud.it.d._alpha = 100; } if (f1 > 0 or f1 == 'empty') { _root.hud.it.d.gotoAndStop(f1); } _root.keys = Math.min(99, _root.keys); _root.coins = Math.min(99, _root.coins); _root.bombs = Math.min(99, _root.bombs); if (_root.coins >= 55) { _root.locker[2] = true; } _root.hud.coins = _root.coins; _root.hud.bombs = _root.bombs; _root.hud.keys = _root.keys; f1 = 1; if (ups[11]) { ++f1; } if (ups[81]) { f1 += ups[81]; } if (f1 > 1) { _root.hud.ups = 'x' + f1; } else { _root.hud.ups = ''; } _root.hud.chaps = levn[_root.chaps]; if (_root.hud.keys < 10) { _root.hud.keys = '0' + _root.hud.keys; } if (_root.hud.bombs < 10) { _root.hud.bombs = '0' + _root.hud.bombs; } if (_root.hud.coins < 10) { _root.hud.coins = '0' + _root.hud.coins; } _root.mhp = player.mhp; _root.hp = player.hp; if (fra % 7 == 0) { if (blackout == 2) { bloc = new flash.geom.ColorTransform(); bloc.redMultiplier = 0; bloc.greenMultiplier = 0; bloc.blueMultiplier = 0; } else { if (blackout) { bloc = new flash.geom.ColorTransform(); bloc.redMultiplier = 0.15 + Math.random() * 0.15; bloc.greenMultiplier = 0.15 + Math.random() * 0.15; bloc.blueMultiplier = 0.15 + Math.random() * 0.15; } else { bloc = new flash.geom.ColorTransform(); bloc.redMultiplier = 0.85 + Math.random() * 0.15; bloc.greenMultiplier = 0.85 + Math.random() * 0.15; bloc.blueMultiplier = 0.85 + Math.random() * 0.15; } } } trg = _root.hud.lif; f1 = _root.armor; f2 = red-- > 0; f3 = blue-- > 0; ahpp = _root.armor; e = 0; while (e < 12) { trg2 = trg['h' + e]; if (e >= player.mhp) { if (f1-- > 0) { trg2._visible = true; if (f1 > -0.5) { trg2.gotoAndStop(5); } else { trg2.gotoAndStop(6); } if (f3) { colorit(trg2, 1.6, 1.6, 2, 20, 20, 60); } else { colorit(trg2, 1, 1, 1, 0, 0, 0); } } else { trg2._visible = false; } } else { trg2._visible = true; trg2.gotoAndStop(Math.max(1, Math.min(3, (e - player.hp) * 2 + 3))); if (f2 && trg2._currentframe != 3) { colorit(trg2, 2, 1.6, 1.6, 100, 0, 0); } else { colorit(trg2, 1, 1, 1, 0, 0, 0); } } ++e; } trg2 = trg.h0; if (!f2) { if (player.hp < 1 && player.mhp >= 1) { if (fra % 10 == 0) { if (fra % 20 == 0) { colorit(trg2, 2, 1.6, 1.6, 100, 0, 0); } else { colorit(trg2, 1, 1, 1, 0, 0, 0); } } } else { colorit(trg2, 1, 1, 1, 0, 0, 0); } } if (enfget(_x, _y) < 2) { _root.olda._visible = false; _y = 0; _x = 0; } else { if (_root.door != undefined) { v1 = 0.5 + Math.min(enfget(_x, _y) * 0.004, 0.22); _x = _x * v1; _y = _y * v1; _root.olda._x = _x - olfx; _root.olda._y = _y - olfy; _root.olda._visible = true; } } f1 = 40; if (olfy > 0) { _root.olda._y += f1; } else { if (olfy < 0) { _root.olda._y -= f1; } } if (Key.isDown(82)) { if (resee++ > 30) { newstart(true); } } else { resee = 0; } if (Key.isDown(79)) { unpause = false; _root.hud.paus.gotoAndStop(5); } if (Key.isDown(73)) { } nogridyet = true; if (!sadfa) { sadfa = true; if (_root.lev == 80) { boss.swapDepths(1002088); for (e in levz) { outgrid(e); if (xenf > 440) { levz[e] = 1; } } } } else { if (!wetwwer) { wetwwer = true; golev(); _root.black.prevFrame(); } else { _root.fullhp = player.hp + _root.armor >= player.mhp; if (chama) { f1 = (_root.chama or (_root.fullhp or _root.lev == _root.chamb) && chama == 1) && shutdoor == 0; for (e in door) { trg = door[e]; if (trg.chamb) { if (!f1) { v1 = trg.blo; levz[v1] = 1; clevc[v1] = 1; trg.gotoAndStop(26); } else { v1 = trg.blo; levz[v1] = 0; clevc[v1] = 0; if (trg._currentframe != 27 && trg._currentframe != 25) { trg.gotoAndStop(25); } } } } if (chama > 1 && !_root.chama) { if (!_root.amusic) { _root.amusic = true; _root.fade = true; _root.mmus.dones = true; } if (shutdoor == 0) { if (chamb++ > 50) { mhelps = 0; f1 = _root.switchero; if (_root.chaps % 2 == 1) { f1 = !f1; } wtftex = f1; if (_root.chaps < 3) { if (f1) { f0 = [18, 5, 14, 5, 10, 4]; } else { f0 = [29, 3, 12, 3, 15, 2]; } } else { if (_root.chaps < 5) { if (f1) { f0 = [23, 5, 24, 4, 26, 4]; } else { f0 = [31, 5, 22, 3, 27, 3]; } } else { if (_root.chaps < 7) { if (f1) { f0 = [38, 4, 29, 5, 41, 4]; } else { f0 = [39, 3, 34, 4, 24.4, 4]; } } else { if (f1) { f0 = [19, 3, 28, 4, 20, 2]; } else { f0 = [71, 1, 69, 1, 28, 1]; } } } } f1 = f0[(chama - 2) * 2]; f2 = f0[(chama - 2) * 2 + 1]; f3 = 0; f6 = (Math.PI / f2) * 2; e = 0; while (e < f2) { f4 = Math.sin(f3) * 200 + 320; f5 = Math.cos(f3) * 180 + 250; if (enfcheck(f4, f5, player.xp, player.yp, 40)) { f3 += f6 / 2; --e; } else { f3 += f6; _root.soundy('summonsound.wav', 150); if (f1 == 19 or f1 == 28) { spaw(f4 + 10, f5, 0, f1); spaw(f4, f5, 0, f1); if (f1 == 28) { spaw(f4 - 10, f5, 0, f1); } if (f1 == 28 && f2 > 2) { f1 = 23; } } else { spaw(f4, f5, 0, f1); } } ++e; } ++chama; if (chama > 4) { justnow = 7; _root.chama = true; } chamb = 30; } } } } if (shutdoor == 0 && unpause) { ++justnow; if (justnow == 10) { if (fra > 20) { _root.soundy('Door_Heavy_Open.mp'); } for (e in door) { trg = door[e]; nohit = false; if (trg.hide) { nohit = true; } else { if (trg.boner) { if (_root.bona) { trg.gotoAndStop(33); } else { nohit = true; } } else { if (trg.shop) { if (_root.shopa) { trg.gotoAndStop(1); } else { nohit = true; } } else { if (trg.gamb) { if (_root.gama) { trg.gotoAndStop(21); } else { nohit = true; } } else { if (trg.chamb) { if (fra < 15) { trg.gotoAndStop(27); } } else { if (trg.sat) { if (satan) { trg.gotoAndStop(19); } else { f1 = Math.min(0.3, ups[51] * 0.2) + 0.01; if (_root.it == 2) { f1 += 0.25; } if (_root.it == 38) { f1 += 0.35; } if (_root.bumkill) { f1 += 0.35; } if (bossdmg) { f1 += 0.35; } if (_root.devil) { f1 += 0.99; } if (_root.lastdev + 3 > _root.chaps) { f1 *= 0.5; } if (_root.lastdev + 2 > _root.chaps) { f1 *= 0.5; } if ((Math.random() < f1 or satan) && _root.devil != 3 && _root.chaps != 1 && _root.chaps != 9) { _root.devil = 2; if (fra < 30) { trg.gotoAndStop(19); } else { trg.gotoAndStop(18); } _root.lastdev = _root.chaps; if (_root.demonz == 0) { _root.demonz = 1; } } else { _root.devil = 3; nohit = true; } } } else { if (trg.boss) { if (fra < 30) { trg.gotoAndStop(13); } else { trg.gotoAndStop(15); } } else { trg.gotoAndStop(3); if (fra < 30) { trg.p.gotoAndStop(trg.p._totalframes); } } } } } } } } if (trg._visible && !nohit) { v1 = trg.blo; levz[v1] = 0; clevc[v1] = 0; } } if (fra > 30) { if (ups[94] or ups[96] or ups[98] or ups[131]) { f1 = ups[94] + (ups[96] + ups[98] * 2 + ups[131]) * 1.1; _root.monbb += 0.5 / f1; } f1 = itc[_root.it]; if (_root.itc < 1) { _root.itc += 1 / f1; itb = 5; if (_root.itc < 1) { _root.soundy('beep.wav'); } else { _root.soundy('itemrecharge.wav'); } } if (_root.bossl == _root.lev) { bosssp(); killa = true; } else { if (_root.amusic && !cock) { cock = true; _root.musc.done = true; _root.bossmusic = true; } f1 = Math.random(); if (ups[46]) { f1 = f1 * 0.9 + 0.1; } if (f1 > 0.22) { if (f1 < 0.3) { if (random(2) == 0) { f0 = 5.3; } else { f0 = 5.07; } } else { if (f1 < 0.45) { f0 = 5.02; } else { if (f1 < 0.6) { f0 = 5.01; } else { if (f1 < 0.8 - _root.chaps * 0.01) { f0 = 5.03; } else { if (f1 < 0.95) { f0 = 5.04; } else { f0 = 5.05; } } } } } spaw(320, 280, 0, f0); } } } } openss = true; } else { if (!openss) { justnow = 0; } } } } for (e in drawer) { drawer[e].clear(); } if (!Key.isDown(80) && !Key.isDown(27)) { unspace = true; } if (_root.unl._currentframe != 1 or _root.over._currentframe != 1) { unlo = true; unpause = false; } flyshut = 0; if (!unpause) { if (unlo) { unpause = true; unlo = false; if ((player.d._currentframe != 4 or player.d.d.d._currentframe > 9) && (player.d._currentframe != 11 or player.d.d.d._currentframe > 9)) { scerf(); } } else { if (gameover == 0 && _root.hud.paus._currentframe == 1) { _root.hud.paus.gotoAndStop(2); scerf(); } } if (Key.isDown(80) && unspace) { unpause = true; unspace = false; } nosp = true; _root.hud.paus.st0.gotoAndStop(Math.min(1 + Math.max(1, Math.round((_root.playsp - 0.8) * 4)), 8)); _root.hud.paus.st1.gotoAndStop(Math.min(Math.max(1, Math.round(12 - _root.firra)), 8)); _root.hud.paus.st2.gotoAndStop(Math.max(1, Math.min(1 + Math.round((_root.firrb - 2.4) * 1.1), 8))); _root.hud.paus.st3.gotoAndStop(Math.max(1, Math.min(1 + Math.round((_root.firrr - 20) / 4), 8))); } else { if (bgg2 != undefined) { bgg2 = undefined; bggg2.swapDepths(100); removeMovieClip(bggg2); } topz(0); --freez; --slow; --sloww; --scare; --playsave; --unic; if (unic < -1) { pacman = false; } if (ups[63] && shutdoor != 0 && _root.itc - 0.5 < tictic && _root.itc < 1 && nocharge-- < 0 && _root.lev != _root.gamb) { tictic = Math.min(_root.itc, tictic); _root.itc += 0.0004; if (hudder != _root.hud.it._currentframe && _root.hud.it._currentframe < 15) { if (_root.itc < 1) { } else {} _root.soundy('batterycharge.mp'); parc('batter', player.xp, player.yp - 20, 0, 100, player.dpppp + 5000); } } _root.hud.paus.gotoAndStop(1); ++fra; _root.tex = ''; if (justnow > 10) { for (e in door) { trg = door[e]; if (_root.keys > 0 && enfcheck(trg._x, trg._y, player.xp, player.yp, 60) && keyhole == trg.blo) { if (trg.shop or trg.boner) { v1 = trg.blo; levz[v1] = 0; clevc[v1] = 0; if (!_root.shopa && trg.shop) { trg.gotoAndStop(8); --_root.keys; _root.shopa = true; _root.soundy('Unlock00.wav', 100); } if (!_root.bona && trg.boner) { trg.gotoAndStop(31); --_root.keys; _root.bona = true; _root.soundy('Unlock00.wav', 100); } } } if (trg.gamb && _root.coins > 0 && enfcheck(trg._x, trg._y, player.xp, player.yp, 60) && keyhole == trg.blo) { v1 = trg.blo; levz[v1] = 0; clevc[v1] = 0; if (!_root.gama) { trg.gotoAndStop(22); --_root.coins; _root.gama = true; _root.soundy('Coin_Slot.mp', 100); } } } } _root.p.gotoAndStop(1); if ((Key.isDown(27) or Key.isDown(80)) && unspace) { _root.p.gotoAndStop(_root.pinfo); unpause = false; unspace = false; } topz(1); f0 = fra % 2 + 1; for (e in par) { trg = par[e]; if (trg.done) { removeMovieClip(par[e]); par.splice(e, 1); } else { if (trg.perm && ashut > 0) { trg.stop(); } else { trg.nextFrame(); } } } actions1(); if (brr.length > 0) { breakall(); brr = []; brr2 = []; } playc(); topz(2); physix(); tip(2); v = 0.7; if (fra % 1000 == 999) { f1 = new Array(); for (e in levz) { f1[e] = levz[e]; } levz = new Array(f1.length); for (e in f1) { levz[e] = f1[e]; } } v1 = _root.tex; _root.tex = ' '; e = 0; while (e < alltimer.length) { alltimer[e] *= 0.96; _root.tex += ' - ' + Math.round(alltimer[e] * 100) / 100; ++e; } f1 = getTimer(); if (fra > 35 or _root.lev != 35) { wtfps *= 0.9; wtfps += Math.max(1, (1000 / (f1 - wtfps2)) * 0.1); } qqua = _root.so.data.qqal == 'AUTO' or _root.so.data.qqal == undefined; if (qqua) { if (wtfps < 14) { if (_quality == 'MEDIUM') { _quality = 'LOW'; } } if (wtfps < 26) { if (_quality == 'HIGH') { _quality = 'MEDIUM'; } } if (wtfps > 29.4 && _quality == 'MEDIUM' or wtfps > 25 && _quality == 'LOW') { if (wtff++ > 100) { wtff = 0; if (_quality == 'MEDIUM') { _quality = 'HIGH'; } else { if (_quality == 'LOW') { _quality = 'MEDIUM'; } } } } else { wtff = 0; } } wtfps2 = f1; _root.tex = _quality + ' fps:' + Math.round(wtfps) + ' ' + _root.tex + '\nf:' + Math.round(_root.firra) + ' d:' + Math.round(_root.firrb * 10) / 10 + ' r:' + Math.round(_root.firrr * 10) / 10 + ' ' + ingrid(player.xp, player.yp) + ' ' + _root.rarer[_root.lev]; _root.tex = _root.tex + '\n' + v1; if (chestopen != undefined) { trg = chestopen; chestopen = undefined; if (trg != 2) { chestox = trg.xp; chestoy = trg.yp; } if (!trg.empty) { if (chama == 1 && _root.lev == _root.chamb) { chama = 2; } trg.empty = true; if (trg.d._currentframe == 8 && trg.col == 1) { f10 = 1 + random(2); } else { if (trg.d._currentframe == 6) { f10 = Math.max(2, random(8) - 1); } else { f10 = Math.max(2, random(4) - 1); } } z = 0; for (;;) { if (!(z < f10 && !trg.done)) break; f12 = 1; f1 = Math.random(); if ((_root.locker[18] && random(10) == 0 && trg == 2 or random(5) == 0 && trg.d._currentframe == 6) && z == 0 && (trg != 2 or !ups[90])) { f1 = 70; enf = enfcheck(chestox, chestoy, player.xp, player.yp, f1); if (enf < f1) { enf = ((f1 - enf) / enf) * 0.4; player.xbew -= xenf * enf; player.ybew -= yenf * enf; } f0 = 5.1; trg.done = true; treas = true; } else { if (random(5) == 0 && z == 0 && trg != 2) { f1 = 70; enf = enfcheck(chestox, chestoy, player.xp, player.yp, f1); if (enf < f1) { enf = ((f1 - enf) / enf) * 0.4; player.xbew -= xenf * enf; player.ybew -= yenf * enf; } if (trg.d._currentframe == 6) { f0 = 5.3; } else { f0 = 5.07; } f10 = -100; } else { if (f1 < 0.35 && trg != 2) { f0 = 5.02; f12 = random(3) + 1; } else { if (f1 < 0.55 or f1 < 0.6 && trg == 2) { f0 = 5; } else { if (f1 < 0.7) { f0 = 5.03; if (trg == 2) { f10 = -100; } } else { if (f1 < 0.71 && z == 0) { f0 = 5.05; f10 = -100; } else { if ((f1 < 0.72 or trg == 2 && f1 < 0.9) && z == 0) { f0 = 5.06; f10 = -100; } else { f0 = 5.04; } } } } } } } if (trg.d._currentframe == 8 && trg.col == 1) { if (random(2) == 0) { f0 = 5.02; f12 = random(4) + 1; } else { f0 = 5; } } i = 0; while (i < f12) { f13 = 0; while (f13++ < 10) { xenf = crand(5); yenf = crand(5); if (_root.lev == _root.chamb) { xenf *= 0.4; yenf *= 0.4; } if (linecheckx(chestox, chestoy, trg.xp + xenf * 7, trg.yp + yenf * 7)) { f13 = 1000; } } if (f0 == 5.05 or f0 == 5.06) { xenf = 0; yenf = 0; if (trg != 2) { chestoy += 10; } } var trg2 = create(chestox, chestoy, 0, xenf, yenf, 0, f0); trg2.alt = true; if (f0 == 5.1) { trg2.fra -= 15; trg.done = true; if (trg == 2 && _root.locker[18] && !ups[90]) { trg2.alt = false; trg2.it = 90; } } if (f0 == 5 && trg == 2) { trg2.col = 3; } if (f0 == 5.05 or f0 == 5.06) { if (trg != 2) { trg2._xscale = trg._xscale * 0.8; trg2._yscale = trg2._xscale; } } if (f10 < 0) { break; } ++i; } ++z; } treas = false; } } tip(0); } for (e in ball) { trg = ball[e]; if (trg.alter) { f1 = trg.alter; if (trg.s == 16) { trg.d.hx.d.gotoAndStop(f1); trg.d.d.hx.d.gotoAndStop(f1); trg.d.d.d.hx.d.gotoAndStop(f1); } else { trg.d.hx.gotoAndStop(f1); trg.d.d.hx.gotoAndStop(f1); trg.d.d.d.hx.gotoAndStop(f1); if (trg.s == 60) { if (trg.d._currentframe == 5) { trg.d.d.gotoAndStop(f1); } trg.d.hxx.gotoAndStop(f1); trg.d.d.hxx.gotoAndStop(f1); trg.d.d.d.hxx.gotoAndStop(f1); } } } } if (fra % 50 == 0) { f1 = []; f2 = []; a = 0; while (a < ball.length) { f1[a] = ball[a]; ++a; } a = 0; while (a < par.length) { f2[a] = par[a]; ++a; } ball = new Array(f1.length); par = new Array(f2.length); a = 0; while (a < ball.length) { ball[a] = f1[a]; ++a; } a = 0; while (a < par.length) { par[a] = f2[a]; ++a; } } if (wtftex) { _root.tex = wtftex; } trg = player; if (trg.d._currentframe != 1) { if (trg.d._currentframe == 7 or trg.d._currentframe == 8) { trgnextd(); } else { trg.d.d.gotoAndStop(sk); if (bgg2 == undefined) { if (trgnextd(trg.d.d.d, true) && trg.d._currentframe != 6) { playfirst = true; } } if (trg.d.d.d._currentframe == 32 && trg.d._currentframe == 6) { _root.soundy('isaacdies.wav'); if (gameover <= 0) { gameover = 1; } } } } else { if (demon > 0) { sk = 7; } } trg.d.d.d.it.d.gotoAndStop(trg.it); trg.d.d.d.it.d.p.gotoAndStop(player.pilc); trg.d.d.d.it.d._yscale = 10000 / player._xscale; trg.d.d.d.it.d._xscale = trg.d.d.d.it.d._yscale; trg.d.hs._visible = (trg.d.bo._currentframe == 16 or trg.d.bo._currentframe == 17 or trg.d.bo._currentframe == 18) && trg.d.bo.d._currentframe != 2; if (trg.d.hs._visible) { if (trg.d.bo.d._currentframe == 1) { trg.d.hs.gotoAndStop(1); } else { trg.d.hs.gotoAndStop(2); } trg.d.hs._xscale = trg.d.bo._xscale; } if (fra > 2 && fra < 15) { player._visible = true; } if (plxxx > 0) { player.fire = 1000; player.xp = plxxx; player.yp = plyyx; player.xbew = 0; player.ybew = 0; } for (e in ball) { trg = ball[e]; if (trg.s == 42) { trg.xp = trg.xpp; trg.yp = trg.ypp; trg.xbew = 0; trg.ybew = 0; } } } llev = [2, 114, 57, 175, 2, 113, 60, 167, 2, 101, 53, 152, 2, 90, 46, 135, 2, 80]; specol = [[1, 0.1, 0.1], [0.5, 0.5, 0], [0.2, 0.5, 0.4], [1, 0.5, 0.5], [0.7, 0.45, 0.4], [0.1, 0.8, 0.2], [0.1, 1, 0.5], [0, 0.15, 0.15]]; specol2 = [0, [1, 0.6, 0.6], [0.6, 0.6, 0.6], [0.6, 1, 0.6], [0.6, 1, 1], [0.5, 0.7, 0.5], [1, 0.7, 0.5], [0.5, 0.7, 1], [0.5, 0.7, 0.7], [1, 0.7, 0.5], [0, 1.7, 1.1], [0.6, 0.7, 0.6], [1, 1, 0.5], [0.3, 0.7, 0.6], [1, 0.6, 0.6], [0.5, 0.5, 0.6]]; levn = [0, 'Basement 1', 'Basement 2', 'Caves 1', 'Caves 2', 'The Depths 1', 'The Depths 2', 'The Womb 1', 'The Womb 2', 'Sheol']; _root.tex = undefined; gridx = 0; gridy = 0; if (_root._xscale < 110) { gridxs = 640; gridys = 480; hdx = 1; } else { if (_root._xscale < 135) { gridxs = 800; gridys = 620; hdd = true; hdx = 1.25; } else { gridxs = 1100; gridys = 800; hdd = true; hdx = 1.667; } } gridv = 100; gridmax = 10; tiles._visible = false; razor = 0; if (_root.levz.length <= 1) { f1 = getTimer() % 100; e = 0; while (e < f1) { f2 = random(random(10)) * Math.random(); ++e; } _root.darky(120); if (_root.newstartt or _root.it == undefined) { _root.newstartt = false; newstats(); } _root.mapsize = 0; f6 = Math.min(20, random(2) + 5 + _root.chaps * 2.6); _root.rarer = []; _root.levblow = []; _root.levsav = []; _root.levit = []; _root.beenlev = []; _root.beenlev2 = []; _root.seenlev = []; _root.bomf = []; _root.shopa = false; _root.bona = _root.chaps == 1; _root.hider = false; _root.minbb = false; _root.gama = false; _root.gambb = false; _root.chambb = false; _root.chama = false; _root.shopaz = false; _root.bossd = false; _root.treasd = false; _root.gamaaa = false; _root.levcol = []; _root.world = false; _root.iter = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; _root.devil = _root.chaps != 1; _root.bumkill = false; if (_root.chaps % 2 == 1) { _root.horsem = _root.locker[5]; _root.altb = true; _root.altb2 = _root.chaps < 4; _root.switchero = _root.chaps < 4 && random(2); _root.swww = _root.chaps + 1; } fuckup = 0; if (_root.chaps == 1 or _root.chaps == 3 or _root.chaps == 5 or _root.chaps == 7) { _root.nodmg = true; } for (;;) { if (!((_root.mapsize < f6 or _root.levz.length <= 1 or _root.bossl == 45 or _root.bossl == 25 or _root.bossl == 36 or _root.bossl == 34) && fuckup++ < 1000)) break; endrooms = []; _root.levz = new Array(80); e = 0; while (e < 80) { _root.levz[e] = 0; ++e; } acts = []; acts2 = []; pffx(35); f3 = random(4); f5 = 0; v3 = 0; e = 0; while (e < 300) { acts2[acts2.length] = 0; acts = acts2.slice(0, -1); acts2 = []; if (f6 > 15) { pffx(35); } for (a in acts) { v1 = acts[a]; if (v1 > 0) { v3 = v1; } f8 = 0; if (random(2) == 0 && v1 % 10 < 9) { pffx(v1 + 1); } if (random(2) == 0 && v1 % 10 > 1) { pffx(v1 - 1); } if (random(2) == 0 && v1 < 70) { pffx(v1 + 10); } if (random(2) == 0 && v1 > 10) { pffx(v1 - 10); } if (f8 == 0 && v1 != 35) { endrooms.push(v1); } } if (acts2.length < 2) { e -= 0.5; } ++e; } _root.lastl = _root.lev; _root.lev = 35; _root.lastl = 35; _root.mapsize = f5; _root.bossl = endrooms[endrooms.length - 1]; _root.shopl = _root.bossl; _root.boner = _root.bossl; _root.minb = undefined; _root.gamb = undefined; _root.chamb = undefined; if ((endrooms.length >= 5 or _root.chaps == 1 && endrooms.length >= 4) && _root.bossl != _root.lev && _root.bossl > 0) { while (_root.shopl == _root.bossl or _root.shopl <= 0) { _root.shopl = endrooms[random(endrooms.length) + 1]; } while (_root.boner == _root.bossl or _root.boner == _root.shopl or _root.boner <= 0) { _root.boner = endrooms[random(endrooms.length) + 1]; } f1 = 4; if (endrooms.length > f1 && (random(2) == 0 or _root.chaps == 1) && _root.minz.length > 0) { while (_root.minb == _root.bossl or _root.minb == _root.boner or _root.minb == _root.shopl or _root.minb <= 0) { _root.minb = endrooms[random(endrooms.length) + 1]; } ++f1; } if (endrooms.length > f1 && _root.fullhp && _root.chaps > 1 && (random(2) == 0 or _root.chaps > 2)) { while (_root.chamb == _root.bossl or _root.chamb == _root.boner or _root.chamb == _root.shopl or _root.chamb == _root.minb or _root.chamb <= 0) { _root.chamb = endrooms[random(endrooms.length) + 1]; } ++f1; } if (endrooms.length > f1 && _root.coins >= 5 && _root.chaps % 2 == 0) { while (_root.gamb == _root.bossl or _root.gamb == _root.boner or _root.gamb == _root.shopl or _root.gamb == _root.minb or _root.gamb == _root.chamb or _root.gamb <= 0) { _root.gamb = endrooms[random(endrooms.length) + 1]; } ++f1; } } else { _root.levz = []; _root.mapsize = 0; } if (_root.chaps > 6) { _root.boner = undefined; _root.shopl = undefined; } } _root.hide = undefined; e = 0; while (e < 10000) { f1 = random(_root.levz.length); if (!_root.levz[f1]) { f2 = 0; if (_root.levz[f1 + 1]) { ++f2; } if (_root.levz[f1 - 1]) { ++f2; } if (_root.levz[f1 + 10]) { ++f2; } if (_root.levz[f1 - 10]) { ++f2; } if (f2 > 2 or f2 == 2 && e > 1000) { e += 100000; _root.levz[f1] = 'hide' + random(5); _root.hide = f1; } } ++e; } if (fuckup >= 999) { _root.cuts = true; moveon(); _root.gotoAndStop('reset'); } f13 = Math.min(llev.length - 2, _root.chaps * 2 - 2); for (e in _root.levz) { if (_root.levz[e] > 0) { _root.levz[e] = random(llev[f13 + 1] - llev[f13]) + llev[f13] + 2; _root.rarer[e] = random(115) + 65; } } f1 = 'b' + Math.min(8, _root.chaps) + '-' + random(5); _root.bosss = _root.chaps; _root.horse = false; _root.altboss = false; if (_root.chaps != 6 && _root.chaps != 8) { if (_root.chaps > 8) { _root.chaps = 9; _root.bosss = 24; f1 = 'stan'; } else { if (_root.horsem && random(5) == 0) { _root.horse = true; _root.horsem = false; f1 = Math.round(_root.chaps / 2); _root.bosss = f1 + 8; if (random(10) == 0) { f1 = 5; _root.bosss = 22; } f1 = 'h' + f1; } else { if (_root.demonz == 1 && random(10) == 0) { _root.demonz = 2; _root.bosss = 23; f1 = 'demon'; } else { if (_root.altb && random(5) == 0) { _root.altb = false; f1 = Math.round(_root.chaps / 2); _root.bosss = f1 + 12; f1 = 'a' + f1 + '-' + random(3); } else { if (_root.altb2 && random(4) == 0) { _root.altb2 = false; f1 = Math.round(_root.chaps / 2) + 4; _root.bosss = f1 + 12; f1 = 'a' + f1 + '-' + random(3); } else { if (_root.switchero) { f1 = _root.swww; _root.bosss = f1; f1 = 'b' + Math.min(8, f1) + '-' + random(5); } else { _root.bosss = _root.chaps; } } } } } } } if (random(2) == 0) { if (_root.bosss == 17 && _root.locker[22] or _root.bosss == 3 && _root.locker[23] or _root.bosss == 5 && _root.locker[24]) { _root.altboss = true; switch (_root.bosss) { case 17: _root.bosss = 20; break; case 3: _root.bosss = 21; break; case 5: _root.bosss = 19; } } } _root.swww = _root.chaps; _root.levz[35] = 2; _root.levz[166] = 'satan'; if (!_root.kramper && (random(10) == 0 or random(3) == 0 && _root.evs > 0)) { _root.levz[166] = 'krampus'; _root.kramper = _root.chaps; } if (_root.chaps == 8) { _root.levz[166] = 'satan1'; } if (_root.chaps < 9) { _root.levz[169] = 'error' + random(4); } _root.levz[_root.bossl] = f1; _root.levz[_root.shopl] = 'shop' + (random(6) + 1) * 1; _root.levz[_root.boner] = 't' + random(6); f1 = random(_root.minz.length); _root.levz[_root.minb] = 'min' + _root.minz[f1]; _root.levz[_root.gamb] = 'gam' + random(6); _root.levz[_root.chamb] = 'cha' + random(6); if (_root.chaps > 3 && _root.minb == undefined) { if (_root.chaps > 4) { if (random(3) == 0 && _root.chaps - 1 > _root.lastkeeps) { _root.levz[_root.hide] = 'min4'; _root.minb = _root.hide; } } if (_root.levz[_root.hide] == 'min4') { _root.lastkeeps = _root.chaps; } if (random(6 - Math.min(_root.chaps, 5)) == 0 && _root.chaps - 1 > _root.lastkeeps) { _root.minb = _root.shopl; _root.levz[_root.shopl] = 'min4'; _root.lastkeeps = _root.chaps; } } _root.minz.splice(f1, 1); } _root.amusic = false; if (!_root.beenlev[_root.lev]) { if (_root.lev == _root.boner) { _root.mmus = _root.soundy('treasure room enter.mp', 100); } else { if (_root.lev == _root.bossl) { _root.soundy('castleportcullis.wav', 100); } else { if (_root.lev == _root.chamb) { _root.mmus = _root.soundy('weapon room.mp', 100); } else { if (_root.lev == 166) { if (_root.kramper == _root.chaps) { _root.bossmusic = true; _root.soundy('bossintro.mp3'); } else { _root.mmus = _root.soundy('Satan find.mp', 100); } } else { if (_root.lev == _root.minb) { _root.mmus = _root.soundy('miniboss.mp', 100); _root.amusic = true; _root.fade = true; } } } } } } firsttime = _root.beenlev[_root.lev]; _root.beenlev[_root.lev] = true; if (_root.lev == _root.hide) { hider(); } if (_root.lev == _root.minb) { _root.minbb = true; } if (_root.lev == _root.gamb) { _root.gambb = true; _root.gama = true; if (!_root.gamaaa) { _root.gamaaa = true; ++_root.so.data.gams; if (_root.so.data.gams > 10) { _root.locker[33] = true; } } } _root.seenlev[_root.lev] = true; door = [d1, d2, d3, d4]; v1 = _root.lev; if (v1 % 10 < 9) { door[2].gol = v1 + 1; } if (v1 % 10 > 1) { door[0].gol = v1 - 1; } if (v1 < 70) { door[1].gol = v1 + 10; } if (v1 > 10) { door[3].gol = v1 - 10; } for (e in door) { trg = door[e]; trg.swapDepths(int(291 + e)); if (trg.gol > -1 && _root.levz[trg.gol] != 0) { } else { trg._visible = false; } } rowz = 16; roxx = 40; roxx2 = roxx / 2; f1 = _root.levz[_root.lev]; if (f1 == 2) { gotoAndStop(2); } else { if (f1 * 1 > 1) { gotoAndStop('levs' + Math.round(_root.chaps / 2)); inl.gotoAndStop(f1 - 2); } else { gotoAndStop('levs6'); inl.gotoAndStop(f1); inl.shop.swapDepths(33901); inem = true; } } error = false; if (_root.lev == _root.chamb) { f1 = 19; } else { if (_root.lev == _root.gamb) { f1 = 15; } else { if (_root.lev == 166) { satan = true; _root.devil = 2; if (_root.door <= -1) { _root.door = random(4); } f1 = 19; } else { if (_root.lev == 169) { error = true; f1 = 40; } else { if (_root.chaps > 8) { f1 = 45; } else { f1 = 1 + Math.round(_root.chaps / 2 - 1) * 3; } } } } } if (_root.shopl == _root.lev) { f1 = 2; } else { if (_root.bossl == _root.lev) { f1 += 2; } else { if (_root.hide == _root.lev) { f1 = 20; } } } f2 = f1; if (_root.lev == 35 && !satan && _root.chaps == 1) { f2 = 50; } b.w1.gotoAndStop(f1); b.w2.gotoAndStop(f1); b.w3.gotoAndStop(f1); b.w4.gotoAndStop(f1); b.bg.gotoAndStop(f2); xenf = Math.round((gridxs - gridx) / gridv + 1.5); yenf = Math.round((gridys - gridy) / gridv + 1.5); gxe = xenf; gye = yenf; xenf *= gridmax; var grid = new flash.display.BitmapData(xenf, yenf, false, 0); var grid2 = new flash.display.BitmapData(xenf, yenf, false, 0); var tests = new flash.display.BitmapData(300, 300, false, 0); _root.g.gotoAndPlay(60); timer = []; alltimer = [0, 0, 0, 0, 0, 0, 0, 0, 0]; ballz = 0; ball = []; if (_root.chaps >= 5) { mux = 1.25; } else { mux = 1; } v1 = 13; v2 = 60 + 15 * _root.chaps; v2 /= mux; p180 = 0.0174532925199433; p10 = 0.5235987755982988; v3 = 17; sizes = [5, 10, 8, v1, 16, 12, 0, v1, v1, 5, v1, v1, v1, v3, v3, v1, v1, v1, v3, 20, 40, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, 50, 0, v1, v1, v1, v1, v1, 35, v1, 35, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, 25, 25, 25, 25, 35, 27, 20, 0, 40, 25, v1, 40, 30, 20, v1, 35, v1, v1, 20, 20, 16, 55]; masses = [0, 5, 8 + _root.ups[4] * 30, 0, 6, 3, 0, 6, 6, 8, 5, 3, 3, 3, 4, 10, 6, 6, 3, 50, 50, 7, 7, 7, 10, 7, 7, 15, 20, 10, 10, 10, 10, 1, 10, 10, 70, 1, 10, 10, 10, 10, 20, 50, 15, 70, 30, 30, 30, 30, 30, 30, 30, 10, 10, 10, 30, 30, 10, 10, 10, 7, 30, 30, 30, 30, 30, 30, 40, 20, 0, 40, 30, 20, 30, 20, 10, 3, 100, 20, 3, 50, 30, 30, 100]; hps = [0, 10, 0, 0, 0, 0, 0, 0, 0, 10, 10, 10, 10, 3, 8, 15, 13, 13, 5, 22, 250, 15, 20, 20, 33, 20, 20, 15, 350, 10, 20, 10, 20, 0, 25, 25, 700, 0, 25, 25, 25, 20, 20, 550, 100, 530, v2, v2, v2 * 1.6, v2, v2, v2 * 0.5, v2, 20, 20, 25, 30, 40, 35, 20, 20, 10, 300, 240, 280, 400, 450, 110, 450, 350, 0, 60, 15, 8, 190, 75, 30, 12, 950, 140, 10, v2 * 3, v2 * 2, 100, 600]; hard = [1.570796326794897, 0.1570796326794897, p10 * 5, p10, p10, p10 * 2, 0, 0, 0, p10 * 5, p10, p10, p10, 0, 0, p10, p10, p10, 0, 0, p10, p10, p10, p10, p10, p10, 0, p10, p10, 0, p10, p10, p10, 0, 0, p10, p10, 0, p10, p10, p10, p10, 0, p10, p10, 0, p10, p10, p10, p10, p10, p10, p10, p10, p10, p10, p10, p10, p10, p10, p10, 0, p10, 0, 0, 0, 0, p10, p10, p10, 0, p10, p10, p10, p10, p10, p10, p10, 0, p10, 0, 0, 0, 0, 0]; hard[54] = 0; hps[43] *= 1.15; hps[57] *= 1.55; hps[45] *= 1.22; hps[36] *= 0.85; if (_root.locker[45]) { hps[78] *= 1.25; } for (e in hops) { hps[e] *= mux; } wb = []; sizes[61] = v3; sizes[80] = v3; hardx = []; hardy = []; for (e in hard) { v1 = hard[e]; siz = sizes[e]; if (e == 14 or e == 13) { siz = 5; } if (v1 > 0) { hardx[e] = []; hardy[e] = []; a = 0; while (a < 6.283185307179586) { hardx[e][hardx[e].length] = Math.sin(a) * siz; hardy[e][hardy[e].length] = Math.cos(a) * siz; a += v1; } } } sizes[28] = 18; whuzzz = random(2) == 0; it1 = [true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true]; watz = 0; parz = 0; par = []; createEmptyMovieClip('blorz', 297); lasth = 0; bossdmg = true; org = new flash.display.BitmapData(40, 40, true, 13421772); v3 = 1; v2 = 20; v1.scale(v3, v3); v1.translate(v2, v2); org.draw(shaz, v1); f1 = 75; trg = createEmptyMovieClip('bggg', 290); bgg = new flash.display.BitmapData(gridxs, gridys - f1, true, 0); trg.attachBitmap(bgg, 1); trg._xscale = 100 / hdx; trg._yscale = trg._xscale; trg._y = f1; trg = createEmptyMovieClip('splala', 296); splat = new flash.display.BitmapData(gridxs, gridys, true, 0); trg.attachBitmap(splat, 1); trg._xscale = 100 / hdx; trg._yscale = trg._xscale; trg._alpha = 70; trg = createEmptyMovieClip('guta', 298); gut = new flash.display.BitmapData(gridxs, gridys, true, 0); trg.attachBitmap(gut, 1); trg._xscale = 100 / hdx; trg._yscale = trg._xscale; poi = new flash.geom.Point(0, 0); mapd(); sk = _root.sk; upa(); if (levz.length <= 1) { levz = new Array(200); } itb = 0; lastcraf = -30; if (_root.playerx <= 0 or _root.newstartt) { _root.playerx = 320; _root.playery = 400; } player = create(_root.playerx, _root.playery, 0, 0, 0, 0, 1); if (_root.getup) { _root.getup = false; player.d.gotoAndStop(5); } if (_root.tell) { _root.tell = false; player.d.gotoAndStop(8); } player.mhp = _root.mhp; player.hp = _root.hp; Mouse.removeListener(); if (mouseListener == undefined) { mouseListener = new Object(); mouseListener.onMouseDown = function () { md = true; }; mouseListener.onMouseUp = function () { md = false; }; } Mouse.addListener(mouseListener); unpause = true; _root.pinfo = 2; fra = 0; player.fire = 0; player.fire1 = 0; ayenf = 0; axenf = 0; sob = 1; _root.st2._visible = false; _root.hud.st1._visible = _root.st2._visible; olfy = 0; olfx = 0; f1 = 440; switch (_root.door * 1) { case 0: olfx = -640; break; case 2: olfx = 640; break; case 1: olfy = f1; break; case 3: olfy = -f1; } _x = olfx; _y = olfy; shutdoor = 1; brr = []; brr2 = []; gibb = 0; if (_root.tex != undefined) { wtftex = _root.tex; } gameover = 0; justnow = 9; itc = [0, 6, 3, 6, 1, 2, 1, 3, 0, 3, 3, 0, 2, 4, 0, 3, 2, 3, 3, 0, 0, 0, 0, 0, 0, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 6, 6, 6, 3, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 0, 6, 0, 0, 3, 0, 6, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 4]; wtfps2 = getTimer(); wtfps = 35; wtfpsh = true; wtff = 60; _root.mapa._visible = true; _root.hud._visible = true; if (_root.shopl == _root.lev) { _root.shopa = true; } if (_root.boner == _root.lev) { _root.bona = true; } minions = 0; flyby = 0; mom = []; worm = mom; mags = worm; mhelps = 0; if (_root.lev == _root.bossl) { altboss = _root.altboss; if (_root.chaps == 8 or _root.chaps == 6 && !_root.locker[3]) { _root.unl.gotoAndStop(1); _root.unl.nogo = true; } } ffly = 0; nextbo = true; emosound = true; flyby2 = 0; flyby3 = 0; flyby4 = 0; playsave = -1; unic = -1; demon = -1; plo = 1; lastxy = 0; lastxx = 0; if (_root.chaf) { player.fire = -10; chaf = -20; } tictic = _root.itc; nocharge = 0; chamb = 0; mhpp = 0; ahpp = 0; red = 0; blue = 0; if (_root.ups[122] && player.hp < 1) { player._visible = false; } } } movieClip 5046 { } movieClip 5048 { } movieClip 5049 { } movieClip 5050 { frame 32 { _parent.gotoAndStop(1); } } movieClip 5052 { } movieClip 5053 { } movieClip 5054 { frame 32 { _parent.gotoAndStop(1); } } movieClip 5056 { } movieClip 5057 { } movieClip 5058 { frame 32 { _parent.gotoAndStop(1); } } movieClip 5060 { } movieClip 5061 { } movieClip 5062 { frame 32 { _parent.gotoAndStop(1); } } movieClip 5064 { } movieClip 5065 { } movieClip 5066 { frame 32 { _parent.gotoAndStop(1); } } movieClip 5068 { } movieClip 5069 { frame 32 { _parent.gotoAndStop(1); } } movieClip 5071 { } movieClip 5072 { } movieClip 5073 { frame 32 { _parent.gotoAndStop(1); } } movieClip 5075 { } movieClip 5076 { } movieClip 5077 { frame 32 { _parent.gotoAndStop(1); } } movieClip 5079 { } movieClip 5080 { } movieClip 5081 { frame 32 { _parent.gotoAndStop(1); } } movieClip 5083 { } movieClip 5084 { } movieClip 5085 { frame 32 { _parent.gotoAndStop(1); } } movieClip 5096 { } movieClip 5097 { frame 34 { _parent.gotoAndStop(1); } } movieClip 5099 { } movieClip 5100 { } movieClip 5101 { frame 32 { _parent.gotoAndStop(1); } } movieClip 5103 { } movieClip 5104 { } movieClip 5105 { frame 32 { _parent.gotoAndStop(1); } } movieClip 5106 { frame 1 { stop(); } } movieClip 5108 { frame 124 { stop(); _visible = false; } } frame 3 { _root.goblack(); } movieClip 5114 { frame 1 { f1 = Math.round(_root.chaps / 2); _root.tex = f1; gotoAndStop(f1); } } movieClip 5116 { } movieClip 5119 { } movieClip 5128 { } movieClip 5130 { } movieClip 5131 { } movieClip 5133 { } movieClip 5135 { } movieClip 5137 { } movieClip 5139 { } movieClip 5141 { } movieClip 5143 { } movieClip 5145 { } movieClip 5146 { } movieClip 5148 { } movieClip 5150 { } movieClip 5152 { } movieClip 5154 { } movieClip 5155 { } movieClip 5159 { } movieClip 5165 { } movieClip 5166 { } movieClip 5177 { } movieClip 5180 { } movieClip 5182 { } movieClip 5187 { } movieClip 5195 { } movieClip 5197 { } movieClip 5238 { } movieClip 5248 { } movieClip 5275 { } movieClip 5280 { } movieClip 5287 { } movieClip 5288 { } movieClip 5309 { } movieClip 5310 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 5311 { frame 1 { _root.soundy('levelbumper.mp3', 100); } frame 2 { if (_root.locker[4]) { f1.gotoAndStop(2); } else { f1.gotoAndStop(1); } f2.gotoAndStop(_root.chaps); f1.d.gotoAndStop(_root.chaps); } frame 224 { _root.gotoAndStop('game'); } } frame 4 { goblack(); _root.olda._visible = false; _root.door = undefined; } movieClip 5313 { frame 1 { gotoAndStop(random(_totalframes) + 1); } } movieClip 5320 { frame 1 { gotoAndStop(_root.skiner + 1); } } movieClip 5322 { } movieClip 5323 { frame 20 { _root.soundy('bossintro.mp3', 100); } frame 158 { _root.gotoAndStop('game'); } } frame 5 { _root.goblack(); } frame 5 { _root.newstartt = true; } movieClip 5327 { } movieClip 5329 { } movieClip 5332 { } movieClip 5336 { } movieClip 5341 { } movieClip 5344 { } movieClip 5347 { } movieClip 5350 { } movieClip 5353 { } movieClip 5356 { } movieClip 5357 { frame 1 { if (_root.locker[53]) { gotoAndStop(7); } else { if (_root.locker[41]) { gotoAndStop(6); } else { if (_root.locker[45]) { gotoAndStop(5); } else { if (_root.locker[42]) { gotoAndStop(4); } else { if (_root.locker[3]) { gotoAndStop(3); } else { if (_root.locker[4]) { gotoAndStop(2); } else { gotoAndStop(1); } } } } } } } } movieClip 5358 { } movieClip 5359 { } button 5364 { on (release, keyPress '<Space>') { if (pos == 4) { } else { if (pos == 1) { achsh(); } else { if (_parent.ex._currentframe == 2) { _root.nooo(); } else { if (xp > 0) { pos = undefined; } else { if (xp == 0) { pos = 3; } else { if (_root.skiner == 0 or _root.locker[_root.skiner] && _root.skiner != 5 or _root.skiner == 5 && _root.locker[54]) { _root.darky(150); } } } } } } } } button 5368 { on (release) { pos = 2; } } button 5371 { on (release) { pos = 1; } } button 5372 { on (release) { pos = 5; } } movieClip 5379 { } movieClip 5382 { } movieClip 5385 { } movieClip 5387 { } button 5390 { on (release, keyPress '<Left>') { if (_parent.pos == 3) { --skiner; _root.soundy('character_select_left.wav'); } } } button 5391 { on (release, keyPress '<Right>') { if (_parent.pos == 3) { ++skiner; _root.soundy('character_select_right.wav'); } } } movieClip 5394 { } movieClip 5396 { } movieClip 5398 { frame 1 { if (_root.locker[38]) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 5401 { } movieClip 5404 { } movieClip 5407 { } movieClip 5410 { } movieClip 5412 { } movieClip 5413 { frame 1 { stop(); } } movieClip 5415 { } movieClip 5418 { } movieClip 5419 { frame 1 { function onEnterFrame() { if (!_root.locker[41]) { chars = 5; } else { chars = 6; } if (chars == 5) { while (skiner > 4) { skiner -= 5; } while (skiner < 0) { skiner += 5; } } else { while (skiner > 5) { skiner -= 6; } while (skiner < 0) { skiner += 6; } } f2 = 360 / chars; _root.skiner = skiner; if (skiner == 5) { _root.skiner = 4; } else { if (skiner == 4) { _root.skiner = 5; } } xenf = rp + rbew * 3 - skiner * f2; while (xenf >= 180) { xenf -= 360; } while (xenf >= 180) { xenf -= 360; } while (rp < 180) { rp += 360; } rbew -= xenf * 0.1; rbew *= 0.8; rp += rbew; inc.gotoAndStop(skiner + 1); if (_root.locker[skiner] && skiner != 4 or skiner == 4 && _root.locker[54]) { inc.d.gotoAndStop(1); } else { inc.d.gotoAndStop(2); } e = 0; while (e < chars) { trg = this['i' + e]; if (e == 5) { trg = i4; } else { if (e == 4) { trg = i5; } } if (chars == 5) { f1 = [0, 2, 3, 4, 1]; o = f1[e]; } else { o = e; f1 = [0, 3, 4, 5, 2, 1]; o = f1[e]; } f1 = ((rp + o * f2) / 180) * Math.PI; trg._x = -Math.sin(f1) * 100 + 100; f1 = Math.cos(f1) * 25 + 65; trg._y = f1; trg._yscale = f1; trg._xscale = trg._yscale; trg._alpha = trg._yscale; trg._alpha += 20; trg.swapDepths(Math.round(trg._y) * 10 + e); f1 = [0, 3, 2, 1, 54, 1]; if (_root.locker[f1[e]]) { trg.gotoAndStop(1); } else { trg.gotoAndStop(2); } ++e; } } rp = 360; skiner = 0; rbew = 0; } } button 5423 { on (release) { if (pos == 3) { if (_root.skiner == 0 or _root.locker[_root.skiner] && _root.skiner != 5 or _root.skiner == 5 && _root.locker[54]) { _root.darky(150); } } } } button 5426 { on (release) { if (pos == 0) { _root.creskip = true; if (_root.so.data.wins > 0) { _root.gotoAndStop(21); } else { _root.gotoAndStop(20); } } else { pos = 0; } } } button 5427 { on (release) { pos = undefined; } } movieClip 5430 { } movieClip 5431 { } button 5435 { on (release) { if (_root.linx) { _parent.ex.gotoAndStop(3); } else { _parent.ex.nextFrame(); } } } button 5439 { on (release) { nextFrame(); } } movieClip 5440 { frame 1 { stop(); }




http://swfchan.com/48/237164/info.shtml
Created: 20/9 -2020 05:30:41 Last modified: 20/9 -2020 05:30:41 Server time: 19/04 -2024 05:38:47