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

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

1010667768.swf

This is the info page for
Flash #12218

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


ActionScript [AS1/AS2]
Combined Code
movieClip 84 sparkz { frame 4 { this.swapDepths(100); this.removeMovieClip(); } } movieClip 97 spark { frame 13 { this.swapDepths(100); this.removeMovieClip(); } } movieClip 99 mouseh { } movieClip 120 { frame 12 { stop(); _parent.swapDepths(100); _parent.removeMovieClip(); } } movieClip 124 { frame 80 { stop(); _parent.swapDepths(100); _parent.removeMovieClip(); } } movieClip 125 crater { frame 1 { stop(); } frame 10 { stop(); } frame 20 { stop(); } instance crater of movieClip 124 { onClipEvent (load) { _x = -random(30); _y = random(30); } } instance crater of movieClip 124 { onClipEvent (load) { _x = -random(30); _y = -random(30); } } instance crater of movieClip 124 { onClipEvent (load) { _x = random(30); _y = -random(30); } } instance crater of movieClip 124 { onClipEvent (load) { _x = random(30); _y = random(30); } } frame 30 { stop(); } } movieClip 127 { } movieClip 129 { } movieClip 131 { } movieClip 138 { } movieClip 141 { } movieClip 144 { } movieClip 147 { } movieClip 150 { } movieClip 153 { } movieClip 154 { frame 1 { stop(); } } movieClip 165 { frame 1 { stop(); } } movieClip 167 { frame 1 { stop(); } } movieClip 169 { frame 1 { stop(); } } movieClip 171 { frame 1 { stop(); } } movieClip 173 { frame 1 { stop(); } } movieClip 176 { } movieClip 191 { } movieClip 194 { } movieClip 196 { } movieClip 198 { } movieClip 199 { } button 201 { on (release) { if (id != 2) { show.gotoAndStop(2); id = 2; } else { show.gotoAndStop(1); id = 1; } } } movieClip 214 { } movieClip 217 { } movieClip 220 { } movieClip 243 { frame 1 { stop(); } frame 2 { bt.onRelease = function () { gotoAndStop(4); }; } frame 3 { bt.onRelease = function () { _root.SortScore(); gotoAndStop(4); }; } frame 4 { stop(); _root.ShowScore(); bt.onRelease = function () { _root.gameclear(); }; } } movieClip 245 face { frame 1 { stop(); var ad0 = ''; var ad1 = ''; var ad2 = ''; var ad3 = ''; var ad4 = ''; var ad5 = ''; var t = 0; onEnterFrame = function () { ++t; if (t >= 100) { t = 0; _root.ad_arr.shift(); _root.ad_arr.push(' '); var v3 = 0; while (v3 < 6) { this['ad' + v3] = _root.ad_arr[v3]; ++v3; } } }; gun_bz1.onRelease = function () { _root.change_gun(1); }; gun_bz2.onRelease = function () { _root.change_gun(2); }; gun_bz3.onRelease = function () { _root.change_gun(3); }; gun_bz4.onRelease = function () { _root.change_gun(4); }; gun_bz5.onRelease = function () { if (_root.action_id == 1) { _root.special_key(); } }; } frame 2 { stop(); ad0 = ''; ad1 = ''; ad2 = ''; ad3 = ''; ad4 = ''; ad5 = ''; t = 0; onEnterFrame = function () { ++t; if (t >= 100) { t = 0; _quality = 'HIGH'; _root.CheckScore(); onEnterFrame = null; } }; } } movieClip 247 mask { } frame 1 { _quality = 'HIGH'; fscommand('allowscale', false); fscommand('showmenu', false); stop(); onEnterFrame = function () { var v4 = _root.getBytesLoaded(); var v3 = _root.getBytesTotal(); var v2 = int((v4 / v3) * 100); loading.say = v2 + ' %'; loading.loading.gotoAndStop(v2); if (v4 == v3) { onEnterFrame = null; loading.gotoAndStop(2); } }; } movieClip 249 { } movieClip 251 { } movieClip 252 { } movieClip 254 { } movieClip 255 { frame 1 { stop(); } frame 100 { stop(); } } movieClip 260 { } movieClip 264 { } movieClip 265 { } movieClip 266 { } movieClip 267 { frame 38 { stop(); _parent._parent.gotoAndPlay(3); _parent.swapDepths(100); _parent.removeMovieClip(); } } movieClip 268 { frame 1 { stop(); } } movieClip 269 { frame 1 { var c = [[0, 0], [1, 0], [2, 0], [1, -1], [0, -1], [-1, -1], [-1, 0], [-1, 1], [0, 1], [1, 1]]; var a = 0; var b = 0; var d = _root.damage; var e = 0; var f = 0; var x = 0; var y = 0; var r = 0; } frame 2 { stop(); } frame 3 { x = _x; y = _y; a = int(y / 30); b = int(x / 30); d = _root.damage; e = (_root.action_id == 1) ? 3 : 10; var i = 0; while (i < e) { f = _root.mapman[a + c[i][0]][b + c[i][1]]; if (f != 1 && f != null && f < 51000) { var temp = _root.game['bug' + f]; if (temp.life >= d) { temp.life -= d; d = 0; break; } else { d -= temp.life; temp.life = 0; } } ++i; } if (d <= 0) { _root.attachSpark(x, y, 0); gotoAndStop(2); } } frame 4 { _root.attachCrater(x, y, _root.action_id); gotoAndStop(2); } } movieClip 271 { } movieClip 274 { } movieClip 277 { } movieClip 280 { } movieClip 283 { } movieClip 286 { } movieClip 289 { } movieClip 292 { } movieClip 295 { } movieClip 310 { } movieClip 325 { } movieClip 340 { } movieClip 355 { } movieClip 370 { } movieClip 385 { } movieClip 400 { } movieClip 415 { } movieClip 416 { frame 1 { stop(); } } movieClip 419 { } movieClip 422 { } movieClip 425 { } movieClip 428 { } movieClip 431 { } movieClip 434 { } movieClip 437 { } movieClip 440 { } movieClip 455 { } movieClip 470 { } movieClip 485 { } movieClip 500 { } movieClip 515 { } movieClip 530 { } movieClip 545 { } movieClip 560 { } movieClip 561 { frame 1 { stop(); } } movieClip 596 { frame 10 { _root.goback(); } } movieClip 599 { frame 3 { _root.sn_gun1.start(); } frame 6 { _root.fireway(); } frame 10 { stop(); } } movieClip 602 { frame 10 { _root.goback(); } } movieClip 605 { frame 10 { _root.goback(); } } movieClip 608 { frame 10 { _root.goback(); } } movieClip 611 { frame 10 { _root.goback(); } } movieClip 614 { frame 10 { _root.goback(); } } movieClip 617 { frame 10 { _root.goback(); } } movieClip 620 { frame 10 { _root.goback(); } } movieClip 623 { frame 10 { _root.goback(); } } movieClip 626 { frame 10 { _root.goback(); } } movieClip 629 { frame 10 { _root.goback(); } } movieClip 632 { frame 10 { _root.goback(); } } movieClip 635 { frame 10 { _root.goback(); } } movieClip 638 { frame 10 { _root.goback(); } } movieClip 641 { frame 10 { _root.goback(); } } movieClip 644 { frame 10 { _root.goback(); } } movieClip 661 { frame 30 { _root.goback(); } } movieClip 678 { frame 30 { _root.goback(); } } movieClip 695 { frame 30 { _root.goback(); } } movieClip 712 { frame 30 { _root.goback(); } } movieClip 729 { frame 30 { _root.goback(); } } movieClip 746 { frame 30 { _root.goback(); } } movieClip 763 { frame 30 { _root.goback(); } } movieClip 780 { frame 30 { _root.goback(); } } movieClip 781 { frame 1 { stop(); } } movieClip 817 { } movieClip 821 { } movieClip 825 { } movieClip 829 { } movieClip 833 { } movieClip 837 { } movieClip 841 { } movieClip 845 { } movieClip 849 { } movieClip 853 { } movieClip 857 { } movieClip 861 { } movieClip 865 { } movieClip 869 { } movieClip 873 { } movieClip 877 { } movieClip 894 { frame 30 { _root.goback(); } } movieClip 911 { frame 30 { _root.goback(); } } movieClip 928 { frame 30 { _root.goback(); } } movieClip 945 { frame 30 { _root.goback(); } } movieClip 962 { frame 30 { _root.goback(); } } movieClip 979 { frame 30 { _root.goback(); } } movieClip 996 { frame 30 { _root.goback(); } } movieClip 1013 { frame 30 { _root.goback(); } } movieClip 1014 { frame 1 { stop(); } } movieClip 1061 { frame 27 { _root.goback(); } } movieClip 1074 { frame 12 { stop(); } } movieClip 1075 { frame 2 { _root.sn_gun2.start(); } frame 6 { _root.fireway(); } frame 27 { stop(); } } movieClip 1090 { frame 27 { _root.goback(); } } movieClip 1105 { frame 27 { _root.goback(); } } movieClip 1120 { frame 27 { _root.goback(); } } movieClip 1135 { frame 27 { _root.goback(); } } movieClip 1150 { frame 27 { _root.goback(); } } movieClip 1165 { frame 27 { _root.goback(); } } movieClip 1180 { frame 27 { _root.goback(); } } movieClip 1195 { frame 27 { _root.goback(); } } movieClip 1210 { frame 27 { _root.goback(); } } movieClip 1225 { frame 27 { _root.goback(); } } movieClip 1240 { frame 27 { _root.goback(); } } movieClip 1255 { frame 27 { _root.goback(); } } movieClip 1270 { frame 27 { _root.goback(); } } movieClip 1285 { frame 27 { _root.goback(); } } movieClip 1300 { frame 27 { _root.goback(); } } movieClip 1325 { frame 44 { _root.goback(); } } movieClip 1350 { frame 44 { _root.goback(); } } movieClip 1375 { frame 44 { _root.goback(); } } movieClip 1400 { frame 44 { _root.goback(); } } movieClip 1425 { frame 44 { _root.goback(); } } movieClip 1450 { frame 44 { _root.goback(); } } movieClip 1475 { frame 44 { _root.goback(); } } movieClip 1500 { frame 44 { _root.goback(); } } movieClip 1501 { frame 1 { stop(); } } movieClip 1549 { } movieClip 1565 { } movieClip 1581 { } movieClip 1597 { } movieClip 1613 { } movieClip 1629 { } movieClip 1645 { } movieClip 1661 { } movieClip 1677 { } movieClip 1693 { } movieClip 1709 { } movieClip 1725 { } movieClip 1741 { } movieClip 1757 { } movieClip 1773 { } movieClip 1789 { } movieClip 1814 { } movieClip 1839 { } movieClip 1864 { } movieClip 1889 { } movieClip 1914 { } movieClip 1939 { } movieClip 1964 { } movieClip 1989 { } movieClip 1990 { frame 1 { stop(); } } movieClip 2025 { frame 4 { _root.goback(); } } movieClip 2026 { frame 2 { _root.sn_gun3.start(); } frame 3 { _root.fireway(); } frame 4 { stop(); } } movieClip 2029 { frame 4 { _root.goback(); } } movieClip 2032 { frame 4 { _root.goback(); } } movieClip 2035 { frame 4 { _root.goback(); } } movieClip 2038 { frame 4 { _root.goback(); } } movieClip 2041 { frame 4 { _root.goback(); } } movieClip 2044 { frame 4 { _root.goback(); } } movieClip 2047 { frame 4 { _root.goback(); } } movieClip 2050 { frame 4 { _root.goback(); } } movieClip 2053 { frame 4 { _root.goback(); } } movieClip 2056 { frame 4 { _root.goback(); } } movieClip 2059 { frame 4 { _root.goback(); } } movieClip 2062 { frame 4 { _root.goback(); } } movieClip 2065 { frame 4 { _root.goback(); } } movieClip 2068 { frame 4 { _root.goback(); } } movieClip 2071 { frame 4 { _root.goback(); } } movieClip 2084 { frame 18 { _root.goback(); } } movieClip 2097 { frame 18 { _root.goback(); } } movieClip 2110 { frame 18 { _root.goback(); } } movieClip 2123 { frame 18 { _root.goback(); } } movieClip 2136 { frame 18 { _root.goback(); } } movieClip 2149 { frame 18 { _root.goback(); } } movieClip 2162 { frame 18 { _root.goback(); } } movieClip 2175 { frame 18 { _root.goback(); } } movieClip 2176 { frame 1 { stop(); } } movieClip 2212 { } movieClip 2216 { } movieClip 2220 { } movieClip 2224 { } movieClip 2228 { } movieClip 2232 { } movieClip 2236 { } movieClip 2240 { } movieClip 2244 { } movieClip 2248 { } movieClip 2252 { } movieClip 2256 { } movieClip 2260 { } movieClip 2264 { } movieClip 2268 { } movieClip 2272 { } movieClip 2285 { } movieClip 2298 { } movieClip 2311 { } movieClip 2324 { } movieClip 2337 { } movieClip 2350 { } movieClip 2363 { } movieClip 2376 { } movieClip 2377 { frame 1 { stop(); } } movieClip 2482 { frame 13 { _root.goback(); } } movieClip 2491 { frame 13 { _root.goback(); } } movieClip 2499 { frame 13 { _root.goback(); } } movieClip 2508 { frame 13 { _root.goback(); } } movieClip 2517 { frame 13 { _root.goback(); } } movieClip 2525 { frame 13 { _root.gofill(); } } movieClip 2526 { frame 4 { _root.rocket_arr[0][0] = _root.game._xmouse; _root.rocket_arr[0][1] = _root.game._ymouse; _root.sn_gun4.start(); } frame 11 { _root.fireway4(); } frame 12 { stop(); } } movieClip 2535 { frame 13 { _root.goback(); } } movieClip 2544 { frame 13 { _root.goback(); } } movieClip 2552 { frame 13 { _root.goback(); } } movieClip 2561 { frame 13 { _root.goback(); } } movieClip 2570 { frame 13 { _root.goback(); } } movieClip 2578 { frame 13 { _root.gofill(); } } movieClip 2587 { frame 13 { _root.goback(); } } movieClip 2596 { frame 13 { _root.goback(); } } movieClip 2604 { frame 13 { _root.goback(); } } movieClip 2613 { frame 13 { _root.goback(); } } movieClip 2622 { frame 13 { _root.goback(); } } movieClip 2630 { frame 13 { _root.gofill(); } } movieClip 2639 { frame 13 { _root.goback(); } } movieClip 2648 { frame 13 { _root.goback(); } } movieClip 2656 { frame 13 { _root.goback(); } } movieClip 2665 { frame 13 { _root.goback(); } } movieClip 2674 { frame 13 { _root.goback(); } } movieClip 2682 { frame 13 { _root.gofill(); } } movieClip 2691 { frame 13 { _root.goback(); } } movieClip 2700 { frame 13 { _root.goback(); } } movieClip 2708 { frame 13 { _root.goback(); } } movieClip 2717 { frame 13 { _root.goback(); } } movieClip 2726 { frame 13 { _root.goback(); } } movieClip 2734 { frame 13 { _root.gofill(); } } movieClip 2743 { frame 13 { _root.goback(); } } movieClip 2752 { frame 13 { _root.goback(); } } movieClip 2760 { frame 13 { _root.goback(); } } movieClip 2769 { frame 13 { _root.goback(); } } movieClip 2778 { frame 13 { _root.goback(); } } movieClip 2786 { frame 13 { _root.gofill(); } } movieClip 2795 { frame 13 { _root.goback(); } } movieClip 2804 { frame 13 { _root.goback(); } } movieClip 2812 { frame 13 { _root.goback(); } } movieClip 2821 { frame 13 { _root.goback(); } } movieClip 2830 { frame 13 { _root.goback(); } } movieClip 2838 { frame 13 { _root.gofill(); } } movieClip 2847 { frame 13 { _root.goback(); } } movieClip 2856 { frame 13 { _root.goback(); } } movieClip 2864 { frame 13 { _root.goback(); } } movieClip 2873 { frame 13 { _root.goback(); } } movieClip 2882 { frame 13 { _root.goback(); } } movieClip 2890 { frame 13 { _root.gofill(); } } movieClip 2899 { frame 13 { _root.goback(); } } movieClip 2908 { frame 13 { _root.goback(); } } movieClip 2916 { frame 13 { _root.goback(); } } movieClip 2925 { frame 13 { _root.goback(); } } movieClip 2934 { frame 13 { _root.goback(); } } movieClip 2942 { frame 13 { _root.gofill(); } } movieClip 2951 { frame 13 { _root.goback(); } } movieClip 2960 { frame 13 { _root.goback(); } } movieClip 2968 { frame 13 { _root.goback(); } } movieClip 2977 { frame 13 { _root.goback(); } } movieClip 2986 { frame 13 { _root.goback(); } } movieClip 2994 { frame 13 { _root.gofill(); } } movieClip 3003 { frame 13 { _root.goback(); } } movieClip 3012 { frame 13 { _root.goback(); } } movieClip 3020 { frame 13 { _root.goback(); } } movieClip 3029 { frame 13 { _root.goback(); } } movieClip 3038 { frame 13 { _root.goback(); } } movieClip 3046 { frame 13 { _root.gofill(); } } movieClip 3055 { frame 13 { _root.goback(); } } movieClip 3064 { frame 13 { _root.goback(); } } movieClip 3072 { frame 13 { _root.goback(); } } movieClip 3081 { frame 13 { _root.goback(); } } movieClip 3090 { frame 13 { _root.goback(); } } movieClip 3098 { frame 13 { _root.gofill(); } } movieClip 3107 { frame 13 { _root.goback(); } } movieClip 3116 { frame 13 { _root.goback(); } } movieClip 3124 { frame 13 { _root.goback(); } } movieClip 3133 { frame 13 { _root.goback(); } } movieClip 3142 { frame 13 { _root.goback(); } } movieClip 3150 { frame 13 { _root.gofill(); } } movieClip 3159 { frame 13 { _root.goback(); } } movieClip 3168 { frame 13 { _root.goback(); } } movieClip 3176 { frame 13 { _root.goback(); } } movieClip 3185 { frame 13 { _root.goback(); } } movieClip 3194 { frame 13 { _root.goback(); } } movieClip 3202 { frame 13 { _root.gofill(); } } movieClip 3211 { frame 13 { _root.goback(); } } movieClip 3220 { frame 13 { _root.goback(); } } movieClip 3228 { frame 13 { _root.goback(); } } movieClip 3237 { frame 13 { _root.goback(); } } movieClip 3246 { frame 13 { _root.goback(); } } movieClip 3254 { frame 13 { _root.gofill(); } } movieClip 3263 { frame 13 { _root.goback(); } } movieClip 3272 { frame 13 { _root.goback(); } } movieClip 3280 { frame 13 { _root.goback(); } } movieClip 3289 { frame 13 { _root.goback(); } } movieClip 3298 { frame 13 { _root.goback(); } } movieClip 3306 { frame 13 { _root.gofill(); } } movieClip 3351 { frame 78 { _root.goback(); } } movieClip 3396 { frame 78 { _root.goback(); } } movieClip 3441 { frame 78 { _root.goback(); } } movieClip 3486 { frame 78 { _root.goback(); } } movieClip 3531 { frame 78 { _root.goback(); } } movieClip 3576 { frame 78 { _root.goback(); } } movieClip 3621 { frame 78 { _root.goback(); } } movieClip 3666 { frame 78 { _root.goback(); } } movieClip 3667 { frame 1 { stop(); } } movieClip 3744 { } movieClip 3789 { } movieClip 3834 { } movieClip 3879 { } movieClip 3924 { } movieClip 3969 { } movieClip 4014 { } movieClip 4059 { } movieClip 4060 { frame 1 { stop(); } } movieClip 4099 { frame 50 { stop(); } } movieClip 4100 { frame 1 { stop(); } } movieClip 4101 { frame 1 { stop(); } instance hit of movieClip 271 { } } movieClip 4102 game { } movieClip 4105 { } movieClip 4108 { } movieClip 4111 { } movieClip 4114 { } movieClip 4117 { } movieClip 4120 { } movieClip 4123 { } movieClip 4126 { } movieClip 4127 { frame 1 { stop(); } } movieClip 4138 { } movieClip 4149 { } movieClip 4160 { } movieClip 4171 { } movieClip 4182 { } movieClip 4193 { } movieClip 4204 { } movieClip 4215 { } movieClip 4216 { frame 1 { stop(); } } movieClip 4229 { } movieClip 4242 { } movieClip 4255 { } movieClip 4268 { } movieClip 4281 { } movieClip 4294 { } movieClip 4307 { } movieClip 4320 { } movieClip 4321 { frame 1 { stop(); } } movieClip 4334 { } movieClip 4347 { } movieClip 4360 { } movieClip 4373 { } movieClip 4386 { } movieClip 4399 { } movieClip 4412 { } movieClip 4425 { } movieClip 4426 { frame 1 { stop(); } } movieClip 4436 { frame 20 { stop(); } } movieClip 4455 { frame 19 { stop(); } } movieClip 4465 { frame 20 { stop(); } } movieClip 4475 { frame 20 { stop(); } } movieClip 4485 { frame 20 { stop(); } } movieClip 4495 { frame 20 { stop(); } } movieClip 4505 { frame 20 { stop(); } } movieClip 4515 { frame 20 { stop(); } } movieClip 4525 { frame 20 { stop(); } } movieClip 4526 { frame 1 { stop(); } } movieClip 4536 { frame 28 { stop(); } } movieClip 4546 { frame 28 { stop(); } } movieClip 4556 { frame 28 { stop(); } } movieClip 4566 { frame 28 { stop(); } } movieClip 4576 { frame 28 { stop(); } } movieClip 4586 { frame 27 { stop(); } } movieClip 4596 { frame 28 { stop(); } } movieClip 4606 { frame 28 { stop(); } } movieClip 4607 { frame 1 { stop(); } } movieClip 4608 bug11 { frame 1 { function CheckLife() { if (life <= 0) { if (nowf1 == 2 || nowf1 == 4) { gotoAndStop(6); nowf1 = 6; bug.gotoAndStop(nowf2); } else { gotoAndStop(7); nowf1 = 7; bug.gotoAndStop(nowf2); } walk_id = 9; _root.diesay(1, _x, _y); t2 = 0; _root.sn_die11.stop('sn_die11'); _root.sn_die11.start(); } } function CountJL(x, y) { jx = _x - x; jy = _y - y; jl = Math.sqrt(jx * jx + jy * jy); } function CheckVary() { if (jl < 150 && nowf1 == 2) { gotoAndStop(3); nowf1 = 3; bug.gotoAndStop(nowf2); step = step * 3 / 5; t2 = 0; } else { if (jl > 300 && nowf1 == 5) { gotoAndStop(4); nowf1 = 4; bug.gotoAndStop(nowf2); step = step * 5 / 3; t2 = 0; } } } function ViewVary() { if (nowf1 == 3 || nowf1 == 4) { ++t2; bug.bug.gotoAndStop(t2); if (t2 >= 22) { t2 = 0; nowf2 = bug._currentframe; if (nowf1 == 3) { gotoAndStop(5); nowf1 = 5; } else { if (nowf1 == 4) { gotoAndStop(2); nowf1 = 2; } } bug.gotoAndStop(nowf2); } } } function haul() { r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v1 = int((r16 + 202.5) / 45) + 1; if (v1 == 9) { v1 = 1; } bug.gotoAndStop(v1); } function HitMap() { var v3 = r16 * Math.PI / 180; stepx = step * Math.sin(v3); stepy = -step * Math.cos(v3); a = int((_y + stepy) / 30); b = int((_x + stepx) / 30); e = mapdate[a][b]; f = mapman[a][b]; if (e > 1) { if (f == name) { _x = _x + stepx; _y = _y + stepy; } else { if (f == null) { c = int(_y / 30); d = int(_x / 30); _x = _x + stepx; _y = _y + stepy; mapman[c][d] = null; mapman[a][b] = name; } else { if (f > 1 && f < 52000) { ++t1; if (t1 >= 10 + random(15)) { walk_id = 2; search_id = 2; t1 = 0; } } else { if (f == 1) { ++t3; if (t3 >= 10) { t3 = 0; _root.hurt(damage); _parent._parent.sn_e11.start(); } } else { if (f >= 52000) { _root.mine_hurt(f, b, a); } } } } } } else { walk_id = 2; search_id = 2; } } function CheckJL() { if (jl > 300) { var v2 = int((_y + stepy * f1_num) / 30); var v3 = int((_x + stepx * f1_num) / 30); var v1 = mapdate[v2][v3]; if (v1 < 2) { walk_id = 2; search_id = 1; } } } function SeekWay() { if (search_id == 1) { i = 40; while (i < 120) { stepx_f11 = step * Math.sin((r16 - i) * 0.0174532925199433); stepy_f11 = -step * Math.cos((r16 - i) * 0.0174532925199433); stepx_f12 = step * Math.sin((r16 + i) * 0.0174532925199433); stepy_f12 = -step * Math.cos((r16 + i) * 0.0174532925199433); a_f11 = int((_y + stepy_f11 * f1_num) / 30); b_f11 = int((_x + stepx_f11 * f1_num) / 30); e_f11 = mapdate[a_f11][b_f11]; a_f12 = int((_y + stepy_f12 * f1_num) / 30); b_f12 = int((_x + stepx_f12 * f1_num) / 30); e_f12 = mapdate[a_f12][b_f12]; if (e_f11 > 1 && e_f12 < 2) { goy = _y + stepy_f11 * f1_num; gox = _x + stepx_f11 * f1_num; walk_id = 3; break; } else { if (e_f11 < 2 && e_f12 > 1) { goy = _y + stepy_f12 * f1_num; gox = _x + stepx_f12 * f1_num; walk_id = 3; break; } else { if (e_f11 > 1 && e_f12 > 1) { r = 1 + random(2); goy = _y + eval('stepy_f1' + r) * f1_num; gox = _x + eval('stepy_f1' + r) * f1_num; walk_id = 3; break; } else { if (e_f11 < 2 && e_f12 < 2 && i >= 110) { walk_id = 0; break; } } } } i += 10; } } else { if (search_id == 2) { i = 10; while (i <= 50) { stepx_f21 = step * Math.sin((r16 - 90) * 0.0174532925199433); stepy_f21 = -step * Math.cos((r16 - 90) * 0.0174532925199433); stepx_f22 = step * Math.sin((r16 + 90) * 0.0174532925199433); stepy_f22 = -step * Math.cos((r16 + 90) * 0.0174532925199433); a_f21 = int((_y + stepy_f21 * i) / 30); b_f21 = int((_x + stepx_f21 * i) / 30); e_f21 = mapdate[a_f21][b_f21]; f_f21 = mapman[a_f21][b_f21]; a_f22 = int((_y + stepy_f22 * i) / 30); b_f22 = int((_x + stepx_f22 * i) / 30); e_f22 = mapdate[a_f22][b_f22]; f_f22 = mapman[a_f22][b_f22]; if (e_f21 > 1 && e_f22 < 2 || f_f21 == null && f_f22 != null) { goy = _y + stepy_f21 * i; gox = _x + stepx_f21 * i; walk_id = 3; break; } else { if (e_f21 < 2 && e_f22 > 1 || f_f21 != null && f_f22 == null) { goy = _y + stepy_f22 * i; gox = _x + stepx_f22 * i; walk_id = 3; break; } else { if (e_f21 > 1 && e_f22 > 1 || f_f21 == null && f_f22 == null) { var r = 1 + random(2); goy = _y + eval('stepy_f2' + r) * i; gox = _x + eval('stepy_f2' + r) * i; walk_id = 3; break; } else { if ((e_f21 < 2 && e_f22 < 2 || f_f21 != null && f_f22 != null) && i >= 50) { walk_id = 0; break; } } } } i += 10; } } } } function ViewDie() { if (t2 > 30) { var v4 = (nowf1 == 6) ? 0 : 1; var v5 = v4 + 1; var v3 = nowf2; var v6 = 'die1_' + v4 + v3; _root.diemap(v6, v5, v3, _x, _y); swapDepths(100); this.removeMovieClip(); } else { ++t2; } } function HitMap_hide() { r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v2 = r16 * Math.PI / 180; stepx = step * Math.sin(v2); stepy = -step * Math.cos(v2); a = int((_y + stepy) / 30); b = int((_x + stepx) / 30); e = mapdate[a][b]; f = mapman[a][b]; if (e > 1) { if (f == name) { _x = _x + stepx; _y = _y + stepy; } else { if (f == null) { c = int(_y / 30); d = int(_x / 30); _x = _x + stepx; _y = _y + stepy; mapman[c][d] = null; mapman[a][b] = name; } else { if (f > 1 && f < 52000) { ++t1; if (t1 >= 10 + random(15)) { hide_id = 2; search_id = 2; t1 = 0; } } else { if (f >= 52000) { _root.mine_hurt(f, b, a); } } } } } else { hide_id = 2; search_id = 2; } } function SeekWay_hide() { if (search_id == 1) { i = 40; while (i < 120) { stepx_f11 = step * Math.sin((r16 - i) * 0.0174532925199433); stepy_f11 = -step * Math.cos((r16 - i) * 0.0174532925199433); stepx_f12 = step * Math.sin((r16 + i) * 0.0174532925199433); stepy_f12 = -step * Math.cos((r16 + i) * 0.0174532925199433); a_f11 = int((_y + stepy_f11 * f1_num) / 30); b_f11 = int((_x + stepx_f11 * f1_num) / 30); e_f11 = mapdate[a_f11][b_f11]; a_f12 = int((_y + stepy_f12 * f1_num) / 30); b_f12 = int((_x + stepx_f12 * f1_num) / 30); e_f12 = mapdate[a_f12][b_f12]; if (e_f11 > 1 && e_f12 < 2) { goy = _y + stepy_f11 * f1_num; gox = _x + stepx_f11 * f1_num; hide_id = 3; break; } else { if (e_f11 < 2 && e_f12 > 1) { goy = _y + stepy_f12 * f1_num; gox = _x + stepx_f12 * f1_num; hide_id = 3; break; } else { if (e_f11 > 1 && e_f12 > 1) { r = 1 + random(2); goy = _y + eval('stepy_f1' + r) * f1_num; gox = _x + eval('stepy_f1' + r) * f1_num; hide_id = 3; break; } else { if (e_f11 < 2 && e_f12 < 2 && i >= 110) { hide_id = 0; break; } } } } i += 10; } } else { if (search_id == 2) { i = 10; while (i <= 50) { stepx_f21 = step * Math.sin((r16 - 90) * 0.0174532925199433); stepy_f21 = -step * Math.cos((r16 - 90) * 0.0174532925199433); stepx_f22 = step * Math.sin((r16 + 90) * 0.0174532925199433); stepy_f22 = -step * Math.cos((r16 + 90) * 0.0174532925199433); a_f21 = int((_y + stepy_f21 * i) / 30); b_f21 = int((_x + stepx_f21 * i) / 30); e_f21 = mapdate[a_f21][b_f21]; f_f21 = mapman[a_f21][b_f21]; a_f22 = int((_y + stepy_f22 * i) / 30); b_f22 = int((_x + stepx_f22 * i) / 30); e_f22 = mapdate[a_f22][b_f22]; f_f22 = mapman[a_f22][b_f22]; if (e_f21 > 1 && e_f22 < 2 || f_f21 == null && f_f22 != null) { goy = _y + stepy_f21 * i; gox = _x + stepx_f21 * i; hide_id = 3; break; } else { if (e_f21 < 2 && e_f22 > 1 || f_f21 != null && f_f22 == null) { goy = _y + stepy_f22 * i; gox = _x + stepx_f22 * i; hide_id = 3; break; } else { if (e_f21 > 1 && e_f22 > 1 || f_f21 == null && f_f22 == null) { var r = 1 + random(2); goy = _y + eval('stepy_f2' + r) * i; gox = _x + eval('stepy_f2' + r) * i; hide_id = 3; break; } else { if ((e_f21 < 2 && e_f22 < 2 || f_f21 != null && f_f22 != null) && i >= 50) { hide_id = 0; break; } } } } i += 10; } } } } function CheckJL_hide() { if (jl > 600) { var v2 = int((_y + stepy * f1_num) / 30); var v3 = int((_x + stepx * f1_num) / 30); var v1 = mapdate[v2][v3]; if (v1 < 2) { hide_id = 2; search_id = 1; } } } function CheckHide() { if (jl > 550) { walk_id = 8; gotoAndStop(8); nowf1 = 8; hide_id = 0; } } function CheckShow() { if (jl < 450) { walk_id = 0; gotoAndStop(2); nowf1 = 2; bug.gotoAndStop(1 + random(8)); hide_id = 0; } } var step = _root.step_arr[1] + random(21) / 10; var stepx = 0; var stepy = 0; var jl = 0; var jx = 0; var jy = 0; var r16 = 0; var gox = 0; var goy = 0; var life = 20; var damage = 7; var walk_id = 0; var search_id = 0; var f1_num = 40; var hide_id = 0; var t1 = 0; var t2 = 0; var t3 = 0; var mapdate = _root.mapdate; var mapman = _root.mapman; var name = _name; name = name.substring(3); name = Number(name); var nowf1 = 2; var nowf2 = 1; onEnterFrame = function () { if (walk_id < 9) { nowf1 = _currentframe; nowf2 = bug._currentframe; CheckLife(); if (walk_id == 0) { CountJL(_parent._parent.playx, _parent._parent.playy); CheckVary(); haul(); ViewVary(); HitMap(); CheckJL(); CheckHide(); } else { if (walk_id == 2) { SeekWay(); } else { if (walk_id == 3) { CountJL(gox, goy); if (jl >= step) { haul(); ViewVary(); HitMap(); } if (jl < step * 2) { walk_id = 0; search_id = 0; t1 = 0; } } else { if (walk_id == 8) { if (hide_id == 0) { CountJL(_parent._parent.playx, _parent._parent.playy); HitMap_hide(); CheckJL_hide(); CheckShow(); } else { if (hide_id == 2) { SeekWay_hide(); } else { if (hide_id == 3) { CountJL(gox, goy); if (jl >= step) { HitMap_hide(); } if (jl < step * 2) { hide_id = 0; search_id = 0; t1 = 0; } } } } } } } } } else { if (walk_id == 9) { ViewDie(); } } swapDepths(1000000 + _y * 10000 + _x * 100 + 3); }; } frame 2 { stop(); } } movieClip 4611 { } movieClip 4614 { } movieClip 4617 { } movieClip 4620 { } movieClip 4623 { } movieClip 4626 { } movieClip 4629 { } movieClip 4632 { } movieClip 4633 { frame 1 { stop(); } } movieClip 4652 { } movieClip 4671 { } movieClip 4690 { } movieClip 4709 { } movieClip 4728 { } movieClip 4747 { } movieClip 4766 { } movieClip 4785 { } movieClip 4786 { frame 1 { stop(); } } movieClip 4807 { } movieClip 4828 { } movieClip 4849 { } movieClip 4870 { } movieClip 4891 { } movieClip 4912 { } movieClip 4933 { } movieClip 4954 { } movieClip 4955 { frame 1 { stop(); } } movieClip 4968 { } movieClip 4981 { } movieClip 4994 { } movieClip 5007 { } movieClip 5020 { } movieClip 5033 { } movieClip 5046 { } movieClip 5059 { } movieClip 5060 { frame 1 { stop(); } } movieClip 5076 { frame 30 { stop(); } } movieClip 5113 { frame 36 { stop(); } } movieClip 5129 { frame 30 { stop(); } } movieClip 5145 { frame 30 { stop(); } } movieClip 5161 { frame 30 { stop(); } } movieClip 5177 { frame 30 { stop(); } } movieClip 5193 { frame 30 { stop(); } } movieClip 5209 { frame 30 { stop(); } } movieClip 5225 { frame 30 { stop(); } } movieClip 5226 { frame 1 { stop(); } } movieClip 5240 { frame 58 { stop(); } } movieClip 5254 { frame 58 { stop(); } } movieClip 5268 { frame 58 { stop(); } } movieClip 5282 { frame 58 { stop(); } } movieClip 5296 { frame 58 { stop(); } } movieClip 5310 { frame 58 { stop(); } } movieClip 5324 { frame 58 { stop(); } } movieClip 5338 { frame 58 { stop(); } } movieClip 5339 { frame 1 { stop(); } } movieClip 5340 bug12 { frame 1 { function CheckLife() { if (life <= 0) { if (nowf1 == 2 || nowf1 == 4) { gotoAndStop(6); nowf1 = 6; bug.gotoAndStop(nowf2); } else { gotoAndStop(7); nowf1 = 7; bug.gotoAndStop(nowf2); } walk_id = 9; _root.diesay(2, _x, _y); t2 = 0; _root.sn_die11.stop('sn_die11'); _root.sn_die11.start(); } } function CountJL(x, y) { jx = _x - x; jy = _y - y; jl = Math.sqrt(jx * jx + jy * jy); } function CheckVary() { if (jl < 150 && nowf1 == 2) { gotoAndStop(3); nowf1 = 3; bug.gotoAndStop(nowf2); step = step * 3 / 5; t2 = 0; } else { if (jl > 300 && nowf1 == 5) { gotoAndStop(4); nowf1 = 4; bug.gotoAndStop(nowf2); step = step * 5 / 3; t2 = 0; } } } function ViewVary() { if (nowf1 == 3 || nowf1 == 4) { ++t2; bug.bug.gotoAndStop(t2); if (t2 >= 40) { t2 = 0; nowf2 = bug._currentframe; if (nowf1 == 3) { gotoAndStop(5); nowf1 = 5; } else { if (nowf1 == 4) { gotoAndStop(2); nowf1 = 2; } } bug.gotoAndStop(nowf2); } } } function haul() { r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v1 = int((r16 + 202.5) / 45) + 1; if (v1 == 9) { v1 = 1; } bug.gotoAndStop(v1); } function HitMap() { var v2 = r16 * Math.PI / 180; stepx = step * Math.sin(v2); stepy = -step * Math.cos(v2); a = int((_y + stepy) / 30); b = int((_x + stepx) / 30); e = mapdate[a][b]; f = mapman[a][b]; if (e > 1) { if (f == name) { _x = _x + stepx; _y = _y + stepy; } else { if (f == null) { c = int(_y / 30); d = int(_x / 30); _x = _x + stepx; _y = _y + stepy; mapman[c][d] = null; mapman[a][b] = name; } else { if (f > 1 && f < 52000) { ++t1; if (t1 >= 10 + random(15)) { walk_id = 2; search_id = 2; t1 = 0; } } else { if (f == 1) { ++t3; if (t3 >= 10) { t3 = 0; _root.hurt(damage); _root.sn_e11.start(); } } else { if (f >= 52000) { _root.mine_hurt(f, b, a); } } } } } } else { walk_id = 2; search_id = 2; } } function CheckJL() { if (jl > 300) { var v2 = int((_y + stepy * f1_num) / 30); var v3 = int((_x + stepx * f1_num) / 30); var v1 = mapdate[v2][v3]; if (v1 < 2) { walk_id = 2; search_id = 1; } } } function SeekWay() { if (search_id == 1) { i = 40; while (i < 120) { stepx_f11 = step * Math.sin((r16 - i) * 0.0174532925199433); stepy_f11 = -step * Math.cos((r16 - i) * 0.0174532925199433); stepx_f12 = step * Math.sin((r16 + i) * 0.0174532925199433); stepy_f12 = -step * Math.cos((r16 + i) * 0.0174532925199433); a_f11 = int((_y + stepy_f11 * f1_num) / 30); b_f11 = int((_x + stepx_f11 * f1_num) / 30); e_f11 = mapdate[a_f11][b_f11]; a_f12 = int((_y + stepy_f12 * f1_num) / 30); b_f12 = int((_x + stepx_f12 * f1_num) / 30); e_f12 = mapdate[a_f12][b_f12]; if (e_f11 > 1 && e_f12 < 2) { goy = _y + stepy_f11 * f1_num; gox = _x + stepx_f11 * f1_num; walk_id = 3; break; } else { if (e_f11 < 2 && e_f12 > 1) { goy = _y + stepy_f12 * f1_num; gox = _x + stepx_f12 * f1_num; walk_id = 3; break; } else { if (e_f11 > 1 && e_f12 > 1) { r = 1 + random(2); goy = _y + eval('stepy_f1' + r) * f1_num; gox = _x + eval('stepy_f1' + r) * f1_num; walk_id = 3; break; } else { if (e_f11 < 2 && e_f12 < 2 && i >= 110) { walk_id = 0; break; } } } } i += 10; } } else { if (search_id == 2) { i = 10; while (i <= 50) { stepx_f21 = step * Math.sin((r16 - 90) * 0.0174532925199433); stepy_f21 = -step * Math.cos((r16 - 90) * 0.0174532925199433); stepx_f22 = step * Math.sin((r16 + 90) * 0.0174532925199433); stepy_f22 = -step * Math.cos((r16 + 90) * 0.0174532925199433); a_f21 = int((_y + stepy_f21 * i) / 30); b_f21 = int((_x + stepx_f21 * i) / 30); e_f21 = mapdate[a_f21][b_f21]; f_f21 = mapman[a_f21][b_f21]; a_f22 = int((_y + stepy_f22 * i) / 30); b_f22 = int((_x + stepx_f22 * i) / 30); e_f22 = mapdate[a_f22][b_f22]; f_f22 = mapman[a_f22][b_f22]; if (e_f21 > 1 && e_f22 < 2 || f_f21 == null && f_f22 != null) { goy = _y + stepy_f21 * i; gox = _x + stepx_f21 * i; walk_id = 3; break; } else { if (e_f21 < 2 && e_f22 > 1 || f_f21 != null && f_f22 == null) { goy = _y + stepy_f22 * i; gox = _x + stepx_f22 * i; walk_id = 3; break; } else { if (e_f21 > 1 && e_f22 > 1 || f_f21 == null && f_f22 == null) { var r = 1 + random(2); goy = _y + eval('stepy_f2' + r) * i; gox = _x + eval('stepy_f2' + r) * i; walk_id = 3; break; } else { if ((e_f21 < 2 && e_f22 < 2 || f_f21 != null && f_f22 != null) && i >= 50) { walk_id = 0; break; } } } } i += 10; } } } } function ViewDie() { if (t2 > 60) { var v4 = (nowf1 == 6) ? 0 : 1; var v5 = v4 + 3; var v3 = nowf2; var v6 = 'die2_' + v4 + v3; _root.diemap(v6, v5, v3, _x, _y); swapDepths(100); this.removeMovieClip(); } else { ++t2; } } function HitMap_hide() { r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v2 = r16 * Math.PI / 180; stepx = step * Math.sin(v2); stepy = -step * Math.cos(v2); a = int((_y + stepy) / 30); b = int((_x + stepx) / 30); e = mapdate[a][b]; f = mapman[a][b]; if (e > 1) { if (f == name) { _x = _x + stepx; _y = _y + stepy; } else { if (f == null) { c = int(_y / 30); d = int(_x / 30); _x = _x + stepx; _y = _y + stepy; mapman[c][d] = null; mapman[a][b] = name; } else { if (f > 1 && f < 52000) { ++t1; if (t1 >= 10 + random(15)) { hide_id = 2; search_id = 2; t1 = 0; } } else { if (f >= 52000) { _root.mine_hurt(f, b, a); } } } } } else { hide_id = 2; search_id = 2; } } function SeekWay_hide() { if (search_id == 1) { i = 40; while (i < 120) { stepx_f11 = step * Math.sin((r16 - i) * 0.0174532925199433); stepy_f11 = -step * Math.cos((r16 - i) * 0.0174532925199433); stepx_f12 = step * Math.sin((r16 + i) * 0.0174532925199433); stepy_f12 = -step * Math.cos((r16 + i) * 0.0174532925199433); a_f11 = int((_y + stepy_f11 * f1_num) / 30); b_f11 = int((_x + stepx_f11 * f1_num) / 30); e_f11 = mapdate[a_f11][b_f11]; a_f12 = int((_y + stepy_f12 * f1_num) / 30); b_f12 = int((_x + stepx_f12 * f1_num) / 30); e_f12 = mapdate[a_f12][b_f12]; if (e_f11 > 1 && e_f12 < 2) { goy = _y + stepy_f11 * f1_num; gox = _x + stepx_f11 * f1_num; hide_id = 3; break; } else { if (e_f11 < 2 && e_f12 > 1) { goy = _y + stepy_f12 * f1_num; gox = _x + stepx_f12 * f1_num; hide_id = 3; break; } else { if (e_f11 > 1 && e_f12 > 1) { r = 1 + random(2); goy = _y + eval('stepy_f1' + r) * f1_num; gox = _x + eval('stepy_f1' + r) * f1_num; hide_id = 3; break; } else { if (e_f11 < 2 && e_f12 < 2 && i >= 110) { hide_id = 0; break; } } } } i += 10; } } else { if (search_id == 2) { i = 10; while (i <= 50) { stepx_f21 = step * Math.sin((r16 - 90) * 0.0174532925199433); stepy_f21 = -step * Math.cos((r16 - 90) * 0.0174532925199433); stepx_f22 = step * Math.sin((r16 + 90) * 0.0174532925199433); stepy_f22 = -step * Math.cos((r16 + 90) * 0.0174532925199433); a_f21 = int((_y + stepy_f21 * i) / 30); b_f21 = int((_x + stepx_f21 * i) / 30); e_f21 = mapdate[a_f21][b_f21]; f_f21 = mapman[a_f21][b_f21]; a_f22 = int((_y + stepy_f22 * i) / 30); b_f22 = int((_x + stepx_f22 * i) / 30); e_f22 = mapdate[a_f22][b_f22]; f_f22 = mapman[a_f22][b_f22]; if (e_f21 > 1 && e_f22 < 2 || f_f21 == null && f_f22 != null) { goy = _y + stepy_f21 * i; gox = _x + stepx_f21 * i; hide_id = 3; break; } else { if (e_f21 < 2 && e_f22 > 1 || f_f21 != null && f_f22 == null) { goy = _y + stepy_f22 * i; gox = _x + stepx_f22 * i; hide_id = 3; break; } else { if (e_f21 > 1 && e_f22 > 1 || f_f21 == null && f_f22 == null) { var r = 1 + random(2); goy = _y + eval('stepy_f2' + r) * i; gox = _x + eval('stepy_f2' + r) * i; hide_id = 3; break; } else { if ((e_f21 < 2 && e_f22 < 2 || f_f21 != null && f_f22 != null) && i >= 50) { hide_id = 0; break; } } } } i += 10; } } } } function CheckJL_hide() { if (jl > 600) { var v2 = int((_y + stepy * f1_num) / 30); var v3 = int((_x + stepx * f1_num) / 30); var v1 = mapdate[v2][v3]; if (v1 < 2) { hide_id = 2; search_id = 1; } } } function CheckHide() { if (jl > 550) { walk_id = 8; gotoAndStop(8); nowf1 = 8; hide_id = 0; } } function CheckShow() { if (jl < 450) { walk_id = 0; gotoAndStop(2); nowf1 = 2; bug.gotoAndStop(1 + random(8)); hide_id = 0; } } var step = _root.step_arr[2] + random(21) / 10; var stepx = 0; var stepy = 0; var jl = 0; var jx = 0; var jy = 0; var r16 = 0; var gox = 0; var goy = 0; var life = 80; var damage = 20; var walk_id = 0; var search_id = 0; var f1_num = 40; var hide_id = 0; var t1 = 0; var t2 = 0; var t3 = 0; var mapdate = _root.mapdate; var mapman = _root.mapman; var name = _name; name = name.substring(3); name = Number(name); var nowf1 = 2; var nowf2 = 1; onEnterFrame = function () { if (walk_id < 9) { nowf1 = _currentframe; nowf2 = bug._currentframe; CheckLife(); if (walk_id == 0) { CountJL(_parent._parent.playx, _parent._parent.playy); CheckVary(); haul(); ViewVary(); HitMap(); CheckJL(); CheckHide(); } else { if (walk_id == 2) { SeekWay(); } else { if (walk_id == 3) { CountJL(gox, goy); if (jl >= step) { haul(); ViewVary(); HitMap(); } if (jl < step * 2) { walk_id = 0; search_id = 0; t1 = 0; } } else { if (walk_id == 8) { if (hide_id == 0) { CountJL(_parent._parent.playx, _parent._parent.playy); HitMap_hide(); CheckJL_hide(); CheckShow(); } else { if (hide_id == 2) { SeekWay_hide(); } else { if (hide_id == 3) { CountJL(gox, goy); if (jl >= step) { HitMap_hide(); } if (jl < step * 2) { hide_id = 0; search_id = 0; t1 = 0; } } } } } } } } } else { if (walk_id == 9) { ViewDie(); } } swapDepths(1000000 + _y * 10000 + _x * 100 + 3); }; } frame 2 { stop(); } } movieClip 5361 { } movieClip 5382 { } movieClip 5403 { } movieClip 5424 { } movieClip 5445 { } movieClip 5466 { } movieClip 5487 { } movieClip 5508 { } movieClip 5509 { frame 1 { stop(); } } movieClip 5532 { frame 58 { stop(); } } movieClip 5555 { frame 58 { stop(); } } movieClip 5578 { frame 58 { stop(); } } movieClip 5601 { frame 58 { stop(); } } movieClip 5624 { frame 58 { stop(); } } movieClip 5647 { frame 58 { stop(); } } movieClip 5670 { frame 57 { stop(); } } movieClip 5693 { frame 57 { stop(); } } movieClip 5694 { frame 1 { stop(); } } movieClip 5710 { frame 63 { stop(); } } movieClip 5711 { frame 48 { stop(); } } movieClip 5727 { frame 63 { stop(); } } movieClip 5743 { frame 63 { stop(); } } movieClip 5759 { frame 63 { stop(); } } movieClip 5775 { frame 63 { stop(); } } movieClip 5791 { frame 63 { stop(); } } movieClip 5807 { frame 63 { stop(); } } movieClip 5823 { frame 63 { stop(); } } movieClip 5824 { frame 1 { stop(); } } movieClip 5825 bug13 { frame 1 { function CheckLife() { if (life <= 0 && nowf1 == 2) { nowf2 = bug._currentframe; gotoAndStop(4); bug.gotoAndStop(nowf2); walk_id = 9; _root.diesay(3, _x, _y); t2 = 0; _parent._parent.sn_die17.start(); } } function CountJL(x, y) { jx = _x - x; jy = _y - y; jl = Math.sqrt(jx * jx + jy * jy); } function CheckAttack() { if (jl <= 55) { walk_id = 1; gotoAndStop(3); nowf1 = 3; t3 = 0; } } function haul() { r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v1 = int((r16 + 202.5) / 45) + 1; if (v1 == 9) { v1 = 1; } bug.gotoAndStop(v1); } function HitMap() { var v2 = r16 * Math.PI / 180; stepx = step * Math.sin(v2); stepy = -step * Math.cos(v2); a = int((_y + stepy) / 30); b = int((_x + stepx) / 30); e = mapdate[a][b]; f = mapman[a][b]; if (e > 1) { if (f == name) { _x = _x + stepx; _y = _y + stepy; } else { if (f == null) { c = int(_y / 30); d = int(_x / 30); _x = _x + stepx; _y = _y + stepy; mapman[c][d] = null; mapman[a][b] = name; } else { if (f > 1 && f < 52000) { ++t1; if (t1 >= 10 + random(15)) { walk_id = 2; search_id = 2; t1 = 0; } } else { if (f == 1) { walk_id = 1; gotoAndStop(3); nowf1 = 3; } else { if (f >= 52000) { _root.mine_hurt(f, b, a); } } } } } } else { walk_id = 2; search_id = 2; } } function CheckJL() { if (jl > 300) { var v2 = int((_y + stepy * f1_num) / 30); var v3 = int((_x + stepx * f1_num) / 30); var v1 = mapdate[v2][v3]; if (v1 < 2) { walk_id = 2; search_id = 1; } } } function ViewAttack() { jx = _x - _parent._parent.playx; jy = _y - _parent._parent.playy; haul(); ++t3; bug.bug.gotoAndStop(t3); if (t3 == 15) { _parent._parent.sn_e13.start(); } else { if (t3 == 25) { jl = Math.sqrt(jx * jx + jy * jy); if (jl <= 70) { _root.hurt(damage); } } else { if (t3 >= 55) { t3 = 0; nowf2 = bug._currentframe; gotoAndStop(2); nowf1 = 2; bug.gotoAndStop(nowf2); walk_id = 0; } } } } function SeekWay() { if (search_id == 1) { i = 40; while (i < 120) { stepx_f11 = step * Math.sin((r16 - i) * 0.0174532925199433); stepy_f11 = -step * Math.cos((r16 - i) * 0.0174532925199433); stepx_f12 = step * Math.sin((r16 + i) * 0.0174532925199433); stepy_f12 = -step * Math.cos((r16 + i) * 0.0174532925199433); a_f11 = int((_y + stepy_f11 * f1_num) / 30); b_f11 = int((_x + stepx_f11 * f1_num) / 30); e_f11 = mapdate[a_f11][b_f11]; a_f12 = int((_y + stepy_f12 * f1_num) / 30); b_f12 = int((_x + stepx_f12 * f1_num) / 30); e_f12 = mapdate[a_f12][b_f12]; if (e_f11 > 1 && e_f12 < 2) { goy = _y + stepy_f11 * f1_num; gox = _x + stepx_f11 * f1_num; walk_id = 3; break; } else { if (e_f11 < 2 && e_f12 > 1) { goy = _y + stepy_f12 * f1_num; gox = _x + stepx_f12 * f1_num; walk_id = 3; break; } else { if (e_f11 > 1 && e_f12 > 1) { r = 1 + random(2); goy = _y + eval('stepy_f1' + r) * f1_num; gox = _x + eval('stepy_f1' + r) * f1_num; walk_id = 3; break; } else { if (e_f11 < 2 && e_f12 < 2 && i >= 110) { walk_id = 0; break; } } } } i += 10; } } else { if (search_id == 2) { i = 10; while (i <= 50) { stepx_f21 = step * Math.sin((r16 - 90) * 0.0174532925199433); stepy_f21 = -step * Math.cos((r16 - 90) * 0.0174532925199433); stepx_f22 = step * Math.sin((r16 + 90) * 0.0174532925199433); stepy_f22 = -step * Math.cos((r16 + 90) * 0.0174532925199433); a_f21 = int((_y + stepy_f21 * i) / 30); b_f21 = int((_x + stepx_f21 * i) / 30); e_f21 = mapdate[a_f21][b_f21]; f_f21 = mapman[a_f21][b_f21]; a_f22 = int((_y + stepy_f22 * i) / 30); b_f22 = int((_x + stepx_f22 * i) / 30); e_f22 = mapdate[a_f22][b_f22]; f_f22 = mapman[a_f22][b_f22]; if (e_f21 > 1 && e_f22 < 2 || f_f21 == null && f_f22 != null) { goy = _y + stepy_f21 * i; gox = _x + stepx_f21 * i; walk_id = 3; break; } else { if (e_f21 < 2 && e_f22 > 1 || f_f21 != null && f_f22 == null) { goy = _y + stepy_f22 * i; gox = _x + stepx_f22 * i; walk_id = 3; break; } else { if (e_f21 > 1 && e_f22 > 1 || f_f21 == null && f_f22 == null) { var r = 1 + random(2); goy = _y + eval('stepy_f2' + r) * i; gox = _x + eval('stepy_f2' + r) * i; walk_id = 3; break; } else { if ((e_f21 < 2 && e_f22 < 2 || f_f21 != null && f_f22 != null) && i >= 50) { walk_id = 0; break; } } } } i += 10; } } } } function ViewDie() { if (t2 > 70) { var v4 = 5; var v3 = nowf2; var v5 = 'die3_0' + v3; _root.diemap(v5, v4, v3, _x, _y); swapDepths(100); this.removeMovieClip(); } else { ++t2; } } function HitMap_hide() { r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v2 = r16 * Math.PI / 180; stepx = step * Math.sin(v2); stepy = -step * Math.cos(v2); a = int((_y + stepy) / 30); b = int((_x + stepx) / 30); e = mapdate[a][b]; f = mapman[a][b]; if (e > 1) { if (f == name) { _x = _x + stepx; _y = _y + stepy; } else { if (f == null) { c = int(_y / 30); d = int(_x / 30); _x = _x + stepx; _y = _y + stepy; mapman[c][d] = null; mapman[a][b] = name; } else { if (f > 1 && f < 52000) { ++t1; if (t1 >= 10 + random(15)) { hide_id = 2; search_id = 2; t1 = 0; } } else { if (f >= 52000) { _root.mine_hurt(f, b, a); } } } } } else { hide_id = 2; search_id = 2; } } function SeekWay_hide() { if (search_id == 1) { i = 40; while (i < 120) { stepx_f11 = step * Math.sin((r16 - i) * 0.0174532925199433); stepy_f11 = -step * Math.cos((r16 - i) * 0.0174532925199433); stepx_f12 = step * Math.sin((r16 + i) * 0.0174532925199433); stepy_f12 = -step * Math.cos((r16 + i) * 0.0174532925199433); a_f11 = int((_y + stepy_f11 * f1_num) / 30); b_f11 = int((_x + stepx_f11 * f1_num) / 30); e_f11 = mapdate[a_f11][b_f11]; a_f12 = int((_y + stepy_f12 * f1_num) / 30); b_f12 = int((_x + stepx_f12 * f1_num) / 30); e_f12 = mapdate[a_f12][b_f12]; if (e_f11 > 1 && e_f12 < 2) { goy = _y + stepy_f11 * f1_num; gox = _x + stepx_f11 * f1_num; hide_id = 3; break; } else { if (e_f11 < 2 && e_f12 > 1) { goy = _y + stepy_f12 * f1_num; gox = _x + stepx_f12 * f1_num; hide_id = 3; break; } else { if (e_f11 > 1 && e_f12 > 1) { r = 1 + random(2); goy = _y + eval('stepy_f1' + r) * f1_num; gox = _x + eval('stepy_f1' + r) * f1_num; hide_id = 3; break; } else { if (e_f11 < 2 && e_f12 < 2 && i >= 110) { hide_id = 0; break; } } } } i += 10; } } else { if (search_id == 2) { i = 10; while (i <= 50) { stepx_f21 = step * Math.sin((r16 - 90) * 0.0174532925199433); stepy_f21 = -step * Math.cos((r16 - 90) * 0.0174532925199433); stepx_f22 = step * Math.sin((r16 + 90) * 0.0174532925199433); stepy_f22 = -step * Math.cos((r16 + 90) * 0.0174532925199433); a_f21 = int((_y + stepy_f21 * i) / 30); b_f21 = int((_x + stepx_f21 * i) / 30); e_f21 = mapdate[a_f21][b_f21]; f_f21 = mapman[a_f21][b_f21]; a_f22 = int((_y + stepy_f22 * i) / 30); b_f22 = int((_x + stepx_f22 * i) / 30); e_f22 = mapdate[a_f22][b_f22]; f_f22 = mapman[a_f22][b_f22]; if (e_f21 > 1 && e_f22 < 2 || f_f21 == null && f_f22 != null) { goy = _y + stepy_f21 * i; gox = _x + stepx_f21 * i; hide_id = 3; break; } else { if (e_f21 < 2 && e_f22 > 1 || f_f21 != null && f_f22 == null) { goy = _y + stepy_f22 * i; gox = _x + stepx_f22 * i; hide_id = 3; break; } else { if (e_f21 > 1 && e_f22 > 1 || f_f21 == null && f_f22 == null) { var r = 1 + random(2); goy = _y + eval('stepy_f2' + r) * i; gox = _x + eval('stepy_f2' + r) * i; hide_id = 3; break; } else { if ((e_f21 < 2 && e_f22 < 2 || f_f21 != null && f_f22 != null) && i >= 50) { hide_id = 0; break; } } } } i += 10; } } } } function CheckJL_hide() { if (jl > 600) { var v2 = int((_y + stepy * f1_num) / 30); var v3 = int((_x + stepx * f1_num) / 30); var v1 = mapdate[v2][v3]; if (v1 < 2) { hide_id = 2; search_id = 1; } } } function CheckHide() { if (jl > 550) { walk_id = 8; gotoAndStop(8); nowf1 = 8; hide_id = 0; } } function CheckShow() { if (jl < 450) { walk_id = 0; gotoAndStop(2); nowf1 = 2; bug.gotoAndStop(1 + random(8)); hide_id = 0; } } var step = _root.step_arr[3] + random(21) / 10; var stepx = 0; var stepy = 0; var jl = 0; var jx = 0; var jy = 0; var r16 = 0; var gox = 0; var goy = 0; var life = 500; var damage = 60; var walk_id = 0; var search_id = 0; var f1_num = 40; var hide_id = 0; var t1 = 0; var t2 = 0; var t3 = 0; var mapdate = _root.mapdate; var mapman = _root.mapman; var name = _name; name = name.substring(3); name = Number(name); var nowf1 = 2; var nowf2 = 1; onEnterFrame = function () { if (walk_id < 9) { nowf1 = _currentframe; CheckLife(); if (walk_id == 0) { CountJL(_parent._parent.playx, _parent._parent.playy); haul(); HitMap(); CheckJL(); CheckAttack(); CheckHide(); } else { if (walk_id == 1) { ViewAttack(); } else { if (walk_id == 2) { SeekWay(); } else { if (walk_id == 3) { CountJL(gox, goy); if (jl >= step) { haul(); ViewVary(); HitMap(); } if (jl < step * 2) { walk_id = 0; search_id = 0; t1 = 0; } } else { if (walk_id == 8) { if (hide_id == 0) { CountJL(_parent._parent.playx, _parent._parent.playy); HitMap_hide(); CheckJL_hide(); CheckShow(); } else { if (hide_id == 2) { SeekWay_hide(); } else { if (hide_id == 3) { CountJL(gox, goy); if (jl >= step) { HitMap_hide(); } if (jl < step * 2) { hide_id = 0; search_id = 0; t1 = 0; } } } } } } } } } } else { if (walk_id == 9) { ViewDie(); } } swapDepths(1000000 + _y * 10000 + _x * 100 + 4); }; } frame 2 { stop(); } } movieClip 5842 { frame 1 { stop(); } } movieClip 5859 { } movieClip 5876 { } movieClip 5893 { } movieClip 5910 { } movieClip 5927 { } movieClip 5944 { } movieClip 5961 { } movieClip 5978 { } movieClip 5979 { frame 1 { stop(); } } movieClip 5982 { } movieClip 5987 { } movieClip 5990 { } movieClip 5995 { } movieClip 5998 { } movieClip 6003 { } movieClip 6006 { } movieClip 6011 { } movieClip 6014 { } movieClip 6019 { } movieClip 6022 { } movieClip 6027 { } movieClip 6030 { } movieClip 6035 { } movieClip 6038 { } movieClip 6043 { } movieClip 6044 { frame 1 { stop(); } } movieClip 6049 { } movieClip 6052 { } movieClip 6057 { } movieClip 6062 { } movieClip 6067 { } movieClip 6072 { } movieClip 6077 { } movieClip 6082 { } movieClip 6087 { } movieClip 6088 { frame 1 { stop(); } } movieClip 6113 { frame 62 { stop(); } } movieClip 6114 { frame 1 { stop(); } } movieClip 6115 bug15 { frame 1 { function CheckLife() { if (life <= 0) { nowf2 = bug._currentframe; gotoAndStop(6); bug.gotoAndStop(nowf2); walk_id = 9; _root.diesay(4, _x, _y); t2 = 0; _root.sn_die11.stop('sn_die11'); _root.sn_die11.start(); } } function CountJL(a, b) { jx = _x - a; jy = _y - b; jl = Math.sqrt(jx * jx + jy * jy); } function CheckAttack() { if (jl <= 200 + random(100)) { walk_id = 1; nowf2 = bug._currentframe; gotoAndStop(5); nowf1 = 5; bug.gotoAndStop(nowf2); t3 = 0; aimx = _parent._parent.playx; aimy = _parent._parent.playy; } } function haul() { r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v1 = int((r16 + 202.5) / 45) + 1; if (v1 == 9) { v1 = 1; } bug.gotoAndStop(v1); } function HitMap() { var v2 = r16 * Math.PI / 180; stepx = step * Math.sin(v2); stepy = -step * Math.cos(v2); a = int((_y + stepy) / 30); b = int((_x + stepx) / 30); e = mapdate[a][b]; f = mapman[a][b]; if (e > 0) { if (f == name) { _x = _x + stepx; _y = _y + stepy; } else { if (f == null) { c = int(_y / 30); d = int(_x / 30); _x = _x + stepx; _y = _y + stepy; mapman[c][d] = null; mapman[a][b] = name; } else { if (f > 1 && f < 52000) { ++t1; if (t1 >= 10 + random(15)) { walk_id = 2; search_id = 2; t1 = 0; } } else { if (f >= 52000) { _root.mine_hurt(f, b, a); } } } } } else { walk_id = 2; search_id = 2; } } function CheckJL() { if (jl > 300) { var v2 = int((_y + stepy * f1_num) / 30); var v3 = int((_x + stepx * f1_num) / 30); var v1 = mapdate[v2][v3]; if (v1 == 0) { walk_id = 2; search_id = 1; } } } function ViewAttack() { ++t3; if (t3 == 5) { _parent._parent.sn_e15.start(); } if (t3 == 9) { ++_root.item_num; var v3 = _parent.attachMovie('boom_bug4', 'boom_bug4' + _root.item_num, 200 + random(100)); aimx += (random(2) == 1) ? random(15) : -random(15); aimy += (random(2) == 1) ? random(15) : -random(15); v3._x = aimx; v3._y = aimy; v3.swapDepths(1000000 + v3._y * 10000 + v3._x * 100 + 97); if (_root.item_num > 9900) { _root.item_num = 1000; } } else { if (t3 == 14) { jx = aimx - _parent._parent.playx; jy = aimy - _parent._parent.playy; jl = Math.sqrt(jx * jx + jy * jy); if (jl < 30) { _root.hurt(damage); } } else { if (t3 >= 15) { t3 = 0; nowf2 = bug._currentframe; gotoAndStop(4); nowf1 = 4; bug.gotoAndStop(nowf2); walk_id = 0; } } } } function SeekWay() { if (search_id == 1) { i = 40; while (i < 120) { stepx_f11 = step * Math.sin((r16 - i) * 0.0174532925199433); stepy_f11 = -step * Math.cos((r16 - i) * 0.0174532925199433); stepx_f12 = step * Math.sin((r16 + i) * 0.0174532925199433); stepy_f12 = -step * Math.cos((r16 + i) * 0.0174532925199433); a_f11 = int((_y + stepy_f11 * f1_num) / 30); b_f11 = int((_x + stepx_f11 * f1_num) / 30); e_f11 = mapdate[a_f11][b_f11]; a_f12 = int((_y + stepy_f12 * f1_num) / 30); b_f12 = int((_x + stepx_f12 * f1_num) / 30); e_f12 = mapdate[a_f12][b_f12]; if (e_f11 > 1 && e_f12 < 2) { goy = _y + stepy_f11 * f1_num; gox = _x + stepx_f11 * f1_num; walk_id = 3; break; } else { if (e_f11 < 2 && e_f12 > 1) { goy = _y + stepy_f12 * f1_num; gox = _x + stepx_f12 * f1_num; walk_id = 3; break; } else { if (e_f11 > 1 && e_f12 > 1) { r = 1 + random(2); goy = _y + eval('stepy_f1' + r) * f1_num; gox = _x + eval('stepy_f1' + r) * f1_num; walk_id = 3; break; } else { if (e_f11 < 2 && e_f12 < 2 && i >= 110) { walk_id = 0; break; } } } } i += 10; } } else { if (search_id == 2) { i = 10; while (i <= 50) { stepx_f21 = step * Math.sin((r16 - 90) * 0.0174532925199433); stepy_f21 = -step * Math.cos((r16 - 90) * 0.0174532925199433); stepx_f22 = step * Math.sin((r16 + 90) * 0.0174532925199433); stepy_f22 = -step * Math.cos((r16 + 90) * 0.0174532925199433); a_f21 = int((_y + stepy_f21 * i) / 30); b_f21 = int((_x + stepx_f21 * i) / 30); e_f21 = mapdate[a_f21][b_f21]; f_f21 = mapman[a_f21][b_f21]; a_f22 = int((_y + stepy_f22 * i) / 30); b_f22 = int((_x + stepx_f22 * i) / 30); e_f22 = mapdate[a_f22][b_f22]; f_f22 = mapman[a_f22][b_f22]; if (e_f21 > 1 && e_f22 < 2 || f_f21 == null && f_f22 != null) { goy = _y + stepy_f21 * i; gox = _x + stepx_f21 * i; walk_id = 3; break; } else { if (e_f21 < 2 && e_f22 > 1 || f_f21 != null && f_f22 == null) { goy = _y + stepy_f22 * i; gox = _x + stepx_f22 * i; walk_id = 3; break; } else { if (e_f21 > 1 && e_f22 > 1 || f_f21 == null && f_f22 == null) { var r = 1 + random(2); goy = _y + eval('stepy_f2' + r) * i; gox = _x + eval('stepy_f2' + r) * i; walk_id = 3; break; } else { if ((e_f21 < 2 && e_f22 < 2 || f_f21 != null && f_f22 != null) && i >= 50) { walk_id = 0; break; } } } } i += 10; } } } } function CheckLurk() { CountJL(_parent._parent.playx, _parent._parent.playy); if (init_id == 0 && nowf1 == 2) { bug.gotoAndStop(random(8) + 1); init_id = 1; } if (jl <= 400 && nowf1 == 2) { gotoAndStop(3); nowf1 = 3; t2 = 0; haul(); } if (nowf1 == 3) { ++t2; if (t2 >= 31) { t2 = 0; nowf2 = bug._currentframe; gotoAndStop(4); nowf1 = 4; walk_id = 0; life = lifez; bug.gotoAndStop(nowf2); } } } function ViewDie() { if (t2 > 70) { swapDepths(100); this.removeMovieClip(); } else { ++t2; } } function HitMap_hide() { r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v2 = r16 * Math.PI / 180; stepx = step * Math.sin(v2); stepy = -step * Math.cos(v2); a = int((_y + stepy) / 30); b = int((_x + stepx) / 30); e = mapdate[a][b]; f = mapman[a][b]; if (e > 0) { if (f == name) { _x = _x + stepx; _y = _y + stepy; } else { if (f == null) { c = int(_y / 30); d = int(_x / 30); _x = _x + stepx; _y = _y + stepy; mapman[c][d] = null; mapman[a][b] = name; } else { if (f > 1 && f < 52000) { ++t1; if (t1 >= 10 + random(15)) { hide_id = 2; search_id = 2; t1 = 0; } } else { if (f >= 52000) { _root.mine_hurt(f, b, a); } } } } } else { hide_id = 2; search_id = 2; } } function SeekWay_hide() { if (search_id == 1) { i = 40; while (i < 120) { stepx_f11 = step * Math.sin((r16 - i) * 0.0174532925199433); stepy_f11 = -step * Math.cos((r16 - i) * 0.0174532925199433); stepx_f12 = step * Math.sin((r16 + i) * 0.0174532925199433); stepy_f12 = -step * Math.cos((r16 + i) * 0.0174532925199433); a_f11 = int((_y + stepy_f11 * f1_num) / 30); b_f11 = int((_x + stepx_f11 * f1_num) / 30); e_f11 = mapdate[a_f11][b_f11]; a_f12 = int((_y + stepy_f12 * f1_num) / 30); b_f12 = int((_x + stepx_f12 * f1_num) / 30); e_f12 = mapdate[a_f12][b_f12]; if (e_f11 > 1 && e_f12 < 2) { goy = _y + stepy_f11 * f1_num; gox = _x + stepx_f11 * f1_num; hide_id = 3; break; } else { if (e_f11 < 2 && e_f12 > 1) { goy = _y + stepy_f12 * f1_num; gox = _x + stepx_f12 * f1_num; hide_id = 3; break; } else { if (e_f11 > 1 && e_f12 > 1) { r = 1 + random(2); goy = _y + eval('stepy_f1' + r) * f1_num; gox = _x + eval('stepy_f1' + r) * f1_num; hide_id = 3; break; } else { if (e_f11 < 2 && e_f12 < 2 && i >= 110) { hide_id = 0; break; } } } } i += 10; } } else { if (search_id == 2) { i = 10; while (i <= 50) { stepx_f21 = step * Math.sin((r16 - 90) * 0.0174532925199433); stepy_f21 = -step * Math.cos((r16 - 90) * 0.0174532925199433); stepx_f22 = step * Math.sin((r16 + 90) * 0.0174532925199433); stepy_f22 = -step * Math.cos((r16 + 90) * 0.0174532925199433); a_f21 = int((_y + stepy_f21 * i) / 30); b_f21 = int((_x + stepx_f21 * i) / 30); e_f21 = mapdate[a_f21][b_f21]; f_f21 = mapman[a_f21][b_f21]; a_f22 = int((_y + stepy_f22 * i) / 30); b_f22 = int((_x + stepx_f22 * i) / 30); e_f22 = mapdate[a_f22][b_f22]; f_f22 = mapman[a_f22][b_f22]; if (e_f21 > 1 && e_f22 < 2 || f_f21 == null && f_f22 != null) { goy = _y + stepy_f21 * i; gox = _x + stepx_f21 * i; hide_id = 3; break; } else { if (e_f21 < 2 && e_f22 > 1 || f_f21 != null && f_f22 == null) { goy = _y + stepy_f22 * i; gox = _x + stepx_f22 * i; hide_id = 3; break; } else { if (e_f21 > 1 && e_f22 > 1 || f_f21 == null && f_f22 == null) { var r = 1 + random(2); goy = _y + eval('stepy_f2' + r) * i; gox = _x + eval('stepy_f2' + r) * i; hide_id = 3; break; } else { if ((e_f21 < 2 && e_f22 < 2 || f_f21 != null && f_f22 != null) && i >= 50) { hide_id = 0; break; } } } } i += 10; } } } } function CheckJL_hide() { if (jl > 600) { var v2 = int((_y + stepy * f1_num) / 30); var v3 = int((_x + stepx * f1_num) / 30); var v1 = mapdate[v2][v3]; if (v1 == 0) { hide_id = 2; search_id = 1; } } } function CheckHide() { if (jl > 550) { walk_id = 8; gotoAndStop(8); nowf1 = 8; hide_id = 0; } } function CheckShow() { if (jl < 450) { walk_id = 0; gotoAndStop(4); nowf1 = 4; bug.gotoAndStop(1 + random(8)); hide_id = 0; } } var step = _root.step_arr[4] + random(21) / 10; var stepx = 0; var stepy = 0; var jl = 0; var jx = 0; var jy = 0; var r16 = 0; var init_id = 0; var gox = 0; var goy = 0; var aimx = 0; var aimy = 0; var life = 3000; var lifez = 300; var damage = 30; var walk_id = 4; var search_id = 0; var f1_num = 40; var hide_id = 0; var t1 = 0; var t2 = 0; var t3 = 0; var mapdate = _root.mapdate; var mapman = _root.mapman; var name = _name; name = name.substring(3); name = Number(name); var nowf1 = 2; var nowf2 = 1; onEnterFrame = function () { if (walk_id < 9) { nowf1 = _currentframe; CheckLife(); if (walk_id == 0) { CountJL(_parent._parent.playx, _parent._parent.playy); haul(); HitMap(); CheckJL(); CheckAttack(); CheckHide(); } else { if (walk_id == 1) { ViewAttack(); } else { if (walk_id == 2) { SeekWay(); } else { if (walk_id == 3) { CountJL(gox, goy); if (jl >= step) { haul(); ViewVary(); HitMap(); } if (jl < step * 2) { walk_id = 0; search_id = 0; t1 = 0; } } else { if (walk_id == 4) { CheckLurk(); } else { if (walk_id == 8) { if (hide_id == 0) { CountJL(_parent._parent.playx, _parent._parent.playy); HitMap_hide(); CheckJL_hide(); CheckShow(); } else { if (hide_id == 2) { SeekWay_hide(); } else { if (hide_id == 3) { CountJL(gox, goy); if (jl >= step) { HitMap_hide(); } if (jl < step * 2) { hide_id = 0; search_id = 0; t1 = 0; } } } } } } } } } } } else { if (walk_id == 9) { ViewDie(); } } swapDepths(1000000 + (_y + 100) * 10000 + _x * 100 + 4); }; } frame 2 { stop(); } instance hit of movieClip 271 { } } movieClip 6134 { frame 25 { stop(); } } movieClip 6155 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6178 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6201 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6224 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6247 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6270 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6293 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6316 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6317 { frame 1 { stop(); } } movieClip 6318 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6319 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6320 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6321 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6322 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6323 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6324 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6325 { frame 1 { stop(); } frame 55 { stop(); } } movieClip 6326 { frame 1 { stop(); } } movieClip 6333 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6354 { } movieClip 6355 { frame 1 { stop(); } } movieClip 6360 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6365 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6370 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6375 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6380 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6385 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6390 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6395 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6400 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6405 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6410 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6415 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6420 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6425 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6430 { frame 1 { stop(); } frame 4 { gotoAndPlay(2); } } movieClip 6431 { frame 1 { stop(); } } movieClip 6446 { frame 1 { stop(); } } movieClip 6455 { frame 1 { stop(); var temp = attachMovie('boom_bug5', 'boom5', 100); temp._x = 180; temp._y = 170; } frame 2 { stop(); var temp = attachMovie('boom_bug5', 'boom5', 100); temp._x = 180; temp._y = 170; } frame 3 { stop(); var temp = attachMovie('boom_bug5', 'boom5', 100); temp._x = 180; temp._y = 170; } frame 4 { stop(); var temp = attachMovie('boom_bug5', 'boom5', 100); temp._x = 180; temp._y = 170; } frame 5 { stop(); var temp = attachMovie('boom_bug5', 'boom5', 100); temp._x = 180; temp._y = 170; } frame 6 { stop(); var temp = attachMovie('boom_bug5', 'boom5', 100); temp._x = 180; temp._y = 170; } frame 7 { stop(); var temp = attachMovie('boom_bug5', 'boom5', 100); temp._x = 180; temp._y = 170; } frame 8 { stop(); var temp = attachMovie('boom_bug5', 'boom5', 100); temp._x = 180; temp._y = 170; } } movieClip 6456 bug17 { frame 1 { function CheckLife() { if (life <= 0) { nowf2 = bug._currentframe; gotoAndStop(6); bug.gotoAndStop(nowf2); walk_id = 9; _root.diesay(5, _x, _y); t2 = 0; _root.sn_die17.start(); aim.swapDepths(100); aim.removeMovieClip(); } } function CountJL(x, y) { jx = _x - x; jy = _y - y; jl = Math.sqrt(jx * jx + jy * jy); } function CheckVary() { if (jl < 110 && nowf1 == 2) { gotoAndStop(3); nowf1 = 3; bug.gotoAndStop(1 + random(8)); step *= 0.5; t1 = 0; t2 = 0; t4 = 0; } else { if (jl > 300 && nowf1 == 5 && fire_id == 3) { nowf2 = bug._currentframe; gotoAndStop(4); nowf1 = 4; bug.gotoAndStop(nowf2); step *= 2; t1 = 0; t2 = 0; life *= 5; fire_id = 0; t5 = 0; } else { if (t4 > 500 && nowf1 == 5 && fire_id == 3) { nowf2 = bug._currentframe; gotoAndStop(4); nowf1 = 4; bug.gotoAndStop(nowf2); step *= 2; t1 = 0; t2 = 0; t4 = 0; life *= 5; fire_id = 0; t5 = 0; } } } } function ViewVary() { if (nowf1 == 3) { if (t1 == 20) { ++t2; if (t2 == 1) { bug.bug.play(); } if (t2 == 55) { t1 = 0; t2 = 0; nowf2 = bug._currentframe; gotoAndStop(5); nowf1 = 5; life = int(life / 5); bug.gotoAndStop(nowf2); fire_id = 0; } } else { ++t1; } } else { if (nowf1 == 4) { if (t2 == 55) { ++t1; if (t1 == 20) { t1 = 0; t2 = 0; nowf2 = bug._currentframe; gotoAndStop(2); nowf1 = 2; bug.gotoAndStop(nowf2); } } else { ++t2; if (t2 == 2) { bug.bug.gotoAndPlay(2); } } } } } function haulz() { r16 = -Math.atan2(jx, jy) / 0.0174532925199433; if (nowf1 > 4 && jl > 100) { var v1 = int((r16 + 202.5) / 45) + 1; if (v1 == 9) { v1 = 1; } bug.gotoAndStop(v1); } } function haul() { r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v1 = int((r16 + 202.5) / 45) + 1; if (v1 == 9) { v1 = 1; } bug.gotoAndStop(v1); } function HitMap() { var v2 = r16 * Math.PI / 180; stepx = step * Math.sin(v2); stepy = -step * Math.cos(v2); a = int((_y + stepy) / 30); b = int((_x + stepx) / 30); e = mapdate[a][b]; f = mapman[a][b]; if (e > 1) { if (f == name) { _x = _x + stepx; _y = _y + stepy; } else { if (f == null) { c = int(_y / 30); d = int(_x / 30); _x = _x + stepx; _y = _y + stepy; mapman[c][d] = null; mapman[a][b] = name; } else { if (f > 1 && f < 52000) { ++t1; if (t1 >= 10 + random(15)) { walk_id = 2; search_id = 2; t1 = 0; } } else { if (f >= 52000) { _root.mine_hurt(f, b, a); } } } } } else { walk_id = 2; search_id = 2; } } function CheckJL() { if (jl > 250) { var v2 = int((_y + stepy * f1_num) / 30); var v3 = int((_x + stepx * f1_num) / 30); var v1 = mapdate[v2][v3]; if (v1 < 2) { walk_id = 2; search_id = 1; } } } function SeekWay() { if (search_id == 1) { i = 40; while (i < 120) { stepx_f11 = step * Math.sin((r16 - i) * 0.0174532925199433); stepy_f11 = -step * Math.cos((r16 - i) * 0.0174532925199433); stepx_f12 = step * Math.sin((r16 + i) * 0.0174532925199433); stepy_f12 = -step * Math.cos((r16 + i) * 0.0174532925199433); a_f11 = int((_y + stepy_f11 * f1_num) / 30); b_f11 = int((_x + stepx_f11 * f1_num) / 30); e_f11 = mapdate[a_f11][b_f11]; a_f12 = int((_y + stepy_f12 * f1_num) / 30); b_f12 = int((_x + stepx_f12 * f1_num) / 30); e_f12 = mapdate[a_f12][b_f12]; if (e_f11 > 1 && e_f12 < 2) { goy = _y + stepy_f11 * f1_num; gox = _x + stepx_f11 * f1_num; walk_id = 3; break; } else { if (e_f11 < 2 && e_f12 > 1) { goy = _y + stepy_f12 * f1_num; gox = _x + stepx_f12 * f1_num; walk_id = 3; break; } else { if (e_f11 > 1 && e_f12 > 1) { r = 1 + random(2); goy = _y + eval('stepy_f1' + r) * f1_num; gox = _x + eval('stepy_f1' + r) * f1_num; walk_id = 3; break; } else { if (e_f11 < 2 && e_f12 < 2 && i >= 110) { walk_id = 0; break; } } } } i += 10; } } else { if (search_id == 2) { i = 10; while (i <= 50) { stepx_f21 = step * Math.sin((r16 - 90) * 0.0174532925199433); stepy_f21 = -step * Math.cos((r16 - 90) * 0.0174532925199433); stepx_f22 = step * Math.sin((r16 + 90) * 0.0174532925199433); stepy_f22 = -step * Math.cos((r16 + 90) * 0.0174532925199433); a_f21 = int((_y + stepy_f21 * i) / 30); b_f21 = int((_x + stepx_f21 * i) / 30); e_f21 = mapdate[a_f21][b_f21]; f_f21 = mapman[a_f21][b_f21]; a_f22 = int((_y + stepy_f22 * i) / 30); b_f22 = int((_x + stepx_f22 * i) / 30); e_f22 = mapdate[a_f22][b_f22]; f_f22 = mapman[a_f22][b_f22]; if (e_f21 > 1 && e_f22 < 2 || f_f21 == null && f_f22 != null) { goy = _y + stepy_f21 * i; gox = _x + stepx_f21 * i; walk_id = 3; break; } else { if (e_f21 < 2 && e_f22 > 1 || f_f21 != null && f_f22 == null) { goy = _y + stepy_f22 * i; gox = _x + stepx_f22 * i; walk_id = 3; break; } else { if (e_f21 > 1 && e_f22 > 1 || f_f21 == null && f_f22 == null) { var r = 1 + random(2); goy = _y + eval('stepy_f2' + r) * i; gox = _x + eval('stepy_f2' + r) * i; walk_id = 3; break; } else { if ((e_f21 < 2 && e_f22 < 2 || f_f21 != null && f_f22 != null) && i >= 50) { walk_id = 0; break; } } } } i += 10; } } } } function ViewAttack() { if (nowf1 == 5) { jx = _x - _parent._parent.playx; jy = _y - _parent._parent.playy; jl = Math.sqrt(jx * jx + jy * jy); if (fire_id == 0) { if (jl < 300) { r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v6 = int((r16 + 191.25) / 22.5) + 1; if (v6 == 17) { v6 = 1; } var v3 = bug.gun._currentframe; var v5 = v6 - v3; if (v5 == 0) { if (jl < 200) { fire_id = 1; t3 = 0; t5 = 0; nowf3 = v6; fire_d = 0; bug.gun.gun.gotoAndPlay(3); _parent._parent.sn_e17.stop('sn_e17'); _parent._parent.sn_e17.start(); bug.gun.fire1.gotoAndStop(2); bug.gun.fire2.gotoAndStop(2); aimx = _root.playx; aimy = _root.playy; } else { fire_id = 2; t3 = 0; t5 = 0; nowf3 = v6; fire_d = 0; createEmptyMovieClip('aim', 100); bug.gun.gun.gotoAndPlay(3); _parent._parent.sn_e17.stop('sn_e17'); _parent._parent.sn_e17.start(); bug.gun.fire1.gotoAndStop(2); bug.gun.fire2.gotoAndStop(2); fire_jj = int(jl / 15); jl0 = jl - fire_jj * 5; aimx = jl0 * Math.sin(r16 * 0.0174532925199433) + _x; aimy = -jl0 * Math.cos(r16 * 0.0174532925199433) + _y; } } else { if (v5 > 0 && v5 <= 8) { ++v3; if (v3 == 17) { v3 = 1; } } else { if (v5 > 8) { --v3; if (v3 == 0) { v3 = 16; } } else { if (v5 < 0 && v5 >= -8) { --v3; if (v3 == 0) { v3 = 16; } } else { if (v5 < -8) { ++v3; if (v3 == 17) { v3 = 1; } } } } } } bug.gun.gotoAndStop(v3); } else { var v6 = bug._currentframe; bug.gun.gotoAndStop(v6 * 2); } } else { if (fire_id == 1) { ++fire_d; if (fire_d < 11) { ++t3; r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v6 = int((r16 + 191.25) / 22.5) + 1; if (v6 == 17) { v6 = 1; } if (v6 != nowf3) { bug.gun.gotoAndStop(v6); nowf3 = v6; bug.gun.gun.gotoAndPlay(3); } if (t3 == 4) { var v4 = aim_arr[nowf3 - 1]; var v14 = aimx + v4[4]; var v12 = aimy + v4[5] - 30; var v13 = aimx + v4[6]; var v11 = aimy + v4[7] - 30; _root.attachCrater(v14, v12, 3); _root.attachCrater(v13, v11, 3); var v10 = v14 - _x; var v8 = v12 - _y; var v9 = v13 - _x; var v7 = v11 - _y; aim.lineStyle(0, 16777215, 100); aim.moveTo(v4[0], v4[1]); aim.lineTo(v10, v8); aim.moveTo(v4[2], v4[3]); aim.lineTo(v9, v7); v10 = v14 - _root.playx; v8 = v12 - _root.playy; v9 = v13 - _root.playx; v7 = v11 - _root.playy; jl1 = Math.sqrt(v10 * v10 + v8 * v8); jl2 = Math.sqrt(v9 * v9 + v7 * v7); if (jl1 < 30) { _root.hurt(damage); } if (jl2 < 30) { _root.hurt(damage); } } else { if (t3 == 5) { t3 = 2; aimx = _root.playx; aimy = _root.playy; } } } else { bug.gun.fire1.gotoAndStop(1); bug.gun.fire2.gotoAndStop(1); fire_d = 0; fire_id = 3; bug.gun.gun.gotoAndStop(1); } } else { if (fire_id == 2) { if (fire_d < 11) { ++t3; r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v6 = int((r16 + 191.25) / 22.5) + 1; if (v6 == 17) { v6 = 1; } if (v6 != nowf3) { bug.gun.gotoAndStop(v6); nowf3 = v6; bug.gun.gun.gotoAndPlay(3); } if (t3 == 4) { var v4 = aim_arr[nowf3 - 1]; var v14 = aimx + v4[4]; var v12 = aimy + v4[5]; var v13 = aimx + v4[6]; var v11 = aimy + v4[7]; _root.attachCrater(v14, v12, 3); _root.attachCrater(v13, v11, 3); var v10 = v14 - _x; var v8 = v12 - _y; var v9 = v13 - _x; var v7 = v11 - _y; aim.lineStyle(0, 16777215, 100); aim.moveTo(v4[0], v4[1]); aim.lineTo(v10, v8); aim.moveTo(v4[2], v4[3]); aim.lineTo(v9, v7); v10 = v14 - _root.playx; v8 = v12 - _root.playy; v9 = v13 - _root.playx; v7 = v11 - _root.playy; jl1 = Math.sqrt(v10 * v10 + v8 * v8); jl2 = Math.sqrt(v9 * v9 + v7 * v7); if (jl1 < 30) { _root.hurt(damage); } if (jl2 < 30) { _root.hurt(damage); } } else { if (t3 == 5) { aim.clear(); t3 = 2; jl0 += fire_jj; aimx = jl0 * Math.sin(r16 * 0.0174532925199433) + _x; aimy = -jl0 * Math.cos(r16 * 0.0174532925199433) + _y; ++fire_d; } } } else { bug.gun.fire1.gotoAndStop(1); bug.gun.fire2.gotoAndStop(1); fire_d = 0; fire_id = 3; aim.removeMovieClip(); bug.gun.gun.gotoAndStop(1); } } else { if (fire_id == 3) { ++t5; if (t5 > 30) { fire_id = 0; t5 = 0; } } } } } } } function ViewDie() { if (t2 > 80) { var v4 = 6; var v3 = nowf2; var v5 = 'die5_0' + v3; _root.diemap(v5, v4, v3, _x, _y); this.swapDepths(100); this.removeMovieClip(); } else { ++t2; } } var step = _root.step_arr[5] + random(41) / 10; var stepx = 0; var stepy = 0; var jl = 0; var jx = 0; var jy = 0; var r16 = 0; var gox = 0; var goy = 0; var aimx = 0; var aimy = 0; var aim_arr = [[-20, -8, 20, -8, -20, 0, 20, 0], [-34, -15, 3, -5, -18, -5, 18, 5], [-40, -26, -14, -6, -14, -10, 14, 10], [-42, -36, -28, -13, -6, -12, 6, 12], [-37, -49, -37, -22, 0, -14, 0, 14], [-28, -58, -42, -33, 7, -12, -7, 12], [-14, -63, -41, -45, 14, -9, -14, 9], [4, -65, -33, -55, 18, -6, -18, 6], [19, -62, -20, -62, 20, 0, -20, 0], [33, -54, -3, -65, 18, 6, -18, -6], [40, -45, 13, -64, 14, 9, -14, -9], [43, -33, 28, -57, 7, 12, -7, -12], [37, -20, 37, -49, 0, 14, 0, -14], [26, -13, 41, -36, -6, 12, 6, -12], [12, -8, 38, -27, -14, 10, 14, -10], [4, -4, 31, -17, -18, 5, 18, -5]]; var life = 8000; var damage = 20; var walk_id = 0; var search_id = 0; var f1_num = 40; var t1 = 0; var t2 = 0; var t3 = 0; var t4 = 0; var t5 = 0; var mapdate = _root.mapdate; var mapman = _root.mapman; var name = _name; name = name.substring(3); name = Number(name); var nowf1 = 2; var nowf2 = 1; var nowf3 = 1; fire_id = 0; fire_d = 0; fire_jj = 0; var jl0 = 0; var jl1 = 0; var jl2 = 0; onEnterFrame = function () { if (walk_id < 9) { nowf1 = _currentframe; if (nowf1 == 5) { ++t4; } CheckLife(); if (walk_id == 0) { CountJL(_parent._parent.playx, _parent._parent.playy); CheckVary(); haulz(); ViewVary(); if (nowf1 == 2 && jl > 80 || nowf1 == 5 && jl > 130) { HitMap(); } CheckJL(); } else { if (walk_id == 2) { SeekWay(); } else { if (walk_id == 3) { CountJL(gox, goy); if (jl >= step) { haul(); HitMap(); } if (jl < step * 2) { walk_id = 0; search_id = 0; t1 = 0; } } } } ViewAttack(); } else { if (walk_id == 9) { ViewDie(); } } swapDepths(1000000 + _y * 10000 + _x * 100 + 7); }; } frame 2 { stop(); } } movieClip 6461 bug51 { frame 1 { var life = 300; } frame 2 { stop(); } frame 3 { var life = 300; } frame 10 { stop(); } } movieClip 6488 { frame 40 { stop(); } } movieClip 6513 { frame 1 { stop(); } } movieClip 6542 { } movieClip 6571 { } movieClip 6600 { } movieClip 6629 { } movieClip 6658 { } movieClip 6687 { } movieClip 6716 { } movieClip 6745 { } movieClip 6774 { } movieClip 6803 { } movieClip 6832 { } movieClip 6861 { } movieClip 6862 { frame 1 { stop(); } } movieClip 6864 { frame 1 { stop(); } } movieClip 6865 bug42 { frame 1 { function CheckLife() { if (life <= 0) { gotoAndStop(7); bug.gotoAndStop(nowf2); walk_id = 9; _root.diesay(7, _x, _y); t2 = 0; _root.sn_die11.start(); } } function CountJL(x, y) { jx = _x - x; jy = _y - y; jl = Math.sqrt(jx * jx + jy * jy); } function haul() { r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v1 = int((r16 + 210) / 30) + 1; if (v1 == 13) { v1 = 1; } bug.gotoAndStop(v1); nowf2 = v1; } function CheckAttack() { ++fire_t; if (fire_t >= 10 && jl <= 480) { fire_t = 0; walk_id = 1; gotoAndStop(6); nowf1 = 6; bug.gotoAndStop(nowf2); t3 = 0; aimx = _parent._parent.playx; aimy = _parent._parent.playy; } } function CheckHide() { if (jl > 550) { walk_id = 8; gotoAndStop(8); nowf1 = 8; life *= 10; } } function CheckShow() { if (jl < 480) { walk_id = 3; gotoAndStop(2); nowf1 = 2; } } function ViewAttack() { ++t3; if (t3 == 15) { _parent._parent.sn_e42.start(); } else { if (t3 == 21) { var v6 = random(200) <= 100 ? 1 : -1; var v5 = random(200) <= 100 ? 1 : -1; var v8 = aimx + v6 * random(30); var v7 = aimy + v5 * random(30); ++_root.item_num; var v3 = _parent.attachMovie('rocket_bug42', 'rocket' + _root.item_num, 300 + random(100), {'endx': v8, 'endy': v7}); var v4 = aim_arr[nowf2 - 1]; v3._x = _x + v4[0]; v3._y = _y + v4[1]; v3._rotation = r16; v3.swapDepths(1000000 + v3._y * 10000 + v3._x * 100 + 50); if (_root.item_num > 9900) { _root.item_num = 1000; } } else { if (t3 == 25) { var v6 = random(200) <= 100 ? 1 : -1; var v5 = random(200) <= 100 ? 1 : -1; var v8 = aimx + v6 * random(30); var v7 = aimy + v5 * random(30); ++_root.item_num; var v3 = _parent.attachMovie('rocket_bug42', 'rocket' + _root.item_num, 300 + random(100), {'endx': v8, 'endy': v7}); var v4 = aim_arr[nowf2 - 1]; v3._x = _x + v4[2]; v3._y = _y + v4[3]; v3._rotation = r16; v3.swapDepths(1000000 + v3._y * 10000 + v3._x * 100 + 50); if (_root.item_num > 9900) { _root.item_num = 1000; } } else { if (t3 >= 30) { t3 = 0; nowf2 = bug._currentframe; gotoAndStop(5); nowf1 = 5; bug.gotoAndStop(nowf2); walk_id = 0; } } } } } function ViewProof() { jx = _x - _parent._parent.playx; jy = _y - _parent._parent.playy; r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v4 = int((r16 + 210) / 30) + 1; if (v4 == 13) { v4 = 1; } var v2 = bug._currentframe; var v3 = v4 - v2; if (v3 == 0) { walk_id = 0; t3 = 0; t5 = 0; nowf2 = v4; } else { if (v3 > 0 && v3 <= 6) { ++v2; if (v2 == 13) { v2 = 1; } } else { if (v3 > 6) { --v2; if (v2 == 0) { v2 = 12; } } else { if (v3 < 0 && v3 >= -6) { --v2; if (v2 == 0) { v2 = 12; } } else { if (v3 < -6) { ++v2; if (v2 == 13) { v2 = 1; } } } } } } bug.gotoAndStop(v2); } function ViewVary() { if (jl <= 270 && nowf1 == 2) { gotoAndStop(3); nowf1 = 3; t2 = 0; } if (nowf1 == 3) { ++t2; if (t2 >= 40) { t2 = 0; gotoAndStop(5); nowf1 = 5; walk_id = 2; life = 1 + int(life / 10); bug.gotoAndStop(6); } } } function ViewDie() { if (t2 > 80) { var v4 = 8; var v3 = 1; var v5 = 'die42_00'; _root.diemap(v5, v4, v3, _x, _y); swapDepths(100); this.removeMovieClip(); } else { ++t2; } } var jl = 0; var r16 = 0; var life = 10000; var lifez = 1000; var damage = 100; var walk_id = 3; var t1 = 0; var t2 = 0; var t3 = 0; var aimx = 0; var aimy = 0; var aim_arr = [[28, 28, 7, 31], [-8, 31, -30, 30], [-42, 23, -56, 12], [-64, 3, -69, -11], [-68, -23, -65, -37], [-55, -46, -41, -57], [-28, -60, -10, -66], [8, -66, 28, -62], [42, -57, 56, -46], [63, -37, 69, -24], [69, -13, 63, 2], [54, 13, 41, 23]]; var name = _name; name = name.substring(3); name = Number(name); _root.mapman[int(_y / 30)][int(_x / 30)] = name; swapDepths(1000000 + _y * 10000 + _x * 100 + 0); var nowf1 = 2; var nowf2 = 1; var nowf3 = 1; fire_id = 0; fire_t = 0; fire_d = 0; fire_jj = 0; var jl0 = 0; var jl1 = 0; var jl2 = 0; onEnterFrame = function () { if (walk_id < 9) { nowf1 = _currentframe; nowf2 = bug._currentframe; CheckLife(); if (walk_id == 0) { CountJL(_parent._parent.playx, _parent._parent.playy); haul(); CheckAttack(); CheckHide(); } else { if (walk_id == 1) { ViewAttack(); } else { if (walk_id == 2) { ViewProof(); } else { if (walk_id == 3) { CountJL(_parent._parent.playx, _parent._parent.playy); ViewVary(); } else { if (walk_id == 8) { CountJL(_parent._parent.playx, _parent._parent.playy); CheckShow(); } } } } } } else { if (walk_id == 9) { ViewDie(); } } }; } frame 2 { stop(); } } movieClip 6892 { frame 40 { stop(); } } movieClip 6917 { frame 1 { stop(); } } movieClip 6922 { } movieClip 6923 { } movieClip 6928 { } movieClip 6933 { } movieClip 6938 { } movieClip 6943 { } movieClip 6948 { } movieClip 6953 { } movieClip 6958 { } movieClip 6963 { } movieClip 6968 { } movieClip 6973 { } movieClip 6978 { } movieClip 6979 { frame 1 { stop(); } } movieClip 6981 { frame 1 { stop(); } } movieClip 6982 bug41 { frame 1 { function CheckLife() { if (life <= 0) { gotoAndStop(7); bug.gotoAndStop(nowf2); walk_id = 9; _root.diesay(6, _x, _y); t2 = 0; _root.sn_die11.start(); } } function CountJL(x, y) { jx = _x - x; jy = _y - y; jl = Math.sqrt(jx * jx + jy * jy); } function haul() { r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v1 = int((r16 + 210) / 30) + 1; if (v1 == 13) { v1 = 1; } bug.gotoAndStop(v1); nowf2 = v1; } function CheckAttack() { ++fire_t; if (fire_t >= 10 && jl <= 420) { fire_t = 0; walk_id = 1; gotoAndStop(6); nowf1 = 6; bug.gotoAndStop(nowf2); t3 = 0; aimx = _parent._parent.playx; aimy = _parent._parent.playy; } } function CheckHide() { if (jl > 600) { walk_id = 8; gotoAndStop(8); nowf1 = 8; life *= 10; } } function CheckShow() { if (jl < 500) { walk_id = 3; gotoAndStop(2); nowf1 = 2; } } function ViewAttack() { ++t3; if (t3 == 2) { _parent._parent.sn_e41.start(); } else { if (t3 == 5) { var v5 = aim_arr[nowf2 - 1]; var v4 = 0; while (v4 < 2) { ++_root.item_num; var v3 = _parent.attachMovie('boom_bug41', 'boom_bug41' + _root.item_num, 200 + random(100)); v3._x = aimx + v5[v4 * 2]; v3._y = aimy + v5[v4 * 2 + 1]; v3.swapDepths(1000000 + v3._y * 10000 + v3._x * 100 + 95); if (_root.item_num > 9900) { _root.item_num = 1000; } ++v4; } } else { if (t3 == 9) { var v5 = aim_arr[nowf2 - 1]; jx1 = int((aimx + v5[0]) / 30); jy1 = int((aimy + v5[1]) / 30); jx2 = int((aimx + v5[2]) / 30); jy2 = int((aimy + v5[3]) / 30); _root.shot9_hurt(jx1, jy1, damage); _root.shot9_hurt(jx2, jy2, damage); } else { if (t3 >= 10) { t3 = 0; nowf2 = bug._currentframe; gotoAndStop(5); nowf1 = 5; bug.gotoAndStop(nowf2); walk_id = 0; } } } } } function ViewProof() { jx = _x - _parent._parent.playx; jy = _y - _parent._parent.playy; r16 = -Math.atan2(jx, jy) / 0.0174532925199433; var v4 = int((r16 + 210) / 30) + 1; if (v4 == 13) { v4 = 1; } var v2 = bug._currentframe; var v3 = v4 - v2; if (v3 == 0) { walk_id = 0; t3 = 0; t5 = 0; nowf2 = v4; } else { if (v3 > 0 && v3 <= 6) { ++v2; if (v2 == 13) { v2 = 1; } } else { if (v3 > 6) { --v2; if (v2 == 0) { v2 = 12; } } else { if (v3 < 0 && v3 >= -6) { --v2; if (v2 == 0) { v2 = 12; } } else { if (v3 < -6) { ++v2; if (v2 == 13) { v2 = 1; } } } } } } bug.gotoAndStop(v2); } function ViewVary() { if (jl <= 300 && nowf1 == 2) { gotoAndStop(3); nowf1 = 3; t2 = 0; } if (nowf1 == 3) { ++t2; if (t2 >= 40) { t2 = 0; gotoAndStop(5); nowf1 = 5; walk_id = 2; life = 1 + int(life / 10); bug.gotoAndStop(6); } } } function ViewDie() { if (t2 > 80) { var v4 = 7; var v3 = 1; var v5 = 'die41_00'; _root.diemap(v5, v4, v3, _x, _y); swapDepths(100); this.removeMovieClip(); } else { ++t2; } } var jl = 0; var r16 = 0; var life = 8000; var lifez = 800; var damage = 50; var walk_id = 3; var t1 = 0; var t2 = 0; var t3 = 0; var aimx = 0; var aimy = 0; var aim_arr = [[-20, 0, 20, 0], [-18, -5, 18, 5], [-14, -10, 14, 10], [0, -14, 0, 14], [7, -12, -7, 12], [14, -9, -14, 9], [20, 0, -20, 0], [18, 6, -18, -6], [14, 9, -14, -9], [0, 14, 0, -14], [-6, 12, 6, -12], [-14, 10, 14, -10]]; var name = _name; name = name.substring(3); name = Number(name); _root.mapman[int(_y / 30)][int(_x / 30)] = name; swapDepths(1000000 + _y * 10000 + _x * 100 + 0); var nowf1 = 2; var nowf2 = 1; var nowf3 = 1; fire_id = 0; fire_t = 0; fire_d = 0; fire_jj = 0; var jl0 = 0; var jl1 = 0; var jl2 = 0; onEnterFrame = function () { if (walk_id < 9) { nowf1 = _currentframe; nowf2 = bug._currentframe; CheckLife(); if (walk_id == 0) { CountJL(_parent._parent.playx, _parent._parent.playy); haul(); CheckAttack(); CheckHide(); } else { if (walk_id == 1) { ViewAttack(); } else { if (walk_id == 2) { ViewProof(); } else { if (walk_id == 3) { CountJL(_parent._parent.playx, _parent._parent.playy); ViewVary(); } else { if (walk_id == 8) { CountJL(_parent._parent.playx, _parent._parent.playy); CheckShow(); } } } } } } else { if (walk_id == 9) { ViewDie(); } } }; } frame 2 { stop(); } } movieClip 6983 { } movieClip 6990 { } movieClip 6991 { } movieClip 6993 { } movieClip 6995 { } movieClip 6996 { } movieClip 6999 { } movieClip 7001 { } movieClip 7003 { } movieClip 7005 { } movieClip 7007 { } movieClip 7009 { } movieClip 7011 { } movieClip 7013 { } movieClip 7015 { } movieClip 7016 { } movieClip 7034 { } movieClip 7036 { } movieClip 7038 { } movieClip 7039 { } movieClip 7044 { } movieClip 7045 { } button 7046 { on (release) { if (id != 2) { show.gotoAndStop(2); id = 2; } else { show.gotoAndStop(1); id = 1; } } } movieClip 7047 { } movieClip 7048 { } button 7049 { on (release) { if (id != 3) { show.gotoAndStop(3); id = 3; } else { show.gotoAndStop(1); id = 1; } } } movieClip 7050 { } movieClip 7051 { } button 7052 { on (release) { if (id != 4) { show.gotoAndStop(4); id = 4; } else { show.gotoAndStop(1); id = 1; } } } movieClip 7053 { } movieClip 7054 { } button 7055 { on (release) { fscommand('quit'); } } movieClip 7056 { } movieClip 7057 { } button 7058 { on (release) { _root.play(); this.swapDepths(100); this.removeMovieClip(); } } movieClip 7063 { } movieClip 7068 { frame 1 { stop(); } } movieClip 7071 starmenu { frame 2 { var id = 1; stop(); } } movieClip 7076 { } movieClip 7077 item_01 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; var tenor_id = 0; var endt = 0; onEnterFrame = function () { ++t; if (t >= 500) { this.swapDepths(100); this.removeMovieClip(); } if (tenor_id == 0) { if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30 && _root.system_id == 0) { _root.sn_get0.start(); if (_root.player_guard < 200) { _root.gp_max = 200; _root.player_guard = 200; _root.face.gp._width = _root.player_guard * 100 / _root.gp_max; if (_root.armor_id == 0) { _root.change_kj(0, 1); } _root.adsay('获得一套B级防护甲,防御上升200'); t = 0; tenor_id = 1; } else { _root.score += 50; this.swapDepths(100); this.removeMovieClip(); } } } } else { if (tenor_id == 1) { ++endt; if (endt < 4) { _xscale = _xscale + 30; _yscale = _yscale + 30; _alpha = _alpha - 9; } else { _xscale = _xscale - 20; _yscale = _yscale - 20; _alpha = _alpha - 9; if (endt == 10) { this.swapDepths(100); this.removeMovieClip(); } } } } }; } } movieClip 7080 { } movieClip 7081 item_02 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; var tenor_id = 0; var endt = 0; onEnterFrame = function () { ++t; if (t >= 500) { this.swapDepths(100); this.removeMovieClip(); } if (tenor_id == 0) { if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30 && _root.system_id == 0) { _root.sn_get0.start(); if (_root.player_guard < 500) { _root.gp_max = 500; _root.player_guard = 500; _root.face.gp._width = _root.player_guard * 100 / _root.gp_max; if (_root.armor_id == 0) { _root.change_kj(0, 1); } _root.adsay('获得一套A级防护甲,防御上升500'); t = 0; tenor_id = 1; } else { _root.score += 100; this.swapDepths(100); this.removeMovieClip(); } } } } else { if (tenor_id == 1) { ++endt; if (endt < 4) { _xscale = _xscale + 30; _yscale = _yscale + 30; _alpha = _alpha - 9; } else { _xscale = _xscale - 20; _yscale = _yscale - 20; _alpha = _alpha - 9; if (endt == 10) { this.swapDepths(100); this.removeMovieClip(); } } } } }; } } movieClip 7084 { } movieClip 7085 item_03 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; var tenor_id = 0; var endt = 0; onEnterFrame = function () { ++t; if (t >= 500) { this.swapDepths(100); this.removeMovieClip(); } if (tenor_id == 0) { if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30 && _root.system_id == 0) { _root.sn_get0.start(); if (_root.player_guard < 1000) { _root.gp_max = 1000; _root.player_guard = 1000; _root.face.gp._width = _root.player_guard * 100 / _root.gp_max; if (_root.armor_id == 0) { _root.change_kj(0, 1); } _root.adsay('获得一套路人甲,防御上升1000'); t = 0; tenor_id = 1; } else { _root.score += 200; this.swapDepths(100); this.removeMovieClip(); } } } } else { if (tenor_id == 1) { ++endt; if (endt < 4) { _xscale = _xscale + 30; _yscale = _yscale + 30; _alpha = _alpha - 9; } else { _xscale = _xscale - 20; _yscale = _yscale - 20; _alpha = _alpha - 9; if (endt == 10) { this.swapDepths(100); this.removeMovieClip(); } } } } }; } } movieClip 7090 { } movieClip 7091 item_11 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; onEnterFrame = function () { ++t; if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30) { if (_root.gun_arr[0][0] < 2) { _root.gun_arr[0][0] = 2; } _root.gun_arr[_root.action_id][0] = Number(_root.ballnum); _root.gun_arr[2][0] += 50; _root.ballnum = _root.gun_arr[_root.action_id][0]; _root.change_gun(2); _root.adsay('现在可以用散弹枪轰掉敌人了'); _root.sn_get1.start(); this.swapDepths(100); this.removeMovieClip(); } } }; } } movieClip 7096 { } movieClip 7097 item_12 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; onEnterFrame = function () { ++t; if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30) { if (_root.gun_arr[0][0] < 3) { _root.gun_arr[0][0] = 3; } _root.gun_arr[_root.action_id][0] = Number(_root.ballnum); _root.gun_arr[3][0] += 300; _root.ballnum = _root.gun_arr[_root.action_id][0]; _root.change_gun(3); _root.adsay('拿起机枪,扫射敌人吧'); _root.sn_get1.start(); this.swapDepths(100); this.removeMovieClip(); } } }; } } movieClip 7102 { } movieClip 7103 item_13 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; onEnterFrame = function () { ++t; if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30) { if (_root.gun_arr[0][0] < 4) { _root.gun_arr[0][0] = 4; } _root.gun_arr[_root.action_id][0] = Number(_root.ballnum); _root.gun_arr[4][0] += 50; _root.ballnum = _root.gun_arr[_root.action_id][0]; _root.change_gun(4); _root.adsay('已装备集束火箭炮!!!'); _root.sn_get1.start(); this.swapDepths(100); this.removeMovieClip(); } } }; } } movieClip 7108 { } movieClip 7109 item_21 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; onEnterFrame = function () { ++t; if (t >= 500) { this.swapDepths(100); this.removeMovieClip(); } if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30) { _root.gun_arr[_root.action_id][0] = Number(_root.ballnum); _root.gun_arr[2][0] += 20; _root.ballnum = _root.gun_arr[_root.action_id][0]; _root.adsay('捡到一盒散弹枪子弹'); _root.sn_get2.start(); this.swapDepths(100); this.removeMovieClip(); } } }; } } movieClip 7114 { } movieClip 7115 item_22 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; onEnterFrame = function () { ++t; if (t >= 500) { this.swapDepths(100); this.removeMovieClip(); } if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30) { _root.gun_arr[_root.action_id][0] = Number(_root.ballnum); _root.gun_arr[3][0] += 60; _root.ballnum = _root.gun_arr[_root.action_id][0]; _root.adsay('捡到一盒机枪子弹'); _root.sn_get2.start(); this.swapDepths(100); this.removeMovieClip(); } } }; } } movieClip 7120 { } movieClip 7121 item_23 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; onEnterFrame = function () { ++t; if (t >= 500) { this.swapDepths(100); this.removeMovieClip(); } if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30) { _root.gun_arr[_root.action_id][0] = Number(_root.ballnum); _root.gun_arr[4][0] += 12; _root.ballnum = _root.gun_arr[_root.action_id][0]; _root.adsay('捡到一组火箭炮弹'); _root.sn_get2.start(); this.swapDepths(100); this.removeMovieClip(); } } }; } } movieClip 7126 { } movieClip 7127 item_24 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; onEnterFrame = function () { ++t; if (t >= 500) { this.swapDepths(100); this.removeMovieClip(); } if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30) { _root.gun_arr[5][0] += 8; _root.adsay('捡到一组地雷套装'); _root.sn_get2.start(); this.swapDepths(100); this.removeMovieClip(); } } }; } } movieClip 7132 { } movieClip 7133 item_31 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; onEnterFrame = function () { ++t; if (t >= 500) { this.swapDepths(100); this.removeMovieClip(); } if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30 && _root.system_id == 0) { if (_root.player_life < _root.hp_max) { _root.player_life += 100; if (_root.player_life > _root.hp_max) { _root.player_life = _root.hp_max; } _root.face.hp._width = _root.player_life * 100 / _root.hp_max; _root.adsay('恢复了100点生命'); } else { _root.score += 50; } _root.sn_get3.start(); this.swapDepths(100); this.removeMovieClip(); } } }; } } movieClip 7138 { } movieClip 7139 item_32 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; onEnterFrame = function () { ++t; if (t >= 500) { this.swapDepths(100); this.removeMovieClip(); } if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30 && _root.system_id == 0) { if (_root.player_life < _root.hp_max) { _root.player_life += 200; if (_root.player_life > _root.hp_max) { _root.player_life = _root.hp_max; } _root.face.hp._width = _root.player_life * 100 / _root.hp_max; _root.adsay('恢复了200点生命'); } else { _root.score += 100; } _root.sn_get3.start(); this.swapDepths(100); this.removeMovieClip(); } } }; } } movieClip 7144 { } movieClip 7145 item_33 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; onEnterFrame = function () { ++t; if (t >= 500) { this.swapDepths(100); this.removeMovieClip(); } if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30 && _root.system_id == 0) { if (_root.player_life < _root.hp_max * 1.5) { _root.player_life += _root.hp_max; if (_root.player_life > _root.hp_max * 1.5) { _root.player_life = int(_root.hp_max * 1.5); } _root.face.hp._width = _root.player_life * 100 / _root.hp_max; _root.adsay('恢复了大量生命点'); } else { _root.score += 200; } _root.sn_get3.start(); this.swapDepths(100); this.removeMovieClip(); } } }; } } movieClip 7150 { } movieClip 7151 item_43 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; onEnterFrame = function () { ++t; if (t >= 500) { this.swapDepths(100); this.removeMovieClip(); } if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30 && _root.system_id == 0) { if (_root.step < 9) { _root.step += _root.step < 8 ? 1 : 0.5; if (_root.step > 9) { _root.step = 9; } _root.adsay('动力装置升级了……'); } else { _root.score += 200; } _root.sn_get4.start(); this.swapDepths(100); this.removeMovieClip(); } } }; } } movieClip 7156 { } movieClip 7157 item_41 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; onEnterFrame = function () { ++t; if (t >= 500) { this.swapDepths(100); this.removeMovieClip(); } if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30 && _root.system_id == 0) { if (_root.hp_max < 1500) { _root.hp_max += 150; _root.player_life += 150; _root.face.hp._width = _root.player_life * 100 / _root.hp_max; _root.adsay('变得更具生命力了……'); } else { _root.score += 200; } _root.sn_get4.start(); this.swapDepths(100); this.removeMovieClip(); } } }; } } movieClip 7162 { } movieClip 7163 item_42 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; onEnterFrame = function () { ++t; if (t >= 500) { this.swapDepths(100); this.removeMovieClip(); } if (t % 2 == 0) { var v4 = Math.abs(tx - _root.playx); var v3 = Math.abs(ty - _root.playy); if (v4 < 40 && v3 < 30 && _root.system_id == 0) { if (_root.player_aim > 0) { _root.player_aim -= 7; if (_root.player_aim < 0) { _root.player_aim = 0; } _root.adsay('命中率获得了提高……'); } else { _root.score += 200; } _root.sn_get4.start(); this.swapDepths(100); this.removeMovieClip(); } } }; } } movieClip 7168 { } movieClip 7169 item_51 { frame 1 { stop(); var t = 0; var tx = this._x; var ty = this._y; onEnterFrame = function () { ++t; if (t >= 500) { this.swapDepths(100); this.removeMovieClip(); } if (t % 2 == 0) { var v11 = Math.abs(tx - _root.playx); var v10 = Math.abs(ty - _root.playy); if (v11 < 40 && v10 < 30 && _root.system_id == 0) { var v7 = _root.mapman; var v9 = v7.length; var v8 = v7[1].length; var v6 = 0; while (v6 < v9) { var v4 = 0; while (v4 < v8) { var v5 = v7[v6][v4]; if (v5 != null && v5 > 10000) { _parent['bug' + v5].life -= 400; } ++v4; } ++v6; } _root.adsay('开启了电子核爆磁场……'); _root.sn_gun0.start(); this.swapDepths(100); this.removeMovieClip(); } } }; } } movieClip 7178 boom_bug4 { frame 13 { stop(); this.swapDepths(100); this.removeMovieClip(); } } movieClip 7197 LostArmor { frame 19 { stop(); } } movieClip 7228 boom_rocket { frame 26 { this.swapDepths(100); this.removeMovieClip(); } } movieClip 7257 boom_mine { frame 29 { this.swapDepths(100); this.removeMovieClip(); } } movieClip 7262 { } movieClip 7263 rocket { frame 1 { stop(); var endx = _root.rocket_arr[0][0]; var endy = _root.rocket_arr[0][1]; var step = 50; var lx = this._x - endx; var ly = this._y - endy; var r16 = -Math.atan2(lx, ly) / 0.0174532925199433; var stepx = step * Math.sin(r16 * Math.PI / 180); var stepy = -step * Math.cos(r16 * Math.PI / 180); this._rotation = r16; onEnterFrame = function () { lx = this._x - endx; ly = this._y - endy; jl = Math.sqrt(lx * lx + ly * ly); if (jl > step) { this._x += stepx; this._y += stepy; } else { _root.attachBoom(endx, endy, 1); var v6 = int(endx / 30); var v5 = int(endy / 30); _root.rocket_hurt(v6, v5); _root.sn_gun6.start(); var v3 = 1 + random(3); var v4 = 'rocket_crater' + v3; _root.diemap(v4, 9, v3, endx, endy); this.swapDepths(100); this.removeMovieClip(); } this.swapDepths(1000000 + this._y * 10000 + this._x * 100 + 98); }; } } movieClip 7264 rocket_bug42 { frame 1 { stop(); var step = 30; var lx = this._x - endx; var ly = this._y - endy; var jl = Math.sqrt(lx * lx + ly * ly); var r16 = -Math.atan2(lx, ly) / 0.0174532925199433; var stepx = step * Math.sin(r16 * Math.PI / 180); var stepy = -step * Math.cos(r16 * Math.PI / 180); this._rotation = r16; var damage = 150 + random(100); onEnterFrame = function () { lx = this._x - endx; ly = this._y - endy; jl = Math.sqrt(lx * lx + ly * ly); if (jl > step) { this._x += stepx; this._y += stepy; } else { _root.attachBoom(endx, endy, 1); var v6 = int(endx / 30); var v5 = int(endy / 30); _root.e_rocket_hurt(v6, v5, damage); _root.sn_gun6.start(); var v3 = 1 + random(3); var v4 = 'rocket_crater' + v3; _root.diemap(v4, 9, v3, endx, endy); this.swapDepths(100); this.removeMovieClip(); } this.swapDepths(1000000 + this._y * 10000 + this._x * 100 + 98); }; } } movieClip 7274 boom_bug41 { frame 19 { stop(); this.swapDepths(100); this.removeMovieClip(); } } movieClip 7321 boom_bug5 { frame 70 { stop(); } } movieClip 7333 map51 { } movieClip 7334 { frame 2 { stop(); } } frame 3 { function adsay(temp) { ad_arr.shift(); ad_arr.push(temp); var v1 = 0; while (v1 < 6) { face['ad' + v1] = ad_arr[v1]; ++v1; } face.t = 0; } function jpsay(id, x, y) { var v1 = random(1000); if (jp_id < 5) { if (score > 1200 && jp_id == 0) { jpgun(11, x, y); v1 = -1; odds_id = 700; } else { if (score > 2500 && jp_id == 1) { jpgun(43, x, y); v1 = -1; odds_id = 650; } else { if (score > 3800 && jp_id == 2) { jpgun(12, x, y); v1 = -1; odds_id = 600; } else { if (score > 7500 && jp_id == 3) { jpgun(43, x, y); v1 = -1; odds_id = 550; } else { if (score > 9000 && jp_id == 4) { jpgun(13, x, y); v1 = -1; odds_id = 500; } } } } } } if (id > 5) { jpmake(id, x, y); v1 = -1; } if (v1 > odds_id) { jpmake(id, x, y); } else { if (v1 < 50 && v1 > -1) { jpmake(0, x, y); } } } function jpgun(id, x, y) { ++item_num; var v1 = game.attachMovie('item_' + id, 'item_' + id, 80000 + item_num); v1._x = x; v1._y = y; v1.swapDepths(1000000 + y * 10000 + x * 100 + 50); if (item_num >= 9900) { item_num = 1000; } ++jp_id; } function jpmake(id, x, y) { var v3 = jp_arr[id]; var v4 = random(v3.length); var v1 = v3[v4]; if (v1 < 10) { v1 = '0' + v1; } ++item_num; var v2 = game.attachMovie('item_' + v1, 'item_' + v1 + item_num, 80000 + item_num); v2._x = x; v2._y = y; v2.swapDepths(1000000 + y * 10000 + x * 100 + 50); if (item_num >= 9900) { item_num = 1000; } } function mine_hurt(num, x, y) { var v2 = game['bug' + num]; var v10 = v2._x; var v9 = v2._y; attachBoom(v10, v9, 0); sn_gun0.start(); v2.swapDepths(100); v2.removeMovieClip(); mapman[y][x] = null; var v1 = gun_arr[5][1]; var v6 = boom_arr.length; var v4 = 1; while (v4 < v6) { var v3 = mapman[y + boom_arr[v4][0]][x + boom_arr[v4][1]]; if (v3 != 1 && v3 != null && v3 < 51000) { v2 = game['bug' + v3]; if (v2.life >= v1) { v2.life -= v1; v1 = 0; break; } else { if (v2.life < v1) { v1 -= v2.life; v2.life = 0; } } } else { if (v3 == 1) { var v5 = int(random(v1) / 2); hurt(v5); v1 -= v5; } } ++v4; } } function rocket_hurt(x, y) { var v3 = gun_arr[4][1]; var v6 = boom_arr.length; var v4 = 0; while (v4 < v6) { var v5 = boom_arr[v4]; var v2 = mapman[y + v5[0]][x + v5[1]]; if (v2 != 1 && v2 != null && v2 < 51000) { var v1 = game['bug' + v2]; if (v1.life >= v3) { v1.life -= v3; v3 = 0; break; } else { if (v1.life < v3) { v3 -= v1.life; v1.life = 0; } } } ++v4; } } function e_rocket_hurt(x, y, d) { var v7 = boom_arr.length; var v4 = 0; while (v4 < v7) { var v5 = boom_arr[v4]; var v3 = mapman[y + v5[0]][x + v5[1]]; if (v3 != 1 && v3 != null && v3 < 51000) { var v2 = game['bug' + v3]; if (v2.life >= d) { v2.life -= d; d = 0; break; } else { if (v2.life < d) { d -= v2.life; v2.life = 0; } } } else { if (v3 == 1) { var v6 = int(random(d) / 2); hurt(v6); d -= v6; } } ++v4; } } function shot9_hurt(x, y, d) { var v7 = 9; var v4 = 0; while (v4 < v7) { var v5 = boom_arr[v4]; var v3 = mapman[y + v5[0]][x + v5[1]]; if (v3 != 1 && v3 != null && v3 < 51000) { var v2 = game['bug' + v3]; if (v2.life >= d) { v2.life -= d; d = 0; break; } else { if (v2.life < d) { d -= v2.life; v2.life = 0; } } } else { if (v3 == 1) { var v6 = int(d / 2 + random(d / 2)); hurt(v6); d -= v6; } } ++v4; } } function CheckPlayerLife() { if (player_life <= 0) { player_life = 0; system_id = 8; } } function gameover() { face.gotoAndStop(2); game.player.gotoAndStop(14); ChangeGray(); game.onEnterFrame = null; game.player.onEnterFrame = null; system_id = 9; } function ChangeGray() { function ChangeArray(a, b) { var v2 = a.length >= b.length ? a.slice() : b.slice(); var v1 = v2.length; while (v1--) { v2[v1] = a[v1]; } return v2; } var v4 = new flash.filters.ColorMatrixFilter(); var v6 = [1, 0, 0, 0, 0]; var v7 = [0, 1, 0, 0, 0]; var v9 = [0, 0, 1, 0, 0]; var v8 = [0, 0, 0, 1, 0]; var v5 = [0.3, 0.59, 0.11, 0, 0]; var v2 = new Array(); v2 = v2.concat(ChangeArray(v5, v6)); v2 = v2.concat(ChangeArray(v5, v7)); v2 = v2.concat(ChangeArray(v5, v9)); v2 = v2.concat(v8); v4.matrix = v2; mapz.filters = [v4]; game.map51.filters = [v4]; } function gameclear() { Key.removeListener(myKeyListener); delete myKeyListener; Mouse.removeListener(myListener); delete myListener; mouseh.stopDrag(); mouseh.swapDepths(100); mouseh.removeMovieClip(); Mouse.show(); game.swapDepths(100); game.removeMovieClip(); mask.swapDepths(100); mask.removeMovieClip(); mapz.swapDepths(100); mapz.removeMovieClip(); delete mapload; music.stop('backmusic' + music_id); music.stop(); music.attachSound('startmusic'); music.start(0, 65000); gotoAndStop(5); face.swapDepths(100); face.removeMovieClip(); } function attachMC(x, y, sd) { 加密模块 = 'MD54.57027602378385e+019加密模块'; 密码 = '共想科技密码'; 作弊热键 = 'HZGXKJYXGS作弊热键'; 作弊形式 = '无敌特殊装备隐藏枪械'; } function attachBoom(x, y, id) { ++item_num; var v2 = (id == 0) ? 'boom_mine' : 'boom_rocket'; var v1 = game.attachMovie(v2, v2 + item_num, 200 + random(100)); v1._x = x; v1._y = y; v1.swapDepths(1000000 + (y + 100) * 10000 + x * 100 + 99); if (item_num > 9900) { item_num = 1000; } } function attachCrater(x, y, id) { ++item_num; var v1 = game.attachMovie('crater', 'crater' + item_num, 8000 + item_num); v1._x = x; v1._y = y; v1.gotoAndStop(id * 10); if (item_num > 9900) { item_num = 1000; } } function attachSpark(x, y, id) { ++item_num; var v2 = (id == 1) ? 'spark' : 'sparkz'; var v1 = game.attachMovie(v2, v2 + item_num, 100); v1._x = x; v1._y = y; v1.swapDepths(1000000 + (y + 100) * 10000 + x * 100 + 96); if (item_num > 9900) { item_num = 1000; } } function rebuild0() { gun_arr = [[1, 1], [99999, 20], [20, 80], [120, 30], [10, 400], [12, 750]]; score = 0; step = step_arr[0]; ballnum = gun_arr[1][0]; damage = gun_arr[1][1]; system_id = 0; tenor_id = 0; tenor_t = 0; xy_id = 0; walk_id = 1; action_id = 1; status_id = 0; mousekey_id = 0; armor_id = 0; UD_id = 0; LR_id = 0; spy_id = 1; player_life = 500; player_str = 100; player_guard = 0; player_aim = 40; hp_max = 500; gp_max = 200; playx = 0; playy = 0; game_x = 0; game_y = 0; gamex = 0; gamey = 0; item_num = 1000; enemy_total = 0; enemy_num = 100; tower_total = 0; odds_id = 750; jp_id = 0; timez = 0; rocket_id = 0; make_id = 0; make_t = 0; } function rebuild1() {} function rebuild2() {} function bkmusic() { music.stop('startmusic'); music.attachSound('backmusic' + music_id); music.onSoundComplete = function () { ++music_id; if (music_id >= 3) { music_id = 1; } music.attachSound('backmusic' + music_id); music.start(); }; music.start(); } function CheckScore() { so_id = -1; var v1 = 0; while (v1 < 10) { if (score > so_arr[v1][1]) { so_id = v1; break; } ++v1; } var v2 = (so_id == -1) ? 2 : 3; face.show.gotoAndStop(v2); } function SortScore() { var v1 = 9; while (v1 > so_id) { so_arr[v1][0] = so_arr[v1 - 1][0]; so_arr[v1][1] = so_arr[v1 - 1][1]; --v1; } so_arr[so_id][0] = playname; so_arr[so_id][1] = score; myso.data.so_id = so_id; v1 = 0; while (v1 < 10) { myso.data['name' + v1] = so_arr[v1][0]; myso.data['score' + v1] = so_arr[v1][1]; ++v1; } myso.flush(); } function ShowScore() { var v1 = 0; while (v1 < 10) { face.show['name' + v1] = so_arr[v1][0]; face.show['score' + v1] = so_arr[v1][1]; ++v1; } } function make_enemy() { ++make_t; if (score > 10000) { if (score > 50000 && enemy_total < 20 && make_t >= 50) { made_e(random(5)); if (tower_total < 10) { made_ft(random(2)); } } else { if (score > 20000 && enemy_total < 15 && make_t >= 100) { made_e(random(5)); if (tower_total < 8) { made_ft(random(2)); } } else { if (enemy_total < 12 && make_t >= 150) { made_e(random(5)); if (tower_total < 6) { made_ft(0); } } } } } else { if (score > 5000) { if (score > 8000 && enemy_total < 25 && make_t >= 30) { made_e(random(4)); if (tower_total < 5) { made_ft(0); } } else { if (score > 6500 && enemy_total < 22 && make_t >= 60) { made_e(random(4)); if (tower_total < 4) { made_ft(0); } } else { if (enemy_total < 20 && make_t >= 90) { made_e(random(4)); } } } } else { if (score > 2000) { if (score > 4000 && enemy_total < 30 && make_t >= 30) { made_e(random(3)); } else { if (score > 900 && enemy_total < 35 && make_t >= 60) { made_e(3); } else { if (enemy_total < 20 && make_t >= 90) { made_e(random(3)); } } } } else { if (score > 300) { if (score > 500 && enemy_total < 35 && make_t >= 30) { made_e(random(2)); } else { if (enemy_total < 25 && make_t >= 60) { made_e(random(2)); } } } else { if (score > 100 && enemy_total < 40 && make_t >= 30) { made_e(0); } else { if (enemy_total < 20 && make_t >= 60) { made_e(0); } } } } } } } function made_e(id) { var v5 = random(2000); var v4 = random(2000); var v3 = int(v4 / 30); var v2 = int(v5 / 30); var v8 = mapdate[v3][v2]; var v7 = mapman[v3][v2]; if (v8 > 1 && v7 == null) { ++enemy_total; ++enemy_num; var v6 = enemy_arr[id]; var v1 = game.attachMovie('bug' + v6, 'bug' + v6 + enemy_num, 1000 + enemy_num); v1._x = v5; v1._y = v4; if (enemy_num > 990) { enemy_num = 100; } make_t = 0; } } function made_ft(id) { id += 5; var v5 = random(2000); var v4 = random(2000); var v3 = int(v4 / 30); var v2 = int(v5 / 30); var v8 = mapdate[v3][v2]; var v7 = mapman[v3][v2]; if (v8 > 1 && v7 == null) { ++tower_total; ++enemy_num; var v6 = enemy_arr[id]; var v1 = game.attachMovie('bug' + v6, 'bug' + v6 + enemy_num, 1000 + enemy_num); v1._x = v5; v1._y = v4; if (enemy_num > 990) { enemy_num = 100; } make_t = 0; } } function hurt(damage) { if (armor_id == 0) { player_life -= damage; } else { var v1 = int(damage * 0.3); var v5 = damage - v1; player_life -= v1; player_guard -= v5; face.gp._width = player_guard * 100 / gp_max; if (player_guard <= 0) { player_guard = 0; change_kj(1, 0); face.gp._width = 0.5; } } CheckPlayerLife(); face.hp._width = player_life * 100 / hp_max; var v2 = random(15); var v4 = (random(2) == 0) ? v2 : -v2; var v3 = -random(50); v4 += playx; v3 += playy; attachSpark(v4, v3, 1); } function diemap(n, a, b, x, y) { var v1 = flash.display.BitmapData.loadBitmap(n); var v2 = die_arr[a][b]; var v4 = x + v2[0]; var v3 = y + v2[1]; mapload.copyPixels(v1, new flash.geom.Rectangle(0, 0, v1.width, v1.height), new flash.geom.Point(v4, v3)); mapshow.copyPixels(mapload, new flash.geom.Rectangle(Math.abs(gamex), Math.abs(gamey), 800, 600), new flash.geom.Point(0, 0)); } function diesay(id, x, y) { if (system_id == 0) { var v1 = die_arr[0][id]; var v7 = v1[0]; var v2 = v1[1]; score += v2; if (id < 6) { --enemy_total; } else { --tower_total; } var v4 = int(y / 30); var v3 = int(x / 30); mapman[v4][v3] = null; var v6 = '你摧毁一架' + v7 + ',得到' + v2 + '分'; adsay(v6); jpsay(id, x, y); } } var area_arr = [[0, 0], [2000, 2000]]; var map_id = 1; var xmin = 800 - area_arr[map_id][0]; var ymin = 600 - area_arr[map_id][1]; var map1_arr = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0], [0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; var gun_arr = [[1, 1], [99999, 20], [12, 100], [120, 30], [12, 500], [12, 800]]; var step_arr = [5, 6, 5, 4, 5, 3, 3]; var step = step_arr[0]; var score = 0; var ballnum = gun_arr[1][0]; var damage = gun_arr[1][1]; var system_id = 0; var tenor_id = 0; var tenor_t = 0; var xy_id = 0; var walk_id = 1; var action_id = 1; var status_id = 0; var mousekey_id = 0; var armor_id = 0; var UD_id = 0; var LR_id = 0; var spy_id = 1; var player_life = 500; var player_str = 100; var player_guard = 0; var player_aim = 40; var hp_max = 500; var gp_max = 200; var playx = 0; var playy = 0; var game_x = 0; var game_y = 0; var gamex = 0; var gamey = 0; var item_num = 1000; var enemy_total = 0; var enemy_num = 100; var tower_total = 0; var ad_arr = ['', '', '', '', '', '']; var odds_id = 750; var jp_id = 0; var jp_arr = [[41, 42, 43, 51], [1, 21, 22, 31, 21, 22, 31], [1, 21, 22, 24, 31, 32, 21, 22, 24, 31, 32], [1, 2, 21, 22, 23, 24, 31, 32, 21, 22, 23, 24, 31, 32], [1, 2, 3, 21, 22, 23, 34, 31, 32, 33], [2, 3, 23, 24, 32, 33], [22, 23, 24, 22, 23, 24, 31], [22, 23, 24, 22, 23, 24, 32]]; var boom_arr = [[0, 0], [1, 0], [1, -1], [0, -1], [-1, -1], [-1, 0], [-1, 1], [0, 1], [1, 1], [2, 0], [0, -2], [-2, 0], [0, 2]]; var sn_gun0 = new Sound(); sn_gun0.attachSound('sn_gun0'); var sn_gun1 = new Sound(); sn_gun1.attachSound('sn_gun1'); var sn_gun2 = new Sound(); sn_gun2.attachSound('sn_gun2'); var sn_gun3 = new Sound(); sn_gun3.attachSound('sn_gun3'); var sn_gun4 = new Sound(); sn_gun4.attachSound('sn_gun4'); var sn_gun5 = new Sound(); sn_gun5.attachSound('sn_gun5'); var sn_gun6 = new Sound(); sn_gun6.attachSound('sn_gun6'); var sn_get0 = new Sound(); sn_get0.attachSound('sn_get0'); var sn_get1 = new Sound(); sn_get1.attachSound('sn_get1'); var sn_get2 = new Sound(); sn_get2.attachSound('sn_get2'); var sn_get3 = new Sound(); sn_get3.attachSound('sn_get3'); var sn_get4 = new Sound(); sn_get4.attachSound('sn_get4'); var sn_e11 = new Sound(); sn_e11.attachSound('sn_e11'); var sn_e13 = new Sound(); sn_e13.attachSound('sn_e13'); var sn_e15 = new Sound(); sn_e15.attachSound('sn_e15'); var sn_e17 = new Sound(); sn_e17.attachSound('sn_e17'); var sn_e41 = new Sound(); sn_e41.attachSound('sn_e41'); var sn_e42 = new Sound(); sn_e42.attachSound('sn_e42'); var sn_die11 = new Sound(); sn_die11.attachSound('sn_die11'); var sn_die17 = new Sound(); sn_die17.attachSound('sn_die17'); var sn_manage = new Sound(); var music = new Sound(); music.attachSound('startmusic'); music.start(0, 65000); var music_id = 1; var so_arr = [['寻拾零', 71110], ['Cola', 70510], ['BBcat', 59170], ['炽天翼', 56340], ['叶哥', 50130], ['小龙', 32570], ['路人甲', 20000], ['路人乙', 15000], ['路人丙', 10000], ['路人丁', 5000]]; var myso = SharedObject.getLocal('ExcitedInsects'); var so_id = myso.data.so_id; var playname = 'Mr.玩家'; if (so_id == undefined) { myso.data.so_id = 11; var i = 0; while (i < 10) { myso.data['name' + i] = so_arr[i][0]; myso.data['score' + i] = so_arr[i][1]; ++i; } myso.flush(); } else { var i = 0; while (i < 10) { so_arr[i][0] = myso.data['name' + i]; so_arr[i][1] = myso.data['score' + i]; ++i; } } var enemy_arr = ['11', '12', '13', '15', '17', '41', '42']; var die_arr = [[0, ['巡逻机甲', 30], ['电蜘机甲', 60], ['蝎型机甲', 150], ['蜻式机甲', 220], ['重装机甲', 800], ['机枪塔', 300], ['火箭炮塔', 500]], [[11, 0], [-14, -68], [29, -51], [45, -11], [28, 23], [-16, 36], [-67, 24], [-87, -16], [-66, -55]], [[11, 1], [-39, -25], [-36, -25], [-32, -21], [-36, -22], [-32, -17], [-40, -23], [-40, -19], [-43, -25]], [[12, 0], [-19, -98], [43, -73], [66, -16], [42, 33], [-21, -51], [-94, 34], [-123, -23], [-93, -79]], [[12, 1], [-56, -32], [-51, -31], [-46, -25], [-52, -27], [-46, -20], [-57, -28], [-47, -23], [-61, -32]], [[13, 0], [-37, -44], [-28, -44], [-45, -44], [-86, -44], [-86, -44], [-97, -49], [-56, -49], [-62, -57]], [[17, 0], [-61, -62], [-95, -58], [-109, -40], [-87, -63], [-63, -69], [-85, -57], [-90, -46], [-90, -59]], [[41, 0], [-80, -68]], [[42, 0], [-80, -68]], [[99, 0], [-48, -40], [-54, -36], [-60, -42]]]; } frame 4 { function gameload() { bkmusic(); onEnterFrame = function () { if (tenor_id == 0) { createTextField('loadtxt', 110000, 0, 0, 0, 0); loadtxt.autoSize = 'center'; loadtxt._x = Stage.width / 2; loadtxt._y = Stage.height / 2; loadtxt.text = random(8) + '%'; var v4 = new TextFormat(); v4.color = 16777215; loadtxt.setTextFormat(v4); attachMovie('mouseh', 'mouseh', 1000000); Mouse.hide(); startDrag(mouseh, true, -300, -300, 1600, 1000); tenor_id = 1; } else { if (tenor_id == 1) { attachMovie('face', 'face', 90000); face.gun_bz1.gotoAndStop(2); face.gun_show.gotoAndStop(2); face.hp._width = 100; face.gp._width = 0.5; ballnum = gun_arr[1][0]; damage = gun_arr[1][1]; loadtxt.text = random(8) + 10 + '%'; tenor_id = 2; } else { if (tenor_id == 2) { attachMovie('game', 'game', 50000); loadtxt.text = random(8) + 30 + '%'; tenor_id = 3; } else { if (tenor_id == 3) { if (game._width > 0) { attachMovie('mask', 'mask', 55000); game.setMask(mask); loadtxt.text = random(8) + 40 + '%'; tenor_id = 4; } } else { if (tenor_id == 4) { game._x = -600; game._y = -700; gamex = -600; gamey = -700; var v3 = game.player; v3._x = 1000; v3._y = 1000; v3.swapDepths(1000000 + v3._y * 10000 + v3._x * 100 + 1); v3.gotoAndStop(1); v3.body1._visible = false; v3.foot1._visible = false; v3.body0.gotoAndStop(1); v3.foot0.gotoAndStop(1); loadtxt.text = random(9) + 70 + '%'; tenor_id = 5; } else { if (tenor_id == 5) { mapload = flash.display.BitmapData.loadBitmap('map5'); mapshow = new flash.display.BitmapData(800, 600, true, 0); mapshow.copyPixels(mapload, new flash.geom.Rectangle(600, 700, 800, 600), new flash.geom.Point(0, 0)); createEmptyMovieClip('mapz', 9999); mapz.attachBitmap(mapshow, 99, 'auto', true); loadtxt.text = random(9) + 80 + '%'; tenor_id = 6; } else { if (tenor_id == 6) { if (mapz._width > 0) { game.attachMovie('map51', 'map51', 100); game.map51.swapDepths(50000020); game.map51._x = 0; game.map51._y = 0; loadtxt.text = random(5) + 90 + '%'; tenor_id = 7; } } else { if (tenor_id == 7) { mapdate = map1_arr; mapman = new Array(67); var v2 = 0; while (v2 < 67) { mapman[v2] = new Array(67); ++v2; } mapman[int(game.player._y / 30)][int(game.player._x / 30)] = 1; loadtxt.text = random(5) + 95 + '%'; tenor_id = 8; } else { if (tenor_id == 8) { var v2 = 0; while (v2 < 6) { face['ad' + v2] = ''; ++v2; } removeMovieClip(_root.loadtxt); false; tenor_id = 0; nextFrame(); onEnterFrame = null; } } } } } } } } } }; } function run() { onEnterFrame = function () { if (system_id == 0) { if (Key.isDown(87) || Key.isDown(38)) { UD_id = 1; walk_id = 1; } else { if (Key.isDown(83) || Key.isDown(40)) { UD_id = 2; walk_id = 1; } else { UD_id = 0; } } if (Key.isDown(65) || Key.isDown(37)) { LR_id = 1; walk_id = 1; } else { if (Key.isDown(68) || Key.isDown(39)) { LR_id = 2; walk_id = 1; } else { LR_id = 0; } } if (Key.isDown(1)) { if (status_id < 3) { mousekey_id = 1; } } else { if (status_id < 2) { mousekey_id = 0; } } make_enemy(); } }; myKeyListener = new Object(); myKeyListener.onKeyDown = function () { var v1 = Key.getCode(); if (v1 == 49 || v1 == 97) { change_gun(1); } else { if (v1 == 50 || v1 == 98) { change_gun(2); } else { if (v1 == 51 || v1 == 99) { change_gun(3); } else { if (v1 == 52 || v1 == 100) { change_gun(4); } else { if (v1 == 53 || v1 == 101) { } else { if (v1 == 32) { if (action_id == 1) { special_key(); } } else { if (v1 == 80) { } } } } } } } }; Key.addListener(myKeyListener); var v21 = new Object(); var v28 = 1; var action_to = 1; v21.onMouseWheel = function (action_t) { if (system_id == 0 && status_id != 3) { action_to += int(action_t / 3); var v1 = gun_arr[0][0]; if (action_to < 1) { action_to = v1; } else { if (action_to > v1) { action_to = 1; } } change_gun(action_to); } }; Mouse.addListener(v21); game.player.onEnterFrame = function () { if (system_id == 0) { playx = this._x; playy = this._y; var v26 = playx - game._xmouse; var v21 = playy - game._ymouse - 50; if (action_id == 3) { v21 += 50; } var v24 = -Math.atan2(v26, v21) / 0.0174532925199433; if (action_id < 0 || action_id > 4) { change_gun(1); } if (armor_id < 0 && armor_id > 1) { armor_id = (player_guard == 0) ? 0 : 1; } var v15 = this['body' + armor_id]; var v7 = int((v24 + 191.25) / 22.5) + 1; if (v7 >= 17 || v7 < 1) { v7 = 1; } if (mousekey_id == 1 && (status_id == 0 || status_id == 2)) { if (ballnum > 0) { if (action_id != 1) { --ballnum; } status_id = 1; v15.gotoAndStop(status_id * 20 + v7); if (action_id == 4) { ++rocket_id; if (rocket_id >= 13) { rocket_id = 1; } var v8 = rocket_id > 6 ? rocket_id - 6 : rocket_id; var v3 = 1; while (v3 <= 6) { var v2 = v15['fire' + v3]; if (v3 != v8) { v2.gotoAndStop(1); v2._visible = false; } else { v2._visible = true; v2.play(); } ++v3; } v15.fire.play(); } } else { ballnum = 0; change_gun(action_id - 1); } } else { if (mousekey_id == 0 && status_id == 0) { v15.gotoAndStop(v7); } } if (walk_id == 0 && (v7 + 3) % 4 == 0) { this['foot' + armor_id].gotoAndStop((v7 + 1) / 2); } var v5 = playy; var v6 = playx; var v12 = UDLR_arr[UD_id][LR_id]; var v27 = v12[0]; if (v27 == 1) { var v23 = v12[1]; var v22 = v12[2]; var v25 = v12[3]; var v14 = int(step * v23); var v13 = int(step * v22); var v18 = int(v5 / 30); var v16 = int(v6 / 30); var v11 = int((v5 + v13) / 30); var v10 = int((v6 + v14) / 30); var v4 = mapdate[v11][v10]; if (v4 > 1) { var v9 = mapman[v11][v10]; if (v9 == 1 || v9 == null) { var v19 = v6 + gamex; var v17 = v5 + gamey; if (v23 != 0) { if (v19 >= 30 && v19 <= 770) { v6 += v14; } else { if (v19 < 30) { v6 = 30 - gamex; } else { if (v19 > 770) { v6 = 770 - gamex; } } } gamex -= v14; } if (v22 != 0) { if (v17 >= 30 && v17 <= 570) { v5 += v13; } else { if (v17 < 30) { v5 = 30 - gamey; } else { if (v17 > 570) { v5 = 570 - gamey; } } } gamey -= v13; } if (v11 != v18 || v10 != v16) { mapman[v18][v16] = null; mapman[v11][v10] = 1; } } else { if (v9 > 51000 && v9 < 52000) { mine(v9, v10, v11); } } } this['foot' + armor_id].gotoAndStop(walk_id * 10 + v25); if (v4 > 10) { if (v4 > 10 && v4 < 31) { mask_map(v4); } else { if (v4 > 30 && v4 < 51) { jump_show(v4); } else { if (v4 > 50 && v4 < 71) { system_id = 2; xy_id = v4 - 51; } } } } } else { walk_id = 0; v15 = this['foot' + armor_id]; var v20 = v15._currentframe; if (v20 > 10) { v15.gotoAndStop(v20 - 10); } } this.swapDepths(1000000 + v5 * 10000 + v6 * 100 + 2); this._x = v6; this._y = v5; playx = v6; playy = v5; var v19 = v6 + gamex; var v17 = v5 + gamey; if (v19 > 420) { gamex -= 4; } else { if (v19 < 380) { gamex += 4; } } if (v17 > 330) { gamey -= 3; } else { if (v17 < 300) { gamey += 3; } } } else { if (system_id == 1) { } else { if (system_id == 2) { switch_map(xy_id); } else { if (system_id == 3) { jump_map(xy_id); } else { if (system_id == 8) { gameover(); } else { if (system_id == 9) { } } } } } } if (gamex > 0) { gamex = 0; } if (gamex < xmin) { gamex = xmin; } if (gamey > 0) { gamey = 0; } if (gamey < ymin) { gamey = ymin; } if (gamex != game_x || gamey != game_y) { game._x = gamex; game._y = gamey; game_x = gamex; game_y = gamey; mapshow.copyPixels(mapload, new flash.geom.Rectangle(Math.abs(gamex), Math.abs(gamey), 800, 600), new flash.geom.Point(0, 0)); } }; } function special_key() { if (system_id == 0) { var v16 = game.player; var v8 = int(v16._y / 30); var v7 = int(v16._x / 30); var v17 = mapdate[v8][v7]; var v14 = 1; if (v14 == 1) { var v13 = boom_arr.length; var v15 = 0; var v4 = 1; while (v4 < v13) { var v5 = boom_arr[v4]; var v10 = mapman[v8 + v5[0]][v7 + v5[1]]; if (v10 > 52000 && v10 < 52999 || v10 > 51000 && v10 < 51000 && spy_id == 1) { var v6 = game['bug' + v10]; v6.swapDepths(100); v6.removeMovieClip(); mapman[v8 + v5[0]][v7 + v5[1]] = null; ++gun_arr[5][0]; sn_get2.start(); v15 = 1; break; } ++v4; } if (v15 == 0) { v14 = 2; } } if (v14 == 2) { if (gun_arr[5][0] > 0) { v15 = 0; if (v15 == 0) { var v12 = v16['foot' + armor_id]._currentframe; v12 -= 10 * walk_id; v12 = v12 < 5 ? v12 + 4 : v12 - 4; v5 = boom_arr[v12]; var v3 = v8 + v5[0]; var v2 = v7 + v5[1]; var v9 = mapdate[v3][v2]; v10 = mapman[v3][v2]; if (v9 == 2 && v10 == null) { ++enemy_num; var v1 = game.attachMovie('bug51', 'bug52' + enemy_num, 1000 + enemy_num); v1.gotoAndPlay(3); v1._x = v2 * 30 + 15; v1._y = v3 * 30 + 15; v1.swapDepths(1000000 + v1._y * 10000 + v1._x * 100 + 1); var v11 = 52000 + enemy_num; if (enemy_num > 990) { enemy_num = 100; } mapman[v3][v2] = v11; --gun_arr[5][0]; v15 = 1; sn_gun5.start(); } } if (v15 == 0) { v13 = boom_arr.length; v4 = 1; while (v4 < v13) { v5 = boom_arr[v4]; v3 = v8 + v5[0]; v2 = v7 + v5[1]; v9 = mapdate[v3][v2]; v10 = mapman[v3][v2]; if (v9 == 2 && v10 == null) { ++enemy_num; v1 = game.attachMovie('bug51', 'bug52' + enemy_num, 1000 + enemy_num); v1.gotoAndPlay(3); v1._x = v2 * 30 + 15; v1._y = v3 * 30 + 15; v1.swapDepths(1000000 + v1._y * 10000 + v1._x * 100 + 1); v11 = 52000 + enemy_num; if (enemy_num > 990) { enemy_num = 100; } mapman[v3][v2] = v11; --gun_arr[5][0]; sn_gun5.start(); break; } ++v4; } } } } } } function fireway() { var v2 = 0; var v4 = 0; var v8; var v7; var v3; var v6; var v5; var v9; v8 = game._xmouse - playx; v7 = game._ymouse - playy; v9 = Math.sqrt(v8 * v8 + v7 * v7); if (v9 <= 150) { v3 = 4; } else { if (v9 > 150 && v9 < 300) { v3 = 7; } else { if (v9 >= 300) { v3 = 10; } } } v8 /= v3; v7 /= v3; var v1 = 0; while (v1 < v3) { v6 = playx + v8 * (v1 + 1); v5 = playy + v7 * (v1 + 1); c = int(v5 / 30); d = int(v6 / 30); if (v2 == 0 && mapdate[c][d] == 0) { v2 = 1; v4 = v1; break; } if (v1 == v3 - 1 && v2 == 0) { v4 = v3 - 1; v2 = 1; } ++v1; } var v11 = random(200) <= 100 ? 1 : -1; var v10 = random(200) <= 100 ? 1 : -1; game.gun_hit._x = playx + v8 * (v4 + 1) + v11 * random(player_aim); game.gun_hit._y = playy + v7 * (v4 + 1) + v10 * random(player_aim); game.gun_hit.gotoAndPlay(3); } function fireway4() { var v2 = 0; var v4 = 0; var v3; var v8; var v7; var v9; var v11 = game.player['body' + armor_id]._currentframe - 20 - 1; var v6 = rocket_arr[0][0] - playx; var v5 = rocket_arr[0][1] - playy + 50; v9 = Math.sqrt(v6 * v6 + v5 * v5); var v16 = -Math.atan2(v6, v5) / 0.0174532925199433; if (v9 <= 150) { v3 = 1; v9 = 160; var v13 = rocket_arr[7][v11]; v6 = v13[0]; v5 = v13[1]; } else { if (v9 > 150 && v9 < 400) { v3 = 5; } else { if (v9 >= 400) { v3 = 8; } } } v6 /= v3; v5 /= v3; if (v3 > 1) { var v1 = 0; while (v1 < v3) { v8 = playx + v6 * (v1 + 1); v7 = playy + v5 * (v1 + 1); c = int(v7 / 30); d = int(v8 / 30); if (v2 == 0 && mapdate[c][d] == 0) { v2 = 1; v4 = v1; break; } if (v1 == v3 - 1 && v2 == 0) { v4 = v3 - 1; v2 = 1; } ++v1; } var v12 = v6 * (v4 + 1); var v15 = v5 * (v4 + 1); v9 = Math.sqrt(v12 * v12 + v15 * v15); if (v9 <= 150) { v9 = 160; var v13 = rocket_arr[7][v11]; v6 = v13[0]; v5 = v13[1]; v4 = 0; } } var v18 = random(200) <= 100 ? 1 : -1; var v17 = random(200) <= 100 ? 1 : -1; rocket_arr[0][0] = playx + v6 * (v4 + 1) + v18 * random(player_aim); rocket_arr[0][1] = playy + v5 * (v4 + 1) + v17 * random(player_aim) - 50; ++item_num; var v19 = rocket_id > 6 ? rocket_id - 6 : rocket_id; var v10 = game.attachMovie('rocket', 'rocket' + item_num, 200 + random(100)); var v14 = rocket_arr[v19][v11]; v10._x = v14[0] + playx; v10._y = v14[1] + playy; v10._rotation = v16; if (item_num > 9900) { item_num = 1000; } } function change_gun(id) { if (action_id != id && system_id == 0 && gun_arr[0][0] >= id) { gun_arr[action_id][0] = ballnum; face['gun_bz' + action_id].gotoAndStop(1); face['gun_bz' + id].gotoAndStop(2); face.gun_show.gotoAndStop((id - 1) * 10 + 2); armor_id = (player_guard == 0) ? 0 : 1; var v2 = game.player['body' + armor_id]._currentframe; v2 -= status_id * 20; if (v2 < 1 || v2 > 16) { v2 = 1; } action_id = id; game.player.gotoAndStop(id); var v3 = (armor_id == 0) ? 1 : 0; game.player['body' + armor_id]._visible = true; game.player['foot' + armor_id]._visible = true; game.player['body' + v3]._visible = false; game.player['foot' + v3]._visible = false; status_id = 3; game.player['body' + armor_id].gotoAndStop(status_id * 20 + v2); ballnum = gun_arr[id][0]; damage = gun_arr[id][1]; gun_arr[0][1] = id; sn_get1.start(); Mouse.hide(); rocket_id = 0; } } function mine_sort(id) { var v3 = _root.mine_arr[_root.map_id - 1]; var v5 = v3[0]; var v4 = 1; while (v4 <= v5) { if (v3[v4][0] == id) { --v3[0]; var v2 = v4; while (v2 <= v5) { v3[v2][0] = v3[v2 + 1][0]; v3[v2][1] = v3[v2 + 1][1]; v3[v2][2] = v3[v2 + 1][2]; ++v2; } break; } ++v4; } } function goback() { var v1 = game.player['body' + armor_id]; var v2 = v1._currentframe - 20 * status_id; status_id = 0; v1.gotoAndStop(v2); } function gofill() { var v1 = game.player['body' + armor_id]; if (rocket_id == 12) { var v2 = v1._currentframe + 40; status_id = 3; } else { var v2 = v1._currentframe - 20 * status_id; status_id = 0; } v1.gotoAndStop(v2); } function change_kj(k1, k2) { armor_id = k2; var v7 = game.player['body' + k1]; var v5 = game.player['foot' + k1]; var v4 = game.player['body' + k2]; var v3 = game.player['foot' + k2]; var v9 = v7._currentframe; var v8 = v5._currentframe; v7._visible = false; v5._visible = false; v4._visible = true; v3._visible = true; v4.gotoAndStop(v9); v3.gotoAndStop(v8); if (k2 == 0) { ++item_num; var v2 = 'LostArmor'; var v1 = game.attachMovie(v2, v2 + item_num, 100); v1._x = playx; v1._y = playy; v1.swapDepths(1000000 + (playy + 100) * 10000 + playx * 100 + 96); if (item_num > 9900) { item_num = 1000; } } } var mapdate; var mapman; var mapload; var mapshow; var timez = 0; var UDLR_arr = [[[0, 0, 0, 0], [1, -1, 0, 3], [1, 1, 0, 7]], [[1, 0, -1, 5], [1, -0.7, -0.7, 4], [1, 0.7, -0.7, 6]], [[1, 0, 1, 1], [1, -0.7, 0.7, 2], [1, 0.7, 0.7, 8]]]; var rocket_id = 0; var rocket_arr = [[0, 0], [[23, -44], [13, -41], [3, -39], [-9, -41], [-19, -45], [-25, -52], [-29, -60], [-30, -70], [-20, -77], [-12, -82], [2, -83], [12, -81], [22, -76], [28, -69], [31, -61], [30, -52]], [[26, -44], [16, -39], [5, -37], [-8, -38], [-20, -42], [-29, -50], [-33, -58], [-31, -67], [-25, -76], [-14, -81], [-2, -84], [11, -82], [22, -78], [30, -71], [34, -62], [33, -53]], [[30, -44], [20, -38], [8, -35], [-5, -36], [-22, -39], [-30, -46], [-35, -56], [-34, -65], [-28, -75], [-18, -81], [-6, -84], [9, -84], [21, -80], [31, -72], [35, -64], [36, -54]], [[-21, -45], [-28, -53], [-30, -60], [-27, -69], [-21, -76], [-11, -81], [1, -82], [13, -81], [21, -76], [29, -69], [31, -60], [28, -52], [22, -45], [12, -41], [1, -39], [-10, -39]], [[-25, -45], [-31, -53], [-32, -62], [-28, -71], [-20, -78], [-9, -83], [3, -84], [16, -81], [26, -76], [33, -68], [34, -58], [30, -49], [22, -42], [8, -39], [-2, -37], [-15, -40]], [[-28, -45], [-34, -54], [-34, -63], [-29, -72], [-19, -80], [-7, -84], [6, -85], [20, -81], [30, -75], [35, -65], [36, -56], [32, -46], [22, -39], [9, -35], [-5, -35], [-18, -38]], [[0, 140], [-64, 127], [-114, 93], [-147, 43], [-160, -20], [-148, -82], [-112, -134], [-62, -169], [0, -180], [60, -170], [113, -134], [148, -83], [160, -20], [148, 41], [113, 93], [62, 127]]]; var make_id = 0; var make_t = 0; } frame 5 { stop(); attachMovie('starmenu', 'starmenu', 88888); _quality = 'HIGH'; rebuild0(); } frame 6 { stop(); gameload(); _quality = 'LOW'; } frame 7 { stop(); run(); } frame 8 { prevFrame(); } frame 9 { prevFrame(); }




http://swfchan.com/3/12218/info.shtml
Created: 6/6 -2019 07:47:22 Last modified: 6/6 -2019 07:47:22 Server time: 05/11 -2024 06:55:40