Frame 1
function err_set(er_code, er_txt) {
_root.er_code = er_code;
_root.er_txt = er_txt;
_root.gotoAndPlay("loaderr");
return(undefined);
}
function now_loadinger() {
var _local4 = _root.getBytesLoaded();
var _local3 = _root.getBytesTotal();
this.Now_load_MC.load_bar.gotoAndStop(Math.floor((_local4 / _local3) * 100));
if (_local4 == _local3) {
_root.onEnterFrame = eval("Null");
gotoAndPlay ("load_go");
}
}
function sound_com(flg) {
if (flg == "stop") {
_root.SO_title_bgm.stop();
_root.SO_bgm.stop();
_root.SO_select.stop();
_root.SO_rollover.stop();
_root.SO_score_bgm.stop();
_root.SO_end_game.stop();
_root.SO_shot.stop();
_root.SO_get_hp.stop();
_root.SO_get_power.stop();
_root.SO_nice_shot.stop();
_root.SO_miss.stop();
_root.SO_hit_1.stop();
_root.SO_hit_2.stop();
_root.SO_LV_UP.stop();
_root.SO_Gem_slice.stop();
_root.SO_replenishment.stop();
} else {
var _local2 = 0;
if (!flg) {
_local2 = 80;
}
_root.SO_title_bgm.setVolume(_local2);
_root.SO_bgm.setVolume(_local2);
_root.SO_select.setVolume(_local2);
_root.SO_rollover.setVolume(_local2);
_root.SO_score_bgm.setVolume(_local2);
_root.SO_end_game.setVolume(_local2);
_root.SO_shot.setVolume(_local2);
_root.SO_get_hp.setVolume(_local2);
_root.SO_get_power.setVolume(_local2);
_root.SO_nice_shot.setVolume(_local2);
_root.SO_miss.setVolume(_local2);
_root.SO_hit_1.setVolume(_local2);
_root.SO_hit_2.setVolume(_local2);
_root.SO_LV_UP.setVolume(_local2);
_root.SO_Gem_slice.setVolume(_local2);
_root.SO_replenishment.setVolume(_local2);
}
}
function make_Sound_M() {
function loop_titleBGM() {
_root.SO_title_bgm.start();
}
function loop_BGM() {
_root.SO_bgm.start();
}
function loop_score_bgm() {
_root.SO_score_bgm.start();
}
var _local2 = 80;
_root.createEmptyMovieClip("Sound_bord", 30000);
_root.Sound_bord.createEmptyMovieClip("title_bgm", 30001);
SO_title_bgm = new Sound(_root.Sound_bord.title_bgm);
SO_title_bgm.attachSound("title_bgm");
_root.SO_title_bgm.onSoundComplete = loop_titleBGM;
_root.Sound_bord.createEmptyMovieClip("bgm", 30002);
SO_bgm = new Sound(_root.Sound_bord.bgm);
SO_bgm.attachSound("bgm");
_root.SO_bgm.onSoundComplete = loop_BGM;
_root.Sound_bord.createEmptyMovieClip("select", 30003);
SO_select = new Sound(_root.Sound_bord.select);
SO_select.attachSound("select");
_root.Sound_bord.createEmptyMovieClip("rollover", 30004);
SO_rollover = new Sound(_root.Sound_bord.rollover);
SO_rollover.attachSound("rollover");
_root.Sound_bord.createEmptyMovieClip("score_bgm", 30005);
SO_score_bgm = new Sound(_root.Sound_bord.score_bgm);
SO_score_bgm.attachSound("score_bgm");
_root.SO_score_bgm.onSoundComplete = loop_score_bgm;
_root.Sound_bord.createEmptyMovieClip("end_game", 30006);
SO_end_game = new Sound(_root.Sound_bord.end_game);
SO_end_game.attachSound("end_game");
_root.Sound_bord.createEmptyMovieClip("shot", 30007);
SO_shot = new Sound(_root.Sound_bord.shot);
SO_shot.attachSound("shot");
_root.Sound_bord.createEmptyMovieClip("get_hp", 30008);
SO_get_hp = new Sound(_root.Sound_bord.get_hp);
SO_get_hp.attachSound("get_hp");
_root.Sound_bord.createEmptyMovieClip("get_power", 30009);
SO_get_power = new Sound(_root.Sound_bord.get_power);
SO_get_power.attachSound("get_power");
_root.Sound_bord.createEmptyMovieClip("nice_shot", 30010);
SO_nice_shot = new Sound(_root.Sound_bord.nice_shot);
SO_nice_shot.attachSound("nice_shot");
_root.Sound_bord.createEmptyMovieClip("miss", 30011);
SO_miss = new Sound(_root.Sound_bord.miss);
SO_miss.attachSound("miss");
_root.Sound_bord.createEmptyMovieClip("hit_1", 30012);
SO_hit_1 = new Sound(_root.Sound_bord.hit_1);
SO_hit_1.attachSound("hit_1");
_root.Sound_bord.createEmptyMovieClip("hit_2", 30013);
SO_hit_2 = new Sound(_root.Sound_bord.hit_2);
SO_hit_2.attachSound("hit_2");
_root.Sound_bord.createEmptyMovieClip("LV_UP", 30014);
SO_LV_UP = new Sound(_root.Sound_bord.LV_UP);
SO_LV_UP.attachSound("LV_UP");
_root.Sound_bord.createEmptyMovieClip("Gem_slice", 30015);
SO_Gem_slice = new Sound(_root.Sound_bord.Gem_slice);
SO_Gem_slice.attachSound("Gem_slice");
_root.Sound_bord.createEmptyMovieClip("replenishment", 30016);
SO_replenishment = new Sound(_root.Sound_bord.replenishment);
SO_replenishment.attachSound("replenishment");
return(true);
}
var mute = false;
var er_code;
var er_txt;
var end_obj = new Object();
var menu_cm = new ContextMenu();
menu_cm.builtInItems.forward_back = false;
menu_cm.builtInItems.loop = false;
menu_cm.builtInItems.play = false;
menu_cm.builtInItems.print = false;
menu_cm.builtInItems.quality = false;
menu_cm.builtInItems.rewind = false;
menu_cm.builtInItems.zoom = false;
_root.menu = menu_cm;
_root.onEnterFrame = now_loadinger;
stop();
Frame 2
prevFrame();
Frame 5
_root.make_Sound_M();
Frame 6
_root.sound_com("stop");
Frame 7
stop();
Frame 8
_root.sound_com("stop");
Frame 9
stop();
Frame 11
stop();
Instance of Symbol 70 MovieClip in Frame 12
on (press) {
gotoAndPlay (1);
}
Frame 13
stop();
Symbol 4 MovieClip Frame 1
stop();
Symbol 57 MovieClip [solder] Frame 1
var enter_flg = false;
Symbol 57 MovieClip [solder] Frame 10
enter_flg = true;
Symbol 57 MovieClip [solder] Frame 11
stop();
Symbol 57 MovieClip [solder] Frame 17
gotoAndPlay ("fire");
Symbol 57 MovieClip [solder] Frame 34
this._parent._parent.itemDelete(ID);
Symbol 57 MovieClip [solder] Frame 53
this._parent._parent.itemDelete(ID);
Symbol 60 MovieClip [r_pot] Frame 1
var enter_flg = false;
Symbol 60 MovieClip [r_pot] Frame 20
enter_flg = true;
stop();
Symbol 60 MovieClip [r_pot] Frame 42
this._parent._parent.itemDelete(ID);
Symbol 60 MovieClip [r_pot] Frame 50
this._parent._parent.itemDelete(ID);
Symbol 62 MovieClip [b_pot] Frame 1
var enter_flg = false;
Symbol 62 MovieClip [b_pot] Frame 20
enter_flg = true;
stop();
Symbol 62 MovieClip [b_pot] Frame 42
this._parent._parent.itemDelete(ID);
Symbol 62 MovieClip [b_pot] Frame 50
this._parent._parent.itemDelete(ID);
Instance of Symbol 73 MovieClip in Symbol 80 MovieClip Frame 1
onClipEvent (enterFrame) {
var gotox = 0;
if (_root._quality == "MEDIUM") {
gotox = 1.8;
} else if (_root._quality == "LOW") {
gotox = -87.3;
} else if (_root._quality == "HIGH") {
gotox = 92.8;
}
_x = (_x + ((gotox - _x) * 0.3));
}
Instance of Symbol 75 MovieClip in Symbol 80 MovieClip Frame 1
on (release) {
_root.SO_select.start();
_root._quality = "HIGH";
}
on (rollOver, dragOver) {
_root.SO_rollover.start();
}
Instance of Symbol 77 MovieClip in Symbol 80 MovieClip Frame 1
on (release) {
_root.SO_select.start();
_root._quality = "MEDIUM";
}
on (rollOver, dragOver) {
_root.SO_rollover.start();
}
Instance of Symbol 79 MovieClip in Symbol 80 MovieClip Frame 1
on (release) {
_root.SO_select.start();
_root._quality = "LOW";
}
on (rollOver, dragOver) {
_root.SO_rollover.start();
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 11
stop();
Symbol 129 MovieClip Frame 23
stop();
Symbol 131 MovieClip Frame 30
stop();
Symbol 139 MovieClip Frame 15
stop();
Symbol 143 MovieClip Frame 17
stop();
Symbol 145 Button
on (press) {
_root.SO_select.start();
gotoAndPlay ("help");
}
on (rollOver, dragOver) {
_root.SO_rollover.start();
}
Symbol 146 Button
on (press) {
_root.SO_title_bgm.stop();
_root.SO_select.start();
gotoAndPlay ("game_start");
}
on (rollOver, dragOver) {
_root.SO_rollover.start();
}
Symbol 158 MovieClip Frame 15
stop();
Symbol 160 Button
on (press) {
_root.SO_select.start();
gotoAndPlay ("title");
}
on (rollOver, dragOver) {
_root.SO_rollover.start();
}
Instance of Symbol 85 MovieClip in Symbol 161 MovieClip Frame 1
on (release) {
_root.SO_select.start();
if (_root.mute) {
_root.mute = false;
gotoAndStop ("on");
} else {
_root.mute = true;
gotoAndStop ("off");
}
_root.sound_com(_root.mute);
}
Symbol 161 MovieClip Frame 18
_root.SO_title_bgm.start();
Symbol 161 MovieClip Frame 40
stop();
Symbol 161 MovieClip Frame 51
_root.gotoAndPlay("game");
stop();
Symbol 161 MovieClip Frame 105
stop();
Symbol 161 MovieClip Frame 116
gotoAndPlay ("title");
Symbol 178 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 2
stop();
Symbol 195 MovieClip Frame 36
gotoAndPlay ("off");
Symbol 206 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 4
stop();
Symbol 223 MovieClip Frame 2
gotoAndPlay (1);
Symbol 223 MovieClip Frame 4
gotoAndPlay ("point");
Symbol 223 MovieClip Frame 12
shot = 0;
gotoAndPlay (1);
Symbol 223 MovieClip Frame 20
shot = 0;
gotoAndPlay (1);
Symbol 226 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
stop();
Symbol 236 MovieClip Frame 40
gotoAndPlay ("off");
Symbol 238 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.round(Math.random() * (max - min)) + min;
return(_local1);
}
function Estab_judg(par) {
if (this.randRange(0, 10000) < (par * 100)) {
return(true);
}
return(false);
}
function sort_Y() {
function swap(i, j) {
var _local3 = temp_b[i][0];
var _local4 = temp_b[i][1];
temp_b[i][0] = temp_b[j][0];
temp_b[i][1] = temp_b[j][1];
temp_b[j][0] = _local3;
temp_b[j][1] = _local4;
}
function division(left, right, pivot) {
var _local5 = -1;
var _local4 = left;
while (_local4 <= right) {
if (temp_b[_local4][0] <= pivot) {
_local5++;
}
_local4++;
}
if (_local5 == (right - left)) {
swap(right, left);
return(right - 1);
}
_local5 = _local5 + left;
while (left <= right) {
while (temp_b[left][0] <= pivot) {
left++;
}
while (temp_b[right][0] > pivot) {
right--;
}
if (left > right) {
break;
}
swap(left, right);
left++;
right--;
}
return(_local5);
}
function sort(left, right) {
if (left == right) {
return(undefined);
}
var _local1 = division(left, right, temp_b[left][0]);
sort(left, _local1);
sort(_local1 + 1, right);
}
var temp_b = Array();
var _local2 = 0;
var _local8 = 0;
var _local3 = itemMax;
while (_local3 > 1) {
if (itemUse[_local3] == 1) {
var _local4 = this.item_b["item" + _local3];
temp_b[_local8] = Array();
temp_b[_local8][0] = (_local4._y * 10000) + _local4._x;
temp_b[_local8][1] = _local3;
_local8++;
}
if (!_local8) {
return(false);
}
_local3--;
}
sort(0, temp_b.length - 1);
if (depth_set == 1000) {
_local3 = 0;
while (_local3 > temp_b.length) {
_local2++;
this.item_b["item" + temp_b[_local3][1]].swapDepths(depth_set + _local2);
this.item_b["item" + temp_b[_local3][1]].dpdpdp = depth_set + _local2;
_local3++;
}
depth_set = 2000;
} else {
_local3 = temp_b.length - 1;
while (_local3 >= 0) {
_local2++;
this.item_b["item" + temp_b[_local3][1]].swapDepths(depth_set - _local2);
this.item_b["item" + temp_b[_local3][1]].dpdpdp = depth_set - _local2;
_local3--;
}
depth_set = 1000;
}
}
function scale_mk(temp_y) {
return(int((temp_y / p_point_1_max_y) * 100));
}
function item_set(boss_flg) {
var _local2 = itemMax;
while (_local2 > 1) {
if (itemUse[_local2] == 0) {
break;
}
_local2--;
}
if (_local2 == 1) {
return(false);
}
var _local12;
var _local22;
var _local16 = 0;
var _local17 = 1;
var _local21 = 0;
var _local9 = 0;
var _local6 = 0;
var _local11 = 0;
var _local18 = 0;
var _local8 = 1;
var _local14 = 0;
var _local10 = 0;
var _local4 = this.randRange(1, 6);
switch (_local4) {
case 2 :
case 3 :
case 4 :
var _local3 = side_Max;
while (_local3 > 1) {
if (this[("g" + _local4) + "_placeUse"][_local3] == 0) {
var _local5 = this.randRange(1, this[("p_point_" + _local4) + "_x"].length);
_local9 = this[("p_point_" + _local4) + "_x"][_local5 - 1] + this.randRange(-20, 20);
_local6 = this[("p_point_" + _local4) + "_y"][_local5 - 1];
this[("g" + _local4) + "_placeUse"][_local3] = 1;
_local8 = this.scale_mk(_local6);
_local10 = _local3;
break;
}
_local3--;
}
if (_local3 == 1) {
return(false);
}
break;
case 5 :
case 6 :
_local9 = this.randRange(20, swf_x - 20);
_local6 = this[("p_point_" + _local4) + "_y"];
_local11 = this.randRange(-5, 5);
_local8 = 50;
break;
case 1 :
default :
_local9 = this.randRange(20, swf_x - 20);
_local6 = this.randRange(p_point_1_min_y, p_point_1_max_y);
_local11 = this.randRange(-5, 5);
_local8 = this.scale_mk(_local6);
}
var _local15 = this.randRange(0, 10000);
if (_local15 > 9300) {
in_r_pot_num++;
_local12 = "r_pot";
_local11 = 0;
_local14 = 5 * (flm_spd / exe_flm_spd);
} else if (_local15 > 9000) {
in_b_pot_num++;
_local12 = "b_pot";
_local11 = 0;
_local14 = 5 * (flm_spd / exe_flm_spd);
} else {
in_solder_num++;
_local12 = "solder";
_local16 = 15;
_local14 = this.randRange(1, 2) * (flm_spd / exe_flm_spd);
}
var _local7;
_local7 = this.item_b.attachMovie(_local12, "item" + _local2, _local2 + 1);
_local7._x = _local9;
_local7._y = _local6;
_local7.mv_x = _local11;
_local7.mv_y = _local18;
_local7.hp = _local17;
_local7.AI_at_count = 1 * (flm_spd / exe_flm_spd);
_local7.AI_mv_count = _local14;
_local7._xscale = _local8;
_local7._yscale = _local8;
_local7.typ = _local12;
_local7.ID = _local2;
_local7.P_ID = _local10;
_local7.Attack_flg = false;
_local7.now_P_ID = _local10;
_local7.point = _local16;
_local7.block = _local4;
itemUse[_local2] = 1;
var _local13;
if (_local4 == 5) {
_local13 = this.item_b.attachMovie("mask_1", "mask" + _local2, _local2 + 20000, {_x:300, _y:292.7});
} else if (_local4 == 6) {
_local13 = this.item_b.attachMovie("mask_2", "mask" + _local2, _local2 + 20000, {_x:300, _y:146.8});
} else if ((_local4 == 3) || (_local4 == 4)) {
_local13 = this.item_b.attachMovie("mask_3", "mask" + _local2, _local2 + 20000, {_x:300, _y:231.7});
} else if (_local4 == 2) {
_local13 = this.item_b.attachMovie("mask_4", "mask" + _local2, _local2 + 20000, {_x:300, _y:330.6});
}
_local7.setMask(_local13);
}
function item_mv() {
var _local3 = itemMax;
while (_local3 > 1) {
if (itemUse[_local3] == 1) {
var _local2 = this.item_b["item" + _local3];
var _local6 = _local2.now_P_ID;
if (_local2.hp > 0) {
if ((_local2.typ == "solder") && (_local2.enter_flg == true)) {
if (_local2.AI_at_count < 0) {
var _local7 = _local2.Attack_flg;
if (this.Estab_judg(80)) {
_local2.Attack_flg = true;
_local2.AI_at_count = this.randRange(3, 5) * (flm_spd / exe_flm_spd);
} else {
_local2.Attack_flg = false;
_local2.gotoAndPlay("nomal");
_local2.AI_at_count = this.randRange(1, 2) * (flm_spd / exe_flm_spd);
}
if (_local2.Attack_flg && (!_local7)) {
_local2.gotoAndPlay("fire");
}
}
if (_local2.AI_mv_count < 0) {
if (this.Estab_judg(40)) {
switch (_local2.block) {
case 2 :
break;
case 3 :
case 4 :
if (this.Estab_judg(50)) {
_local2.now_P_ID++;
if (_local2.now_P_ID > this[("p_point_" + _local2.block) + "_x"].length) {
_local2.now_P_ID = this[("p_point_" + _local2.block) + "_x"].length;
}
} else {
_local2.now_P_ID--;
if (_local2.now_P_ID < 1) {
_local2.now_P_ID = 1;
}
}
break;
case 1 :
default :
case 5 :
case 6 :
_local2.mv_x = this.randRange(-5, 5);
}
}
_local2.AI_mv_count = this.randRange(1, 2) * (flm_spd / exe_flm_spd);
}
switch (_local2.block) {
case 2 :
break;
case 3 :
case 4 :
if (_local6 != _local2.now_P_ID) {
_local2._x = this[("p_point_" + _local2.block) + "_x"][_local2.now_P_ID - 1] + this.randRange(-20, 20);
_local2._y = this[("p_point_" + _local2.block) + "_y"][_local2.now_P_ID - 1];
}
_local2._xscale = this.scale_mk(_local2._y);
_local2._yscale = this.scale_mk(_local2._y);
break;
case 1 :
default :
case 5 :
case 6 :
_local2._x = _local2._x + _local2.mv_x;
_local2._y = _local2._y + _local2.mv_y;
var _local4 = _local2._width / 2;
if (!((((_local2._x + _local4) > swf_x) && (_local2.mv_x > 0)) || (((_local2._x - _local4) < 0) && (_local2.mv_x < 0)))) {
break;
}
_local2.mv_x = _local2.mv_x * -1;
_local2._xscale = _local2._xscale * -1;
}
if ((((_local2._x > swf_x) || (_local2._x < 0)) || (_local2._y < 0)) || (_local2._y > swf_y)) {
itemDelete(_local3);
}
if (_local2.mv_x >= 0) {
_local2._xscale = Math.abs(_local2._xscale) * -1;
} else {
_local2._xscale = Math.abs(_local2._xscale);
}
if (_local2.Attack_flg) {
var _local5 = 1;
if (s_timer > 0) {
_local5 = 0.3;
}
HP = HP - (attack_point * _local5);
}
} else if ((_local2.AI_mv_count < 0) && (_local2.enter_flg == true)) {
_local2.enter_flg = false;
_local2.gotoAndPlay("del");
}
_local2.AI_at_count--;
_local2.AI_mv_count--;
}
}
_local3--;
}
}
function itemDelete(ID) {
var _local4 = this.item_b["item" + ID].P_ID;
var _local2 = this.item_b["item" + ID].block;
this.item_b["item" + ID].removeMovieClip();
this.item_b["mask" + ID].removeMovieClip();
if (((_local2 == 2) || (_local2 == 3)) || (_local2 == 4)) {
this[("g" + _local2) + "_placeUse"][_local4] = 0;
}
itemUse[ID] = 0;
}
function click_mouse() {
var _local7 = false;
var _local5 = false;
var _local6 = 0;
if (tama) {
_root.SO_shot.start();
this.pointa.shot = 1;
shot_num++;
tama--;
this.horuda.gotoAndStop(tama + 1);
var _local4 = itemMax;
while (_local4 > 1) {
if (itemUse[_local4] == 1) {
var _local3 = this.item_b["item" + _local4];
if ((_local3.hitter.hitTest(this.pointa.hitter) || (bom_flg)) && (_local3.hp > 0)) {
_local7 = true;
_local5 = true;
_local3.hp--;
if (_local3.point) {
out_solder_num++;
score = score + _local3.point;
if (score > LVUP_point[LV - 1]) {
this.LV_Update.gotoAndPlay("up");
this.LVUP();
}
if (this.Estab_judg(50)) {
_root.SO_hit_1.start();
_local3.gotoAndPlay("hit");
} else {
_root.SO_hit_2.start();
_local3.gotoAndPlay("hit2");
}
} else {
_root.SO_hit_1.start();
out_s_w_num++;
if (_local3.typ == "b_pot") {
_root.SO_get_power.start();
s_timer = s_time * (flm_spd / exe_flm_spd);
out_b_pot_num++;
} else if (_local3.typ == "r_pot") {
_root.SO_get_hp.start();
HP = HP + Recovery_HP;
if (HP > f_HP) {
HP = f_HP;
}
out_r_pot_num++;
}
_local3.setMask(null);
_local3._xscale = 100;
_local3._yscale = 100;
_local3.gotoAndPlay("hit");
}
_local3.mv_x = 0;
_local3.mv_y = 0;
_local6++;
if (combo_flg) {
combo_num++;
this.combo_counta.gotoAndPlay("on");
this.combo_counta.txt.combo_num = combo_num;
} else {
combo_flg = true;
}
}
}
_local4--;
}
if (_local7) {
this.pointa.gotoAndPlay("shot");
hit_num++;
} else {
_root.SO_miss.start();
this.pointa.gotoAndPlay("miss_shot");
}
if (_local6 >= 4) {
this.nice_shoter.gotoAndPlay("on");
score = score + 100;
_root.SO_nice_shot.start();
}
} else {
_root.SO_Gem_slice.start();
this.Reload_MC.gotoAndPlay("alart");
}
if (!_local5) {
this.combo_updata();
}
}
function combo_updata() {
if (combo_num > MAX_combo) {
MAX_combo = combo_num;
this.combo_Update.gotoAndPlay("up");
} else {
this.combo_counta.gotoAndPlay("off");
}
combo_num = 0;
combo_flg = false;
}
function sld_func() {
var _local2 = 0;
s_timer--;
_local2 = int((s_timer / (s_time * (flm_spd / exe_flm_spd))) * 100);
this.lifebar.s_bar.gotoAndStop(_local2);
if (s_timer < 0) {
s_timer = 0;
this.lifebar.s_bar.gotoAndStop(1);
this.sld_Icon.gotoAndPlay("off");
} else {
this.sld_Icon.gotoAndPlay("on");
}
}
function hp_ck() {
var _local2 = 0;
_local2 = int((HP / f_HP) * 100);
this.lifebar.hp_bar.gotoAndStop(_local2);
if (HP < 0) {
HP = 0;
this.combo_updata();
this.lifebar.hp_bar.gotoAndStop(1);
this.onEnterFrame = null;
this.onPress = null;
Mouse.show();
this.gotoAndPlay("game_end");
}
}
function LVUP() {
_root.SO_LV_UP.start();
this.bom_bom(1);
LV++;
if (LV > MAX_LV) {
LV = MAX_LV;
}
y_item_Limit = int((1000 / ((LV - 1) * add_ponta)) + f_ponta);
main_speed = ponta_spd[LV];
}
function b_reload() {
rr_num++;
tama = MAX_tama;
_root.SO_replenishment.start();
this.horuda.gotoAndStop(tama + 1);
}
function main_function() {
if (exe_flm_count == 0) {
if (((y_item_Limit / 1000) * (flm_spd / exe_flm_spd)) < y_item_Limit_count) {
if (this.Estab_judg(ApPr)) {
this.item_set();
y_item_Limit_count = 0;
}
}
var _local2 = itemMax;
while (_local2 > 1) {
if (itemUse[_local2] == 1) {
var _local3 = this.item_b["item" + _local2];
if (_local3.hitter.hitTest(this.pointa.hitter)) {
if (!this.pointa.shot) {
this.pointa.gotoAndPlay("point");
}
break;
}
if (!this.pointa.shot) {
this.pointa.gotoAndPlay("nomal");
}
}
_local2--;
}
if ((!triga_key_r) && (Key.isDown(r_key_code))) {
this.b_reload();
}
if (shot_num > 0) {
hit_par = (hit_num / shot_num) * 100;
}
triga_key_r = Key.isDown(r_key_code);
this.item_mv();
this.sort_Y();
this.pointa._x = this._xmouse;
this.pointa._y = this._ymouse;
y_item_Limit_count++;
this.sld_func();
this.hp_ck();
}
exe_flm_count = (exe_flm_count + 1) % exe_flm_spd;
}
Mouse.hide();
var flm_spd = 36;
var exe_flm_spd = 3;
var ApPr = 80;
var f_item = 30;
var swf_x = 600;
var swf_y = 600;
var depth_set = 1000;
var s_time = 8;
var f_HP = 10000;
var Recovery_HP = 700;
var MAX_LV = 10;
var f_ponta = 2;
var add_ponta = 2;
var add_time = 0.4;
var LVUP_point = new Array(450, 900, 1350, 1800, 2250, 2700, 3150, 3600, 4050);
var attack_point = 10;
var p_point_1_min_y = 432;
var p_point_1_max_y = 485;
var p_point_2_x = new Array(170, 254, 328, 410);
var p_point_2_y = new Array(414, 373, 402, 412);
var p_point_3_x = new Array(65, 54, 52, 49, 48, 45, 41, 40, 35);
var p_point_3_y = new Array(206, 214, 222, 232, 242, 253, 263, 275, 288);
var p_point_4_x = new Array(526, 530, 537, 539, 544, 548, 554, 555, 560);
var p_point_4_y = new Array(214, 223, 233, 243, 253, 263, 276, 288, 301);
var p_point_5_y = 345;
var p_point_6_y = 196;
var r_key_code = 82;
var MAX_tama = 8;
var exe_flm_count = 0;
var itemMax = f_item;
var side_Max = 4;
var s_timer = 0;
var HP = f_HP;
var LV = 1;
var y_item_Limit = int(1000 / (((LV - 1) * add_ponta) + f_ponta));
var y_item_Limit_count = 0;
var score = 0;
var combo_flg = false;
var combo_num = 0;
var MAX_combo = 0;
var triga_key_r = false;
var tama = MAX_tama;
var shot_num = 0;
var hit_num = 0;
var hit_par = 0;
var itemUse = new Array();
var i = itemMax;
while (i > 1) {
itemUse[i] = 0;
i--;
}
var g2_placeUse = new Array();
var i = side_Max;
while (i > 1) {
g2_placeUse[i] = 0;
i--;
}
var g3_placeUse = new Array();
var i = side_Max;
while (i > 1) {
g3_placeUse[i] = 0;
i--;
}
var g4_placeUse = new Array();
var i = side_Max;
while (i > 1) {
g4_placeUse[i] = 0;
i--;
}
var in_solder_num = 0;
var out_solder_num = 0;
var in_r_pot_num = 0;
var out_r_pot_num = 0;
var in_b_pot_num = 0;
var out_b_pot_num = 0;
var rr_num = 0;
Symbol 238 MovieClip Frame 24
this.horuda.gotoAndStop(tama + 1);
this.onEnterFrame = main_function;
this.onPress = click_mouse;
_root.SO_bgm.start();
Symbol 238 MovieClip Frame 25
stop();
Symbol 238 MovieClip Frame 26
function goto_score() {
_root.gotoAndPlay("end_game");
}
_root.end_obj.score = score;
_root.end_obj.MAX_combo = MAX_combo;
_root.end_obj.shot_num = shot_num;
_root.end_obj.hit_num = hit_num;
_root.end_obj.in_solder_num = in_solder_num;
_root.end_obj.out_solder_num = out_solder_num;
_root.end_obj.in_r_pot_num = in_r_pot_num;
_root.end_obj.out_r_pot_num = out_r_pot_num;
_root.end_obj.in_b_pot_num = in_b_pot_num;
_root.end_obj.out_b_pot_num = out_b_pot_num;
_root.end_obj.rr_num = rr_num;
_root.end_obj.LV = LV;
_root.sound_com("stop");
_root.SO_end_game.start();
_root.SO_end_game.onSoundComplete = goto_score;
Symbol 238 MovieClip Frame 54
stop();
Symbol 245 MovieClip Frame 15
stop();
Symbol 248 Button
on (press) {
_root.SO_select.start();
_root.gotoAndPlay("st_menu");
}
on (rollOver, dragOver) {
_root.SO_rollover.start();
}
Symbol 276 MovieClip Frame 1
function randRange(min, max) {
var _local1 = Math.round(Math.random() * (max - min)) + min;
return(_local1);
}
function main() {
if (time_count < (f1_count * flm_spd)) {
view_in_solder_num = randRange(0, 10000);
view_out_solder_num = randRange(0, 10000);
view_in_b_pot_num = randRange(0, 10000);
view_out_b_pot_num = randRange(0, 10000);
view_in_r_pot_num = randRange(0, 10000);
view_out_r_pot_num = randRange(0, 10000);
view_rr_num = randRange(0, 10000);
view_hit_par = randRange(0, 100);
} else if (time_count < (f2_count * flm_spd)) {
view_in_solder_num = _root.end_obj.in_solder_num;
view_out_solder_num = _root.end_obj.out_solder_num;
view_in_b_pot_num = _root.end_obj.in_b_pot_num;
view_out_b_pot_num = _root.end_obj.out_b_pot_num;
view_in_r_pot_num = _root.end_obj.in_r_pot_num;
view_out_r_pot_num = _root.end_obj.out_r_pot_num;
view_rr_num = _root.end_obj.rr_num;
view_shot_num = _root.end_obj.shot_num;
view_hit_num = _root.end_obj.hit_num;
view_hit_par = int((_root.end_obj.hit_num / _root.end_obj.shot_num) * 100);
view_MAX_combo = randRange(0, 10000);
} else if (time_count < (f3_count * flm_spd)) {
view_MAX_combo = _root.end_obj.MAX_combo;
view_LV = randRange(0, 10);
} else if (time_count < (f4_count * flm_spd)) {
view_LV = _root.end_obj.LV;
view_score = randRange(0, 99999999);
} else {
view_score = _root.end_obj.score;
if (view_score >= 5000) {
_root.SO_score_1.start();
} else if (view_score >= 1000) {
_root.SO_score_2.start();
} else {
_root.SO_score_3.start();
}
this.onEnterFrame = null;
}
time_count++;
}
var view_score = 0;
var view_shot_num = 0;
var view_hit_num = 0;
var view_hit_par = 0;
var view_MAX_combo = 0;
var view_rank = 0;
var view_in_solder_num = 0;
var view_out_solder_num = 0;
var view_in_b_pot_num = 0;
var view_out_b_pot_num = 0;
var view_in_r_pot_num = 0;
var view_out_r_pot_num = 0;
var view_rr_num = 0;
var view_LV = 0;
var flm_spd = 24;
var f1_count = 1;
var f2_count = 2;
var f3_count = 3;
var f4_count = 5;
var time_count = 0;
Symbol 276 MovieClip Frame 8
_root.SO_score_bgm.start();
Symbol 276 MovieClip Frame 44
onEnterFrame = main;
stop();