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

<div style="position:absolute;top:-99px;left:-99px;"><img src="https://tools.swfchan.com/stathit.asp?noj=FRM18838039-7DC&rnd=18838039" width="1" height="1"></div>

82ysn0.swf

This is the info page for
Flash #259913

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


ActionScript [AS1/AS2]
Combined Code
movieClip 15 rankstar_char { } movieClip 16 rankstar_b { } movieClip 18 rankstar_bkg_b { } movieClip 23 sound_button { } movieClip 25 { } movieClip 26 { } movieClip 28 { } movieClip 30 { } movieClip 31 E_breakitem_center_b { } movieClip 34 { } movieClip 37 { } movieClip 38 yellowchar_plus { } movieClip 159 CS { frame 1 { } frame 73 { this.gotoAndPlay(1); } frame 125 { this.gotoAndPlay('run'); } frame 172 { this.gotoAndPlay('jump_loop'); } frame 235 { this.gotoAndPlay('fall_loop'); } frame 293 { this.stop(); } frame 331 { this.stop(); } frame 395 { this.gotoAndPlay('clear_loop'); } frame 467 { this.gotoAndPlay('bdmg_ko_loop'); } frame 573 { this.gotoAndPlay('dmg_ko_loop'); } frame 765 { this.gotoAndPlay('ko_loop'); } frame 853 { this.stop(); } } movieClip 161 { } movieClip 162 ms { } movieClip 164 { } movieClip 165 { } movieClip 166 E_mousestar { } movieClip 168 { } movieClip 170 { } movieClip 172 { } movieClip 174 { instance of movieClip 168 { onClipEvent (load) { this.cnt = 0; } onClipEvent (enterFrame) { ++this.cnt; this._rotation -= 0.8181818181818182; this._alpha = 70 + 30 * Math.cos((this.cnt / 130) * Math.PI * 2); } } instance of movieClip 170 { onClipEvent (enterFrame) { this._rotation += 1.2; } } instance of movieClip 168 { onClipEvent (load) { this.cnt = 0; } onClipEvent (enterFrame) { ++this.cnt; this._rotation -= 0.8181818181818182; this._alpha = 20 + 20 * Math.cos((this.cnt / 130) * Math.PI * 2); } } } movieClip 175 { } movieClip 176 gstarl { } movieClip 178 { } movieClip 180 { instance of movieClip 178 { onClipEvent (enterFrame) { this._rotation += 1.8; } } } movieClip 181 gstar { } movieClip 183 { } movieClip 184 E_getstar_b { frame 49 { this.removeMovieClip(); } } movieClip 186 { } movieClip 188 { } movieClip 189 { frame 22 { this.stop(); } } movieClip 190 E_getbomb_b { frame 111 { this.removeMovieClip(); } } movieClip 192 { } movieClip 197 { } movieClip 198 gbomb { } movieClip 200 { } movieClip 209 { } movieClip 211 gage_frame { } movieClip 220 { } movieClip 223 { } movieClip 226 { } movieClip 227 stoly { } movieClip 228 { frame 31 { this.stop(); } } // unknown tag 88 length 99 movieClip 231 { } movieClip 234 { } movieClip 235 sc_loading_b { frame 1 { this.stop(); } frame 25 { this.stop(); } } movieClip 236 se_cancel { frame 1 { this.playsnd = 1; } frame 29 { this.stop(); this.playsnd = 0; } } movieClip 237 se_gameinit { frame 1 { this.playsnd = 1; } frame 157 { this.stop(); this.playsnd = 0; } } movieClip 238 se_getbigstar { frame 1 { this.playsnd = 1; } frame 148 { this.stop(); this.playsnd = 0; } } movieClip 239 se_bomb { frame 1 { this.playsnd = 1; } frame 83 { this.stop(); this.playsnd = 0; } } movieClip 240 se_kostart { frame 1 { this.playsnd = 1; } frame 39 { this.stop(); this.playsnd = 0; } } movieClip 241 se_breakstar { frame 1 { this.playsnd = 1; } frame 77 { this.stop(); this.playsnd = 0; } } movieClip 242 se_announce { frame 1 { this.playsnd = 1; } frame 60 { this.stop(); this.playsnd = 0; } } movieClip 243 se_dropbomb { frame 1 { this.playsnd = 1; } frame 84 { this.stop(); this.playsnd = 0; } } movieClip 244 se_getstar { frame 1 { this.playsnd = 1; } frame 97 { this.stop(); this.playsnd = 0; } } movieClip 245 se_hpcure { frame 1 { this.playsnd = 1; } frame 86 { this.stop(); this.playsnd = 0; } } movieClip 246 se_shield { frame 1 { this.playsnd = 1; } frame 103 { this.stop(); this.playsnd = 0; } } movieClip 247 se_koend { frame 1 { this.playsnd = 1; } frame 26 { this.stop(); this.playsnd = 0; } } movieClip 248 se_speedup { frame 1 { this.playsnd = 1; } frame 60 { this.stop(); this.playsnd = 0; } } movieClip 249 se_result_masterup { frame 1 { this.playsnd = 1; } frame 124 { this.stop(); this.playsnd = 0; } } movieClip 250 se_result_failure { frame 1 { this.playsnd = 1; } frame 89 { this.stop(); this.playsnd = 0; } } movieClip 251 se_stageclear { frame 1 { this.playsnd = 1; } frame 123 { this.stop(); this.playsnd = 0; } } movieClip 252 se_breakitem { frame 1 { this.playsnd = 1; } frame 22 { this.stop(); this.playsnd = 0; } } movieClip 253 se_rankview { frame 1 { this.playsnd = 1; } frame 94 { this.stop(); this.playsnd = 0; } } movieClip 254 se_stagefailure { frame 1 { this.playsnd = 1; } frame 123 { this.stop(); this.playsnd = 0; } } movieClip 255 se_foot_fall { frame 1 { this.playsnd = 1; } frame 29 { this.stop(); } } movieClip 256 se_foot_jump { frame 1 { this.playsnd = 1; } frame 29 { this.stop(); } } movieClip 257 se_enter { frame 1 { this.playsnd = 1; } frame 29 { this.stop(); } } movieClip 266 { frame 2 { this.stop(); } frame 4 { this.stop(); } frame 6 { this.stop(); } frame 8 { this.stop(); } } movieClip 267 clpic_b { instance of movieClip 266 { onClipEvent (load) { this.gotoAndStop(G.result_label); } } frame 121 { this.stop(); } } movieClip 269 { } movieClip 270 { frame 58 { this.stop(); } } movieClip 273 { } movieClip 274 { frame 44 { this.stop(); } } movieClip 275 { frame 84 { this.stop(); } } movieClip 276 { frame 84 { this.stop(); } } movieClip 277 { frame 84 { this.stop(); } } movieClip 278 { frame 84 { this.stop(); } } movieClip 280 { instance of movieClip 200 { onClipEvent (load) { var inst = new meshpattern(40, 1, 15001319, 100, this, undefined, 60, undefined, X.h - 60); } } frame 92 { this.stop(); } } movieClip 281 gameresult_b { frame 121 { this.stop(); } } movieClip 283 empty { } movieClip 284 { } movieClip 285 { instance of movieClip 284 { onClipEvent (load) { var inst = new mainButton('title_start', 'start', this, 1); } } frame 34 { this.stop(); } } movieClip 286 { instance of movieClip 284 { onClipEvent (load) { var inst = new mainButton('title_story', 'story', this, 0); } } frame 34 { this.stop(); } } movieClip 287 { instance of movieClip 284 { onClipEvent (load) { var inst = new mainButton('title_omake', 'omake', this, 0); } } frame 34 { this.stop(); } } movieClip 288 { instance of movieClip 284 { onClipEvent (load) { if (SC_TITLE.isStaffRollActive()) { var inst = new mainButton('title_staffroll', 'staffroll', this, 0); } } } frame 34 { this.stop(); } } movieClip 289 { frame 78 { this.stop(); } } movieClip 292 { } movieClip 295 { } movieClip 296 { } movieClip 297 { instance of movieClip 296 { onClipEvent (enterFrame) { this._rotation += 1.8; } } } movieClip 316 { frame 105 { this.stop(); } } movieClip 317 { } movieClip 318 star_1_b { frame 39 { this.stop(); } } movieClip 320 { } movieClip 321 { } movieClip 322 star_2_b { frame 39 { this.stop(); } } movieClip 323 { frame 75 { this.stop(); } } movieClip 325 { instance of movieClip 200 { onClipEvent (load) { var inst = new meshpattern(40, 1, 15001319, 100, this, undefined, 60, undefined, X.h - 60); } } frame 69 { this.stop(); } } movieClip 328 { } movieClip 330 sc_title_b { frame 140 { this.stop(); } } movieClip 333 { } movieClip 336 { } movieClip 340 { } movieClip 344 { } movieClip 345 { } movieClip 346 mainButton_1_staffroll { } movieClip 350 { } movieClip 354 { } movieClip 358 { } movieClip 359 { } movieClip 362 { } movieClip 365 { } movieClip 368 { } movieClip 369 { } movieClip 370 mainButton_1_tweet { } movieClip 372 { } movieClip 373 { } movieClip 375 { } movieClip 377 { } movieClip 379 { } movieClip 380 { } movieClip 381 { } movieClip 382 { } movieClip 383 mainButton_1 { } movieClip 384 gameresult_button_retry_b { instance of movieClip 284 { onClipEvent (load) { var inst = new mainButton('gameresult_retry', 'retry', this, 0); } } frame 34 { this.stop(); } } movieClip 385 gameresult_button_nextstage_b { instance of movieClip 284 { onClipEvent (load) { var inst = new mainButton('gameresult_nextstage', 'nextstage', this, 0); } } frame 34 { this.stop(); } } movieClip 387 { } movieClip 388 sc_title_p_stage_b { frame 11 { this.stop(); } } movieClip 390 { } movieClip 392 { } movieClip 393 { } movieClip 394 { } movieClip 395 sc_title_p_story_b { frame 11 { this.stop(); } } movieClip 398 { } movieClip 401 { } movieClip 404 { } movieClip 406 { } movieClip 408 { } movieClip 410 { } movieClip 411 stage_button_b { } movieClip 414 { } movieClip 415 hiscore_char_base { } movieClip 418 { } movieClip 419 getStar_char_base { } movieClip 422 { } movieClip 423 score_char_base { } movieClip 426 stage_char_base { } movieClip 427 stage_char1 { } movieClip 452 { } movieClip 453 stage_char_num { } movieClip 456 { } movieClip 459 { } movieClip 460 mainButton_tx_backtotitle { } movieClip 463 { } movieClip 466 { } movieClip 467 mainButton_tx_tweet { } movieClip 470 { } movieClip 473 { } movieClip 474 mainButton_tx_retry { } movieClip 477 { } movieClip 480 { } movieClip 481 mainButton_tx_omake { } movieClip 484 { } movieClip 487 { } movieClip 488 mainButton_tx_staffroll { } movieClip 491 { } movieClip 494 { } movieClip 495 mainButton_tx_cancel { } movieClip 498 { } movieClip 501 { } movieClip 502 mainButton_tx_nextstage { } movieClip 505 { } movieClip 508 { } movieClip 509 mainButton_tx_story { } movieClip 512 { } movieClip 515 { } movieClip 518 { } movieClip 519 mainButton_tx_start { } movieClip 522 { } movieClip 524 { } movieClip 525 G_pause_b { instance of movieClip 284 { onClipEvent (load) { var inst = new mainButton('pause_backtotitle', 'backtotitle', this, 0); } } instance of movieClip 284 { onClipEvent (load) { var inst = new mainButton('pause_cancel', 'cancel', this, 0); } } instance of movieClip 284 { onClipEvent (load) { var inst = new mainButton('pause_retry', 'retry', this, 0); } } frame 25 { this.stop(); } } movieClip 526 button_backtotitle_b { frame 1 { this.stop(); } instance of movieClip 284 { onClipEvent (load) { var inst = new mainButton('backtotitle', 'backtotitle', this, 0); } } frame 31 { this.stop(); } instance of movieClip 284 { onClipEvent (load) { var inst = new mainButton('backtotitle', 'backtotitle', this, 0, false); } } frame 61 { this.stop(); } } movieClip 527 transition_starwipe_blackout { instance of movieClip 283 empty { onClipEvent (load) { starWipeSetter.init(this, 60); } } frame 57 { this.stop(); } } movieClip 528 transition_whiteopen { frame 12 { this.stop(); } frame 84 { this.stop(); } } movieClip 529 transition_starwipe_whiteout { instance of movieClip 283 empty { onClipEvent (load) { starWipeSetter.init(this, 36); } } frame 32 { this.stop(); } frame 90 { this.stop(); } } movieClip 554 { } movieClip 557 { } movieClip 560 { } movieClip 563 char_red { } movieClip 566 { } movieClip 569 { } movieClip 572 { } movieClip 575 { } movieClip 578 { } movieClip 581 { } movieClip 584 { } movieClip 587 { } movieClip 590 { } movieClip 593 { } movieClip 598 char_blue { } movieClip 601 { } movieClip 602 { } movieClip 605 { } movieClip 606 { } movieClip 609 { } movieClip 610 { } movieClip 613 { } movieClip 614 { } movieClip 617 { } movieClip 618 { } movieClip 621 { } movieClip 622 { } movieClip 625 { } movieClip 626 { } movieClip 629 { } movieClip 630 { } movieClip 633 { } movieClip 634 { } movieClip 637 { } movieClip 638 { } movieClip 639 char_yellowblink { } movieClip 644 { } movieClip 649 { } movieClip 654 { } movieClip 659 { } movieClip 664 { } movieClip 669 { } movieClip 674 { } movieClip 679 { } movieClip 684 { } movieClip 689 { } movieClip 690 { } movieClip 691 char_bluebigblink { } movieClip 692 char_yellow { } movieClip 694 sc_game_b { } movieClip 696 { } movieClip 697 { } movieClip 699 { } movieClip 700 E_breakstar_center_b { } movieClip 703 { } movieClip 704 { } movieClip 707 { } movieClip 708 { } movieClip 711 { } movieClip 712 { } movieClip 713 clock_b { } movieClip 716 { } movieClip 719 { } movieClip 720 morning_b { } movieClip 731 { } movieClip 732 result_failure_b { instance of movieClip 731 { onClipEvent (load) { var inst = new item_quake(this, 18, 19, 2); } onClipEvent (enterFrame) { inst.run(); } } frame 56 { this.stop(); } } movieClip 736 { } movieClip 740 { } movieClip 742 { } movieClip 743 { instance of movieClip 742 { onClipEvent (load) { var inst = new item_rainbow(this, 10); } onClipEvent (enterFrame) { inst.run(); } } } movieClip 744 { instance of movieClip 742 { onClipEvent (load) { var inst = new item_rainbow(this, 9); } onClipEvent (enterFrame) { inst.run(); } } } movieClip 745 { instance of movieClip 742 { onClipEvent (load) { var inst = new item_rainbow(this, 8); } onClipEvent (enterFrame) { inst.run(); } } } movieClip 747 { instance of movieClip 742 { onClipEvent (load) { var inst = new item_rainbow(this, 7); } onClipEvent (enterFrame) { inst.run(); } } } movieClip 749 { instance of movieClip 742 { onClipEvent (load) { var inst = new item_rainbow(this, 6); } onClipEvent (enterFrame) { inst.run(); } } } movieClip 751 { instance of movieClip 742 { onClipEvent (load) { var inst = new item_rainbow(this, 5); } onClipEvent (enterFrame) { inst.run(); } } } movieClip 753 { instance of movieClip 742 { onClipEvent (load) { var inst = new item_rainbow(this, 4); } onClipEvent (enterFrame) { inst.run(); } } } movieClip 755 { instance of movieClip 742 { onClipEvent (load) { var inst = new item_rainbow(this, 3); } onClipEvent (enterFrame) { inst.run(); } } } movieClip 757 { instance of movieClip 742 { onClipEvent (load) { var inst = new item_rainbow(this, 2); } onClipEvent (enterFrame) { inst.run(); } } } movieClip 759 { instance of movieClip 742 { onClipEvent (load) { var inst = new item_rainbow(this, 1); } onClipEvent (enterFrame) { inst.run(); } } } movieClip 761 { instance of movieClip 742 { onClipEvent (load) { var inst = new item_rainbow(this, 0); } onClipEvent (enterFrame) { inst.run(); } } } movieClip 762 { } movieClip 763 result_clear_b { frame 60 { this.stop(); } } movieClip 768 { } movieClip 773 { } movieClip 776 { } movieClip 779 { } movieClip 782 { } movieClip 785 { } movieClip 788 { } movieClip 791 result_title { } movieClip 792 empty_as { } movieClip 796 { } movieClip 799 { } movieClip 800 { } movieClip 802 HPGage_b { } movieClip 805 { } movieClip 807 { } movieClip 810 { } movieClip 811 { } movieClip 812 hiscore_refined_b { frame 30 { this.stop(); } } movieClip 814 { } movieClip 817 { } movieClip 818 gitem_2 { instance of movieClip 817 { onClipEvent (load) { var inst = new item_itemaula(this, 5504866); } onClipEvent (enterFrame) { inst.run(); } } } movieClip 820 { } movieClip 823 { } movieClip 824 gitem_1 { instance of movieClip 823 { onClipEvent (load) { var inst = new item_itemaula(this, 16761125); } onClipEvent (enterFrame) { inst.run(); } } } movieClip 826 { } movieClip 829 { } movieClip 830 gitem_0 { instance of movieClip 829 { onClipEvent (load) { var inst = new item_itemaula(this, 16729268); } onClipEvent (enterFrame) { inst.run(); } } } movieClip 832 { } movieClip 833 G_shield_b { } movieClip 835 { } movieClip 836 G_shieldstart_b { } movieClip 838 { } movieClip 839 { } movieClip 840 G_speedup { } movieClip 841 { } movieClip 842 { frame 51 { this.stop(); } } movieClip 843 transition_whiterect_b { frame 51 { this.stop(); } } movieClip 862 G_tutorial { } movieClip 873 { } movieClip 876 pictamaki_b { frame 8 { this.stop(); } frame 50 { this.gotoAndStop(1); } frame 120 { this.gotoAndStop(1); } frame 170 { this.gotoAndStop(1); } frame 281 { this.stop(); } frame 283 { this.stop(); } } movieClip 878 { } movieClip 880 hiscore_view_b { frame 33 { this.stop(); } } movieClip 882 { } movieClip 884 { } movieClip 885 tutorial_is_here { } movieClip 887 { } movieClip 892 { } movieClip 893 G_koend { frame 56 { this.stop(); } } movieClip 897 { frame 1 { this.stop(); } } movieClip 898 { } movieClip 899 { } movieClip 900 sc_ending_b { } movieClip 901 transition_whitefade { frame 26 { this.stop(); } } movieClip 905 { } movieClip 906 { } movieClip 907 transition_starclose { frame 84 { this.stop(); } } movieClip 909 tobecontinued { } // unknown tag 88 length 99 movieClip 912 ending_stageadded { } movieClip 933 char_small { } movieClip 936 result_kara { } movieClip 945 rankstar_center { } movieClip 952 rankstar_s { } movieClip 954 ann_open_ss3 { } movieClip 956 ann_open_allssrank { } movieClip 960 ann_open_allsssrank { } movieClip 962 ann_open_allsrank { } movieClip 964 ann_open_omake1 { } movieClip 966 ann_open_omake3 { } movieClip 968 ann_open_omake2 { } movieClip 970 ann_open_endless { } movieClip 973 announce_icon { } movieClip 974 base { } frame 1 { this.stop(); } instance of movieClip 974 base { onClipEvent (load) { System.useCodepage = true; X.init(); } onClipEvent (enterFrame) { X.run(); } onClipEvent (mouseDown) { X.mousedown(); } onClipEvent (mouseUp) { X.mouseup(); } } movieClip 975 __Packages.G { #initclip if (!_global.G) { var v1 = function () {}; _global.G = v1; var v2 = v1.prototype; v1.init = function () { G.phase = G.PHASE.GAME; G.gamet = 0; G.phaseSet(G.PHASE.GAME); G.scene_mc = _root.attachMovie('sc_game_b', 'scene_mc', 0); G.elStarsBase = G.scene_mc.attachMovie('empty_as', 'elStarsBase', G.INDX.STAR); var v14 = {'stage': {'keta': X.STG.keta, 'mcstring': 'char_blue'}, 'getStar': {'keta': G.STARKETA * 2 + 1, 'mcstring': []}, 'score': {'keta': G.SCOREKETA, 'mcstring': 'char_blue'}, 'hiscore': {'keta': G.SCOREKETA, 'mcstring': 'char_yellow'}}; var v10 = 0; while (v10 < G.STARKETA * 2 + 1) { v14.getStar.mcstring.push(v10 < G.STARKETA ? 'char_blue' : 'stage_char_num'); ++v10; } G.UI = {}; for (var v26 in G.UIdefault) { var v7 = G.UIdefault[v26].index; G.UI[v26] = G.scene_mc.attachMovie(v26 + '_char_base', v26 + '_char_base', G.INDX.UI + v7); var v4 = G.UI[v26]; v4._x = X.w - 160 - 120; v4._y = X.h - 200 + 37 * v7; v4.gotoAndStop(1); v4.index = v7; v4.keta = v14[v26].keta; v4.val = 0; v4.num = new numberShow(v26, v4, 95, 0, 200, G.uichar_w, G.uichar_h, v4.keta, v14[v26].mcstring, v4.val); } G.elScoreAdd = G.scene_mc.attachMovie('empty_as', 'UISCOREADD', G.INDX.UISCOREADD); G.elScoreAdd.elPlus = G.elScoreAdd.attachMovie('yellowchar_plus', 'plus', 100); G.elScoreAdd.num = new numberShow('num', G.elScoreAdd, -G.uichar_w * 6, 0, 200, G.uichar_w, G.uichar_h, 6, 'char_yellowblink', 0); G.elScoreAdd.starty = G.UI.score._y - 12; G.elScoreAdd._alpha = 0; G.elScoreAdd.cnt = 1000; G.elScoreAdd.show = function (_val) { this.num.hide(); this.num.setval(_val); var v2 = this.num.getCurrentKeta(); this.elPlus._x = -(v2 + 1) * G.uichar_w - 4; this.cnt = 0; this._y = this.starty; this._x = G.UI.score._x + 3; G.elScoreAdd.elPlus.gotoAndPlay(1); }; G.elScoreAdd.play = function (f) { if (this.cnt < 50) { var v2 = (this.cnt + 1) / 50; this._alpha = Math.min(100, 240 * (1 - v2)); this._y = this.starty - 40 * v2; ++this.cnt; } }; G.UI.Clock = new Clock(G.scene_mc, G.UI.score._x - 100 - 8, G.UI.score._y - 25, G.INDX.CLOCK); G.UI.HPGage = new HPGage(G.scene_mc, G.UI.hiscore._x - 140 - 127, G.UI.hiscore._y + 3 + 17, G.INDX.HPGAGE); G.MS = G.scene_mc.attachMovie('ms', 'ms', 1000); G.MS.keycodeClear = function (is_use) { this.keycode = {'use': is_use ? 1 : 0, 'L': 0, 'R': 0, 'jump': 0}; }; G.MS.keycodeClear(); G.MS.move = {}; G.MS.stageInit = function () { this.x = X.Msx; this.prex = this.x; this.y = X.Msy; this.prey = this.y; this.move = {'L': 0, 'R': 0, 'jump': 0, 'debug': 0, 'screenshot': 0, 'scoreboost': 0}; this.run(); }; G.MS.isAvailableKey = function (_keycode) { for (var v1 in G.KEYCODE) { if (G.KEYCODE[v1] == _keycode) { return true; } } return false; }; G.MS.onKeyDown = function () { if (G.phase !== G.PHASE.GAME) { return undefined; } var v2 = Key.getCode(); X.DLOGS(1, 'keypress: code::' + v2); if (this.isAvailableKey(v2)) { if (!this.keycode.use) { this.keycodeClear(true); } if (G.KEYCODE.LEFT == v2) { this.keycode.L = 1; } else { if (G.KEYCODE.RIGHT == v2) { this.keycode.R = 1; } else { if (G.KEYCODE.S == v2) { if (X.DEBUG && X.DEBUGSKEY) { this.move.debug = 1; } } else { if (G.KEYCODE.ESCAPE == v2) { if (!G.isPause()) { X.BTN.backtotitle = 1; } else { X.BTN.pause_cancel = 1; } } else { if (G.KEYCODE.P == v2) { if (X.DEBUG) { this.move.screenshot *= -1; this.move.screenshot += this.move.screenshot >= 0 ? 1 : -1; } } else { if (G.KEYCODE.D == v2) { if (X.DEBUG) { this.move.scoreboost = 1; } } else { this.keycode.jump = 1; } } } } } } } }; G.MS.onKeyUp = function () { if (G.phase !== G.PHASE.GAME) { return undefined; } var v2 = Key.getCode(); if (this.isAvailableKey(v2)) { if (G.KEYCODE.LEFT == v2) { this.keycode.L = -1; } else { if (G.KEYCODE.RIGHT == v2) { this.keycode.R = -1; } else { if (G.KEYCODE.S == v2) { this.move.debug = 0; } else { if (G.KEYCODE.P == v2) { } else { if (G.KEYCODE.D == v2) { this.move.scoreboost = 0; } else { this.keycode.jump = -1; } } } } } } }; G.MS.useMouse = function () { return !this.keycode.use; }; G.MS.run = function () { var v2 = this.useMouse(); if (X.Msy >= 5 && X.Msy < X.h - 40) { this.x = X.Msx; this.y = X.Msy; } if (v2) { this.prex = this.x; this.prey = this.y; } else { if (this.x != this.prex || this.y != this.prey) { v2 = 1; } } if (this.move.jump === 0) { if (X.clickflag == 1 && X.Msy < X.h - 40 || this.keycode.jump == 1) { ++this.move.jump; } } else { if (this.move.jump > 0) { ++this.move.jump; if (v2 && X.clickflag <= 0 || !v2 && this.keycode.jump <= 0) { this.move.jump = -1; } } else { this.move.jump = 0; } } if (v2) { this.x = X.MMX(X.lmargin, this.x, X.w - X.lmargin); this.y = X.MMX(X.lmargin, this.y, X.underpos - G.CS.height / 2); this.keycodeClear(); this._x = this.x; this._y = this.y; this.move.L = G.CS.x - 30 > this.x ? 1 : 0; this.move.R = G.CS.x + 30 < this.x ? 1 : 0; } else { this._x = -100; this.move.L = (this.keycode.L >= 1 ? 1 : 0) * (this.move.L >= 2 ? 2 : 1); this.move.R = (this.keycode.R >= 1 ? 1 : 0) * (this.move.R >= 2 ? 2 : 1); if (this.move.L && this.move.R) { if (this.keycode.L == 1) { this.move.L = 2; this.move.R = 1; } else { if (this.keycode.R == 1) { this.move.R = 2; this.move.L = 1; } } } else { this.move.R = this.move.R ? 1 : 0; this.move.L = this.move.L ? 1 : 0; } for (var v3 in this.keycode) { if (this.keycode[v3] >= 1) { ++this.keycode[v3]; } else { if (this.keycode[v3] < 0) { this.keycode[v3] = 0; } } } } }; Key.addListener(G.MS); G.CS = G.scene_mc.attachMovie('CS', 'CS', G.INDX.CS); G.CS.stageInit = function () { this.x = X.w / 2; this.y = this.yunder; this.state = G.CSST.NORMAL; this.putOnFloor(true); this.fine(); this.ag = 0; this.yspd = 0; this.xspd = 0; this.nodamagetime = 1; this.statef = -1; this.allowJump = 1; this.runflag = 0; this.noGetItem = 0; this.dmgstan = X.dmgstan[0]; this.speedUp = 0; this.gPicture.set('normal'); }; G.CS.xmag = 64; G.CS.height = 119; G.CS.yunder = X.underpos - G.CS.height - 1; G.CS.gPicture = G.scene_mc.attachMovie('pictamaki_b', 'pictamaki_b', G.INDX.GPIC); G.CS.gPicture.picname = ''; G.CS.gPicture.set = function (picname, flag) { if (flag !== undefined) { if (!flag) { return undefined; } } this.gotoAndPlay('gp_' + picname); this.picname = picname; }; G.CS.gPicture.isDamaging = function () { return this.picname == 'damage' || this.picname == 'ko'; }; G.CS.fine = function () { if (this._xscale > 0) { this._x = this.x - this.xmag; } else { this._x = this.x + this.xmag; } this._y = this.y; }; G.CS.setState = function (_state, _noresetframe) { _state = (_state !== undefined) ? _state : this.state; if (!_noresetframe) { this.statef = -1; } this.state = _state; }; G.CS.setAnim = function (_animation) { this.gotoAndPlay(_animation); }; G.CS.isFalling = function () { return this.y < this.yunder; }; G.CS.putOnFloor = function (resetflags) { this.y = this.yunder; this.yspd = 0; if (resetflags) { this.runflag = 0; this.allowJump = 1; } }; G.CS.hit = function (cx, cy, xreg, yreg) { if (G.MS.move.debug && X.DEBUG) { if (X.DEBUGGETALLSTAR) { return true; } xreg *= 2; yreg *= 2; } if (!this.noGetItem) { if (Math.abs(this.x - cx) < xreg) { if (Math.abs(this.y + 60 - cy) < yreg) { return true; } } } return false; }; G.CS.damage = function (dmgx, dmgval) { this.setState(G.CSST.DMG); if (this.checkFalling()) { this.y -= 18; this.yspd = -1.1 - Math.random() * 3; } this.nodamagetime = 100; if (this.x > dmgx) { this.xspd = 15; } else { this.xspd = -15; } this.x += this.xspd * 3; G.UI.HPGage.addval((X.DEBUG && X.DEBUGOWATA) ? -100 : dmgval, 1); if (this.isKO()) { this.noGetItem = true; } }; G.CS.getStar = function (stary, starspd, elStar) { var v2; if (starspd == 0) { v2 = X.scoreOfStarOnGround; this.gPicture.set('get_low', !this.gPicture.isDamaging()); } else { if (stary > X.scoreLines[2][0] || X.DEBUG && G.MS.move.scoreboost) { v2 = X.scoreOfStar[2]; this.gPicture.set('get_low', !this.gPicture.isDamaging()); } else { if (stary < X.scoreLines[0][0]) { v2 = X.scoreOfStar[0]; this.gPicture.set('get_high', !this.gPicture.isDamaging()); } else { if (stary < X.scoreLines[1][0]) { v2 = X.scoreOfStar[1]; this.gPicture.set('get_normal', !this.gPicture.isDamaging()); } else { v2 = X.scoreOfStar[3]; this.gPicture.set('get_normal', !this.gPicture.isDamaging()); } } } } if (elStar.objtype == G.OBJ.STARL && elStar.starLScore) { v2 = elStar.starLScore; } G.addScore(v2); G.addStarCount(1); }; G.CS.getHp = function () { return G.UI.HPGage.val; }; G.CS.isKO = function () { return this.getHp() <= 0; }; G.CS.isKOendStage = function () { if (G.stage.endByKO) { if (this.isKO()) { if (this.state == G.CSST.KO) { if (this.statef > 130) { return 3; } if (this.statef >= 130) { return 2; } } return 1; } } return 0; }; G.CS.stageInit(); G.CS.play = function (frame) { this.prestate = this.state; var v5 = true; var v2 = this.speedUp > 0 ? 1 : 0; var v3 = v2; ++this.statef; if (this.state == G.CSST.DMG) { if (!this.statef) { this.setAnim(((this.ag == 0 == this.xspd > 0) ? 'bdmg' : 'dmg') + (this.isKO() ? '_ko' : '')); this.gPicture.set('damage'); this.dmgstan = X.dmgstan[0]; if (this.isKO()) { this.noGetItem = true; this.dmgstan = X.dmgstan[1]; } } v5 = false; this.nodamagetime = 100; if (Math.abs(this.xspd) > 3) { this.xspd *= 0.87; } v3 = v3 >= 0 ? 0 : -1; if (this.isFalling()) { this.allowJump = false; if (this.yspd < X.yjumpmax[v3]) { this.yspd = X.yjumpmax[v3]; } } else { this.xspd *= 0.8; if (this.statef >= this.dmgstan) { this.putOnFloor(1); if (this.isKO()) { this.setState(G.CSST.KO); } else { this.setState(G.CSST.NORMAL); this.gPicture.set('normal'); } } } } else { if (this.state == G.CSST.JUMP) { if (this.yspd < X.yjumpmax[v2]) { this.yspd = X.yjumpmax[v2]; } if (!this.statef) { this.setAnim('jump'); SND.play('foot_jump'); } this.allowJump = false; if (1 <= G.MS.move.jump && G.MS.move.jump < 6) { this.yspd = X.yjumpmax[v2]; } else { if (G.MS.move.jump == -1) { if (this.yspd < X.yspdfin) { this.yspd = X.yspdfin; } } } if (this.yspd > 0 || G.MS.move.jump == -1) { this.setState(G.CSST.NORMAL); } } else { if (this.state == G.CSST.CLEAR) { if (!this.statef) { this.setAnim('clear'); } v5 = false; this.xspd = 0; this.putOnFloor(1); if (this.statef >= 30) { if (this.statef % 6 == 0) { G.EF.set('__G_clearstar', {'_x': this.x + (this.ag ? -1 : 1) * 50, '_y': this.y + this.y - 160}); } } } else { if (this.state == G.CSST.KO) { if (!this.statef) { this.setAnim('ko'); this.gPicture.set('ko'); G.UI.HPGage.koInit(true); this.nodamagetime = 1; ++G.stage.kocount; if (G.stage.endByKO) { GBG.endByKOInit(); } } v5 = false; this.xspd = 0; this.putOnFloor(1); if (this.statef == 23) { SND.play('kostart'); } if (this.statef == 48 && G.stage.endByKO) { this.setAnim('ko_lie'); this.x += (this.ag ? -1 : 1) * 3; } var v7 = false; if (G.MS.move.jump == 1) { v7 = 1; G.MS.move.jump = 0; } if (!G.stage.endByKO) { if (G.UI.HPGage.koRun(v7)) { this.noGetItem = false; this.nodamagetime = 100; SND.play('koend'); G.EF.set('G_koend', {'adjustLoc': this}); this.setState(G.CSST.NORMAL); this.gPicture.set('normal'); } } } else { if (!this.statef) { this.setAnim(this.isFalling() ? 'fall' : ((this.runflag == 1) ? 'run' : 'normal')); } if (!this.isFalling()) { if (this.xspd > 0) { this._xscale = -100; this.ag = 0; } else { if (this.xspd < 0) { this._xscale = 100; this.ag = 1; } } if (G.stage.state == G.SSTATE.CLEAR && G.stage.endcount > 4) { this.setState(G.CSST.CLEAR); } } } } } } if (v3 >= 0) { if (this.isFalling()) { this.yspd = Math.min(this.yspd + X.gravity[v3], X.yspdmax[v3]); if (this.y + this.yspd >= this.yunder) { if (this.state == G.CSST.NORMAL) { SND.play('foot_fall'); } this.putOnFloor(true); this.setState(undefined, this.state == G.CSST.DMG); } } else { this.putOnFloor(); } } var v4 = this.state == G.CSST.NORMAL && !this.isFalling(); if (v5) { var v6 = !this.isFalling() ? X.xax[v2] : X.xaxfl[v2]; if (G.MS.move.R && G.MS.move.R > G.MS.move.L) { this.xspd = Math.min(this.xspd + v6, X.xspdmax[v2]); if (v4) { if (this.xspd < 0) { this.xspd = 0; } ++this.runflag; } } else { if (G.MS.move.L && G.MS.move.L > G.MS.move.R) { this.xspd = Math.max(this.xspd - v6, -X.xspdmax[v2]); if (v4) { if (this.xspd > 0) { this.xspd = 0; } ++this.runflag; } } else { if (v4) { this.runflag = this.runflag > 0 ? -1 : 0; } this.xspd = Math.abs(this.xspd) < 0.014 ? 0 : this.xspd * 0.7; } } if (G.MS.move.jump == 1 && this.allowJump) { this.setState(G.CSST.JUMP); this.yspd = X.yspdstart; } else { if (v4) { this.setState(undefined, !(this.runflag == 1 || this.runflag == -1)); } } } this.x = X.MMX(X.lmargin, this.x + this.xspd, X.w - X.lmargin); this.y += this.yspd; this.fine(); if (this.nodamagetime > 0) { --this.nodamagetime; if (this.nodamagetime === 0) { this._alpha = 100; } else { if (frame % 8 < 4) { this._alpha = 100; } else { this._alpha = 50; } } } if (X.DEBUG && G.MS.move.debug) { this.nodamagetime = Math.max(this.nodamagetime, 10); this.nodamagetime = Math.max(this.nodamagetime, 10); } if (this.speedUp > 0) { --this.speedUp; if (this.speedUp % 3 == 1) { G.EF.set('__G_playerAfterImage', {'_x': this._x, '_y': this._y, '_xscale': this._xscale, '_yscale': this._yscale, '_rotation': this._rotation, 'cframe': G.CS._currentframe, 'f': G.gamet}); } } }; G.stage.init = function (_stagenum, effflag) { G.btnReset(); mainButton.show('backtotitle'); this.deleteAllStar(effflag ? 1 : 0); this.num = _stagenum; this.xpos = X.w / 2; this.prexpos = this.xpos; this.level = 0; this.stack = []; this.dropLostTimeLevel = 0; this.endByKO = false; this.stageinfo = new STAGEINFO(this); this.nowcount = X.initWait; this.endcount = -X.endWait; this.state = G.SSTATE.ACTIVE; this.todokoori = 1; this.dropcount = {}; this.lostcount = {}; for (var v2 in G.OBJ) { this.dropcount[G.OBJ[v2]] = []; this.lostcount[G.OBJ[v2]] = 0; } this.kocount = 0; G.setScore(0); G.setHiScore(X.STG.hiscores[this.num]); G.setStarCount(0); if (this.dropLostTimeLevel === 0) { this.dropLostTimeLevel = !this.stageinfo.miss ? 1 : this.stageinfo.marginlevel / (this.stageinfo.miss + 0.03); this.alltime = this.stageinfo.calcAllTime(); this.timeLevelPerFrame = (this.stageinfo.lasttimelevel - this.stageinfo.firsttimelevel) / this.alltime; } this.shieldTime = 0; this.stars = []; this.starsIndex = 0; G.MS.stageInit(); G.UI.stage.num.setval(X.getStageValue(this.num)); this.frame = 0; G.EF.clear(); G.CS.stageInit(); G.UI.Clock.stageInit(this.alltime, this.timeLevelPerFrame, this.stageinfo.firsttimelevel); G.UI.HPGage.stageInit(); G.hitBombCount = 0; GBG.stageInit(); X.DLOG[1].setText('level::' + this.level); G.EF.set('G_tutorial', {'num': this.num}); G.elStarsBase.preAlpha = 100; G.elStarsBase._alpha = 100; }; G.stage.setstar = function () { var v3; if (this.stars.length >= 100) { return false; } ++this.starsIndex; var v4 = this.starsIndex % 100; var __stack = this.stack.shift(); this.prexpos = this.xpos; __stack.xspd = 0; __stack.yspd = this.LV.yspd; var v5 = this.LV.xyrg * (this.LV.xyrgmin + (1 - this.LV.xyrgmin) * Math.random()); if (Math.random() < this.LV.xjump) { v5 *= Math.max(1, this.LV.xjumprate); } else { if (this.xpos >= X.w - X.lmargin - 70 || this.xpos < X.lmargin + 70) { v5 *= 1.2; } } var v9 = X.MMX(X.lmargin, this.xpos - v5, X.w - X.lmargin); var v11 = X.MMX(X.lmargin, this.xpos + v5, X.w - X.lmargin); v5 *= Math.abs(this.xpos - v9) > Math.abs(this.xpos - v11) ? -1 : 1; if (Math.random() < this.LV.allowTodokoori / this.todokoori) { ++this.todokoori; if (this.LV.allowTodokooriShuffle >= 1) { var v12 = (v11 - v9) * Math.random() + v9; v5 = v12 - this.xpos; } else { v5 *= -1; } } else { this.todokoori = Math.max(1, this.todokoori - 1.6); } this.xpos = X.MMX(X.lmargin, this.xpos + v5, X.w - X.lmargin); if (Math.random() < this.LV.shotxprob) { var v6 = this.LV.shotxmin + (this.LV.shotxmax - this.LV.shotxmin) * Math.random(); var v8 = X.underpos_star - X.initpos_star; var v10 = Math.sqrt(v8 * v8 + v6 * v6) / __stack.yspd; var v13 = v8 / v10; v6 *= Math.random() < 0.5 ? 1 : -1; if (this.xpos + v6 >= X.w - X.lmargin || this.xpos + v6 < X.lmargin) { if (Math.random() >= this.LV.shotxbounce) { v6 *= -1; } } __stack.xspd = v6 / v10; __stack.yspd = v13; __stack._rotation = X.GetAngle(0, 0, v8, -v6) * 360; } __stack._x = this.xpos; __stack._y = X.initpos_star; __stack.prepare = this.LV.prepare; __stack.timeRecover = 0; if (__stack.objtype == G.OBJ.FASTBOMB) { __stack.yspd = this.LV.fastBombSpeed; } this.nowcount = this.LV.count; if (this.stageinfo.fnStarSetPre) { this.stageinfo.fnStarSetPre(this, __stack, this.level); } if (__stack.objtype == G.OBJ.BOMB || __stack.objtype == G.OBJ.FASTBOMB) { v3 = G.elStarsBase.attachMovie('gbomb', 'gbomb' + v4, v4); v3.setGetE = function () { G.EF.set('E_getbomb_b', {'_x': this._x, '_y': this._y}); SND.play('bomb'); SND.play('dropbomb'); }; v3.setRemovedE = function () { G.EF.set('E_getbomb_b', {'_x': this._x, '_y': this._y}); SND.play('dropbomb'); }; v3.hpplus = -this.LV.bombDamage; } else { if (__stack.objtype == G.OBJ.STAR) { v3 = G.elStarsBase.attachMovie('gstar', 'gstar' + v4, v4); v3.setGetE = function () { G.EF.set('E_getstar_b', {'_x': this._x, '_y': this._y}); SND.play('getstar'); G.UI.Clock.addval(-this.timeRecover, true); }; v3.setRemovedE = function () { G.EF.set('E_breakstar_center_b', {'_x': this._x, '_y': X.underpos}); SND.play('breakstar'); }; v3.hpplus = this.LV.starHpCure; __stack._x = X.MMX(X.lmargin, __stack._x, X.w - X.lmargin); } else { if (__stack.objtype == G.OBJ.STARL) { v3 = G.elStarsBase.attachMovie('gstarl', 'gstarl' + v4, v4); v3._y -= 50; v3.setGetE = function () { G.EF.set('E_getstar_b', {'_x': this._x, '_y': this._y}); GBG.EF.set('__G_getstarl', {'_x': this._x, '_y': this._y}); SND.play('getstar'); SND.play('getbigstar'); G.UI.Clock.addval(-this.timeRecover, true); }; v3.setRemovedE = function () { G.EF.set('E_breakstar_center_b', {'_x': this._x, '_y': X.underpos}); SND.play('breakstar'); }; v3.hpplus = this.LV.starHpCure; __stack._x = X.MMX(X.lmargin, __stack._x, X.w - X.lmargin); } else { v3 = G.elStarsBase.attachMovie('gitem_' + __stack.objtype % 1000, 'gitem' + v4, v4); v3.setGetE = function () { G.EF.set('__G_getitem', {'_x': G.CS.x, '_y': G.CS.y, 'objtype': __stack.objtype}); }; v3.setRemovedE = function () { G.EF.set('E_breakitem_center_b', {'_x': this._x, '_y': X.underpos}); SND.play('breakitem'); }; v3.applyItem = function () { switch (this.objtype) { case G.OBJ.ITEM_CURE: G.UI.HPGage.addval(HPGage.hpmax, 1); SND.play('hpcure'); break; case G.OBJ.ITEM_SPEEDUP: G.CS.speedUp = X.speedUpTime; G.EF.set('G_speedup', {}); SND.play('speedup'); break; case G.OBJ.ITEM_SHIELD: G.stage.shieldTime = X.shieldTime; G.EF.set('G_shieldstart_b', {'_width': X.w, '_y': X.underpos, '_height': 100}); SND.play('shield'); } }; } } } if (!this.dropcount[__stack.objtype]) { this.dropcount[__stack.objtype] = []; } this.dropcount[__stack.objtype].push(X.int(this.level)); v3.index = v4; v3.shielded = 0; X.DLOG[1].setText('level::' + this.level); X.objMerge(v3, __stack); v3._alpha = 0; this.stars.push(v3); GBG.prepare(v3.objtype, v3._x, v3.prepare); var v7 = this.level; this.stageinfo.fineValue(v3.objtype == G.OBJ.STAR); if (Math.floor(v7) < Math.floor(this.level)) { var v2 = v7; while (v2 < this.level) { this.nowcount += X.int(X.Nm(this.stageinfo.levelDelay[Math.floor(v2)])); ++v2; } X.DLOGS(2, 'leveldelay ...' + this.nowcount); this.nowcount = Math.max(this.nowcount, 0); } this.stageinfo.remake(G.stage); return true; }; G.stage.deleteAllStar = function (effflag) { while (this.stars.length) { this.deleteStar(0, effflag); } }; G.stage.deleteStar = function (i, effflag) { if (this.stars[i] !== undefined) { var v4; if (effflag == 2) { this.stars[i].setGetE(); } else { if (effflag == 1) { this.stars[i].setRemovedE(); } } this.stars[i].removeMovieClip(); } this.stars.splice(i, 1); }; G.stage.getDropCount = function (objtype, level) { var v3 = 0; for (var v6 in this.dropcount) { if (v6 == objtype || objtype === undefined) { if (level === undefined) { v3 += this.dropcount[v6].length; } else { var v2 = 0; while (v2 < this.dropcount[v6].length) { if (this.dropcount[v6][v2] == level) { ++v3; } ++v2; } } } } return v3; }; G.stage.play = function (frame) { if (G.UI.Clock.getval() >= 1) { if (!G.CS.isKOendStage()) { this.state = G.SSTATE.FAILURE; } } if (this.state == G.SSTATE.ACTIVE) { --this.nowcount; while (this.nowcount <= 0) { if (this.stack.length) { this.setstar(); } else { if (!this.stars.length) { if (G.UI.Clock.cushion <= 0) { ++this.endcount; if (this.endcount >= 0) { this.state = G.SSTATE.CLEAR; } } } break; } } var v6 = 0; while (v6 < this.stars.length) { var v3 = false; var v4 = 1; var v2 = this.stars[v6]; if (v2.prepare > 0) { --v2.prepare; if (v2.prepare <= 0) { v2._alpha = 100; } } else { v2._x += v2.xspd; v2._y += v2.yspd; if (v2._x >= X.w - X.lmargin && v2.xspd > 0 || v2._x <= X.lmargin && v2.xspd < 0) { v2.xspd *= -1; } if (v2.objtype == G.OBJ.BOMB || v2.objtype == G.OBJ.FASTBOMB) { var v8 = 34; var v7 = 50; if (v2._y >= X.underpos_star) { v3 = true; v8 = 80; v7 = 100; } if (G.CS.hit(v2._x, v2._y, v8, v7) && !G.CS.nodamagetime) { if (X.DEBUG && X.DEBUGNODAMAGE) { } else { ++G.hitBombCount; G.addScore(X.scoreOfBomb); v3 = true; v4 = 2; G.CS.damage(v2._x, v2.hpplus); } } } else { var v5 = v2.objtype == G.OBJ.STAR || v2.objtype == G.OBJ.STARL; var v10 = (v2.objtype == G.OBJ.STARL) ? 80 : 40; var v9 = (v2.objtype == G.OBJ.STARL) ? 120 : 50; if (G.CS.hit(v2._x, Math.min(X.underpos_star - 10, v2._y), v10, v9)) { v3 = true; v4 = 2; if (v5) { G.CS.getStar(v2._y, v2.yspd, v2); G.UI.HPGage.addval(v2.hpplus, 1); } else { v2.applyItem(); } } else { if (v2._y >= X.underpos_star) { if (v2.shielded < X.shieldStarOne && this.shieldTime > 0 && (v5 || X.shieldItem)) { if (v2.yspd) { v2.yspd = 0; v2.xspd = 0; v2._y = X.underpos_star; } ++v2.shielded; v2._alpha = 60 + 20 * X.COSI(v2.shielded, X.shieldStarOne - v2.shielded < 20 ? 9 : 24); } else { ++G.stage.lostcount[v2.objtype]; v3 = true; if (v5) { G.UI.Clock.addval(G.stage.dropLostTimeLevel, true); } } } } } } if (v3) { this.deleteStar(v6, v4); } else { ++v6; } } if (this.shieldTime > 0) { if (this.shieldTime % 13 == 0) { G.EF.set('G_shield_b', {'_width': X.w, '_y': X.underpos, '_height': 60}); } --this.shieldTime; } var v11 = G.CS.isKOendStage(); if (v11) { G.elStarsBase._alpha -= 0.3; if (v11 >= 2) { if (v11 == 2) { G.gameEndInit(); } if (X.trans_end == 1) { return G.PHASE.RESULT; } } } } else { if (this.endcount <= 0) { this.deleteAllStar(); this.endcount = 0; if (this.state == G.SSTATE.CLEAR) { this.state = this.stageinfo.isStageCleared() ? G.SSTATE.CLEAR : G.SSTATE.FAILURE; } if (this.state == G.SSTATE.CLEAR) { SND.play('stageclear'); } else { SND.play('stagefailure'); } G.UI.Clock.stageEnd(); GBG.stageEnd(this.state == G.SSTATE.CLEAR); } ++this.endcount; if (this.endcount >= 120) { if (this.endcount == 120) { G.gameEndInit(); } if (X.trans_end == 1) { return G.PHASE.RESULT; } } } }; GBG.init(); G.EF = new effects(G.scene_mc, G.INDX.EF); G.stage.init(X.STG.currentStage); BGM.play('GAME', 0); }; v1.run = function (f, repeating) { if (!G.pauseInstance) { var v2; if (X.DEBUG && G.MS.move.screenshot > 0) { } else { if (G.phase == G.PHASE.GAME) { var v1 = G.stage.frame; GBG.run(v1); G.MS.run(); G.UI.Clock.run(v1); G.UI.HPGage.run(v1); G.CS.play(v1); v2 = G.stage.play(v1); if (v1 % 7 == 0 && G.MS.useMouse()) { G.EF.set('E_mousestar', {'_x': X.ranNm(G.MS.x + '+-20'), '_y': X.ranNm(G.MS.y + '+-20'), 'zm': X.ranNm('45+-15')}); } G.EF.play(v1); G.elScoreAdd.play(v1); ++G.stage.frame; ++G.gamet; } else { v2 = G.phase_class.run(G.phaset); if (v2 == 'GOTOENDING') { return X.SCENE.ENDING; } } if (X.BTN.backtotitle) { SND.play('cancel'); G.pauseInit(); ++G.phaset; } else { if (v2) { G.phaseSet(v2); } else { ++G.phaset; } } if (X.DEBUG && G.MS.move.debug && !repeating) { G.run(undefined, 1); G.run(undefined, 1); G.run(undefined, 1); G.run(undefined, 1); } } } else { var v3 = G.pauseInstance.run(); if (v3 == G_pause.PHASE.HIDING) { G.pauseEnd(); } if (v3 == G_pause.PHASE.RETRY) { G.pauseEnd(); G.phaseSet(G.PHASE.GAME, 1); X.btn_backtotitle.gotoAndPlay('show'); } if (v3 == G_pause.PHASE.GOTOTITLE) { return X.SCENE.TITLE; } } }; v1.gameEndInit = function () { G.btnReset(); TRANS.set('transition_starwipe_whiteout'); X.btn_backtotitle.gotoAndPlay('hide'); }; v1.isPause = function () { return G.pauseInstance ? true : false; }; v1.pauseInit = function () { G.elStarsBase.preAlpha = G.elStarsBase._alpha; G.elStarsBase._alpha = 0; G.btnReset(1); G.CS.stop(); G.pauseInstance = new G_pause(G.scene_mc, G.INDX.PAUSE); }; v1.pauseEnd = function (onlyDelete) { G.pauseInstance.destruct(); delete G.pauseInstance; G.btnReset(1); if (onlyDelete) { return undefined; } if (G.phase_class) { G.phase_class.btnShow(); } GBG.refineBGMFrame = true; mainButton.show('backtotitle'); G.CS.gotoAndPlay(G.CS._currentframe); G.elStarsBase._alpha = G.elStarsBase.preAlpha; }; v1.btnReset = function (resetclickflag) { mainButton.hide(['gameresult_retry', 'gameresult_retry', 'gameresult_tweet', 'pause_cancel', 'backtotitle', 'pause_backtotitle', 'pause_retry']); if (resetclickflag) { X.clickflag = 0; } }; v1.phaseDelete = function () { if (G.phase_class) { G.phase_class.destruct(); delete G.phase_class; G.phase_class = undefined; } }; v1.phaseSet = function (_p, force) { var v1 = G.phase; G.phase = _p; G.phaset = 0; G.btnReset(1); if (v1 != G.phase || force) { G.phaseDelete(); switch (_p) { case G.PHASE.GAME: G.stage.init(X.STG.currentStage); break; case G.PHASE.PAUSE: break; case G.PHASE.RESULT: G.phase_class = new G_RESULT(G.scene_mc, G.INDX.PHASEMC, G.stage.state == G.SSTATE.CLEAR); } } }; v1.numset = function () {}; v1.addStarCount = function (_val) { G.setStarCount(G.UI.getStar.val + _val); }; v1.setStarCount = function (_val) { G.UI.getStar.val = _val; if (G.stage.stageinfo.norma === 0) { G.UI.getStar.num.setvalSuppressed(_val, 'O'); } else { G.UI.getStar.num.setText(X.spr0(_val, G.STARKETA, 'O') + '/' + X.spr0(G.stage.stageinfo.norma, G.STARKETA, 'O')); } }; v1.addScore = function (_val) { G.setScore(G.UI.score.val + _val); G.elScoreAdd.show(_val); }; v1.setScore = function (_val) { G.UI.score.val = _val; G.UI.score.num.setvalSuppressed(_val, 'O'); }; v1.setHiScore = function (_val) { G.UI.hiscore.val = _val; G.UI.hiscore.num.setvalSuppressed(Math.max(_val, 0), 'O'); }; v1.isEndless = function () { return G.stage.stageinfo.endless; }; v1.getLevelHour = function () { return G.UI.Clock.level_hour; }; v1.getTimeLevelPerFrame = function () { return G.stage.timeLevelPerFrame; }; v1.getKaisyu = function () { var v1 = STAGEINFO.stageMisses[G.stage.num] + STAGEINFO.stageNormas[G.stage.num]; if (G.isEndless()) { v1 = G.stage.getDropCount(G.OBJ.STAR) + G.stage.getDropCount(G.OBJ.STARL); } return v1 <= 0 ? '0.00' : X.spr_after(Math.floor((G.UI.getStar.val / v1) * 10000) / 100, 2) + '%'; }; v1.destruct = function () { G.btnReset(1); if (G.pauseInstance) { G.pauseEnd(1); } X.btn_backtotitle.gotoAndPlay('hide'); G.phaseDelete(); Key.removeListener(G.MS); G.scene_mc.removeMovieClip(); }; v1.PHASE = {'GAME': 1, 'RESULT': 10}; v1.CSST = {'NORMAL': 0, 'JUMP': 1, 'DMG': 4, 'CLEAR': 8, 'KO': 16}; v1.OBJ = {'STAR': 0, 'BOMB': 1, 'FASTBOMB': 2, 'STARL': 3, '_ITEM_BASE': 1000, 'ITEM_CURE': 1000, 'ITEM_SPEEDUP': 1001, 'ITEM_SHIELD': 1002}; v1.OBJColor = {'STAR': 15118454, 'STARL': 15925167, 'BOMB': 11220301, 'FASTBOMB': 11220301, 'ITEM_CURE': 7798628, 'ITEM_SPEEDUP': 7798628, 'ITEM_SHIELD': 7798628}; v1.stage = {'num': 0, 'state': 0, 'LV': {'count': 0, 'prepare': 0, 'xyrg': 0, 'xjump': 0, 'xjumprate': 0, 'yspd': 0, 'shotxprob': 0, 'shotxmin': 0, 'shotxmax': 0}, 'nowcount': 0, 'dropcount': {}, 'lostcount': {}, 'kocount': 0, 'frame': 0, 'stars': [], 'starsIndex': 0, 'shieldTime': 0, 'endcount': 0, 'endByKO': false}; v1.SSTATE = {'ACTIVE': 0, 'FAILURE': 1, 'CLEAR': 2}; v1.INDX = {'BKG': 300, 'CS': 5000, 'GPIC': 5500, 'STAR': 6000, 'EF': 20000, 'UI': 30000, 'CLOCK': 30100, 'HPGAGE': 30300, 'UISCOREADD': 30400, 'PHASEMC': 50000, 'PAUSE': 60000}; v1.KEYCODE = {'LEFT': 37, 'RIGHT': 39, 'UP': 38, 'Z': 90, 'X': 88, 'C': 67, 'S': 83, 'D': 68, 'P': 80, 'ESCAPE': 27}; v1.SCOREKETA = 7; v1.STARKETA = 3; v1.UIdefault = {'stage': {'index': 0}, 'getStar': {'index': 1}, 'score': {'index': 2}, 'hiscore': {'index': 3}}; v1.uichar_w = 20; v1.uichar_h = 22; v1.pre_stage_cleared = 0; ASSetPropFlags(_global.G.prototype, null, 1); } #endinitclip } movieClip 976 __Packages.X { #initclip if (!_global.X) { var v1 = function () {}; _global.X = v1; var v2 = v1.prototype; v1.init = function () { BGM.init(X.INDX.BGMBASE); X.STG.keta = X.STG.max >= 11 ? 2 : 1; X.btn_backtotitle = _root.attachMovie('button_backtotitle_b', 'button_backtotitle_b', X.INDX.OPTBTN_BACKTOTITLE); X.btn_backtotitle.gotoAndStop(1); X.run_instance.snbtn = new SND(); X.run_instance.TRANS = new TRANS(); ANN.init(_root, X.INDX.ANNOUNCE); X.clearedStage = X.Nm(X.Cookie('mgst_stch_cleared'), -1, true); if (X.DEBUG) { X.clearedStage = Math.max(X.clearedStage, 3); } X.clearedStage = X.MMX(-1, X.clearedStage, X.STG.max - 2); X.Cookie('mgst_stch_cleared', X.clearedStage); X.setScene(X.SCENE.LOADING); if (X.DEBUG) { if (X.DEBUGSHOWLOG) { var v2 = 0; while (v2 < 3) { X.DLOG[v2] = new DEBUGLOG(_root, 0, 10 + v2 * 17, X.INDX.DLOG + v2, 'debug'); ++v2; } } } v2 = 0; while (v2 < X.STG.max) { X.STG.hiscores[v2] = X.Nm(X.Cookie('mgst_stch_hiscore_' + v2), 0, true); X.STG.clearRanks[v2] = G_RANK.calc(v2, X.STG.hiscores[v2]); X.Cookie('mgst_stch_hiscore_', X.STG.hiscores[v2]); ++v2; } X.initProto(); }; v1.run = function () { X.Msx = _root._xmouse; X.Msy = _root._ymouse; for (var v2 in X.run_instance) { X.run_instance[v2].run(X.f); } ANN.run(); BGM.run(); var v3; v3 = X.scene_instance.run(X.f); if (v3) { X.setScene(v3); } ++X.f; if (X.clickflag >= 1) { ++X.clickflag; } if (X.clickflag == -1) { X.clickflag = 0; } }; v1.setScene = function (_scene) { X.scene = _scene; X.f = 0; X.clickflag = 0; X.trans_end = 0; if (X.scene_instance) { X.scene_instance.destruct(); delete X.scene_instance; } switch (X.scene) { case X.SCENE.LOADING: X.scene_instance = new SC_LOADING(); break; case X.SCENE.TITLE: X.scene_instance = new SC_TITLE(); break; case X.SCENE.GAME: X.scene_instance = new SC_GAME(); break; case X.SCENE.ENDING: X.scene_instance = new SC_ENDING(); } }; v1.mousedown = function () { if (X.clickflag != -1) { ++X.clickflag; } }; v1.mouseup = function () { if (X.clickflag > 0) { X.clickflag = -1; } }; v1.Cookie = function (key, val, defval) { var v1 = flash.external.ExternalInterface.call('Cookie', key, val, defval); if (v1 === '' || v1 === 'undefined' || v1 === undefined) { return ''; } return v1; }; v1.DLOGS = function (i, _txt) { X.DLOG[i].setText(_txt); }; v1.initProto = function () { Array.prototype.sum = function () { var v3 = 0; var v2 = 0; while (v2 < this.length) { v3 += this[v2]; ++v2; } return v3; }; Array.prototype.numberize = function (defval) { var v2 = 0; while (v2 < this.length) { this[v2] = X.Nm(this[v2], defval); ++v2; } return this; }; Array.prototype.isin = function (x) { var v2 = 0; while (v2 < this.length) { if (x == this[v2]) { return v2; } ++v2; } return -1; }; Array.prototype.integerize = function (x) { var v2 = 0; while (v2 < this.length) { this[v2] = Math.floor(this[v2] * 1); ++v2; } return this; }; Array.prototype.sum = function () { var v3 = 0; var v2 = 0; while (v2 < this.length) { v3 += this[v2]; ++v2; } return v3; }; Array.prototype.unshiftS = function (items, kaisu) { items = [].concat(items); kaisu = (kaisu !== undefined) ? kaisu : items.length; var v2 = 0; while (v2 < kaisu) { this.unshift(items[items.length - 1 - v2 % items.length]); ++v2; } return this; }; Array.prototype.pushS = function (items, kaisu) { items = [].concat(items); kaisu = (kaisu !== undefined) ? kaisu : items.length; var v2 = 0; while (v2 < kaisu) { this.push(items[v2 % items.length]); ++v2; } return this; }; String.prototype.getClass = function () { return 'String'; }; Array.prototype.getClass = function () { return 'Array'; }; Boolean.prototype.getClass = function () { return 'Boolean'; }; Number.prototype.getClass = function () { return 'Number'; }; String.prototype.getJSString = function () { return '"' + this + '"'; }; Number.prototype.getJSString = function () { return this + ''; }; Boolean.prototype.getJSString = function () { return this + ''; }; Array.prototype.getJSString = function () { var v3 = []; var v2 = 0; while (v2 < this.length) { v3.push(X.getJSString(this[v2])); ++v2; } return '[' + v3.join(', ') + ' ]'; }; }; v1.getJSString = function (_var) { if (_var === undefined) { return 'undefined'; } else { if (_var.getJSString !== undefined) { return _var.getJSString(); } else { return X.getJSStringObj(_var); } } }; v1.getJSStringObj = function (_obj) { var v2 = []; for (var v3 in _obj) { v2.push(v3 + ':' + X.getJSString(_obj[v3])); } return '{' + v2.join(' ,') + '} '; }; v1.Sin = function (num) { return Math.sin(num); }; v1.Cos = function (num) { return Math.cos(num); }; v1.pow = function (num, n) { if (n === undefined) { n = 2; return Math.pow(num, n); } n = n; return Math.pow(num, n); }; v1.Z0 = function (num) { return 0; }; v1.Z1 = function (num) { return 1; }; v1.ZLINE = function (num) { return X.MMX(0, num, 1); }; v1.MMX = function (minnum, thenum, maxnum) { return Math.max(minnum, Math.min(X.Nm(thenum), maxnum)); }; v1.ZSIN = function (num) { return num <= 0 ? 0 : (num >= 1 ? 1 : Math.sin(X.MMX(0, num, 1) * 0.5 * Math.PI)); }; v1.ZSIN2 = function (num) { return num <= 0 ? 0 : (num >= 1 ? 1 : 1 - X.pow(1 - X.Sin(X.MMX(0, num, 1) * 0.5 * X.PI), 2)); }; v1.ZSINN = function (num, power) { return num <= 0 ? 0 : (num >= 1 ? 1 : 1 - X.pow(1 - X.Sin(X.MMX(0, num, 1) * 0.5 * X.PI), power)); }; v1.ZCOS = function (num) { return num <= 0 ? 0 : (num >= 1 ? 1 : (-X.Cos(X.MMX(0, num, 1) * X.PI) + 1) / 2); }; v1.ZPOW = function (num) { return num <= 0 ? 0 : (num >= 1 ? 1 : X.pow(X.MMX(0, num, 1), 2)); }; v1.ZSINV = function (num) { return num <= 0 ? 0 : (num >= 1 ? 1 : 1 - X.Sin((1 - X.MMX(0, num, 1)) * 0.5 * X.PI)); }; v1.COSI = function (changenum, divnum) { return X.Cos((changenum / divnum) * X.PI * 2); }; v1.getStageValue = function (_val) { if (_val < X.STG.max - 1) { return _val + 1; } else { return 'infinite'; } }; v1.Nm = function (num, isNaNdefault, emptyDefault) { isNaNdefault = (isNaNdefault === undefined) ? 0 : isNaNdefault; if (num === '' && emptyDefault) { return isNaNdefault; } num *= 1; return isNaN(num) ? isNaNdefault : num; }; v1.ranNm = function (v, defaultValue, funcname) { try { var v3; v += ''; v3 = v.indexOf('+-'); if (v3 >= 0) { var v2 = Math.random(); if (funcname == 'ZSINV') { v2 = X.ZSINV(v2); } return X.Nm(v.slice(0, v3) * 1 + (v2 - 0.5) * 2 * v.slice(v3 + 2), defaultValue); } return X.Nm(v, defaultValue); } catch (err) { return X.Nm(v, defaultValue); } }; v1.colToCode = function (cr, cg, cb) { var v1 = X.level2color([cr, cg, cb]); return v1 * 1; }; v1.level2color = function (v) { var v3 = '0x'; var v1 = 0; while (v1 < 3) { var v2 = X.MMX(0, X.ranNm(v[v1]) * 1, 255); if (v2 < 16) { v3 += '0'; } v3 += v2.toString(16); ++v1; } return v3 * 1; }; v1.HSV2COL = function (h, s, v) { return X.level2color(X.HSV2RGB(h, s, v)); }; v1.HSV2RGB = function (h, s, v) { h = X.ranNm(h); s = X.ranNm(s) / 100; v = X.ranNm(v) / 100; while (h < 0) { h += 360; } while (h > 360) { h -= 360; } var v2 = v * s; var v4 = h / 60; var X = v2 * (1 - Math.abs(v4 % 2 - 1)); var v3; if (v4 <= 1) { v3 = [v2, X, 0]; var v5 = v - v2; return [(v5 + v3[0]) * 256, (v5 + v3[1]) * 256, (v5 + v3[2]) * 256]; } if (v4 <= 2) { v3 = [X, v2, 0]; var v5 = v - v2; return [(v5 + v3[0]) * 256, (v5 + v3[1]) * 256, (v5 + v3[2]) * 256]; } if (v4 <= 3) { v3 = [0, v2, X]; var v5 = v - v2; return [(v5 + v3[0]) * 256, (v5 + v3[1]) * 256, (v5 + v3[2]) * 256]; } if (v4 <= 4) { v3 = [0, X, v2]; var v5 = v - v2; return [(v5 + v3[0]) * 256, (v5 + v3[1]) * 256, (v5 + v3[2]) * 256]; } if (v4 <= 5) { v3 = [X, 0, v2]; var v5 = v - v2; return [(v5 + v3[0]) * 256, (v5 + v3[1]) * 256, (v5 + v3[2]) * 256]; } v3 = [v2, 0, X]; var v5 = v - v2; return [(v5 + v3[0]) * 256, (v5 + v3[1]) * 256, (v5 + v3[2]) * 256]; }; v1.int = function (nm) { return Math.floor(nm * 1); }; v1.makeEmptyArray = function (num, youso, concatArray) { var v2 = []; while (num > 0) { --num; v2.push(youso); } if (concatArray) { return v2.concat(concatArray); } return v2; }; v1.makeCountUpArray = function (num, start, cup) { var v4 = []; if (start === undefined) { start = 0; } if (cup === undefined) { cup = 1; } var v3; if (num < 0) { v3 = -num; } while (num) { --num; v4.push(start); start += cup; if (v3 !== undefined) { if (start >= v3) { break; } } } return v4; }; v1.arrayDupe = function (srcArray, lgt) { var v2 = []; try { if (lgt === undefined) { lgt = srcArray.length; } var v1 = 0; while (v1 < lgt) { v2[v1] = srcArray[v1]; ++v1; } } return v2; }; v1.objDupe = function (srcObject) { var v2 = {}; for (var v3 in srcObject) { v2[v3] = srcObject[v3]; } return v2; }; v1.objMerge = function (descObject, srcObject, noReplace) { if (!descObject) { return srcObject; } if (!srcObject) { return descObject; } for (var v4 in srcObject) { if (noReplace) { if (descObject[v4] !== undefined) { continue; } } descObject[v4] = srcObject[v4]; } return descObject; }; v1.countObjItems = function (obj) { var v1 = 0; for (var v3 in obj) { ++v1; } return v1; }; v1.bitsToArray = function (bits, maxitem) { var v3 = maxitem ? X.makeEmptyArray(maxitem, false) : []; var v2 = 0; bits = int(Math.abs(bits)); while (bits) { v3[v2] = (bits & 1) ? true : false; bits >>= 1; ++v2; } return v3; }; v1.arrayToBits = function (array, maxitem) { var v1 = 0; var v2 = maxitem ? maxitem : array.length; while (v2 > 0) { v1 <<= 1; --v2; v1 += array[v2] ? 1 : 0; } return v1; }; v1.getArrayRealNum = function (_array, _real) { var v2 = X.MMX(0, Math.floor(_real), _array.length - 1); var v5 = X.MMX(0, Math.floor(_real + 1), _array.length - 1); var v1 = _real - v2; return _array[v2] * (1 - v1) + _array[v5] * v1; }; v1.shuffle = function (array) { var v5 = array.length; var v4 = 0; while (v4 < (v5 - 1) * 23) { var v3 = int(Math.random() * v5); var v2 = int(Math.random() * v5); var v6 = array[v3]; array[v3] = array[v2]; array[v2] = v6; ++v4; } }; v1.XD = function (dir) { return ((dir + 1) % 2) * (dir - 1); }; v1.YD = function (dir) { return (dir % 2) * (dir - 2); }; v1.XDN = function (dir) { return int(dir) % 2 ? -1 : 1; }; v1.YDN = function (dir) { return int(dir / 2) % 2 ? -1 : 1; }; v1.LENGTHXY = function (the_x1, the_y1, the_x2, the_y2) { return Math.sqrt(Math.pow(the_x1 - the_x2, 2) + Math.pow(the_y1 - the_y2, 2)); }; v1.GetAngle = function (xloc1, yloc1, xloc2, yloc2) { return Math.atan2(yloc2 - yloc1, xloc2 - xloc1) / 6.283185307179586; }; v1.GetAngleR = function (xloc1, yloc1, xloc2, yloc2) { return Math.atan2(yloc2 - yloc1, xloc2 - xloc1); }; v1.ROTA2 = function (_ary, agR) { return [_ary[0] * Math.cos(agR) - _ary[1] * Math.sin(agR), _ary[0] * Math.sin(agR) + _ary[1] * Math.cos(agR)]; }; v1.ZMA2 = function (_ary, zmx, zmy) { if (zmy === undefined) { zmy = zmx; } return [_ary[0] * zmx, _ary[1] * zmy]; }; v1.spr0 = function (x, keta, suppresschar) { suppresschar = (suppresschar !== undefined) ? suppresschar : 0; x += ''; var v4 = (x.split('')).length; var v1 = v4; while (v1 < keta) { x = suppresschar + x; ++v1; } return x; }; v1.spr_after = function (_val, kurai) { kurai = int(kurai); if (_val == 0) { _val = '0.'; var v1 = 0; while (v1 < kurai) { _val += '0'; ++v1; } return _val; } _val *= int(X.pow(10, kurai)); _val = (_val + '').split(''); _val.splice(-kurai, 0, '.'); return _val.join(''); }; v1.MCdrawCircle = function (mc, x, y, radius) { var v9 = 0; var v7 = Math.ceil(radius * 2 * X.PI / 6); var v8 = 2 * X.PI / v7; var v1 = v9; var v2 = 0; while (v2 < v7) { if (!v2) { mc.moveTo(x + radius * X.Cos(v1), y + radius * X.Sin(v1)); } else { mc.lineTo(x + radius * X.Cos(v1), y + radius * X.Sin(v1)); } v1 += v8; ++v2; } mc.lineTo(x + radius, y + 0); }; v1.MCdrawArk = function (mc, x, y, radius, sangR, dangR, __color, __alpha) { mc.beginFill(__color, __alpha); var v9 = 2 * X.PI / 24; var v10 = Math.ceil(Math.abs(dangR - sangR) / v9); v9 = (dangR - sangR) / v10; mc.moveTo(x, y); var v5 = sangR; var v2 = 0; while (v2 <= v10) { var v4 = radius * X.Cos(v5); var v3 = radius * X.Sin(v5); mc.lineTo(x + v4, y + v3); if (v2 % 20 == 19) { mc.endFill(); mc.beginFill(__color, __alpha); mc.moveTo(x, y); mc.lineTo(x + v4, y + v3); } v5 += v9; ++v2; } mc.endFill(); }; v1.MCkadomaruRect = function (mc, x, y, w, h, radius, __color, __alpha) { var v16 = x - w / 2; var v15 = y - h / 2; radius = Math.min(Math.min(radius, w / 2), h / 2); var v2 = 0; while (v2 < 9) { var v3; var v8; var v7; var v6; var v5; var v9; var v10; switch (v2) { case 0: v3 = radius; v8 = radius; v7 = -0.5; break; case 2: v3 = 0; v8 = radius; v7 = -0.25; break; case 6: v3 = radius; v8 = 0; v7 = 0.25; break; case 8: v3 = 0; v8 = 0; v7 = 0; } v6 = [0, radius, w - radius][v2 % 3] + v16; v5 = [0, radius, h - radius][int(v2 / 3) % 3] + v15; if (v3 !== undefined) { X.MCdrawArk(mc, v6 + v3, v5 + v8, radius, v7 * X.PI * 2, (v7 + 0.25) * X.PI * 2, __color, __alpha); } else { v9 = [radius, w - radius * 2, radius][v2 % 3]; v10 = [radius, h - radius * 2, radius][int(v2 / 3) % 3]; mc.beginFill(__color, __alpha); mc.moveTo(v6, v5); mc.lineTo(v6 + v9, v5); mc.lineTo(v6 + v9, v5 + v10); mc.lineTo(v6, v5 + v10); mc.endFill(); } ++v2; } }; v1.SCENE = {'LOADING': 1, 'TITLE': 2, 'GAME': 3, 'ENDING': 4}; v1.DEBUG = 0; v1.DEBUGJUMP = X.SCENE.TITLE; v1.DEBUGCURRENTSTAGE = 8; v1.DEBUGSKEY = 0; v1.DEBUGGETALLSTAR = 0; v1.DEBUGNODAMAGE = 0; v1.DEBUGOWATA = 0; v1.DEBUGSHOWLOG = 0; v1.STREAMINGBGM = false; v1.DLOG = []; v1.w = 800; v1.h = 600; v1.fps = 60; v1.underpos = 360; v1.underpos_star = X.underpos - 8; v1.initpos_star = -23; v1.lmargin = 50; v1.gravity = [0.29, 0.63]; v1.xspdmax = [6, 10]; v1.xax = [0.8, 2.8]; v1.xaxfl = [0.2, 2.8]; v1.dmgstan = [53, 41]; v1.kostan = 400; v1.korecover = 50; v1.korecover_by_click = 2; v1.korecovercount_by_click = 30; v1.yjumpmax = [-8.199999999999999, -13]; v1.yspdmax = [9, 16]; v1.yspdstart = -20; v1.yspdfin = -3.3; v1.shieldItem = 1; v1.scoreLines = [[113, 80], [193, 160], [X.underpos - 47, X.underpos - 19]]; v1.scoreOfStar = [800, 500, 1000, 300]; v1.scoreOfStarOnGround = 100; v1.scoreOfBomb = 50; v1.speedUpTime = 420; v1.shieldTime = 400; v1.shieldStarOne = 160; v1.initWait = 150; v1.endWait = 60; v1.clearedStage = -1; v1.STG = {'max': 9, 'columns': 4, 'rows': 2, 'currentStage': X.DEBUGCURRENTSTAGE, 'keta': 1, 'hiscores': [], 'clearRanks': [], 'allowEndlessStage': 1, 'allowAllStage': 1, 'endlessStageAllowClear': 4, 'omake2Rank': 3, 'omake3Rank': 4}; v1.trans_end = -1; v1.scene_instance = {}; v1.run_instance = {}; v1.Msx = X.w / 2; v1.Msy = X.h / 2; v1.clickflag = 0; v1.BTN = {}; v1.BTNINSTANCE = {}; v1.INDX = {'MESHPATTERN': 100, 'OPTBTN_BACKTOTITLE': 9900, 'TRANS': 9950, 'OPTBTN': 10030, 'ANNOUNCE': 12000, 'SND': 1000000, 'BGMBASE': 1010000, 'DLOG': 900000}; v1.PI = Math.PI; ASSetPropFlags(_global.X.prototype, null, 1); } #endinitclip } movieClip 977 __Packages.BGM { #initclip if (!_global.BGM) { var v1 = function () {}; _global.BGM = v1; var v2 = v1.prototype; v1.init = function (_zindex) { BGM.elBase = _root.attachMovie('empty_as', '__BGM__BASE', _zindex); }; v1.load = function (__bgm, streaming) { var S; if (!BGM.snd[__bgm]) { if (X.STREAMINGBGM) { var v4 = new NetConnection(); v4.connect(null); S = new NetStream(v4); S.bgmname = BGM.bgmname[__bgm]; S.myConnectNc = v4; S.bgmLoaded = false; S.bgmPlaying = false; S.count = 0; S.bgmduration = BGM.bgmduration[__bgm]; S.mcElem = BGM.elBase.createEmptyMovieClip('__BGM__' + __bgm, BGM.elBase.getNextHighestDepth()); S.mcElem.attachAudio(S); S.prePosition = -1; S.setBufferTime(15); S.onStatus = function (infoObj) { if (infoObj !== 'NetStream.Buffer.Flush') { } else { return undefined; } if (!this.bgmLoaded) { this.bgmLoaded = true; this.bgmStop(); this.setVolume(BGM.volume); } this.checkTime(); }; S.checkTime = function () { this.count = Math.round((this.bgmduration - this.time) * X.fps); }; S.bgmStart = function (f) { this.setBufferTime(15); if (f !== undefined) { this.seek(f); } this.bgmPlaying = true; this.pause(false); this.prePosition = -1; }; S.getPos = function () { return this.time * 1000; }; S.bgmStop = function () { this.bgmPlaying = false; this.pause(true); }; S.setVolume = function (val) { var v2 = new Sound(this.mcElem); v2.setVolume(val); }; S.isEnded = function () { if (this.time >= 10) { X.DLOGS(0, this.time + ' // ' + this.bgmduration + ' // timeFromByte: ' + (this.getInfo()).audioBufferByteLength / BGM.kbps); } var v2 = this.bgmPlaying && (this.prePosition == this.time || this.time > this.bgmduration); this.prePosition = this.time; return v2; }; S.play(BGM.bgmname[__bgm] + '.m4a'); BGM.snd[__bgm] = S; } else { BGM.snd[__bgm] = new Sound(_root); S = BGM.snd[__bgm]; S.loadSound(BGM.bgmname[__bgm] + '.mp3', streaming); S.bgmduration = BGM.bgmduration[__bgm]; S.bgmloop = BGM.bgmloop[__bgm]; S.success = false; S.bgmname = BGM.bgmname[__bgm]; S.bgmkey = __bgm; S.count = 0; S.onLoad = function (success) { S.success = success; this.bgmStop(); this.checkTime(); this.bgmLoaded = true; }; S.bgmStart = function (f) { if (!this.success) { return undefined; } this.bgmPlaying = true; this.start(f); }; S.onSoundComplete = function () { if (this.bgmloop !== undefined && this.bgmPlaying) { this.stop(); this.bgmStart(this.bgmloop); this.setVolume(BGM.volume * this.fadeouting); } }; S.getPos = function () { if (!this.success) { return undefined; } return this.position; }; S.checkTime = function () { this.count = X.int((this.bgmduration - this.position / 1000) * X.fps); }; S.bgmStop = function () { this.bgmPlaying = false; this.stop(); }; S.isEnded = function () { return this.count <= 1; X.DLOGS(2, this.count + ' //' + this.position / 1000 + ' // ' + this.bgmduration); return this.bgmduration - this.position / 1000 <= 0; }; S.bgmStop(); } } else { S = BGM.snd[__bgm]; } S.fadeouting = 1; S.setVolume(BGM.volume); }; v1.isPlaying = function (__bgm) { var v1 = BGM.snd[__bgm]; if (v1) { if (v1.bgmLoaded) { return v1.bgmPlaying; } } return false; }; v1.isLoaded = function (__bgm) { var v1 = BGM.snd[__bgm]; if (v1) { if (v1.bgmLoaded) { return true; } } return false; }; v1.play = function (__bgm, f) { var v1 = BGM.snd[__bgm]; if (v1) { f = (f !== undefined) ? f : 0; v1.fadeouting = 1; v1.setVolume(BGM.volume); v1.bgmStart(f); } }; v1.getPos = function (__bgm) { var v1 = BGM.snd[__bgm]; if (v1) { return v1.getPos(); } return undefined; }; v1.setOnOff = function (_flag) { BGM.volume = _flag ? BGM.defVolume : 0; for (var v2 in BGM.snd) { var v1 = BGM.snd[v2]; if (v1) { v1.setVolume(BGM.volume * v1.fadeouting); } } }; v1.fadeout = function (__bgm, dep) { dep = (dep !== undefined) ? dep : 0; var v1 = BGM.snd[__bgm]; if (v1) { if (v1.bgmPlaying) { BGM.fadeouting[__bgm] = {'f': 0, 'dep': dep, 'start': v1.fadeouting}; } } }; v1.run = function () { var v3 = []; for (var v4 in BGM.fadeouting) { ++BGM.fadeouting[v4].f; var v1 = BGM.snd[v4]; v1.fadeouting = BGM.fadeouting[v4].start + (BGM.fadeouting[v4].f / 70) * (BGM.fadeouting[v4].dep - BGM.fadeouting[v4].start); if (BGM.fadeouting[v4].f >= 70) { v3.push(v4); if (BGM.fadeouting[v4].dep <= 0) { v1.bgmStop(); } } v1.setVolume(BGM.volume * v1.fadeouting); } var v2 = 0; while (v2 < v3.length) { delete BGM.fadeouting[v3[v2]]; ++v2; } }; v1.kbps = 48000; v1.bgmname = {'TITLE': 'swffile/intro_l', 'GAME': 'swffile/gamebgm_l'}; v1.bgmduration = {'TITLE': 58.182, 'GAME': 119.353}; v1.bgmloop = {'TITLE': 14.545, 'GAME': 22.296}; v1.snd = {}; v1.defVolume = 100; v1.volume = 100; v1.fadeouting = {}; ASSetPropFlags(_global.BGM.prototype, null, 1); } #endinitclip } movieClip 978 __Packages.SND { #initclip if (!_global.SND) { var v1 = function () { SND.btn = _root.attachMovie('sound_button', 'sound_button', X.INDX.OPTBTN + 0); SND.btn_w = 54; SND.btn_h = 66; SND.btn_x = X.w - SND.btn_w / 2 - 1; SND.btn_y = X.h - SND.btn_h / 2 - 1; SND.btn._x = SND.btn_x; SND.btn._y = SND.btn_y; var v2 = X.Nm((flash.external.ExternalInterface.call('Cookie', 'MGST_DENYSND')).toString()); SND.btn.gotoAndStop(v2 ? 2 : 1); SND.sndflag = !v2; BGM.setOnOff(SND.sndflag); }; _global.SND = v1; var v2 = v1.prototype; v1.play = function (name) { if (SND.sndflag && !SND.seFramePlayed[name]) { var v2 = _root.attachMovie('se_' + name, 'SND' + SND.se.cnt, X.INDX.SND + SND.cnt); v2.play(); SND.se.push(v2); SND.seFramePlayed[name] = 1; SND.cnt = (SND.cnt + 1) % 200; } }; v2.run = function (f) { if (X.clickflag == 1) { if (SND.btn_x - SND.btn_w / 2 - 4 < X.Msx && SND.btn_x + SND.btn_w / 2 + 4 > X.Msx && SND.btn_y - SND.btn_w / 2 - 4 < X.Msy && SND.btn_y + SND.btn_w / 2 > X.Msy + 4) { SND.sndflag = !SND.sndflag; SND.btn.gotoAndStop(SND.sndflag * 1 ? 1 : 2); flash.external.ExternalInterface.call('Cookie', 'MGST_DENYSND', SND.sndflag ? '0' : '1', 128); if (X.scene != X.SCENE.GAME) { X.clickflag = 0; } BGM.setOnOff(SND.sndflag); } } var v2 = 0; if (SND.se.length === 0) { SND.cnt = 0; } while (v2 < SND.se.length) { var v1 = SND.se[v2]; if (v1._currentframe == v1.pre_currentframe || !SND.sndflag) { v1.removeMovieClip(); SND.se.splice(v2, 1); } else { v1.pre_currentframe = v1._currentframe; ++v2; } } SND.seFramePlayed = {}; }; v1.sndflag = true; v1.cnt = 0; v1.se = []; v1.seFramePlayed = {}; ASSetPropFlags(_global.SND.prototype, null, 1); } #endinitclip } movieClip 979 __Packages.TRANS { #initclip if (!_global.TRANS) { var v1 = function () {}; _global.TRANS = v1; var v2 = v1.prototype; v1.set = function (_ttype, __waitflag) { var v2 = X.run_instance.TRANS; if (!v2.frames[_ttype]) { return undefined; } v2.phase = v2.PHASE.TRANSSTART; v2.transf = 0; if (v2.elem) { v2.elem.removeMovieClip(); } v2.waitflag = __waitflag; v2.ttype = _ttype; v2.elem = _root.attachMovie(_ttype, 'TRANS', X.INDX.TRANS); X.trans_end = 0; }; v2.run = function (f) { ++this.transf; if (this.phase == this.PHASE.TRANSSTART) { if (this.transf >= this.frames[this.ttype][0]) { X.trans_end = 1; this.phase = this.PHASE.TRANSWAIT; if (!this.waitflag) { this.myWaitEnd(); } } } else { if (this.phase == this.PHASE.TRANSEND) { if (this.frames[this.ttype][1] < 0) { this.elem._alpha += 100 / this.frames[this.ttype][1]; } if (Math.abs(this.frames[this.ttype][1]) <= this.transf) { this.elem.removeMovieClip(); this.elem = undefined; } } } }; v2.myWaitEnd = function () { if (this.phase == this.PHASE.TRANSWAIT) { this.phase = this.PHASE.TRANSEND; this.transf = 0; if (this.frames[this.ttype][1] > 0) { this.elem.gotoAndPlay('hide'); } } }; v1.waitEnd = function () { var v1 = X.run_instance.TRANS; v1.myWaitEnd(); }; v2.frames = {'transition_starwipe_whiteout': [33, -1], 'transition_starwipe_blackout': [50, -30], 'transition_starclose': [95, -1], 'transition_whitefade': [25, 50], 'transition_whiteopen': [12, 35], 'transition_whiterect_b': [57, -60]}; v2.phase = 0; v2.PHASE = {'TRANSSTART': 1, 'TRANSEND': 2, 'TRANSWAIT': 3}; v2.transf = 0; v2.waitflag = 0; ASSetPropFlags(_global.TRANS.prototype, null, 1); } #endinitclip } movieClip 980 __Packages.ANN { #initclip if (!_global.ANN) { var v1 = function () {}; _global.ANN = v1; var v2 = v1.prototype; v1.init = function (__basemc, __zindex) { ANN.mc = __basemc.createEmptyMovieClip('announces', __zindex); ANN.anns = []; ANN.annCount = 0; }; v1.add = function (key, delay) { var v2 = ANN.makeMc(key); v2.cnt = 0; v2.delay = (delay !== undefined) ? delay : 0; v2.key = key; v2.duration = ANN.annDuration[key] ? ANN.annDuration[key] : ANN.annDurationDefault; v2.run = function () { if (this.delay > 0) { return undefined; } if (this.cnt >= 0) { if (this.cnt == 2) { SND.play('announce'); } this.runShowing(); ++this.cnt; if (this.cnt >= this.duration) { this.cnt = -1; } } else { if (this.runHiding() === false) { return false; } --this.cnt; } }; ANN.anns.push(v2); }; v1.makeMc = function (key) { var v2 = ANN.mc.createEmptyMovieClip('announceitem_' + key, ANN.annCount); v2._x = X.w / 2; v2._y = X.h / 2; ++ANN.annCount; v2.TB = v2.createEmptyMovieClip('textbase', 100); var TB = v2.TB; var v3 = TB.attachMovie('ann_' + key, 'T', 100); var v6 = v3._width; var v8 = v3._height; var v5 = v6 + 98 + 15; var v10 = Math.max(v8, 92); v3._x = v5 / 2 - v6 - 30; v3._y = -v8 / 2; var v11 = TB.attachMovie('announce_icon', 'I', 200); v11._x = -v5 / 2; X.MCkadomaruRect(v2, 0, 0, v5 + 100, v10 + 30, 41, 0, 70); v2._yscale = 0; v2._xscale = 0; TB._yscale = 0; TB._xscale = 0; v2._alpha = 0; TB._alpha = 0; v2.runShowing = function () { var v2 = X.ZSIN(this.cnt / 11); var v3 = X.ZSIN2(this.cnt / 7); this._yscale = (0.2 + 0.8 * v2) * 100; this._xscale = this._yscale; this._alpha = v2 * 100; this.TB._yscale = (0.5 + 0.5 * v3) * 100; this.TB._xscale = this.TB._yscale; this.TB._alpha = v3 * 100; }; v2.runHiding = function () { var v3 = -this.cnt; if (v3 >= 10) { return false; } var v2 = X.ZSINV(v3 / 10); this._yscale = (1 - 0.6 * v2) * 100; this._xscale = this._yscale; this._alpha = (1 - v2) * 100; this.TB._yscale = (1 - 0.4 * v2) * 100; this.TB._xscale = this.TB._yscale; this.TB._alpha = (1 - v2) * 100; }; v2.onPress = function () { if (this.cnt > 20) { this.cnt = -1; } }; v2.onUnload = function () { delete this.onPress; }; return v2; }; v1.run = function () { var v2 = []; var v1; v1 = 0; while (v1 < ANN.anns.length) { if (ANN.anns[v1].delay > 0) { --ANN.anns[v1].delay; } ++v1; } if (ANN.anns.length) { if (ANN.anns[0].run() === false) { ANN.anns[0].removeMovieClip(); ANN.anns.splice(0, 1); } } }; v1.show = function () { var v1 = 0; while (v1 < ANN.anns.length) { if (ANN.anns[v1].delay > 0) { ANN.anns[v1].delay = 0; } ++v1; } }; v1.annDuration = {'allsrank': 300, 'allssrank': 300, 'allsssrank': 450}; v1.annDurationDefault = 200; ASSetPropFlags(_global.ANN.prototype, null, 1); } #endinitclip } movieClip 981 __Packages.DEBUGLOG { #initclip if (!_global.DEBUGLOG) { var v1 = function (basemc, x, y, zIndex, _setText) { if (!X.DEBUG || !X.DEBUGSHOWLOG) { return undefined; } this.mc = basemc.attachMovie('empty_as', 'DEBUGLOG' + zIndex, zIndex); this.mc._x = x; this.mc._y = y; this.mc.txmc = this.mc.createTextField('textfield', 0, 0, 0, X.w, 30); var v2 = new TextFormat(); v2.color = 16725017; v2.size = 9; v2.align = 'left'; v2.rightMargin = 10; v2.leftMargin = 10; v2.font = 'Osaka'; this.mc.txmc.setNewTextFormat(v2); this.setText(_setText); }; _global.DEBUGLOG = v1; var v2 = v1.prototype; v2.setText = function (_setText) { if (_setText != this.tx && this.mc) { this.tx = _setText; this.mc.txmc.text = _setText; } }; ASSetPropFlags(_global.DEBUGLOG.prototype, null, 1); } #endinitclip } movieClip 982 __Packages.G_RANK { #initclip if (!_global.G_RANK) { var v1 = function () {}; _global.G_RANK = v1; var v2 = v1.prototype; v1.calc = function (num, score) { var v3 = 0; var v4 = function (ar) { var v3 = G_RANK.rankMax - 1; var v1 = ar.length - 1; while (v1 >= 0) { if (ar[v1] <= score) { break; } --v3; --v1; } return Math.max(v3, 0); }; v3 = v4(G_RANK.rankScores[num]); return v3; }; v1.getNextRank = function (num, rank) { var v1 = G_RANK.rankScores[num]; if (rank < 0 || rank >= v1.length) { return ''; } return v1[rank]; }; v1.getKeta = function (num, rank) { var v2 = G_RANK.rankScores[num]; if (rank === undefined) { rank = v2.length - 1; } if (rank < 0 || rank >= v2.length) { return 0; } var v3 = v2[rank]; return (v3 + '').length; }; v1.getRankToString = function (rank) { return ['C', 'B', 'A', 'AA', 'S', 'SS', 'SSS'][X.MMX(0, rank, G_RANK.rankMax - 1)]; }; v1.getStringToRank = function (rankstr) { var v1 = ['C', 'B', 'A', 'AA', 'S', 'SS', 'SSS'].isin(rankstr); return v1 < 0 ? 0 : v1; }; v1.rankMax = 7; v1.rankScores = [[1501, 2000, 4500, 7200, 8500, 9000], [3001, 5000, 8000, 12000, 15000, 15800], [2101, 3500, 5500, 7000, 9000, 9400], [4501, 7000, 11000, 15000, 18000, 18250], [4500, 7500, 10100, 16500, 23000, 23250], [5401, 7900, 12000, 15000, 16200, 17100], [7100, 13000, 16600, 19000, 23000, 27100], [23200, 30000, 36300, 41000, 50000, 60000], [1, 45000, 72000, 98700, 144000, 200000]]; ASSetPropFlags(_global.G_RANK.prototype, null, 1); } #endinitclip } movieClip 983 __Packages.SC_LOADING { #initclip if (!_global.SC_LOADING) { var v1 = function () { this.phase = 0; this.scene_mc = _root.attachMovie('sc_loading_b', 'scene_mc', 0); var v3 = this.scene_mc.gage_frame._width; this.gage = this.scene_mc.attachMovie('empty', 'e_loading', 0); this.gage.lineStyle(1, 0, 30); this.gage.moveTo(0, 0); this.gage.lineTo(v3 - 8, 0); this.gage._x = this.scene_mc.gage_frame._x - v3 / 2 + 4; this.gage._y = this.scene_mc.gage_frame._y; this.gage._xscale = 1; this.loadLevel_old = 0; this.loadLevel_v = 0; }; _global.SC_LOADING = v1; var v2 = v1.prototype; v2.run = function (f) { if (this.phase == SC_LOADING.PHASE.LOADING) { var v4 = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; this.loadLevel_old = this.loadLevel_v; this.loadLevel_v = Math.min(v4, this.loadLevel_v + SC_LOADING.loadLevelSlide); this.gage._xscale = this.loadLevel_v; this.gage._alpha = Math.floor(f / 6) % 2 ? 100 : 60; if (this.loadLevel_v >= 100) { this.phase = SC_LOADING.PHASE.LOADEND; this.scene_mc.gotoAndStop(2); } } else { if (this.phase == SC_LOADING.PHASE.LOADEND) { if (X.clickflag == 1) { this.scene_mc.gotoAndPlay('end'); this.phase = SC_LOADING.PHASE.END; SND.play('enter'); var v3 = X.DEBUG ? X.DEBUGJUMP : X.SCENE.TITLE; if (v3 != X.SCENE.TITLE) { BGM.load('GAME', 1); } else { BGM.load('TITLE', 1); } } } else { if (this.phase == SC_LOADING.PHASE.END) { if (this.scene_mc._currentframe == this.scene_mc.pre_currentframe) { var v3 = X.DEBUG ? X.DEBUGJUMP : X.SCENE.TITLE; if (v3 != X.SCENE.TITLE) { X.btn_backtotitle.gotoAndPlay('show'); } return v3; } else { this.gage._alpha -= 14; } } } } this.scene_mc.pre_currentframe = this.scene_mc._currentframe; }; v2.destruct = function () { this.scene_mc.removeMovieClip(); }; v1.PHASE = {'LOADING': 0, 'LOADEND': 1, 'END': 2}; v1.loadLevelSlide = 100; ASSetPropFlags(_global.SC_LOADING.prototype, null, 1); } #endinitclip } movieClip 984 __Packages.SC_TITLE { #initclip if (!_global.SC_TITLE) { var v1 = function () { this.phase = -1; this.btnReset(1); this.scene_mc = _root.attachMovie('sc_title_b', 'scene_mc', 0); SC_TITLE.EF = new effects(this.scene_mc, this.INDX.EF); this.phaseSet(SC_TITLE.PHASE.TITLE); if (!BGM.snd.TITLE) { BGM.load('TITLE', 1); } this.bgmflag = 0; if (SC_TITLE.isStaffRollActive()) { this.scene_mc.sc_title_buttons_b._x += 20; this.scene_mc.sc_title_buttons_b._y -= 70; } }; _global.SC_TITLE = v1; var v2 = v1.prototype; v2.btnReset = function (resetclickflag) { mainButton.hide(['title_story', 'title_start', 'backtotitle', 'title_staffroll', 'title_omake']); if (resetclickflag) { X.clickflag = 0; } }; v2.phaseSet = function (_p) { var v3 = this.phase; this.phase = _p; this.phaset = 0; this.btnReset(1); if (v3 !== SC_TITLE.PHASE.START) { } else { var v2 = 0; while (v2 < this.phase_mc.buttons.length) { mainButton.hideBtn(this.phase_mc.buttons[v2]); ++v2; } mainButton.hide('backtotitle'); } switch (_p) { case SC_TITLE.PHASE.TITLE: mainButton.show(['title_story', 'title_start', 'title_staffroll', 'title_omake']); break; case SC_TITLE.PHASE.STORY: if (this.phase_mc) { this.phase_mc.removeMovieClip(); } this.phase_mc = this.scene_mc.attachMovie('sc_title_p_story_b', 'sc_title_p_story_b', this.INDX.PHASEMC); this.phase_mc._alpha = 100; break; case SC_TITLE.PHASE.START: if (this.phase_mc) { this.phase_mc.removeMovieClip(); } this.phase_mc = this.scene_mc.attachMovie('sc_title_p_stage_b', 'sc_title_p_stage_b', this.INDX.PHASEMC); this.phase_mc._alpha = 100; mainButton.show('backtotitle'); X.btn_backtotitle.gotoAndPlay('show'); break; case SC_TITLE.PHASE.GOTOGAME: } }; v2.run = function (f) { if (this.phase != SC_TITLE.PHASE.GOTOGAME && !this.bgmflag) { if (BGM.isLoaded('TITLE')) { this.bgmflag = 1; BGM.play('TITLE'); } } var v2; if (this.phase == SC_TITLE.PHASE.TITLE) { if (X.BTN.title_story && this.phaset >= 7) { SND.play('enter'); this.phaseSet(SC_TITLE.PHASE.STORY); } else { if (X.BTN.title_start && this.phaset >= 7) { SND.play('enter'); this.phaseSet(SC_TITLE.PHASE.START); this.phase_mc.buttons = []; var v14 = X.w * 0.6; var v13 = X.h * 0.23; var v11 = X.h * 0.37; this.stage_text = this.phase_mc.sc_title_base.attachMovie('hiscore_view_b', 'hiscore_view_b', this.INDX.START_TEXT); this.stage_text.titles = this.stage_text.__mc.textvalue.split('///'); this.stage_text.titles_endless = (this.stage_text.text_endless.split('///'))[1]; this.stage_text.txSet = function (stagenum, _tx1, _tx2, _tx3) { var v4 = ['', _tx1, _tx2, _tx3]; var v3 = []; var v2 = 1; while (v2 <= 3) { if (v4[v2] !== undefined) { if (v2 == 3) { v3.push(this.titles[v2] + ': ' + G_RANK.getRankToString(v4[v2]) + ' ( ' + X.Nm(G_RANK.getNextRank(stagenum, _tx3 - 1)) + ' - ' + G_RANK.getNextRank(stagenum, _tx3) + ' ) '); } else { if (v2 == 1 && X.getStageValue(stagenum) == 'infinite') { v3.push(this.titles[v2] + ': ' + this.titles_endless); } else { v3.push(this.titles[v2] + ': ' + v4[v2]); } } } ++v2; } this.__mc.textvalue = v3.join(' , '); }; this.stage_text.txSet(); this.stage_text._y = 375; this.phase_mc.tuto = undefined; var v12 = false; v2 = 0; while (v2 < X.STG.max) { if (v2 == X.STG.max - 1) { } else { if (!X.STG.allowEndlessStage) { } else { if (X.clearedStage < X.STG.endlessStageAllowClear && !X.STG.allowAllStage) { } else { if (X.clearedStage + 1 < v2 && !X.STG.allowAllStage) { } else { this.phase_mc.buttons[v2] = this.phase_mc.sc_title_base.attachMovie('stage_button_b', 'stage_button_b', this.INDX.BTN * v2); var v3 = this.phase_mc.buttons[v2]; v3.index = v2; v3.highScore = X.Nm(X.STG.hiscores[v2]); v3.cleared = X.STG.allowAllStage ? v3.highScore > 0 : (X.clearedStage >= v2 || v2 == X.STG.max - 1 && v3.highScore > 0); v12 |= v3.cleared; v3.hovered = 0; v3.clicked = 0; v3._x = X.w / 2; v3.sx = v3._x; v3._y = v11; v3.sy = v3._y; v3.stage_text = this.stage_text; v3.gotoAndStop(1); v3.rank = 0; if (v3.highScore > 0 || v3.cleared) { v3.rank = G_RANK.calc(v2, v3.highScore); v3.rankview = new item_rankstar(v3, 100, 110, v3.rank, false, 0); v3.rankview.moveTo(3.5, 3.5); v3.rankview.setAlpha(v3.cleared ? 100 : 50); } X.STG.clearRanks[v2] = v3.rank; v3.scb = v3.attachMovie('stage_char_base', 'stage_char_base', 200); v3.scb._x = -57; v3.scb._y = 43; if (v2 < X.STG.max - 1) { v3.dx = X.w / 2 + v14 * (-0.5 + (v2 % X.STG.columns) / (X.STG.columns - 1)); v3.dy = v11 + v13 * (-0.5 + Math.floor(v2 / X.STG.columns) / (X.STG.rows - 1)); } else { v3.dx = X.w / 2; v3.dy = X.h * 0.76; } v3.num = new numberShow('stage', v3, 34, 43, 210 + v2, 20, 22, X.STG.keta, 'stage_char_num', X.getStageValue(v2)); v3.setGraphic = function () { this.gotoAndStop(this.cleared * 4 + ((this.clicked && this.hovered) ? 2 : (this.hovered ? 1 : 0)) + 1); if (this.rankview) { this.rankview.setBlendMode(this.clicked ? 'overlay' : (this.hovered ? 'add' : 'normal')); this.rankview.setScale(this.clicked ? 66.666 : 100); } }; v3.setGraphic(); v3.onDragOver = function () { this.hovered = 1; this.setGraphic(); var v2 = STAGEINFO.stageNormas[this.index]; this.stage_text.txSet(this.index, v2 > 0 ? v2 : undefined, this.highScore, !this.rankview ? undefined : this.rank); }; v3.onRollOver = v3.onDragOver; v3.onDragOut = function () { this.hovered = 0; this.setGraphic(); this.stage_text.txSet(); }; v3.onRollOut = v3.onDragOut; v3.onRelease = function () { this.clicked = 0; this.setGraphic(); TRANS.set('transition_starwipe_blackout', true); X.STG.currentStage = this.index; X.BTN.gamestart = 1; var v2 = 0; while (v2 < 7) { SC_TITLE.EF.set('__E_titlebuttonselect', {'_x': this._x, '_y': this._y, 'startf': 3 * v2}); ++v2; } }; v3.onReleaseOutside = function () { this.clicked = 0; this.hovered = 0; this.setGraphic(); }; v3.onPress = function () { this.clicked = 1; this.setGraphic(); }; } } } } ++v2; } if (!v12) { this.phase_mc.tuto = this.phase_mc.sc_title_base.attachMovie('tutorial_is_here', 'tutorial_is_here', this.INDX.TUTO); this.phase_mc.tuto._x = this.phase_mc.buttons[0].dx - 11; this.phase_mc.tuto._y = this.phase_mc.buttons[0].dy - 70; } } else { if (X.BTN.title_staffroll && this.phaset >= 7) { SND.play('enter'); this.phaseSet(SC_TITLE.PHASE.GOTOSTAFFROLL); TRANS.set('transition_starclose'); } else { if (X.BTN.title_omake && this.phaset >= 7) { SND.play('enter'); SC_TITLE.showOmake(); X.BTN.title_omake = 0; } else { if (this.phase_mc) { this.phase_mc._alpha -= 21; if (this.phase_mc._alpha <= 0) { this.phase_mc.removeMovieClip(); this.phase_mc = undefined; } } } } } } if (this.phaset <= 10) { this.scene_mc.sc_title_buttons_b._alpha = Math.min(100, this.scene_mc.sc_title_buttons_b._alpha + 11); } } else { if (this.phase == SC_TITLE.PHASE.START) { var v4 = X.ZSIN2(this.phaset / 18); v2 = 0; while (v2 < X.STG.max) { var v3 = this.phase_mc.buttons[v2]; if (v3.rankview) { v3.rankview.run(); if (!v3.cleared) { v3.rankview.setAlpha(X.int(this.phaset / 20) % 2 ? 24 : 50); } } v3._x = v3.sx * (1 - v4) + v3.dx * v4; v3._y = v3.sy * (1 - v4) + v3.dy * v4; ++v2; } if (this.phase_mc.tuto) { } if (X.BTN.backtotitle) { X.btn_backtotitle.gotoAndPlay('hide'); this.phaseSet(SC_TITLE.PHASE.TITLE); SND.play('cancel'); } if (X.BTN.gamestart) { BGM.load('GAME'); BGM.fadeout('TITLE'); SND.play('gameinit'); SND.play('enter'); this.phaseSet(SC_TITLE.PHASE.GOTOGAME); } } else { if (this.phase == SC_TITLE.PHASE.STORY) { if (X.clickflag == -1) { this.phaseSet(SC_TITLE.PHASE.TITLE); SND.play('cancel'); } } else { if (this.phase == SC_TITLE.PHASE.GOTOGAME) { if (X.trans_end == 1 && BGM.isLoaded('GAME')) { X.trans_end = -1; X.run_instance.TRANS.myWaitEnd(); return X.SCENE.GAME; } } else { if (this.phase == SC_TITLE.PHASE.GOTOSTAFFROLL) { if (X.trans_end == 1) { X.trans_end = -1; G.pre_stage_cleared = -2; return X.SCENE.ENDING; } } } } } this.scene_mc.sc_title_buttons_b._alpha = Math.max(0, this.scene_mc.sc_title_buttons_b._alpha - 11); } SC_TITLE.EF.play(f); ++this.phaset; }; v1.isStaffRollActive = function () { return X.clearedStage >= X.STG.max - 2; }; v1.isEndlessStageRankAA = function () { return X.STG.hiscores[X.STG.max - 1] !== undefined && X.STG.clearRanks[X.STG.max - 1] >= X.STG.omake2Rank; }; v1.isEndlessStageRankS_or_Stage8RankS = function () { return X.STG.hiscores[X.STG.max - 1] !== undefined && X.STG.clearRanks[X.STG.max - 1] >= X.STG.omake3Rank || X.STG.hiscores[X.STG.max - 2] !== undefined && X.STG.clearRanks[X.STG.max - 2] >= X.STG.omake3Rank; }; v1.showOmake = function () { var v1 = []; v1.push([1, '360F7190_000C_47A5_8457_F2695E471431']); if (!SC_TITLE.isStaffRollActive()) { v1[0][0] = 0; v1[0][1] = 'hidden_0'; } v1.push([1, '78E3123555484B7C9F8AD1675A118B92']); if (!SC_TITLE.isEndlessStageRankAA()) { v1[1][0] = 0; v1[1][1] = 'hidden_1'; } v1.push([1, '8AFAA21F20A144EE9084141698BBE1AC']); if (!SC_TITLE.isEndlessStageRankS_or_Stage8RankS()) { v1[2][0] = 0; v1[2][1] = 'hidden_2'; } flash.external.ExternalInterface.call('showOmake', v1); }; v2.destruct = function () { this.btnReset(); if (this.phase_mc) { this.phase_mc.removeMovieClip(); } mainButton.destruct(['title_story', 'title_start', 'title_staffroll', 'gamestart']); this.scene_mc.removeMovieClip(); }; v1.PHASE = {'TITLE': 0, 'CAST': 1, 'START': 2, 'GOTOGAME': 10, 'GOTOSTAFFROLL': 11}; v2.INDX = {'BTN': 100, 'TUTO': 3000, 'START_TEXT': 20000, 'PHASEMC': 5000, 'EF': 7000}; ASSetPropFlags(_global.SC_TITLE.prototype, null, 1); } #endinitclip } movieClip 985 __Packages.effects { #initclip if (!_global.effects) { var v1 = function (base_mc, zindex) { this.effbase = base_mc.attachMovie('empty_as', 'EFFECT_BASE', zindex); this.clear(); }; _global.effects = v1; var v2 = v1.prototype; v2.setEffectBase = function (mc) { this.effbase = mc; if (this.effbase.EF) { var v2 = 0; while (v2 < this.effbase.EF.length) { this.effbase.EF[v2][1].removeMovieClip(); ++v2; } } this.clear(); }; v2.clear = function () { if (this.effbase.EF) { var v2 = 0; while (v2 < this.effbase.EF.length) { this.effbase.EF[v2][1].removeMovieClip(); ++v2; } } this.effbase.EF = []; this.effbase.efIndex = 0; }; v2.set = function (etype, mde) { var i; var j; var k; var __e; var v3; var v2; if (this.effbase.EF.length < effects.efMax) { ++this.effbase.efIndex; var v37 = etype; if (etype.indexOf('__') === 0) { v37 = 'empty_as'; } var v35 = this.effbase.efIndex % effects.efMax; if (effects.SPECIAL_ZINDEX[etype]) { v35 = effects.SPECIAL_ZINDEX[etype]; } var E = this.effbase.attachMovie(v37, 'EF' + v35, v35); E.startf = 0; E.cnt = 0; E.etype = etype; E = X.objMerge(E, mde); switch (etype) { case '__E_titlebuttonselect': E._alpha = 0; E.rects = []; i = 0; while (i < 4) { var v19 = 70 - i * 2; __e = E.attachMovie('empty_as', 'line' + i, i); __e.widthstart = v19; __e.lineWidth = 2.7; __e.lineStyle(__e.lineWidth, 15002871, 90); var v9 = v19 / 2; __e.moveTo(-v9, -v9); __e.lineTo(v9, -v9); __e.lineTo(v9, v9); __e.lineTo(-v9, v9); __e.lineTo(-v9, -v9); E.rects.push(__e); ++i; } E.run = function () { var v3 = X.ZSIN(this.cnt / 9); var v2 = 0; while (v2 < 4) { this.rects[v2]._height = this.rects[v2].widthstart * (1 - v3) + v3 * 190; this.rects[v2]._width = this.rects[v2]._height; ++v2; } this._alpha = 60 * (1 - v3) + 20 * v3; if (this.cnt >= 11) { return false; } }; break; case 'E_mousestar': var v40 = (40 + Math.random() * 120) * ((Math.random() > 0.5) * 2 - 1); E.rany = 0.2 + 0.4 * Math.random(); E._rotation = X.ranNm('180+-180'); E.rotplus = 360 / v40; E.alplus = 3.333333333333334; E._yscale = E.zm; E._xscale = E._yscale; E.run = function () { this._rotation += this.rotplus; this._alpha -= this.alplus; this._y += this.rany + 0.078 * this.cnt; if (this.cnt >= 30) { return false; } }; break; break; case 'E_getstar_b': break; case 'E_getbomb_b': case 'E_breakitem_center_b': case 'E_breakstar_center_b': E.run = function () { if (this.cnt >= 21) { return false; } }; break; case '__whiteout': case '__whitein': case '__blackout': case '__blackin': E.beginFill(etype.indexOf('white') >= 0 ? 16777215 : 0, 100); E.moveTo(0, 0); E.lineTo(mde.w, 0); E.lineTo(mde.w, mde.h); E.lineTo(0, mde.h); E.endFill(); E.outflag = etype.indexOf('out') >= 0; E.afterf = X.Nm(E.afterf); E.run = function () { if (this.cnt >= this.f + this.afterf) { return false; } if (this.outflag) { this._alpha = (1 - this.cnt / this.f) * 100; } else { this._alpha = (this.cnt / this.f) * 100; } }; E._alpha = E.outflag ? 100 : 0; break; case '__GBG_hanabi': var v23 = [[[1, 0]], [[0, 0], [1, 1], [2, 1]], [[1, 0], [3, 0], [3, 1]], [[1, 1], [2, 0], [3, 1], [4, 2]], [[2, 2], [3, 3], [4, 0], [5, 2]], [[4, 3], [5, 4], [6, 1]], [[6, 0], [7, 3], [4, 4]]]; E._x = X.int(E._x / mde.meshw) * mde.meshw; E._y = X.int(E._y / mde.meshw) * mde.meshw; E.hanabiframes = []; E.blendMode = 'add'; i = 0; while (i < v23.length) { __e = E.attachMovie('empty_as', 'hanabi' + i, i); var v5 = v23[i]; var v7 = []; j = 0; while (j < v5.length) { v3 = v5[j][0]; v2 = v5[j][1]; if (v3 != v2) { v7.push([v2, v3]); } ++j; } v5 = v5.concat(v7); v7 = []; j = 0; while (j < v5.length) { v3 = v5[j][0]; v2 = v5[j][1]; if (v3 !== 0) { v7.push([-v3, v2]); } if (v2 !== 0) { v7.push([v3, -v2]); } if (v3 !== 0 && v2 !== 0) { v7.push([-v3, -v2]); } ++j; } v5 = v5.concat(v7); var v15 = [X.ranNm('180+-180'), X.ranNm('80+-20'), X.ranNm('95+-5')]; var v14 = [X.ranNm('180+-180'), X.ranNm('80+-20'), X.ranNm('95+-5')]; var v18 = i / (v23.length - 1); j = 0; while (j < v5.length) { v3 = v5[j][0]; v2 = v5[j][1]; __e.beginFill(X.level2color(X.HSV2RGB(v15[0] * (1 - v18) + v14[0] * v18, v15[1] * (1 - v18) + v14[1] * v18, v15[2] * (1 - v18) + v14[2] * v18)), 100 - 60 * v18); __e.moveTo(v3 * mde.meshw, v2 * mde.meshw); __e.lineTo(v3 * mde.meshw, (v2 + 1) * mde.meshw); __e.lineTo((v3 + 1) * mde.meshw, (v2 + 1) * mde.meshw); __e.lineTo((v3 + 1) * mde.meshw, v2 * mde.meshw); __e.endFill(); __e._alpha = !j ? 100 : 0; ++j; } E.hanabiframes.push(__e); ++i; } E.run = function () { if ((this.cnt + 1) % 7 === 0) { var v2 = (this.cnt + 1) / 7; if (v2 >= this.hanabiframes.length) { return false; } if (v2) { this.hanabiframes[v2 - 1]._alpha = 0; } this.hanabiframes[v2]._alpha = 100; } }; break; case 'G_tutorial': E.gotoAndStop(mde.num + 1); E.run = function () { if (this.cnt == X.initWait) { this.blendMode = 'add'; } this._alpha = X.MMX(0, 240 * (1 - (this.cnt - X.initWait) / 200), 100); if (this._alpha <= 0) { return false; } }; break; case '__G_clearstar': var v36 = Math.random() < 0.4 ? 0 : X.ranNm('3+-1'); var v24 = ((X.ranNm('-36+-36') - 90) / 180) * X.PI; var v32 = X.PI * 2 / 10; var v6 = X.ranNm('18+-6'); E.blendMode = 'add'; var v30 = X.level2color(X.HSV2RGB(X.ranNm('180+-180'), X.ranNm('75+-25'), X.ranNm('90+-10'))); if (v36 > 0) { E.lineStyle(1, v30, 70); } else { E.beginFill(v30, 30); } i = 0; while (i <= 10) { var v21 = v6 * (i % 2 ? 0.4 : 1); var v16 = [v21 * Math.cos(v24), v21 * Math.sin(v24)]; if (i === 0) { E.moveTo(v16[0], v16[1]); } else { E.lineTo(v16[0], v16[1]); } v24 += v32; ++i; } if (v36 <= 0) { E.endFill(v30, 90); } E.xspd = X.ranNm('0+-0.62'); E.yspd = X.ranNm('-5+-2.6'); E._x = X.ranNm(E._x + '+-30'); E._y = X.ranNm(E._y - 30 + '+-18'); E.maxf = X.ranNm('30+-10'); E.run = function () { this._alpha = 240 * (1 - this.cnt / this.maxf); if (this._alpha <= 0) { return false; } this._x += this.xspd; this._y += this.yspd; }; break; case '__GBG_kira': var v22 = [[0, 0], [1, 0], [-1, 0], [0, 1], [0, -1]]; E._x = X.int(E._x / mde.meshw) * mde.meshw; E._y = X.int(E._y / mde.meshw) * mde.meshw; E.blendMode = 'add'; j = 0; while (j < v22.length) { v3 = v22[j][0]; v2 = v22[j][1]; E.beginFill(16776949, !j ? 70 : 60); E.moveTo(v3 * mde.meshw, v2 * mde.meshw); E.lineTo(v3 * mde.meshw, (v2 + 1) * mde.meshw); E.lineTo((v3 + 1) * mde.meshw, (v2 + 1) * mde.meshw); E.lineTo((v3 + 1) * mde.meshw, v2 * mde.meshw); E.endFill(); ++j; } E._alpha = X.ranNm('30+-20'); E.salpha = E._alpha; E.run = function () { this._alpha = this.salpha * (1 - this.cnt / 52); if (this._alpha <= 0) { return false; } }; break; case '__G_getitem': E.circles = []; var v28; switch (mde.objtype) { case G.OBJ.ITEM_CURE: v28 = 16741816; break; case G.OBJ.ITEM_SPEEDUP: v28 = 16749645; break; case G.OBJ.ITEM_SHIELD: v28 = 5111634; } i = 0; while (i < 8) { var v19 = 30; __e = E.attachMovie('empty_as', 'line' + i, i); __e.widthstart = v19; __e.lineWidth = 5; __e.lineStyle(__e.lineWidth, v28, 90); X.MCdrawCircle(__e, 0, 0, v19); __e.cnt = -i * 8; __e._alpha = 0; E.circles.push(__e); ++i; } E.run = function () { var v5 = true; var v3 = 0; while (v3 < this.circles.length) { var v2 = this.circles[v3]; if (v2.cnt >= 0 && v2.cnt < 18) { var v4 = X.ZSIN(v2.cnt / 18); v2._height = v2.widthstart * 2 + v4 * 67; v2._width = v2._height; v2._alpha = 120 * (1 - v4); v5 = false; } ++v2.cnt; ++v3; } if (v5) { return false; } }; break; case '__G_getstarl': E.erects = []; E.erectsred = []; E.fillrect = function (ef, shx, shy, col, alp) { if (col === undefined) { col = ef.col; alp = ef.alp; } ef.col = col; ef.alp = alp; ef.beginFill(col, alp); ef.moveTo(GBG.meshw * shx, GBG.meshw * shy); ef.lineTo(GBG.meshw * (shx + 1), GBG.meshw * shy); ef.lineTo(GBG.meshw * (shx + 1), GBG.meshw * (shy + 1)); ef.lineTo(GBG.meshw * shx, GBG.meshw * (shy + 1)); ef.endFill(); }; E.sx = Math.round(E._x / GBG.meshw); E.sy = Math.round(E._y / GBG.meshw); E.maxx = X.w / GBG.meshw; E.maxy = X.underpos / GBG.meshw; E._y = 0; E._x = 0; E.run = function () { var v11 = 17; var v13 = this.cnt * 3; var v12 = this.cnt * 3 + 1; var v7 = this.cnt * 3 + 2; if (v7 < v11 * 1.45) { i = -v7; while (i <= v7) { j = -v7; while (j <= v7) { var v6 = Math.abs(i) + Math.abs(j); if (v6 != v13 && v6 != v12 && v6 != v7) { } else { var v5 = this.sx + i; var v3 = this.sy + j; if (v5 < 0 || v5 >= this.maxx || v3 < 0 || v3 >= this.maxy) { } else { var v2 = X.LENGTHXY(0, 0, i, j) / v11; if (v2 - Math.random() * 0.04 > 1) { } else { var v4 = Math.random() < 0.035 && v3 < this.maxy - 1; __e = this.attachMovie('empty_as', 'particle_' + this.erects.length, this.erects.length * 2); var v10 = this.attachMovie('empty_as', 'particle_red_' + this.erects.length, this.erects.length * 2 + 1); this.fillrect(__e, 0, 0, 8781653, 70); this.fillrect(v10, 0, 0, 15216945, 80); if (v4) { k = 0; while (k < 4) { this.fillrect(__e, X.XDN(k), X.YDN(k)); this.fillrect(v10, X.XDN(k), X.YDN(k)); ++k; } } v10._x = v5 * GBG.meshw; __e._x = v10._x; v10._y = v3 * GBG.meshw; __e._y = v10._y; var v8 = v4 ? X.ZLINE(1.6 - 0.5 * X.ZSINV(v2 / 0.3) - v2 * 0.9) : X.ZLINE(1.6 - 1.3 * X.ZSINV(v2 / 0.3) - v2 * 0.2); __e.dalpha = X.MMX(0, 40 + Math.random() * 70, 100) * v8; v10.blendMode = 'add'; __e.blendMode = 'add'; __e.cnt = Math.min(10, 3 - v2 * 20 + Math.random() * 5) + E.cnt; v10._alpha = __e.cnt >= 0 ? __e.dalpha : 0; __e._alpha = v10._alpha; __e.mcnt = 20 + 10 * Math.random(); if (v4) { __e.mcnt *= 4; } this.erects.push(__e); this.erectsred.push(v10); } } } ++j; } ++i; } } var v14 = true; if (E.cnt % 3 < 1) { var i = 0; while (i < this.erects.length) { var __e = this.erects[i]; if (__e.dalpha > 0) { if (__e.cnt >= 0) { v10 = this.erectsred[i]; var v9 = X.ZLINE(__e.cnt / __e.mcnt); __e._alpha = __e.dalpha * X.ZLINE(1.2 - v9 * 2); v10._alpha = __e.dalpha * X.ZLINE(2.1 - 2.1 * v9); if (v10._alpha < 1) { __e.dalpha = 0; } } v14 = false; __e.cnt += 3; } ++i; } if (v14 && E.cnt >= 4) { return false; } } }; break; case '__G_playerAfterImage': __e = E.attachMovie('CS', 'CS', 1000); __e.gotoAndStop(mde.cframe); E.blendMode = 'add'; var v38 = new Color(__e); var v34 = X.HSV2RGB(mde.f / 0.24, 90 + 10 * X.COSI(mde.f, 190), 90 + 10 * X.COSI(mde.f, 230)); var v39 = {'rb': 0, 'gb': 0, 'bb': 0, 'ab': 0, 'ra': (v34[0] / 256) * 99, 'ga': (v34[1] / 256) * 99, 'ba': (v34[2] / 256) * 99, 'aa': 80 + 20 * X.COSI(mde.f, 320)}; v38.setTransform(v39); E.run = function () { this._alpha = 30 * X.MMX(0, 1.9 - 1.9 * this.cnt / 15, 1); if (this._alpha <= 0) { return false; } }; break; case 'G_speedup': E.blendMode = 'add'; E.run = function () { this._alpha = 80 * X.MMX(0, 1.9 - 1.9 * this.cnt / 60, 1); if (this._alpha <= 0) { return false; } }; break; case 'G_shieldstart_b': E.blendMode = 'add'; E.sheight = E._height; E.run = function () { this._height = this.sheight * (2.7 + X.ZSIN(this.cnt / 20) + 1 + X.ZSIN(this.cnt / 70)); this._alpha = 50 * (1 + X.COSI(this.cnt, 33) * 0.13) * X.MMX(0, 1.9 - 1.9 * this.cnt / 70, 1); if (this._alpha <= 0) { return false; } }; break; case 'G_shield_b': E.blendMode = 'add'; E.sheight = E._height; E.run = function () { this._height = this.sheight * (1 + 1.6 * X.ZPOW(this.cnt / 14)); var v2 = G.stage.shieldTime > 0 ? 20 : 7; this._alpha = v2 * X.MMX(0, 1.5 - 1.5 * this.cnt / 21, 1); if (this._alpha <= 0) { return false; } }; break; case 'G_koend': E.run = function () { this._x = this.adjustLoc.x; this._y = this.adjustLoc.y; if (this.cnt >= 55) { return false; } }; break; default: E.run = function () { return false; }; } this.effbase.EF.push([etype, E]); } }; v2.play = function () { if (this.effbase) { var v3 = 0; while (v3 < this.effbase.EF.length) { var v2 = this.effbase.EF[v3][1]; var v4 = this.effbase.EF[v3][0]; if (v2._width === undefined) { this.effbase.EF.splice(v3, 1); } else { if (v2.startf > 0) { --v2.startf; ++v3; } else { if (v2.run() === false) { v2.removeMovieClip(); this.effbase.EF.splice(v3, 1); } else { ++v2.cnt; ++v3; } } } } } }; v1.SPECIAL_ZINDEX = {'G_tutorial': 3000}; v1.efMax = 200; ASSetPropFlags(_global.effects.prototype, null, 1); } #endinitclip } movieClip 986 __Packages.GBG { #initclip if (!_global.GBG) { var v1 = function () {}; _global.GBG = v1; var v2 = v1.prototype; v1.init = function () { GBG.elem = G.scene_mc.attachMovie('empty_as', 'GBG', G.INDX.BKG); var v17 = new meshpattern(GBG.meshw, 1, 0, 100, GBG.elem, 0, 0, X.w, X.underpos - 2); GBG.nextbeattiming = 0; GBG.meshx = v17.mw; GBG.meshy = v17.mh; GBG.elBkg = GBG.elem.attachMovie('empty_as', 'BKG', GBG.INDX.BKG); var v5 = 0; while (v5 < GBG.meshy) { var v9 = v5 / (GBG.meshy - 1); GBG.elBkg.beginFill(X.level2color(X.HSV2RGB(245, 63 + 33 * v9, 47 + 63 * v9)), 100); GBG.elBkg.moveTo(0, v5 * GBG.meshw); GBG.elBkg.lineTo(X.w, v5 * GBG.meshw); GBG.elBkg.lineTo(X.w, v5 * GBG.meshw + GBG.meshw); GBG.elBkg.lineTo(0, v5 * GBG.meshw + GBG.meshw); GBG.elBkg.endFill(); ++v5; } GBG.elDark = GBG.elem.attachMovie('empty_as', 'DARK', GBG.INDX.DARKS); GBG.elDark.beginFill(1513257, 100); GBG.elDark.moveTo(0, 0); GBG.elDark.lineTo(X.w, 0); GBG.elDark.lineTo(X.w, X.underpos); GBG.elDark.lineTo(0, X.underpos); GBG.elDark.endFill(); if (X.DEBUG && 0) { GBG.elDark.lineStyle(1, 16711680, 100); v5 = 0; while (v5 < 3) { GBG.elDark.moveTo(0, X.scoreLines[v5][0]); GBG.elDark.lineTo(X.w, X.scoreLines[v5][0]); ++v5; } } GBG.elDark._alpha = 0; GBG.elBkgMorning = []; var v6 = 0; while (v6 < 2) { GBG.elBkgMorning[v6] = GBG.elem.attachMovie('empty_as', 'MORNING' + v6, !v6 ? GBG.INDX.BKGMORNING0 : GBG.INDX.BKGMORNING1); GBG.elBkgMorning[v6].blendMode = 'add'; v5 = 0; while (v5 < GBG.meshy) { v9 = v5 / (GBG.meshy - 1); var v12 = !v5 ? X.HSV2RGB(221 * (1 - v9) + 343 * v9, 53 * (1 - v9) + 70 * v9, 90 * (1 - v9) + 97 * v9) : X.HSV2RGB(218 * (1 - v9) + 365 * v9, 47 * (1 - v9) + 59 * v9, 100); GBG.elBkgMorning[v6].beginFill(X.level2color(v12), !v6 ? 70 : 45); GBG.elBkgMorning[v6].moveTo(0, v5 * GBG.meshw); GBG.elBkgMorning[v6].lineTo(X.w, v5 * GBG.meshw); GBG.elBkgMorning[v6].lineTo(X.w, v5 * GBG.meshw + GBG.meshw); GBG.elBkgMorning[v6].lineTo(0, v5 * GBG.meshw + GBG.meshw); GBG.elBkgMorning[v6].endFill(); ++v5; } ++v6; } GBG.elBkgMorningFailure = GBG.elem.attachMovie('morning_b', 'elBkgMorningFailure', GBG.INDX.BKGMORNINGFAILURE); GBG.elBkgMorningFailure._x = 1; GBG.elBkgMorningFailure._y = 1; GBG.elRedLine = GBG.elem.attachMovie('empty_as', 'REDLINE', GBG.INDX.REDLINE); GBG.elRedLine.beginFill(16711752, 50); GBG.elRedLine.moveTo(0, 0); GBG.elRedLine.lineTo(X.w, 0); GBG.elRedLine.lineTo(X.w, GBG.meshw); GBG.elRedLine.lineTo(0, GBG.meshw); GBG.elRedLine.endFill(); GBG.elRedLine._alpha = 0; GBG.elBars = []; GBG.elBarsBase = GBG.elem.attachMovie('empty_as', 'elBarsBase', GBG.INDX.BARS); GBG.elEffectsBase = GBG.elem.attachMovie('empty_as', 'elEffectsBase', GBG.INDX.BGEFFECTS); GBG.elEffects = []; var v2; v5 = 0; while (v5 < 1) { v2 = GBG.elEffectsBase.attachMovie('empty_as', 'elEffects' + GBG.elEffects.length, GBG.elEffects.length); v6 = 0; while (v6 < GBG.meshy - 1) { var v10 = v6; var v13 = v5 ? GBG.meshy - 1 - v10 : v10; GBG.meshFill(v2, [[v13, v10, 30 + 50 * X.ZLINE(v6 / (GBG.meshy - 1))]]); ++v6; } v2.showE = function () { this._x = (Math.floor(Math.random() * (GBG.meshx + GBG.meshy * 2 - 2)) - (GBG.meshy - 1)) * GBG.meshw; if (Math.random() < 0.5) { this._x += this._width; this._xscale = -100; } this._alpha = 100; }; GBG.elEffects.push(v2); ++v5; } v5 = 0; while (v5 < 4) { v2 = GBG.elEffectsBase.attachMovie('empty_as', 'elEffects' + GBG.elEffects.length, GBG.elEffects.length); GBG.meshFill(v2, [[0, 0, 70], [-1, 0, 50], [1, 0], [0, -1], [0, 1]]); v2.showE = function () { this._x = Math.floor(Math.random() * (GBG.meshx - 2) + 1) * GBG.meshw; this._y = Math.floor(Math.random() * 10 + 1) * GBG.meshw; this._alpha = 100; }; GBG.elEffects.push(v2); ++v5; } v5 = 0; while (v5 < 2) { v2 = GBG.elEffectsBase.attachMovie('empty_as', 'elEffects' + GBG.elEffects.length, GBG.elEffects.length); GBG.meshFill(v2, [[0, 0, 70], [-1, -1, 50], [1, -1], [-1, 1], [1, 1], [-2, 0, 30], [2, 0], [0, -2], [0, 2]]); v2.showE = function () { this._x = Math.floor(Math.random() * (GBG.meshx - 4) + 2) * GBG.meshw; this._y = Math.floor(Math.random() * 7 + 2) * GBG.meshw; this._alpha = 80; }; GBG.elEffects.push(v2); ++v5; } v5 = 0; while (v5 < GBG.elEffects.length) { GBG.elEffects[v5]._alpha = 0; ++v5; } GBG.effectsShuffle = X.makeCountUpArray(GBG.elEffects.length); GBG.effectsUse = 0; GBG.elPrepareBase = GBG.elem.attachMovie('empty_as', 'elPrepareBase', GBG.INDX.BGPREPARE); GBG.elPrepareBase.objs = []; var v8 = 7; var v14 = 2; for (v5 in G.OBJ) { var v15 = G.OBJ[v5]; var v16 = v15 < G.OBJ.ITEM_BASE ? 10 : 3; var v11 = G.OBJColor[v5]; if (!v11) { continue; } v6 = 0; while (v6 < v16) { v2 = GBG.elPrepareBase.attachMovie('empty_as', 'elPrepares', GBG.elPrepareBase.objs.length); v2._alpha = 0; v2.blendMode = 'add'; v2.useIt = false; v2.prepare = -1000; v2.startprepare = 1; v2.objtype = v15; v2._y -= GBG.meshw * v14; v2.hide = function () { this.prepare = -1000; this._alpha = 0; }; var v4 = +v14; while (v4 <= 7) { var v3 = -7; while (v3 <= 7) { var v7 = X.LENGTHXY(0, 0, v3, v4); if (v7 <= v8) { v9 = (v8 - v7) / v8; GBG.meshFill(v2, [[v3, v4, 90 * X.ZSIN(v9)]], v11); } ++v3; } ++v4; } GBG.elPrepareBase.objs.push(v2); ++v6; } } GBG.EF = new effects(GBG.elem, GBG.INDX.EF); GBG.nextbeattiming = 0; }; v1.stageInit = function () { GBG.refineBGMFrame = 1; GBG.beatt = X.fps * 60 / GBG.bpm; GBG.beatcount = 0; GBG.elBars.splice(0); GBG.elBarsCount = 0; GBG.appendBarGraph(X.ranNm('0.5+-0.3')); var v1 = 0; while (v1 <= GBG.meshx) { GBG.makeBar(v1); ++v1; } v1 = 0; while (v1 < GBG.elBkgMorning.length) { GBG.elBkgMorning[v1]._alpha = 0; ++v1; } GBG.elPrepareBase._alpha = 100; GBG.elEffectsBase._alpha = 100; GBG.elBkgMorningFailure._alpha = 0; GBG.elBkg._alpha = 100; GBG.EF.clear(); }; v1.stageEnd = function (cleared) { var v1 = 0; while (v1 < GBG.elBars.length) { GBG.elBars[v1].o.removeMovieClip(); ++v1; } GBG.elBars.splice(0); GBG.elDark._alpha = 0; GBG.elRedLine._alpha = 0; GBG.elEffectsBase._alpha = 0; GBG.elPrepareBase._alpha = 0; GBG.elBkg._alpha = cleared ? 100 : 0; GBG.elBkgMorningFailure._alpha = cleared ? 0 : 100; v1 = 0; while (v1 < GBG.elBkgMorning.length) { GBG.elBkgMorning[v1]._alpha = 0; ++v1; } v1 = 0; while (v1 < GBG.elEffects.length) { GBG.elEffects[v1]._alpha = 0; ++v1; } v1 = 0; while (v1 < GBG.elPrepareBase.objs.length) { GBG.elPrepareBase.objs[v1].hide(); ++v1; } GBG.EF.set('__whiteout', {'_x': 0, '_y': 0, 'w': X.w, 'h': X.underpos, 'f': 80}); }; v1.endByKOInit = function () { GBG.EF.set('__blackin', {'startf': 20, '_x': 0, '_y': 0, 'w': X.w, 'h': X.underpos, 'f': 140, 'afterf': 40}); }; v1.appendBarGraph = function (_startval) { var v3 = _startval; while (GBG.elBars.length <= GBG.meshx) { var v7 = X.int(8 + Math.random() * 7); var v6; if (v3 > 0.6) { v6 = X.ranNm(v3 - 0.3 + '+-' + (1 - v3 + 0.2 - 0.1), 'ZSINV'); } else { if (v3 < 0.4) { v6 = X.ranNm(v3 + 0.2 + '+-' + (v3 + 0.2 - 0.07000000000000001), 'ZSINV'); } else { v6 = X.ranNm(v3 + '+-' + 0.32, 'ZSINV'); } } var v11 = v6 - v3; var v4 = Math.random() * 100; var v5 = 0; while (v5 < v7) { var v2 = (v5 + 1) / v7; var v1; if (v4 <= 20) { v1 = X.ZCOS(v2); } else { if (v4 <= 40) { v1 = X.ZSINV(v2); } else { if (v4 <= 60) { v1 = X.ZPOW(v2); } else { if (v4 <= 80) { v1 = X.ZSIN(v2); } else { v1 = X.ZSIN2(v2); } } } } v1 = v3 + v11 * v1; GBG.elBars.push({'level': v1, 'height': Math.ceil(v1 * GBG.meshy), 'o': undefined}); ++v5; } v3 = v6; } }; v1.makeBar = function (_index, _slideBar) { if (!GBG.elBars[_index].o) { var v1; if (!_slideBar) { ++GBG.elBarsCount; GBG.elBars[_index].o = GBG.elBarsBase.attachMovie('empty_as', 'elBars' + GBG.elBarsCount, GBG.elBarsCount); v1 = GBG.elBars[_index].o; v1.beginFill(1973805, 90); v1.moveTo(0, 0); v1.lineTo(GBG.meshw, 0); v1.lineTo(GBG.meshw, -GBG.meshw); v1.lineTo(0, -GBG.meshw); v1.endFill(); v1._y = X.underpos; } else { GBG.elBars[_index].o = _slideBar; v1 = GBG.elBars[_index].o; } v1._height = GBG.elBars[_index].height * GBG.meshw; } v1._x = _index * GBG.meshw; }; v1.beat = function () { --GBG.nextbeattiming; if (GBG.nextbeattiming <= 0) { ++GBG.refineBGMFrame; if (GBG.refineBGMFrame >= 0) { GBG.refineBGMFrame = -4; var v2 = BGM.getPos('GAME'); if (v2 !== undefined) { var v1 = 60000 / GBG.bpm; var v3 = (v2 + X.int(v1 / 2)) % v1 - X.int(v1 / 2); GBG.beatt = v1 - v3; GBG.beatt = (GBG.beatt / 1000) * 60; GBG.beatcount = Math.round(v2 / v1); } else { GBG.beatt = X.fps * 60 / GBG.bpm; ++GBG.beatcount; } } else { GBG.beatt = X.fps * 60 / GBG.bpm; ++GBG.beatcount; } GBG.nextbeattiming += GBG.beatt; return true; } return false; }; v1.run = function (f) { var v11 = GBG.beat(); if (G.stage.state == G.SSTATE.ACTIVE) { var v1; if (v11) { GBG.elDark.startalpha = 170 - 80 * X.ZSINV((f - 40) / 190); GBG.elDark._alpha = GBG.elDark.startalpha; var v7; var v4 = 0; v1 = 0; while (v1 <= GBG.meshx) { if (!v1) { v7 = GBG.elBars[v4].o; GBG.elBars.splice(v1, 1); } else { GBG.elBars[v4].o._x -= GBG.meshw; ++v4; } ++v1; } GBG.appendBarGraph(GBG.elBars[GBG.elBars.length - 1].level); GBG.makeBar(GBG.meshx, v7); v1 = 0; while (v1 < GBG.effectsUse) { GBG.elEffects[GBG.effectsShuffle[v1]]._alpha = 0; ++v1; } if (GBG.beatcount % 2) { var v8 = Math.random() * 100; X.shuffle(GBG.effectsShuffle); GBG.effectsUse = v8 < 10 ? 5 : (v8 < 50 ? 3 : (v8 < 80 ? 2 : 0)); v1 = 0; while (v1 < GBG.effectsUse) { GBG.elEffects[GBG.effectsShuffle[v1]].showE(); ++v1; } } v1 = 0; while (v1 < GBG.elPrepareBase.objs.length) { var v2 = GBG.elPrepareBase.objs[v1]; if (0 > v2.prepare && v2.prepare >= -100) { v2.hide(); } ++v1; } if (GBG.beatcount % 8 >= 5) { var v10 = GBG.beatcount % 8 % 3; GBG.elRedLine._alpha = 100; GBG.elRedLine._y = X.int(X.scoreLines[v10][1] / GBG.meshw) * GBG.meshw; } else { GBG.elRedLine._alpha = 0; } } else { var v9 = GBG.nextbeattiming / GBG.beatt; var v12 = 1 - v9; GBG.elDark._alpha = GBG.elDark.startalpha - 40 * X.ZLINE(v9); } v1 = 0; while (v1 < GBG.elPrepareBase.objs.length) { var v2 = GBG.elPrepareBase.objs[v1]; if (v2.prepare >= 0) { v2._alpha = (1 - v2.prepare / v2.startprepare) * 100; --v2.prepare; } ++v1; } var v5 = Math.min(100, ((G.UI.Clock.getval() - 0.6) / 0.4) * 100); if (v5 > 0) { var v3 = 0; while (v3 < 2) { GBG.elBkgMorning[v3]._alpha = v5 * (!v3 ? 1 : 0.5 + 0.07000000000000001 * X.COSI(f, 17.3)); ++v3; } } } else { if (G.stage.state == G.SSTATE.CLEAR) { if (f % 9 == 0 && G.stage.endcount >= 13) { GBG.EF.set('__GBG_hanabi', {'meshw': GBG.meshw, '_x': Math.random() * X.w, '_y': Math.random() * X.underpos / 2}); } } else { if (f % 7 == 0 && G.stage.endcount >= 13) { GBG.EF.set('__GBG_kira', {'meshw': GBG.meshw, '_x': Math.random() * X.w, '_y': Math.random() * X.underpos / 2}); } } } GBG.EF.play(); }; v1.prepare = function (objtype, xpos, preparetime) { var v2 = 0; while (v2 < GBG.elPrepareBase.objs.length) { var v1 = GBG.elPrepareBase.objs[v2]; if (v1.objtype == objtype && v1.prepare <= -100) { v1.startprepare = preparetime; v1.prepare = v1.startprepare; xpos = X.int((xpos - GBG.meshw / 2) / GBG.meshw) * GBG.meshw; v1._x = xpos; return undefined; } ++v2; } }; v1.meshFill = function (elem, farray, fillcolor) { var v7 = 100; fillcolor = (fillcolor !== undefined) ? fillcolor : 13618114; var v2 = 0; while (v2 < farray.length) { var v4 = farray[v2][0] * GBG.meshw; var v3 = farray[v2][1] * GBG.meshw; var v1 = farray[v2][2]; v1 = (v1 !== undefined) ? v1 : v7; elem.beginFill(fillcolor, v1); elem.moveTo(v4, v3); elem.lineTo(v4 + GBG.meshw, v3); elem.lineTo(v4 + GBG.meshw, v3 + GBG.meshw); elem.lineTo(v4, v3 + GBG.meshw); elem.endFill(); v7 = v1; ++v2; } }; v1.meshw = 20; v1.INDX = {'BKG': 0, 'BKGMORNING0': 10, 'BGEFFECTS': 50, 'BARS': 70, 'BGPREPARE': 71, 'REDLINE': 78, 'DARKS': 80, 'BKGMORNING1': 83, 'BKGMORNINGFAILURE': 82, 'EF': 85, 'MESH': 100}; v1.bpm = 173; v1.elBars = []; v1.elBkgMorning = []; v1.elEffects = []; ASSetPropFlags(_global.GBG.prototype, null, 1); } #endinitclip } movieClip 987 __Packages.meshpattern { #initclip if (!_global.meshpattern) { var v1 = function (_meshw, _linew, _linecol, _linealpha, _appendTo, sx, sy, dx, dy) { this.meshw = Math.floor(_meshw); sx = (sx !== undefined) ? sx : 0; sy = (sy !== undefined) ? sy : 0; dx = (dx !== undefined) ? dx : X.w; dy = (dy !== undefined) ? dy : X.h; this.linew = _linew; this.linecol = _linecol; this.linealpha = _linealpha; if (!_appendTo) { _appendTo = _root; } this.e = _appendTo.attachMovie('empty', 'meshbkg', X.INDX.MESHPATTERN); this.mw = Math.ceil((dx - sx) / this.meshw); this.mh = Math.ceil((dy - sy) / this.meshw); var v12 = this.meshw - sx % this.meshw; var v11 = this.meshw - sy % this.meshw; this.e.lineStyle(this.linew, this.linecol, this.linealpha); var v6 = 0; while (v6 <= this.mw) { var v4 = v12 + sx + v6 * this.meshw; if (v4 >= dx) { break; } this.e.moveTo(v4, sy); this.e.lineTo(v4, dy); ++v6; } var v5 = 0; while (v5 <= this.mh) { var v3 = v11 + sy + v5 * this.meshw; if (v3 >= dy) { break; } this.e.moveTo(sx, v3); this.e.lineTo(dx, v3); ++v5; } }; _global.meshpattern = v1; var v2 = v1.prototype; ASSetPropFlags(_global.meshpattern.prototype, null, 1); } #endinitclip } movieClip 988 __Packages.mainButton { #initclip if (!_global.mainButton) { var v1 = function (title, text, basemc, _zindex, autoShow) { mainButton.destruct(title); var v2 = 'mainButton_1'; if (text == 'tweet') { v2 += '_tweet'; } if (text == 'staffroll') { v2 += '_staffroll'; } this.btn = basemc.attachMovie(v2, 'mainButton_' + title + _zindex, _zindex); this.btn.title = title; this.btn.txelem = this.btn.attachMovie('mainButton_tx_' + text, title + '_tx', 1000); this.btn.clicked = 0; this.btn.hovered = 0; this.btn.active = -1; this.btn.setGraphic = function () { var v2 = ((this.clicked && this.hovered) ? 2 : (this.hovered ? 1 : 0)) + 1; this.gotoAndStop(v2); this.txelem.gotoAndStop(v2); }; this.btn.onUnload = function () { mainButton.destruct(this); }; X.BTN[title] = 0; X.BTNINSTANCE[title] = this.btn; if (autoShow !== false) { mainButton.show(title); } this.btn.setGraphic(); }; _global.mainButton = v1; var v2 = v1.prototype; v1.show = function (thekeys) { thekeys = [].concat(thekeys); var v3 = 0; while (v3 < thekeys.length) { var v2 = X.BTNINSTANCE[thekeys[v3]]; if (v2) { if (v2.active != 1) { v2.active = 1; v2.clicked = 0; v2.hovered = 0; v2.onDragOver = function () { this.hovered = 1; this.setGraphic(); }; v2.onRollOver = v2.onDragOver; v2.onDragOut = function () { this.hovered = 0; this.setGraphic(); }; v2.onRollOut = v2.onDragOut; v2.onRelease = function () { this.clicked = 0; this.setGraphic(); X.BTN[this.title] = 1; }; v2.onReleaseOutside = function () { this.clicked = 0; this.hovered = 0; this.setGraphic(); }; v2.onPress = function () { this.clicked = 1; this.setGraphic(); }; v2.setGraphic(); } } X.BTN[thekeys[v3]] = 0; ++v3; } }; v1.hide = function (thekeys) { thekeys = [].concat(thekeys); var v2 = 0; while (v2 < thekeys.length) { var v1 = X.BTNINSTANCE[thekeys[v2]]; if (v1) { if (v1.active == 1) { v1.clicked = 0; v1.hovered = 0; mainButton.hideBtn(v1); v1.active = 0; v1.setGraphic(); } } X.BTN[thekeys[v2]] = 0; ++v2; } }; v1.destruct = function (thekeys) { mainButton.hide(thekeys); thekeys = [].concat(thekeys); var v1 = 0; while (v1 < thekeys.length) { var v3 = X.BTNINSTANCE[thekeys[v1]]; if (v3) { delete X.BTNINSTANCE[thekeys[v1]]; } ++v1; } }; v1.hideBtn = function (__btnInstance) { delete __btnInstance.onRollOver; delete __btnInstance.onRollOut; delete __btnInstance.onDragOver; delete __btnInstance.onDragOut; delete __btnInstance.onRelease; delete __btnInstance.onReleaseOutside; delete __btnInstance.onPress; }; ASSetPropFlags(_global.mainButton.prototype, null, 1); } #endinitclip } movieClip 989 __Packages.item_rankstar { #initclip if (!_global.item_rankstar) { var v1 = function (__mc, __zindex, __zindexbkg, __rank, __effectflag, __delay) { __delay = (__delay !== undefined) ? __delay : 0; this.cnt = -X.int(__delay); this.rank = __rank; this.mc = __mc.attachMovie('rankstar_b', 'rankstar_b', __zindex); this.effectflag = __effectflag; this.elStarCenBase = this.mc.createEmptyMovieClip('elStarCenBase', item_rankstar.INDX.CENTER); this.elStarCen = []; var v3; var v2 = 0; while (v2 < 2) { this.elStarCen[v2] = this.elStarCenBase.attachMovie('rankstar_center', v2, v2); v3 = this.elStarCen[v2]; v3.blendMode = v2 ? (this.rank >= 3 ? 'multiply' : 'add') : 'normal'; v3._x -= 30; v3._y -= 30; v3.gotoAndStop(this.rank + 1); ++v2; } this.elStarChar = this.mc.attachMovie('rankstar_char', 'elStarChar', item_rankstar.INDX.CHAR); this.elStarChar._x = -28; this.elStarChar.cx = -28; this.elStarChar._y = -18; this.elStarChar.cy = -18; this.elStarChar._alpha = 0; this.elStarChar.gotoAndStop(this.rank + 1); if (this.effectflag) { this.elStarOut = []; this.elStarOutBase = this.mc.createEmptyMovieClip('elStarOutBase', item_rankstar.INDX.OUT); v2 = 0; while (v2 < this.rank + 1) { this.elStarOut[v2] = this.elStarOutBase.attachMovie('rankstar_s', v2, v2); v3 = this.elStarOut[v2]; var v5 = Math.max(5, this.rank + 1); var v4 = (-0.25 + (1 / v5) * v2) * Math.PI * 2; v3._x = -15 + 38 * Math.cos(v4); v3._y = -14 + 38 * Math.sin(v4); v3.gotoAndStop(this.rank + 1); ++v2; } this.elStarBkg = []; this.elStarBkgBase = __mc.createEmptyMovieClip('elStarBkgBase', __zindexbkg); this.elStarBkgBase.blendMode = 'multiply'; v2 = 0; while (v2 < 5) { this.elStarBkg[v2] = this.elStarBkgBase.attachMovie('rankstar_bkg_b', v2, v2); v3 = this.elStarBkg[v2]; v3._rotation = 0.2 * v2 * 360; ++v2; } this.elStarEf = []; this.elStarEfBase = this.mc.createEmptyMovieClip('elStarEfBase', item_rankstar.INDX.EF); var v6 = 11; v2 = 0; while (v2 < v6) { this.elStarEf[v2] = this.elStarEfBase.createEmptyMovieClip('circle' + v2, v2); v3 = this.elStarEf[v2]; v3.beginFill(9672616, 100); X.MCdrawCircle(v3, 0, 0, 13 + 7 * Math.random()); v3.endFill(); v3.angR = 6.283185307179586 * ((v2 - 0.5 + Math.random()) / v6); v3.maxlg = 0.7 + 0.3 * Math.random(); v3.blendMode = 'add'; v3.run = function (cnt, lg, smllevel) { this._x = lg * this.maxlg * Math.cos(this.angR); this._y = lg * this.maxlg * Math.sin(this.angR); this._yscale = smllevel * 100; this._xscale = this._yscale; }; ++v2; } } this.elStarBkgBase._alpha = 0; this.mc._alpha = 0; this.mc.dalpha = 100; }; _global.item_rankstar = v1; var v2 = v1.prototype; v2.moveTo = function (__x, __y) { this.mc._x = __x; this.mc._y = __y; this.elStarBkgBase._x = __x; this.elStarBkgBase._y = __y; }; v2.attachMovie = function (a, b, c) { return this.mc.attachMovie(a, b, item_rankstar.INDX.APPEND + c); }; v2.createEmptyMovieClip = function (a, b) { return this.mc.createEmptyMovieClip(a, item_rankstar.INDX.APPEND + b); }; v2.run = function () { ++this.cnt; if (this.cnt >= 1) { var v2; if (this.mc._alpha != this.mc.dalpha) { this.mc._alpha = this.mc.dalpha; this.elStarBkgBase._alpha = this.mc.dalpha; } var v5 = X.COSI(this.cnt, 90); this.elStarCenBase._yscale = (X.ZSIN(this.cnt / 23) * 80 + X.ZSIN(this.cnt / 59) * 20) * (1.11 + 0.11 * v5); this.elStarCenBase._xscale = this.elStarCenBase._yscale; this.elStarCen[1]._alpha = 45 + v5 * 44; if (this.cnt >= 13) { var v6 = this.cnt - 13; this.elStarChar._alpha = X.ZSIN(v6 / 20) * 100; if (this.effectflag) { this.elStarChar._y = this.elStarChar.cy + 30 * (1 - X.ZSIN(v6 / 44)); this.elStarChar.blendMode = X.int(this.cnt / 8) % 2 ? 'normal' : 'add'; } } if (this.effectflag) { this.elStarOutBase._yscale = (X.ZSIN((this.cnt - 22) / 30) * 40 + X.ZSIN((this.cnt - 22) / 60) * 60) * (1.17 + 0.27 * v5); this.elStarOutBase._xscale = this.elStarOutBase._yscale; if (this.rank >= 3) { v2 = 0; while (v2 < this.elStarOut.length) { this.elStarOut[v2].blendMode = (X.int(this.cnt / 6) % this.elStarOut.length == this.elStarOut.length - 1 - v2) ? 'add' : 'normal'; ++v2; } } this.elStarBkgBase._yscale = X.ZSIN((this.cnt - 9) / 10) * 70 + X.ZSIN2((this.cnt - 9) / 60) * 50; this.elStarBkgBase._xscale = this.elStarBkgBase._yscale; this.elStarBkgBase._rotation += 2.25; if (this.cnt <= 61) { var v4 = 10 + 38 * X.ZSIN2(this.cnt / 23) + 30 * X.ZSIN(this.cnt / 37) + 11 * X.ZSIN(this.cnt / 87); var v3 = 0.2 * X.ZSIN2(1.1 - 1.1 * this.cnt / 31) + 0.8 * X.ZSIN2(1.9 - 1.9 * this.cnt / 61); v2 = 0; while (v2 < this.elStarEf.length) { this.elStarEf[v2].run(this.cnt, v4, v3); ++v2; } if (this.cnt >= 61) { this.elStarEfBase._alpha = 0; } } } } }; v2.show = function () { if (this.cnt < 0) { this.cnt = 100; } }; v2.getMc = function () { return this.mc; }; v2.setBlendMode = function (_blend) { this.mc.blendMode = _blend; }; v2.setScale = function (_scale) { this.mc._yscale = _scale; this.mc._xscale = this.mc._yscale; }; v2.setAlpha = function (__alpha) { this.mc.dalpha = __alpha; }; v1.INDX = {'BKG': 5, 'CENTER': 10, 'OUT': 40, 'EF': 45, 'CHAR': 60, 'APPEND': 1000}; ASSetPropFlags(_global.item_rankstar.prototype, null, 1); } #endinitclip } movieClip 990 __Packages.numberShow { #initclip if (!_global.numberShow) { var v1 = function (title, movieclip, x, y, _zindex, cw, ch, _keta, mcstring, _val) { this.elem = movieclip.attachMovie('empty_as', 'numberShow' + title, _zindex); mcstring = [].concat(mcstring); this.elem._x = x; this.elem._y = y; this.keta = []; this.maxval = ''; var v2 = 0; while (v2 < _keta) { this.keta[v2] = this.elem.attachMovie(mcstring[v2 % mcstring.length], 'n' + v2, v2); var v4 = this.keta[v2]; this.keta[v2]._x = +(cw * v2); this.keta[v2]._y = 0; this.maxval += '9'; ++v2; } this.maxval *= 1; this.setval(_val); }; _global.numberShow = v1; var v2 = v1.prototype; v2.setval = function (_val) { this.val = _val; this.currentketa = 0; if (isNaN(_val * 1)) { this.currentketa = 1; this.keta[0].gotoAndStop(_val); var v2 = 1; while (v2 < this.keta.length) { this.keta[v2].gotoAndStop(11); ++v2; } } else { _val = Math.min(this.maxval, _val); _val = (_val + '').split(''); var v6 = _val.length; var v2 = 0; while (v2 < this.keta.length) { var v3 = v6 - this.keta.length + v2; if (v3 < 0) { this.keta[v2].gotoAndStop(11); } else { ++this.currentketa; var v4 = _val[v3] * 1; this.keta[v2].gotoAndStop(v4 + 1); } ++v2; } } }; v2.setvalSuppressed = function (_val, _suppresschar) { _val = X.spr0(_val, this.keta.length, _suppresschar); this.setText(_val); }; v2.setText = function (_txt) { var v4 = (_txt + '').split(''); var v3 = 0; while (v3 < this.keta.length) { var v2 = v4[v3]; if (v2 === undefined || v2 == ' ' || v2 == '縲\\') { this.keta[v3].gotoAndStop(11); } else { if (isNaN(v2 * 1) || v2 == '.') { this.keta[v3].gotoAndStop(numberShow.replaceCharToLabel(v2)); } else { this.keta[v3].gotoAndStop(1 * v2 + 1); } } ++v3; } }; v2.getval = function () { return this.val; }; v2.getCurrentKeta = function () { return this.currentketa; }; v2.hide = function () { var v2 = 0; while (v2 < this.keta.length) { this.keta[v2].gotoAndStop(11); ++v2; } }; v1.replaceCharToLabel = function (_c) { switch (_c) { return 'c' + _c; case '%': return 'cper'; case '/': return 'cslash'; case ':': return 'ccoron'; case '.': return 'cdot'; } return 'c' + _c; }; v2.getMc = function () { return this.elem; }; v2.keta = []; v2.currentketa = 0; ASSetPropFlags(_global.numberShow.prototype, null, 1); } #endinitclip } movieClip 991 __Packages.STAGEINFO { #initclip if (!_global.STAGEINFO) { var v1 = function (_stage) { this.stage = _stage; this.SP = {}; this.stage.level = 0; this.fineLevel(); this.EXP.unshift(0); this.cLevelAdd = 0; if (X.DEBUG && this.debugInitLevel > 0) { this.EXP.splice(0, this.debugInitLevel + 1); this.stage.level = this.debugInitLevel; this.EXP.unshift(0); } this.fineValue(1); STAGEMAKER.init(this); this.stage.stack = []; this.remake(this.stage); }; _global.STAGEINFO = v1; var v2 = v1.prototype; v2.fineLevel = function () { this.gitems = [0, 0, 0]; this.firsttime = '11:00'; this.fnStageMake = function (stage) { if (!stage.stack.length) { var v1 = STAGEMAKER.getByObjType(); X.shuffle(v1); return v1; } return false; }; this.fnStarSetPre = undefined; this.allcountplus = 0; this.levelZfunc = []; this.levelDelay = []; this.norma = STAGEINFO.stageNormas[this.stage.num]; this.miss = STAGEINFO.stageMisses[this.stage.num]; var v25 = true; switch (this.stage.num) { case 0: this.bomb = 0; this.fastbombrate = 0; this.EXP = [3, 7, 11]; this.lasttime = '1:20'; this.endless = false; this.LV = {'count': [150, 130, 120], 'prepare': [120], 'xyrgmin': [0.4, 0.7, 0.7], 'xyrg': [30, 60], 'xjump': [0, 1, 4], 'xjumprate': [1, 1.4, 3.5], 'yspd': [1.2, 1.4], 'shotxprob': [0], 'shotxmin': [0], 'shotxmax': [0], 'shotxbounce': [0], 'bombDamage': [20], 'starHpCure': [20], 'fastBombSpeed': [3], 'allowTodokoori': [0.3], 'allowTodokooriShuffle': [0]}; break; case 1: this.bomb = 0; this.fastbombrate = 0; this.EXP = [5, 6, 12, 15, 15]; this.lasttime = '1:35'; this.endless = false; this.LV = {'count': [90, 90, 130, 130], 'prepare': [120], 'xyrgmin': [0.7, 0.6, 0.5, 0.5, 0.5, 0.3], 'xyrg': [120, 150, 222, 222], 'xjump': [0, 0, 0.3, 1.5, 4], 'xjumprate': [1, 1, 1.1, 3.1, 3.3, 3.3], 'yspd': [1.34, 1.54, 1.4, 1.3, 1.3, 4], 'shotxprob': [0], 'shotxmin': [0], 'shotxmax': [0], 'shotxbounce': [0], 'bombDamage': [20], 'starHpCure': [20], 'fastBombSpeed': [3], 'allowTodokoori': [0.3], 'allowTodokooriShuffle': [0]}; break; case 2: this.bomb = 8; this.fastbombrate = 0; this.EXP = [7, 13, 17]; this.lasttime = '1:50'; this.endless = false; this.LV = {'count': [120, 100, 100, 70], 'prepare': [90], 'xyrgmin': [0.2, 0.4, 0.5, 0.1], 'xyrg': [200, 200, 200, 130], 'xjump': [0], 'xjumprate': [1], 'yspd': [1.5], 'shotxprob': [0], 'shotxmin': [0], 'shotxmax': [0], 'shotxbounce': [0], 'bombDamage': [20], 'starHpCure': [30], 'fastBombSpeed': [3], 'allowTodokoori': [0.1, 0.1, 0.4, 0.7], 'allowTodokooriShuffle': [0]}; break; case 3: this.bomb = 10; this.fastbombrate = 0; this.EXP = [7, 14, 20, 27]; this.lasttime = '2:00'; this.endless = false; this.LV = {'count': [100, 80, 75, 70, 65, 60], 'prepare': [90], 'xyrgmin': [0.3], 'xyrg': [210, 250, 260, 290, 310], 'xjump': [0, 0, 0.2, 0.2, 0.3, 0.3], 'xjumprate': [1, 1.3, 1.3, 1.5, 1.5], 'yspd': [1.5, 1.8, 2, 2.2, 2.4], 'shotxprob': [0], 'shotxmin': [0], 'shotxmax': [0], 'shotxbounce': [0], 'bombDamage': [35], 'starHpCure': [11], 'fastBombSpeed': [3], 'allowTodokoori': [0.3], 'allowTodokooriShuffle': [0]}; break; case 4: this.bomb = 15; this.gitems = [2, 2, 2]; this.fastbombrate = 0; this.EXP = [9, 20, 30, 43]; this.lasttime = '2:10'; this.endless = false; this.LV = {'count': [70, 100, 68, 48, 40], 'prepare': [90], 'xyrgmin': [0.2, 0.3, 0.32, 0.4, 0.4], 'xyrg': [210, 230, 250, 310, 340], 'xjump': [0, 0, 0.1, 0.2, 0.2], 'xjumprate': [1, 1, 1.8, 1.8, 1.8], 'yspd': [1.3, 1.4, 1.9, 2.1, 2.7], 'shotxprob': [0], 'shotxmin': [0], 'shotxmax': [0], 'shotxbounce': [0], 'bombDamage': [45], 'starHpCure': [9], 'fastBombSpeed': [3], 'allowTodokoori': [0.3], 'allowTodokooriShuffle': [0]}; break; case 5: this.bomb = 29; this.fastbombrate = 0.15; this.gitems = [6, 1, 1]; this.EXP = [23, 43, '', 59]; this.lasttime = '2:20'; this.endless = false; this.LV = {'count': [40, 35, 28, '>', 40], 'prepare': [80, 80, 80, '>', 150], 'xyrgmin': [0.15, 0.15, 0.15, '>', 0.45], 'xyrg': [420, 630, 840, '>', 430], 'xjump': [0.3, 0.3, 0.3, '>', 0.2], 'xjumprate': [2.1, '', '', '>', 13], 'yspd': [1, 1.2, 1.35, '>', 2.85], 'shotxprob': [0], 'shotxmin': [0], 'shotxmax': [0], 'shotxbounce': [0], 'bombDamage': [25, 25, 30, '>', 38], 'starHpCure': [3], 'fastBombSpeed': [3.5, '', '', '>', 4.6], 'allowTodokoori': [0.5], 'allowTodokooriShuffle': [1]}; break; case 6: this.bomb = 47; this.fastbombrate = 12 / this.bomb; this.gitems = [3, 4, 6]; v25 = false; this.EXP = [17, 1, 23, '', 2, '', 18, '', 20, '', 30]; this.levelDelay = [0, 0, 120, 0, 320, 0, -30, 0, -100]; this.firsttime = '2:00'; this.lasttime = '4:30'; this.endless = false; this.LV = {'count': [50, '', 46, '', 40, '', 8, '', 29, '', 95], 'prepare': [140, '', 120, '', 170, '', 100, '', 100, ''], 'xyrgmin': [0.5, '', 0.1, '', 0.95, '', 0.2, '', 0.3, '', 0.2], 'xyrg': [240, '', 640, '', 100, '', 190, '', 230, '', 350], 'xjump': [0.15, '', 0.34, '', 0, '', 0, '', 0.3, '', 0], 'xjumprate': [2.4, '', 3.6, '', 1, '', 1, '', 3.8, '', 1], 'yspd': [1.13, '', 1.25, 1.41, 1.2, '', 4.5, '', 2.6, '', 2.4], 'shotxprob': [0.8, '', 0.8, '', 0, '', 0.7, '', 1, '', 1], 'shotxmin': [50, '', 50, '', '', '', 30, '', 10, '', 10, ''], 'shotxmax': [100, '', 130, 200, '', '', 140, '', 280, '', 120], 'shotxbounce': [0, '', 0, '', '', '', 1, '', 0.8, '', 0.5], 'bombDamage': [40, '', 40, '', '', '', 1, '', 80, '', 50], 'starHpCure': [2, '', '', ''], 'fastBombSpeed': [2.9, '', 3.3, '', 1, '', 1, '', 5.5, '', 3.4], 'allowTodokoori': [0.3, '', 0.1, '', '', '', 0, ''], 'allowTodokooriShuffle': [1, '', '']}; this.fnStageMake = function (stage) { if (X.int(stage.level) > 8) { if (stage.getDropCount() % 2) { stage.nowcount = -4 + Math.random() * 13; } } if (!stage.stack.length) { var v1 = []; if (X.int(stage.level) == 0) { v1.pushS(STAGEMAKER.getByObjType(G.OBJ.STAR, 7)); v1.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 5)); v1.pushS(STAGEMAKER.getByObjType(G.OBJ.FASTBOMB, 1)); v1.pushS(STAGEMAKER.getByObjType(G.OBJ.ITEM_SHIELD, 2)); v1.unshiftS(STAGEMAKER.getByObjType(G.OBJ.ITEM_SPEEDUP, 2)); X.shuffle(v1); } else { if (X.int(stage.level) <= 2) { v1.pushS(STAGEMAKER.getByObjType(G.OBJ.STAR, 10)); v1.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 9)); v1.pushS(STAGEMAKER.getByObjType(G.OBJ.FASTBOMB, 2)); v1.unshiftS(STAGEMAKER.getByObjType(G.OBJ.ITEM_SPEEDUP, 2)); v1.pushS(STAGEMAKER.getByObjType(G.OBJ.ITEM_SHIELD, 1)); X.shuffle(v1); } else { if (X.int(stage.level) <= 4) { stage.xpos = X.w / 2; v1.pushS(STAGEMAKER.getByObjType(G.OBJ.ITEM_CURE, 1)); v1.pushS(STAGEMAKER.getByObjType(G.OBJ.ITEM_SHIELD, 1)); } else { if (X.int(stage.level) <= 6) { v1.pushS(STAGEMAKER.getByObjType(G.OBJ.STAR, 18)); } else { if (X.int(stage.level) <= 8) { v1.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 14)); v1.pushS(STAGEMAKER.getByObjType(G.OBJ.FASTBOMB, 6)); X.shuffle(v1); } else { v1.pushS(STAGEMAKER.getByObjType(G.OBJ.STAR, -1)); v1.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB)); v1.pushS(STAGEMAKER.getByObjType(G.OBJ.FASTBOMB)); v1.pushS(STAGEMAKER.getByObjType(G.OBJ.ITEM_SHIELD)); v1.pushS(STAGEMAKER.getByObjType(G.OBJ.ITEM_SPEEDUP)); v1.unshiftS(STAGEMAKER.getByObjType(G.OBJ.ITEM_CURE, -1)); X.shuffle(v1); v1.unshiftS(STAGEMAKER.getByObjType(G.OBJ.ITEM_CURE)); v1.unshiftS(STAGEMAKER.getByObjType(G.OBJ.STAR, 1)); } } } } } return v1; } return false; }; break; case 7: this.bomb = 228; this.fastbombrate = 9 / this.bomb; this.gitems = [5, 2, 2]; this.EXP = [16, 16, 16, 9, 26, '', 24, 20, 10, 14, 14, 21, 94, '', 15, 20, 24, 1]; v25 = false; this.levelDelay = [560, 460, 290, 0, 0, -30, 0, 0, 0, 0, 0, 110, 0, -750, 510, 510, 0, 0]; this.levelZfunc = [X.Z0, X.Z0, X.Z0, undefined, undefined, undefined, X.Z0, undefined, undefined, X.Z0, undefined, X.Z0, X.ZSINV, X.Z0, X.Z0, X.Z0, X.Z0, X.Z0]; this.lasttime = '2:29'; this.endless = false; this.allcountplus = -370; this.LV = {'count': [0, '', '', 60, 40, 30, 22, 7, 7, 11, 22, 26, 45, 38, 0, '', '', 70], 'prepare': [140, 140, 140, 120, '', '', 110, '', '', 110, '', '', 160, '', '', ''], 'xyrgmin': [0.6, '', '', 0.2, '', '', 0.4, '', '', 0, '', '', 160, 250, '', ''], 'xyrg': [400, '', '', 210, '', '', 40, '', '', 0, '', '', 0.8, 0.5, 0, ''], 'xjump': [0, '', '', 0.3, '', '', 0, 0.03, '', 0, '', '', 0, 0.2, 0, ''], 'xjumprate': [4.8, '', '', 2.2, 2.3, 6, '', 9, '', 1, '', '', 3, '', 1, ''], 'yspd': [0.6, 0.8, 1, 2.3, '', '', 3.1, '', '', 3.1, '', '', 2.2, 3.1, 1.1, 1.35, 1], 'shotxprob': [0, '', '', 0.15, 0.2, 0.5, 0, '', '', 0, 0, 0, 1, '', 0, ''], 'shotxmin': [50, '', '', 190, 110, 30, '', '', '', '', '', '', 20, 40, '', ''], 'shotxmax': [100, '', '', 220, 200, 140, '', '', '', '', '', '', 40, 570, '', ''], 'shotxbounce': [0, '', '', 0.5, 0.5, 1, '', '', '', '', '', '', 1, '', '', ''], 'bombDamage': [55, '', '', 45, '', '', 45, '', '', '', 50, '', 33, '', 100, ''], 'starHpCure': [1, '', '', 1, '', '', '', 1, '', 0.5, '', '', '', '', 0.1, ''], 'fastBombSpeed': [4.6, '', '', 3.8, '', '', '', 5.6, '', '', 4.5, '', '', '', '', ''], 'allowTodokoori': [0, '', '', 0.3, '', '', '', 0, '', '', '', '', 0.3, '', '', ''], 'allowTodokooriShuffle': [1, '', '', 0.4, '', '', '', 0, '', '', '', '', 1, '', '', '']}; this.SP.wall = []; this.SP.beamafterstartx = X.w / 2; this.SP.snakeang = 0; this.SP.snakedepx = 0; this.SP.snakedepxspd = 0; this.SP.snakeas = 0; this.SP.snakedepas = 0; this.SP.curtainxresetted = 0; this.SP.curtainyspd = 0; this.SP.curtainprepareplus = 0; this.SP.LV = {'wall': 2, 'normal': 4, 'beam': 6, 'beamafter': 8, 'snake0': 9, 'snake1': 10, 'snake': 11, 'curtain': 12, 'F': 14, 'I': 15, 'N': 16}; this.fnStageMake = function (stage) { if (!stage.stack.length) { var v2 = []; var v5 = X.int(stage.level); if (v5 <= this.SP.LV.wall) { v2.pushS(STAGEMAKER.getByObjType(G.OBJ.STAR, 2)); v2.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 14)); return v2; return false; } if (v5 <= this.SP.LV.normal) { v2.pushS(STAGEMAKER.getByObjType(G.OBJ.STAR, 10)); v2.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 17)); v2.pushS(STAGEMAKER.getByObjType(G.OBJ.FASTBOMB, 3)); v2.unshiftS(STAGEMAKER.getByObjType(G.OBJ.ITEM_CURE, 1)); v2.unshiftS(STAGEMAKER.getByObjType(G.OBJ.ITEM_SPEEDUP, 1)); X.shuffle(v2); v2.unshiftS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 3)); return v2; return false; } if (v5 <= this.SP.LV.beam) { v2.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 24)); return v2; return false; } if (v5 <= this.SP.LV.beamafter) { v2.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 24)); v2.pushS(STAGEMAKER.getByObjType(G.OBJ.FASTBOMB, 6)); X.shuffle(v2); return v2; return false; } if (v5 <= this.SP.LV.snake0) { v2.pushS(STAGEMAKER.getByObjType(G.OBJ.STAR, 14)); return v2; return false; } if (v5 <= this.SP.LV.snake) { v2.pushS(STAGEMAKER.getByObjType(G.OBJ.STAR, 26)); v2.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 7)); v2.unshiftS(STAGEMAKER.getByObjType(G.OBJ.ITEM_CURE, 1)); v2.unshiftS(STAGEMAKER.getByObjType(G.OBJ.ITEM_SHIELD, 1)); X.shuffle(v2); return v2; return false; } if (v5 <= this.SP.LV.curtain) { var v4 = []; v4.pushS(STAGEMAKER.getByObjType(G.OBJ.STAR, 20)); v4.unshiftS(STAGEMAKER.getByObjType(G.OBJ.ITEM_CURE, 3)); v4.unshiftS(STAGEMAKER.getByObjType(G.OBJ.ITEM_SPEEDUP, 1)); X.shuffle(v4); v2.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 60)); var v3 = v4.length - 1; while (v3 >= 0) { v2.splice(X.int((60 / v4.length) * v3), 0, v4[v3]); --v3; } v2.unshiftS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 10)); return v2; return false; } if (v5 <= this.SP.LV.F) { v2.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 3)); v2.pushS(STAGEMAKER.getByObjType(G.OBJ.STAR, 5)); v2.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 2)); v2.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 5)); return v2; return false; } if (v5 <= this.SP.LV.I) { v2.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 5)); v2.pushS(STAGEMAKER.getByObjType(G.OBJ.STAR, 10)); v2.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 5)); return v2; return false; } if (v5 <= this.SP.LV.N) { v2.pushS(STAGEMAKER.getByObjType(G.OBJ.STAR, 5)); v2.pushS(STAGEMAKER.getByObjType(G.OBJ.ITEM_SHIELD, 1)); v2.pushS(STAGEMAKER.getByObjType(G.OBJ.BOMB, 12)); v2.pushS(STAGEMAKER.getByObjType(G.OBJ.STAR, 6)); return v2; return false; } v2 = STAGEMAKER.getByObjType(); X.shuffle(v2); return v2; } return false; }; this.fnStarSetPre = function (stage, stack, level) { var v2 = X.int(level); var v15 = level - v2; var v6; if (v2 <= this.SP.LV.wall) { if (this.SP.wall[v2] === undefined) { this.SP.wall[v2] = []; stack._x = X.ranNm(X.w / 2 + '+-' + (X.w / 2 - X.lmargin)); stage.xpos = stack._x; } v6 = stage.getDropCount(undefined, v2); if (v6 <= 1) { this.SP.wall[v2].push(stack._x); } else { if (v6 < 13) { if (v6 == 2) { this.SP.wallXpos = v2 % 2 ? X.w - X.lmargin + 19 : X.lmargin - 19; } else { this.SP.wallXpos += (v2 % 2 ? -1 : 1) * 60; } var v4 = 0; while (!v4) { v4 = 1; var v3 = 0; while (v3 < this.SP.wall[v2].length) { if (Math.abs(this.SP.wall[v2][v3] - this.SP.wallXpos) < 63) { this.SP.wallXpos += (v2 % 2 ? -1 : 1) * 18; v4 = 0; break; } ++v3; } } stack._x = this.SP.wallXpos; } else { stack._x = (v6 - 14) * 53 + this.SP.wall[v2][0]; stack._y -= 54; } } } else { if (v2 <= this.SP.LV.normal) { } else { if (v2 <= this.SP.LV.beam) { v6 = stage.getDropCount(undefined, v2); var v20 = X.w / 24; stack._x = (X.int(v6 / 6) * 2.2 + (v6 % 6 >= 4 ? 3 : (v6 % 6 >= 2 ? -1 : 0))) * v20; if (v6 % 2 == 1) { stack._x = X.w - stack._x; } this.SP.beamafterstartx = X.w / 2; stage.xpos = this.SP.beamafterstartx; } else { if (v2 <= this.SP.LV.beamafter) { stage.xpos = this.SP.beamafterstartx; } else { if (v2 <= this.SP.LV.snake) { v6 = stage.getDropCount(undefined, v2); if (v6 === 0) { var v8 = 1; if (v2 == this.SP.LV.snake0) { this.SP.snakedepx = X.w / 2; this.SP.snakedepxspd = 0.1; this.SP.snakeas = 0; this.SP.snakedepas = 0; } else { if (v2 == this.SP.LV.snake1) { v8 = Math.random() < 0.5 ? -1 : 1; this.SP.snakedepx = X.w / 2 + X.w * 0.34 * v8 * (0.5 + Math.random() * 0.5); this.SP.snakedepxspd = 0.18; this.SP.snakedepas = v8 * 8; } else { v8 = this.SP.snakedepx > X.w / 2 ? -1 : 1; this.SP.snakedepx = X.w / 2 + X.w * 0.34 * (this.SP.snakedepx > X.w / 2 ? -1 : 1) * (0.5 + Math.random() * 0.5); this.SP.snakedepxspd = 0.24; this.SP.snakedepas = v8 * 13; } } } var v17 = 360 / (v2 > 9 ? 120 : 200 - 80 * v15); var v18 = 8 + 13 * (v2 > 9 ? 1 : v15); this.SP.snakeang += v17 * stage.LV.count; var v19 = [0, stack.yspd]; var v14 = X.ROTA2(v19, (X.Sin((this.SP.snakeang / 180) * X.PI) * v18 + this.SP.snakeas) * X.PI / 180); stack.xspd = v14[0]; stack.yspd = v14[1]; stage.xpos += (this.SP.snakedepx - stage.xpos) * this.SP.snakedepxspd; this.SP.snakeas += (this.SP.snakedepas - this.SP.snakeas) * this.SP.snakedepxspd; } else { if (v2 <= this.SP.LV.curtain) { if (!this.SP.curtainxresetted) { stack._x = X.w / 2; stage.xpos = stack._x; this.SP.curtainxresetted = 1; } if (stack.objtype == G.OBJ.BOMB) { stage.xpos = stage.prexpos; v6 = stage.getDropCount(G.OBJ.BOMB, v2); var v13 = 0; if (v6 % 10 <= 4) { stack._x = X.w * 0.32; v13 = -13 + 48 * (-1 + ((X.int(v6) % 5) / 4) * 2); } else { stack._x = X.w * 0.63; stack._y -= 23; v13 = 10 - 62 * (-1 + ((X.int(v6) % 5) / 4) * 2); } if (v6 % 5 < 4) { stage.nowcount = 10; } else { stage.nowcount = stage.nowcount * 5 - 40; } if (v6 % 5 == 0) { this.SP.curtainyspd = stack.yspd; this.SP.curtainprepareplus = 0; } var v21 = [0, this.SP.curtainyspd * 0.7]; var v16 = X.ROTA2(v21, v13 * X.PI / 180); stack.xspd = v16[0]; stack.yspd = v16[1]; } else { stack.prepare += 40 + this.SP.curtainprepareplus; this.SP.curtainprepareplus += 30; stage.stageinfo.levelDelay[this.SP.LV.F - 1] += stage.nowcount; X.DLOGS(2, 'leveldelay added ...' + stage.stageinfo.levelDelay[this.SP.LV.F - 1]); stage.nowcount = 0; if (stage.getDropCount(undefined, v2) - stage.getDropCount(G.OBJ.BOMB, v2) >= 7) { stack.xspd *= 3; stack.yspd /= 2; } } } else { if (v2 <= this.SP.LV.N) { var v12; var v11; var v10; var v9; v6 = stage.getDropCount(undefined, v2); if (v2 == this.SP.LV.F) { v12 = X.w * 0.1; v11 = 53; v10 = 65; v9 = [[0, 0], [1, 0], [2, 0], [0.4, 0.8], [0.4, 1.8], [0.4, 2.8], [0.4, 3.8], [0.4, 4.8], [1.3, 2.8], [2.3, 2.8], [0, 5.6], [1, 5.6], [2, 5.6], [3, 5.6], [4, 5.6]][v6]; } else { if (v2 == this.SP.LV.I) { v12 = X.w * 0.41; v11 = 46; v10 = 53; v9 = [[0, 0], [0.75, 0], [1.5, 0], [2.25, 0], [3, 0], [1, 0.5], [1, 1.5], [1, 2.5], [1, 3.5], [1, 4.5], [2, 0.5], [2, 1.5], [2, 2.5], [2, 3.5], [2, 4.5], [0, 5.3], [0.75, 5.3], [1.5, 5.3], [2.25, 5.3], [3, 5.3]][v6]; } else { v12 = X.w * 0.92; v11 = -43; v10 = 29; v9 = [[0, 0], [0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [1, 0], [1.5, 0.5], [2, 1], [2.5, 1.5], [3, 2], [3.5, 2.5], [4, 3], [4.5, 3.5], [5, 4], [5.5, 4.5], [6, 5], [6.5, 5.5], [7, 0], [7, 1], [7, 2], [7, 3], [7, 4], [7, 5]][v6]; } } stack._x = v12 + v9[0] * v11; stack._y -= v9[1] * v10; } } } } } } } }; break; case 8: this.norma = 0; this.miss = 0; this.bomb = 0; this.fastbombrate = 0; this.gitems = [0, 0, 0]; this.EXP = [10, 10, 10, 10]; this.firsttime = '1:00'; this.lasttime = '5:00'; this.endless = true; this.LV = {'count': [70], 'prepare': [120], 'xyrgmin': [0.15], 'xyrg': [350], 'xjump': [0.1], 'xjumprate': [2.1], 'yspd': [2], 'shotxprob': [0.2], 'shotxmin': [40], 'shotxmax': [160], 'shotxbounce': [1], 'bombDamage': [30], 'starHpCure': [0], 'fastBombSpeed': [3.6], 'allowTodokoori': [0.3], 'allowTodokooriShuffle': [1]}; this.levelDelay = [0, 0, 0]; this.LV.dropLostTimeLevel = [G.getLevelHour() / 2]; this.stage.endByKO = true; this.stage.dropLostTimeLevel = this.LV.dropLostTimeLevel[0]; this.stage.alltime = 999999; this.stage.timeLevelPerFrame = G.getLevelHour() / 20 / 60; this.LV.STAR = [1]; this.LV.BOMB = [1]; this.LV.FASTBOMB = [1]; this.SP.stack = []; this.SP.patternStack = []; this.SP.levelStack = []; this.SP.LVsaved = {}; this.SP.LVsavedNext = undefined; this.SP.LVsaved = X.objDupe(this.LV); this.SP.countTime = 0; this.SP.countStarTimeRecover = 0; this.SP.starLScore = 4000; this.SP.getStarLScore = function () { var v2 = this.starLScore; if (this.starLScore < 32000) { if (this.starLScore > 8000) { this.starLScore += 8000; return v2; } this.starLScore *= 2; } return v2; }; this.SP.starLInterval = 3; for (var v20 in this.SP.LVsaved) { this.SP.LVsaved[v20] = this.SP.LVsaved[v20][0]; } this.SP.makeNext = function () { if (this.LVsavedNext) { this.LVsaved = this.LVsavedNext; } this.LVsavedNext = X.objDupe(this.LVsaved); var v2 = this.LVsavedNext; v2.yspd = Math.min(4, v2.yspd + 0.12); v2.xyrg += (450 - v2.xyrg) * 0.02; v2.count += (20 - v2.count) * 0.02; v2.xjump += (0.14 - v2.xjump) * 0.01; v2.shotxprob += (0.8 - v2.shotxprob) * 0.03; v2.shotxmin += (70 - v2.shotxmin) * 0.03; v2.shotxmax += (190 - v2.shotxmax) * 0.03; v2.bombDamage = Math.min(56, v2.bombDamage + 1.84); v2.fastBombSpeed = Math.min(5.7, v2.fastBombSpeed + 0.2); v2.dropLostTimeLevel = Math.min(G.getLevelHour() * 4, v2.dropLostTimeLevel + G.getLevelHour() / 10); }; this.SP.makeNext(); this.fnStageMake = function (stage) { var v12 = X.int(stage.level); var v19 = ['normal', 'bombrush', 'naname', 'spotlight', 'doubles', 'triples', 'nanamecurtain', 'speedy', 'slowtofast']; var v15 = 8; var v5 = {}; v5.normal = {'count': 1, 'shotxprob': 0.7, 'STAR': 6, 'BOMB': 7, 'FASTBOMB': 2}; v5.doubles = {'count': 0.87, 'shotxprob': 0.6, 'xyrgmin': 2.3, 'STAR': 6, 'BOMB': 7, 'FASTBOMB': 2}; v5.triples = {'count': 0.83, 'shotxprob': 0.4, 'xyrg': 0.8, 'xyrgmin': 2.6, 'xjump': 0, 'STAR': 8, 'BOMB': 6, 'FASTBOMB': 2}; v5.bombrush = {'count': 0.7, 'yspd': 0.3, 'xyrgmin': 0.3, 'STAR': 3, 'BOMB': 12, 'FASTBOMB': 9}; v5.naname = {'count': 0.9, 'yspd': 1.13, 'xyrgmin': 0.01, 'xyrg': 0.2, 'shotxmin': 6, 'shotxmax': 7, 'shotxprob': 100, 'STAR': 6, 'BOMB': 7, 'FASTBOMB': 1}; v5.spotlight = {'count': 0.8, 'yspd': [1.1, 1.2], 'xyrgmin': 0.4, 'xyrg': 0.03, 'xjump': 2, 'xjumprate': 20, 'shotxmin': [0.5, 1.7], 'shotxmax': [0.6, 1.4], 'shotxprob': 100, 'STAR': 6, 'BOMB': 5, 'FASTBOMB': 2}; v5.nanamecurtain = {'count': 0.8, 'yspd': [0.2, 0.5], 'xyrgmin': 0.01, 'xyrg': [1.2, 2.4], 'shotxmin': [0.14, 1.8], 'shotxmax': [0.3, 2.7], 'shotxprob': 100, 'STAR': 4, 'BOMB': 5, 'FASTBOMB': 0}; v5.speedy = {'count': [1.1, 0.7], 'yspd': [1.6, 1.8], 'xyrgmin': 1.1, 'xyrg': [1.2, 1], 'xjumprate': 0.7, 'shotxmin': 0.5, 'shotxmax': 0.5, 'STAR': 6, 'BOMB': 5, 'FASTBOMB': 2}; v5.slowtofast = {'count': [0.9, 1.3], 'yspd': [0.5, 1.8], 'xyrgmin': 1.7, 'xyrg': [1.4, 1.2], 'xjump': [1, 0.4], 'xjumprate': 0.6, 'fastBombSpeed': 1.2, 'STAR': 7, 'BOMB': 7, 'FASTBOMB': 2}; X.DLOGS(0, 'stage_stack:' + STAGEMAKER.printStack(stage.stack) + ' level:' + stage.level); stage.alltime = 999999; stage.dropLostTimeLevel = this.setLvValue(this.LV.dropLostTimeLevel); if (!stage.stack.length) { var v3; var v2; if (!this.SP.stack.length) { var v6 = {'ITEM_CURE': 4, 'ITEM_SPEEDUP': 4, 'ITEM_SHIELD': 4}; for (v2 in v6) { var v13 = X.makeCountUpArray(v15); X.shuffle(v13); v6[v2] = v13.slice(0, v6[v2]); } var v14 = X.arrayDupe(v19); X.shuffle(v14); STAGEMAKER.getByObjType(); var v18 = 0; while (v18 < v15) { this.SP.patternStack[v18] = v14[v18 % v14.length]; v3 = this.SP.patternStack[v18]; this.SP.levelStack[v18] = 0; var v10 = {}; var v9 = []; for (v2 in G.OBJ) { if (this.LV[v2]) { v10[v2] = X.int((v5[v3][v2] !== undefined) ? v5[v3][v2] : 1); STAGEMAKER.stackAppend(G.OBJ[v2], v10[v2]); } } for (v2 in v6) { if (v6[v2].isin(v18) >= 0) { STAGEMAKER.stackAppend(G.OBJ[v2], 1); } } v9 = STAGEMAKER.getByObjType(); X.shuffle(v9); if ((v12 + v18 + 1) % this.SP.starLInterval == 0) { STAGEMAKER.stackAppend(G.OBJ.STARL, 1); v9.pushS(STAGEMAKER.getByObjType()); } this.SP.stack.pushS(v9); this.SP.levelStack[v18] = v9.length; this.EXP[v18] = this.SP.levelStack[v18]; this.levelDelay.push(0); ++v18; } } v3 = this.SP.patternStack[0]; this.SP.patternStack.shift(); this.EXP[0] = X.int(this.SP.levelStack[0]); this.SP.levelStack.shift(); this.cLevelAdd = 1 / this.EXP[0]; var v4 = 0; while (v4 < 2) { for (var v17 in this.LV) { var v7 = !v4 ? this.SP.LVsaved[v17] : this.SP.LVsavedNext[v17]; if (v5[v3][v17] !== undefined) { var v8 = [].concat(v5[v3][v17]); v7 *= v8[Math.min(v8.length - 1, v4)]; } this.LV[v17][v12 + v4] = v7; } ++v4; } this.SP.makeNext(); var v11 = this.SP.stack.slice(0, this.EXP[0]); this.SP.stack.splice(0, this.EXP[0]); v18 = 0; while (v18 < v11.length) { v11[v18].cpat = v3; v11[v18].levelmax = v11.length; ++v18; } for (v18 in this.LV) { stage.LV[v18] = this.LV[v18][v12]; } X.DLOGS(2, 'stack added ... level: ' + stage.level + 'exp: ' + this.EXP[0] + ' pattern:' + v3); return v11; } return false; }; this.fnStarSetPre = function (stage, stack, level) { var v5 = X.int(level); var v8 = level - v5; var v4; var v6 = 0.15 * G.UI.Clock.level_hour; if (stack.objtype == G.OBJ.STAR) { stack.timeRecover = v6; this.SP.countStarTimeRecover += stack.timeRecover; } else { if (stack.objtype == G.OBJ.STARL) { stack.timeRecover = Math.max(this.SP.countTime * G.getTimeLevelPerFrame() - this.SP.countStarTimeRecover, 0.1666666666666667 * G.UI.Clock.level_hour) + 0.5 * G.UI.Clock.level_hour; stack.timeRecover = Math.max(Math.min(G.UI.Clock.getval(), stack.timeRecover), v6); stack.starLScore = this.SP.getStarLScore(); this.SP.countTime = 0; this.SP.countStarTimeRecover = 0; } } if (stack.cpat == 'doubles') { v4 = stage.getDropCount(undefined, v5); if (stack.levelmax - 1 - v4 > 1) { if (v4 % 2 < 1) { stage.nowcount = 0; } else { stage.nowcount *= 2; } } } if (stack.cpat == 'triples') { v4 = stage.getDropCount(undefined, v5); if (stack.levelmax - 1 - v4 > 2) { if (v4 % 3 < 2) { stage.nowcount = 20; } else { stage.nowcount = stage.nowcount * 3 - 40; } } } if (stack.cpat == 'nanamecurtain') { this.levelDelay[v5] += stage.nowcount - 4; stage.nowcount = 4; } this.SP.countTime += stage.nowcount; }; break; case 10: this.bomb = 0; this.gitems = [0, 0, 0]; this.fastbombrate = 0; this.EXP = [4]; this.lasttime = '2:00'; this.endless = false; this.LV = {'count': [70], 'prepare': [1], 'xyrgmin': [0.5], 'xyrg': [80], 'xjump': [0, 1], 'xjumprate': [1], 'yspd': [2], 'shotxprob': [0], 'shotxmin': [0], 'shotxmax': [0], 'shotxbounce': [0], 'bombDamage': [20], 'starHpCure': [20], 'fastBombSpeed': [3], 'allowTodokoori': [0.3], 'allowTodokooriShuffle': [0]}; } this.firsttimelevel = Clock.timeToValue(this.firsttime); this.lasttimelevel = Clock.timeToValue(this.lasttime); this.marginlevel = 1 - this.lasttimelevel - this.firsttimelevel; var v2; var v3; if (v25) { v2 = this.EXP.length - 1; while (v2 >= 1) { if (this.EXP[v2] === '') { this.EXP[v2] = this.EXP[v2 - 1]; } this.EXP[v2] -= this.EXP[v2 - 1]; --v2; } } else { v2 = this.EXP.length - 1; while (v2 >= 1) { if (this.EXP[v2] === '') { this.EXP[v2] = 0; } --v2; } } for (v2 in this.LV) { v3 = 0; while (v3 < this.LV[v2].length) { if (this.LV[v2][v3] === '') { this.LV[v2][v3] = !v3 ? 0 : this.LV[v2][v3 - 1]; } ++v3; } v3 = this.LV[v2].length - 1; while (v3 >= 0) { if (this.LV[v2][v3] === '>') { this.LV[v2][v3] = (v3 == this.LV[v2].length - 1) ? this.LV[v2][v3 - 1] : this.LV[v2][v3 + 1]; } --v3; } this.stage.LV[v2] = this.setLvValue(this.LV[v2]); } }; v2.fineValue = function (is_dropped_star) { if (is_dropped_star || 1) { this.stage.level += this.cLevelAdd; --this.EXP[0]; if (this.EXP[0] <= 0) { while (!false) { this.stage.level = Math.ceil(this.stage.level - 0.01); if (this.EXP.length <= 1) { this.cLevelAdd = 0; break; } else { this.EXP.splice(0, 1); if (this.EXP[0] <= 0) { ++this.stage.level; continue; } this.cLevelAdd = 1 / this.EXP[0]; break; } } } } for (var v2 in this.LV) { this.stage.LV[v2] = this.setLvValue(this.LV[v2]); } }; v2.remake = function (stageInstance) { var v3 = this.fnStageMake(stageInstance); if (v3.length === 0 || v3 === false) { return false; } var v2 = 0; while (v2 < v3.length) { if (v3[v2] !== undefined) { stageInstance.stack.push(v3[v2]); } ++v2; } return v3; }; v2.getLvLevel = function (__level) { var v2 = X.int(__level); var v3 = __level - v2; if (this.levelZfunc[v2]) { v3 = this.levelZfunc[v2](v3); } return v2 + v3; }; v2.setLvValue = function (_array, __level) { if (__level === undefined) { __level = this.stage.level; __level = this.getLvLevel(__level); return X.getArrayRealNum(_array, __level); } __level = __level; __level = this.getLvLevel(__level); return X.getArrayRealNum(_array, __level); }; v2.isStageCleared = function () { return G.UI.getStar.val >= this.norma && G.UI.Clock.val < 1; }; v2.calcAllTime = function () { var v5 = this.norma + this.miss + this.bomb + this.gitems.sum(); var v6 = 0; var v3 = 0; while (v5 > 0) { v3 = Math.round(v3 + 0.01); var v2 = this.EXP[v3]; if (!v2) { v2 = v5; } var v4 = 1 / v2; v5 -= v2; while (v2) { --v2; v6 += this.setLvValue(this.LV.count, v3); v3 += v4; } } var v7 = this.setLvValue(this.LV.prepare, v3); var v8 = this.setLvValue(this.LV.yspd, v3); var v9 = (X.underpos_star - X.initpos_star) / v8; return v6 + X.initWait + v7 + v9 + X.endWait + 30 + this.levelDelay.sum() + this.allcountplus; }; v1.stageMisses = [4, 6, 2, 3, 5, 9, 0, 32, 0]; v1.stageNormas = [5, 10, 7, 15, 18, 18, 40, 102 - STAGEINFO.stageMisses[7], 1]; v2.norma = 7; v2.miss = 7; v2.bomb = 0; v2.gitems = [0, 0, 0]; v2.fastbombrate = 0; v2.EXP = [5]; v2.firsttime = '11:00'; v2.lasttime = '2:00'; v2.levelDelay = []; v2.levelZfunc = []; v2.endless = false; v2.LV = {'count': [120, 90], 'prepare': [120], 'xyrgmin': [0.5], 'xyrg': [30, 80], 'xjump': [0], 'xjumprate': [0], 'yspd': [1.2, 1.4], 'shotxprob': [0], 'shotxmin': [0], 'shotxmax': [0], 'shotxbounce': [0], 'bombDamage': [20], 'starHpCure': [20], 'fastBombSpeed': [3], 'allowTodokoori': [0.3], 'allowTodokooriShuffle': [1]}; v2.cLevelAdd = 0; v2.startlevel = 0; v2.debugInitLevel = 0; v2.allcountplus = 0; ASSetPropFlags(_global.STAGEINFO.prototype, null, 1); } #endinitclip } movieClip 992 __Packages.STAGEMAKER { #initclip if (!_global.STAGEMAKER) { var v1 = function () {}; _global.STAGEMAKER = v1; var v2 = v1.prototype; v1.init = function (stageinfo) { STAGEMAKER.stack = {}; STAGEMAKER.stackAppend(G.OBJ.STAR, stageinfo.norma + stageinfo.miss); var v3 = Math.round(stageinfo.bomb * stageinfo.fastbombrate); STAGEMAKER.stackAppend(G.OBJ.BOMB, stageinfo.bomb - v3); STAGEMAKER.stackAppend(G.OBJ.FASTBOMB, v3); var v1 = 0; while (v1 < stageinfo.gitems.length) { STAGEMAKER.stackAppend(G.OBJ._ITEM_BASE + v1, stageinfo.gitems[v1]); ++v1; } return undefined; }; v1.getByObjType = function (objtype, count) { if (objtype !== undefined && typeof count == 'number') { var v5 = {}; v5[objtype] = count; count = v5; } if (count === undefined) { count = {}; } var v3 = []; for (var v4 in STAGEMAKER.stack) { if (v4 == objtype || objtype === undefined) { if (count[objtype] !== undefined) { if (count[objtype] < 0) { count[objtype] = STAGEMAKER.stack[v4].length + count[objtype]; } v3 = v3.concat(X.makeEmptyArray(Math.min(STAGEMAKER.stack[v4].length, count[objtype]), STAGEMAKER.stack[v4][0])); STAGEMAKER.stack[v4].splice(0, count[objtype]); } else { v3 = v3.concat(STAGEMAKER.stack[v4]); STAGEMAKER.stack[v4] = []; } } } return v3; }; v2.restoreByObjType = function (objtype) {}; v1.stackAppend = function (objtype, kaisu) { if (!STAGEMAKER.stack[objtype]) { STAGEMAKER.stack[objtype] = []; } kaisu = (kaisu !== undefined) ? kaisu : 1; var v2 = {'objtype': objtype}; if (objtype == G.OBJ.FASTBOMB) { v2.fast = 1; } STAGEMAKER.stack[objtype].pushS([v2], kaisu); }; v1.printStack = function (_array) { var v3 = '['; _array = (_array !== undefined) ? _array : STAGEMAKER.stack; var v1 = 0; while (v1 < _array.length) { v3 += _array[v1].objtype + ', '; ++v1; } return v3 + ' /]'; }; v2.printStackAll = function () { var v1 = []; for (var v2 in STAGEMAKER.stack) { v1.push(v2 + '::' + STAGEMAKER.stack[v2].length); } return v1.join(', '); }; ASSetPropFlags(_global.STAGEMAKER.prototype, null, 1); } #endinitclip } movieClip 993 __Packages.Clock { #initclip if (!_global.Clock) { var v1 = function (basemc, x, y, zIndex) { this.mc = basemc.attachMovie('clock_b', 'mc_clock', zIndex); this.mc.cushionArc = this.mc.attachMovie('empty_as', 'cushionRed', 200); this.mc.cushionArc.drawArk = function (__color, __alpha, sang, dang) { var v2 = 55; if (this.cushionfirst >= 1) { this.beginFill(__color, __alpha); X.MCdrawCircle(this, 0, 0, v2); this.endFill(); } else { X.MCdrawArk(this, 0, 0, v2, sang * X.PI / 180, dang * X.PI / 180, __color, __alpha); } }; this.mc._x = x; this.mc.startx = this.mc._x; this.mc._y = y; this.mc.starty = this.mc._y; this.cushion = 0; this.cution_dang = 0; this.cution_sang = 0; this.level_hour = 1 / (Clock.endHour - Clock.initHour); this.cushion_minus = this.level_hour / 80; this.cushion_minus_min = this.cushion_minus; this.setval(Clock.initHour); }; _global.Clock = v1; var v2 = v1.prototype; v2.stageInit = function (_alltime, _timeLevelPerFrame, _firsttimelevel) { this.alltime = _alltime; this.timeLevelPerFrame = _timeLevelPerFrame; this.setval(_firsttimelevel); this.mc.cushionArc.clear(); this.mc._x = this.mc.startx; this.mc._y = this.mc.starty; }; v2.stageEnd = function () { this.alltime = 0; this.val = X.MMX(0, this.val, 1); this.cushion = 0; this.mc.cushionArc.clear(); this.fine(); }; v2.setval = function (_val) { this.val = _val; this.cushion = 0; this.fine(); }; v2.fine = function () { var v2 = Clock.valueToTime(this.getval()); this.mc.needle_s._rotation = -90 + ((v2.hour % 12 + v2.minute / 60) / 12) * 360; this.mc.needle_l._rotation = -90 + (v2.minute / 60) * 360; }; v2.addval = function (_val, _useCushuion) { if (_useCushuion) { if (_val * this.cushion < 0) { this.cushion = 0; this.mc._x = this.mc.startx; this.mc._y = this.mc.starty; } this.cushion += _val; if (this.cushion >= 1) { this.cushion_minus = this.level_hour / 19; } else { this.cushion_minus = _val > 0 ? Math.min(this.cushion_minus_min, this.cushion / 45) : Math.max(-this.cushion_minus_min * 2, this.cushion / 22); } this.mc.cushionArc.cushionfirst = this.cushion; this.cution_sang = this.mc.needle_l._rotation; this.cution_dang = this.cution_sang + ((_val + (this.cushion / this.cushion_minus) * this.timeLevelPerFrame) / this.level_hour) * 360; } this.val += _val; this.fine(); }; v2.run = function (f) { if (this.alltime > 0) { this.val += this.timeLevelPerFrame; if (!G.isEndless()) { --this.alltime; } } var v4 = this.cution_sang; var v3 = this.cution_dang; if (this.cushion > 0) { this.mc.cushionArc.clear(); if (this.cushion <= this.cushion_minus) { this.cushion = 0; this.mc._x = this.mc.startx; this.mc._y = this.mc.starty; } else { this.cushion -= this.cushion_minus; this.cution_sang += ((this.cushion_minus + this.timeLevelPerFrame) / this.level_hour) * 360; this.mc.cushionArc.drawArk(16714307, 100 * (1 - 0.6 * ((f % 20) / 20)), v4, v3); if (f % 2) { this.mc._x = this.mc.startx + X.ranNm('0+-2'); this.mc._y = this.mc.starty + X.ranNm('0+-2'); } } } else { if (this.cushion < 0) { this.mc.cushionArc.clear(); if (this.cushion >= this.cushion_minus) { this.cushion = 0; } else { this.cushion -= this.cushion_minus; this.cution_sang += ((this.cushion_minus + this.timeLevelPerFrame) / this.level_hour) * 360; var v2 = X.COSI(f, 22); this.mc.cushionArc.drawArk(X.HSV2COL(96 * (1 - v2) + 194 * v2, 17 * (1 - v2) + 55 * v2, 100 * (1 - v2) + 71 * v2), 70, v4, v3); } } } this.fine(); }; v2.getval = function () { return this.val - this.cushion; }; v2.getTheTime = function (suppresshour) { suppresshour = (suppresshour !== undefined) ? suppresshour : '0'; var v5 = Clock.valueToTime(this.val); var v3 = X.int(v5.hour); var v2 = X.int(v5.minute); if (v3 < 10) { v3 = suppresshour + v3; } if (v2 < 10) { v2 = '0' + v2; } return v3 + ':' + v2; }; v1.timeToValue = function (hour) { var v3 = 0; var v2; v2 = hour.indexOf(':'); if (v2 >= 0) { v3 = X.Nm(hour.slice(v2 + 1)); hour = X.Nm(hour.slice(0, v2)); } hour = X.Nm(hour); while (hour >= 8) { hour -= 12; } hour += X.MMX(0, v3, 59) / 60; return (hour - Clock.initHour) / (Clock.endHour - Clock.initHour); }; v1.valueToTime = function (_value) { var v3 = Clock.initHour * (1 - _value) + Clock.endHour * _value; while (v3 < 0) { v3 += 24; } var v1 = v3 - X.int(v3); v1 *= 60; return {'hour': X.int(v3), 'minute': v1}; }; v1.secondsToMinute = function (secs) { var v2 = X.int(secs / 60); var v1 = X.spr0(X.int(secs) % 60, 2, '0'); return v2 + 'm' + v1 + 's'; }; v1.timeToHM = function (__time) { var v1; v1 = __time.indexOf(':'); if (v1 >= 0) { return __time.slice(0, v1) + 'h' + __time.slice(v1 + 1) + 'm'; } return __time + 'h00m'; }; v2.cution_sang = 0; v2.cution_dang = 0; v1.initHour = -1; v1.endHour = 5; ASSetPropFlags(_global.Clock.prototype, null, 1); } #endinitclip } movieClip 994 __Packages.SC_GAME { #initclip if (!_global.SC_GAME) { var v1 = function () { G.init(); }; _global.SC_GAME = v1; var v2 = v1.prototype; v2.run = function (f) { return G.run(f); }; v2.destruct = function () { G.destruct(); }; ASSetPropFlags(_global.SC_GAME.prototype, null, 1); } #endinitclip } movieClip 995 __Packages.SC_ENDING { #initclip if (!_global.SC_ENDING) { var v1 = function () { this.endheight = this.endheight0; this.scene_mc = _root.attachMovie('sc_ending_b', 'scene_mc', 0); BGM.fadeout('GAME', 0.3); BGM.fadeout('TITLE', 0.3); this.phaseSet(this.PHASE.ACTIVE); X.btn_backtotitle.gotoAndPlay('hide_immediate'); mainButton.destruct('backtotitle'); if (!X.STG.allowEndlessStage) { var v4 = this.scene_mc.telop.attachMovie('tobecontinued', 'tobecontinued', 100); v4._y = this.endheight + 500; this.endheight += 500 + X.h; } else { if (G.pre_stage_cleared <= X.STG.max - 3 && G.pre_stage_cleared >= -1) { var v3 = this.scene_mc.telop.attachMovie('ending_stageadded', 'ending_stageadded', 100); v3._y = this.endheight + 500; this.endheight += 500 + X.h; } } }; _global.SC_ENDING = v1; var v2 = v1.prototype; v2.phaseSet = function (_p) { this.phase = _p; this.phaset = 0; }; v2.run = function (f) { if (this.phase == this.PHASE.ACTIVE) { this.scene_mc.telop._y -= (X.clickflag > 0 ? 9 : 1) * 2; if (this.scene_mc.telop._y < -this.endheight) { this.phaseSet(this.PHASE.END); BGM.fadeout('TITLE', 0); BGM.fadeout('GAME', 0); } } else { if (this.phaset == 20) { TRANS.set('transition_whiterect_b'); } if (this.phaset >= 20) { if (X.trans_end) { return X.SCENE.TITLE; } } } ++this.phaset; }; v2.destruct = function () { this.scene_mc.removeMovieClip(); }; v2.PHASE = {'ACTIVE': 0, 'END': 1}; v2.endheight0 = 2530; ASSetPropFlags(_global.SC_ENDING.prototype, null, 1); } #endinitclip } movieClip 996 __Packages.HPGage { #initclip if (!_global.HPGage) { var v1 = function (basemc, x, y, zIndex) { this.mc = basemc.attachMovie('hpgage_b', 'mc_hpgage', zIndex); var swidth = this.mc.gageBar._width; var v3 = 0; while (v3 < HPGage.cols.length) { this.mc.cushion[HPGage.cols[v3][0]] = this.mc.cushion.attachMovie('empty_as', 'r' + v3, 100 + v3); var v2 = this.mc.cushion[HPGage.cols[v3][0]]; v2.beginFill(HPGage.cols[v3][1], HPGage.cols[v3][2]); v2.moveTo(0, 0); v2.lineTo(swidth, 0); v2.lineTo(swidth, this.mc.gageBar._height); v2.lineTo(0, this.mc.gageBar._height); v2.endFill(); v2._alpha = 0; ++v3; } this.mc.cushion.drawCushion = function (shp, cushionval) { this._alpha = 100; var v5 = shp; var v6 = shp; if (cushionval > 0) { v5 -= cushionval; this.red._alpha = 0; this.black._alpha = 0; this.white0._alpha = 100; this.white1._alpha = 100 * (1 - 0.3 * ((this.sframe % 10) / 10)); } else { v6 -= cushionval; this.white0._alpha = 0; this.white1._alpha = 0; this.black._alpha = 100; this.red._alpha = 100 * (0.5 - 0.3 * ((this.sframe % 20) / 20)); } var v3 = swidth * HPGage.getLevelToScale(v5 / HPGage.hpmax) / 100; var v4 = swidth * HPGage.getLevelToScale(v6 / HPGage.hpmax) / 100 - v3; var v2 = 2; while (v2 < HPGage.cols.length) { this[HPGage.cols[v2][0]]._x = v3; this[HPGage.cols[v2][0]]._width = v4; ++v2; } ++this.sframe; }; this.mc.cushion.hide = function () { var v2 = 2; while (v2 < HPGage.cols.length) { this[HPGage.cols[v2][0]]._alpha = 0; ++v2; } }; this.mc.cushion.koHide = function (shp) { this.white1._alpha = 0; this.koGreen._alpha = 0; this.koRed._alpha = 0; }; this.mc.cushion.koInit = function () { this.white0._alpha = 0; this.koRed._xscale = HPGage.getLevelToScale(X.korecover / HPGage.hpmax); this.koGreen._xscale = HPGage.getLevelToScale(0); this.koGreen._alpha = 100; this.koGreen._x = 0; this.koRed._x = 0; this.white1._x = 0; }; this.mc.cushion.drawKo = function (koVal, koClickTimeTz) { this._alpha = 100; var v2 = X.COSI(G.gamet, 110); this.koRed._alpha = 34 + 30 * v2; this.koGreen._xscale = HPGage.getLevelToScale(koVal / HPGage.hpmax); this.koGreen._alpha = 44 + 20 * v2; if (koClickTimeTz >= 0) { this.white1._xscale = HPGage.getLevelToScale(koVal / HPGage.hpmax); this.white1._alpha = 70 * X.ZSINV(koClickTimeTz); } }; this.mc._x = x; this.mc.startx = this.mc._x; this.mc._y = y; this.mc.starty = this.mc._y; this.cushion = 0; this.cushion_minus = HPGage.hpmax / 90; this.setval(HPGage.hpmax); }; _global.HPGage = v1; var v2 = v1.prototype; v2.stageInit = function () { this.precusion = -1; this.cushion = 0; this.mc.cushion.hide(); this.mc._x = this.mc.startx; this.mc._y = this.mc.starty; this.setval(HPGage.hpmax); this.koInit(false); }; v2.koInit = function (flag) { this.koVal = flag ? 0 : -1; this.koClickTime = 0; this.koClickCount = 0; if (!flag) { this.mc.cushion.koHide(); } else { this.mc.cushion.koInit(); } }; v2.stageEnd = function () { this.fine(); }; v2.setval = function (_val) { this.val = _val; this.cushion = 0; this.fine(); }; v1.getLevelToScale = function (level) { return Math.max(0, -0.5 + level * 100.5); }; v2.fine = function () { this.val = X.MMX(0, this.val, HPGage.hpmax); var v2 = this.val; if (this.cushion < 0) { v2 -= this.cushion; } var v3 = v2 / HPGage.hpmax; this.mc.gageBar._xscale = HPGage.getLevelToScale(v3); this.mc.gageBar.barLight._alpha = X.MMX(0, -50 + ((this.val - this.cushion) / HPGage.hpmax) * 190, 100); if (this.precusion != this.cushion) { if (!this.cushion) { this.mc.cushion.hide(); } else { this.mc.cushion.drawCushion(this.val, this.cushion); } this.precusion = this.cushion; } }; v2.addval = function (_val, _useCushuion) { this.mc._x = this.mc.startx; this.mc._y = this.mc.starty; var v2 = X.MMX(0, this.val + _val, HPGage.hpmax); this.cushion = 0; if (_useCushuion) { this.cushion = v2 - this.val; this.mc.cushion.sframe = 0; this.cushion_minus = Math.abs(this.cushion) / 50; } this.val = v2; this.fine(); }; v2.run = function (f) { if (this.cushion) { if (this.cushion < 0) { if (this.cushion > -this.cushion_minus) { this.cushion = 0; this.mc._x = this.mc.startx; this.mc._y = this.mc.starty; } else { this.cushion += this.cushion_minus; if (f % 2) { this.mc._x = this.mc.startx + X.ranNm('0+-2'); this.mc._y = this.mc.starty + X.ranNm('0+-2'); } } } else { if (this.cushion < this.cushion_minus) { this.cushion = 0; } else { this.cushion -= this.cushion_minus; } } this.fine(); } }; v2.koRun = function (is_clicked) { var v2 = X.korecover / X.kostan; if (this.koVal >= 0) { this.koVal += v2; if (is_clicked) { if (this.koClickTime <= 23) { this.koClickTime = 30; if (this.koClickCount <= X.korecovercount_by_click) { this.koVal += v2 * X.korecover_by_click; ++this.koClickCount; } } } --this.koClickTime; if (this.koVal < X.korecover) { this.mc.cushion.drawKo(this.koVal, this.koClickTime / 30); } else { this.koInit(false); this.setval(X.korecover); return true; } return false; } return true; return false; }; v2.getval = function () { return this.val - this.cushion; }; v1.hpmax = 100; v1.cols = [['koRed', 15599697, 70], ['koGreen', 10742636, 40], ['black', 3815222, 50], ['red', 16714307, 100], ['white0', 14090234, 50], ['white1', 16121854, 100]]; ASSetPropFlags(_global.HPGage.prototype, null, 1); } #endinitclip } movieClip 997 __Packages.G_pause { #initclip if (!_global.G_pause) { var v1 = function (basemc, zIndex) { this.mc = basemc.attachMovie('G_pause_b', 'G_pause_b', zIndex); this.cnt = 0; this.phase = G_pause.PHASE.ACTIVE; X.btn_backtotitle.gotoAndPlay('hide'); BGM.fadeout('GAME', 0.3); }; _global.G_pause = v1; var v2 = v1.prototype; v2.run = function () { if (this.phase == G_pause.PHASE.ACTIVE) { if (X.BTN.pause_cancel) { this.phase = G_pause.PHASE.HIDING; this.hide(); X.btn_backtotitle.gotoAndPlay('show'); SND.play('cancel'); } if (X.BTN.pause_backtotitle) { this.phase = G_pause.PHASE.GOTOTITLE; TRANS.set('transition_whiterect_b'); BGM.fadeout('GAME'); this.hide(); SND.play('enter'); } if (X.BTN.pause_retry) { this.phase = G_pause.PHASE.RETRY; SND.play('gameinit'); TRANS.set('transition_whiteopen'); BGM.fadeout('GAME', 1); this.hide(); SND.play('enter'); } } if (this.phase == G_pause.PHASE.HIDING) { var v2 = G.phase == G.PHASE.GAME; var v3 = v2 ? 33 : 4; ++this.cnt; this.mc._alpha = 100 * (1 - this.cnt / v3); if (this.mc._alpha <= 0) { if (v2) { BGM.fadeout('GAME', 1); } return G_pause.PHASE.HIDING; } } if (this.phase == G_pause.PHASE.GOTOTITLE) { if (X.trans_end) { return G_pause.PHASE.GOTOTITLE; } } if (this.phase == G_pause.PHASE.RETRY) { if (X.trans_end) { return G_pause.PHASE.RETRY; } } }; v2.hide = function () { G.btnReset(1); }; v2.destruct = function () { mainButton.destruct(['pause_cancel', 'pause_backtotitle', 'pause_retry']); this.mc.removeMovieClip(); }; v1.PHASE = {'ACTIVE': 0, 'HIDING': 1, 'GOTOTITLE': 2, 'RETRY': 3}; ASSetPropFlags(_global.G_pause.prototype, null, 1); } #endinitclip } movieClip 998 __Packages.G_RESULT { #initclip if (!_global.G_RESULT) { var v1 = function (basemc, zIndex, __isCleared) { this.state = this.STATE.NORMAL; this.stagenum = G.stage.num; this.clicked = false; this.backtotitle_shown = this.clicked; BGM.fadeout('GAME', 0.3); this.mc = basemc.attachMovie('gameresult_b', 'GAMERESULT', zIndex); this.isCleared = __isCleared; this.lastScore = G.UI.score.val; this.rank = G_RANK.calc(this.stagenum, this.lastScore); G.pre_stage_cleared = X.clearedStage; if (this.isCleared && !G.isEndless()) { if (this.stagenum > G.pre_stage_cleared && this.stagenum == X.STG.endlessStageAllowClear && !X.STG.allowAllStage) { ANN.add('open_endless', 100); } if (this.stagenum > G.pre_stage_cleared && this.stagenum == X.STG.max - 2) { ANN.add('open_omake1', 100); } X.clearedStage = Math.max(X.clearedStage, this.stagenum); X.Cookie('mgst_stch_cleared', X.clearedStage); } var v35 = X.Nm(X.STG.hiscores[this.stagenum], 0, true); var v40 = G_RANK.getStringToRank('S'); var v39 = G_RANK.getStringToRank('SS'); var v41 = G_RANK.getStringToRank('SSS'); if (G.isEndless()) { if (G_RANK.calc(this.stagenum, v35) < X.STG.omake2Rank && this.rank >= X.STG.omake2Rank) { ANN.add('open_omake2', 100); } if (G_RANK.calc(8, v35) < X.STG.omake3Rank && G_RANK.calc(7, v35) < X.STG.omake3Rank && this.rank >= X.STG.omake3Rank) { ANN.add('open_omake3', 100); } } else { if (this.stagenum == 2) { if (this.rank >= v39) { if (!X.Cookie('mgst_stch_open_ss3')) { ANN.add('open_ss3', 100); X.Cookie('mgst_stch_open_ss3', 1); } } } if (this.stagenum == 7) { if (G_RANK.calc(8, v35) < X.STG.omake3Rank && G_RANK.calc(7, v35) < X.STG.omake3Rank && this.rank >= X.STG.omake3Rank) { ANN.add('open_omake3', 100); } } var v16 = ['s', 'ss', 'sss']; var v24 = [v40, v39, v41]; var v10 = 0; while (v10 < v16.length) { if (!X.Cookie('mgst_stch_open_' + v16[v10])) { var v15 = true; var v3 = 0; while (v3 < X.STG.max - 1) { var v8 = X.STG.clearRanks[v3]; if (v3 == this.stagenum) { v8 = Math.max(v8, this.rank); } if (v8 < v24[v10]) { v15 = false; break; } ++v3; } if (v15) { ANN.add('open_all' + v16[v10] + 'rank', 100); X.Cookie('mgst_stch_open_' + v16[v10], 1); } } ++v10; } } if (this.isCleared) { this.elBadge = this.mc.attachMovie('result_clear_b', 'BADGE', this.INDX.BADGE); this.elBadge.depx = 294; this.elBadge.depy = -132; this.elBadge.depzm = 69; this.sndTiming = {'timing': 3, 'se': 'result_masterup'}; } else { this.elBadge = this.mc.attachMovie('result_failure_b', 'BADGE', this.INDX.BADGE); this.elBadge.depx = 490; this.elBadge.depy = -4; this.elBadge.depzm = 56; this.sndTiming = {'timing': 9, 'se': 'result_failure'}; } this.elBadge.cnt = -55; this.elBadge.starty = 0; this.elBadge.startx = 0; this.elBadge.startzm = 100; var v20 = X.w - 220; var v21 = 94; this.elBkgStarsbase = this.mc.attachMovie('empty_as', 'elBkgStarsbase', this.INDX.BKGSTARS); this.elBkgStarsbase.stars = []; v10 = 0; while (v10 < 2) { var v12 = !v10 ? 31 : 24; var v5 = [{'dir': -1, 'zm': 1.03, 'mcstring': 'star_1_b', 'delay': 61, 'lgt': 174}, {'dir': 1, 'zm': 0.61, 'mcstring': 'star_2_b', 'delay': 73, 'lgt': 160}][v10]; v3 = 0; while (v3 < v12) { var v2 = this.elBkgStarsbase.attachMovie(v5.mcstring, 's' + v10 + '_' + v3, this.elBkgStarsbase.stars.length); v2.cnt = -v5.delay - v3 * 1; v2._yscale = 100 * v5.zm; v2._xscale = v2._yscale; var v6 = -90 + (v5.dir * v3 / v12) * 360; v2._rotation = v6 + 90; v6 *= X.PI / 180; v2._x = v20 + v5.lgt * X.Cos(v6); v2._y = v21 + 120 + v5.lgt * X.Sin(v6); v2._alpha = 0; this.elBkgStarsbase.stars.push(v2); ++v3; } ++v10; } this.elCharac = this.mc.attachMovie('clpic_b', 'clpic_b', this.INDX.CHARAC); this.gottenStar = G.UI.getStar.val; var v49 = G.stage.getDropCount(G.OBJ.STAR); this.kaisyu = G.getKaisyu(); this.realPlayTime = Clock.secondsToMinute(X.int(G.stage.frame / 60)); this.lastHp = X.int(G.UI.HPGage.val * 1); var v23 = [{'name': '繧ケ繝��繧ク', 't': X.getStageValue(this.stagenum), 'valuemode': 1}, {'name': '邨ゆコ�凾髢�', 't': Clock.timeToHM(G.UI.Clock.getTheTime('0'))}, {'name': '邨ゆコ㎞P', 't': X.spr0(this.lastHp, 3, 'O') + '%'}, {'name': '螳溘�繝ャ繧、譎る俣', 't': this.realPlayTime}, {'name': '蜿悶▲縺滓弌縺ョ謨ー', 't': X.spr0(this.gottenStar, G.isEndless() ? 7 : G.STARKETA, 'O')}, {'name': '關ス縺ィ縺励◆譏溘�謨ー', 't': X.spr0(G.stage.lostcount[G.OBJ.STAR], G.isEndless() ? 7 : G.STARKETA, 'O')}, {'name': '蝗槫庶邇�', 't': this.kaisyu}, {'name': '陲ォ蠑セ蝗樊焚', 't': G.hitBombCount}, {'name': 'KO蝗樊焚', 't': G.stage.kocount}, {'name': '繧ケ繧ウ繧「', 't': this.lastScore, 'mcstring': 'char_bluebigblink'}]; if (G.UI.Clock.getval() >= 1) { v23[1].mcstring = 'char_red'; } if (v23[2].t == 'OO0%') { v23[2].mcstring = 'char_red'; } var v43 = 140; var v34 = 28; this.elResults = []; var v33 = 0; var v32 = 0; v3 = 0; while (v3 < v23.length) { var v4 = this.mc.attachMovie('empty_as', 'result_rows' + v3, this.INDX.RESULTS + v3); var v17 = v4.attachMovie('result_title', 'result_title', 100); v17.gotoAndStop(v3 + 1); v17._x -= 215; v4.cnt = -70 - v3 * 5; v4._x = v20; v4.starty = v21 + v34 * v3; var v14 = G.uichar_w; var v18 = G.uichar_h; var v19 = 5; var v7 = v23[v3]; if (!v7.mcstring) { v7.mcstring = 'char_blue'; } if (v7.mcstring == 'char_bluebigblink') { v14 *= 1.5; v4._x = X.w - v14 * G.SCOREKETA - 115; v18 *= 1.5; v4.starty += 27; v4.cnt -= 13; v19 -= 5; } v33 = v4.starty; v32 = v4.cnt; v4.num = new numberShow('num', v4, 0, v19, 200, v14, v18, G.SCOREKETA, v7.mcstring, 0); if (v7.valuemode == 1) { v4.num.setval(v7.t); } if (v7.name == '繧ケ繧ウ繧「') { v4.num.setvalSuppressed(v7.t); } else { v4.num.setText(v7.t); } v4._alpha = 0; this.elResults.push(v4); ++v3; } if (X.STG.hiscores[this.stagenum] < this.lastScore || X.STG.hiscores[this.stagenum] === undefined) { this.elHiscore = this.mc.attachMovie('hiscore_refined_b', 'hiscore_refined_b', this.INDX.HISCORE); this.elHiscore._y = v33 + 50; X.STG.hiscores[this.stagenum] = this.lastScore; X.STG.clearRanks[this.stagenum] = this.rank; this.elHiscore.cnt = v32 - 21; this.elHiscore.stop(); flash.external.ExternalInterface.call('Cookie', 'mgst_stch_hiscore_' + this.stagenum, this.lastScore); } this.rankViewer = new item_rankstar(this.mc, this.INDX.RANK, this.INDX.RANKBKG, this.rank, true, -(v32 - 13)); this.rankViewer.moveTo(v20 + 146, v33 - 10); this.elRankViewerNext = undefined; var v37 = G_RANK.getKeta(this.stagenum, this.rank); var v38 = G_RANK.getKeta(this.stagenum, this.rank - 1); var v36 = G.uichar_w / 2; this.elRankViewerNext = this.rankViewer.attachMovie('result_kara', 'result_kara', 500); this.elRankViewerNext._x = -40 - v36 * v37 - 18; this.elRankViewerNext.starty = -6; this.elRankViewerNext._y = -6; if (v37) { this.elRankViewerNext.num1 = new numberShow('num1', this.elRankViewerNext, 16, 1, 100, v36, G.uichar_h / 2, v37, 'char_small', G_RANK.getNextRank(this.stagenum, this.rank)); } if (v38) { this.elRankViewerNext.num0 = new numberShow('num0', this.elRankViewerNext, -6 - v36 * v38, 1, 300, v36, G.uichar_h / 2, v38, 'char_small', G_RANK.getNextRank(this.stagenum, this.rank - 1)); } this.elRankViewerNext.cnt = v32 - 40; this.elRankViewerNext._alpha = 0; this.sndTimingRankView = -(v32 - 13); this.elButtonsbase = this.mc.attachMovie('empty_as', 'elButtonsbase', this.INDX.BUTTONS); this.elButtonsbase.buttons = []; v3 = 0; while (v3 < 3) { var v13 = X.w / 2 - 176; var v9 = [{'text': 'tweet', 'ysh': 0, 'x': v13 - X.w * 0.2}, {'text': 'retry', 'ysh': 0, 'x': v13 + X.w * 0.2}, {'text': 'nextstage', 'ysh': -50, 'x': v13 + X.w * 0.2}][v3]; var v22 = v9.text; if (v9.text == 'nextstage') { if (X.clearedStage < this.stagenum || this.stagenum >= X.STG.max - 1) { break; } if (this.isLastStage()) { v9.text = 'staffroll'; } } this.elButtonsbase.buttons[v3] = this.elButtonsbase.attachMovie('empty_as', 'button' + v3, v3); var v11 = this.elButtonsbase.buttons[v3]; new mainButton('gameresult_' + v22, v9.text, v11, 0); v11._x = v9.x; v11.starty = X.h - 110 + v9.ysh; v11._y = -400; v11.cnt = -(69 + v3 * 10); v11._alpha = 0; ++v3; } if (this.isCleared) { G.result_label = G.UI.Clock.val < Clock.timeToValue('3:30') ? 'clear' : 'dangerclear'; } else { G.result_label = (G.isEndless() && this.lastHp <= 0) ? 'ko' : 'failure'; } }; _global.G_RESULT = v1; var v2 = v1.prototype; v2.run = function (f) { var v2; var v5; var v3 = ([].concat(this.elResults)).concat(this.elButtonsbase.buttons); if (this.elRankViewerNext) { v3.push(this.elRankViewerNext); } v2 = 0; while (v2 < v3.length) { ++v3[v2].cnt; if (v3[v2].cnt > 0) { v5 = X.ZSIN(v3[v2].cnt / 20); v3[v2]._alpha = v5 * 100; v3[v2]._y = v3[v2].starty + 40 * (1 - v5); } ++v2; } ++this.elBadge.cnt; if (this.elBadge.cnt >= 0) { var v6 = X.ZSIN(this.elBadge.cnt / 60); this.elBadge._x = this.elBadge.startx * (1 - v6) + this.elBadge.depx * v6; this.elBadge._y = this.elBadge.starty * (1 - v6) + this.elBadge.depy * v6; this.elBadge._yscale = this.elBadge.startzm * (1 - v6) + this.elBadge.depzm * v6; this.elBadge._xscale = this.elBadge._yscale; } ++this.elHiscore.cnt; if (this.elHiscore.cnt >= 0) { if (this.elHiscore._currentframe <= 1) { this.elHiscore.gotoAndPlay(2); } } v2 = 0; while (v2 < this.elBkgStarsbase.stars.length) { var v4 = this.elBkgStarsbase.stars[v2]; ++v4.cnt; if (v4.cnt === 0) { v4.gotoAndPlay(1); v4._alpha = 100; } ++v2; } if (X.clickflag == 1) { v3 = ((v3.concat([this.elBadge])).concat(this.elBkgStarsbase.stars)).concat(this.elHiscore); v2 = 0; while (v2 < v3.length) { if (v3[v2].cnt < 0) { v3[v2]._alpha = 100; v3[v2].cnt = 1000; } ++v2; } X.clickflag = 0; this.rankViewer.show(); ANN.show(); this.clicked = 1; } this.rankViewer.run(); if (this.sndTiming) { if (f >= this.sndTiming.timing || this.clicked) { SND.play(this.sndTiming.se); this.sndTiming = undefined; } } if (this.sndTimingRankView) { if (f >= this.sndTimingRankView || this.clicked) { SND.play('rankview'); this.sndTimingRankView = 0; } } if ((f >= 84 || this.clicked) && !this.backtotitle_shown) { X.btn_backtotitle.gotoAndPlay('show'); this.backtotitle_shown = true; } if (this.state == this.STATE.NORMAL) { if (X.BTN.gameresult_nextstage || X.BTN.gameresult_retry) { SND.play('enter'); if (this.isLastStage() && X.BTN.gameresult_nextstage) { BGM.fadeout('GAME', 0.3); this.state = this.STATE.GOTOENDING; TRANS.set('transition_starclose'); } else { if (X.BTN.gameresult_nextstage) { X.STG.currentStage = Math.min(X.STG.max - 1, X.STG.currentStage + 1); } TRANS.set('transition_whiteopen'); this.state = this.STATE.GOTOGAME; SND.play('gameinit'); BGM.fadeout('GAME', 1); } mainButton.hide(['gameresult_nextstage', 'gameresult_tweet', 'gameresult_retry', 'backtotitle']); } if (X.BTN.gameresult_tweet) { SND.play('enter'); X.BTN.gameresult_tweet = 0; var v7 = this.kaisyu; if (G.isEndless()) { v7 = this.gottenStar; } flash.external.ExternalInterface.call('starchaserShowTweet', this.isCleared, X.getStageValue(this.stagenum), this.lastScore, v7, G_RANK.getRankToString(this.rank), this.realPlayTime, this.lastHp); } } else { if (this.state == this.STATE.GOTOGAME) { if (X.trans_end == 1) { X.btn_backtotitle.gotoAndPlay('show'); return G.PHASE.GAME; } } else { if (this.state == this.STATE.GOTOENDING) { if (X.trans_end == 1) { return 'GOTOENDING'; } } } } }; v2.btnShow = function () { mainButton.show(['gameresult_nextstage', 'gameresult_tweet', 'gameresult_retry']); }; v2.destruct = function () { mainButton.hide('backtotitle'); mainButton.destruct(['gameresult_nextstage', 'gameresult_tweet', 'gameresult_retry']); this.mc.removeMovieClip(); }; v2.isLastStage = function () { return this.stagenum == X.STG.max - 2; }; v2.state = 0; v2.STATE = {'NORMAL': 0, 'GOTOGAME': 1, 'GOTOENDING': 2}; v2.INDX = {'BADGE': 100, 'BKGSTARS': 60, 'RANKBKG': 370, 'CHARAC': 390, 'BUTTONS': 600, 'RESULTS': 400, 'HISCORE': 500, 'RANK': 900}; ASSetPropFlags(_global.G_RESULT.prototype, null, 1); } #endinitclip } movieClip 999 __Packages.starWipeSetter { #initclip if (!_global.starWipeSetter) { var v1 = function () {}; _global.starWipeSetter = v1; var v2 = v1.prototype; v1.init = function (mc, _stopframe) { var v6 = X.h / starWipeSetter.cnt; starWipeSetter.maxi = starWipeSetter.cnt + 1; var v4 = X.makeCountUpArray(starWipeSetter.maxi, 0, v6); var v2 = 1; while (v2 < v4.length - 1) { v4[v2] += X.ranNm('0+-' + v6 * 0.47); ++v2; } starWipeSetter.elem = []; v2 = 0; while (v2 < v4.length - 1) { var v3 = mc.attachMovie('empty_as', 'starwipe_item', v2); v3.index = v2; var v5 = v4[v2 + 1] - v4[v2]; starWipeSetter.elem[v2] = new starWipe(v3, v5 * 1.2, _stopframe); v3._x = X.ranNm(X.w + 150 + v5 + '+-150'); v3._y = v4[v2]; v3.onEnterFrame = function () { starWipeSetter.elem[this.index].run(); }; ++v2; } }; v1.cnt = 16; ASSetPropFlags(_global.starWipeSetter.prototype, null, 1); } #endinitclip } movieClip 1000 __Packages.starWipe { #initclip if (!_global.starWipe) { var v1 = function (mc, lgt, _stopframe) { this.baseelem = mc.attachMovie('empty_as', 'star', 0); var v10 = X.HSV2RGB('180+-180', '70+-30', '95+-5'); this.baseelem.beginFill(X.level2color(v10), 100); var v7 = ((X.ranNm('-36+-36') - 90) / 180) * X.PI; var v8 = lgt; var v9 = X.PI * 2 / 10; var v3 = []; var v4 = [0, 0]; var v5 = [0, 0]; var v2 = 0; while (v2 < 10) { var v6 = v8 * (v2 % 2 ? 0.4 : 1); v3[v2] = [v6 * Math.cos(v7), v6 * Math.sin(v7)]; if (v2 === 0) { this.baseelem.moveTo(v3[v2][0], v3[v2][1]); } else { this.baseelem.lineTo(v3[v2][0], v3[v2][1]); } v7 += v9; if (v4[1] > v3[v2][1]) { v4[1] = v3[v2][1]; v4[0] = v2; } if (v5[1] < v3[v2][1]) { v5[1] = v3[v2][1]; v5[0] = v2; } ++v2; } this.baseelem.endFill(); this.baseelem.beginFill(X.level2color(X.HSV2RGB('180+-180', '30+-30', '99')), 90); v2 = v4[0]; while (v2 <= v5[0]) { if (v2 == v4[0]) { this.baseelem.moveTo(v3[v2][0], v3[v2][1]); } else { this.baseelem.lineTo(v3[v2][0], v3[v2][1]); } ++v2; } this.leftshift = X.ranNm(starWipe.leftshiftbase + '+-200'); this.baseelem.lineTo(this.leftshift + X.w, v3[v5[0]][1]); this.baseelem.lineTo(this.leftshift + X.w, v3[v4[0]][1]); this.baseelem.endFill(); this.cnt = (-_stopframe / 4) * Math.random(); this.stopframe = _stopframe; }; _global.starWipe = v1; var v2 = v1.prototype; v2.run = function () { ++this.cnt; if (this.cnt >= 0) { var v2 = X.ZSIN2(this.cnt / this.stopframe * 0.92); this.baseelem._x = -this.leftshift * v2; } }; v1.leftshiftbase = 1400; ASSetPropFlags(_global.starWipe.prototype, null, 1); } #endinitclip } movieClip 1001 __Packages.item_quake { #initclip if (!_global.item_quake) { var v1 = function (__mc, __value, __quakeframe, __quakeintv) { this.mc = __mc; this.mc.startx = this.mc._x; this.mc.starty = this.mc._y; this.quakeframe = __quakeframe; this.value = __value; this.quakeintv = __quakeintv ? __quakeintv : 1; }; _global.item_quake = v1; var v2 = v1.prototype; v2.run = function () { if (this.quakeframe) { if (!(this.quakeframe % this.quakeintv)) { this.mc._x = X.ranNm(this.mc.startx + '+-' + this.value); this.mc._y = X.ranNm(this.mc.starty + '+-' + this.value); } --this.quakeframe; if (!this.quakeframe) { this.mc._x = this.mc.startx; this.mc._y = this.mc.starty; } } }; ASSetPropFlags(_global.item_quake.prototype, null, 1); } #endinitclip } movieClip 1002 __Packages.item_rainbow { #initclip if (!_global.item_rainbow) { var v1 = function (__mc, __index) { this.mc = __mc; this.index = __index; this.mc.ecols = []; var v5 = this.mc._width; var v4 = this.mc._height; var v3 = 0; while (v3 < item_rainbow.colors.length) { var v2 = this.mc.attachMovie('empty_as', 'item_rainbow_' + v3, 300 + v3); v2.beginFill(item_rainbow.colors[v3], 100); v2.moveTo(0, 0); v2.lineTo(v5 * 2, 0); v2.lineTo(v5 * 2, v4); v2.lineTo(0, v4); v2.endFill(); this.mc.ecols.push(v2); ++v3; } this.cnt = 0; this.setframe(); }; _global.item_rainbow = v1; var v2 = v1.prototype; v2.setframe = function () { var v3 = (this.cnt / item_rainbow.animfrm + this.index) % item_rainbow.colors.length; var v2 = 0; while (v2 < item_rainbow.colors.length) { this.mc.ecols[v2]._alpha = (v3 == v2) ? 100 : 0; ++v2; } }; v2.run = function () { ++this.cnt; if (this.cnt % item_rainbow.animfrm == 0) { this.setframe(); } }; v1.animfrm = 12; v1.colors = [16091529, 15512713, 16769406, 12512396, 9496235, 7979232, 9412849, 12623347, 14850245]; ASSetPropFlags(_global.item_rainbow.prototype, null, 1); } #endinitclip } movieClip 1003 __Packages.item_itemaula { #initclip if (!_global.item_itemaula) { var v1 = function (__mc, circlecolor) { this.mainmc = __mc; this.aulamc = this.mainmc._parent.aula; this.circ = []; var v3 = 0; while (v3 < 2) { this.circ[v3] = this.mainmc._parent.attachMovie('empty_as', 'circ' + v3, 100 + v3); var v2 = this.circ[v3]; var v4 = v2.attachMovie('empty_as', 'circ', 0); v2.blendMode = 'add'; v4.lineWidth = 1.4; v4.lineStyle(v4.lineWidth, circlecolor, 80); X.MCdrawCircle(v4, 0, 0, 40); v2.strot = X.ranNm('0+-180'); v2.rotplus = X.ranNm('0+-100') / 40; v2.stxsc = X.ranNm('0+-180'); v2.xscA = X.ranNm('340+-70'); v2.stysc = X.ranNm('0+-180'); v2.yscA = X.ranNm('340+-70'); v2._rotation = v2.strot; v2.zmr = X.ranNm('180+-50'); v2.getXY = function () { ++this.stxsc; this.circ._xscale = 100 * X.COSI(this.stxsc, this.xscA); ++this.stysc; }; v2.getXY(); ++v3; } this.cnt = 0; }; _global.item_itemaula = v1; var v2 = v1.prototype; v2.run = function () { ++this.cnt; this.aulamc._yscale = 85 + 15 * X.COSI(this.cnt, 130); this.aulamc._xscale = this.aulamc._yscale; if (this.cnt % 5 == 0) { this.mainmc.blendMode = this.cnt / 5 % 8 ? 'normal' : 'add'; } var v3 = 0; while (v3 < 2) { var v2 = this.circ[v3]; v2._yscale = 100 + 5 * X.COSI(this.cnt, v2.zmr); v2._xscale = v2._yscale; v2.getXY(); v2._rotation += v2.rotplus; ++v3; } }; ASSetPropFlags(_global.item_itemaula.prototype, null, 1); } #endinitclip }




http://swfchan.com/52/259913/info.shtml
Created: 6/4 -2025 13:29:47 Last modified: 6/4 -2025 13:29:47 Server time: 07/12 -2025 11:59:05