Frame 1
stop();
Frame 2
_root.controlScheme = "mouse";
function loadingAction() {
this.onEnterFrame = function () {
var _local4 = getBytesLoaded();
var _local3 = getBytesTotal();
var _local2 = int((_local4 / _local3) * 100) * 2;
this.text_loading.text = _local2 + "% Loaded";
if (this._framesloaded >= 35) {
delete this.onEnterFrame;
gotoAndStop ("game_start");
}
};
}
loadingAction();
stop();
Frame 10
function play_soundAction(what) {
if (game_sounds) {
this[what].start();
}
}
function play_music(what, cyc) {
if (this[what] == undefined) {
this[what] = new Sound();
this[what].attachSound(what);
}
if (game_music) {
if (now_music != what) {
now_music = what;
stopAllSounds();
if (!cyc) {
this[what].start();
} else {
this[what].start(0, 999999);
}
}
}
}
function set_key_data(how) {
control_method = how;
if (how == "keyboard") {
Wcode = (org_Wcode = 87);
Scode = (org_Scode = 83);
Acode = (org_Acode = 65);
Dcode = (org_Dcode = 68);
Jcode = (org_Jcode = 74);
Kcode = (org_Kcode = 75);
Lcode = (org_Lcode = 76);
} else if (how == "mouse") {
Wcode = (org_Wcode = 87);
Scode = (org_Scode = 83);
Acode = (org_Acode = 65);
Dcode = (org_Dcode = 68);
Jcode = (org_Jcode = 1);
Kcode = (org_Kcode = 87);
Lcode = (org_Lcode = 32);
}
}
function set_keyAction(code) {
var _local1 = 0;
while (_local1 < keycodes.length) {
if (keycodes[_local1][1] == code) {
return(keycodes[_local1][0]);
}
_local1++;
}
return("Wrong key");
}
function set_current_key() {
clip.wcode.order = 1;
clip.scode.order = 2;
clip.acode.order = 3;
clip.dcode.order = 4;
clip.jcode.order = 5;
clip.kcode.order = 6;
clip.lcode.order = 7;
clip.wcode.what = set_keyAction(Wcode);
clip.wcode.gotoAndStop(1);
clip.scode.what = set_keyAction(Scode);
clip.scode.gotoAndStop(1);
clip.acode.what = set_keyAction(Acode);
clip.acode.gotoAndStop(1);
clip.dcode.what = set_keyAction(Dcode);
clip.dcode.gotoAndStop(1);
clip.jcode.what = set_keyAction(Jcode);
clip.jcode.gotoAndStop(1);
clip.kcode.what = set_keyAction(Kcode);
clip.kcode.gotoAndStop(1);
clip.lcode.what = set_keyAction(Lcode);
clip.lcode.gotoAndStop(1);
end_set_key();
}
function reset_org_key() {
Wcode = org_Wcode;
Scode = org_Scode;
Acode = org_Acode;
Dcode = org_Dcode;
Jcode = org_Jcode;
Kcode = org_Kcode;
Lcode = org_Lcode;
set_current_key();
}
function start_set_key(which) {
play_soundAction("\u8865\u5145\u5F39\u836F");
set_current_key();
which.gotoAndPlay(2);
key_set_pressed = false;
keyListener = new Object();
keyListener.onKeyDown = function () {
set_this_key(Key.getCode(), which);
};
keyListener.onKeyUp = function () {
end_set_key();
};
Key.addListener(keyListener);
}
function end_set_key() {
Key.removeListener(keyListener);
delete keyListener;
}
function set_this_key(code, which) {
if (!key_set_pressed) {
if (which.order == 1) {
Wcode = code;
} else if (which.order == 2) {
Scode = code;
} else if (which.order == 3) {
Acode = code;
} else if (which.order == 4) {
Dcode = code;
} else if (which.order == 5) {
Jcode = code;
} else if (which.order == 6) {
Kcode = code;
} else if (which.order == 7) {
Lcode = code;
}
which.gotoAndStop(1);
which.what = set_keyAction(code);
key_set_pressed = true;
}
}
function check_correct() {
if (clip.wcode.what == "Wrong key") {
start_set_key(_root.clip.wcode);
return("wrong");
}
if (clip.scode.what == "Wrong key") {
start_set_key(_root.clip.scode);
return("wrong");
}
if (clip.acode.what == "Wrong key") {
start_set_key(_root.clip.acode);
return("wrong");
}
if (clip.dcode.what == "Wrong key") {
start_set_key(_root.clip.dcode);
return("wrong");
}
if (clip.jcode.what == "Wrong key") {
start_set_key(_root.clip.jcode);
return("wrong");
}
if (clip.kcode.what == "Wrong key") {
start_set_key(_root.clip.kcode);
return("wrong");
}
if (clip.lcode.what == "Wrong key") {
start_set_key(_root.clip.lcode);
return("wrong");
}
var _local4 = [Wcode, Scode, Acode, Dcode, Jcode, Kcode, Lcode];
var _local5 = ["wcode", "scode", "acode", "dcode", "jcode", "kcode", "lcode"];
var _local2 = 0;
while (_local2 < (_local4.length - 1)) {
var _local3 = _local2 + 1;
while (_local3 < _local4.length) {
if (_local4[_local2] == _local4[_local3]) {
if (_root.clip[_local5[_local2]] != undefined) {
start_set_key(_root.clip[_local5[_local2]]);
return("wrong");
}
}
_local3++;
}
_local2++;
}
return("finish");
}
function set_current_options() {
clip.music.order = 1;
clip.sound.order = 2;
clip.qua.order = 3;
clip.diff.order = 4;
clip.music.gotoAndStop(game_music);
clip.sound.gotoAndStop(game_sounds);
clip.qua.gotoAndStop(game_quality);
clip.diff.gotoAndStop(game_level);
}
function set_options(which, dataVal) {
play_soundAction("\u8865\u5145\u5F39\u836F");
var _local1 = which.order;
if (_local1 == 1) {
if (game_music) {
game_music = false;
clip.music.gotoAndStop(2);
} else {
game_music = true;
clip.music.gotoAndStop(1);
}
} else if (_local1 == 2) {
if (game_sounds) {
game_sounds = false;
clip.sound.gotoAndStop(2);
} else {
game_sounds = true;
clip.sound.gotoAndStop(1);
}
} else if (_local1 == 3) {
if (game_quality == 1) {
game_quality = 2;
_quality = "MEDIUM";
} else if (game_quality == 2) {
game_quality = 3;
_quality = "HIGH";
} else if (game_quality == 3) {
game_quality = 1;
_quality = "LOW";
}
clip.qua.gotoAndStop(game_quality);
} else if (_local1 == 4) {
game_level = dataVal;
clip.diff.gotoAndStop(game_level);
}
}
function moveAction(who, speed) {
speed = Math.round(speed);
var _local15 = get_map_point(who);
var _local14 = _local15[0];
var _local16 = _local15[1];
if (((_local14 + speed) > 10) and ((_local14 + speed) < 390)) {
var _local7 = false;
var _local8 = who._x + main._x;
var _local9 = (who._y + main._y) - who.org_height;
var _local5 = false;
var _local11 = (who._x + main._x) + speed;
var _local10 = (who._y + main._y) - who.g._height;
var _local1 = false;
var _local4 = (who._x + main._x) + speed;
var _local3 = (who._y + main._y) - Math.round(who.g._height / 3);
do {
if ((in main.bg) == null) {
break;
}
var _local12 = in main.bg;
if (main.bg[_local12].g.hitTest(_local8, _local9, true)) {
_local7 = true;
}
if (main.bg[_local12].g.hitTest(_local11, _local10, true)) {
_local5 = true;
}
if (main.bg[_local12].g.hitTest(_local4, _local3, true)) {
_local1 = true;
}
} while (!(_local5 | _local1));
do {
} while (() != null);
for (_local12 in main.objects) {
if (main.objects[_local12].can_block) {
if (main.objects[_local12].g.hitTest(_local4, _local3, true)) {
_local1 = true;
break;
}
}
}
for (var _local13 in main.enemies) {
if (main.enemies[_local13].can_block) {
if (main.enemies[_local13].g != undefined) {
if (main.enemies[_local13].g.hitTest(_local4, _local3, true)) {
_local1 = true;
break;
}
}
}
}
who.stand_hit_head = _local7;
who.hit_head = _local5;
who.hit_ground = _local1;
if ((!_local1) and (!_local5)) {
if (speed > 0) {
if ((player_max_x == undefined) or ((who._x + speed) < player_max_x)) {
who._x = who._x + speed;
}
} else if (speed < 0) {
if ((player_min_x == undefined) or ((who._x + speed) > player_min_x)) {
who._x = who._x + speed;
}
}
}
} else if (Math.abs(_local14 - 200) > 200) {
control_able = false;
who.dead = true;
who.up.gotoAndStop("die01");
play_soundAction("\u4E3B\u89D2\u6B7B\u4EA1");
delete who.up.onEnterFrame;
delete who.down.onEnterFrame;
}
adjustAction1(who);
}
function adjustAction1(who) {
var _local3 = who._x + main._x;
if (who.y_speed == undefined) {
var _local2 = who._y + main._y;
} else {
var _local2 = (who._y + main._y) + who.y_speed;
}
for (var _local4 in main.enemies) {
if (main.enemies[_local4].hitTest(_local3, _local2, true)) {
if (main.enemies[_local4].g != undefined) {
if (main.enemies[_local4].can_stand) {
adjustAction2(who, main.enemies[_local4].g);
if (main.enemies[_local4].can_jump) {
who.force_jump_speed = 10;
justFrame(who, "down", "jump");
return(undefined);
}
return(undefined);
}
}
}
}
for (var _local5 in main.objects) {
if (main.objects[_local5].hitTest(_local3, _local2, true)) {
if (main.objects[_local5].g != undefined) {
adjustAction2(who, main.objects[_local5].g);
return(undefined);
}
}
}
for (var _local5 in main.bg) {
if (main.bg[_local5].hitTest(_local3, _local2, true)) {
if (main.bg[_local5].d.hitTest(_local3, _local2, true)) {
player_die(who, main.bg[_local5].d.type, 100);
return(undefined);
}
if (main.bg[_local5].g != undefined) {
adjustAction2(who, main.bg[_local5].g);
return(undefined);
}
}
}
if (who.states != "jump") {
forceFrame(who, "down", "fall");
}
}
function adjustAction2(who, where) {
if (where != undefined) {
if (who.states != "jump") {
if (!where.hitTest(who._x + main._x, (who._y + main._y) + 15, true)) {
justFrame(who, "down", "fall");
} else {
adjustY(who, where);
}
}
}
}
function adjustY(who, where) {
var _local3 = 5;
while (_local3 >= 1) {
if (!where.hitTest(who._x + main._x, ((who._y + main._y) + _local3) - 1, true)) {
who._y = who._y + _local3;
} else {
_local3--;
}
}
var _local2 = 5;
while (_local2 >= 1) {
if (where.hitTest(who._x + main._x, (who._y + main._y) - _local2, true)) {
who._y = who._y - _local2;
} else {
_local2--;
}
}
}
function moveAction2(who, speedx, speedy) {
var _local2 = (who.updown + "_") + who.lright;
if (who.frame != _local2) {
who.gotoAndPlay(_local2);
}
var _local4 = get_map_point(who)[0];
var _local3 = get_map_point(who)[1];
if ((_local4 >= (20 - speedx)) and (_local4 <= (380 - speedx))) {
who._x = who._x + speedx;
}
if ((_local3 > (20 - speedy)) and (_local3 < (290 - speedy))) {
who._y = who._y + speedy;
}
}
function adjustAction3(who, where) {
do {
if (!where.hitTest(who._x + main._x, who._y + main._y, true)) {
break;
}
who._x = who._x - (5 * Math.cos(who._rotation * 0.01745));
who._y = who._y - (5 * Math.sin(who._rotation * 0.01745));
} while (!(((who._x > (560 - main._x)) or (who._x < (-main._x))) or ((who._y > (400 - main._y)) or (who._y < (-main._y)))));
}
function remove_objects() {
for (var _local1 in main.objects) {
main.objects[_local1].removeMovieClip();
}
}
function add_object(what, temp_x, temp_y) {
var _local2 = main.objects.getNextHighestDepth();
var _local1 = main.objects.attachMovie(what, (what + "_") + _local2, _local2);
_local1._x = temp_x;
_local1._y = temp_y;
return(_local1);
}
function effect_Action(main_x, main_y) {
if (this[(("effect_array" + stages) + "_") + stages_section] != undefined) {
var _local2 = 0;
while (_local2 < this[(("effect_array" + stages) + "_") + stages_section].length) {
if (this[(("effect_array" + stages) + "_") + stages_section][_local2][2] == false) {
if (main_x < this[(("effect_array" + stages) + "_") + stages_section][_local2][0]) {
this[(("effect_array" + stages) + "_") + stages_section][_local2][2] = true;
add_effect(this[(("effect_array" + stages) + "_") + stages_section][_local2][1]);
break;
}
}
_local2++;
}
}
}
function add_effect(what) {
if (what[0] == "add") {
effect_clip.attachMovie(what[1], "effect", effect_clip.getNextHighestDepth());
} else {
for (var _local1 in effect_clip) {
effect_clip[_local1].remove_me();
}
}
}
function change_color(target_mc, color) {
target_mc.filters = [new flash.filters.ColorMatrixFilter(color)];
}
function camera_it(from_mc, to_mc) {
var _local2 = new flash.display.BitmapData(400, 300);
var _local1 = new flash.geom.Matrix();
_local1.tx = from_mc._x;
_local1.ty = from_mc._y;
_local2.draw(from_mc, _local1);
to_mc.attachBitmap(_local2, to_mc.getNextHighestDepth());
}
function gameControl(who) {
if (control_able and (who.dead == false)) {
if (who.my_type == "man") {
gameControl01(who);
} else if (who.my_type == "plane") {
gameControl02(who);
} else if (who.my_type == "gun") {
gameControl03(who);
}
}
if (game_testing) {
if (Key.isDown(37)) {
_root.main._x = _root.main._x - 5;
} else if (Key.isDown(39)) {
_root.main._x = _root.main._x + 5;
} else if (Key.isDown(38)) {
_root.main._y = _root.main._y - 5;
} else if (Key.isDown(40)) {
_root.main._y = _root.main._y + 5;
} else if (Key.isDown(32)) {
} else if (Key.isDown(90)) {
for (var _local3 in _root.main.bg) {
_root.main.bg[_local3].g._visible = 1;
}
} else if (Key.isDown(88)) {
for (var _local3 in _root.main.bg) {
_root.main.bg[_local3].g._visible = 0;
}
}
}
}
function gameControl01(who) {
if (Key.isDown(Scode)) {
key_S_Action(who);
} else {
normalAction_S(who);
if (KeyisDownWcode()) {
key_W_Action(who);
} else {
normalAction_W(who);
}
}
if (Key.isDown(Acode)) {
key_AD_Action(who, -100);
} else if (Key.isDown(Dcode)) {
key_AD_Action(who, 100);
} else {
normalAction_AD(who);
}
if (Key.isDown(Jcode)) {
if (!Jcode_pressed) {
Jcode_pressed = true;
key_J_Action(who);
}
} else {
Jcode_pressed = false;
}
if (Key.isDown(Kcode)) {
if (!Kcode_pressed) {
Kcode_pressed = true;
key_K_Action(who);
}
} else {
Kcode_pressed = false;
}
if (Key.isDown(Lcode)) {
if (!Lcode_pressed) {
Lcode_pressed = true;
key_L_Action(who);
}
} else {
Lcode_pressed = false;
}
moveAction(who, ((who.player_speed * who.speed_rate) * Math.abs(who._xscale)) / who._xscale);
}
function gameControl02(who) {
if (Key.isDown(Scode)) {
key_WS_Action2(who, "down");
} else if (Key.isDown(Wcode)) {
key_WS_Action2(who, "up");
} else {
normalAction_WS2(who);
}
if (Key.isDown(Acode)) {
key_AD_Action2(who, "back");
} else if (Key.isDown(Dcode)) {
key_AD_Action2(who, "front");
} else {
normalAction_AD2(who);
}
if (Key.isDown(Jcode)) {
if (!Jcode_pressed) {
Jcode_pressed = true;
key_J_Action2(who);
}
} else {
Jcode_pressed = false;
}
moveAction2(who, who.speedx, who.speedy);
}
function gameControl03(who) {
if (Key.isDown(Scode)) {
key_S_Action3(who);
} else if (Key.isDown(Acode)) {
key_AD_Action3(1);
} else if (Key.isDown(Dcode)) {
key_AD_Action3(-1);
}
if (Key.isDown(Jcode)) {
if (!Jcode_pressed) {
Jcode_pressed = true;
key_J_Action3(who);
}
} else {
Jcode_pressed = false;
}
if (Key.isDown(Kcode)) {
if (!Kcode_pressed) {
Kcode_pressed = true;
key_K_Action3(who);
}
} else {
Kcode_pressed = false;
}
}
function gotoFrame(who, part, where) {
if ((!who.shooting) and (!who.turning)) {
justFrame(who, part, where);
}
}
function forceFrame(who, part, where) {
if (who.ready and (!who.turning)) {
justFrame(who, part, where);
}
}
function justFrame(who, part, where) {
if (who[part].frame != where) {
who.ready = true;
who.shooting = false;
who.turning = false;
who[part].gotoAndStop(where);
}
}
function changeFrame(who, part, where) {
if (who[part].frame != where) {
who[part].gotoAndStop(where);
}
}
function shootFrame(who, part, where) {
if (slug_left > 0) {
if (who.ready) {
if (who[part].frame != where) {
who[part].gotoAndStop(where);
} else {
who[part].clip.gotoAndPlay(1);
}
}
} else {
who.gun_type = "pistol";
who.gun = 0;
who.gun_shoot = "single";
slug_left = 999999 /* 0x0F423F */;
adjust_amr(slug_left);
if (who.states == "stand") {
changeFrame(who, "up", "get_pistol");
changeFrame(who, "down", "stand");
play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
}
}
}
function KeyisDownWcode() {
if (control_method == "keyboard") {
if (Key.isDown(Wcode)) {
return(true);
}
return(false);
}
if (control_method == "mouse") {
if (main._ymouse < (main.player._y - 80)) {
return(true);
}
return(false);
}
}
function key_W_Action(who) {
if (who.states != "crouch") {
if ((who.gun == 1) and who.shooting) {
if (!who.near) {
if (who.up.frame != "machinegun_up_running") {
changeFrame(who, "up", "s_to_u");
}
}
} else if (who.gun_direction != "up") {
forceFrame(who, "up", who.gun_type + "_lookup");
}
}
}
function key_S_Action(who) {
if (who.states == "stand") {
who.states = "crouch";
justFrame(who, "up", who.gun_type + "_crouch");
justFrame(who, "down", "crouch");
} else if (who.states == "jump") {
if ((who.gun == 1) and who.shooting) {
if (who.up.frame != "machinegun_down_running") {
changeFrame(who, "up", "s_to_d");
}
} else {
forceFrame(who, "up", who.gun_type + "_down");
}
}
}
function key_AD_Action(who, directions) {
if (who.states == "stand") {
if (directions != who._xscale) {
forceFrame(who, "up", ((who.gun_type + "_") + who.states) + "_turn");
} else {
if (!KeyisDownWcode()) {
gotoFrame(who, "up", ((who.gun_type + "_") + who.states) + "_run");
}
forceFrame(who, "down", who.states + "_run");
}
} else if (who.states == "crouch") {
if (directions != who._xscale) {
forceFrame(who, "up", ((who.gun_type + "_") + who.states) + "_turn");
} else {
gotoFrame(who, "up", (who.gun_type + "_") + who.states);
gotoFrame(who, "down", who.states + "_run");
}
} else if (who.states == "jump") {
who._xscale = directions;
if (who.speed_rate == 0) {
who.speed_rate = 1;
}
}
}
function normalAction_S(who) {
if (who.states == "jump") {
if ((who.gun == 1) and who.shooting) {
if (who.gun_direction == "down") {
if (who.up.frame != "machinegun_straight_running") {
changeFrame(who, "up", "d_to_s");
}
}
} else if (!KeyisDownWcode()) {
who.gun_direction = "straight";
gotoFrame(who, "up", who.gun_type + "_jump");
}
} else if (who.states == "crouch") {
if (!who.stand_hit_head) {
forceFrame(who, "up", who.gun_type + "_stand");
forceFrame(who, "down", "stand");
}
}
}
function normalAction_W(who) {
if (who.states == "stand") {
if ((who.gun == 1) and who.shooting) {
if (who.gun_direction == "up") {
if (who.up.frame != "machinegun_straight_running") {
changeFrame(who, "up", "u_to_s");
}
}
} else {
who.gun_direction = "straight";
}
} else if (who.states == "jump") {
if (!Key.isDown(Scode)) {
if ((who.gun == 1) and who.shooting) {
if (who.gun_direction == "up") {
if (who.up.frame != "machinegun_straight_running") {
changeFrame(who, "up", "u_to_s");
}
}
} else {
gotoFrame(who, "up", who.gun_type + "_jump");
}
}
}
}
function normalAction_AD(who) {
if (who.states == "stand") {
if (!KeyisDownWcode()) {
if (!((who.gun == 1) and who.shooting)) {
gotoFrame(who, "up", who.gun_type + "_stand");
}
}
forceFrame(who, "down", "stand");
} else if (who.states == "crouch") {
gotoFrame(who, "up", who.gun_type + "_crouch");
gotoFrame(who, "down", "crouch");
}
}
function key_J_Action(who) {
who.near = false;
for (var _local3 in main.enemies) {
if (main.enemies[_local3].can_kill) {
if (main.enemies[_local3].g.hitTest(who)) {
who.near = true;
break;
}
}
}
if (who.near) {
if (who.states == "crouch") {
forceFrame(who, "up", "attack_crouch1");
} else if (who.near_type) {
forceFrame(who, "up", "attack_stand1");
who.near_type = false;
} else {
forceFrame(who, "up", "attack_stand2");
who.near_type = true;
}
} else {
var _local2 = true;
if (who.gun == 2) {
if (main["shoot" + (slug_left + 2)] != undefined) {
_local2 = false;
}
} else if (who.gun == 3) {
if (main["shoot" + (slug_left + 1)] != undefined) {
_local2 = false;
}
} else if (who.gun == 4) {
if (main["shoot" + (slug_left + 1)] != undefined) {
_local2 = false;
}
} else if (who.gun == 5) {
if (main["shoot" + (slug_left + 3)] != undefined) {
_local2 = false;
}
} else if (who.gun == 6) {
if (main["shoot" + (slug_left + 1)] != undefined) {
_local2 = false;
}
} else if (who.gun == 7) {
if (main["shoot" + (slug_left + 2)] != undefined) {
_local2 = false;
}
}
if (_local2) {
if (who.ready) {
if (who.states == "stand") {
shootFrame(who, "up", (((who.gun_type + "_") + who.gun_direction) + "_") + who.gun_shoot);
} else if (who.states == "crouch") {
shootFrame(who, "up", (who.gun_type + "_crouch_") + who.gun_shoot);
forceFrame(who, "down", "crouch_shoot");
} else if (who.states == "jump") {
shootFrame(who, "up", (((who.gun_type + "_") + who.gun_direction) + "_") + who.gun_shoot);
}
}
}
}
}
function key_K_Action(who) {
if (who.states != "jump") {
if (!who.stand_hit_head) {
forceFrame(who, "up", who.gun_type + "_jump");
justFrame(who, "down", "jump");
}
}
}
function key_L_Action(who) {
if (who.states != "jump") {
forceFrame(who, "up", ((who.gun_type + "_") + who.states) + "_bomb");
if (who.states == "crouch") {
forceFrame(who, "down", "crouch_shoot");
}
} else {
forceFrame(who, "up", who.gun_type + "_stand_bomb");
}
}
function key_WS_Action2(who, updown) {
who.updown = updown;
if (updown == "up") {
if (who.lright == "NA") {
roll_gun(who, -90);
} else if (who.lright == "front") {
roll_gun(who, -45);
} else if (who.lright == "back") {
roll_gun(who, -135);
}
} else if (updown == "down") {
if (who.lright == "NA") {
roll_gun(who, 90);
} else if (who.lright == "front") {
roll_gun(who, 45);
} else if (who.lright == "back") {
roll_gun(who, 135);
}
}
}
function key_AD_Action2(who, lright) {
who.lright = lright;
if (lright == "front") {
if (who.updown == "NA") {
roll_gun(who, 0);
} else if (who.updown == "up") {
roll_gun(who, -45);
} else if (who.updown == "down") {
roll_gun(who, 45);
}
} else if (lright == "back") {
if (who.updown == "NA") {
roll_gun(who, 180);
} else if (who.updown == "up") {
roll_gun(who, -135);
} else if (who.updown == "down") {
roll_gun(who, 135);
}
}
}
function roll_gun(who, where) {
var _local3 = who.mgun._rotation + 360;
var _local2 = Number(where) + 360;
var _local1 = 10;
if (_local3 > _local2) {
if ((_local3 - _local2) <= 180) {
who.mgun._rotation = who.mgun._rotation - _local1;
} else {
who.mgun._rotation = who.mgun._rotation + _local1;
}
} else if (_local3 < _local2) {
if ((_local2 - _local3) <= 180) {
who.mgun._rotation = who.mgun._rotation + _local1;
} else {
who.mgun._rotation = who.mgun._rotation - _local1;
}
}
}
function normalAction_WS2(who) {
who.updown = "NA";
}
function normalAction_AD2(who) {
who.lright = "NA";
}
function key_J_Action2(who) {
if ((who.mgun.fire <= 1) or (who.mgun.fire == undefined)) {
who.mgun.delay = 3;
who.mgun.fire = 3;
who.mgun.onEnterFrame = function () {
if ((--who.mgun.delay) == 0) {
who.mgun.delay = 3;
key_J_Action2_action(who);
if ((--who.mgun.fire) == 0) {
delete this.onEnterFrame;
}
}
};
}
play_soundAction("\u673A\u68B0\u5F00\u673A\u67AA");
}
function key_J_Action2_action(who) {
var _local6 = main.getNextHighestDepth();
var _local4 = main.attachMovie("\u4E3B\u89D2_\u5B50\u5F391", "shoot" + _local6, _local6);
_local4._x = get_shoot_point(who.mgun.point)[0] + active_object_speed;
_local4._y = get_shoot_point(who.mgun.point)[1];
_local4._rotation = (who.mgun._rotation + random(8)) - random(8);
_local4.kill_num = 1;
_local4.onEnterFrame = function () {
var _local5 = active_object_speed;
if (((this._x > (-main._x)) and (this._x < (400 - main._x))) and ((this._y > (-main._y)) and (this._y < (300 - main._y)))) {
if (this.can_go) {
this._x = this._x + ((this.speed * Math.cos(this._rotation * 0.01745)) + _local5);
this._y = this._y + (this.speed * Math.sin(this._rotation * 0.01745));
} else {
this._x = get_shoot_point(who.mgun.point)[0] + _local5;
this._y = get_shoot_point(who.mgun.point)[1];
}
} else {
this.removeMovieClip();
}
if (this.can_go) {
var _local3 = false;
for (var _local4 in _root.main.enemies) {
if (_root.main.enemies[_local4].g.hitTest(this._x + main._x, this._y + main._y, true)) {
_root.main.enemies[_local4].to_die("shoot", this.kill_num);
_local3 = true;
game_score = game_score + 100;
adjust_score(game_UI);
break;
}
}
if (_local3) {
this.gotoAndStop("hit");
play_soundAction("H\u5F39\u51FB\u4E2D");
delete this.onEnterFrame;
}
}
};
}
function key_S_Action3() {
if ((--key_gun_buffer) == 0) {
key_gun_buffer = 2;
if (key_gun_point > 8) {
key_gun_point--;
} else if (key_gun_point < 8) {
key_gun_point++;
}
active_map_drawer.gun.gotoAndStop("dir_" + key_gun_point);
main.player._x = get_shoot_point(active_map_drawer.gun.g)[0];
main.player._y = get_shoot_point(active_map_drawer.gun.g)[1];
}
}
function key_AD_Action3(directions) {
if ((--key_gun_buffer) == 0) {
key_gun_buffer = 2;
var _local1 = key_gun_point + directions;
if ((_local1 >= 0) and (_local1 <= 16)) {
key_gun_point = key_gun_point + directions;
}
active_map_drawer.gun.gotoAndStop("dir_" + key_gun_point);
main.player._x = get_shoot_point(active_map_drawer.gun.g)[0];
main.player._y = get_shoot_point(active_map_drawer.gun.g)[1];
if (key_gun_point != 8) {
main.player._xscale = (100 * Math.abs(key_gun_point - 8)) / (key_gun_point - 8);
}
}
}
function key_J_Action3() {
if ((active_map_drawer.gun.fire <= 1) or (active_map_drawer.gun.fire == undefined)) {
active_map_drawer.gun.delay = 3;
active_map_drawer.gun.fire = 3;
active_map_drawer.gun.onEnterFrame = function () {
if ((--active_map_drawer.gun.delay) == 0) {
active_map_drawer.gun.delay = 3;
key_J_Action3_action();
if ((--active_map_drawer.gun.fire) == 0) {
delete this.onEnterFrame;
}
}
};
play_soundAction("\u673A\u68B0\u5F00\u673A\u67AA");
}
}
function key_J_Action3_action() {
var _local6 = main.getNextHighestDepth();
var _local4 = main.attachMovie("\u4E3B\u89D2_\u5B50\u5F391", "\u4E3B\u89D2_\u5B50\u5F391" + _local6, _local6);
_local4._x = get_shoot_point(active_map_drawer.gun.point)[0] + active_object_speed;
_local4._y = get_shoot_point(active_map_drawer.gun.point)[1];
var _local8 = [-180, -170, -157, -141, -132, -123, -113, -96, -90, -82, -67, -55, -42, -37, -24, -10, 0];
_local4._rotation = (_local8[key_gun_point] + random(5)) - random(5);
_local4.kill_num = 1;
_local4.onEnterFrame = function () {
var _local5 = active_object_speed;
if (((this._x > (-main._x)) and (this._x < (560 - main._x))) and ((this._y > (-main._y)) and (this._y < (400 - main._y)))) {
if (this.can_go) {
this._x = this._x + ((this.speed * Math.cos(this._rotation * 0.01745)) + _local5);
this._y = this._y + (this.speed * Math.sin(this._rotation * 0.01745));
} else {
this._x = get_shoot_point(active_map_drawer.gun.point)[0] + _local5;
this._y = get_shoot_point(active_map_drawer.gun.point)[1];
}
} else {
this.removeMovieClip();
}
if (this.can_go) {
var _local3 = false;
for (var _local4 in _root.main.enemies) {
if (_root.main.enemies[_local4].g.hitTest(this._x + main._x, this._y + main._y, true)) {
_root.main.enemies[_local4].to_die("shoot", this.kill_num);
_local3 = true;
game_score = game_score + 100;
adjust_score(game_UI);
break;
}
}
if (_local3) {
this.gotoAndStop("hit");
play_soundAction("H\u5F39\u51FB\u4E2D");
delete this.onEnterFrame;
}
}
};
}
function key_K_Action3() {
_root.main.player._visible = 1;
_root.main.player.my_type = "man";
justFrame(main.player, "up", main.player.gun_type + "_jump");
justFrame(main.player, "down", "jump");
unbreakAction(main.player);
active_map_drawer.gun.gotoAndStop("em_" + key_gun_point);
}
function add_player(what, temp_x, temp_y) {
main.player.removeMovieClip();
if (what == "man") {
main.attachMovie("player", "player", main.getNextHighestDepth());
main.player.states = "stand";
main.player.gun_direction = "straight";
main.player.turning = false;
main.player.player_speed = 6;
} else if (what == "plane") {
main.attachMovie("player_plane", "player", main.getNextHighestDepth());
main.player.player_speed = 5;
main.player.speed_rate = 1;
}
main.player._x = temp_x;
main.player._y = temp_y;
main.player.gun_type = "pistol";
main.player.gun = 0;
main.player.gun_shoot = "single";
adjust_amr(slug_left);
adjust_bomb(bomb_left);
main.player.shooting = false;
main.player.ready = true;
main.player.my_type = what;
main.player.dead = false;
main.player.org_height = main.player.g._height;
main.player.unbreak = false;
main.player.near = false;
main.player.can_with = true;
control_able = true;
return(main.player);
}
function unbreakAction(who) {
who.unbreak = true;
who.unbreak_start = 0;
who.onEnterFrame = function () {
this.unbreak_start++;
var _local2 = this.unbreak_start % 10;
if (_local2 < 5) {
this._alpha = 60;
} else {
this._alpha = 100;
}
if (this.unbreak_start > 70) {
this._alpha = 100;
delete this.onEnterFrame;
delete this.unbreak_start;
who.unbreak = false;
}
};
}
function player_die(who, how, much) {
if (!boss_killed) {
if ((!who.dead) and (!who.unbreak)) {
life_left = life_left - Math.round((much * game_level) / 2);
if (life_left <= 0) {
life = 0;
if (how == "water") {
control_able = false;
who.dead = true;
who.up.gotoAndStop("die03");
play_soundAction("\u843D\u6C34");
} else if (((how == "kill") and (!who.unbreak)) and (!game_testing)) {
control_able = false;
who.dead = true;
if (who.my_type == "man") {
who.up.gotoAndStop("die02");
play_soundAction("\u4E3B\u89D2\u6B7B\u4EA1");
} else if (who.my_type == "plane") {
who.gotoAndPlay("explode");
} else if (who.my_type == "gun") {
who.my_type = "man";
who._visible = 1;
who.up.gotoAndStop("die02");
active_map_drawer.gun.gotoAndStop("em_" + key_gun_point);
play_soundAction("\u4E3B\u89D2\u6B7B\u4EA1");
}
} else if (((how == "shoot") and (!who.unbreak)) and (!game_testing)) {
control_able = false;
who.dead = true;
if (who.my_type == "man") {
who.up.gotoAndStop("die01");
play_soundAction("\u4E3B\u89D2\u6B7B\u4EA1");
} else if (who.my_type == "plane") {
who.gotoAndPlay("explode");
} else if (who.my_type == "gun") {
who.my_type = "man";
who._visible = 1;
who.up.gotoAndStop("die01");
active_map_drawer.gun.gotoAndStop("em_" + key_gun_point);
play_soundAction("\u4E3B\u89D2\u6B7B\u4EA1");
}
} else if (how == "h2so4") {
control_able = false;
who.dead = true;
who.up.gotoAndStop("die04");
play_soundAction("\u843D\u6C34");
}
} else {
shot_shine(game_UI.life, "red");
unbreakAction(who);
}
adjust_life();
}
}
}
function jump_Action(where, lives) {
where.onEnterFrame = function () {
if (!player_paused) {
if (Math.abs(this.y_speed) <= 20) {
this.y_speed = this.y_speed - 1.35;
}
this._parent._y = this._parent._y - this.y_speed;
if ((this._parent._y + main._y) > 330) {
control_able = false;
this._parent.dead = true;
this._parent.up.gotoAndStop("die01");
play_soundAction("\u4E3B\u89D2\u6B7B\u4EA1");
delete this.onEnterFrame;
}
if (this.y_speed <= 0) {
var _local3 = this._parent._x + main._x;
var _local2 = (this._parent._y + main._y) - this.y_speed;
for (var _local4 in main.enemies) {
if (main.enemies[_local4].g.hitTest(_local3, _local2, true)) {
if (main.enemies[_local4].can_stand) {
if (lives) {
landAction(this._parent);
}
this._parent.states = "stand";
delete this.onEnterFrame;
return(undefined);
}
if (main.enemies[_local4].can_jump) {
adjustAction2(this._parent, main.enemies[_local4].g);
this._parent.force_jump_speed = 12;
forceFrame(this._parent, "up", this._parent.gun_type + "_jump");
justFrame(this._parent, "down", "jump");
return(undefined);
}
}
}
for (var _local5 in main.objects) {
if (main.objects[_local5].g.hitTest(_local3, _local2, true)) {
if (lives) {
landAction(this._parent);
main.objects[_local5].startAction();
}
this._parent.states = "stand";
delete this.onEnterFrame;
return(undefined);
}
}
for (var _local5 in main.bg) {
if (main.bg[_local5].g.hitTest(_local3, _local2, true)) {
if (lives) {
landAction(this._parent);
}
this._parent.states = "stand";
delete this.onEnterFrame;
return(undefined);
}
}
}
}
};
}
function landAction(who) {
who.up.gotoAndStop(_parent.gun_type + "_Stand");
who.down.gotoAndStop("stand");
who.shooting = false;
who.ready = true;
delete who.force_jump_speed;
}
function player_born() {
delete this.onEnterFrame;
if ((--chance_left) > 0) {
shot_shine(_root, "white");
var _local4 = stages;
var _local3 = stages_section;
play_game(_local4, _local3);
} else {
this.attachMovie("game_intro", "game_intro", this.getNextHighestDepth());
this.game_intro.gotoAndStop("lose_game");
}
}
function get_shoot_point(which) {
if (which != undefined) {
var _local1 = new Object();
_local1.x = which._x;
_local1.y = which._y;
which._parent.localToGlobal(_local1);
var _local2 = [];
_local2[0] = _local1.x - main._x;
_local2[1] = _local1.y - main._y;
return(_local2);
}
}
function get_map_point(which) {
if (which != undefined) {
var _local1 = new Object();
_local1.x = which._x;
_local1.y = which._y;
which._parent.localToGlobal(_local1);
var _local2 = [];
_local2[0] = _local1.x;
_local2[1] = _local1.y;
return(_local2);
}
}
function get_distance(a, b) {
var _local2 = Math.abs(a._x - b._x);
var _local1 = Math.abs(a._y - b._y);
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
return(_local3);
}
function attackAction(which) {
var _local4 = false;
for (var _local5 in main.enemies) {
if (main.enemies[_local5].can_kill) {
if (main.enemies[_local5].g.hitTest(which)) {
_local4 = true;
main.enemies[_local5].to_die("kill", 5);
game_score = game_score + 350;
adjust_score(game_UI);
var _local3 = main.getNextHighestDepth();
var _local2 = main.attachMovie("\u5C0F\u5200\u780D\u4EBA_\u6548\u679C", "attack_effect" + _local3, _local3);
_local2._x = get_shoot_point(which)[0];
_local2._y = get_shoot_point(which)[1];
_local2._xscale = (Math.abs(which._xscale) / which._xscale) * 100;
}
}
}
if (_local4) {
play_soundAction("\u5C0F\u52000" + (random(2) + 1));
}
}
function shootAction() {
if (slug_left > 0) {
var _local14 = main.player.gun;
if (_local14 == 3) {
_local14 = 1;
}
var _local3 = main.attachMovie("\u4E3B\u89D2_\u5B50\u5F39" + _local14, "shoot" + slug_left, main.getNextHighestDepth());
_local3.type = main.player.gun;
_local3._x = get_shoot_point(main.player.up.clip.point)[0];
_local3._y = get_shoot_point(main.player.up.clip.point)[1];
var _local15 = Math.abs(main.player._xscale) / main.player._xscale;
var _local10 = main.player.gun_direction;
if (_local10 == "straight") {
_local3._rotation = Math.abs(_local15 - 1) * 90;
} else if (_local10 == "up") {
_local3._rotation = -90;
} else if (_local10 == "down") {
_local3._rotation = 90;
} else if (_local15 == 1) {
if (_local10 > 0) {
_local3._rotation = _local10;
} else if (_local10 < 0) {
_local3._rotation = _local10;
}
} else if (_local15 == -1) {
if (_local10 > 0) {
_local3._rotation = 180 - _local10;
} else if (_local10 < 0) {
_local3._rotation = -180 - _local10;
}
}
if (main.player.gun == 0) {
play_soundAction("\u624B\u67AA\u53D1\u5C04");
_local3.kill_num = 1;
if (game_powerup) {
_local3.kill_num = _local3.kill_num * 50;
}
} else if (main.player.gun == 1) {
play_soundAction("H\u5F39\u53D1\u5C04");
_local3.kill_num = 1;
} else if (main.player.gun == 3) {
play_soundAction("\u624B\u67AA\u6D88\u97F3\u53D1\u5C04");
_local3.kill_num = 5;
} else if (main.player.gun == 4) {
play_soundAction("S\u5F39\u53D1\u5C04");
shot_shine(_root, "white");
_local3.kill_num = 25;
} else {
play_soundAction("R\u5F39\u53D1\u5C04");
var _local17 = main.getNextHighestDepth();
var _local11 = main.attachMovie("\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE" + _local17, _local17);
_local11._x = _local3._x;
_local11._y = _local3._y;
_local11._rotation = _local3._rotation;
_local11.onEnterFrame = function () {
this._x = this._x + active_object_speed;
};
if (main.player.gun == 2) {
_local3.kill_num = 0;
_local3.single_power = 10;
_local3.total_power = 40;
} else if (main.player.gun == 5) {
_local3.kill_num = 0;
_local3.single_power = 15;
_local3.total_power = 45;
} else if (main.player.gun == 6) {
_local3.kill_num = 10;
_local3.single_power = 10;
_local3.total_power = 30;
} else if (main.player.gun == 7) {
_local3.kill_num = 10;
_local3.single_power = 25;
_local3.total_power = 75;
}
_local3.exploding = function () {
this.rotater.removeMovieClip();
this._rotation = 0;
for (var _local2 in main.enemies) {
if (main.enemies[_local2].g.hitTest(this)) {
main.enemies[_local2].to_die("blow", this.single_power);
this.total_power = this.total_power - this.single_power;
game_score = game_score + 150;
adjust_score(game_UI);
if (this.total_power <= 0) {
break;
}
}
}
};
}
_local3.onEnterFrame = function () {
var _local10 = active_object_speed;
var _local4 = get_map_point(this);
if ((Math.abs(_local4[0] - 200) < 200) and (Math.abs(_local4[1] - 150) < 150)) {
if (this.can_go) {
this._x = this._x + ((this.speed * Math.cos(this._rotation * 0.01745)) + _local10);
this._y = this._y + (this.speed * Math.sin(this._rotation * 0.01745));
if (this.speed_up) {
this.speed++;
}
if (this.y_trace) {
if ((this.trace_target == undefined) or (this.trace_target == null)) {
for (var _local8 in main.enemies) {
if (main.enemies[_local8] != undefined) {
_local4 = get_map_point(main.enemies[_local8]);
if ((Math.abs(_local4[0] - 150) < 150) and (Math.abs(_local4[1] - 150) < 150)) {
this.trace_target = main.enemies[_local8];
break;
}
}
}
}
if ((this.trace_target != undefined) and (this.trace_target != null)) {
if ((this.trace_target._y - this._y) > 15) {
this._y = this._y + ((Math.abs(this.trace_target._y - this._y) / (this.trace_target._y - this._y)) * 5);
}
}
}
} else if (main.player.up.clip.point != undefined) {
this._x = get_shoot_point(main.player.up.clip.point)[0] + _local10;
this._y = get_shoot_point(main.player.up.clip.point)[1];
}
} else {
this.removeMovieClip();
}
if (this.can_go) {
var _local7 = false;
if (this.type != 4) {
for (var _local9 in main.bg) {
if (main.bg[_local9].d.hitTest(this._x + main._x, this._y + main._y, true)) {
adjustAction3(this, main.bg[_local9].g);
this._rotation = 0;
this.gotoAndStop(main.bg[_local9].d.type);
_local7 = true;
delete this.onEnterFrame;
return(undefined);
}
if (main.bg[_local9].g.hitTest(this._x + main._x, this._y + main._y, true)) {
adjustAction3(this, main.bg[_local9].g);
this.gotoAndPlay("fired");
_local7 = true;
delete this.onEnterFrame;
}
}
}
var _local2 = false;
if (!_local7) {
if (!this.got_enemy) {
for (var _local8 in main.enemies) {
if (this.type <= 1) {
if (main.enemies[_local8].g.hitTest(this._x + main._x, this._y + main._y, true)) {
main.enemies[_local8].to_die("shoot", this.kill_num);
_local2 = true;
this.gotoAndStop("hit");
game_score = game_score + 100;
adjust_score(game_UI);
break;
}
} else if (this.type == 3) {
if (main.enemies[_local8].g.hitTest(this._x + main._x, this._y + main._y, true)) {
main.enemies[_local8].to_die("fly", this.kill_num, this._rotation);
_local2 = true;
this.gotoAndStop("hit");
game_score = game_score + 100;
adjust_score(game_UI);
break;
}
} else if (this.type == 4) {
if (main.enemies[_local8].g.hitTest(this.g)) {
main.enemies[_local8].to_die("fly", this.kill_num, this._rotation);
_local2 = true;
game_score = game_score + 200;
adjust_score(game_UI);
}
} else if (this.type == 6) {
if (main.enemies[_local8].g.hitTest(this._x + main._x, this._y + main._y, true)) {
main.enemies[_local8].to_die("fly", this.kill_num, this._rotation);
this.got_enemy = true;
var _local6 = this.createEmptyMovieClip("rotater", this.getNextHighestDepth());
_local6.onEnterFrame = function () {
if ((this._parent._rotation >= 0) and (this._parent._rotation < 90)) {
this._parent._rotation = this._parent._rotation + 10;
} else if ((this._parent._rotation >= 90) and (this._parent._rotation <= 180)) {
this._parent._rotation = this._parent._rotation - 10;
} else if ((this._parent._rotation >= -180) and (this._parent._rotation < -90)) {
this._parent._rotation = this._parent._rotation - 10;
} else if ((this._parent._rotation > -90) and (this._parent._rotation < 0)) {
this._parent._rotation = this._parent._rotation + 10;
} else if (this._parent._rotation == 90) {
this._parent.removeMovieClip();
}
};
break;
}
} else if (this.type == 7) {
if (main.enemies[_local8].g.hitTest(this._x + main._x, this._y + main._y, true)) {
if (main.enemies[_local8].can_kill) {
play_soundAction("\u6253\u51FB\u58F0\u97F3");
main.enemies[_local8].to_die("fly", this.kill_num, this._rotation);
var _local5 = main.getNextHighestDepth();
var _local3 = main.attachMovie("\u5C0F\u5200\u780D\u4EBA_\u6548\u679C", "attack_effect" + _local5, _local5);
_local3._x = this._x;
_local3._y = this._y;
_local3._xscale = this._xscale;
} else {
_local2 = true;
this.gotoAndStop("hit");
break;
}
}
} else if (main.enemies[_local8].g.hitTest(this._x + main._x, this._y + main._y, true)) {
_local2 = true;
this.gotoAndStop("hit");
break;
}
}
}
}
if (_local2 or _local7) {
if (this.type == 0) {
play_soundAction("\u624B\u67AA\u51FB\u4E2D");
} else if (this.type == 1) {
play_soundAction("H\u5F39\u51FB\u4E2D");
} else if (this.type == 2) {
play_soundAction("R\u5F39\u7206\u70B8");
} else if (this.type == 3) {
play_soundAction("H\u5F39\u51FB\u4E2D");
} else {
play_soundAction("\u624B\u96F7\u7206\u70B8");
}
delete this.onEnterFrame;
}
}
};
adjust_amr(--slug_left);
}
}
function throwAction() {
if (bomb_left > 0) {
var _local3 = main.attachMovie("\u4E3B\u89D2_\u624B\u96F701", "bomb01" + bomb_left, main.getNextHighestDepth());
_local3._x = get_shoot_point(main.player.up.clip.point)[0];
_local3._y = get_shoot_point(main.player.up.clip.point)[1];
_local3.x_direciton = Math.abs(main.player._xscale) / main.player._xscale;
if ((_local3.x_direciton * active_object_speed) > 0) {
var _local8 = active_object_speed;
} else {
var _local8 = -active_object_speed;
}
_local3.x_speed = (9 + ((main.player.player_speed * main.player.speed_rate) / 2)) + _local8;
_local3.y_speed = -15;
_local3.y_add = 3;
_local3.jumped = 0;
_local3.power = 60;
_local3.exploding = function () {
do {
if ((in main.enemies) == null) {
break;
}
var _local2 = in main.enemies;
if (main.enemies[_local2].g.hitTest(this.point)) {
this.power = this.power - 20;
main.enemies[_local2].to_die("blow", 20);
game_score = game_score + 200;
adjust_score(game_UI);
}
} while (this.power > 0);
do {
} while ("exploding" != null);
};
_local3.onEnterFrame = function () {
var _local6 = get_map_point(this);
if ((Math.abs(_local6[0] - 200) < 200) and (Math.abs(_local6[1] - 150) < 150)) {
this._rotation = this._rotation + 10;
this._x = this._x + (this.x_speed * this.x_direciton);
this._y = this._y + this.y_speed;
if (Math.abs(this.y_speed) <= 20) {
this.y_speed = this.y_speed + this.y_add;
}
} else {
this.removeMovieClip();
}
var _local2 = false;
for (var _local5 in main.bg) {
if (main.bg[_local5].d.hitTest(this._x + main._x, this._y + main._y, true)) {
adjustAction2(this, main.bg[_local5].d);
this._rotation = 0;
this.gotoAndStop(main.bg[_local5].d.type);
_local2 = true;
delete this.onEnterFrame;
break;
}
if (main.bg[_local5].g.hitTest(this._x + main._x, this._y + main._y, true)) {
if (!main.bg[_local5].g.hitTest(this._x + main._x, (this._y + main._y) - this._height, true)) {
adjustAction2(this, main.bg[_local5].g);
if (this.jumped >= 1) {
this._rotation = 0;
this.gotoAndStop("explode");
play_soundAction("\u624B\u96F7\u7206\u70B8");
_local2 = true;
delete this.onEnterFrame;
break;
}
this.jumped++;
this.x_speed = 0.6 * this.x_speed;
this.y_speed = -0.6 * this.y_speed;
break;
}
this._rotation = 0;
this.gotoAndStop("explode");
play_soundAction("\u624B\u96F7\u7206\u70B8");
_local2 = true;
delete this.onEnterFrame;
break;
}
}
var _local3 = false;
if (!_local2) {
for (var _local4 in main.enemies) {
if (main.enemies[_local4].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this._rotation = 0;
this.gotoAndStop("explode");
play_soundAction("\u624B\u96F7\u7206\u70B8");
_local3 = true;
delete this.onEnterFrame;
break;
}
}
}
};
adjust_bomb(--bomb_left);
}
}
function initial_data() {
stopAllSounds();
now_music = "";
stages = 1;
player_paused = false;
life_left = 100;
slug_left = 999999 /* 0x0F423F */;
bomb_left = 10;
modify_XY_array1_3 = [[-2706, 80, false], [-3080, 100, false], [-3600, 50, false], [-3735, 30, false], [-4200, 0, false]];
allow_area_array_1_1 = -2400;
allow_area_array_1_2 = -1600;
allow_area_array_1_3 = -5600;
if (_root.miniclipDemo == true) {
stg_array_1 = 2;
get_map_infor(1, 1, "man", 1, [0, 0], 14, 4000, 380);
get_map_infor(1, 2, "man", 1, [20, 230], 1, 300, 380);
} else {
stg_array_1 = 3;
get_map_infor(1, 1, "man", 1, [0, 0], 14, 4000, 380);
get_map_infor(1, 2, "man", 1, [20, 230], 7, 2400, 380);
get_map_infor(1, 3, "man", 1, [24, 240], 15, 5600, 380);
}
stg1_1_map_xy[8] = [0, -300];
stg1_1_map_xy[9] = [0, -300];
stg1_1_map_xy[10] = [0, -300];
allow_next_map_1_1 = 7;
modify_XY_array2_1 = [[-1240, 70, false], [-1420, 135, false], [-1650, 195, false], [-1920, 270, false], [-2200, 300, false], [-3550, 375, false], [-3750, 478, false]];
allow_area_array_2_1 = -17200;
allow_area_array_2_2 = -4400;
allow_area_array_2_3 = -4400;
allow_area_array_2_4 = -800;
stg_array_2 = 4;
get_map_infor(2, 1, "man", 1, [0, 0], 44, 17200, 360);
get_map_infor(2, 2, "man", 1, [20, 252], 12, 4400, 380);
get_map_infor(2, 3, "man", 1, [20, 240], 12, 4400, 380);
get_map_infor(2, 4, "man", 1, [20, 282], 3, 800, 380);
stg2_1_map_xy[6] = [400, -127];
stg2_1_map_xy[7] = [400, -173];
stg2_1_map_xy[12] = [400, -178];
modify_XY_array3_1 = [];
allow_area_array_3_1 = -800;
allow_area_array_3_2 = -3200;
allow_area_array_3_3 = -5200;
allow_area_array_3_4 = -400;
allow_area_array_3_5 = 0;
allow_area_array_3_6 = -4000;
stg_array_3 = 6;
get_map_infor(3, 1, "man", 1, [0, 0], 3, 800, 360);
get_map_infor(3, 2, "plane", 1, [50, 150], 9, 3200, 380);
get_map_infor(3, 3, "plane", 1, [50, 150], 14, 5200, 380);
get_map_infor(3, 4, "plane", 1, [50, 150], 2, 400, 200);
get_map_infor(3, 5, "man", 1, [100, 50], 5, 1600, 380);
get_map_infor(3, 6, "man", 1, [20, 280], 11, 4000, 380);
stg3_3_map_xy[13] = [400, 300];
stg3_5_map_xy[2] = [400, 600];
modify_XY_array4_2 = [[-1460, 60, false], [-1830, 150, false], [-2130, 230, false], [-2410, 280, false], [-2660, 345, false], [-2780, 455, false], [-2990, 535, false]];
allow_area_array_4_1 = -3200;
allow_area_array_4_2 = -5200;
allow_area_array_4_3 = -600;
allow_area_array_4_4 = -3600;
allow_area_array_4_5 = -400;
stg_array_4 = 5;
get_map_infor(4, 1, "man", 1, [0, 0], 9, 3200, 380);
get_map_infor(4, 2, "man", 1, [20, 279], 14, 5200, 380);
get_map_infor(4, 3, "plane", 1, [50, 150], 3, 600, 380);
get_map_infor(4, 4, "man", 1, [20, 237], 35, 7200, 380);
get_map_infor(4, 5, "man", 1, [20, 269], 2, 400, 380);
stg4_2_map_xy[8] = [400, -228];
stg4_2_map_xy[9] = [400, -72];
stg4_2_map_xy[10] = [400, -128];
stg4_2_map_xy[14] = [400, 128];
stg4_4_map_xy[11] = [0, -300];
stg4_4_map_xy[12] = [0, -300];
stg4_4_map_xy[13] = [0, -300];
stg4_4_map_xy[14] = [0, -300];
stg4_4_map_xy[15] = [0, -300];
stg4_4_map_xy[16] = [-400, 0];
stg4_4_map_xy[17] = [-400, 0];
stg4_4_map_xy[18] = [-400, 0];
stg4_4_map_xy[19] = [0, -300];
stg4_4_map_xy[20] = [0, -300];
stg4_4_map_xy[21] = [0, -300];
stg4_4_map_xy[22] = [0, -300];
stg4_4_map_xy[23] = [0, -300];
allow_next_map_4_4 = 10;
stopAllSounds();
}
function get_map_infor(stg, sec, type, direct, start_point, array, wide, end) {
this[((("stg" + stg) + "_") + sec) + "_map_xy"] = [];
this[(("stg_type_" + stg) + "_") + sec] = type;
this[(("stg_direct_" + stg) + "_") + sec] = direct;
this[(("stg_array_" + stg) + "_") + sec] = array;
this[(("stg_width_" + stg) + "_") + sec] = wide;
this[(("stg_end_" + stg) + "_") + sec] = end;
this[(("player_start_" + stg) + "_") + sec] = start_point;
this[(("allow_next_map_" + stg) + "_") + sec] = 500;
}
function draw_map_start(stg, sec) {
clean_stage();
var _local1 = main.bg.attachMovie(("stage" + stg) + "_bg", "bg1", main.bg.getNextHighestDepth());
_local1.gotoAndStop("s" + sec);
main._x = 0;
main._y = 0;
}
function change_scene(how) {
if (stages_section != this["stg_array_" + stages]) {
if (this.game_intro == undefined) {
var _local2 = this.attachMovie("game_intro", "game_intro", this.getNextHighestDepth());
if (how == 0) {
if ((stages == 3) and (stages_section == 4)) {
if (main.player.my_type == "plane") {
control_able = false;
main.player.gotoAndPlay("jump");
main.player._name = "plane";
stg_end_3_4 = 380;
_local2.removeMovieClip();
} else if (main.player.my_type == "man") {
_local2.gotoAndStop("level_pass");
}
} else {
_local2.gotoAndStop("level_pass");
}
} else if (how == 1) {
_local2.gotoAndStop("wind_pass");
_local2.wind_dir = "up";
_local2.onEnterFrame = function () {
main._y = main._y + 4;
main.player._y = main.player._y - 4;
};
} else if (how == 2) {
_local2.gotoAndStop("wind_pass");
_local2.wind_dir = "down";
_local2.onEnterFrame = function () {
main._y = main._y - 4;
main.player._y = main.player._y + 4;
};
}
active_object_speed = 0;
active_map_drawer = "main.player";
}
}
}
function draw_map(stg, sec, par, which) {
if (stg == 1) {
if ((sec == 2) and (main._x <= -1900)) {
active_object_speed = 10;
draw_map03(active_object_speed, 7, 21);
} else {
draw_map01(which);
}
} else if (stg == 2) {
if ((sec == 4) and (main._x <= -800)) {
active_object_speed = 15;
draw_map03(active_object_speed, 3, 71);
} else {
draw_map01(which);
}
} else if (stg == 3) {
if ((sec == 2) or (sec == 3)) {
draw_map02(4);
} else {
draw_map01(which);
}
} else if (stg == 4) {
if (sec == 3) {
if (main._x >= -780) {
draw_map02(8);
} else {
active_object_speed = 8;
draw_map03(active_object_speed, 3, 26);
}
} else {
draw_map01(which);
}
}
modify_XY(main._x, main._y);
effect_Action(main._x, main._y);
}
function move_maps(temp, temp_area) {
if (active_map_drawer == "main.player") {
var _local1 = (main.player.player_speed * main.player.speed_rate) * temp;
if (_local1 == 0) {
_local1 = 5 * temp;
}
} else {
var _local1 = active_object_speed;
}
if (temp == 1) {
if (main._x >= (temp_area + _local1)) {
main._x = main._x - _local1;
} else if (main._x < (temp_area + _local1)) {
main._x = temp_area;
}
} else if (temp == -1) {
if (main._x <= (temp_area - _local1)) {
main._x = main._x - _local1;
} else if (main._x > (temp_area - _local1)) {
main._x = temp_area;
}
}
}
function draw_map01(which) {
var _local3 = this[(("stg_direct_" + stages) + "_") + stages_section];
if (which != undefined) {
var _local4 = get_map_point(which)[0];
var _local9 = get_map_point(which)[1];
var _local2 = this[(("allow_area_array_" + stages) + "_") + stages_section];
var _local5 = -this[(("stg_width_" + stages) + "_") + stages_section];
var _local7 = this[(("stg_end_" + stages) + "_") + stages_section];
var _local6 = this[(("stg_array_" + stages) + "_") + stages_section];
if (_local3 == 1) {
if (_local4 >= 130) {
if (main._x > _local5) {
if (main._x > _local2) {
move_maps(_local3, _local2);
} else {
main._x = _local2;
}
} else {
main._x = _local5;
if (_local6 == stages_part) {
if (_local4 > _local7) {
change_scene(0);
}
}
}
}
} else if (_local3 == -1) {
if (_local4 <= 270) {
if (main._x < _local5) {
if (main._x < _local2) {
move_maps(_local3, _local2);
} else {
main._x = _local2;
}
} else {
main._x = _local5;
if (_local6 == stages_part) {
if (_local4 < _local7) {
change_scene(0);
}
}
}
}
}
draw_game_maps();
}
}
function draw_map02(speed) {
main._x = main._x - speed;
if (main.player.can_with == true) {
main.player._x = main.player._x + speed;
}
for (var _local5 in main.tools) {
if (!main.tools[_local5].cant_with) {
main.tools[_local5]._x = main.tools[_local5]._x + speed;
}
}
for (var _local3 in main.objects) {
if (!main.objects[_local3].cant_with) {
main.objects[_local3]._x = main.objects[_local3]._x + speed;
}
}
for (var _local4 in main.enemies) {
if (!main.enemies[_local4].cant_with) {
main.enemies[_local4]._x = main.enemies[_local4]._x + speed;
}
}
var _local6 = -this[(("stg_width_" + stages) + "_") + stages_section];
if (main._x < (_local6 + 350)) {
if (stages == 3) {
if (stages_section == 2) {
change_scene(1);
} else if (stages_section == 3) {
change_scene(2);
}
}
}
draw_game_maps();
}
function draw_map03(speed, part, frame) {
main._x = main._x - speed;
if (main.player.can_with == true) {
main.player._x = main.player._x + speed;
}
for (var _local12 in main.tools) {
if (!main.tools[_local12].cant_with) {
main.tools[_local12]._x = main.tools[_local12]._x + speed;
}
}
for (var _local8 in main.objects) {
if (!main.objects[_local8].cant_with) {
main.objects[_local8]._x = main.objects[_local8]._x + speed;
}
}
for (var _local9 in main.enemies) {
if (!main.enemies[_local9].cant_with) {
main.enemies[_local9]._x = main.enemies[_local9]._x + speed;
}
}
for (var _local11 in main.bg) {
var _local3 = get_map_point(main.bg[_local11])[0];
var _local2 = get_map_point(main.bg[_local11])[1];
if (adjust_map(_local3, _local2) == 1) {
var _local1 = Number(_local11.slice(2)) + 1;
if (main.bg["bg" + _local1] == undefined) {
var _local6 = main.bg.attachMovie(("stage" + stages) + "_bg", "bg" + _local1, main.bg.getNextHighestDepth());
main.bg["bg" + _local1]._x = main.bg["bg" + (_local1 - 1)]._x + 400;
if (((_local1 - part) % 2) == 1) {
main.bg["bg" + _local1].gotoAndStop(frame - 1);
} else {
main.bg["bg" + _local1].gotoAndStop(frame);
}
break;
}
} else if (adjust_map(_local3, _local2) == 0) {
var _local4 = main.bg["bg" + (Number(_local11.slice(2)) - 1)];
if (_local4 != undefined) {
_local4.removeMovieClip();
break;
}
}
}
}
function draw_game_maps() {
do {
if ((in main.bg) == null) {
break;
}
var _local3 = in main.bg;
var _local2 = get_map_point(main.bg[_local3])[0];
var _local1 = get_map_point(main.bg[_local3])[1];
} while (!draw_next_map(_local2, _local1, _local3));
do {
} while (() != null);
}
function adjust_map(poz_x, poz_y) {
var _local2 = this[(("stg_direct_" + stages) + "_") + stages_section];
if (_local2 == 1) {
if (poz_x < -25) {
return(0);
}
if (poz_x < 25) {
return(1);
}
} else if (_local2 == -1) {
if (poz_x > 25) {
return(0);
}
if (poz_x > -25) {
return(1);
}
} else if (_local2 == 2) {
if (poz_y < -25) {
return(0);
}
if (poz_y < 25) {
return(1);
}
} else if (_local2 == -2) {
if (poz_y > 25) {
return(0);
}
if (poz_y > -25) {
return(1);
}
}
return(2);
}
function draw_next_map(poz_x, poz_y, grounds) {
if (adjust_map(poz_x, poz_y) == 1) {
if (this[(("allow_next_map_" + stages) + "_") + stages_section] > stages_part) {
if (this[(("stg_array_" + stages) + "_") + stages_section] > stages_part) {
var _local2 = Number(grounds.slice(2)) + 1;
if (main.bg["bg" + _local2] == undefined) {
stages_part++;
main.bg.attachMovie(("stage" + stages) + "_bg", "bg" + _local2, main.bg.getNextHighestDepth());
var _local3 = this[((("stg" + stages) + "_") + stages_section) + "_map_xy"][stages_part];
if (_local3 == undefined) {
main.bg["bg" + _local2]._x = main.bg["bg" + (_local2 - 1)]._x + 400;
main.bg["bg" + _local2]._y = main.bg["bg" + (_local2 - 1)]._y;
} else {
main.bg["bg" + _local2]._x = main.bg["bg" + (_local2 - 1)]._x + _local3[0];
main.bg["bg" + _local2]._y = main.bg["bg" + (_local2 - 1)]._y + _local3[1];
}
main.bg["bg" + _local2].gotoAndStop(main.bg["bg" + (_local2 - 1)]._currentframe + 1);
return(true);
}
}
}
} else if (adjust_map(poz_x, poz_y) == 0) {
var _local4 = main.bg["bg" + (Number(grounds.slice(2)) - 1)];
if (_local4 != undefined) {
_local4.removeMovieClip();
return(true);
}
}
return(false);
}
function modify_XY(main_x, main_y) {
var _local3 = this[(("modify_XY_array" + stages) + "_") + stages_section];
if (_local3 != undefined) {
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2][2] == false) {
if (main_x < _local3[_local2][0]) {
_local3[_local2][2] = true;
main_move_Y(0, _local3[_local2][1]);
break;
}
}
_local2++;
}
}
}
function main_move_Y(targetX, targetY) {
main.targetX = targetX;
main.targetY = targetY;
main.onEnterFrame = function () {
if (Math.abs(this._y - this.targetY) > 3) {
if (this.targetX != 0) {
this._x = this._x + ((this.targetX - this._x) / 20);
}
this._y = this._y + ((this.targetY - this._y) / 20);
effect_clip._y = effect_clip._y + ((this.targetY - this._y) / 20);
} else {
if (this.targetX != 0) {
this._x = this.targetX;
}
this._y = this.targetY;
effect_clip._y = this.targetY;
delete this.onEnterFrame;
}
};
}
function blocksAction(my_name, x, y, blood) {
var _local4 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie(my_name, my_name + _local4, _local4);
_local2.blood = game_level * blood;
_local2.org_blood = _local2.blood;
_local2._x = x;
_local2._y = y;
_local2.can_kill = false;
_local2.can_block = true;
_local2.can_stand = true;
_local2.level = 1;
if (my_name == "\u654C\u4EBA_\u7BB1\u5B50\u963B\u62E61") {
_local2.level = 2;
_local2.gotoAndStop("normal1");
_local2.can_stand = true;
} else {
_local2.stop();
}
_local2.exploding = function () {
for (var _local2 in main.enemies) {
if (main.enemies[_local2].g.hitTest(this)) {
main.enemies[_local2].to_die("blow", 20);
}
}
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
play_soundAction("\u624B\u96F7\u7206\u70B8");
this.gotoAndPlay("explode");
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else {
shot_shine(this, "red");
if (this.level > 1) {
var _local4 = this.org_blood - this.blood;
var _local3 = this.org_blood / this.level;
var _local2 = Math.floor(_local4 / _local3) + 1;
if (this.frame != ("normal" + _local2)) {
play_soundAction("\u624B\u96F7\u7206\u70B8");
this.gotoAndPlay("normal" + _local2);
}
}
}
};
return(_local2);
}
function adjust_score(where) {
var _local1 = 100000000 + game_score;
var _local10 = Number(_local1.toString().slice(8, 9)) + 1;
var _local9 = Number(_local1.toString().slice(7, 8)) + 1;
var _local8 = Number(_local1.toString().slice(6, 7)) + 1;
var _local7 = Number(_local1.toString().slice(5, 6)) + 1;
var _local6 = Number(_local1.toString().slice(4, 5)) + 1;
var _local5 = Number(_local1.toString().slice(3, 4)) + 1;
var _local4 = Number(_local1.toString().slice(2, 3)) + 1;
var _local3 = Number(_local1.toString().slice(1, 2)) + 1;
where.scorepad.num1.gotoAndStop(_local10);
where.scorepad.num10.gotoAndStop(_local9);
where.scorepad.num100.gotoAndStop(_local8);
where.scorepad.num1000.gotoAndStop(_local7);
where.scorepad.num10000.gotoAndStop(_local6);
where.scorepad.num100000.gotoAndStop(_local5);
where.scorepad.num1000000.gotoAndStop(_local4);
where.scorepad.num10000000.gotoAndStop(_local3);
}
function adjust_life() {
game_UI.life.onEnterFrame = function () {
var _local2 = 101 - life_left;
if ((this._currentframe < _local2) and (this._currentframe < this._totalframes)) {
this.nextFrame();
} else if ((this._currentframe > _local2) and (this._currentframe > 1)) {
this.prevFrame();
} else {
this.stop();
delete this.onEnterFrame;
}
};
}
function adjust_amr(my_slug_left) {
if (my_slug_left > 999) {
game_UI.amr.gotoAndStop("very");
} else {
game_UI.amr.gotoAndStop("some");
var _local1 = 1000 + my_slug_left;
var _local4 = Number(_local1.toString().slice(3, 4)) + 1;
var _local3 = Number(_local1.toString().slice(2, 3)) + 1;
var _local2 = Number(_local1.toString().slice(1, 2)) + 1;
game_UI.amr.amr1.gotoAndStop(_local4);
game_UI.amr.amr10.gotoAndStop(_local3);
game_UI.amr.amr100.gotoAndStop(_local2);
}
}
function adjust_bomb(my_bomb_left) {
var _local1 = 100 + my_bomb_left;
var _local3 = Number(_local1.toString().slice(2, 3)) + 1;
var _local2 = Number(_local1.toString().slice(1, 2)) + 1;
game_UI.bomb.bomb1.gotoAndStop(_local3);
game_UI.bomb.bomb10.gotoAndStop(_local2);
}
function recover_all() {
this.start_end.removeMovieClip();
this.game_intro.removeMovieClip();
clean_fire();
}
function clean_fire() {
this.main.removeMovieClip();
this.effect_clip.removeMovieClip();
this.game_UI.removeMovieClip();
this.main.setMask(null);
this.game_mask.removeMovieClip();
delete this.onEnterFrame;
}
function play_game(stg, sec) {
initial_data();
stages = stg;
game_start(sec - 1);
if (stages_section == 1) {
main.attachMovie("mission_start", "mission_start", main.getNextHighestDepth());
} else {
level_start();
}
}
function game_start(section) {
recover_all();
this.createEmptyMovieClip("main", this.getNextHighestDepth());
this.createEmptyMovieClip("effect_clip", this.getNextHighestDepth());
this.attachMovie("game_UI", "game_UI", this.getNextHighestDepth());
if (game_masked) {
this.attachMovie("game_mask", "game_mask", this.getNextHighestDepth());
game_mask.gotoAndStop("white");
this.main.setMask(game_mask);
}
main.createEmptyMovieClip("bg", main.getNextHighestDepth());
main.createEmptyMovieClip("objects", main.getNextHighestDepth());
main.createEmptyMovieClip("enemies", main.getNextHighestDepth());
main.createEmptyMovieClip("tools", main.getNextHighestDepth());
stages_section = section;
next_scene();
}
function level_start() {
if (stages_section == 1) {
if (stages == 1) {
add_player("man", 127, 263);
} else if (stages == 2) {
add_player("man", 75, 263).swapDepths(main.mission_start);
main.mission_start.onEnterFrame = function () {
if (main._x <= -400) {
this.removeMovieClip();
}
};
} else if (stages == 3) {
} else if (stages == 4) {
add_player("man", 61, 268);
}
active_object_speed = 0;
active_map_drawer = "main.player";
}
this.onEnterFrame = function () {
gameControl(main.player);
draw_map(stages, stages_section, stages_part, eval (active_map_drawer));
};
adjust_score(game_UI);
adjust_life();
}
function next_scene() {
clean_stage();
stages_section++;
stages_part = 1;
draw_map_start(stages, stages_section);
if (stages_section > 1) {
var _local4 = this[(("player_start_" + stages) + "_") + stages_section][0];
var _local3 = this[(("player_start_" + stages) + "_") + stages_section][1];
if (main.player.my_type == this[(("stg_type_" + stages) + "_") + stages_section]) {
if (main.player.my_type == "man") {
justFrame(main.player, "up", ((main.player.gun_type + "_") + main.player.states) + "_run");
justFrame(main.player, "down", "stand_run");
}
main.player._x = _local4;
main.player._y = _local3;
main.player._xscale = 100;
main.player._visible = 1;
} else {
active_object_speed = 0;
active_map_drawer = "main.player";
add_player(this[(("stg_type_" + stages) + "_") + stages_section], _local4, _local3);
}
}
delete _root.player_min_x;
delete _root.player_max_x;
}
function clean_stage() {
for (var _local1 in effect_clip) {
effect_clip[_local1].removeMovieClip();
}
for (var _local1 in main.bg) {
main.bg[_local1].removeMovieClip();
}
for (var _local1 in main.enemies) {
main.enemies[_local1].removeMovieClip();
}
for (var _local1 in main.objects) {
main.objects[_local1].removeMovieClip();
}
for (var _local1 in main.tools) {
main.tools[_local1].removeMovieClip();
}
boss_killed = false;
}
function game_over() {
delete this.onEnterFrame;
this.attachMovie("game_intro", "game_intro", this.getNextHighestDepth());
this.game_intro.gotoAndStop("lose_game");
this.start_end.count_score = function () {
var _local2 = 100000000 + game_score;
var _local10 = Number(_local2.toString().slice(8, 9)) + 1;
var _local9 = Number(_local2.toString().slice(7, 8)) + 1;
var _local8 = Number(_local2.toString().slice(6, 7)) + 1;
var _local7 = Number(_local2.toString().slice(5, 6)) + 1;
var _local6 = Number(_local2.toString().slice(4, 5)) + 1;
var _local5 = Number(_local2.toString().slice(3, 4)) + 1;
var _local4 = Number(_local2.toString().slice(2, 3)) + 1;
var _local3 = Number(_local2.toString().slice(1, 2)) + 1;
this.clip.scorepad.num1.gotoAndStop(_local10);
this.clip.scorepad.num10.gotoAndStop(_local9);
this.clip.scorepad.num100.gotoAndStop(_local8);
this.clip.scorepad.num1000.gotoAndStop(_local7);
this.clip.scorepad.num10000.gotoAndStop(_local6);
this.clip.scorepad.num100000.gotoAndStop(_local5);
this.clip.scorepad.num1000000.gotoAndStop(_local4);
this.clip.scorepad.num10000000.gotoAndStop(_local3);
};
}
function restart_game() {
recover_all();
play_game(stages, stages_section);
}
function shot_shine(who, shine) {
who.createEmptyMovieClip("shine_mc", who.getNextHighestDepth());
var _local3 = new Color(who);
if (shine == "white") {
_local3.setTransform(shine_Transform2);
} else if (shine == "red") {
_local3.setTransform(shine_Transform3);
}
who.shine_mc.onEnterFrame = function () {
var _local2 = new Color(this._parent);
_local2.setTransform(shine_Transform1);
this.removeMovieClip();
};
}
function enemy_shake(mc, speed, dir, with_me) {
if (mc.y_speed == undefined) {
mc.y_speed = speed;
mc.y_dir = dir;
mc.with_me = with_me;
mc.createEmptyMovieClip("driver", mc.getNextHighestDepth());
mc.driver.onEnterFrame = function () {
if (this._parent.y_dir == -1) {
if (this._parent.y_speed < 1) {
this._parent.y_speed = this._parent.y_speed + 0.1;
} else {
this._parent.y_dir = 1;
}
} else if (this._parent.y_dir == 1) {
if (this._parent.y_speed > -1) {
this._parent.y_speed = this._parent.y_speed - 0.1;
} else {
this._parent.y_dir = -1;
}
}
if (this._parent.y_dir != 0) {
this._parent._y = this._parent._y + this._parent.y_speed;
}
if (this._parent.with_me) {
for (var _local3 in main.enemies) {
var _local2 = main.enemies[_local3];
if (this._parent.g.hitTest(_local2._x + main._x, _local2._y + main._y, true)) {
_local2._y = _local2._y + this._parent.y_speed;
}
}
}
};
}
}
function enemy_move(who, xspeed, yspeed) {
if (who.g == undefined) {
var _local13 = who._height;
} else {
var _local13 = who.g._height;
}
var _local5 = who._x + main._x;
var _local3 = (who._y + main._y) + 15;
var _local4 = (who._x + main._x) + xspeed;
var _local9 = (who._y + main._y) - (_local13 / 3);
var _local8 = (who._y + main._y) - _local13;
if (who.yspeed == undefined) {
who.yspeed = yspeed;
}
var _local2 = false;
if (who.yspeed >= 0) {
for (var _local10 in main.objects) {
if (!main.objects[_local10].without_enemy) {
if (main.objects[_local10].g.hitTest(_local5, _local3, true)) {
_local2 = true;
adjustY(who, main.objects[_local10].g);
break;
}
}
}
if (!_local2) {
for (var _local11 in main.bg) {
if (main.bg[_local11].g.hitTest(_local5, _local3, true)) {
_local2 = true;
adjustY(who, main.bg[_local11].g);
break;
}
}
}
}
if (_local2 and (who.yspeed >= 0)) {
if (who.type != undefined) {
if (who.states == "jump") {
if (who.dead == false) {
if (Math.abs(xspeed) < Math.abs(who.speed)) {
who.gotoAndStop("walk");
} else {
who.gotoAndStop("run" + who.type);
}
}
}
}
who.states = "stand";
delete who.yspeed;
delete who.drop;
delete who.fly;
}
if ((!_local2) or (who.yspeed < 0)) {
if (who.type != undefined) {
if (who.states == "stand") {
if (who.dead == false) {
if (who.fly) {
who.gotoAndStop("fall");
} else {
who.gotoAndStop("jump");
}
}
}
}
who.yspeed = who.yspeed + 0.75;
if (who.fly) {
if (who.yspeed > 3) {
who.yspeed = 3;
}
}
who._y = who._y + who.yspeed;
if ((who._y + main._y) > 400) {
if (who.dieEvents != undefined) {
who.dieEvents();
}
who.removeMovieClip();
}
who.states = "jump";
}
var _local6 = false;
var _local7 = false;
for (var _local11 in main.bg) {
if (main.bg[_local11].g.hitTest(_local4, _local9, true)) {
_local6 = true;
break;
}
if (main.bg[_local11].g.hitTest(_local4, _local8, true)) {
_local7 = true;
break;
}
}
if (_local6) {
if (who.dead == false) {
who.get_blocked();
}
} else if (_local7) {
if (who.dead == false) {
who.stand();
}
} else if (who.states == "jump") {
who._x = who._x + (xspeed / 2);
} else {
who._x = who._x + xspeed;
}
return(_local2);
}
function kill_boss() {
if (stages_section == this["stg_array_" + stages]) {
if (stages_part == this[(("stg_array_" + stages) + "_") + stages_section]) {
_root["Mission_pictrue_" + stages] = new flash.display.BitmapData(400, 300);
_root["Mission_pictrue_" + stages].draw(_root);
boss_killed = true;
justFrame(main.player, "up", main.player.gun_type + "_stand");
justFrame(main.player, "down", "stand");
delete this.onEnterFrame;
this.attachMovie("game_intro", "game_intro", this.getNextHighestDepth());
this.game_intro.gotoAndStop("mission_end");
play_music("\u80CC\u666F\u97F3\u4E50_10", false);
play_soundAction("\u5927\u7206\u70B8");
shot_shine(_root, "white");
}
}
}
function show_kill_boss(where) {
var _local4 = 1;
while (_local4 <= 4) {
var _local3 = where.createEmptyMovieClip("pic" + _local4, where.getNextHighestDepth());
_local3._x = (_local3.org_x = 15);
_local3._y = (_local3.org_y = 15 + (53 * (_local4 - 1)));
_local3.attachBitmap(_root["Mission_pictrue_" + _local4], _local3.getNextHighestDepth());
_local3._xscale = 16;
_local3._yscale = 16;
_local3.useHandCursor = false;
_local3.onPress = function () {
this.swapDepths(this._parent.getNextHighestDepth());
if (this._xscale == 16) {
this._x = 0;
this._y = 0;
this._xscale = 100;
this._yscale = 100;
} else {
this._x = this.org_x;
this._y = this.org_y;
this._xscale = 16;
this._yscale = 16;
}
};
delete _root["Mission_pictrue_" + _local4];
_local4++;
}
}
function tracerAction(tracer, targeter, speed, trace_rate) {
tracer.targeter = targeter;
tracer.speed = speed + (random(5) / 4);
tracer.trace_rate = trace_rate;
tracer.get_blocked = function () {
this._rotation = 0;
this.gotoAndPlay("hit");
play_soundAction("R\u5F39\u7206\u70B8");
delete this.onEnterFrame;
};
tracer.to_die = function (how, much) {
this.get_blocked();
};
tracer.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target != undefined) {
var temp_dir = (Math.atan2((this.target._y - 35) - this._y, this.target._x - this._x) / 0.01745);
if (temp_dir >= 0) {
target_rotation = temp_dir - 180;
} else {
target_rotation = temp_dir + 180;
}
if (Math.abs(target_rotation - this._rotation) > 10) {
if ((target_rotation * this._rotation) >= 0) {
this._rotation = this._rotation + ((this.trace_rate * Math.abs(target_rotation - this._rotation)) / (target_rotation - this._rotation));
} else {
var t_angle1 = Math.abs(target_rotation);
var t_angle2 = (180 - Math.abs(target_rotation));
var m_angle1 = Math.abs(this._rotation);
var m_angle2 = (180 - Math.abs(this._rotation));
var direction1 = (t_angle1 + m_angle1);
var direction2 = (t_angle2 + m_angle2);
var temp = (Math.abs(target_rotation - this._rotation) / (target_rotation - this._rotation));
if (direction1 >= direction2) {
this._rotation = this._rotation - (this.trace_rate * temp);
} else {
this._rotation = this._rotation + (this.trace_rate * temp);
}
}
}
}
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[1] - 210) < 210) and (Math.abs(temp_array[1] - 160) < 160)) {
this._y = this._y + (this.speed * Math.sin(this._rotation * 0.01745));
this._x = this._x + (this.speed * Math.cos(this._rotation * 0.01745));
} else {
this.removeMovieClip();
}
for (grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(temp_array[0], temp_array[1], true)) {
player_die(this.target, "shoot", 15);
this.get_blocked();
}
}
};
}
function enemy_add_items(where) {
if (game_level == 3) {
if (!random(30)) {
var _local2 = ["B", "M", "R", "E", "F", "P", "S", "D"];
add_weapon(where, _local2[random(8)]);
} else if (!random(10)) {
add_present(where, "pre" + (random(6) + 1));
}
} else if (game_level == 2) {
if (!random(30)) {
var _local2 = ["B", "M", "R", "E"];
add_weapon(where, _local2[random(4)]);
} else if (!random(10)) {
add_present(where, "pre" + (random(3) + 1));
} else if (!random(30)) {
add_food(where, "food" + (random(3) + 1));
}
} else if (game_level == 1) {
if (!random(15)) {
add_present(where, "pre" + (random(3) + 1));
} else if (!random(30)) {
add_food(where, "food" + (random(3) + 1));
}
}
}
function enemy_npc(who, x, y, xscale) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc._x = x;
this_mc._y = y;
this_mc._xscale = xscale;
this_mc.speed = -10;
this_mc.dead = false;
this_mc.targeter = "_root.main.player";
this_mc.gotoAndStop("stand");
this_mc.check_player = function () {
this.target = eval (this.targeter);
this.onEnterFrame = function () {
if (this.target != undefined) {
if (Math.abs(this.target._y - this._y) < 100) {
var _local2 = get_distance(this, this.target);
if (_local2 < 200) {
if (this.target._x > this._x) {
this._xscale = -100;
} else {
this._xscale = 100;
}
this.gotoAndPlay("shocked");
play_soundAction("\u58EB\u5175\u53D7\u60CA");
delete this.onEnterFrame;
}
}
}
};
};
this_mc.run_away = function () {
if (this.target._x > this._x) {
this._xscale = 100;
} else {
this._xscale = -100;
}
this.gotoAndStop("run");
this.onEnterFrame = function () {
enemy_move(this, (this.speed * Math.abs(this._xscale)) / this._xscale, 0);
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 210) > 210) or (Math.abs(_local2[1] - 160) > 160)) {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
};
};
this_mc.get_blocked = function () {
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 5) {
this.removeMovieClip();
}
};
};
this_mc.check_player();
return(this_mc);
}
function enemy_object01(who, x, y) {
var _local3 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie(who, who + _local3, _local3);
_local2._x = x;
_local2._y = y;
_local2.dead = false;
_local2.enemies = 5;
_local2.stop();
_local2.to_die = function (how, much) {
if (!this.dead) {
this.dead = true;
this.gotoAndPlay("explode");
this.onEnterFrame = function () {
if ((this.target._x - this._x) > 400) {
this.removeMovieClip();
}
};
if (this.dieEvents != undefined) {
this.dieEvents();
}
}
};
_local2.come_out = function (e_x, e_y) {
if ((this.enemies--) > 0) {
enemysAction07("\u654C\u4EBA_\u5DE1\u903B\u673A\u67AA\u5175", e_x, e_y, 15, -1, 100).drop = true;
}
};
return(_local2);
}
function enemy_object02(who, x, y) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.fall = false;
this_mc.to_die = function (how, much) {
if (!this.fall) {
this.fall = true;
this.gotoAndPlay("up");
} else {
this.player_big_jump();
this.gotoAndPlay("fly");
}
};
this_mc.player_big_jump = function () {
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.jump.hitTest(this.target._x + main._x, this.target._y + main._y, true)) {
this.target.force_jump_speed = 20;
forceFrame(this.target, "up", this.target.gun_type + "_jump");
justFrame(this.target, "down", "jump");
play_soundAction("\u5927\u8DF3\u8DC3");
}
}
};
this_mc.check_player = function () {
};
return(this_mc);
}
function enemy_object03(who, x, y) {
var _local4 = main.enemies.getNextHighestDepth();
var _local3 = main.enemies.attachMovie(who, who + _local4, _local4);
_local3.blood = _root.game_level * 15;
_local3._x = x;
_local3._y = y;
_local3.can_block = true;
_local3.can_stand = true;
_local3.dead = false;
_local3.gotoAndStop("stand");
_local3.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.gotoAndPlay("explode");
if (this.dieEvents != undefined) {
this.dieEvents();
}
}
} else {
shot_shine(this, "red");
}
};
return(_local3);
}
function enemy_object04(who, x, y) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc.blood = 1;
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.dead = false;
this_mc.start_shoot = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this.g)) {
this.to_die("blow", 20);
}
}
for (var object in main.objects) {
if (main.objects[object].player_in) {
if (main.objects[object].g.hitTest(this.g)) {
this.to_die("blow", 20);
break;
}
}
}
};
};
this_mc.to_die = function (how, much) {
if (!this.dead) {
this.dead = true;
delete this.onEnterFrame;
this.exploding();
this.gotoAndPlay("explode");
play_soundAction("\u624B\u96F7\u7206\u70B8");
}
};
this_mc.exploding = function () {
if (this.target.g.hitTest(this.g)) {
player_die(this.target, "shoot", 50);
}
for (var _local2 in main.objects) {
if (main.objects[_local2].player_in) {
if (main.objects[_local2].g.hitTest(this.g)) {
main.objects[_local2].to_die(10);
}
}
}
};
this_mc.start_shoot();
return(this_mc);
}
function enemy_object05(who, x, y) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc._x = x;
this_mc._y = y;
this_mc.dead = false;
this_mc.can_kill = true;
this_mc.blood = _root.game_level;
this_mc.targeter = "_root.main.player";
this_mc.enemies = 2;
this_mc.check_dis = function () {
this.gotoAndStop("close");
this.onEnterFrame = function () {
if (get_map_point(this)[0] < 350) {
this.gotoAndPlay("open");
delete this.onEnterFrame;
}
};
};
this_mc.come = function () {
if ((this.enemies--) > 0) {
this.gotoAndPlay("come");
} else {
this.stop();
}
};
this_mc.stand = function () {
this.dead = false;
this.blood = _root.game_level;
this.gotoAndStop("stand");
this.onEnterFrame = function () {
if (!random(30)) {
this.shoot();
delete this.onEnterFrame;
}
};
};
this_mc.shoot = function () {
this.target = eval (this.targeter);
this.gotoAndPlay("shoot");
};
this_mc.shootAction = function () {
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u654C\u4EBA_\u624B\u96F7", "npc_shoot" + depth, depth);
shoot_mc._x = get_shoot_point(this.point)[0];
shoot_mc._y = get_shoot_point(this.point)[1];
shoot_mc.targeter = this.targeter;
shoot_mc._rotation = 90 * (1 - (Math.abs(this._xscale) / this._xscale));
if (this.target != undefined) {
var tempxspeed = ((-(shoot_mc._x - this.target._x)) / 62);
if (game_level <= 1) {
if (Math.abs(tempxspeed) > 3) {
tempxspeed = -4 * (Math.abs(shoot_mc._x - this.target._x) / (shoot_mc._x - this.target._x));
}
}
} else {
var tempxspeed = -1;
}
shoot_mc.xspeed = tempxspeed + active_object_speed;
shoot_mc.yspeed = -7.5;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
delete this.onEnterFrame;
play_soundAction("\u624B\u96F7\u7206\u70B8");
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
if (this.can_go) {
this._rotation = this._rotation + 10;
this._x = this._x + this.xspeed;
this.yspeed = this.yspeed + 0.35;
this._y = this._y + this.yspeed;
}
} else {
this.removeMovieClip();
}
if (this.can_go) {
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
var temp_array = get_map_point(this);
if (this.target.g.hitTest(temp_array[0], temp_array[1], true)) {
player_die(this.target, "shoot", 25);
this.get_blocked();
}
}
}
};
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
delete this.onEnterFrame;
this.gotoAndPlay("die" + (random(3) + 1));
play_soundAction("\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1));
if (this.dieEvents != undefined) {
this.dieEvents();
}
}
} else {
var _local3 = main.getNextHighestDepth();
var _local2 = main.attachMovie("\u5C0F\u5200\u780D\u4EBA_\u6548\u679C", "attack_effect" + _local3, _local3);
_local2._x = get_shoot_point(this.point)[0];
_local2._y = get_shoot_point(this.point)[1];
_local2._xscale = this._xscale;
}
};
this_mc.check_dis();
return(this_mc);
}
function enemy_object06(who, x, y) {
var _local3 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie(who, who + _local3, _local3);
_local2._x = x;
_local2._y = y;
_local2.enemies = 2;
_local2.check_dis = function () {
this.gotoAndStop("close");
this.onEnterFrame = function () {
if (get_map_point(this)[0] < 300) {
this.gotoAndPlay("open");
delete this.onEnterFrame;
}
};
};
_local2.come_out = function (e_x, e_y) {
enemysAction07("\u654C\u4EBA_\u5DE1\u903B\u673A\u67AA\u5175", this._x + this.e_x, this._y + this.e_y, 15, -1, 100).drop = true;
};
_local2.stand = function () {
this.gotoAndStop("stand");
if ((this.enemies--) > 0) {
this.come_count = 0;
this.onEnterFrame = function () {
if ((++this.come_count) == 30) {
this.gotoAndPlay("open");
delete this.onEnterFrame;
}
};
}
};
_local2.check_dis();
return(_local2);
}
function enemy_object07(who, x, y) {
var _local4 = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + _local4, _local4);
this_mc.blood = _root.game_level * 2;
this_mc._x = x;
this_mc._y = y;
this_mc.dead = false;
this_mc.stand = function () {
this_mc.gotoAndStop("stand");
this_mc.onEnterFrame = function () {
if (get_map_point(this)[0] < -100) {
this.removeMovieClip();
}
};
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.gotoAndPlay("explode");
play_soundAction("\u5927\u7206\u70B8");
if (this.dieEvents != undefined) {
this.dieEvents();
}
}
} else {
shot_shine(this, "red");
}
};
this_mc.exploding = function () {
for (var _local2 in main.enemies) {
if (main.enemies[_local2].can_kill) {
if (main.enemies[_local2].g.hitTest(this)) {
main.enemies[_local2].to_die("blow", 99999);
}
}
}
if (main.player.g.hitTest(this)) {
player_die(main.player, "shoot", 99999);
}
};
this_mc.stand();
return(this_mc);
}
function enemy_object08(who, x, y) {
var _local4 = main.enemies.getNextHighestDepth();
var _local3 = main.enemies.attachMovie(who, who + _local4, _local4);
_local3.blood = _root.game_level * 30;
_local3._x = x;
_local3._y = y;
_local3.can_block = true;
_local3.dead = false;
_local3.gotoAndStop("stand");
_local3.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.gotoAndPlay("explode");
play_soundAction("\u5927\u7206\u70B8");
if (this.dieEvents != undefined) {
this.dieEvents();
}
}
} else {
shot_shine(this.bg, "red");
}
};
return(_local3);
}
function enemysAction01(who, x, y, atk, typ, moves, xscale) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc._xscale = xscale;
this_mc.blood = game_level;
this_mc.speed = -6;
this_mc._x = x;
this_mc._y = y;
this_mc.attacks = atk;
this_mc.type = typ;
if (moves == -3) {
this_mc.drop = true;
this_mc.fly = true;
this_mc.ballute = true;
}
this_mc.moves = moves;
this_mc.targeter = "_root.main.player";
this_mc.can_kill = true;
this_mc.can_block = true;
this_mc.states = "stand";
this_mc.dead = false;
this_mc.get_ballute = function () {
if (this.ballute) {
this.ballute = false;
var _local3 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie("\u654C\u4EBA_\u666E\u901A\u58EB\u5175_\u4F1E", "\u654C\u4EBA_\u666E\u901A\u58EB\u5175_\u4F1E" + _local3, _local3);
_local2._x = this._x + active_object_speed;
_local2._y = this._y - 50;
_local2._xscale = this._xscale;
_local2.can_go = true;
}
};
this_mc.drop_weapon = function () {
if (this.type >= 2) {
var _local3 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie("\u654C\u4EBA_\u58EB\u5175_\u6B66\u5668\u7FA4", "\u654C\u4EBA_\u58EB\u5175_\u6B66\u5668\u7FA4" + _local3, _local3);
_local2._x = this._x + active_object_speed;
_local2._y = this._y - 40;
_local2._xscale = this._xscale;
_local2.gotoAndStop(this.type + 1);
_local2.count = 15;
_local2.onEnterFrame = function () {
if ((--this.count) > 0) {
this._rotation = this._rotation + 20;
this._y++;
} else {
this.removeMovieClip();
}
if ((this.count % 9) == 0) {
this._alpha = 20;
} else if ((this.count % 5) == 0) {
this._alpha = 100;
}
};
}
};
this_mc.turn = function () {
if (this.states == "stand") {
if (this._x < (this.target._x - 10)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.target._x + 10)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
}
};
this_mc.areaAction = function () {
var _local2 = (this.speed * Math.abs(this._xscale)) / this._xscale;
var _local3 = get_map_point(this)[0];
if (_local2 > 0) {
if (this.max_area_x != undefined) {
if ((_local3 + _local2) > this.max_area_x) {
return(true);
}
}
} else if (_local2 < 0) {
if (this.min_area_x != undefined) {
if ((_local3 + _local2) < this.min_area_x) {
return(true);
}
}
}
return(false);
};
this_mc.stand = function () {
if (this.states == "stand") {
this.target = eval (this.targeter);
if (this.moves < 50) {
if (this.moves >= 0) {
if (this.type == 3) {
if (this.grovel) {
this.gotoAndStop((("stand" + this.type) + "_") + 2);
} else {
this.gotoAndStop((("stand" + this.type) + "_") + 1);
}
} else {
this.gotoAndStop("stand" + this.type);
}
this.onEnterFrame = function () {
if (this.target.dead == false) {
var _local2 = get_distance(this, this.target);
this.turn();
if (_local2 > 850) {
this.removeMovieClip();
} else if ((_local2 > 350) and (_local2 < 400)) {
if (!random(50)) {
this.move_me();
}
} else if ((_local2 > 150) and (_local2 < 350)) {
if (!random(50)) {
this.shoot();
} else if (!random(30)) {
this.move_me();
}
} else if ((_local2 > 40) and (_local2 < 150)) {
if (!random(50)) {
this.shoot();
} else if (!random(30)) {
this.move_me();
}
} else if (_local2 < 40) {
if (random(2)) {
this.attack();
} else if (Math.abs(this.moves) == 1) {
this.move_me();
} else if (this.moves != 0) {
this.fear();
}
}
}
};
} else {
this.move_me();
}
} else if (this.moves >= 50) {
if (this.moves == 50) {
this.gotoAndStop("talk1");
} else if (this.moves == 51) {
this.gotoAndStop("talk2");
} else if (this.moves == 52) {
this.gotoAndStop("stand2");
} else if (this.moves == 53) {
this.gotoAndStop("stand3_1");
}
this.onEnterFrame = function () {
if (this.target.dead == false) {
var _local2 = get_distance(this, this.target);
if (_local2 > 850) {
this.removeMovieClip();
} else if (_local2 < 200) {
if (Math.abs(this.target._y - this._y) < 100) {
this.get_shocked();
}
}
}
};
}
}
};
this_mc.get_shocked = function () {
if (this.type <= 2) {
delete this.onEnterFrame;
this._xscale = 100;
this.gotoAndStop("shocked");
play_soundAction("\u58EB\u5175\u53D7\u60CA");
this.moves = random(2) + 1;
} else {
this.stand();
}
};
this_mc.get_blocked = function () {
if (this.type <= 2) {
this.gotoAndStop("blocked");
this.onEnterFrame = function () {
if (!random(50)) {
this.stand();
}
};
} else {
this.stand();
}
};
this_mc.attack = function () {
delete this.onEnterFrame;
if (this.attacks > 0) {
this.attacks--;
this.gotoAndStop("kill");
} else {
this.run_away();
}
};
this_mc.attackAction = function () {
if (this.target != undefined) {
if (this.m.point.hitTest(this.target.g)) {
player_die(this.target, "kill", 30);
play_soundAction("\u5C0F\u52000" + (random(2) + 1));
}
}
};
this_mc.move_me = function () {
if (!this.areaAction()) {
if (this.moves > 0) {
if (this.moves == 2) {
this.gotoAndStop("walk");
this.move_speed = this.speed / 2;
} else {
this.gotoAndStop("run" + this.type);
this.move_speed = this.speed;
}
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if ((!random(30)) or this.areaAction()) {
this.stand();
}
var _local2 = get_map_point(this)[0];
if ((_local2 > 380) or (_local2 < 20)) {
this.stand();
} else if (Math.abs(this._x - this.target._x) < 40) {
this.stand();
} else if (this.target == undefined) {
this.stand();
}
}
};
} else if (this.moves < 0) {
if (this.drop) {
if (this.moves == -3) {
this.gotoAndStop("fall");
this.move_speed = 0;
} else {
this.gotoAndStop("jump");
this.move_speed = this.speed / 4;
}
} else if (this.moves == -2) {
this.gotoAndStop("walk");
this.move_speed = this.speed / 2;
} else if (this.moves == -1) {
this.gotoAndStop("run" + this.type);
this.move_speed = this.speed;
} else {
this.gotoAndStop("run" + this.type);
this.move_speed = this.speed;
}
this.onEnterFrame = function () {
var _local2 = get_distance(this, this.target);
if (_local2 > 850) {
this.removeMovieClip();
}
if (this.areaAction()) {
this.moves = Math.abs(this.moves);
this.stand();
} else if (Math.abs(get_map_point(this)[0] - 200) < 150) {
if (!this.drop) {
if ((!random(15)) or (_local2 < 40)) {
this.moves = Math.abs(this.moves);
this.stand();
}
}
this.turn();
}
var _local4 = enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0);
if (this.moves == -3) {
if (_local4) {
this.get_ballute();
this.moves = Math.abs(this.moves);
this.stand();
} else {
var _local5 = get_map_point(this)[1];
var _local3 = Math.floor(_local5 / 50) + 1;
if (this.clip._currentframe != _local3) {
this.clip.gotoAndStop(_local3 * 5);
}
}
}
};
}
}
};
this_mc.fear = function () {
if (this.type <= 2) {
this.gotoAndStop("fear");
this.onEnterFrame = function () {
if (enemy_move(this, (3 * Math.abs(this._xscale)) / this._xscale, 0)) {
if (!random(25)) {
this.stand();
}
}
};
} else {
this.move_me();
}
};
this_mc.shoot = function () {
if (this.moves == 49) {
if (!random(30)) {
this.run_away();
}
} else {
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 200) < 200) and (Math.abs(_local2[1] - 150) < 150)) {
delete this.onEnterFrame;
if (this.attacks > 0) {
this.attacks--;
if (this.type <= 1) {
this.gotoAndStop("shoot" + this.type);
} else if (this.type == 2) {
if (random(2)) {
this.gotoAndStop(("shoot" + this.type) + "_1");
} else {
this.gotoAndStop(("shoot" + this.type) + "_2");
}
} else if (this.type == 3) {
if (!this.grovel) {
this.gotoAndStop(("shoot" + this.type) + "_1");
} else {
this.gotoAndStop(("shoot" + this.type) + "_2");
}
}
} else {
this.run_away();
}
}
}
};
this_mc.shootAction = function () {
if (this.type == 0) {
var weapon_name = "\u654C\u4EBA_\u624B\u96F7";
} else if (this.type == 1) {
var weapon_name = "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39";
play_soundAction("\u624B\u67AA\u53D1\u5C04");
} else if (this.type == 2) {
var weapon_name = "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39";
play_soundAction("H\u5F39\u53D1\u5C04");
} else if (this.type == 3) {
var weapon_name = "\u654C\u4EBA_\u706B\u7BAD\u70AE";
play_soundAction("\u5766\u514B\u5C04\u51FB");
}
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie(weapon_name, "npc_shoot" + depth, depth);
shoot_mc._x = get_shoot_point(this.m.point)[0];
shoot_mc._y = get_shoot_point(this.m.point)[1];
shoot_mc.targeter = this.targeter;
shoot_mc._rotation = 90 * (1 - (Math.abs(this._xscale) / this._xscale));
shoot_mc.type = this.type;
if (this.target != undefined) {
var tempxspeed = ((-(shoot_mc._x - this.target._x)) / 62);
if (game_level <= 1) {
if (Math.abs(tempxspeed) > 3) {
tempxspeed = -4 * (Math.abs(shoot_mc._x - this.target._x) / (shoot_mc._x - this.target._x));
}
}
} else {
var tempxspeed = -1;
}
shoot_mc.xspeed = tempxspeed + active_object_speed;
shoot_mc.yspeed = -7.5;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
delete this.onEnterFrame;
if (this.type == 0) {
play_soundAction("\u624B\u96F7\u7206\u70B8");
} else if (this.type == 1) {
play_soundAction("\u624B\u67AA\u51FB\u4E2D");
} else if (this.type == 2) {
play_soundAction("H\u5F39\u51FB\u4E2D");
} else if (this.type == 3) {
play_soundAction("\u624B\u96F7\u7206\u70B8");
}
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
if (this.can_go) {
if (this.type == 0) {
this._rotation = this._rotation + 10;
this._x = this._x + this.xspeed;
this.yspeed = this.yspeed + 0.35;
this._y = this._y + this.yspeed;
} else {
this._x = this._x + ((this.speed * Math.cos(this._rotation * 0.01745)) + active_object_speed);
this._y = this._y + (this.speed * Math.sin(this._rotation * 0.01745));
}
} else {
this._x = this._x + active_object_speed;
}
} else {
this.removeMovieClip();
}
if (this.can_go) {
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
var temp_array = get_map_point(this);
if (this.target.g.hitTest(temp_array[0], temp_array[1], true)) {
player_die(this.target, "shoot", 25);
this.get_blocked();
}
}
}
};
};
this_mc.to_die = function (how, much, dir) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
delete this.fly;
delete this.onEnterFrame;
if (how == "blow") {
this.gotoAndStop("die0");
play_soundAction("\u654C\u5175\u6B7B\u4EA104");
this.states = "jump";
this.yspeed = -12;
this.onEnterFrame = function () {
enemy_move(this, (3 * this._xscale) / 100, 0);
if (this.yspeed == undefined) {
delete this.onEnterFrame;
this.gotoAndStop("die" + (random(3) + 1));
}
};
} else if (how == "fly") {
this.gotoAndStop("die" + (random(3) + 1));
play_soundAction("\u654C\u5175\u6B7B\u4EA102");
if (dir == 0) {
var fly_xspeed = 20;
var _local5 = -10;
} else if (dir == 180) {
var fly_xspeed = -20;
var _local5 = -10;
} else if (dir == -90) {
var fly_xspeed = 0;
var _local5 = -20;
} else if (dir == 90) {
var fly_xspeed = 0;
var _local5 = 0;
}
this.yspeed = _local5;
this.onEnterFrame = function () {
enemy_move(this, fly_xspeed, 0);
if (this.yspeed == undefined) {
delete this.onEnterFrame;
}
};
} else {
this.gotoAndStop("die" + (random(3) + 1));
play_soundAction("\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1));
this.onEnterFrame = function () {
if (enemy_move(this, 0, this.yspeed)) {
delete this.onEnterFrame;
}
};
}
this.drop_weapon();
this.get_ballute();
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
}
} else {
var _local3 = main.getNextHighestDepth();
var _local2 = main.attachMovie("\u5C0F\u5200\u780D\u4EBA_\u6548\u679C", "attack_effect" + _local3, _local3);
_local2._x = get_shoot_point(this)[0];
_local2._y = get_shoot_point(this)[1];
_local2._xscale = this._xscale;
}
};
this_mc.run_away = function () {
if (this.moves != 0) {
if (this._x < this.target._x) {
this._xscale = 100;
} else {
this._xscale = -100;
}
this.gotoAndStop("run" + this.type);
this.onEnterFrame = function () {
enemy_move(this, (this.speed * Math.abs(this._xscale)) / this._xscale, 0);
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 225) > 225) or (Math.abs(_local2[1] - 160) > 160)) {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
};
}
};
this_mc.stand();
return(this_mc);
}
function enemysAction02(who, x, y) {
var _local5 = main.enemies.getNextHighestDepth();
var _local3 = main.enemies.attachMovie(who, who + _local5, _local5);
_local3.blood = game_level * 30;
_local3._x = x;
_local3._y = y;
_local3.dead = false;
_local3.allow_area_array = _root[(("allow_area_array_" + stages) + "_") + stages_section];
_root[(("allow_area_array_" + stages) + "_") + stages_section] = main._x;
_local3.have_droped = 0;
_local3.child_number = 50;
_local3.moves = function () {
this.gotoAndStop("move");
this.attack_where = 150 + random(100);
enemy_shake(this, 0.2, 1, false);
this.onEnterFrame = function () {
if (this._xscale == 100) {
if (get_map_point(this)[0] > -200) {
this._x = this._x - 6;
} else {
this._xscale = -100;
}
} else if (this._xscale == -100) {
if (get_map_point(this)[0] < 600) {
this._x = this._x + 6;
} else {
this._xscale = 100;
}
}
if (Math.abs(get_map_point(this)[0] - this.attack_where) < 6) {
this.drop_enemy();
}
if (!random(50)) {
if ((--this.child_number) > 0) {
if (this.have_droped < 10) {
this.have_droped++;
if (this._xscale == 100) {
var _local3 = -main._x;
} else {
var _local3 = (-main._x) + 400;
}
var _local2 = enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", _local3, main.player._y, 5, 0, -(random(2) + 1), -this._xscale);
_local2.mother = this;
_local2.dieEvents = function () {
this.mother.have_droped--;
};
}
}
}
};
};
_local3.drop_enemy = function () {
if ((--this.child_number) > 0) {
if (this.have_droped < 10) {
this.have_droped++;
var _local2 = enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", this._x, this._y, 5, 0, -(random(2) + 1), this._xscale);
_local2.drop = true;
_local2.mother = this;
_local2.dieEvents = function () {
this.mother.have_droped--;
};
}
}
};
_local3.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.fall();
}
} else {
shot_shine(this, "white");
}
};
_local3.fall = function () {
this.gotoAndPlay("explode1");
this.move_speed = (-this._xscale) / 50;
this.onEnterFrame = function () {
this._rotation = this._rotation + (this._xscale / 50);
if (enemy_move(this, this.move_speed, 0)) {
this.deadAction();
}
};
};
_local3.deadAction = function () {
this._rotation = 0;
delete this.onEnterFrame;
this.gotoAndPlay("explode2");
play_soundAction("\u5927\u7206\u70B8");
_root[(("allow_area_array_" + stages) + "_") + stages_section] = this.allow_area_array;
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
};
_local3.moves();
return(_local3);
}
function enemysAction03(who, x, y, moves) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc.blood = _root.game_level * 70;
this_mc._x = x;
this_mc._y = y;
this_mc.moves = moves;
this_mc.targeter = "_root.main.player";
this_mc.can_stand = true;
this_mc.can_block = true;
this_mc.can_jump = true;
this_mc.dead = false;
if (moves != 49) {
this_mc.allow_area_array = _root[(("allow_area_array_" + stages) + "_") + stages_section];
if (moves == -1) {
_root[(("allow_area_array_" + stages) + "_") + stages_section] = main._x;
} else {
_root[(("allow_area_array_" + stages) + "_") + stages_section] = (-get_shoot_point(this_mc)[0]) + 300;
}
}
this_mc.have_droped = 0;
this_mc.child_number = 30;
this_mc.fall = function () {
this.gotoAndStop("fall");
this.onEnterFrame = function () {
if (enemy_move(this, 0, 0)) {
delete this.onEnterFrame;
this.gotoAndPlay("land");
}
};
};
this_mc.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target != undefined) {
var temp_array = get_map_point(this);
if (Math.abs(temp_array[0] - 180) > 180) {
if (this.moves) {
this.move_me();
}
} else {
this.shoot();
}
}
};
};
this_mc.move_me = function () {
this.gotoAndStop("move");
play_soundAction("\u5766\u514B\u8FD0\u884C");
this.onEnterFrame = function () {
enemy_move(this, (this.target._x - this._x) / 350, 0);
if (!random(25)) {
this.stand();
}
};
};
this_mc.get_blocked = function () {
this.stand();
};
this_mc.shoot = function () {
if (!random(35)) {
delete this.onEnterFrame;
this.shooting = true;
this.gotoAndPlay("shoot");
play_soundAction("\u5766\u514B\u5C04\u51FB");
}
if (!random(35)) {
if ((--this.child_number) > 0) {
if (this.have_droped < 5) {
this.have_droped++;
if (this._xscale == 100) {
var _local3 = -main._x;
} else {
var _local3 = (-main._x) + 400;
}
var _local2 = enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", _local3, this._y, 5, 0, -(random(2) + 1), -this._xscale);
_local2.mother = this;
_local2.dieEvents = function () {
this.mother.have_droped--;
};
}
}
}
};
this_mc.shootAction = function () {
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u5766\u514B_\u70AE\u5F39", "\u5766\u514B_\u70AE\u5F39" + depth, depth);
shoot_mc._x = get_shoot_point(this.point)[0];
shoot_mc._y = get_shoot_point(this.point)[1];
shoot_mc.targeter = this.targeter;
shoot_mc._xscale = this._xscale;
shoot_mc.speed = -10;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
play_soundAction("\u624B\u96F7\u7206\u70B8");
delete this.onEnterFrame;
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
this._x = this._x + ((this.speed * this._xscale) / 100);
} else {
this.removeMovieClip();
}
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this.g)) {
player_die(this.target, "shoot", 30);
this.get_blocked();
}
}
};
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
delete this.onEnterFrame;
this.gotoAndPlay("explode");
play_soundAction("\u5927\u7206\u70B8");
if (this.moves != 49) {
_root[(("allow_area_array_" + stages) + "_") + stages_section] = this.allow_area_array;
}
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
}
} else {
shot_shine(this, "white");
}
};
if (moves == 49) {
this_mc.gotoAndStop("stand");
} else if (moves == -1) {
this_mc.fall();
} else {
this_mc.stand();
}
return(this_mc);
}
function enemysAction04(who, x, y, enemies, xscale, allow) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc.blood = _root.game_level * 50;
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.can_stand = true;
this_mc.can_block = true;
this_mc.can_jump = true;
this_mc.dead = false;
this_mc._xscale = xscale;
this_mc.speed = (-xscale) / 20;
this_mc.enemies = enemies;
this_mc.allow = allow;
this_mc.child_number = 30;
this_mc.check_dis = function () {
this.gotoAndStop("move");
this.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target != undefined) {
if (get_distance(this, this.target) < 360) {
if (this.allow) {
this_mc.allow_area_array = _root[(("allow_area_array_" + stages) + "_") + stages_section];
_root[(("allow_area_array_" + stages) + "_") + stages_section] = main._x;
}
this.moves();
}
}
};
};
this_mc.moves = function () {
play_soundAction("\u5361\u8F66\u5239\u8F66");
this.onEnterFrame = function () {
this._x = this._x + this.speed;
var _local2 = 18 * this.speed;
this.w1._rotation = this.w1._rotation + _local2;
this.w2._rotation = this.w2._rotation + _local2;
this.w3._rotation = this.w3._rotation + _local2;
this.w4._rotation = this.w4._rotation + _local2;
this.w5._rotation = this.w5._rotation + _local2;
this.w6._rotation = this.w6._rotation + _local2;
if (this._xscale == 100) {
if (get_map_point(this)[0] < 370) {
this.speed = this.speed * 0.9;
}
} else if (this._xscale == -100) {
if (get_map_point(this)[0] > 30) {
this.speed = this.speed * 0.9;
}
}
if (Math.floor(Math.abs(this.speed)) == 2) {
this.comes();
delete this.onEnterFrame;
} else if (Math.floor(Math.abs(this.speed)) == 0) {
this.w1._rotation = 0;
this.w2._rotation = 0;
this.w3._rotation = 0;
this.w4._rotation = 0;
this.w5._rotation = 0;
this.w6._rotation = 0;
delete this.onEnterFrame;
}
};
};
this_mc.comes = function () {
if (this.enemy_driver == undefined) {
var _local3 = this.createEmptyMovieClip("enemy_driver", this.getNextHighestDepth());
_local3.count = -1;
_local3.enemies = this.enemies;
_local3.child_number = this.child_number;
_local3.onEnterFrame = function () {
this.count++;
var _local2 = false;
if (this.count == 0) {
_local2 = true;
} else if (this.count == 15) {
_local2 = true;
} else if (this.count == 30) {
_local2 = true;
} else if (this.count == 80) {
this.count = -1;
this.enemies--;
}
if (_local2) {
if (this.enemies > 0) {
var _local5 = this._parent._x - ((Math.abs(this._parent._xscale) / this._parent._xscale) * 70);
var _local4 = this._parent._y - 20;
var _local3 = enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", _local5, _local4, 5, 0, -1, this._parent._xscale);
_local3.drop = true;
_local3.swapDepths(this._parent);
} else if ((--this.child_number) > 0) {
if (random(2)) {
var _local7 = this._parent._x + ((Math.abs(this._parent._xscale) / this._parent._xscale) * 80);
var _local6 = this._parent._y;
enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", _local7, _local6, 5, 0, -(random(2) + 1), this._parent._xscale);
} else {
var _local7 = this._parent._x - ((Math.abs(this._parent._xscale) / this._parent._xscale) * 400);
var _local6 = this._parent._y;
enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", _local7, _local6, 5, 0, -(random(2) + 1), -this._parent._xscale);
}
}
}
};
}
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.enemy_driver.removeMovieClip();
delete this.onEnterFrame;
this.gotoAndPlay("explode");
play_soundAction("\u5927\u7206\u70B8");
if (this.allow) {
_root[(("allow_area_array_" + stages) + "_") + stages_section] = this.allow_area_array;
}
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
}
} else {
shot_shine(this, "white");
}
};
this_mc.check_dis();
return(this_mc);
}
function enemysAction05(who, x, y) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc.blood = _root.game_level * 35;
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.can_stand = true;
this_mc.can_block = true;
this_mc.can_jump = true;
this_mc.dead = false;
this_mc.count = 0;
this_mc.all_count = random(20) + 40;
this_mc.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
if ((++this.count) == this.all_count) {
this.count = 0;
this.gotoAndPlay("shoot");
play_soundAction("\u5766\u514B\u5C04\u51FB");
delete this.onEnterFrame;
}
var _local2 = get_map_point(this);
if (_local2[0] < 0) {
this.removeMovieClip();
}
};
};
this_mc.shootAction = function () {
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u5766\u514B_\u70AE\u5F39", "\u5766\u514B_\u70AE\u5F39" + depth, depth);
shoot_mc._x = get_shoot_point(this.point)[0];
shoot_mc._y = get_shoot_point(this.point)[1];
shoot_mc.targeter = this.targeter;
shoot_mc._xscale = this._xscale;
shoot_mc.speed = -10;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
play_soundAction("\u624B\u96F7\u7206\u70B8");
delete this.onEnterFrame;
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
this._x = this._x + ((this.speed * this._xscale) / 100);
} else {
this.removeMovieClip();
}
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this.g)) {
player_die(this.target, "shoot", 30);
this.get_blocked();
}
}
};
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
delete this.onEnterFrame;
this.gotoAndPlay("explode");
play_soundAction("\u5927\u7206\u70B8");
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
}
} else {
shot_shine(this, "white");
}
};
this_mc.stand();
return(this_mc);
}
function enemysAction06(who, x, y) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, "boss", my_number);
this_mc.blood = _root.game_level * 160;
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.count_time = 150;
this_mc.yspeed = 3;
this_mc.dead = false;
this_mc.shoot_count = 0;
this_mc.shoot_all = 80;
this_mc.checkAction = function () {
this.gotoAndStop("move");
this.onEnterFrame = function () {
if (main._x == (-_root[(("stg_width_" + stages) + "_") + stages_section])) {
this.fall();
}
};
};
this_mc.fall = function () {
this.onEnterFrame = function () {
this._y = this._y + this.yspeed;
if (get_map_point(this)[1] > 80) {
this.yspeed = this.yspeed - 0.25;
if (this.yspeed <= 0) {
this.stand();
}
}
};
};
this_mc.stand = function () {
delete this.onEnterFrame;
enemy_shake(this, 0.5, 1, false);
this.onEnterFrame = function () {
if ((++this.shoot_count) == this.shoot_all) {
this.shoot_count = 0;
if (this.blood < (_root.game_level * 100)) {
play_soundAction("R\u5F39\u53D1\u5C04");
play_soundAction("\u5927\u578B\u673A\u67AA\u53D1\u5C04");
if (random(2)) {
this.gun1.play();
this.shoot_tracer(this.point2);
} else {
this.gun2.play();
this.shoot_tracer(this.point1);
}
} else {
play_soundAction("\u5927\u578B\u673A\u67AA\u53D1\u5C04");
if (random(2)) {
this.gun1.play();
} else {
this.gun2.play();
}
}
}
};
};
this_mc.machinegun = function (where, rotate) {
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39" + depth, depth);
shoot_mc._x = get_shoot_point(where)[0];
shoot_mc._y = get_shoot_point(where)[1];
shoot_mc.targeter = this.targeter;
if (where._parent._name == "gun1") {
shoot_mc._rotation = rotate;
} else {
shoot_mc._rotation = (-rotate) - 180;
}
shoot_mc.mother = this;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
play_soundAction("\u624B\u67AA\u51FB\u4E2D");
delete this.onEnterFrame;
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
if (this.can_go) {
this._x = this._x + (this.speed * Math.cos(this._rotation * 0.01745));
this._y = this._y + (this.speed * Math.sin(this._rotation * 0.01745));
} else {
var shoot_array = get_shoot_point(this.mother.point);
this._x = shoot_array[0];
this._y = shoot_array[1];
}
} else {
this.removeMovieClip();
}
if (this.can_go) {
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
var temp_array = get_map_point(this);
if (this.target.g.hitTest(temp_array[0], temp_array[1], true)) {
player_die(this.target, "shoot", 25);
this.get_blocked();
}
}
}
};
};
this_mc.shoot_tracer = function (where) {
var _local3 = main.enemies.getNextHighestDepth();
var _local1 = main.enemies.attachMovie("\u654C\u4EBA_\u706B\u7BAD\u70AE", "boss_shoot" + _local3, _local3);
_local1._x = get_shoot_point(where)[0];
_local1._y = get_shoot_point(where)[1];
_local1._rotation = -90;
var _local4 = main.getNextHighestDepth();
var _local2 = main.attachMovie("\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", "BOSS_\u5BFC\u5F39\u70DF\u96FE" + _local4, _local4);
_local2._x = _local1._x;
_local2._y = _local1._y;
_local2._rotation = 90;
tracerAction(_local1, "_root.main.player", 6, 2);
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.gotoAndPlay("explode");
this.org_x = this._x;
this.x_dis = -1;
this.onEnterFrame = function () {
this.x_dis = this.x_dis * -1;
this._x = this.org_x + this.x_dis;
this._y = this._y + 2;
};
if (this.dieEvents != undefined) {
this.dieEvents();
}
kill_boss();
}
} else {
shot_shine(this, "white");
}
};
this_mc.checkAction();
return(this_mc);
}
function enemysAction07(who, x, y, atk, moves, xscale) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc._xscale = xscale;
this_mc.blood = game_level * 3;
this_mc.speed = -6;
this_mc._x = x;
this_mc._y = y;
this_mc.attacks = atk;
this_mc.moves = moves;
this_mc.targeter = "_root.main.player";
this_mc.can_kill = true;
this_mc.can_block = true;
this_mc.states = "stand";
this_mc.dead = false;
this_mc.patrol_max_x = x + 80;
this_mc.patrol_min_x = x - 80;
this_mc.drop_weapon = function () {
if (!this.captain) {
var _local3 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie("\u654C\u4EBA_\u58EB\u5175_\u6B66\u5668", "\u654C\u4EBA_\u58EB\u5175_\u6B66\u5668" + _local3, _local3);
_local2._x = this._x + active_object_speed;
_local2._y = this._y - 40;
_local2._xscale = this._xscale;
_local2.gotoAndStop(3);
_local2.count = 15;
_local2.onEnterFrame = function () {
if ((--this.count) > 0) {
this._rotation = this._rotation + 20;
this._y++;
} else {
this.removeMovieClip();
}
if ((this.count % 9) == 0) {
this._alpha = 20;
} else if ((this.count % 5) == 0) {
this._alpha = 100;
}
};
}
};
this_mc.turn = function () {
if (this.states == "stand") {
if (this._x < (this.target._x - 10)) {
if (this._xscale == 100) {
this.gotoAndStop("turn");
}
} else if (this._x > (this.target._x + 10)) {
if (this._xscale == -100) {
this.gotoAndStop("turn");
}
}
}
};
this_mc.areaAction = function () {
var _local2 = (this.speed * Math.abs(this._xscale)) / this._xscale;
var _local3 = get_map_point(this)[0];
if (_local2 >= 0) {
if (this.max_area_x != undefined) {
if ((_local3 + _local2) > this.max_area_x) {
return(true);
}
}
} else if (_local2 < 0) {
if (this.min_area_x != undefined) {
if ((_local3 + _local2) < this.min_area_x) {
return(true);
}
}
}
return(false);
};
this_mc.check_discoverd = function () {
};
this_mc.stand = function () {
if (this.states == "stand") {
this.target = eval (this.targeter);
if (this.moves < 50) {
if (this.moves >= 0) {
this.turn();
this.gotoAndStop("stand");
this.onEnterFrame = function () {
if (this.target.dead == false) {
var _local2 = get_distance(this, this.target);
this.turn();
if (_local2 > 850) {
this.removeMovieClip();
} else if ((_local2 > 350) and (_local2 < 400)) {
if (!random(50)) {
this.move_me();
}
} else if ((_local2 > 150) and (_local2 < 350)) {
if (!random(50)) {
this.shoot();
} else if (!random(30)) {
this.move_me();
}
} else if (_local2 < 150) {
if (!random(20)) {
this.shoot();
}
}
}
};
} else {
this.move_me();
}
}
}
};
this_mc.get_shocked = function () {
delete this.onEnterFrame;
this.turn();
this.moves = 1;
this.check_discoverd();
this.shoot();
};
this_mc.get_blocked = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
if (!random(50)) {
this.stand();
}
};
};
this_mc.move_me = function () {
if (!this.areaAction()) {
if (this.moves > 0) {
this.gotoAndStop("run");
this.move_speed = this.speed;
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if ((!random(30)) or this.areaAction()) {
this.stand();
}
var _local2 = get_map_point(this)[0];
if ((_local2 > 380) or (_local2 < 20)) {
this.stand();
} else if (Math.abs(this._x - this.target._x) < 100) {
this.stand();
} else if (this.target == undefined) {
this.stand();
}
}
};
} else if (this.moves < 0) {
if (this.moves == -2) {
this.gotoAndStop("walk");
this.move_speed = this.speed / 3;
this.onEnterFrame = function () {
var _local2 = get_distance(this, this.target);
if (_local2 > 850) {
this.removeMovieClip();
} else if (((this.target._x - this._x) * this._xscale) <= 0) {
if (_local2 < 200) {
if (Math.abs(this.target._y - this._y) < 100) {
if (this.target.states != "crouch") {
var _local3 = get_map_point(this)[0];
if ((_local3 > 20) and (_local3 < 380)) {
this.get_shocked();
}
} else if (_local2 < 100) {
var _local3 = get_map_point(this)[0];
if ((_local3 > 20) and (_local3 < 380)) {
this.get_shocked();
}
}
}
}
}
if (this.areaAction()) {
this.moves = Math.abs(this.moves);
this.stand();
}
if ((this._x > this.patrol_max_x) and (this._xscale == -100)) {
delete this.onEnterFrame;
this.gotoAndStop("turn");
} else if ((this._x < this.patrol_min_x) and (this._xscale == 100)) {
delete this.onEnterFrame;
this.gotoAndStop("turn");
}
enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0);
};
} else if (this.moves == -1) {
this.gotoAndStop("run");
this.move_speed = this.speed;
this.onEnterFrame = function () {
var _local2 = get_distance(this, this.target);
if (_local2 > 850) {
this.removeMovieClip();
}
if (this.areaAction()) {
this.moves = Math.abs(this.moves);
this.stand();
} else if (Math.abs(get_map_point(this)[0] - 200) < 150) {
if ((!random(15)) or (_local2 < 100)) {
this.moves = Math.abs(this.moves);
this.stand();
}
this.turn();
}
enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0);
};
}
}
}
};
this_mc.shoot = function () {
if (this.moves == 49) {
if (!random(30)) {
this.run_away();
}
} else {
var _local3 = get_map_point(this)[0];
var _local2 = get_map_point(this)[1];
if ((Math.abs(_local3 - 200) < 200) and (Math.abs(_local2 - 150) < 150)) {
delete this.onEnterFrame;
if (this.attacks > 0) {
this.attacks--;
if (game_level <= 1) {
this.gotoAndStop("shoot_1");
} else if (random(2)) {
this.gotoAndStop("shoot_1");
} else {
this.gotoAndStop("shoot_2");
}
} else {
this.run_away();
}
}
}
};
this_mc.shootAction = function () {
play_soundAction("\u624B\u67AA\u53D1\u5C04");
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "npc_shoot" + depth, depth);
shoot_mc._x = get_shoot_point(this.m.point)[0];
shoot_mc._y = get_shoot_point(this.m.point)[1];
shoot_mc.targeter = this.targeter;
shoot_mc._rotation = 90 * (1 - (Math.abs(this._xscale) / this._xscale));
var tempxspeed = -1;
shoot_mc.xspeed = tempxspeed;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
delete this.onEnterFrame;
play_soundAction("\u624B\u67AA\u51FB\u4E2D");
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
if (this.can_go) {
this._x = this._x + (this.speed * Math.cos(this._rotation * 0.01745));
this._y = this._y + (this.speed * Math.sin(this._rotation * 0.01745));
}
} else {
this.removeMovieClip();
}
if (this.can_go) {
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this)) {
player_die(this.target, "shoot", 25);
this.get_blocked();
}
}
}
};
};
this_mc.to_die = function (how, much, dir) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
if (how != "kill") {
this.check_discoverd();
}
delete this.fly;
delete this.onEnterFrame;
if (how == "blow") {
this.gotoAndStop("die0");
play_soundAction("\u654C\u5175\u6B7B\u4EA104");
this.states = "jump";
this.yspeed = -12;
this.onEnterFrame = function () {
enemy_move(this, (3 * this._xscale) / 100, 0);
if (this.yspeed == undefined) {
delete this.onEnterFrame;
this.gotoAndStop("die1");
}
};
} else if (how == "fly") {
this.gotoAndStop("die1");
play_soundAction("\u654C\u5175\u6B7B\u4EA102");
if (dir == 0) {
var fly_xspeed = 20;
var _local6 = -10;
} else if (dir == 180) {
var fly_xspeed = -20;
var _local6 = -10;
} else if (dir == -90) {
var fly_xspeed = 0;
var _local6 = -20;
} else if (dir == 90) {
var fly_xspeed = 0;
var _local6 = 0;
}
this.yspeed = _local6;
this.onEnterFrame = function () {
enemy_move(this, fly_xspeed, 0);
if (this.yspeed == undefined) {
delete this.onEnterFrame;
}
};
} else {
this.gotoAndStop("die1");
play_soundAction("\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1));
this.onEnterFrame = function () {
if (enemy_move(this, 0, this.yspeed)) {
delete this.onEnterFrame;
}
};
}
this.drop_weapon();
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
}
} else {
this.check_discoverd();
this.turn();
if (this.moves == -2) {
this.moves = -1;
}
this.move_me();
var _local3 = main.getNextHighestDepth();
var _local2 = main.attachMovie("\u5C0F\u5200\u780D\u4EBA_\u6548\u679C", "attack_effect" + _local3, _local3);
_local2._x = get_shoot_point(this)[0];
_local2._y = get_shoot_point(this)[1];
_local2._xscale = this._xscale;
}
};
this_mc.run_away = function () {
if (this.moves != 0) {
if (this._x < this.target._x) {
this._xscale = 100;
} else {
this._xscale = -100;
}
this.gotoAndStop("run");
this.onEnterFrame = function () {
enemy_move(this, (this.speed * Math.abs(this._xscale)) / this._xscale, 0);
var _local3 = get_map_point(this)[0];
var _local2 = get_map_point(this)[1];
if ((Math.abs(_local3 - 225) > 225) or (Math.abs(_local2 - 160) > 160)) {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
};
}
};
this_mc.stand();
return(this_mc);
}
function enemysAction08(who, x, y, moves) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc.blood = _root.game_level * 70;
this_mc._x = x;
this_mc._y = y;
this_mc.moves = moves;
this_mc.targeter = "_root.main.player";
this_mc.can_stand = true;
this_mc.can_block = true;
this_mc.can_jump = true;
this_mc.dead = false;
if (moves != 49) {
this_mc.allow_area_array = _root[(("allow_area_array_" + stages) + "_") + stages_section];
if (moves == -1) {
_root[(("allow_area_array_" + stages) + "_") + stages_section] = main._x;
} else {
_root[(("allow_area_array_" + stages) + "_") + stages_section] = (-get_shoot_point(this_mc)[0]) + 320;
}
}
this_mc.have_droped = 0;
this_mc.child_number = 30;
this_mc.fall = function () {
this.gotoAndStop("fall");
this.onEnterFrame = function () {
if (enemy_move(this, 0, 0)) {
delete this.onEnterFrame;
this.gotoAndPlay("land");
}
};
};
this_mc.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target != undefined) {
var temp_array = get_map_point(this);
if (Math.abs(temp_array[0] - 180) > 180) {
if (this.moves) {
this.move_me();
}
} else {
this.shoot();
}
}
};
};
this_mc.move_me = function () {
this.gotoAndStop("move");
play_soundAction("\u5766\u514B\u8FD0\u884C");
this.onEnterFrame = function () {
enemy_move(this, (this.target._x - this._x) / 350, 0);
if (!random(50)) {
this.stand();
}
};
};
this_mc.get_blocked = function () {
this.stand();
};
this_mc.shoot = function () {
if (!random(35)) {
delete this.onEnterFrame;
this.shooting = true;
if (random(4)) {
this.gotoAndPlay("shoot_1");
} else {
this.gotoAndPlay("shoot_2");
}
}
if (!random(50)) {
if ((--this.child_number) > 0) {
if (this.have_droped < 5) {
this.have_droped++;
if (this._xscale == 100) {
var _local3 = -main._x;
} else {
var _local3 = (-main._x) + 400;
}
var _local2 = enemysAction07("\u654C\u4EBA_\u5DE1\u903B\u673A\u67AA\u5175", _local3, this._y, 15, -1, -this._xscale);
_local2.mother = this;
_local2.dieEvents = function () {
this.mother.have_droped--;
};
}
}
}
};
this_mc.shootAction1 = function () {
play_soundAction("\u5766\u514B\u5C04\u51FB");
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u5766\u514B_\u70AE\u5F39", "\u5766\u514B_\u70AE\u5F39" + depth, depth);
shoot_mc._x = get_shoot_point(this.point)[0];
shoot_mc._y = get_shoot_point(this.point)[1];
shoot_mc.targeter = this.targeter;
shoot_mc._xscale = this._xscale;
shoot_mc.speed = -10;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
play_soundAction("\u624B\u96F7\u7206\u70B8");
delete this.onEnterFrame;
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
this._x = this._x + ((this.speed * this._xscale) / 100);
} else {
this.removeMovieClip();
}
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this.g)) {
player_die(this.target, "shoot", 30);
this.get_blocked();
}
}
};
};
this_mc.shootAction2 = function () {
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u654C\u4EBA_\u624B\u96F7", "npc_shoot" + depth, depth);
shoot_mc._x = get_shoot_point(this.point)[0];
shoot_mc._y = get_shoot_point(this.point)[1];
shoot_mc.targeter = this.targeter;
shoot_mc._rotation = 90 * (1 - (Math.abs(this._xscale) / this._xscale));
if (this.target != undefined) {
var tempxspeed = ((-(shoot_mc._x - this.target._x)) / 62);
if (game_level <= 1) {
if (Math.abs(tempxspeed) > 3) {
tempxspeed = -4 * (Math.abs(shoot_mc._x - this.target._x) / (shoot_mc._x - this.target._x));
}
}
} else {
var tempxspeed = -1;
}
shoot_mc.xspeed = tempxspeed + active_object_speed;
shoot_mc.yspeed = -7.5;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
delete this.onEnterFrame;
play_soundAction("\u624B\u96F7\u7206\u70B8");
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
if (this.can_go) {
this._rotation = this._rotation + 10;
this._x = this._x + this.xspeed;
this.yspeed = this.yspeed + 0.35;
this._y = this._y + this.yspeed;
}
} else {
this.removeMovieClip();
}
if (this.can_go) {
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
var temp_array = get_map_point(this);
if (this.target.g.hitTest(temp_array[0], temp_array[1], true)) {
player_die(this.target, "shoot", 25);
this.get_blocked();
}
}
}
};
};
this_mc.shootAction3 = function () {
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39" + depth, depth);
shoot_mc._x = get_shoot_point(this.point)[0];
shoot_mc._y = (get_shoot_point(this.point)[1] + random(5)) - random(5);
shoot_mc.targeter = this.targeter;
shoot_mc._xscale = this._xscale;
shoot_mc.speed = -10;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
play_soundAction("\u624B\u67AA\u51FB\u4E2D");
delete this.onEnterFrame;
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
this._x = this._x + ((this.speed * this._xscale) / 100);
} else {
this.removeMovieClip();
}
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this.g)) {
player_die(this.target, "shoot", 30);
this.get_blocked();
}
}
};
};
this_mc.shootAction4 = function () {
this.onEnterFrame = function () {
var _local2 = get_map_point(this);
if (Math.abs(_local2[0] - 180) < 180) {
this._x = this._x - (this._xscale / 20);
} else {
this.stand();
}
};
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
delete this.onEnterFrame;
this.gotoAndPlay("explode");
play_soundAction("\u5927\u7206\u70B8");
if (this.moves != 49) {
_root[(("allow_area_array_" + stages) + "_") + stages_section] = this.allow_area_array;
}
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
}
} else {
shot_shine(this, "white");
}
};
if (moves == 49) {
this_mc.gotoAndStop("stand");
} else if (moves == -1) {
this_mc.fall();
} else {
this_mc.stand();
}
return(this_mc);
}
function enemysAction09(who, x, y) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, "boss", my_number);
this_mc.blood = _root.game_level * 250;
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.count_time = 150;
this_mc.yspeed = 3;
this_mc.dead = false;
this_mc.org_x = 108;
this_mc.org_y = 10;
this_mc.shoot_count = 0;
this_mc.shoot_all = 30;
this_mc.fall = function () {
this.gotoAndStop("move");
this.onEnterFrame = function () {
this._y = this._y + this.yspeed;
if (get_map_point(this)[1] > this.org_y) {
this.yspeed = this.yspeed - 0.25;
if (this.yspeed <= 0) {
this.stand();
}
}
};
};
this_mc.stand = function () {
delete this.onEnterFrame;
enemy_shake(this, 2, 1, false);
this.gotoAndStop("move");
this.onEnterFrame = function () {
if ((++this.shoot_count) == this.shoot_all) {
this.shoot_count = 0;
if (this.blood < (_root.game_level * 150)) {
play_soundAction("R\u5F39\u53D1\u5C04");
this.shoot_tracer();
}
this.target = eval (this.targeter);
var temp_array = get_map_point(this.target);
if (temp_array[0] > 263) {
this.gotoAndPlay("shoot2");
delete this.onEnterFrame;
} else {
this.swordAction1();
}
}
};
};
this_mc.swordAction1 = function () {
this.onEnterFrame = function () {
var _local2 = get_map_point(this);
if (_local2[1] < 145) {
this._x = this._x - 2;
this._y = this._y + 4;
} else {
this.gotoAndPlay("shoot1");
delete this.onEnterFrame;
}
};
};
this_mc.swordAction2 = function () {
this.onEnterFrame = function () {
var this_array = get_map_point(this);
if (this_array[0] < 500) {
this._x = this._x + 10;
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this.shooter)) {
player_die(this.target, "shoot", 25);
play_soundAction("\u6253\u51FB\u58F0\u97F3");
}
}
} else {
this._x = (-main._x) + 108;
this._y = (-main._y) - 200;
this.yspeed = 3;
this.fall();
}
};
};
this_mc.machinegun = function () {
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "npc_shoot" + depth, depth);
shoot_mc._x = get_shoot_point(this.point)[0];
shoot_mc._y = get_shoot_point(this.point)[1];
shoot_mc.targeter = this.targeter;
shoot_mc._rotation = (-145 + random(35)) - random(35);
shoot_mc.mother = this;
shoot_mc.get_blocked = function () {
this.gotoAndStop("hit");
delete this.onEnterFrame;
play_soundAction("H\u5F39\u51FB\u4E2D");
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
if (this.can_go) {
this._x = this._x + ((this.speed * Math.cos(this._rotation * 0.01745)) + active_object_speed);
this._y = this._y + (this.speed * Math.sin(this._rotation * 0.01745));
} else {
var shoot_array = get_shoot_point(this.mother.point);
this._x = shoot_array[0];
this._y = shoot_array[1];
}
} else {
this.removeMovieClip();
}
if (this.can_go) {
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
var temp_array = get_map_point(this);
if (this.target.g.hitTest(temp_array[0], temp_array[1], true)) {
player_die(this.target, "shoot", 25);
this.get_blocked();
}
}
}
};
};
this_mc.shoot_tracer = function () {
var _local4 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie("\u8FFD\u8E2A\u5BFC\u5F39", "boss_shoot" + _local4, _local4);
_local2._x = get_shoot_point(this.point)[0];
_local2._y = get_shoot_point(this.point)[1];
_local2._rotation = -134;
var _local5 = main.getNextHighestDepth();
var _local3 = main.attachMovie("\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", "BOSS_\u5BFC\u5F39\u70DF\u96FE" + _local5, _local5);
_local3._x = _local2._x;
_local3._y = _local2._y;
_local3._rotation = 56;
tracerAction(_local2, "_root.main.player", 6, 5);
};
this_mc.to_die = function (how, much) {
var _local2 = get_map_point(this);
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.gotoAndPlay("explode");
this.org_x = this._x;
this.x_dis = -1;
this.onEnterFrame = function () {
this.x_dis = this.x_dis * -1;
this._x = this.org_x + this.x_dis;
this._y = this._y + 2;
};
if (this.dieEvents != undefined) {
this.dieEvents();
}
kill_boss();
}
} else {
shot_shine(this, "white");
}
};
this_mc.fall();
return(this_mc);
}
function enemysAction10(who, x, y, xscale) {
var _local3 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie(who, who + _local3, _local3);
_local2.blood = game_level * 5;
_local2._x = x;
_local2._y = y;
_local2.speed = -3;
_local2._xscale = xscale;
_local2.dead = false;
_local2.moves = function () {
this.gotoAndStop("move");
enemy_shake(this, 0.2, 1, false);
this.onEnterFrame = function () {
this._x = this._x + this.speed;
};
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.fall();
}
} else {
shot_shine(this, "white");
}
};
_local2.fall = function () {
play_soundAction("\u5927\u7206\u70B8");
this.gotoAndPlay("explode1");
this.move_speed = (-this._xscale) / 50;
this.onEnterFrame = function () {
this._rotation = this._rotation + (this._xscale / 50);
enemy_move(this, this.move_speed, 0);
if (get_map_point(this)[1] >= 400) {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
};
};
_local2.moves();
return(_local2);
}
function enemysAction11(who, x, y) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc.blood = game_level * 5;
this_mc._x = x;
this_mc._y = y;
this_mc.speed = -9;
this_mc.can_stand = true;
this_mc.can_block = true;
this_mc.can_jump = true;
this_mc.targeter = "_root.main.player";
this_mc.dead = false;
this_mc.moves = function () {
this.gotoAndStop("move");
this.onEnterFrame = function () {
var temp_array = get_map_point(this);
if (temp_array[0] < -200) {
this.removeMovieClip();
} else {
this._x = this._x + this.speed;
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this.hit)) {
this.to_die("shoot", 100);
player_die(this.target, "shoot", 30);
}
}
}
};
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.fall();
}
} else {
shot_shine(this, "white");
}
};
this_mc.fall = function () {
play_soundAction("\u5927\u7206\u70B8");
this.gotoAndPlay("explode");
this.move_speed = (-this._xscale) / 50;
this.onEnterFrame = function () {
this._rotation = this._rotation + (this._xscale / 50);
enemy_move(this, this.move_speed, 0);
if (get_map_point(this)[1] >= 400) {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
};
};
this_mc.moves();
return(this_mc);
}
function enemysAction12(who, x, y, start_pos) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc.blood = _root.game_level * 20;
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.speed = 5;
this_mc.dead = false;
this_mc.random_pos1 = [60, 50];
this_mc.random_pos2 = [300, 50];
this_mc.random_pos3 = [100, 250];
this_mc.random_pos4 = [260, 250];
this_mc.random_pos5 = [-200, -200];
this_mc.start_pos = start_pos;
this_mc.attack_times = 0;
this_mc.move_me = function () {
this.gotoAndStop("move");
this.targetX = this["random_pos" + this.start_pos][0];
this.targetY = this["random_pos" + this.start_pos][1];
this.onEnterFrame = function () {
var _local2 = get_map_point(this);
if (Math.abs(_local2[0] - this.targetX) > 3) {
this._x = this._x + ((this.targetX - _local2[0]) / 20);
this._y = this._y + ((this.targetY - _local2[1]) / 20);
if (_local2[0] < -150) {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
} else {
this.shoot();
}
};
};
this_mc.shoot = function () {
this.attack_times++;
delete this.onEnterFrame;
play_soundAction("R\u5F39\u53D1\u5C04");
this.gotoAndPlay("shoot");
};
this_mc.shootAction = function () {
var depth = main.enemies.getNextHighestDepth();
var shoot_mc = main.enemies.attachMovie("\u9AD8\u901F\u98DE\u5F39", "npc_shoot" + depth, depth);
shoot_mc._xscale = this._xscale;
shoot_mc._x = get_shoot_point(this.point)[0];
shoot_mc._y = get_shoot_point(this.point)[1];
shoot_mc.targeter = this.targeter;
shoot_mc.blood = _root.game_level;
this.target = eval (this.targeter);
if (this.target != undefined) {
shoot_mc.speed = (2 * Math.abs(this.target._x - this._x)) / (this.target._x - this._x);
} else {
shoot_mc.speed = 2;
}
shoot_mc.onEnterFrame = function () {
this.target = eval (this.targeter);
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 210) < 210) and (Math.abs(temp_array[1] - 160) < 160)) {
this.speed = this.speed * 1.05;
this._x = this._x + this.speed;
if (Math.abs(this.target._y - this._y) > 15) {
this._y = this._y + ((this.target._y - this._y) / 15);
}
} else {
this.removeMovieClip();
}
if (this.target != undefined) {
if (this.target.g.hitTest(this.g)) {
this.get_blocked();
player_die(this.target, "shoot", 15);
}
}
};
shoot_mc.get_blocked = function () {
this.gotoAndPlay("hit");
play_soundAction("R\u5F39\u7206\u70B8");
delete this.onEnterFrame;
};
shoot_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.get_blocked();
}
};
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
play_soundAction("\u5927\u7206\u70B8");
this.gotoAndPlay("explode");
this.move_speed = (-this._xscale) / 50;
this.onEnterFrame = function () {
this._rotation = this._rotation + (this._xscale / 50);
enemy_move(this, this.move_speed, 0);
var _local2 = get_map_point(this);
if (Math.abs(_local2[1] - 160) > 160) {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
};
}
} else {
shot_shine(this, "white");
}
};
this_mc.move_me();
return(this_mc);
}
function enemysAction13(who, x, y) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc.blood = game_level * 50;
this_mc._x = x;
this_mc._y = y;
this_mc.dead = false;
this_mc.targeter = "_root.main.player";
this_mc.attacked = 0;
this_mc.moves = function () {
this.counts = 0;
this.shooting = false;
this.gotoAndStop("move");
this.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target != undefined) {
if (Math.abs(this.target._x - this._x) > 20) {
this._x = this._x + ((this.target._x - this._x) / 20);
}
if ((this.counts++) == 30) {
this.counts = 0;
this.shoot();
}
var tempy = (this.target._y - 200);
if (Math.abs(tempy - this._y) > 20) {
this._y = this._y + ((tempy - this._y) / 20);
}
}
};
};
this_mc.shoot = function () {
if (!this.shooting) {
this.shooting = true;
this.gotoAndPlay("shoot");
}
};
this_mc.shootAction = function () {
play_soundAction("\u8F70\u70B8\u673A\u843D\u5F39");
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u8F70\u70B8\u70B8\u5F39", "npc_shoot" + depth, depth);
shoot_mc._x = get_shoot_point(this.point)[0];
shoot_mc._y = get_shoot_point(this.point)[1];
shoot_mc.targeter = this.targeter;
shoot_mc.yspeed = 4 + Math.floor(_root.game_level);
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 210) < 210) and (Math.abs(temp_array[1] - 160) < 160)) {
this.yspeed = this.yspeed + 0.25;
this._y = this._y + this.yspeed;
} else {
this.removeMovieClip();
}
var hit_ground = false;
var temp_array = get_map_point(this);
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(temp_array[0], temp_array[1], true)) {
if (!main.bg[grounds].g.hitTest(temp_array[0], temp_array[1] - this._height, true)) {
adjustAction2(this, main.bg[grounds].g);
this.get_blocked();
hit_ground = true;
break;
}
}
}
var hit_enemys = false;
if (!hit_ground) {
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this)) {
this.get_blocked();
hit_enemys = true;
player_die(this.target, "shoot", 30);
}
}
}
};
shoot_mc.get_blocked = function () {
this.gotoAndPlay("explode");
play_soundAction("\u624B\u96F7\u7206\u70B8");
delete this.onEnterFrame;
};
};
this_mc.check_point = function () {
this.attacked++;
if ((this.attacked - Math.floor(game_level)) >= 2) {
this.attacked = 0;
this.moves();
} else {
this.gotoAndPlay("shoot");
}
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.fall();
}
} else {
shot_shine(this, "white");
}
};
this_mc.fall = function () {
this.gotoAndPlay("explode1");
this.move_speed = (-this._xscale) / 50;
this.onEnterFrame = function () {
this._rotation = this._rotation + (this._xscale / 50);
if (enemy_move(this, this.move_speed, 0)) {
this.deadAction();
}
};
};
this_mc.deadAction = function () {
this._rotation = 0;
delete this.onEnterFrame;
this.gotoAndPlay("explode2");
play_soundAction("\u5927\u7206\u70B8");
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
};
this_mc.moves();
return(this_mc);
}
function enemysAction14(who, x, y) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, "boss", my_number);
this_mc.blood = _root.game_level * 350;
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.count_time = 150;
this_mc.xspeed = -3;
this_mc.can_stand = true;
this_mc.can_block = true;
this_mc.can_jump = true;
this_mc.dead = false;
this_mc.shoot_count = 0;
this_mc.shoot_all = 50;
this_mc.position_changed = false;
this_mc.check_dis = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
if (get_map_point(this)[0] < 550) {
this.gotoAndStop("move");
play_soundAction("\u5766\u514B\u8FD0\u884C");
this.onEnterFrame = function () {
this._x = this._x + this.xspeed;
if (get_map_point(this)[0] <= 375) {
this.stand();
}
};
}
};
};
this_mc.next_position = function () {
this.gotoAndStop("move");
play_soundAction("\u5766\u514B\u8FD0\u884C");
this.position_changed = true;
this.onEnterFrame = function () {
this._x = this._x + this.xspeed;
if (get_map_point(this)[0] <= 270) {
this.stand();
}
};
};
this_mc.stand = function () {
this.gotoAndStop("stand");
this.target = eval (this.targeter);
this.onEnterFrame = function () {
if ((++this.shoot_count) == this.shoot_all) {
this.shoot_count = 0;
if (!this.position_changed) {
if (this.blood > (_root.game_level * 400)) {
this.shootAction1();
} else {
this.next_position();
}
} else {
this.shootAction1();
}
}
};
};
this_mc.shootAction1 = function () {
delete this.onEnterFrame;
this.gotoAndPlay("shoot1");
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u5766\u514B_\u70AE\u5F39", "\u5766\u514B_\u70AE\u5F39" + depth, depth);
shoot_mc._x = get_shoot_point(this.point)[0];
shoot_mc._y = get_shoot_point(this.point)[1];
shoot_mc.targeter = this.targeter;
shoot_mc._xscale = this._xscale;
shoot_mc.speed = -10;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
play_soundAction("\u624B\u96F7\u7206\u70B8");
delete this.onEnterFrame;
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
this._x = this._x + ((this.speed * this._xscale) / 100);
} else {
this.removeMovieClip();
}
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this.g)) {
player_die(this.target, "shoot", 30);
this.get_blocked();
}
}
};
};
this_mc.shootAction2 = function (temp_dis) {
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u654C\u4EBA_BOSS3_\u70AE\u5F39", "\u654C\u4EBA_BOSS3_\u70AE\u5F39" + depth, depth);
shoot_mc._x = get_shoot_point(this.point)[0];
shoot_mc._y = get_shoot_point(this.point)[1];
shoot_mc.targeter = this.targeter;
shoot_mc.xspeed = ((-(shoot_mc._x - this.target._x)) / 64) + temp_dis;
shoot_mc.yspeed = -3;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
play_soundAction("\u624B\u96F7\u7206\u70B8");
delete this.onEnterFrame;
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
if (this._rotation > -90) {
this._rotation = this._rotation - 2;
}
this._x = this._x + this.xspeed;
this.yspeed = this.yspeed + 0.15;
this._y = this._y + this.yspeed;
} else {
this.removeMovieClip();
}
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this._x + main._x, this._y + main._y, true)) {
player_die(this.target, "shoot", 20);
this.get_blocked();
}
}
};
};
this_mc.missleAction = function () {
play_soundAction("R\u5F39\u53D1\u5C04");
var _local3 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie("\u654C\u4EBA_BOSS3_\u706B\u7BAD", "\u654C\u4EBA_BOSS3_\u706B\u7BAD" + _local3, _local3);
_local2._x = get_shoot_point(this.point)[0];
_local2._y = get_shoot_point(this.point)[1];
_local2._rotation = 76;
tracerAction(_local2, "_root.main.player", -6, 3);
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
delete this.onEnterFrame;
this.gotoAndPlay("explode");
if (this.dieEvents != undefined) {
this.dieEvents();
}
kill_boss();
}
} else {
shot_shine(this, "white");
}
};
this_mc.check_dis();
return(this_mc);
}
function enemysAction15(who, x, y, attack_where) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc.blood = game_level * 10;
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.dead = false;
this_mc.speed = 8;
this_mc.attack_where = attack_where;
this_mc.shot = false;
this_mc.moves = function () {
this.gotoAndStop("move");
enemy_shake(this, 0.2, 1, false);
this.onEnterFrame = function () {
if (this._xscale == 100) {
if (get_map_point(this)[0] > -100) {
this._x = this._x - this.speed;
} else {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
} else if (this._xscale == -100) {
if (get_map_point(this)[0] < 500) {
this._x = this._x + this.speed;
} else {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
}
if (Math.abs(get_map_point(this)[0] - this.attack_where) < 20) {
if (!this.shot) {
this.shot = true;
this.shoot();
}
}
};
};
this_mc.shoot = function () {
play_soundAction("R\u5F39\u53D1\u5C04");
this.gotoAndPlay("shoot");
};
this_mc.shootAction = function () {
var depth = main.enemies.getNextHighestDepth();
var shoot_mc = main.enemies.attachMovie("\u8FFD\u8E2A\u5BFC\u5F39", "npc_shoot" + depth, depth);
shoot_mc._xscale = this._xscale;
shoot_mc._x = get_shoot_point(this.point)[0];
shoot_mc._y = get_shoot_point(this.point)[1];
shoot_mc.targeter = this.targeter;
shoot_mc.blood = _root.game_level;
this.target = eval (this.targeter);
shoot_mc.onEnterFrame = function () {
this.target = eval (this.targeter);
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 210) < 210) and (Math.abs(temp_array[1] - 160) < 160)) {
this.speed = this.speed * 1.05;
this._x = this._x + this.speed;
if (Math.abs(this.target._y - this._y) > 15) {
this._y = this._y + ((this.target._y - this._y) / 15);
}
} else {
this.removeMovieClip();
}
if (this.target != undefined) {
if (this.target.g.hitTest(this.g)) {
this.get_blocked();
player_die(this.target, "shoot", 30);
}
}
};
shoot_mc.get_blocked = function () {
this.gotoAndPlay("hit");
play_soundAction("R\u5F39\u7206\u70B8");
delete this.onEnterFrame;
};
shoot_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.get_blocked();
}
};
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.fall();
}
} else {
shot_shine(this, "white");
}
};
this_mc.fall = function () {
this.gotoAndPlay("explode1");
this.move_speed = (-this._xscale) / 50;
this.onEnterFrame = function () {
this._rotation = this._rotation + (this._xscale / 50);
if (enemy_move(this, this.move_speed, 0)) {
this.deadAction();
}
};
};
this_mc.deadAction = function () {
this._rotation = 0;
delete this.onEnterFrame;
this.gotoAndPlay("explode2");
play_soundAction("\u5927\u7206\u70B8");
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
};
this_mc.moves();
return(this_mc);
}
function enemysAction16(who, x, y) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc.blood = 150 * game_level;
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.dead = false;
this_mc.speed = -2;
this_mc.shoot_count = 0;
this_mc.shoot_all = 120;
this_mc.shoot_order = true;
this_mc.moves = function () {
this.gotoAndStop("move");
enemy_shake(this, 0.5, 1, false);
this.onEnterFrame = function () {
if (get_map_point(this)[0] > 30) {
this._x = this._x + this.speed;
} else if ((++this.shoot_count) == this.shoot_all) {
this.shoot_count = 0;
delete this.onEnterFrame;
shot_shine(_root, "white");
play_soundAction("\u624B\u96F7\u7206\u70B8");
this.gotoAndPlay("shoot");
}
};
};
this_mc.shootAction = function () {
if (this.shoot_order) {
where = -25;
} else {
where = 25;
}
this.shootAction2(-where);
this.shootAction2(50 - where);
this.shootAction2(100 - where);
this.shootAction2(150 - where);
this.shootAction2(200 - where);
this.shootAction2(250 - where);
this.shootAction2(300 - where);
this.shoot_order = !this.shoot_order;
};
this_mc.shootAction2 = function (where) {
var depth = main.enemies.getNextHighestDepth();
var shoot_mc = main.enemies.attachMovie("\u8FFD\u8E2A\u5BFC\u5F39", "npc_shoot" + depth, depth);
shoot_mc._xscale = -100;
shoot_mc._x = (-200 - random(150)) - main._x;
shoot_mc._y = where - main._y;
shoot_mc.targeter = this.targeter;
shoot_mc.blood = game_level;
this.target = eval (this.targeter);
shoot_mc.onEnterFrame = function () {
this.target = eval (this.targeter);
var temp_array = get_map_point(this);
if (temp_array[0] < 500) {
this._x = this._x - this.speed;
} else {
this.removeMovieClip();
}
if (this.target != undefined) {
if (this.target.g.hitTest(this.g)) {
this.get_blocked();
player_die(this.target, "shoot", 30);
}
}
};
shoot_mc.get_blocked = function () {
this.gotoAndPlay("hit");
play_soundAction("R\u5F39\u7206\u70B8");
delete this.onEnterFrame;
};
shoot_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.get_blocked();
}
};
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
delete this.onEnterFrame;
this.gotoAndPlay("open");
}
} else {
shot_shine(this.bg, "white");
}
};
this_mc.find_player = function () {
control_able = false;
main.player.unbreak = true;
this.onEnterFrame = function () {
var _local4 = this._x + 301;
var _local3 = this._y - 19;
_root.main.player._x = _root.main.player._x + ((_local4 - _root.main.player._x) / 20);
_root.main.player._y = _root.main.player._y + ((_local3 - _root.main.player._y) / 20);
if ((Math.abs(_local4 - _root.main.player._x) < 5) and (Math.abs(_local3 - _root.main.player._Y) < 5)) {
_root.main.player.gotoAndPlay("jump");
this.gotoAndPlay("come_in");
delete this.onEnterFrame;
}
};
};
this_mc.moves();
return(this_mc);
}
function enemysAction17(who, x, y) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc.blood = game_level * 3;
this_mc._x = x;
this_mc._y = y;
this_mc.dead = false;
this_mc.targeter = "_root.main.player";
this_mc.shoot_count = 0;
this_mc.shoot_all = random(20) + 40;
this_mc.moves = function () {
this.gotoAndStop("move");
enemy_shake(this, 0.2, 1, false);
this.onEnterFrame = function () {
if (this._xscale == 100) {
if (get_map_point(this)[0] > 0) {
this._x = this._x - 5;
} else {
this._xscale = -100;
}
} else if (this._xscale == -100) {
if (get_map_point(this)[0] < 400) {
this._x = this._x + 5;
} else {
this._xscale = 100;
}
}
if ((++this.shoot_count) == this.shoot_all) {
this.shoot_count = 0;
this.shootAction();
}
};
};
this_mc.shootAction = function () {
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "npc_shoot" + depth, depth);
shoot_mc._x = get_shoot_point(this.point)[0];
shoot_mc._y = get_shoot_point(this.point)[1];
play_soundAction("H\u5F39\u53D1\u5C04");
shoot_mc.targeter = this.targeter;
shoot_mc._rotation = -90 + (60 * (this._xscale / 100));
shoot_mc.mother = this;
shoot_mc.get_blocked = function () {
this.gotoAndStop("hit");
delete this.onEnterFrame;
play_soundAction("H\u5F39\u51FB\u4E2D");
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
if (this.can_go) {
this._x = this._x + (this.speed * Math.cos(this._rotation * 0.01745));
this._y = this._y + (this.speed * Math.sin(this._rotation * 0.01745));
} else {
var shoot_array = get_shoot_point(this.mother.point);
this._x = shoot_array[0];
this._y = shoot_array[1];
}
} else {
this.removeMovieClip();
}
if (this.can_go) {
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
var temp_array = get_map_point(this);
if (this.target.g.hitTest(temp_array[0], temp_array[1], true)) {
player_die(this.target, "shoot", 25);
this.get_blocked();
}
}
}
};
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.fall();
}
} else {
shot_shine(this, "white");
}
};
this_mc.fall = function () {
this.gotoAndStop("fall");
this.move_speed = (-this._xscale) / 50;
this.onEnterFrame = function () {
this._rotation = this._rotation + (this._xscale / 4);
if (enemy_move(this, this.move_speed, 0)) {
this.deadAction();
}
};
};
this_mc.deadAction = function () {
this._rotation = 0;
delete this.onEnterFrame;
this.gotoAndPlay("explode");
play_soundAction("\u5927\u7206\u70B8");
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
};
this_mc.moves();
return(this_mc);
}
function enemysAction18(who, x, y) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc.blood = game_level * 1500;
this_mc._x = x;
this_mc._y = y;
this_mc.dead = false;
this_mc.targeter = "_root.main.player";
this_mc.child_killed = 0;
this_mc.shoot_count = 0;
this_mc.shoot_all = 80;
this_mc.checkAction = function () {
this.gotoAndStop("come");
this.onEnterFrame = function () {
if (main._x == (-_root[(("stg_width_" + stages) + "_") + stages_section])) {
this.play();
delete this.onEnterFrame;
}
};
};
this_mc.head_out = function () {
play_soundAction("\u98DE\u673A\u8FDB\u5165");
this.gotoAndPlay("head_out");
};
this_mc.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target != undefined) {
var temp_x = get_map_point(this.target)[0];
if (temp_x < 80) {
if (this.head.frame != "l") {
this.head.gotoAndStop("l");
}
} else if ((temp_x >= 80) and (temp_x < 160)) {
if (this.head.frame != "dl") {
this.head.gotoAndStop("dl");
}
} else if ((temp_x >= 160) and (temp_x < 240)) {
if (this.head.frame != "d") {
this.head.gotoAndStop("d");
}
} else if ((temp_x >= 240) and (temp_x < 320)) {
if (this.head.frame != "dr") {
this.head.gotoAndStop("dr");
}
} else if (temp_x >= 320) {
if (this.head.frame != "r") {
this.head.gotoAndStop("r");
}
}
if ((++this.shoot_count) == this.shoot_all) {
this.shoot_count = 0;
this.headShoot();
if (this.blood < (_root.game_level * 700)) {
this["rain" + random(2)].play();
}
}
}
};
};
this_mc.headShoot = function () {
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u654C\u4EBA_BOSS4_\u70AE\u5F39", "\u654C\u4EBA_BOSS4_\u70AE\u5F39" + depth, depth);
shoot_mc._x = get_shoot_point(this.head.point)[0];
shoot_mc._y = get_shoot_point(this.head.point)[1];
play_soundAction("\u624B\u96F7\u7206\u70B8");
shoot_mc.targeter = this.targeter;
shoot_mc._rotation = this.head.my_rotation;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
delete this.onEnterFrame;
play_soundAction("\u5927\u7206\u70B8");
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
if (this.can_go) {
this._x = this._x + (this.speed * Math.cos(this._rotation * 0.01745));
this._y = this._y + (this.speed * Math.sin(this._rotation * 0.01745));
}
} else {
this.removeMovieClip();
}
if (this.can_go) {
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
var temp_array = get_map_point(this);
if (this.target.g.hitTest(temp_array[0], temp_array[1], true)) {
player_die(this.target, "shoot", 25);
this.get_blocked();
}
}
}
};
};
this_mc.shoot_rain = function (where, dis) {
if (where._name == "rain1") {
dis = dis + 40;
}
play_soundAction("R\u5F39\u53D1\u5C04");
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("\u8F70\u70B8\u70B8\u5F39", "\u8F70\u70B8\u70B8\u5F39" + depth, depth);
shoot_mc._x = get_shoot_point(where.point)[0];
shoot_mc._y = get_shoot_point(where.point)[1];
shoot_mc.targeter = this.targeter;
shoot_mc.xspeed = (-(shoot_mc._x - (dis - main._x))) / 49;
shoot_mc.yspeed = 0;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndPlay("explode");
play_soundAction("\u624B\u96F7\u7206\u70B8");
delete this.onEnterFrame;
};
shoot_mc.onEnterFrame = function () {
var temp_array = get_map_point(this);
if ((Math.abs(temp_array[0] - 200) < 300) and (Math.abs(temp_array[1] - 200) < 300)) {
this._x = this._x + this.xspeed;
this.yspeed = this.yspeed + 0.2;
this._y = this._y + this.yspeed;
} else {
this.removeMovieClip();
}
for (var grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.get_blocked();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this._x + main._x, this._y + main._y, true)) {
player_die(this.target, "shoot", 20);
this.get_blocked();
}
}
};
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.gotoAndPlay("explode");
delete this.onEnterFrame;
if (this.dieEvents != undefined) {
this.dieEvents();
}
kill_boss();
}
} else {
shot_shine(this.head, "white");
}
};
this_mc.checkAction();
return(this_mc);
}
function enemysAction18_a(who, x, y, count) {
var my_number = main.enemies.getNextHighestDepth();
var this_mc = main.enemies.attachMovie(who, who + my_number, my_number);
this_mc.blood = game_level * 200;
this_mc._x = x;
this_mc._y = y;
this_mc.org_x = x;
this_mc.org_y = y;
this_mc.dead = false;
this_mc.targeter = "_root.main.player";
this_mc.shoot_count = 0;
this_mc.shoot_all = count;
this_mc.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
if ((++this.shoot_count) == this.shoot_all) {
this.shoot_count = 0;
this.swordAction();
}
};
};
this_mc.swordAction = function () {
this.onEnterFrame = function () {
var _local2 = get_map_point(this);
if (_local2[1] > -150) {
this._x = this._x - (this._xscale / 50);
this._y = this._y - 10;
} else {
this.onEnterFrame = function () {
var _local2 = get_map_point(this);
if (_local2[1] < this.org_y) {
this._x = this._x + (this._xscale / 50);
this._y = this._y + 10;
} else {
this._y = this.org_y;
delete this.onEnterFrame;
this.gotoAndPlay("hit");
}
};
}
};
};
this_mc.swordExplode = function () {
play_soundAction("\u5927\u7206\u70B8");
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this.hit)) {
player_die(this.target, "shoot", 25);
}
}
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.gotoAndPlay("explode");
play_soundAction("\u5927\u7206\u70B8");
delete this.onEnterFrame;
if (this.dieEvents != undefined) {
this.dieEvents();
}
}
} else {
shot_shine(this, "white");
}
};
this_mc.stand();
return(this_mc);
}
function enemysAction18_b(who, x, y, count) {
var _local3 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie(who, who + _local3, _local3);
_local2._x = x;
_local2._y = y;
_local2.org_x = x;
_local2.org_y = y;
_local2.dead = false;
_local2.shoot_count = random(100);
_local2.shoot_all = 180;
_local2.can_block = true;
_local2.can_stand = true;
_local2.stand = function () {
this.onEnterFrame = function () {
if ((++this.shoot_count) == this.shoot_all) {
this.shoot_count = 0;
if (this._y == this.org_y) {
this.onEnterFrame = function () {
this._y = this._y - 2;
if (this._y <= (this.org_y - 80)) {
this._y = this.org_y - 80;
this.stand();
}
};
} else if (this._y == (this.org_y - 80)) {
this.onEnterFrame = function () {
this._y = this._y + 2;
if (this._y >= this.org_y) {
this._y = this.org_y;
this.stand();
}
};
}
}
};
};
_local2.to_die = function (how, much) {
};
_local2.stand();
return(_local2);
}
function enemysAction18_c(who, x, y, count) {
var _local3 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie(who, who + _local3, _local3);
_local2.blood = game_level * 30;
_local2._x = x;
_local2._y = y;
_local2.dead = false;
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (!this.dead) {
this.dead = true;
this.gotoAndPlay("explode");
play_soundAction("\u5927\u7206\u70B8");
delete this.onEnterFrame;
if (this.dieEvents != undefined) {
this.dieEvents();
}
}
} else {
shot_shine(this, "white");
}
};
_local2.stand();
return(_local2);
}
function add_weapon(where, what) {
var my_number = main.tools.getNextHighestDepth();
var this_mc = main.tools.attachMovie("\u5404\u79CD\u5956\u52B1", "\u5404\u79CD\u5956\u52B1" + my_number, my_number);
this_mc._x = Math.round(where._x);
this_mc._y = Math.round(where._y);
this_mc.type = what;
this_mc.targeter = "_root.main.player";
this_mc.come_out = function () {
this.gotoAndPlay("come");
this.onEnterFrame = function () {
if (enemy_move(this, 0, 0)) {
this.find_player();
}
};
};
this_mc.check_item = function () {
this.items.gotoAndStop(this.type);
};
this_mc.find_player = function () {
this.onEnterFrame = function () {
if (this.ready) {
var player = eval (this.targeter);
if (player.my_type == "man") {
if (player.dead == false) {
if (this.hitTest(player.g)) {
if (this.type == "B") {
bomb_left = bomb_left + 10;
if (bomb_left > 99) {
bomb_left = 99;
}
adjust_bomb(bomb_left);
} else {
if (this.type == "M") {
temp_type = 1;
temp_number = 200;
player.gun_type = "machinegun";
player.gun_shoot = "running";
} else if (this.type == "R") {
temp_type = 2;
temp_number = 30;
player.gun_type = "machinegun";
player.gun_shoot = "single";
} else if (this.type == "E") {
temp_type = 5;
temp_number = 20;
player.gun_type = "machinegun";
player.gun_shoot = "single";
} else if (this.type == "F") {
temp_type = 6;
temp_number = 15;
player.gun_type = "machinegun";
player.gun_shoot = "single";
} else if (this.type == "P") {
temp_type = 3;
temp_number = 40;
player.gun_type = "pistol";
player.gun_shoot = "single";
} else if (this.type == "S") {
temp_type = 4;
temp_number = 15;
player.gun_type = "machinegun";
player.gun_shoot = "single";
} else if (this.type == "D") {
temp_type = 7;
temp_number = 25;
player.gun_type = "machinegun";
player.gun_shoot = "single";
}
if (player.gun != temp_type) {
slug_left = temp_number;
} else {
slug_left = slug_left + temp_number;
if (slug_left > 999) {
slug_left = 999;
}
}
player.gun = temp_type;
adjust_amr(slug_left);
}
player.shooting = false;
player.ready = true;
this.gotoAndPlay("go");
play_soundAction("\u8865\u5145\u5F39\u836F");
delete this.onEnterFrame;
}
}
}
}
};
};
this_mc.come_out();
}
function add_food(where, what) {
var my_number = main.tools.getNextHighestDepth();
var this_mc = main.tools.attachMovie("\u5404\u79CD\u5956\u52B1", "\u5404\u79CD\u5956\u52B1" + my_number, my_number);
this_mc._x = Math.round(where._x);
this_mc._y = Math.round(where._y);
this_mc.type = what;
this_mc.targeter = "_root.main.player";
this_mc.come_out = function () {
this.gotoAndPlay("come");
this.onEnterFrame = function () {
if (enemy_move(this, 0, 0)) {
this.find_player();
}
};
};
this_mc.check_item = function () {
this.items.gotoAndStop(this.type);
};
this_mc.find_player = function () {
this.onEnterFrame = function () {
if (this.ready) {
var player = eval (this.targeter);
if (player.dead == false) {
if (this.hitTest(player.g)) {
this.add_life();
this.gotoAndPlay("go");
play_soundAction("\u8BB0\u5206\u97F3\u6548");
delete this.onEnterFrame;
}
}
}
};
};
this_mc.add_life = function () {
life_left = life_left + this.numbers;
if (life_left > 100) {
life_left = 100;
}
adjust_life();
};
this_mc.come_out();
}
function add_present(where, what) {
var my_number = main.tools.getNextHighestDepth();
var this_mc = main.tools.attachMovie("\u5404\u79CD\u5956\u52B1", "\u5404\u79CD\u5956\u52B1" + my_number, my_number);
this_mc._x = Math.round(where._x);
this_mc._y = Math.round(where._y);
this_mc.type = what;
this_mc.targeter = "_root.main.player";
this_mc.come_out = function () {
this.gotoAndPlay("come");
this.onEnterFrame = function () {
if (enemy_move(this, 0, 0)) {
this.find_player();
}
};
};
this_mc.check_item = function () {
this.items.gotoAndStop(this.type);
};
this_mc.find_player = function () {
this.onEnterFrame = function () {
if (this.ready) {
var player = eval (this.targeter);
if (player.dead == false) {
if (this.hitTest(player.g)) {
game_score = game_score + Number(this.numbers);
adjust_score(game_UI);
this.gotoAndStop("score");
play_soundAction("\u6361\u5230\u5206\u6570");
delete this.onEnterFrame;
}
}
}
};
};
this_mc.show_score = function (which) {
var _local5 = 100000 + this.numbers;
var _local4 = this.numbers.toString().length;
if (which > _local4) {
this.b["num" + which]._visible = 0;
} else {
var _local3 = Number(_local5.toString().slice(6 - which, 7 - which));
this.b["num" + which].gotoAndStop(_local3 + 1);
}
};
this_mc.come_out();
}
Set("\u5C0F\u520001", new Sound());
\u5C0F\u520001.attachSound("\u5C0F\u520001");
Set("\u5C0F\u520002", new Sound());
\u5C0F\u520002.attachSound("\u5C0F\u520002");
Set("\u624B\u67AA\u53D1\u5C04", new Sound());
\u624B\u67AA\u53D1\u5C04.attachSound("\u624B\u67AA\u53D1\u5C04");
Set("\u624B\u67AA\u6D88\u97F3\u53D1\u5C04", new Sound());
\u624B\u67AA\u6D88\u97F3\u53D1\u5C04.attachSound("\u624B\u67AA\u6D88\u97F3\u53D1\u5C04");
Set("\u624B\u67AA\u51FB\u4E2D", new Sound());
\u624B\u67AA\u51FB\u4E2D.attachSound("\u624B\u67AA\u51FB\u4E2D");
Set("H\u5F39\u53D1\u5C04", new Sound());
H\u5F39\u53D1\u5C04.attachSound("H\u5F39\u53D1\u5C04");
Set("H\u5F39\u51FB\u4E2D", new Sound());
H\u5F39\u51FB\u4E2D.attachSound("H\u5F39\u51FB\u4E2D");
Set("R\u5F39\u7206\u70B8", new Sound());
R\u5F39\u7206\u70B8.attachSound("R\u5F39\u7206\u70B8");
Set("R\u5F39\u53D1\u5C04", new Sound());
R\u5F39\u53D1\u5C04.attachSound("R\u5F39\u53D1\u5C04");
Set("S\u5F39\u53D1\u5C04", new Sound());
S\u5F39\u53D1\u5C04.attachSound("S\u5F39\u53D1\u5C04");
Set("\u673A\u68B0\u5F00\u673A\u67AA", new Sound());
\u673A\u68B0\u5F00\u673A\u67AA.attachSound("\u673A\u68B0\u5F00\u673A\u67AA");
Set("\u6253\u51FB\u58F0\u97F3", new Sound());
\u6253\u51FB\u58F0\u97F3.attachSound("\u6253\u51FB\u58F0\u97F3");
Set("\u8865\u5145\u5F39\u836F", new Sound());
\u8865\u5145\u5F39\u836F.attachSound("\u8865\u5145\u5F39\u836F");
Set("\u624B\u67AA\u4E0A\u5B50\u5F39", new Sound());
\u624B\u67AA\u4E0A\u5B50\u5F39.attachSound("\u624B\u67AA\u4E0A\u5B50\u5F39");
Set("\u624B\u96F7\u7206\u70B8", new Sound());
\u624B\u96F7\u7206\u70B8.attachSound("\u624B\u96F7\u7206\u70B8");
Set("\u4E3B\u89D2\u6B7B\u4EA1", new Sound());
\u4E3B\u89D2\u6B7B\u4EA1.attachSound("\u4E3B\u89D2\u6B7B\u4EA1");
Set("\u51FA\u6C34", new Sound());
\u51FA\u6C34.attachSound("\u51FA\u6C34");
Set("\u843D\u6C34", new Sound());
\u843D\u6C34.attachSound("\u843D\u6C34");
Set("\u5927\u7206\u70B8", new Sound());
\u5927\u7206\u70B8.attachSound("\u5927\u7206\u70B8");
Set("\u7535\u7F51", new Sound());
\u7535\u7F51.attachSound("\u7535\u7F51");
Set("\u5766\u514B\u5C04\u51FB", new Sound());
\u5766\u514B\u5C04\u51FB.attachSound("\u5766\u514B\u5C04\u51FB");
Set("\u5766\u514B\u8FD0\u884C", new Sound());
\u5766\u514B\u8FD0\u884C.attachSound("\u5766\u514B\u8FD0\u884C");
Set("\u5361\u8F66\u5F00\u52A8", new Sound());
\u5361\u8F66\u5F00\u52A8.attachSound("\u5361\u8F66\u5F00\u52A8");
Set("\u5361\u8F66\u5239\u8F66", new Sound());
\u5361\u8F66\u5239\u8F66.attachSound("\u5361\u8F66\u5239\u8F66");
Set("\u5927\u8DF3\u8DC3", new Sound());
\u5927\u8DF3\u8DC3.attachSound("\u5927\u8DF3\u8DC3");
Set("\u98DE\u673A\u8FDB\u5165", new Sound());
\u98DE\u673A\u8FDB\u5165.attachSound("\u98DE\u673A\u8FDB\u5165");
Set("\u98DE\u673A\u8DF3\u51FA", new Sound());
\u98DE\u673A\u8DF3\u51FA.attachSound("\u98DE\u673A\u8DF3\u51FA");
Set("\u8F70\u70B8\u673A\u843D\u5F39", new Sound());
\u8F70\u70B8\u673A\u843D\u5F39.attachSound("\u8F70\u70B8\u673A\u843D\u5F39");
Set("\u98DE\u673A\u98DE\u8FC7", new Sound());
\u98DE\u673A\u98DE\u8FC7.attachSound("\u98DE\u673A\u98DE\u8FC7");
Set("\u5927\u578B\u673A\u67AA\u53D1\u5C04", new Sound());
\u5927\u578B\u673A\u67AA\u53D1\u5C04.attachSound("\u5927\u578B\u673A\u67AA\u53D1\u5C04");
Set("\u8BB0\u5206\u97F3\u6548", new Sound());
\u8BB0\u5206\u97F3\u6548.attachSound("\u8BB0\u5206\u97F3\u6548");
Set("\u6361\u5230\u5206\u6570", new Sound());
\u6361\u5230\u5206\u6570.attachSound("\u6361\u5230\u5206\u6570");
Set("\u654C\u5175\u6B7B\u4EA101", new Sound());
\u654C\u5175\u6B7B\u4EA101.attachSound("\u654C\u5175\u6B7B\u4EA101");
Set("\u654C\u5175\u6B7B\u4EA102", new Sound());
\u654C\u5175\u6B7B\u4EA102.attachSound("\u654C\u5175\u6B7B\u4EA102");
Set("\u654C\u5175\u6B7B\u4EA103", new Sound());
\u654C\u5175\u6B7B\u4EA103.attachSound("\u654C\u5175\u6B7B\u4EA103");
Set("\u654C\u5175\u6B7B\u4EA104", new Sound());
\u654C\u5175\u6B7B\u4EA104.attachSound("\u654C\u5175\u6B7B\u4EA104");
Set("\u58EB\u5175\u53D7\u60CA", new Sound());
\u58EB\u5175\u53D7\u60CA.attachSound("\u58EB\u5175\u53D7\u60CA");
stop();
keycodes = [["A", 65], ["B", 66], ["C", 67], ["D", 68], ["E", 69], ["F", 70], ["G", 71], ["H", 72], ["I", 73], ["J", 74], ["K", 75], ["L", 76], ["M", 77], ["N", 78], ["O", 79], ["P", 80], ["Q", 81], ["R", 82], ["S", 83], ["T", 84], ["U", 85], ["V", 86], ["W", 87], ["X", 88], ["Y", 89], ["Z", 90], ["0", 48], ["1", 49], ["2", 50], ["3", 51], ["4", 52], ["5", 53], ["6", 54], ["7", 55], ["8", 56], ["9", 57], ["Number 0", 96], ["Number 1", 97], ["Number 2", 98], ["Number 3", 99], ["Number 4", 100], ["Number 5", 101], ["Number 6", 102], ["Number 7", 103], ["Number 8", 104], ["Number 9", 105], ["*", 106], ["+", 107], ["-", 109], [".", 110], ["/", 111][112], ["F2", 113], ["F3", 114], ["F4", 115], ["F5", 116], ["F6", 117], ["F7", 118], ["F8", 119], ["F9", 120], ["F11", 122], ["F12", 123][8], ["Tab", 9], ["Enter", 13], ["Shift", 16], ["Control", 17], ["Caps Lock", 20], ["Esc", 27], ["Space", 32], ["Page Up", 33], ["Page Down", 34], ["End", 35], ["Home", 36], ["\u2190", 37], ["\u2191", 38], ["\u2192", 39], ["\u2193", 40], ["Insert", 45], ["Delete", 46], ["Num Lock", 144], ["ScrLk", 145], ["Pause/Break", 19], ["; :", 186], ["= +", 187], ["- _", 189], ["/ ?", 191], ["` ~", 192], ["[ {", 219], ["\\|", 220], ["] }", 221], ["\u201D \u2019", 222], [", <", 188], [". >", 190]];
game_music = true;
game_sounds = true;
game_quality = 1;
game_level = 1;
chance_left = 3;
game_score = 0;
Stage.scaleMode = "noScale";
myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
fscommand ("trapallkeys", true);
game_masked = true;
game_testing = false;
game_powerup = false;
Jcode_pressed = false;
Kcode_pressed = false;
Lcode_pressed = false;
key_gun_buffer = 2;
key_gun_point = 8;
shine_Transform1 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
shine_Transform2 = {ra:0, rb:255, ga:0, gb:255, ba:0, bb:255, aa:100, ab:0};
shine_Transform3 = {ra:50, rb:185, ga:50, gb:-50, ba:50, bb:-255, aa:100, ab:0};
Frame 20
stop();
Frame 28
play_game(1, 1);
Frame 36
stop();
Symbol 16 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 21 MovieClip Frame 2
if (_url.indexOf("http") > -1) {
if (_parent._parent._parent.loadAdNow) {
cacheBuster = getTimer() + random(999999);
showAd = "http://www.miniclip.com/swfcontent/push/didyouknow.swf?cacheBuster" + cacheBuster;
mcAd.loadMovie(showAd);
} else {
gotoAndPlay(_currentframe - 1);
}
}
Symbol 21 MovieClip Frame 4
if ((mcAd.getBytesTotal() != 0) && (mcAd.getBytesLoaded() == mcAd.getBytesTotal())) {
gotoAndStop ("showAd");
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 21 MovieClip Frame 12
stop();
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 100
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 12
_root.play();
_root.isFinished = true;
_parent.stop();
stop();
Symbol 35 MovieClip Frame 1
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent == 100) {
_root.play();
stop();
} else {
loadAdNow = true;
mcLoadingAnimated._visible = true;
}
Symbol 35 MovieClip Frame 3
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent < 100) {
mcLoadingAnimated.mcLoading.gotoAndStop(loadedPercent);
mcLoadingAnimated.mcLoading.txtPercentLoaded1 = ("The game is loading (" + loadedPercent) + "%)";
mcLoadingAnimated.mcLoading.txtPercentLoaded2 = ("The game is loading (" + loadedPercent) + "%)";
gotoAndPlay(_currentframe - 1);
} else {
mcLoadingAnimated.play();
stop();
}
Symbol 100 MovieClip Frame 4
_root.play_soundAction("\u5766\u514B\u5C04\u51FB");
Symbol 105 MovieClip Frame 1
this._x = random(10) - random(10);
this._y = random(10) - random(10);
Symbol 105 MovieClip Frame 2
this._x = random(10) - random(10);
this._y = random(10) - random(10);
Symbol 122 MovieClip Frame 36
stop();
Symbol 127 MovieClip Frame 1
_root.play_soundAction("\u98DE\u673A\u98DE\u8FC7");
Symbol 127 MovieClip Frame 147
_root.play_soundAction("\u5927\u578B\u673A\u67AA\u53D1\u5C04");
Symbol 127 MovieClip Frame 169
_root.play_soundAction("\u5927\u578B\u673A\u67AA\u53D1\u5C04");
Symbol 127 MovieClip Frame 243
_root.play_soundAction("\u5766\u514B\u5C04\u51FB");
Symbol 127 MovieClip Frame 249
_root.play_soundAction("\u5927\u7206\u70B8");
Symbol 127 MovieClip Frame 299
_parent._parent.gotoAndStop("index");
Symbol 132 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 133 MovieClip Frame 1
function remove_function() {
stopAllSounds();
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
Key.removeListener(keyListener);
Mouse.removeListener(mouseListener);
_parent.gotoAndStop("index");
}
var keyListener = new Object();
keyListener.onKeyDown = function () {
remove_function();
};
Key.addListener(keyListener);
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
remove_function();
};
Mouse.addListener(mouseListener);
Symbol 140 Button
on (release) {
getURL ("http://www.miniclip.com", "_top");
}
Symbol 170 MovieClip Frame 1
btn.onPress = function () {
_root.set_options(this._parent);
};
stop();
Symbol 174 MovieClip Frame 1
function set_options() {
_root.set_options(this);
}
btn.onPress = function () {
set_options();
};
stop();
Symbol 178 MovieClip Frame 1
btn.onPress = function () {
_root.start_set_key(this._parent);
};
stop();
Symbol 178 MovieClip Frame 16
gotoAndPlay (2);
Symbol 229 MovieClip Frame 31
_parent.removeMovieClip();
Symbol 230 MovieClip [敌人_火箭炮] Frame 1
speed = -5 - Math.floor(_root.game_level);
can_go = true;
stop();
Symbol 230 MovieClip [敌人_火箭炮] Frame 7
stop();
Symbol 237 MovieClip [game_mask] Frame 1
stop();
Symbol 237 MovieClip [game_mask] Frame 15
gotoAndStop (1);
Symbol 237 MovieClip [game_mask] Frame 31
stop();
Symbol 253 Button
on (release) {
getURL ("http://www.miniclip.com/games/en/terms-and-conditions.php", "_blank");
}
Symbol 259 MovieClip Frame 1
function set_options(buttonValue) {
_root.set_options(this, buttonValue);
}
btn1.onPress = function () {
set_options(1);
};
btn2.onPress = function () {
set_options(2);
};
btn3.onPress = function () {
set_options(3);
};
stop();
Symbol 262 MovieClip Frame 1
_root.control_able = false;
Symbol 262 MovieClip Frame 13
_root.next_scene();
Symbol 262 MovieClip Frame 25
_root.control_able = true;
_parent.removeMovieClip();
Symbol 268 MovieClip [天空_云] Frame 1
gotoAndPlay(_parent.wind_dir);
Symbol 268 MovieClip [天空_云] Frame 53
_root.next_scene();
delete _parent.onEnterFrame;
Symbol 268 MovieClip [天空_云] Frame 69
_parent.removeMovieClip();
Symbol 268 MovieClip [天空_云] Frame 123
_root.next_scene();
delete _parent.onEnterFrame;
Symbol 268 MovieClip [天空_云] Frame 138
_parent.removeMovieClip();
Symbol 289 MovieClip Frame 160
if (_root.stages < 4) {
_root.gotoAndStop(("m" + (_root.stages + 1)) + "_intro");
_root.recover_all();
} else if (_root.stages == 4) {
_root.clean_fire();
_parent.gotoAndStop("win_game");
}
Symbol 317 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 1
_root.adjust_score(this);
Symbol 331 Button
on (release) {
gameURL = ("http://www.miniclip.com/games/" + gamename) + "/en/";
getURL (gameURL, "_blank");
}
Symbol 333 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 1
temp_shine = [3.3946, 6.7034, 0.902, 0, -635, 3.3946, 6.7034, 0.902, 0, -635, 3.3946, 6.7034, 0.902, 0, -635, 0, 0, 0, 1, 0];
temp_black = [0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0, 0, 0, 1, 0];
_root.change_color(_root.main, temp_shine);
Symbol 334 MovieClip Frame 4
_root.change_color(_root.main, temp_black);
_root.main.setMask(null);
_root.game_mask.removeMovieClip();
_root.camera_it(_root.main, this.movie);
_root.clean_fire();
Symbol 334 MovieClip Frame 76
_root.play_music("\u80CC\u666F\u97F3\u4E50_09", false);
Instance of Symbol 333 MovieClip "comHighscores" in Symbol 334 MovieClip Frame 90
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.game_score";
gamename = "commando";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Symbol 334 MovieClip Frame 103
stop();
_root.clean_fire();
btn01.onPress = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
_parent.gotoAndPlay("hiscores");
};
btn02.onPress = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
play();
};
Symbol 334 MovieClip Frame 110
stopAllSounds();
_root.skipIntro = true;
_root.gotoAndStop("game_start");
_root.recover_all();
Symbol 342 MovieClip Frame 1
_root.play_music("\u80CC\u666F\u97F3\u4E50_04", true);
Symbol 342 MovieClip Frame 28
stop();
_root.clean_fire();
btn01.onPress = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
_parent.gotoAndPlay("hiscores");
};
btn02.onPress = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
play();
};
_root.show_kill_boss(this);
Symbol 342 MovieClip Frame 35
stopAllSounds();
_root.skipIntro = true;
_root.gotoAndStop("game_start");
_root.recover_all();
Symbol 348 MovieClip [game_intro] Frame 2
stop();
if (_root.skipIntro == true) {
gotoAndStop ("index");
}
Symbol 348 MovieClip [game_intro] Frame 11
stop();
btn.onPress = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
if (_root.controlScheme == "mouse") {
gotoAndStop ("c_mouse");
} else {
gotoAndStop ("c_key");
}
};
btn1.onPress = function () {
if (_root.check_correct() == "finish") {
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
getURL ("javascript:urchinTracker('/commando/playGameWebmaster');");
_root.gotoAndStop("m1_intro");
}
};
btn3.onPress = function () {
getURL ("javascript:urchinTracker('/commando/playMoreGames');");
getURL ("http://www.miniclip.com", "_top");
};
btn4.onPress = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
gotoAndStop ("website");
};
btn2.onPress = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
gotoAndStop ("c_difficulty");
};
diff.order = 4;
_root.set_key_data(_root.controlScheme);
_root.set_current_options();
_root.set_current_key();
_root.play_music("menuMusic", true);
Symbol 348 MovieClip [game_intro] Frame 21
stop();
btn0.onPress = function () {
shine.gotoAndPlay("white");
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
_root.reset_org_key();
};
btn1.onPress = function () {
if (_root.check_correct() == "finish") {
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
_root.end_set_key();
gotoAndStop ("index");
}
};
btn4.onPress = function () {
gotoAndStop ("index");
};
control.onPress = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
gotoAndStop ("c_mouse");
};
music.order = 1;
sound.order = 2;
qua.order = 3;
_root.set_key_data("keyboard");
_root.controlScheme = "keyboard";
_root.set_current_options();
_root.set_current_key();
Symbol 348 MovieClip [game_intro] Frame 31
stop();
btn0.onPress = function () {
shine.gotoAndPlay("white");
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
_root.reset_org_key();
};
btn1.onPress = function () {
if (_root.check_correct() == "finish") {
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
_root.end_set_key();
gotoAndStop ("index");
}
};
control.onPress = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
gotoAndStop ("c_key");
};
music.order = 1;
sound.order = 2;
qua.order = 3;
_root.set_key_data("mouse");
_root.controlScheme = "mouse";
_root.set_current_options();
_root.set_current_key();
Symbol 348 MovieClip [game_intro] Frame 41
function selectAll() {
Selection.setFocus(webcode);
Selection.setSelection(500, 0);
clearInterval(ivSelectAll);
}
stop();
btn1.onPress = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
gotoAndStop ("index");
};
this.onMouseDown = function () {
if ((((_xmouse >= webcode._x) && (_xmouse <= (webcode._x + webcode._width))) && (_ymouse >= webcode._y)) && (_ymouse <= (webcode._y + webcode._height))) {
ivSelectAll = setInterval(selectAll, 100);
}
};
Symbol 348 MovieClip [game_intro] Frame 51
diff.order = 4;
btn1.onPress = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
gotoAndStop ("index");
};
Symbol 348 MovieClip [game_intro] Frame 61
stop();
Symbol 348 MovieClip [game_intro] Frame 81
stop();
shine.gotoAndPlay("black");
Symbol 348 MovieClip [game_intro] Frame 91
stop();
Symbol 348 MovieClip [game_intro] Frame 101
stop();
Symbol 348 MovieClip [game_intro] Frame 111
btn1.onPress = function () {
stopAllSounds();
_root.skipIntro = true;
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
_root.gotoAndStop("game_start");
_root.recover_all();
};
stop();
Instance of Symbol 333 MovieClip "comHighscores" in Symbol 348 MovieClip [game_intro] Frame 111
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.game_score";
gamename = "commando";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Symbol 363 MovieClip Frame 1
btn.onPress = function () {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
this.enabled = false;
gotoAndPlay ("next");
};
btn._visible = 0;
this.onEnterFrame = function () {
if (_root._framesloaded >= 27) {
loading._visible = 0;
btn._visible = 1;
delete this.onEnterFrame;
}
};
Symbol 363 MovieClip Frame 15
stop();
Symbol 363 MovieClip Frame 30
_parent.gotoAndStop("m1_game");
Symbol 511 MovieClip Frame 1
if (_name == "life") {
this.gotoAndStop(_root.chance_left);
} else {
stop();
}
Symbol 515 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 1
stop();
Symbol 535 MovieClip Frame 29
level.gotoAndStop(20 + _root.stages);
Symbol 535 MovieClip Frame 80
stop();
Symbol 542 MovieClip Frame 2
w1._rotation = w1._rotation + 80;
w2._rotation = w2._rotation + 80;
w3._rotation = w3._rotation + 80;
w4._rotation = w4._rotation + 80;
w5._rotation = w5._rotation + 80;
w6._rotation = w6._rotation + 80;
Symbol 735 MovieClip Frame 1
stop();
Symbol 736 MovieClip [交通工具_快艇] Frame 1
function add_enemies() {
if ((++count) == 50) {
count = 0;
if (this.have_droped < 3) {
this.have_droped++;
var _local4 = random(140);
var _local5 = ((-_root.main._x) + 220) + _local4;
var _local3 = _root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", _local5, -random(50), 500, 3, -3, 100);
_local3.min_area_x = 210 + random(_local4);
_local3.max_area_x = 380;
_local3.mother = this;
_local3.dieEvents = function () {
this.mother.have_droped--;
};
}
}
}
function startAction() {
if (!started) {
started = true;
_root.play_music("\u80CC\u666F\u97F3\u4E50_05", true);
_root[(("allow_area_array_" + _root.stages) + "_") + _root.stages_section] = this.allow_area_array;
_root.enemy_shake(this, -1, -1, true);
_root.active_map_drawer = this;
_root.active_object_speed = 0;
this.onEnterFrame = function () {
if (!enemy_added) {
if (_root.main._x <= -2500) {
enemy_added = true;
_root.add_object("\u654C\u4EBA_\u5FEB\u8247", this._x - 600, 300);
}
} else {
add_enemies();
}
};
} else if (this.gun.stand.hitTest(_root.main.player._x + _root.main._x, _root.main.player._y + _root.main._y, true)) {
_root.main.player._visible = 0;
_root.main.player.my_type = "gun";
_root.main.player._x = _root.get_shoot_point(this.gun.stand)[0];
_root.main.player._y = _root.get_shoot_point(this.gun.stand)[1];
_root.justFrame(_root.main.player, "up", _root.main.player.gun_type + "_stand");
_root.justFrame(_root.main.player, "down", "stand");
this.gun.gotoAndStop("dir_" + _root.key_gun_point);
}
}
started = false;
if (!_parent.animation) {
this.allow_area_array = _root[(("allow_area_array_" + _root.stages) + "_") + _root.stages_section];
_root[(("allow_area_array_" + _root.stages) + "_") + _root.stages_section] = (-_root.get_shoot_point(this)[0]) + 350;
}
enemy_added = false;
count = 0;
have_droped = 0;
Symbol 817 MovieClip [轰炸炸弹] Frame 1
stop();
Symbol 817 MovieClip [轰炸炸弹] Frame 37
this.removeMovieClip();
Symbol 876 MovieClip [德军_战斗机3] Frame 1
stop();
Symbol 876 MovieClip [德军_战斗机3] Frame 25
this.shootAction();
Symbol 876 MovieClip [德军_战斗机3] Frame 30
this.check_point();
Symbol 876 MovieClip [德军_战斗机3] Frame 64
stop();
Symbol 876 MovieClip [德军_战斗机3] Frame 98
this.removeMovieClip();
Symbol 921 MovieClip [mission_start] Frame 49
animation = true;
gotoAndPlay("s" + _root.stages);
Symbol 921 MovieClip [mission_start] Frame 50
_root.play_soundAction("\u5361\u8F66\u5F00\u52A8");
Symbol 921 MovieClip [mission_start] Frame 73
_root.play_soundAction("\u5361\u8F66\u5239\u8F66");
Symbol 921 MovieClip [mission_start] Frame 94
_root.level_start();
_root.play_music("\u80CC\u666F\u97F3\u4E50_01", true);
_root.play_soundAction("\u5927\u7206\u70B8");
Symbol 921 MovieClip [mission_start] Frame 132
this.removeMovieClip();
Symbol 921 MovieClip [mission_start] Frame 205
_root.level_start();
_root.play_music("\u80CC\u666F\u97F3\u4E50_03", true);
stop();
Symbol 921 MovieClip [mission_start] Frame 267
_root.play_soundAction("\u98DE\u673A\u8FDB\u5165");
Symbol 921 MovieClip [mission_start] Frame 299
_root.level_start();
_root.active_map_drawer = this.player;
_root.active_object_speed = 15;
this.onEnterFrame = function () {
this._x = this._x + 15;
};
Symbol 921 MovieClip [mission_start] Frame 370
this.removeMovieClip();
Symbol 921 MovieClip [mission_start] Frame 399
_root.play_soundAction("\u5927\u7206\u70B8");
Symbol 921 MovieClip [mission_start] Frame 471
_root.play_soundAction("\u5927\u7206\u70B8");
Symbol 921 MovieClip [mission_start] Frame 494
_root.play_music("\u80CC\u666F\u97F3\u4E50_07", true);
Symbol 921 MovieClip [mission_start] Frame 548
_root.play_soundAction("\u8865\u5145\u5F39\u836F");
Symbol 921 MovieClip [mission_start] Frame 553
_root.level_start();
this.removeMovieClip();
Symbol 936 MovieClip Frame 1
stop();
frame = "stand";
_parent.states = "stand";
_parent.speed_rate = 0;
_parent.can_with = true;
_parent.g._yscale = 100;
Symbol 936 MovieClip Frame 8
stop();
frame = "stand_run";
_parent.states = "stand";
_parent.speed_rate = 1;
_parent.can_with = true;
_parent.g._yscale = 100;
Symbol 936 MovieClip Frame 15
stop();
frame = "crouch";
_parent.states = "crouch";
_parent.speed_rate = 0;
_parent.can_with = true;
_parent.g._yscale = 60;
Symbol 936 MovieClip Frame 22
stop();
frame = "crouch_run";
_parent.states = "crouch";
_parent.speed_rate = 0.25;
_parent.can_with = true;
_parent.g._yscale = 60;
Symbol 936 MovieClip Frame 29
stop();
frame = "crouch_shoot";
_parent.states = "crouch";
_parent.speed_rate = 0;
_parent.can_with = true;
_parent.g._yscale = 60;
Symbol 936 MovieClip Frame 37
stop();
frame = "jump";
_parent.states = "jump";
_parent.speed_rate = _parent.speed_rate * 1.2;
_parent.can_with = true;
if (_parent.force_jump_speed == undefined) {
y_speed = 18;
} else {
y_speed = _parent.force_jump_speed;
}
_root.jump_Action(this, 1);
_parent.g._yscale = 100;
Symbol 936 MovieClip Frame 45
stop();
frame = "fall";
_parent.states = "jump";
_parent.speed_rate = _parent.speed_rate * 0.5;
_parent.can_with = true;
y_speed = -5;
_root.jump_Action(this, 1);
_parent.g._yscale = 100;
Symbol 936 MovieClip Frame 52
stop();
frame = "nothing1";
_parent.speed_rate = 0;
delete this.onEnterFrame;
_parent.can_with = true;
_parent.g._yscale = 0;
Symbol 936 MovieClip Frame 58
stop();
frame = "nothing2";
_parent.speed_rate = 0;
delete this.onEnterFrame;
_parent.can_with = false;
_parent.g._yscale = 0;
Symbol 950 MovieClip Frame 5
stop();
Symbol 957 MovieClip Frame 5
stop();
Symbol 996 MovieClip Frame 4
stop();
Symbol 1003 MovieClip Frame 3
stop();
Symbol 1023 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
Symbol 1023 MovieClip Frame 18
_parent._parent.ready = true;
_parent._parent.shooting = false;
Symbol 1024 MovieClip Frame 1
_parent._parent.ready = false;
_parent._parent.turning = true;
Symbol 1024 MovieClip Frame 5
_parent._parent.ready = true;
_parent._parent._xscale = _parent._parent._xscale * -1;
_parent._parent.turning = false;
Symbol 1028 MovieClip Frame 1
_parent._parent.ready = false;
_parent._parent.turning = true;
Symbol 1028 MovieClip Frame 5
_parent._parent.ready = true;
_parent._parent._xscale = _parent._parent._xscale * -1;
_parent._parent.turning = false;
Symbol 1032 MovieClip Frame 1
_parent._parent.ready = false;
_parent._parent.turning = true;
Symbol 1032 MovieClip Frame 5
_parent._parent.ready = true;
_parent._parent._xscale = _parent._parent._xscale * -1;
_parent._parent.turning = false;
Symbol 1036 MovieClip Frame 1
_parent._parent.ready = false;
_parent._parent.turning = true;
Symbol 1036 MovieClip Frame 5
_parent._parent.ready = true;
_parent._parent._xscale = _parent._parent._xscale * -1;
_parent._parent.turning = false;
Symbol 1049 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
Symbol 1049 MovieClip Frame 3
_root.attackAction(point);
Symbol 1049 MovieClip Frame 7
_parent._parent.ready = true;
Symbol 1049 MovieClip Frame 20
_parent._parent.shooting = false;
Symbol 1068 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
Symbol 1068 MovieClip Frame 3
_root.attackAction(point);
Symbol 1068 MovieClip Frame 7
_parent._parent.ready = true;
Symbol 1068 MovieClip Frame 20
_parent._parent.shooting = false;
Symbol 1081 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.throwAction();
Symbol 1081 MovieClip Frame 3
_parent._parent.ready = true;
Symbol 1081 MovieClip Frame 6
_parent._parent.shooting = false;
Symbol 1094 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.throwAction();
Symbol 1094 MovieClip Frame 3
_parent._parent.ready = true;
Symbol 1094 MovieClip Frame 6
_parent._parent.shooting = false;
Symbol 1109 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1109 MovieClip Frame 2
_parent._parent.ready = true;
Symbol 1109 MovieClip Frame 9
_parent._parent.shooting = false;
Symbol 1122 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1122 MovieClip Frame 3
_parent._parent.ready = true;
Symbol 1122 MovieClip Frame 8
_parent._parent.shooting = false;
Symbol 1122 MovieClip Frame 9
stop();
Symbol 1135 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1135 MovieClip Frame 5
_parent._parent.ready = true;
Symbol 1135 MovieClip Frame 15
_parent._parent.shooting = false;
Symbol 1140 MovieClip Frame 1
if (!_parent.changing) {
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
} else {
_parent.changing = false;
_parent._parent.shooting = false;
_parent._parent.ready = true;
}
Symbol 1140 MovieClip Frame 5
_root.shootAction();
_parent._parent.ready = true;
Symbol 1140 MovieClip Frame 9
_root.shootAction();
Symbol 1140 MovieClip Frame 12
_parent._parent.shooting = false;
Symbol 1155 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1155 MovieClip Frame 5
_parent._parent.ready = true;
Symbol 1155 MovieClip Frame 17
_parent._parent.shooting = false;
Symbol 1155 MovieClip Frame 18
stop();
Symbol 1160 MovieClip Frame 1
if (!_parent.changing) {
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
} else {
_parent.changing = false;
_parent._parent.shooting = false;
_parent._parent.ready = true;
}
Symbol 1160 MovieClip Frame 5
_root.shootAction();
_parent._parent.ready = true;
Symbol 1160 MovieClip Frame 9
_root.shootAction();
Symbol 1160 MovieClip Frame 12
_parent._parent.shooting = false;
stop();
Symbol 1165 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_parent._parent.gun_direction = -15;
_root.shootAction();
Symbol 1165 MovieClip Frame 3
_parent._parent.gun_direction = -40;
_root.shootAction();
Symbol 1165 MovieClip Frame 5
_parent._parent.gun_direction = -65;
_root.shootAction();
Symbol 1165 MovieClip Frame 7
_parent.gotoAndStop("machinegun_up_running");
Symbol 1166 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_parent._parent.gun_direction = -65;
_root.shootAction();
Symbol 1166 MovieClip Frame 3
_parent._parent.gun_direction = -40;
_root.shootAction();
Symbol 1166 MovieClip Frame 5
_parent._parent.gun_direction = -15;
_root.shootAction();
Symbol 1166 MovieClip Frame 7
_parent.gotoAndStop("machinegun_straight_running");
Symbol 1171 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_parent._parent.gun_direction = 15;
_root.shootAction();
Symbol 1171 MovieClip Frame 3
_parent._parent.gun_direction = 40;
_root.shootAction();
Symbol 1171 MovieClip Frame 5
_parent._parent.gun_direction = 65;
_root.shootAction();
Symbol 1171 MovieClip Frame 7
_parent.gotoAndStop("machinegun_down_running");
Symbol 1172 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_parent._parent.gun_direction = 65;
_root.shootAction();
Symbol 1172 MovieClip Frame 3
_parent._parent.gun_direction = 40;
_root.shootAction();
Symbol 1172 MovieClip Frame 5
_parent._parent.gun_direction = 15;
_root.shootAction();
Symbol 1172 MovieClip Frame 7
_parent.gotoAndStop("machinegun_straight_running");
Symbol 1177 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1177 MovieClip Frame 3
_parent._parent.ready = true;
Symbol 1177 MovieClip Frame 7
_parent._parent.shooting = false;
Symbol 1182 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1182 MovieClip Frame 6
_parent._parent.ready = true;
Symbol 1182 MovieClip Frame 15
_parent._parent.shooting = false;
Symbol 1183 MovieClip Frame 1
if (!_parent.changing) {
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
} else {
_parent.changing = false;
_parent._parent.shooting = false;
_parent._parent.ready = true;
}
Symbol 1183 MovieClip Frame 5
_root.shootAction();
_parent._parent.ready = true;
Symbol 1183 MovieClip Frame 9
_root.shootAction();
Symbol 1183 MovieClip Frame 12
_parent._parent.shooting = false;
stop();
Symbol 1194 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
Symbol 1194 MovieClip Frame 3
_root.attackAction(point);
Symbol 1194 MovieClip Frame 7
_parent._parent.ready = true;
Symbol 1194 MovieClip Frame 20
_parent._parent.shooting = false;
Symbol 1209 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1209 MovieClip Frame 3
_parent._parent.ready = true;
Symbol 1209 MovieClip Frame 9
_parent._parent.shooting = false;
_parent.gotoAndStop("pistol_crouch");
Symbol 1214 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1214 MovieClip Frame 5
_parent._parent.ready = true;
_root.shootAction();
Symbol 1214 MovieClip Frame 9
_root.shootAction();
Symbol 1214 MovieClip Frame 12
_parent._parent.shooting = false;
_parent.gotoAndStop("machinegun_crouch");
Symbol 1227 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1227 MovieClip Frame 4
_parent._parent.ready = true;
Symbol 1227 MovieClip Frame 15
_parent._parent.shooting = false;
_parent.gotoAndStop("machinegun_crouch");
Symbol 1240 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.throwAction();
Symbol 1240 MovieClip Frame 3
_parent._parent.ready = true;
Symbol 1240 MovieClip Frame 6
_parent._parent.shooting = false;
_parent.gotoAndStop("pistol_crouch");
Symbol 1253 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.throwAction();
Symbol 1253 MovieClip Frame 3
_parent._parent.ready = true;
Symbol 1253 MovieClip Frame 6
_parent._parent.shooting = false;
_parent.gotoAndStop("machinegun_crouch");
Symbol 1268 MovieClip Frame 23
_parent._visible = !_parent._visible;
Symbol 1268 MovieClip Frame 26
_parent._visible = !_parent._visible;
Symbol 1268 MovieClip Frame 29
_parent._visible = !_parent._visible;
Symbol 1268 MovieClip Frame 32
_parent._visible = !_parent._visible;
Symbol 1268 MovieClip Frame 35
_parent._visible = !_parent._visible;
Symbol 1268 MovieClip Frame 38
_parent._visible = !_parent._visible;
Symbol 1268 MovieClip Frame 41
_parent._visible = !_parent._visible;
Symbol 1268 MovieClip Frame 44
_parent._visible = !_parent._visible;
Symbol 1268 MovieClip Frame 80
stop();
_root.player_born();
Symbol 1289 MovieClip Frame 26
_parent._visible = !_parent._visible;
Symbol 1289 MovieClip Frame 29
_parent._visible = !_parent._visible;
Symbol 1289 MovieClip Frame 32
_parent._visible = !_parent._visible;
Symbol 1289 MovieClip Frame 35
_parent._visible = !_parent._visible;
Symbol 1289 MovieClip Frame 38
_parent._visible = !_parent._visible;
Symbol 1289 MovieClip Frame 41
_parent._visible = !_parent._visible;
Symbol 1289 MovieClip Frame 44
_parent._visible = !_parent._visible;
Symbol 1289 MovieClip Frame 47
_parent._visible = !_parent._visible;
Symbol 1289 MovieClip Frame 50
_parent._visible = !_parent._visible;
Symbol 1289 MovieClip Frame 80
stop();
_root.player_born();
Symbol 1311 MovieClip Frame 80
stop();
_root.player_born();
Symbol 1312 MovieClip Frame 80
stop();
_root.player_born();
Symbol 1313 MovieClip Frame 1
stop();
frame = "pistol_stand";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 9
stop();
frame = "machinegun_stand";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 17
stop();
frame = "pistol_lookup";
_parent.gun_direction = "up";
Symbol 1313 MovieClip Frame 25
stop();
frame = "machinegun_lookup";
_parent.gun_direction = "up";
Symbol 1313 MovieClip Frame 34
stop();
frame = "pistol_stand_run";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 42
stop();
frame = "machinegun_stand_run";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 50
stop();
frame = "pistol_jump";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 58
stop();
frame = "machinegun_jump";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 66
stop();
frame = "pistol_down";
_parent.gun_direction = "down";
Symbol 1313 MovieClip Frame 77
stop();
frame = "machinegun_down";
_parent.gun_direction = "down";
Symbol 1313 MovieClip Frame 87
stop();
frame = "pistol_crouch";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 95
stop();
frame = "machinegun_crouch";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 103
stop();
frame = "get_pistol";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 110
stop();
frame = "pistol_stand_turn";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 118
stop();
frame = "machinegun_stand_turn";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 126
stop();
frame = "pistol_crouch_turn";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 134
stop();
frame = "machinegun_crouch_turn";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 158
stop();
frame = "go_05";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 166
stop();
frame = "go_06";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 174
stop();
frame = "pistol_stand_bomb";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 185
stop();
frame = "machinegun_stand_bomb";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 196
stop();
frame = "pistol_straight_single";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 207
stop();
frame = "pistol_up_single";
_parent.gun_direction = "up";
Symbol 1313 MovieClip Frame 219
stop();
frame = "machinegun_straight_single";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 231
stop();
frame = "machinegun_straight_running";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 244
stop();
frame = "machinegun_up_single";
_parent.gun_direction = "up";
Symbol 1313 MovieClip Frame 256
stop();
frame = "machinegun_up_running";
_parent.gun_direction = "up";
Symbol 1313 MovieClip Frame 268
stop();
frame = "s_to_u";
changing = true;
Symbol 1313 MovieClip Frame 279
stop();
frame = "u_to_s";
changing = true;
Symbol 1313 MovieClip Frame 290
stop();
frame = "s_to_d";
changing = true;
Symbol 1313 MovieClip Frame 301
stop();
frame = "d_to_s";
changing = true;
Symbol 1313 MovieClip Frame 328
stop();
frame = "pistol_down_single";
_parent.gun_direction = "down";
Symbol 1313 MovieClip Frame 339
stop();
frame = "machinegun_down_single";
_parent.gun_direction = "down";
Symbol 1313 MovieClip Frame 350
stop();
frame = "machinegun_down_running";
_parent.gun_direction = "down";
Symbol 1313 MovieClip Frame 380
stop();
frame = "go_20";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 388
stop();
frame = "pistol_crouch_single";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 399
stop();
frame = "machinegun_crouch_running";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 410
stop();
frame = "machinegun_crouch_single";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 421
stop();
frame = "pistol_crouch_bomb";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 432
stop();
frame = "machinegun_crouch_bomb";
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 450
stop();
_parent.down.gotoAndStop("nothing1");
_parent.gun_direction = "straight";
y_speed = 2;
_root.jump_Action(this, 0);
Symbol 1313 MovieClip Frame 460
stop();
_parent.down.gotoAndStop("nothing1");
_parent.gun_direction = "straight";
y_speed = 2;
_root.jump_Action(this, 0);
Symbol 1313 MovieClip Frame 470
stop();
_parent.down.gotoAndStop("nothing2");
_parent.gun_direction = "straight";
Symbol 1313 MovieClip Frame 480
stop();
_parent.down.gotoAndStop("nothing2");
_parent.gun_direction = "straight";
Symbol 1350 MovieClip Frame 11
_parent.removeMovieClip();
Symbol 1351 MovieClip Frame 15
_parent.removeMovieClip();
Symbol 1352 MovieClip [主角_子弹0] Frame 1
speed = 0;
Symbol 1352 MovieClip [主角_子弹0] Frame 2
can_go = true;
Symbol 1352 MovieClip [主角_子弹0] Frame 3
speed = 25;
Symbol 1352 MovieClip [主角_子弹0] Frame 4
stop();
Symbol 1352 MovieClip [主角_子弹0] Frame 10
can_go = false;
play();
Symbol 1352 MovieClip [主角_子弹0] Frame 19
this.removeMovieClip();
Symbol 1352 MovieClip [主角_子弹0] Frame 25
stop();
Symbol 1352 MovieClip [主角_子弹0] Frame 30
stop();
Symbol 1352 MovieClip [主角_子弹0] Frame 37
stop();
Symbol 1363 MovieClip [小刀砍人_效果] Frame 11
this.removeMovieClip();
Symbol 1367 MovieClip Frame 27
_parent.removeMovieClip();
Symbol 1368 MovieClip [主角_手雷01] Frame 1
stop();
Symbol 1368 MovieClip [主角_手雷01] Frame 2
stop();
this.exploding();
Symbol 1368 MovieClip [主角_手雷01] Frame 3
stop();
Symbol 1368 MovieClip [主角_手雷01] Frame 4
stop();
Symbol 1387 MovieClip [主角_子弹1] Frame 1
speed = 0;
Symbol 1387 MovieClip [主角_子弹1] Frame 2
_y = (_y + (random(10) * ((random(2) * 2) - 1)));
_x = (_x + (random(10) * ((random(2) * 2) - 1)));
can_go = true;
Symbol 1387 MovieClip [主角_子弹1] Frame 3
speed = 25;
Symbol 1387 MovieClip [主角_子弹1] Frame 4
stop();
Symbol 1387 MovieClip [主角_子弹1] Frame 10
can_go = false;
play();
Symbol 1387 MovieClip [主角_子弹1] Frame 15
this.removeMovieClip();
Symbol 1387 MovieClip [主角_子弹1] Frame 21
stop();
Symbol 1387 MovieClip [主角_子弹1] Frame 26
stop();
Symbol 1387 MovieClip [主角_子弹1] Frame 33
stop();
Symbol 1455 MovieClip Frame 17
_parent.numbers = 10;
Symbol 1455 MovieClip Frame 18
_parent.numbers = 20;
Symbol 1455 MovieClip Frame 19
_parent.numbers = 30;
Symbol 1455 MovieClip Frame 20
_parent.numbers = 40;
Symbol 1455 MovieClip Frame 21
_parent.numbers = 50;
Symbol 1455 MovieClip Frame 22
_parent.numbers = 60;
Symbol 1455 MovieClip Frame 23
_parent.numbers = 70;
Symbol 1455 MovieClip Frame 27
_parent.numbers = 500;
Symbol 1455 MovieClip Frame 28
_parent.numbers = 1000;
Symbol 1455 MovieClip Frame 29
_parent.numbers = 3000;
Symbol 1455 MovieClip Frame 30
_parent.numbers = 5000;
Symbol 1455 MovieClip Frame 31
_parent.numbers = 10000;
Symbol 1455 MovieClip Frame 32
_parent.numbers = 30000;
Symbol 1476 MovieClip Frame 1
stop();
Symbol 1477 MovieClip Frame 1
_parent.show_score(5);
Symbol 1477 MovieClip Frame 4
_parent.show_score(4);
Symbol 1477 MovieClip Frame 7
_parent.show_score(3);
Symbol 1477 MovieClip Frame 10
_parent.show_score(2);
Symbol 1477 MovieClip Frame 13
_parent.show_score(1);
Symbol 1477 MovieClip Frame 66
_parent.removeMovieClip();
Symbol 1478 MovieClip [各种奖励] Frame 7
this.check_item();
Symbol 1478 MovieClip [各种奖励] Frame 13
stop();
ready = true;
Symbol 1478 MovieClip [各种奖励] Frame 23
this.removeMovieClip();
Symbol 1481 MovieClip Frame 31
_parent.removeMovieClip();
Symbol 1482 MovieClip [主角_子弹2] Frame 1
stop();
speed = 20;
can_go = true;
Symbol 1482 MovieClip [主角_子弹2] Frame 7
stop();
this.exploding();
Symbol 1482 MovieClip [主角_子弹2] Frame 13
stop();
this.exploding();
Symbol 1482 MovieClip [主角_子弹2] Frame 18
stop();
Symbol 1482 MovieClip [主角_子弹2] Frame 25
stop();
Symbol 1485 MovieClip [主角_子弹5] Frame 1
stop();
speed = 10;
can_go = true;
speed_up = true;
y_trace = true;
Symbol 1485 MovieClip [主角_子弹5] Frame 7
stop();
this.exploding();
Symbol 1485 MovieClip [主角_子弹5] Frame 13
stop();
this.exploding();
Symbol 1485 MovieClip [主角_子弹5] Frame 18
stop();
Symbol 1485 MovieClip [主角_子弹5] Frame 25
stop();
Symbol 1512 MovieClip [主角_子弹4] Frame 1
speed = 2;
can_go = false;
Symbol 1512 MovieClip [主角_子弹4] Frame 3
can_go = true;
Symbol 1512 MovieClip [主角_子弹4] Frame 23
this.removeMovieClip();
Symbol 1515 MovieClip Frame 1
_parent.exploding();
_root.play_soundAction("\u624B\u96F7\u7206\u70B8");
Symbol 1515 MovieClip Frame 5
_parent.exploding();
_root.play_soundAction("\u624B\u96F7\u7206\u70B8");
Symbol 1515 MovieClip Frame 10
_parent.exploding();
_root.play_soundAction("\u624B\u96F7\u7206\u70B8");
Symbol 1515 MovieClip Frame 39
_parent.removeMovieClip();
Symbol 1516 MovieClip [主角_子弹6] Frame 1
stop();
speed = 15;
can_go = true;
Symbol 1516 MovieClip [主角_子弹6] Frame 7
stop();
Symbol 1516 MovieClip [主角_子弹6] Frame 13
stop();
Symbol 1516 MovieClip [主角_子弹6] Frame 18
stop();
Symbol 1516 MovieClip [主角_子弹6] Frame 25
stop();
Symbol 1519 MovieClip [主角_子弹7] Frame 1
stop();
speed = 20;
speed_up = true;
can_go = true;
Symbol 1519 MovieClip [主角_子弹7] Frame 7
stop();
this.exploding();
Symbol 1519 MovieClip [主角_子弹7] Frame 14
stop();
this.exploding();
Symbol 1519 MovieClip [主角_子弹7] Frame 19
stop();
Symbol 1519 MovieClip [主角_子弹7] Frame 26
stop();
Symbol 1542 MovieClip [主角_导弹烟雾] Frame 23
this.removeMovieClip();
Symbol 1543 MovieClip [player] Frame 1
stop();
Symbol 1543 MovieClip [player] Frame 8
stop();
Symbol 1562 MovieClip [1-01-台阶01] Frame 1
function startAction() {
if (!started) {
started = true;
_root.stg_direct_1_1 = -2;
_root.allow_next_map_1_1 = 10;
_root.main_move_Y(-2400, 165);
play();
}
}
stop();
re = 0;
can_block = false;
g._visible = 0;
started = false;
Symbol 1562 MovieClip [1-01-台阶01] Frame 11
if ((re++) > 5) {
play();
} else {
gotoAndPlay (2);
}
Symbol 1562 MovieClip [1-01-台阶01] Frame 13
g._visible = 0;
Symbol 1562 MovieClip [1-01-台阶01] Frame 45
stop();
Symbol 1593 MovieClip [1-01-台阶02] Frame 1
function startAction() {
if (!started) {
started = true;
_root.main_move_Y(-2400, 340);
play();
}
}
stop();
replay = false;
can_block = false;
started = false;
Symbol 1593 MovieClip [1-01-台阶02] Frame 6
if (replay) {
play();
} else {
replay = true;
gotoAndPlay(_currentframe - 7);
}
Symbol 1593 MovieClip [1-01-台阶02] Frame 123
this.removeMovieClip();
Symbol 1596 MovieClip [1-01-台阶04] Frame 1
function startAction() {
if (!started) {
started = true;
_root.main_move_Y(-2400, 705);
play();
}
}
stop();
re = 0;
can_block = false;
started = false;
Symbol 1596 MovieClip [1-01-台阶04] Frame 10
if ((re++) > 5) {
play();
} else {
gotoAndPlay (2);
}
Symbol 1596 MovieClip [1-01-台阶04] Frame 31
this.removeMovieClip();
Symbol 1599 MovieClip [1-01-台阶05] Frame 1
function startAction() {
if (!started) {
started = true;
_root.main_move_Y(-2400, 780);
play();
}
}
stop();
re = 0;
can_block = false;
started = false;
Symbol 1599 MovieClip [1-01-台阶05] Frame 10
if ((re++) > 5) {
play();
} else {
gotoAndPlay (2);
}
Symbol 1599 MovieClip [1-01-台阶05] Frame 34
this.removeMovieClip();
Symbol 1602 MovieClip [1-01-台阶06] Frame 1
function startAction() {
if (!started) {
started = true;
_root.main_move_Y(-2400, 790);
play();
}
}
stop();
re = 0;
can_block = false;
started = false;
Symbol 1602 MovieClip [1-01-台阶06] Frame 12
if ((re++) > 5) {
play();
} else {
gotoAndPlay (2);
}
Symbol 1602 MovieClip [1-01-台阶06] Frame 36
this.removeMovieClip();
Symbol 1605 MovieClip [1-01-台阶03] Frame 1
function startAction() {
if (!started) {
started = true;
_root.main_move_Y(-2400, 495);
}
}
can_block = false;
started = false;
Symbol 1607 MovieClip [1-01-台阶08] Frame 1
function startAction() {
if (!started) {
started = true;
_root.stg_direct_1_1 = 1;
_root.allow_next_map_1_1 = 14;
_root.allow_area_array_1_1 = -4000;
}
}
can_block = false;
started = false;
Symbol 1621 MovieClip Frame 45
temp_array = _root.get_shoot_point(this);
temp_mc = _root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", temp_array[0], temp_array[1], 3, random(2), (-random(2)) - 1, 100);
temp_mc.drop = true;
Symbol 1621 MovieClip Frame 55
this.checkAction();
Symbol 1624 MovieClip [第一关_潜艇] Frame 1
function startAction() {
if (!started) {
started = true;
open1.play();
}
}
open1.stop();
open1.enemies = 2;
open2.stop();
open2.enemies = 2;
open3.stop();
open4.stop();
open1.checkAction = function () {
if ((--this.enemies) == 0) {
this.stop();
open2.play();
}
};
open2.checkAction = function () {
if ((--this.enemies) == 0) {
this.stop();
}
};
started = false;
Symbol 1627 MovieClip [1-01-台阶07] Frame 1
function startAction() {
if (!started) {
started = true;
_root.main_move_Y(0, 900);
}
}
can_block = false;
started = false;
Symbol 1678 MovieClip [敌人_普通士兵_伞] Frame 1
stop();
if (can_go) {
play();
}
Symbol 1678 MovieClip [敌人_普通士兵_伞] Frame 29
stop();
this.removeMovieClip();
Symbol 1747 MovieClip Frame 18
_parent.stand();
Symbol 1785 MovieClip Frame 20
_parent.shootAction();
Symbol 1785 MovieClip Frame 31
_parent.stand();
Symbol 1804 MovieClip Frame 13
_parent.shootAction();
Symbol 1804 MovieClip Frame 41
_parent.stand();
Symbol 1819 MovieClip Frame 10
_parent.shootAction();
Symbol 1819 MovieClip Frame 25
_parent.stand();
Symbol 1828 MovieClip Frame 3
_parent.shootAction();
Symbol 1828 MovieClip Frame 15
_parent.stand();
Symbol 1839 MovieClip Frame 6
_parent.shootAction();
Symbol 1839 MovieClip Frame 23
_parent.stand();
Symbol 1846 MovieClip Frame 7
_parent.shootAction();
Symbol 1846 MovieClip Frame 25
_parent.stand();
Symbol 1861 MovieClip Frame 19
_parent.attackAction();
Symbol 1861 MovieClip Frame 47
_parent.stand();
Symbol 1891 MovieClip Frame 1
if (_parent.quick_death) {
gotoAndPlay (13);
}
Symbol 1891 MovieClip Frame 52
_parent.removeMovieClip();
Symbol 1904 MovieClip Frame 1
if (_parent.quick_death) {
gotoAndPlay (9);
}
Symbol 1904 MovieClip Frame 48
_parent.removeMovieClip();
Symbol 1927 MovieClip Frame 1
if (_parent.quick_death) {
gotoAndPlay (18);
}
Symbol 1927 MovieClip Frame 56
_parent.removeMovieClip();
Symbol 1944 MovieClip [敌人_枪械子弹] Frame 1
speed = -7 - Math.floor(_root.game_level);
Symbol 1944 MovieClip [敌人_枪械子弹] Frame 6
stop();
can_go = true;
Symbol 1944 MovieClip [敌人_枪械子弹] Frame 12
stop();
can_go = false;
Symbol 1945 MovieClip [敌人_手雷] Frame 1
can_go = true;
stop();
Symbol 1945 MovieClip [敌人_手雷] Frame 9
stop();
Symbol 1946 MovieClip [敌人_普通士兵] Frame 236
quick_death = true;
Symbol 1951 MovieClip [敌人_轰炸机] Frame 41
stop();
Symbol 1951 MovieClip [敌人_轰炸机] Frame 75
this.removeMovieClip();
Symbol 2013 MovieClip Frame 31
_parent.removeMovieClip();
Symbol 2014 MovieClip [坦克_炮弹] Frame 1
stop();
Symbol 2015 MovieClip [德军_坦克1] Frame 37
this.stand();
Symbol 2015 MovieClip [德军_坦克1] Frame 61
this.shootAction();
Symbol 2015 MovieClip [德军_坦克1] Frame 87
this.stand();
Symbol 2015 MovieClip [德军_坦克1] Frame 169
this.removeMovieClip();
Symbol 2017 MovieClip [敌人_运输卡车] Frame 80
this.removeMovieClip();
Symbol 2019 MovieClip [敌人_快艇] Frame 1
function add_enemies() {
if ((++count) == 40) {
count = 0;
if (enemies > 0) {
if (have_droped < 3) {
enemies--;
have_droped++;
var _local3 = _root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", this._x, this._y - 34, 5, random(4), -1, -100);
_local3.max_area_x = 30 + random(70);
_local3.mother = this;
_local3.dieEvents = function () {
this.mother.have_droped--;
};
}
} else if ((have_droped == 0) and (!played)) {
played = true;
play();
}
}
}
function moveAction() {
_root.enemy_shake(this, 1, 1, true);
this.onEnterFrame = function () {
var _local3 = _root.get_map_point(this)[0];
if (_local3 < -20) {
if (speed < 3) {
speed = speed + 1;
}
} else if (speed > 0) {
speed = speed - 1;
}
if (speed != 0) {
this._x = this._x + speed;
}
add_enemies();
};
}
stop();
speed = 0;
count = 0;
have_droped = 0;
enemies = 30;
this.moveAction();
Symbol 2019 MovieClip [敌人_快艇] Frame 3
_root.play_soundAction("\u5927\u7206\u70B8");
Symbol 2019 MovieClip [敌人_快艇] Frame 17
_root.play_soundAction("\u5927\u7206\u70B8");
Symbol 2019 MovieClip [敌人_快艇] Frame 33
_root.play_soundAction("\u5927\u7206\u70B8");
Symbol 2019 MovieClip [敌人_快艇] Frame 44
cant_with = true;
Symbol 2019 MovieClip [敌人_快艇] Frame 95
stop();
if (_root.main.player.dead == false) {
_root.main.player.my_type = "man";
_root.change_scene(0);
}
Symbol 2024 MovieClip [1-03-航母踏板] Frame 1
function startAction() {
if (!started) {
started = true;
}
}
can_block = false;
started = false;
Symbol 2027 MovieClip [敌人_箱子阻拦1] Frame 1
frame = "normal1";
Symbol 2027 MovieClip [敌人_箱子阻拦1] Frame 9
stop();
Symbol 2027 MovieClip [敌人_箱子阻拦1] Frame 11
frame = "normal2";
Symbol 2027 MovieClip [敌人_箱子阻拦1] Frame 41
stop();
Symbol 2027 MovieClip [敌人_箱子阻拦1] Frame 43
frame = "explode";
Symbol 2027 MovieClip [敌人_箱子阻拦1] Frame 73
this.removeMovieClip();
Symbol 2035 MovieClip [德军驱逐舰_小炮1] Frame 9
this.shootAction();
Symbol 2035 MovieClip [德军驱逐舰_小炮1] Frame 35
this.stand();
Symbol 2035 MovieClip [德军驱逐舰_小炮1] Frame 105
this.removeMovieClip();
Symbol 2056 MovieClip Frame 1
stop();
Symbol 2056 MovieClip Frame 13
_parent.machinegun(this.point, -154);
Symbol 2056 MovieClip Frame 17
_parent.machinegun(this.point, -136);
Symbol 2056 MovieClip Frame 21
_parent.machinegun(this.point, -121);
Symbol 2056 MovieClip Frame 25
_parent.machinegun(this.point, -90);
Symbol 2056 MovieClip Frame 29
_parent.machinegun(this.point, -63);
Symbol 2056 MovieClip Frame 33
_parent.machinegun(this.point, -46);
Symbol 2056 MovieClip Frame 37
_parent.machinegun(this.point, -28);
Symbol 2059 MovieClip [德军_巨型轰炸机] Frame 62
_root.play_soundAction("\u5927\u7206\u70B8");
Symbol 2059 MovieClip [德军_巨型轰炸机] Frame 93
this.removeMovieClip();
Symbol 2062 MovieClip [场景_木箱] Frame 38
this.removeMovieClip();
Symbol 2067 MovieClip [stage1_bg] Frame 1
g._visible = 0;
d._visible = 0;
d.type = "water";
Symbol 2067 MovieClip [stage1_bg] Frame 2
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 442, 228, 5, 0, -1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 520, 223, 5, 0, -2, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 667, 199, 500, 0, 0, 100).dieEvents = function () {
_root.add_weapon(this, "M");
};
_root.blocksAction("\u573A\u666F_\u6728\u7BB1", 654, 263, 5).dieEvents = function () {
_root.add_weapon(this, "B");
};
Symbol 2067 MovieClip [stage1_bg] Frame 3
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 893, 257, 2, 0, 50, -100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 939, 246, 2, 1, 51, 100);
Symbol 2067 MovieClip [stage1_bg] Frame 4
_root.enemysAction02("\u654C\u4EBA_\u8F70\u70B8\u673A", 1338, 56);
_root.blocksAction("\u573A\u666F_\u6728\u7BB1", this._x + 153, this._y + 198, 5).dieEvents = function () {
_root.add_weapon(this, "R");
};
_root.blocksAction("\u573A\u666F_\u6728\u7BB1", this._x + 210, this._y + 198, 5).dieEvents = function () {
_root.add_present(this, "pre1");
};
_root.blocksAction("\u573A\u666F_\u6728\u7BB1", this._x + 270, this._y + 198, 5).dieEvents = function () {
_root.add_present(this, "pre2");
};
Symbol 2067 MovieClip [stage1_bg] Frame 5
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 1633, 190, 2, 0, -2, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 1680, 190, 2, 0, -1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 1730, 190, 2, 0, -1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 1830, 190, 2, 0, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 1890, 190, 2, 0, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 1910, 190, 2, 0, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 1860, 271, 2, 0, -1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 1890, 271, 2, 0, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 1940, 271, 2, 0, 1, 100);
Symbol 2067 MovieClip [stage1_bg] Frame 6
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2125, 191, 2, 0, -2, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2164, 191, 2, 0, -1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2207, 192, 2, 0, -1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2127, 270, 2, 0, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2130, 270, 2, 0, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2216, 270, 2, 0, 1, 100);
Symbol 2067 MovieClip [stage1_bg] Frame 7
_root.add_object("1-01-\u53F0\u963601", 2559, 79);
temp_mc = _root.enemysAction03("\u5FB7\u519B_\u5766\u514B1", 2316, -5, -1);
temp_mc.fly = true;
temp_mc.dieEvents = function () {
_root.add_weapon(this, "B");
};
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2751, 66, 3, 1, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2787, 49, 3, 1, 1, 100);
Symbol 2067 MovieClip [stage1_bg] Frame 8
_root.add_object("1-01-\u53F0\u963602", 2646, -32);
_root.add_object("1-01-\u53F0\u963603", 2382, -300);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2442, -221, 500, 0, 0, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2462, -221, 3, 0, 2, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2631, -262, 500, 0, 0, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2621, -80, 3, 0, 2, -100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2534, -129, 3, 0, 1, -100);
_root.blocksAction("\u573A\u666F_\u6728\u7BB1", 2783, -262, 5).dieEvents = function () {
_root.add_food(this, "food4");
};
Symbol 2067 MovieClip [stage1_bg] Frame 9
_root.add_object("1-01-\u53F0\u963604", 2548, -437);
_root.add_object("1-01-\u53F0\u963605", 2377, -472);
_root.add_object("1-01-\u53F0\u963606", 2400, -572);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2779, -368, 500, 0, 0, 100);
Symbol 2067 MovieClip [stage1_bg] Frame 10
_root.add_object("1-01-\u53F0\u963607", 2460, -670);
_root.add_object("1-01-\u53F0\u963608", 2717, -640);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2495, -646, 500, 0, 0, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2539, -637, 500, 0, 0, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2581, -627, 500, 0, 0, 100);
_root.blocksAction("\u654C\u4EBA_\u7BB1\u5B50\u963B\u62E61", 2750, -634, 42);
Symbol 2067 MovieClip [stage1_bg] Frame 12
_root.enemysAction04("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", 3540, -635, 2, 100, true).dieEvents = function () {
_root.add_weapon(this, "M");
};
Symbol 2067 MovieClip [stage1_bg] Frame 13
var temp_mc1 = _root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 3803, -777, 500, 0, 0, 100);
var temp_mc2 = _root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 3838, -763, 500, 0, 0, 100);
var temp_mc3 = _root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 3870, -749, 500, 0, 0, 100);
var temp_mc4 = _root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 3913, -729, 500, 0, 0, 100);
var temp_mc5 = _root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 3937, -716, 500, 0, 0, 100);
_root.enemysAction03("\u5FB7\u519B_\u5766\u514B1", 3808, -638, 0).dieEvents = function () {
temp_mc1.moves = random(2) + 1;
temp_mc2.moves = random(2) + 1;
temp_mc3.moves = random(2) + 1;
temp_mc4.moves = random(2) + 1;
temp_mc5.moves = random(2) + 1;
};
Symbol 2067 MovieClip [stage1_bg] Frame 15
_root.play_music("\u80CC\u666F\u97F3\u4E50_01", true);
Symbol 2067 MovieClip [stage1_bg] Frame 16
var temp = (_root.main.player._x + 130);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", random(300) + temp, -random(100), 5, 3, -3, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", random(300) + temp, -random(100), 5, 3, -3, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", random(300) + temp, -random(100), 5, 3, -3, 100);
Symbol 2067 MovieClip [stage1_bg] Frame 17
var temp = (_root.main.player._x + 130);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", random(300) + temp, -random(100), 5, 3, -3, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", random(300) + temp, -random(100), 5, 3, -3, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", random(300) + temp, -random(100), 5, 3, -3, 100);
Symbol 2067 MovieClip [stage1_bg] Frame 18
var temp = (_root.main.player._x + 130);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", random(300) + temp, -random(100), 5, 3, -3, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", random(300) + temp, -random(100), 5, 3, -3, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", random(300) + temp, -random(100), 5, 3, -3, 100);
Symbol 2067 MovieClip [stage1_bg] Frame 19
_root.enemysAction02("\u654C\u4EBA_\u8F70\u70B8\u673A", 1674, 30).dieEvents = function () {
_root.add_food(this, "food1");
};
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 1900, 255, 500, 1, 1, 100).dieEvents = function () {
_root.add_weapon(this, "B");
};
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 1919, 255, 500, 1, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 1949, 255, 500, 1, 0, 100).dieEvents = function () {
_root.add_weapon(this, "M");
_root.add_object("\u4EA4\u901A\u5DE5\u5177_\u5FEB\u8247", 2250, 300);
_root[(("allow_area_array_" + stages) + "_") + stages_section] = -2400;
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2153, 263, 500, 1, 0, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2203, 261, 500, 1, 0, 100);
};
Symbol 2067 MovieClip [stage1_bg] Frame 22
_root.active_object_speed = 0;
_root.active_map_drawer = "main.player";
_root.play_music("\u80CC\u666F\u97F3\u4E50_01", true);
Symbol 2067 MovieClip [stage1_bg] Frame 23
var i = 1;
while (i <= 5) {
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", random(250) + 400, random(100) - 100, 5, 3, -3, 100);
i++;
}
Symbol 2067 MovieClip [stage1_bg] Frame 25
var i = 1;
while (i <= 5) {
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", random(350) + 1150, random(100) - 100, 5, 3, -3, 100);
i++;
}
Symbol 2067 MovieClip [stage1_bg] Frame 27
var i = 1;
while (i <= 5) {
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", random(390) + 1900, random(100) - 100, 5, 3, -3, 100);
i++;
}
Symbol 2067 MovieClip [stage1_bg] Frame 28
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2651, 134, 2, 0, 50, -100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2690, 136, 2, 1, 51, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2530, 251, 5, 0, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2584, 252, 5, 0, 1, 100);
Symbol 2067 MovieClip [stage1_bg] Frame 29
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2929, 137, 5, 0, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 2973, 137, 5, 0, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 3051, 137, 5, 1, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 3114, 137, 5, 1, 1, 100);
_root.blocksAction("\u573A\u666F_\u6728\u7BB1", 3200, 136, 5).dieEvents = function () {
_root.add_food(this, "food2");
};
_root.blocksAction("\u573A\u666F_\u6728\u7BB1", 3252, 134, 5).dieEvents = function () {
_root.add_present(this, "pre1");
};
_root.blocksAction("\u573A\u666F_\u6728\u7BB1", 3300, 133, 5).dieEvents = function () {
_root.add_weapon(this, "B");
};
Symbol 2067 MovieClip [stage1_bg] Frame 30
temp_mc1 = _root.enemysAction05("\u5FB7\u519B\u9A71\u9010\u8230_\u5C0F\u70AE1", 3370, 100);
temp_mc2 = _root.enemysAction05("\u5FB7\u519B\u9A71\u9010\u8230_\u5C0F\u70AE1", 3459, 59);
temp_mc3 = _root.enemysAction05("\u5FB7\u519B\u9A71\u9010\u8230_\u5C0F\u70AE1", 3550, 30);
temp_mc1.friend1 = temp_mc2;
temp_mc1.friend2 = temp_mc3;
temp_mc2.friend1 = temp_mc1;
temp_mc2.friend2 = temp_mc3;
temp_mc3.friend1 = temp_mc1;
temp_mc3.friend2 = temp_mc2;
var i = 1;
while (i <= 3) {
this["temp_mc" + i].allow_area_array = _root[(("allow_area_array_" + _root.stages) + "_") + _root.stages_section];
this["temp_mc" + i].dieEvents = function () {
if (this.friend1.dead and this.friend2.dead) {
var _local3 = true;
} else if (this.friend1.dead and (this.friend2.dead == undefined)) {
var _local3 = true;
} else if ((this.friend1.dead == undefined) and this.friend2.dead) {
var _local3 = true;
} else if ((this.friend1.dead == undefined) and (this.friend2.dead == undefined)) {
var _local3 = true;
}
if (_local3) {
_root.add_weapon(this, "M");
_root[(("allow_area_array_" + _root.stages) + "_") + _root.stages_section] = this.allow_area_array;
}
};
i++;
}
_root[(("allow_area_array_" + _root.stages) + "_") + _root.stages_section] = -3205;
Symbol 2067 MovieClip [stage1_bg] Frame 31
_root.add_object("1-03-\u822A\u6BCD\u8E0F\u677F", 3843, 69);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 3818, 175, 5, 0, 49, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 3866, 175, 5, 0, 49, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 3889, 103, 500, 0, 0, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 3944, 99, 500, 0, 0, 100);
Symbol 2067 MovieClip [stage1_bg] Frame 32
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 4021, 96, 500, 0, 0, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 4095, 92, 3, 0, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 4165, 92, 3, 0, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 4250, 95, 3, 0, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 4138, 182, 3, 0, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 4213, 181, 3, 0, 1, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 4253, 181, 3, 0, 1, 100);
Symbol 2067 MovieClip [stage1_bg] Frame 33
temp_mc1 = _root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 4610, 227, 0, 1, 49, 100);
temp_mc2 = _root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 4645, 227, 9999, 0, 0, 100);
temp_mc3 = _root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 4700, 158, 9999, 2, 0, 100);
temp_color = [0.824697183686884, 0.783755772313774, -0.608452956000658, 0, -50, 0.000747695393677947, 0.772793422051606, 0.226458882554716, 0, -50, 0.641926894284263, -0.20214342598035, 0.560216531696088, 0, -50, 0, 0, 0, 1, 0];
temp_mc1.friend1 = temp_mc2;
temp_mc1.friend2 = temp_mc3;
temp_mc2.friend1 = temp_mc1;
temp_mc2.friend2 = temp_mc3;
temp_mc3.friend1 = temp_mc1;
temp_mc3.friend2 = temp_mc2;
var i = 1;
while (i <= 3) {
_root.change_color(this["temp_mc" + i], temp_color);
this["temp_mc" + i].blood = this["temp_mc" + i].blood * 30;
this["temp_mc" + i].allow_area_array = _root[(("allow_area_array_" + _root.stages) + "_") + _root.stages_section];
this["temp_mc" + i].dieEvents = function () {
if (this.friend1.dead and this.friend2.dead) {
var _local3 = true;
} else if (this.friend1.dead and (this.friend2.dead == undefined)) {
var _local3 = true;
} else if ((this.friend1.dead == undefined) and this.friend2.dead) {
var _local3 = true;
} else if ((this.friend1.dead == undefined) and (this.friend2.dead == undefined)) {
var _local3 = true;
}
if (_local3) {
_root[(("allow_area_array_" + _root.stages) + "_") + _root.stages_section] = this.allow_area_array;
_root.remove_objects();
_root.add_object("\u7B2C\u4E00\u5173_\u6F5C\u8247", 4845, 38);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 5188, 126, 500, 0, 0, 100);
_root.enemysAction01("\u654C\u4EBA_\u666E\u901A\u58EB\u5175", 5306, 195, 500, 0, 0, 100);
_root.add_weapon(this, "B");
}
};
i++;
}
_root[(("allow_area_array_" + _root.stages) + "_") + _root.stages_section] = -4443;
_root.blocksAction("\u573A\u666F_\u6728\u7BB1", this._x + 118, this._y + 183, 5).dieEvents = function () {
_root.add_food(this, "food5");
};
Symbol 2067 MovieClip [stage1_bg] Frame 36
_root.enemysAction06("\u5FB7\u519B_\u5DE8\u578B\u8F70\u70B8\u673A", 5800, -40);
Symbol 2073 Button
on (release) {
getURL ("http://www.miniclip.com/games/commando/en/");
}