Frame 1
function loadingAction() {
this.attachMovie("loading_clip", "loading_clip", this.getNextHighestDepth());
loading_clip.onEnterFrame = function () {
var _local3 = getBytesLoaded();
var _local2 = getBytesTotal();
var _local4 = int((_local3 / _local2) * 100);
this.bar._xscale = _local4 + (random(2) / 2);
if (_local3 == _local2) {
gotoAndStop ("gameframe");
this.removeMovieClip();
}
};
}
loadingAction();
Frame 22
function play_soundAction(what) {
if (game_sounds) {
this[what].start();
}
}
function play_music(what) {
if (game_sounds) {
this[what].start(0, 10000);
}
}
function set_keyAction(code) {
var _local1 = 0;
while (_local1 < keycodes.length) {
if (keycodes[_local1][1] == code) {
return(keycodes[_local1][0]);
}
_local1++;
}
return("\u975E\u6CD5\u952E\u4F4D");
}
function set_current_key() {
start_end.clip.clip.wcode.what = set_keyAction(Wcode);
start_end.clip.clip.scode.what = set_keyAction(Scode);
start_end.clip.clip.acode.what = set_keyAction(Acode);
start_end.clip.clip.dcode.what = set_keyAction(Dcode);
start_end.clip.clip.jcode.what = set_keyAction(Jcode);
start_end.clip.clip.kcode.what = set_keyAction(Kcode);
start_end.clip.clip.lcode.what = set_keyAction(Lcode);
}
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;
start_end.clip.clip.wcode.what = set_keyAction(org_Wcode);
start_end.clip.clip.scode.what = set_keyAction(org_Scode);
start_end.clip.clip.acode.what = set_keyAction(org_Acode);
start_end.clip.clip.dcode.what = set_keyAction(org_Dcode);
start_end.clip.clip.jcode.what = set_keyAction(org_Jcode);
start_end.clip.clip.kcode.what = set_keyAction(org_Kcode);
start_end.clip.clip.lcode.what = set_keyAction(org_Lcode);
start_set_key(1, "wcode");
}
function start_set_key(order, which) {
end_set_key();
key_set_order = order;
key_set_pressed = false;
keyListener = new Object();
keyListener.onKeyDown = function () {
set_this_key(Key.getCode());
};
keyListener.onKeyUp = function () {
set_next_key(Key.getCode());
};
Key.addListener(keyListener);
start_end.clip.clip.light._visible = 1;
start_end.clip.clip.light._y = start_end.clip.clip[which]._y;
}
function end_set_key() {
start_end.clip.clip.light._visible = 0;
Key.removeListener(keyListener);
delete keyListener;
}
function set_this_key(code) {
if (!key_set_pressed) {
if (key_set_order == 1) {
Wcode = code;
start_end.clip.clip.wcode.what = set_keyAction(code);
} else if (key_set_order == 2) {
Scode = code;
start_end.clip.clip.scode.what = set_keyAction(code);
} else if (key_set_order == 3) {
Acode = code;
start_end.clip.clip.acode.what = set_keyAction(code);
} else if (key_set_order == 4) {
Dcode = code;
start_end.clip.clip.dcode.what = set_keyAction(code);
} else if (key_set_order == 5) {
Jcode = code;
start_end.clip.clip.jcode.what = set_keyAction(code);
} else if (key_set_order == 6) {
Kcode = code;
start_end.clip.clip.kcode.what = set_keyAction(code);
} else if (key_set_order == 7) {
Lcode = code;
start_end.clip.clip.lcode.what = set_keyAction(code);
}
key_set_pressed = true;
}
}
function set_next_key(code) {
if (set_keyAction(code) != "\u975E\u6CD5\u952E\u4F4D") {
if (key_set_order <= 6) {
key_set_order++;
start_end.clip.clip.light._y = start_end.clip.clip.light._y + 38.5;
} else {
end_set_key();
}
}
key_set_pressed = false;
}
function check_correct() {
if (start_end.clip.clip.wcode.what == "\u975E\u6CD5\u952E\u4F4D") {
start_set_key(1, "wcode");
return("wcode");
}
if (start_end.clip.clip.scode.what == "\u975E\u6CD5\u952E\u4F4D") {
start_set_key(2, "scode");
return("scode");
}
if (start_end.clip.clip.acode.what == "\u975E\u6CD5\u952E\u4F4D") {
start_set_key(3, "acode");
return("acode");
}
if (start_end.clip.clip.dcode.what == "\u975E\u6CD5\u952E\u4F4D") {
start_set_key(4, "dcode");
return("dcode");
}
if (start_end.clip.clip.jcode.what == "\u975E\u6CD5\u952E\u4F4D") {
start_set_key(5, "jcode");
return("jcode");
}
if (start_end.clip.clip.kcode.what == "\u975E\u6CD5\u952E\u4F4D") {
start_set_key(6, "kcode");
return("kcode");
}
if (start_end.clip.clip.lcode.what == "\u975E\u6CD5\u952E\u4F4D") {
start_set_key(7, "lcode");
return("lcode");
}
var _local3 = [Wcode, Scode, Acode, Dcode, Jcode, Kcode, Lcode];
var _local4 = ["wcode", "scode", "acode", "dcode", "jcode", "kcode", "lcode"];
var _local1 = 0;
while (_local1 < (_local3.length - 1)) {
var _local2 = _local1 + 1;
while (_local2 < _local3.length) {
if (_local3[_local1] == _local3[_local2]) {
start_set_key(_local1 + 1, _local4[_local1]);
return(_local4[_local1]);
}
_local2++;
}
_local1++;
}
return(true);
}
function moveAction(who, speed) {
var _local6 = new Object();
_local6.x = who._x;
_local6.y = who._y;
main.localToGlobal(_local6);
if (((_local6.x + speed) > 10) and ((_local6.x + speed) < 550)) {
var _local2 = false;
var _local4 = (who._x + main._x) + speed;
if (who.states != "jump") {
var _local3 = (who._y + main._y) - (who.heights / 3);
} else {
var _local3 = who._y + main._y;
}
for (grounds in _root.main.bg) {
if (_root.main.bg[grounds].g.hitTest(_local4, _local3, true)) {
_local2 = true;
break;
}
if (_root.main.bg[grounds].d.hitTest(_local4, _local3, true)) {
_local2 = true;
break;
}
}
for (grounds in _root.main.objects) {
if (_root.main.objects[grounds].can_block) {
if (_root.main.objects[grounds].g.hitTest(_local4, _local3, true)) {
if (who.No != _root.main.objects[grounds].No) {
_local2 = true;
break;
}
}
}
}
for (what in _root.main.enemys) {
if (_root.main.enemys[what].can_block) {
if (_root.main.enemys[what].g != undefined) {
if (_root.main.enemys[what].g.hitTest(_local4, _local3, true)) {
_local2 = true;
break;
}
}
}
}
if (!_local2) {
who._x = who._x + speed;
}
} else if (Math.abs(_local6.x - 275) > 325) {
player_born();
}
adjustAction1(who);
}
function adjustAction1(who) {
var _local4 = false;
for (grounds in _root.main.objects) {
if (_root.main.objects[grounds].hitTest(who._x + main._x, who._y + main._y, true)) {
if (who.No != _root.main.objects[grounds].No) {
adjustAction2(who, _root.main.objects[grounds].g);
_local4 = true;
break;
}
}
}
var _local3 = false;
if (!_local4) {
for (grounds in _root.main.bg) {
if (_root.main.bg[grounds].d.hitTest(who._x + main._x, who._y + main._y, true)) {
player_die(who, _root.main.bg[grounds].d.type);
_local3 = true;
break;
}
if (_root.main.bg[grounds].hitTest(who._x + main._x, who._y + main._y, true)) {
if (_root.main.bg[grounds].g != undefined) {
adjustAction2(who, _root.main.bg[grounds].g);
_local3 = true;
break;
}
}
}
}
if ((!_local4) and (!_local3)) {
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) {
who.gotoAndStop((who.updown + "_") + who.lright);
var _local1 = new Object();
_local1.x = who._x;
_local1.y = who._y;
main.localToGlobal(_local1);
if ((_local1.x >= (50 - speedx)) and (_local1.x <= (490 - speedx))) {
if ((_local1.y > (30 - speedy)) and (_local1.y < (380 - speedy))) {
who._x = who._x + speedx;
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 add_object(what, temp_x, temp_y) {
for (grounds in _root.main.objects) {
var _local2 = new Object();
_local2.x = main.objects[grounds]._x;
_local2.y = main.objects[grounds]._y;
main.localToGlobal(_local2);
if (_local2.x < -280) {
main.objects[grounds].removeMovieClip();
}
}
var _local3 = main.objects.getNextHighestDepth();
main.objects.attachMovie(what, (what + "_") + _local3, _local3);
main.objects[(what + "_") + _local3]._x = temp_x;
main.objects[(what + "_") + _local3]._y = temp_y;
}
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 (i in effect_clip) {
effect_clip[i].remove_me();
}
}
}
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 == "man_fly") {
gameControl03(who);
} else if (who.my_type == "gun") {
gameControl04(who);
}
}
if (game_testing) {
if (Key.isDown(37)) {
_root.main._x = _root.main._x - 5;
trace((((main.player._x + " ") + main._x) + " ") + main._y);
} else if (Key.isDown(39)) {
_root.main._x = _root.main._x + 5;
trace((((main.player._x + " ") + main._x) + " ") + main._y);
} else if (Key.isDown(38)) {
_root.main._y = _root.main._y - 5;
trace((((main.player._x + " ") + main._x) + " ") + main._y);
} else if (Key.isDown(40)) {
_root.main._y = _root.main._y + 5;
trace((((main.player._x + " ") + main._x) + " ") + main._y);
} else if (Key.isDown(32)) {
trace((main.objects._xmouse + " ") + main.objects._ymouse);
} else if (Key.isDown(90)) {
for (grounds in _root.main.bg) {
_root.main.bg[grounds].g._visible = 1;
}
} else if (Key.isDown(88)) {
for (grounds in _root.main.bg) {
_root.main.bg[grounds].g._visible = 0;
}
}
}
}
function gameControl01(who) {
if (Key.isDown(Scode)) {
key_S_Action(who);
} else {
normalAction_S(who);
if (Key.isDown(Wcode)) {
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;
}
if (Key.isDown(Kcode)) {
if (!Kcode_pressed) {
Kcode_pressed = true;
key_K_Action2(who);
}
} else {
Kcode_pressed = false;
}
if (Key.isDown(Lcode)) {
if (!Lcode_pressed) {
Lcode_pressed = true;
key_L_Action2(who);
}
} else {
Lcode_pressed = false;
}
moveAction2(who, who.speedx, who.speedy);
}
function gameControl03(who) {
if (Key.isDown(Scode)) {
key_S_Action3(who);
} else {
normalAction_S3(who);
if (Key.isDown(Wcode)) {
key_W_Action3(who);
} else {
normalAction_W3(who);
}
}
if (Key.isDown(Acode)) {
key_AD_Action3(who, -100);
} else if (Key.isDown(Dcode)) {
key_AD_Action3(who, 100);
} else {
normalAction_AD3(who);
}
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;
}
if (Key.isDown(Lcode)) {
if (!Lcode_pressed) {
Lcode_pressed = true;
key_L_Action3(who);
}
} else {
Lcode_pressed = false;
}
moveAction2(who, who.speedx, who.speedy);
}
function gameControl04(who) {
if (Key.isDown(Acode)) {
key_AD_Action4(who, -100);
} else if (Key.isDown(Dcode)) {
key_AD_Action4(who, 100);
} else {
normalAction_AD4(who);
}
if (Key.isDown(Jcode)) {
if (!Jcode_pressed) {
Jcode_pressed = true;
key_J_Action4(who);
}
} else {
Jcode_pressed = false;
}
if (Key.isDown(Kcode)) {
if (!Kcode_pressed) {
Kcode_pressed = true;
key_K_Action4(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 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 {
gotoFrame(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 (!Key.isDown(Wcode)) {
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 (!Key.isDown(Wcode)) {
who.gun_direction = "straight";
gotoFrame(who, "up", who.gun_type + "_jump");
}
} else if (who.states == "crouch") {
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 (!Key.isDown(Wcode)) {
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 (enemy in main.enemys) {
if (main.enemys[enemy].g.hitTest(who)) {
if (main.enemys[enemy].can_kill) {
who.near = true;
break;
}
}
}
if (who.near) {
if (who.states == "crouch") {
forceFrame(who, "up", "attack_crouch1");
} else {
forceFrame(who, "up", "attack_stand" + (random(2) + 1));
}
} 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;
}
}
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") {
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;
}
function key_AD_Action2(who, lright) {
who.lright = lright;
}
function normalAction_WS2(who) {
who.updown = "NA";
}
function normalAction_AD2(who) {
who.lright = "NA";
}
function key_J_Action2(who) {
}
function key_K_Action2(who) {
}
function key_L_Action2(who) {
}
function key_W_Action3(who) {
}
function key_S_Action3(who) {
}
function key_AD_Action3(who, directions) {
}
function normalAction_W3(who) {
}
function normalAction_S3(who) {
}
function normalAction_AD3(who) {
}
function key_J_Action3(who) {
}
function key_K_Action3(who) {
}
function key_L_Action3(who) {
}
function key_S_Action4(who) {
}
function key_AD_Action4(who, directions) {
}
function normalAction_S4(who) {
}
function normalAction_AD4(who) {
}
function key_J_Action4(who) {
}
function key_K_Action4(who) {
}
function player_born() {
if (game_life > 1) {
game_life--;
adjust_life();
main.player.removeMovieClip();
if (this[(("stg_type_" + stages) + "_") + stages_section] == "man") {
var _local5 = false;
var _local4 = 50;
while (_local4 <= 540) {
var _local3 = 100;
while (_local3 <= 380) {
for (grounds in _root.main.objects) {
if (_root.main.objects[grounds].g.hitTest(_local4, _local3, true)) {
if (_root.main.objects[grounds].g.hitTest(_local4 - 25, _local3, true)) {
if (_root.main.objects[grounds].g.hitTest(_local4 + 25, _local3, true)) {
_local5 = true;
break;
}
}
}
}
for (grounds in _root.main.bg) {
if (_root.main.bg[grounds].g.hitTest(_local4, _local3, true)) {
if (_root.main.bg[grounds].g.hitTest(_local4 - 25, _local3, true)) {
if (_root.main.bg[grounds].g.hitTest(_local4 + 25, _local3, true)) {
_local5 = true;
break;
}
}
}
}
if (_local5) {
break;
}
_local3 = _local3 + 10;
}
if (_local5) {
break;
}
_local4 = _local4 + 10;
}
main.attachMovie("player_life", "player", main.getNextHighestDepth());
main.player._x = _local4 - main._x;
main.player._y = 50 - main._y;
main.player.dead = true;
main.player.speed = 40;
main.player.onEnterFrame = function () {
this._y = this._y + this.speed;
var _local3 = false;
for (grounds in _root.main.objects) {
if (_root.main.objects[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
_local3 = true;
_root.main.objects[grounds].startAction();
add_player("man", this._x, this._y);
}
}
if (!_local3) {
for (grounds in _root.main.bg) {
if (_root.main.bg[grounds].g.hitTest(this._x + main._x, (this._y + this.speed) + main._y, true)) {
add_player("man", this._x, this._y);
}
}
}
};
} else if (this[(("stg_type_" + stages) + "_") + stages_section] == "plane") {
}
} else {
game_over();
}
}
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 = 9;
} else if (what == "plane") {
main.attachMovie("player_plane", "player", main.getNextHighestDepth());
main.player.player_speed = 9;
}
main.player._x = temp_x;
main.player._y = temp_y;
main.player.gun_type = "pistol";
main.player.gun = 0;
main.player.gun_shoot = "single";
slug_left = 999999 /* 0x0F423F */;
adjust_amr(slug_left);
bomb_left = 10;
adjust_bomb(bomb_left);
main.player.shooting = false;
main.player.ready = true;
main.player.heights = main.player._height;
main.player.my_type = what;
main.player.dead = false;
main.player.unbreak = true;
main.player.No = 0;
main.player.near = false;
control_able = true;
main.player.unbreak_start = 0;
main.player.onEnterFrame = function () {
this.unbreak_start++;
if ((this.unbreak_start % 18) <= 9) {
this._alpha = 50;
} else {
this._alpha = 100;
}
if (this.unbreak_start > 60) {
this._alpha = 100;
delete this.onEnterFrame;
delete this.unbreak_start;
main.player.unbreak = false;
}
};
}
function player_die(who, how) {
if (!boss_killed) {
if (!who.dead) {
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;
who.up.gotoAndStop("die02");
play_soundAction("\u4E3B\u89D2\u6B7B\u4EA1");
} else if (((how == "shoot") and (!who.unbreak)) and (!game_testing)) {
control_able = false;
who.dead = true;
who.up.gotoAndStop("die01");
play_soundAction("\u4E3B\u89D2\u6B7B\u4EA1");
} else if (how == "h2so4") {
control_able = false;
who.dead = true;
who.up.gotoAndStop("die04");
play_soundAction("\u843D\u6C34");
}
game_prisoner = 0;
adjust_prisoner();
}
}
}
function jump_Action(where, lives) {
where.onEnterFrame = function () {
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) > 500) {
player_born();
this._parent.removeMovieClip();
return(undefined);
}
if (this.y_speed <= 0) {
var _local3 = false;
for (grounds in _root.main.objects) {
if (_root.main.objects[grounds].g.hitTest(this._parent._x + _root.main._x, (this._parent._y + _root.main._y) - this.y_speed, true)) {
_local3 = true;
delete this.onEnterFrame;
if (lives) {
_root.landAction(this._parent);
_root.main.objects[grounds].startAction();
} else {
this.clip.play();
this.clip.can_play = true;
}
break;
}
}
if (!_local3) {
for (grounds in _root.main.bg) {
if (_root.main.bg[grounds].g.hitTest(this._parent._x + _root.main._x, (this._parent._y + _root.main._y) - this.y_speed, true)) {
delete this.onEnterFrame;
if (lives) {
_root.landAction(this._parent);
} else {
this.clip.play();
this.clip.can_play = true;
}
break;
}
}
}
}
};
}
function landAction(who) {
who.up.gotoAndStop(_parent.gun_type + "_Stand");
who.down.gotoAndStop("stand");
who.shooting = false;
who.ready = true;
}
function kill_player(who) {
who.removeMovieClip();
}
function get_shoot_point(which) {
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 attackAction(which) {
for (enemy in _root.main.enemys) {
if (_root.main.enemys[enemy].g.hitTest(which)) {
_root.main.enemys[enemy].to_die("shoot", 5);
play_soundAction("\u9505\u6253\u4E2D");
game_score = game_score + 350;
adjust_score();
var _local2 = main.getNextHighestDepth();
main.attachMovie("attack_effect", "attack_effect" + _local2, _local2);
main["attack_effect" + _local2]._x = get_shoot_point(which)[0];
main["attack_effect" + _local2]._y = get_shoot_point(which)[1];
}
}
}
function shootAction() {
if (slug_left > 0) {
var _local3 = main.attachMovie("shoot" + main.player.gun, "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 _local7 = Math.abs(main.player._xscale) / main.player._xscale;
var _local6 = main.player.gun_direction;
if (_local6 == "straight") {
_local3._rotation = Math.abs(_local7 - 1) * 90;
} else if (_local6 == "up") {
_local3._rotation = -90;
} else if (_local6 == "down") {
_local3._rotation = 90;
} else if (_local7 == 1) {
if (_local6 > 0) {
_local3._rotation = _local6;
} else if (_local6 < 0) {
_local3._rotation = _local6;
}
} else if (_local7 == -1) {
if (_local6 > 0) {
_local3._rotation = 180 - _local6;
} else if (_local6 < 0) {
_local3._rotation = -180 - _local6;
}
}
if (main.player.gun == 0) {
_local3.kill_num = 1;
if (game_testing) {
_local3.kill_num = _local3.kill_num * 500;
}
} else if (main.player.gun == 1) {
_local3.kill_num = 1;
} else if (main.player.gun == 2) {
_local3.kill_num = 0;
_local3.exploding = function () {
this.power = 50;
do {
if ((in _root.main.enemys) == null) {
break;
}
enemy = in _root.main.enemys;
if (_root.main.enemys[enemy].g.hitTest(this)) {
this.power = this.power - 12;
_root.main.enemys[enemy].to_die("blow", 12);
_root.game_score = _root.game_score + 150;
_root.adjust_score();
}
} while (this.power > 0);
do {
} while ("exploding" != null);
};
} else if (main.player.gun == 3) {
_local3.kill_num = 35;
main.attachMovie("shine_cover", "shine_cover", main.getNextHighestDepth());
main.shine_cover._x = -main._x;
main.shine_cover._y = -main._y;
}
_local3.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 if (main.player.up.clip.point != undefined) {
this._x = get_shoot_point(main.player.up.clip.point)[0] + _local5;
this._y = get_shoot_point(main.player.up.clip.point)[1];
}
} else {
this.removeMovieClip();
}
if (this.can_go) {
if (this.can_go) {
var _local4 = false;
if (this.type <= 2) {
for (grounds in _root.main.bg) {
if (_root.main.bg[grounds].d.hitTest(this._x + main._x, this._y + main._y, true)) {
adjustAction3(this, _root.main.bg[grounds].g);
this._rotation = 0;
this.gotoAndStop(main.bg[grounds].d.type);
_local4 = true;
delete this.onEnterFrame;
break;
}
if (_root.main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
adjustAction3(this, _root.main.bg[grounds].g);
this.gotoAndPlay("fired");
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");
}
_local4 = true;
delete this.onEnterFrame;
break;
}
}
}
if (this.type == 2) {
this.speed = this.speed + 1;
}
var _local3 = false;
if (!_local4) {
for (enemy in _root.main.enemys) {
if (this.type <= 2) {
if (_root.main.enemys[enemy].g.hitTest(this._x + main._x, this._y + main._y, true)) {
_root.main.enemys[enemy].to_die("shoot", this.kill_num);
_local3 = true;
game_score = game_score + 100;
adjust_score();
break;
}
} else if (this.type == 3) {
if (_root.main.enemys[enemy].g.hitTest(this)) {
_root.main.enemys[enemy].to_die("fly", this.kill_num, this._rotation);
_local3 = true;
game_score = game_score + 200;
adjust_score();
}
}
}
} else if (this.type == 2) {
this._rotation = 0;
}
if (_local3) {
this.gotoAndStop("hit");
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");
}
delete this.onEnterFrame;
if (this.type == 2) {
this._rotation = 0;
}
}
}
}
};
adjust_amr(--slug_left);
if (_local3.type == 0) {
play_soundAction("\u624B\u67AA\u53D1\u5C04");
} else if (_local3.type == 1) {
play_soundAction("H\u5F39\u53D1\u5C04");
} else if (_local3.type == 2) {
play_soundAction("R\u5F39\u53D1\u5C04");
} else if (_local3.type == 3) {
play_soundAction("S\u5F39\u53D1\u5C04");
}
}
}
function throwAction() {
if (bomb_left > 0) {
var _local4 = main.attachMovie("bomb01", "bomb01" + bomb_left, main.getNextHighestDepth());
var _local6 = new Object();
_local6.x = main.player.up.clip.point._x;
_local6.y = main.player.up.clip.point._y;
main.player.up.clip.localToGlobal(_local6);
_local4._x = _local6.x - main._x;
_local4._y = _local6.y - main._y;
_local4.x_direciton = Math.abs(main.player._xscale) / main.player._xscale;
if ((_local4.x_direciton * active_object_speed) > 0) {
var _local7 = active_object_speed;
} else {
var _local7 = -active_object_speed;
}
_local4.x_speed = (12 + ((main.player.player_speed * main.player.speed_rate) / 2)) + _local7;
_local4.y_speed = -20;
_local4.y_add = 4;
_local4.jumped = 0;
_local4.power = 60;
_local4.exploding = function () {
do {
if ((in _root.main.enemys) == null) {
break;
}
enemy = in _root.main.enemys;
if (_root.main.enemys[enemy].g.hitTest(this)) {
this.power = this.power - 20;
_root.main.enemys[enemy].to_die("blow", 20);
_root.game_score = _root.game_score + 200;
_root.adjust_score();
}
} while (this.power > 0);
do {
} while ("exploding" != null);
};
_local4.onEnterFrame = function () {
if ((this._x > (-main._x)) and (this._x < (560 - main._x))) {
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 _local3 = false;
for (grounds in _root.main.bg) {
if (_root.main.bg[grounds].d.hitTest(this._x + main._x, this._y + main._y, true)) {
adjustAction2(this, main.bg[grounds].d);
this._rotation = 0;
this.gotoAndStop(main.bg[grounds].d.type);
_local3 = true;
delete this.onEnterFrame;
break;
}
if (_root.main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
if (!_root.main.bg[grounds].g.hitTest(this._x + main._x, (this._y + main._y) - this._height, true)) {
adjustAction2(this, main.bg[grounds].g);
if (this.jumped >= 1) {
this._rotation = 0;
this.gotoAndStop("explode");
play_soundAction("\u624B\u96F7\u7206\u70B8");
_local3 = 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");
_local3 = true;
delete this.onEnterFrame;
break;
}
}
var _local4 = false;
if (!_local3) {
for (enemy in _root.main.enemys) {
if (_root.main.enemys[enemy].g.hitTest(this.g)) {
this._rotation = 0;
this.gotoAndStop("explode");
play_soundAction("\u624B\u96F7\u7206\u70B8");
_local4 = true;
delete this.onEnterFrame;
break;
}
}
}
};
adjust_bomb(--bomb_left);
}
}
function get_map_infor(stg, sec, type, direct, array, width, end) {
this[(("stg_type_" + stg) + "_") + sec] = type;
this[(("stg_direct_" + stg) + "_") + sec] = direct;
this[(("stg_array_" + stg) + "_") + sec] = array;
this[(("stg_width_" + stg) + "_") + sec] = width;
this[(("stg_end_" + stg) + "_") + sec] = end;
}
function draw_map_start(stg, sec) {
clean_stage();
main.player._x = 10;
main.player._y = 300;
main._x = 0;
main._y = 0;
main.bg.attachMovie((("bg_stage" + stg) + "_") + sec, "bg1", main.bg.getNextHighestDepth());
}
function change_sence() {
if (stages_section != this["stg_array_" + stages]) {
if (this.pass_cover == undefined) {
this.attachMovie("pass_cover", "pass_cover", this.getNextHighestDepth());
}
}
}
function draw_map(stg, sec, which) {
if (stg == 1) {
draw_map01(which);
} else if (stg == 2) {
if (sec == 1) {
draw_map01(which);
} else if (sec == 2) {
draw_map02(2);
}
} else if (stg == 3) {
draw_map01(which);
}
modify_XY(main._x, main._y);
effect_Action(main._x, main._y);
}
function draw_map01(which) {
if (which != undefined) {
var _local3 = new Object();
_local3.x = which._x;
_local3.y = which._y;
which._parent.localToGlobal(_local3);
if (main._x > (-this[(("stg_width_" + stages) + "_") + stages_section])) {
if (_local3.x >= 200) {
if (main._x > this["allow_area_array" + stages]) {
if (active_map_drawer == "main.player") {
if ((main.player.player_speed * main.player.speed_rate) != 0) {
main._x = main._x - (main.player.player_speed * main.player.speed_rate);
} else {
main._x = main._x - 5;
}
} else {
main._x = main._x - active_object_speed;
}
}
}
} else {
main._x = -this[(("stg_width_" + stages) + "_") + stages_section];
if (_local3.x > this[(("stg_end_" + stages) + "_") + stages_section]) {
change_sence();
}
}
do {
if ((in _root.main.bg) == null) {
break;
}
grounds = in _root.main.bg;
_local3 = new Object();
_local3.x = main.bg[grounds]._x;
_local3.y = main.bg[grounds]._y;
main.bg.localToGlobal(_local3);
} while (!draw_map_a(_local3.x, _local3.y, grounds));
do {
} while (() != null);
}
}
function draw_map02(speed) {
main._x = main._x - speed;
if (main.player != undefined) {
main.player._x = main.player._x + speed;
}
do {
if ((in _root.main.bg) == null) {
break;
}
grounds = in _root.main.bg;
var _local2 = new Object();
_local2.x = main.bg[grounds]._x;
_local2.y = main.bg[grounds]._y;
main.bg.localToGlobal(_local2);
} while (!draw_map_b(_local2.x, grounds));
do {
} while (() != null);
}
function adjust_map_a(poz_x, poz_y) {
var _local2 = this[(("stg_direct_" + stages) + "_") + stages_section];
if (_local2 == 0) {
if (poz_x < -50) {
return("remove");
}
if (poz_x <= 50) {
return("add");
}
} else if (_local2 == 1) {
if (poz_y < 350) {
return("remove");
}
if (poz_y <= 450) {
return("add");
}
}
}
function draw_map_a(poz_x, poz_y, grounds) {
if (adjust_map_a(poz_x, poz_y) == "remove") {
var _local2 = main.bg["bg" + (Number(grounds.slice(2)) - 1)];
if (_local2 != undefined) {
var _local3 = new Object();
_local3.x = _local2._x;
_local3.y = _local2._y;
_local2._parent.localToGlobal(_local3);
if ((Math.abs(_local3.x) > _local2._width) or (Math.abs(_local3.y) > _local2._height)) {
_local2.removeMovieClip();
return(true);
}
}
} else if (adjust_map_a(poz_x, poz_y) == "add") {
if (this[(("stg_array_" + stages) + "_") + stages_section] > stages_part) {
if (main.bg["bg" + (Number(grounds.slice(2)) + 1)] == undefined) {
stages_part++;
main.bg.attachMovie((("bg_stage" + stages) + "_") + stages_section, "bg" + stages_part, main.bg.getNextHighestDepth());
var _local4 = this[((("stg" + stages) + "_") + stages_section) + "_map_xy"][stages_part - 2];
main.bg["bg" + stages_part]._x = main.bg["bg" + (stages_part - 1)]._x + _local4[0];
main.bg["bg" + stages_part]._y = main.bg["bg" + (stages_part - 1)]._y + _local4[1];
main.bg["bg" + stages_part].gotoAndStop(stages_part);
return(true);
}
}
}
return(false);
}
function draw_map_b(poz_x, grounds) {
if (poz_x < -50) {
if (main.bg["bg" + (Number(grounds.slice(2)) - 1)] != undefined) {
main.bg["bg" + (Number(grounds.slice(2)) - 1)].removeMovieClip();
return(true);
}
} else if (poz_x <= 50) {
if (main.bg["bg" + (Number(grounds.slice(2)) + 1)] == undefined) {
stages_part++;
main.bg.attachMovie((("bg_stage" + stages) + "_") + stages_section, "bg" + stages_part, main.bg.getNextHighestDepth());
main.bg["bg" + stages_part]._x = 560 * (stages_part - 1);
main.bg["bg" + stages_part]._y = 0;
main.bg["bg" + stages_part].gotoAndStop(2 - (stages_part % 2));
return(true);
}
}
return(false);
}
function modify_XY(main_x, main_y) {
if (this[(("modify_XY_array" + stages) + "_") + stages_section] != undefined) {
var _local2 = 0;
while (_local2 < this[(("modify_XY_array" + stages) + "_") + stages_section].length) {
if (this[(("modify_XY_array" + stages) + "_") + stages_section][_local2][2] == false) {
if (main_x < this[(("modify_XY_array" + stages) + "_") + stages_section][_local2][0]) {
this[(("modify_XY_array" + stages) + "_") + stages_section][_local2][2] = true;
main_move_Y(0, this[(("modify_XY_array" + stages) + "_") + stages_section][_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) > 5) {
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 {
delete this.onEnterFrame;
}
};
}
function enemysAction02(who, x, y) {
var my_number = main.enemys.getNextHighestDepth();
var this_mc = main.enemys.attachMovie(who, who + my_number, my_number);
this_mc.blood = _root.game_level * 80;
this_mc.type = 7;
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.attacked = 0;
this_mc.dead = false;
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();
main.attachMovie("npc_shoot0" + this.type, "npc_shoot" + depth, depth);
main["npc_shoot" + depth]._x = get_shoot_point(this.point)[0];
main["npc_shoot" + depth]._y = get_shoot_point(this.point)[1];
main["npc_shoot" + depth].targeter = this.targeter;
main["npc_shoot" + depth].yspeed = 4 + Math.floor(_root.game_level);
main["npc_shoot" + depth].onEnterFrame = function () {
if (((this._x > (-main._x)) and (this._x < (560 - main._x))) and ((this._y > ((-main._y) - 200)) and (this._y < (600 - main._y)))) {
this.yspeed = this.yspeed + 0.25;
this._y = this._y + this.yspeed;
} else {
this.removeMovieClip();
}
var hit_ground = false;
for (grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
if (!main.bg[grounds].g.hitTest(this._x + main._x, (this._y + main._y) - this._height, true)) {
adjustAction2(this, main.bg[grounds].g);
this.gotoAndStop("explode");
play_soundAction("\u624B\u96F7\u7206\u70B8");
hit_ground = true;
delete this.onEnterFrame;
break;
}
}
}
var hit_enemys = false;
if (!hit_ground) {
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this)) {
this.gotoAndStop("explode");
play_soundAction("\u624B\u96F7\u7206\u70B8");
hit_enemys = true;
delete this.onEnterFrame;
player_die(this.target, "shoot");
}
}
}
};
};
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) {
this.fall();
} else {
this.body.gotoAndPlay("hit");
}
};
this_mc.fall = function () {
this.gotoAndPlay("die");
this.onEnterFrame = function () {
this._y = this._y + 15;
for (grounds in _root.main.bg) {
if (_root.main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
add_present(this);
this.deadAction();
break;
}
}
if (get_shoot_point(this)[1] > 650) {
this.deadAction();
}
};
};
this_mc.deadAction = function () {
this.dead = true;
delete this.onEnterFrame;
this.gotoAndPlay("explode");
play_soundAction("\u5927\u7206\u70B8");
if (this.dieEvents != undefined) {
this.dieEvents();
}
};
this_mc.moves();
return(this_mc);
}
function enemysAction03(who, x, y, moves) {
var my_number = main.enemys.getNextHighestDepth();
var this_mc = main.enemys.attachMovie(who, who + my_number, my_number);
this_mc.blood = _root.game_level * 100;
this_mc.type = 8;
this_mc._x = x;
this_mc._y = y;
this_mc.moves = moves;
this_mc.targeter = "_root.main.player";
this_mc.can_block = true;
this_mc.attacked = 0;
this_mc.dead = false;
this_mc.stand = function () {
if (this.frame != "stand") {
this.body.gotoAndPlay("stand");
}
this.shooting = false;
this.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target != undefined) {
if (Math.abs(this.target._x - this._x) > 350) {
if (this.moves) {
if (this.frame != "move") {
this.body.gotoAndPlay("move");
play_soundAction("\u5766\u514B\u8FD0\u884C");
}
enemy_move(this, (this.target._x - this._x) / 350);
}
} else {
this.shoot();
}
}
};
};
this_mc.get_blocked = function () {
this.stand();
};
this_mc.shoot = function () {
if (!this.shooting) {
if (!random(35)) {
delete this.onEnterFrame;
this.shooting = true;
this.body.gotoAndPlay("shoot");
play_soundAction("\u5766\u514B\u5C04\u51FB");
}
}
};
this_mc.shootAction = function () {
var depth = main.getNextHighestDepth();
main.attachMovie("npc_shoot0" + this.type, "npc_shoot" + depth, depth);
main["npc_shoot" + depth]._x = get_shoot_point(this.body.point)[0];
main["npc_shoot" + depth]._y = get_shoot_point(this.body.point)[1];
main["npc_shoot" + depth].targeter = this.targeter;
main["npc_shoot" + depth].onEnterFrame = function () {
if (((this._x > (-main._x)) and (this._x < (560 - main._x))) and ((this._y > ((-main._y) - 200)) and (this._y < (600 - main._y)))) {
this._x = this._x + this.speed;
} else {
this.removeMovieClip();
}
for (grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.gotoAndStop("hit");
play_soundAction("\u624B\u96F7\u7206\u70B8");
delete this.onEnterFrame;
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this)) {
this.gotoAndStop("hit");
play_soundAction("\u624B\u96F7\u7206\u70B8");
delete this.onEnterFrame;
player_die(this.target, "shoot");
}
}
};
};
this_mc.check_point = function () {
this.attacked++;
if ((this.attacked - Math.floor(game_level)) >= 1) {
this.attacked = 0;
} else {
this.shooting = true;
this.body.gotoAndPlay("shoot");
play_soundAction("\u5766\u514B\u5C04\u51FB");
}
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
add_present(this);
this.dead = true;
delete this.onEnterFrame;
this.gotoAndPlay("explode");
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else {
this.gotoAndPlay("hit");
}
};
this_mc.stand();
return(this_mc);
}
function enemysAction04(who, x, y) {
var my_number = main.enemys.getNextHighestDepth();
var this_mc = main.enemys.attachMovie(who, who + my_number, my_number);
this_mc.blood = _root.game_level * 2;
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.can_kill = true;
this_mc.dead = false;
this_mc.moves = function () {
this.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target != undefined) {
if ((this.target._x - this._x) > 0) {
this._xscale = 100;
} else {
this._xscale = -100;
}
this.gotoAndPlay("come");
play_soundAction("\u51FA\u6C34");
delete this.onEnterFrame;
}
};
};
this_mc.comes = function () {
this.onEnterFrame = function () {
if (((this._x > (-main._x)) and (this._x < (560 - main._x))) and ((this._y > ((-main._y) - 200)) and (this._y < (600 - main._y)))) {
this._x = this._x + (this._xscale / 20);
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this.g)) {
player_die(this.target, "kill");
}
}
for (grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.to_die("shoot", this.blood);
if (this.dieEvents != undefined) {
this.dieEvents();
}
delete this.onEnterFrame;
break;
}
}
} else {
this.removeMovieClip();
}
};
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.dead = true;
delete this.onEnterFrame;
this.gotoAndPlay("die");
play_soundAction("\u843D\u6C34");
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else {
this.gotoAndPlay("hit");
}
};
this_mc.moves();
return(this_mc);
}
function enemysAction05(who, x, y) {
var my_number = main.enemys.getNextHighestDepth();
var this_mc = main.enemys.attachMovie(who, who + my_number, my_number);
this_mc.blood = _root.game_level * 5;
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.dead = false;
this_mc.start_shoot = function () {
this.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.shooter.hitTest(this.target.g)) {
player_die(this.target, "shoot");
}
}
if (!random(50)) {
play_soundAction("\u7535\u7F51");
}
};
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.dead = true;
this.gotoAndPlay("explode");
} else {
this.gotoAndPlay("hit");
}
};
this_mc.stop_shoot = function () {
delete this.onEnterFrame;
};
this_mc.start_shoot();
return(this_mc);
}
function enemysAction06(who, x, y) {
var my_number = main.enemys.getNextHighestDepth();
var this_mc = main.enemys.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.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.g.hitTest(this.target.g)) {
player_die(this.target, "shoot");
this.to_die("blow", 20);
}
}
};
};
this_mc.to_die = function (how, much) {
this.dead = true;
delete this.onEnterFrame;
this.gotoAndPlay("explode");
play_soundAction("\u624B\u96F7\u7206\u70B8");
};
this_mc.stop_shoot = function () {
for (enemy in _root.main.enemys) {
if (_root.main.enemys[enemy].g.hitTest(this)) {
_root.main.enemys[enemy].to_die("blow", 20);
}
}
};
this_mc.start_shoot();
return(this_mc);
}
function enemysAction07(who, x, y, moves) {
var my_number = main.enemys.getNextHighestDepth();
var this_mc = main.enemys.attachMovie(who, who + my_number, my_number);
this_mc.blood = _root.game_level * 15;
this_mc.speed = -6;
this_mc.type = 9;
this_mc._x = x;
this_mc._y = y;
this_mc.moves = moves;
this_mc.targeter = "_root.main.player";
this_mc.can_kill = true;
this_mc.can_block = true;
this_mc.dead = false;
this_mc.eating = false;
this_mc.stand = function () {
this.eating = false;
this.gotoAndStop("stand");
this.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target.dead == false) {
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;
}
}
var temp1 = Math.abs(this._x - this.target._x);
var temp2 = Math.abs(this._y - this.target._y);
var distance = Math.sqrt((temp1 * temp1) + (temp2 * temp2));
if (distance > 1200) {
this.removeMovieClip();
} else if ((distance > 580) and (distance < 660)) {
if (!random(50)) {
this.move_me();
}
} else if ((distance < 580) and (distance > 200)) {
if (!random(70)) {
this.shoot();
}
if (!random(50)) {
this.move_me();
}
} else if ((distance < 200) and (distance > 60)) {
if (!random(50)) {
this.shoot();
}
if (!random(50)) {
this.move_me();
}
} else if (distance < 60) {
this.attack();
}
}
};
};
this_mc.move_me = function () {
if (this.moves) {
this.gotoAndStop("move");
this.onEnterFrame = function () {
var _local3 = (this.speed * Math.abs(this._xscale)) / this._xscale;
if (enemy_move(this, _local3)) {
if (!random(40)) {
this.stand();
}
var _local2 = new Object();
_local2.x = this._x;
_local2.y = this._y;
this._parent.localToGlobal(_local2);
if ((Math.abs(_local2.x) > 530) or (Math.abs(_local2.x) < 30)) {
this.stand();
}
if (Math.abs(this._x - this.target._x) < 60) {
this.stand();
}
if (this.target == undefined) {
this.stand();
}
}
};
}
};
this_mc.get_blocked = function () {
this.stand();
};
this_mc.shoot = function () {
var _local2 = new Object();
_local2.x = this._x;
_local2.y = this._y;
this._parent.localToGlobal(_local2);
if ((Math.abs(_local2.x - 280) < 280) and (Math.abs(_local2.y - 200) < 200)) {
delete this.onEnterFrame;
this.gotoAndPlay("shoot");
}
};
this_mc.shootAction = function (yspeed) {
var depth = main.enemys.getNextHighestDepth();
var shoot_mc = main.enemys.attachMovie("npc_shoot0" + this.type, "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._xscale = this._xscale;
shoot_mc.xspeed = (-this._xscale) / 50;
shoot_mc.yspeed = yspeed;
shoot_mc.blood = _root.game_level;
shoot_mc.can_kill = true;
shoot_mc.onEnterFrame = function () {
if (((this._x > (-main._x)) and (this._x < (560 - main._x))) and ((this._y > ((-main._y) - 200)) and (this._y < (600 - main._y)))) {
this._rotation = this._rotation + 30;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
} else {
this.removeMovieClip();
}
for (grounds in main.bg) {
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.to_die();
break;
}
}
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this._x + main._x, this._y + main._y, true)) {
this.to_die();
player_die(this.target, "shoot");
}
}
};
shoot_mc.to_die = function () {
this._rotation = 0;
delete this.onEnterFrame;
this.gotoAndStop("hit");
};
};
this_mc.attack = function () {
delete this.onEnterFrame;
this.gotoAndPlay("attack");
};
this_mc.attackAction = function () {
if (this.target != undefined) {
if (!this.target.unbreak) {
if (this.point.hitTest(this.target.g)) {
this.eating = true;
this.target.removeMovieClip();
this.gotoAndPlay("get");
}
}
}
};
this_mc.to_die = function (how, much) {
if (!this.eating) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.dead = true;
delete this.onEnterFrame;
this.gotoAndPlay("die");
play_soundAction("\u98DF\u4EBA\u82B1\u6B7B\u4EA1");
if (this.dieEvents != undefined) {
this.dieEvents();
}
}
}
};
this_mc.stand();
return(this_mc);
}
function enemysAction08(who, x, y, min_x, max_x, moves) {
var my_number = main.enemys.getNextHighestDepth();
var this_mc = main.enemys.attachMovie(who, "leader01 ", my_number);
this_mc.blood = _root.game_level * 25;
this_mc.speed = -3;
this_mc.min_x = min_x;
this_mc.max_x = max_x;
this_mc.moves = moves;
this_mc.temp_dir = 1;
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.dead = false;
this_mc.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
if (!random(50)) {
this.move_me();
}
};
};
this_mc.move_me = function () {
if (this.moves) {
this.gotoAndStop("move");
this.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target.dead == false) {
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;
}
}
}
if (this._x < this.min_x) {
this.temp_dir = -1;
} else if (this._x > this.max_x) {
this.temp_dir = 1;
}
var tempspeed = (this.speed * this.temp_dir);
if (enemy_move(this, tempspeed)) {
if (!random(40)) {
this.stand();
}
}
};
}
};
this_mc.get_blocked = function () {
this.stand();
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.dead = true;
delete this.onEnterFrame;
this.gotoAndStop("break");
}
};
this_mc.run_away = function () {
this._xscale = -100;
this.gotoAndStop("run");
this.onEnterFrame = function () {
var _local3 = (-this.speed) * 2.5;
enemy_move(this, _local3);
var _local2 = new Object();
_local2.x = this._x;
_local2.y = this._y;
this._parent.localToGlobal(_local2);
if (_local2.x > 600) {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
};
};
this_mc.stand();
return(this_mc);
}
function enemysAction09(who, x, y) {
var my_number = main.enemys.getNextHighestDepth();
var this_mc = main.enemys.attachMovie(who, "boss", my_number);
this_mc.blood = _root.game_level * 700;
this_mc._x = x;
this_mc._y = y;
this_mc.xspeed = 2;
this_mc.x_dir = 1;
this_mc.yspeed = 10;
this_mc.targeter = "_root.main.player";
this_mc.count_time = 150;
this_mc.myTransform1 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
this_mc.myTransform2 = {ra:0, rb:255, ga:0, gb:255, ba:0, bb:255, aa:100, ab:0};
this_mc.dead = false;
this_mc.fall = function () {
this.gotoAndPlay("fall");
this.onEnterFrame = function () {
this._y = this._y + this.yspeed;
this.yspeed = this.yspeed + 1;
for (grounds in _root.main.bg) {
if (_root.main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
delete this.onEnterFrame;
this.stand();
break;
}
}
};
};
this_mc.stand = function () {
if (this.dead) {
this.gotoAndPlay("explode");
} else {
this.gotoAndPlay("normal");
this.count_time = 15;
this.onEnterFrame = function () {
if ((this.count_time--) <= 0) {
delete this.onEnterFrame;
if (!random(3)) {
this.moves();
} else {
this.shoot();
}
}
};
}
};
this_mc.get_blocked = function () {
this.stand();
};
this_mc.moves = function () {
this.x_dir = this.x_dir * -1;
if (this.x_dir == -1) {
this.gotoAndPlay("walk_f");
} else {
this.gotoAndPlay("walk_b");
}
this.onEnterFrame = function () {
var _local2 = this.xspeed * this.x_dir;
enemy_move(this, _local2);
};
};
this_mc.shoot = function () {
this.onEnterFrame = function () {
delete this.onEnterFrame;
this.gotoAndPlay("shoot0" + (random(5) + 1));
};
};
this_mc.shootAction = function (type, nums) {
if (type == 1) {
this.point.onEnterFrame = function () {
this.target = eval (this._parent.targeter);
if (this.target.dead == false) {
if (this.hitTest(this.target.g)) {
player_die(this.target, "shoot");
}
}
};
} else if (type == 2) {
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("boss01_shoot02", "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.xspeed = nums * 2;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
play_soundAction("\u624B\u96F7\u7206\u70B8");
delete this.onEnterFrame;
};
shoot_mc.onEnterFrame = function () {
if (((this._x > (-main._x)) and (this._x < (560 - main._x))) and ((this._y > ((-main._y) - 200)) and (this._y < (600 - main._y)))) {
var temp = (Math.abs(this.xspeed) / this.xspeed);
this._rotation = this._rotation + (temp * 10);
enemy_move(this, this.xspeed);
} else {
this.removeMovieClip();
}
this.target = eval (this.targeter);
if (this.target != undefined) {
if (this.target.g.hitTest(this)) {
player_die(this.target, "shoot");
this.get_blocked();
}
}
};
} else if (type == 3) {
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("boss01_shoot02", "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;
this.target = eval (this.targeter);
if (this.target != undefined) {
var tempxspeed = (((-(shoot_mc._x - this.target._x)) / 35) + nums);
} else {
var tempxspeed = -1;
}
shoot_mc.xspeed = tempxspeed;
shoot_mc.yspeed = -3;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
play_soundAction("R\u5F39\u7206\u70B8");
delete this.onEnterFrame;
};
shoot_mc.onEnterFrame = function () {
if (((this._x > (-main._x)) and (this._x < (560 - main._x))) and ((this._y > ((-main._y) - 200)) and (this._y < (600 - main._y)))) {
this._rotation = this._rotation + 10;
this._x = this._x + this.xspeed;
this.yspeed = this.yspeed + 0.5;
this._y = this._y + this.yspeed;
} 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(this)) {
player_die(this.target, "shoot");
this.get_blocked();
}
}
};
} else if (type == 4) {
var depth = main.enemys.getNextHighestDepth();
var shoot_mc = main.enemys.attachMovie("boss01_shoot03", "npc_shoot" + depth, depth);
shoot_mc._x = get_shoot_point(this.point)[0];
shoot_mc._y = get_shoot_point(this.point)[1];
shoot_mc.can_kill = true;
tracerAction(shoot_mc, "_root.main.player", 2, 5);
}
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.dead = true;
delete this.onEnterFrame;
this.gotoAndPlay("explode");
play_soundAction("\u5927\u7206\u70B8");
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else {
this.shine();
}
};
this_mc.shine = function () {
if (this.shine_mc == undefined) {
this.createEmptyMovieClip("shine_mc", 1000);
}
this.shine_mc.count_time = 2;
var _local2 = new Color(this);
_local2.setTransform(this.myTransform2);
this.shine_mc.onEnterFrame = function () {
if ((this.count_time--) <= 0) {
var _local2 = new Color(this._parent);
_local2.setTransform(this._parent.myTransform1);
this.removeMovieClip();
}
};
};
this_mc.fall();
return(this_mc);
}
function tracerAction(tracer, targeter, speed, trace_rate) {
tracer.targeter = targeter;
tracer.speed = speed + (random(5) / 4);
tracer.borders = borders;
tracer.trace_rate = trace_rate;
tracer.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("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 target_rotation = (Math.atan2((this.target._y - 35) - this._y, this.target._x - this._x) / 0.01745);
if (Math.abs(target_rotation - this._rotation) > 5) {
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);
}
}
}
}
if (((this._x > (-main._x)) and (this._x < (560 - main._x))) and ((this._y > ((-main._y) - 200)) and (this._y < (600 - main._y)))) {
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(this)) {
player_die(this.target, "shoot");
this.get_blocked();
}
}
};
}
function enemysAction10(who, x, y) {
var my_number = main.enemys.getNextHighestDepth();
var this_mc = main.enemys.attachMovie(who, who + my_number, my_number);
this_mc.blood = _root.game_level;
this_mc.type = 10;
this_mc._x = x;
this_mc._y = y;
this_mc.targeter = "_root.main.player";
this_mc.can_kill = true;
this_mc.can_block = true;
this_mc.dead = false;
this_mc.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target.dead == false) {
var temp1 = Math.abs(this._x - this.target._x);
var temp2 = Math.abs(this._y - this.target._y);
var distance = Math.sqrt((temp1 * temp1) + (temp2 * temp2));
if (distance > 1200) {
this.removeMovieClip();
} else if (distance < 560) {
if (!random(50)) {
this.shoot();
}
}
}
};
};
this_mc.shoot = function () {
var _local2 = new Object();
_local2.x = this._x;
_local2.y = this._y;
this._parent.localToGlobal(_local2);
if ((Math.abs(_local2.x - 280) < 280) and (Math.abs(_local2.y - 200) < 200)) {
delete this.onEnterFrame;
this.gotoAndPlay("shoot");
}
};
this_mc.shootAction = function (yspeed) {
var _local3 = main.enemys.getNextHighestDepth();
var _local2 = main.enemys.attachMovie("npc_shoot" + this.type, "npc_shoot" + _local3, _local3);
_local2._x = get_shoot_point(this.point)[0];
_local2._y = get_shoot_point(this.point)[1];
_local2._rotation = -120;
tracerAction(_local2, "_root.main.player", 2, 3);
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.dead = true;
delete this.onEnterFrame;
if (how == "blow") {
this.gotoAndStop("die4");
play_soundAction("\u654C\u5175\u6B7B\u4EA104");
} else {
this.gotoAndStop("die" + (random(3) + 1));
play_soundAction("\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1));
}
if (this.dieEvents != undefined) {
this.dieEvents();
}
}
};
this_mc.stand();
return(this_mc);
}
function add_enemys01(who, its_x, its_y, attacks, type, moves) {
return(enemysAction01(who, its_x, its_y, attacks, type, moves));
}
function add_enemys02(who, its_x, its_y) {
return(enemysAction02(who, its_x, its_y));
}
function add_enemys03(who, its_x, its_y, moves) {
return(enemysAction03(who, its_x, its_y, moves));
}
function add_enemys04(who, its_x, its_y) {
return(enemysAction04(who, its_x, its_y));
}
function add_enemys05(who, its_x, its_y) {
return(enemysAction05(who, its_x, its_y));
}
function add_enemys06(who, its_x, its_y) {
return(enemysAction06(who, its_x, its_y));
}
function add_enemys07(who, its_x, its_y, moves) {
return(enemysAction07(who, its_x, its_y, moves));
}
function add_enemys08(who, its_x, its_y, min_x, max_x, moves) {
return(enemysAction08(who, its_x, its_y, min_x, max_x, moves));
}
function add_enemys09(who, its_x, its_y, min_x, max_x) {
return(enemysAction09(who, its_x, its_y, min_x, max_x));
}
function add_enemys10(who, its_x, its_y) {
return(enemysAction10(who, its_x, its_y));
}
function add_blocks(type, its_x, its_y) {
if (type == "01") {
blood = 30;
} else if (type == "02") {
blood = 1;
} else if (type == "03") {
blood = 50;
} else if (type == "04") {
blood = 24;
}
return(blocksAction(type, its_x, its_y, blood));
}
function add_deadAction(what, order) {
what.dieEvents = function () {
add_events(order);
};
}
function enemy_move(who, speed) {
var _local7 = who._x + main._x;
var _local5 = (who._y + main._y) + 15;
var _local6 = (who._x + main._x) + speed;
var _local4 = (who._y + main._y) - (who._height / 3);
var _local2 = false;
for (grounds in main.bg) {
if (main.bg[grounds].g.hitTest(_local7, _local5, true)) {
_local2 = true;
adjustY(who, main.bg[grounds].g);
break;
}
}
var _local3 = false;
for (grounds in main.bg) {
if (main.bg[grounds].g.hitTest(_local6, _local4, true)) {
_local3 = true;
break;
}
}
if (_local3) {
who.get_blocked();
} else if (_local2) {
who._x = who._x + speed;
}
if (!_local2) {
who._y = who._y + 10;
if ((who._y + main._y) > 500) {
if (who.dieEvents != undefined) {
who.dieEvents();
}
who.removeMovieClip();
}
who.states = "jump";
} else {
who.states = "stand";
}
return(_local2);
}
function enemy_fly(who, xspeed, yspeed) {
var _local3 = who._x + main._x;
var _local2 = (who._y + main._y) - (who._height / 2);
for (grounds in main.bg) {
if (main.bg[grounds].g.hitTest(_local3, _local2, true)) {
return(true);
}
}
if (((who._x > (-main._x)) and (who._x < (560 - main._x))) and ((who._y > ((-main._y) - 200)) and (who._y < (600 - main._y)))) {
who._x = who._x + xspeed;
who._y = who._y + yspeed;
}
return(false);
}
function add_events(order) {
if (order == 1) {
add_deadAction(add_enemys02("enemy03", 2200, -280), 2);
} else if (order == 2) {
allow_area_array1 = -2251;
} else if (order == 3) {
allow_area_array1 = -4337;
} else if (order == 4) {
allow_area_array1 = -5000;
} else if (order == 5) {
allow_area_array1 = -5040;
} else if (order == 6) {
allow_area_array1 = -5313;
} else if (order == 7) {
add_deadAction(add_enemys02("enemy03", 5760, -91), 8);
} else if (order == 8) {
allow_area_array1 = -7840;
} else if (order == 9) {
add_deadAction(add_enemys09("boss01", 1593, -7), 10);
} else if (order == 10) {
kill_boss();
}
}
function kill_boss() {
boss_killed = true;
justFrame(main.player, "up", main.player.gun_type + "_stand");
justFrame(main.player, "down", "stand");
var _local4 = this.attachMovie("level_pass_count", "level_pass_count", this.getNextHighestDepth());
_local4.count_times = 6;
_local4.adjust_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.showpad.num1.gotoAndStop(_local10);
this.showpad.num10.gotoAndStop(_local9);
this.showpad.num100.gotoAndStop(_local8);
this.showpad.num1000.gotoAndStop(_local7);
this.showpad.num10000.gotoAndStop(_local6);
this.showpad.num100000.gotoAndStop(_local5);
this.showpad.num1000000.gotoAndStop(_local4);
this.showpad.num10000000.gotoAndStop(_local3);
};
_local4.count_prisoner = function () {
this.showpad.btn01._visible = 0;
this.showpad.btn02._visible = 0;
this.adjust_score();
this.onEnterFrame = function () {
this.count_times--;
if (this.count_times == 3) {
var _local2 = 100 + game_prisoner;
this.showpad.number10.gotoAndStop(Number(_local2.toString().slice(1, 2)) + 1);
this.showpad.number1.gotoAndStop(Number(_local2.toString().slice(2, 3)) + 1);
game_prisoner--;
game_score = game_score + 3000;
} else if (this.count_times == 0) {
play_soundAction("\u8BB0\u5206\u97F3\u6548");
this.adjust_score();
this.count_times = 6;
if (game_prisoner < 0) {
delete this.onEnterFrame;
this.showpad.play();
}
}
};
};
_local4.count_bomb = function () {
this.adjust_score();
this.onEnterFrame = function () {
this.count_times--;
if (this.count_times == 3) {
var _local2 = 100 + bomb_left;
this.showpad.number10.gotoAndStop(Number(_local2.toString().slice(1, 2)) + 1);
this.showpad.number1.gotoAndStop(Number(_local2.toString().slice(2, 3)) + 1);
bomb_left--;
game_score = game_score + 1000;
} else if (this.count_times == 0) {
play_soundAction("\u8BB0\u5206\u97F3\u6548");
this.adjust_score();
this.count_times = 6;
if (bomb_left < 0) {
delete this.onEnterFrame;
this.showpad.play();
}
}
};
};
_local4.count_time = function () {
this.adjust_score();
this.onEnterFrame = function () {
this.count_times--;
if (this.count_times == 3) {
var _local3 = 100 + game_time;
this.showpad.number10.gotoAndStop(Number(_local3.toString().slice(1, 2)) + 1);
this.showpad.number1.gotoAndStop(Number(_local3.toString().slice(2, 3)) + 1);
game_time--;
game_score = game_score + 500;
} else if (this.count_times == 0) {
play_soundAction("\u8BB0\u5206\u97F3\u6548");
this.adjust_score();
this.count_times = 6;
if (game_time < 0) {
delete this.onEnterFrame;
this.showpad.btn01._visible = 1;
this.showpad.btn02._visible = 1;
_root.end_game(game_score);
}
}
};
};
}
function add_prisoner(who, x, y, typ, moves, give_item) {
var my_number = main.enemys.getNextHighestDepth();
var this_mc = main.enemys.attachMovie(who, who + my_number, my_number);
this_mc.blood = 1;
this_mc.speed = -9;
this_mc._x = x;
this_mc._y = y;
this_mc.min_x = x - 80;
this_mc.max_x = x + 80;
this_mc.type = typ;
this_mc.moves = moves;
this_mc.give_item = give_item;
this_mc.targeter = "_root.main.player";
this_mc.can_kill = true;
this_mc.res_ed = false;
this_mc.given = false;
this_mc.temp_dir = 1;
this_mc.my_name = "prisoner";
this_mc.stand = function () {
this.gotoAndStop(("get_" + this.type) + "0");
if (this.type == 1) {
this.onEnterFrame = function () {
if (!random(100)) {
delete this.onEnterFrame;
this.gotoAndStop(("get_" + this.type) + (random(2) + 1));
}
this.target = eval (this.targeter);
if (this.target != undefined) {
var temp1 = Math.abs(this._x - this.target._x);
var temp2 = Math.abs(this._y - this.target._y);
var distance = Math.sqrt((temp1 * temp1) + (temp2 * temp2));
if (distance > 1200) {
this.removeMovieClip();
}
}
};
}
};
this_mc.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
delete this.onEnterFrame;
play_soundAction("\u89E3\u5F00\u7EF3\u5B50");
this.gotoAndStop(("res_" + this.type) + "0");
if (this.type == 2) {
this.onEnterFrame = function () {
this._y = this._y + 10;
for (grounds in main.bg) {
if (_root.main.bg[grounds].d.hitTest(who._x + main._x, who._y + main._y, true)) {
delete this.onEnterFrame;
gotoAndStop("die_" + _root.main.bg[grounds].d.type);
break;
}
if (main.bg[grounds].g.hitTest(this._x + main._x, this._y + main._y, true)) {
delete this.onEnterFrame;
this.moves();
break;
}
}
};
}
}
};
this_mc.moves = function () {
this.res_ed = true;
this.gotoAndStop("walk");
this.onEnterFrame = function () {
if (this._x < this.min_x) {
this.temp_dir = -1;
this._xscale = -100;
} else if (this._x > this.max_x) {
this.temp_dir = 1;
this._xscale = 100;
}
var tempspeed = ((this.speed * this.temp_dir) / 3);
enemy_move(this, tempspeed);
if (this.states == "stand") {
if (this.hitTest(eval (this.targeter))) {
this.gives();
}
}
};
};
this_mc.gives = function () {
game_prisoner++;
adjust_prisoner();
this.given = true;
delete this.onEnterFrame;
this.gotoAndStop("give");
};
this_mc.giveAction = function () {
if (this.give_item != "p") {
add_weapon(this, this.give_item);
} else {
add_present(this);
}
};
this_mc.show_me = function () {
this.gotoAndStop("show");
};
this_mc.run_away = function () {
this.gotoAndStop("run");
this.onEnterFrame = function () {
enemy_move(this, (this.speed * Math.abs(this._xscale)) / this._xscale);
var _local2 = new Object();
_local2.x = this._x;
_local2.y = this._y;
this._parent.localToGlobal(_local2);
if ((Math.abs(_local2.x - 290) > 290) or (Math.abs(_local2.y - 210) > 210)) {
this.removeMovieClip();
}
};
};
this_mc.get_blocked = function () {
if (this.given) {
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 5) {
this.removeMovieClip();
}
};
} else {
this.temp_dir = this.temp_dir * -1;
this._xscale = this._xscale * -1;
}
};
this_mc.stand();
return(this_mc);
}
function add_weapon(where, what) {
var my_number = main.tools.getNextHighestDepth();
var this_mc = main.tools.attachMovie("weapons", "weapons" + 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.find_player = function () {
this.onEnterFrame = function () {
var player = eval (this.targeter);
if (player.dead == false) {
if (this.hitTest(player)) {
if (this.type == "h") {
if (player.gun != 1) {
slug_left = 200;
} else if (slug_left <= 799) {
slug_left = slug_left + 200;
} else {
slug_left = 999;
}
player.gun_type = "machinegun";
player.gun = 1;
player.gun_shoot = "running";
adjust_amr(slug_left);
} else if (this.type == "r") {
if (player.gun != 2) {
slug_left = 30;
} else if (slug_left <= 969) {
slug_left = slug_left + 30;
} else {
slug_left = 999;
}
player.gun_type = "machinegun";
player.gun = 2;
player.gun_shoot = "single";
adjust_amr(slug_left);
} else if (this.type == "s") {
if (player.gun != 3) {
slug_left = 15;
} else if (slug_left <= 984) {
slug_left = slug_left + 15;
} else {
slug_left = 984;
}
player.gun_type = "machinegun";
player.gun = 3;
player.gun_shoot = "single";
adjust_amr(slug_left);
} else if (this.type == "b") {
if (bomb_left <= 89) {
bomb_left = bomb_left + 10;
} else {
bomb_left = 99;
}
adjust_bomb(bomb_left);
}
player.shooting = false;
player.ready = true;
delete this.onEnterFrame;
this.gotoAndPlay("get");
play_soundAction("\u8865\u5145\u5F39\u836F");
}
}
};
};
}
function add_present(where) {
if (!where.dead) {
var my_number = main.tools.getNextHighestDepth();
var this_mc = main.tools.attachMovie("present", "present" + my_number, my_number);
this_mc._x = where._x;
this_mc._y = where._y;
this_mc.targeter = "_root.main.player";
this_mc.find_player = function () {
this.onEnterFrame = function () {
var player = eval (this.targeter);
if (player != undefined) {
if (this.hitTest(player.g)) {
game_score = game_score + Number(this.numbers);
adjust_score();
play_soundAction("\u6361\u5230\u5206\u6570");
delete this.onEnterFrame;
this.gotoAndPlay("get");
}
}
};
};
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);
}
};
}
}
function adjust_score() {
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.game_UI.scorepad.num1.gotoAndStop(_local10);
this.game_UI.scorepad.num10.gotoAndStop(_local9);
this.game_UI.scorepad.num100.gotoAndStop(_local8);
this.game_UI.scorepad.num1000.gotoAndStop(_local7);
this.game_UI.scorepad.num10000.gotoAndStop(_local6);
this.game_UI.scorepad.num100000.gotoAndStop(_local5);
this.game_UI.scorepad.num1000000.gotoAndStop(_local4);
this.game_UI.scorepad.num10000000.gotoAndStop(_local3);
}
function adjust_prisoner() {
this.game_UI.prisoner_pad.gotoAndStop(game_prisoner + 1);
}
function adjust_time() {
this.game_UI.time_pad.onEnterFrame = function () {
if (game_time >= 0.005) {
game_time = game_time - 0.005;
} else {
game_time = 0;
delete this.onEnterFrame;
}
var _local2 = 100 + Math.floor(game_time);
var _local4 = Number(_local2.toString().slice(2, 3)) + 1;
var _local3 = Number(_local2.toString().slice(1, 2)) + 1;
this.num1.gotoAndStop(_local4);
this.num10.gotoAndStop(_local3);
};
}
function adjust_life() {
this.game_UI.life.gotoAndStop(game_life);
}
function adjust_amr(my_slug_left) {
if (my_slug_left > 999) {
this.game_UI.amr.gotoAndStop("very");
} else {
this.game_UI.amr.gotoAndStop("some");
var _local2 = 1000 + my_slug_left;
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.game_UI.amr.amr1.gotoAndStop(_local5);
this.game_UI.amr.amr10.gotoAndStop(_local4);
this.game_UI.amr.amr100.gotoAndStop(_local3);
}
}
function adjust_bomb(my_bomb_left) {
var _local2 = 100 + my_bomb_left;
var _local4 = Number(_local2.toString().slice(2, 3)) + 1;
var _local3 = Number(_local2.toString().slice(1, 2)) + 1;
this.game_UI.bomb.bomb1.gotoAndStop(_local4);
this.game_UI.bomb.bomb10.gotoAndStop(_local3);
}
function adjust_item() {
}
function clean_stage() {
for (i in game_effect) {
game_effect[i].removeMovieClip();
}
for (i in main.bg) {
main.bg[i].removeMovieClip();
}
for (i in main.enemys) {
main.enemys[i].removeMovieClip();
}
for (i in main.objects) {
main.objects[i].removeMovieClip();
}
for (i in main.tools) {
main.tools[i].removeMovieClip();
}
boss_killed = false;
delete i;
}
function game_start() {
recover_all();
this.createEmptyMovieClip("main", this.getNextHighestDepth());
this.createEmptyMovieClip("effect_clip", this.getNextHighestDepth());
this.attachMovie("game_UI", "game_UI", this.getNextHighestDepth());
this.attachMovie("gameMask", "gameMask", this.getNextHighestDepth());
this.main.setMask(this.gameMask);
main.createEmptyMovieClip("bg", main.getNextHighestDepth());
main.bg._y = 400;
main.createEmptyMovieClip("objects", main.getNextHighestDepth());
main.createEmptyMovieClip("enemys", main.getNextHighestDepth());
main.createEmptyMovieClip("tools", main.getNextHighestDepth());
next_sence();
if (stages_section == 1) {
main.attachMovie("start_ani" + stages, "start_ani", main.getNextHighestDepth());
}
this.onEnterFrame = function () {
gameControl(main.player);
draw_map(stages, stages_section, eval (active_map_drawer));
updateAfterEvent();
};
_root.start_game();
}
function next_sence() {
clean_stage();
stages_part = 1;
stages_section++;
draw_map_start(stages, stages_section);
if (stages_section > 1) {
if (main.player.my_type == this[(("stg_type_" + stages) + "_") + stages_section]) {
main.player._x = 10;
main.player._y = 300;
if (main.player.my_type == "man") {
justFrame(main.player, "up", ((main.player.gun_type + "_") + main.player.states) + "_run");
justFrame(main.player, "down", "stand_run");
}
} else {
active_object_speed = 0;
active_map_drawer = "main.player";
add_player(this[(("stg_type_" + stages) + "_") + stages_section], 50, 200);
}
}
}
function level_start() {
if (stages == 1) {
add_player("man", 50, 295);
play_music("\u7B2C\u4E00\u5173\u97F3\u4E50");
} else if (stages == 2) {
add_player("man", 190, 170);
add_object("player_car01", 292, 338);
} else if (stages == 3) {
add_player("man", 120, 283);
}
active_object_speed = 0;
active_map_drawer = "main.player";
adjust_score();
adjust_prisoner();
adjust_time();
adjust_life();
adjust_item();
}
function level_pass() {
recover_all();
stages++;
stages_section = 0;
stage_clear = true;
game_start();
}
function play_game() {
stopAllSounds();
this.attachMovie("start_end", "start_end", this.getNextHighestDepth());
start_end.gotoAndStop("start");
stages = 1;
stages_section = 0;
modify_XY_array1_1 = [[-1315, 60, false], [-1710, 220, false], [-1880, 285, false], [-2380, 470, false], [-3000, 235, false], [-3480, 90, false], [-3760, 0, false]];
modify_XY_array2_1 = [[-850, 150, false], [-53000, 0, false]];
modify_XY_array3_1 = [[-1080, 120, false], [-1640, 250, false], [-2200, 330, false], [-3880, 420, false]];
modify_XY_array3_3 = [[-400, -230, false], [-605, -300, false], [-740, -440, false], [-870, -595, false], [-1015, -730, false], [-1200, -905, false], [-1380, -1085, false], [-1500, -1220, false], [-1650, -1420, false], [-1858, -1545, false], [-1970, -1695, false], [-2150, -1865, false], [-2285, -2005, false], [-2457, -2175, false], [-2628, -2345, false], [-2772, -2495, false], [-2925, -2630, false], [-3090, -2730, false], [-3750, -2960, false]];
effect_array2_1 = [[-15000, ["add", "effect_rain"], false], [-53000, ["remove"], false]];
allow_area_array1 = -1836;
allow_area_array2 = -55960;
allow_area_array3 = -6907;
game_score = 0;
game_life = 3;
}
function restart_game() {
recover_all();
play_game();
}
function show_credits() {
recover_all();
this.attachMovie("start_end", "start_end", this.getNextHighestDepth());
this.start_end.gotoAndStop("win");
}
function recover_all() {
this.start_end.removeMovieClip();
this.main.removeMovieClip();
this.effect_clip.removeMovieClip();
this.game_UI.removeMovieClip();
this.gameMask.removeMovieClip();
this.level_pass_count.removeMovieClip();
delete this.onEnterFrame;
game_time = 80;
game_prisoner = 0;
slug_left = 999999 /* 0x0F423F */;
bomb_left = 10;
}
function clean_fire() {
this.main.removeMovieClip();
this.effect_clip.removeMovieClip();
this.game_UI.removeMovieClip();
this.gameMask.removeMovieClip();
this.level_pass_count.removeMovieClip();
delete this.onEnterFrame;
}
function game_over() {
delete this.onEnterFrame;
this.attachMovie("start_end", "start_end", this.getNextHighestDepth());
this.start_end.gotoAndStop("lose");
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);
};
_root.end_game(game_score);
}
Set("\u7B2C\u4E00\u5173\u97F3\u4E50", new Sound());
\u7B2C\u4E00\u5173\u97F3\u4E50.attachSound("\u7B2C\u4E00\u5173\u97F3\u4E50");
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("\u8865\u5145\u5F39\u836F", new Sound());
\u8865\u5145\u5F39\u836F.attachSound("\u8865\u5145\u5F39\u836F");
Set("\u5927\u7206\u70B8", new Sound());
\u5927\u7206\u70B8.attachSound("\u5927\u7206\u70B8");
Set("\u624B\u96F7\u7206\u70B8", new Sound());
\u624B\u96F7\u7206\u70B8.attachSound("\u624B\u96F7\u7206\u70B8");
Set("\u624B\u67AA\u53D1\u5C04", new Sound());
\u624B\u67AA\u53D1\u5C04.attachSound("\u624B\u67AA\u53D1\u5C04");
Set("\u624B\u67AA\u51FB\u4E2D", new Sound());
\u624B\u67AA\u51FB\u4E2D.attachSound("\u624B\u67AA\u51FB\u4E2D");
Set("\u624B\u67AA\u4E0A\u5B50\u5F39", new Sound());
\u624B\u67AA\u4E0A\u5B50\u5F39.attachSound("\u624B\u67AA\u4E0A\u5B50\u5F39");
Set("\u5B50\u5F39\u6253\u4E2D\u6CB9\u6876", new Sound());
\u5B50\u5F39\u6253\u4E2D\u6CB9\u6876.attachSound("\u5B50\u5F39\u6253\u4E2D\u6CB9\u6876");
Set("\u9505\u6253\u4E2D", new Sound());
\u9505\u6253\u4E2D.attachSound("\u9505\u6253\u4E2D");
Set("\u98DF\u4EBA\u82B1\u6B7B\u4EA1", new Sound());
\u98DF\u4EBA\u82B1\u6B7B\u4EA1.attachSound("\u98DF\u4EBA\u82B1\u6B7B\u4EA1");
Set("\u5766\u514B\u8FD0\u884C", new Sound());
\u5766\u514B\u8FD0\u884C.attachSound("\u5766\u514B\u8FD0\u884C");
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("\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("\u7535\u7F51", new Sound());
\u7535\u7F51.attachSound("\u7535\u7F51");
Set("\u8F70\u70B8\u673A\u843D\u5F39", new Sound());
\u8F70\u70B8\u673A\u843D\u5F39.attachSound("\u8F70\u70B8\u673A\u843D\u5F39");
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("\u89E3\u5F00\u7EF3\u5B50", new Sound());
\u89E3\u5F00\u7EF3\u5B50.attachSound("\u89E3\u5F00\u7EF3\u5B50");
Set("\u5F00\u59CB\u6253\u5B57\u97F3\u6548", new Sound());
\u5F00\u59CB\u6253\u5B57\u97F3\u6548.attachSound("\u5F00\u59CB\u6253\u5B57\u97F3\u6548");
Set("\u843D\u6C34", new Sound());
\u843D\u6C34.attachSound("\u843D\u6C34");
Set("\u58EB\u5175\u53D7\u60CA", new Sound());
\u58EB\u5175\u53D7\u60CA.attachSound("\u58EB\u5175\u53D7\u60CA");
Set("\u5766\u514B\u5C04\u51FB", new Sound());
\u5766\u514B\u5C04\u51FB.attachSound("\u5766\u514B\u5C04\u51FB");
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("\u4EBA\u8D28\u656C\u793C", new Sound());
\u4EBA\u8D28\u656C\u793C.attachSound("\u4EBA\u8D28\u656C\u793C");
Set("\u6E38\u620F\u7ED3\u675F", new Sound());
\u6E38\u620F\u7ED3\u675F.attachSound("\u6E38\u620F\u7ED3\u675F");
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], ["\u6570\u5B57\u952E\u76D8 0", 96], ["\u6570\u5B57\u952E\u76D8 1", 97], ["\u6570\u5B57\u952E\u76D8 2", 98], ["\u6570\u5B57\u952E\u76D8 3", 99], ["\u6570\u5B57\u952E\u76D8 4", 100], ["\u6570\u5B57\u952E\u76D8 5", 101], ["\u6570\u5B57\u952E\u76D8 6", 102], ["\u6570\u5B57\u952E\u76D8 7", 103], ["\u6570\u5B57\u952E\u76D8 8", 104], ["\u6570\u5B57\u952E\u76D8 9", 105], ["\u4E58\u53F7", 106], ["\u52A0\u53F7", 107], ["\u51CF\u53F7", 109], ["\u5C0F\u6570\u70B9", 110], ["\u9664\u53F7", 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], ["\u7A7A\u683C\u952E", 32], ["Page Up", 33], ["Page Down", 34], ["End", 35], ["Home", 36], ["\u5DE6\u7BAD\u5934", 37], ["\u5411\u4E0A\u7BAD\u5934", 38], ["\u53F3\u7BAD\u5934", 39], ["\u5411\u4E0B\u7BAD\u5934", 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]];
Stage.scaleMode = "noScale";
stop();
game_testing = false;
game_level = 1;
game_sounds = true;
Wcode = 87;
Scode = 83;
Acode = 65;
Dcode = 68;
Jcode = 74;
Kcode = 75;
Lcode = 76;
org_Wcode = 87;
org_Scode = 83;
org_Acode = 65;
org_Dcode = 68;
org_Jcode = 74;
org_Kcode = 75;
org_Lcode = 76;
Jcode_pressed = false;
Kcode_pressed = false;
Lcode_pressed = false;
stg_array_1 = 4;
get_map_infor(1, 1, "man", 0, 10, 5040, 500);
get_map_infor(1, 2, "man", 0, 15, 7840, 400);
get_map_infor(1, 3, "man", 0, 1, 520, 450);
get_map_infor(1, 4, "man", 0, 3, 1150, 500);
stg_array_2 = 2;
get_map_infor(2, 1, "man", 0, 100, 55960, 600);
get_map_infor(2, 2, "plane", 0, 100, 55440, 600);
stg_array_3 = 6;
get_map_infor(3, 1, "man", 0, 13, 6907, 600);
get_map_infor(3, 2, "man", 0, 1, 140, 500);
get_map_infor(3, 3, "man", 1, 15, 4220, 500);
get_map_infor(3, 4, "man", 1, 5, 1635, 600);
stg1_1_map_xy = [[560, 0], [560, 0], [560, 0], [560, -103], [560, 103], [560, 0], [560, 0], [560, 0], [560, 0]];
stg1_2_map_xy = [[560, 0], [560, 0], [560, 0], [560, 0], [560, 0], [560, 0], [560, 0], [560, 0], [560, 0], [560, 0], [560, 0], [560, 0], [560, 0], [560, 0]];
stg1_3_map_xy = [];
stg1_4_map_xy = [[560, 0], [560, 0]];
stg2_1_map_xy = [[863, 0]];
var i = 1;
while (i < 100) {
stg2_1_map_xy[i] = [560, 0];
i++;
}
stg3_1_map_xy = [[560, 0], [560, 0], [560, -130], [560, -133], [560, -83], [560, 0], [560, 0], [560, -93], [560, 0], [560, 0], [560, 0], [560, 0]];
stg3_2_map_xy = [];
stg3_3_map_xy = [[560, 0], [201, 456], [456, 456], [456, 456], [456, 456], [456, 456], [456, 461], [694, 0], [348, 409], [0, 409], [0, 409], [0, 409], [0, 409], [0, 547]];
stg3_4_map_xy = [[560, 0], [560, 0], [560, 0], [0, 400]];
enemysAction01 = function (who, x, y, atk, typ, moves) {
var my_number = main.enemys.getNextHighestDepth();
var this_mc = main.enemys.attachMovie(who, who + my_number, my_number);
this_mc.blood = _root.game_level;
this_mc.speed = -6;
this_mc._x = x;
this_mc._y = y;
this_mc.attacks = atk;
this_mc.type = typ;
this_mc.moves = moves;
this_mc.targeter = "_root.main.player";
this_mc.can_kill = true;
this_mc.can_block = true;
this_mc.dead = false;
this_mc.stand = function () {
if (this.moves <= 50) {
this.gotoAndStop("stand" + this.type);
this.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target.dead == false) {
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;
}
}
var temp1 = Math.abs(this._x - this.target._x);
var temp2 = Math.abs(this._y - this.target._y);
var distance = Math.sqrt((temp1 * temp1) + (temp2 * temp2));
if (distance > 1200) {
this.removeMovieClip();
} else if ((distance > 590) and (distance < 660)) {
if (!random(50)) {
this.move_me();
}
} else if ((distance < 590) and (distance > 200)) {
if (!random(80)) {
this.shoot();
}
if (!random(40)) {
this.move_me();
}
} else if ((distance < 200) and (distance > 50)) {
if (!random(15)) {
this.shoot();
}
} else if (distance < 50) {
this.attack();
}
}
};
} else if (this.moves > 50) {
if (this.moves == 51) {
this.gotoAndStop("talk02");
} else if (this.moves == 52) {
this.gotoAndStop("stand1");
} else if (this.moves == 53) {
this.gotoAndStop("stand2");
} else if (this.moves == 54) {
this.gotoAndStop("stand4");
} else if (this.moves == 55) {
this.gotoAndStop("talk03");
}
this.onEnterFrame = function () {
this.target = eval (this.targeter);
if (this.target.dead == false) {
var temp1 = Math.abs(this._x - this.target._x);
var temp2 = Math.abs(this._y - this.target._y);
var distance = Math.sqrt((temp1 * temp1) + (temp2 * temp2));
if (distance > 1200) {
this.removeMovieClip();
} else if (distance < 250) {
this.get_shocked();
}
}
};
}
};
this_mc.get_shocked = function () {
delete this.onEnterFrame;
this.gotoAndStop("shocked");
play_soundAction("\u58EB\u5175\u53D7\u60CA");
this.moves = 1;
};
this_mc.get_blocked = function () {
this.gotoAndStop("talk01");
this.onEnterFrame = function () {
if (!random(50)) {
this.stand();
}
};
};
this_mc.attack = function () {
delete this.onEnterFrame;
this.gotoAndStop("attack");
};
this_mc.attackAction = function () {
if (this.target != undefined) {
if (this.m.point.hitTest(this.target.g)) {
player_die(this.target, "kill");
}
}
};
this_mc.move_me = function () {
if (this.moves) {
if (this.moves == 2) {
this.gotoAndStop("walk01");
} else {
this.gotoAndStop("run" + this.type);
}
this.onEnterFrame = function () {
if (this.moves == 2) {
var _local3 = ((this.speed * Math.abs(this._xscale)) / this._xscale) / 2;
} else {
var _local3 = (this.speed * Math.abs(this._xscale)) / this._xscale;
}
if (enemy_move(this, _local3)) {
if (!random(40)) {
this.stand();
}
var _local2 = new Object();
_local2.x = this._x;
_local2.y = this._y;
this._parent.localToGlobal(_local2);
if ((Math.abs(_local2.x) > 530) or (Math.abs(_local2.x) < 30)) {
this.stand();
}
if (Math.abs(this._x - this.target._x) < 10) {
this.stand();
}
if (this.target == undefined) {
this.stand();
}
}
};
}
};
this_mc.shoot = function () {
if (this.moves == 3) {
if (!random(50)) {
this.run_away();
}
} else {
var _local2 = new Object();
_local2.x = this._x;
_local2.y = this._y;
this._parent.localToGlobal(_local2);
if ((Math.abs(_local2.x - 280) < 280) and (Math.abs(_local2.y - 200) < 200)) {
delete this.onEnterFrame;
if (this.attacks > 0) {
this.attacks--;
if (this.type != 2) {
this.gotoAndStop("shoot" + this.type);
} else {
this.gotoAndStop("shoot2");
if (game_level <= 1) {
this.m.gotoAndPlay("stand_shoot");
} else if (this.target.states == "crouch") {
this.m.gotoAndPlay("crouch_shoot");
} else {
this.m.gotoAndPlay("stand_shoot");
}
}
} else {
this.run_away();
}
}
}
};
this_mc.shootAction = function () {
if (this.type == 1) {
play_soundAction("\u624B\u67AA\u53D1\u5C04");
} else if (this.type == 2) {
play_soundAction("H\u5F39\u53D1\u5C04");
} else if (this.type == 3) {
play_soundAction("\u5766\u514B\u5C04\u51FB");
} else if (this.type == 5) {
play_soundAction("\u5766\u514B\u5C04\u51FB");
}
var depth = main.getNextHighestDepth();
var shoot_mc = main.attachMovie("npc_shoot0" + this.type, "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;
shoot_mc.yspeed = -10;
shoot_mc.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
delete this.onEnterFrame;
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");
} else if (this.type == 4) {
play_soundAction("\u624B\u96F7\u7206\u70B8");
} else if (this.type == 5) {
play_soundAction("\u624B\u96F7\u7206\u70B8");
} else if (this.type == 6) {
play_soundAction("\u624B\u96F7\u7206\u70B8");
}
};
shoot_mc.onEnterFrame = function () {
if (((this._x > (-main._x)) and (this._x < (560 - main._x))) and ((this._y > ((-main._y) - 200)) and (this._y < (600 - main._y)))) {
if (this.can_go) {
if (this.type == 4) {
this._rotation = this._rotation + 10;
this._x = this._x + this.xspeed;
this.yspeed = this.yspeed + 0.35;
this._y = this._y + this.yspeed;
} else if (this.type == 6) {
var temp = (Math.abs(this.xspeed) / this.xspeed);
this._rotation = this._rotation + (temp * 10);
enemy_move(this, (-temp) * this.speed);
} else {
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) {
if (this.type != 6) {
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(this)) {
player_die(this.target, "shoot");
this.get_blocked();
}
}
}
};
};
this_mc.to_die = function (how, much, dir) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.dead = true;
if (this.states != "jump") {
delete this.onEnterFrame;
if (how == "blow") {
this.gotoAndStop("die4");
play_soundAction("\u654C\u5175\u6B7B\u4EA104");
} else if (how == "fly") {
this.gotoAndStop("die5");
play_soundAction("\u654C\u5175\u6B7B\u4EA102");
var _local3 = main.enemys.getNextHighestDepth();
var _local2 = main.enemys.attachMovie("flower05", "flower05" + _local3, _local3);
_local2._x = this._x;
_local2._y = this._y;
if (dir == 0) {
this.fly_xspeed = 20;
this.fly_yspeed = 0;
} else if (dir == 180) {
this.fly_xspeed = -20;
this.fly_yspeed = 0;
} else if (dir == -90) {
this.fly_xspeed = 0;
this.fly_yspeed = -20;
} else if (dir == 90) {
this.fly_xspeed = 0;
this.fly_yspeed = 0;
}
this.onEnterFrame = function () {
if (enemy_fly(this, this.fly_xspeed, this.fly_yspeed)) {
delete this.onEnterFrame;
}
};
} else {
this.gotoAndStop("die" + (random(3) + 1));
play_soundAction("\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1));
}
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else {
this.gotoAndStop("die5");
this.clip.stop();
play_soundAction("\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1));
this.onEnterFrame = function () {
if (enemy_move(this, 0)) {
this.clip.play();
delete this.onEnterFrame;
}
};
}
}
};
this_mc.run_away = function () {
if (this._x < this.target._x) {
this._xscale = 100;
} else {
this._xscale = -100;
}
this.gotoAndStop("run" + this.type);
this.onEnterFrame = function () {
_root.enemy_move(this, (this.speed * Math.abs(this._xscale)) / this._xscale);
var _local3 = new Object();
_local3.x = this._x;
_local3.y = this._y;
this._parent.localToGlobal(_local3);
if ((Math.abs(_local3.x - 290) > 290) or (Math.abs(_local3.y - 210) > 210)) {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
};
};
this_mc.stand();
return(this_mc);
};
blocksAction = function (type, x, y, blood) {
var _local4 = main.enemys.getNextHighestDepth();
var _local3 = main.enemys.attachMovie("block" + type, ("block" + type) + _local4, _local4);
_local3.blood = _root.game_level * blood;
_local3.org_blood = _local3.blood;
_local3._x = x;
_local3._y = y;
_local3.type = type;
_local3.can_kill = true;
_local3.can_block = true;
_local3.dead = false;
_local3.exploding = function () {
for (enemy in _root.main.enemys) {
if (_root.main.enemys[enemy].g.hitTest(this)) {
_root.main.enemys[enemy].to_die("blow", 20);
}
}
};
_local3.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
if (this.type == "01") {
play_soundAction("\u624B\u96F7\u7206\u70B8");
} else if (this.type == "02") {
play_soundAction("\u5927\u7206\u70B8");
} else if (this.type == "03") {
play_soundAction("\u624B\u96F7\u7206\u70B8");
} else if (this.type == "04") {
play_soundAction("\u624B\u96F7\u7206\u70B8");
}
add_present(this);
this.dead = true;
this.gotoAndPlay("explode");
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else {
this.gotoAndPlay("hit");
if (this.type == "04") {
var _local4 = this.org_blood - this.blood;
var _local3 = this.org_blood / 3;
var _local2 = Math.floor(_local4 / _local3) + 1;
this.g.gotoAndStop(_local2);
}
}
};
return(_local3);
};
play_game();
Symbol 75 MovieClip [enemy07] Frame 19
if (this.dead) {
gotoAndPlay ("explode");
} else {
gotoAndPlay ("normal");
}
Symbol 75 MovieClip [enemy07] Frame 21
play();
Symbol 75 MovieClip [enemy07] Frame 29
this.stop_shoot();
Symbol 75 MovieClip [enemy07] Frame 47
this.removeMovieClip();
Symbol 80 MovieClip Frame 1
stop();
Symbol 115 MovieClip [enemy06] Frame 1
stop();
Symbol 115 MovieClip [enemy06] Frame 3
if (this.dead) {
gotoAndPlay ("explode");
} else {
gotoAndStop ("normal");
}
Symbol 115 MovieClip [enemy06] Frame 31
stop();
this.stop_shoot();
Symbol 123 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 35
_parent.removeMovieClip();
Symbol 168 MovieClip [enemy03] Frame 1
stop();
Symbol 168 MovieClip [enemy03] Frame 16
this.shootAction();
Symbol 168 MovieClip [enemy03] Frame 22
this.check_point();
Symbol 168 MovieClip [enemy03] Frame 29
play();
Symbol 168 MovieClip [enemy03] Frame 38
stop();
Symbol 168 MovieClip [enemy03] Frame 40
play();
Symbol 168 MovieClip [enemy03] Frame 43
stop();
Symbol 215 MovieClip Frame 18
_parent.run_away();
Symbol 256 MovieClip Frame 3
stop();
Symbol 256 MovieClip Frame 47
play();
Symbol 256 MovieClip Frame 72
stop();
Symbol 298 MovieClip Frame 47
_parent.removeMovieClip();
Symbol 313 MovieClip Frame 39
_parent.removeMovieClip();
Symbol 334 MovieClip Frame 44
_parent.removeMovieClip();
Symbol 347 MovieClip [enemy10] Frame 49
this.shootAction();
Symbol 347 MovieClip [enemy10] Frame 60
this.stand();
Symbol 347 MovieClip [enemy10] Frame 65
gun.gotoAndPlay("explode");
Symbol 347 MovieClip [enemy10] Frame 71
gun.gotoAndPlay("explode");
Symbol 347 MovieClip [enemy10] Frame 76
gun.gotoAndPlay("explode");
Symbol 347 MovieClip [enemy10] Frame 83
play();
gun.gotoAndPlay("explode");
Symbol 347 MovieClip [enemy10] Frame 111
gotoAndStop("die" + (random(3) + 1));
Symbol 367 MovieClip Frame 6
stop();
Symbol 418 MovieClip Frame 22
_parent.stand();
Symbol 466 MovieClip Frame 20
_parent.attackAction();
Symbol 466 MovieClip Frame 47
_parent.stand();
Symbol 485 MovieClip Frame 15
_parent.shootAction();
Symbol 485 MovieClip Frame 34
_parent.stand();
Symbol 508 MovieClip Frame 11
_parent.shootAction();
Symbol 508 MovieClip Frame 34
_parent.stand();
Symbol 508 MovieClip Frame 44
_parent.shootAction();
Symbol 508 MovieClip Frame 58
_parent.stand();
Symbol 519 MovieClip Frame 6
_parent.shootAction();
Symbol 519 MovieClip Frame 29
_parent.stand();
Symbol 542 MovieClip Frame 19
_parent.shootAction();
Symbol 542 MovieClip Frame 30
_parent.stand();
Symbol 549 MovieClip Frame 4
_parent.shootAction();
Symbol 549 MovieClip Frame 12
_parent.stand();
Symbol 558 MovieClip Frame 28
_parent.shootAction();
Symbol 558 MovieClip Frame 40
_parent.stand();
Symbol 569 MovieClip Frame 33
_parent.removeMovieClip();
Symbol 570 MovieClip [enemy01] Frame 192
play();
Symbol 570 MovieClip [enemy01] Frame 220
gotoAndStop("die" + (random(3) + 1));
Symbol 639 MovieClip Frame 13
if (!can_play) {
stop();
}
Symbol 639 MovieClip Frame 21
_parent._visible = !_parent._visible;
Symbol 639 MovieClip Frame 25
_parent._visible = !_parent._visible;
Symbol 639 MovieClip Frame 29
_parent._visible = !_parent._visible;
Symbol 639 MovieClip Frame 33
_parent._visible = !_parent._visible;
Symbol 639 MovieClip Frame 37
_parent._visible = !_parent._visible;
Symbol 639 MovieClip Frame 41
stop();
_root.player_born();
Symbol 703 MovieClip [enemy08] Frame 43
this.shootAction(0);
this.shootAction(0.8);
this.shootAction(1.6);
Symbol 703 MovieClip [enemy08] Frame 59
this.stand();
Symbol 703 MovieClip [enemy08] Frame 78
this.attackAction();
Symbol 703 MovieClip [enemy08] Frame 95
this.stand();
Symbol 703 MovieClip [enemy08] Frame 163
_root.player_born();
this.stand();
Symbol 703 MovieClip [enemy08] Frame 227
this.removeMovieClip();
Symbol 750 MovieClip [enemy05] Frame 1
stop();
Symbol 750 MovieClip [enemy05] Frame 30
gotoAndStop ("normal");
Symbol 750 MovieClip [enemy05] Frame 35
stop();
this.comes();
Symbol 750 MovieClip [enemy05] Frame 36
play();
Symbol 750 MovieClip [enemy05] Frame 38
if (this.dead) {
gotoAndPlay ("die");
} else {
gotoAndStop ("normal");
}
Symbol 750 MovieClip [enemy05] Frame 43
play();
Symbol 750 MovieClip [enemy05] Frame 81
this.removeMovieClip();
Symbol 808 MovieClip Frame 1
_parent.frame = "stand";
Symbol 808 MovieClip Frame 6
gotoAndPlay ("stand");
Symbol 808 MovieClip Frame 8
_parent.frame = "move";
Symbol 808 MovieClip Frame 14
gotoAndPlay ("move");
Symbol 808 MovieClip Frame 16
_parent.frame = "shoot";
Symbol 808 MovieClip Frame 21
_parent.shootAction();
Symbol 808 MovieClip Frame 36
_parent.check_point();
Symbol 808 MovieClip Frame 44
_parent.stand();
Symbol 808 MovieClip Frame 46
_parent.frame = "explode";
Symbol 808 MovieClip Frame 120
_parent.removeMovieClip();
Symbol 811 MovieClip [enemy04] Frame 1
stop();
Symbol 811 MovieClip [enemy04] Frame 7
if (this.dead) {
gotoAndPlay ("explode");
} else {
gotoAndStop ("normal");
}
Symbol 811 MovieClip [enemy04] Frame 9
stop();
body.gotoAndPlay("explode");
Symbol 853 MovieClip [bg_stage1_1] Frame 1
stop();
g._visible = 0;
Symbol 853 MovieClip [bg_stage1_1] Frame 2
stop();
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 583, 308, 5, 1, 3);
_root.add_enemys01("enemy01", 631, 308, 5, 1, 3);
_root.add_enemys01("enemy01", 686, 309, 5, 1, 3);
_root.add_enemys01("enemy01", 889, 311, 1, 4, 1);
_root.add_prisoner("prisoner01", 1005, 141, 1, 1, "p");
_root.add_prisoner("prisoner01", 985, 308, 3, 1, "h");
} else {
_root.add_enemys01("enemy01", 583, 308, 5, 1, 1);
_root.add_enemys01("enemy01", 631, 308, 5, 1, 1);
_root.add_enemys01("enemy01", 686, 309, 5, 2, 1);
_root.add_enemys01("enemy01", 963, 143, 1000, 3, 0);
_root.add_enemys01("enemy01", 1021, 140, 1000, 3, 0);
_root.add_enemys01("enemy01", 889, 311, 1000, 4, 1);
_root.add_enemys01("enemy01", 936, 316, 1000, 4, 1);
_root.add_prisoner("prisoner01", 989, 143, 3, 1, "h");
}
Symbol 853 MovieClip [bg_stage1_1] Frame 3
stop();
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 1311, 135, 5, 3, 3);
_root.add_enemys01("enemy01", 1363, 132, 5, 4, 2);
_root.add_enemys01("enemy01", 1181, 307, 5, 4, 2);
_root.add_enemys01("enemy01", 1299, 309, 5, 2, 3);
_root.add_enemys01("enemy01", 1440, 304, 5, 3, 3);
_root.add_blocks("04", 1526, 308);
} else {
_root.add_enemys01("enemy01", 1311, 135, 1000, 4, 0);
_root.add_enemys01("enemy01", 1363, 132, 1000, 2, 0);
_root.add_enemys01("enemy01", 1407, 130, 1000, 2, 0);
_root.add_blocks("01", 1290, 310);
_root.add_enemys01("enemy01", 1370, 304, 5, 2, 0);
_root.add_enemys01("enemy01", 1400, 304, 5, 2, 0);
_root.add_enemys01("enemy01", 1423, 304, 5, 1, 0);
_root.add_enemys01("enemy01", 1440, 304, 5, 1, 0);
}
Symbol 853 MovieClip [bg_stage1_1] Frame 4
stop();
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 1853, 113, 1000, 2, 3);
_root.add_enemys01("enemy01", 1901, 104, 1000, 2, 3);
_root.add_enemys01("enemy01", 1997, 92, 1, 2, 2);
_root.add_enemys01("enemy01", 2046, 88, 1, 2, 3);
_root.add_enemys01("enemy01", 2055, 85, 1, 4, 3);
_root.add_enemys01("enemy01", 2071, 87, 1, 4, 3);
_root.add_enemys01("enemy01", 2226, 86, 1000, 5, 2);
} else {
_root.add_blocks("02", 1939, 100);
_root.add_enemys01("enemy01", 1853, 113, 1000, 5, 0);
_root.add_enemys01("enemy01", 1901, 104, 1000, 5, 0);
_root.add_enemys01("enemy01", 1997, 92, 1, 2, 0);
_root.add_enemys01("enemy01", 2046, 88, 1, 2, 0);
_root.add_enemys01("enemy01", 2055, 85, 1, 4, 0);
_root.add_enemys01("enemy01", 2071, 87, 1, 4, 0);
_root.add_blocks("01", 2175, 85);
if (_root.game_level == 1) {
_root.add_enemys01("enemy01", 2226, 86, 1000, 5, 0);
} else {
_root.add_prisoner("prisoner01", 2228, -65, 2, 1, "h");
_root.add_enemys10("enemy10", 2226, 86);
}
}
Symbol 853 MovieClip [bg_stage1_1] Frame 5
stop();
_root.add_deadAction(_root.add_enemys01("enemy01", 2372, -22, 1000, 4, 0), 1);
if (_root.game_level < 1) {
_root.add_blocks("02", 2672, -201);
_root.add_enemys01("enemy01", 2725, -205, 5, 1, 3);
} else {
if (_root.game_level == 1) {
} else {
_root.add_enemys01("enemy01", 2513, -106, 1000, 2, 0);
_root.add_enemys01("enemy01", 2575, -106, 1000, 4, 0);
}
_root.add_blocks("01", 2672, -201);
_root.add_enemys01("enemy01", 2725, -205, 1000, 3, 0);
_root.add_enemys01("enemy01", 2754, -205, 1000, 6, 0);
}
_root.add_deadAction(_root.add_enemys01("enemy01", 2770, -205, 1000, 6, 0), 3);
Symbol 853 MovieClip [bg_stage1_1] Frame 6
stop();
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 3056, -189, 2, 4, 3);
_root.add_enemys01("enemy01", 3074, -184, 2, 4, 3);
_root.add_enemys01("enemy01", 3100, -177, 2, 4, 3);
_root.add_prisoner("prisoner01", 3225, -139, 3, 1, "r");
} else {
_root.add_enemys01("enemy01", 3056, -189, 5, 4, 1);
_root.add_enemys01("enemy01", 3074, -184, 5, 4, 1);
_root.add_enemys01("enemy01", 3100, -177, 5, 4, 1);
}
_root.add_prisoner("prisoner01", 2872, -201, 3, 1, "b");
Symbol 853 MovieClip [bg_stage1_1] Frame 7
stop();
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 3514, -31, 5, 4, 3);
_root.add_enemys01("enemy01", 3579, -5, 5, 4, 3);
_root.add_enemys01("enemy01", 3712, 46, 5, 4, 3);
} else {
_root.add_enemys01("enemy01", 3514, -31, 5, 4, 1);
_root.add_enemys01("enemy01", 3579, -5, 5, 4, 1);
_root.add_enemys01("enemy01", 3712, 46, 5, 4, 1);
_root.add_prisoner("prisoner01", 3566, -176, 2, 1, "p");
_root.add_prisoner("prisoner01", 3655, -147, 2, 1, "r");
_root.add_prisoner("prisoner01", 3726, -122, 2, 1, "p");
}
Symbol 853 MovieClip [bg_stage1_1] Frame 8
stop();
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 3972, 159, 5, 4, 3);
_root.add_enemys01("enemy01", 4080, 202, 5, 4, 3);
_root.add_enemys01("enemy01", 4274, 258, 5, 4, 2);
} else {
_root.add_enemys01("enemy01", 3972, 159, 5, 4, 1);
_root.add_enemys01("enemy01", 4080, 202, 5, 4, 1);
_root.add_enemys01("enemy01", 4274, 258, 5, 4, 1);
}
Symbol 853 MovieClip [bg_stage1_1] Frame 9
stop();
_root.add_deadAction(_root.add_enemys03("enemy04", 4879, 287, 1), 4);
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 4859, 287, 5, 2, 3);
_root.add_enemys01("enemy01", 4899, 287, 5, 3, 3);
} else {
_root.add_enemys01("enemy01", 4859, 287, 5, 2, 1);
_root.add_enemys01("enemy01", 4899, 287, 5, 3, 1);
}
Symbol 853 MovieClip [bg_stage1_1] Frame 10
stop();
_root.add_deadAction(_root.add_enemys03("enemy04", 5430, 287, 1), 5);
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 5452, 287, 5, 2, 3);
_root.add_enemys01("enemy01", 5497, 287, 5, 3, 3);
} else {
_root.add_enemys01("enemy01", 5452, 287, 5, 2, 1);
_root.add_enemys01("enemy01", 5497, 287, 5, 4, 1);
}
Symbol 911 MovieClip [bg_stage1_2] Frame 1
stop();
g._visible = 0;
d._visible = 0;
Symbol 911 MovieClip [bg_stage1_2] Frame 2
stop();
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 650, 150, 1000, 4, 0);
_root.add_enemys01("enemy01", 581, 313, 1000, 1, 1);
_root.add_enemys01("enemy01", 631, 313, 1000, 2, 1);
_root.add_enemys01("enemy01", 695, 313, 1000, 3, 1);
_root.add_enemys01("enemy01", 751, 313, 1000, 1, 1);
_root.add_enemys01("enemy01", 804, 311, 1000, 2, 1);
_root.add_enemys01("enemy01", 853, 312, 1000, 3, 1);
_root.add_enemys01("enemy01", 1083, 303, 1, 4, 1);
} else {
_root.add_enemys01("enemy01", 570, 152, 1000, 4, 0);
_root.add_enemys01("enemy01", 621, 150, 1000, 4, 0);
_root.add_enemys01("enemy01", 659, 150, 1000, 4, 0);
_root.add_enemys01("enemy01", 696, 151, 1000, 4, 0);
_root.add_blocks("01", 680, 310);
_root.add_enemys01("enemy01", 751, 313, 1000, 1, 0);
_root.add_enemys01("enemy01", 804, 311, 1000, 2, 0);
_root.add_enemys01("enemy01", 853, 312, 1000, 3, 0);
_root.add_enemys01("enemy01", 982, 242, 1000, 5, 0);
_root.add_enemys01("enemy01", 1083, 303, 1, 4, 1);
}
Symbol 911 MovieClip [bg_stage1_2] Frame 3
stop();
if (_root.game_level < 1) {
_root.add_prisoner("prisoner01", 1252, 198, 2, 1, "h");
_root.add_enemys01("enemy01", 1329, 84, 1000, 4, 0);
_root.add_enemys01("enemy01", 1572, 183, 1000, 4, 0);
} else {
_root.add_enemys01("enemy01", 1329, 84, 1000, 4, 0);
if (_root.game_level == 1) {
_root.add_enemys01("enemy01", 1572, 183, 1000, 6, 0);
_root.add_enemys01("enemy01", 1615, 182, 1000, 6, 0);
} else {
_root.add_enemys01("enemy01", 1175, 312, 1000, 2, 1);
_root.add_enemys01("enemy01", 1250, 312, 1000, 2, 1);
_root.add_enemys01("enemy01", 1330, 312, 1000, 1, 1);
_root.add_prisoner("prisoner01", 1202, 313, 1, 1, "b");
_root.add_blocks("04", 1491, 315);
_root.add_blocks("01", 1572, 183);
_root.add_enemys10("enemy10", 1615, 182);
}
}
Symbol 911 MovieClip [bg_stage1_2] Frame 4
stop();
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 1699, 83, 1000, 6, 0);
_root.add_enemys01("enemy01", 2113, 172, 1000, 4, 0);
_root.add_prisoner("prisoner01", 2146, 285, 3, 1, "h");
} else {
if (_root.game_level == 1) {
_root.add_enemys01("enemy01", 2130, 283, 1000, 4, 0);
} else {
_root.add_enemys01("enemy01", 1755, 311, 1000, 2, 0);
_root.add_enemys01("enemy01", 1805, 311, 1000, 2, 0);
_root.add_enemys01("enemy01", 1880, 310, 1000, 3, 0);
_root.add_enemys01("enemy01", 1970, 312, 1000, 3, 0);
_root.add_enemys10("enemy10", 2130, 283);
}
_root.add_enemys01("enemy01", 1699, 83, 1000, 6, 0);
_root.add_enemys01("enemy01", 1760, 82, 1000, 6, 0);
_root.add_enemys01("enemy01", 2113, 172, 1000, 4, 0);
_root.add_enemys01("enemy01", 2154, 172, 1000, 4, 0);
_root.add_enemys01("enemy01", 2189, 172, 1000, 4, 0);
}
_root.add_deadAction(_root.add_blocks("03", 2053, 327), 6);
Symbol 911 MovieClip [bg_stage1_2] Frame 5
stop();
_root.add_object("boat01", 2580, 305);
d.type = "water";
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 2283, 332, 1000, 4, 3);
} else {
_root.add_prisoner("prisoner01", 2283, 332, 1, 1, "h");
}
Symbol 911 MovieClip [bg_stage1_2] Frame 6
stop();
d.type = "water";
Symbol 911 MovieClip [bg_stage1_2] Frame 7
stop();
d.type = "water";
Symbol 911 MovieClip [bg_stage1_2] Frame 8
stop();
d.type = "water";
Symbol 911 MovieClip [bg_stage1_2] Frame 9
stop();
d.type = "water";
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 4731, 342, 1000, 4, 0);
_root.add_blocks("04", 4784, 287);
} else {
_root.add_enemys01("enemy01", 4731, 342, 1000, 4, 0);
_root.add_enemys01("enemy01", 4815, 288, 1000, 3, 0);
_root.add_enemys01("enemy01", 4775, 289, 1000, 4, 0);
_root.add_enemys01("enemy01", 4851, 212, 1000, 3, 0);
_root.add_blocks("02", 4784, 287);
}
Symbol 911 MovieClip [bg_stage1_2] Frame 10
stop();
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 5368, 252, 1000, 4, 3);
_root.add_enemys01("enemy01", 5345, 247, 1000, 4, 3);
} else {
_root.add_enemys01("enemy01", 5368, 252, 1000, 4, 2);
_root.add_enemys01("enemy01", 5345, 247, 1000, 4, 2);
_root.add_enemys01("enemy01", 5303, 236, 1000, 4, 2);
}
_root.add_prisoner("prisoner01", 5120, 190, 1, 1, "h");
Symbol 911 MovieClip [bg_stage1_2] Frame 11
stop();
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 5561, 276, 1000, 4, 2);
_root.add_deadAction(_root.add_enemys01("enemy01", 5826, 278, 1000, 4, 2), 7);
} else {
_root.add_enemys01("enemy01", 5561, 276, 1000, 4, 2);
_root.add_enemys01("enemy01", 5602, 277, 1000, 4, 2);
_root.add_enemys01("enemy01", 5638, 279, 1000, 4, 2);
_root.add_deadAction(_root.add_enemys01("enemy01", 5826, 278, 1000, 4, 2), 7);
_root.add_enemys01("enemy01", 5860, 277, 1000, 4, 2);
_root.add_enemys01("enemy01", 5975, 270, 1000, 4, 2);
}
Symbol 911 MovieClip [bg_stage1_2] Frame 12
stop();
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 6268, 122, 5, 3, 3);
_root.add_enemys01("enemy01", 6316, 119, 5, 4, 2);
_root.add_enemys01("enemy01", 6355, 119, 1000, 5, 3);
_root.add_enemys01("enemy01", 6487, 168, 3, 4, 3);
_root.add_enemys01("enemy01", 6579, 74, 1000, 1, 3);
_root.add_enemys01("enemy01", 6611, 74, 1000, 2, 0);
} else {
_root.add_enemys01("enemy01", 6268, 122, 5, 3, 2);
_root.add_enemys01("enemy01", 6316, 119, 5, 4, 2);
_root.add_enemys01("enemy01", 6355, 119, 1000, 5, 0);
_root.add_enemys01("enemy01", 6401, 120, 1000, 6, 0);
_root.add_enemys01("enemy01", 6487, 168, 3, 4, 2);
_root.add_enemys01("enemy01", 6579, 74, 1000, 1, 0);
_root.add_enemys01("enemy01", 6611, 74, 1000, 2, 0);
_root.add_enemys01("enemy01", 6639, 72, 1000, 3, 0);
_root.add_enemys01("enemy01", 6667, 72, 1000, 3, 0);
}
Symbol 911 MovieClip [bg_stage1_2] Frame 13
stop();
_root.add_object("rock01", 7075, 335);
d.type = "h2so4";
Symbol 911 MovieClip [bg_stage1_2] Frame 14
stop();
d.type = "h2so4";
Symbol 911 MovieClip [bg_stage1_2] Frame 15
stop();
d.type = "h2so4";
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 8074, 219, 1000, 4, 0);
} else {
_root.add_enemys03("enemy04", 8074, 219, 0);
}
Symbol 915 MovieClip [bg_stage1_3] Frame 1
stop();
g._visible = 0;
_root.add_enemys05("enemy06", 802, 133);
if (_root.game_level < 1) {
_root.add_blocks("04", 164, 311);
_root.add_enemys01("enemy01", 319, 311, 1000, 1, 51);
_root.add_enemys01("enemy01", 399, 311, 1000, 2, 53);
_root.add_enemys01("enemy01", 449, 311, 1000, 2, 53);
_root.add_enemys01("enemy01", 499, 311, 1000, 2, 53);
_root.add_enemys01("enemy01", 549, 311, 1000, 1, 53);
_root.add_blocks("04", 665, 311);
_root.add_enemys01("enemy01", 715, 311, 1000, 4, 55);
_root.add_enemys01("enemy01", 790, 311, 1000, 4, 54);
} else {
_root.add_enemys07("enemy08", 319, 311, 1);
_root.add_enemys07("enemy08", 399, 311, 1);
_root.add_enemys07("enemy08", 449, 311, 1);
_root.add_enemys07("enemy08", 499, 311, 1);
_root.add_enemys07("enemy08", 549, 311, 1);
_root.add_enemys07("enemy08", 715, 311, 1);
_root.add_enemys07("enemy08", 790, 311, 1);
_root.add_prisoner("prisoner01", 72, 106, 2, 1, "b");
_root.add_prisoner("prisoner01", 311, 119, 2, 1, "p");
_root.add_prisoner("prisoner01", 418, 171, 2, 1, "p");
_root.add_prisoner("prisoner01", 504, 134, 2, 1, "p");
_root.add_prisoner("prisoner01", 603, 312, 3, 1, "b");
if (_root.game_level == 1) {
_root.add_prisoner("prisoner01", 606, 167, 2, 1, "h");
} else if (_root.game_level == 2) {
_root.add_prisoner("prisoner01", 606, 167, 2, 1, "s");
}
}
Symbol 927 MovieClip [bg_stage1_4] Frame 1
stop();
g._visible = 0;
Symbol 927 MovieClip [bg_stage1_4] Frame 2
stop();
_root.add_enemys07("enemy08", 556, 285, 1);
_root.add_enemys07("enemy08", 584, 280, 1);
_root.add_enemys07("enemy08", 619, 275, 1);
if (_root.game_level < 1) {
_root.add_prisoner("prisoner01", 184, 146, 2, 1, "h");
_root.add_prisoner("prisoner01", 316, 118, 2, 1, "b");
_root.add_prisoner("prisoner01", 447, 140, 2, 1, "p");
} else {
_root.add_enemys07("enemy08", 635, 273, 1);
_root.add_enemys07("enemy08", 653, 270, 1);
_root.add_enemys07("enemy08", 681, 267, 1);
_root.add_enemys06("enemy07", 851, 331);
_root.add_enemys06("enemy07", 892, 334);
_root.add_enemys06("enemy07", 929, 337);
_root.add_prisoner("prisoner01", 184, 146, 2, 1, "p");
_root.add_prisoner("prisoner01", 316, 118, 2, 1, "b");
_root.add_prisoner("prisoner01", 447, 140, 2, 1, "p");
}
Symbol 927 MovieClip [bg_stage1_4] Frame 3
stop();
if (_root.game_level < 1) {
_root.add_enemys01("enemy01", 1200, 342, 1000, 2, 3);
_root.add_enemys01("enemy01", 1225, 342, 1000, 2, 1);
_root.add_enemys01("enemy01", 1250, 342, 1000, 2, 3);
_root.add_enemys01("enemy01", 1275, 342, 1000, 2, 3);
_root.add_enemys01("enemy01", 1300, 342, 1000, 3, 2);
_root.add_enemys01("enemy01", 1325, 342, 1000, 3, 3);
_root.add_enemys01("enemy01", 1350, 342, 1000, 3, 3);
_root.add_enemys01("enemy01", 1508, 342, 5, 4, 2);
_root.add_enemys01("enemy01", 1555, 342, 5, 4, 3);
_root.add_enemys01("enemy01", 1599, 342, 5, 4, 3);
} else {
_root.add_enemys01("enemy01", 1200, 342, 1000, 2, 1);
_root.add_enemys01("enemy01", 1225, 342, 1000, 2, 1);
_root.add_enemys01("enemy01", 1250, 342, 1000, 2, 1);
_root.add_enemys01("enemy01", 1275, 342, 1000, 2, 1);
_root.add_enemys01("enemy01", 1300, 342, 1000, 3, 2);
_root.add_enemys01("enemy01", 1325, 342, 1000, 3, 2);
_root.add_enemys01("enemy01", 1350, 342, 1000, 3, 2);
_root.add_enemys01("enemy01", 1508, 342, 5, 4, 0);
_root.add_enemys01("enemy01", 1555, 342, 5, 4, 0);
_root.add_enemys01("enemy01", 1599, 342, 5, 4, 0);
_root.add_blocks("01", 1425, 342);
}
_root.add_deadAction(_root.add_enemys08("enemy09", 1650, 344, 1615, 1695, 1), 9);
Symbol 960 MovieClip Frame 31
_parent.removeMovieClip();
Symbol 975 MovieClip Frame 15
_parent.removeMovieClip();
Symbol 976 MovieClip [bomb01] Frame 1
stop();
Symbol 976 MovieClip [bomb01] Frame 2
stop();
this.exploding();
Symbol 976 MovieClip [bomb01] Frame 3
stop();
Symbol 976 MovieClip [bomb01] Frame 4
stop();
Symbol 1036 MovieClip Frame 1
stop();
Symbol 1076 MovieClip [boss01] Frame 27
stop();
Symbol 1076 MovieClip [boss01] Frame 44
stop();
Symbol 1076 MovieClip [boss01] Frame 47
play();
Symbol 1076 MovieClip [boss01] Frame 118
this.stand();
Symbol 1076 MovieClip [boss01] Frame 121
play();
Symbol 1076 MovieClip [boss01] Frame 192
this.stand();
Symbol 1076 MovieClip [boss01] Frame 214
this.shootAction(1, 0);
Symbol 1076 MovieClip [boss01] Frame 244
this.stand();
Symbol 1076 MovieClip [boss01] Frame 267
this.shootAction(1, 0);
Symbol 1076 MovieClip [boss01] Frame 311
this.stand();
Symbol 1076 MovieClip [boss01] Frame 383
this.shootAction(2, 1);
Symbol 1076 MovieClip [boss01] Frame 393
this.shootAction(2, -1);
Symbol 1076 MovieClip [boss01] Frame 419
this.stand();
Symbol 1076 MovieClip [boss01] Frame 468
this.shootAction(3, -2);
Symbol 1076 MovieClip [boss01] Frame 469
this.shootAction(3, -1);
Symbol 1076 MovieClip [boss01] Frame 470
this.shootAction(3, 0);
Symbol 1076 MovieClip [boss01] Frame 471
this.shootAction(3, 1);
Symbol 1076 MovieClip [boss01] Frame 472
this.shootAction(3, 2);
Symbol 1076 MovieClip [boss01] Frame 478
this.stand();
Symbol 1076 MovieClip [boss01] Frame 516
this.shootAction(4, 0);
Symbol 1076 MovieClip [boss01] Frame 521
this.shootAction(4, 0);
Symbol 1076 MovieClip [boss01] Frame 526
this.shootAction(4, 0);
Symbol 1076 MovieClip [boss01] Frame 531
this.shootAction(4, 0);
Symbol 1076 MovieClip [boss01] Frame 535
this.shootAction(4, 0);
Symbol 1076 MovieClip [boss01] Frame 559
this.stand();
Symbol 1076 MovieClip [boss01] Frame 722
this.removeMovieClip();
Symbol 1077 MovieClip [flower05] Frame 15
this.removeMovieClip();
Symbol 1100 MovieClip Frame 1
stop();
Symbol 1104 MovieClip Frame 1
stop();
Symbol 1125 MovieClip Frame 1
stop();
Symbol 1144 MovieClip Frame 1
stop();
Symbol 1165 MovieClip Frame 1
stop();
Symbol 1187 MovieClip Frame 1
stop();
Symbol 1205 MovieClip Frame 1
stop();
level.gotoAndStop(_root.stages);
Symbol 1205 MovieClip Frame 35
_parent.play();
Symbol 1236 MovieClip Frame 1
stop();
Symbol 1257 MovieClip Frame 17
_root.play_soundAction("\u4EBA\u8D28\u656C\u793C");
Symbol 1257 MovieClip Frame 27
stop();
_parent.run_away();
Symbol 1280 MovieClip Frame 1
stop();
Symbol 1288 MovieClip Frame 1
stop();
_parent.count_prisoner();
btn01.onPress = function () {
_root.show_credits();
};
btn02.onPress = function () {
_root.restart_game();
};
discuss_btn.onPress = function () {
getURL (_root.discussURL, "_blank", "POST");
};
Symbol 1288 MovieClip Frame 43
stop();
_parent.count_bomb();
Symbol 1288 MovieClip Frame 83
stop();
_parent.count_time();
Symbol 1289 MovieClip [level_pass_count] Frame 1
_root.control_able = false;
Symbol 1289 MovieClip [level_pass_count] Frame 91
stop();
Symbol 1289 MovieClip [level_pass_count] Frame 132
stop();
_root.level_pass();
this.removeMovieClip();
Symbol 1293 MovieClip [pass_cover] Frame 1
_root.control_able = false;
Symbol 1293 MovieClip [pass_cover] Frame 21
_root.next_sence();
Symbol 1293 MovieClip [pass_cover] Frame 48
_root.control_able = true;
this.removeMovieClip();
Symbol 1344 MovieClip Frame 1
stop();
frame = "stand";
_parent.states = "stand";
_parent.speed_rate = 0;
_parent.can_with = true;
_parent.g._yscale = 100;
Symbol 1344 MovieClip Frame 8
stop();
frame = "stand_run";
_parent.states = "stand";
_parent.speed_rate = 1;
_parent.can_with = true;
_parent.g._yscale = 100;
Symbol 1344 MovieClip Frame 15
stop();
frame = "crouch";
_parent.states = "crouch";
_parent.speed_rate = 0;
_parent.can_with = true;
_parent.g._yscale = 50;
Symbol 1344 MovieClip Frame 22
stop();
frame = "crouch_run";
_parent.states = "crouch";
_parent.speed_rate = 0.25;
_parent.can_with = true;
_parent.g._yscale = 50;
Symbol 1344 MovieClip Frame 29
stop();
frame = "crouch_shoot";
_parent.states = "crouch";
_parent.speed_rate = 0;
_parent.can_with = true;
_parent.g._yscale = 50;
Symbol 1344 MovieClip Frame 37
stop();
frame = "jump";
_parent.states = "jump";
_parent.speed_rate = _parent.speed_rate * 1.2;
_parent.can_with = true;
y_speed = 18;
_root.jump_Action(this, 1);
_parent.g._yscale = 100;
Symbol 1344 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 1344 MovieClip Frame 52
stop();
frame = "nothing1";
_parent.speed_rate = 0;
delete this.onEnterFrame;
_parent.can_with = true;
_parent.g._yscale = 0;
Symbol 1344 MovieClip Frame 58
stop();
frame = "nothing2";
_parent.speed_rate = 0;
delete this.onEnterFrame;
_parent.can_with = false;
_parent.g._yscale = 0;
Symbol 1366 MovieClip Frame 4
stop();
Symbol 1376 MovieClip Frame 6
stop();
Symbol 1441 MovieClip Frame 4
stop();
Symbol 1448 MovieClip Frame 3
stop();
Symbol 1477 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
Symbol 1477 MovieClip Frame 13
_parent._parent.ready = true;
_parent._parent.shooting = false;
Symbol 1481 MovieClip Frame 1
_parent._parent.ready = false;
_parent._parent.turning = true;
Symbol 1481 MovieClip Frame 5
_parent._parent.ready = true;
_parent._parent._xscale = _parent._parent._xscale * -1;
_parent._parent.turning = false;
Symbol 1485 MovieClip Frame 1
_parent._parent.ready = false;
_parent._parent.turning = true;
Symbol 1485 MovieClip Frame 5
_parent._parent.ready = true;
_parent._parent._xscale = _parent._parent._xscale * -1;
_parent._parent.turning = false;
Symbol 1489 MovieClip Frame 1
_parent._parent.ready = false;
_parent._parent.turning = true;
Symbol 1489 MovieClip Frame 5
_parent._parent.ready = true;
_parent._parent._xscale = _parent._parent._xscale * -1;
_parent._parent.turning = false;
Symbol 1493 MovieClip Frame 1
_parent._parent.ready = false;
_parent._parent.turning = true;
Symbol 1493 MovieClip Frame 5
_parent._parent.ready = true;
_parent._parent._xscale = _parent._parent._xscale * -1;
_parent._parent.turning = false;
Symbol 1508 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
Symbol 1508 MovieClip Frame 4
_root.attackAction(point);
Symbol 1508 MovieClip Frame 8
_parent._parent.ready = true;
Symbol 1508 MovieClip Frame 23
_parent._parent.shooting = false;
Symbol 1527 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
Symbol 1527 MovieClip Frame 4
_root.attackAction(point);
Symbol 1527 MovieClip Frame 11
_parent._parent.ready = true;
Symbol 1527 MovieClip Frame 26
_parent._parent.shooting = false;
Symbol 1540 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.throwAction();
Symbol 1540 MovieClip Frame 3
_parent._parent.ready = true;
Symbol 1540 MovieClip Frame 8
_parent._parent.shooting = false;
Symbol 1553 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.throwAction();
Symbol 1553 MovieClip Frame 3
_parent._parent.ready = true;
Symbol 1553 MovieClip Frame 8
_parent._parent.shooting = false;
Symbol 1568 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1568 MovieClip Frame 2
_parent._parent.ready = true;
Symbol 1568 MovieClip Frame 9
_parent._parent.shooting = false;
Symbol 1581 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1581 MovieClip Frame 3
_parent._parent.ready = true;
Symbol 1581 MovieClip Frame 8
_parent._parent.shooting = false;
Symbol 1581 MovieClip Frame 9
stop();
Symbol 1594 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1594 MovieClip Frame 5
_parent._parent.ready = true;
Symbol 1594 MovieClip Frame 20
_parent._parent.shooting = false;
Symbol 1599 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 1599 MovieClip Frame 5
_root.shootAction();
_parent._parent.ready = true;
Symbol 1599 MovieClip Frame 9
_root.shootAction();
Symbol 1599 MovieClip Frame 12
_parent._parent.shooting = false;
Symbol 1616 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1616 MovieClip Frame 5
_parent._parent.ready = true;
Symbol 1616 MovieClip Frame 22
_parent._parent.shooting = false;
Symbol 1616 MovieClip Frame 23
stop();
Symbol 1621 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 1621 MovieClip Frame 5
_root.shootAction();
_parent._parent.ready = true;
Symbol 1621 MovieClip Frame 9
_root.shootAction();
Symbol 1621 MovieClip Frame 12
_parent._parent.shooting = false;
Symbol 1621 MovieClip Frame 13
stop();
Symbol 1624 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_parent._parent.gun_direction = -15;
_root.shootAction();
Symbol 1624 MovieClip Frame 3
_parent._parent.gun_direction = -40;
_root.shootAction();
Symbol 1624 MovieClip Frame 5
_parent._parent.gun_direction = -65;
_root.shootAction();
Symbol 1624 MovieClip Frame 7
_parent.gotoAndStop("machinegun_up_running");
Symbol 1625 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_parent._parent.gun_direction = -65;
_root.shootAction();
Symbol 1625 MovieClip Frame 3
_parent._parent.gun_direction = -40;
_root.shootAction();
Symbol 1625 MovieClip Frame 5
_parent._parent.gun_direction = -15;
_root.shootAction();
Symbol 1625 MovieClip Frame 7
_parent.gotoAndStop("machinegun_straight_running");
Symbol 1630 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_parent._parent.gun_direction = 15;
_root.shootAction();
Symbol 1630 MovieClip Frame 3
_parent._parent.gun_direction = 40;
_root.shootAction();
Symbol 1630 MovieClip Frame 5
_parent._parent.gun_direction = 65;
_root.shootAction();
Symbol 1630 MovieClip Frame 7
_parent.gotoAndStop("machinegun_down_running");
Symbol 1631 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_parent._parent.gun_direction = 65;
_root.shootAction();
Symbol 1631 MovieClip Frame 3
_parent._parent.gun_direction = 40;
_root.shootAction();
Symbol 1631 MovieClip Frame 5
_parent._parent.gun_direction = 15;
_root.shootAction();
Symbol 1631 MovieClip Frame 7
_parent.gotoAndStop("machinegun_straight_running");
Symbol 1632 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1632 MovieClip Frame 3
_parent._parent.ready = true;
Symbol 1632 MovieClip Frame 9
_parent._parent.shooting = false;
Symbol 1633 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1633 MovieClip Frame 5
_parent._parent.ready = true;
Symbol 1633 MovieClip Frame 22
_parent._parent.shooting = false;
Symbol 1634 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 1634 MovieClip Frame 5
_root.shootAction();
_parent._parent.ready = true;
Symbol 1634 MovieClip Frame 9
_root.shootAction();
Symbol 1634 MovieClip Frame 12
_parent._parent.shooting = false;
stop();
Symbol 1645 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
Symbol 1645 MovieClip Frame 4
_root.attackAction(point);
Symbol 1645 MovieClip Frame 7
_parent._parent.ready = true;
Symbol 1645 MovieClip Frame 23
_parent._parent.shooting = false;
Symbol 1660 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1660 MovieClip Frame 3
_parent._parent.ready = true;
Symbol 1660 MovieClip Frame 8
_parent._parent.shooting = false;
_parent.gotoAndStop("pistol_crouch");
Symbol 1665 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1665 MovieClip Frame 5
_parent._parent.ready = true;
_root.shootAction();
Symbol 1665 MovieClip Frame 9
_root.shootAction();
Symbol 1665 MovieClip Frame 12
_parent._parent.shooting = false;
_parent.gotoAndStop("machinegun_crouch");
Symbol 1678 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.shootAction();
Symbol 1678 MovieClip Frame 9
_parent._parent.ready = true;
Symbol 1678 MovieClip Frame 20
_parent._parent.shooting = false;
_parent.gotoAndStop("machinegun_crouch");
Symbol 1691 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.throwAction();
Symbol 1691 MovieClip Frame 3
_parent._parent.ready = true;
Symbol 1691 MovieClip Frame 8
_parent._parent.shooting = false;
_parent.gotoAndStop("pistol_crouch");
Symbol 1704 MovieClip Frame 1
_parent._parent.shooting = true;
_parent._parent.ready = false;
_root.throwAction();
Symbol 1704 MovieClip Frame 3
_parent._parent.ready = true;
Symbol 1704 MovieClip Frame 8
_parent._parent.shooting = false;
_parent.gotoAndStop("machinegun_crouch");
Symbol 1727 MovieClip Frame 7
if (!can_play) {
stop();
}
Symbol 1727 MovieClip Frame 31
_parent._visible = !_parent._visible;
Symbol 1727 MovieClip Frame 35
_parent._visible = !_parent._visible;
Symbol 1727 MovieClip Frame 39
_parent._visible = !_parent._visible;
Symbol 1727 MovieClip Frame 43
_parent._visible = !_parent._visible;
Symbol 1727 MovieClip Frame 47
_parent._visible = !_parent._visible;
Symbol 1727 MovieClip Frame 51
stop();
_root.player_born();
Symbol 1734 MovieClip Frame 35
stop();
_root.player_born();
Symbol 1754 MovieClip Frame 109
stop();
_root.player_born();
Symbol 1755 MovieClip Frame 1
stop();
frame = "pistol_stand";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 9
stop();
frame = "machinegun_stand";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 17
stop();
frame = "pistol_lookup";
_parent.gun_direction = "up";
Symbol 1755 MovieClip Frame 25
stop();
frame = "machinegun_lookup";
_parent.gun_direction = "up";
Symbol 1755 MovieClip Frame 34
stop();
frame = "pistol_stand_run";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 42
stop();
frame = "machinegun_stand_run";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 50
stop();
frame = "pistol_jump";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 58
stop();
frame = "machinegun_jump";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 66
stop();
frame = "pistol_down";
_parent.gun_direction = "down";
Symbol 1755 MovieClip Frame 77
stop();
frame = "machinegun_down";
_parent.gun_direction = "down";
Symbol 1755 MovieClip Frame 87
stop();
frame = "pistol_crouch";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 95
stop();
frame = "machinegun_crouch";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 103
stop();
frame = "get_pistol";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 110
stop();
frame = "pistol_stand_turn";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 118
stop();
frame = "machinegun_stand_turn";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 126
stop();
frame = "pistol_crouch_turn";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 134
stop();
frame = "machinegun_crouch_turn";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 158
stop();
frame = "go_05";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 166
stop();
frame = "go_06";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 174
stop();
frame = "pistol_stand_bomb";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 185
stop();
frame = "machinegun_stand_bomb";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 196
stop();
frame = "pistol_straight_single";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 207
stop();
frame = "pistol_up_single";
_parent.gun_direction = "up";
Symbol 1755 MovieClip Frame 219
stop();
frame = "machinegun_straight_single";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 231
stop();
frame = "machinegun_straight_running";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 244
stop();
frame = "machinegun_up_single";
_parent.gun_direction = "up";
Symbol 1755 MovieClip Frame 256
stop();
frame = "machinegun_up_running";
_parent.gun_direction = "up";
Symbol 1755 MovieClip Frame 268
stop();
frame = "s_to_u";
changing = true;
Symbol 1755 MovieClip Frame 279
stop();
frame = "u_to_s";
changing = true;
Symbol 1755 MovieClip Frame 290
stop();
frame = "s_to_d";
changing = true;
Symbol 1755 MovieClip Frame 301
stop();
frame = "d_to_s";
changing = true;
Symbol 1755 MovieClip Frame 328
stop();
frame = "pistol_down_single";
_parent.gun_direction = "down";
Symbol 1755 MovieClip Frame 339
stop();
frame = "machinegun_down_single";
_parent.gun_direction = "down";
Symbol 1755 MovieClip Frame 350
stop();
frame = "machinegun_down_running";
_parent.gun_direction = "down";
Symbol 1755 MovieClip Frame 380
stop();
frame = "go_20";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 388
stop();
frame = "pistol_crouch_single";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 399
stop();
frame = "machinegun_crouch_running";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 410
stop();
frame = "machinegun_crouch_single";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 421
stop();
frame = "pistol_crouch_bomb";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 432
stop();
frame = "machinegun_crouch_bomb";
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 450
stop();
_parent.down.gotoAndStop("nothing1");
_parent.gun_direction = "straight";
y_speed = 5;
_root.jump_Action(this, 0);
Symbol 1755 MovieClip Frame 460
stop();
_parent.down.gotoAndStop("nothing1");
_parent.gun_direction = "straight";
y_speed = 5;
_root.jump_Action(this, 0);
Symbol 1755 MovieClip Frame 470
stop();
_parent.down.gotoAndStop("nothing2");
_parent.gun_direction = "straight";
Symbol 1755 MovieClip Frame 480
stop();
_parent.down.gotoAndStop("nothing2");
_parent.gun_direction = "straight";
Symbol 1759 MovieClip [player_life] Frame 20
stop();
Symbol 1777 MovieClip Frame 59
_parent.stand();
Symbol 1786 MovieClip Frame 17
_parent.stand();
Symbol 1795 MovieClip Frame 12
_parent.moves();
Symbol 1819 MovieClip Frame 7
stop();
Symbol 1833 MovieClip Frame 12
_parent.moves();
Symbol 1859 MovieClip Frame 10
_parent.giveAction();
Symbol 1859 MovieClip Frame 23
_parent.show_me();
Symbol 1878 MovieClip [shine_cover] Frame 2
this.removeMovieClip();
Symbol 1915 MovieClip Frame 11
_parent.removeMovieClip();
Symbol 1916 MovieClip [shoot0] Frame 1
speed = 30;
Symbol 1916 MovieClip [shoot0] Frame 3
can_go = true;
Symbol 1916 MovieClip [shoot0] Frame 5
stop();
Symbol 1916 MovieClip [shoot0] Frame 6
can_go = false;
play();
Symbol 1916 MovieClip [shoot0] Frame 15
this.removeMovieClip();
Symbol 1916 MovieClip [shoot0] Frame 20
stop();
Symbol 1916 MovieClip [shoot0] Frame 21
stop();
Symbol 1916 MovieClip [shoot0] Frame 22
stop();
Symbol 1935 MovieClip [shoot1] Frame 1
speed = 30;
Symbol 1935 MovieClip [shoot1] Frame 4
_y = (_y + (random(15) * ((random(2) * 2) - 1)));
can_go = true;
Symbol 1935 MovieClip [shoot1] Frame 5
stop();
Symbol 1935 MovieClip [shoot1] Frame 6
can_go = false;
play();
Symbol 1935 MovieClip [shoot1] Frame 11
this.removeMovieClip();
Symbol 1935 MovieClip [shoot1] Frame 16
stop();
Symbol 1935 MovieClip [shoot1] Frame 21
stop();
Symbol 1935 MovieClip [shoot1] Frame 28
stop();
Symbol 1963 MovieClip [shoot2] Frame 1
speed = 0;
can_go = true;
Symbol 1963 MovieClip [shoot2] Frame 9
speed = 20;
Symbol 1963 MovieClip [shoot2] Frame 10
stop();
Symbol 1963 MovieClip [shoot2] Frame 12
stop();
this.exploding();
Symbol 1963 MovieClip [shoot2] Frame 16
stop();
this.exploding();
Symbol 1963 MovieClip [shoot2] Frame 20
stop();
stop();
Symbol 1963 MovieClip [shoot2] Frame 24
stop();
stop();
Symbol 1993 MovieClip Frame 7
stop();
Symbol 2007 MovieClip Frame 1
btn01.enabled = false;
btn02.onPress = function () {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
_parent.gotoAndPlay("level");
};
Symbol 2037 MovieClip Frame 1
btn01.onPress = function () {
var _local4 = _root.check_correct();
if (_local4 == true) {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
this.enabled = false;
_root.end_set_key();
_parent.gotoAndPlay("set_key2");
} else {
light._visible = 1;
light._y = this[_local4]._y;
}
};
btn02.onPress = function () {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
_root.reset_org_key();
};
Symbol 2038 MovieClip Frame 16
_root.play_soundAction("\u5F00\u59CB\u6253\u5B57\u97F3\u6548");
Symbol 2038 MovieClip Frame 20
_root.play_soundAction("\u5F00\u59CB\u6253\u5B57\u97F3\u6548");
Symbol 2038 MovieClip Frame 30
_root.play_soundAction("\u5F00\u59CB\u6253\u5B57\u97F3\u6548");
Symbol 2038 MovieClip Frame 36
_root.play_soundAction("\u5F00\u59CB\u6253\u5B57\u97F3\u6548");
Symbol 2038 MovieClip Frame 40
btn01.onPress = function () {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
};
btn02.onPress = function () {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
gotoAndPlay ("help");
};
btn03.onPress = function () {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
gotoAndPlay ("set_key1");
};
btn01.enabled = false;
Symbol 2038 MovieClip Frame 70
_root.play_soundAction("H\u5F39\u53D1\u5C04");
Symbol 2038 MovieClip Frame 83
_root.play_soundAction("H\u5F39\u53D1\u5C04");
Symbol 2038 MovieClip Frame 96
_root.play_soundAction("H\u5F39\u53D1\u5C04");
Symbol 2038 MovieClip Frame 109
_root.play_soundAction("H\u5F39\u53D1\u5C04");
Symbol 2038 MovieClip Frame 144
stop();
Symbol 2038 MovieClip Frame 146
btn01.enabled = false;
btn02.enabled = false;
btn03.enabled = false;
Symbol 2038 MovieClip Frame 155
stop();
Symbol 2038 MovieClip Frame 156
help.btn01.enabled = false;
help.btn02.enabled = false;
Symbol 2038 MovieClip Frame 160
btn04.onPress = function () {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
_root.game_level = 0.5;
_parent.gotoAndStop("select");
};
btn05.onPress = function () {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
_root.game_level = 1;
_parent.gotoAndStop("select");
};
btn06.onPress = function () {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
_root.game_level = 2;
_parent.gotoAndStop("select");
};
stop();
Symbol 2038 MovieClip Frame 162
btn01.enabled = false;
btn02.enabled = false;
btn03.enabled = false;
_root.set_current_key();
Symbol 2038 MovieClip Frame 172
stop();
_root.start_set_key(1, "wcode");
Symbol 2038 MovieClip Frame 183
stop();
btn02.enabled = true;
btn03.enabled = true;
Symbol 2054 MovieClip Frame 10
btn01.onPress = function () {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
_root.game_start();
_parent.removeMovieClip();
};
stop();
Symbol 2105 MovieClip Frame 781
Symbol 2105 MovieClip Frame 828
stop();
btn.onPress = function () {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
_root.restart_game();
};
Symbol 2106 MovieClip Frame 24
stop();
Symbol 2112 MovieClip Frame 75
stopAllSounds();
_root.play_soundAction("\u6E38\u620F\u7ED3\u675F");
_parent.count_score();
_root.clean_fire();
btn.onPress = function () {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
_root.restart_game();
};
Symbol 2112 MovieClip Frame 106
stop();
Symbol 2123 MovieClip Frame 25
_parent.removeMovieClip();
Symbol 2124 MovieClip [boss01_shoot03] Frame 1
stop();
Symbol 2124 MovieClip [boss01_shoot03] Frame 3
stop();
Symbol 2127 MovieClip [boss01_shoot02] Frame 1
stop();
Symbol 2127 MovieClip [boss01_shoot02] Frame 3
stop();
Symbol 2157 MovieClip [weapons] Frame 6
gotoAndPlay(type);
Symbol 2157 MovieClip [weapons] Frame 17
stop();
this.find_player();
Symbol 2157 MovieClip [weapons] Frame 28
stop();
this.find_player();
Symbol 2157 MovieClip [weapons] Frame 39
stop();
this.find_player();
Symbol 2157 MovieClip [weapons] Frame 50
stop();
this.find_player();
Symbol 2157 MovieClip [weapons] Frame 60
this.removeMovieClip();
Symbol 2175 MovieClip [npc_shoot02] Frame 1
speed = -7 - Math.floor(_root.game_level);
Symbol 2175 MovieClip [npc_shoot02] Frame 7
stop();
can_go = true;
Symbol 2175 MovieClip [npc_shoot02] Frame 10
stop();
can_go = false;
Symbol 2176 MovieClip [npc_shoot06] Frame 1
can_go = true;
speed = -3;
stop();
Symbol 2176 MovieClip [npc_shoot06] Frame 3
stop();
Symbol 2177 MovieClip [npc_shoot07] Frame 1
stop();
Symbol 2177 MovieClip [npc_shoot07] Frame 3
stop();
Symbol 2198 MovieClip Frame 19
_parent.removeMovieClip();
Symbol 2199 MovieClip [npc_shoot09] Frame 1
stop();
Symbol 2199 MovieClip [npc_shoot09] Frame 3
stop();
Symbol 2223 MovieClip Frame 9
_parent.removeMovieClip();
Symbol 2224 MovieClip [npc_shoot03] Frame 1
speed = -7 - Math.floor(_root.game_level);
Symbol 2224 MovieClip [npc_shoot03] Frame 7
stop();
can_go = true;
Symbol 2224 MovieClip [npc_shoot03] Frame 10
stop();
Symbol 2225 MovieClip [npc_shoot05] Frame 1
speed = -7 - Math.floor(_root.game_level);
Symbol 2225 MovieClip [npc_shoot05] Frame 7
stop();
can_go = true;
Symbol 2225 MovieClip [npc_shoot05] Frame 10
stop();
Symbol 2228 MovieClip [npc_shoot10] Frame 1
stop();
Symbol 2228 MovieClip [npc_shoot10] Frame 3
stop();
Symbol 2236 MovieClip [npc_shoot04] Frame 1
can_go = true;
stop();
Symbol 2236 MovieClip [npc_shoot04] Frame 3
stop();
Symbol 2247 MovieClip [npc_shoot01] Frame 1
speed = -7 - Math.floor(_root.game_level);
Symbol 2247 MovieClip [npc_shoot01] Frame 6
stop();
can_go = true;
Symbol 2247 MovieClip [npc_shoot01] Frame 9
stop();
can_go = false;
Symbol 2253 MovieClip [npc_shoot08] Frame 1
stop();
speed = -9 - Math.floor(_root.game_level);
can_go = true;
Symbol 2253 MovieClip [npc_shoot08] Frame 3
stop();
Symbol 2293 MovieClip Frame 1
stop();
Symbol 2306 MovieClip Frame 1
stop();
this._visible = 0;
Symbol 2307 MovieClip [player_car01] Frame 1
function startAction() {
if (!running) {
running = true;
body1.play();
body2.play();
w1.play();
w2.play();
this.onEnterFrame = function () {
_root.active_map_drawer = this;
_root.active_object_speed = speed;
if (this._x < 53800) {
if (speed < 25) {
speed = speed + 0.2;
} else {
speed = 25;
}
} else if (speed > 0) {
speed = speed - 0.2;
} else {
speed = 0;
}
_root.moveAction(this, (speed * Math.abs(this._xscale)) / this._xscale);
if (_root.main.player.can_with) {
_root.main.player._x = _root.main.player._x + speed;
}
if (speed == 0) {
_root.active_object_speed = 0;
_root.active_map_drawer = "main.player";
body1.stop();
body2.stop();
w1.stop();
w2.stop();
delete this.onEnterFrame;
}
};
}
}
No = 3;
body1.stop();
body2.stop();
w1.stop();
w2.stop();
can_block = true;
g._visible = 0;
speed = 0;
heights = this._height;
Symbol 2314 MovieClip [start_ani1] Frame 2
car.body1.play();
car.body2.play();
car.w1.play();
car.w1.play();
_root.play_soundAction("\u5361\u8F66\u5F00\u52A8");
Symbol 2314 MovieClip [start_ani1] Frame 18
_root.play_soundAction("\u5361\u8F66\u5239\u8F66");
Symbol 2314 MovieClip [start_ani1] Frame 23
car.w1.stop();
car.w2.stop();
Symbol 2314 MovieClip [start_ani1] Frame 33
car.body1.stop();
car.body2.stop();
Symbol 2314 MovieClip [start_ani1] Frame 49
car.w1.play();
car.w2.play();
car.body1.play();
car.body2.play();
_root.play_soundAction("\u5361\u8F66\u5F00\u52A8");
Symbol 2314 MovieClip [start_ani1] Frame 59
_root.level_start();
Symbol 2314 MovieClip [start_ani1] Frame 73
this.removeMovieClip();
Symbol 2330 MovieClip [rock01] Frame 1
function startAction() {
if (this._x < 7900) {
this.onEnterFrame = function () {
_root.active_map_drawer = this;
_root.active_object_speed = speed;
play();
this._x = this._x + speed;
if (_root.main.player.g.hitTest(this)) {
if (_root.main.player.can_with) {
_root.main.player._x = _root.main.player._x + (speed * 2);
}
}
if (this._x >= 7900) {
stop();
_root.active_object_speed = 0;
_root.active_map_drawer = "main.player";
delete this.onEnterFrame;
}
};
}
}
No = 2;
stop();
g._visible = 0;
speed = 2;
Symbol 2330 MovieClip [rock01] Frame 200
gotoAndPlay (2);
Symbol 2357 MovieClip Frame 1
_parent.numbers = 100;
gotoAndStop(random(13) + 1);
Symbol 2357 MovieClip Frame 2
_parent.numbers = 200;
Symbol 2357 MovieClip Frame 3
_parent.numbers = 300;
Symbol 2357 MovieClip Frame 4
_parent.numbers = 400;
Symbol 2357 MovieClip Frame 5
_parent.numbers = 500;
Symbol 2357 MovieClip Frame 6
_parent.numbers = 600;
Symbol 2357 MovieClip Frame 7
_parent.numbers = 700;
Symbol 2357 MovieClip Frame 8
_parent.numbers = 800;
Symbol 2357 MovieClip Frame 9
_parent.numbers = 900;
Symbol 2357 MovieClip Frame 10
_parent.numbers = 1000;
Symbol 2357 MovieClip Frame 11
_parent.numbers = 2000;
Symbol 2357 MovieClip Frame 12
_parent.numbers = 2500;
Symbol 2357 MovieClip Frame 13
_parent.numbers = 5000;
Symbol 2378 MovieClip Frame 1
stop();
Symbol 2379 MovieClip Frame 1
_parent.show_score(5);
Symbol 2379 MovieClip Frame 4
_parent.show_score(4);
Symbol 2379 MovieClip Frame 7
_parent.show_score(3);
Symbol 2379 MovieClip Frame 10
_parent.show_score(2);
Symbol 2379 MovieClip Frame 13
_parent.show_score(1);
Symbol 2379 MovieClip Frame 66
_parent.removeMovieClip();
Symbol 2380 MovieClip [present] Frame 6
gotoAndPlay(type);
Symbol 2380 MovieClip [present] Frame 18
stop();
this.find_player();
Symbol 2380 MovieClip [present] Frame 22
stop();
Symbol 2408 MovieClip [boat01] Frame 1
function startAction() {
if (this._x < 4300) {
this.onEnterFrame = function () {
_root.active_map_drawer = this;
_root.active_object_speed = speed;
old.play();
this._x = this._x + speed;
if (!random(40)) {
_root.add_enemys04("enemy05", this._x - 130, this._y + 75);
} else if (!random(300)) {
_root.add_enemys04("enemy05", this._x + 280, this._y + 75);
}
if (_root.main.player.g.hitTest(this)) {
if (_root.main.player.can_with) {
_root.main.player._x = _root.main.player._x + speed;
}
}
if (this._x >= 4380) {
_root.active_object_speed = 0;
_root.active_map_drawer = "main.player";
delete this.onEnterFrame;
gotoAndPlay ("over");
}
};
}
}
No = 1;
g._visible = 0;
speed = 1.5;
old.stop();
Symbol 2408 MovieClip [boat01] Frame 24
gotoAndPlay (2);
Symbol 2408 MovieClip [boat01] Frame 41
_root.play_soundAction("\u4EBA\u8D28\u656C\u793C");
Symbol 2408 MovieClip [boat01] Frame 77
_root.play_soundAction("\u843D\u6C34");
Symbol 2408 MovieClip [boat01] Frame 105
stop();
Symbol 2413 MovieClip Frame 13
stop();
Symbol 2416 MovieClip Frame 1
stop();
Symbol 2417 MovieClip [block04] Frame 1
stop();
Symbol 2417 MovieClip [block04] Frame 3
if (this.dead) {
gotoAndPlay ("explode");
} else {
gotoAndStop (1);
}
Symbol 2417 MovieClip [block04] Frame 5
play();
Symbol 2417 MovieClip [block04] Frame 29
this.removeMovieClip();
Symbol 2424 MovieClip [attack_effect] Frame 10
this.removeMovieClip();
Symbol 2433 MovieClip [block01] Frame 1
stop();
Symbol 2433 MovieClip [block01] Frame 2
play();
Symbol 2433 MovieClip [block01] Frame 3
if (this.dead) {
gotoAndPlay ("explode");
} else {
gotoAndStop (1);
}
Symbol 2433 MovieClip [block01] Frame 7
play();
Symbol 2433 MovieClip [block01] Frame 49
this.removeMovieClip();
Symbol 2443 MovieClip [block02] Frame 1
stop();
Symbol 2443 MovieClip [block02] Frame 8
if (this.dead) {
gotoAndPlay ("explode");
} else {
gotoAndStop (1);
}
Symbol 2443 MovieClip [block02] Frame 10
play();
Symbol 2443 MovieClip [block02] Frame 13
this.exploding();
Symbol 2443 MovieClip [block02] Frame 45
this.removeMovieClip();
Symbol 2460 MovieClip [block03] Frame 1
stop();
Symbol 2460 MovieClip [block03] Frame 6
if (this.dead) {
gotoAndPlay ("explode");
} else {
gotoAndStop (1);
}
Symbol 2460 MovieClip [block03] Frame 8
play();
Symbol 2460 MovieClip [block03] Frame 34
this.removeMovieClip();
Symbol 2483 MovieClip [shoot3] Frame 1
speed = 2;
can_go = false;
Symbol 2483 MovieClip [shoot3] Frame 5
can_go = true;
Symbol 2483 MovieClip [shoot3] Frame 25
this.removeMovieClip();
Symbol 2484 MovieClip Frame 1
stop();