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

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

1313055878337.swf

This is the info page for
Flash #99670

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


ActionScript [AS1/AS2]
Combined Code
movieClip 157 { frame 1 { this._alpha = 0; } } movieClip 159 { } movieClip 161 { } movieClip 162 { } movieClip 164 { } movieClip 166 { } movieClip 168 { } movieClip 170 { } movieClip 172 { } movieClip 173 { frame 1 { stop(); } frame 5 { stop(); } } movieClip 175 { } movieClip 177 { } movieClip 179 { } movieClip 181 { } movieClip 182 { } movieClip 184 { } movieClip 186 { } movieClip 187 { } movieClip 188 { } movieClip 190 { } movieClip 192 { } movieClip 193 { } movieClip 195 { } movieClip 197 { } movieClip 198 { } movieClip 199 turnip { frame 1 { stop(); } } movieClip 201 introMask { } movieClip 208 bloodExplosion { } movieClip 212 { } movieClip 213 rotatingLaser { frame 30 { gotoAndPlay(1); } } movieClip 216 { } movieClip 218 { } movieClip 220 { } movieClip 222 { } movieClip 224 { } movieClip 227 { } movieClip 230 { } movieClip 232 { frame 1 { stop(); } } movieClip 236 { frame 1 { if (_parent._currentframe == 1) { _parent.laces._y = -41; 7; } } frame 80 { if (_parent._currentframe == 1) { _parent.laces._y = -39; 7; } } frame 81 { if (_parent._currentframe == 1) { _parent.laces._y = -37.7; } } } movieClip 239 { } movieClip 241 { } movieClip 243 { } movieClip 245 { } movieClip 247 { } movieClip 249 { } movieClip 252 { } movieClip 254 { } movieClip 259 { } movieClip 261 { } movieClip 265 { } movieClip 268 { } movieClip 270 { } movieClip 275 { } movieClip 277 { } movieClip 279 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 281 { } movieClip 284 { } movieClip 289 { } movieClip 291 { } movieClip 293 { } movieClip 295 { } movieClip 297 { } movieClip 300 { } movieClip 302 { } movieClip 304 { } movieClip 306 { } movieClip 308 { } movieClip 310 { } movieClip 312 { } movieClip 314 { } movieClip 316 { } movieClip 318 { } movieClip 320 { } movieClip 322 { } movieClip 324 { } movieClip 325 { frame 1 { stop(); } } movieClip 327 { } movieClip 329 { } movieClip 330 { } movieClip 331 { } movieClip 332 { } movieClip 336 { } movieClip 338 { } movieClip 340 { } movieClip 342 { } movieClip 343 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 344 leelee { } movieClip 346 { } movieClip 348 { } movieClip 350 { } movieClip 351 { frame 1 { _parent._parent.otherThingsA.push(this); this.type = 'pipe'; this.dir = 'up'; this._alpha = 0; } } movieClip 354 { } movieClip 356 { } movieClip 358 { } movieClip 360 { } movieClip 361 { } movieClip 363 { frame 1 { this._visible = false; } } movieClip 364 level_intro { instance svensson of movieClip 351 { onClipEvent (load) { map = [0, 1]; pipe = 'svensson'; } } } movieClip 366 glitter { } movieClip 370 ballLaser { } // unknown tag 88 length 52 // unknown tag 88 length 220 movieClip 377 lockedAchievement { } movieClip 379 pauseClip { } movieClip 381 { } // unknown tag 88 length 215 movieClip 384 { } movieClip 385 { } movieClip 386 scoreSubmitForCreditRoll { } movieClip 402 theEndText { frame 21 { stop(); } } // unknown tag 88 length 68 // unknown tag 88 length 63 movieClip 408 creditRoll { } movieClip 410 black { } movieClip 414 { } movieClip 416 { } movieClip 418 { } movieClip 419 { } movieClip 420 { } movieClip 422 { } movieClip 426 { } movieClip 429 { } movieClip 431 { } movieClip 433 { } movieClip 435 { } movieClip 438 { } movieClip 439 titleScreen { } movieClip 441 keysMC { } movieClip 444 achievement { } movieClip 455 { } movieClip 456 { } movieClip 460 { frame 1 { stop(); } } movieClip 467 gui { } movieClip 481 explosion_large { frame 22 { removeMovieClip(this); } } movieClip 491 explosion_medium { } movieClip 493 { } movieClip 495 { } movieClip 496 leeleeDead { } movieClip 499 { } movieClip 501 { } movieClip 503 { } movieClip 507 { } movieClip 508 { } movieClip 516 { frame 1 { stop(); } frame 42 { stop(); } } movieClip 518 { } movieClip 520 { } movieClip 521 { } movieClip 523 { } movieClip 529 { frame 1 { stop(); } } movieClip 537 { } movieClip 539 { } movieClip 541 { } movieClip 543 { frame 1 { stop(); } } movieClip 544 { frame 1 { _parent._parent.enemiesA.push(this); this.type = 'boss'; } } movieClip 546 { frame 1 { _visible = false; } } movieClip 547 level5_3 { } movieClip 549 upKeyMC { } // unknown tag 88 length 88 movieClip 552 spaceToSkip { } movieClip 555 { } movieClip 557 { } movieClip 562 { frame 1 { stop(); } } movieClip 563 { frame 1 { this._alpha = 0; } } movieClip 564 { frame 1 { stop(); } } movieClip 565 { frame 1 { _parent._parent.enemiesA.push(this); this.type = 'oldman'; } } movieClip 567 { } movieClip 570 { } movieClip 571 { } movieClip 573 { } movieClip 575 { } movieClip 577 { } movieClip 579 { } movieClip 585 { } movieClip 586 { frame 1 { _parent._parent.coinsA.push(this); } } movieClip 587 level6_3 { instance of movieClip 565 { onClipEvent (load) { _xscale = -100; } } instance svensson of movieClip 351 { onClipEvent (load) { map = [4, 1]; pipe = 'svensson'; } } } movieClip 591 { frame 1 { stop(); } } movieClip 596 { frame 5 { stop(); } } movieClip 597 { frame 1 { stop(); } } movieClip 598 { frame 1 { _parent._parent.otherThingsA.push(this); this.type = 'star'; } } movieClip 599 level6_2 { instance svensson of movieClip 351 { onClipEvent (load) { map = [3, 0]; pipe = 'svensson'; } } } movieClip 600 { } movieClip 601 level6_1 { instance svensson of movieClip 351 { onClipEvent (load) { map = [0, 2]; pipe = 'svensson'; } } } movieClip 604 { } movieClip 605 { } movieClip 606 level6_0 { instance svensson of movieClip 351 { onClipEvent (load) { map = [0, 0]; pipe = 'svensson'; } } } movieClip 609 { } movieClip 610 { } movieClip 612 { } movieClip 614 { } movieClip 616 { } movieClip 618 { } movieClip 619 { } movieClip 622 { } movieClip 624 { } movieClip 626 { } movieClip 629 { } movieClip 630 { } movieClip 632 { } movieClip 635 { } movieClip 637 { } movieClip 639 { } movieClip 641 { } movieClip 643 { } movieClip 645 { } movieClip 647 { } movieClip 649 { } movieClip 650 { } movieClip 652 { } movieClip 654 { } movieClip 656 { } movieClip 658 { } movieClip 662 { } movieClip 664 { } movieClip 666 { } movieClip 668 { } movieClip 670 { } movieClip 672 { } movieClip 676 { } movieClip 677 { } movieClip 678 { frame 1 { _parent._parent.enemiesA.push(this); this.type = 'cylinder'; } } movieClip 679 level3_1 { } movieClip 681 { } movieClip 683 { } movieClip 687 { } movieClip 689 { } movieClip 691 { frame 1 { stop(); } } movieClip 692 { frame 1 { _parent._parent.enemiesA.push(this); type = 'razorBlade'; } } movieClip 694 { } movieClip 696 { } movieClip 699 { } movieClip 700 { } movieClip 701 { } movieClip 703 { } movieClip 705 { } movieClip 707 { } movieClip 709 { } movieClip 711 { } movieClip 713 { } movieClip 715 { } movieClip 717 { } movieClip 719 { } movieClip 721 { } movieClip 723 { } movieClip 724 { } movieClip 725 { frame 1 { _parent._parent.enemiesA.push(this); type = 'icosahedron'; } } movieClip 727 { } movieClip 729 { } movieClip 731 { } movieClip 733 { } movieClip 736 { } movieClip 738 { } movieClip 740 { } movieClip 742 { } movieClip 744 { } movieClip 745 { frame 1 { stop(); } } movieClip 746 { frame 1 { _parent._parent.otherThingsA.push(this); this.type = 'bouncer'; } } movieClip 748 { } movieClip 749 { frame 1 { _parent._parent.otherThingsA.push(this); this.type = 'newspaper'; } } movieClip 750 level4_1 { instance of movieClip 725 { onClipEvent (load) { dir = 1; } } instance svensson of movieClip 351 { onClipEvent (load) { map = [6, 3]; pipe = 'svensson'; } } } movieClip 752 { } movieClip 754 { } movieClip 757 { } movieClip 759 { } movieClip 761 { } movieClip 764 { } movieClip 768 { } movieClip 773 { } movieClip 774 { } movieClip 775 { frame 1 { _parent._parent.enemiesA.push(this); this.type = 'cube'; } } movieClip 777 { } movieClip 782 { } movieClip 784 { } movieClip 786 { } movieClip 787 { frame 1 { _parent._parent.enemiesA.push(this); type = 'flyingCube'; } } movieClip 788 { frame 1 { _parent._parent.mpLefts.push(this); this._alpha = 0; } } movieClip 789 { frame 1 { _parent._parent.mpRights.push(this); this._alpha = 0; } } movieClip 791 { } movieClip 793 { } movieClip 795 { } movieClip 797 { } movieClip 799 { } movieClip 801 { } movieClip 803 { } movieClip 807 { frame 1 { stop(); } } movieClip 813 { } movieClip 814 { frame 1 { _parent._parent.enemiesA.push(this); this.type = 'pyramid'; } } movieClip 818 breakable { frame 1 { stop(); } } movieClip 819 { frame 1 { _parent._parent.otherThingsA.push(this); this.type = 'breakable'; } } movieClip 821 { } movieClip 823 { } movieClip 824 { } movieClip 825 level4_3 { instance of movieClip 814 { onClipEvent (load) { dir = 1; } } instance of movieClip 814 { onClipEvent (load) { dir = 1; } } } movieClip 829 { } movieClip 831 { } movieClip 832 { } movieClip 834 { } movieClip 836 { frame 1 { _parent._parent.enemyStoppers.push(this); this._alpha = 0; } } movieClip 837 level3_3 { instance of movieClip 814 { onClipEvent (load) { dir = 1; } } } movieClip 840 { } movieClip 843 { } movieClip 845 { } movieClip 846 { } movieClip 848 { } movieClip 850 { } movieClip 851 { } movieClip 854 { } movieClip 856 { } movieClip 858 { } movieClip 860 { } movieClip 862 { } movieClip 864 { } movieClip 866 { } movieClip 869 { } movieClip 871 { } movieClip 873 { } movieClip 875 { } movieClip 878 { } movieClip 883 { } movieClip 891 { } movieClip 892 { } movieClip 893 { frame 1 { _parent._parent.enemiesA.push(this); this.type = 'rectangle'; } } movieClip 894 { frame 1 { _parent._parent.mpDowns.push(this); this._alpha = 0; } } movieClip 895 { frame 1 { _parent._parent.mpUps.push(this); this._alpha = 0; } } movieClip 898 movingPlatform { frame 1 { _parent._parent._parent.movingPlatformsA.push(this); } } movieClip 900 { } movieClip 901 { instance of movieClip 898 movingPlatform { onClipEvent (load) { xDir = -4; yDir = 0; } } instance of movieClip 898 movingPlatform { onClipEvent (load) { xDir = 0; yDir = 4; } } instance of movieClip 898 movingPlatform { onClipEvent (load) { xDir = -4; yDir = 0; } } instance of movieClip 898 movingPlatform { onClipEvent (load) { xDir = 0; yDir = -4; } } instance of movieClip 898 movingPlatform { onClipEvent (load) { xDir = 4; yDir = 0; } } } movieClip 902 level1_3 { instance of movieClip 893 { onClipEvent (load) { dir = 1; } } } movieClip 905 { } movieClip 906 { } movieClip 907 { } movieClip 909 { } movieClip 915 { } movieClip 917 { } movieClip 918 { instance of movieClip 898 movingPlatform { onClipEvent (load) { xDir = -3; yDir = 0; } } instance of movieClip 898 movingPlatform { onClipEvent (load) { xDir = 0; yDir = 2; } } } movieClip 919 level2_3 { instance of movieClip 787 { onClipEvent (load) { dir = 1; } } } movieClip 922 { } movieClip 923 { } movieClip 925 { } movieClip 926 { } movieClip 927 { } movieClip 929 { } movieClip 932 { } movieClip 934 { } movieClip 936 { } movieClip 937 { } movieClip 938 { } movieClip 939 level0_3 { } movieClip 941 { } movieClip 944 { } movieClip 946 { } movieClip 947 { } movieClip 949 { } movieClip 950 level5_1 { } movieClip 952 { } movieClip 954 { } movieClip 955 { } movieClip 957 { } movieClip 960 { } movieClip 961 { } movieClip 962 { frame 1 { _parent._parent.enemiesA.push(this); type = 'wallBlock'; } } movieClip 963 level5_2 { } movieClip 966 { } movieClip 968 { } movieClip 969 { } movieClip 970 level4_0 { } movieClip 972 { } movieClip 974 { } movieClip 975 { } movieClip 976 level5_0 { } movieClip 982 { } movieClip 984 { } movieClip 985 { } movieClip 986 level4_2 { instance of movieClip 893 { onClipEvent (load) { dir = 1; } } instance of movieClip 814 { onClipEvent (load) { dir = 1; } } instance of movieClip 814 { onClipEvent (load) { dir = 1; } } } movieClip 989 { } movieClip 991 { } movieClip 992 { } movieClip 993 level3_2 { instance of movieClip 893 { onClipEvent (load) { dir = 1; } } instance of movieClip 814 { onClipEvent (load) { dir = 1; } } } movieClip 996 { } movieClip 998 { } movieClip 999 { } movieClip 1000 level3_0 { instance svensson of movieClip 351 { onClipEvent (load) { map = [6, 2]; pipe = 'svensson'; } } } movieClip 1003 { } movieClip 1007 { } movieClip 1009 { } movieClip 1010 { } movieClip 1012 { } movieClip 1013 level2_2 { } movieClip 1016 { } movieClip 1019 { } movieClip 1020 { } movieClip 1021 { instance of movieClip 898 movingPlatform { onClipEvent (load) { xDir = 2; yDir = 0; } } instance of movieClip 898 movingPlatform { onClipEvent (load) { xDir = -2; yDir = 0; } } instance of movieClip 898 movingPlatform { onClipEvent (load) { xDir = 2; yDir = 0; } } instance of movieClip 898 movingPlatform { onClipEvent (load) { xDir = -2; yDir = 0; } } } movieClip 1022 level1_1 { frame 1 { _parent._parent.enemiesA.push(this); type = 'razorblade'; } instance of movieClip 893 { onClipEvent (load) { dir = 1; } } instance of movieClip 775 { onClipEvent (load) { dir = 1; } } } movieClip 1025 { } movieClip 1027 { } movieClip 1028 { } movieClip 1030 { } movieClip 1031 level2_1 { } movieClip 1034 { } movieClip 1035 { instance of movieClip 898 movingPlatform { onClipEvent (load) { xDir = -2; yDir = 0; } } instance of movieClip 898 movingPlatform { onClipEvent (load) { xDir = 2; yDir = 0; } } } movieClip 1036 level1_2 { } movieClip 1038 { } movieClip 1041 { } movieClip 1043 { } movieClip 1044 { } movieClip 1045 level0_2 { instance svensson of movieClip 351 { onClipEvent (load) { map = [6, 1]; pipe = 'svensson'; } } } movieClip 1048 { } movieClip 1050 { } movieClip 1052 { } movieClip 1053 { } movieClip 1055 level0_1 { } movieClip 1057 { } movieClip 1058 { } movieClip 1059 { } movieClip 1060 level1_0 { } movieClip 1063 { } movieClip 1065 { } movieClip 1066 { } movieClip 1067 level0_0 { instance of movieClip 775 { onClipEvent (load) { this._; } } instance svensson of movieClip 351 { onClipEvent (load) { map = [6, 0]; pipe = 'svensson'; } } } movieClip 1070 { } movieClip 1072 { } movieClip 1073 { } movieClip 1075 { } movieClip 1076 level2_0 { instance of movieClip 787 { onClipEvent (load) { dir = 1; } } } movieClip 1078 { } movieClip 1082 { } movieClip 1084 creditsScreen { } movieClip 1087 { } movieClip 1089 { frame 1 { stop(); } } movieClip 1091 { } movieClip 1092 { frame 1 { stop(); } } movieClip 1093 muteClip { } movieClip 1095 heart { frame 1 { _parent._parent.otherThingsA.push(this); this.type = 'heart'; } } movieClip 1099 { frame 1 { stop(); } } movieClip 1117 { } movieClip 1119 { } movieClip 1120 { } movieClip 1122 { } movieClip 1124 { } movieClip 1126 { } movieClip 1128 { } movieClip 1131 { } movieClip 1132 { } movieClip 1133 stageClear { } movieClip 1137 { } movieClip 1138 { } movieClip 1140 { } movieClip 1141 thanksForPlaying { } movieClip 1146 poop { frame 21 { stop(); } } // unknown tag 88 length 70 movieClip 1150 { frame 1 { function clearListeners() { trace('rrr'); var v3 = Number(this.var3); var v2 = Number(this.var1); trace('!1! ' + v3 + ' :: ' + v2); try { var v9 = flash.external.ExternalInterface.call('getLittleServer'); } catch (v0) { if (Error(v0) != null) { var oErr = Error(v0); v9 = 'http://highscores.adultswim.com/highscores/SubmitScoreServlet.do?'; trace('err 1: ' + oErr + ' :: ' + oErr.message); } else { throw v0; } } try { var v4 = flash.external.ExternalInterface.call('getSrvrTime'); } catch (v0) { if (Error(v0) != null) { var oErr = Error(v0); v4 = (new Date()).getTime(); trace('err 2: ' + oErr + ' :: ' + oErr.message); } else { throw v0; } } var v7 = v4.toString(); var v13 = v7.substr(-3, 3); var v12 = v7.substr(-4, 3); var v11 = parseInt(v13); var v10 = parseInt(v12); var v8 = v11 * v10 * v2 + v2; trace('nAlgo ' + v8); var v5 = v3 + ',' + v2 + ',' + v4 + ',' + v8; trace('strToPass ' + v5); var v6 = m.hash(v5); trace(v9 + 'attr1=score=' + v2 + '|gameId=' + v3 + '|timestamp=' + v4 + '|key=' + v6); getURL(v9 + 'attr1=score=' + v2 + '|gameId=' + v3 + '|timestamp=' + v4 + '|key=' + v6, '_self'); } try { var m = new as2md5(); } catch (v0) { if (Error(v0) != null) { var oErr = Error(v0); var m; trace('err 0: ' + oErr + ' :: ' + oErr.message); } else { throw v0; } } } frame 1 { } } movieClip 1174 __Packages.as2md5 { #initclip if (!_global.as2md5) { var v1 = function (b64pad, chrsz) { if (b64pad != undefined) { this.b64pad = b64pad; } if (chrsz != undefined && chrsz == 8 || chrsz == 16) { this.chrsz = chrsz; } }; _global.as2md5 = v1; var v2 = v1.prototype; v2.hash = function (s) { return this.hex_md5(s); }; v2.hex_md5 = function (s) { return this.binl2hex(this.core_md5(this.str2binl(s), s.length * this.chrsz)); }; v2.b64_md5 = function (s) { return this.binl2b64(this.core_md5(this.str2binl(s), s.length * this.chrsz)); }; v2.str_md5 = function (s) { return this.binl2str(this.core_md5(this.str2binl(s), s.length * this.chrsz)); }; v2.hex_hmac_md5 = function (key, data) { return this.binl2hex(this.core_hmac_md5(key, data)); }; v2.b64_hmac_md5 = function (key, data) { return this.binl2b64(this.core_hmac_md5(key, data)); }; v2.str_hmac_md5 = function (key, data) { return this.binl2str(this.core_hmac_md5(key, data)); }; v2.md5_cmn = function (q, a, b, x, s, t) { return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(a, q), this.safe_add(x, t)), s), b); }; v2.md5_ff = function (a, b, c, d, x, s, t) { return this.md5_cmn(b & c | ~b & d, a, b, x, s, t); }; v2.md5_gg = function (a, b, c, d, x, s, t) { return this.md5_cmn(b & d | c & ~d, a, b, x, s, t); }; v2.md5_hh = function (a, b, c, d, x, s, t) { return this.md5_cmn(b ^ c ^ d, a, b, x, s, t); }; v2.md5_ii = function (a, b, c, d, x, s, t) { return this.md5_cmn(c ^ (b | ~d), a, b, x, s, t); }; v2.core_md5 = function (x, len) { x[len >> 5] |= 128 << len % 32; x[(len + 64 >>> 9 << 4) + 14] = len; var v5 = 1732584193; var v4 = -271733879; var v3 = -1732584194; var v2 = 271733878; var v6 = 0; while (v6 < x.length) { var v11 = v5; var v10 = v4; var v9 = v3; var v8 = v2; v5 = this.md5_ff(v5, v4, v3, v2, x[v6 + 0], 7, -680876936); v2 = this.md5_ff(v2, v5, v4, v3, x[v6 + 1], 12, -389564586); v3 = this.md5_ff(v3, v2, v5, v4, x[v6 + 2], 17, 606105819); v4 = this.md5_ff(v4, v3, v2, v5, x[v6 + 3], 22, -1044525330); v5 = this.md5_ff(v5, v4, v3, v2, x[v6 + 4], 7, -176418897); v2 = this.md5_ff(v2, v5, v4, v3, x[v6 + 5], 12, 1200080426); v3 = this.md5_ff(v3, v2, v5, v4, x[v6 + 6], 17, -1473231341); v4 = this.md5_ff(v4, v3, v2, v5, x[v6 + 7], 22, -45705983); v5 = this.md5_ff(v5, v4, v3, v2, x[v6 + 8], 7, 1770035416); v2 = this.md5_ff(v2, v5, v4, v3, x[v6 + 9], 12, -1958414417); v3 = this.md5_ff(v3, v2, v5, v4, x[v6 + 10], 17, -42063); v4 = this.md5_ff(v4, v3, v2, v5, x[v6 + 11], 22, -1990404162); v5 = this.md5_ff(v5, v4, v3, v2, x[v6 + 12], 7, 1804603682); v2 = this.md5_ff(v2, v5, v4, v3, x[v6 + 13], 12, -40341101); v3 = this.md5_ff(v3, v2, v5, v4, x[v6 + 14], 17, -1502002290); v4 = this.md5_ff(v4, v3, v2, v5, x[v6 + 15], 22, 1236535329); v5 = this.md5_gg(v5, v4, v3, v2, x[v6 + 1], 5, -165796510); v2 = this.md5_gg(v2, v5, v4, v3, x[v6 + 6], 9, -1069501632); v3 = this.md5_gg(v3, v2, v5, v4, x[v6 + 11], 14, 643717713); v4 = this.md5_gg(v4, v3, v2, v5, x[v6 + 0], 20, -373897302); v5 = this.md5_gg(v5, v4, v3, v2, x[v6 + 5], 5, -701558691); v2 = this.md5_gg(v2, v5, v4, v3, x[v6 + 10], 9, 38016083); v3 = this.md5_gg(v3, v2, v5, v4, x[v6 + 15], 14, -660478335); v4 = this.md5_gg(v4, v3, v2, v5, x[v6 + 4], 20, -405537848); v5 = this.md5_gg(v5, v4, v3, v2, x[v6 + 9], 5, 568446438); v2 = this.md5_gg(v2, v5, v4, v3, x[v6 + 14], 9, -1019803690); v3 = this.md5_gg(v3, v2, v5, v4, x[v6 + 3], 14, -187363961); v4 = this.md5_gg(v4, v3, v2, v5, x[v6 + 8], 20, 1163531501); v5 = this.md5_gg(v5, v4, v3, v2, x[v6 + 13], 5, -1444681467); v2 = this.md5_gg(v2, v5, v4, v3, x[v6 + 2], 9, -51403784); v3 = this.md5_gg(v3, v2, v5, v4, x[v6 + 7], 14, 1735328473); v4 = this.md5_gg(v4, v3, v2, v5, x[v6 + 12], 20, -1926607734); v5 = this.md5_hh(v5, v4, v3, v2, x[v6 + 5], 4, -378558); v2 = this.md5_hh(v2, v5, v4, v3, x[v6 + 8], 11, -2022574463); v3 = this.md5_hh(v3, v2, v5, v4, x[v6 + 11], 16, 1839030562); v4 = this.md5_hh(v4, v3, v2, v5, x[v6 + 14], 23, -35309556); v5 = this.md5_hh(v5, v4, v3, v2, x[v6 + 1], 4, -1530992060); v2 = this.md5_hh(v2, v5, v4, v3, x[v6 + 4], 11, 1272893353); v3 = this.md5_hh(v3, v2, v5, v4, x[v6 + 7], 16, -155497632); v4 = this.md5_hh(v4, v3, v2, v5, x[v6 + 10], 23, -1094730640); v5 = this.md5_hh(v5, v4, v3, v2, x[v6 + 13], 4, 681279174); v2 = this.md5_hh(v2, v5, v4, v3, x[v6 + 0], 11, -358537222); v3 = this.md5_hh(v3, v2, v5, v4, x[v6 + 3], 16, -722521979); v4 = this.md5_hh(v4, v3, v2, v5, x[v6 + 6], 23, 76029189); v5 = this.md5_hh(v5, v4, v3, v2, x[v6 + 9], 4, -640364487); v2 = this.md5_hh(v2, v5, v4, v3, x[v6 + 12], 11, -421815835); v3 = this.md5_hh(v3, v2, v5, v4, x[v6 + 15], 16, 530742520); v4 = this.md5_hh(v4, v3, v2, v5, x[v6 + 2], 23, -995338651); v5 = this.md5_ii(v5, v4, v3, v2, x[v6 + 0], 6, -198630844); v2 = this.md5_ii(v2, v5, v4, v3, x[v6 + 7], 10, 1126891415); v3 = this.md5_ii(v3, v2, v5, v4, x[v6 + 14], 15, -1416354905); v4 = this.md5_ii(v4, v3, v2, v5, x[v6 + 5], 21, -57434055); v5 = this.md5_ii(v5, v4, v3, v2, x[v6 + 12], 6, 1700485571); v2 = this.md5_ii(v2, v5, v4, v3, x[v6 + 3], 10, -1894986606); v3 = this.md5_ii(v3, v2, v5, v4, x[v6 + 10], 15, -1051523); v4 = this.md5_ii(v4, v3, v2, v5, x[v6 + 1], 21, -2054922799); v5 = this.md5_ii(v5, v4, v3, v2, x[v6 + 8], 6, 1873313359); v2 = this.md5_ii(v2, v5, v4, v3, x[v6 + 15], 10, -30611744); v3 = this.md5_ii(v3, v2, v5, v4, x[v6 + 6], 15, -1560198380); v4 = this.md5_ii(v4, v3, v2, v5, x[v6 + 13], 21, 1309151649); v5 = this.md5_ii(v5, v4, v3, v2, x[v6 + 4], 6, -145523070); v2 = this.md5_ii(v2, v5, v4, v3, x[v6 + 11], 10, -1120210379); v3 = this.md5_ii(v3, v2, v5, v4, x[v6 + 2], 15, 718787259); v4 = this.md5_ii(v4, v3, v2, v5, x[v6 + 9], 21, -343485551); v5 = this.safe_add(v5, v11); v4 = this.safe_add(v4, v10); v3 = this.safe_add(v3, v9); v2 = this.safe_add(v2, v8); v6 += 16; } return Array(v5, v4, v3, v2); }; v2.core_hmac_md5 = function (key, data) { var v3 = new Array(this.str2binl(key)); if (v3.length > 16) { v3 = this.core_md5(v3, key.length * this.chrsz); } var v4 = new Array(16); var v5 = new Array(16); var v2 = 0; while (v2 < 16) { v4[v2] = v3[v2] ^ 909522486; v5[v2] = v3[v2] ^ 1549556828; ++v2; } var v6 = new Array(this.core_md5(v4.concat(this.str2binl(data)), 512 + data.length * this.chrsz)); return this.core_md5(v5.concat(v6), 640); }; v2.safe_add = function (x, y) { var v1 = new Number((x & 65535) + (y & 65535)); var v2 = new Number((x >> 16) + (y >> 16) + (v1 >> 16)); return v2 << 16 | v1 & 65535; }; v2.bit_rol = function (num, cnt) { return num << cnt | num >>> 32 - cnt; }; v2.str2binl = function (str) { var v4 = new Array(); var v5 = (1 << this.chrsz) - 1; var v2 = 0; while (v2 < str.length * this.chrsz) { v4[v2 >> 5] |= (str.charCodeAt(v2 / this.chrsz) & v5) << v2 % 32; v2 += this.chrsz; } return v4; }; v2.binl2str = function (bin) { var v4 = new String(''); var v5 = (1 << this.chrsz) - 1; var v2 = 0; while (v2 < bin.length * 32) { v4 += String.fromCharCode(bin[v2 >> 5] >>> v2 % 32 & v5); v2 += this.chrsz; } return v4; }; v2.binl2hex = function (binarray) { var v3 = '0123456789abcdef'; var v4 = new String(''); var v1 = 0; while (v1 < binarray.length * 4) { v4 += v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 + 4 & 15) + v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 & 15); ++v1; } return v4; }; v2.binl2b64 = function (binarray) { var v7 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; var v5 = new String(''); var v3 = 0; while (v3 < binarray.length * 4) { var v6 = (binarray[v3 >> 2] >> 8 * (v3 % 4) & 255) << 16 | (binarray[v3 + 1 >> 2] >> 8 * ((v3 + 1) % 4) & 255) << 8 | binarray[v3 + 2 >> 2] >> 8 * ((v3 + 2) % 4) & 255; var v2 = 0; while (v2 < 4) { if (v3 * 8 + v2 * 6 > binarray.length * 32) { v5 += this.b64pad; } else { v5 += v7.charAt(v6 >> 6 * (3 - v2) & 63); } ++v2; } v3 += 3; } return v5; }; v2.b64pad = new String(''); v2.chrsz = new Number(8); ASSetPropFlags(_global.as2md5.prototype, null, 1); } #endinitclip } movieClip 1172 { frame 1 { stop(); } } frame 3 { function varsThatNeedToInitEveryTime() { initDialogue(dialogueA); createEmptyMovieClip('cpuStuff', 49); generatedStuff = new Object(); generatedStuffCounter = 1; levelA = new2DArray(7, 4); for (var v2 in levelA) { for (var v1 in levelA[v2]) { generatedStuff['level' + v2 + '_' + v1] = new Array(); } } currentPos = [0, 0]; maxFallSpeed = 17; largestThrownObjectXDir = 26; hatt = 0; score = 0; totalShovels = 0; containerDepth = 5; heroO = new Object(); varsF(heroO); soundCPUA = new Array(); invincibleTime = 40; } function realStartGame() { varsThatNeedToInitEveryTime(); defeatedByBoss = 0; enemiesKilled = 0; timesDead = 0; achievementsOnScreen = 0; createEmptyMovieClip('achievementMC', 893); goThroughLevels(); totalT = 0; achievementSpeaker = new Object(); achievementSpeaker.o = new Object(); achievementSpeaker.vol = 80; achievementSpeaker.isAnObject = true; offScreenTalker = new Object(); offScreenTalker.o = new Object(); offScreenTalker.vol = 40; offScreenTalker.isAnObject = true; } function realStartGame2() { startGame(0, 6); introF(); } function introF() { var v5 = c.attachMovie('introMask', 'masky', 28, {'_x': 846, '_y': 307}); var v6 = c.attachMovie('introMask', 'masky2', 29, {'_x': 846, '_y': 307}); var lulu = c.attachMovie('leelee', 'lulu', 24, {'_x': 1028, '_y': 395, '_xscale': -100}); lulu.gotoAndStop('flapping'); lulu.o = new Object(); lulu.o.mouthF = 1; var bossguy = c.attachMovie('leelee', 'bossguy', 26, {'_x': 835, '_y': 395}); bossguy.o = new Object(); bossguy.o.mouthF = 1; lulu.stop(); attachMovie('spaceToSkip', 'skipIt', 992, {'_x': screenWidth / 2, '_y': screenHeight - 30, '_alpha': 0, 't': 0, 'f': -1}); fadeInFadeOutClip(skipIt, 100, 30); currentlyIntroing = true; bossguy.stop(); bossguy.setMask(v5); lulu.setMask(v6); gui._visible = false; bossguy.onEnterFrame = function () { if (!gamePaused) { this.body.eyebrow1._visible = false; this.body.eyebrow2._visible = false; this.body.laces._visible = false; this.body.goatee._visible = false; var v3 = hexToRBG('666666'); var v2 = hexToRBG('333333'); tintItF(this.body.color1, v3[0], v3[1], v3[2], 100); tintItF(this.body.color2, v2[0], v2[1], v2[2], 100); talkingF(this); } }; lulu.onEnterFrame = function () { if (!gamePaused) { this.body.eyebrow1._visible = false; this.body.eyebrow2._visible = false; this.body.goatee._visible = false; this.body.yellow._visible = false; var v3 = hexToRBG('FF9999'); var v2 = hexToRBG('E95565'); tintItF(this.body.color1, v3[0], v3[1], v3[2], 100); tintItF(this.body.color2, v2[0], v2[1], v2[2], 100); talkingF(this); } }; c.f = 0; c.t = 0; c.onEnterFrame = function () { if (Key.isDown(32)) { hero._xscale = -100; hero.o.sitting = false; hero.o.crying = false; currentlyIntroing = false; hero.o.wasDucking = true; hero.o.ducking = false; hero.body.gotoAndStop(1); removeMovieClip(skipIt); delete skipIt.onEnterFrame; delete this.onEnterFrame; currentlyIntroing = false; c.lulu._visible = false; c.bossguy._visible = false; stopTalkingF(); gui._visible = true; gui._alpha = 0; delete this.onEnterFrame; gameLoop_02.setVolume(0); playMusic(gameLoop_02, 999); attachMovie('keysMC', 'keysMC', 392, {'_x': screenWidth - 160, '_y': screenHeight - 100, '_alpha': 0, 't': 0, 'f': 0}); fadeInFadeOutClip(keysMC, 50, 70, true); } else { if (this.f == 0) { ++this.t; if (this.t >= 50) { this.f = 1; this.t = 0; } } else { if (this.f == 1) { sayF(hero, dialogue.intro_01); ++this.t; if (this.t == 470) { lulu.body.play(); } if (!somebodyIsTalking && dialogue.intro_02.said && this.f == 1) { this.t = 0; this.f = 2; } } else { if (this.f == 2) { ++this.t; if (this.t == 20) { lulu.body.play(); } if (bossguy._x < 881) { bossguy.body.play(); bossguy._x += 3; } else { bossguy.body.stop(); hero._xscale = -100; sayF(bossguy, dialogue.intro_03); if (dialogue.intro_04.said) { hero._xscale = 100; } if (!somebodyIsTalking && dialogue.intro_04.said) { bossguy._xscale = -100; this.t = 0; this.f = 3; lulu.gotoAndStop(1); lulu.body.eyebrow1._visible = false; lulu.body.eyebrow2._visible = false; lulu.body.goatee._visible = false; lulu.body.yellow._visible = false; var v3 = hexToRBG('FF9999'); var v2 = hexToRBG('E95565'); tintItF(lulu.body.color1, v3[0], v3[1], v3[2], 100); tintItF(lulu.body.color2, v2[0], v2[1], v2[2], 100); } } } else { if (this.f == 3) { bossguy.body.play(); lulu.body.play(); bossguy._x -= 3; lulu._x -= 3; if (lulu._x < hero._x) { hero._xscale = -100; } if (lulu._x < hero._x - hero._width * 2) { hero.o.sitting = true; } if (lulu._x < 830) { this.t = 0; this.f = 4; } } else { if (this.f == 4) { hero.o.sitting = false; hero.o.crying = true; sayF(hero, dialogue.intro_05); if (dialogue.intro_05.said && !somebodyIsTalking) { this.f = 5; this.t = 0; } } else { if (this.f == 5) { hero.o.sitting = true; hero.o.crying = false; ++this.t; if (this.t > 30) { sayF(hero, dialogue.intro_06); if (dialogue.intro_06.said && !somebodyIsTalking) { this.f = 6; } } } else { if (this.f == 6) { hero.o.sitting = false; hero.o.crying = false; currentlyIntroing = false; hero.o.wasDucking = true; hero.o.ducking = true; gui._visible = true; gui._alpha = 0; delete this.onEnterFrame; gameLoop_02.setVolume(0); playMusic(gameLoop_02, 999); attachMovie('keysMC', 'keysMC', 392, {'_x': screenWidth - 160, '_y': screenHeight - 100, '_alpha': 0, 't': 0, 'f': 0}); var v4 = createEmptyMovieClip('brokeChecker', 9422); v4.t = 0; v4.onEnterFrame = function () { if (!gamePaused) { ++this.t; if (this.t == 300) { sayF(hero, dialogue.gameBroke_1); } else { if (this.t == 660) { sayF(hero, dialogue.gameBroke_2); } else { if (this.t == 740) { sayF(hero, dialogue.gameBroke_3); } } } if (RIGHT or LEFT or UP or DOWN) { removeMovieClip(this); delete this.onEnterFrame; } } }; fadeInFadeOutClip(keysMC, 50, 70, true); } } } } } } } } }; } function fadeInFadeOutClip(clip, stayTime, delay, skipIfKeyPressed) { clip.t = 0; clip.f = -1; clip._alpha = 0; clip.onEnterFrame = function () { if (this.f == -1) { ++this.t; if (skipIfKeyPressed) { if (LEFT or RIGHT or UP or DOWN) { this._alpha = 0; removeMovieClip(this); delete this.onEnterFrame; } } if (this.t > delay) { this.t = 0; this.f = 0; } } else { if (this.f == 0) { this._alpha += 5; if (skipIfKeyPressed) { if (LEFT or RIGHT or UP or DOWN) { this.f = 2; } } if (this._alpha >= 100) { this.f = 1; } } else { if (this.f == 1) { ++this.t; if (skipIfKeyPressed) { if (LEFT or RIGHT or UP or DOWN) { this.f = 2; this._alpha = 70; } } if (this.t == stayTime) { this.f = 2; } } else { if (this.f == 2) { this._alpha -= 5; if (this._alpha <= 0) { this._alpha = 0; removeMovieClip(this); delete this.onEnterFrame; } } } } } }; } function startMenuF() { attachMovie('titleScreen', 'titleMC', 1, {'_x': (-640 + screenWidth) / 2}); playMusic(menuLoop, 999); titleMC.loading._visible = false; titleMC.title._visible = false; titleMC.startGame._visible = false; titleMC.achievements._visible = false; titleMC.credits._visible = false; titleMC.byline1._visible = false; titleMC.byline2._visible = false; if (muteClip == undefined) { var v2 = attachMovie('muteClip', 'muteClip', 202392, {'_y': screenHeight - 20, '_x': screenWidth - 30}); v2.muteSounds.onRollOver = function () { tintItF(this.c, 255, 205, 255, 100); }; v2.muteMusic.onRollOver = v2.muteSounds.onRollOver; v2.muteSounds.onRollOut = function () { unTintItF(this.c); }; v2.muteMusic.onRollOut = v2.muteSounds.onRollOut; v2.muteMusic.onPress = function () { muteMusic(this); }; v2.muteSounds.onPress = function () { muteSounds(this); }; } titleMC.achievements.onPress = function () { achievementsScreen(); }; titleMC.credits.onPress = function () { creditsScreenF(); }; titleMC.startGame.onPress = function () { stopMusic(); titleMC.title._visible = false; titleMC.startGame._visible = false; titleMC.achievements._visible = false; titleMC.credits._visible = false; titleMC.loading._visible = true; titleMC.byline1._visible = false; titleMC.byline2._visible = false; tintItF(titleMC.back, 0, 0, 0, 60); delete titleMC.onEnterFrame; realStartGame(); }; titleMC.t = 0; titleMC.onEnterFrame = function () { ++this.t; if (this.t == 20) { this.byline1._visible = true; this.byline2._visible = true; this.title._visible = true; } else { if (this.t == 35) { this.startGame._visible = true; this.achievements._visible = true; this.credits._visible = true; } } }; } function creditsScreenF() { titleMC.title._visible = false; titleMC.startGame._visible = false; titleMC.achievements._visible = false; titleMC.credits._visible = false; titleMC.byline1._visible = false; titleMC.byline2._visible = false; attachMovie('creditsScreen', 'creditsScreen', 5, {'_x': (-760 + screenWidth) / 2}); creditsScreen.black.onPress = function () {}; creditsScreen.backy.onPress = function () { titleMC.title._visible = true; titleMC.startGame._visible = true; titleMC.achievements._visible = true; titleMC.credits._visible = true; titleMC.byline1._visible = true; titleMC.byline2._visible = true; removeMovieClip(creditsScreen); }; } function muteMusic(clip) { if (musicIsMute) { musicIsMute = false; clip.gotoAndStop(1); for (var v2 in musicA) { this[musicA[v2]].setVolume(100); } } else { clip.gotoAndStop(2); musicIsMute = true; for (var v2 in musicA) { this[musicA[v2]].setVolume(0); } } } function muteSounds(clip) { if (soundsAreMute) { soundsAreMute = false; clip.gotoAndStop(1); for (var v2 in soundA) { this[soundA[v2]].setVolume(100); } } else { clip.gotoAndStop(2); for (var v2 in soundA) { this[soundA[v2]].setVolume(0); } soundsAreMute = true; } } function achievementsScreen() { titleMC.title._visible = false; titleMC.startGame._visible = false; titleMC.achievements._visible = false; titleMC.credits._visible = false; titleMC.byline1._visible = false; titleMC.byline2._visible = false; createEmptyMovieClip('screen', 498); var v4 = ['killed20Enemies', 'killedOldMan', 'shovelSteal', 'shovelWhiner', 'starman', 'gotALotOfPoints', 'beatTheGame', 'nakedBeat', 'whinedDuringCredits', 'sirDieALot', 'bossSimplified', 'shovelManiac', 'massMurderer', 'unforgiving']; var v1 = 0; while (v1 < v4.length) { if (saveData.achievements[v4[v1]]) { var v3 = 'achievement'; var v5 = achievements[v4[v1]].txt; } else { var v3 = 'lockedAchievement'; var v5 = '????????????????????????????????????????????????????????????'; } var v2 = screen.getNextHighestDepth(); var v8 = 9 + 250 * (v1 % 3); var v6 = 9 + Math.floor(v1 / 3) * 90; var v7 = screen.attachMovie(v3, v3 + v2, v2, {'_x': v8, '_y': v6}); v7.line1.text = v5.toUpperCase(); ++v1; } var v11 = screen.attachMovie('backyButton', 'backyB', v2 + 1); v11._x = 594; v11._y = 389; v11.onPress = function () { removeMovieClip(screen); titleMC.title._visible = true; titleMC.startGame._visible = true; titleMC.achievements._visible = true; titleMC.credits._visible = true; titleMC.byline1._visible = true; titleMC.byline2._visible = true; }; } function initVar() { Stage.align = 'TL'; Stage.scaleMode = 'noScale'; screenWidth = 760; screenHeight = 480; fps = 30; t = 0; totalT = 0; levelT = 0; deadT = 0; if (save.data.saveData == undefined) { save.data.saveData = {}; save.data.saveData.achievements = {}; } saveData = save.data.saveData; dialogueA = ['heroOuch1', 'heroOuch2', 'heroOuch3', 'heroOuch4', 'heroOuch5', 'heroOuch6', 'heroOuch7', 'heroOuch8', 'heroFalling', 'fakePowerUp_01_2', 'rectangle_01', 'rectangle_02', 'bossDontJumpOnIt_01', 'bossTroubled_01', 'bossBrokenGlass_01', 'boss_01', 'boss_02', 'boss_03', 'boss_04', 'boss_05', 'boss_06', 'boss_07', 'boss_08', 'cube_01', 'cube_02', 'cube_03', 'cylinder1_01', 'enemyExtra1_01', 'enemyExtra2_01', 'fakePowerUp_01', 'fakePowerUp_02', 'fakePowerUp_03', 'fakePowerUp_04', 'flyingCube_01', 'heroAnnoyedSound', 'heroGot100Shovels_01', 'heroGot100Shovels_02', 'heroGotPowerUp_01', 'heroGotStar_01', 'heroGotStar_02', 'heroGotStar_03', 'heroGotStar_04', 'heroQuestionsShovels_01', 'heroThanksBetterSound_01', 'icosahedron_01', 'icosahedron_02', 'icosahedron_03', 'intro_01', 'intro_02', 'intro_03', 'intro_04', 'intro_05', 'intro_06', 'oldman1_01', 'oldman1_02', 'oldman1_03', 'oldman2_01', 'oldman2_02', 'oldman2_03', 'powerUp_01', 'powerUp_02', 'powerUp_03', 'powerUp_04', 'pyramid_01', 'starman1_01', 'starman1_02', 'starman1_03', 'starman2_01', 'starman2_02', 'starman3_01']; var v5 = ['gameBroke_1', 'gameBroke_2', 'gameBroke_3', 'youDidntThink', 'randomGreeting_21', 'randomGreeting_22', 'randomGreeting_20', 'randomGreeting_20b', 'randomGreeting_20c', 'randomGreeting_20d', 'randomGreeting_19', 'randomGreeting_19b', 'randomGreeting_19c', 'randomGreeting_19d', 'randomGreeting_19e', 'randomGreeting_19f', 'randomGreeting_18', 'randomGreeting_18b', 'randomGreeting_18c', 'randomGreeting_18d', 'randomGreeting_15', 'randomGreeting_15b', 'randomGreeting_15c', 'randomGreeting_15d', 'randomGreeting_15e', 'randomGreeting_15f', 'randomGreeting_15g', 'randomGreeting_15h', 'randomGreeting_16', 'randomGreeting_17', 'randomGreeting_17b', 'randomGreeting_17c', 'achievementUnlockedS_1', 'achievementUnlockedS_2', 'heroAlternativeNewspaper', 'youDieALot_1', 'youDieALot_2', 'youDieALot_3', 'heroDiedOnBoss_1', 'heroDiedOnBoss_2', 'heroDoor', 'heroShutUp', 'randomGreeting_13', 'randomGreeting_13b', 'randomGreeting_14', 'randomGreeting_14b', 'heroNiceMusic_1', 'heroNiceMusic_2', 'heroNiceMusic_3', 'heroGettingDark_1', 'heroGettingDark_2', 'heroGettingDark_3', 'heroGettingDark_4', 'heroGettingDark_5', 'heroInCastle_1', 'heroInCastle_2', 'heroShovel_1', 'heroShovel_2', 'heroShovel_3', 'boss_09', 'bossIsHard_1', 'bossIsHard_2', 'bossIsHard_3', 'bossIsHard_4', 'bossIsHard_5', 'narratorEnding', 'ending_1', 'ending_2', 'ending_3', 'ending_4', 'ending_5', 'ending_6', 'ending_7']; dialogueA = dialogueA.concat(v5); var v2 = 1; while (v2 < 6) { dialogueA.push(String('inflictingPain' + v2 + '_1')); ++v2; } v2 = 1; while (v2 < 13) { dialogueA.push(String('randomGreeting_' + v2)); ++v2; } soundA = ['bridgeCloseS', 'smallExplosionCrappyS', 'glassBreakS', 'jumpS', 'poopS', 'hurtS', 'laserShotS', 'hurtMiniS', 'impactS', 'powerUpS', 'boingS', 'shovelS']; musicA = ['resultScreen_01', 'bossBattleLoop', 'nightLoop_01', 'nightLoop_03', 'nightLoop_04', 'menuLoop', 'gameLoop_01', 'starPowerLoop', 'gameLoop_02']; soundA = soundA.concat(dialogueA); var v3 = soundA.concat(musicA); v2 = 0; while (v2 < v3.length) { var v4 = this.createEmptyMovieClip(String(v3[v2] + 'Container'), 1000 + v2); this[v3[v2]] = new Sound(v4); this[v3[v2]].attachSound(v3[v2]); v4 = this.createEmptyMovieClip(String(v3[v2] + 'AltContainer'), 1000 + v2 + v3.length); this[v3[v2] + 'Alt'] = new Sound(v4); this[v3[v2] + 'Alt'].attachSound(v3[v2] + 'Alt'); ++v2; } color1A = ['339900', '00CC00', 'FF77DF', 'FFCC33', 'CCCC33', 'FF3300', '333399', '00CC99', '33FF99', 'FF9966', 'FFFFFF']; color2A = ['2E6214', '009900', 'E177FF', 'DB7D0A', 'AFAF5D', 'C93131', '3F3F54', '3B9F86', '58C48E', 'C49F8C', 'AAC6E5']; v2 = 0; while (v2 < color1A.length) { color1A[v2] = hexToRBG(color1A[v2]); color2A[v2] = hexToRBG(color2A[v2]); ++v2; } screenLength = 1920; enemy = new Object(); enemy.cube = new Object(); enemy.cube.walk = 'backAndForth'; enemy.cube.speed = 1; enemy.cube.health = 1; enemy.razorBlade = new Object(); enemy.razorBlade.walk = 'razorBlade'; enemy.razorBlade.health = 2; enemy.razorBlade.speed = 3; enemy.razorBlade.unJumpable = true; enemy.wallBlock = new Object(); enemy.wallBlock.walk = 'wallBlock'; enemy.wallBlock.health = 5; enemy.icosahedron = new Object(); enemy.icosahedron.walk = 'backAndForth'; enemy.icosahedron.speed = 1; enemy.icosahedron.health = 2; enemy.pyramid = new Object(); enemy.pyramid.walk = 'backAndForth'; enemy.pyramid.speed = 2.5; enemy.pyramid.health = 3; enemy.rectangle = new Object(); enemy.rectangle.walk = 'backAndForth'; enemy.rectangle.speed = 2; enemy.rectangle.health = 1; enemy.oldman = new Object(); enemy.oldman.walk = 'justStanding'; enemy.oldman.health = 1; enemy.oldman.notDangerous = true; enemy.cylinder = new Object(); enemy.cylinder.walk = 'ifIseeYouICharge'; enemy.cylinder.speed = 0.45; enemy.cylinder.health = 6; enemy.flyingCube = new Object(); enemy.flyingCube.walk = 'flyingBetweenArrows'; enemy.flyingCube.speed = 2; enemy.flyingCube.health = 1; enemy.boss = new Object(); enemy.boss.walk = 'bossWalk'; enemy.boss.explode = true; enemy.boss.health = 24; ref = '?gamereferral=raitendoballs'; sponsorURL = 'http://www.sponsor.com/'; yolo = sponsorURL + 'games/raitendo/you-only-live-once'; doeo = sponsorURL + 'games/raitendo/doeo'; freewill = sponsorURL + 'games/raitendo/free-will-the-game'; wheel = sponsorURL + 'games/raitendo/wheel-of-misfortune'; defecate = sponsorURL + 'games/raitendo/you-have-to-defecate-upon-king-bhumibol'; experimental = sponsorURL + 'games/raitendo/experimental-gameplay-in-10-seconds'; actionturnip = sponsorURL + 'games/raitendo/action-turnip'; libya = sponsorURL + 'games/raitendo/libyan-hamburger-recipe'; urlA = [doeo, yolo, freewill, wheel, defecate, experimental, actionturnip, libya]; achievements = {}; v3 = achievements; v3.killed20Enemies = {}; v3.killed20Enemies.txt = 'Murdered 20 people! Whoopty-doo!'; v3.killedOldMan = {}; v3.killedOldMan.txt = 'Slew a defenseless old man in cold blood. Oops!'; v3.shovelSteal = {}; v3.shovelSteal.txt = 'Stole a shovel from an old man!'; v3.shovelWhiner = {}; v3.shovelWhiner.txt = 'Whined about picking up 100 shovels!'; v3.starman = {}; v3.starman.txt = 'Pissed off a starman!'; v3.gotALotOfPoints = {}; v3.gotALotOfPoints.txt = 'Got a lot of points! Good for you!'; v3.beatTheGame = {}; v3.beatTheGame.txt = 'Beat the game!'; v3.nakedBeat = {}; v3.nakedBeat.txt = 'Beat the game... naked!'; v3.whinedDuringCredits = {}; v3.whinedDuringCredits.txt = 'Whined a bit during the credit roll!'; v3.sirDieALot = {}; v3.sirDieALot.txt = 'Sir Die-a-Lot'; v3.bossSimplified = {}; v3.bossSimplified.txt = 'No dignity whatsoever! Hooray!'; v3.shovelManiac = {}; v3.shovelManiac.txt = 'Collected every shovel in the game... but why?!'; v3.massMurderer = {}; v3.massMurderer.txt = 'Killed everyone!'; v3.unforgiving = {}; v3.unforgiving.txt = 'You forgave him... Then you killed him! Raaaad!'; } function removeAchievementF(who) { who.t = 0; who.onEnterFrame = function () { ++this.t; this._y -= 2 + this.t / 2; if (this._y < -this._height) { removeMovieClip(this); delete this.onEnterFrame; } }; --achievementsOnScreen; achievementUp = false; } function unlockAchievementF(achievement) { if (!saveData.achievements[achievement]) { trace('ACHIEVEMTN UNLOCKED: ' + achievements[achievement].txt); saveData.achievements[achievement] = true; var v3 = achievementMC.getNextHighestDepth(); var v2 = achievementMC.attachMovie('achievement', 'a' + v3, v3); ++achievementsOnScreen; v2.line1.text = achievements[achievement].txt.toUpperCase(); v2._x = screenWidth - v2._width - 5; v2._y = -v2._height; v2.t = 0; if (!achievementUp) { achievementUp = true; v2.wait = false; } else { v2.wait = true; } v2.onEnterFrame = function () { if ((!achievementUp && this.wait or !this.wait) && !somebodyIsTalkingForAchievements or this.t > 0) { achievementUp = true; ++this.t; if (this.t == 2) { powerUpS.start(); } if (this.f == 1) { --this.t; this.t /= 2; this._y += 2 + this.t / 2; this.f = 2; } else { if (this.f == 2) { this._y = (this._y + 6) / 2; ++this.f; } else { if (this.f == 3) { this._y = 6; this.f = 4; } else { if (this.f > 3) { ++this.f; if (this.f > 60) { delete this.onEnterFrame; removeAchievementF(this); } } else { if (this._y > 6) { this.f = 1; sayF(achievementSpeaker, dialogue['achievementUnlockedS_' + (random(2) + 1)], 'achievement'); this.t /= 2; this._y += 2 + this.t / 2; } else { this._y += 2 + this.t / 2; } } } } } } }; } } function initDialogue(dA) { dialogue = new Object(); for (var i in dA) { dialogue[dA[i]] = new Object(); dialogue[dA[i]].string = dA[i]; dialogue[dA[i]].sound = eval(dA[i]); dialogue[dA[i]].subs = new Object(); dialogue[dA[i]].txt = new Object(); } var d = dialogue; var i = 1; while (i < 6) { d['inflictingPain' + i + '_1'].canBeSaidMoreThanOnce = true; ++i; } var i = 1; while (i < 18) { d['randomGreeting_' + i].canBeSaidMoreThanOnce = true; ++i; } var i = 1; while (i < 9) { d['heroOuch' + i].canBeSaidMoreThanOnce = true; d['heroOuch' + i].noLimitAtAll = true; ++i; } d.randomGreeting_11.canBeSaidMoreThanOnce = false; d.randomGreeting_13.canBeSaidMoreThanOnce = false; d.randomGreeting_14.canbeSaidMoreThanOnce = false; d.randomGreeting_15.canBeSaidMoreThanOnce = false; d.randomGreeting_16.canBeSaidMoreThanOnce = false; d.randomGreeting_17.canBeSaidMoreThanOnce = false; d.randomGreeting_15.next = ['hero', 'randomGreeting_15b', 10]; d.randomGreeting_15b.next = ['en', 'randomGreeting_15c', 10]; d.randomGreeting_15c.next = ['en', 'randomGreeting_15d', 20]; d.randomGreeting_15d.next = ['en', 'randomGreeting_15e', 10]; d.randomGreeting_15e.next = ['hero', 'randomGreeting_15f', 10]; d.randomGreeting_15f.next = ['en', 'randomGreeting_15g', 10]; d.randomGreeting_15g.next = ['hero', 'randomGreeting_15h', 10]; d.randomGreeting_17.next = ['hero', 'randomGreeting_17b', 35]; d.randomGreeting_17b.next = ['en', 'randomGreeting_17c', 10]; d.randomGreeting_11.next = ['en', 'randomGreeting_12', 10]; d.randomGreeting_13.next = ['hero', 'randomGreeting_13b', 10]; d.randomGreeting_14.next = ['hero', 'randomGreeting_14b', 10]; d.randomGreeting_18.next = ['hero', 'randomGreeting_18b', 10]; d.randomGreeting_18b.next = ['hero', 'randomGreeting_18c', 15]; d.randomGreeting_18c.next = ['en', 'randomGreeting_18d', 10]; d.randomGreeting_19.who = 'hero'; d.randomGreeting_19.next = ['en', 'randomGreeting_19b', 20]; d.randomGreeting_19b.next = ['hero', 'randomGreeting_19c', 10]; d.randomGreeting_19c.next = ['en', 'randomGreeting_19e', 15]; d.randomGreeting_19e.next = ['en', 'randomGreeting_19f', 10]; d.randomGreeting_20.next = ['hero', 'randomGreeting_20b', 12]; d.randomGreeting_20b.next = ['en', 'randomGreeting_20c', 12]; d.randomGreeting_20c.next = ['hero', 'randomGreeting_20d', 13]; d.heroFalling.canBeSaidMoreThanOnce = true; d.achievementUnlockedS_1.canBeSaidMoreThanOnce = true; d.achievementUnlockedS_2.canBeSaidMoreThanOnce = true; d.achievementUnlockedS_1.noLimitAtAll = true; d.achievementUnlockedS_2.noLimitAtAll = true; d.heroFalling.fallSound = true; d.intro_01.next = ['lulu', 'intro_02', 20]; d.intro_03.next = ['lulu', 'intro_04', 5]; d.heroNiceMusic_1.next = ['off', 'heroNiceMusic_2', 10]; d.heroNiceMusic_2.next = ['hero', 'heroNiceMusic_3', 5]; d.heroInCastle_1.next = ['hero', 'heroInCastle_2', 7]; d.heroGettingDark_1.next = ['hero', 'heroGettingDark_2', 25]; d.heroGettingDark_2.next = ['hero', 'heroGettingDark_3', 15]; d.heroGettingDark_3.next = ['off', 'heroGettingDark_4', 15]; d.heroGettingDark_4.next = ['hero', 'heroGettingDark_5', 15]; d.youDieALot_1.next = ['hero', 'heroShutUp']; d.youDieALot_2.next = ['hero', 'heroShutUp']; d.heroShutUp.canBeSaidMoreThanOnce = true; d.heroGot100Shovels_01.next = ['hero', 'heroGot100Shovels_02', 10]; d.cube_01.who = 'hero'; d.cube_01.next = ['en', 'cube_02']; d.cube_02.next = ['hero', 'cube_03']; d.rectangle_01.who = 'hero'; d.rectangle_01.next = ['en', 'rectangle_02']; d.starman1_01.next = ['hero', 'starman1_02']; d.starman1_02.next = ['en', 'starman1_03']; d.starman2_01.next = ['co', 'starman2_02', 10]; d.heroGotStar_01.next = ['hero', 'heroGotStar_02', 10]; d.heroGotStar_02.next = ['hero', 'heroGotStar_03', 15]; d.heroGotStar_03.next = ['hero', 'heroGotStar_04', 10]; d.fakePowerUp_02.next = ['hero', 'fakePowerUp_01_2']; d.powerUp_01.canBeSaidMoreThanOnce = true; d.powerUp_02.canBeSaidMoreThanOnce = true; d.powerUp_03.canBeSaidMoreThanOnce = true; d.powerUp_04.canBeSaidMoreThanOnce = true; d.icosahedron_01.next = ['hero', 'icosahedron_02']; d.icosahedron_02.next = ['en', 'icosahedron_03']; d.oldman1_01.next = ['hero', 'oldman1_02']; d.oldman1_02.next = ['en', 'oldman1_03']; d.oldman2_01.next = ['hero', 'oldman2_02']; d.oldman2_02.next = ['en', 'oldman2_03']; d.heroDiedOnBoss_1.next = ['hero', 'heroDiedOnBoss_2', 8]; d.boss_01.who = 'hero'; d.boss_01.next = ['hero', 'boss_02', 10]; d.boss_02.next = ['hero', 'boss_03', 10]; d.boss_03.next = ['boss', 'boss_04']; d.boss_04.next = ['boss', 'boss_05', 10]; d.boss_05.next = ['hero', 'boss_06', 5]; d.boss_06.next = ['boss', 'boss_07']; d.boss_07.next = ['hero', 'boss_08']; d.boss_08.next = ['boss', 'boss_09', 5]; d.bossIsHard_1.next = ['hero', 'bossIsHard_2', 10]; d.bossIsHard_2.next = ['boss', 'bossIsHard_3', 15]; d.bossIsHard_3.next = ['boss', 'bossIsHard_4', 10]; d.bossIsHard_4.next = ['hero', 'bossIsHard_5']; d.narratorEnding.next = ['en', 'ending_1', 120]; d.ending_1.next = ['en', 'ending_2', 40]; d.ending_2.next = ['en', 'ending_3', 40]; d.ending_3.next = ['en', 'ending_5', 70]; d.ending_5.next = ['en', 'ending_6', 60]; d.ending_6.next = ['en', 'ending_7', 80]; d.ending_7.next = ['en', 'ending_4', 100]; d.heroFalling.subs.en = 'Aaaahh!!'; d.fakePowerUp_01_2.subs.en = 'No, no, it\'s not like that...'; d.rectangle_01.subs.en = 'Hi ya! did you see my girlfriend?'; d.rectangle_02.subs.en = 'Don\'t even talk to me, you imbecile!'; d.bossDontJumpOnIt_01.subs.en = 'Dude, don\'t jump on it, it will break!'; d.bossTroubled_01.subs.en = 'Hey, hey, get off! You\'re supposed to wait until I land! I don\'t have any upward attacks!'; d.bossBrokenGlass_01.subs.en = 'Shit, you broke the glass!'; d.boss_01.subs.en = 'Aha!'; d.boss_02.subs.en = 'There you are!'; d.boss_03.subs.en = 'Time to meet your maker!'; d.boss_04.subs.en = 'Man, you weirdo! Stop following me around, you\'re really freaking me out!'; d.boss_05.subs.en = 'Good thing I was able to borrow this doomsday device from Pete!'; d.boss_06.subs.en = 'What, did Pete lend you that!?'; d.boss_07.subs.en = 'Dude, Pete hates your guts, he was more than happy to.'; d.boss_08.subs.en = 'Shut up already and let\'s fight!'; d.cube_01.subs.en = 'Hi there, blocky!'; d.cube_02.subs.en = 'Oh, THAT\'S IT! Enough with the insults!! I\'ve had it with you!!'; d.cube_03.subs.en = 'Wh-what..?'; d.cylinder1_01.subs.en = 'Christ, did this guy have to turn up and make an already bad day even worse?'; d.fakePowerUp_01.subs.en = 'Dude, what\'s wrong with you? Why are you running around naked, you freak!!'; d.fakePowerUp_02.subs.en = 'Dude, what\'s wrong with you?!'; d.fakePowerUp_03.subs.en = 'Dude, what\'s wrong with you!?'; d.fakePowerUp_04.subs.en = 'Why you running around naked?!'; d.flyingCube_01.subs.en = 'Hey you, get up here if you dare and I\'ll give you a beating you\'ll never forget!'; d.heroAnnoyedSound.subs.en = 'Christ, that sound is annoying.'; d.heroGot100Shovels_01.subs.en = 'Man, I must have picked up at least a 100 of these damn shovels by now! What does it all mean?!'; d.heroGot100Shovels_02.subs.en = 'What\'s the point of it all!!?'; d.heroGotPowerUp_01.subs.en = 'Now this is what I call a power-up...'; d.heroGotStar_01.subs.en = 'What the..!'; d.heroGotStar_02.subs.en = 'Where did this goatee come from?'; d.heroGotStar_03.subs.en = 'And why I am I naked!?'; d.heroGotStar_04.subs.en = 'STAARMAAAN!!'; d.heroQuestionsShovels_01.subs.en = 'Seriously, why am I even bothering with these shovels..?'; d.heroThanksBetterSound_01.subs.en = 'Thanks, that\'s much better.'; d.icosahedron_01.subs.en = 'Well, well, if it isn\'t Mr. I-am-the-sum-of-all-points-that-are-equidistant-to-a-central-mid-point. Bah!'; d.icosahedron_02.subs.en = 'Icosahedron, have you too turned against me?'; d.icosahedron_03.subs.en = 'You\'re dead, pal!'; d.intro_01.subs.en = 'Oh, aren\'t we ever so happy here, Lulu?'; d.intro_02.subs.en = 'I\'m not your girlfriend, I\'m not even a woman, I just happen to have long eyelashes and like pink!'; d.intro_03.subs.en = 'Hey, Lulu, let\'s split.'; d.intro_04.subs.en = 'Thank God!'; d.intro_05.subs.en = '... NOOOOO!!'; d.intro_06.subs.en = 'I\'ll save you Lulu!!'; d.oldman1_01.subs.en = 'Get out of here, you thief! You\'re just after my shovels!'; d.oldman1_02.subs.en = 'Hey, old man, it\'s OK, I\'m the protagonist of this game!'; d.oldman1_03.subs.en = 'It\'s not OK, get out! Now!'; d.oldman2_01.subs.en = 'What do you think you\'re doing, you burglar! Get out of my house! '; d.oldman2_02.subs.en = 'No, no, it\'s not like that..!'; d.oldman2_03.subs.en = 'Sure it is! Get out!'; d.powerUp_01.subs.en = 'Watch out, he\'s picked up a newspaper!!'; d.pyramid_01.subs.en = 'Get out of here!'; d.starman1_01.subs.en = 'Hey man, get up here, quick, I\'ll help you out!'; d.starman1_02.subs.en = 'Ah, awesome! I knew I could trust you, starman!'; d.starman1_03.subs.en = 'Come on, hurry up!'; d.starman2_01.subs.en = 'Hey, what the..?'; d.starman2_02.subs.en = 'Too good for the starman now, are we?'; d.starman3_01.subs.en = 'Come on man, I want to help you! Pick me up!'; nobodyLikesYou = 'Nobody likes you!'; everyBodyHatesYou = 'Everybody hates you!'; takeThat = 'Hah, take that!'; takeThis = 'Take this!'; goAway = 'Go away!'; d.randomGreeting_9.subs.en = 'Get out of my way!'; d.randomGreeting_10.subs.en = 'I\'m so angry right now!'; d.randomGreeting_11.subs.en = 'I\'ve so had it with your bragging about your stupid circumference and its ratio to your diameter!'; d.randomGreeting_12.subs.en = 'You know what, you\'re not even perfectly round to begin with! You look more like a sack of balls then an actual ball!'; d.inflictingPain1_1.subs.en = takeThat; d.inflictingPain2_1.subs.en = takeThat; d.inflictingPain3_1.subs.en = takeThis; d.inflictingPain4_1.subs.en = takeThis; d.inflictingPain5_1.subs.en = takeThis; d.randomGreeting_1.subs.en = everyBodyHatesYou; d.randomGreeting_2.subs.en = everyBodyHatesYou; d.randomGreeting_3.subs.en = nobodyLikesYou; d.randomGreeting_4.subs.en = nobodyLikesYou; d.randomGreeting_5.subs.en = everyBodyHatesYou; d.randomGreeting_6.subs.en = goAway; d.randomGreeting_7.subs.en = goAway; d.randomGreeting_8.subs.en = goAway; d.heroDoor.subs.en = 'Oh, the door is open.'; d.heroShutUp.subs.en = 'Oh, shut up.'; d.randomGreeting_13.subs.en = 'You\'re an idiot!'; d.randomGreeting_13b.subs.en = 'Oh, yeah? I know you are, but what am I?'; d.randomGreeting_14.subs.en = 'You\'re a moron!'; d.randomGreeting_14b.subs.en = 'Takes one to know one!!'; d.randomGreeting_15.subs.en = 'Hey man, I had your momma over last night'; d.randomGreeting_16.subs.en = 'I harbor unfavorable feelings towards your person!'; d.randomGreeting_17.subs.en = 'I fart in your general direction!'; d.heroNiceMusic_1.subs.en = 'Aah, I like the music on this level. It makes me feel very heroic!'; d.heroNiceMusic_2.subs.en = 'That was the most pathetic thing I\'ve heard all day..!'; d.heroNiceMusic_3.subs.en = 'Hey! Who said that?'; d.heroAlternativeNewspaper.subs.en = 'Because knowledge... is power.'; d.youDieALot_1.subs.en = 'Man, you sure die a lot'; d.youDieALot_2.subs.en = 'You really like dieing, don\'t you?'; d.heroDiedOnBoss_1.subs.en = 'Dude, are you even trying?'; d.heroDiedOnBoss_2.subs.en = 'I\'ll show you!'; d.heroGettingDark_1.subs.en = 'It\'s getting a bit dark...'; d.heroGettingDark_2.subs.en = 'Uhm...'; d.heroGettingDark_3.subs.en = 'It\'s a bit late, maybe it\'s time to head back home..?'; d.heroGettingDark_4.subs.en = 'Enemy: Yeah, do that, go run home to mummy, you wimp!'; d.heroGettingDark_5.subs.en = 'Who is that?!'; d.heroInCastle_1.subs.en = 'All right, I\'m in a castle!'; d.heroInCastle_2.subs.en = 'That must mean this is the last stage!'; d.heroShovel_1.subs.en = 'Oh, a shovel!'; d.heroShovel_2.subs.en = 'Oh, another shovel! Lovely!'; d.heroShovel_3.subs.en = 'Hmm, I wonder what these shovels do...'; d.boss_09.subs.en = 'OK, sure.'; d.bossIsHard_1.subs.en = 'Hey man, this is pretty hard... don\'t you think you could lower the difficulty a little bit here?'; d.bossIsHard_2.subs.en = 'I mean, seriously, you don\'t want the player to stop playing before he gets to see the ending, right?'; d.bossIsHard_3.subs.en = 'Christ...'; d.bossIsHard_4.subs.en = 'OK, fine, I\'ll stop doing that attack pattern when I go left and then right again while shooting downwards... does that sound good?'; d.bossIsHard_5.subs.en = 'Yeah, that\'d be great, thanks.'; d.narratorEnding.subs.en = 'SO LEE-LEE FOUND LU-LU AND THEY LIVED HAPPILY EVER AFTER. THE END'; d.ending_1.subs.en = 'Wh, what, that\'s it? All that voice-acting and original music and shit and you still can\'t bother giving me a proper ending??'; d.ending_2.subs.en = 'Come on!!'; d.ending_3.subs.en = 'I deserve better than this!'; d.ending_4.subs.en = 'RAITENDO!!!'; d.ending_5.subs.en = 'Man, you can just forget about me appearing in your next game!'; d.ending_6.subs.en = '\'cause it ain\'t gonna happen! There\'s no way!'; d.ending_7.subs.en = 'I\'ll remember this!'; } function varsF(obj) { obj.xDir = 0; obj.yDir = 0; obj.extraXDir = 0; obj.extraYDir = 0; obj.fallTimer = 0; obj.coins = 0; obj.speed = 2.1; obj.defaultSpeed = obj.speed; obj.mouthF = 1; obj.maxHealth = 4; obj.health = obj.maxHealth; obj.maxFallSpeed = maxFallSpeed; obj.jumpSpeed = 12; obj.jumpIncrement = 4; obj.jumpIncrementLimit = 4; obj.maxJumpSpeed = 22; obj.touchGround = false; obj.properTouchGround = false; obj.falling = true; obj.keysA = new Array(); obj.slideJumpT = 0; obj.jumping = false; obj.jumpFinished = true; } function startLevelMusic(y) { var v1 = [gameLoop_02, gameLoop_01, gameLoop_01, nightLoop_04, nightLoop_03, nightLoop_01]; playMusic(v1[y], 999); } function startGame(x, y) { stageCleared = false; attachLevel(x, y); attachMovie('gui', 'gui', 892); gui.score._x = screenWidth - 225.8; var v2 = 1; while (v2 < 9) { gui.score['n' + v2].stop(); ++v2; } stageF(); startLevelMusic(y); currentPlayer = 'leelee'; hero = attachPlayer(currentPlayer, c.startClip._x, c.startClip._y); myKeys = new Object(); coinFrame = 1; this.onEnterFrame = function () { keyHandlerF(); if (gamePaused) { if (myKeys.P) { gamePaused = false; pauseClip.removeMovieClip(); currentMusic.start(currentMusic.position / 1000, 999); if (somebodyIsTalking) { currentLine.start(currentLine.position / 1000); } } } else { if (myKeys.P && !currentlyIntroing && !stageCleared) { gamePaused = true; attachMovie('pauseClip', 'pauseClip', 329); currentMusic.stop(); if (somebodyIsTalking) { currentLine.stop(); } } if (!currentlyIntroing && !stageCleared && !gamePaused) { ++levelT; ++t; ++sinceLevelWasAttachedT; } ++c.t; if (currentMapY == 1) { if (t - totalT > 120) { sayF(hero, dialogue.heroNiceMusic_1); } } else { if (currentMapY == 4) { if (t - totalT > 20) { sayF(hero, dialogue.heroGettingDark_1); } } else { if (currentMapY == 5) { if (t - totalT > 20) { sayF(hero, dialogue.heroInCastle_1); } } } } if (c.t > 2) { if (tintedT < t + 3) { unTintItF(hero); tintedT = undefined; } controlF(hero); soundManagerF(); movingPlatformsF(hero); moveF(hero); collisionF(hero); goalF(hero); whatFrameF(hero); checkpointsF(hero); coinsF(hero); playerShotsF(); keysF(hero); otherThingsF(hero); enemyShotsF(); enemyF(); guiF(heroO); if (Stage.width != screenWidth) { screenWidth = Stage.width; } } if (!heroO.dead && !heroO.piping) { cameraCallF(hero.x, hero._xscale); } if (cameraTagged) { cameraFollowF(camX, camXscale); } } }; } function goalF(hero) { if (!stageCleared && c.goal != undefined && hero != undefined) { if (hero._x > c.goal._x) { stageClear(); } } } function stageF() { enemyShotsA = new Array(); playerShotsA = new Array(); c.t = 0; } function sineF(valueBetween1And0, distance) { return (0.5 + Math.sin(Math.PI * (valueBetween1And0 + 1.5)) / 2) * distance; } function sine2F(valueBetween1And0, distance) { return Math.sin(Math.PI * valueBetween1And0) * distance; } function keysF(hero, pushKeys, touchGroundPreSet) { var v6 = 0; while (v6 < keysA.length) { var v1 = keysA[v6]; if (v1._visible) { if (!v1.o.moving && !v1.o.untouched && (t + v1.o.timingNumber) % 4 == 1) { v1.o.moving = true; } keyBehaviorF(v1); if (v1.remove) { removeMovieClip(v1); keysA.splice(v6, 1); --v6; } if (!hero.o.piping && v1.hitTest(hero)) { v1.o.taken = true; v1.o.clip = v1; v1.o.untouched = false; for (var v11 in generatedStuff['level' + currentMapX + '_' + currentMapY]) { var v5 = generatedStuff['level' + currentMapX + '_' + currentMapY]; var v14 = v5[v11]; if (v14 == v1.o) { v5.splice(v11, 1); break; } } v1.o.gotT = 10; hero.o.keysA.push(v1.o); keysA.splice(v6, 1); --v6; } } ++v6; } var v12 = true; var v13 = hero.o.xyArray.length < hero.o.keysA.length * 3 + 2; if (v13 or pushKeys or hero.o.standingOnMovingPlatform or hero.o.piping == true or hero.o.standingStillAfterPiping or hero.o.xyArray[0][2] == false or Math.abs(hero.o.extraXDir) > 0 or Math.abs(hero.o.extraYDir) > 0 or hero._x != undefined && !(Math.abs(hero.o.xDir) <= 2 && hero.o.yDir == 0)) { v12 = false; if (touchGroundPreSet != undefined) { v14 = touchGroundPreSet; } else { if (hero.o.piping or hero.o.standingOnMovingPlatform or v13) { v14 = false; } else { v14 = hero.o.touchGround; } } hero.o.xyArray.unshift([hero._x, hero._y, v14]); if (hero.o.xyArray.length > 100) { hero.o.xyArray.splice(100, 1); } } if (hero.o.standingStillAfterPiping) { hero.o.standingStillAfterPiping = false; } var v9 = 0; v6 = 0; while (v6 < hero.o.keysA.length) { v1 = hero.o.keysA[v6]; v1.clip = c[v1.theName]; if (v1.theName == 'hotdog') { v9 += 1; } v1.xyOrder = 3 * (v6 + 1) + v9; if (v1.theName == 'hotdog') { v9 += 1; } var v3 = hero.o.xyArray[v1.xyOrder][0]; var v4 = hero.o.xyArray[v1.xyOrder][1]; var v10 = hero.o.xyArray[v1.xyOrder][2]; if (v1.temp > 0) { if (v12 && (hero.o.xyArray[v1.xyOrder - v1.temp][0] == v1.clip._x && hero.o.xyArray[v1.xyOrder - v1.temp][1] == v1.clip._y)) { } else { --v1.temp; } v1.xyOrder -= v1.temp; v3 = hero.o.xyArray[v1.xyOrder][0]; v4 = hero.o.xyArray[v1.xyOrder][1]; v10 = hero.o.xyArray[v1.xyOrder][2]; } var v8 = false; for (;;) { if (!(v3 == v1.clip._x && v4 == v1.clip._y && !v10 && !v8)) break; --v1.xyOrder; v3 = hero.o.xyArray[v1.xyOrder][0]; v4 = hero.o.xyArray[v1.xyOrder][1]; v10 = hero.o.xyArray[v1.xyOrder][2]; v8 = hero.o.xyArray[v1.xyOrder - 1][2]; ++v1.temp; } if (v1.xyOrder < 0) { v3 = hero.o.xyArray[0][0]; v4 = hero.o.xyArray[0][1]; v10 = hero.o.xyArray[0][2]; } if (v3 == undefined or v1.xyOrder > hero.o.xyArray.length - 1) { v3 = hero.o.xyArray[hero.o.xyArray.length - 1][0]; v4 = hero.o.xyArray[hero.o.xyArray.length - 1][1]; v10 = hero.o.xyArray[hero.o.xyArray.length - 1][2]; } if (v1.gotT > 0) { --v1.gotT; var v7 = v1.gotT; v3 = (v1.clip._x * v7 + v3) / (v7 + 1); v4 = (v1.clip._y * v7 + v4) / (v7 + 1); } v1.clip._x = v3; v1.x = v1.clip._x; v1.clip._y = v4; v1.y = v1.clip._y; if (v1.pipeMask._x != undefined && hero.o.pipeMask._x == undefined) { if (hero.o.xyArray.length > 30 + 3 * (v6 + 1)) { v1.clip.setMask(null); v1.pipeMask.removeMovieClip(); v1.pipeMask = undefined; } } ++v6; } } function guiF(o) { if (gui._visible && gui._alpha < 100) { gui._alpha += 5; } gui.score._x = screenWidth - 225.8; coinDisplayF(o, false); gui.hearts.gotoAndStop(o.maxHealth + 1 - o.health); var v1 = score; var v2 = (String(v1)).length; i = v2; while (i < 8) { v1 = '0' + v1; ++i; } var i = 1; while (i < 9) { gui.score['n' + i].gotoAndStop(Number(v1.substr(i - 1, 1)) + 1); ++i; } } function changeScreenF(hero, x, y, relative) { var v8 = hero._xscale; var v3 = hero._x; var v2 = hero._y; if (relative) { attachLevel(currentMapX + x, currentMapY + y); } else { attachLevel(x, y); } stageF(); var v4 = v3; var v5 = v2; if (x == 1) { v4 = -20; v3 = 5; } else { if (x == -1) { v4 = screenLength + 20; v3 = screenLength - 5; } else { if (y == 1) { v2 = 30; v5 = -5; } else { if (y == -1) { v2 = screenHeight + 10; v5 = screenHeight - 20; } } } } hero = attachPlayer(currentPlayer, v4, v5); keysF(hero, true); hero.x = v3; hero._x = hero.x; hero._y = v2; hero._xscale = v8; } function moveThingAroundF(thing, preciseness) { if (thing.o.yDir == undefined) { thing.o.yDir = 0; thing.o.xDir = 0; } if (Math.abs(thing.o.xDir) > 15) { thing.o.xDir = (thing.o.xDir / Math.abs(thing.o.xDir)) * 15; } if (Math.abs(thing.o.yDir) > 20) { thing.o.yDir = (thing.o.yDir / Math.abs(thing.o.yDir)) * 20; } var v2 = 0; while (v2 < preciseness) { thing._y += thing.o.yDir / preciseness; thing._x += thing.o.xDir / preciseness; if (rotate) { thing._rotation += (thing.o.xDir + Math.abs(thing.o.yDir) * thing.o.xDir / Math.abs(thing.o.xDir)) * 4; } if (groundCheck(thing, c.ground.hard, thing._width / 2, -thing._height / 2)) { thing.o.xDir = -Math.abs(thing.o.xDir); thing._x -= 2; } else { if (groundCheck(thing, c.ground.hard, -thing._width / 2, -thing._height / 2)) { thing.o.xDir = Math.abs(thing.o.xDir); thing._x += 2; } } if (groundCheck(thing, c.ground.hard, 0, -thing._height)) { thing.o.yDir = Math.abs(thing.o.yDir); thing._y += 4; } if (c.hurt != undefined) { if (groundCheck(thing, c.hurt, 0, 0)) { thing.o.resetKey = true; } } if (groundCheck(thing, c.ground, 0, 0)) { thing.o.yDir *= 0.6; thing.o.xDir *= 0.8; thing.o.yDir = -Math.abs(thing.o.yDir); while (groundCheck(thing, c.ground, 0, 0)) { --thing._y; } thing.o.x = thing._x; thing.o.y = thing._y; if (Math.abs(thing.o.yDir) <= 1.5 or thing._visible == false) { thing.o.moving = false; thing.o.yDir = 0; thing.o.xDir = 0; } } ++v2; } thing.o.x = thing._x; thing.o.y = thing._y; thing.o.xDir *= 0.98; thing.o.yDir += 2; } function fakePowerUpF(hero) { powerUpS.start(); hero.o.speed = 1.4; hero.o.powerUpT = 0; hero.o.powerUpped = false; hero.o.fakePowerUpped = true; hero.o.fakePowerUpT = 16 * fps; hero.o.fakePowerUpMultiplier = 0; } function powerUpF(hero) { hero.o.speed = hero.o.defaultSpeed; playMusic(starPowerLoop, 0); if (currentMapY == 4 && currentMapX == 1) { sayF(hero, dialogue.youDidntThink); } else { if (dialogue.heroGotPowerUp_01.said) { sayF(hero, dialogue.heroAlternativeNewspaper); } else { hero.o.fakePowerUpT = 0; } } hero.o.fakePowerUpped = false; hero.o.powerUpped = true; hero.o.powerUpT = 350; hero.o.powerUpMultiplier = 0; } function otherThingsF(hero) { if (upKeyMC != undefined) { removeMovieClip(upKeyMC); } var v10 = 0; while (v10 < otherThingsA.length) { var v1 = otherThingsA[v10]; if (v1._visible) { if (v1.type == 'breakable') { if (v1.o.breaking) { --v1.o.breakT; if (v1.o.breakT <= 0) { v1._y += 2 + Math.abs(v1.o.breakT); v1.hard.removeMovieClip(); if (v1._y > screenHeight) { v1.o.remove = true; v1._visible = false; } } else { v1._x = v1.o.x + t % 3 - 1; } } else { if (v1.hitTest(hero.feetHit) && hero.o.touchGround) { v1.o.breaking = true; v1.body.gotoAndStop(2); v1.o.breakT = 12; v1.o.x = v1._x; } } } else { if (v1.type == 'newspaper') { if (v1.hit.hitTest(hero.hit)) { v1._visible = false; v1.o.remove = true; powerUpF(hero); } } else { if (v1.type == 'star') { if (v1.oY == undefined) { v1.oY = v1._y; v1.o.mouthF = 1; } talkingF(v1); var v12 = v1._x - hero._x; if (Math.abs(v12) < screenWidth / 2 - 50) { sayF(v1, dialogue.starman1_01); } if (currentMapY != 0 && v12 < -180) { if (!v1.talked && dialogue.starman1_01.said) { if (dialogue.starman2_01.said) { v1.body.gotoAndStop(2); sayF(v1, dialogue.starman3_01); } else { v1.body.gotoAndStop(2); sayF(v1, dialogue.starman2_01); } } } var v13 = Math.sin(62.83185307179586 * t / 200) * 2; v1._y = v1.oY + v13; if (v1.body.hit.hitTest(hero.hit)) { v1._visible = false; v1.o.remove = true; fakePowerUpF(hero); } } else { if (v1.type == 'poop') { if (v1._currentframe == 3 && !v1.cacheAsBitmap) { v1.cacheAsBitmap = true; } if ((t + v1.timingNumber) % 15 == 1 or v1.falling) { if (groundCheck(v1, c.ground, 3, 1) or groundCheck(v1, c.ground, v1._width - 3, 1)) { if (v1.falling) { while (groundCheck(v1, c.ground, 2, 1) or groundCheck(v1, c.ground, v1._width - 2, 1)) { v1._y -= 1; } } v1.falling = false; v1.yDir = 0; } else { v1.falling = true; v1.yDir += 2; v1._y += v1.yDir; } } } else { if (v1.type == 'starBox' or v1.type == 'ordinaryBox') { v1.o.x = v1._x; v1.o.y = v1._y; if (v1.o.remove) { if (v1.body._currentframe == v1.body._totalframes) { v1._visible = false; } else { v1.body.nextFrame(); } if (v1.hard._x != undefined) { v1.hard.removeMovieClip(); } } else { if (v1.type == 'ordinaryBox') { if (!v1.o.falling && ((t + v1.o.timingNumber) % 5 == 1 or v1.o.pushed)) { if (hero.hitTest(v1._x - 5 + c._x, v1._y + c._y + 10) && v1._x < screenLength - v1._width - 1 && !groundCheck(v1, c.ground.hard, v1._width, v1._height - 5) && !groundCheck(v1, c.ground.hard, v1._width, 5)) { v1.o.pushed = true; v1.o.pushDir = 1; for (var v16 in enemiesA) { var v7 = enemiesA[v16]; if (v7.hitTest(v1._x + v1._width + 4 + c._x, v1._y + c._y + 10)) { v1.o.pushed = false; } } } else { if (hero.hitTest(v1._x + v1._width + 4 + c._x, v1._y + c._y + 10) && v1._x > 1 && !groundCheck(v1, c.ground.hard, -2, v1._height - 5) && !groundCheck(v1, c.ground.hard, -2, 5)) { v1.o.pushed = true; v1.o.pushDir = -1; for (var v16 in enemiesA) { var v7 = enemiesA[v16]; if (v7.hitTest(v1._x + -5 + c._x, v1._y + c._y + 10)) { v1.o.pushed = false; } } } else { v1.o.pushed = false; } } if (v1.o.pushed) { v1._x += v1.o.pushDir; v1.hard._x += v1.o.pushDir; } } } if ((t + v1.o.timingNumber) % 7 == 1 or v1.o.falling or v1.o.pushed) { if (groundCheck(v1, c.ground, 3, v1._height + 4) or groundCheck(v1, c.ground, v1._width - 3, v1._height + 4)) { if (v1.o.falling) { while (groundCheck(v1, c.ground, 3, v1._height - 1) or groundCheck(v1, c.ground, v1._width - 3, v1._height - 1)) { v1.hard._y -= 1; v1._y -= 1; } } v1.o.falling = false; v1.o.yDir = 0; } else { v1.o.falling = true; v1.o.yDir += 2; v1.hard._y += v1.o.yDir; v1._y += v1.o.yDir; if (v1.hitTest(hero.feetHit)) { while (v1.hitTest(hero.body)) { --hero._y; hero.o.touchGround = true; hero.o.jumping = false; hero.o.slideJumpT = 0; hero.o.jumpOK = true; hero.o.falling = false; hero.o.jumpFinished = true; } } } } if (v1.o.falling) { if ((t + v1.o.timingNumber) % 3 == 1) { for (var v17 in enemiesA) { var v7 = enemiesA[v17]; if (v7._y > v1._y && v7.body.hit.hitTest(v1)) { v7.o.health = 0; } } } if (hero._y > v1._y && hero.head.hitTest(v1)) { v1.o.remove = true; } if (!v1.o.remove) { for (var v15 in otherThingsA) { var v5 = otherThingsA[v15]; if (v5.type == 'bouncer' && !v5.bouncing && v5.body.hit.hitTest(v1)) { v5.withoutHero = true; v5.bouncing = true; v1.o.yDir = -20; } } } } } } else { if (v1.type == 'bullseye') { if (v1.passive) { } else { if (v1.o.hitT != undefined) { if (t - v1.o.hitT < 20) { var v4 = 0; } else { var v4 = (t - v1.o.hitT - 20) / v1.o.time; if (v4 > 1) { v4 = 1; } } var v8 = 0; while (v8 < v1.o.target.length) { var v3 = v1.o.target[v8]; if (v1.o.makeInvisible) { v3._alpha = 100 - 100 * v4; if (v4 == 1) { v3._visible = false; v3._y = 4000; } } else { v4 = sineF(v4, 1); v3._x = v3.oX + v1.o.xMove * v4; v3._y = v3.oY + v1.o.yMove * v4; } if (v3._visible) { if (v1.o.xMove == 0) { v3._x = v3.oX + (t % 3 - 1) * 1.5; } if (v1.o.yMove == 0) { v3._y = v3.oY + (t % 3 - 1) * 1.5; } } ++v8; } if (v4 == 1) { v1.passive = true; } } else { if (v1.o.hit) { v1.o.hitT = t; v1.body.gotoAndStop(2); } } } } else { if (v1.type == 'bouncer') { if (!v1.bouncing && hero.o.yDir > 0 && hero.feetHit.hitTest(v1.body.hit)) { v1.bouncing = true; boingS.start(); v1.body.nextFrame(); if (!v1.withoutHero) { hero.o.yDir = -31; hero.o.jumping = true; hero.o.jumpFinished = true; } } else { if (v1.bouncing) { v1.body.nextFrame(); if (v1.body._currentframe == v1.body._totalframes) { v1.body.gotoAndStop(1); v1.bouncing = false; v1.withoutHero = false; } } } } else { if (v1.type == 'blocker') { if (v1.blocked) { if (Math.abs(hero._x - v1._x) > 150) { v1.blocked = false; v1.hard.removeMovieClip(); v1.body.gotoAndStop(4); } } else { if (v1.blocking) { v1.body.nextFrame(); if (v1.body._currentframe == v1.body._totalframes) { v1.blocked = true; v1.blocking = false; } } else { if (hero.hitTest(v1._x + v1.o.dir * 20 + c._x, v1._y + c._y) or hero.hitTest(v1._x + v1.o.dir * 20 + c._x, v1._y - v1._height + 2 + c._y)) { v1.blocking = true; v1.body.nextFrame(); var v11 = c.ground.hard.stuff.getNextHighestDepth(); var v14 = c.ground.hard.stuff.attachMovie('hard_blocker', 'hb' + v11, v11, {'_x': v1._x - c.ground.hard._x, '_y': v1._y - c.ground.hard._y - 2, '_xscale': v1._xscale, '_yscale': v1._yscale}); v1.hard = v14; } else { if (v1.body._currentframe != 1 && t % 2 == 1) { v1.body.prevFrame(); } } } } } else { if (v1.type == 'pipe' && v1.map != undefined && !hero.o.piping) { if (v1.hitTest(hero.hit) && (sinceLevelWasAttachedT == undefined or sinceLevelWasAttachedT > 12)) { attachMovie('upKeyMC', 'upKeyMC', 302, {'_x': screenWidth - 87, '_y': 393}); } else { if (!(currentMapX == 0 && currentMapY == 0) && currentMapY != 6 && hero._x > v1._x - 60 && hero._x < v1._x + 60) { sayF(hero, dialogue.heroDoor); } } if (myKeys.UP && v1.hitTest(hero.hit) && (sinceLevelWasAttachedT == undefined or sinceLevelWasAttachedT > 12)) { jumpS.stop(); hero.o.pipeScreenChange = false; hero.o.newPipe = undefined; hero.o.piping = true; hero.o.jumping = false; hero.o.yDir = 0; whatFrameF(hero); hero._y = hero.o.yBeforeJumping; hero.o.pipe = v1; } } else { if (v1.type == 'coinContainer' && v1.body._currentframe == 1) { if (v1.o.health <= 0) { v1.body.nextFrame(); v1.hard.removeMovieClip(); v1.o.exploded = true; var v9 = 0; while (v9 < v1.o.coins) { var v6 = newCoinF(v1._x, v1._y - 12); v6.o.moving = true; v6.o.yDir = -22 + random(9); v6.o.xDir = random(14) - 7; ++v9; } explosionF(v1._x, v1._y - 12, [255, 204, 0, 100]); } } } } } } } } } } } } ++v10; } } function showTheEnd() { unlockAchievementF('beatTheGame'); if (fakePowerUpped) { unlockAchievementF('nakedBeat'); } delete onEnterFrame; attachMovie('black', 'black', 5, {'_width': screenWidth}); attachMovie('leelee', 'leelee', 2); attachMovie('creditRoll', 'roll', 6, {'t': 0, '_y': screenHeight}); roll._x = screenWidth / 2 - roll._width / 2; sayF(leelee, dialogue.narratorEnding); roll.onEnterFrame = function () { ++this.t; if (this.t == 105) { attachMovie('theEndText', 'texty', 7); texty._x = screenWidth / 2 - 170; texty._y = screenHeight / 2 - texty._height / 2; } else { if (this.t == 150) { attachMovie('scoreSubmitForCreditRoll', 'submitter', 9, {'_alpha': 0}); submitter.onEnterFrame = function () { ++this._alpha; if (this._alpha >= 100) { delete this.onEnterFrame; } }; submitter.submitHit._alpha = 0; submitter.submit.t.submit.text = 'SUBMIT SCORE'; submitter.submitHit.onPress = function () { this._visible = false; delete cleared.submit.onPress; tintItF(cleared.submit.t, 100, 100, 100, 100); submitHighScoreF(score); }; } } if (this.t > 130) { --texty._y; --this._y; } if (this._y + 20 < -this._height) { removeMovieClip(texty); removeMovieClip(this); removeMovieClip(leelee); delete eval(this.onEnterFrame()); thanksForPlayingF(); } }; } function thanksForPlayingF() { var cleared = attachMovie('thanksForPlaying', 'thanks5', 6, {'_x': (-700 + screenWidth) / 2, '_alpha': 0}); var v6 = [cleared.otherGame1, cleared.otherGame2, cleared.otherGame3, cleared.otherGame4]; var v7 = v6[0]._totalframes; var v9 = new Array(); numberThingF(score, cleared, 'b', 7); timeThingF(cleared, t / fps); cleared.onEnterFrame = function () { this._alpha += 15; if (this._alpha >= 100) { this._alpha = 100; delete this.onEnterFrame; } }; cleared.submit.t.submit.text = 'SUBMIT SCORE'; cleared.moreGames.t.moreGames.text = 'MORE GAMES'; cleared.mainMenu.t.mainMenu.text = 'MAIN MENU'; cleared.moreGamesHit.onPress = function () { visitSponsor(); }; cleared.submitHit.onPress = function () { this._visible = false; delete cleared.submit.onPress; tintItF(cleared.submit.t, 100, 100, 100, 100); submitHighScoreF(score); }; cleared.mainMenuHit.onPress = function () { submitter.removeMovieClip(); black.removeMovieClip(); cleared.removeMovieClip(); delete this.onPress; startMenuF(); }; var v3 = ['moreGames', 'mainMenu', 'submit']; for (var v5 in v3) { var v4 = cleared[v3[v5]]; var v2 = cleared[v3[v5] + 'Hit']; v2._alpha = 0; v2.actual = v4; v2.onRollOver = function () { tintItF(this.actual.t, 253, 153, 0, 100); }; v2.onRollOut = function () { unTintItF(this.actual.t); }; } } function submitHighScoreF(score) { var v2 = score; var v1 = 4747; cmpSetObj.var1 = v2; cmpSetObj.var3 = v1; trace('meep ' + cmpSetObj.var1); cmpSetObj.clearListeners(); } function stageClear(boss) { levelD['level' + currentMapY + '_' + currentMapX].levelT = levelT; gui._visible = false; currentMusic.stop(); playMusic(resultScreen_01, 0); stageCleared = true; var v11 = getNextHighestDepth(); attachMovie('stageClear', 'cleared', v11, {'_x': (-700 + screenWidth) / 2}); var v3 = [cleared.otherGame1, cleared.otherGame2, cleared.otherGame3, cleared.otherGame4]; var v7 = v3[0]._totalframes; var v2 = new Array(); cleared.moreGames.t.moreGames.text = 'MORE GAMES'; if (boss) { cleared.nextStage.t.nextStage.text = 'CONTINUE'; } else { cleared.nextStage.t.nextStage.text = 'NEXT STAGE'; } cleared.nextStage.t.pressSpace.text = 'PRESS SPACE'; var v10 = t - totalT; totalT = t; v10 /= fps; var v12 = 180; var v8 = int(v12 - v10) * 10; if (v8 < 0) { v8 = 0; } score += v8; numberThingF(v8, cleared, 'b', 5); timeThingF(cleared, v10); cleared.moreGamesHit.onPress = function () { visitSponsor(); }; cleared.nextStageHit.onPress = function () { if (boss) { delete this.onEnterFrame; cleared.removeMovieClip(); gui.removeMovieClip(); c.removeMovieClip(); levelT = 0; showTheEnd(); } else { gui._visible = true; startGame(0, currentMapY + 1); levelT = 0; cleared.removeMovieClip(); delete this.onEnterFrame; delete this.onPress; } }; cleared.onEnterFrame = function () { if (myKeys.DOWN or SPACE) { if (boss) { delete this.onEnterFrame; gui.removeMovieClip(); this.removeMovieClip(); c.removeMovieClip(); showTheEnd(); } else { startGame(0, currentMapY + 1); this.removeMovieClip(); delete this.onEnterFrame; delete this.onPress; } } }; var v6 = ['moreGames', 'nextStage']; for (var v9 in v6) { var v5 = cleared[v6[v9]]; var v4 = cleared[v6[v9] + 'Hit']; v4._alpha = 0; v4.actual = v5; v4.onRollOver = function () { tintItF(this.actual.t, 253, 153, 0, 100); }; v4.onRollOut = function () { unTintItF(this.actual.t); }; } v9 = 0; while (v9 < v7) { v2.push(true); ++v9; } for (v9 in v3) { v5 = false; var c = 0; while (!v5) { c = random(v2.length - 1); if (v2[c]) { v5 = true; v2[c] = false; } } v3[v9].c = c; v3[v9].onRollOver = function () { this.back.gotoAndStop(2); }; v3[v9].onRollOut = function () { this.back.gotoAndStop(1); }; v3[v9].onPress = function () { gotoURLF(urlA[this.c]); }; v3[v9].gotoAndStop(c + 1); } } function timeThingF(cleared, timePassed) { var v2 = Math.floor(timePassed / 60); var v3 = Math.floor(timePassed) - v2 * 60; var v10 = int((timePassed - v3 - v2 * 60) * 100); var v5 = Number((String(v2)).substr(0, 1)) + 1; var v4 = Number((String(v2)).substr(1, 1)) + 1; var v7 = Number((String(v3)).substr(0, 1)) + 1; var v6 = Number((String(v3)).substr(1, 1)) + 1; var v9 = Number((String(v10)).substr(0, 1)) + 1; var v8 = Number((String(v10)).substr(1, 1)) + 1; if (isNaN(v4)) { v4 = v5; v5 = 1; } if (isNaN(v6)) { v6 = v7; v7 = 1; } if (isNaN(v8)) { v8 = v9; v9 = 1; } cleared.m1.gotoAndStop(v5); cleared.m2.gotoAndStop(v4); cleared.s1.gotoAndStop(v7); cleared.s2.gotoAndStop(v6); cleared.c1.gotoAndStop(v9); cleared.c2.gotoAndStop(v8); } function numberThingF(nummer, daddy, clip, lngth) { var v1 = nummer.toString(); while (v1.length < lngth) { v1 = '0' + v1; } i = 1; while (i <= lngth) { daddy[clip + i].gotoAndStop(Number(v1.substr(i - 1, 1)) + 1); ++i; } } function visitSponsor() {} function gotoURLF(url) {} function attachKeyF(obj) { var v3 = c.getNextHighestDepth(); var v1 = c.createEmptyMovieClip(obj.theName, v3); v1.attachMovie(obj.theName, 'body', 1); v1._x = obj.x; v1._y = obj.y; v1.o = obj; obj.clip = v1; return v1; } function attachCoinF(x, y) { var v2 = c.getNextHighestDepth(); var v1 = c.createEmptyMovieClip('coin' + v2, v2); v1._x = x; v1._y = y; v1.attachMovie('coin', 'body', 1); return v1; } function newCoinF(x, y) { var v1 = attachCoinF(x, y); levelD.coins['coin' + generatedStuffCounter] = new Object(); var v2 = levelD.coins['coin' + generatedStuffCounter]; v1.o = v2; v1.o.type = 'coin'; v1.o.generated = true; v1.o.taken = false; v1.o.x = v1._x; v1.o.y = v1._y; ++generatedStuffCounter; coinsA.push(v1); generatedStuff['level' + currentMapX + '_' + currentMapY].push(v1.o); return v1; } function checkpointsF(hero) { var v2 = 0; while (v2 < checkpointsA.length) { var v1 = checkpointsA[v2]; if (v1.o.current) { if (v1.body._currentframe < 5) { v1.body.nextFrame(); } } else { if (v1.hitTest(hero)) { v1.o.current = true; if (currentCheckpoint.x == currentMapX && currentCheckpoint.y == currentMapY) { currentCheckpoint.clip.body.gotoAndStop(1); } currentCheckpoint.o.current = false; currentCheckpoint = {'o': v1.o, 'clip': v1, 'x': currentMapX, 'y': currentMapY}; } else { if (v1.body._currentframe != 1) { v1.body.gotoAndStop(1); } } } ++v2; } } function tintItF(what, r, g, b, alpha) { var v1 = new Color(what); v1.setTint(r, g, b, alpha); } function unTintItF(what) { var v1 = new Color(what); v1.setTint(0, 0, 0, 0); v1.removeTint(); } function coinsF(hero) { var v3 = 0; while (v3 < coinsA.length) { var v1 = coinsA[v3]; if (v1._visible) { if (v1.body._currentframe == v1.body._totalframes) { v1.body.gotoAndStop(1); } else { v1.body.nextFrame(); } if (v1._alpha < 90) { v1._alpha += 4; tintItF(v1, 255, 255, 255, 200 - v1._alpha * 2); } else { if (v1._alpha < 100) { v1._alpha = 100; unTintItF(v1); } } if (v1.body.hit.hitTest(hero)) { v1._alpha = 100; coinS.start(); ++hero.o.coins; shovelS.start(); ++totalShovels; if (totalShovels == allShovels) { unlockAchievementF('shovelManiac'); } ++levelD['level' + currentMapY + '_' + currentMapX].shovels; if (currentMapY == 6) { unlockAchievementF('shovelSteal'); } if (dialogue.heroShovel_1.said) { sayF(hero, dialogue.heroShovel_2); } else { sayF(hero, dialogue.heroShovel_1); } if (totalShovels > 45) { sayF(hero, dialogue.heroShovel_3); } if (totalShovels > 75) { sayF(hero, dialogue.heroQuestionsShovels_01); } if (totalShovels >= 100) { sayF(hero, dialogue.heroGot100Shovels_01); } addScore(100); v1.o.taken = true; if (v1.o.enemy != undefined) { v1.o.enemy.o.coinTaken = true; } v1._visible = false; } } ++v3; } } function keyHandlerF() { G = Key.isDown(71); UP = Key.isDown(38) or Key.isDown(87) or Key.isDown(90); RIGHT = Key.isDown(39) or Key.isDown(68); LEFT = Key.isDown(37) or Key.isDown(81) or Key.isDown(65); DOWN = Key.isDown(40) or Key.isDown(83); SPACE = Key.isDown(32); ENTER = Key.isDown(13); P = Key.isDown(80); I = Key.isDown(73); J = Key.isDown(74); K = Key.isDown(75); L = Key.isDown(76); U = Key.isDown(85); O = Key.isDown(79); PLUS = Key.isDown(187); if (DOWN) { ++downT; } else { --downT; } if (downT > 10) { downT = 10; } else { if (downT < 0 or downT == undefined or isNaN(downT)) { downT = 0; } } jumpKey = UP; hatKey = SPACE; keys = ['UP', 'DOWN', 'SPACE', 'RIGHT', 'LEFT', 'ENTER', 'G', 'SPACE', 'jumpKey', 'hatKey', 'P']; for (var i in keys) { var currentKey = keys[i]; if (eval(currentKey)) { if (!myKeys[currentKey + 'Pressed']) { myKeys[currentKey] = true; myKeys[currentKey + 'Pressed'] = true; } else { myKeys[currentKey] = false; } } else { myKeys[currentKey + 'Pressed'] = false; myKeys[currentKey] = false; } } if (myKeys.DOWN) { } mouseClick = false; } function pipeStuff(hero) { hero.o.piping = false; hero.o.newPipe = hero.o.pipe.pipe; changeScreenF(hero, hero.o.pipe.map[1], hero.o.pipe.map[0]); var v2 = c[hero.o.newPipe]; hero.o.newPipe = v2; hero.o.pipeCheck = true; hero.o.pipe = v2; var v4 = hero.o.pipe._x; var v3 = hero.o.pipe._y; hero.x = v4; hero._x = hero.x; hero.y = v3; hero._y = hero.y; hero.o.xDir = 0; hero.o.yDir = 0; hero._xscale = -hero._xscale; } function controlF(hero) { if (hero.o.piping) { pipeStuff(hero); } else { if (!stageCleared && !currentlyIntroing) { hero.o.justKilledAnEnemy = false; if (!hero.o.jumping) { hero.o.yBeforeJumping = hero._y; } if (myKeys.jumpKeyPressed or myKeys.jumpKey) { if (hero.o.jumping) { if (t - jumpT < hero.o.jumpIncrementLimit && !hero.o.jumpFinished) { if (hero.o.slideJumpT > 0) { if (hero.o.slideJumpT < 1 or hero.o.slideJumpDir == 1 && !LEFT or hero.o.slideJumpDir == -1 && !RIGHT) { hero.o.slideJumpT += 1.7; hero.o.xDir += hero.o.speed * (hero._xscale / 100); } } hero.o.yDir -= hero.o.jumpIncrement; } } else { if (myKeys.jumpKey && (hero.o.jumpOK or hero.o.slideJumpOK or hero.o.fallTimer > 0)) { jumpS.start(); jumpT = t; if (hero.o.slideJumpOK) { hero.o.slideJumpT = 3; hero.o.xDir += 10 * (hero._xscale / 100); } hero.o.yDir = -hero.o.jumpSpeed; hero.o.jumping = true; hero.o.jumpFinished = false; } } } else { if (hero.o.jumping) { hero.o.jumpFinished = true; } } var v2 = hero.o.speed; if (hatKey && hero._x != undefined) { if (hatt <= 0) { throwThingF(hero, 'hat'); } ++hatt; if (hatt > 6) { hatt = 0; } } else { hatt = 0; } hero.o.jumpOK = false; if (RIGHT && !LEFT && !hero.o.ducking && !(hero.o.slideJumpT > 0 && hero.o.slideJumpDir == -1)) { if (!hatKey && !DOWN) { hero._xscale = 100; } hero.o.xDir += v2; } if (LEFT && !RIGHT && !hero.o.ducking && !(hero.o.slideJumpT > 0 && hero.o.slideJumpDir == 1)) { if (!hatKey && !DOWN) { hero._xscale = -100; } hero.o.xDir -= v2; } hero.o.wasDucking = hero.o.ducking; if (!UP && DOWN && !hero.o.jumping && !hero.o.falling) { hero.o.ducking = true; if (!hero.o.wasDucking && hero.o.fakePowerUpped) { attachPoopF(hero); } } else { hero.o.ducking = false; } --hero.o.slideJumpT; } } } function soundManagerF() { var v1 = currentMusic.getVolume(); if (somebodyIsTalking) { if (v1 >= 35) { v1 -= 3; if (!musicIsMute) { currentMusic.setVolume(v1); } } if (!whatAreTheySaying.fallSound && !whoIsTalking.isAnObject && (whoIsTalking == '' or whoIsTalking._visible == false or whoIsTalking._x == undefined or whoIsTalking == undefined or whoIsTalking.o.health <= 0 && whoIsTalking.o.health != undefined)) { stopTalkingF(); } } else { if (v1 <= 100) { v1 += 3; if (v1 > 100) { v1 = 100; } if (!musicIsMute) { currentMusic.setVolume(v1); } } } } function stopTalkingF() { var v1 = whatAreTheySaying.sound; if (v1.position < v1.duration / 2) { whatAreTheySaying.said = false; } v1.stop(); v1.cpu.removeMovieClip(); somebodyIsTalking = false; somebodyIsTalkingForAchievements = false; whoIsTalkingO.isTalking = false; } function stopMusic() { if (currentMusic != undefined) { currentMusic.stop(); currentMusic = undefined; } } function playMusic(music, loops) { prevMusic = currentMusic; currentMusic.stop(); music.start(0, loops); currentMusic = music; if (music == starPowerLoop) { currentMusic.onSoundComplete = function () { delete this.onSoundComplete; playMusic(prevMusic, 999); }; } } function playSound(sound, who) { if (who != undefined) { var v1 = newCPU(); sound.cpu = v1; v1.sound = sound; soundCPUA.push(v1); v1.onEnterFrame = function () { if (who.isAnObject) { if (!soundsAreMute) { sound.setVolume(who.vol); } } else { if (who._x != undefined) { var v3 = Math.abs(who._x - hero._x); var v1 = 100; var v2 = screenWidth + 30 - 20; if (v3 > v2) { v1 -= (v3 - v2) * 0.3; if (v1 < 20) { v1 = 20; } } if (!soundsAreMute) { sound.setVolume(v1); } } } }; } sound.start(); sound.onSoundComplete = function () { removeMovieClip(sound.cpu); }; } function withinSpeakingDistance(en) { if (en.type != 'boss') { if (en.type != 'oldman') { var v1 = dialogue[en.type + '_01']; if (v1.said or random(4) == 1) { if (hero.o.fakePowerUpped) { v1 = dialogue.fakePowerUp_01; var v5 = 2; while (v1.said) { v1 = dialogue['fakePowerUp_0' + v5]; ++v5; } } } if (hero.o.powerUpped) { v1 = dialogue['powerUp_0' + (random(7) + 1)]; var v4 = random(7) + 1; while (tempScreenData[v1.string]) { v1 = dialogue['powerUp_0' + v4]; ++v4; } } else { if (t - deadT < 50) { if (timesDead >= 5 && !dialogue.youDieALot_1.said) { v1 = dialogue.youDieALot_1; } if (timesDead >= 15 && !dialogue.youDieALot_2.said) { v1 = dialogue.youDieALot_2; } if (timesDead >= 22 && !dialogue.youDieALot_3.said) { v1 = dialogue.youDieALot_3; } } } } if (v1 == undefined) { var v3 = 1; v1 = dialogue[en.type + String(v3) + '_01']; while (v1.said) { v1 = dialogue[en.type + String(v3) + '_01']; ++v3; } } if ((v1.said or v1 == undefined) && en.o.saySomething) { var v2 = 12; while (v2 == 12) { v2 = random(22) + 1; } v1 = dialogue['randomGreeting_' + v2]; } if (!en.talked) { if (v1.who == undefined) { var v7 = en; } else { var v7 = hero; } if (v7 == hero && !somebodyIsTalking && !v1.said && v1.sound != undefined) { lastTalker = en; } sayF(v7, v1); } } } function sayF(who, what, type) { if (!what.said && (!somebodyIsTalking or what.fallSound) && what.sound.position != undefined && (!tempScreenData[what.string] or what.noLimitAtAll)) { if (!what.canBeSaidMoreThanOnce) { what.said = true; } tempScreenData[what.string] = true; if (who != hero) { who.talked = true; } somebodyIsTalking = true; somebodyIsTalkingForAchievements = true; whoIsTalking = who; whoIsTalkingO = who.o; whatAreTheySaying = what; who.o.isTalking = true; if (who != hero) { lastTalker = who; } currentLine = what.sound; playSound(currentLine, who); currentLine.onSoundComplete = function () { removeMovieClip(this.cpu); somebodyIsTalking = false; who.o.isTalking = false; if (what.string == 'starman3_01' or what.string == 'starman2_02') { unlockAchievementF('starman'); } else { if (what.string == 'heroGot100Shovels_02') { unlockAchievementF('shovelWhiner'); } else { if (what.string == 'ending_4') { unlockAchievementF('whinedDuringCredits'); } else { if (what.string == 'randomGreeting_15g') { who.o.mommaJokeTeller = true; } } } } if (what.next == undefined) { somebodyIsTalkingForAchievements = false; } else { var d = what.next; if (d[0] == 'hero') { var who2 = hero; } else { if (d[0] == 'lulu') { var who2 = c.lulu; } else { if (d[0] == 'bossguy') { var who2 = c.bossguy; } else { if (d[0] == 'off') { var who2 = offScreenTalker; } else { var who2 = lastTalker; } } } } if (d[2] != undefined) { somebodyIsTalking = true; var cpu = newCPU(); cpu.onEnterFrame = function () { if (!gamePaused) { ++cpu.t; if (cpu.t > d[2]) { somebodyIsTalking = false; sayF(who2, dialogue[what.next[1]]); cpu.removeMovieClip(this); } } }; } else { sayF(who2, dialogue[what.next[1]]); } delete this.onSoundComplete; } }; } } function attachPoopF(hero) { poopS.start(); var v1 = c.getNextHighestDepth(); var v3 = c.attachMovie('poop', 'poop' + v1, v1, {'_x': hero._x + 20 * (-hero._xscale / 100), '_xscale': hero._xscale, '_y': hero._y, 'type': 'poop', 'yDir': 0, 'faling': true, 'timingNumber': random(50)}); otherThingsA.push(v3); } function newWaterSplashF(clip, x, y, water, scale) { var v2 = c.getNextHighestDepth(); if (scale == undefined) { scale = (random(2) * 2 - 1) * 100; } var v3 = c.attachMovie(clip, 'w' + v2, v2, {'_x': x, '_y': y, '_xscale': scale}); v3.swapDepths(water); v3.onEnterFrame = function () { if (!gamePaused) { if (this._currentframe == this._totalframes) { removeMovieClip(this); delete this.onEnterFrame; } else { this.nextFrame(); } } }; } function whatFrameF(hero) { unTintItF(hero.body); if (hero.o.crying) { hero.gotoAndStop('crying'); } else { if (hero.o.sitting) { if (hero._currentframe == 5 or hero._currentframe >= 7) { hero.gotoAndStop('sitting'); } else { hero.gotoAndStop('duckingBridge'); } } else { hero.gotoAndStop(1); if (hero.o.piping) { hero.gotoAndStop(1); } else { if (hero.o.ducking) { if (hero.o.wasDucking) { hero.gotoAndStop('ducking'); } else { hero.gotoAndStop('duckingBridge'); } } else { if (!hero.o.falling && hero.o.wasFalling) { hero.gotoAndStop('duckingBridge'); hero.o.ducking = true; } else { if (hero.o.wasDucking) { hero.gotoAndStop('duckingBridge'); } else { if (hero.o.leftSliding) { hero.gotoAndStop('ninja'); } else { if (hero.o.rightSliding) { hero.gotoAndStop('ninja'); } else { if (hero.o.jumping or hero.o.falling) { hero.gotoAndStop('jumping'); if (hero.o.yDir > 1) { hero.body.gotoAndStop(3); } else { if (hero.o.yDir < -1) { hero.body.gotoAndStop(1); } else { hero.body.gotoAndStop(2); } } } else { if (Math.abs(hero.o.xDir) >= 1) { hero.gotoAndStop(1); hero.body.play(); } } } } } } } } } } hero.o.wasFalling = hero.o.falling; hero.body.laces._visible = false; hero.body.eyebrow1._visible = false; hero.body.eyebrow2._visible = false; hero.body.goatee._visible = false; talkingF(hero); if (hero.o.fakePowerUpped) { sayF(hero, dialogue.heroGotStar_01); var v3 = hexToRBG('FFCC99'); var v2 = hexToRBG('D29351'); --hero.o.powerUpT; hero.body.goatee._visible = true; hero.body.yellow._visible = false; hero.body.eyebrow1._visible = true; hero.body.eyebrow2._visible = true; tintItF(hero.body.color1, v3[0], v3[1], v3[2], 100); tintItF(hero.body.color2, v2[0], v2[1], v2[2], 100); if (hero.o.fakePowerUpT < 50 && int(hero.o.fakePowerUpT / 3) % 4 == 1) { unTintItF(hero.body.color1); unTintItF(hero.body.color2); hero.body.goatee._visible = false; hero.body.eyebrow1._visible = false; hero.body.eyebrow2._visible = false; } if (hero.o.fakePowerUpT <= 0) { hero.body.goatee._visible = false; hero.body.eyebrow1._visible = false; hero.body.eyebrow2._visible = false; unTintItF(hero.body.color1); unTintItF(hero.body.color2); hero.o.fakePowerUpped = false; } } if (hero.o.powerUpped) { v3 = hexToRBG('FFCC33'); v2 = hexToRBG('DB7D0A'); --hero.o.powerUpT; tintItF(hero.body.color1, v3[0], v3[1], v3[2], 100); tintItF(hero.body.color2, v2[0], v2[1], v2[2], 100); tintItF(hero.body.yellow.color, 255, 255, 255, 100); addGlitterF(hero); if (hero.o.powerUpT < 50 && int(hero.o.powerUpT / 3) % 4 == 1) { unTintItF(hero.body.color1); unTintItF(hero.body.yellow.color); unTintItF(hero.body.color2); } if (hero.o.powerUpT <= 0) { unTintItF(hero.body.color1); unTintItF(hero.body.yellow.color); unTintItF(hero.body.color2); hero.o.powerUpped = false; } } if (hero.o.invincibleT > 0) { --hero.o.invincibleT; } } function talkingF(who) { if (who.o.isTalking) { ++who.o.mouthF; if (who.o.mouthF > who.body.mouth._totalframes) { who.o.mouthF = 0; } who.body.mouth.gotoAndStop(who.o.mouthF); } else { if (who.body.mouth._currentframe <= 3) { who.body.mouth.gotoAndStop(1); } else { ++who.o.mouthF; if (who.o.mouthF > who.body.mouth._totalframes) { who.o.mouthF = 0; } who.body.mouth.gotoAndStop(who.o.mouthF); } } } function addGlitterF(hero) { var v2 = c.getNextHighestDepth(); var v4 = c.attachMovie('glitter', 'g' + v2, v2, {'_rotation': random(360), 'dir': hero._xscale / 100, 't': 0, '_x': hero._x + 10 - random(30), '_y': hero._y - 10 - random(30), 'xSpeed': 1 + random(4) / 2, 'ySpeed': 1 + random(5) / 4}); v4.onEnterFrame = function () { if (!gamePaused) { this._x += this.xSpeed * -this.dir; this._y -= this.ySpeed; ++this.t; if (this.t > 4) { this._yscale = 104 - this.t * 2; this._xscale = this._yscale; this._alpha = 104 - this.t * 2; if (this._alpha <= 0) { removeMovieClip(this); delete this.onEnterFrame; } } } }; } function hexToRBG(hex) { var v3 = HexToR(hex); var v4 = HexToG(hex); var v1 = HexToB(hex); return [v3, v4, v1]; } function HexToR(h) { return parseInt((cutHex(h)).substring(0, 2), 16); } function HexToG(h) { return parseInt((cutHex(h)).substring(2, 4), 16); } function HexToB(h) { return parseInt((cutHex(h)).substring(4, 6), 16); } function cutHex(h) { return (h.charAt(0) == '#') ? h.substring(1, 7) : h; } function enemyShotsF() { var v2 = 0; while (v2 < enemyShotsA.length) { var v1 = enemyShotsA[v2]; if (v1.angle == undefined) { v1._x += v1.xDir * v1.speed; v1._y += v1.yDir * v1.speed; } else { moveTowardsAngleF(v1, v1.angle, v1.speed); } if (v1._x > screenLength or v1._x < 0 or v1._y > screenHeight or v1._y < 0) { v1.remove = true; } if (!v1.remove) { if (v1.hitTest(hero.hit)) { v1.remove = true; playerHurtF(hero, v1.damage, v1); } } if (!v1.remove) { if (groundCheck(v1, c.ground.hard, 0, 0)) { v1.remove = true; } } if (v1.remove) { v1.removeMovieClip(); enemyShotsA.splice(v2, 1); --v2; } ++v2; } } function bloodExplode(en) { var v4 = c.getNextHighestDepth(); var v2 = c.attachMovie('bloodExplosion', 'b' + v4, v4, {'_x': en._x, '_y': en._y - en._width / 2}); var v5 = (en.getBounds(c)).xMin; v2._x = v5 + en._width / 2; v2.stop(); v2.onEnterFrame = function () { if (!gamePaused) { this.nextFrame(); if (this._currentframe == this._totalframes) { removeMovieClip(this); delete this.onEnterFrame; } } }; } function enemyF() { if (!heroO.piping) { var i = 0; while (i < enemiesA.length) { var en = enemiesA[i]; if (en._visible && en.o != undefined && !en.o.reallyDead) { if ((en.o.health <= 0 or en._y > screenHeight + 50) && !en.o.dead) { en.o.health = 0; unTintItF(en); var pwm = hero.o.jumpMultiplier; if (hero.o.powerUpped) { var pwm = hero.o.powerUpMultiplier; } hurtS.start(); addScore(enemy[en.type].health * 100 * pwm); en.o.dead = true; if (en.type == 'oldman') { unlockAchievementF('killedOldMan'); } if (en.type != 'razorBlade') { ++enemiesKilled; } if (enemiesKilled == allEnemies) { unlockAchievementF('massMurderer'); } if (en.o.mommaJokeTeller) { unlockAchievementF('unforgiving'); } ++levelD['level' + currentMapY + '_' + currentMapX].enemies; if (enemiesKilled >= 20) { unlockAchievementF('killed20Enemies'); } if (en.laser != undefined) { en.laserMask.removeMovieClip(); en.laser.removeMovieClip(); } if (en.type != 'boss' && en.type != 'razorBlade') { bloodExplode(en); } if (enemy[en.type].explode) { explosionF(en._x, en._y, 'large'); en.o.deadT = 0; } if (!en.o.coinTaken && !enemy[en.type].noCoin) { var coin = newCoinF(en._x, en._y); coin.o.enemy = en; en.o.coin = coin.o; coin.o.moving = true; coin.o.yDir = -14; coin.o.xDir = 0; } if (en.aMask != undefined) { en.aMask.removeMovieClip(); } en.o.falling = true; en.body.gotoAndStop('death'); en.o.f = en.body._currentframe; en._y -= 10; en.o.yDir = -5; if (enemy[en.type].remainWhenDead) { en.o.reallyDead = true; } } else { if (en.o.dead) { if (enemy[en.type].explode) { if (en.o.deadT < 10) { stopMusic(); } ++en.o.deadT; if (en.o.deadT % 14 == 1 && en.o.deadT < 55 or en.o.deadT == 95) { if (random(2) == 1) { var size = 'large'; } else { var size = 'medium'; } explosionF(en._x - en._width / 3 + random(en._width - 30), en._y - en._height / 3 + random(en._height - 30), size); } if (en.o.deadT == 155 && hero.o.health > 0) { stageClear(true); } } if (en.o.falling or (t + en.o.timingNumber) % 10 == 1) { en.o.yDir += 2; en._y += en.o.yDir; en.o.falling = true; en.o.x = en._x; en.o.y = en._y; while (groundCheck(en, c.ground, 0, 0)) { --en._y; en.o.yDir = -Math.abs(en.o.yDir) * 0.7; en.o.falling = false; if (en.o.yDir < -1) { en.o.yDir = 0; } } } } else { for (var j in enemyStoppers) { var stopper = enemyStoppers[j]; if (stopper.hitTest(en)) { var dist = en._x - stopper._x; en.o.dir = dist / Math.abs(dist); } } var dist = en._x - hero._x; var facing = Math.abs(en.o.xDir) / en.o.xDir; if (en.o.xDir == 0) { facing = -1; } if (en.body.mouth != undefined && Math.abs(dist) < screenWidth / 2 - 50 && (facing == 1 && en._x < hero._x or facing == -1 && en._x > hero._x or en.type == 'oldman')) { withinSpeakingDistance(en); } (enemy[en.type].walk + 'F')(en); if (en._x < 20) { en.o.dir = 1; } else { if (en._x > screenLength - 20) { en.o.dir = -1; } } if (en.o.hurt) { if (en.o.notReallyHurt or en.o.invincible) { } else { tintItF(en, 255, 0, 0, 100); } en.o.notReallyHurt = false; en.o.hurt = false; } else { unTintItF(en); } talkingF(en); en.o.jumped = false; en.o.x = en._x; en.o.y = en._y; en.o.xscale = en._xscale; en.o.yscale = en._yscale; en.o.f = en.body._currentframe; var jumpedY = enemy[en.type].jumpedY; if (jumpedY == undefined) { jumpedY = -(en.body._height / 5); } if (hero.hit.hitTest(en.body.hit)) { if (hero.o.powerUpped) { sayF(hero, dialogue.heroGotPowerUp_01); en.o.health = 0; ++hero.o.powerUpMultiplier; } else { if (!enemy[en.type].unJumpable && (hero.o.yDir > -6 or en.o.yDir < -2) && hero._y - hero.o.yDir < en._y + jumpedY) { if (!en.o.invincible) { en.o.health -= 1; } if (en.o.health <= 0) { hero.o.jumpMultiplier += 1; } else { hurtMiniS.start(); } var hd = hero._x - en._x; if (hero._y > en._y - en._height * 0.8) { hero.o.justKilledAnEnemy = true; hero._y = en._y - en._height * 0.8; } en.o.hurtXDir = -hd / Math.abs(hd); hero.o.yDir = -15; var hd = hero._x - en._x; en.o.hurtXDir = -hd / Math.abs(hd); en.o.hurt = true; en.o.jumped = true; if (en.type == 'mine') { playerHurtF(hero, 1); } } else { if (hero._y > en._y - 50 && !enemy[en.type].notDangerous && !hero.o.justKilledAnEnemy) { playerHurtF(hero, 1, en); if (en.body.mouth != undefined && random(3) == 1) { sayF(en, dialogue['inflictingPain' + (random(5) + 1) + '_1']); } en.o.hurt = true; en.o.notReallyHurt = true; var hd = hero._x - en._x; en.o.hurtXDir = -hd / Math.abs(hd); } } } } else { for (var o in playerShotsA) { var shot = playerShotsA[o]; if (shot.dangerous && !shot.remove && shot.hitTest(en.body.hit)) { en.o.hurt = true; en.o.hurtXDir = shot.xDir / Math.abs(shot.xDir); en.o.hurtYDir = shot.yDir / Math.abs(shot.yDir); shot.remove = true; if (!en.o.invincible) { en.o.health -= shot.damage; } en.o.jumped = false; } } if (en.o.falling && en.o.yDir > 2 && en.o.health > 0) { for (var o in otherThingsA) { var thing = otherThingsA[o]; if (thing.type == 'bouncer' && !thing.bouncing && en.hitTest(thing.body.hit)) { thing.withoutHero = true; thing.bouncing = true; boingS.start(); en.o.yDir = -30; } } } } enemyTint(en); } } } ++i; } } } function explosionF(x, y, type, tint) { smallExplosionCrappyS.start(); var v3 = c.getNextHighestDepth(); var v2 = c.attachMovie('explosion_' + type, 'exp' + v3, v3, {'_x': x, '_y': y}); v2._xscale = (random(2) * 2 - 1) * 100; v2._rotation = random(360); v2.stop(); v2.onEnterFrame = function () { if (!gamePaused) { this.nextFrame(); if (tint != undefined) { tintItF(this.fire, tint[0], tint[1], tint[2], tint[3]); } if (this._currentframe == this._totalframes) { removeMovieClip(this); } } }; } function newCPU() { var v1 = cpuStuff.getNextHighestDepth(); var v2 = cpuStuff.createEmptyMovieClip('cpu' + v1, v1); v2.t = 0; return v2; } function playerHurtF(hero, damage, who) { if (!hero.o.powerUpped && !heroO.invincibleT > 0 or damage == Infinity) { if (somebodyIsTalking && whoIsTalking == hero) { stopTalkingF(); } heroO.invincibleT = 20; hero.o.health -= damage; if (damage != Infinity) { var v4 = dialogue['heroOuch' + (random(8) + 1)]; sayF(hero, v4); } tintItF(hero, 255, 0, 0, 100); tintedT = t; if (who == 'y') { if (!hero.o.jumping) { hero.o.yDir -= 10; } } else { if (who == 'otherY') { hero.o.yDir = 8; } else { if (who != undefined) { var v3 = hero._x - who._x; if (!hero.o.jumping) { hero.o.yDir -= 5; } if (hero.o.touchGround) { hero.o.xDir = 15 * (v3 / Math.abs(v3)); } } } } if (hero.o.health <= 0 && !stageCleared) { playerDieF(hero); } } } function addScore(a) { if (isNaN(a)) { trace('NAN DETECTED AT FUNCTION ATSCORE'); } score += a; if (score > 14000) { unlockAchievementF('gotALotOfPoints'); } levelD['level' + currentMapY + '_' + currentMapX].amassedScore += a; } function playerDieF(hero) { hero.o.speed = hero.o.defaultSpeed; hero.o.isTalking = false; hero.o.fakePowerUpT = 0; hero.o.fakePowerUpped = false; hero.o.powerUpT = 0; hero.o.powerUpped = false; var v4 = hero._x; var v7 = hero._y; var v5 = hero.getDepth(); var v6 = hero._xscale; bloodExplode(hero); removeMovieClip(hero); heroO.dead = true; cameraX = v4; if (timesDead > 26) { unlockAchievementF('SirDieALot'); } var v3 = c.attachMovie(heroClip + 'Dead', 'heroDead', v5, {'t': 0, '_x': v4, '_y': v7, 'yDir': -25, '_xscale': v6}); v3.falling = true; v3._y -= 10; v3.yDir = -5; v3.onEnterFrame = function () { if (!gamePaused) { ++this.t; if (this.t > 15 && !somebodyIsTalking) { resurrectF(); } else { if (this.falling or (t + this.timingNumber) % 10 == 1) { this.yDir += 2; this._y += this.yDir; this.falling = true; while (groundCheck(this, c.ground, 0, 0)) { --this._y; this.yDir = -Math.abs(this.yDir) * 0.7; this.falling = false; if (this.yDir < -1) { this.yDir = 0; } } } } } }; } function resurrectF() { levelD['level' + currentMapY + '_' + currentMapX].resetAll = true; levelD['level' + currentMapY + '_' + (currentMapX + 1)].resetAll = true; levelD['level' + currentMapY + '_' + (currentMapX + 2)].resetAll = true; levelD['level' + currentMapY + '_' + (currentMapX + 3)].resetAll = true; deadT = t; var v1 = currentMapX; while (v1 < 4) { var v4 = levelD['level' + currentMapY + '_' + v1].amassedScore; if (v4 != undefined) { score -= v4; } levelD['level' + currentMapY + '_' + v1].amassedScore = 0; var v3 = levelD['level' + currentMapY + '_' + v1].enemies; if (v3 != undefined) { enemiesKilled -= v3; } levelD['level' + currentMapY + '_' + v1].enemies = 0; var v2 = levelD['level' + currentMapY + '_' + v1].shovels; if (v2 != undefined) { totalShovels -= v2; } levelD['level' + currentMapY + '_' + v1].shovels = 0; ++v1; } if (bossStage) { ++defeatedByBoss; } changeScreenF(hero, currentMapX, currentMapY); heroO.dead = false; hero.o.powerUpped = false; hero.o.powerUpT = 0; heroO.health = heroO.maxHealth; heroO.xDir = 0; heroO.yDir = 0; hero = attachPlayer(currentPlayer, c.startClip._x, c.startClip._y); ++timesDead; startLevelMusic(currentMapY); } function attachEnemyShotF(type, x, y, xDir, yDir, speed, angle) { var v2 = c.getNextHighestDepth(); var v1 = c.attachMovie(type, type + v2, v2, {'_x': x, '_y': y, 'xDir': xDir, 'yDir': yDir, 'angle': angle, 'type': type, 'speed': speed}); v1.damage = 1; v1.shotDamage = 1; enemyShotsA.push(v1); return v1; } function bossWalkF(en) { var v4 = 1; var v7 = 2; var v5 = 2; var v6 = 3; var v10 = 4; var v8 = 5; lastTalker = en; sayF(hero, dialogue.boss_01); if (en.o.state == undefined) { en.o.flyY = en._y; en.o.nextState = 'floatingBefore'; en.o.state = 'pause'; en.o.pT = 10; en.o.yDir = 0; en.o.standing = false; en.o.floating = true; en.body.legs.gotoAndStop(v8); if (defeatedByBoss >= 5) { sayF(en, dialogue.heroDiedOnBoss_1); } if (defeatedByBoss >= 7) { sayF(hero, dialogue.bossIsHard_1); en.o.simpler = true; if (dialogue.bossIsHard_4.said) { en.o.simpler = true; } } if (en.o.simpler) { en.o.health = int(en.o.health / 2); } if (defeatedByBoss > 0 && defeatedByBoss != 7) { c.bridge.gotoAndStop(c.bridge._totalframes); c.ground.soft._y += 1000; } } if (en.o.state == 'floatingBefore') { if (dialogue.boss_07.said && !somebodyIsTalking) { playMusic(bossBattleLoop, 999); if (c.bridge._currentframe == 1) { c.bridge.play(); c.bridge.onEnterFrame = function () { if (!gamePaused) { if (this._currentframe == 35) { playSound(bridgeCloseS); c.ground.soft._y += 1000; } } }; } en.o.state = 'firstRight'; } } else { if (en.o.state == 'firstRight') { if (en.o.simpler) { unlockAchievementF('bossSimplified'); en.o.xDir += 3; if (en._x >= c.rightStop._x - 5) { en.o.state = 'pause'; en.o.pT = 10; en.o.nextState = 'descend'; } } else { if (en._x < c.rightStop._x) { en.o.xDir += 3.5; } else { en.o.state = 'pause'; en.o.pT = 10; en.o.nextState = 'moveAndShootToLeft'; } } } else { if (en.o.state == 'goToTheRight') { if (en.o.hurt) { sayF(en, dialogue.bossTroubled_01); } if (en._x < c.rightStop._x && !en.o.simpler or en.o.simpler && en._x < c.rightStop._x - 5) { en.o.xDir += 3; ++en.o.wT; var v9 = en.o.wT % 40; if (v9 >= 1 && v9 <= 10) { en.o.xDir -= 3; if (v9 == 5) { playSound(laserShotS, en); attachEnemyShotF('rotatingLaser', en._x, en._y + 5, 2, 3, 1.2); attachEnemyShotF('rotatingLaser', en._x, en._y + 5, 0, 4, 1.2); attachEnemyShotF('rotatingLaser', en._x, en._y + 5, -2, 3, 1.2); } } } else { if (en.o.simpler) { en.o.state = 'pause'; en.o.pT = 10; en.o.nextState = 'descend'; } else { en.o.state = 'pause'; en.o.pT = 30; en.o.nextState = 'moveAndShootToLeft'; } } } else { if (en.o.state == 'pause') { --en.o.pT; if (en.o.pT <= 0) { en.o.state = en.o.nextState; } } else { if (en.o.state == 'moveAndShootToLeft') { en.o.xDir -= 3; if (en._x <= c.left._x + 5) { en._x = c.left._x + 5; en.o.state = 'pause'; en.o.pT = 10; en.o.nextState = 'moveAndShootToRight'; } else { if (en._x > c.leftStop._x + 15 && t % 4 == 1) { playSound(laserShotS, en); attachEnemyShotF('ballLaser', en._x, en._y + 5, 0, 1, 8); } } } else { if (en.o.state == 'moveAndShootToRight') { en.o.xDir += 3; if (en._x >= c.rightStop._x - 5) { en.o.state = 'pause'; en.o.pT = 10; en.o.nextState = 'descend'; } else { if (en._x < c.rightStop._x - 15 && t % 4 == 1) { playSound(laserShotS, en); attachEnemyShotF('ballLaser', en._x, en._y + 5, 0, 1, 8); } } } else { if (en.o.nextState == 'descend') { if (en._y < c.groundHelp._y) { en.o.floating = false; en.o.yDir = 5; } else { if (en.body.legs._currentframe != v7) { en._y = c.groundHelp._y + 3; en.o.yDir = 0; en.o.standing = true; en.body.legs.gotoAndStop(v7); } else { en._y = c.groundHelp._y; en.body.legs.gotoAndStop(v4); en.o.pT = 10; en.o.state = 'pause'; en.o.nextState = 'jumpTheGaps'; en.o.pos = 0; } } } else { if (en.o.state == 'jumpTheGaps') { if (en.body.legs._currentframe == v4) { en.body.legs.gotoAndStop(v5); } else { if (en.body.legs._currentframe == v5) { en.body.legs.gotoAndStop(v6); } else { if (en.body.legs._currentframe == v6) { en.body.legs.gotoAndStop(v10); } else { en.body.legs.gotoAndStop(v8); } } } if (en.o.pos == 0) { en.o.xDir -= 6; } else { if (en.o.pos < 2) { en.o.xDir -= 7.45; } else { en.o.xDir -= 6; } } if (!en.o.jumping) { en.o.jumping = true; en.o.yDir -= 20; } if (!en.o.standing && en._y >= c.groundHelp._y) { ++en.o.pos; impactS.start(); en.o.state = 'gapland'; en._y = c.groundHelp._y + 3; en.o.yDir = 0; en.o.standing = true; en.o.jumping = false; en.body.legs.gotoAndStop(v7); } else { en.o.standing = false; } } else { if (en.o.state == 'gapland') { en._y = c.groundHelp._y; en.body.legs.gotoAndStop(v4); en.o.pT = 25; en.o.state = 'pause'; if (en.o.pos == 3) { en.o.state = 'pause'; en.o.pT = 10; en.o.nextState = 'ascend'; } else { en.o.nextState = 'jumpTheGaps'; } } else { if (en.o.state == 'ascend') { if (en._y < en.o.flyY) { en._y = en.o.flyY; en.o.yDir = 0; en.o.state = 'goToTheRight'; en.o.wT = 0; } else { if (en.body.legs._currentframe == v4) { en.body.legs.gotoAndStop(v5); } else { if (en.body.legs._currentframe == v5) { en.body.legs.gotoAndStop(v6); en.o.yDir = -10; } else { if (en.body.legs._currentframe == v6) { en.body.legs.gotoAndStop(v8); en.o.floating = true; en.o.yDir = -5; } } } } } } } } } } } } } } en._y += en.o.yDir; en._x += en.o.xDir; en.o.xDir *= 0.5; var v3 = en.o.health / enemy[en.type].health; if (en.o.simpler) { v3 = en.o.health / int(enemy[en.type].health / 2); } if (v3 < 1) { sayF(en, dialogue.bossDontJumpOnIt_01); } if (v3 >= 0.8) { en.body.body.gotoAndStop(1); } else { if (v3 >= 0.6) { en.body.body.gotoAndStop(2); } else { if (v3 >= 0.2) { en.body.body.gotoAndStop(3); } else { sayF(en, dialogue.bossBrokenGlass_01); if (en.o.hurt) { playSound(glassBreakS, en); } en.o.health = 1; en.body.body.gotoAndStop(4); } } } if (en.o.floating) { en._y += Math.sin(Math.PI * t / 20); } if (en.o.jumping) { en.o.yDir += 2; } if (Math.abs(en.o.xDir) < 0.5) { en.o.xDir = 0; } } function flyingBetweenArrowsF(en) { var v3 = en.o.dir; var v4 = enemy[en.type].speed; en.o.xDir += v4 * v3; en._x += en.o.xDir; if (en.o.oY == undefined) { en.o.oY = en._y; } if (en.body._currentframe == 9) { en.body.gotoAndStop(1); } else { en.body.nextFrame(); } en.o.xDir *= 0.4; en._xscale = -100 * v3; if (v3 == -1) { for (var v2 in mpRights) { if (en.hitTest(mpRights[v2])) { en.o.dir = 1; break; } } } else { for (var v2 in mpLefts) { if (en.hitTest(mpLefts[v2])) { en.o.dir = -1; break; } } } } function ifIseeYouIChargeF(en) { if (en.o.hurt && en.o.state != 'turning' && en.o.state != 'excited') { if (en.o.jumped) { en.o.state = 'excited'; en.body.gotoAndStop(1); } else { en.o.state = 'turning'; en.body.gotoAndStop('turning'); } } var v2 = en.o.dir; var v3 = enemy[en.type].speed; if (en.o.state == 'turning') { en.body.nextFrame(); en.body.angry._visible = false; if (en.body._currentframe == 39) { en.o.dir = -v2; v2 = en.o.dir; en.body.gotoAndStop(1); en.o.state = 'walking'; } } else { if (en.o.state == 'excited') { v3 *= 4; en.body.angry._visible = true; en.o.xDir += v3 * v2; en.body.nextFrame(); en.body.nextFrame(); if (en.body._currentframe >= 17) { en.body.gotoAndStop(1 + (17 - en.body._currentframe)); } if (t % 3 == 1 && !lookForHorizontallyF(en, hero)) { } } else { en.body.angry._visible = false; en.o.xDir += v3 * v2; en.body.nextFrame(); if (en.body._currentframe == 17) { en.body.gotoAndStop(1); } if (t % 3 == 1 && lookForHorizontallyF(en, hero)) { en.o.state = 'excited'; en.body.gotoAndStop(1); } } } if (en.o.state != 'turning') { if (groundCheck(en, c.ground, (45 + (v3 - 0.3) * 22) * v2, 8)) { } else { en.o.state = 'turning'; en.body.gotoAndStop('turning'); } if (en.o.state != 'turning' && groundCheck(en, c.ground.hard, (45 + (v3 - 0.3) * 22) * v2, -20)) { en.o.state = 'turning'; en.body.gotoAndStop('turning'); } } en._x += en.o.xDir; en.o.xDir *= 0.8; en._xscale = -100 * v2; en.o.yDir += 2; en._y += en.o.yDir; while (groundCheck(en, c.ground, 0, 0)) { --en._y; en.o.yDir = 0; } } function lookForHorizontallyF(en, hero) { var v4 = en.o.dir; var v6 = enemy[en.type].speed; var v3 = hero._x - en._x; if (Math.abs(v3) < screenWidth && (v4 == 1 && hero._x > en._x or v4 == -1 && hero._x < en._x)) { if (hero._y + 50 > en._y && hero._y - 40 < en._y) { var v1 = 20; while (v1 < Math.abs(v3)) { if (hero.hitTest(en._x + v1 * v4 + c._x, en._y + c._y - 20)) { return true; v1 = Math.abs(v3); } else { if (c.ground.hard.hitTest(en._x + v1 * v4 + c._x, en._y + c._y - 20, true)) { v1 = Math.abs(v3); } } v1 += 20; } } } } function justStandingF(en) {} function razorBladeF(en) { var v2 = enemy[en.type].speed; en.o.invincible = true; if (en.o.oX == undefined) { en.o.oX = en._x; en.o.goalX = en._x + 175; en.o.wT = 0; en.o.dir = 1; } if (en.o.pause) { --en.o.pT; if (en.o.pT <= 0) { en.o.pause = false; en.o.dir = -en.o.dir; } } else { if (en.o.dir == 1) { en.o.xDir += v2; if (en._x > en.o.goalX) { en._x = en.o.goalX; en.o.pause = true; en.o.pT = 3; } } else { if (en.o.dir == -1) { en.o.xDir -= v2; if (en._x < en.o.oX) { en._x = en.o.oX; en.o.pause = true; en.o.pT = 3; } } } } en._x += en.o.xDir; en.body._rotation += en.o.xDir * 3; en.o.xDir *= 0.4; if (Math.abs(en.o.xDir) < 0.5) { en.o.xDir = 0; } } function wallBlockF(en) { var v1 = en.o.dir; if ((t + en.o.timingNumber) % 60 == 1) { playSound(laserShotS); attachEnemyShotF('rotatingLaser', en._x - 6 * v1, en._y + 58, v1, 0, 4); } } function backAndForthF(en) { var v2 = en.o.dir; var v3 = enemy[en.type].speed; if (en.o.jumping) { v3 = 2; } en.o.xDir += v3 * v2; en.o.yDir += 2; if (en.o.state != 'turn') { en._x += en.o.xDir; } en._y += en.o.yDir; en.o.xDir *= 0.4; if (Math.abs(en.o.yDir) > 2 && !en.o.jumping) { en.o.jumping = true; en.body.gotoAndStop('fall'); } if (en.o.state == 'turn') { en.o.state = 'walking'; en.body.gotoAndStop(1); v2 = -v2; en.o.dir = v2; } else { if (en.o.jumping) { } else { if (en.body._currentframe >= 8) { en.body.gotoAndStop(1); } else { en.body.nextFrame(); } } } en.o.falling = true; while (groundCheck(en, c.ground, en._width / 2, 0) or groundCheck(en, c.ground, -(en._width / 2), 0)) { --en._y; en.o.falling = false; en.o.yDir = 0; if (en.o.jumping) { en.o.jumping = false; en.body.gotoAndStop(1); } } en._xscale = 100 * -v2; if (!en.o.falling) { if ((t + en.o.timingNumber) % 2 == 1) { if (!groundCheck(en, c.ground, (50 + v3 * 2) * v2, 8) && !groundCheck(en, c.ground, (50 + v3 * 2) * v2, 25) && !groundCheck(en, c.ground, (30 + v3 * 2) * v2, 75)) { en.o.state = 'turn'; en.body.gotoAndStop('turn'); } else {} if (groundCheck(en, c.ground.hard, (50 + v3 * 2) * v2, -20)) { if (groundCheck(en, c.ground.hard, (50 + v3 * 2) * v2, -75)) { en.o.state = 'turn'; en.body.gotoAndStop('turn'); } else { en.o.yDir = -18; en.body.gotoAndStop('jump'); en.o.jumping = true; en.o.xDir += v2 * 4; } } } } } function cameraCallF(x, xscale) { cameraTagged = true; camX = x; camXscale = x; } function cameraFollowF(x, xscale) { cameraTagged = false; if (pan == undefined) { pan = 0; panIncrement = 0; maxPan = 30; } if (xscale == undefined) { } c._x = int(-x + screenWidth / 2); if (xscale != undefined) { if (lastScale != xscale / 100) { panIncrement = 0; } else { panIncrement += 0.5; } if (panIncrement > 3) { panIncrement = 3; } pan -= panIncrement * (xscale / 100); if (Math.abs(pan) > maxPan) { pan = maxPan * (Math.abs(pan) / pan); } } else { panIncrement * 0.8; pan *= 0.8; } c._x = int(c._x); while (c._x > 0) { c._x = 0; } while (c._x < -(screenLength - screenWidth)) { c._x = -(screenLength - screenWidth); } c.sun._x = c._x * 0.05 - c._x; c.clouds._x = c._x * 0.07000000000000001 - c._x; c.sun.rays._rotation = 180 + c._x * 0.05; c.back._x = c._x * 0.3 - c._x; c.back2._x = c._x * 0.2 - c._x; c.back1._x = c._x * 0.7 - c._x; c.back0._x = c._x * 0.72 - c._x; if (xscale != undefined) { lastScale = xscale / 100; } } function collisionF(hero) { if (!hero.o.piping) { var v5 = hero.x; var v4 = hero.y; var v3 = 2; hero.o.touchGround = false; hero.o.properTouchGround = false; hero.o.rightSliding = false; hero.o.leftSliding = false; if (hero.o.fallTimer == 0) { if (!hero.o.falling) { hero.o.fallTimer = 5; } } else { --hero.o.fallTimer; } hero.o.falling = true; hero.o.slideJumpOK = false; groundHitF(hero, c.ground); var v2 = 17; hardGroundHitF(hero, v2); if (c.hurt.hitTest(hero.x + c._x + 8, hero._y + c._y, true) or c.hurt.hitTest(hero.x + c._x - 8, hero._y + c._y, true)) { playerHurtF(hero, 1, 'y'); } else { if (c.hurt.hitTest(hero.x + c._x + 8, hero._y - 49 + c._y, true) or c.hurt.hitTest(hero.x + c._x - 8, hero._y - 49 + c._y, true)) { playerHurtF(hero, 1, 'otherY'); } } } } function hardGroundHitF(hero, waki) { function rightHit(hero, waki, y) { var v1 = c.ground.hard.hitTest(hero._x + waki + c._x, hero._y - y + c._y, true); return v1; } function leftHit(hero, waki, y) { var v1 = c.ground.hard.hitTest(hero._x - waki + c._x, hero._y - y + c._y, true); hero.o.leftHit1 = v1; return v1; } var v3 = 0; var v4 = 3; waki -= 2; var v5 = 50; for (;;) { if (!(v3 < v4 && c.ground.hard.hitTest(hero.x + c._x, hero._y - v5 + hero.o.yDir + c._y, true))) break; ++v3; ++hero.o.yDir; ++hero._y; } v3 = 0; for (;;) { if (!(v3 < v4 && rightHit(hero, waki - 1, 9) or rightHit(hero, waki, 28) or hero.o.xDir > 0 && rightHit(hero, waki + hero.o.xDir, 20))) break; --hero._x; --hero.x; hero.o.xDir *= 0.5; ++v3; } v3 = 0; for (;;) { if (!(v3 < v4 && leftHit(hero, waki - 1, 9) or leftHit(hero, waki, 28) or hero.o.xDir < 0 && leftHit(hero, waki + hero.o.xDir, 20))) break; hero.o.xDir *= 0.5; ++hero._x; ++hero.x; ++v3; } v3 = 0; if (!LEFT && rightHit(hero, waki + 2, 12) && rightHit(hero, waki + 2, 40) && hero.o.falling && hero.o.yDir >= -5) { hero.o.rightSliding = true; hero.o.jumping = false; hero.o.slideJumpOK = true; hero.o.slideJumpDir = -1; hero.o.slideJumpT = 0; if (hero.o.yDir >= 0) { hero.o.yDir = 0; } else {} hero._xscale = -100; } else { if (!RIGHT && leftHit(hero, waki + 2, 12) && leftHit(hero, waki + 2, 40) && hero.o.falling && hero.o.yDir >= -5) { hero.o.leftSliding = true; hero.o.jumping = false; hero.o.slideJumpOK = true; hero.o.slideJumpDir = 1; hero.o.slideJumpT = 0; if (hero.o.yDir >= 0) { hero.o.yDir = 0; } else {} hero._xscale = 100; } } } function groundCheck(en, what, x, y) { if (what.hitTest(en._x + c._x + x, en._y + c._y + y, true)) { return true; } } function groundHitF(hero, what) { var v2 = 4; if (hero.o.yDir > 0 or hero.o.standingOnMovingPlatform && what != c.ground.soft) { while (what.hitTest(hero._x + c._x + v2, hero._y + c._y, true) or what.hitTest(hero._x + c._x - v2, hero._y + c._y, true)) { --hero._y; hero.o.yDir = 0; hero.o.jumping = false; hero.o.slideJumpT = 0; hero.o.jumpOK = true; hero.o.falling = false; hero.o.jumpFinished = true; hero.o.touchGround = true; hero.o.jumpMultiplier = 0; hero.o.properTouchGround = true; } if (hero.o.falling && what.hitTest(hero._x + c._x + v2 * (hero._xscale / 100), hero._y + 15 + c._y, true)) { hero.o.jumping = false; hero.o.slideJumpT = 0; hero.o.jumpOK = true; hero.o.falling = false; hero.o.jumpFinished = true; hero.o.touchGround = true; hero.o.jumpMultiplier = 0; hero.o.properTouchGround = true; } else { if (hero.o.falling && (what.hitTest(hero._x + c._x + v2, hero._y + 7 + c._y, true) or what.hitTest(hero._x + c._x - v2, hero._y + 7 + c._y, true))) { hero.o.falling = false; } } if (hero.o.yDir > 6 && (what.hitTest(hero._x + c._x + v2, hero._y + 8 + c._y, true) or what.hitTest(hero._x + c._x - v2, hero._y + 8 + c._y, true))) { hero.o.yDir -= 6; if (hero.o.yDir < 0) { hero.o.yDir = 0; } } } } function lookForDiagonallyF(object, target) { var v7 = getDistanceF(object, target); var v5 = findAngleF(object, target); var v6 = false; var v1 = 20; while (v1 < v7) { var v2 = pointOnAngleF(object, v5, v1); if (hero.hitTest(v2.x + c._x, v2.y + c._y)) { v6 = true; v1 = v7; } else { if (c.ground.hard.hitTest(v2.x + c._x, v2.y + c._y, true)) { v1 = v7; } } v1 += 20; } return {'canSee': v6, 'angle': v5, 'dist': v7}; } function findAngleF(object, target) { var v5 = target.width; var v6 = target.height; var v8 = object.x; var v7 = object.y; var v3 = target.x; var v2 = target.y; var v4 = int(-Math.atan2(v8 - (v3 + v5 / 2), v7 - (v2 + v6 / 2)) / 0.01744444444444445); return v4; } function getDistanceF(object1, object2) { var v7 = object1.x; var v5 = object1.y; var v6 = object2.x + object2.width / 2; var v4 = object2.y + object2.height / 2; var v2 = Math.abs(v7 - v6); var v3 = Math.abs(v5 - v4); return int(Math.sqrt(v2 * v2 + v3 * v3)); } function pointOnAngleF(startPos, angle, distance) { var v5 = startPos.x; var v4 = startPos.y; v5 += Math.sin((180 - angle) * 3.14 / 180) * distance; v4 += Math.cos((180 - angle) * 3.14 / 180) * distance; return {'x': v5, 'y': v4}; } function moveTowardsAngleF(object, angle, speed) { object._y += Math.sin((angle - 90) * 3.14 / 180) * speed; object._x += Math.cos((angle - 90) * 3.14 / 180) * speed; } function moveF(hero) { if (!hero.o.piping && !stageCleared) { hero.o.yDir += 2; if (hero.o.yDir > hero.o.maxFallSpeed) { hero.o.yDir = hero.o.maxFallSpeed; } hero.o.oldX = hero.x; hero.o.oldY = hero._y; hero._y += hero.o.yDir + hero.o.extraYDir; hero.x += hero.o.xDir + hero.o.extraXDir; hero.o.extraXDir = 0; hero.o.extraYDir = 0; hero._x = int(hero.x); hero.o.xDir *= 0.75; if (currentMapX == 0 or bossStage) { while (hero._x - 25 < 0) { ++hero._x; ++hero.x; } } if (bossStage) { while (hero._x + 25 > screenLength) { --hero._x; --hero.x; } } if (hero._y - 80 > screenHeight) { playerHurtF(hero, Infinity); heroFalling.start(); } if (Math.abs(hero.o.xDir) < 0.5) { hero.o.xDir = 0; } if (hero._x > screenLength) { if (currentMapX == 3) { } else { changeScreenF(hero, 1, 0, true); } } else { if (hero._x < 0) { if (currentMapX == 0) { } else { changeScreenF(hero, -1, 0, true); } } } } } function movingPlatformsF(hero) { hero.o.standingOnMovingPlatform = false; for (var v4 in movingPlatformsA) { var v1 = movingPlatformsA[v4]; v1._x += v1.xDir; v1._y += v1.yDir; if (hero.o.yDir >= 0 && hero.feetHit.hitTest(v1)) { hero.o.standingOnMovingPlatform = true; hero.o.extraXDir += v1.xDir; hero.o.extraYDir += v1.yDir; } for (var v3 in mpUps) { if (v1.hitTest(mpUps[v3])) { v1.xDir = 0; v1.yDir = -v1.speed; break; } } for (v3 in mpDowns) { if (v1.hitTest(mpDowns[v3])) { v1.xDir = 0; v1.yDir = v1.speed; break; } } for (v3 in mpRights) { if (v1.hitTest(mpRights[v3])) { v1.xDir = v1.speed; v1.yDir = 0; break; } } for (v3 in mpLefts) { if (v1.hitTest(mpLefts[v3])) { v1.xDir = -v1.speed; v1.yDir = 0; break; } } } } function attachLevel(posy, posx) { if (posy == 3 && posx == 5) { bossStage = true; screenLength = 920; } else { screenLength = 1920; bossStage = false; } sinceLevelWasAttachedT = 0; tempScreenData = new Object(); currentMapX = posy; currentMapY = posx; watersA = new Array(); coinsA = new Array(); checkpointsA = new Array(); enemiesA = new Array(); keysA = new Array(); otherThingsA = new Array(); movingPlatformsA = new Array(); enemyStoppers = new Array(); mpRights = new Array(); mpLefts = new Array(); mpDowns = new Array(); mpUps = new Array(); attachMovie('black', 'black', 203, {'_x': 0, '_width': screenWidth, '_height': screenHeight, 't': 0}); black.onEnterFrame = function () { if (!gamePaused) { if (this.t >= 2) { this._alpha -= 33; if (this._alpha <= 0) { removeMovieClip(this); } } else { ++this.t; } } }; attachMovie('level' + posx + '_' + posy, 'c', containerDepth); if (levelD['level' + posx + '_' + posy].resetAll) { var resetAll = true; levelD['level' + posx + '_' + posy].resetAll = false; } c.ground.hard.createEmptyMovieClip('stuff', 1); c.onEnterFrame = function () { if (this.p == 1) { var v18 = 0; while (v18 < coinsA.length) { var v11 = coinsA[v18]; v11.o = levelD.coins['level' + posx + '_' + posy + '_' + v18]; if (resetAll) { v11.o.taken = false; } if (v11.o.taken) { v11._visible = false; } ++v18; } v18 = 0; while (v18 < checkpointsA.length) { var v10 = checkpointsA[v18]; v10.o = levelD.checkpoints['level' + posx + '_' + posy + '_' + v18]; if (v10.o.current) { currentCheckpoint.clip = v10; v10.body.gotoAndStop('red'); } else {} ++v18; } v18 = 0; while (v18 < otherThingsA.length) { var v2 = otherThingsA[v18]; v2.o = levelD.otherThings['level' + posx + '_' + posy + '_' + v18]; if (resetAll && v2.o.remove) { v2.o.remove = false; } if (v2.o.remove) { v2._visible = false; } else { if (v2.type == 'breakable') { var v14 = c.ground.hard.getNextHighestDepth(); var v13 = c.ground.hard.attachMovie('breakable', 'breakable' + v14, v14, {'_x': v2._x - c.ground.hard._x - c.ground._x, '_y': v2._y - c.ground.hard._y - c.ground._y}); v13._visible = false; v2.hard = v13; if (resetAll) { v2.o.breaking = false; v2.o.breakT = undefined; } } else { if (v2.type == 'star') { if (v2.o.remove) { v2._visible = false; } } else { if (v2.type == 'starBox' or v2.type == 'ordinaryBox') { var v14 = c.ground.hard.stuff.getNextHighestDepth(); if (v2.o.x != undefined) { v2._x = v2.o.x; v2._y = v2.o.y; } var v13 = c.ground.hard.stuff.attachMovie('starBox', 'starBox' + v14, v14, {'_x': v2._x - c.ground.hard._x, '_y': v2._y - c.ground.hard._y}); v2.hard = v13; } else { if (v2.type == 'bouncer') { } else { if (v2.type == 'bullseye') { if (v2.o.hit) { v2.body.gotoAndStop(2); } v2.o.xMove = v2.xMove; v2.o.yMove = v2.yMove; v2.o.makeInvisible = v2.makeInvisible; v2.o.time = v2.time; if (v2.o.xMove == undefined) { v2.o.xMove = 0; } if (v2.o.yMove == undefined) { v2.o.yMove = 0; } var v6 = new Array(); for (var v15 in v2.target) { v6.push(c[v2.target[v15]]); if (c.ground.soft[v2.target[v15]] != undefined) { v6.push(c.ground.soft[v2.target[v15]]); } if (c.ground.hard[v2.target[v15]] != undefined) { v6.push(c.ground.hard[v2.target[v15]]); } } v2.o.target = v6; for (v15 in v2.o.target) { var v5 = v2.o.target[v15]; v5.oX = v5._x; v5.oY = v5._y; } } else { if (v2.type == 'blocker') { } else { if (v2.type == 'pipe') { v2.o.map = v2.map; v2.o.pipe = v2.pipe; } else { if (v2.type == 'coinContainer') { var v14 = c.ground.hard.stuff.getNextHighestDepth(); if (v2.o.exploded) { v2.body.gotoAndStop(2); } else { var v13 = c.ground.hard.stuff.attachMovie('coinContainer', 'coinContainer' + v14, v14, {'_x': v2._x - c.ground.hard._x, '_y': v2._y - c.ground.hard._y}); v2.hard = v13; } } } } } } } } } } ++v18; } v18 = 0; while (v18 < enemiesA.length) { var v3 = enemiesA[v18]; v3.body.stop(); v3.o = levelD.enemies['level' + posx + '_' + posy + '_' + v18]; v3.o.mouthF = 1; enemyTint(v3); if (resetAll) { var v12 = v3.o.colorNumber; levelD.enemies['level' + posx + '_' + posy + '_' + v18] = new Object(); v3.o = levelD.enemies['level' + posx + '_' + posy + '_' + v18]; v3.o.type = v3.type; v3.o.saySomething = random(100) <= 40; v3.o.mouthF = 1; v3.o.colorNumber = v12; v3.o.health = enemy[v3.type].health; v3.o.dir = v3.dir; if (v3.o.dir == undefined) { v3.o.dir = -1; } v3.o.timingNumber = random(10); v3.o.yDir = 0; v3.o.xDir = 0; } if (v3.o.x != undefined) { v3._xscale = v3.o.xscale; v3._yscale = v3.o.yscale; v3._x = v3.o.x; v3._y = v3.o.y; v3.body.gotoAndStop(v3.o.f); } v3.onPress = function () { trace(this.o.state); }; ++v18; } for (v18 in movingPlatformsA) { var v9 = movingPlatformsA[v18]; v14 = c.ground.soft.getNextHighestDepth(); if (v9.speed == undefined) { v9.speed = Math.abs(v9.xDir) + Math.abs(v9.yDir); } } v18 = 0; while (v18 < generatedStuff['level' + posx + '_' + posy].length) { var v4 = generatedStuff['level' + posx + '_' + posy][v18]; if (v4.type == 'coin') { if (v4.deleteIt) { generatedStuff['level' + posx + '_' + posy].splice(v18, 1); --v18; false; } else { v11 = attachCoinF(v4.x, v4.y); v11.o = v4; coinsA.push(v11); if (v4.taken) { v11._visible = false; } } } else { if (v4.type == 'key') { if (c[v4.theName] == undefined) { var v7 = attachKeyF(v4); v7.swapDepths(hero); } else { var v7 = c[v4.theName]; v7._x = v4.x; v7._y = v4.y; v7._visible = true; } v4.clip = v7; v7.o = v4; v7.o.temp = 0; v7.cacheAsBitmap = true; if (!v7.o.untouched) { v7.o.moving = true; } for (;;) { if (!(v7.o.changedScreenAtT < t && !v7.remove && v7.o.moving)) break; ++v7.o.changedScreenAtT; keyBehaviorF(v7); } if (!v7.remove) { v7.o.changedScreenAtT = undefined; keysA.push(v7); } else { --v18; v7.removeMovieClip(); } } } ++v18; } for (v18 in heroO.keysA) { var v8 = heroO.keysA[v18]; if (c[v8.theName] == undefined) { v7 = attachKeyF(v8); v7.swapDepths(hero); } else { v7 = c[v8.theName]; v8.clip = v7; v7._x = hero._x; v7._y = hero._y; v7.o = v8; v7._visible = true; } v7.o.temp = 0; v7.cacheAsBitmap = true; } delete this.onEnterFrame; } this.p = 1; }; } function enemyTint(en) { tintItF(en.body.color1, color1A[en.o.colorNumber][0], color1A[en.o.colorNumber][1], color1A[en.o.colorNumber][2], 100); tintItF(en.body.color2, color2A[en.o.colorNumber][0], color2A[en.o.colorNumber][1], color2A[en.o.colorNumber][2], 100); } function attachPlayer(clip, x, y) { var v1 = c.attachMovie(clip, 'hero', 0, {'_x': x, 'x': x, '_y': y}); heroClip = clip; heroO.xyArray = new Array(); v1.o = heroO; hero.o.oldX = x; hero.o.oldY = y; return v1; } function goThroughLevels() { levelD = new Object(); for (var v7 in levelA) { for (var v6 in levelA[v7]) { levelD['level' + v7 + '_' + v6] = new Object(); levelD['level' + v7 + '_' + v6].amassedScore = 0; levelD['level' + v7 + '_' + v6].enemies = 0; levelD['level' + v7 + '_' + v6].shovels = 0; } } levelD.enemies = new Object(); levelD.coins = new Object(); levelD.keys = new Object(); levelD.checkpoints = new Object(); levelD.otherThings = new Object(); var allCoinsA = new Array(); var allEnemiesA = new Array(); var allOtherThingsA = new Array(); var allCheckpointsA = new Array(); allShovels = 0; allEnemies = 0; createEmptyMovieClip('temp', 33); temp.vx = 0; temp.vy = 0; temp.t = 0; temp.onEnterFrame = function () { if (this.t == 0) { coinsA = new Array(); checkpointsA = new Array(); enemiesA = new Array(); keysA = new Array(); otherThingsA = new Array(); var v6 = attachMovie('level' + this.vx + '_' + this.vy, 'stage', 10, {'_visible': false}); if (v6 == undefined) { ++this.vy; if (this.vy == levelA[0].length) { this.vx += 1; this.vy = 0; if (this.vx == levelA.length) { delete this.onEnterFrame; realStartGame2(); } } } else { this.t = 1; } } else { if (this.t == 1) { this.t = 0; var v4 = 0; while (v4 < enemiesA.length) { allEnemiesA.push(String('level' + this.vx + '_' + this.vy + '_' + v4)); allEnemiesA.push(enemiesA[v4].type); allEnemiesA.push(enemiesA[v4].dir); ++v4; } v4 = 0; while (v4 < coinsA.length) { allCoinsA.push(String('level' + this.vx + '_' + this.vy + '_' + v4)); ++v4; } v4 = 0; while (v4 < checkpointsA.length) { allCheckpointsA.push(String('level' + this.vx + '_' + this.vy + '_' + v4)); ++v4; } v4 = 0; while (v4 < otherThingsA.length) { allOtherThingsA.push(String('level' + this.vx + '_' + this.vy + '_' + v4)); allOtherThingsA.push(otherThingsA[v4].type); allOtherThingsA.push(otherThingsA[v4].dir); ++v4; } removeMovieClip(stage); allEnemies = allEnemiesA.length / 3 - 1; allShovels = allCoinsA.length; v4 = 0; while (v4 < allEnemiesA.length) { levelD.enemies[allEnemiesA[v4]] = new Object(); var v2 = levelD.enemies[allEnemiesA[v4]]; v2.type = allEnemiesA[v4 + 1]; if (v2.type == 'razorBlade' or v2.type == 'wallBlock') { --allEnemies; } v2.health = enemy[v2.type].health; v2.saySomething = random(3) == 1; v2.colorNumber = random(color1A.length); v2.dir = allEnemiesA[v4 + 2]; if (v2.dir == undefined) { v2.dir = -1; } v2.timingNumber = random(10); v2.yDir = 0; v2.xDir = 0; v4 += 3; } for (v4 in allCoinsA) { levelD.coins[allCoinsA[v4]] = new Object(); var v3 = levelD.coins[allCoinsA[v4]]; v3.taken = false; } for (v4 in allCheckpointsA) { levelD.checkpoints[allCheckpointsA[v4]] = new Object(); v3 = levelD.checkpoints[allCheckpointsA[v4]]; v3.i = allCheckpointsA[v4].substr(allCheckpointsA[v4].length - 1, 1); v3.current = false; } v4 = 0; while (v4 < allOtherThingsA.length) { var v5 = allOtherThingsA[v4 + 1]; levelD.otherThings[allOtherThingsA[v4]] = new Object(); v3 = levelD.otherThings[allOtherThingsA[v4]]; v3.type = v5; v3.yDir = 0; v3.xDir = 0; v3.dir = allOtherThingsA[v4 + 2]; if (v3.dir == undefined) { v3.dir = 1; } v3.timingNumber = random(20); if (v5 == 'coinContainer') { v3.health = coinContainer.health; v3.coins = coinContainer.coins; } v3.remove = false; v4 += 3; } ++this.vy; if (this.vy == levelA[0].length) { this.vx += 1; this.vy = 0; if (this.vx == levelA.length) { delete this.onEnterFrame; realStartGame2(); } } } } }; } function new2DArray(x, y) { var v3 = new Array(); var v2 = 0; while (v2 < x) { v3[v2] = new Array(); var v1 = 0; while (v1 < y) { v3[v2][v1] = 0; ++v1; } ++v2; } return v3; } urlStart = _url.indexOf('://') + 3; urlEnd = _url.indexOf('/', urlStart); domain = _url.substring(urlStart, urlEnd); LastDot = domain.lastIndexOf('.') - 1; domEnd = domain.lastIndexOf('.', LastDot) + 1; domain = domain.substring(domEnd, domain.length); stop(); save = SharedObject.getLocal('leeslees'); if (domain == 'adultswim.com' or domain == '' or domain == 'raitendo.com') { initVar(); varsThatNeedToInitEveryTime(); startMenuF(); } Array.prototype.copy = Array.prototype.slice; Color.prototype.setTint = function (r, g, b, amount) { var v4 = 100 - amount; var v2 = new Object(); v2.ba = v4; v2.ga = v2.ba; v2.ra = v2.ba; var v3 = amount / 100; v2.rb = r * v3; v2.gb = g * v3; v2.bb = b * v3; this.setTransform(v2); }; Color.prototype.removeTint = function () { this.setTint(0, 0, 0, 0); }; } instance svensson of movieClip 351 { onClipEvent (load) { map = [6, 0]; pipe = 'svensson'; } } frame 9 { d.heroFalling.subs.en = 'Aaaahh!!'; d.fakePowerUp_01_2.subs.en = 'No, no, it\'s not like that...'; d.rectangle_01.subs.en = 'Hi ya! did you see my girlfriend?'; d.rectangle_02.subs.en = 'Don\'t even talk to me, you imbecile!'; d.bossDontJumpOnIt_01.subs.en = 'Dude, don\'t jump on it, it will break!'; d.bossTroubled_01.subs.en = 'Hey, hey, get off! You\'re supposed to wait until I land! I don\'t have any upward attacks!'; d.bossBrokenGlass_01.subs.en = 'Shit, you broke the glass!'; d.boss_01.subs.en = 'Aha!'; d.boss_02.subs.en = 'There you are!'; d.boss_03.subs.en = 'Time to meet your maker!'; d.boss_04.subs.en = 'Man, you weirdo! Stop following me around, you\'re really freaking me out!'; d.boss_05.subs.en = 'Good thing I was able to borrow this doomsday device from Pete!'; d.boss_06.subs.en = 'What, did Pete lend you that!?'; d.boss_07.subs.en = 'Dude, Pete hates your guts, he was more than happy to.'; d.boss_08.subs.en = 'Shut up already and let\'s fight!'; d.cube_01.subs.en = 'Hi there, blocky!'; d.cube_02.subs.en = 'Oh, THAT\'S IT! Enough with the insults!! I\'ve had it with you!!'; d.cube_03.subs.en = 'Wh-what..?'; d.cylinder1_01.subs.en = 'Christ, did this guy have to turn up and make an already bad day even worse?'; d.fakePowerUp_01.subs.en = 'Dude, what\'s wrong with you? Why are you running around naked, you freak!!'; d.fakePowerUp_02.subs.en = 'Dude, what\'s wrong with you?!'; d.fakePowerUp_03.subs.en = 'Dude, what\'s wrong with you!?'; d.fakePowerUp_04.subs.en = 'Why you running around naked?!'; d.flyingCube_01.subs.en = 'Hey you, get up here if you dare and I\'ll give you a beating you\'ll never forget!'; d.heroAnnoyedSound.subs.en = 'Christ, that sound is annoying.'; d.heroGot100Shovels_01.subs.en = 'Man, I must have picked up at least a 100 of these damn shovels by now! What does it all mean?!'; d.heroGot100Shovels_02.subs.en = 'What\'s the point of it all!!?'; d.heroGotPowerUp_01.subs.en = 'Now this is what I call a power-up...'; d.heroGotStar_01.subs.en = 'What the..!'; d.heroGotStar_02.subs.en = 'Where did this goatee come from?'; d.heroGotStar_03.subs.en = 'And why I am I naked!?'; d.heroGotStar_04.subs.en = 'STAARMAAAN!!'; d.heroQuestionsShovels_01.subs.en = 'Seriously, why am I even bothering with these shovels..?'; d.heroThanksBetterSound_01.subs.en = 'Thanks, that\'s much better.'; d.icosahedron_01.subs.en = 'Well, well, if it isn\'t Mr. I-am-the-sum-of-all-points-that-are-equidistant-to-a-central-mid-point. Bah!'; d.icosahedron_02.subs.en = 'Icosahedron, have you too turned against me?'; d.icosahedron_03.subs.en = 'You\'re dead, pal!'; d.intro_01.subs.en = 'Oh, aren\'t we ever so happy here, Lulu?'; d.intro_02.subs.en = 'I\'m not your girlfriend, I\'m not even a woman, I just happen to have long eyelashes and like pink!'; d.intro_03.subs.en = 'Hey, Lulu, let\'s split.'; d.intro_04.subs.en = 'Thank God!'; d.intro_05.subs.en = '... NOOOOO!!'; d.intro_06.subs.en = 'I\'ll save you Lulu!!'; d.oldman1_01.subs.en = 'Get out of here, you thief! You\'re just after my shovels!'; d.oldman1_02.subs.en = 'Hey, old man, it\'s OK, I\'m the protagonist of this game!'; d.oldman1_03.subs.en = 'It\'s not OK, get out! Now!'; d.oldman2_01.subs.en = 'What do you think you\'re doing, you burglar! Get out of my house! '; d.oldman2_02.subs.en = 'No, no, it\'s not like that..!'; d.oldman2_03.subs.en = 'Sure it is! Get out!'; d.powerUp_01.subs.en = 'Watch out, he\'s picked up a newspaper!!'; d.pyramid_01.subs.en = 'Get out of here!'; d.starman1_01.subs.en = 'Hey man, get up here, quick, I\'ll help you out!'; d.starman1_02.subs.en = 'Ah, awesome! I knew I could trust you, starman!'; d.starman1_03.subs.en = 'Come on, hurry up!'; d.starman2_01.subs.en = 'Hey, what the..?'; d.starman2_02.subs.en = 'Too good for the starman now, are we?'; d.starman3_01.subs.en = 'Come on man, I want to help you! Pick me up!'; nobodyLikesYou = 'Nobody likes you!'; everyBodyHatesYou = 'Everybody hates you!'; takeThat = 'Hah, take that!'; takeThis = 'Take this!'; goAway = 'Go away!'; d.randomGreeting_9.subs.en = 'Get out of my way!'; d.randomGreeting_10.subs.en = 'I\'m so angry right now!'; d.randomGreeting_11.subs.en = 'I\'ve so had it with your bragging about your stupid circumference and its ratio to your diameter!'; d.randomGreeting_12.subs.en = 'You know what, you\'re not even perfectly round to begin with! You look more like a sack of balls then an actual ball!'; d.inflictingPain1_1.subs.en = takeThat; d.inflictingPain2_1.subs.en = takeThat; d.inflictingPain3_1.subs.en = takeThis; d.inflictingPain4_1.subs.en = takeThis; d.inflictingPain5_1.subs.en = takeThis; d.randomGreeting_1.subs.en = everyBodyHatesYou; d.randomGreeting_2.subs.en = everyBodyHatesYou; d.randomGreeting_3.subs.en = nobodyLikesYou; d.randomGreeting_4.subs.en = nobodyLikesYou; d.randomGreeting_5.subs.en = everyBodyHatesYou; d.randomGreeting_6.subs.en = goAway; d.randomGreeting_7.subs.en = goAway; d.randomGreeting_8.subs.en = goAway; d.heroDoor.subs.en = 'Oh, the door is open.'; d.heroShutUp.subs.en = 'Oh, shut up.'; d.randomGreeting_13.subs.en = 'You\'re an idiot!'; d.randomGreeting_13b.subs.en = 'Oh, yeah? I know you are, but what am I?'; d.randomGreeting_14.subs.en = 'You\'re a moron!'; d.randomGreeting_14b.subs.en = 'Takes one to know one!!'; d.randomGreeting_15.subs.en = 'Hey man, I had your momma over last night'; d.randomGreeting_16.subs.en = 'I harbor unfavorable feelings towards your person!'; d.randomGreeting_17.subs.en = 'I fart in your general direction!'; d.heroNiceMusic_1.subs.en = 'Aah, I like the music on this level. It makes me feel very heroic!'; d.heroNiceMusic_2.subs.en = 'That was the most pathetic thing I\'ve heard all day..!'; d.heroNiceMusic_3.subs.en = 'Hey! Who said that?'; d.heroAlternativeNewspaper.subs.en = 'Because knowledge... is power.'; d.youDieALot_1.subs.en = 'Man, you sure die a lot'; d.youDieALot_2.subs.en = 'You really like dieing, don\'t you?'; d.heroDiedOnBoss_1.subs.en = 'Dude, are you even trying?'; d.heroDiedOnBoss_2.subs.en = 'I\'ll show you!'; d.heroGettingDark_1.subs.en = 'It\'s getting a bit dark...'; d.heroGettingDark_2.subs.en = 'Uhm...'; d.heroGettingDark_3.subs.en = 'It\'s a bit late, maybe it\'s time to head back home..?'; d.heroGettingDark_4.subs.en = 'Enemy: Yeah, do that, go run home to mummy, you wimp!'; d.heroGettingDark_5.subs.en = 'Who is that?!'; d.heroInCastle_1.subs.en = 'All right, I\'m in a castle!'; d.heroInCastle_2.subs.en = 'That must mean this is the last stage!'; d.heroShovel_1.subs.en = 'Oh, a shovel!'; d.heroShovel_2.subs.en = 'Oh, another shovel! Lovely!'; d.heroShovel_3.subs.en = 'Hmm, I wonder what these shovels do...'; d.boss_09.subs.en = 'OK, sure.'; d.bossIsHard_1.subs.en = 'Hey man, this is pretty hard... don\'t you think you could lower the difficulty a little bit here?'; d.bossIsHard_2.subs.en = 'I mean, seriously, you don\'t want the player to stop playing before he gets to see the ending, right?'; d.bossIsHard_3.subs.en = 'Christ...'; d.bossIsHard_4.subs.en = 'OK, fine, I\'ll stop doing that attack pattern when I go left and then right again while shooting downwards... does that sound good?'; d.bossIsHard_5.subs.en = 'Yeah, that\'d be great, thanks.'; d.narratorEnding.subs.en = 'SO LEE-LEE FOUND LU-LU AND THEY LIVED HAPPILY EVER AFTER. THE END'; d.ending_1.subs.en = 'Wh, what, that\'s it? All that voice-acting and original music and shit and you still can\'t bother giving me a proper ending??'; d.ending_2.subs.en = 'Come on!!'; d.ending_3.subs.en = 'I deserve better than this!'; d.ending_4.subs.en = 'RAITENDO!!!'; d.ending_5.subs.en = 'Man, you can just forget about me appearing in your next game!'; d.ending_6.subs.en = '\'cause it ain\'t gonna happen! There\'s no way!'; d.ending_7.subs.en = 'I\'ll remember this!'; }




http://swfchan.com/20/99670/info.shtml
Created: 21/3 -2019 18:54:46 Last modified: 21/3 -2019 18:54:46 Server time: 22/12 -2024 11:16:35