Frame 1
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Instance of Symbol 334 MovieClip in Frame 3
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 4
function us() {
getURL ("http://www.x-vip.cn", "_blank");
}
function get_player_position() {
if (player._x > 600) {
player._x = 600;
}
if (player._x < 0) {
player._x = 0;
}
if (player._y > 450) {
player._y = 450;
}
if (player._y < 0) {
player._y = 0;
}
}
_root.attachMovie("blood_bar", "loading_bar", 190000, {_x:250, _y:223});
loading_bar.onEnterFrame = function () {
x = Math.floor((_root._framesloaded / _root._totalframes) * 100);
loading_bar._xscale = x;
if (x >= 100) {
loading_bar.removeMovieClip();
}
};
var new_menu = new ContextMenu();
new_menu.hideBuiltInItems();
new_menu.customItems.push(new ContextMenuItem("\u00CE\u04B5\u0138\u00F6\u00C8\u00CB\u00D6\u00F7\u04B3", us, true));
_root.menu = new_menu;
onToggle = function () {
if (_quality.toLowerCase() != "low") {
_quality = "low";
} else {
_quality = "best";
}
};
stop();
create_map = function () {
_root.attachMovie("my_txt_mc", "my_txt_mc", 138890, {_x:2, _y:2});
_root.createEmptyMovieClip("map_Empty", -8888);
_root.createEmptyMovieClip("bg_Empty", -100000);
_root.createEmptyMovieClip("line_Empty", 138000);
_root.line_Empty.attachMovie("game_line", "game_line", 1);
_root.bg_Empty.attachMovie("game_bg", "game_bg", 1);
map_Array = [90, 180, 270, 360];
new_x = -70;
new_y = 65;
map_Xstep = 130;
map_Ystep = 130;
};
Init = function () {
create_map();
_root.createEmptyMovieClip("enemys_die", -7777);
_root.createEmptyMovieClip("enemys", 10);
_root.createEmptyMovieClip("fire_Emty", 7255);
_root.createEmptyMovieClip("other_item_type", 6666);
e_bb_shot = random(100);
if (e_bb_shot < (random(40) + 15)) {
e_show_shot = true;
} else {
e_show_shot = false;
}
weapen_showed = false;
bb_shotted = 0;
nice_shot = 0;
who_sound = "m_shouqiang";
MouseDown = 0;
bb_speed = 4;
fire_strong = 0;
Item = 100;
playerSpeed = 2;
weapen_Array = ["shouqiang", "jiqiang1", "chuanjia", "jiqiang2", "laifu1", "laser1", "liudan1", "liudan2", "zhongji", "fireGun", "chuanjia2"];
weapen_length = weapen_Array.length;
trace("weapen_length=" + weapen_length);
enemy_speed = 3;
bb_count2 = 0;
bb_max = 1;
bb_count = bb_max;
shot_step = 350;
liang = 6;
now_weapen = "shouqiang";
who_weapen = "shouqiang";
reload_t = 700;
reload_max = 12;
hou_zuo_li = 3;
qiangdu = 35;
player_life = 500;
player_total_life = 500;
e_life = 50;
enemy_r_life = 20;
enemy_pow = random(4) + 2;
enemy_Num = 1101;
enemy_level = 0;
enemy_total = 3;
be_continue = false;
stage_level = 1;
enemy_refresh = 7;
e_num_first = 0;
e_num_total = enemy_refresh * enemy_total;
freeze_all = false;
bb_strong = false;
bb_clock = false;
big_mask();
trace("\u04E6\u00B8\u00C3\u0271\u00CB\u00C0\u00A3\u00BA" + (e_num_total + enemy_refresh));
first_time = getTimer();
boss_e_cont = 0;
};
Init2 = function () {
create_map();
_root.createEmptyMovieClip("enemys", 14000);
_root.createEmptyMovieClip("fire_Emty", 7255);
_root.createEmptyMovieClip("other_item_type", 6666);
e_bb_shot = random(100);
if (e_bb_shot < (random(50) + 30)) {
e_show_shot = true;
} else {
e_show_shot = false;
}
weapen_showed = false;
bb_shotted = 0;
nice_shot = 0;
if (be_continue == true) {
be_continue = false;
} else {
stage_level++;
}
who_sound = "m_shouqiang";
MouseDown = 0;
bb_speed = 4;
fire_strong = 0;
Item = 100;
playerSpeed = 2;
bb_count2 = 0;
bb_max = 1;
bb_count = bb_max;
shot_step = 350;
liang = 6;
now_weapen = "shouqiang";
who_weapen = "shouqiang";
reload_t = 1000;
reload_max = 20;
hou_zuo_li = 3;
qiangdu = 35;
player_life = 500;
player_total_life = 500;
enemy_Num = 1101;
enemy_total++;
if (enemy_total >= 15) {
enemy_total = 15;
}
e_num_first = 0;
enemy_level = 0;
if (e_life > 100) {
enemy_r_life = random(30) + 20;
e_life = random(30) + 20;
} else {
enemy_r_life = enemy_r_life + 5;
e_life = e_life + 5;
}
if (enemy_speed > 5) {
enemy_speed = random(3) + 1;
} else {
enemy_speed = enemy_speed + 0.5;
}
if (enemy_pow > 12) {
enemy_pow = random(6) + 8;
} else {
enemy_pow++;
}
enemy_refresh = random(stage_level) + 3;
if (stage_level > 6) {
enemy_refresh = random(5) + 6;
}
freeze_all = false;
bb_clock = false;
bb_strong = false;
e_num_total = enemy_refresh * enemy_total;
big_mask();
trace("\u04E6\u00B8\u00C3\u0271\u00CB\u00C0\u00A3\u00BA" + (e_num_total + enemy_refresh));
first_time = getTimer();
if ((stage_level % 4) == 0) {
boss_load();
sounds("m_BOSS_v");
boss_e_cont = 0;
boss_e_first = 0;
m_BOSS_v.onSoundComplete = function () {
sounds("m_BOSS_v");
};
}
};
big_mask = function () {
_root.attachMovie("screen_mask", "screen_mask", 16000);
screen_mask._x = 300;
screen_mask._y = 225;
screen_mask.swapDepths(16600);
};
_global.angle = function (p1, p2) {
var _local1 = p1.x - p2.x;
var _local2 = p1.y - p2.y;
var _local3 = Math.atan2(_local2, _local1);
return(radianToAngle(_local3));
};
_global.radianToAngle = function (r) {
return(((r * 180) / 3.141593) + 90);
};
_global.MoveRotation = function (mc) {
var _local3 = {x:_root._xmouse, y:_root._ymouse};
var _local4 = {x:mc._x, y:mc._y};
mc._rotation = angle(_local3, _local4);
updateAfterEvent();
};
_global.Move = function (mc) {
var _local2 = angleToRadian(mc._rotation);
if (mc.moveSpd > mc.moveMaxSpd) {
mc.moveSpd = mc.moveMaxSpd;
}
if (mc.moveSpd < mc.moveMinSpd) {
mc.moveSpd = mc.moveMinSpd;
}
var _local3 = Math.cos(_local2) * mc.moveSpd;
var _local4 = Math.sin(_local2) * mc.moveSpd;
if (now_weapen == "liudan1") {
mc.liang = mc.liang + 0.05;
}
mc._x = mc._x + (_local3 * mc.liang);
mc._y = mc._y + (_local4 * mc.liang);
};
_global.angleToRadian = function (a) {
return(((a - 90) * 3.141593) / 180);
};
var m_jiqiang1 = new Sound();
m_jiqiang1.attachSound("jiqiang1");
var m_shangtang = new Sound();
m_shangtang.attachSound("shangtang");
var m_shouqiang = new Sound();
m_shouqiang.attachSound("shouqiang");
var m_e_die_v = new Sound();
m_e_die_v.attachSound("e_die_v");
var m_enemy_voice1 = new Sound();
m_enemy_voice1.attachSound("enemy_voice1");
var m_jiqiang2 = new Sound();
m_jiqiang2.attachSound("jiqiang2");
var m_player_die_v = new Sound();
m_player_die_v.attachSound("player_die_v");
var m_player_v = new Sound();
m_player_v.attachSound("player_v");
var m_pass_stage_v = new Sound();
m_pass_stage_v.attachSound("pass_stage_v");
var m_zhizhu_v = new Sound();
m_zhizhu_v.attachSound("zhizhu_v");
var m_laifu = new Sound();
m_laifu.attachSound("laifu");
var m_boom_v = new Sound();
m_boom_v.attachSound("boom_v");
var m_got_weapen = new Sound();
m_got_weapen.attachSound("got_weapen");
var m_btn_release_v = new Sound();
m_btn_release_v.attachSound("btn_release_v");
var m_liudan = new Sound();
m_liudan.attachSound("liudan");
var m_liudan2 = new Sound();
m_liudan2.attachSound("liudan2");
var m_shengbo = new Sound();
m_shengbo.attachSound("shengbo");
var m_jiangshi_died_v = new Sound();
m_jiangshi_died_v.attachSound("jiangshi_died_v");
var m_fireGun_v = new Sound();
m_fireGun_v.attachSound("fireGun_v");
var m_bomb_v = new Sound();
m_bomb_v.attachSound("bomb");
var m_BOSS_v = new Sound();
m_BOSS_v.attachSound("BOSS");
sounds = function (sound_type) {
switch (sound_type) {
case "m_BOSS_v" :
m_BOSS_v.setVolume(30);
m_BOSS_v.start();
break;
case "m_bomb_v" :
m_bomb_v.setVolume(40);
m_bomb_v.start();
break;
case "m_fireGun_v" :
m_fireGun_v.setVolume(70);
m_fireGun_v.start();
break;
case "m_jiangshi_died_v" :
m_jiangshi_died_v.setVolume(100);
m_jiangshi_died_v.start();
break;
case "m_shengbo" :
m_shengbo.setVolume(85);
m_shengbo.start();
break;
case "m_liudan2" :
m_liudan2.setVolume(70);
m_liudan2.start();
break;
case "m_liudan" :
m_liudan.setVolume(70);
m_liudan.start();
break;
case "m_btn_release_v" :
m_btn_release_v.setVolume(85);
m_btn_release_v.start();
break;
case "m_got_weapen" :
m_got_weapen.setVolume(70);
m_got_weapen.start();
break;
case "m_boom_v" :
m_boom_v.setVolume(70);
m_boom_v.start();
break;
case "m_laifu" :
m_laifu.setVolume(35);
m_laifu.start();
break;
case "m_zhizhu_v" :
m_zhizhu_v.setVolume(50);
m_zhizhu_v.start();
break;
case "m_jiqiang1" :
m_jiqiang1.setVolume(70);
m_jiqiang1.start();
break;
case "m_shangtang" :
m_shangtang.setVolume(40);
m_shangtang.start();
break;
case "m_shouqiang" :
m_shouqiang.setVolume(30);
m_shouqiang.start();
break;
case "m_e_die_v" :
m_e_die_v.setVolume(35);
m_e_die_v.start();
break;
case "m_enemy_voice1" :
m_enemy_voice1.setVolume(60);
m_enemy_voice1.start();
break;
case "m_jiqiang2" :
m_jiqiang2.setVolume(50);
m_jiqiang2.start();
break;
case "m_player_die_v" :
m_player_die_v.setVolume(70);
m_player_die_v.start();
break;
case "m_player_v" :
m_player_v.setVolume(70);
m_player_v.start();
break;
case "m_pass_stage_v" :
m_pass_stage_v.setVolume(50);
m_pass_stage_v.start();
}
};
voice = function () {
m_player_v_zj = 0;
m_player_v.onSoundComplete = function () {
m_player_v_zj = 0;
};
};
player_load = function () {
_root.attachMovie("player", "player", 5808);
player._x = 300;
player._y = 225;
_root.attachMovie("Target_Image", "Target_Image", 16325);
player.onMouseDown = function () {
MouseDown = 1;
};
player.onMouseUp = function () {
MouseDown = 0;
};
Target_Image.onMouseMove = function () {
Target_Image._x = _xmouse;
Target_Image._y = _ymouse;
updateAfterEvent();
};
player.onEnterFrame = function () {
if (player_life <= 0) {
died_fun();
}
if ((boss_ok >= boss_total) && (boss_e_first <= 0)) {
boss_dead = true;
} else {
boss_dead = false;
}
if (((e_num_first >= (e_num_total + enemy_refresh)) && (player_life > 0)) && (boss_dead == true)) {
trace("\u0271\u00B5\u00D0\u00CA\u00FD\u00C1\u00BF\u00CD\u00EA\u00B3\u0261\u00A3");
deid_enemy_count = (e_num_total + enemy_refresh) + boss_e_cont;
e_num_first = 0;
last_time = getTimer();
Interval_my_clear = setInterval(my_clear, 2500);
}
if (Key.isDown(65)) {
foot_move = 1;
player._x = player._x - playerSpeed;
}
if (Key.isDown(68)) {
foot_move = 1;
player._x = player._x + playerSpeed;
}
if (Key.isDown(83)) {
foot_move = 1;
player._y = player._y + playerSpeed;
}
if (Key.isDown(87)) {
foot_move = 1;
player._y = player._y - playerSpeed;
}
if (foot_move == 1) {
this.gotoAndPlay(2);
}
get_player_position();
foot_move = 0;
if (Key.isDown(81)) {
onToggle();
}
};
};
player_run = function () {
MoveRotation(player);
};
died_fun = function () {
player_life = 0;
blood_bar._xscale = (player_life / player_total_life) * 100;
p_die = _root.attachMovie("p_die_Movie", "p_die_Movie", 1);
p_die._x = player._x;
p_die._y = player._y;
p_die._rotation = player._rotation;
sound_type = "m_player_die_v";
sounds(sound_type);
clearInterval(intervalID);
trace("\u0363\u05B9\u02E2\u00B9\u00D6");
clearInterval(interval_shuaguai);
clearInterval(bb_recall_time2);
clearInterval(bb_recall_time);
Target_Image.removeMovieClip();
player.removeMovieClip();
ttxt_mc = _root.attachMovie("txt_show", "txt_show" + random(99), 8401);
ttxt_mc._x = 300;
ttxt_mc._y = 225;
MouseDown = 0;
_root.attachMovie("btn_Replay_game", "btn_Replay_game", 9999);
btn_Replay_game._x = 300;
btn_Replay_game._y = 270;
btn_Replay_game.onRelease = function () {
sounds("m_btn_release_v");
be_continue = true;
my_clear();
};
btn_Replay_game.onRollOver = function () {
this.gotoAndStop(2);
};
btn_Replay_game.onRollOut = function () {
this.gotoAndStop(1);
};
};
bb_recall = function () {
bb_count = bb_max;
clearInterval(bb_recall_time);
key_fun();
};
bb_recall2 = function () {
bb_count2 = reload_max;
bb_fire();
clearInterval(bb_recall_time2);
key_fun();
key_fun2();
};
bb_fire = function () {
_root.createEmptyMovieClip("bb_Empty", 9799);
bb_x = 180;
bb_y = 3;
i = 1;
while (i <= reload_max) {
mc = _root.bb_Empty.attachMovie("bb_mc", "bb_mc" + i, i);
if (bb_x > 590) {
bb_x = 180;
bb_y = bb_y + 9;
}
mc._x = bb_x;
mc._y = bb_y;
bb_x = bb_x + 6;
i++;
}
};
key_fun = function () {
_root.createEmptyMovieClip("key_bb_contral", 2000);
key_bb_contral.onEnterFrame = function () {
if (MouseDown == 1) {
if (bb_count <= 0) {
bb_recall_time = setInterval(bb_recall, shot_step);
this.removeMovieClip();
} else {
sound_type = who_sound;
sounds(sound_type);
player._x = player._x + (random(3) - 1);
player._y = player._y + (random(3) - 1);
bb();
}
}
};
};
key_fun2 = function () {
_root.createEmptyMovieClip("key_bb_contral_reload", 2100);
key_bb_contral_reload.onEnterFrame = function () {
if (bb_count2 <= 0) {
key_bb_contral.removeMovieClip();
bb_recall_time2 = setInterval(bb_recall2, reload_t);
player.body_mc.gotoAndPlay("shangtang");
sounds("m_shangtang");
this.removeMovieClip();
}
my_txt_mc.bb_total.text = "LEVEL:" + stage_level;
};
};
bb = function () {
if (bb_clock == false) {
bb_Empty["bb_mc" + bb_count2]._alpha = 35;
bb_count2--;
}
bb_count--;
bb_shotted++;
fire_mc = _root.attachMovie("my_fire", "my_fire" + random(9999), _root.getNextHighestDepth());
fire_mc.gotoAndStop(now_weapen);
if (bb_strong == false) {
fire_mc.bb_power_up._visible = 0;
} else {
fire_mc.bb_power_up._visible = 1;
}
fire_mc._x = player._x;
fire_mc._y = player._y;
_root.attachMovie("huoshe", "huoshe", 1866);
huoshe._x = fire_mc._x;
huoshe._y = fire_mc._y;
pianyi = random(hou_zuo_li) - (hou_zuo_li / 2);
fire_mc._rotation = (huoshe._rotation = player._rotation + pianyi);
fire_mc.moveSpd = 10;
fire_mc.moveMaxSpd = bb_speed;
if (now_weapen == "liudan1") {
fire_mc.liang = 0.06;
} else {
fire_mc.liang = 6;
}
fire_mc.boom_time = 150;
fire_mc.onEnterFrame = function () {
Move(this);
if ((((this._x < 0) || (this._y < 0)) || (this._x > 600)) || (this._y > 450)) {
this.removeMovieClip();
}
this.boom_time--;
if ((this.boom_time <= 0) && (now_weapen != "liudan2")) {
this.removeMovieClip();
}
if ((this.boom_time <= 0) && (now_weapen == "liudan2")) {
mc = _root.fire_Emty.attachMovie("boom_Movie", "boom_Movie" + random(9999), _root.fire_Emty.getNextHighestDepth());
mc._x = this._x;
mc._y = this._y;
mc._rotation = random(360);
mc._xscale = (mc._yscale = 60);
sounds("m_boom_v");
mc.onEnterFrame = function () {
for (var _local3 in _root.enemys) {
if (_root.enemys[_local3].hitTest(this.hit)) {
_root.enemys[_local3].life = _root.enemys[_local3].life - 6000;
}
}
if (this.hit.hitTest(player.body_hit)) {
if (life_clocked == false) {
sounds("m_player_v");
player_life = player_life - 60;
blood_bar._xscale = (player_life / player_total_life) * 100;
}
}
};
this.removeMovieClip();
}
for (var _local4 in _root.enemys) {
if (_root.enemys[_local4].hitTest(this._x, this._y, false)) {
if (now_weapen == "liudan1") {
sounds("m_bomb_v");
mc = _root.fire_Emty.attachMovie("boom3_mc", "bb_boom" + random(9999), _root.fire_Emty.getNextHighestDepth());
mc._x = _root.enemys[_local4]._x;
mc._y = _root.enemys[_local4]._y;
mc._rotation = random(360);
mc.onEnterFrame = function () {
for (var _local3 in _root.enemys) {
if (_root.enemys[_local3].hitTest(this.hit)) {
_root.enemys[_local3].life = _root.enemys[_local3].life - 60;
}
}
};
}
if (now_weapen == "liudan2") {
mc = _root.fire_Emty.attachMovie("boom_Movie", "boom_Movie2" + random(9999), _root.fire_Emty.getNextHighestDepth());
mc._x = _root.enemys[_local4]._x;
mc._y = _root.enemys[_local4]._y;
mc._rotation = random(360);
mc._xscale = (mc._yscale = 60);
sounds("m_boom_v");
mc.onEnterFrame = function () {
for (var _local3 in _root.enemys) {
if (_root.enemys[_local3].hitTest(this.hit)) {
_root.enemys[_local3].life = _root.enemys[_local3].life - 6000;
sounds("m_player_v");
}
}
if (this.hit.hitTest(player.body_hit)) {
if (life_clocked == false) {
sounds("m_player_v");
player_life = player_life - 60;
blood_bar._xscale = (player_life / player_total_life) * 100;
}
}
};
}
sound_type = "m_enemy_voice1";
sounds(sound_type);
_root.enemys[_local4].life = _root.enemys[_local4].life - qiangdu;
if (fire_strong == 0) {
this.removeMovieClip();
}
nice_shot++;
}
}
};
};
point_xy = function (r_xy) {
switch (r_xy) {
case 0 :
mc._x = random(80) + 600;
mc._y = random(450);
break;
case 1 :
mc._x = random(600);
mc._y = random(80) + 450;
break;
case 2 :
mc._x = -random(80);
mc._y = random(450);
break;
case 3 :
mc._x = random(600);
mc._y = -random(80);
}
};
enemy_shot = function () {
aaa = random(400);
if (aaa < 2) {
mc8 = _root.other_item_type.attachMovie("enemy_bb", "enemy_bb" + getTimer(), _root.other_item_type.getNextHighestDepth());
mc8.moveSpd = 2;
mc8.moveMaxSpd = 2;
mc8.liang = 3;
mc8._x = this_x;
mc8._y = this_y;
mc8._rotation = ee;
sound_type = "m_shengbo";
sounds(sound_type);
mc8.onEnterFrame = function () {
Move(this);
if ((((this._x < 0) || (this._y < 0)) || (this._x > 600)) || (this._y > 450)) {
this.removeMovieClip();
}
if (player.body_hit.hitTest(this)) {
_root.other_item_type.attachMovie("enemy_bb_plus", "enemy_bb_plus" + getTimer(), _root.other_item_type.getNextHighestDepth(), {_x:player._x, _y:player._y});
if (life_clocked == false) {
sound_type = "m_player_v";
sounds(sound_type);
player_life = player_life - 20;
blood_bar._xscale = (player_life / player_total_life) * 100;
}
player._x = player._x + (random(9) - 4);
player._y = player._y + (random(7) - 3);
this.removeMovieClip();
}
};
}
};
enemy_Array = ["enemy_zhizhu", "enemy", "jiangshi_mc"];
enemy_die_Array = ["zhizhu_die", "enemy_die", "jiangshi_die_mc"];
enemy_die_sounds_Array = ["m_zhizhu_v", "m_e_die_v", "m_jiangshi_died_v"];
enemy_load = function () {
enemy_level++;
trace(((("\u00B5\u00DA" + enemy_level) + "\u00B2\u00A8\u02E2\u00B9\u00D6") + "\u00A1\u00A3 \u00B5\u00D0\u00C8\u00CB\u00CA\u01F7\u00F1\u00B7\u00A2\u00D7\u04F5\u00AF\u00A3\u00BA") + e_show_shot);
i = 0;
while (i < enemy_refresh) {
enemy_Num++;
if (stage_level > 6) {
e_n = Math.round(random(2));
((e_n == 0) ? ((who_enemy_name = 0)) : ((who_enemy_name = 1)));
} else {
e_n = Math.round(random(2));
((e_n == 0) ? ((who_enemy_name = 0)) : ((who_enemy_name = 2)));
trace("\u00B9\u00D6\u00CE\uF8FA" + who_enemy_name);
}
e_name = enemy_Array[who_enemy_name];
mc = _root.enemys.attachMovie(e_name, e_name + enemy_Num, enemy_Num);
mc._rotation = random(360);
if (who_enemy_name == 2) {
mc._xscale = (mc._yscale = random(20) + 55);
} else {
mc._xscale = (mc._yscale = random(30) + 90);
}
r_xy = random(4);
point_xy(r_xy);
mc.die_enemy_name = enemy_die_Array[who_enemy_name];
mc.sound_type = enemy_die_sounds_Array[who_enemy_name];
mc.power = enemy_pow;
mc.life = random(enemy_r_life) + e_life;
if (stage_level == 0) {
mc.MAXAngle = 0;
} else {
mc.MAXAngle = Number(random(enemy_speed) / 2) + 0.5;
}
mc.onEnterFrame = function () {
if (e_show_shot == true) {
if ((stage_level % 3) == 0) {
ee = this._rotation + pianyi;
this_x = this._x;
this_y = this._y;
enemy_shot();
}
}
if (freeze_all == false) {
var _local7 = player._x - this._x;
var _local8 = player._y - this._y;
var _local5;
var _local4 = e_getAngle(this);
var _local6 = refine_Angle(this._rotation - _local4);
var _local3 = ((refine_Angle(_local6) >= 180) ? 1 : -1);
this._rotation = ((Math.abs(_local6) > this.MAXAngle) ? (this._rotation + (this.MAXAngle * _local3)) : (_local4));
_local3 = ((refine_Angle(this._rotation) > 180) ? -1 : 1);
_local5 = Math.tan(((90 - this._rotation) * 3.141593) / 180);
this.speedX = (this.MAXAngle / Math.sqrt(1 + Math.pow(_local5, 2))) * _local3;
this.speedY = _local5 * this.speedX;
this._x = this._x + this.speedX;
this._y = this._y - this.speedY;
}
if (player.body_hit.hitTest(this.hit)) {
if (life_clocked == false) {
if (m_player_v_zj == 0) {
m_player_v_zj = 1;
sound_type = "m_player_v";
sounds(sound_type);
}
player_life = player_life - this.power;
blood_bar._xscale = (player_life / player_total_life) * 100;
}
}
if (this.life <= 0) {
if (freeze_all == true) {
f_mc = _root.attachMovie("freeze_hit", "freeze_hit" + random(9999), _root.getNextHighestDepth());
f_mc._x = this._x;
f_mc._y = this._y;
f_mc.onEnterFrame = function () {
for (prop in _root.freeze_Emty) {
if (this.hitTest(_root.freeze_Emty[prop])) {
_root.freeze_Emty[prop].gotoAndPlay(2);
this.removeMovieClip();
}
}
};
}
if (random(100) < 7) {
power_item(random(10));
}
sounds(this.sound_type);
enemy_die = _root.enemys_die.attachMovie(this.die_enemy_name, "enemy_died_mc" + random(99), _root.enemys_die.getNextHighestDepth());
enemy_die._x = this._x;
enemy_die._y = this._y;
enemy_die._rotation = this._rotation;
enemy_die._xscale = this._xscale;
enemy_die._yscale = this._yscale;
e_num_first++;
trace("\u00D2\u047E\u00AD\u0271\u00CB\u00C0\u00A3\u00BA" + e_num_first);
if (now_weapen == "shouqiang") {
rrrr = random(Item);
trace((("weapen_length:" + weapen_length) + " Item:") + Item);
if (rrrr > 40) {
Item = 40;
who_weapen = weapen_Array[random(weapen_length)];
if ((who_weapen == "liudan2") || (who_weapen == "fireGun")) {
if (stage_level < 3) {
who_weapen = "jiqiang1";
trace("\u00B9\u063F\u00A8\u00B2\u00BB\u00B9\u00BB\u00A3\u00AC\u00CE\u07B7\u00A8\u00B5\u00F5\u00BD\u00B8\u07FC\u00B6\u00CE\u00E4\u00C6\u00F7");
}
}
if ((who_weapen == "liudan1") || (who_weapen == "zhongji")) {
if (stage_level < 5) {
who_weapen = "laser1";
trace("\u00BC\u00B8\u00C2\u02B5\u0363\u00AC\u00CE\u07B7\u00A8\u00B5\u00F5\u00BDliudan1\u00CE\u00E4\u00C6\u00F7");
}
}
rrr = random(100);
if (who_weapen == "chuanjia2") {
if (rrr < 15) {
who_weapen = "zhongji";
}
if (stage_level < 8) {
who_weapen = "chuanjia";
trace("\u00BC\u00B8\u00C2\u02B5\u0363\u00AC\u00CE\u07B7\u00A8\u00B5\u00F5\u00BDliudan1\u00CE\u00E4\u00C6\u00F7");
}
}
if (who_weapen == "shouqiang") {
who_weapen = "jiqiang2";
}
Item_show(who_weapen);
delete rrrr;
delete rrr;
}
}
this.removeMovieClip();
}
};
i++;
}
if (enemy_level > enemy_total) {
clearInterval(interval_shuaguai);
trace("\u0363\u05B9\u02E2\u00B9\u00D6");
}
};
boss_load = function () {
boss_ok = 0;
boss_total = 4;
boss_e_dep = enemy_Num + 1622;
boss_dep = enemy_Num - 1100;
i = 0;
while (i < boss_total) {
boss_dep++;
mc = _root.enemys.attachMovie("l_boss1", "l_boss1" + boss_dep, boss_dep);
mc._x = random(500) + 50;
mc._y = random(350) + 50;
mc.life = 12000;
mc.onEnterFrame = function () {
if (this.life <= 0) {
boss_ok++;
other_item_mc = _root.other_item_type.attachMovie("boss_boom", "boss_boom" + random(9999), _root.other_item_type.getNextHighestDepth());
other_item_mc._x = this._x;
other_item_mc._y = this._y;
other_item_mc._xscale = (other_item_mc._yscale = 60);
m_fireGun_v.setVolume(90);
m_fireGun_v.start();
this.removeMovieClip();
}
if (player.body_hit.hitTest(this)) {
if (life_clocked == false) {
if (m_player_v_zj == 0) {
m_player_v_zj = 1;
sound_type = "m_player_v";
sounds(sound_type);
}
player_life = player_life - 20;
blood_bar._xscale = (player_life / player_total_life) * 100;
}
}
if (random(400) < 2) {
boss_e_first++;
ShuaGuai(this);
}
};
i++;
}
};
ShuaGuai = function (target) {
boss_e_dep++;
who_enemy_name = Math.round(random(3));
e_name = enemy_Array[who_enemy_name];
mc = _root.enemys.attachMovie(e_name, e_name + boss_e_dep, boss_e_dep);
mc._rotation = random(360);
if (who_enemy_name == 2) {
mc._xscale = (mc._yscale = random(20) + 55);
} else {
mc._xscale = (mc._yscale = random(30) + 90);
}
mc._x = target._x;
mc._y = target._y;
mc.die_enemy_name = enemy_die_Array[who_enemy_name];
mc.sound_type = enemy_die_sounds_Array[who_enemy_name];
mc.power = enemy_pow;
mc.life = random(enemy_r_life) + e_life;
if (stage_level == 0) {
mc.MAXAngle = 0;
} else {
mc.MAXAngle = Number(random(enemy_speed) / 2) + 0.5;
}
mc.onEnterFrame = function () {
if (e_show_shot == true) {
if ((stage_level % 3) == 0) {
ee = this._rotation + pianyi;
this_x = this._x;
this_y = this._y;
enemy_shot();
}
}
if (freeze_all == false) {
var _local7 = player._x - this._x;
var _local8 = player._y - this._y;
var _local5;
var _local4 = e_getAngle(this);
var _local6 = refine_Angle(this._rotation - _local4);
var _local3 = ((refine_Angle(_local6) >= 180) ? 1 : -1);
this._rotation = ((Math.abs(_local6) > this.MAXAngle) ? (this._rotation + (this.MAXAngle * _local3)) : (_local4));
_local3 = ((refine_Angle(this._rotation) > 180) ? -1 : 1);
_local5 = Math.tan(((90 - this._rotation) * 3.141593) / 180);
this.speedX = (this.MAXAngle / Math.sqrt(1 + Math.pow(_local5, 2))) * _local3;
this.speedY = _local5 * this.speedX;
this._x = this._x + this.speedX;
this._y = this._y - this.speedY;
}
if (player.body_hit.hitTest(this.hit)) {
if (life_clocked == false) {
if (m_player_v_zj == 0) {
m_player_v_zj = 1;
sound_type = "m_player_v";
sounds(sound_type);
}
player_life = player_life - this.power;
blood_bar._xscale = (player_life / player_total_life) * 100;
}
}
if (this.life <= 0) {
if (freeze_all == true) {
f_mc = _root.attachMovie("freeze_hit", "freeze_hit" + random(9999), _root.getNextHighestDepth());
f_mc._x = this._x;
f_mc._y = this._y;
f_mc.onEnterFrame = function () {
for (prop in _root.freeze_Emty) {
if (this.hitTest(_root.freeze_Emty[prop])) {
_root.freeze_Emty[prop].gotoAndPlay(2);
this.removeMovieClip();
}
}
};
}
sounds(this.sound_type);
enemy_die = _root.enemys_die.attachMovie(this.die_enemy_name, "enemy_died_mc" + random(99), _root.enemys_die.getNextHighestDepth());
enemy_die._x = this._x;
enemy_die._y = this._y;
enemy_die._rotation = this._rotation;
enemy_die._xscale = this._xscale;
enemy_die._yscale = this._yscale;
boss_e_cont++;
boss_e_first--;
if (random(100) < 15) {
power_item(random(10));
}
this.removeMovieClip();
}
};
};
e_getAngle = function (mc) {
var _local1 = player._x - mc._x;
var _local2 = player._y - mc._y;
return((((Math.atan2(_local2, _local1) * 180) / 3.141593) + 450) % 360);
};
refine_Angle = function (angle) {
return((angle + 360) % 360);
};
power_item = function (other_item_type) {
switch (other_item_type) {
case 0 :
other_item_mc = _root.other_item_type.attachMovie("boom", "boom" + random(9999), _root.other_item_type.getNextHighestDepth());
other_item_mc._x = random(590);
other_item_mc._y = random(410) + 20;
other_item_mc.onEnterFrame = function () {
if (this.hitTest(player.body_hit)) {
boom_item = _root.attachMovie("boom_mc4", "boom_Movie" + random(99), _root.getNextHighestDepth());
boom_item._x = this._x;
boom_item._y = this._y;
boom_item._rotation = random(360);
sounds("m_boom_v");
boom_item.hit.onEnterFrame = function () {
for (var _local3 in _root.enemys) {
if (this.hitTest(enemys[_local3])) {
enemys[_local3].life = enemys[_local3].life - 2000;
}
}
};
boom_item.onEnterFrame = function () {
enemys._x = enemys._x + (random(6) - 3);
enemys._y = enemys._y + (random(6) - 3);
freeze_Emty._x = enemys._x;
freeze_Emty._y = enemys._y;
other_item_type._x = enemys._x;
other_item_type._y = enemys._y;
enemys_die._x = enemys._x;
enemys_die._y = enemys._y;
player._x = player._x + (random(6) - 3);
player._y = player._y + (random(6) - 3);
map_Empty._x = enemys._x;
map_Empty._y = enemys._x;
if (this._currentframe >= this._totalframes) {
enemys._x = 0;
enemys._y = 0;
other_item_type._x = 0;
other_item_type._y = 0;
freeze_Emty._x = 0;
freeze_Emty._y = 0;
enemys_die._x = 0;
enemys_die._y = 0;
other_item_type._x = 0;
other_item_type._y = 0;
map_Empty._x = 0;
map_Empty._y = 0;
this.removeMovieClip();
}
};
this.removeMovieClip();
}
};
break;
case 1 :
other_item_mc = _root.other_item_type.attachMovie("doctor", "doctor" + random(9999), _root.other_item_type.getNextHighestDepth());
other_item_mc._x = random(590);
other_item_mc._y = random(410) + 20;
other_item_mc.onEnterFrame = function () {
if (this.hitTest(player.body_hit)) {
sounds("m_got_weapen");
player_life = player_life + 50;
if (player_life > player_total_life) {
player_life = player_total_life;
}
blood_bar._xscale = (player_life / player_total_life) * 100;
this.removeMovieClip();
}
};
break;
case 2 :
other_item_mc = _root.other_item_type.attachMovie("fast_move", "fast_move" + random(9999), _root.other_item_type.getNextHighestDepth());
other_item_mc._x = random(590);
other_item_mc._y = random(410) + 20;
other_item_mc.onEnterFrame = function () {
if (this.hitTest(player.body_hit)) {
sounds("m_got_weapen");
clearInterval(playerSpeed_remove);
playerSpeed = 3;
playerSpeed_remove = setInterval(remove_playerSpeed_plus, time_over);
this.removeMovieClip();
}
};
break;
case 3 :
other_item_mc = _root.other_item_type.attachMovie("fire_strong", "fire_strong" + random(9999), _root.other_item_type.getNextHighestDepth());
other_item_mc._x = random(590);
other_item_mc._y = random(410) + 20;
other_item_mc.onEnterFrame = function () {
if (this.hitTest(player.body_hit)) {
sounds("m_got_weapen");
clearInterval(qiangdu_plus);
qiangdu = qiangdu + Math.round((45 / qiangdu) * 100);
bb_strong = true;
fire_strong = 1;
_root.attachMovie("miaozhun", "miaozhun", 10999);
miaozhun.onEnterFrame = function () {
this._x = player._x;
this._y = player._y;
this._rotation = player._rotation;
};
qiangdu_plus = setInterval(qiangdu_remove, time_over);
this.removeMovieClip();
}
};
break;
case 4 :
other_item_mc = _root.other_item_type.attachMovie("freeze", "freeze" + random(9999), _root.other_item_type.getNextHighestDepth());
other_item_mc._x = random(590);
other_item_mc._y = random(410) + 20;
other_item_mc.onEnterFrame = function () {
if (this.hitTest(player.body_hit)) {
sounds("m_got_weapen");
clearInterval(freeze_plus);
freeze_all = true;
_root.createEmptyMovieClip("freeze_Emty", 14800);
for (prop in _root.enemys) {
this_freeze_mc = _root.freeze_Emty.attachMovie("freeze_mc", "freeze_mc" + random(9999), _root.freeze_Emty.getNextHighestDepth());
this_freeze_mc._x = _root.enemys[prop]._x;
this_freeze_mc._y = _root.enemys[prop]._y;
}
freeze_plus = setInterval(freeze_remove, 5500);
this.removeMovieClip();
}
};
break;
case 5 :
other_item_mc = _root.other_item_type.attachMovie("clock_life", "clock_life" + random(9999), _root.other_item_type.getNextHighestDepth());
other_item_mc._x = random(590);
other_item_mc._y = random(410) + 20;
other_item_mc.onEnterFrame = function () {
if (this.hitTest(player.body_hit)) {
sounds("m_got_weapen");
clearInterval(life_clock_plus);
_root.attachMovie("clock_life_mc", "clock_life_mc", 4000);
clock_life_mc.onEnterFrame = function () {
this._x = player._x;
this._y = player._y;
};
life_clocked = true;
life_clock_plus = setInterval(life_clock_remove, time_over);
this.removeMovieClip();
}
};
break;
case 6 :
other_item_mc = _root.other_item_type.attachMovie("clock_fire", "clock_fire" + random(9999), _root.other_item_type.getNextHighestDepth());
other_item_mc._x = random(590);
other_item_mc._y = random(410) + 20;
other_item_mc.onEnterFrame = function () {
if (this.hitTest(player.body_hit)) {
sounds("m_got_weapen");
clearInterval(fire_clock_plus);
bb_clock = true;
my_txt_mc.bb_locked._visible = 1;
fire_clock_plus = setInterval(fire_clock_remove, 7000);
this.removeMovieClip();
}
};
break;
case 7 :
other_item_mc = _root.other_item_type.attachMovie("boom", "boom" + random(9999), _root.other_item_type.getNextHighestDepth());
other_item_mc.die_boom.gotoAndStop(2);
other_item_mc._x = random(590);
other_item_mc._y = random(410) + 20;
other_item_mc.onEnterFrame = function () {
if (this.hitTest(player.body_hit)) {
sounds("m_player_v");
player_life = player_life - 350;
blood_bar._xscale = (player_life / player_total_life) * 100;
_root.attachMovie("boom_mc4", "boom_Movie", _root.getNextHighestDepth());
boom_Movie._x = this._x;
boom_Movie._y = this._y;
sounds("m_boom_v");
boom_Movie.onEnterFrame = function () {
trace("life_clocked = " + life_clocked);
for (var _local3 in _root.enemys) {
if (this.hit.hitTest(enemys[_local3])) {
enemys[_local3].life = enemys[_local3].life - 2000;
}
}
enemys._x = enemys._x + (random(6) - 3);
enemys._y = enemys._y + (random(6) - 3);
freeze_Emty._x = enemys._x;
freeze_Emty._y = enemys._y;
other_item_type._x = enemys._x;
other_item_type._y = enemys._y;
enemys_die._x = enemys._x;
enemys_die._y = enemys._y;
player._x = player._x + (random(6) - 3);
player._y = player._y + (random(6) - 3);
map_Empty._x = enemys._x;
map_Empty._y = enemys._x;
if (this._currentframe >= this._totalframes) {
enemys._x = 0;
enemys._y = 0;
other_item_type._x = 0;
other_item_type._y = 0;
freeze_Emty._x = 0;
freeze_Emty._y = 0;
enemys_die._x = 0;
enemys_die._y = 0;
other_item_type._x = 0;
other_item_type._y = 0;
map_Empty._x = 0;
map_Empty._y = 0;
this.removeMovieClip();
}
};
this.removeMovieClip();
}
};
break;
case 8 :
other_item_mc = _root.other_item_type.attachMovie("gun", "gun" + random(9999), _root.other_item_type.getNextHighestDepth());
other_item_mc._x = random(590);
other_item_mc._y = random(410) + 20;
other_item_mc.onEnterFrame = function () {
if (this.hitTest(player.body_hit)) {
bb_strong = false;
miaozhun.removeMovieClip();
clearInterval(qiangdu_plus);
sounds("m_got_weapen");
who_sound = "m_shouqiang";
bb_speed = 4;
fire_strong = 0;
reload_t = 700;
bb_max = 1;
bb_count = bb_max;
shot_step = 350;
hou_zuo_li = 3;
reload_max = (bb_count2 = 12);
qiangdu = 35;
who_weapen = "shouqiang";
Item = 100;
now_weapen = who_weapen;
bb_fire();
this.removeMovieClip();
}
};
break;
case 9 :
other_item_mc = _root.other_item_type.attachMovie("LIFEUP", "LIFEUP" + random(9999), _root.other_item_type.getNextHighestDepth());
other_item_mc._x = random(590);
other_item_mc._y = random(410) + 20;
other_item_mc.onEnterFrame = function () {
if (this.hitTest(player.body_hit)) {
sounds("m_got_weapen");
player_total_life = player_total_life + 100;
player_life = player_total_life;
blood_bar._xscale = (player_life / player_total_life) * 100;
blood_bar.gotoAndPlay(2);
this.removeMovieClip();
}
};
}
};
time_over = 12000;
remove_playerSpeed_plus = function () {
playerSpeed = 2;
clearInterval(playerSpeed_remove);
};
qiangdu_remove = function () {
qiangdu = qiangdu - Math.round((40 / qiangdu) * 100);
if ((now_weapen == "chuanjia") || (now_weapen == "laser1")) {
fire_strong = 1;
} else {
fire_strong = 0;
}
miaozhun.removeMovieClip();
bb_strong = false;
clearInterval(qiangdu_plus);
};
freeze_remove = function () {
freeze_Emty.onEnterFrame = function () {
this._alpha = this._alpha - 2;
if (this._alpha <= 0) {
freeze_all = false;
freeze_Emty.removeMovieClip();
clearInterval(freeze_plus);
}
};
};
life_clock_remove = function () {
life_clocked = false;
clock_life_mc.removeMovieClip();
clearInterval(life_clock_plus);
};
fire_clock_remove = function () {
bb_clock = false;
my_txt_mc.bb_locked._visible = 0;
clearInterval(fire_clock_plus);
};
remove_allPlus = function () {
remove_playerSpeed_plus();
qiangdu_remove();
freeze_remove();
life_clock_remove();
fire_clock_remove();
};
Item_show = function (who_weapen) {
_root.attachMovie("show_txt_mc", "show_txt_mc1", 7000);
show_txt_mc1._x = 300;
show_txt_mc1._y = 225;
switch (who_weapen) {
case "shouqiang" :
power_mc = _root.attachMovie("all_weapen_mc", "all_weapen_mc" + random(9999), _root.getNextHighestDepth());
power_mc.weapen_Movie.gotoAndStop(who_weapen);
power_mc._x = random(580);
power_mc._y = random(410) + 20;
power_mc.onEnterFrame = function () {
if (this.hitTest(player)) {
bb_strong = false;
miaozhun.removeMovieClip();
clearInterval(qiangdu_plus);
sounds("m_got_weapen");
who_sound = "m_shouqiang";
bb_speed = 4;
fire_strong = 0;
reload_t = 700;
bb_max = 1;
bb_count = bb_max;
shot_step = 350;
hou_zuo_li = 3;
reload_max = (bb_count2 = 12);
qiangdu = 35;
now_weapen = who_weapen;
bb_fire();
this.removeMovieClip();
}
};
break;
case "jiqiang1" :
power_mc = _root.attachMovie("all_weapen_mc", "all_weapen_mc" + random(9999), _root.getNextHighestDepth());
power_mc.weapen_Movie.gotoAndStop(who_weapen);
power_mc._x = random(580);
power_mc._y = random(410) + 20;
power_mc.onEnterFrame = function () {
if (this.hitTest(player)) {
bb_strong = false;
miaozhun.removeMovieClip();
clearInterval(qiangdu_plus);
sounds("m_got_weapen");
who_sound = "m_jiqiang1";
bb_speed = 4;
fire_strong = 0;
reload_t = 1800;
bb_max = 1;
bb_count = bb_max;
shot_step = 60;
hou_zuo_li = 12;
reload_max = (bb_count2 = 30);
qiangdu = 75;
now_weapen = who_weapen;
bb_fire();
this.removeMovieClip();
}
};
break;
case "chuanjia" :
power_mc = _root.attachMovie("all_weapen_mc", "all_weapen_mc" + random(9999), _root.getNextHighestDepth());
power_mc.weapen_Movie.gotoAndStop(who_weapen);
power_mc._x = random(580);
power_mc._y = random(410) + 20;
power_mc.onEnterFrame = function () {
if (this.hitTest(player)) {
bb_strong = false;
miaozhun.removeMovieClip();
clearInterval(qiangdu_plus);
sounds("m_got_weapen");
who_sound = "m_jiqiang2";
bb_speed = 3.5;
fire_strong = 1;
reload_t = 1600;
bb_max = 1;
bb_count = bb_max;
shot_step = 450;
hou_zuo_li = 2;
reload_max = (bb_count2 = bb_max * 5);
qiangdu = 200;
now_weapen = who_weapen;
bb_fire();
this.removeMovieClip();
}
};
break;
case "chuanjia2" :
power_mc = _root.attachMovie("all_weapen_mc", "all_weapen_mc" + random(9999), _root.getNextHighestDepth());
power_mc.weapen_Movie.gotoAndStop(who_weapen);
power_mc._x = random(580);
power_mc._y = random(410) + 20;
power_mc.onEnterFrame = function () {
if (this.hitTest(player)) {
bb_strong = false;
miaozhun.removeMovieClip();
clearInterval(qiangdu_plus);
sounds("m_got_weapen");
who_sound = "m_jiqiang2";
bb_speed = 4;
fire_strong = 1;
reload_t = 1800;
bb_max = 5;
bb_count = bb_max;
shot_step = 600;
hou_zuo_li = 15;
reload_max = (bb_count2 = bb_max * 10);
qiangdu = 200;
now_weapen = who_weapen;
bb_fire();
this.removeMovieClip();
}
};
break;
case "jiqiang2" :
power_mc = _root.attachMovie("all_weapen_mc", "all_weapen_mc" + random(9999), _root.getNextHighestDepth());
power_mc.weapen_Movie.gotoAndStop(who_weapen);
power_mc._x = random(580);
power_mc._y = random(410) + 20;
power_mc.onEnterFrame = function () {
if (this.hitTest(player)) {
bb_strong = false;
miaozhun.removeMovieClip();
clearInterval(qiangdu_plus);
sounds("m_got_weapen");
who_sound = "m_jiqiang2";
bb_speed = 5;
fire_strong = 0;
reload_t = 1100;
bb_max = 1;
bb_count = bb_max;
shot_step = 30;
hou_zuo_li = 4;
reload_max = (bb_count2 = 80);
qiangdu = 35;
now_weapen = who_weapen;
bb_fire();
this.removeMovieClip();
}
};
break;
case "laifu1" :
power_mc = _root.attachMovie("all_weapen_mc", "all_weapen_mc" + random(9999), _root.getNextHighestDepth());
power_mc.weapen_Movie.gotoAndStop(who_weapen);
power_mc._x = random(580);
power_mc._y = random(410) + 20;
power_mc.onEnterFrame = function () {
if (this.hitTest(player)) {
bb_strong = false;
miaozhun.removeMovieClip();
clearInterval(qiangdu_plus);
sounds("m_got_weapen");
who_sound = "m_laifu";
bb_speed = 5;
fire_strong = 0;
reload_t = 2400;
bb_max = 5;
bb_count = bb_max;
shot_step = 220;
hou_zuo_li = 40;
reload_max = (bb_count2 = bb_max * 11);
qiangdu = 55;
now_weapen = who_weapen;
bb_fire();
this.removeMovieClip();
}
};
break;
case "laser1" :
power_mc = _root.attachMovie("all_weapen_mc", "all_weapen_mc" + random(9999), _root.getNextHighestDepth());
power_mc.weapen_Movie.gotoAndStop(who_weapen);
power_mc._x = random(580);
power_mc._y = random(410) + 20;
power_mc.onEnterFrame = function () {
if (this.hitTest(player)) {
bb_strong = false;
miaozhun.removeMovieClip();
clearInterval(qiangdu_plus);
sounds("m_got_weapen");
who_sound = "m_enemy_voice1";
bb_speed = 2;
fire_strong = 1;
reload_t = 2100;
bb_max = 1;
bb_count = bb_max;
shot_step = 600;
hou_zuo_li = 2;
reload_max = (bb_count2 = bb_max * 6);
qiangdu = 300;
now_weapen = who_weapen;
bb_fire();
this.removeMovieClip();
}
};
break;
case "liudan1" :
power_mc = _root.attachMovie("all_weapen_mc", "all_weapen_mc" + random(9999), _root.getNextHighestDepth());
power_mc.weapen_Movie.gotoAndStop(who_weapen);
power_mc._x = random(580);
power_mc._y = random(410) + 20;
power_mc.onEnterFrame = function () {
if (this.hitTest(player)) {
bb_strong = false;
miaozhun.removeMovieClip();
clearInterval(qiangdu_plus);
sounds("m_got_weapen");
who_sound = "m_liudan";
bb_speed = 6;
fire_strong = 0;
reload_t = 1000;
bb_max = 1;
bb_count = bb_max;
shot_step = 300;
hou_zuo_li = 20;
reload_max = (bb_count2 = bb_max * 9);
qiangdu = 300;
now_weapen = who_weapen;
bb_fire();
this.removeMovieClip();
}
};
break;
case "liudan2" :
power_mc = _root.attachMovie("all_weapen_mc", "all_weapen_mc" + random(9999), _root.getNextHighestDepth());
power_mc.weapen_Movie.gotoAndStop(who_weapen);
power_mc._x = random(580);
power_mc._y = random(410) + 20;
power_mc.onEnterFrame = function () {
if (this.hitTest(player)) {
bb_strong = false;
miaozhun.removeMovieClip();
clearInterval(qiangdu_plus);
sounds("m_got_weapen");
who_sound = "m_liudan2";
bb_speed = 0;
fire_strong = 0;
reload_t = 3800;
bb_max = 1;
bb_count = bb_max;
shot_step = 500;
hou_zuo_li = 1;
reload_max = (bb_count2 = bb_max * 10);
qiangdu = 200;
now_weapen = who_weapen;
bb_fire();
this.removeMovieClip();
}
};
break;
case "zhongji" :
power_mc = _root.attachMovie("all_weapen_mc", "all_weapen_mc" + random(9999), _root.getNextHighestDepth());
power_mc.weapen_Movie.gotoAndStop(who_weapen);
power_mc._x = random(580);
power_mc._y = random(410) + 20;
power_mc.onEnterFrame = function () {
if (this.hitTest(player)) {
bb_strong = false;
miaozhun.removeMovieClip();
clearInterval(qiangdu_plus);
sounds("m_got_weapen");
who_sound = "m_jiqiang1";
bb_speed = 5;
fire_strong = 0;
reload_t = 4000;
bb_max = 1;
bb_count = bb_max;
shot_step = 25;
hou_zuo_li = 4;
reload_max = (bb_count2 = bb_max * 130);
qiangdu = 120;
now_weapen = who_weapen;
bb_fire();
this.removeMovieClip();
}
};
break;
case "fireGun" :
power_mc = _root.attachMovie("all_weapen_mc", "all_weapen_mc" + random(9999), _root.getNextHighestDepth());
power_mc.weapen_Movie.gotoAndStop(who_weapen);
power_mc._x = random(580);
power_mc._y = random(410) + 20;
power_mc.onEnterFrame = function () {
if (this.hitTest(player)) {
bb_strong = false;
miaozhun.removeMovieClip();
clearInterval(qiangdu_plus);
sounds("m_got_weapen");
who_sound = "m_fireGun_v";
bb_speed = 0.5;
fire_strong = 1;
reload_t = 2000;
bb_max = 1;
bb_count = bb_max;
shot_step = 20;
hou_zuo_li = 3;
reload_max = (bb_count2 = bb_max * 60);
qiangdu = 90;
now_weapen = who_weapen;
bb_fire();
this.removeMovieClip();
}
};
}
};
my_clear = function () {
var _local2 = 0;
while (_local2 < _root.getNextHighestDepth()) {
_root.getInstanceAtDepth(_local2).removeMovieClip();
_local2++;
}
stop_all();
};
stop_all = function () {
remove_allPlus();
stopAllSounds();
clearInterval(intervalID);
clearInterval(bb_recall_time2);
clearInterval(bb_recall_time);
big_mask();
trace("Wait for the game continue....");
if (be_continue == false) {
sounds("m_pass_stage_v");
clearInterval(Interval_my_clear);
_root.attachMovie("pass_Stage", "pass_Stage", 10, {_x:300, _y:225});
hit_mingzhong = Math.round((nice_shot / bb_shotted) * 100);
if (hit_mingzhong > 100) {
hit_mingzhong = 100;
}
total_time = Math.round((last_time - first_time) / 1000);
if (total_time < 60) {
time_s = 0;
} else {
time_s = Math.round(total_time / 60);
}
time_m = Math.round(total_time % 60);
pass_Stage.txt1.text = ((("USE TIME " + time_s) + "'") + time_m) + "''";
pass_Stage.txt2.text = "KILL NUMBER " + deid_enemy_count;
pass_Stage.txt3.text = ("SHOOTING " + hit_mingzhong) + " %";
_root.attachMovie("btn_big", "btn_big", 200);
btn_big.onRelease = function () {
start_all();
};
Interval_start_game = setInterval(start_all, 20000);
} else {
Interval_start_game = setInterval(start_all, 50);
}
};
start_all = function () {
btn_big.removeMovieClip();
pass_Stage.removeMovieClip();
clearInterval(Interval_start_game);
trace("\u00D3\u00CE\u03F7\u00BC\u00CC\u00D0\u00F8\u00A1\u00A3");
Init2();
_root.attachMovie("blood_bar", "blood_bar", 198880, {_x:70, _y:12});
intervalID = setInterval(player_run, 20);
player_load();
key_fun();
key_fun2();
interval_shuaguai = setInterval(enemy_load, 6000);
trace("be_continue=" + be_continue);
};
Replay_game = function () {
_quality = "MEDIUM";
remove_allPlus();
stopAllSounds();
var _local2 = 0;
while (_local2 < _root.getNextHighestDepth()) {
_root.getInstanceAtDepth(_local2).removeMovieClip();
_local2++;
}
_root.attachMovie("blood_bar", "blood_bar", 198880, {_x:70, _y:12});
Init();
player_load();
intervalID = setInterval(player_run, 20);
voice();
key_fun();
key_fun2();
enemy_load();
interval_shuaguai = setInterval(enemy_load, 6000);
};
_root.attachMovie("start_demo", "start_demo", 1, {_x:300, _y:225});
Symbol 29 MovieClip [boss_boom] Frame 26
this.removeMovieClip();
Symbol 30 MovieClip Frame 17
stop();
Symbol 33 MovieClip [boom3_mc] Frame 16
this.removeMovieClip();
Symbol 38 Button
on (press, keyPress "o") {
onToggle();
}
Symbol 46 MovieClip [bb_boom] Frame 16
this.removeMovieClip();
Symbol 52 MovieClip [freeze_hit] Frame 4
this.removeMovieClip();
Symbol 55 MovieClip [doctor] Frame 250
this.removeMovieClip();
Symbol 56 MovieClip Frame 11
stop();
Instance of Symbol 56 MovieClip in Symbol 61 MovieClip [boom_Movie] Frame 1
onClipEvent (enterFrame) {
this._x = random(10);
this._y = random(10);
}
Instance of Symbol 56 MovieClip in Symbol 61 MovieClip [boom_Movie] Frame 1
onClipEvent (enterFrame) {
this._x = random(10);
this._y = random(10);
}
Instance of Symbol 56 MovieClip in Symbol 61 MovieClip [boom_Movie] Frame 1
onClipEvent (enterFrame) {
this._x = random(10);
this._y = random(10);
}
Instance of Symbol 56 MovieClip in Symbol 61 MovieClip [boom_Movie] Frame 1
onClipEvent (enterFrame) {
this._x = random(10);
this._y = random(10);
}
Instance of Symbol 56 MovieClip in Symbol 61 MovieClip [boom_Movie] Frame 3
onClipEvent (enterFrame) {
this._x = random(10);
this._y = random(10);
}
Instance of Symbol 56 MovieClip in Symbol 61 MovieClip [boom_Movie] Frame 6
onClipEvent (enterFrame) {
this._x = random(10);
this._y = random(10);
}
Instance of Symbol 56 MovieClip in Symbol 61 MovieClip [boom_Movie] Frame 6
onClipEvent (enterFrame) {
this._x = random(10);
this._y = random(10);
}
Instance of Symbol 56 MovieClip in Symbol 61 MovieClip [boom_Movie] Frame 6
onClipEvent (enterFrame) {
this._x = random(10);
this._y = random(10);
}
Instance of Symbol 56 MovieClip in Symbol 61 MovieClip [boom_Movie] Frame 8
onClipEvent (enterFrame) {
this._x = random(10);
this._y = random(10);
}
Instance of Symbol 56 MovieClip in Symbol 61 MovieClip [boom_Movie] Frame 8
onClipEvent (enterFrame) {
this._x = random(10);
this._y = random(10);
}
Instance of Symbol 56 MovieClip in Symbol 61 MovieClip [boom_Movie] Frame 8
onClipEvent (enterFrame) {
this._x = random(10);
this._y = random(10);
}
Instance of Symbol 56 MovieClip in Symbol 61 MovieClip [boom_Movie] Frame 16
onClipEvent (enterFrame) {
this._x = random(10);
this._y = random(10);
}
Instance of Symbol 56 MovieClip in Symbol 61 MovieClip [boom_Movie] Frame 16
onClipEvent (enterFrame) {
this._x = random(10);
this._y = random(10);
}
Symbol 61 MovieClip [boom_Movie] Frame 28
this.removeMovieClip();
Symbol 64 MovieClip Frame 1
stop();
Symbol 65 MovieClip [boom] Frame 250
this.removeMovieClip();
Symbol 70 MovieClip [zhizhu_die] Frame 91
this.removeMovieClip();
Symbol 92 MovieClip [btn_retrun] Frame 1
stop();
Symbol 93 MovieClip [help_mc] Frame 1
btn_retrun.onRelease = function () {
_root.sounds("m_btn_release_v");
_parent.help_mc._visible = 0;
_parent.btn_start._visible = 1;
_parent.btn_help._visible = 1;
};
btn_retrun.onRollOver = function () {
this.gotoAndStop(2);
};
btn_retrun.onRollOut = function () {
this.gotoAndStop(1);
};
Symbol 96 MovieClip [btn_help] Frame 1
stop();
Symbol 99 MovieClip [btn_start] Frame 1
stop();
Symbol 105 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 109 Button
on (release) {
getURL ("http://www.ArmorBlog.com", "_blank");
}
Symbol 124 MovieClip Frame 1
stop();
Symbol 129 MovieClip [player] Frame 10
gotoAndStop (1);
Instance of Symbol 112 MovieClip in Symbol 130 MovieClip [start_demo] Frame 1
onClipEvent (enterFrame) {
this._alpha = random(30);
}
Symbol 130 MovieClip [start_demo] Frame 94
this.attachMovie("help_mc", "help_mc", 3, {_x:0, _y:0});
help_mc._visible = 0;
this.attachMovie("btn_start", "btn_start", 1, {_x:153, _y:110});
btn_start.onRelease = function () {
_root.sounds("m_btn_release_v");
btn_help._visible = 0;
this._visible = 0;
gotoAndPlay (130);
};
btn_start.onRollOver = function () {
this.gotoAndStop(2);
};
btn_start.onRollOut = function () {
this.gotoAndStop(1);
};
this.attachMovie("btn_help", "btn_help", 2, {_x:155, _y:157});
btn_help.onRelease = function () {
_root.sounds("m_btn_release_v");
help_mc._visible = 1;
btn_start._visible = 0;
this._visible = 0;
};
btn_help.onRollOver = function () {
this.gotoAndStop(2);
};
btn_help.onRollOut = function () {
this.gotoAndStop(1);
};
Symbol 130 MovieClip [start_demo] Frame 107
stop();
Symbol 130 MovieClip [start_demo] Frame 150
stop();
_root.Replay_game();
Symbol 141 MovieClip [blood_bar] Frame 1
stop();
Instance of Symbol 149 MovieClip "bb_locked" in Symbol 151 MovieClip [my_txt_mc] Frame 1
onClipEvent (load) {
this._visible = 0;
}
Symbol 155 MovieClip [back_Image_mc] Frame 1
gotoAndStop(_root.stage_level);
Symbol 163 MovieClip [p_die_Movie] Frame 100
stop();
Symbol 170 MovieClip [enemy_die] Frame 86
this.removeMovieClip();
Symbol 175 MovieClip [btn_Replay_game] Frame 1
stop();
Symbol 178 MovieClip [txt_show] Frame 186
gotoAndPlay (45);
Symbol 181 MovieClip [show_txt_mc] Frame 60
this.removeMovieClip();
Symbol 183 MovieClip [huoshe] Frame 2
this.removeMovieClip();
Symbol 222 MovieClip Frame 20
_parent.removeMovieClip();
Symbol 229 MovieClip [fast_move] Frame 251
this.removeMovieClip();
Symbol 232 MovieClip [fire_strong] Frame 251
this.removeMovieClip();
Symbol 235 MovieClip [freeze] Frame 251
this.removeMovieClip();
Symbol 244 MovieClip [freeze_mc] Frame 1
stop();
Symbol 244 MovieClip [freeze_mc] Frame 17
this.removeMovieClip();
Symbol 247 MovieClip [clock_life] Frame 251
this.removeMovieClip();
Symbol 255 MovieClip [enemy_bb_plus] Frame 8
this.removeMovieClip();
Symbol 278 MovieClip [jiangshi_die_mc] Frame 103
this.removeMovieClip();
Symbol 282 MovieClip Frame 32
stop();
Symbol 287 MovieClip [boom_mc4] Frame 35
this.removeMovieClip();
Symbol 334 MovieClip Frame 126
_root.nextFrame();