Frame 1
function loadingAction() {
loading.stop();
this.onEnterFrame = function () {
var _local4 = getBytesLoaded();
var _local3 = 6456320 /* 0x628400 */;
var _local2 = Math.round((_local4 / _local3) * 100);
loading.gotoAndStop(_local2 + 1);
if (_local2 >= 99) {
trace("Game loaded " + Math.round(this.getBytesLoaded() / 1024));
delete this.onEnterFrame;
gotoAndStop ("gatekeeper");
}
mcTempPreloader.gotoAndStop(Math.round(_local2));
};
}
function show_fps() {
if (game_UI.lastTimer != undefined) {
var _local1 = getTimer() - game_UI.lastTimer;
game_UI.fps_txt = Math.round(1000 / _local1);
}
game_UI.lastTimer = getTimer();
}
function get_shoot_point(which) {
if (which != undefined) {
var _local1 = {x:which._x, y:which._y};
which._parent.localToGlobal(_local1);
return([_local1.x - main._x, _local1.y - main._y]);
}
}
function get_map_point(which) {
if (which != undefined) {
var _local1 = {x:which._x, y:which._y};
which._parent.localToGlobal(_local1);
return([_local1.x, _local1.y]);
}
}
function get_local_point(which, gx, gy) {
if (which != undefined) {
var _local1 = {x:gx, y:gy};
which.globalToLocal(_local1);
return([_local1.x, _local1.y]);
}
}
function get_dir(to, from) {
var _local2 = get_map_point(to);
var _local1 = get_map_point(from);
var _local3 = Math.atan2(_local2[1] - _local1[1], _local2[0] - _local1[0]);
return(_local3 / 0.01745);
}
function get_ground_hit(which, gx, gy) {
if (which != undefined) {
if (which.hitTest(gx, gy, true)) {
which.picture = new flash.display.BitmapData(2, 2, true, 0);
var _local3 = new flash.geom.Matrix();
var _local4 = get_local_point(which, gx, gy);
_local3.tx = -_local4[0];
_local3.ty = -_local4[1];
which.picture.draw(which, _local3);
var _local2 = which.picture.getPixel(1, 1).toString(16);
if (_local2 == "ff9900") {
return(1);
}
if (_local2 == "ffff00") {
return(2);
}
if (_local2 == "66ff") {
return(-1);
}
if (_local2 == "669900") {
return(-2);
}
if (_local2 == "ff6600") {
return(-3);
}
}
which.picture.dispose();
return(0);
}
}
function clean_cache() {
try {
new LocalConnection().connect("foo");
new LocalConnection().connect("foo");
} catch(error:Error) {
}
}
function adjustY(who, where) {
var _local5 = who._y;
var _local4 = 0;
var _local3 = 0;
do {
if (where.hitTest(who._x + main._x, (who._y + main._y) + 1, true)) {
break;
}
who._y = who._y + 1;
_local4++;
} while (_local4 != 5);
if (!who.hit_head) {
do {
if (!where.hitTest(who._x + main._x, (who._y + main._y) - 1, true)) {
break;
}
who._y = who._y - 1;
_local3++;
} while (_local3 != 5);
}
if (who.states != "jump") {
who.yspeed = who._y - _local5;
}
}
function adjustBullet(who, where) {
do {
if (get_ground_hit(where, who._x + main._x, who._y + main._y) != 1) {
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 > (590 - 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, shake) {
var _local2 = main.objects.getNextHighestDepth();
var _local1 = main.objects.attachMovie(what, (what + "_") + _local2, _local2, {_x:temp_x, _y:temp_y});
_local1.targeter = main.player;
if (shake) {
enemy_shake(_local1, 0.5, 1, true);
}
return(_local1);
}
function change_color(target_mc, color) {
if (color != undefined) {
target_mc.filters = [new flash.filters.ColorMatrixFilter(color)];
}
}
function camera_it(from_mc, to_mc) {
var _local2 = new flash.display.BitmapData(400, 300);
var _local1 = new flash.geom.Matrix();
_local1.tx = from_mc._x;
_local1.ty = from_mc._y;
_local2.draw(from_mc, _local1);
to_mc.attachBitmap(_local2, to_mc.getNextHighestDepth());
}
function noiser_this(where, alpha, how) {
where.createEmptyMovieClip("noiser", where.getNextHighestDepth());
where.noiser._alpha = alpha;
var bitmapData = (new flash.display.BitmapData(590, 400, false, 13421772));
where.noiser.attachBitmap(bitmapData, this.getNextHighestDepth());
if (how == "temp") {
where.noiser.count = 3;
} else {
where.noiser.count = -1;
}
where.noiser.onEnterFrame = function () {
bitmapData.noise(random(128), 0, 225, 1, true);
if ((--this.count) == 0) {
delete bitmapData;
this.removeMovieClip();
}
};
}
function shot_shine(who, shine, shine_times) {
if (!who.no_shine) {
who.shine_mc.removeMovieClip();
who.createEmptyMovieClip("shine_mc", who.getNextHighestDepth());
var _local3 = new Color(who);
_local3.setTransform(this["shine_Transform_" + shine]);
who.shine_mc.count = 0;
who.shine_mc.shine_times = shine_times;
who.shine_mc.onEnterFrame = function () {
if ((++this.count) == this.shine_times) {
var _local2 = new Color(this._parent);
if (!this._parent.in_water) {
_local2.setTransform(shine_Transform_normal);
} else {
_local2.setTransform(shine_Transform_blue);
}
this.removeMovieClip();
}
};
}
}
function always_shine(who, shine) {
var _local2 = new Color(who);
_local2.setTransform(this["shine_Transform_" + shine]);
}
function get_distance(a, b) {
if ((a == undefined) or (b == undefined)) {
return(0);
}
var _local2 = Math.abs(a._x - b._x);
var _local1 = Math.abs(a._y - b._y);
var _local5 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
return(_local5);
}
function h2so4_move_things(where, power) {
for (var _local5 in main.enemies) {
if (main.enemies[_local5].g.hitTest(where)) {
if (main.enemies[_local5].be_moved_mc == undefined) {
var _local2 = main.enemies[_local5].createEmptyMovieClip("be_moved_mc", main.enemies[_local5].getNextHighestDepth());
} else {
var _local2 = main.enemies[_local5].be_moved_mc;
}
_local2.power = (power * Math.abs(main.enemies[_local5]._x - where._x)) / (main.enemies[_local5]._x - where._x);
_local2.onEnterFrame = function () {
var _local2 = get_map_point(this)[0] + this.power;
if ((_local2 > 30) and (_local2 < 560)) {
enemy_move(this._parent, this.power, 0);
this.power = this.power * 0.95;
if (Math.abs(this.power) < 0.25) {
this.removeMovieClip();
}
} else {
this.removeMovieClip();
}
};
}
}
}
function touch_kill_enemy(who, where, how, sound, effect) {
for (var _local2 in main.enemies) {
if (main.enemies[_local2]._name != who._name) {
if (main.enemies[_local2].g.hitTest(where)) {
if (!main.enemies[_local2].no_damage) {
play_soundAction(sound, false);
main.enemies[_local2].to_die(how, main.enemies[_local2].blood);
}
return(true);
}
}
}
return(false);
}
function event_delay(which, time1, time2) {
var _local3 = this.getNextHighestDepth();
var _local2 = this.createEmptyMovieClip("event_counter" + _local3, _local3);
_local2.count = 0;
_local2.onEnterFrame = function () {
this.count++;
if (this.count == time1) {
this.delay_Event1();
} else if (this.count == time2) {
this.delay_Event2();
this.removeMovieClip();
}
};
return(_local2);
}
function shake_screen() {
if (this.screen_shocker == undefined) {
this.createEmptyMovieClip("screen_shocker", this.getNextHighestDepth());
}
this.screen_shocker.count = 8;
if (this.screen_shocker.onEnterFrame == undefined) {
this.screen_shocker.onEnterFrame = function () {
if ((this.count % 2) == 0) {
this._parent._x = random(3);
this._parent._y = random(3);
} else {
this._parent._x = -random(3);
this._parent._y = -random(3);
}
this.count--;
if (this.count <= 0) {
this._parent._x = 0;
this._parent._y = 0;
this.removeMovieClip();
}
};
}
}
function something_elec(who) {
who.createEmptyMovieClip("elec_mc", who.getNextHighestDepth());
who.elec_mc.count = 0;
who.elec_mc.onEnterFrame = function () {
if (((++this.count) % 5) > 2) {
if (!who.in_water) {
always_shine(this._parent, "normal");
} else {
always_shine(this._parent, "blue");
}
if (this.count > 30) {
this.removeMovieClip();
}
} else {
always_shine(this._parent, "white");
}
};
}
function object_remove(which, still_time) {
if (still_time >= 0) {
which.createEmptyMovieClip("remove_mc", which.getNextHighestDepth());
which.remove_mc.still_time = still_time;
which.remove_mc.shine_count = 0;
which.remove_mc.onEnterFrame = function () {
if ((--this.still_time) < 0) {
this.shine_count++;
var _local2 = this.shine_count % 2;
this._parent._alpha = 40 + (_local2 * 60);
if (this.shine_count > 35) {
this._parent.removeMovieClip();
}
}
};
}
}
function camera_death() {
death_photo = new flash.display.BitmapData(590, 400);
death_photo.draw(_root);
}
function show_death_photo(where) {
where.attachBitmap(death_photo, where.getNextHighestDepth());
}
function URL_lockAction() {
return(true);
while (_local2 < _local4.length) {
var _local3 = _local4.slice(_local2, _local2 + 13);
if (_local3 == ".miniclip.com") {
return(true);
}
_local2++;
}
return(false);
}
function LOCAL_lockAction() {
return(true);
while (_local2 < _local4.length) {
var _local3 = _local4.slice(_local2, _local2 + 5);
if (_local3 == "file:") {
return(false);
}
_local2++;
}
return(true);
}
function NPC_scare() {
for (var _local1 in main.others) {
if (main.others[_local1].scare == false) {
main.others[_local1].scare = true;
main.others[_local1].move_me();
}
}
}
function add_creatures_01(px, py, xscale) {
var _local3 = main.others.getNextHighestDepth();
var _local2 = main.others.attachMovie("NPC_\u516C\u9E21", "NPC_\u516C\u9E21" + _local3, _local3, {_x:px, _y:py});
_local2._xscale = xscale;
_local2.move_count = 0;
_local2.min_x = px - 125;
_local2.max_x = px + 125;
_local2.speed = 1;
_local2.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
if ((++this.move_count) > (50 + random(50))) {
this.move_count = 0;
this.move_me1();
} else if (player_shooting) {
this.move_me2();
}
};
};
_local2.move_me1 = function () {
this.gotoAndStop("move1");
this.onEnterFrame = function () {
if (this._xscale == 100) {
if (this._x > this.min_x) {
this._x = this._x - this.speed;
} else {
this._xscale = this._xscale * -1;
}
} else if (this._xscale == -100) {
if (this._x < this.max_x) {
this._x = this._x + this.speed;
} else {
this._xscale = this._xscale * -1;
}
}
if (player_shooting) {
this.move_me2();
} else if (!random(50)) {
this.stand();
}
};
};
_local2.move_me2 = function () {
this.gotoAndStop("move2");
this.yspeed = -5;
this.onEnterFrame = function () {
if (this._xscale == 100) {
if (this._x > this.min_x) {
this._x = this._x - (2 * this.speed);
}
} else if (this._xscale == -100) {
if (this._x < this.max_x) {
this._x = this._x + (2 * this.speed);
}
}
this._y = this._y + this.yspeed;
this.yspeed = this.yspeed + 0.25;
if (this.yspeed > 5) {
this.move_me1();
}
};
};
_local2.stand();
}
function add_creatures_02(px, py, xscale) {
var _local3 = main.others.getNextHighestDepth();
var _local2 = main.others.attachMovie("NPC_\u5C0F\u9E21", "NPC_\u5C0F\u9E21" + _local3, _local3, {_x:px, _y:py});
_local2._xscale = xscale;
_local2.min_x = px - 50;
_local2.max_x = px + 50;
_local2.speed = Math.random();
_local2.move_me = function () {
this.onEnterFrame = function () {
if (this._xscale == 100) {
if (this._x > this.min_x) {
this._x = this._x - this.speed;
} else {
this._xscale = this._xscale * -1;
}
} else if (this._xscale == -100) {
if (this._x < this.max_x) {
this._x = this._x + this.speed;
} else {
this._xscale = this._xscale * -1;
}
}
};
};
_local2.move_me();
}
function add_creatures_03(px, py, xscale) {
var _local3 = main.others.getNextHighestDepth();
var _local2 = main.others.attachMovie("NPC_\u5C0F\u732A", "NPC_\u5C0F\u732A" + _local3, _local3, {_x:px, _y:py});
_local2._xscale = xscale;
_local2.stand = function () {
this.gotoAndPlay(random(this._totalframes + 1));
};
_local2.stand();
}
function add_creatures_04(px, py, xscale) {
var _local4 = main.others.getNextHighestDepth();
var _local2 = main.others.attachMovie("NPC_\u767D\u9E64", "NPC_\u767D\u9E64" + _local4, _local4, {_x:px, _y:py});
_local2._xscale = xscale;
_local2.xspeed = 4 + random(3);
_local2.yspeed = -9 - random(5);
_local2.stand = function () {
this.gotoAndStop("stand");
this.mc.gotoAndPlay(random(this.mc._totalframes + 1));
this.onEnterFrame = function () {
var _local2 = get_distance(this, main.player);
if (_local2 < 150) {
this.move_me();
} else if ((_local2 >= 150) and (_local2 < 295)) {
if (player_shooting) {
this.move_me();
}
}
};
};
_local2.move_me = function () {
this.gotoAndStop("move");
this.onEnterFrame = function () {
if (this._xscale == 100) {
this._x = this._x - this.xspeed;
} else if (this._xscale == -100) {
this._x = this._x + this.xspeed;
}
this._y = this._y + this.yspeed;
if (get_map_point(this)[1] < -50) {
this.removeMovieClip();
}
};
};
_local2.stand();
}
function add_creatures_05(px, py, xscale) {
var _local4 = main.others.getNextHighestDepth();
var _local2 = main.others.attachMovie("NPC_\u6C34\u9E1F", "NPC_\u6C34\u9E1F" + _local4, _local4, {_x:px, _y:py});
_local2._xscale = xscale;
_local2.min_x = px - 125;
_local2.max_x = px + 125;
_local2.xspeed = Math.random();
_local2.yspeed = -3 - random(3);
_local2.move_me1 = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
if (this._xscale == 100) {
if (this._x > this.min_x) {
this._x = this._x - this.xspeed;
} else {
this._xscale = this._xscale * -1;
}
} else if (this._xscale == -100) {
if (this._x < this.max_x) {
this._x = this._x + this.xspeed;
} else {
this._xscale = this._xscale * -1;
}
}
var _local2 = get_distance(this, main.player);
if (_local2 < 100) {
this.move_me2();
} else if ((_local2 >= 100) and (_local2 < 295)) {
if (player_shooting) {
this.move_me2();
}
}
};
};
_local2.move_me2 = function () {
this.gotoAndStop("move");
this.onEnterFrame = function () {
if (this._xscale == 100) {
this._x = this._x - (8 + random(5));
} else if (this._xscale == -100) {
this._x = this._x + (8 + random(5));
}
this._y = this._y + this.yspeed;
if ((get_map_point(this)[0] < -50) or (get_map_point(this)[0] > 650)) {
this.removeMovieClip();
}
};
};
_local2.move_me1();
}
function add_creatures_06(px, py, xscale, where) {
var _local3 = main.others.getNextHighestDepth();
var _local2 = main.others.attachMovie("NPC_\u5C0F\u4E4C\u9F9F", "NPC_\u5C0F\u4E4C\u9F9F" + _local3, _local3, {_x:px, _y:py});
_local2._xscale = xscale;
_local2.min_x = px - 150;
_local2.max_x = px + 150;
_local2.speed = Math.random();
_local2.move_me = function () {
this.gotoAndStop("move");
this.onEnterFrame = function () {
if (this._xscale == 100) {
if (this._x > this.min_x) {
this._x = this._x - this.speed;
} else {
this._xscale = this._xscale * -1;
}
} else if (this._xscale == -100) {
if (this._x < this.max_x) {
this._x = this._x + this.speed;
} else {
this._xscale = this._xscale * -1;
}
}
if (get_distance(this, main.player) < 50) {
this.stand();
}
};
};
_local2.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
if (this.mc._currentframe == 22) {
if (get_distance(this, main.player) > 100) {
this.move_me();
}
}
};
};
_local2.move_me();
if (where == "water") {
always_shine(_local2, "blue");
}
}
function add_creatures_07(px, py, xscale) {
var _local3 = main.others.getNextHighestDepth();
var _local2 = main.others.attachMovie("NPC_\u8759\u8760", "NPC_\u8759\u8760" + _local3, _local3, {_x:px, _y:py});
_local2._xscale = xscale;
_local2.xspeed = 7 + random(5);
_local2.yspeed = 1 + Math.random();
_local2.stand = function () {
this.gotoAndStop("stand");
this.mc.gotoAndPlay(random(this.mc._totalframes + 1));
this.onEnterFrame = function () {
if ((get_map_point(this)[0] < 580) and player_shooting) {
this.move_me();
}
};
};
_local2.move_me = function () {
this.gotoAndStop("move");
this.onEnterFrame = function () {
if (this._xscale == 100) {
this._x = this._x - this.xspeed;
} else if (this._xscale == -100) {
this._x = this._x + this.xspeed;
}
this._y = this._y + this.yspeed;
if ((get_map_point(this)[0] < -50) or (get_map_point(this)[0] > 650)) {
this.removeMovieClip();
}
};
};
_local2.stand();
}
function add_creatures_08(px, py, xscale) {
var _local3 = main.others.getNextHighestDepth();
var _local2 = main.others.attachMovie("NPC_\u718A\u732B", "NPC_\u718A\u732B" + _local3, _local3, {_x:px, _y:py});
_local2._xscale = xscale;
_local2.stand1 = function () {
this.gotoAndStop("stand1");
this.onEnterFrame = function () {
if (player_shooting) {
this.stand2();
}
};
};
_local2.stand2 = function () {
this.gotoAndStop("stand2");
this.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
this.stand1();
}
};
};
_local2.stand1();
}
function add_creatures_09(px, py, xscale) {
var _local3 = main.others.getNextHighestDepth();
var _local2 = main.others.attachMovie("NPC_\u5C0F\u9C7C", "NPC_\u5C0F\u9C7C" + _local3, _local3, {_x:px, _y:py});
_local2._xscale = xscale;
_local2.min_x = px - 150;
_local2.max_x = px + 150;
_local2.speed = random(2) + (2 * Math.random());
_local2.move_me1 = function () {
this.onEnterFrame = function () {
if (this._xscale == 100) {
if (this._x > this.min_x) {
this._x = this._x - this.speed;
} else {
this._xscale = this._xscale * -1;
}
} else if (this._xscale == -100) {
if (this._x < this.max_x) {
this._x = this._x + this.speed;
} else {
this._xscale = this._xscale * -1;
}
}
if ((get_distance(this, main.player) < 295) and player_shooting) {
this.move_me2();
}
};
};
_local2.move_me2 = function () {
this.onEnterFrame = function () {
if (this._xscale == 100) {
if (this._x > this.min_x) {
this._x = this._x - (3 * this.speed);
} else {
this.move_me1();
}
} else if (this._xscale == -100) {
if (this._x < this.max_x) {
this._x = this._x + (3 * this.speed);
} else {
this.move_me1();
}
}
};
};
_local2.move_me1();
}
function add_creatures_10(what, px, py, xscale) {
var _local3 = main.others.getNextHighestDepth();
var _local2 = main.others.attachMovie(what, what + _local3, _local3, {_x:px, _y:py});
_local2._xscale = xscale;
_local2.speed = (-7 * xscale) / 100;
_local2.stand = function () {
this.gotoAndStop("idle");
};
_local2.move_me = function () {
this.gotoAndStop("scare");
this.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
this.gotoAndStop("run");
this.onEnterFrame = function () {
this._x = this._x + this.speed;
if ((get_map_point(this)[0] < -50) or (get_map_point(this)[0] > 650)) {
this.removeMovieClip();
}
};
}
};
};
_local2.stand();
return(_local2);
}
function gotoGame(diff) {
if (game_testing) {
if (game_diff_level == 0) {
gotoAndStop(("m" + stages) + "_play");
} else {
gotoAndStop ("m4_play");
}
play_game(stages, begining_section);
} else {
gotoAndStop ("buffer");
if (stages == 1) {
var frameloaded = 48;
} else if (stages == 2) {
var frameloaded = 65;
} else if (stages == 3) {
var frameloaded = 82;
} else if (stages == 4) {
var frameloaded = 99;
}
loading.onEnterFrame = function () {
if (_root._framesloaded >= frameloaded) {
if (this._currentframe == this._totalframes) {
trace("Game loaded " + Math.round(_root.getBytesLoaded() / 1024));
if (game_diff_level == 0) {
gotoAndStop(("m" + stages) + "_play");
} else {
gotoAndStop ("m4_play");
}
play_game(stages, begining_section);
}
}
};
}
trace((("Start Mission " + stages) + " ") + game_diff_level);
}
function next_mission() {
if (stages == 4) {
gotoAndStop ("game_start");
game_intro.gotoAndStop("win_game");
trace("Mission all over !");
} else {
stages++;
if (game_diff_level == 0) {
gotoAndStop(("m" + stages) + "_play");
} else {
gotoAndStop ("m4_play");
}
play_game(stages, 1);
trace((("Next Mission " + stages) + " ") + game_diff_level);
}
clean_cache();
}
function clean_fire() {
clean_stage();
this.front.removeMovieClip();
this.main.removeMovieClip();
this.game_UI.removeMovieClip();
this.setMask(null);
this.game_mask.removeMovieClip();
delete this.onEnterFrame;
Mouse.removeListener(mouseListener);
delete mouseListener;
clean_cache();
}
function recover_all() {
this.start_end.removeMovieClip();
this.game_intro.removeMovieClip();
clean_fire();
}
function play_game(stg, sec) {
stop();
initial_data();
stages = stg;
game_start(sec - 1);
if (sec == 1) {
main.attachMovie(("mission" + stg) + "_start", "mission_start", main.getNextHighestDepth(), {_x:-main._x, _y:-main._y});
play_music(("bgm" + stg) + "_1", true);
add_item_when_start(stg);
} else {
play_music(("bgm" + stg) + "_1", true);
level_start();
}
}
function add_item_when_start(stg) {
if (stg == 1) {
add_creatures_03(135, 300, 100);
add_creatures_03(55, 290, -100);
add_creatures_01(435, 295, -100);
add_creatures_02(450, 298, 100);
add_creatures_02(455, 299, -100);
add_creatures_02(465, 298, 100);
add_creatures_02(470, 297, -100);
add_creatures_02(475, 298, 100);
add_creatures_02(477, 299, -100);
add_creatures_02(482, 298, 100);
add_creatures_02(488, 299, -100);
} else if (stg == 2) {
var _local1 = blocksAction("\u96E8\u9633\u7BF7", 118, 188, 1, 15, false, -1);
_local1.enemy_type = 3;
_local1.in_air = true;
_local1.no_shine = true;
blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", 80, 200, 1, 5, false, 30);
var temp_mc1 = add_creatures_10("NPC_\u5546\u4EBA", 410, 302, 100);
var _local3 = enemysAction22("\u7B2C\u4E8C\u5173\u7269\u4EF6\u7FA4", 460, 88, 40, 13);
var _local4 = enemysAction21("NPC_\u6C7D\u8F662", 485, 362, "stand", 100);
_local4.dieEvents = function () {
temp_mc1.move_me();
};
_local3.dieEvents = function () {
enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", 527, 191, 99, 0, "stand", -100).in_air = true;
enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", 578, 192, 99, 0, "stand", 100).in_air = true;
blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", 537, 306, 1, 5, false, 30);
enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", 579, 306, 99, -2, "stand", 100);
};
} else if (stg == 3) {
} else if (stg == 4) {
}
}
function game_start(section) {
recover_all();
this.createEmptyMovieClip("main", this.getNextHighestDepth());
this.createEmptyMovieClip("front", this.getNextHighestDepth());
this.attachMovie("game_UI", "game_UI", this.getNextHighestDepth());
game_UI._visible = 0;
game_UI.life.add_life_point = 0;
if (game_masked) {
this.attachMovie("game_mask", "game_mask", this.getNextHighestDepth());
this.setMask(game_mask);
}
main.createEmptyMovieClip("bg", main.getNextHighestDepth());
main.createEmptyMovieClip("objects", main.getNextHighestDepth());
main.createEmptyMovieClip("enemies", main.getNextHighestDepth());
main.createEmptyMovieClip("others", main.getNextHighestDepth());
stages_section = section;
next_scene();
}
function clean_stage() {
main._x = 0;
main._y = 0;
delete main.onEnterFrame;
game_UI.clue_arrow.removeMovieClip();
for (var _local1 in front) {
front[_local1].removeMovieClip();
}
for (var _local1 in main.bg) {
main.bg[_local1].removeMovieClip();
}
for (var _local1 in main.objects) {
main.objects[_local1].removeMovieClip();
}
for (var _local1 in main.enemies) {
main.enemies[_local1].removeMovieClip();
}
for (var _local1 in main.others) {
main.others[_local1].removeMovieClip();
}
for (var _local1 in main) {
if (main[_local1].targeter != undefined) {
main[_local1].removeMovieClip();
}
}
remove_enemy_boss_healthbar();
}
function next_scene() {
clean_stage();
if (specific_stage == undefined) {
stages_section++;
} else {
stages_section = specific_stage;
delete specific_stage;
}
stages_part = 1;
draw_map_start(stages, stages_section);
if (stages_section > 1) {
var _local3 = this[(("player_start_" + stages) + "_") + stages_section][0];
var _local2 = this[(("player_start_" + stages) + "_") + stages_section][1];
if (main.player == undefined) {
add_player(_local3, _local2);
}
main.player._x = _local3;
main.player._y = _local2;
main.player.xspeed = 0;
main.player.yspeed = 0;
main.player._visible = 1;
}
delete player_min_x;
delete player_max_x;
score_height = 0;
next_scence_blocked = false;
player_shooting = false;
game_UI.check_bar.removeMovieClip();
game_UI.attachMovie("check_bar", "check_bar", game_UI.getNextHighestDepth(), {_x:5, _y:374});
score_height = 0;
boss_killed = false;
game_medium_boss = false;
map_repeated_x = 0;
map_repeated_y = 0;
clean_cache();
}
function level_start() {
if (stages_section == 1) {
if (stages == 1) {
add_player(85, 146);
} else if (stages == 2) {
add_player(185, 360);
enemysAction21("NPC_\u6C7D\u8F661", 179, 358, "stand", -100);
} else if (stages == 3) {
add_player(82, 324);
} else if (stages == 4) {
player_min_x = 130;
add_player(205, 2665);
}
}
this.onEnterFrame = function () {
gameControl(main.player);
draw_map(eval (active_map_drawer));
};
shootControl(main.player);
game_UI._visible = 1;
adjust_score(true, game_UI, 0);
adjust_life(0);
}
function mission_failed() {
if ((--player_life) > 0) {
shot_shine(_root, "black", 10);
play_game(stages, stages_section);
} else {
camera_death();
clean_fire();
player_life = 10;
gotoAndStop ("game_start");
game_intro.gotoAndStop("lose_game");
}
}
function kill_boss(isnew) {
boss_killed = true;
control_able = false;
Mouse.removeListener(mouseListener);
delete mouseListener;
stop_shoot(main.player);
gotoFrame(main.player, "down", "stand");
if ((this.game_intro == undefined) and main.player.live) {
this.attachMovie("game_intro", "game_intro", this.getNextHighestDepth());
this.game_intro.gotoAndStop("mission_end");
this.game_intro.isnew = isnew;
}
}
function adjust_score(add_score, where, much) {
if (add_score) {
game_score = game_score + much;
var _local1 = 100000000 + game_score;
var _local10 = Number(_local1.toString().slice(8, 9)) + 1;
var _local9 = Number(_local1.toString().slice(7, 8)) + 1;
var _local8 = Number(_local1.toString().slice(6, 7)) + 1;
var _local7 = Number(_local1.toString().slice(5, 6)) + 1;
var _local6 = Number(_local1.toString().slice(4, 5)) + 1;
var _local5 = Number(_local1.toString().slice(3, 4)) + 1;
var _local4 = Number(_local1.toString().slice(2, 3)) + 1;
var _local3 = Number(_local1.toString().slice(1, 2)) + 1;
where.scorepad.num1.gotoAndStop(_local10);
where.scorepad.num10.gotoAndStop(_local9);
where.scorepad.num100.gotoAndStop(_local8);
where.scorepad.num1000.gotoAndStop(_local7);
where.scorepad.num10000.gotoAndStop(_local6);
where.scorepad.num100000.gotoAndStop(_local5);
where.scorepad.num1000000.gotoAndStop(_local4);
where.scorepad.num10000000.gotoAndStop(_local3);
}
}
function adjust_life(much) {
if (much >= 0) {
adjust_life1(much);
} else {
adjust_life2(much);
}
}
function adjust_life1(much) {
game_UI.life.add_life_point = game_UI.life.add_life_point + much;
if ((life_left + game_UI.life.add_life_point) > 100) {
game_UI.life.add_life_point = 100 - life_left;
}
game_UI.life.hp1.gotoAndStop(1);
game_UI.life.hp2.gotoAndStop(2);
game_UI.life.life.gotoAndStop(player_life);
game_UI.life.hp1.recover_count = 0;
var goal_hp = (-161 + (2 * (life_left + game_UI.life.add_life_point)));
game_UI.life.hp1.onEnterFrame = function () {
if (this._x < goal_hp) {
if ((++this.recover_count) == 10) {
this.recover_count = 0;
this._x = this._x + 2;
life_left++;
game_UI.life.add_life_point--;
}
} else {
this._x = goal_hp;
delete this.onEnterFrame;
}
};
game_UI.life.hp2.onEnterFrame = function () {
if (this._x < goal_hp) {
this._x = this._x + 1;
} else {
this._x = goal_hp;
delete this.onEnterFrame;
}
};
}
function adjust_life2(much) {
if (game_god and (Math.abs(much) < 100)) {
much = -2;
}
life_left = life_left + Math.round(much);
game_UI.life.add_life_point = 0;
if (life_left <= 0) {
life_left = 0;
game_UI.life.hp2.game_over_count = 100;
} else {
game_UI.life.hp1.recover_count = 0;
}
game_UI.life.hp1.gotoAndStop(1);
game_UI.life.hp2.gotoAndStop(2);
game_UI.life.life.gotoAndStop(player_life);
var goal_hp1 = (-161 + (2 * life_left));
game_UI.life.hp1.onEnterFrame = function () {
if (this._x > goal_hp1) {
this._x = this._x - 2;
} else {
this._x = goal_hp1;
if (life_left > 0) {
this.onEnterFrame = function () {
if (this._x < this._parent.hp2._x) {
if ((++this.recover_count) == 100) {
this.recover_count = 0;
this._x = this._x + 2;
life_left++;
}
} else {
this._x = this._parent.hp2._x;
delete this.onEnterFrame;
}
};
} else {
delete this.onEnterFrame;
}
}
};
if (life_left > 0) {
var goal_hp2 = (-161 + (2 * (life_left - Math.round(much * (0.3 + (random(3) / 10))))));
} else {
var goal_hp2 = goal_hp1;
}
game_UI.life.hp2.onEnterFrame = function () {
if (this._x > goal_hp2) {
this._x = this._x - 1;
} else {
this._x = goal_hp2;
if (life_left == 0) {
if ((--this.game_over_count) == 0) {
mission_failed();
}
} else {
delete this.onEnterFrame;
}
}
};
}
function add_enemy_boss_healthbar(which, my_name) {
var _local2 = game_UI.attachMovie("boss_warning", "boss_warning", game_UI.getNextHighestDepth(), {_x:165, _y:180});
_local2.final_event = function () {
which.healthbar = game_UI.attachMovie("boss_healthbar", "boss_healthbar", game_UI.getNextHighestDepth(), {_x:5, _y:374});
which.healthbar.my_name.gotoAndStop(my_name);
which.healthbar.check_health = function (now_health, total_health) {
var goal_hp = (-196 + Math.round(200 * (now_health / total_health)));
game_UI.boss_healthbar.hp.onEnterFrame = function () {
if (this._x > goal_hp) {
this._x--;
} else {
this._x = goal_hp;
delete this.onEnterFrame;
}
};
};
shot_shine(which.healthbar, "white", 5);
this.removeMovieClip();
};
}
function remove_enemy_boss_healthbar() {
if (game_UI.boss_healthbar != undefined) {
game_UI.boss_healthbar.removeMovieClip();
}
}
function add_stage_arrow(dir) {
var _local2 = game_UI.getNextHighestDepth();
var _local1 = game_UI.attachMovie("clue_arrow", "clue_arrow" + _local2, _local2);
_local1.typ = "arrow";
if (dir == 1) {
_local1._x = 544;
_local1._y = 200;
} else if (dir == -1) {
_local1._x = 47;
_local1._y = 200;
_local1._xscale = -100;
} else if (dir == 2) {
_local1._x = 295;
_local1._y = 353;
_local1._rotation = 90;
} else if (dir == -2) {
_local1._x = 295;
_local1._y = 47;
_local1._rotation = -90;
}
return(_local1);
}
function remove_stage_arrow() {
for (var _local1 in game_UI) {
if (game_UI[_local1].typ == "arrow") {
game_UI[_local1].removeMovieClip();
}
}
}
function scene_end_arrow(where, dir, px, py) {
where.onEnterFrame = function () {
if (Math.abs(main._x) == Math.abs(_root[(("stg_width_" + stages) + "_") + stages_section] - (map_repeated_x * 590))) {
var _local3 = add_stage_arrow(dir);
_local3._x = px;
_local3._y = py;
delete this.onEnterFrame;
}
};
}
function adjust_current_amr(who) {
game_UI.weapon.gotoAndStop(who.gun_array[who.gun_point]);
adjust_amr(game_UI.amr1, who.gun_amr[who.gun_point][0]);
adjust_amr(game_UI.amr2, who.gun_amr[who.gun_point][1]);
}
function adjust_amr(which, amr) {
if (amr > 999) {
which.gotoAndStop("very");
} else {
which.gotoAndStop("some");
var _local2 = 1000 + amr;
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;
which.amr1.gotoAndStop(_local5);
which.amr10.gotoAndStop(_local4);
which.amr100.gotoAndStop(_local3);
}
}
function notice_Action(txt) {
this.notice_mc.removeMovieClip();
this.createEmptyMovieClip("notice_mc", this.getNextHighestDepth());
notice_mc._x = _xmouse + 20;
notice_mc._y = _ymouse + 20;
var _local2 = notice_mc.createTextField("notice_txt", notice_mc.getNextHighestDepth(), 0, 0, 150, 100);
_local2.selectable = false;
_local2.html = true;
_local2.autoSize = true;
_local2.multiline = true;
_local2.background = true;
_local2.backgroundColor = 1184274 /* 0x121212 */;
_local2.border = true;
_local2.borderColor = 3945000 /* 0x3C3228 */;
_local2.htmlText = ("<font color='#DEC29D'>" + txt) + "</font>";
var _local3 = new TextFormat();
_local3.size = 12;
_local3.font = "Arial CE";
_local3.align = "center";
_local2.setTextFormat(_local3);
notice_mc.count = 60;
notice_mc.onEnterFrame = function () {
if ((--this.count) == 0) {
this.removeMovieClip();
}
};
if (((notice_mc._x + notice_mc._width) + 10) > 590) {
notice_mc._x = 590 - (notice_mc._width + 10);
}
if (((notice_mc._y + notice_mc._height) + 10) > 400) {
notice_mc._y = 400 - (notice_mc._height + 10);
}
}
function select_weapon(where, which) {
var _local4 = [0, 0, 0, 0, 0];
if (which == 1) {
_local4 = [2, 3, 4, 0, 0];
} else if (which == 2) {
_local4 = [8, 9, 10, 11, 0];
} else if (which == 3) {
_local4 = [16, 17, 18, 0, 0];
} else if (which == 4) {
_local4 = [22, 23, 24, 25, 26];
} else if (which == 5) {
_local4 = [30, 31, 0, 0, 0];
} else if (which == 6) {
_local4 = [35, 36, 37, 38, 39];
} else if (which == 7) {
_local4 = [43, 44, 45, 46, 47];
} else if (which == 8) {
_local4 = [51, 52, 53, 54, 0];
} else if (which == 9) {
_local4 = [58, 59, 60, 0, 0];
}
var _local2 = 1;
while (_local2 <= 5) {
if (_local4[_local2 - 1] != 0) {
where.weapons["weapon" + _local2]._visible = true;
where.weapons["weapon" + _local2].mc.gotoAndStop(_local4[_local2 - 1]);
where.weapons["weapon" + _local2].star = weapon_amr[_local4[_local2 - 1]][0];
where.weapons["weapon" + _local2].my_new.stop();
where.weapons["weapon" + _local2].my_new._visible = 0;
if ((game_stage_pass < where.weapons["weapon" + _local2].star) and game_gun_locked) {
where.weapons["weapon" + _local2].enabled = false;
always_shine(where.weapons["weapon" + _local2].mc, "dark");
where.weapons["weapon" + _local2].mc._alpha = 50;
where.weapons["weapon" + _local2].name_txt.text = "LOCKED";
where.weapons["weapon" + _local2].name_txt.textColor = "0x9FB482";
where.weapons["weapon" + _local2].bullets_txt.text = "??? / ???";
where.weapons["weapon" + _local2].bullets_txt.textColor = "0x9FB482";
} else {
where.weapons["weapon" + _local2].enabled = true;
if (game_stage_pass == where.weapons["weapon" + _local2].star) {
where.weapons["weapon" + _local2].my_new.gotoAndPlay(1);
where.weapons["weapon" + _local2].my_new._visible = 1;
}
shot_shine(where.weapons["weapon" + _local2].mc, "white", 2);
where.weapons["weapon" + _local2].mc._alpha = 100;
where.weapons["weapon" + _local2].name_txt.text = weapon_amr[_local4[_local2 - 1]][2];
where.weapons["weapon" + _local2].name_txt.textColor = "0xFF9900";
var _local5 = weapon_amr[_local4[_local2 - 1]][1];
if (_local5 > 999) {
_local5 = "\u221E";
}
where.weapons["weapon" + _local2].bullets_txt.text = (_local5 + " / ") + _local5;
where.weapons["weapon" + _local2].bullets_txt.textColor = "0xFFCC00";
}
where.weapons["weapon" + _local2].onPress = function () {
play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39", false);
choose_this_weapon(this._parent._parent, this.mc._currentframe);
this._y++;
};
where.weapons["weapon" + _local2].onRelease = (where.weapons["weapon" + _local2].onReleaseOutside = function () {
this._y--;
});
} else {
where.weapons["weapon" + _local2]._visible = false;
}
_local2++;
}
}
function choose_this_weapon(where, what) {
var _local1 = 0;
while (_local1 <= 5) {
if (game_player_weapons[_local1] == what) {
return(undefined);
}
_local1++;
}
_local1 = 2;
while (_local1 <= 5) {
if (game_player_weapons[_local1] == 0) {
game_player_weapons[_local1] = what;
where["inven" + _local1]._visible = true;
where["inven" + _local1].gotoAndStop(game_player_weapons[_local1]);
break;
}
_local1++;
}
}
function delete_this_weapon(where, num) {
where["inven" + num]._visible = false;
game_player_weapons[where["inven" + num].my_num] = 0;
}
function show_player_weapon(where) {
var _local2 = 0;
while (_local2 <= 5) {
where["inven" + _local2].stop();
where["inven" + _local2].my_num = _local2;
if (game_player_weapons[_local2] != 0) {
where["inven" + _local2]._visible = true;
where["inven" + _local2].gotoAndStop(game_player_weapons[_local2]);
} else {
where["inven" + _local2]._visible = false;
}
if (where["inven" + _local2].my_num > 1) {
where["inven" + _local2].onPress = function () {
play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39", false);
delete_this_weapon(this._parent, this.my_num);
};
}
_local2++;
}
}
function default_weapons(where) {
var _local2 = 0;
var _local1 = 0;
while (_local1 <= 5) {
_local2 = _local2 + game_player_weapons[_local1];
_local1++;
}
if (_local2 == 16) {
game_player_weapons = [1, 15, 22, 30, 37, 43];
show_player_weapon(where);
return(true);
}
return(false);
}
function show_new_weapons(where, level) {
var _local2 = [[1, 2, 3, 4], [8, 9, 10, 11], [15, 16, 17, 18], [22, 23, 24, 25, 26], [30, 31], [35, 36, 37, 38, 39], [43, 44, 45, 46, 47], [51, 52, 53, 54], [58, 59, 60]];
var _local4 = [];
for (var _local10 in _local2) {
for (var _local8 in _local2[_local10]) {
if (weapon_amr[_local2[_local10][_local8]][0] == level) {
_local4.push(_local10);
break;
}
}
}
for (var _local9 in _local4) {
var _local1 = Number(_local4[_local9]) + 1;
where["tab" + _local1].hint_mc = where.attachMovie("new_weapon_clue", "new_weapon_clue" + _local1, where.getNextHighestDepth(), {_x:where["tab" + _local1]._x + 18, _y:where["tab" + _local1]._y - 10});
}
}
function initial_data() {
stop_musicAction();
now_music = "";
stages = 1;
life_left = 100;
modify_XY_array1_1 = [[-2750, -151, false], [-5525, 0, false]];
modify_XY_array1_2 = [[-2650, 80, false], [-2960, 190, false], [-3280, 325, false], [-3700, 425, false], [-4090, 575, false], [-4425, 660, false], [-4780, 810, false], [-5215, 930, false], [-5520, 1075, false], [-5850, 1200, false], [-7355, 1315, false], [-7530, 1470, false], [-7750, 1615, false], [-8020, 1795, false], [-8200, 1940, false], [-8450, 2095, false], [-8650, 2260, false], [-8910, 2400, false]];
modify_XY_array1_3 = [[-590, -190, false], [-1015, -310, false], [-1330, -410, false], [-1700, -470, false], [-1900, -615, false], [-2300, -760, false], [-2750, -800, false]];
allow_area_array_1_1 = -8260;
allow_area_array_1_2 = -11800;
allow_area_array_1_3 = -4130;
get_map_infor(1, 1, 1, [0, 0], 15, [530, undefined, undefined]);
get_map_infor(1, 2, 1, [45, 320], 21, [575, undefined, undefined]);
get_map_infor(1, 3, 1, [105, 300], 8, [999, undefined, undefined]);
stg1_2_map_xy[6] = [590, -400];
stg1_2_map_xy[8] = [590, -400];
stg1_2_map_xy[10] = [590, -400];
stg1_2_map_xy[13] = [590, -400];
stg1_2_map_xy[14] = [590, -400];
stg1_2_map_xy[15] = [590, -400];
stg1_3_map_xy[5] = [590, 400];
stg1_3_map_xy[7] = [590, 350];
stg1_3_map_xy[8] = [590, 50];
modify_XY_array2_6 = [[-30, -175, false], [-275, -270, false], [-700, -400, false], [-6995, -235, false], [-7340, -130, false], [-7640, 0, false]];
allow_area_array_2_1 = -4130;
allow_area_array_2_2 = -2950;
allow_area_array_2_3 = 2950;
allow_area_array_2_4 = -2950;
allow_area_array_2_5 = 0;
allow_area_array_2_6 = -7670;
allow_area_array_2_7 = -6490;
get_map_infor(2, 1, 1, [0, 0], 8, [480, undefined, undefined]);
get_map_infor(2, 2, 1, [45, 330], 6, [575, undefined, undefined]);
get_map_infor(2, 3, -1, [525, 340], 6, [15, undefined, undefined]);
get_map_infor(2, 4, 1, [45, 320], 6, [undefined, 0, 390]);
get_map_infor(2, 5, 1, [100, 0], 1, [undefined, 0, 350]);
get_map_infor(2, 6, 1, [100, 0], 14, [undefined, 55, 400]);
get_map_infor(2, 7, 1, [265, 255], 12, [999, undefined, undefined]);
stg2_3_map_xy[2] = [-590, 0];
stg2_3_map_xy[3] = [-590, 0];
stg2_3_map_xy[4] = [-590, 0];
stg2_3_map_xy[5] = [-590, 0];
stg2_3_map_xy[6] = [-590, 0];
stg2_6_map_xy[3] = [590, 400];
stg2_6_map_xy[13] = [590, -400];
modify_XY_array3_7 = [[-590, -740, false], [-2300, -635, false], [-2480, -525, false], [-2600, -400, false], [-4550, -300, false], [-5600, -400, false]];
modify_XY_array3_16 = [[-7270, -1060, false]];
allow_area_array_3_1 = -5900;
allow_area_array_3_2 = 0;
allow_area_array_3_3 = -2360;
allow_area_array_3_4 = 0;
allow_area_array_3_5 = -2360;
allow_area_array_3_6 = 0;
allow_area_array_3_7 = -800;
allow_area_array_3_8 = -1180;
allow_area_array_3_9 = -1770;
allow_area_array_3_10 = 0;
allow_area_array_3_11 = 0;
allow_area_array_3_12 = 0;
allow_area_array_3_13 = 0;
allow_area_array_3_14 = 0;
allow_area_array_3_15 = -590;
allow_area_array_3_16 = -2360;
get_map_infor(3, 1, 1, [0, 0], 11, [340, 0, 260]);
get_map_infor(3, 2, 1, [35, 353], 1, [575, undefined, undefined]);
get_map_infor(3, 3, 1, [134, 292], 5, [340, 0, 260]);
get_map_infor(3, 4, 1, [35, 344], 1, [575, undefined, undefined]);
get_map_infor(3, 5, 1, [127, 293], 5, [470, 0, 250]);
get_map_infor(3, 6, 1, [35, 355], 1, [575, undefined, undefined]);
get_map_infor(3, 7, 2, [31, 217], 13, [550, undefined, undefined]);
get_map_infor(3, 8, 1, [40, 270], 10, [420, 0, 310]);
get_map_infor(3, 9, 1, [264, 323], 10, [410, 0, 260]);
get_map_infor(3, 10, 1, [38, 350], 1, [575, 0, 340]);
get_map_infor(3, 11, -1, [50, 270], 1, [140, 0, 260]);
get_map_infor(3, 12, 1, [30, 360], 1, [575, 0, 350]);
get_map_infor(3, 13, 1, [50, 270], 1, [295, 0, 260]);
get_map_infor(3, 14, 1, [35, 360], 1, [575, 155, 400]);
get_map_infor(3, 15, 1, [250, 333], 7, [575, undefined, undefined]);
get_map_infor(3, 16, 1, [135, 328], 17, [999, undefined, undefined]);
stg_width_3_7 = 5900;
stg_width_3_8 = 2950;
stg_width_3_9 = 2950;
stg_width_3_15 = 1180;
stg_width_3_16 = 7670;
stg3_7_map_xy[2] = [0, 400];
stg3_7_map_xy[3] = [0, 400];
stg3_7_map_xy[4] = [590, -200];
stg3_7_map_xy[7] = [590, -200];
stg3_7_map_xy[9] = [590, -100];
stg3_8_map_xy[4] = [0, -400];
stg3_8_map_xy[5] = [0, -400];
stg3_8_map_xy[6] = [0, -400];
stg3_8_map_xy[7] = [0, -400];
stg3_9_map_xy[5] = [0, 400];
stg3_9_map_xy[6] = [0, 400];
stg3_9_map_xy[7] = [0, 400];
stg3_9_map_xy[8] = [0, 400];
stg3_15_map_xy[3] = [0, -400];
stg3_15_map_xy[4] = [0, -400];
stg3_15_map_xy[5] = [0, -400];
stg3_15_map_xy[6] = [0, -400];
stg3_16_map_xy[6] = [0, 400];
stg3_16_map_xy[7] = [0, 400];
stg3_16_map_xy[8] = [0, 400];
stg3_16_map_xy[16] = [590, -270];
allow_next_map_3_7 = 3;
allow_next_map_3_8 = 3;
allow_next_map_3_9 = 4;
allow_next_map_3_15 = 2;
allow_next_map_3_16 = 5;
allow_area_array_4_2 = 0;
allow_area_array_4_3 = -2360;
allow_area_array_4_4 = -2950;
allow_area_array_4_5 = -2950;
allow_area_array_4_6 = -2360;
allow_area_array_4_7 = 400;
allow_area_array_4_8 = 2400;
allow_area_array_4_9 = -590;
allow_area_array_4_10 = -1180;
allow_area_array_4_11 = -210;
allow_area_array_4_12 = 0;
allow_area_array_4_13 = -210;
allow_area_array_4_14 = -210;
allow_area_array_4_15 = 0;
allow_area_array_4_16 = 964;
allow_area_array_4_17 = 0;
allow_area_array_4_18 = 964;
allow_area_array_4_19 = 0;
allow_area_array_4_20 = 964;
allow_area_array_4_21 = 0;
allow_area_array_4_22 = -590;
allow_area_array_4_23 = -2360;
allow_area_array_4_24 = -590;
get_map_infor(4, 1, -2, [0, 0], 1, [0, 0, 0]);
get_map_infor(4, 2, 1, [45, 345], 1, [575, 0, 325]);
get_map_infor(4, 3, 1, [85, 375], 9, [999, undefined, undefined]);
get_map_infor(4, 4, 1, [45, 340], 6, [999, undefined, undefined]);
get_map_infor(4, 5, 1, [45, 340], 6, [575, undefined, undefined]);
get_map_infor(4, 6, 1, [45, 370], 5, [307, 0, 350]);
get_map_infor(4, 7, -2, [45, 349], 2, [999, undefined, undefined]);
get_map_infor(4, 8, -2, [159, 373], 7, [undefined, 50, 400]);
get_map_infor(4, 9, 1, [150, 285], 2, [520, undefined, undefined]);
get_map_infor(4, 10, 1, [45, 333], 3, [999, undefined, undefined]);
get_map_infor(4, 11, 1, [45, 325], 1, [575, undefined, undefined]);
get_map_infor(4, 12, 1, [45, 338], 1, [999, undefined, undefined]);
get_map_infor(4, 13, 1, [45, 350], 1, [575, undefined, undefined]);
get_map_infor(4, 14, 1, [45, 369], 1, [999, undefined, undefined]);
get_map_infor(4, 15, 1, [45, 342], 1, [540, 240, 400]);
get_map_infor(4, 16, -2, [50, 350], 3, [999, undefined, undefined]);
get_map_infor(4, 17, 1, [535, 380], 1, [60, 0, 300]);
get_map_infor(4, 18, -2, [540, 350], 3, [999, undefined, undefined]);
get_map_infor(4, 19, 1, [65, 184], 1, [540, 0, 150]);
get_map_infor(4, 20, -2, [50, 350], 3, [65, undefined, undefined]);
get_map_infor(4, 21, 1, [540, 380], 1, [60, 0, 300]);
get_map_infor(4, 22, 1, [45, 335], 2, [575, undefined, undefined]);
get_map_infor(4, 23, 1, [80, 330], 5, [575, undefined, undefined]);
get_map_infor(4, 24, 1, [45, 360], 6, [999, undefined, undefined]);
stg_width_4_3 = 2360;
stg_width_4_7 = 0;
stg_width_4_8 = 0;
stg_width_4_11 = 210;
stg_width_4_13 = 210;
stg_width_4_14 = 210;
stg_width_4_16 = 0;
stg_width_4_18 = 0;
stg_width_4_20 = 0;
stg_width_4_24 = 590;
stg4_3_map_xy[6] = [0, 400];
stg4_3_map_xy[7] = [0, 400];
stg4_3_map_xy[8] = [0, 400];
stg4_3_map_xy[9] = [0, 400];
stg4_7_map_xy[2] = [0, -400];
stg4_8_map_xy[2] = [0, -400];
stg4_8_map_xy[3] = [0, -400];
stg4_8_map_xy[4] = [0, -400];
stg4_8_map_xy[5] = [0, -400];
stg4_8_map_xy[6] = [0, -400];
stg4_8_map_xy[7] = [0, -400];
stg4_16_map_xy[2] = [0, -400];
stg4_16_map_xy[3] = [0, -564];
stg4_18_map_xy[2] = [0, -400];
stg4_18_map_xy[3] = [0, -564];
stg4_20_map_xy[2] = [0, -400];
stg4_20_map_xy[3] = [0, -564];
stg4_24_map_xy[3] = [0, -400];
stg4_24_map_xy[4] = [0, -400];
stg4_24_map_xy[5] = [0, -400];
allow_next_map_4_3 = 5;
allow_next_map_4_24 = 2;
stopAllSounds();
}
function get_map_infor(stg, sec, direct, start_point, map_parts, end) {
this[((("stg" + stg) + "_") + sec) + "_map_xy"] = [];
this[(("stg_direct_" + stg) + "_") + sec] = direct;
this[(("player_start_" + stg) + "_") + sec] = start_point;
this[(("allow_next_map_" + stg) + "_") + sec] = map_parts;
this[(("stg_width_" + stg) + "_") + sec] = 590 * (map_parts - 1);
this[(("stg_end_" + stg) + "_") + sec] = end;
}
function draw_map_start(stg, sec) {
delete stg4_1_enemy_container;
if ((stg == 4) and (sec == 1)) {
main._x = 0;
main._y = -2400;
map_now4_1 = [];
map_now4_1[0] = [0, 0, 0];
map_now4_1[1] = [0, 0, 0];
map_now4_1[2] = [0, 0, 0];
map_now4_1[3] = [0, 0, 0];
map_now4_1[4] = [0, 0, 0];
map_now4_1[5] = [0, 0, 0];
map_now4_1[6] = [0, 0, 0];
add_current_maps();
stg4_1_enemy_container = {};
} else {
var _local1 = main.bg.attachMovie(("stage" + stg) + "_bg", "bg1", main.bg.getNextHighestDepth());
_local1.gotoAndStop("s" + sec);
_local1.getBounds.cacheAsBitmap = true;
}
}
function change_scene(poz_x, poz_y, temp_end) {
if ((!next_scence_blocked) and (life_left > 0)) {
var _local1 = 0;
if ((poz_x >= (temp_end[0] - 5)) and (poz_x <= (temp_end[0] + 5))) {
_local1++;
} else if (temp_end[0] == undefined) {
_local1++;
}
if ((poz_y <= temp_end[1]) or (poz_y >= temp_end[2])) {
_local1++;
} else if (temp_end[1] == undefined) {
_local1++;
}
if (_local1 == 2) {
change_sceneAction();
}
}
}
function change_sceneAction() {
if ((this.game_intro == undefined) and main.player.live) {
var _local2 = this.attachMovie("game_intro", "game_intro", this.getNextHighestDepth());
_local2.gotoAndStop("level_pass");
active_object_speed = 0;
active_map_drawer = "main.player";
stop_shoot(main.player);
main.player.xspeed = 0;
}
}
function draw_map(which) {
if (stages == 1) {
draw_map01(which);
} else if (stages == 2) {
draw_map01(which);
} else if (stages == 3) {
draw_map01(which);
} else if (stages == 4) {
if (stages_section == 1) {
draw_map02(which);
} else {
draw_map01(which);
}
}
modify_XY(main._x, main._y);
front._x = main._x;
front._y = main._y;
}
function draw_map01(which) {
var _local2 = this[(("stg_direct_" + stages) + "_") + stages_section];
if (which != undefined) {
var _local7 = get_map_point(which);
var _local4 = _local7[0];
var _local3 = _local7[1];
var _local8 = this[(("stg_end_" + stages) + "_") + stages_section];
if (_local2 == 1) {
var _local9 = this[(("allow_area_array_" + stages) + "_") + stages_section] - (map_repeated_x * 590);
var _local6 = -(this[(("stg_width_" + stages) + "_") + stages_section] + (map_repeated_x * 590));
if (_local4 >= 295) {
if (main._x > _local6) {
move_maps(which, _local2, _local9, _local4 - 295);
} else {
main._x = _local6;
}
}
if (main._x == _local6) {
change_scene(_local4, _local3, _local8);
}
} else if (_local2 == -1) {
var _local9 = this[(("allow_area_array_" + stages) + "_") + stages_section] + (map_repeated_x * 590);
var _local6 = this[(("stg_width_" + stages) + "_") + stages_section] - (map_repeated_x * 590);
if (_local4 <= 295) {
if (main._x < _local6) {
move_maps(which, _local2, _local9, 295 - _local4);
} else {
main._x = _local6;
}
}
if (main._x == _local6) {
change_scene(_local4, _local3, _local8);
}
} else if (_local2 == 2) {
var _local9 = this[(("allow_area_array_" + stages) + "_") + stages_section] - (map_repeated_y * 400);
if (_local3 >= 180) {
move_maps(which, _local2, _local9, _local3 - 180);
}
} else if (_local2 == -2) {
var _local9 = this[(("allow_area_array_" + stages) + "_") + stages_section] + (map_repeated_y * 400);
if (_local3 <= 220) {
move_maps(which, _local2, _local9, 220 - _local3);
}
}
draw_game_maps(_local2);
}
}
function move_maps(who, temp, temp_area, distance) {
if (active_map_drawer == "main.player") {
if (Math.abs(temp) == 1) {
var _local1 = ((Math.abs(who.xspeed) + Math.round(distance / 10)) * Math.abs(temp)) / temp;
} else {
var _local1 = ((Math.abs(who.yspeed) + Math.round(distance / 10)) * Math.abs(temp)) / temp;
}
if (_local1 == 0) {
var _local1 = (8 * Math.abs(temp)) / temp;
}
} else {
var _local1 = (Math.abs(active_object_speed) * Math.abs(temp)) / temp;
}
if (temp == 1) {
if (main._x >= (temp_area + _local1)) {
main._x = main._x - _local1;
} else if (main._x < (temp_area + _local1)) {
main._x = temp_area;
}
} else if (temp == -1) {
if (main._x <= (temp_area + _local1)) {
main._x = main._x - _local1;
} else if (main._x > (temp_area + _local1)) {
main._x = temp_area;
}
} else if (temp == 2) {
if (main._y >= (temp_area + _local1)) {
main._y = main._y - _local1;
} else if (main._y < (temp_area + _local1)) {
main._y = temp_area;
}
} else if (temp == -2) {
if (main._y <= (temp_area + _local1)) {
main._y = main._y - _local1;
} else if (main._y > (temp_area + _local1)) {
main._y = temp_area;
}
}
}
function draw_game_maps(dir) {
do {
if ((in main.bg) == null) {
break;
}
var _local4 = in main.bg;
var _local1 = get_map_point(main.bg[_local4]);
var _local3 = _local1[0];
var _local2 = _local1[1];
} while (!draw_next_map(dir, _local3, _local2, _local4));
do {
} while (() != null);
}
function draw_next_map(dir, poz_x, poz_y, grounds) {
if (adjust_map(poz_x, poz_y) == 1) {
if (this[(("allow_next_map_" + stages) + "_") + stages_section] > (stages_part - (map_repeated_x + map_repeated_y))) {
var _local2 = Number(grounds.slice(2)) + 1;
if (main.bg["bg" + _local2] == undefined) {
stages_part++;
main.bg.attachMovie(("stage" + stages) + "_bg", "bg" + _local2, main.bg.getNextHighestDepth());
if (main.bg["bg" + (_local2 - 1)].repeat != undefined) {
if (game_medium_boss) {
main.bg["bg" + _local2].gotoAndStop(main.bg["bg" + (_local2 - 1)]._currentframe + main.bg["bg" + (_local2 - 1)].repeat);
if (Math.abs(dir) == 1) {
map_repeated_x = map_repeated_x + (Math.abs(main.bg["bg" + (_local2 - 1)].repeat) + 1);
} else if (Math.abs(dir) == 2) {
map_repeated_y = map_repeated_y + (Math.abs(main.bg["bg" + (_local2 - 1)].repeat) + 1);
}
} else {
main.bg["bg" + _local2].gotoAndStop(main.bg["bg" + (_local2 - 1)]._currentframe + 1);
}
} else {
main.bg["bg" + _local2].gotoAndStop(main.bg["bg" + (_local2 - 1)]._currentframe + 1);
}
var _local4 = this[((("stg" + stages) + "_") + stages_section) + "_map_xy"][stages_part];
if (_local4 == undefined) {
var _local3 = this[(("stg_direct_" + stages) + "_") + stages_section];
if (_local3 == 1) {
main.bg["bg" + _local2]._x = main.bg["bg" + (_local2 - 1)]._x + 590;
main.bg["bg" + _local2]._y = main.bg["bg" + (_local2 - 1)]._y;
} else if (_local3 == -1) {
main.bg["bg" + _local2]._x = main.bg["bg" + (_local2 - 1)]._x - 590;
main.bg["bg" + _local2]._y = main.bg["bg" + (_local2 - 1)]._y;
} else if (_local3 == 2) {
main.bg["bg" + _local2]._x = main.bg["bg" + (_local2 - 1)]._x;
main.bg["bg" + _local2]._y = main.bg["bg" + (_local2 - 1)]._y + 400;
} else if (_local3 == -2) {
main.bg["bg" + _local2]._x = main.bg["bg" + (_local2 - 1)]._x;
main.bg["bg" + _local2]._y = main.bg["bg" + (_local2 - 1)]._y - 400;
}
} else {
main.bg["bg" + _local2]._x = main.bg["bg" + (_local2 - 1)]._x + _local4[0];
main.bg["bg" + _local2]._y = main.bg["bg" + (_local2 - 1)]._y + _local4[1];
}
main.bg["bg" + _local2].g.cacheAsBitmap = true;
return(true);
}
}
} else if (adjust_map(poz_x, poz_y) == 0) {
var _local5 = main.bg["bg" + (Number(grounds.slice(2)) - 1)];
if (_local5 != undefined) {
_local5.removeMovieClip();
remove_thingsAction();
return(true);
}
}
return(false);
}
function adjust_map(poz_x, poz_y) {
var _local2 = this[(("stg_direct_" + stages) + "_") + stages_section];
if (_local2 == 1) {
if (poz_x < -50) {
return(0);
}
if (poz_x < 50) {
return(1);
}
} else if (_local2 == -1) {
if (poz_x > 50) {
return(0);
}
if (poz_x > -50) {
return(1);
}
} else if (_local2 == 2) {
if (poz_y < -50) {
return(0);
}
if (poz_y < 50) {
return(1);
}
} else if (_local2 == -2) {
if (poz_y > 50) {
return(0);
}
if (poz_y > -50) {
return(1);
}
}
return(2);
}
function modify_XY(main_x, main_y) {
var _local3 = this[(("modify_XY_array" + stages) + "_") + stages_section];
if (_local3 != undefined) {
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2][2] == false) {
if (main_x < _local3[_local2][0]) {
main_move_XY(undefined, _local3[_local2][1]);
_local3.shift();
}
break;
}
_local2++;
}
}
}
function main_move_XY(targetX, targetY) {
main.targetX = targetX;
main.targetY = targetY;
main.onEnterFrame = function () {
var _local2 = 0;
if (this.targetX != undefined) {
if (Math.abs(this._x - this.targetX) > 2) {
if (Math.abs((this.targetX - this._x) / 30) > 1) {
this._x = this._x + ((this.targetX - this._x) / 30);
} else {
this._x = this._x + (Math.abs(this.targetX - this._x) / (this.targetX - this._x));
}
} else {
this._x = this.targetX;
_local2++;
}
} else {
_local2++;
}
if (this.targetY != undefined) {
if (Math.abs(this._y - this.targetY) > 2) {
if (Math.abs((this.targetY - this._y) / 30) > 1) {
this._y = this._y + ((this.targetY - this._y) / 30);
} else {
this._y = this._y + (Math.abs(this.targetY - this._y) / (this.targetY - this._y));
}
} else {
this._y = this.targetY;
_local2++;
}
} else {
_local2++;
}
if (_local2 == 2) {
delete this.onEnterFrame;
}
};
}
function add_frontpic(what, px, py) {
var _local1 = front.getNextHighestDepth();
var _local2 = front.attachMovie(what, (what + "_") + _local1, _local1, {_x:px, _y:py});
_local2.targeter = main.player;
return(_local2);
}
function remove_thingsAction() {
var _local2 = this[(("stg_direct_" + stages) + "_") + stages_section];
for (var _local3 in front) {
if (_local2 == 1) {
if (get_map_point(front[_local3])[0] < (-50 - (front[_local3]._width / 2))) {
front[_local3].removeMovieClip();
}
} else if (_local2 == -1) {
if (get_map_point(front[_local3])[0] > (640 + (front[_local3]._width / 2))) {
front[_local3].removeMovieClip();
}
} else if (_local2 == 2) {
if (get_map_point(front[_local3])[1] < (-50 - (front[_local3]._height / 2))) {
front[_local3].removeMovieClip();
}
} else if (_local2 == -2) {
if (get_map_point(front[_local3])[1] > (450 + (front[_local3]._height / 2))) {
front[_local3].removeMovieClip();
}
}
}
for (var _local5 in main.objects) {
if (_local2 == 1) {
if (get_map_point(main.objects[_local5])[0] < (-50 - (main.objects[_local5]._width / 2))) {
main.objects[_local5].removeMovieClip();
}
} else if (_local2 == -1) {
if (get_map_point(main.objects[_local5])[0] > (640 + (main.objects[_local5]._width / 2))) {
main.objects[_local5].removeMovieClip();
}
} else if (_local2 == 2) {
if (get_map_point(main.objects[_local5])[1] < (-50 - (main.objects[_local5]._height / 2))) {
main.objects[_local5].removeMovieClip();
}
} else if (_local2 == -2) {
if (get_map_point(main.objects[_local5])[1] > (450 + (main.objects[_local5]._height / 2))) {
main.objects[_local5].removeMovieClip();
}
}
}
for (var _local6 in main.enemies) {
if (!main.enemies[_local6].active_moved) {
if (_local2 == 1) {
if (get_map_point(main.enemies[_local6])[0] < (-50 - (main.enemies[_local6]._width / 2))) {
main.enemies[_local6].removeMovieClip();
}
} else if (_local2 == -1) {
if (get_map_point(main.enemies[_local6])[0] > (640 + (main.enemies[_local6]._width / 2))) {
main.enemies[_local6].removeMovieClip();
}
} else if (_local2 == 2) {
if (get_map_point(main.enemies[_local6])[1] < (-50 - (main.enemies[_local6]._height / 2))) {
main.enemies[_local6].removeMovieClip();
}
} else if (_local2 == -2) {
if (get_map_point(main.enemies[_local6])[1] > (450 + (main.enemies[_local6]._height / 2))) {
main.enemies[_local6].removeMovieClip();
}
}
}
}
for (var _local4 in main.others) {
if (_local2 == 1) {
if (get_map_point(main.others[_local4])[0] < (-50 - (main.others[_local4]._width / 2))) {
main.others[_local4].removeMovieClip();
}
} else if (_local2 == -1) {
if (get_map_point(main.others[_local4])[0] > (640 + (main.others[_local4]._width / 2))) {
main.others[_local4].removeMovieClip();
}
} else if (_local2 == 2) {
if (get_map_point(main.others[_local4])[1] < (-50 - (main.others[_local4]._height / 2))) {
main.others[_local4].removeMovieClip();
}
} else if (_local2 == -2) {
if (get_map_point(main.others[_local4])[1] > (450 + (main.others[_local4]._height / 2))) {
main.others[_local4].removeMovieClip();
}
}
}
}
function hold_camera(team, where) {
remove_stage_arrow();
for (var _local5 in team) {
team[_local5].my_team = team;
team[_local5].allow_area_array = _root[(("allow_area_array_" + stages) + "_") + stages_section];
team[_local5].dieEvents = function () {
var _local3 = true;
for (var _local4 in this.my_team) {
if (this.my_team[_local4].live) {
_local3 = false;
break;
}
}
if (this.dieEvents1 != undefined) {
this.dieEvents1();
}
if (_local3) {
_root[(("allow_area_array_" + stages) + "_") + stages_section] = this.allow_area_array;
add_stage_arrow(_root[(("stg_direct_" + stages) + "_") + stages_section]);
if (this.dieEvents2 != undefined) {
this.dieEvents2();
}
}
};
}
_root[(("allow_area_array_" + stages) + "_") + stages_section] = where;
}
function specific_stage_changer(which, stage) {
which.targeter = main.player;
which.onEnterFrame = function () {
var _local2 = get_map_point(this.targeter);
if (this.hitTest(_local2[0], _local2[1], true)) {
specific_stage = stage;
change_sceneAction();
delete this.onEnterFrame;
}
};
}
function stage_move_restricter(where, xdir, px, ydir, py) {
where.targeter = main.player;
where.onEnterFrame = function () {
if (ydir == -2) {
if (xdir == -1) {
if (get_map_point(this.targeter)[1] <= py) {
player_min_x = px;
} else {
delete player_min_x;
}
} else if (xdir == 1) {
if (get_map_point(this.targeter)[1] <= py) {
player_max_x = px;
} else {
delete player_max_x;
}
}
} else if (ydir == 2) {
if (xdir == -1) {
if (get_map_point(this.targeter)[1] >= py) {
player_min_x = px;
} else {
delete player_min_x;
}
} else if (xdir == 1) {
if (get_map_point(this.targeter)[1] >= py) {
player_max_x = px;
} else {
delete player_max_x;
}
}
}
};
}
function remove_move_restricter(where) {
delete where.onEnterFrame;
delete player_min_x;
delete player_max_x;
}
function draw_map02(which) {
if (which != undefined) {
var _local4 = get_map_point(which);
var _local3 = _local4[0];
var _local2 = _local4[1];
if ((which.xspeed >= 0) and (_local3 > 295)) {
move_maps_x((-which.xspeed) - Math.round((_local3 - 295) / 10));
} else if ((which.xspeed <= 0) and (_local3 < 295)) {
move_maps_x((-which.xspeed) + Math.round((295 - _local3) / 10));
}
if (which.states != "jump") {
if ((which.yspeed >= 0) and (_local2 > 200)) {
move_maps_y((-which.yspeed) - Math.round((_local2 - 200) / 10));
} else if ((which.yspeed <= 0) and (_local2 < 200)) {
move_maps_y((-which.yspeed) + Math.round((200 - _local2) / 10));
}
}
}
add_current_maps();
remove_current_maps();
}
function move_maps_x(temp_speed) {
var _local4 = this[(("map_width_min" + stages) + "_") + stages_section];
var _local3 = this[(("map_width_max" + stages) + "_") + stages_section];
if (temp_speed < 0) {
if (main._x > (_local4 - temp_speed)) {
main._x = main._x + temp_speed;
} else {
main._x = _local4;
}
} else if (temp_speed > 0) {
if (main._x < (_local3 - temp_speed)) {
main._x = main._x + temp_speed;
} else {
main._x = _local3;
}
}
front._x = main._x;
}
function move_maps_y(temp_speed) {
var _local4 = this[(("map_height_min" + stages) + "_") + stages_section];
var _local3 = this[(("map_height_max" + stages) + "_") + stages_section];
if (temp_speed < 0) {
if (main._y > (_local4 - temp_speed)) {
main._y = main._y + temp_speed;
} else {
main._y = _local4;
}
} else if (temp_speed > 0) {
if (main._y < (_local3 - temp_speed)) {
main._y = main._y + temp_speed;
} else {
main._y = _local3;
}
}
front._y = main._y;
}
function add_current_maps() {
var _local1 = Math.floor((map_width_max4_1 - main._x) / 590);
var _local2 = Math.floor((map_height_max4_1 - main._y) / 400);
attach_map(_local1, _local2);
attach_map(_local1 + 1, _local2);
attach_map(_local1, _local2 + 1);
attach_map(_local1 + 1, _local2 + 1);
}
function attach_map(mapx, mapy) {
if (map_now4_1[mapy][mapx] == 0) {
var _local1 = main.bg.attachMovie("stage4_bg", (("bg" + mapx) + "_") + mapy, main.bg.getNextHighestDepth());
_local1._x = (mapx * 590) - map_width_max4_1;
_local1._y = (mapy * 400) - map_height_max4_1;
_local1.gotoAndStop(map_array4_1[mapy][mapx]);
_local1.xnum = mapx;
_local1.ynum = mapy;
_local1.g.cacheAsBitmap = true;
map_now4_1[mapy][mapx] = 1;
}
}
function remove_current_maps() {
for (var _local7 in main.bg) {
var _local3 = get_map_point(main.bg[_local7]);
var _local5 = _local3[0];
var _local4 = _local3[1];
if ((Math.abs(_local5) > 590) or (Math.abs(_local4) > 400)) {
var _local2 = true;
if (temp_y < 0) {
for (var _local6 in main.enemies) {
var _local1 = get_map_point(main.enemies[_local6]);
if (main.bg[_local7].hitTest(_local1[0], _local1[1], true)) {
_local2 = false;
break;
}
}
}
if (_local2) {
map_now4_1[main.bg[_local7].ynum][main.bg[_local7].xnum] = 0;
main.bg[_local7].removeMovieClip();
remove_thingsAction();
break;
}
}
}
}
function play_soundAction(what, cyc) {
if (what != undefined) {
if (this.sound_objects[what] == undefined) {
this.sound_objects[what] = new Sound(this.sound_objects);
this.sound_objects[what].attachSound(what);
}
if (game_sounds) {
if (!cyc) {
this.sound_objects[what].stop(what);
this.sound_objects[what].start();
} else {
this.sound_objects[what].start(0, 999);
}
}
}
}
function stop_soundAction(what) {
this[what].stop(what);
}
function play_music(what, cyc) {
if (what != undefined) {
if (this.music_objects[what] == undefined) {
this.music_objects[what] = new Sound(this.music_objects);
this.music_objects[what].attachSound(what);
}
if (game_music) {
if (now_music != what) {
now_music = what;
stopAllSounds();
if (!cyc) {
this.music_objects[what].start();
} else {
this.music_objects[what].start(0, 999);
}
}
}
}
}
function stop_musicAction() {
this[now_music].stop(now_music);
}
function add_weapon(where) {
var _local3 = main.others.getNextHighestDepth();
var _local2 = main.others.attachMovie("\u5404\u79CD\u5956\u52B1", "\u5404\u79CD\u5956\u52B1" + _local3, _local3, {_x:Math.round(where._x), _y:Math.round(where._y)});
_local2.active_moved = where.active_moved;
_local2.targeter = main.player;
if (where.in_water) {
always_shine(_local2, "blue");
}
_local2.come_out = function () {
this.gotoAndPlay("come");
this.onEnterFrame = function () {
enemy_move(this, 0, 0);
if (this.ready) {
this.find_player();
}
};
};
_local2.check_item = function () {
this.items.gotoAndStop("amr");
};
_local2.find_player = function () {
this.onEnterFrame = function () {
enemy_move(this, 0, 0);
if (this.items.hitTest(this.targeter.g)) {
if ((this.targeter.gun_amr[this.targeter.gun_point][0] < 999) and (this.targeter.gun_amr[this.targeter.gun_point][0] < this.targeter.gun_amr[this.targeter.gun_point][1])) {
this.targeter.gun_amr[this.targeter.gun_point][0] = this.targeter.gun_amr[this.targeter.gun_point][1];
adjust_current_amr(this.targeter);
shot_shine(game_UI.amr1, "white", 2);
shot_shine(game_UI.amr2, "white", 2);
this.gotoAndPlay("go");
this.full_hint_mc.removeMovieClip();
this.remove_mc.removeMovieClip();
this._alpha = 100;
play_soundAction("\u8865\u5145\u5F39\u836F");
delete this.onEnterFrame;
return(undefined);
}
if (this.full_hint_mc == undefined) {
play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
this.attachMovie("\u5404\u79CD\u5956\u52B1", "full_hint_mc", this.getNextHighestDepth()).gotoAndStop("hint");
}
} else if (this.full_hint_mc != undefined) {
this.full_hint_mc.removeMovieClip();
}
present_disappear(this, 250);
};
};
_local2.come_out();
return(_local2);
}
function add_food(where, what) {
var _local3 = main.others.getNextHighestDepth();
var _local2 = main.others.attachMovie("\u5404\u79CD\u5956\u52B1", "\u5404\u79CD\u5956\u52B1" + _local3, _local3, {_x:Math.round(where._x), _y:Math.round(where._y)});
_local2.active_moved = where.active_moved;
_local2.type = what;
_local2.targeter = main.player;
if (where.in_water) {
always_shine(_local2, "blue");
}
_local2.come_out = function () {
this.gotoAndPlay("come");
this.onEnterFrame = function () {
enemy_move(this, 0, 0);
if (this.ready) {
this.find_player();
}
};
};
_local2.check_item = function () {
this.items.gotoAndStop(this.type);
};
_local2.find_player = function () {
this.onEnterFrame = function () {
enemy_move(this, 0, 0);
if (this.items.hitTest(this.targeter.g)) {
this.add_life();
this.gotoAndPlay("go");
this.remove_mc.removeMovieClip();
this._alpha = 100;
play_soundAction("\u8BB0\u5206\u97F3\u6548");
delete this.onEnterFrame;
return(undefined);
}
present_disappear(this, 250);
};
};
_local2.add_life = function () {
adjust_life(this.numbers);
};
_local2.come_out();
return(_local2);
}
function add_present(where, what) {
if (where.definite or random(2 + game_diff_level)) {
var _local4 = main.others.getNextHighestDepth();
var _local2 = main.others.attachMovie("\u5404\u79CD\u5956\u52B1", "\u5404\u79CD\u5956\u52B1" + _local4, _local4, {_x:Math.round(where._x), _y:Math.round(where._y)});
_local2.active_moved = where.active_moved;
_local2.type = what;
_local2.targeter = main.player;
if (where.in_water) {
always_shine(_local2, "blue");
}
_local2.come_out = function () {
this.gotoAndPlay("come");
this.onEnterFrame = function () {
enemy_move(this, 0, 0);
if (this.ready) {
this.find_player();
}
};
};
_local2.check_item = function () {
this.items.gotoAndStop(this.type);
};
_local2.find_player = function () {
this.onEnterFrame = function () {
enemy_move(this, 0, 0);
if (this.items.hitTest(this.targeter.g)) {
adjust_score(true, game_UI, Number(this.numbers));
this._y = this._y - ((score_height++) * 18);
this.gotoAndStop("score");
this.remove_mc.removeMovieClip();
this._alpha = 100;
play_soundAction("\u6361\u5230\u5206\u6570");
delete this.onEnterFrame;
return(undefined);
}
present_disappear(this, 200);
};
};
_local2.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);
}
};
_local2.show_score_over = function () {
score_height--;
this.removeMovieClip();
};
_local2.come_out();
return(_local2);
}
}
function present_disappear(which, time) {
if (which.disappear_time == undefined) {
which.disappear_time = time;
} else {
which.disappear_time--;
if (which.disappear_time == 0) {
object_remove(which, 0);
}
}
}
function set_keyAction(code) {
var _local1 = 0;
while (_local1 < keycodes.length) {
if (keycodes[_local1][1] == code) {
return(keycodes[_local1][0]);
}
_local1++;
}
return("Wrong key");
}
function set_current_key() {
game_intro.Wcode.order = 1;
game_intro.Scode.order = 2;
game_intro.Acode.order = 3;
game_intro.Dcode.order = 4;
game_intro.Weapon_code1.order = 5;
game_intro.Weapon_code2.order = 6;
var _local2 = SharedObject.getLocal("userSave_file");
if (_local2.data.Wcode != undefined) {
Wcode = _local2.data.Wcode;
}
if (_local2.data.Scode != undefined) {
Scode = _local2.data.Scode;
}
if (_local2.data.Acode != undefined) {
Acode = _local2.data.Acode;
}
if (_local2.data.Dcode != undefined) {
Dcode = _local2.data.Dcode;
}
if (_local2.data.Weapon_code1 != undefined) {
Weapon_code1 = _local2.data.Weapon_code1;
}
if (_local2.data.Weapon_code2 != undefined) {
Weapon_code2 = _local2.data.Weapon_code2;
}
game_intro.Wcode.what = set_keyAction(Wcode);
game_intro.Scode.what = set_keyAction(Scode);
game_intro.Acode.what = set_keyAction(Acode);
game_intro.Dcode.what = set_keyAction(Dcode);
game_intro.Weapon_code1.what = set_keyAction(Weapon_code1);
game_intro.Weapon_code2.what = set_keyAction(Weapon_code2);
game_intro.Wcode.onPress = function () {
start_set_key(this);
};
game_intro.Scode.onPress = function () {
start_set_key(this);
};
game_intro.Acode.onPress = function () {
start_set_key(this);
};
game_intro.Dcode.onPress = function () {
start_set_key(this);
};
game_intro.Weapon_code1.onPress = function () {
start_set_key(this);
};
game_intro.Weapon_code2.onPress = function () {
start_set_key(this);
};
end_set_key();
}
function reset_org_options() {
Wcode = org_Wcode;
Scode = org_Scode;
Acode = org_Acode;
Dcode = org_Dcode;
Weapon_code1 = org_Weapon_code1;
Weapon_code2 = org_Weapon_code2;
game_music = true;
game_sounds = true;
game_quality = "MEDIUM";
var _local1 = SharedObject.getLocal("userSave_file");
_local1.data.Wcode = org_Wcode;
_local1.data.Scode = org_Scode;
_local1.data.Acode = org_Acode;
_local1.data.Dcode = org_Dcode;
_local1.data.Weapon_code1 = org_Weapon_code1;
_local1.data.Weapon_code2 = org_Weapon_code2;
set_current_key();
set_current_options();
}
function start_set_key(which) {
play_soundAction("\u8865\u5145\u5F39\u836F");
set_current_key();
which.what = "PRESS A KEY";
key_set_pressed = false;
keyListener = new Object();
keyListener.onKeyDown = function () {
play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
set_this_key(Key.getCode(), which);
};
Key.addListener(keyListener);
}
function end_set_key() {
Key.removeListener(keyListener);
delete keyListener;
}
function set_this_key(code, which) {
if (!key_set_pressed) {
var _local1 = SharedObject.getLocal("userSave_file");
if (which.order == 1) {
_local1.data.Wcode = (Wcode = code);
} else if (which.order == 2) {
_local1.data.Scode = (Scode = code);
} else if (which.order == 3) {
_local1.data.Acode = (Acode = code);
} else if (which.order == 4) {
_local1.data.Dcode = (Dcode = code);
} else if (which.order == 5) {
_local1.data.Weapon_code1 = (Weapon_code1 = code);
} else if (which.order == 6) {
_local1.data.Weapon_code2 = (Weapon_code2 = code);
}
which.what = set_keyAction(code);
key_set_pressed = true;
end_set_key();
}
}
function check_correct() {
if (game_intro.Wcode.what == "Wrong key") {
start_set_key(_root.game_intro.Wcode);
return("wrong");
}
if (game_intro.Scode.what == "Wrong key") {
start_set_key(_root.game_intro.Scode);
return("wrong");
}
if (game_intro.Acode.what == "Wrong key") {
start_set_key(_root.game_intro.Acode);
return("wrong");
}
if (game_intro.Dcode.what == "Wrong key") {
start_set_key(_root.game_intro.Dcode);
return("wrong");
}
if (game_intro.Weapon_code1.what == "Wrong key") {
start_set_key(_root.game_intro.Weapon_code1);
return("wrong");
}
if (game_intro.Weapon_code2.what == "Wrong key") {
start_set_key(_root.game_intro.Weapon_code2);
return("wrong");
}
var _local4 = [Wcode, Scode, Acode, Dcode, Weapon_code1, Weapon_code2];
var _local5 = ["Wcode", "Scode", "Acode", "Dcode", "Weapon_code1", "Weapon_code2"];
var _local2 = 0;
while (_local2 < (_local4.length - 1)) {
var _local3 = _local2 + 1;
while (_local3 < _local4.length) {
if (_local4[_local2] == _local4[_local3]) {
if (game_intro[_local5[_local2]] != undefined) {
start_set_key(game_intro[_local5[_local2]]);
shot_shine(game_intro[_local5[_local2]], "red", 2);
return("wrong");
}
}
_local3++;
}
_local2++;
}
return("finish");
}
function set_current_options() {
game_intro.sound_1.onPress = function () {
set_options("sound", true);
play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
};
game_intro.sound_2.onPress = function () {
play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
set_options("sound", false);
};
game_intro.music_1.onPress = function () {
play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
set_options("music", true);
};
game_intro.music_2.onPress = function () {
play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
set_options("music", false);
};
game_intro.quality_1.onPress = function () {
play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
set_options("quality", "LOW");
};
game_intro.quality_2.onPress = function () {
play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
set_options("quality", "MEDIUM");
};
game_intro.quality_3.onPress = function () {
play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
set_options("quality", "HIGH");
};
set_options("sound", game_sounds);
set_options("music", game_music);
set_options("quality", game_quality);
}
function set_options(which, order) {
if (which == "sound") {
game_sounds = order;
if (game_sounds) {
change_color(game_intro.sound_1, NM_ColorMatrix);
change_color(game_intro.sound_2, BW_ColorMatrix);
} else {
change_color(game_intro.sound_1, BW_ColorMatrix);
change_color(game_intro.sound_2, NM_ColorMatrix);
}
} else if (which == "music") {
game_music = order;
if (game_music) {
play_music("OP", true);
change_color(game_intro.music_1, NM_ColorMatrix);
change_color(game_intro.music_2, BW_ColorMatrix);
} else {
stopAllSounds();
now_music = "";
change_color(game_intro.music_1, BW_ColorMatrix);
change_color(game_intro.music_2, NM_ColorMatrix);
}
} else if (which == "quality") {
_quality = order;
game_quality = order;
if (game_quality == "LOW") {
change_color(game_intro.quality_1, NM_ColorMatrix);
change_color(game_intro.quality_2, BW_ColorMatrix);
change_color(game_intro.quality_3, BW_ColorMatrix);
} else if (game_quality == "MEDIUM") {
change_color(game_intro.quality_1, BW_ColorMatrix);
change_color(game_intro.quality_2, NM_ColorMatrix);
change_color(game_intro.quality_3, BW_ColorMatrix);
} else if (game_quality == "HIGH") {
change_color(game_intro.quality_1, BW_ColorMatrix);
change_color(game_intro.quality_2, BW_ColorMatrix);
change_color(game_intro.quality_3, NM_ColorMatrix);
}
}
}
function create_new_player(where) {
if (game_save_file_num < 4) {
if (where.msg_box == undefined) {
where.attachMovie("game_msg_box", "msg_box", where.getNextHighestDepth()).gotoAndPlay("create");
}
} else {
notice_Action(" Save Slot Is Full ");
}
}
function delete_player(where) {
if (where.msg_box == undefined) {
where.attachMovie("game_msg_box", "msg_box", where.getNextHighestDepth()).gotoAndPlay("delete");
}
}
function delete_playerAction(where) {
var _local1 = 1;
while (_local1 <= 4) {
if (where["slot" + _local1].select) {
game_del_files(where["slot" + _local1].my_name, where);
break;
}
_local1++;
}
}
function enter_user_name(where, user_name, user_sex) {
if (check_user_name(user_name)) {
if (game_save_files(where, user_name, user_sex, level_passed_at_begining, true)) {
return(true);
}
}
return(false);
}
function check_user_name(my_name) {
if (String(my_name).length < 2) {
return(false);
}
var _local1 = SharedObject.getLocal("userSave_file");
for (var _local3 in _local1.data) {
if (_local1.data[_local3].my_name == my_name) {
return(false);
}
}
return(true);
}
function game_save_files(where, file_name, sex, level_passed, show_hints) {
var _local1 = SharedObject.getLocal("userSave_file");
if (file_name != undefined) {
_local1.data[file_name] = new Object();
_local1.data[file_name].my_name = file_name;
_local1.data[file_name].my_sex = sex;
_local1.data[file_name].level_passed = level_passed;
_local1.data[file_name].show_hints = show_hints;
}
_local1.data.Wcode = Wcode;
_local1.data.Scode = Scode;
_local1.data.Acode = Acode;
_local1.data.Dcode = Dcode;
_local1.data.Weapon_code1 = Weapon_code1;
_local1.data.Weapon_code2 = Weapon_code2;
if (where != undefined) {
game_load_files(where._parent);
}
if (_local1.flush(1000) == true) {
return(true);
}
return(false);
}
function game_save_level_file(level_passed) {
if ((level_passed + (game_diff_level * 4)) > game_stage_pass) {
if (URL_lockAction()) {
var _local1 = SharedObject.getLocal("userSave_file");
game_stage_pass = 1;
_local1.data[game_player_name].level_passed = level_passed + (game_diff_level * 4);
_local1.flush(1000);
return(level_passed + (game_diff_level * 4));
}
}
return(undefined);
}
function game_load_files(where) {
game_player_weapons = [1, 15, 0, 0, 0, 0];
var _local3 = 1;
while (_local3 <= 4) {
where["slot" + _local3].gotoAndStop(1);
where["slot" + _local3].my_name = "EMPTY SAVE SLOT";
where["slot" + _local3].mc.my_name_txt.textColor = 14262889 /* 0xD9A269 */;
where["slot" + _local3].mc.player.gotoAndStop(1);
where["slot" + _local3].mc.star.gotoAndStop(1);
where["slot" + _local3].select = false;
delete where["slot" + _local3].onPress;
_local3++;
}
var _local4 = SharedObject.getLocal("userSave_file");
var _local2 = 0;
game_save_file_num = 0;
var _local5 = true;
for (var _local7 in _local4.data) {
if (_local4.data[_local7].my_name != undefined) {
_local2++;
game_save_file_num++;
where["slot" + _local2].my_name = _local4.data[_local7].my_name;
where["slot" + _local2].mc.my_name_txt.textColor = 3939345 /* 0x3C1C11 */;
where["slot" + _local2].my_sex = _local4.data[_local7].my_sex;
where["slot" + _local2].mc.player.gotoAndStop(_local4.data[_local7].my_sex);
where["slot" + _local2].level_passed = _local4.data[_local7].level_passed;
where["slot" + _local2].mc.star.gotoAndStop(_local4.data[_local7].level_passed + 1);
where["slot" + _local2].show_hints = _local4.data[_local7].show_hints;
if (_local5) {
_local5 = false;
game_player_name = where["slot" + _local2].my_name;
where["slot" + _local2].gotoAndPlay(1);
where["slot" + _local2].select = true;
game_player_sex = where["slot" + _local2].my_sex;
game_stage_pass = 1;
game_show_hints = where["slot" + _local2].show_hints;
}
where["slot" + _local2].onPress = function () {
if (where.msg_box == undefined) {
play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39");
if (!this.select) {
this.select = true;
this.gotoAndPlay(1);
}
for (var _local2 in this._parent) {
if (this._parent[_local2].select and (this._parent[_local2]._name != this._name)) {
this._parent[_local2].select = false;
this._parent[_local2].play();
}
}
game_player_name = this.my_name;
game_player_sex = this.my_sex;
game_stage_pass = 1;
game_show_hints = this.show_hints;
}
};
}
}
if (_local5) {
change_color(where.buttons.btn_next, BW_ColorMatrix);
change_color(where.buttons.btn_delete, BW_ColorMatrix);
where.buttons.btn_next.enabled = false;
where.buttons.btn_delete.enabled = false;
create_new_player(where);
} else {
change_color(where.buttons.btn_next, NM_ColorMatrix);
change_color(where.buttons.btn_delete, NM_ColorMatrix);
where.buttons.btn_next.enabled = true;
where.buttons.btn_delete.enabled = true;
}
}
function game_del_files(which, where) {
var _local1 = SharedObject.getLocal("userSave_file");
delete _local1.data[which];
game_load_files(where);
}
function add_player(temp_x, temp_y) {
main.player.removeMovieClip();
var _local1 = main.attachMovie("player" + game_player_sex, "player", main.getNextHighestDepth());
_local1.states = "stand";
_local1.speed = 6;
_local1.xspeed = 0;
_local1.yspeed = 0;
_local1.enemy_xspeed = 0;
_local1._x = temp_x;
_local1._y = temp_y;
_local1.up.stop();
_local1.up.r_arm.stop();
adjust_amr();
_local1.shooting = false;
_local1.injure = false;
_local1.live = true;
_local1.in_water = false;
_local1.org_height = _local1.g._height;
_local1.unbreak = false;
_local1.can_with = true;
_local1.can_move_maps = false;
_local1.caught = false;
control_able = true;
_local1.gun_point = 0;
_local1.gun_array = game_player_weapons;
_local1.up.r_arm.gotoAndStop(_local1.gun_array[_local1.gun_point]);
_local1.gun_amr = [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0]];
for (var _local2 in game_player_weapons) {
if (game_player_weapons[_local2] != 0) {
_local1.gun_amr[_local2] = [weapon_amr[game_player_weapons[_local2]][1], weapon_amr[game_player_weapons[_local2]][1]];
}
}
adjust_current_amr(_local1);
_local1.recoilX = 0;
_local1.recoilY = 0;
active_object_speed = 0;
active_map_drawer = "main.player";
return(_local1);
}
function unbreakAction(who) {
who.unbreak = true;
who.createEmptyMovieClip("unbreaker", who.getNextHighestDepth());
who.unbreaker.unbreak_start = 0;
who.unbreaker.onEnterFrame = function () {
this.unbreak_start++;
var _local2 = this.unbreak_start % 10;
if (_local2 < 5) {
this._parent._alpha = 60;
} else {
this._parent._alpha = 100;
}
if (this.unbreak_start > 50) {
this._parent._alpha = 100;
this._parent.unbreak = false;
this.removeMovieClip();
}
};
}
function player_die(who, how, much) {
if (!boss_killed) {
if (who.live and (!who.unbreak)) {
adjust_life(-Math.round(much * ((game_diff_level * 0.5) + 0.5)));
if (who.yspeed < 0) {
who.yspeed = 3;
}
if (life_left <= 0) {
control_able = false;
who.injure = true;
who.live = false;
who._alpha = 100;
who.xspeed = 0;
if (how == "shoot") {
who.gotoAndStop("die1");
play_soundAction("\u4E3B\u89D2\u6B7B\u4EA1" + game_player_sex);
} else if (how == "kill") {
who.gotoAndStop("die2");
play_soundAction("\u4E3B\u89D2\u6B7B\u4EA1" + game_player_sex);
} else if (how == "h2so4") {
who.gotoAndStop("die3");
play_soundAction("\u4E3B\u89D2\u6B7B\u4EA1" + game_player_sex);
play_soundAction("\u843D\u6C34");
who.jumper.removeMovieClip();
} else if (how == "fall") {
who.gotoAndStop("die1");
play_soundAction("\u4E3B\u89D2\u6B7B\u4EA1" + game_player_sex);
who.jumper.removeMovieClip();
}
delete who.onEnterFrame;
} else {
if ((much > 10) and (!who.caught)) {
control_able = false;
stop_shoot(who);
who.injure = true;
who.gotoAndStop("die1");
who.xspeed = 0;
who.recoilX = 0;
who.recoilY = 0;
who.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
control_able = true;
this.gotoAndStop("man");
this.up.r_arm.gotoAndStop(this.gun_array[this.gun_point]);
this.injure = false;
unbreakAction(this);
delete this.onEnterFrame;
} else if (this.mc._currentframe > 30) {
if (life_left > 0) {
this.mc.play();
} else {
this.mc.stop();
}
}
};
} else {
unbreakAction(who);
}
shot_shine(game_UI.life, "red", 2);
}
return(true);
}
}
return(false);
}
function moveX_action(who) {
var _local20 = get_map_point(who);
var _local15 = _local20[0];
var _local18 = _local20[1];
var _local12 = false;
var _local5 = _local15;
var _local9 = _local18 - who.org_height;
var _local11 = false;
var _local13 = _local15 + (2 * (who.xspeed + who.enemy_xspeed));
var _local14 = _local18 - who.g._height;
var _local8 = false;
var _local10 = false;
var _local7 = _local13;
var _local2 = _local18 - 15;
var _local4 = false;
var _local3 = _local15;
var _local6 = _local18 + 10;
for (var _local16 in main.objects) {
if (get_ground_hit(main.objects[_local16].g, _local7, _local2) == 1) {
if (get_ground_hit(main.objects[_local16].g, _local5, _local2) != 1) {
_local8 = true;
}
}
if (who.states != "jump") {
if (get_ground_hit(main.objects[_local16].g, _local3, _local6) > 0) {
adjustY(who, main.objects[_local16].g);
_local4 = true;
}
}
}
for (var _local17 in main.enemies) {
if (get_ground_hit(main.enemies[_local17].g, _local7, _local2) == 1) {
if (get_ground_hit(main.enemies[_local17].g, _local5, _local2) != 1) {
_local10 = true;
}
}
if (who.states != "jump") {
if (get_ground_hit(main.enemies[_local17].g, _local3, _local6) > 0) {
if (get_ground_hit(main.enemies[_local17].g, _local3, _local9) == 0) {
if (main.enemies[_local17].always_on or (who.live and (!who.injure))) {
adjustY(who, main.enemies[_local17].g);
if (main.enemies[_local17].can_jump) {
if (who.live) {
who.states = "jump";
who.down.force_jump = -5;
gotoFrame(who, "down", "jump");
}
}
_local4 = true;
}
}
}
}
}
for (var _local19 in main.bg) {
if (get_ground_hit(main.bg[_local19].g, _local5, _local9) == 1) {
_local12 = true;
}
if (get_ground_hit(main.bg[_local19].g, _local13, _local14) == 1) {
_local11 = true;
}
if (get_ground_hit(main.bg[_local19].g, _local7, _local2) == 1) {
_local8 = true;
}
if (who.states != "jump") {
if (get_ground_hit(main.bg[_local19].g, _local3, _local6) > 0) {
adjustY(who, main.bg[_local19].g);
_local4 = true;
}
}
}
who.stand_hit_head = _local12;
who.hit_head = _local11;
who.hit_ground = _local8;
who.hit_enemy = _local10;
if (((!_local8) and (!_local11)) and (!_local10)) {
if ((who.xspeed > 0) and ((_local15 + who.xspeed) < 580)) {
if ((player_max_x == undefined) or ((who._x + who.xspeed) < player_max_x)) {
who._x = who._x + who.xspeed;
}
} else if ((who.xspeed < 0) and ((_local15 + who.xspeed) > 10)) {
if ((player_min_x == undefined) or ((who._x + who.xspeed) > player_min_x)) {
who._x = who._x + who.xspeed;
}
}
}
if (!_local4) {
if (who.live and (who.states != "jump")) {
gotoFrame(who, "down", "fall");
}
}
}
function jump_Action(who, speed) {
if (who.jumper == undefined) {
who.createEmptyMovieClip("jumper", who.getNextHighestDepth());
}
who.states = "jump";
who.yspeed = speed;
who.jumper.onEnterFrame = function () {
if (this._parent.in_water) {
if (Math.abs(this._parent.yspeed) > 9) {
this._parent.yspeed = (9 * Math.abs(this._parent.yspeed)) / this._parent.yspeed;
}
} else {
this._parent.yspeed = this._parent.yspeed + 0.85;
if (this._parent.yspeed > 15) {
this._parent.yspeed = 15;
}
}
this._parent._y = this._parent._y + this._parent.yspeed;
if (this._parent.yspeed < 0) {
var _local12 = get_map_point(this._parent);
var _local4 = _local12[0];
var _local6 = _local12[1] - this._parent.yspeed;
var _local9 = _local12[1] - this._parent.org_height;
for (var _local10 in main.enemies) {
if (!main.enemies[_local10].blood_all) {
if (get_ground_hit(main.enemies[_local10].g, _local4, _local9) == 1) {
if (get_ground_hit(main.enemies[_local10].g, _local4, _local6) == 0) {
this._parent.yspeed = 3;
return(undefined);
}
}
}
}
for (var _local11 in main.bg) {
if (get_ground_hit(main.bg[_local11].g, _local4, _local9) == 1) {
this._parent.yspeed = 3;
return(undefined);
}
if (this._parent.in_water) {
var _local2 = -1;
while (_local2 <= 1) {
if (get_ground_hit(main.bg[_local11].g, _local4, _local6 + (_local2 * 5)) == -1) {
if (main.water_up == undefined) {
play_soundAction("\u843D\u6C34", false);
main.attachMovie("\u843D\u6C34\u6548\u679C", "water_up", main.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y + this._parent.yspeed});
}
this._parent.in_water = false;
always_shine(this._parent, "normal");
break;
}
_local2++;
}
}
}
if (_local9 < 0) {
this._parent.yspeed = 0;
}
} else if (this._parent.yspeed >= 0) {
var _local12 = get_map_point(this._parent);
var _local4 = _local12[0];
var _local6 = _local12[1] + this._parent.yspeed;
var _local9 = _local12[1] - this._parent.org_height;
for (var _local10 in main.enemies) {
if (get_ground_hit(main.enemies[_local10].g, _local4, _local6) > 0) {
if (get_ground_hit(main.enemies[_local10].g, _local4, _local9) == 0) {
if (main.enemies[_local10].always_on or (!this._parent.injure)) {
main.enemies[_local10].startAction(this._parent);
if (!main.enemies[_local10].have_startAction) {
delete main.enemies[_local10].startAction;
}
if (main.enemies[_local10].can_jump and this._parent.live) {
if (!this._parent.injure) {
this._parent.yspeed = -5;
} else {
this._parent.yspeed = -0.85;
}
return(undefined);
}
landAction(this._parent, main.enemies[_local10].g);
delete this.onEnterFrame;
return(undefined);
}
}
}
}
for (var _local11 in main.objects) {
if (get_ground_hit(main.objects[_local11].g, _local4, _local6) > 0) {
main.objects[_local11].startAction(this._parent);
delete main.objects[_local11].startAction;
landAction(this._parent, main.objects[_local11].g);
delete this.onEnterFrame;
return(undefined);
}
}
for (var _local11 in main.bg) {
var _local3 = get_ground_hit(main.bg[_local11].g, _local4, _local6);
if (_local3 > 0) {
landAction(this._parent, main.bg[_local11].g);
delete this.onEnterFrame;
return(undefined);
}
if (_local3 == -1) {
if (!this._parent.in_water) {
if (main.water_down == undefined) {
play_soundAction("\u843D\u6C34", false);
main.attachMovie("\u843D\u6C34\u6548\u679C", "water_down", main.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y + this._parent.yspeed});
}
this._parent.in_water = true;
always_shine(this._parent, "blue");
}
} else {
if (_local3 == -2) {
this._parent.unbreak = false;
player_die(this._parent, "h2so4", 999);
return(undefined);
}
if (_local3 == -3) {
if (!this._parent.injure) {
if (player_die(this._parent, "kill", 20)) {
var _local5 = main.getNextHighestDepth();
main.attachMovie("\u5C0F\u5200\u780D\u4EBA_\u6548\u679C", "attack_effect" + _local5, _local5, {_x:this._parent._x, _y:this._parent._y});
play_soundAction("\u5C0F\u52000" + (random(2) + 1), false);
}
}
}
}
}
if ((this._parent._y + main._y) > 450) {
if (game_intro == undefined) {
this._parent.unbreak = false;
player_die(this._parent, "fall", 999);
delete this.onEnterFrame;
}
}
}
};
}
function landAction(who, ground) {
who.xspeed = 0;
who.yspeed = 0;
who.states = "stand";
adjustY(who, ground);
if (who.live) {
gotoFrame(who, "down", "stand");
}
}
function gameControl(who) {
if (control_able and who.live) {
gameControl01(who);
gameControl02(who);
}
moveX_action(who);
}
function keys_areDown(keycode1, keycode2, keycode3) {
if (Key.isDown(keycode1)) {
return(true);
}
if (Key.isDown(keycode2)) {
return(true);
}
if (Key.isDown(keycode3)) {
return(true);
}
return(false);
}
function gameControl01(who) {
if (!who.caught) {
if (keys_areDown(Scode, Num5code, 40)) {
key_S_Action(who);
} else {
normalAction_S(who);
if (keys_areDown(Wcode, Num8code, 38)) {
if (!Wcode_pressed) {
Wcode_pressed = true;
key_W_Action(who);
}
} else {
Wcode_pressed = false;
}
}
if (keys_areDown(Acode, Num4code, 37)) {
key_AD_Action(who, -100);
} else if (keys_areDown(Dcode, Num6code, 39)) {
key_AD_Action(who, 100);
} else {
normalAction_AD(who);
}
}
if (keys_areDown(Weapon_code1, Num7code, Num7code)) {
if (!Weapon_code1_pressed) {
Weapon_code1_pressed = true;
change_weapon(who, -1);
}
} else {
Weapon_code1_pressed = false;
if (keys_areDown(Weapon_code2, Num9code, Num9code)) {
if (!Weapon_code2_pressed) {
Weapon_code2_pressed = true;
change_weapon(who, 1);
}
} else {
Weapon_code2_pressed = false;
}
}
}
function change_weapon(who, how) {
play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39", false);
var _local2 = 0;
while (_local2 <= 5) {
if (how == 1) {
if (who.gun_point < (who.gun_array.length - 1)) {
who.gun_point++;
} else {
who.gun_point = 0;
}
} else if (how == -1) {
if (who.gun_point > 0) {
who.gun_point--;
} else {
who.gun_point = who.gun_array.length - 1;
}
} else if (how == 0) {
who.gun_point = 1;
}
if (who.gun_array[who.gun_point] != 0) {
break;
}
_local2++;
}
who.up.r_arm.gotoAndStop(who.gun_array[who.gun_point]);
adjust_current_amr(who);
shot_shine(game_UI.weapon, "white", 2);
shot_shine(game_UI.amr1, "white", 2);
shot_shine(game_UI.amr2, "white", 2);
if (who.gun_array[who.gun_point] == 3) {
who.up.l_arm._visible = false;
} else {
who.up.l_arm._visible = true;
}
}
function gameControl02(who) {
var _local7 = main._xmouse + who.recoilX;
var _local6 = main._ymouse + who.recoilY;
if (who != undefined) {
var _local5 = _local6 - (who._y - 30);
var _local4 = _local7 - who._x;
var _local2 = Math.atan2(_local5, _local4) / 0.01745;
if (main._xmouse > who._x) {
who.up._xscale = 100;
who.up.r_arm._rotation = _local2 + 90;
} else {
who.up._xscale = -100;
who.up.r_arm._rotation = -(_local2 + 90);
}
who.up.l_arm._rotation = who.up.r_arm._rotation * 1.15;
var _local3 = Math.floor(Math.abs(who.up.r_arm._rotation) / 20) + 1;
if (!who.shooting) {
who.up.gotoAndStop(_local3);
} else {
who.up.gotoAndStop(_local3 + 10);
}
}
}
function shootControl(who) {
if (mouseListener == undefined) {
mouseListener = new Object();
mouseListener.onMouseDown = function () {
if (control_able and who.live) {
start_shoot(who);
}
};
mouseListener.onMouseUp = function () {
if (who.live) {
stop_shoot(who);
}
};
mouseListener.onMouseWheel = function (delta) {
if (control_able and who.live) {
if (delta > 0) {
change_weapon(who, -1);
} else {
change_weapon(who, 1);
}
}
};
Mouse.addListener(mouseListener);
}
}
function start_shoot(who) {
if (who.onEnterFrame == undefined) {
who.shooting = true;
if ((who.gun_array[who.gun_point] >= 15) and (who.gun_amr[who.gun_point][0] > 0)) {
player_shooting = true;
}
who.onEnterFrame = function () {
if (this.gun_amr[this.gun_point][0] > 0) {
this.up.r_arm.mc.play();
if (this.up.r_arm.mc._currentframe == 1) {
if ((this.gun_array[this.gun_point] > 4) and (this.gun_array[this.gun_point] != 59)) {
_root["doing_attack" + this.gun_array[this.gun_point]](this, this.up.r_arm._rotation);
}
play_soundAction(get_weapon_sound(this), false);
this.gun_amr[this.gun_point][0]--;
adjust_current_amr(this);
} else if (this.up.r_arm.mc._currentframe == 2) {
if (Math.abs(this.up.r_arm._rotation) > 30) {
if (this.gun_array[this.gun_point] <= 4) {
this.recoilY = -80;
} else if (this.gun_array[this.gun_point] > 4) {
if (this.gun_array[this.gun_point] == 59) {
this.recoilY = -10;
} else {
this.recoilY = -10 * (this.up.r_arm.mc._totalframes - 2);
}
}
} else {
this.recoilX = (-this.up._xscale) / 2;
}
} else if (this.recoilX != 0) {
this.recoilX = this.recoilX + ((-10 * Math.abs(this.recoilX)) / this.recoilX);
} else if (this.recoilY != 0) {
this.recoilY = this.recoilY + ((-10 * Math.abs(this.recoilY)) / this.recoilY);
}
} else if (this.up.r_arm.mc._currentframe == 1) {
if (random(2)) {
play_soundAction("\u7A7A\u5B50\u5F39", false);
if (!random(10)) {
change_weapon(this, 0);
}
}
}
};
}
}
function stop_shoot(who) {
who.shooting = false;
player_shooting = false;
if (!who.injure) {
who.onEnterFrame = function () {
if (this.recoilX != 0) {
this.recoilX = this.recoilX + ((-10 * Math.abs(this.recoilX)) / this.recoilX);
} else if (this.recoilY != 0) {
this.recoilY = this.recoilY + ((-10 * Math.abs(this.recoilY)) / this.recoilY);
} else {
delete this.onEnterFrame;
}
};
} else {
this.recoilX = 0;
this.recoilY = 0;
}
}
function get_weapon_sound(who) {
return(weapon_sounds[who.gun_array[who.gun_point]]);
}
function doing_attack1(which) {
attackAction(which, 3, 10);
}
function doing_attack2(which) {
attackAction(which, 6, 30);
}
function doing_attack3(who, dir) {
throwAction(who, 1, dir, 12, 0, 10, 20);
}
function doing_attack4(who, dir) {
throwAction(who, 2, dir, 10, 2, 5, 10);
}
function doing_attack8(who, dir) {
shootAction(who, 0, 1, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 50)), 20, 1, 1, 0, 0, true, "shoot", "\u4E2D\u5F391");
}
function doing_attack9(who, dir) {
shootAction(who, 0, 2, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 50)), 20, 1.5, 1.5, 0, 0, true, "shoot", "\u4E2D\u5F391");
}
function doing_attack10(who, dir) {
shootAction(who, 0, 3, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 50)), 25, 2, 2, 0, 0, true, "shoot", "\u4E2D\u5F392");
}
function doing_attack11(who, dir) {
shootAction(who, 0, 4, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 50)), 30, 2.5, 2.5, 0, 0, true, "shoot", "\u4E2D\u5F392");
}
function doing_attack15(who, dir) {
shootAction(who, 0, 1, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 40)), 20, 1, 1, 0, 0, true, "shoot", "\u4E2D\u5F391");
}
function doing_attack16(who, dir) {
shootAction(who, 0, 2, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 35)), 20, 1.5, 1.5, 0, 0, true, "shoot", "\u4E2D\u5F391");
}
function doing_attack17(who, dir) {
shootAction(who, 0, 3, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 30)), 25, 2, 2, 0, 0, true, "shoot", "\u4E2D\u5F392");
}
function doing_attack18(who, dir) {
shootAction(who, 0, 4, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 25)), 30, 2.5, 2.5, 0, 0, true, "shoot", "\u4E2D\u5F392");
}
function doing_attack22(who, dir) {
shootAction(who, 1, 2, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 40)), 20, 1, 1, 0, 0, true, "shoot", "\u4E2D\u5F391");
}
function doing_attack23(who, dir) {
shootAction(who, 1, 3, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 35)), 25, 1.5, 1.5, 0, 0, true, "shoot", "\u4E2D\u5F391");
}
function doing_attack24(who, dir) {
shootAction(who, 1, 4, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 35)), 35, 2, 2, 0, 0, true, "shoot", "\u4E2D\u5F391");
}
function doing_attack25(who, dir) {
shootAction(who, 1, 5, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 40)), 35, 2.5, 2.5, 0, 0, true, "shoot", "\u4E2D\u5F392");
}
function doing_attack26(who, dir) {
shootAction(who, 1, 6, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 30)), 30, 3, 3, 0, 0, true, "shoot", "\u4E2D\u5F392");
}
function doing_attack30(who, dir) {
if (main._xmouse > who._x) {
var _local1 = (dir - 90) * 0.01745;
} else {
var _local1 = (-(dir + 90)) * 0.01745;
}
shootAction(who, 2, 1, 0, 45 * Math.cos(_local1), 45 * Math.sin(_local1), dir * (1 + (Math.random() / 10)), 15 + random(4), 2, 2, 0, 0.75, true, "blow", "\u624B\u96F7\u7206\u70B8");
shootAction(who, 2, 1, 0, 45 * Math.cos(_local1), 45 * Math.sin(_local1), dir, 15 + random(4), 2, 2, 0, 0.75, true, "blow", "\u624B\u96F7\u7206\u70B8");
shootAction(who, 2, 1, 0, 45 * Math.cos(_local1), 45 * Math.sin(_local1), dir * (1 - (Math.random() / 10)), 15 + random(4), 2, 2, 0, 0.75, true, "blow", "\u624B\u96F7\u7206\u70B8");
}
function doing_attack31(who, dir) {
if (main._xmouse > who._x) {
var _local1 = (dir - 90) * 0.01745;
} else {
var _local1 = (-(dir + 90)) * 0.01745;
}
shootAction(who, 2, 2, 0, 49 * Math.cos(_local1), 49 * Math.sin(_local1), dir * (1 + (Math.random() / 10)), 20 + random(6), 4, 4, 0, 0.25, true, "blow", "\u624B\u96F7\u7206\u70B8");
shootAction(who, 2, 2, 0, 49 * Math.cos(_local1), 49 * Math.sin(_local1), dir, 20 + random(6), 4, 4, 0, 0.25, true, "blow", "\u624B\u96F7\u7206\u70B8");
shootAction(who, 2, 2, 0, 49 * Math.cos(_local1), 49 * Math.sin(_local1), dir * (1 - (Math.random() / 10)), 20 + random(6), 4, 4, 0, 0.25, true, "blow", "\u624B\u96F7\u7206\u70B8");
}
function doing_attack35(who, dir) {
shootAction(who, 3, 0, 0, 0, 0, dir, 2, 20, 100, 0, 0, false, "fly", null);
shake_screen();
}
function doing_attack36(who, dir) {
var _local1 = shootAction(who, 3, 0, 0, 0, 0, dir, 2, 10, 20, 0, 0, false, "fly", null);
_local1._xscale = _local1._xscale * 0.75;
_local1._yscale = _local1._yscale * 0.75;
}
function doing_attack37(who, dir) {
shootAction(who, 4, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 30)), 12, 5, 10, 0.35, 0.15, true, "blow", "\u5BFC\u5F39\u7206\u70B8");
}
function doing_attack38(who, dir) {
var _local1 = 10 + random(6);
tracerAction(who, "\u4E3B\u89D2_\u5B50\u5F395", "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 0, 0, dir, _local1, 4, 8, "blow", "\u5BFC\u5F39\u7206\u70B8");
tracerAction(who, "\u4E3B\u89D2_\u5B50\u5F395", "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 0, 0, dir, _local1 + 2, 4, 8, "blow", "\u5BFC\u5F39\u7206\u70B8");
}
function doing_attack39(who, dir) {
shootAction(who, 6, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 10)), 15 + random(10), 5, 10, 0.05, 0.15, true, "blow", "\u5BFC\u5F39\u7206\u70B8");
shootAction(who, 6, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 10)), 15 + random(10), 5, 10, 0.05, 0.15, true, "blow", "\u5BFC\u5F39\u7206\u70B8");
shootAction(who, 6, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 10)), 15 + random(10), 5, 10, 0.05, 0.15, true, "blow", "\u5BFC\u5F39\u7206\u70B8");
}
function doing_attack43(who, dir) {
shootAction(who, 7, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 0, 0, dir, 10, 10, 20, 0.05, 0.5, true, "blow", "\u5BFC\u5F39\u7206\u70B8");
}
function doing_attack44(who, dir) {
shootAction(who, 8, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 0, 0, dir, 25, 15, 30, 0.05, 0.15, true, "blow", "\u5BFC\u5F39\u7206\u70B8").piercing = true;
}
function doing_attack45(who, dir) {
shootAction(who, 9, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 0, 0, dir, 5, 5, 10, 0.25, 0, false, "blow", "\u5BFC\u5F39\u7206\u70B8").bullet_walk = true;
shootAction(who, 9, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 0, 0, dir, 7, 5, 10, 0.25, 0, false, "blow", "\u5BFC\u5F39\u7206\u70B8").bullet_walk = true;
shootAction(who, 9, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 0, 0, dir, 9, 5, 10, 0.25, 0, false, "blow", "\u5BFC\u5F39\u7206\u70B8").bullet_walk = true;
}
function doing_attack46(who, dir) {
shootAction(who, 1, 7, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 30)), 35, 3.5, 3.5, 0, 0, true, "shoot", "\u4E2D\u5F392");
}
function doing_attack47(who, dir) {
if (main._xmouse > who._x) {
var _local2 = (dir - 180) * 0.01745;
} else {
var _local2 = (-dir) * 0.01745;
}
var _local1 = random(8) * ((random(2) * 2) - 1);
shootAction(who, 1, 8, 0, _local1 * Math.cos(_local2), _local1 * Math.sin(_local2), dir, 35, 4, 4, 0, 0, true, "shoot", "\u4E2D\u5F392");
}
function doing_attack51(who, dir) {
shootAction(who, 1, 1, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 20)), 25 + random(6), 2, 2, 0, 0, true, "shoot", "\u4E2D\u5F391");
shootAction(who, 1, 1, 0, 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 20)), 25 + random(6), 2, 2, 0, 0, true, "shoot", "\u4E2D\u5F391");
}
function doing_attack52(who, dir) {
shootAction(who, 10, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 0, 0, dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 30)), 10, 7, 14, 0.05, 0.75, true, "blow", "\u5BFC\u5F39\u7206\u70B8");
}
function doing_attack53(who, dir) {
shootAction(who, 11, 0, 0, 0, 0, dir, 1, 10, 50, 0, 0, false, "elec", "\u91CD\u578B\u67AA\u68B05");
}
function doing_attack54(who, dir) {
if (main._xmouse > who._x) {
var _local1 = (dir - 180) * 0.01745;
} else {
var _local1 = (-dir) * 0.01745;
}
shootAction(who, 12, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 21 * Math.cos(_local1), 21 * Math.sin(_local1), dir, 15 + random(5), 8, 16, 0, 0, true, "blow", "\u5BFC\u5F39\u7206\u70B8");
shootAction(who, 12, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 7 * Math.cos(_local1), 7 * Math.sin(_local1), dir, 15 + random(5), 8, 16, 0, 0, true, "blow", "\u5BFC\u5F39\u7206\u70B8");
shootAction(who, 12, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", -7 * Math.cos(_local1), -7 * Math.sin(_local1), dir, 15 + random(5), 8, 16, 0, 0, true, "blow", "\u5BFC\u5F39\u7206\u70B8");
shootAction(who, 12, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", -21 * Math.cos(_local1), -21 * Math.sin(_local1), dir, 15 + random(5), 8, 16, 0, 0, true, "blow", "\u5BFC\u5F39\u7206\u70B8");
}
function doing_attack58(who, dir) {
shootAction(who, 13, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", 0, 0, dir, 30, 100, 200, 0.05, 0.15, true, "blow", "\u5927\u7206\u70B8").piercing = true;
shake_screen();
}
function doing_attack59(which) {
attackAction(which, 5, 50);
}
function doing_attack60(who, dir) {
if (main._xmouse > who._x) {
var _local2 = (dir - 180) * 0.01745;
} else {
var _local2 = (-dir) * 0.01745;
}
shootAction(who, 1, 4, 0, 3 * Math.cos(_local2), 3 * Math.sin(_local2), dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 35)), 35, 2, 2, 0, 0, true, "shoot", "\u4E2D\u5F391");
shootAction(who, 1, 4, 0, 9 * Math.cos(_local2), 9 * Math.sin(_local2), dir * (1 + ((((random(2) * 2) - 1) * Math.random()) / 35)), 35, 2, 2, 0, 0, true, "shoot", "\u4E2D\u5F391");
if (who.doing_attack60_count == undefined) {
who.doing_attack60_count = 0;
} else if (who.doing_attack60_count < 4) {
who.doing_attack60_count++;
} else {
delete who.doing_attack60_count;
play_soundAction("\u91CD\u578B\u67AA\u68B02", false);
shootAction(who, 8, 0, "\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", -6 * Math.cos(_local2), -6 * Math.sin(_local2), dir, 30, 15, 30, 0.05, 0, true, "blow", "\u5BFC\u5F39\u7206\u70B8").piercing = true;
}
}
function gotoFrame(who, part, where) {
if (who[part].frame != where) {
who[part].frame = where;
who[part].gotoAndStop(where);
}
}
function key_W_Action(who) {
if (who.states != "jump") {
if (!who.stand_hit_head) {
who.states = "jump";
gotoFrame(who, "down", "jump");
}
}
}
function key_S_Action(who) {
if (who.states == "stand") {
who.states = "crouch";
gotoFrame(who, "down", "crouch");
}
}
function key_AD_Action(who, dir) {
if (who.in_water) {
var _local4 = 0.5;
} else if (this.game_intro == undefined) {
var _local4 = 1;
} else {
var _local4 = 0;
}
if (who.states == "stand") {
who.down._xscale = dir;
gotoFrame(who, "down", who.states + "_run");
who.xspeed = ((_local4 * who.speed) * dir) / 100;
} else if (who.states == "crouch") {
who.down._xscale = dir;
gotoFrame(who, "down", who.states + "_run");
who.xspeed = (((_local4 * 0.25) * who.speed) * dir) / 100;
} else if (who.states == "jump") {
who.down._xscale = dir;
who.xspeed = ((_local4 * who.speed) * dir) / 100;
}
}
function normalAction_S(who) {
if (who.states == "crouch") {
if (!who.stand_hit_head) {
who.states = "stand";
gotoFrame(who, "down", "stand");
}
}
}
function normalAction_AD(who) {
if (who.states == "stand") {
gotoFrame(who, "down", "stand");
who.xspeed = 0;
} else if (who.states == "crouch") {
gotoFrame(who, "down", "crouch");
who.xspeed = 0;
} else if (who.states == "jump") {
who.xspeed = Math.round(who.xspeed * 95) / 100;
}
}
function check_enemy_parts(enemy, which, px, py) {
var _local3 = [];
if (which != undefined) {
if (!enemy.enemy_parts) {
if (enemy.g.hitTest(which)) {
_local3.push(enemy);
}
} else {
var _local2 = 1;
while (_local2 <= enemy.enemy_parts) {
if (enemy["g" + _local2].hitTest(which)) {
_local3.push(enemy["g" + _local2]);
}
_local2++;
}
}
} else if (!enemy.enemy_parts) {
if (enemy.g.hitTest(px, py, true)) {
_local3.push(enemy);
}
} else {
var _local2 = 1;
while (_local2 <= enemy.enemy_parts) {
if (enemy["g" + _local2].hitTest(px, py, true)) {
_local3.push(enemy["g" + _local2]);
}
_local2++;
}
}
return(_local3);
}
function attackAction(which, single_power, total_power) {
for (var _local11 in main.enemies) {
if (!main.enemies[_local11].no_damage) {
var _local3 = false;
var _local1 = check_enemy_parts(main.enemies[_local11], which, undefined, undefined);
for (var _local7 in _local1) {
_local1[_local7].to_die("kill", single_power);
_local3 = true;
adjust_score(!main.enemies[_local11].no_score, game_UI, 500);
total_power = total_power - single_power;
}
if (_local3) {
if (main.enemies[_local11].enemy_type == 1) {
var _local4 = main.getNextHighestDepth();
var _local8 = main.attachMovie("\u5C0F\u5200\u780D\u4EBA_\u6548\u679C", "attack_effect" + _local4, _local4, {_x:get_shoot_point(which)[0], _y:get_shoot_point(which)[1]});
play_soundAction("\u5C0F\u52000" + (random(2) + 1), false);
} else if (main.enemies[_local11].enemy_type == 2) {
var _local4 = main.getNextHighestDepth();
var _local8 = main.attachMovie("\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C", "attack_effect" + _local4, _local4, {_x:get_shoot_point(which)[0], _y:get_shoot_point(which)[1]});
play_soundAction("\u5C0F\u52000" + (random(2) + 3), false);
}
}
if (total_power <= 0) {
break;
}
}
}
}
function shootAction(who, arm_type, frame, effect, sx, sy, dir, speed, single_power, total_power, speed_up, gravity, hit_ground, how_to_die, hit_sound) {
if (game_powerup) {
single_power = single_power * 5;
total_power = total_power * 5;
}
var _local11 = main.getNextHighestDepth();
var _local10 = main.attachMovie("\u4E3B\u89D2_\u5B50\u5F39" + arm_type, "shoot" + _local11, _local11);
_local10.frame = frame;
_local10._x = (who.xspeed + get_shoot_point(who.up.r_arm.mc)[0]) + sx;
_local10._y = (who.yspeed + get_shoot_point(who.up.r_arm.mc)[1]) + sy;
if (main._xmouse > who._x) {
_local10._rotation = dir - 90;
} else {
_local10._rotation = -(dir + 90);
}
if (main._xmouse < who._x) {
_local10._yscale = _local10._yscale * -1;
}
_local10.speed = speed;
_local10.single_power = single_power;
_local10.total_power = total_power;
_local10.speed_up = speed_up;
_local10.gravity = gravity;
_local10.hit_ground = hit_ground;
_local10.how_to_die = how_to_die;
_local10.hit_sound = hit_sound;
if (effect != 0) {
_local11 = main.getNextHighestDepth();
var _local15 = main.attachMovie(effect, effect + _local11, _local11, {_x:_local10._x, _y:_local10._y});
_local15._rotation = _local10._rotation;
if (main._xmouse < who._x) {
_local15._yscale = _local15._yscale * -1;
}
_local15.onEnterFrame = function () {
var _local3 = Math.abs(_root[(("stg_direct_" + stages) + "_") + stages_section]);
if (_local3 == 1) {
this._x = this._x + active_object_speed;
} else if (_local3 == 2) {
this._y = this._y + active_object_speed;
}
};
}
if (who.in_water) {
always_shine(_local10, "blue");
always_shine(_local15, "blue");
}
_local10.exploding = function () {
this._yscale = Math.abs(this._yscale);
this._rotation = 0;
var _local5 = event_delay(this, 5, 10);
_local5.delay_Event1 = function () {
player_shooting = true;
};
_local5.delay_Event2 = function () {
player_shooting = false;
};
for (var _local4 in main.enemies) {
if (!main.enemies[_local4].no_damage) {
var _local2 = check_enemy_parts(main.enemies[_local4], this, undefined, undefined);
for (var _local3 in _local2) {
_local2[_local3].to_die("blow", this.single_power);
adjust_score(!main.enemies[_local4].no_score, game_UI, 50);
this.total_power = this.total_power - this.single_power;
}
if (this.total_power <= 0) {
break;
}
}
}
};
_local10.onEnterFrame = function () {
var _local16 = get_map_point(this);
if ((Math.abs(_local16[0] - 295) < 295) and (Math.abs(_local16[1] - 175) < 275)) {
if (this.bullet_walk) {
bullet_walk_action(this);
} else {
this.xspeed = this.speed * Math.cos(this._rotation * 0.01745);
this.yspeed = this.speed * Math.sin(this._rotation * 0.01745);
this.speed = this.speed + this.speed_up;
this.yspeed = this.yspeed + this.gravity;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
var _local15 = Math.abs(_root[(("stg_direct_" + stages) + "_") + stages_section]);
if (_local15 == 1) {
this._x = this._x + active_object_speed;
} else if (_local15 == 2) {
this._y = this._y + active_object_speed;
}
this._rotation = Math.atan2(this.yspeed, this.xspeed) / 0.01745;
}
} else {
this.removeMovieClip();
return(undefined);
}
var _local11 = false;
if (this.hit_ground) {
for (var _local14 in main.bg) {
var _local9 = get_ground_hit(main.bg[_local14].g, this._x + main._x, this._y + main._y);
if (_local9 < 0) {
if (_local9 == -1) {
if (main["water_flower" + this._name] == undefined) {
var _local10 = main.getNextHighestDepth();
main.attachMovie("\u843D\u6C34\u6548\u679C", "water_flower" + this._name, _local10, {_x:this._x, _y:this._y});
if (this.yspeed > 0) {
always_shine(this, "blue");
} else {
always_shine(this, "normal");
}
}
} else if (_local9 == -2) {
this._rotation = 0;
this._yscale = 100;
adjustBullet(this, main.bg[_local14].g);
this.gotoAndStop("h2so4");
h2so4_move_things(this, 3);
_local11 = true;
}
play_soundAction("\u843D\u6C34", false);
break;
}
if (_local9 == 1) {
if (!this.bullet_walk) {
adjustBullet(this, main.bg[_local14].g);
this.gotoAndStop("fired");
_local11 = true;
break;
}
}
}
}
var _local6 = false;
if (!_local11) {
for (var _local13 in main.enemies) {
if (this.how_to_die == "fly") {
if (!main.enemies[_local13].no_damage) {
var _local7 = check_enemy_parts(main.enemies[_local13], this.g, undefined, undefined);
for (var _local12 in _local7) {
_local7[_local12].to_die(this.how_to_die, this.single_power);
_local6 = true;
adjust_score(!main.enemies[_local13].no_score, game_UI, 50);
this.total_power = this.total_power - this.single_power;
}
if (this.total_power <= 0) {
break;
}
}
} else if (this.how_to_die == "elec") {
if (!main.enemies[_local13].no_damage) {
var _local3 = 0;
while (_local3 <= 23) {
var _local5 = (this._x + main._x) + ((Math.cos(this._rotation * 0.01745) * 30) * _local3);
var _local4 = (this._y + main._y) + ((Math.sin(this._rotation * 0.01745) * 30) * _local3);
if (((_local5 > 0) and (_local5 < 590)) and ((_local4 > 0) and (_local4 < 400))) {
var _local7 = check_enemy_parts(main.enemies[_local13], undefined, _local5, _local4);
for (var _local12 in _local7) {
_local7[_local12].to_die(this.how_to_die, this.single_power);
_local6 = true;
adjust_score(!main.enemies[_local13].no_score, game_UI, 50);
this.total_power = this.total_power - this.single_power;
}
if (_local6) {
break;
}
} else {
this.total_power = 0;
break;
}
_local3++;
}
if (this.total_power <= 0) {
break;
}
}
} else if (!main.enemies[_local13].no_absorb) {
var _local7 = check_enemy_parts(main.enemies[_local13], undefined, this._x + main._x, this._y + main._y);
var _local8 = false;
for (var _local12 in _local7) {
if ((random(8) and this.piercing) and (main.enemies[_local13].blood < this.single_power)) {
play_soundAction("\u6253\u51FB\u58F0\u97F3", false);
_local7[_local12].to_die("fly", this.single_power);
adjust_score(!main.enemies[_local13].no_score, game_UI, 100);
_local8 = true;
break;
}
_local7[_local12].to_die(this.how_to_die, this.single_power);
_local6 = true;
this.gotoAndStop("hit");
adjust_score(!main.enemies[_local13].no_score, game_UI, 100);
_local8 = true;
break;
}
if (_local8) {
break;
}
}
}
}
if (_local6 or _local11) {
play_soundAction(hit_sound, false);
delete this.onEnterFrame;
}
};
return(_local10);
}
function throwAction(who, which, dir, speed, bounce, single_power, total_power) {
var _local6 = main.getNextHighestDepth();
var _local9 = main.attachMovie("\u4E3B\u89D2_\u624B\u96F7" + which, "bomb" + _local6, _local6);
if (main._xmouse > who._x) {
var _local16 = (dir - 90) * 0.01745;
} else {
var _local16 = (-(dir + 90)) * 0.01745;
}
_local9._x = who.xspeed + get_shoot_point(who.up.r_arm.mc)[0];
_local9._y = who.yspeed + get_shoot_point(who.up.r_arm.mc)[1];
_local9.bounce = bounce;
_local9.single_power = single_power;
_local9.total_power = total_power;
_local9.xspeed = speed * Math.cos(_local16);
_local9.yspeed = speed * Math.sin(_local16);
if (who.in_water) {
always_shine(_local9, "blue");
}
_local9.exploding = function () {
this._rotation = 0;
var _local5 = event_delay(this, 5, 10);
_local5.delay_Event1 = function () {
player_shooting = true;
};
_local5.delay_Event2 = function () {
player_shooting = false;
};
for (var _local4 in main.enemies) {
if (!main.enemies[_local4].no_damage) {
var _local2 = check_enemy_parts(main.enemies[_local4], this, undefined, undefined);
for (var _local3 in _local2) {
_local2[_local3].to_die("blow", this.single_power);
adjust_score(!main.enemies[_local4].no_score, game_UI, 100);
this.total_power = this.total_power - this.single_power;
}
if (this.total_power <= 0) {
break;
}
}
}
};
_local9.onEnterFrame = function () {
var _local12 = get_map_point(this);
if ((Math.abs(_local12[0] - 295) < 295) and (Math.abs(_local12[1] - 175) < 275)) {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this._rotation = this._rotation + 15;
this.yspeed = this.yspeed + 0.85;
var _local11 = Math.abs(_root[(("stg_direct_" + stages) + "_") + stages_section]);
if (_local11 == 1) {
this._x = this._x + active_object_speed;
} else if (_local11 == 2) {
this._y = this._y + active_object_speed;
}
} else {
this.removeMovieClip();
return(undefined);
}
var _local5 = false;
for (var _local10 in main.bg) {
var _local3 = get_ground_hit(main.bg[_local10].g, this._x + main._x, this._y + main._y);
if (_local3 < 0) {
if (_local3 == -1) {
if (main["water_flower" + this._name] == undefined) {
var _local6 = main.getNextHighestDepth();
main.attachMovie("\u843D\u6C34\u6548\u679C", "water_flower" + this._name, _local6, {_x:this._x, _y:this._y});
if (this.yspeed > 0) {
always_shine(this, "blue");
} else {
always_shine(this, "normal");
}
}
} else if (_local3 == -2) {
this.gotoAndStop("h2so4");
_local5 = true;
}
play_soundAction("\u843D\u6C34", false);
break;
}
if (_local3 == 1) {
if (!get_ground_hit(main.bg[_local10].g, this._x + main._x, (this._y + main._y) - 45)) {
if (this.bounce >= 2) {
this.gotoAndStop("explode");
_local5 = true;
break;
}
this.bounce++;
this.xspeed = this.xspeed * 0.6;
this.yspeed = this.yspeed * -0.35;
break;
}
this.gotoAndStop("explode");
_local5 = true;
break;
}
}
var _local7 = false;
if (!_local5) {
if (this.bounce < 2) {
for (var _local9 in main.enemies) {
if (!main.enemies[_local9].no_absorb) {
var _local4 = check_enemy_parts(main.enemies[_local9], undefined, this._x + main._x, this._y + main._y);
for (var _local8 in _local4) {
this.gotoAndStop("explode");
_local7 = true;
break;
}
}
}
}
}
if (_local7 or _local5) {
this._rotation = 0;
play_soundAction("\u624B\u96F7\u7206\u70B8", false);
delete this.onEnterFrame;
}
};
}
function tracerAction(who, which, effect, sx, sy, dir, speed, single_power, total_power, how_to_die, hit_sound) {
if (game_powerup) {
single_power = single_power * 10;
total_power = total_power * 10;
}
var _local10 = main.getNextHighestDepth();
var _local9 = main.attachMovie(which, "shoot" + _local10, _local10);
if (main._xmouse < who._x) {
_local9._yscale = _local9._yscale * -1;
}
_local9._x = (who.xspeed + get_shoot_point(who.up.r_arm.mc)[0]) + sx;
_local9._y = (who.yspeed + get_shoot_point(who.up.r_arm.mc)[1]) + sy;
if (main._xmouse > who._x) {
_local9._rotation = dir - 90;
} else {
_local9._rotation = -(dir + 90);
}
_local9.speed = speed;
_local9.single_power = single_power;
_local9.total_power = total_power;
_local9.how_to_die = how_to_die;
_local9.hit_sound = hit_sound;
_local9.targeter = undefined;
_local9.trace_time = 100;
if (who.in_water) {
always_shine(_local9, "blue");
}
if (effect != 0) {
_local10 = main.getNextHighestDepth();
var _local17 = main.attachMovie(effect, effect + _local10, _local10, {_x:_local9._x, _y:_local9._y});
_local17._rotation = _local9._rotation;
if (main._xmouse < who._x) {
_local17._yscale = _local17._yscale * -1;
}
_local17.onEnterFrame = function () {
var _local3 = Math.abs(_root[(("stg_direct_" + stages) + "_") + stages_section]);
if (_local3 == 1) {
this._x = this._x + active_object_speed;
} else if (_local3 == 2) {
this._y = this._y + active_object_speed;
}
};
}
_local9.exploding = function () {
this._yscale = Math.abs(this._yscale);
this._rotation = 0;
var _local5 = event_delay(this, 5, 10);
_local5.delay_Event1 = function () {
player_shooting = true;
};
_local5.delay_Event1 = function () {
player_shooting = false;
};
for (var _local4 in main.enemies) {
if (!main.enemies[_local4].no_damage) {
var _local2 = check_enemy_parts(main.enemies[_local4], this, undefined, undefined);
for (var _local3 in _local2) {
_local2[_local3].to_die("blow", this.single_power);
adjust_score(!main.enemies[_local4].no_score, game_UI, 100);
this.total_power = this.total_power - this.single_power;
}
if (this.total_power <= 0) {
break;
}
}
}
};
_local9.onEnterFrame = function () {
if (!this.targeter.live) {
for (var _local12 in main.enemies) {
var _local17 = get_map_point(main.enemies[_local12]);
if ((Math.abs(_local17[0] - 295) < 295) and (Math.abs(_local17[1] - 200) < 200)) {
if ((!main.enemies[_local12].no_absorb) and main.enemies[_local12].live) {
if ((!main.enemies[_local12].definite) and main.enemies[_local12]._visible) {
var _local5 = check_enemy_parts(main.enemies[_local12], main.enemies[_local12], undefined, undefined);
do {
if ((in _local5) == null) {
break;
}
var _local11 = in _local5;
this.targeter = _local5[_local11];
} while (!random(2));
if (random(2)) {
break;
}
}
}
}
}
} else if ((--this.trace_time) > 0) {
var _local18 = get_map_point(this.targeter);
var _local15 = get_map_point(this);
var _local14 = Math.atan2((_local18[1] - 35) - _local15[1], _local18[0] - _local15[0]) / 0.01745;
if (_local14 > 0) {
var _local7 = _local14;
} else {
var _local7 = _local14 + 360;
}
if (this._rotation > 0) {
var _local6 = this._rotation;
} else {
var _local6 = this._rotation + 360;
}
var _local3 = 15;
while (_local3 >= 0) {
if (Math.abs(_local7 - _local6) > _local3) {
if (_local7 > _local6) {
if ((_local7 - _local6) < 180) {
this._rotation = this._rotation + _local3;
} else {
this._rotation = this._rotation - _local3;
}
} else if (_local7 < _local6) {
if ((_local6 - _local7) < 180) {
this._rotation = this._rotation - _local3;
} else {
this._rotation = this._rotation + _local3;
}
}
break;
}
_local3--;
}
}
var _local17 = get_map_point(this);
if ((Math.abs(_local17[0] - 295) < 295) and (Math.abs(_local17[1] - 200) < 200)) {
this.xspeed = this.speed * Math.cos(this._rotation * 0.01745);
this.yspeed = this.speed * Math.sin(this._rotation * 0.01745);
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
var _local16 = Math.abs(_root[(("stg_direct_" + stages) + "_") + stages_section]);
if (_local16 == 1) {
this._x = this._x + active_object_speed;
} else if (_local16 == 2) {
this._y = this._y + active_object_speed;
}
} else {
this.removeMovieClip();
return(undefined);
}
var _local10 = false;
for (var _local13 in main.bg) {
var _local4 = get_ground_hit(main.bg[_local13].g, this._x + main._x, this._y + main._y);
if (_local4 < 0) {
if (_local4 == -1) {
if (main["water_flower" + this._name] == undefined) {
var _local9 = main.getNextHighestDepth();
main.attachMovie("\u843D\u6C34\u6548\u679C", "water_flower" + this._name, _local9, {_x:this._x, _y:this._y});
if (this.yspeed > 0) {
always_shine(this, "blue");
} else {
always_shine(this, "normal");
}
}
} else if (_local4 == -2) {
this._rotation = 0;
this._yscale = 100;
adjustBullet(this, main.bg[_local13].g);
this.gotoAndStop("h2so4");
h2so4_move_things(this, 3);
_local10 = true;
}
play_soundAction("\u843D\u6C34", false);
break;
}
if (_local4 == 1) {
adjustBullet(this, main.bg[_local13].g);
this.gotoAndStop("fired");
_local10 = true;
break;
}
}
var _local8 = false;
if (!_local10) {
for (var _local12 in main.enemies) {
if (!main.enemies[_local12].no_absorb) {
var _local5 = check_enemy_parts(main.enemies[_local12], undefined, this._x + main._x, this._y + main._y);
for (var _local11 in _local5) {
_local5[_local11].to_die(this.how_to_die, this.single_power);
_local8 = true;
this.gotoAndStop("hit");
adjust_score(!main.enemies[_local12].no_score, game_UI, 10);
break;
}
if (_local8) {
break;
}
}
}
}
if (_local8 or _local10) {
play_soundAction(hit_sound, false);
delete this.onEnterFrame;
}
};
return(_local9);
}
function bullet_walk_action(who) {
var _local6 = who._x + main._x;
var _local5 = (who._y + main._y) + 10;
if (who.org_xspeed == undefined) {
who._yscale = 100;
who.xspeed = (who.speed * Math.cos(who._rotation * 0.01745)) + 1.5E-7;
who.yspeed = (who.speed * Math.sin(who._rotation * 0.01745)) + 1.5E-7;
who.org_xspeed = Math.abs(who.xspeed) / who.xspeed;
}
who.hit_ground = false;
for (var _local7 in main.bg) {
if (main.bg[_local7].g.hitTest(_local6, _local5, true)) {
who.hit_ground = true;
adjustY(who, main.bg[_local7].g);
break;
}
}
if (!who.hit_ground) {
who._x = who._x + who.xspeed;
who._y = who._y + who.yspeed;
who.yspeed = who.yspeed + 0.85;
if (who._rotation > 30) {
who._rotation = who._rotation - 30;
} else if (who._rotation < -30) {
who._rotation = who._rotation + 30;
} else {
who._rotation = 0;
}
} else if (who.can_go) {
var _local3 = who._width / 2;
if (who.org_xspeed > 0) {
for (var _local7 in main.bg) {
if (main.bg[_local7].hitTest((who._x + main._x) + (_local3 * Math.cos(who._rotation * 0.01745)), (who._y + main._y) + (_local3 * Math.sin(who._rotation * 0.01745)), true)) {
var _local4 = 0;
do {
if (!main.bg[_local7].g.hitTest((who._x + main._x) + (_local3 * Math.cos(who._rotation * 0.01745)), ((who._y + main._y) + (_local3 * Math.sin(who._rotation * 0.01745))) - 1, true)) {
break;
}
who._rotation--;
_local4++;
} while (_local4 <= 30);
_local4 = 0;
do {
if (main.bg[_local7].g.hitTest((who._x + main._x) + (_local3 * Math.cos(who._rotation * 0.01745)), ((who._y + main._y) + (_local3 * Math.sin(who._rotation * 0.01745))) + 1, true)) {
break;
}
who._rotation++;
_local4++;
} while (_local4 <= 30);
break;
}
}
who.xspeed = who.speed * Math.cos(who._rotation * 0.01745);
who.yspeed = who.speed * Math.sin(who._rotation * 0.01745);
} else {
for (var _local7 in main.bg) {
if (main.bg[_local7].hitTest((who._x + main._x) + (_local3 * Math.cos((who._rotation + 180) * 0.01745)), ((who._y + main._y) + (_local3 * Math.sin((who._rotation + 180) * 0.01745))) - 1, true)) {
var _local4 = 0;
do {
if (!main.bg[_local7].g.hitTest((who._x + main._x) + (_local3 * Math.cos((who._rotation + 180) * 0.01745)), ((who._y + main._y) + (_local3 * Math.sin((who._rotation + 180) * 0.01745))) - 1, true)) {
break;
}
who._rotation++;
_local4++;
} while (_local4 <= 30);
_local4 = 0;
do {
if (main.bg[_local7].g.hitTest((who._x + main._x) + (_local3 * Math.cos((who._rotation + 180) * 0.01745)), ((who._y + main._y) + (_local3 * Math.sin((who._rotation + 180) * 0.01745))) + 1, true)) {
break;
}
who._rotation--;
_local4++;
} while (_local4 <= 30);
break;
}
}
who.xspeed = who.speed * Math.cos((who._rotation + 180) * 0.01745);
who.yspeed = who.speed * Math.sin((who._rotation + 180) * 0.01745);
}
who._x = who._x + who.xspeed;
who._y = who._y + who.yspeed;
var _local8 = Math.abs(_root[(("stg_direct_" + stages) + "_") + stages_section]);
if (_local8 == 1) {
who._x = who._x + active_object_speed;
} else if (_local8 == 2) {
who._y = who._y + active_object_speed;
}
who.speed = who.speed + who.speed_up;
}
}
function enemysAction01(who, x, y, attacks, typ, moves, states, xscale) {
var _local2 = add_enemyAction(who, x, y, 3, xscale);
_local2.speed = -6;
_local2.attacks = attacks;
_local2.typ = typ;
if (moves == -3) {
_local2.fly = true;
_local2.ballute = true;
}
_local2.moves = moves;
_local2.states = states;
_local2.enemy_type = 1;
_local2.can_jump = true;
_local2.blowup_next = 3;
_local2.get_ballute = function () {
if (this.ballute) {
this.ballute = false;
var _local2 = main.getNextHighestDepth();
var _local3 = main.attachMovie("\u654C\u4EBA_\u666E\u901A\u58EB\u5175_\u4F1E", "\u654C\u4EBA_\u666E\u901A\u58EB\u5175_\u4F1E" + _local2, _local2, {_x:this._x, _y:this._y - 50});
_local3._xscale = this._xscale;
_local3.can_go = true;
}
};
_local2.drop_weapon = function () {
if (this.typ > 1) {
var _local3 = main.getNextHighestDepth();
var _local2 = main.attachMovie("\u654C\u4EBA_\u58EB\u5175_\u6B66\u5668\u7FA4", "\u654C\u4EBA_\u58EB\u5175_\u6B66\u5668\u7FA4" + _local3, _local3, {_x:this._x, _y:this._y - 40});
_local2._xscale = this._xscale;
_local2.gotoAndStop(4 - this.typ);
_local2.count = 15;
_local2.onEnterFrame = function () {
if ((--this.count) > 0) {
this._rotation = this._rotation + 20;
this._y++;
} else {
this.removeMovieClip();
}
if ((this.count % 9) == 0) {
this._alpha = 20;
} else if ((this.count % 5) == 0) {
this._alpha = 100;
}
};
}
};
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.stand = function () {
if (this.moves < 50) {
if (this.moves >= 0) {
if (this.typ == 1) {
this.gotoAndStop("stand" + this.typ);
} else {
this.gotoAndStop((("stand" + this.typ) + "_") + this.states);
}
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.targeter.live) {
var _local2 = get_distance(this, this.targeter);
this.turn();
if (_local2 >= 590) {
this.move_me();
} else if ((_local2 > 40) and (_local2 < 590)) {
if (!random(30 - (game_diff_level * 10))) {
this.shoot();
} else if (!random(30)) {
this.move_me();
}
} else if (_local2 <= 40) {
if (random(2) and (!this.cant_change_states)) {
this.attack();
} else if (random(2)) {
this.move_me();
} else if (this.moves != 0) {
this.fear();
}
}
}
};
} else {
this.move_me();
}
} else if (this.moves >= 50) {
if (this.moves == 50) {
this.gotoAndStop("idle1");
} else if (this.moves == 51) {
this.gotoAndStop("idle2");
}
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.targeter.live) {
if (get_distance(this, this.targeter) < 200) {
if (((this._x - this.targeter._x) * this._xscale) >= 0) {
if (Math.abs(this.targeter._y - this._y) < 100) {
this.get_shocked();
}
}
}
if (player_shooting) {
if (get_map_point(this)[0] < 590) {
this.get_shocked();
}
}
}
};
}
};
_local2.get_shocked = function () {
play_soundAction("\u58EB\u5175\u53D7\u60CA", false);
this.gotoAndStop("shocked");
this.states = random(2) + 1;
this.moves = random(2) + 1;
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.move_me();
}
};
};
_local2.get_blocked = function () {
if (this.hit_ground) {
this.gotoAndStop("blocked");
this.onEnterFrame = function () {
if (!random(50)) {
this.stand();
}
};
} else {
this.stand();
}
};
_local2.attack = function () {
if (this.attacks > 0) {
if (this.attacks < 99) {
this.attacks--;
}
this.gotoAndStop("s_kill");
this.states = random(2) + 1;
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
} else {
this.run_away();
}
};
_local2.move_me = function () {
if (!this.hit_area) {
if (this.moves > 0) {
if (this.moves == 2) {
this.gotoAndStop("s_creep1");
this.move_speed = this.speed / 2;
} else {
this.gotoAndStop("run" + this.typ);
this.move_speed = this.speed;
}
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if ((!random(40)) or this.hit_area) {
this.stand();
} else {
var _local2 = get_map_point(this)[0];
if (((this._xscale < 0) and (_local2 > 570)) or ((this._xscale > 0) and (_local2 < 20))) {
this.stand();
} else if (Math.abs(this._x - this.targeter._x) < 40) {
this.stand();
}
}
}
};
} else if (this.moves < 0) {
if (this.moves == -3) {
this.gotoAndStop("fall");
this.move_speed = 0;
} else if (this.moves == -2) {
this.gotoAndStop("s_creep1");
this.move_speed = this.speed / 2;
} else {
this.gotoAndStop("run" + this.typ);
this.move_speed = this.speed;
}
this.onEnterFrame = function () {
var _local2 = enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0);
if (_local2) {
if (this.hit_area) {
this.moves = Math.abs(this.moves);
this.stand();
} else if (Math.abs(get_map_point(this)[0] - 295) < 265) {
if (!this.drop) {
var _local4 = Math.abs(this._x - this.targeter._x);
if ((!random(15)) or (_local4 < 40)) {
this.moves = Math.abs(this.moves);
this.stand();
}
}
this.turn();
}
}
if (this.moves == -3) {
if (_local2) {
this.get_ballute();
this.moves = Math.abs(this.moves);
this.stand();
} else {
this.turn();
var _local3 = Math.atan2(this.targeter._y - (this._y - 30), this.targeter._x - this._x) / 0.01745;
if (_local3 >= 0) {
if (_local3 > 90) {
_local3 = 180 - _local3;
}
if (_local3 < 11) {
_local3 = 0;
this.mc.gotoAndStop("dir_0");
} else if ((_local3 >= 11) and (_local3 < 33)) {
_local3 = 22;
this.mc.gotoAndStop("dir_1");
} else if ((_local3 >= 33) and (_local3 < 55)) {
_local3 = 44;
this.mc.gotoAndStop("dir_2");
} else if ((_local3 >= 55) and (_local3 < 77)) {
_local3 = 66;
this.mc.gotoAndStop("dir_3");
} else if (_local3 >= 77) {
_local3 = 90;
this.mc.gotoAndStop("dir_4");
}
} else {
_local3 = 0;
this.mc.gotoAndStop("dir_0");
}
if (!random(200 - (game_diff_level * 50))) {
this.tracerAction(_local3);
}
}
}
};
}
}
};
_local2.fear = function () {
this.gotoAndStop("s_creep2");
this.onEnterFrame = function () {
if (!this.hit_area) {
if (enemy_move(this, (((-this.speed) / 2) * Math.abs(this._xscale)) / this._xscale, 0)) {
var _local2 = get_map_point(this)[0];
if ((_local2 > 570) or (_local2 < 20)) {
this.stand();
} else if (!random(25)) {
this.stand();
}
}
} else {
this.stand();
}
};
};
_local2.shoot = function () {
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 295) < 295) and (Math.abs(_local2[1] - 200) < 200)) {
if (this.attacks > 0) {
if (this.attacks < 99) {
this.attacks--;
}
if (this.typ == 1) {
if (random(2)) {
this.gotoAndStop(("shoot" + this.typ) + "_1");
} else {
this.gotoAndStop(("shoot" + this.typ) + "_2");
}
} else if (random(4)) {
this.gotoAndStop((("shoot" + this.typ) + "_") + this.states);
} else {
this.gotoAndStop("shoot1_1");
}
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
} else {
this.run_away();
}
}
};
_local2.to_die = function (how, much) {
enemy_mankind_die(this, how, much, "blast", "blast", "die" + (random(3) + 1), "die" + (random(3) + 1), "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA102", "\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1));
};
_local2.run_away = function () {
if (this.moves != 0) {
if (this._x < this.targeter._x) {
this._xscale = 100;
} else {
this._xscale = -100;
}
this.gotoAndStop("run" + this.typ);
this.flee = true;
this.onEnterFrame = function () {
enemy_move(this, (this.speed * Math.abs(this._xscale)) / this._xscale, 0);
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 295) > 295) or (Math.abs(_local2[1] - 200) > 200)) {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
};
}
};
_local2.shootAction = function () {
if (this._xscale == 100) {
var _local2 = 180;
} else if (this._xscale == -100) {
var _local2 = 0;
}
if (this.typ == 1) {
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 5, 0, 0, _local2, 5);
} else if (this.typ == 2) {
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 5, 0, 0, _local2, 5);
} else if (this.typ == 3) {
enemy_shootAction(this, "\u654C\u4EBA_\u706B\u7BAD\u70AE", "\u5766\u514B\u5C04\u51FB", "\u624B\u96F7\u7206\u70B8", 3, 0, (-5 * this._xscale) / 100, 0, _local2, 5).tracer = true;
}
};
_local2.tracerAction = function (dir) {
if (this._xscale == 100) {
var _local3 = 180 - dir;
} else if (this._xscale == -100) {
var _local3 = dir;
}
var _local4 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie("\u654C\u4EBA_\u706B\u7BAD\u70AE", "boss_shoot" + _local4, _local4, {_x:get_shoot_point(this.mc.point)[0], _y:get_shoot_point(this.mc.point)[1]});
_local2._rotation = _local3;
var _local5 = main.getNextHighestDepth();
var _local6 = main.attachMovie("\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", "BOSS_\u5BFC\u5F39\u70DF\u96FE" + _local5, _local5, {_x:_local2._x, _y:_local2._y});
_local6._rotation = _local3;
enemy_tracerAction(this, _local2, this.targeter, 5, 3, 5);
};
_local2.throwAction = function () {
var _local2 = (this.targeter._x - this._x) / 45;
_local2 = _local2 * (0.9 + (Math.random() / 10));
if (Math.abs(_local2) > (8 + (game_diff_level * 2))) {
_local2 = ((8 + (game_diff_level * 2)) * Math.abs(_local2)) / _local2;
}
enemy_shootAction(this, "\u654C\u4EBA_\u624B\u96F7", undefined, "\u624B\u96F7\u7206\u70B8", false, 0, _local2, -7, 0, 5).rotate_me = 15;
};
_local2.attackAction = function () {
enemy_killAction(this.mc.killer, this.targeter, "kill", 5, "\u5C0F\u52000" + (random(2) + 1), "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C");
};
_local2.stand();
return(_local2);
}
function enemysAction02(who, x, y, posy) {
var _local2 = add_enemyAction(who, x, y, 500, 100);
_local2.enemy_type = 2;
_local2.have_droped = 0;
_local2.child_number = 50;
_local2.yspeed = 3;
_local2.stand = function () {
this.gotoAndStop("move");
enemy_shake(this, 0.5, 1, false);
this.onEnterFrame = function () {
var _local2 = get_map_point(this);
if (_local2[0] < 590) {
this._y = this._y + this.yspeed;
if (_local2[1] > posy) {
this.yspeed = this.yspeed - 0.5;
if (this.yspeed < 0) {
this.yspeed = 0;
delete this.onEnterFrame;
}
}
}
};
};
_local2.leave = function () {
this.onEnterFrame = function () {
this.yspeed = this.yspeed - 0.5;
this._y = this._y + this.yspeed;
if (get_map_point(this)[1] < -50) {
this.removeMovieClip();
}
};
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.gotoAndPlay("explode1");
this.move_speed = (-this._xscale) / 50;
this.onEnterFrame = function () {
this._rotation = this._rotation + (this._xscale / 50);
if (enemy_move(this, this.move_speed, 0)) {
this.deadAction();
}
};
} else {
shot_shine(this, "white", 1);
if (this.blood < 300) {
this.leave();
}
}
};
_local2.deadAction = function () {
this.live = false;
this._rotation = 0;
delete this.onEnterFrame;
this.gotoAndPlay("explode2");
shake_screen();
play_soundAction("\u5927\u7206\u70B8", false);
enemy_explode(this, 5, 10);
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
};
_local2.stand();
return(_local2);
}
function enemysAction03(who, x, y, moves, attack_type, posx, child, xscale) {
var _local2 = add_enemyAction(who, x, y, 75, xscale);
_local2.moves = moves;
_local2.attack_type = attack_type;
_local2.child = child;
_local2.have_droped = 0;
_local2.child_number = 10;
_local2.enemy_type = 2;
_local2.can_jump = true;
_local2.can_move_targeter = 1;
_local2.fall = function () {
this.fly = true;
this.gotoAndStop("fall");
this.onEnterFrame = function () {
if (enemy_move(this, 0, 0)) {
this.fly = false;
delete this.onEnterFrame;
this.gotoAndPlay("land");
}
};
};
_local2.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
if (this.moves) {
this.move_me();
} else if ((this._xscale == 100) and (get_map_point(this)[0] < 670)) {
this.shoot();
} else if ((this._xscale == -100) and (get_map_point(this)[0] > -80)) {
this.shoot();
}
};
};
_local2.move_me = function () {
this.gotoAndStop("move");
play_soundAction("\u5766\u514B\u8FD0\u884C", false);
this.onEnterFrame = function () {
enemy_move(this, (-this._xscale) / 50, 0);
if ((this._xscale == 100) and (get_map_point(this)[0] < posx)) {
this.moves = 0;
this.stand();
} else if ((this._xscale == -100) and (get_map_point(this)[0] > posx)) {
this.moves = 0;
this.stand();
}
};
};
_local2.get_blocked = function () {
this.stand();
};
_local2.shoot = function () {
if (!random(50 - (game_diff_level * 15))) {
this.gotoAndPlay("shoot" + (random(this.attack_type) + 1));
delete this.onEnterFrame;
}
if (this.child) {
if (!random(50)) {
if ((this.child_number > 0) and (this.have_droped < 3)) {
this.child_number--;
this.have_droped++;
if (this.child == 1) {
var _local2 = enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", -main._x, this._y, 5, -(random(2) + 1), "stand", -100);
} else if (this.child == 2) {
var _local2 = enemysAction01("\u5FB7\u519B_\u666E\u901A\u58EB\u5175", -main._x, this._y, 5, random(3) + 1, -(random(2) + 1), random(2) + 1, -100);
}
_local2.mother = this;
_local2.dieEvents = function () {
this.mother.have_droped--;
};
}
}
}
};
_local2.shootAction1 = function () {
if (this._xscale == 100) {
var _local2 = 180;
} else if (this._xscale == -100) {
var _local2 = 0;
}
enemy_shootAction(this, "\u5766\u514B_\u70AE\u5F39", "\u5766\u514B\u5C04\u51FB", "\u624B\u96F7\u7206\u70B8", false, 6, 0, 0, _local2, 12);
};
_local2.shootAction1_2 = function (dir) {
if (this._xscale == 100) {
var _local2 = dir;
} else if (this._xscale == -100) {
var _local2 = -(dir + 180);
}
enemy_shootAction(this, "\u5766\u514B_\u70AE\u5F39", "\u5766\u514B\u5C04\u51FB", "\u624B\u96F7\u7206\u70B8", false, 6, 0, 0, _local2, 12);
};
_local2.shootAction2 = function () {
if (this._xscale == 100) {
var _local2 = 180;
} else if (this._xscale == -100) {
var _local2 = 0;
}
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 10, 0, 0, _local2, 5);
};
_local2.shootAction3 = function () {
var _local2 = (this.targeter._x - this._x) / 45;
_local2 = _local2 * (0.9 + (Math.random() / 10));
if (Math.abs(_local2) > 6) {
_local2 = (6 * Math.abs(_local2)) / _local2;
}
enemy_shootAction(this, "\u654C\u4EBA_\u624B\u96F7", undefined, "\u624B\u96F7\u7206\u70B8", false, 0, _local2, -7, 0, 5).rotate_me = 15;
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
this.gotoAndPlay("explode");
shake_screen();
play_soundAction("\u5927\u7206\u70B8", false);
enemy_explode(this, 5, 10);
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
} else {
shot_shine(this, "white", 1);
}
};
if (moves == -1) {
_local2.fall();
} else {
_local2.stand();
}
return(_local2);
}
function enemysAction04(who, x, y, yspeed, area_x, area_y) {
var _local3 = add_enemyAction(who, x, y, 600, 100);
_local3.enemy_type = 2;
_local3.count_time = 150;
_local3.yspeed = yspeed;
_local3.area_x = area_x;
_local3.area_y = area_y;
_local3.shoot_count = 0;
_local3.shoot_all = 80 - (game_diff_level * 20);
_local3.gun1.targeter = _local3.targeter;
_local3.gun2.targeter = _local3.targeter;
_local3.canon.targeter = _local3.targeter;
_local3.checkAction = function () {
this.gotoAndStop("move");
this.onEnterFrame = function () {
if (main._x == _root[(("allow_area_array_" + stages) + "_") + stages_section]) {
this.fall();
}
};
};
_local3.fall = function () {
this.gotoAndStop("move");
this.onEnterFrame = function () {
this._y = this._y + this.yspeed;
if (this.yspeed > 0) {
if (get_map_point(this)[1] > this.area_y) {
this.yspeed = this.yspeed - 0.25;
if (this.yspeed <= 0) {
this.get_postion();
this.stand();
}
}
} else if (this.yspeed < 0) {
if (get_map_point(this)[1] < this.area_y) {
this.yspeed = this.yspeed + 0.25;
if (this.yspeed >= 0) {
this.get_postion();
this.stand();
}
}
}
};
};
_local3.stand = function () {
delete this.onEnterFrame;
enemy_shake(this, 0.5, 1, false);
this.onEnterFrame = function () {
if ((++this.shoot_count) == this.shoot_all) {
this.shoot_count = 0;
if (this.blood > get_enemy_blood(450)) {
if (random(2)) {
this.gun1.play();
} else {
this.gun2.play();
}
} else if (this.blood > get_enemy_blood(300)) {
if (random(2)) {
this.gun1.play();
this.shoot_tracer(this.point2);
} else {
this.gun2.play();
this.shoot_tracer(this.point1);
}
} else {
if (this.canon.frame == undefined) {
this.canon.play();
this.head_shoot();
}
this.gun1.play();
this.gun2.play();
}
}
};
};
_local3.machinegun = function (where, rotate) {
if (where._name == "gun1") {
var _local1 = rotate;
} else {
var _local1 = (-rotate) - 180;
}
enemy_shootAction(where, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 5, 0, 0, _local1, 5);
};
_local3.shoot_tracer = function (where) {
var _local3 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie("\u654C\u4EBA_\u706B\u7BAD\u70AE", "boss_shoot" + _local3, _local3, {_x:get_shoot_point(where)[0], _y:get_shoot_point(where)[1]});
_local2._rotation = 90;
var _local4 = main.getNextHighestDepth();
var _local5 = main.attachMovie("\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", "BOSS_\u5BFC\u5F39\u70DF\u96FE" + _local4, _local4, {_x:_local2._x, _y:_local2._y});
_local5._rotation = 90;
enemy_tracerAction(this, _local2, this.targeter, 4, 3, 12);
};
_local3.head_shoot = function () {
this.canon.shoot_count = 0;
this.canon.onEnterFrame = function () {
if (this.frame != undefined) {
var _local2 = get_map_point(this.targeter)[0];
if (_local2 < 50) {
if (this.frame != "l") {
this.gotoAndStop("l");
}
} else if ((_local2 >= 50) and (_local2 < 245)) {
if (this.frame != "dl") {
this.gotoAndStop("dl");
}
} else if ((_local2 >= 245) and (_local2 < 345)) {
if (this.frame != "d") {
this.gotoAndStop("d");
}
} else if ((_local2 >= 345) and (_local2 < 540)) {
if (this.frame != "dr") {
this.gotoAndStop("dr");
}
} else if (_local2 >= 540) {
if (this.frame != "r") {
this.gotoAndStop("r");
}
}
if ((++this.shoot_count) == 80) {
this.shoot_count = 0;
var _local3 = enemy_shootAction(this, "\u654C\u4EBA_\u5927\u70AE\u5F39", "\u624B\u96F7\u7206\u70B8", "\u5927\u7206\u70B8", 10, 15, 0, 0, this.my_rotation, 15);
var _local4 = main.getNextHighestDepth();
var _local5 = main.attachMovie("\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", "BOSS_\u5BFC\u5F39\u70DF\u96FE" + _local4, _local4, {_x:_local3._x, _y:_local3._y});
_local5._rotation = this.my_rotation;
}
}
};
};
_local3.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.live = false;
this.gotoAndPlay("explode");
shake_screen();
this.yspeed = 1;
this.onEnterFrame = function () {
this.yspeed = this.yspeed + 1;
this._y = this._y + this.yspeed;
};
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else if (!random(3)) {
shot_shine(this, "white", 1);
}
};
_local3.checkAction();
return(_local3);
}
function enemysAction05(who, x, y, attacks, moves, xscale) {
var _local2 = add_enemyAction(who, x, y, 5, xscale);
_local2.speed = -6;
_local2.attacks = attacks;
_local2.moves = moves;
_local2.states = "stand";
_local2.enemy_type = 1;
_local2.can_jump = true;
_local2.patrol_max_x = x + 80;
_local2.patrol_min_x = x - 80;
_local2.drop_weapon = function () {
if (!this.captain) {
var _local3 = main.getNextHighestDepth();
var _local2 = main.attachMovie("\u654C\u4EBA_\u58EB\u5175_\u6B66\u5668\u7FA4", "\u654C\u4EBA_\u58EB\u5175_\u6B66\u5668\u7FA4" + _local3, _local3, {_x:this._x, _y:this._y - 40});
_local2._xscale = this._xscale;
_local2.gotoAndStop(2);
_local2.count = 15;
_local2.onEnterFrame = function () {
if ((--this.count) > 0) {
this._rotation = this._rotation + 20;
this._y++;
} else {
this.removeMovieClip();
}
if ((this.count % 9) == 0) {
this._alpha = 20;
} else if ((this.count % 5) == 0) {
this._alpha = 100;
}
};
}
};
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.stand = function () {
if (this.moves >= 0) {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.targeter.live) {
var _local2 = get_distance(this, this.targeter);
this.turn();
if (_local2 >= 590) {
this.move_me();
} else if ((_local2 > 40) and (_local2 < 590)) {
if (!random(30 - (game_diff_level * 10))) {
this.shoot();
} else if (!random(30)) {
this.move_me();
}
} else if (_local2 <= 40) {
if (random(2)) {
this.attack();
} else {
this.move_me();
}
}
}
};
} else {
this.move_me();
}
};
_local2.get_shocked = function () {
this.turn();
this.moves = 1;
this.shoot();
};
_local2.get_blocked = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
if (!random(50)) {
this.stand();
}
};
};
_local2.attack = function () {
if (this.attacks > 0) {
if (this.attacks < 99) {
this.attacks--;
}
this.gotoAndStop("s_kill");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
} else {
this.run_away();
}
};
_local2.move_me = function () {
if (!this.hit_area) {
if (this.moves > 0) {
this.gotoAndStop("run");
this.move_speed = this.speed;
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if ((!random(40)) or this.hit_area) {
this.stand();
} else {
var _local2 = get_map_point(this)[0];
if (((this._xscale < 0) and (_local2 > 570)) or ((this._xscale > 0) and (_local2 < 20))) {
this.stand();
} else if (Math.abs(this._x - this.targeter._x) < 40) {
this.stand();
}
}
}
};
} else if (this.moves < 0) {
if (this.moves == -50) {
this.gotoAndStop("walk");
this.move_speed = this.speed / 3;
this.onEnterFrame = function () {
var _local2 = get_distance(this, this.targeter);
if (((this._x - this.targeter._x) * this._xscale) >= 0) {
if (_local2 < 200) {
if (Math.abs(this.targeter._y - this._y) < 100) {
var _local3 = get_map_point(this)[0];
if ((_local3 > 20) and (_local3 < 570)) {
if (this.targeter.states == "crouch") {
if (_local2 < 100) {
this.get_shocked();
}
} else {
this.get_shocked();
}
}
}
}
}
if (player_shooting) {
if (get_map_point(this)[0] < 590) {
this.get_shocked();
}
}
if ((this._x > this.patrol_max_x) and (this._xscale == -100)) {
this._xscale = this._xscale * -1;
} else if ((this._x < this.patrol_min_x) and (this._xscale == 100)) {
this._xscale = this._xscale * -1;
}
enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0);
};
} else if (this.moves == -1) {
this.gotoAndStop("run");
this.move_speed = this.speed;
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
var _local2 = get_distance(this, this.targeter);
if (this.hit_area) {
this.moves = 1;
this.stand();
} else if (Math.abs(get_map_point(this)[0] - 295) < 265) {
if ((!random(15)) or (_local2 < 100)) {
this.moves = 1;
this.stand();
}
this.turn();
}
}
};
}
}
}
};
_local2.shoot = function () {
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 295) < 295) and (Math.abs(_local2[1] - 200) < 200)) {
if (this.attacks > 0) {
if (this.attacks < 99) {
this.attacks--;
}
if (random(2)) {
this.gotoAndStop("shoot_1");
} else {
this.gotoAndStop("shoot_2");
}
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
} else {
this.run_away();
}
}
};
_local2.shootAction = function () {
if (this._xscale == 100) {
var _local2 = 180;
} else if (this._xscale == -100) {
var _local2 = 0;
}
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 5, 0, 0, _local2, 5);
};
_local2.attackAction = function () {
enemy_killAction(this.mc.killer, this.targeter, "kill", 12, "\u6253\u51FB\u58F0\u97F3", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C");
};
_local2.to_die = function (how, much) {
enemy_mankind_die(this, how, much, "blast", "blast", "die", "die", "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA102", "\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1));
};
_local2.run_away = function () {
if (this.moves != 0) {
if (this._x < this.targeter._x) {
this._xscale = 100;
} else {
this._xscale = -100;
}
this.gotoAndStop("run");
this.flee = true;
this.onEnterFrame = function () {
enemy_move(this, (this.speed * Math.abs(this._xscale)) / this._xscale, 0);
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 295) > 295) or (Math.abs(_local2[1] - 200) > 200)) {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
};
}
};
_local2.stand();
return(_local2);
}
function enemysAction06(who, x, y) {
var _local2 = add_enemyAction(who, x, y, 1, xscale);
_local2.enemy_type = 2;
_local2.exploding = function () {
this.gotoAndPlay("explode");
this._alpha = 100;
play_soundAction("\u5927\u7206\u70B8", false);
enemy_explode(this, 5, 10);
enemy_killAction(this.hit, this.targeter, "shoot", 15, undefined, "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C");
};
_local2.find_player = function () {
this.gotoAndStop("stand");
this._alpha = 0;
this.onEnterFrame = function () {
var _local2 = get_distance(this, this.targeter);
if (this.targeter.states == "crouch") {
if (_local2 < 130) {
this._alpha = 50;
} else {
this._alpha = 0;
}
} else if (_local2 < 70) {
this._alpha = 50;
} else {
this._alpha = 0;
}
if (this.hitTest(this.targeter.g)) {
this.exploding();
delete this.onEnterFrame;
}
};
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.live = false;
this.exploding();
delete this.onEnterFrame;
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
} else {
shot_shine(this, "white", 1);
}
};
_local2.find_player();
}
function enemysAction07(who, x, y, ox, oy) {
var _local2 = add_enemyAction(who, x, y, 600, xscale);
_local2.enemy_type = 2;
_local2.count_time = 150;
_local2.yspeed = 3;
_local2.org_x = ox;
_local2.org_y = oy;
_local2.shoot_count = 0;
_local2.shoot_all = 20 - (game_diff_level * 5);
_local2.animaitoner1 = function (frame1, frame2) {
if (this._currentframe == frame2) {
this.gotoAndPlay(frame1);
return(true);
}
return(false);
};
_local2.animaitoner2 = function (frame) {
if (this._currentframe == frame) {
return(true);
}
return(false);
};
_local2.fall = function () {
this.gotoAndStop("move");
this.onEnterFrame = function () {
this._x = this._x + active_object_speed;
this._y = this._y + this.yspeed;
if (get_map_point(this)[1] > (this.org_y - 20)) {
this.yspeed = this.yspeed - 0.25;
if (this.yspeed <= 0) {
this.stand();
}
}
};
};
_local2.stand = function () {
enemy_shake(this, 2, 1, false);
this.gotoAndStop("move");
this.onEnterFrame = function () {
this._x = this._x + active_object_speed;
if ((++this.shoot_count) == this.shoot_all) {
this.shoot_count = 0;
if (this.blood < get_enemy_blood(250)) {
play_soundAction("\u4E2D\u578B\u67AA\u68B04", false);
this.shoot_tracer();
}
if (get_map_point(this.targeter)[0] > 457) {
this.shoot();
} else {
this.swordAction();
}
}
};
};
_local2.shoot = function () {
this.gotoAndPlay("shoot1");
play_soundAction("\u98DE\u673A\u8FDB\u5165", false);
this.onEnterFrame = function () {
this._x = this._x + active_object_speed;
if (this.animaitoner2(50)) {
this.stand();
}
};
};
_local2.swordAction = function () {
this.gotoAndPlay("shoot2");
play_soundAction("\u98DE\u673A\u8FDB\u5165", false);
this.get_pos = false;
this.attacked = random(5) + 1;
this.attack_dir = 1;
this.onEnterFrame = function () {
if (this.animaitoner2(60)) {
this.gotoAndStop(61);
}
var _local2 = get_map_point(this);
if (this.attack_dir == 1) {
if (_local2[0] < 900) {
if (!this.get_pos) {
if (_local2[1] < 205) {
this._x = this._x + active_object_speed;
this._y = this._y + 3;
} else {
this.get_pos = true;
}
} else {
this._x = this._x + ((10 + (game_diff_level * 2)) + active_object_speed);
}
enemy_killAction(this.killer, this.targeter, "shoot", 12, "\u6253\u51FB\u58F0\u97F3", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C");
} else if (this.attacked > 0) {
this.attacked--;
this._xscale = -100;
this.attack_dir = -1;
} else {
this._xscale = 100;
this._x = (-main._x) + this.org_x;
this._y = (-main._y) - 135;
this.yspeed = 3;
this.fall();
}
} else if (this.attack_dir == -1) {
if (_local2[0] > -300) {
this._x = this._x - ((10 + (game_diff_level * 2)) - active_object_speed);
enemy_killAction(this.killer, this.targeter, "shoot", 12, "\u6253\u51FB\u58F0\u97F3", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C");
} else if (this.attacked > 0) {
this.attacked--;
this._xscale = 100;
this.attack_dir = 1;
} else {
this._xscale = 100;
this._x = (-main._x) + this.org_x;
this._y = (-main._y) - 135;
this.yspeed = 3;
this.fall();
}
}
};
};
_local2.machinegun = function () {
if (this._xscale == 100) {
var _local2 = 15 + (((random(2) * 2) - 1) * random(15));
} else if (this._xscale == -100) {
var _local2 = 165 + (((random(2) * 2) - 1) * random(15));
}
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 8, 0, 0, _local2, 5);
};
_local2.shoot_tracer = function () {
var _local3 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie("\u8FFD\u8E2A\u5BFC\u5F39", "boss_shoot" + _local3, _local3, {_x:get_shoot_point(this.point)[0], _y:get_shoot_point(this.point)[1]});
_local2._rotation = 45;
var _local4 = main.getNextHighestDepth();
var _local5 = main.attachMovie("\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", "BOSS_\u5BFC\u5F39\u70DF\u96FE" + _local4, _local4, {_x:_local2._x, _y:_local2._y});
_local5._rotation = 45;
enemy_tracerAction(this, _local2, this.targeter, 4, 3, 12);
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.live = false;
this.gotoAndPlay("explode");
shake_screen();
delete this.onEnterFrame;
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else if (this.blood < get_enemy_blood(250)) {
shot_shine(this, "red", 1);
} else {
shot_shine(this, "white", 1);
}
};
_local2.fall();
return(_local2);
}
function enemysAction08(who, x, y) {
var _local2 = add_enemyAction(who, x, y, 50, 100);
_local2.enemy_type = 2;
_local2.attacked = 0;
_local2.counts = 0;
_local2.counts_all = 30 - (game_diff_level * 10);
_local2.animaitoner2 = function (frame) {
if (this._currentframe == frame) {
return(true);
}
return(false);
};
_local2.moves = function () {
this.counts = 0;
this.gotoAndStop("move");
this.onEnterFrame = function () {
if (Math.abs(this.targeter._x - this._x) > 10) {
this._x = this._x + ((this.targeter._x - this._x) / 20);
}
var _local2 = this.targeter._y - 250;
if (Math.abs(_local2 - this._y) > 20) {
this._y = this._y + ((_local2 - this._y) / 20);
}
if ((++this.counts) == this.counts_all) {
this.counts = 0;
this.shoot();
}
};
};
_local2.shoot = function () {
this.gotoAndPlay("shoot");
this.onEnterFrame = function () {
if (Math.abs(this.targeter._x - this._x) > 10) {
this._x = this._x + ((this.targeter._x - this._x) / 20);
}
var _local2 = this.targeter._y - 250;
if (Math.abs(_local2 - this._y) > 20) {
this._y = this._y + ((_local2 - this._y) / 20);
}
if (this.animaitoner2(30)) {
this.attacked++;
if ((this.attacked - Math.floor(game_diff_level)) >= 4) {
this.attacked = 0;
this.moves();
} else {
this.shoot();
}
}
};
};
_local2.shootAction = function () {
enemy_shootAction(this, "\u8F70\u70B8\u70B8\u5F39", "\u8F70\u70B8\u673A\u843D\u5F39", "\u624B\u96F7\u7206\u70B8", false, 0, 0, 3, 0, 12);
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.onEnterFrame = function () {
this.gotoAndPlay("explode1");
this.move_speed = (-this._xscale) / 50;
this.onEnterFrame = function () {
this._rotation = this._rotation + (this._xscale / 50);
if (enemy_move(this, this.move_speed, 0)) {
this.deadAction();
} else if (this.animaitoner2(64)) {
this.deadAction();
}
};
};
} else {
shot_shine(this, "white", 1);
}
};
_local2.deadAction = function () {
this.live = false;
this._rotation = 0;
delete this.onEnterFrame;
this.gotoAndPlay("explode2");
play_soundAction("\u5927\u7206\u70B8", false);
enemy_explode(this, 5, 10);
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
};
_local2.moves();
return(_local2);
}
function enemysAction09(who, x, y) {
var _local2 = add_enemyAction(who, x, y, 600, 100);
_local2.enemy_type = 2;
_local2.xspeed = -3;
_local2.shoot_count = 0;
_local2.shoot_all = 50 - (game_diff_level * 15);
_local2.can_jump = true;
_local2.always_on = true;
_local2.can_move_targeter = 1;
_local2.no_absorb = true;
_local2.no_damage = true;
_local2.animaitoner2 = function (frame) {
if (this._currentframe == frame) {
return(true);
}
return(false);
};
_local2.come_out = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
this.gotoAndStop("move");
play_soundAction("\u5766\u514B\u8FD0\u884C", true);
this.onEnterFrame = function () {
enemy_move(this, this.xspeed, 0);
if (get_map_point(this)[0] <= 460) {
stop_soundAction("\u5766\u514B\u8FD0\u884C");
delete this.no_absorb;
delete this.no_damage;
shot_shine(this, "yellow", 1);
this.stand();
}
};
};
};
_local2.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
if ((++this.shoot_count) == this.shoot_all) {
this.shoot_count = 0;
this.shoot1();
}
};
};
_local2.shoot1 = function () {
this.gotoAndPlay("shoot1");
this.onEnterFrame = function () {
if (this.animaitoner2(50)) {
this.shoot2();
}
};
};
_local2.shootAction1 = function () {
enemy_shootAction(this, "\u5766\u514B_\u70AE\u5F39", "\u5766\u514B\u5C04\u51FB", "\u624B\u96F7\u7206\u70B8", false, 6, 0, 0, -170, 15);
enemy_shootAction(this, "\u5766\u514B_\u70AE\u5F39", "\u5766\u514B\u5C04\u51FB", "\u624B\u96F7\u7206\u70B8", false, 6, 0, 0, 180, 15);
enemy_shootAction(this, "\u5766\u514B_\u70AE\u5F39", "\u5766\u514B\u5C04\u51FB", "\u624B\u96F7\u7206\u70B8", false, 6, 0, 0, 170, 15);
};
_local2.shoot2 = function () {
this.gotoAndPlay("shoot2");
this.onEnterFrame = function () {
if (this.animaitoner2(82)) {
if (this.blood > get_enemy_blood(400)) {
this.stand();
} else {
this.shoot3();
}
}
};
};
_local2.shootAction2 = function (add_dis) {
if (this.targeter._x < this._x) {
var _local2 = -3 - random(3);
} else {
var _local2 = 3 + random(3);
}
enemy_shootAction(this, "\u654C\u4EBA_\u5DE8\u578B\u5766\u514B_\u70AE\u5F39", "\u5766\u514B\u5C04\u51FB", "\u624B\u96F7\u7206\u70B8", false, 0, _local2 + add_dis, -8, 0, 15).shade = true;
};
_local2.shoot3 = function () {
this.gotoAndPlay("shoot3");
this.onEnterFrame = function () {
if (this.animaitoner2(142)) {
if (this.blood > get_enemy_blood(200)) {
this.stand();
} else if (random(2)) {
this.shoot1();
} else if (random(2)) {
this.shoot2();
} else {
this.shoot3();
}
}
};
};
_local2.shootAction3 = function () {
play_soundAction("\u91CD\u578B\u67AA\u68B01", false);
var _local3 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie("\u654C\u4EBA_\u5DE8\u578B\u5766\u514B_\u706B\u7BAD", "\u654C\u4EBA_\u5DE8\u578B\u5766\u514B_\u706B\u7BAD" + _local3, _local3, {_x:get_shoot_point(this.point)[0], _y:get_shoot_point(this.point)[1]});
_local2._rotation = -103;
enemy_tracerAction(this, _local2, this.targeter, 7, 5, 45);
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.healthbar != undefined) {
this.healthbar.check_health(this.blood, this.org_blood);
}
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
this.gotoAndPlay("explode");
shake_screen();
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else if (!random(3)) {
if (this.blood > get_enemy_blood(400)) {
shot_shine(this, "white", 1);
} else if (this.blood < get_enemy_blood(200)) {
shot_shine(this, "red", 1);
} else {
shot_shine(this, "pink", 1);
}
}
};
_local2.come_out();
return(_local2);
}
function enemysAction10(who, x, y, attack_where) {
var _local2 = add_enemyAction(who, x, y, 10, xscale);
_local2.enemy_type = 2;
_local2.speed = -8;
_local2.attack_where = attack_where;
_local2.shot = false;
_local2.animaitoner2 = function (frame) {
if (this._currentframe == frame) {
return(true);
}
return(false);
};
_local2.moves = function () {
this.gotoAndStop("move");
enemy_shake(this, 2, 1, false);
this.onEnterFrame = function () {
this._x = this._x + this.speed;
if (Math.abs(get_map_point(this)[0] - this.attack_where) < 20) {
if (!this.shot) {
this.shot = true;
this.shoot();
}
}
};
};
_local2.shoot = function () {
this.gotoAndPlay("shoot");
this.onEnterFrame = function () {
if (this.animaitoner2(25)) {
this.gotoAndStop("move");
}
if (get_map_point(this)[0] > -100) {
this._x = this._x + this.speed;
} else {
this.removeMovieClip();
}
};
};
_local2.shootAction = function () {
var _local2 = enemy_shootAction(this, "\u8FFD\u8E2A\u5BFC\u5F39", "\u91CD\u578B\u67AA\u68B01", "\u5BFC\u5F39\u7206\u70B8", 5, 0, -3, 3, 180, 12);
_local2.tracer = true;
_local2.accelerate = true;
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.gotoAndPlay("explode1");
this.driver.removeMovieClip();
this.move_speed = (-this._xscale) / 50;
this.onEnterFrame = function () {
this._rotation = this._rotation + (this._xscale / 50);
if (enemy_move(this, this.move_speed, 0)) {
this.deadAction();
} else if (this.animaitoner2(51)) {
this.deadAction();
}
};
} else {
shot_shine(this, "white", 1);
}
};
_local2.deadAction = function () {
this.live = false;
this._rotation = 0;
delete this.onEnterFrame;
this.gotoAndPlay("explode2");
play_soundAction("\u5927\u7206\u70B8", false);
enemy_explode(this, 5, 10);
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
};
_local2.moves();
return(_local2);
}
function enemysAction11(who, x, y) {
var _local2 = add_enemyAction(who, x, y, 3, 100);
_local2.enemy_type = 2;
_local2.speed = 3;
_local2.shoot_count = 0;
_local2.shoot_all = (random(20) + 60) - (game_diff_level * 20);
_local2.moves = function () {
this.gotoAndStop("move");
enemy_shake(this, 0.5, 1, false);
this.onEnterFrame = function () {
if (this._xscale == 100) {
if (get_map_point(this)[0] > 0) {
this._x = this._x - this.speed;
} else {
this._xscale = -100;
}
} else if (this._xscale == -100) {
if (get_map_point(this)[0] < 590) {
this._x = this._x + this.speed;
} else {
this._xscale = 100;
}
}
if ((++this.shoot_count) == this.shoot_all) {
this.shoot_count = 0;
this.shootAction();
}
};
};
_local2.shootAction = function () {
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 5, 0, 0, 90 + (60 * (this._xscale / 100)), 5);
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.gotoAndStop("fall");
this.move_speed = (-this._xscale) / 50;
this.onEnterFrame = function () {
this._rotation = this._rotation + (this._xscale / 4);
if (enemy_move(this, this.move_speed, 0)) {
this.deadAction();
}
};
} else {
shot_shine(this, "white", 1);
}
};
_local2.deadAction = function () {
this.live = false;
this._rotation = 0;
delete this.onEnterFrame;
this.gotoAndPlay("explode");
play_soundAction("\u5927\u7206\u70B8", false);
enemy_explode(this, 5, 10);
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
};
_local2.moves();
return(_local2);
}
function enemysAction12(who, x, y, attacks, moves, states, xscale) {
var _local2 = add_enemyAction(who, x, y, 1.5, xscale);
_local2.speed = -5;
_local2.attacks = attacks;
_local2.moves = moves;
_local2.states = states;
_local2.enemy_type = 1;
_local2.can_jump = true;
_local2.blowup_next = 3;
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.startAction = function () {
if (this.moves >= 50) {
this.get_shocked();
}
};
_local2.stand = function () {
if (this.moves < 50) {
if (this.moves >= 0) {
this.gotoAndStop(this.states);
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.targeter.live) {
var _local2 = get_distance(this, this.targeter);
this.turn();
if (_local2 >= 590) {
this.move_me();
} else if ((_local2 > 65) and (_local2 < 590)) {
if (!random(30 - (game_diff_level * 10))) {
this.shoot();
} else if (!random(30)) {
this.move_me();
}
} else if (_local2 <= 65) {
if (random(2) and (!this.cant_change_states)) {
this.attack();
} else if (random(2)) {
this.move_me();
} else if (this.moves != 0) {
this.fear();
}
}
}
};
} else {
this.move_me();
}
} else if (this.moves >= 50) {
this.gotoAndStop("still" + (this.moves - 50));
this.mc.gotoAndPlay(random(this.mc._totalframes + 1));
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.targeter.live) {
if (this.moves >= 53) {
if (get_distance(this, this.targeter) < 200) {
if (((this._x - this.targeter._x) * this._xscale) >= 0) {
if (Math.abs(this.targeter._y - this._y) < 100) {
this.get_shocked();
}
}
}
}
if (player_shooting) {
if (get_map_point(this)[0] < 590) {
this.get_shocked();
}
}
}
};
}
};
_local2.get_shocked = function () {
play_soundAction("\u58EB\u5175\u53D7\u60CA", false);
this.gotoAndStop("scare1");
this.states = "stand";
this.moves = random(2) + 1;
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.move_me();
}
};
};
_local2.get_blocked = function () {
if (this.states == "stand") {
this.gotoAndStop("blocked");
this.onEnterFrame = function () {
if (!random(50)) {
this.stand();
}
};
} else {
this.stand();
}
};
_local2.attack = function () {
if (this.attacks > 0) {
if (this.attacks < 99) {
this.attacks--;
}
this.gotoAndStop("s_kill");
this.states = "stand";
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
} else {
this.run_away();
}
};
_local2.move_me = function () {
if (!this.hit_area) {
if (this.moves > 0) {
if (this.moves == 2) {
this.gotoAndStop("s_creep1");
this.move_speed = this.speed / 2;
} else if (this.states == "stand") {
if (((!random(4)) and ((this._y - this.targeter._y) < 100)) and (!this.cant_change_states)) {
this.states = "crouch";
this.move_me();
return(undefined);
}
this.gotoAndStop("s_walk");
this.move_speed = this.speed;
} else if (this.states == "crouch") {
if ((!random(4)) and (!this.cant_change_states)) {
this.states = "stand";
this.move_me();
return(undefined);
}
if (!random(4)) {
this.states = "grovel";
this.move_me();
return(undefined);
}
this.gotoAndStop("c_walk");
this.move_speed = this.speed / 3;
} else if (this.states == "grovel") {
if (!random(6)) {
this.states = "crouch";
this.move_me();
return(undefined);
}
this.gotoAndStop("g_walk");
this.move_speed = this.speed / 5;
}
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if ((!random(40)) or this.hit_area) {
this.stand();
} else {
var _local2 = get_map_point(this)[0];
if (((this._xscale < 0) and (_local2 > 570)) or ((this._xscale > 0) and (_local2 < 20))) {
this.stand();
} else if (Math.abs(this._x - this.targeter._x) < 65) {
this.stand();
}
}
}
};
} else if (this.moves < 0) {
if (this.moves == -2) {
this.gotoAndStop("s_creep1");
this.move_speed = this.speed / 2;
} else if (this.moves == -1) {
this.gotoAndStop("s_walk");
this.move_speed = this.speed;
}
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
var _local2 = Math.abs(this._x - this.targeter._x);
if (this.hit_area) {
this.moves = Math.abs(this.moves);
this.stand();
} else if (Math.abs(get_map_point(this)[0] - 295) < 265) {
if ((!random(15)) or (_local2 < 65)) {
this.moves = Math.abs(this.moves);
this.stand();
}
this.turn();
}
}
};
}
}
};
_local2.fear = function () {
this.gotoAndStop("s_creep2");
this.onEnterFrame = function () {
if (!this.hit_area) {
if (enemy_move(this, (((-this.speed) / 2) * Math.abs(this._xscale)) / this._xscale, 0)) {
var _local2 = get_map_point(this)[0];
if ((_local2 > 570) or (_local2 < 20)) {
this.stand();
} else if (!random(25)) {
this.stand();
}
}
} else {
this.stand();
}
};
};
_local2.shoot = function () {
var _local3 = get_map_point(this);
if ((Math.abs(_local3[0] - 295) < 295) and (Math.abs(_local3[1] - 200) < 200)) {
if (this.attacks > 0) {
if (this.attacks < 99) {
this.attacks--;
}
var _local2 = Math.atan2(this._y - this.targeter._y, this._x - this.targeter._x) / 0.01745;
if (this.states == "stand") {
if (_local2 >= 0) {
if (_local2 > 90) {
_local2 = 180 - _local2;
}
if (_local2 < 15) {
this.gotoAndStop("s_shoot1");
} else if ((_local2 >= 15) and (_local2 < 45)) {
this.gotoAndStop("s_shoot2");
} else if ((_local2 >= 45) and (_local2 < 75)) {
this.gotoAndStop("s_shoot3");
} else if (_local2 >= 75) {
this.gotoAndStop("s_shoot4");
}
} else {
this.gotoAndStop("s_throw");
}
} else if (this.states == "crouch") {
if (_local2 >= 0) {
if (random(5)) {
this.gotoAndStop("c_shoot");
} else {
this.gotoAndStop("c_throw");
}
} else {
this.gotoAndStop("c_throw");
}
} else if (this.states == "grovel") {
if (_local2 >= 0) {
if (random(5)) {
this.gotoAndStop("g_shoot");
} else {
this.gotoAndStop("g_throw");
}
} else {
this.gotoAndStop("g_throw");
}
}
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
} else {
this.run_away();
}
}
};
_local2.to_die = function (how, much) {
enemy_mankind_die(this, how, much, "blast", "blast", "die" + (random(3) + 1), "die" + (random(3) + 1), "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA102", "\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1));
};
_local2.run_away = function () {
if (this.moves != 0) {
if (this._x < this.targeter._x) {
this._xscale = 100;
} else {
this._xscale = -100;
}
this.gotoAndStop("run_away");
this.flee = true;
this.onEnterFrame = function () {
enemy_move(this, (this.speed * Math.abs(this._xscale)) / this._xscale, 0);
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 295) > 295) or (Math.abs(_local2[1] - 200) > 200)) {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
};
}
};
_local2.shootAction = function (what, dir) {
if (what == "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39") {
if (this._xscale == 100) {
var _local3 = dir;
} else if (this._xscale == -100) {
var _local3 = -(dir + 180);
}
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 5, 0, 0, _local3, 5);
} else if (what == "\u654C\u4EBA_\u624B\u96F7") {
var _local2 = (this.targeter._x - this._x) / 45;
_local2 = _local2 * (0.9 + (Math.random() / 10));
if (Math.abs(_local2) > (8 + (game_diff_level * 2))) {
_local2 = ((8 + (game_diff_level * 2)) * Math.abs(_local2)) / _local2;
}
enemy_shootAction(this, "\u654C\u4EBA_\u624B\u96F7", undefined, "\u624B\u96F7\u7206\u70B8", false, 0, _local2, -7, 0, 5).rotate_me = 15;
}
};
_local2.attackAction = function () {
enemy_killAction(this.mc.killer, this.targeter, "kill", 5, "\u5C0F\u52000" + (random(2) + 1), "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C");
};
_local2.stand();
return(_local2);
}
function enemysAction13(who, x, y, moves) {
var _local2 = add_enemyAction(who, x, y, 15, 100);
_local2.enemy_type = 2;
_local2.move_speed = -6 - game_diff_level;
_local2.attacked = false;
_local2.can_enemy_stand = true;
_local2.stand = function () {
this.gotoAndStop("stand");
if (moves) {
this.can_jump = true;
this.can_enemy_stand = false;
this.onEnterFrame = function () {
if (!this.attacked) {
if (enemy_killAction(this.hit, this.targeter, "shoot", 12, "\u6253\u51FB\u58F0\u97F3", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C")) {
this.attacked = true;
}
}
this.w1._rotation = this.w1._rotation - 60;
this.w2._rotation = this.w2._rotation - 60;
this.w3._rotation = this.w3._rotation - 60;
this.w4._rotation = this.w4._rotation - 60;
this.w5._rotation = this.w5._rotation - 60;
this.w6._rotation = this.w6._rotation - 60;
enemy_move(this, this.move_speed, 0);
var _local2 = get_map_point(this)[0];
if ((_local2 > 620) and (_local2 < 630)) {
play_soundAction("\u5361\u8F66\u5F00\u52A8", false);
} else if (_local2 < -50) {
this.removeMovieClip();
}
};
}
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
this.gotoAndPlay("explode");
play_soundAction("\u5927\u7206\u70B8", false);
enemy_explode(this, 5, 10);
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
} else {
shot_shine(this, "white", 1);
}
};
_local2.stand();
return(_local2);
}
function enemysAction14(who, x, y, moves, states, xscale) {
var _local2 = add_enemyAction(who, x, y, 10, xscale);
_local2.speed = -5;
_local2.moves = moves;
_local2.states = states;
_local2.enemy_type = 1;
_local2.can_jump = true;
_local2.kick_things = undefined;
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.stand = function () {
if (this.moves > 0) {
this.gotoAndStop(this.states);
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.targeter.live) {
var _local2 = get_distance(this, this.targeter);
this.turn();
if (_local2 >= 590) {
this.move_me();
} else if ((_local2 > 40) and (_local2 < 590)) {
if (!random(20 - (game_diff_level * 5))) {
this.shoot();
} else if (!random(30)) {
this.move_me();
}
} else if ((_local2 <= 40) and (!this.cant_change_states)) {
this.attack();
}
}
};
} else if (this.moves == 0) {
this.gotoAndStop(this.states);
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.targeter.live) {
if (get_map_point(this)[0] < 590) {
this.moves = 1;
if (this.kick_things.live) {
this.attack();
} else {
this.shoot();
}
}
}
};
} else {
this.move_me();
}
};
_local2.get_blocked = function () {
this.stand();
};
_local2.attack = function () {
this.gotoAndStop("kill");
this.states = "stand";
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
};
_local2.move_me = function () {
if (!this.hit_area) {
if (this.moves > 0) {
if (this.states == "stand") {
if ((!random(5)) and (!this.cant_change_states)) {
this.states = "grovel";
this.move_me();
return(undefined);
}
if (random(2) and (!this.cant_change_states)) {
this.gotoAndStop("jump");
this.yspeed = -12;
this.move_speed = this.speed;
this.temp_jump = true;
} else {
this.gotoAndStop("s_walk");
this.move_speed = this.speed;
}
} else if (this.states == "grovel") {
if ((!random(3)) and (!this.cant_change_states)) {
this.states = "stand";
this.move_me();
return(undefined);
}
this.gotoAndStop("g_walk");
this.move_speed = this.speed / 5;
}
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if (this.temp_jump) {
delete this.temp_jump;
this.stand();
} else if ((!random(40)) or this.hit_area) {
this.stand();
} else {
var _local2 = get_map_point(this)[0];
if (((this._xscale < 0) and (_local2 > 570)) or ((this._xscale > 0) and (_local2 < 20))) {
this.stand();
} else if (Math.abs(this._x - this.targeter._x) < 40) {
this.stand();
}
}
}
};
} else if (this.moves < 0) {
if (this.moves == -2) {
this.gotoAndStop("g_walk");
this.move_speed = this.speed / 2;
} else if (this.moves == -1) {
this.gotoAndStop("s_walk");
this.move_speed = this.speed;
}
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
var _local2 = Math.abs(this._x - this.targeter._x);
if (this.hit_area) {
this.moves = Math.abs(this.moves);
this.stand();
} else if (Math.abs(get_map_point(this)[0] - 295) < 265) {
if ((!random(15)) or (_local2 < 40)) {
this.moves = Math.abs(this.moves);
this.stand();
}
this.turn();
}
}
};
}
}
};
_local2.shoot = function () {
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 295) < 295) and (Math.abs(_local2[1] - 200) < 200)) {
if (this.states == "stand") {
this.gotoAndStop("s_shoot");
} else if (this.states == "grovel") {
this.gotoAndStop("g_shoot");
}
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
_local2.to_die = function (how, much) {
enemy_mankind_die(this, how, much, "blast", "blast", "die", "die", "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA102", "\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1));
};
_local2.shootAction = function (what, dir) {
if (this._xscale == 100) {
var _local2 = dir;
} else if (this._xscale == -100) {
var _local2 = -(dir + 180);
}
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 6, 0, 0, _local2, 5);
};
_local2.attackAction = function () {
enemy_killAction(this.mc.killer, this.targeter, "shoot", 12, "\u6253\u51FB\u58F0\u97F3", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C");
if (this.kick_things.live) {
play_soundAction("\u6253\u51FB\u58F0\u97F3", false);
this.kick_things.move_me(1);
this.kick_things = undefined;
}
};
_local2.stand();
return(_local2);
}
function enemysAction15(who, x, y) {
var _local2 = add_enemyAction(who, x, y, 5, 100);
_local2.enemy_type = 2;
_local2.move_speed = -4;
_local2.can_jump = true;
_local2.attacked = false;
_local2.stand = function () {
this.gotoAndStop("stand");
this.mc.stop();
};
_local2.move_me = function (dir) {
this._xscale = dir * 100;
this.mc.play();
this.onEnterFrame = function () {
if (!this.attacked) {
if (enemy_killAction(this.g, this.targeter, "shoot", 12, "\u6253\u51FB\u58F0\u97F3", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C")) {
this.attacked = true;
}
}
enemy_move(this, this.move_speed * dir, 0);
var _local2 = get_map_point(this)[0];
if ((dir == 1) and (_local2 < -50)) {
this.removeMovieClip();
} else if ((dir == -1) and (_local2 > 640)) {
this.removeMovieClip();
}
};
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
this.gotoAndStop("die");
play_soundAction("\u5927\u7206\u70B8", false);
enemy_explode(this, 5, 10);
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
} else {
shot_shine(this, "white", 1);
}
};
_local2.stand();
return(_local2);
}
function enemysAction16(who, x, y) {
var _local2 = add_enemyAction(who, x, y, 10, 100);
_local2.enemy_type = 2;
_local2.move_speed = -5;
_local2.can_jump = false;
_local2.attacked = false;
_local2.change_rotation = true;
_local2.can_enemy_stand = true;
_local2.stand = function () {
this.gotoAndStop("stand");
this.mc.stop();
};
_local2.move_me = function () {
this.mc.play();
this.can_jump = true;
this.can_enemy_stand = false;
this.onEnterFrame = function () {
if (!this.attacked) {
if (enemy_killAction(this.hit, this.targeter, "shoot", 12, "\u6253\u51FB\u58F0\u97F3", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C")) {
this.attacked = true;
}
}
enemy_move(this, this.move_speed, 0);
var _local2 = get_map_point(this)[0];
if (_local2 < -50) {
this.removeMovieClip();
}
};
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
this.gotoAndStop("die");
play_soundAction("\u5927\u7206\u70B8", false);
enemy_explode(this, 5, 10);
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
} else {
shot_shine(this, "white", 1);
}
};
_local2.stand();
return(_local2);
}
function enemysAction17(who, typ, x, y, blood, xscale) {
var _local2 = add_enemyAction(who, x, y, blood, xscale);
_local2.typ = typ;
_local2.stand = function () {
this.gotoAndStop("stand" + this.typ);
this.onEnterFrame = function () {
if (this.targeter.live) {
var _local2 = get_distance(this, this.targeter);
if (_local2 < 290) {
if (!random(20 - (game_diff_level * 5))) {
this.shoot();
}
}
}
};
};
_local2.shoot = function () {
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 295) < 295) and (Math.abs(_local2[1] - 200) < 200)) {
this.gotoAndStop("shoot" + this.typ);
this.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood_mc == undefined) {
this.attachMovie("\u5C0F\u5200\u780D\u4EBA_\u6548\u679C", "blood_mc", this.getNextHighestDepth(), {_x:0, _y:-35});
}
shot_shine(this, "pink", 1);
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
if (how == "elec") {
enemy_elec(this);
play_soundAction("\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), false);
} else {
play_soundAction("\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1), false);
}
this.gotoAndStop("die" + this.typ);
if (this.dieEvents != undefined) {
this.dieEvents();
}
}
};
_local2.shootAction = function (what, dir) {
if (this._xscale == 100) {
var _local2 = dir;
} else if (this._xscale == -100) {
var _local2 = -(dir + 180);
}
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 5, 0, 0, _local2, 5);
};
_local2.stand();
return(_local2);
}
function enemysAction18(who, x, y, come, xscale) {
var _local2 = add_enemyAction(who, x, y, 75, xscale);
_local2.speed = -8 - game_diff_level;
_local2.come = come;
_local2.enemy_type = 1;
_local2.can_jump = true;
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.come_out = function () {
this.gotoAndStop("come" + this.come);
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.targeter.live) {
if (this.mc._currentframe == this.mc._totalframes) {
if (get_map_point(this)[0] < 590) {
this.stand();
}
}
}
};
};
_local2.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
this.turn();
enemy_check_ground(this);
if (this.targeter.live) {
if (this.mc._currentframe == this.mc._totalframes) {
this["move_me" + (random(3) + 1)]();
}
}
};
};
_local2.get_blocked = function () {
this.stand();
};
_local2.move_me1 = function () {
if (!this.hit_area) {
this.gotoAndStop("s_kill");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
_local2.move_me2 = function () {
if (!this.hit_area) {
this.gotoAndStop("run");
this.move_speed = this.speed;
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
return(undefined);
}
if (!random(50)) {
this.move_me3();
return(undefined);
}
var _local2 = get_distance(this, this.targeter);
if (_local2 < 45) {
this.gotoAndStop("r_kill");
this.onEnterFrame = function () {
enemy_move(this, 0, 0);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
}
};
}
};
_local2.move_me3 = function () {
if (!this.hit_area) {
this.gotoAndStop("jump");
this.move_speed = this.speed * 1.25;
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, -10)) {
this.stand();
return(undefined);
}
var _local2 = get_distance(this, this.targeter);
if (_local2 < 200) {
this.gotoAndStop("j_kill");
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
this.stand();
}
};
}
};
}
};
_local2.to_die = function (how, much) {
enemy_mankind_die(this, how, much, "blast", "blast", "die", "die", "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA102", "\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1));
};
_local2.shootAction = function (what, dir) {
if (this._xscale == 100) {
var _local2 = dir;
} else if (this._xscale == -100) {
var _local2 = -(dir + 180);
}
enemy_shootAction(this, "\u654C\u4EBA_\u5200\u5149", "\u780D\u5200", "\u624B\u96F7\u7206\u70B8", false, 10, 0, 0, _local2, 5);
};
_local2.attackAction = function () {
enemy_killAction(this.mc.killer, this.targeter, "kill", 10, "\u5C0F\u52000" + (random(2) + 1), "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C");
};
_local2.come_out();
return(_local2);
}
function enemysAction19(who, x, y, xscale) {
var _local2 = add_enemyAction(who, x, y, 3, xscale);
_local2.enemy_type = 1;
_local2.blowup_next = 3;
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.stand = function () {
this.gotoAndStop("stand");
this._visible = 0;
this.onEnterFrame = function () {
if (this.targeter.live) {
this.turn();
if (get_distance(this, this.targeter) < 200) {
this._visible = 1;
this.move_me();
}
}
};
};
_local2.move_me = function () {
this.gotoAndStop("bamboo");
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, 0, -8)) {
enemysAction12(who, this._x, this._y, 99, 1, "stand", this._xscale);
this.removeMovieClip();
}
};
};
_local2.to_die = function (how, much) {
enemy_mankind_die(this, how, much, "blast", "blast", "die" + (random(3) + 1), "die" + (random(3) + 1), "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA102", "\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1));
};
_local2.shootAction = function () {
if (this._xscale == 100) {
var _local2 = 125 - (random(25) * ((random(2) * 2) - 1));
} else if (this._xscale == -100) {
var _local2 = 55 + (random(25) * ((random(2) * 2) - 1));
}
enemy_shootAction(this, "\u654C\u4EBA_\u7AF9\u5B50\u6B66\u5668", "\u5F13\u653B\u51FB1", "\u5C0F\u520004", false, 15, 0, 0, _local2, 5).land_angle = true;
};
_local2.stand();
return(_local2);
}
function enemysAction20(who, x, y) {
var _local2 = add_enemyAction(who, x, y, 350, 100);
_local2.enemy_type = 2;
_local2.move_speed = -5;
_local2.in_air = true;
_local2.angry = false;
_local2.angry_count = 0;
_local2.sword_count = 0;
_local2.man_count = 0;
_local2.stone_count = 0;
_local2.can_jump = true;
_local2.always_on = true;
_local2.can_move_targeter = 1;
_local2.man.stop();
_local2.come_out = function () {
this.gotoAndStop("stand");
this.man.gotoAndStop("idle");
this.onEnterFrame = function () {
if (get_distance(this, this.targeter) < 520) {
this.w1.play();
this.w2.play();
this.w3.play();
this.w4.play();
this.onEnterFrame = function () {
enemy_move(this, this.move_speed, 0);
player_max_x = this._x - 85;
var _local2 = get_map_point(this)[0];
if (_local2 < 475) {
this.stand();
}
};
}
};
};
_local2.stand = function () {
this.w1.gotoAndStop(1);
this.w2.gotoAndStop(1);
this.w3.gotoAndStop(1);
this.w4.gotoAndStop(1);
this.onEnterFrame = function () {
this.check_moves();
player_max_x = this._x - 85;
this.check_sword();
this.check_man();
this.check_stone();
};
};
_local2.check_moves = function () {
if (this.angry) {
this.angry_count++;
if (this.angry_count == 1) {
this.w1.play();
this.w2.play();
this.w3.play();
this.w4.play();
} else if ((this.angry_count > 50) and (this.angry_count < 100)) {
enemy_move(this, this.move_speed, 0);
} else if (this.angry_count == 100) {
this.w1.gotoAndStop(1);
this.w2.gotoAndStop(1);
this.w3.gotoAndStop(1);
this.w4.gotoAndStop(1);
} else if (this.angry_count == 150) {
this.w1.play();
this.w2.play();
this.w3.play();
this.w4.play();
} else if ((this.angry_count > 150) and (this.angry_count < 200)) {
enemy_move(this, -this.move_speed, 0);
} else if (this.angry_count == 200) {
this.w1.gotoAndStop(1);
this.w2.gotoAndStop(1);
this.w3.gotoAndStop(1);
this.w4.gotoAndStop(1);
} else if (this.angry_count > 250) {
this.angry_count = 0;
}
}
};
_local2.check_sword = function () {
if ((++this.sword_count) == (20 - (game_diff_level * 5))) {
this.sword_count = 0;
if (enemy_killAction(this.sword, this.targeter, "kill", 12, "\u5C0F\u52000" + (random(2) + 1), "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C")) {
shake_screen();
}
}
};
_local2.check_man = function () {
if (this.man._currentframe == 8) {
if ((++this.man_count) == (40 - (game_diff_level * 10))) {
this.man_count = 0;
if (Math.abs(this._x - this.targeter._x) < 120) {
this.man.gotoAndStop("kill");
} else {
this.man.gotoAndStop("shoot");
}
this.man.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
this.gotoAndStop("idle");
}
};
}
}
};
_local2.man.targeter = _local2.targeter;
_local2.man.shootAction = function () {
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 10, 0, 0, 180, 5);
};
_local2.man.attackAction = function () {
enemy_killAction(this.mc.killer, this.targeter, "kill", 10, "\u5C0F\u52000" + (random(2) + 1), "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C");
};
_local2.check_stone = function () {
if (this.mc._currentframe == 1) {
if ((++this.stone_count) == (40 - (game_diff_level * 10))) {
this.stone_count = 0;
this.mc.play();
}
}
};
_local2.shoot_stoneAction = function () {
var _local2 = -2 - (Math.random() * 4);
var _local3 = enemy_shootAction(this, "\u654C\u4EBA_\u5DE8\u77F3", "\u5C0F\u5200\u51FA\u5200", "\u6253\u51FB\u58F0\u97F3", 5 + (game_diff_level * 5), 0, _local2 + Math.random(), -3 + random(3), 0, 12);
_local3.bounce = true;
_local3.rotate_me = 15;
if (random(2)) {
var _local4 = enemy_shootAction(this, "\u654C\u4EBA_\u5DE8\u77F3", "\u5C0F\u5200\u51FA\u5200", "\u6253\u51FB\u58F0\u97F3", 5 + (game_diff_level * 5), 0, _local2, -3 + random(3), 0, 12);
_local4.bounce = true;
_local4.rotate_me = 15;
}
if (random(2)) {
var _local5 = enemy_shootAction(this, "\u654C\u4EBA_\u5DE8\u77F3", "\u5C0F\u5200\u51FA\u5200", "\u6253\u51FB\u58F0\u97F3", 5 + (game_diff_level * 5), 0, _local2 - Math.random(), -3 + random(3), 0, 12);
_local5.bounce = true;
_local5.rotate_me = 15;
}
if (game_diff_level >= 1) {
if (random(2)) {
var _local6 = enemy_shootAction(this, "\u654C\u4EBA_\u5DE8\u77F3", "\u5C0F\u5200\u51FA\u5200", "\u6253\u51FB\u58F0\u97F3", 5 + (game_diff_level * 5), 0, _local2 - (2 * Math.random()), -3 + random(3), 0, 12);
_local6.bounce = true;
_local6.rotate_me = 15;
}
if (random(2)) {
var _local7 = enemy_shootAction(this, "\u654C\u4EBA_\u5DE8\u77F3", "\u5C0F\u5200\u51FA\u5200", "\u6253\u51FB\u58F0\u97F3", 5 + (game_diff_level * 5), 0, _local2 - (3 * Math.random()), -3 + random(3), 0, 12);
_local7.bounce = true;
_local7.rotate_me = 15;
}
}
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.healthbar != undefined) {
this.healthbar.check_health(this.blood, this.org_blood);
}
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
this.gotoAndStop("explode");
shake_screen();
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else if (this.blood < get_enemy_blood(175)) {
this.angry = true;
if (!random(3)) {
shot_shine(this, "red", 1);
}
} else if (!random(3)) {
shot_shine(this, "white", 1);
}
};
_local2.come_out();
return(_local2);
}
function enemysAction21(who, x, y, state, xscale) {
var _local2 = add_enemyAction(who, x, y, 15, xscale);
_local2.move_speed = -13;
_local2.enemy_type = 2;
_local2.definite = true;
_local2.can_move_targeter = 1;
_local2.stand = function () {
this.gotoAndStop("stand");
delete this.onEnterFrame;
};
_local2.come = function () {
this.gotoAndStop("stand");
play_soundAction("\u5361\u8F66\u5F00\u52A8", false);
this.onEnterFrame = function () {
enemy_move(this, (this.move_speed * this._xscale) / 100, 0);
this.move_speed = this.move_speed + 0.25;
if (this.move_speed == 0) {
this.open_door();
} else if (this.move_speed == -4) {
play_soundAction("\u5361\u8F66\u5239\u8F66", false);
}
};
};
_local2.open_door = function () {
this.gotoAndStop("open");
this.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
} else if (this.mc._currentframe == 4) {
play_soundAction("\u98DE\u673A\u8DF3\u51FA", false);
enemysAction18("\u654C\u4EBA_\u65E5\u672C\u6B66\u58EB\u519B\u5B98", this._x, this._y, 2, 100);
NPC_scare();
}
};
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
this.gotoAndPlay("explode");
play_soundAction("\u5927\u7206\u70B8", false);
enemy_explode(this, 5, 10);
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
} else {
shot_shine(this, "white", 1);
}
};
_local2[state]();
return(_local2);
}
function enemysAction22(who, x, y, blood, which) {
var _local2 = add_enemyAction(who, x, y, blood, 100);
_local2.enemy_type = 2;
_local2.definite = true;
_local2.stand = function () {
this.gotoAndStop(which);
};
_local2.come_out_enemy = function (px, py) {
this.max_enemy = 5;
this.onEnterFrame = function () {
var _local2 = get_map_point(this)[0];
if ((_local2 > 0) and (_local2 < 450)) {
if (!random(350)) {
if ((--this.max_enemy) >= 0) {
enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + px, this._y + py, 99, -2 + random(2), "stand", 100);
} else {
delete this.onEnterFrame;
}
}
}
};
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
this.gotoAndStop(this._currentframe + 17);
object_remove(this, 15);
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
} else if (this.shine != undefined) {
shot_shine(this.shine, "pink", 1);
}
};
_local2.stand();
return(_local2);
}
function enemysAction23(who, x, y, xscale) {
var _local2 = add_enemyAction(who, x, y, 25, xscale);
_local2.speed = -7 - game_diff_level;
_local2.enemy_type = 1;
_local2.can_jump = true;
_local2.initaled = false;
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
this.turn();
if (this.targeter.live) {
if (this.mc._currentframe == this.mc._totalframes) {
if (this.initaled) {
this["move_me" + (random(2) + 1)]();
} else {
this.initaled = true;
this.move_me2();
}
}
}
};
};
_local2.get_blocked = function () {
this.stand();
};
_local2.move_me1 = function () {
if (!this.hit_area) {
this.gotoAndStop("s_shoot");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
_local2.move_me2 = function () {
if (!this.hit_area) {
this.gotoAndStop("run");
this.move_speed = this.speed;
play_soundAction("\u9A6C\u58F0\u97F31", false);
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if (this.mc._currentframe == this.mc._totalframes) {
this.move_me4();
return(undefined);
}
if (!random(30)) {
this.move_me3();
}
}
};
}
};
_local2.move_me3 = function () {
if (!this.hit_area) {
this.gotoAndStop("r_shoot");
this.move_speed = this.speed;
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if (this.mc._currentframe == this.mc._totalframes) {
this.move_me4();
}
}
};
}
};
_local2.move_me4 = function () {
if (!this.hit_area) {
this.gotoAndStop("stop");
this.move_speed = this.speed / 2;
stop_soundAction("\u9A6C\u58F0\u97F31");
play_soundAction("\u5361\u8F66\u5239\u8F66", false);
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
}
};
}
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood_mc == undefined) {
this.attachMovie("\u5C0F\u5200\u780D\u4EBA_\u6548\u679C", "blood_mc", this.getNextHighestDepth(), {_x:0, _y:-40});
}
shot_shine(this, "pink", 1);
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
this.gotoAndStop("die");
play_soundAction("\u9A6C\u58F0\u97F32", false);
this.onEnterFrame = function () {
if (enemy_move(this, 0, 0)) {
delete this.onEnterFrame;
}
};
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
}
};
_local2.shootAction = function (what, dir) {
if (this._xscale == 100) {
var _local2 = dir;
} else if (this._xscale == -100) {
var _local2 = -(dir + 180);
}
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 7, 0, 0, _local2, 5);
};
_local2.attackAction = function () {
enemy_killAction(this.mc.killer, this.targeter, "shoot", 12, "\u6253\u51FB\u58F0\u97F3", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C");
};
_local2.stand();
return(_local2);
}
function enemysAction24(who, x, y, xscale) {
var _local2 = add_enemyAction(who, x, y, 1.5, xscale);
_local2.enemy_type = 1;
_local2.come_out = false;
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.come = function () {
this.gotoAndStop("come");
this.onEnterFrame = function () {
if (this.targeter.live) {
var _local2 = get_distance(this, this.targeter);
if (_local2 < 290) {
this.onEnterFrame = function () {
this.mc._x = this.mc._x - 5;
if (this.mc._x <= -43) {
this.mc._x = -43;
this.stand();
}
};
}
}
};
};
_local2.stand = function () {
this.come_out = true;
this.gotoAndStop("stand");
this.onEnterFrame = function () {
this.turn();
if (this.targeter.live) {
if (!random(35 - (game_diff_level * 10))) {
this.shoot();
} else if (!random(15)) {
this.idle();
}
}
};
};
_local2.idle = function () {
this.gotoAndStop("idle");
this.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
};
_local2.shoot = function () {
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 295) < 295) and (Math.abs(_local2[1] - 200) < 200)) {
this.gotoAndStop("shoot");
this.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
_local2.to_die = function (how, much) {
if (!this.come_out) {
this.removeMovieClip();
} else {
this.blood = this.blood - much;
if (this.blood_mc == undefined) {
this.attachMovie("\u5C0F\u5200\u780D\u4EBA_\u6548\u679C", "blood_mc", this.getNextHighestDepth(), {_x:0, _y:-20});
}
shot_shine(this, "pink", 1);
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
if (how == "blow") {
this.gotoAndStop("blast");
play_soundAction("\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), false);
this.onEnterFrame = function () {
if (enemy_move(this, (random(2) * 2) - 1, -10)) {
delete this.onEnterFrame;
this.gotoAndStop("die" + (random(3) + 4));
}
};
} else {
this.gotoAndStop("die" + (random(3) + 1));
play_soundAction("\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1), false);
delete this.onEnterFrame;
}
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
}
}
};
_local2.shootAction = function (what, dir) {
var _local2 = (this.targeter._x - this._x) / 55;
_local2 = _local2 * (0.9 + (Math.random() / 10));
if (Math.abs(_local2) > (8 + (game_diff_level * 2))) {
_local2 = ((8 + (game_diff_level * 2)) * Math.abs(_local2)) / _local2;
}
enemy_shootAction(this, "\u654C\u4EBA_\u624B\u96F7", undefined, "\u624B\u96F7\u7206\u70B8", false, 0, _local2, -7, 0, 5).rotate_me = 15;
};
if (random(2)) {
_local2.stand();
} else {
_local2.come();
}
return(_local2);
}
function enemysAction25(who, x, y, xscale) {
var _local2 = blocksAction(who, x, y, 1, 10, true, 10);
_local2.man_out = false;
_local2.check_come = function () {
this.gotoAndStop("n1");
this.onEnterFrame = function () {
var _local2 = get_distance(this, this.targeter);
if ((_local2 < 200) and (!random(300 - (game_diff_level * 100)))) {
delete this.beatAction;
this.come_out();
}
};
};
_local2.come_out = function () {
this.gotoAndStop("come");
this.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
var _local2 = (this._x - this.targeter._x) + 0.015;
var _local3 = Math.abs(_local2) / _local2;
enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 3, this._y - 59, -1, "stand", 100 * _local3);
this.man_out = true;
this.gotoAndStop("n1");
delete this.onEnterFrame;
}
};
};
_local2.beatAction = function () {
this.come_out();
delete this.beatAction;
};
_local2.dieEvents = function () {
if (!this.man_out) {
enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 3, this._y - 59, -1, "stand", 100).to_die("blow", 10);
}
};
_local2.check_come();
return(_local2);
}
function enemysAction26(who, x, y, moves, xscale) {
var _local2 = add_enemyAction(who, x, y, 25, xscale);
_local2.speed = -5 - game_diff_level;
_local2.moves = moves;
_local2.enemy_type = 1;
_local2.can_jump = true;
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.stand = function () {
if (this.moves >= 0) {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.targeter.live) {
var _local2 = get_distance(this, this.targeter);
this.turn();
if (_local2 >= 590) {
this.move_me();
} else if ((_local2 > 65) and (_local2 < 590)) {
if (!random(30 - (game_diff_level * 10))) {
this.shoot();
} else if (!random(30)) {
this.move_me();
}
} else if (_local2 <= 65) {
if (random(2)) {
this.attack();
} else {
this.move_me();
}
}
}
};
} else {
this.move_me();
}
};
_local2.get_blocked = function () {
this.stand();
};
_local2.attack = function () {
this.gotoAndStop("kill");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
};
_local2.move_me = function () {
if (!this.hit_area) {
if (this.moves > 0) {
if (random(2)) {
this.gotoAndStop("walk");
this.move_speed = this.speed;
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if ((!random(40)) or this.hit_area) {
this.stand();
} else {
var _local2 = get_map_point(this)[0];
if (((this._xscale < 0) and (_local2 > 570)) or ((this._xscale > 0) and (_local2 < 20))) {
this.stand();
} else if (Math.abs(this._x - this.targeter._x) < 65) {
this.stand();
}
}
}
};
} else {
this.gotoAndStop("jump");
this.move_speed = this.speed;
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, -8)) {
this.stand();
}
};
}
} else if (this.moves < 0) {
this.gotoAndStop("walk");
this.move_speed = this.speed;
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
var _local2 = Math.abs(this._x - this.targeter._x);
if (this.hit_area) {
this.moves = Math.abs(this.moves);
this.stand();
} else if (Math.abs(get_map_point(this)[0] - 295) < 265) {
if ((!random(15)) or (_local2 < 65)) {
this.moves = Math.abs(this.moves);
this.stand();
}
this.turn();
}
}
};
}
}
};
_local2.shoot = function () {
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 295) < 295) and (Math.abs(_local2[1] - 200) < 200)) {
this.gotoAndStop("shoot");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
_local2.to_die = function (how, much) {
enemy_mankind_die(this, how, much, "blast", "blast", "die", "die", "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA102", "\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1));
};
_local2.shootAction = function () {
if (this._xscale == 100) {
var _local2 = 180;
} else if (this._xscale == -100) {
var _local2 = 0;
}
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 10, 0, 0, _local2, 5);
};
_local2.attackAction = function () {
enemy_killAction(this.mc.killer, this.targeter, "kill", 10, "\u5C0F\u52000" + (random(2) + 1), "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C");
};
_local2.stand();
return(_local2);
}
function enemysAction27(who, x, y, come, xscale) {
var _local2 = add_enemyAction(who, x, y, 90, xscale);
_local2.speed = -7 - game_diff_level;
_local2.come = come;
_local2.enemy_type = 1;
_local2.can_jump = true;
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.come_out = function () {
if (this.come == 0) {
this.gotoAndStop("idle");
this.mc.stop();
this.onEnterFrame = function () {
enemy_check_ground(this);
if (get_map_point(this)[0] < 550) {
this.mc.play();
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
delete this.in_air;
this.stand();
}
};
}
};
} else if (this.come == -1) {
this.gotoAndStop("run");
this.move_speed = this.speed;
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
var _local2 = Math.abs(this._x - this.targeter._x);
if (this.hit_area) {
this.moves = Math.abs(this.moves);
this.stand();
} else if (Math.abs(get_map_point(this)[0] - 295) < 265) {
if ((!random(15)) or (_local2 < 40)) {
this.moves = Math.abs(this.moves);
this.stand();
}
this.turn();
}
}
};
}
};
_local2.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
this.turn();
enemy_check_ground(this);
if (this.targeter.live) {
if (this.mc._currentframe == this.mc._totalframes) {
var _local2 = get_distance(this, this.targeter);
if (_local2 <= 40) {
this.move_me1();
} else if ((_local2 > 40) and (_local2 < 80)) {
this.move_me2();
} else {
this["move_me" + (random(2) + 3)]();
}
}
}
};
};
_local2.get_blocked = function () {
this.stand();
};
_local2.move_me1 = function () {
if (!this.hit_area) {
this.gotoAndStop("attack1");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
_local2.move_me2 = function () {
if (!this.hit_area) {
this.gotoAndStop("attack2");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
_local2.move_me3 = function () {
if (!this.hit_area) {
this.gotoAndStop("run");
this.move_speed = this.speed * 1.5;
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
return(undefined);
}
if (!random(50)) {
this.move_me4();
return(undefined);
}
var _local2 = get_distance(this, this.targeter);
if (_local2 < 100) {
this.gotoAndStop("attack3");
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, -7)) {
this.stand();
}
};
}
}
};
}
};
_local2.move_me4 = function () {
if (!this.hit_area) {
this.gotoAndStop("attack4");
this.move_speed = this.speed * 1.5;
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, -10)) {
this.stand();
}
};
}
};
_local2.to_die = function (how, much) {
enemy_mankind_die(this, how, much, "die", "die", "die", "die", "\u654C\u5175\u6B7B\u4EA10" + (random(2) + 1), "\u654C\u5175\u6B7B\u4EA10" + (random(2) + 1), "\u654C\u5175\u6B7B\u4EA102", "\u654C\u5175\u6B7B\u4EA10" + (random(2) + 1));
};
_local2.attackAction1 = function () {
enemy_killAction(this.mc.killer, this.targeter, "shoot", 12, "\u6253\u51FB\u58F0\u97F3", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C");
};
_local2.attackAction2 = function () {
enemy_killAction(this.mc.killer, this.targeter, "kill", 8, "\u5C0F\u52000" + (random(2) + 1), "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C");
};
_local2.come_out();
return(_local2);
}
function enemysAction28(who, frame, x, y, beat_all, moves, exist) {
if (exist or rollrock_exist) {
var _local2 = add_enemyAction(who, x, y, 15, 100);
_local2.enemy_type = 2;
_local2.move_speed = -3;
_local2.beat_count = 0;
_local2.frame = frame;
_local2.no_score = true;
if (frame == "rock1") {
_local2.can_move_targeter = 2;
} else if (frame == "rock2") {
_local2.can_move_targeter = 0.5;
}
delete rollrock_exist;
_local2.stand = function () {
this.gotoAndStop(this.frame);
this.onEnterFrame = function () {
enemy_check_ground(this);
};
};
_local2.move_me = function (temp_speed) {
if (this.frame == "rock1") {
rollrock_exist = true;
}
this.beat_count = 0;
this.temp_speed = temp_speed % 5;
this.onEnterFrame = function () {
this.temp_speed = this.temp_speed + 0.15;
enemy_move(this, this.temp_speed, 0);
if (this.mc != undefined) {
this.mc._rotation = this.mc._rotation + this.temp_speed;
shake_screen();
}
var _local2 = get_map_point(this)[0];
if ((_local2 < -300) or (_local2 > 690)) {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
};
};
_local2.to_die = function (how, much) {
var _local2 = ((2 * much) * Math.abs((this._x - this.targeter._x) + 0.005)) / ((this._x - this.targeter._x) + 0.005);
if (this.mc != undefined) {
this.mc._rotation = this.mc._rotation + _local2;
}
this.beat_count = this.beat_count + much;
if (this.beat_count < beat_all) {
enemy_move(this, _local2, 0);
} else {
this.move_me(_local2);
delete this.to_die;
}
};
_local2.stand();
return(_local2);
}
}
function enemysAction29(who, x, y, speed, target_pos, xscale) {
var _local2 = add_enemyAction(who, x, y, 25, xscale);
_local2.enemy_type = 1;
_local2.move_speed = speed;
_local2.man.stop();
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this.man._xscale == -100) {
this.man._xscale = 100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this.man._xscale == 100) {
this.man._xscale = -100;
}
}
};
_local2.come = function () {
play_soundAction("\u5361\u8F66\u5F00\u52A8", false);
this.onEnterFrame = function () {
this.w1._rotation = this.w1._rotation + 60;
this.w2._rotation = this.w2._rotation + 60;
enemy_move(this, this.move_speed, 0);
this.turn();
if (!this.car_moving) {
var _local2 = get_map_point(this)[0];
if ((this.move_speed > 0) and (_local2 > target_pos)) {
this.car_moving = 1;
} else if ((this.move_speed < 0) and (_local2 < target_pos)) {
this.car_moving = 1;
}
} else {
if (this.move_speed >= Math.abs(speed)) {
this.car_moving = -0.25;
this.man.gotoAndStop("shoot");
this.man.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
this.gotoAndStop("idle");
}
};
} else if (this.move_speed <= (-Math.abs(speed))) {
this.car_moving = 0.25;
}
this.move_speed = this.move_speed + this.car_moving;
if (get_map_point(this)[0] < -100) {
if (this.dieEvents != undefined) {
this.dieEvents();
}
this.removeMovieClip();
}
}
};
};
_local2.man.targeter = _local2.targeter;
_local2.man.shootAction = function () {
if (this._xscale == 100) {
var _local2 = 0;
} else if (this._xscale == -100) {
var _local2 = 180;
}
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 10, 0, 0, _local2, 5);
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood_mc == undefined) {
this.attachMovie("\u5C0F\u5200\u780D\u4EBA_\u6548\u679C", "blood_mc", this.getNextHighestDepth(), {_x:0, _y:-65});
}
shot_shine(this, "pink", 1);
if (this.blood <= 0) {
this.g.swapDepths(this.getNextHighestDepth());
this.g.removeMovieClip();
this.live = false;
delete this.man.onEnterFrame;
if (how == "elec") {
enemy_elec(this.man);
this.man.gotoAndStop("blast");
play_soundAction("\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), false);
} else if (how == "blow") {
this.man.gotoAndStop("blast");
play_soundAction("\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), false);
} else if (how == "fly") {
this.man.gotoAndStop("die");
play_soundAction("\u654C\u5175\u6B7B\u4EA102", false);
} else {
this.man.gotoAndStop("die");
play_soundAction("\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1), false);
}
this.onEnterFrame = function () {
if (this.move_speed > -10) {
this.move_speed = this.move_speed - 0.5;
}
enemy_move(this, this.move_speed, 0);
if (get_map_point(this)[0] < -50) {
this.removeMovieClip();
}
};
if (this.dieEvents != undefined) {
this.dieEvents();
}
}
};
_local2.come();
return(_local2);
}
function enemysAction30(who, x, y, come, xscale, posx) {
var _local2 = add_enemyAction(who, x, y, 40, xscale);
_local2.speed = -7 - game_diff_level;
_local2.come = come;
_local2.enemy_type = 1;
_local2.can_jump = true;
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.come_out = function () {
if (this.come == 2) {
this.gotoAndStop("come1");
this.move_speed = -5;
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if ((this._xscale > 0) and (get_map_point(this)[0] < posx)) {
this.leave();
} else if ((this._xscale < 0) and (get_map_point(this)[0] > posx)) {
this.leave();
}
}
};
} else if (this.come == 1) {
this.gotoAndStop("run");
this.move_speed = this.speed;
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if ((this._xscale > 0) and (get_map_point(this)[0] < posx)) {
this.stand();
} else if ((this._xscale < 0) and (get_map_point(this)[0] > posx)) {
this.stand();
}
}
};
}
};
_local2.leave = function () {
this.gotoAndStop("come2");
this.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
};
_local2.stand = function () {
if (random(2)) {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
this.turn();
enemy_check_ground(this);
if (this.targeter.live) {
if (this.mc._currentframe == this.mc._totalframes) {
this["move_me" + (random(3) + 1)]();
}
}
};
} else {
this.gotoAndStop("move");
this.move_speed = this.speed / 2;
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if (this.mc._currentframe == this.mc._totalframes) {
this["move_me" + (random(3) + 1)]();
}
}
};
}
};
_local2.get_blocked = function () {
this.stand();
};
_local2.move_me1 = function () {
if (!this.hit_area) {
this.gotoAndStop("attack1");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
_local2.move_me2 = function () {
if (!this.hit_area) {
this.gotoAndStop("attack2");
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, 0, -15)) {
this.stand();
return(undefined);
}
};
}
};
_local2.move_me3 = function () {
if (!this.hit_area) {
this.gotoAndStop("run");
this.move_speed = this.speed;
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
return(undefined);
}
if (!random(60)) {
this.move_me2();
return(undefined);
}
var _local2 = get_distance(this, this.targeter);
if (_local2 < 45) {
this.gotoAndStop("attack3");
this.onEnterFrame = function () {
enemy_move(this, 0, 0);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
}
};
}
};
_local2.to_die = function (how, much) {
enemy_mankind_die(this, how, much, "blast", "blast", "die", "die", "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA102", "\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1));
};
_local2.shootAction1 = function () {
if (this._xscale == 100) {
var _local2 = 180;
} else if (this._xscale == -100) {
var _local2 = 0;
}
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 6, 0, 0, _local2, 5);
};
_local2.shootAction2 = function (xspeed, yspeed) {
if (this._xscale == 100) {
var _local2 = enemy_shootAction(this, "\u654C\u4EBA_\u98DE\u9556", "\u5C0F\u5200\u51FA\u5200", "\u5C0F\u520004", false, 0, -xspeed, yspeed, temp_dir, 5);
} else if (this._xscale == -100) {
var _local2 = enemy_shootAction(this, "\u654C\u4EBA_\u98DE\u9556", "\u5C0F\u5200\u51FA\u5200", "\u5C0F\u520004", false, 0, xspeed, yspeed, temp_dir, 5);
}
_local2.land_angle = true;
_local2.rotate_me = 60;
};
_local2.attackAction = function () {
enemy_killAction(this.mc.killer, this.targeter, "kill", 8, "\u5C0F\u52000" + (random(2) + 1), "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C");
};
_local2.come_out();
return(_local2);
}
function enemysAction31(who, x, y, states, xscale) {
var _local2 = add_enemyAction(who, x, y, 5, xscale);
_local2.states = states;
_local2.enemy_type = 1;
_local2.can_jump = true;
_local2.gottcha = false;
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.attach_shooter = function () {
var _local4 = main.getNextHighestDepth();
var _local2 = main.attachMovie("\u654C\u4EBA_\u72D9\u51FB\u955C", "enemy_shoot" + _local4, _local4, {_x:this._x, _y:this._y});
_local2.targeter = this.targeter;
_local2.mother = this;
this.child = _local2;
_local2.onEnterFrame = function () {
var _local2 = 0;
if (Math.abs(this.targeter._x - this._x) > 5) {
this._x = this._x + ((this.targeter._x - this._x) / (30 - (game_diff_level * 5)));
} else {
_local2++;
}
if (Math.abs(this.targeter._y - this._y) > 5) {
this._y = this._y + ((this.targeter._y - this._y) / (30 - (game_diff_level * 5)));
} else {
_local2++;
}
if (_local2 == 2) {
this.mother.gottcha = true;
} else {
this.mother.gottcha = false;
}
if (this.mother._x == undefined) {
this.removeMovieClip();
}
};
};
_local2.fired_shooter = function () {
this.child.gotoAndStop("fired");
delete this.child.onEnterFrame;
this.gottcha = false;
};
_local2.remove_shooter = function () {
this.child.removeMovieClip();
this.gottcha = false;
};
_local2.stand = function () {
this.onEnterFrame = function () {
enemy_check_ground(this);
this.turn();
var _local3 = get_map_point(this);
var _local2 = Math.atan2(this.targeter._y - this._y, this.targeter._x - this._x) / 0.01745;
if (this.states == "crouch") {
if (_local2 > 90) {
_local2 = 180 - _local2;
}
if (_local2 < 15) {
this.gotoAndStop("c_shoot1");
} else if ((_local2 >= 15) and (_local2 < 45)) {
this.gotoAndStop("c_shoot2");
} else if ((_local2 >= 45) and (_local2 < 75)) {
this.gotoAndStop("c_shoot3");
} else if (_local2 >= 75) {
this.gotoAndStop("c_shoot4");
}
} else if (this.states == "grovel") {
this.gotoAndStop("g_shoot1");
}
if (this.gottcha) {
this.mc.play();
this.fired_shooter();
this.attach_shooter();
}
};
};
_local2.to_die = function (how, much) {
if (enemy_mankind_die(this, how, much, "blast", "blast", "die", "die", "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA10" + ((random(2) * 2) + 2), "\u654C\u5175\u6B7B\u4EA102", "\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1))) {
this.remove_shooter();
}
};
_local2.shootAction = function (dir) {
play_soundAction("\u8F7B\u578B\u67AA\u68B04", false);
play_soundAction("\u4E2D\u5F39" + (random(2) + 1), false);
player_die(this.targeter, "shoot", 5);
};
_local2.stand();
_local2.attach_shooter();
return(_local2);
}
function enemysAction32(who, x, y, come, xscale) {
var _local2 = add_enemyAction(who, x, y, 400, xscale);
_local2.speed = -8 - game_diff_level;
_local2.come = come;
_local2.enemy_type = 1;
_local2.can_jump = true;
_local2.angry = false;
_local2.laugh = false;
_local2.color_red = [1.62427778627887, 0.31279448895884, -0.937072275237711, 0, 0, -0.359370480911562, 1.14599275614927, 0.213377724762289, 0, 0, 0.524129519088438, -1.04570551104116, 1.52157599195272, 0, 0, 0, 0, 0, 1, 0];
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.come_out = function () {
if (this.come == 0) {
this.gotoAndStop("come");
this.mc.stop();
this.onEnterFrame = function () {
enemy_check_ground(this);
if (get_map_point(this)[0] <= 460) {
this.mc.play();
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
} else if (this.come == -1) {
this.gotoAndStop("run");
this.move_speed = this.speed;
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
var _local2 = Math.abs(this._x - this.targeter._x);
if (this.hit_area) {
this.moves = Math.abs(this.moves);
this.stand();
} else if (Math.abs(get_map_point(this)[0] - 295) < 265) {
if ((!random(15)) or (_local2 < 40)) {
this.moves = Math.abs(this.moves);
this.stand();
}
this.turn();
}
}
};
}
};
_local2.stand = function () {
this.gotoAndStop("stand1");
this.onEnterFrame = function () {
this.turn();
enemy_check_ground(this);
if (this.targeter.live) {
if (this.mc._currentframe == this.mc._totalframes) {
if (this.angry and (!this.laugh)) {
this.laughAction();
} else {
var _local2 = get_distance(this, this.targeter);
if (_local2 <= 40) {
if (random(3)) {
this.move_me1();
} else {
this.move_me5();
}
} else {
this["move_me" + (random(5) + 2)]();
}
}
}
}
};
};
_local2.get_blocked = function () {
this.stand();
};
_local2.laughAction = function () {
this.gotoAndStop("laugh");
change_color(this, this.color_red);
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.laugh = true;
this.stand();
}
};
};
_local2.move_me1 = function () {
this.gotoAndStop("attack1");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
};
_local2.move_me2 = function () {
this.gotoAndStop("run");
this.move_speed = this.speed;
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
return(undefined);
}
if (!random(30)) {
this.move_me3();
} else if (!random(30)) {
this.move_me5();
} else if (!random(30)) {
this.move_me6();
}
}
};
};
_local2.move_me3 = function () {
this.gotoAndStop("jump");
this.move_speed = this.speed * 1.5;
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, -13)) {
this.stand();
return(undefined);
}
if (!random(30)) {
delete this.yspeed;
this.move_me5();
} else if (!random(30)) {
delete this.yspeed;
this.move_me6();
}
};
};
_local2.move_me4 = function () {
this.gotoAndStop("attack2");
play_soundAction("\u529F\u592B_\u6CE2\u52A8\u62F3", false);
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
};
_local2.move_me5 = function () {
this.gotoAndStop("attack4_1");
play_soundAction("\u529F\u592B_\u65CB\u98CE\u817F", false);
shake_screen();
if (!this.angry) {
this.move_speed = this.speed;
this.y_speed = 0;
} else {
this.move_speed = this.speed * 2;
this.y_speed = -10 - random(5);
}
this.onEnterFrame = function () {
enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, this.y_speed);
if (this.mc._currentframe == this.mc._totalframes) {
this.gotoAndStop("attack4_2");
this.onEnterFrame = function () {
enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
};
_local2.move_me6 = function () {
this.gotoAndStop("attack3");
play_soundAction("\u529F\u592B_\u5347\u9F99\u62F3", false);
shake_screen();
this.move_speed = this.speed * 2;
this.onEnterFrame = function () {
if (this.mc._currentframe > 7) {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, -15)) {
this.stand();
}
}
};
};
_local2.to_die = function (how, much) {
if (enemy_mankind_die(this, how, much, "die", "die", "die", "die", "\u654C\u5175\u6B7B\u4EA10" + (random(2) + 1), "\u654C\u5175\u6B7B\u4EA10" + (random(2) + 1), "\u654C\u5175\u6B7B\u4EA102", "\u654C\u5175\u6B7B\u4EA10" + (random(2) + 1))) {
change_color(this, NM_ColorMatrix);
} else if (this.blood < get_enemy_blood(200)) {
this.angry = true;
}
if (this.healthbar != undefined) {
this.healthbar.check_health(this.blood, this.org_blood);
}
};
_local2.shootAction = function (what, dir) {
if (this._xscale == 100) {
var _local2 = dir;
} else if (this._xscale == -100) {
var _local2 = -(dir + 180);
}
enemy_shootAction(this, "\u51B2\u51FB\u6CE2", "\u5FC5\u6740\u97F3\u65481", "\u624B\u96F7\u7206\u70B8", 5, 5, 0, 0, _local2, 12).shoot_angle = true;
};
_local2.attackAction = function () {
if (enemy_killAction(this.mc.killer, this.targeter, "shoot", 15, "\u6253\u51FB\u58F0\u97F3", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C")) {
shake_screen();
}
};
_local2.come_out();
return(_local2);
}
function enemysAction33(who, x, y) {
var _local2 = add_enemyAction(who, x, y, 5, xscale);
_local2.enemy_type = 1;
_local2.attacked = 0;
_local2.stand = function () {
this.gotoAndStop("stand");
this.mc.stop();
this.onEnterFrame = function () {
if (this.attacked == 0) {
var _local2 = get_map_point(this);
if ((_local2[0] > 20) and (_local2[0] < 570)) {
if (enemy_killAction(this.hit, this.targeter, "kill", 3, "\u5438\u8840\u8349_\u653B\u51FB", "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C")) {
this.attacked = 1;
this.attack();
}
}
}
};
};
_local2.back = function () {
this.gotoAndStop("back");
if (this.attacked) {
this.attacked = 0;
this.targeter.caught = false;
}
this.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
};
_local2.attack = function () {
this.mc.play();
this.targeter.caught = true;
this.targeter.xspeed = 0;
this.targeter.yspeed = 0;
gotoFrame(this.targeter, "down", "stand");
this.onEnterFrame = function () {
this.targeter._x = this.targeter._x + ((this._x - this.targeter._x) / 5);
if (this.mc._currentframe == this.mc._totalframes) {
if (this.attacked == (1 + game_diff_level)) {
this.back();
} else {
this.gotoAndStop("attack");
this.attack_count = 0;
this.onEnterFrame = function () {
if ((++this.attack_count) == 75) {
this.attack_count = 0;
enemy_killAction(this.g, this.targeter, "kill", 3, "\u5438\u8840\u8349_\u653B\u51FB", "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C");
shot_shine(this, "red", 2);
if ((++this.attacked) >= (1 + game_diff_level)) {
this.back();
}
}
};
}
}
};
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
var _local2 = main.getNextHighestDepth();
var _local3 = main.attachMovie("\u5C0F\u5200\u780D\u4EBA_\u6548\u679C", "attack_effect" + _local2, _local2, {_x:get_shoot_point(this)[0], _y:get_shoot_point(this)[1] - 10});
_local3._xscale = this._xscale;
if (this.blood <= 0) {
this.live = false;
if (this.attacked) {
this.targeter.caught = false;
}
this.gotoAndStop("die");
play_soundAction("\u5438\u8840\u8349_\u6B7B\u4EA1", false);
delete this.onEnterFrame;
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
}
};
_local2.stand();
return(_local2);
}
function enemysAction34(who, x, y, color) {
var _local2 = add_enemyAction(who, x, y, 5, xscale);
_local2.speed = -4 - random(3);
_local2.enemy_type = 1;
_local2.in_air = true;
always_shine(_local2, color);
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.stand = function () {
this.gotoAndStop("move");
this.onEnterFrame = function () {
this.turn();
if (this.targeter.live) {
if (!random(20 - (game_diff_level * 5))) {
this.move_me();
}
}
};
};
_local2.move_me = function () {
if (!this.hit_area) {
this.gotoAndStop("move");
if (!random(3)) {
play_soundAction("\u868A\u866B1", false);
}
this.onEnterFrame = function () {
this.turn();
enemy_move(this, (this.speed * Math.abs(this._xscale)) / this._xscale, 0);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
return(undefined);
}
var _local2 = get_distance(this, this.targeter);
if (_local2 < 50) {
this.gotoAndStop("attack");
play_soundAction("\u868A\u866B1", false);
this.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
}
};
_local2.get_blocked = function () {
this.stand();
};
_local2.to_die = function (how, much) {
enemy_mankind_die(this, how, much, "die", "die", "die", "die", "\u868A\u866B2", "\u868A\u866B2", "\u868A\u866B2", "\u868A\u866B2");
};
_local2.attackAction = function () {
enemy_killAction(this.mc.killer, this.targeter, "kill", 5, "\u5C0F\u52000" + (random(2) + 1), "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C");
};
_local2.stand();
return(_local2);
}
function enemysAction35(who, x, y, moves, states, xscale) {
var _local2 = add_enemyAction(who, x, y, 30, xscale);
_local2.speed = -7 - game_diff_level;
_local2.moves = moves;
_local2.states = states;
_local2.enemy_type = 1;
_local2.attacking = false;
_local2.can_jump = true;
_local2.have_startAction = true;
_local2.turn = function () {
if (this._x < (this.targeter._x - 1)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 1)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.startAction = function () {
this.turn();
if (!this.attacking) {
if (this.states == "land") {
this.move_me1();
} else if (this.states == "water") {
this.move_me2();
}
}
};
_local2.stand = function () {
this.attacking = false;
if (this.states == "land") {
if (this.moves >= 0) {
this.gotoAndStop("stand1_" + (random(2) + 1));
this.onEnterFrame = function () {
if (this.targeter.live) {
var _local2 = get_distance(this, this.targeter);
if ((_local2 < 250) and ((this._xscale * (this._x - this.targeter._x)) >= 0)) {
this.moves = 1;
this.move_me1();
} else if (get_map_point(this)[0] < 0) {
this.startAction();
}
}
};
} else {
this.move_me1();
}
} else if (this.states == "water") {
this.in_water = true;
this.gotoAndStop("move2");
this.onEnterFrame = function () {
if (this.targeter.live) {
this.xspeed = ((-(random(3) + 3)) * Math.abs(this._xscale)) / this._xscale;
this.yspeed = 0;
if (((this._x + this.xspeed) > this.min_area_x) and ((this._x + this.xspeed) < this.max_area_x)) {
this._x = this._x + this.xspeed;
} else {
this._xscale = this._xscale * -1;
}
var _local2 = get_distance(this, this.targeter);
if ((_local2 < 150) and ((this._xscale * (this._x - this.targeter._x)) >= 0)) {
this.move_me2();
} else if (get_map_point(this)[0] < 0) {
this.startAction();
}
}
};
}
};
_local2.get_blocked = function () {
this.stand();
};
_local2.move_me1 = function () {
this.attacking = true;
this.onEnterFrame = function () {
var _local2 = get_distance(this, this.targeter);
if ((this._xscale * (this._x - this.targeter._x)) >= 0) {
if (_local2 <= 70) {
this.gotoAndStop("move1_2");
this.move_speed = this.speed;
enemy_move(this, ((-this.move_speed) * Math.abs(this._xscale)) / this._xscale, 0);
} else if ((_local2 > 70) and (_local2 < 120)) {
this.gotoAndStop("attack1");
this.onEnterFrame = function () {
enemy_move(this, 0, 0);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
} else {
this.gotoAndStop("move1_1");
this.move_speed = this.speed;
enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0);
}
} else {
this.moves = Math.abs(this.moves);
this.stand();
}
};
};
_local2.move_me2 = function () {
this.attacking = true;
this.still_count = 0;
this.onEnterFrame = function () {
var _local4 = get_distance(this, this.targeter);
if ((this._xscale * (this._x - this.targeter._x)) >= 0) {
if (((_local4 > 70) and (_local4 <= 120)) and (Math.abs(this.targeter._y - this._y) < 30)) {
this.gotoAndStop("attack2");
this.still_count = random(35);
} else {
if (this.mc._currentframe == this.mc._totalframes) {
if (random(2)) {
this.gotoAndStop("move2");
} else {
this.stand();
return(undefined);
}
}
if ((--this.still_count) < 0) {
var _local3 = this.targeter._x - (this._x - ((95 * Math.abs(this._xscale)) / this._xscale));
if (Math.abs(_local3) > 12) {
this.xspeed = (6 * Math.abs(_local3)) / _local3;
}
var _local2 = this.targeter._y - this._y;
if (Math.abs(_local2) > 8) {
this.yspeed = (4 * Math.abs(_local2)) / _local2;
}
}
}
if (((this._x + this.xspeed) > this.min_area_x) and ((this._x + this.xspeed) < this.max_area_x)) {
this._x = this._x + this.xspeed;
}
if (((this._y + this.yspeed) > this.min_area_y) and ((this._y + this.yspeed) < this.max_area_y)) {
this._y = this._y + this.yspeed;
}
this.xspeed = Math.round(this.xspeed * 95) / 100;
this.yspeed = Math.round(this.yspeed * 95) / 100;
} else {
this.stand();
}
};
};
_local2.to_die = function (how, much) {
this.startAction();
enemy_mankind_die(this, how, much, "die", "die", "die", "die", "\u9CC4\u9C7C1", "\u9CC4\u9C7C1", "\u9CC4\u9C7C1", "\u9CC4\u9C7C1");
};
_local2.attackAction = function () {
enemy_killAction(this.mc.killer, this.targeter, "kill", 12, "\u5C0F\u52000" + (random(2) + 1), "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C");
};
_local2.stand();
return(_local2);
}
function enemysAction36(who, typ, x, y, blood) {
var _local2 = add_enemyAction(who, x, y, blood, xscale);
_local2.typ = typ;
_local2.stand = function () {
this.gotoAndStop("stand" + this.typ);
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
if (this.typ == 1) {
play_soundAction("\u73BB\u7483\u7834\u788E", false);
} else if (this.typ == 2) {
play_soundAction("\u91CD\u578B\u67AA\u68B05", false);
}
this.gotoAndStop("die" + this.typ);
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else {
shot_shine(this, "white", 1);
}
};
_local2.attackAction = function () {
if (enemy_killAction(this.hit, this.targeter, "shoot", 20, "\u91CD\u578B\u67AA\u68B05", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C")) {
something_elec(this.targeter);
shake_screen();
}
};
_local2.stand();
return(_local2);
}
function enemysAction37(who, type, x, y, xscale) {
var _local2 = add_enemyAction(who, x, y, 0, xscale);
_local2.enemy_type = 2;
_local2.type = type;
_local2.no_score = true;
_local2.stand = function () {
this.gotoAndStop("stand" + this.type);
};
_local2.move_me = function (much) {
this["move_me" + this.type](much);
};
_local2.move_over = function () {
delete this.move_me;
delete this.onEnterFrame;
shake_screen();
this.overAction();
};
_local2.move_me1 = function (power) {
this.no_absorb = true;
this.no_damage = true;
this.can_move_targeter = 1;
this.move_power = power;
if (this.onEnterFrame == undefined) {
this.onEnterFrame = function () {
if (this.move_power > 0) {
if (this.step._x > -200) {
this.step._x = this.step._x - 2;
this.g._x = this.g._x - 2;
} else {
this.step._x = -200;
this.g._x = -190;
this.move_over();
}
enemy_move_things(this, this.targeter, -2, false);
} else if (this.move_power < -15) {
if (this.step._x < 0) {
this.step._x = this.step._x + 2;
this.g._x = this.g._x + 2;
} else {
this.step._x = 0;
this.g._x = 10;
}
enemy_move_things(this, this.targeter, 2, false);
}
this.move_power--;
};
}
};
_local2.move_me2 = function (power) {
this.move_power = power;
if (this.onEnterFrame == undefined) {
this.onEnterFrame = function () {
if (this.move_power > 0) {
if (this.step._x > -70) {
this.step._x = this.step._x - 1;
} else {
this.step._x = -70;
this.move_over();
}
} else if (this.move_power < -15) {
if (this.step._x < 0) {
this.step._x = this.step._x + (1 + game_diff_level);
} else {
this.step._x = 0;
}
}
this.move_power--;
};
}
};
_local2.move_me7 = function (power) {
if (this.onEnterFrame == undefined) {
shake_screen();
this.can_move_targeter = 1;
this.move_speed = (1 + game_diff_level) / 2;
this.onEnterFrame = function () {
if (this.beat_count <= 0) {
if (get_map_point(this)[0] < 375) {
enemy_move(this, this.move_speed, 0);
}
} else {
this.beat_count--;
}
if (enemy_killAction(this.g, this.targeter, "kill", 25, "\u5C0F\u52000" + (random(2) + 1), "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C")) {
shake_screen();
}
};
}
};
_local2.to_die = function (how, much) {
this.mc.play();
if (this.child != undefined) {
this.child.move_me(much);
}
if (this.sting != undefined) {
this.sting.move_me(much);
}
if (this.can_move_targeter) {
this.beat_count = 20;
enemy_move(this, -much, 0);
}
};
_local2.stand();
return(_local2);
}
function enemysAction38(who, x, y, typ) {
var _local7 = add_enemyAction(who, x, y, 100, 100);
_local7.enemy_type = 2;
_local7.no_score = true;
_local7.stand1 = function () {
this.gotoAndPlay("stand");
this.onEnterFrame = function () {
if ((this._currentframe > 28) and (this._currentframe < 50)) {
if (enemy_killAction(this.killer, this.targeter, "shoot", 15, "\u91CD\u578B\u67AA\u68B05", "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C")) {
something_elec(this.targeter);
shake_screen();
}
} else if (this._currentframe == 50) {
this.gotoAndPlay("shoot");
}
};
};
_local7.stand2 = function () {
this.gotoAndPlay("stand");
this.onEnterFrame = function () {
if ((this._currentframe > 28) and (this._currentframe < 50)) {
var _local3 = get_map_point(this.point1);
var _local6 = get_map_point(this.point2);
var _local2 = 0;
while (_local2 <= 5) {
var _local5 = _local3[0] + (((_local6[0] - _local3[0]) * _local2) / 5);
var _local4 = _local3[1] + (((_local6[1] - _local3[1]) * _local2) / 5);
if (this.targeter.g.hitTest(_local5, _local4, true)) {
if (player_die(this.targeter, "shoot", 15)) {
play_soundAction("\u91CD\u578B\u67AA\u68B05", false);
something_elec(this.targeter);
shake_screen();
}
break;
}
_local2++;
}
} else if (this._currentframe == 50) {
this.gotoAndPlay("shoot");
}
};
};
_local7.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
this.gotoAndStop("die");
play_soundAction("\u5927\u7206\u70B8", false);
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
} else {
shot_shine(this, "white", 1);
}
};
_local7["stand" + typ]();
return(_local7);
}
function enemysAction39(who, x, y, start_shoot, xscale) {
var _local3 = add_enemyAction(who, x, y, 30, xscale);
_local3.enemy_type = 2;
_local3.can_jump = true;
_local3.stand = function () {
this.gotoAndStop("stand");
this.shoot_count = 0;
this.onEnterFrame = function () {
if (player_shooting or start_shoot) {
this.onEnterFrame = function () {
if ((++this.shoot_count) == (50 - (game_diff_level * 10))) {
this.shoot_count = 0;
this.mc.play();
this.shootAction();
}
};
}
};
};
_local3.shootAction = function () {
play_soundAction("\u4E2D\u578B\u67AA\u68B05", false);
var _local4 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie("\u654C\u4EBA_\u7206\u70B8\u7403", "enemy_shoot" + _local4, _local4);
_local2.blood = get_enemy_blood(5);
_local2.no_score = true;
_local2._x = get_shoot_point(this.mc.point)[0];
_local2._y = get_shoot_point(this.mc.point)[1];
_local2.targeter = this.targeter;
_local2.xspeed = (-2 * this._xscale) / 100;
_local2.power = 12;
_local2.live = true;
_local2.get_blocked = function () {
this.xspeed = this.xspeed * -1;
};
_local2.get_explode = function () {
this.gotoAndStop("hit");
delete this.onEnterFrame;
play_soundAction("\u624B\u96F7\u7206\u70B8", false);
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.get_explode();
}
};
_local2.onEnterFrame = function () {
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 295) < 295) and (Math.abs(_local2[1] - 200) < 200)) {
enemy_move(this, this.xspeed, 0);
this.g._rotation = this.g._rotation + (this.xspeed * 5);
} else {
this.removeMovieClip();
return(undefined);
}
if (this.targeter.g.hitTest(this.g)) {
player_die(this.targeter, "shoot", this.power);
this.get_explode();
}
};
};
_local3.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
this.gotoAndStop("die");
play_soundAction("\u5927\u7206\u70B8", false);
if (this.dieEvents != undefined) {
this.dieEvents();
} else {
enemy_add_items(this);
}
} else {
shot_shine(this, "white", 1);
}
};
_local3.stand();
return(_local3);
}
function enemysAction40(who, x, y) {
var _local2 = add_enemyAction(who, x, y, 800, xscale);
_local2.enemy_type = 2;
_local2.xspeed = 0;
_local2.yspeed = 0;
_local2.target_x = x;
_local2.target_y = y;
_local2.move_count = 0;
_local2.in_air = true;
_local2.angry = 1;
_local2.animaitoner1 = function (frame1, frame2) {
if (this._currentframe == frame2) {
this.gotoAndPlay(frame1);
return(true);
}
return(false);
};
_local2.animaitoner2 = function (frame) {
if (this._currentframe == frame) {
return(true);
}
return(false);
};
_local2.moveAction = function (where) {
var _local3 = this.target_x - get_map_point(this)[0];
if (Math.abs(_local3) < 30) {
this.xspeed = Math.round(this.xspeed * 95) / 1000;
} else {
this.xspeed = ((this.angry * 3) * Math.abs(_local3)) / _local3;
}
var _local2 = this.target_y - get_map_point(this)[1];
if (Math.abs(_local2) < 30) {
this.yspeed = Math.round(this.yspeed * 975) / 1000;
} else {
this.yspeed = ((this.angry * 3) * Math.abs(_local2)) / _local2;
}
this._x = this._x + (this.xspeed + active_object_speed);
this._y = this._y + this.yspeed;
if ((++this.move_count) == 50) {
this.move_count = 0;
this.get_next_pos(where);
}
};
_local2.get_next_pos = function (where) {
if (where == 1) {
this.target_x = 210 + random(160);
if (this.angry == 1) {
this.target_y = 65 + random(20);
} else if (this.angry == 2) {
this.target_y = 160 + random(20);
}
} else if (where == 2) {
this.target_x = 210 + random(160);
this.target_y = -10 + random(20);
} else if (where == 3) {
this.target_x = 245 + random(90);
this.target_y = 180 + random(20);
} else if (where == 4) {
this.target_x = get_map_point(this.targeter)[0] + 100;
this.target_y = 140 + random(20);
} else if (where == 5) {
this.target_x = get_map_point(this.targeter)[0] - 75;
this.target_y = 140 + random(20);
}
};
_local2.move_me = function () {
this.gotoAndPlay("stand");
this.get_next_pos(1);
this.onEnterFrame = function () {
if (this.animaitoner1(1, 30)) {
this.select_attack();
return(undefined);
}
this.moveAction(1);
};
};
_local2.select_attack = function () {
if (this.blood > get_enemy_blood(300)) {
if (random(2)) {
this.shoot1();
} else if (this._x > this.targeter._x) {
this.attack1();
} else {
this.attack2();
}
} else if (random(3)) {
this.move_me();
} else if (random(3)) {
this.shoot2();
} else if (this._x > this.targeter._x) {
this.attack1();
} else {
this.attack2();
}
};
_local2.shoot1 = function () {
this.gotoAndPlay("shoot");
this.get_next_pos(2);
this.onEnterFrame = function () {
if (this.animaitoner2(124)) {
this.move_me();
return(undefined);
}
this.moveAction(2);
};
};
_local2.shoot2 = function () {
this.gotoAndPlay("stand");
this.get_next_pos(3);
this.shoot_count = 0;
this.onEnterFrame = function () {
if (this.animaitoner1(1, 30)) {
if ((++this.shoot_count) == 3) {
this.move_me();
return(undefined);
}
}
this.moveAction(3);
};
};
_local2.attack1 = function () {
this.gotoAndPlay("attack1");
this.get_next_pos(4);
this.onEnterFrame = function () {
if (this.animaitoner2(164)) {
this.move_me();
return(undefined);
}
this.moveAction(4);
};
};
_local2.attack2 = function () {
this.gotoAndPlay("attack2");
this.get_next_pos(5);
this.onEnterFrame = function () {
if (this.animaitoner2(204)) {
this.move_me();
return(undefined);
}
this.moveAction(5);
};
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.healthbar != undefined) {
this.healthbar.check_health(this.blood, this.org_blood);
}
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
this.gotoAndPlay("die");
shake_screen();
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else {
if (!random(3)) {
if (this.angry == 1) {
shot_shine(this, "white", 1);
} else if (this.angry == 2) {
shot_shine(this, "red", 1);
}
}
if (this.blood < get_enemy_blood(300)) {
this.angry = 2;
}
}
};
_local2.machinegun = function (where, dir) {
play_soundAction("\u8F7B\u578B\u67AA\u68B03", false);
enemy_shootAction(where, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", undefined, "\u4E2D\u5F39" + (random(2) + 1), false, 5, 0, 0, dir - 4, 5);
enemy_shootAction(where, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", undefined, "\u4E2D\u5F39" + (random(2) + 1), false, 6, 0, 0, dir, 5);
enemy_shootAction(where, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", undefined, "\u4E2D\u5F39" + (random(2) + 1), false, 5, 0, 0, dir + 4, 5);
};
_local2.backcanon1 = function (where, dir) {
if (this.angry == 2) {
play_soundAction("\u4E2D\u578B\u67AA\u68B05", false);
var _local2 = enemy_shootAction(this, "\u654C\u4EBA_\u7206\u70B8\u7403", undefined, "\u624B\u96F7\u7206\u70B8", 3, 0, dir * (random(4) + 1), -3, 0, 15);
var _local3 = main.getNextHighestDepth();
var _local4 = main.attachMovie("\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", "BOSS_\u5BFC\u5F39\u70DF\u96FE" + _local3, _local3, {_x:_local2._x, _y:_local2._y});
_local4._xscale = (100 * Math.abs(xspeed)) / xspeed;
}
};
_local2.backcanon2 = function (where) {
if (this.angry == 2) {
play_soundAction("\u5766\u514B\u5C04\u51FB", false);
var _local2 = enemy_shootAction(this, "\u5766\u514B_\u70AE\u5F39", undefined, "\u624B\u96F7\u7206\u70B8", false, 4, 0, 0, 70, 8 + random(5));
var _local5 = enemy_shootAction(this, "\u5766\u514B_\u70AE\u5F39", undefined, "\u624B\u96F7\u7206\u70B8", false, 4, 0, 0, 90, 8 + random(5));
var _local6 = enemy_shootAction(this, "\u5766\u514B_\u70AE\u5F39", undefined, "\u624B\u96F7\u7206\u70B8", false, 4, 0, 0, 110, 8 + random(5));
var _local3 = main.getNextHighestDepth();
var _local4 = main.attachMovie("\u4E3B\u89D2_\u5BFC\u5F39\u70DF\u96FE", "BOSS_\u5BFC\u5F39\u70DF\u96FE" + _local3, _local3, {_x:_local2._x, _y:_local2._y});
_local4._rotation = 90;
}
};
_local2.attackAction = function () {
enemy_killAction(this.killer, this.targeter, "shoot", 15, "\u6253\u51FB\u58F0\u97F3", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C");
};
_local2.move_me();
return(_local2);
}
function enemysAction41(who, x, y, blood, which) {
var _local2 = add_enemyAction(who, x, y, blood, 100);
_local2.enemy_type = 2;
_local2.definite = true;
_local2.stand = function () {
this.gotoAndStop("stand" + which);
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.live = false;
this.gotoAndStop("die");
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else {
shot_shine(this, "white", 1);
}
};
_local2.stand();
return(_local2);
}
function enemysAction42(who, x, y, moves, xscale) {
var _local2 = add_enemyAction(who, x, y, 8, xscale);
_local2.speed = -6 - game_diff_level;
_local2.moves = moves;
_local2.enemy_type = 1;
_local2.can_jump = true;
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.stand = function () {
if (this.moves >= 0) {
this.gotoAndStop("stand");
if (!random(10)) {
play_soundAction("\u5C0F\u9B3C_\u7AD9\u7ACB", false);
}
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.targeter.live) {
var _local2 = get_distance(this, this.targeter);
this.turn();
if (_local2 >= 590) {
this.move_me();
} else if ((_local2 > 40) and (_local2 < 590)) {
if (!random(25 - (game_diff_level * 5))) {
this.shoot();
} else if (!random(30)) {
this.move_me();
}
} else if (_local2 <= 40) {
this.attack();
}
}
};
} else {
this.move_me();
}
};
_local2.get_blocked = function () {
this.stand();
};
_local2.attack = function () {
this.gotoAndStop("kill");
play_soundAction("\u5C0F\u9B3C_\u653B\u51FB", false);
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
};
_local2.move_me = function () {
if (!this.hit_area) {
if (this.moves > 0) {
this.gotoAndStop("move");
this.move_speed = this.speed;
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if ((!random(40)) or this.hit_area) {
this.stand();
} else {
var _local2 = get_map_point(this)[0];
if (((this._xscale < 0) and (_local2 > 570)) or ((this._xscale > 0) and (_local2 < 20))) {
this.stand();
} else if (Math.abs(this._x - this.targeter._x) < 40) {
this.stand();
}
}
}
};
} else if (this.moves < 0) {
this.gotoAndStop("move");
this.move_speed = this.speed;
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
var _local2 = Math.abs(this._x - this.targeter._x);
if (this.hit_area) {
this.moves = Math.abs(this.moves);
this.stand();
} else if (Math.abs(get_map_point(this)[0] - 295) < 265) {
if ((!random(15)) or (_local2 < 40)) {
this.moves = Math.abs(this.moves);
this.stand();
}
this.turn();
}
}
};
}
}
};
_local2.shoot = function () {
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 295) < 295) and (Math.abs(_local2[1] - 200) < 200)) {
this.gotoAndStop("shoot");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
_local2.to_die = function (how, much) {
enemy_mankind_die(this, how, much, "blast", "blast", "die", "die", "\u5C0F\u9B3C_\u6B7B\u4EA1", "\u5C0F\u9B3C_\u6B7B\u4EA1", "\u5C0F\u9B3C_\u6B7B\u4EA1", "\u5C0F\u9B3C_\u6B7B\u4EA1");
};
_local2.shootAction = function (what, dir) {
if (this._xscale == 100) {
var _local3 = dir;
} else if (this._xscale == -100) {
var _local3 = -(dir + 180);
}
var _local2 = enemy_shootAction(this, "\u654C\u4EBA_\u6807\u67AA", "\u5C0F\u5200\u51FA\u5200", "\u5C0F\u520004", false, 0, -12 * (this._xscale / 100), -4, _local3, 5);
_local2.land_angle = true;
_local2.rotate_me = (-this._xscale) / 100;
};
_local2.attackAction = function () {
enemy_killAction(this.mc.killer, this.targeter, "kill", 8, "\u5C0F\u52000" + (random(2) + 1), "\u5C0F\u5200\u780D\u4EBA_\u6548\u679C");
};
_local2.stand();
return(_local2);
}
function enemysAction43(who, x, y, moves, xscale) {
var _local2 = add_enemyAction(who, x, y, 6, xscale);
_local2.speed = -6 - game_diff_level;
_local2.moves = moves;
_local2.enemy_type = 1;
_local2.can_jump = true;
_local2.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local2.stand = function () {
if (this.moves >= 0) {
this.gotoAndStop("stand");
if (!random(10)) {
play_soundAction("\u5C0F\u9B3C_\u7AD9\u7ACB", false);
}
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.targeter.live) {
var _local2 = get_distance(this, this.targeter);
this.turn();
if (_local2 >= 590) {
this.move_me();
} else if ((_local2 > 100) and (_local2 < 590)) {
if (!random(20 - (game_diff_level * 5))) {
this.shoot();
} else if (!random(80)) {
this.move_me();
}
} else if (_local2 <= 100) {
this.run_away();
}
}
};
} else {
this.move_me();
}
};
_local2.get_blocked = function () {
this.stand();
};
_local2.move_me = function () {
if (!this.hit_area) {
if (this.moves > 0) {
this.gotoAndStop("move");
this.move_speed = this.speed;
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
if ((!random(40)) or this.hit_area) {
this.stand();
} else {
var _local2 = get_map_point(this)[0];
if (((this._xscale < 0) and (_local2 > 570)) or ((this._xscale > 0) and (_local2 < 20))) {
this.stand();
} else if (Math.abs(this._x - this.targeter._x) < 100) {
this.stand();
}
}
}
};
} else if (this.moves < 0) {
this.gotoAndStop("move");
this.move_speed = this.speed;
this.onEnterFrame = function () {
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, 0)) {
var _local2 = Math.abs(this._x - this.targeter._x);
if (this.hit_area) {
this.moves = Math.abs(this.moves);
this.stand();
} else if (Math.abs(get_map_point(this)[0] - 295) < 265) {
if ((!random(15)) or (_local2 < 100)) {
this.moves = Math.abs(this.moves);
this.stand();
}
this.turn();
}
}
};
}
}
};
_local2.run_away = function () {
if (this._x < this.targeter._x) {
this._xscale = 100;
} else {
this._xscale = -100;
}
this.gotoAndStop("move");
this.flee = true;
this.onEnterFrame = function () {
enemy_move(this, (this.speed * Math.abs(this._xscale)) / this._xscale, 0);
if (!random(25)) {
this.stand();
} else {
var _local2 = get_map_point(this)[0];
if (((this._xscale < 0) and (_local2 > 570)) or ((this._xscale > 0) and (_local2 < 20))) {
this.stand();
}
}
};
};
_local2.shoot = function () {
var _local2 = get_map_point(this);
if ((Math.abs(_local2[0] - 295) < 295) and (Math.abs(_local2[1] - 200) < 200)) {
this.gotoAndStop("shoot");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
_local2.to_die = function (how, much) {
enemy_mankind_die(this, how, much, "blast", "blast", "die", "die", "\u5C0F\u9B3C_\u6B7B\u4EA1", "\u5C0F\u9B3C_\u6B7B\u4EA1", "\u5C0F\u9B3C_\u6B7B\u4EA1", "\u5C0F\u9B3C_\u6B7B\u4EA1");
};
_local2.shootAction = function (what, dir) {
if (this._xscale == 100) {
var _local2 = dir;
} else if (this._xscale == -100) {
var _local2 = -(dir + 180);
}
var _local4 = enemy_shootAction(this, "\u654C\u4EBA_\u5439\u9556", "\u5C0F\u9B3C_\u5439\u7BAD", "\u5C0F\u520004", false, 7, 0, 0, _local2, 5);
};
_local2.stand();
return(_local2);
}
function enemysAction44(who, x, y, xscale) {
var _local3 = add_enemyAction(who, x, y, 150, xscale);
_local3.speed = -6 - game_diff_level;
_local3.enemy_type = 1;
_local3.can_jump = true;
_local3.child_all = 15 + (game_diff_level * 10);
_local3.child_now = 0;
_local3.turn = function () {
if (this._x < (this.targeter._x - 5)) {
if (this._xscale == 100) {
this._xscale = -100;
}
} else if (this._x > (this.targeter._x + 5)) {
if (this._xscale == -100) {
this._xscale = 100;
}
}
};
_local3.stand = function () {
this.gotoAndStop("stand");
this.onEnterFrame = function () {
this.turn();
enemy_check_ground(this);
if (this.targeter.live) {
if (this.mc._currentframe == this.mc._totalframes) {
this["move_me" + (random(3) + 1)]();
}
}
};
};
_local3.get_blocked = function () {
this.stand();
};
_local3.move_me1 = function () {
if (!this.hit_area) {
this.gotoAndStop("kill");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
_local3.move_me2 = function () {
if (!this.hit_area) {
this.gotoAndStop("shoot");
this.onEnterFrame = function () {
enemy_check_ground(this);
if (this.mc._currentframe == this.mc._totalframes) {
this.stand();
}
};
}
};
_local3.move_me3 = function () {
if (!this.hit_area) {
this.gotoAndStop("jump");
this.move_speed = this.speed * 1.25;
this.onEnterFrame = function () {
this.turn();
if (enemy_move(this, (this.move_speed * Math.abs(this._xscale)) / this._xscale, -15)) {
this.stand();
}
};
}
};
_local3.summon = function () {
if (this.child_all > 0) {
if (this.child_now < (3 + game_diff_level)) {
this.child_all--;
this.child_now++;
var _local3 = random(4);
if (_local3 == 0) {
var _local4 = _root.enemysAction42("\u4E2D\u7ACB_\u5C0F\u77EE\u4EBA2", -_root.main._x, this._y, 1, 100);
} else if (_local3 == 1) {
var _local4 = _root.enemysAction42("\u4E2D\u7ACB_\u5C0F\u77EE\u4EBA2", (-_root.main._x) + 590, this._y, 1, -100);
} else if (_local3 == 2) {
var _local4 = _root.enemysAction43("\u4E2D\u7ACB_\u5C0F\u77EE\u4EBA1", -_root.main._x, this._y, 1, 100);
} else if (_local3 == 3) {
var _local4 = _root.enemysAction43("\u4E2D\u7ACB_\u5C0F\u77EE\u4EBA1", (-_root.main._x) + 590, this._y, 1, -100);
}
_local4.no_score = true;
_local4.mother = this;
_local4.dieEvents = function () {
this.mother.child_now--;
};
}
}
};
_local3.to_die = function (how, much) {
enemy_mankind_die(this, how, much, "blast", "blast", "die", "die", "\u5C0F\u9B3C_\u957F\u8001_\u6B7B\u4EA1", "\u5C0F\u9B3C_\u957F\u8001_\u6B7B\u4EA1", "\u5C0F\u9B3C_\u957F\u8001_\u6B7B\u4EA1", "\u5C0F\u9B3C_\u957F\u8001_\u6B7B\u4EA1");
};
_local3.shootAction = function (what, dir) {
if (this._xscale == 100) {
var _local2 = dir;
} else if (this._xscale == -100) {
var _local2 = -(dir + 180);
}
var _local4 = enemy_shootAction(this, "\u654C\u4EBA_\u957F\u8001\u9762\u5177", "\u5FC5\u6740\u97F3\u65482", "\u5BFC\u5F39\u7206\u70B8", false, 10, 0, 0, _local2, 15);
};
_local3.attackAction = function () {
enemy_killAction(this.mc.killer, this.targeter, "shoot", 8, "\u6253\u51FB\u58F0\u97F3", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C");
this.summon();
};
_local3.stand();
return(_local3);
}
function enemysAction45(who, x, y) {
var _local2 = add_enemyAction(who, x, y, 400, 100);
_local2.g1.blood = _local2.blood * 0.7;
_local2.g2.blood = (_local2.g3.blood = (_local2.g4.blood = _local2.blood * 0.1));
_local2.g1.active_moved = (_local2.g2.active_moved = (_local2.g3.active_moved = (_local2.g4.active_moved = true)));
_local2.g1.targeter = (_local2.g2.targeter = (_local2.g3.targeter = (_local2.g4.targeter = _local2.targeter)));
_local2.enemy_type = 2;
_local2.get_pos = false;
enemy_shake(_local2, 0.5, 1, true);
_local2.no_absorb = true;
_local2.no_damage = true;
_local2.stand = function () {
this.enemy_parts = 4;
this.g_broken = 0;
this.gotoAndStop("stand");
this.g1.canon.gotoAndStop("normal");
this.g2.gotoAndStop("stand");
this.g3.gotoAndStop("stand");
this.g4.gotoAndStop("stand");
this.g1.live = true;
this.g2.live = true;
this.g3.live = true;
this.g4.live = true;
this.yspeed = -6;
this.onEnterFrame = function () {
if (!this.get_pos) {
if (get_map_point(this)[1] > 290) {
this.get_pos = true;
delete this.no_absorb;
delete this.no_damage;
shot_shine(this, "yellow", 1);
}
} else if (this.yspeed > -10) {
this.yspeed = this.yspeed - 0.5;
} else {
this.yspeed = -10;
}
this._y = this._y + this.yspeed;
if (this.get_pos) {
this.check_canon_attack(this.g1);
this.check_man_attack(this.g2);
this.check_man_attack(this.g3);
this.check_man_attack(this.g4);
}
};
};
_local2.check_canon_attack = function (which) {
if (which.live) {
if (which._currentframe == 1) {
if (!random(80 - (game_diff_level * 20))) {
which.play();
}
}
}
};
_local2.check_man_attack = function (which) {
if (which.live) {
if (which._currentframe == 1) {
if (!random(40 - (game_diff_level * 10))) {
if (random(2)) {
which.gotoAndStop("s_shoot1");
} else {
which.gotoAndStop("s_throw");
}
which.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
this.gotoAndStop("stand");
delete this.onEnterFrame;
}
};
}
}
}
};
_local2.g1.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
play_soundAction("\u5927\u7206\u70B8", false);
this.canon.gotoAndStop("die");
this._name = this._name + "_broken";
this.live = false;
this._parent.to_die1();
} else {
shot_shine(this, "white", 1);
}
};
_local2.g1.shootAction = function () {
var _local2 = enemy_shootAction(this, "\u8FFD\u8E2A\u5BFC\u5F39", "\u91CD\u578B\u67AA\u68B01", "\u5BFC\u5F39\u7206\u70B8", 5, 0, -3, 3, 180, 12);
_local2.tracer = true;
_local2.accelerate = true;
};
_local2.g2.to_die = (_local2.g3.to_die = (_local2.g4.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood_mc == undefined) {
this.attachMovie("\u5C0F\u5200\u780D\u4EBA_\u6548\u679C", "blood_mc", this.getNextHighestDepth(), {_x:0, _y:(-who.g._height) / 2});
}
shot_shine(this, "pink", 1);
if (this.blood <= 0) {
play_soundAction("\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1), false);
delete this.onEnterFrame;
this.gotoAndStop("die" + (random(3) + 1));
this._name = this._name + "_broken";
this.live = false;
this._parent.to_die1();
}
}));
_local2.g2.shootAction = (_local2.g3.shootAction = (_local2.g4.shootAction = function (what, dir) {
if (what == "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39") {
enemy_shootAction(this, "\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", "\u8F7B\u578B\u67AA\u68B03", "\u4E2D\u5F39" + (random(2) + 1), false, 5, 0, 0, dir, 5);
} else if (what == "\u654C\u4EBA_\u624B\u96F7") {
var _local2 = (get_map_point(this.targeter)[0] - get_map_point(this)[0]) / 45;
_local2 = _local2 * (0.9 + (Math.random() / 10));
if (Math.abs(_local2) > (8 + (game_diff_level * 2))) {
_local2 = ((8 + (game_diff_level * 2)) * Math.abs(_local2)) / _local2;
}
enemy_shootAction(this, "\u654C\u4EBA_\u624B\u96F7", undefined, "\u624B\u96F7\u7206\u70B8", false, 0, _local2, -7, 0, 5).rotate_me = 15;
}
}));
_local2.to_die1 = function () {
this.g_broken++;
if (this.g_broken >= this.enemy_parts) {
this.blood = this.org_blood / 2;
delete this.enemy_parts;
delete this.g_broken;
this.g1_broken._name = "g1";
this.g1.live = true;
}
};
_local2.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.live = false;
delete this.onEnterFrame;
play_soundAction("\u5927\u7206\u70B8", false);
this.gotoAndStop("die");
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else if (!random(2)) {
shot_shine(this, "red", 1);
}
};
_local2.stand();
return(_local2);
}
function enemysAction46(who, x, y) {
var _local2 = add_enemyAction(who, x, y, 600, 100);
_local2.g1.blood = _local2.blood * 0.4;
_local2.g2.blood = (_local2.g3.blood = (_local2.g4.blood = _local2.blood * 0.2));
_local2.g1.active_moved = (_local2.g2.active_moved = (_local2.g3.active_moved = (_local2.g4.active_moved = true)));
_local2.g1.targeter = (_local2.fire.targeter = (_local2.g2.targeter = (_local2.g3.targeter = (_local2.g4.targeter = _local2.targeter))));
_local2.enemy_type = 2;
_local2.get_pos = false;
enemy_shake(_local2, 0.5, 1, true);
_local2.enemy_parts = 4;
_local2.g_broken = 0;
_local2.no_absorb = true;
_local2.no_damage = true;
_local2.stand = function () {
this.gotoAndStop("stand");
this.g1.gotoAndStop("normal");
this.g2.gotoAndStop("normal");
this.g3.gotoAndStop("normal");
this.g4.gotoAndStop("normal");
this.m1.gotoAndStop("stand");
this.m2.gotoAndStop("stand1");
this.m3.gotoAndStop("stand1");
this.g1.live = true;
this.g2.live = true;
this.g3.live = true;
this.g4.live = true;
this.yspeed = -6;
this.onEnterFrame = function () {
if (!this.get_pos) {
if (get_map_point(this)[1] > 290) {
this.get_pos = true;
delete this.no_absorb;
delete this.no_damage;
shot_shine(this, "yellow", 1);
}
} else if (this.yspeed > -10) {
this.yspeed = this.yspeed - 0.5;
} else {
this.yspeed = -10;
}
this._y = this._y + this.yspeed;
if (this.get_pos) {
this.check_canon_attack(this.g1);
this.check_gun_attack(this.g2);
this.check_gun_attack(this.g3);
this.check_gun_attack(this.g4);
}
};
};
_local2.check_canon_attack = function (which) {
if (which.live) {
if (this.fire._currentframe == 1) {
if (!random(80 - (game_diff_level * 15))) {
this.m1.gotoAndStop("s_kill");
play_soundAction("\u5FC5\u6740\u97F3\u65481", false);
this.m1.onEnterFrame = function () {
if (this.mc._currentframe == 20) {
this._parent.m2.gotoAndStop("shocked");
play_soundAction("\u58EB\u5175\u53D7\u60CA", false);
this._parent.m2.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
this.gotoAndStop("stand1");
delete this.onEnterFrame;
}
};
this._parent.m3.gotoAndStop("idle2");
this._parent.m3.onEnterFrame = function () {
if (this.mc._currentframe == this.mc._totalframes) {
this.gotoAndStop("stand1");
delete this.onEnterFrame;
}
};
} else if (this.mc._currentframe == this.mc._totalframes) {
this._parent.fire.play();
play_soundAction("\u6FC0\u5149\u70AE", false);
this._parent.fire.onEnterFrame = function () {
if (enemy_killAction(this, this.targeter, "shoot", 15, "\u6253\u51FB\u58F0\u97F3", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C")) {
shake_screen();
}
if (this._currentframe == this._totalframes) {
delete this.onEnterFrame;
}
};
this.gotoAndStop("stand");
delete this.onEnterFrame;
}
};
}
}
}
};
_local2.check_gun_attack = function (which) {
if (which.live) {
if (which.fire._currentframe == 1) {
if (!random(100 - (game_diff_level * 20))) {
which.fire.play();
}
}
}
};
_local2.g1.to_die = (_local2.g2.to_die = (_local2.g3.to_die = (_local2.g4.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
play_soundAction("\u5927\u7206\u70B8", false);
if (this._name == "g1") {
play_soundAction("\u654C\u5175\u6B7B\u4EA104", false);
delete this._parent.m1.onEnterFrame;
delete this._parent.m2.onEnterFrame;
delete this._parent.m3.onEnterFrame;
this._parent.m1.gotoAndStop("die");
this._parent.m2.gotoAndStop("die1");
this._parent.m3.gotoAndStop("die3");
}
this.gotoAndStop("die");
this._name = this._name + "_broken";
this.live = false;
this._parent.to_die();
} else {
shot_shine(this, "white", 1);
}
})));
_local2.g2.shootAction = (_local2.g3.shootAction = (_local2.g4.shootAction = function (py) {
this.point._y = py;
enemy_shootAction(this, "\u654C\u4EBA_\u706B\u7BAD_\u5B50\u5F39", "\u91CD\u578B\u67AA\u68B04", "\u4E2D\u5F39" + (random(2) + 1), 3, 0, -5 - random(5), -(5 + random(5)), 0, 5).rotate_me = 40;
}));
_local2.to_die = function () {
this.g_broken++;
if (this.g_broken >= this.enemy_parts) {
this.live = false;
delete this.onEnterFrame;
play_soundAction("\u5927\u7206\u70B8", false);
this.gotoAndStop("die");
if (this.dieEvents != undefined) {
this.dieEvents();
}
}
};
_local2.stand();
return(_local2);
}
function enemysAction47(who, x, y) {
var _local2 = add_enemyAction(who, x, y, 1000, 100);
_local2.g1.blood = (_local2.g2.blood = (_local2.g3.blood = (_local2.g4.blood = (_local2.g5.blood = (_local2.g6.blood = _local2.blood * 0.1)))));
_local2.r1.blood = (_local2.r2.blood = (_local2.r3.blood = (_local2.r4.blood = _local2.blood * 0.1)));
_local2.g1.active_moved = (_local2.g2.active_moved = (_local2.g3.active_moved = (_local2.g4.active_moved = (_local2.g5.active_moved = (_local2.g6.active_moved = true)))));
_local2.r1.active_moved = (_local2.r2.active_moved = (_local2.r3.active_moved = (_local2.r4.active_moved = true)));
_local2.g1.targeter = (_local2.g2.targeter = (_local2.g3.targeter = (_local2.g4.targeter = (_local2.g5.targeter = (_local2.g6.targeter = _local2.targeter)))));
_local2.r1.targeter = (_local2.r2.targeter = (_local2.r3.targeter = (_local2.r4.targeter = _local2.targeter)));
_local2.enemy_type = 2;
_local2.get_pos = false;
enemy_shake(_local2, 0.5, 1, true);
_local2.active_moved = true;
_local2.no_absorb = true;
_local2.no_damage = true;
_local2.stand1 = function () {
this.enemy_parts = 6;
this.g_broken = 0;
this.gotoAndStop("stand");
this.g1.gotoAndStop("normal");
this.g2.gotoAndStop("normal");
this.g3.gotoAndStop("normal");
this.g4.gotoAndStop("normal");
this.g5.gotoAndStop("normal");
this.g6.gotoAndStop("normal");
this.g1.live = true;
this.g2.live = true;
this.g3.live = true;
this.g4.live = true;
this.g5.live = true;
this.g6.live = true;
this.r1.gotoAndStop("normal");
this.r2.gotoAndStop("normal");
this.r3.gotoAndStop("normal");
this.r4.gotoAndStop("normal");
this.yspeed = -6;
this.onEnterFrame = function () {
if (!this.get_pos) {
if (get_map_point(this)[1] > 290) {
this.get_pos = true;
delete this.no_absorb;
delete this.no_damage;
shot_shine(this, "yellow", 1);
}
} else if (this.yspeed > -10) {
this.yspeed = this.yspeed - 0.5;
} else {
this.yspeed = -10;
}
this._y = this._y + this.yspeed;
if (this.get_pos) {
this.check_canon1_attack(this.g1);
this.check_canon1_attack(this.g2);
this.check_canon1_attack(this.g3);
this.check_canon2_attack(this.g4);
this.check_canon2_attack(this.g5);
this.check_canon2_attack(this.g6);
}
};
};
_local2.check_canon1_attack = function (which) {
if (which.live) {
if (which.fire._currentframe == 1) {
if (!random(150 - (game_diff_level * 25))) {
which.fire.play();
}
}
}
};
_local2.check_canon2_attack = function (which) {
if (which.live) {
if (which.fire._currentframe == 1) {
if (!random(200 - (game_diff_level * 30))) {
which.fire.play();
}
}
}
};
_local2.g1.to_die = (_local2.g2.to_die = (_local2.g3.to_die = (_local2.g4.to_die = (_local2.g5.to_die = (_local2.g6.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
play_soundAction("\u5927\u7206\u70B8", false);
this.gotoAndStop("die");
this._name = this._name + "_broken1";
this.live = false;
this._parent.to_die1();
} else {
shot_shine(this, "white", 1);
}
})))));
_local2.g1.shootAction = (_local2.g2.shootAction = (_local2.g3.shootAction = function (px, py) {
this.point._x = px;
this.point._y = py;
var _local3 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie("\u8DDF\u8E2A\u5BFC\u5F392", "\u8DDF\u8E2A\u5BFC\u5F392" + _local3, _local3, {_x:get_shoot_point(this.point)[0], _y:get_shoot_point(this.point)[1]});
_local2._rotation = -90;
enemy_tracerAction(this, _local2, this.targeter, 2, 2, 12);
}));
_local2.g4.shootAction = (_local2.g5.shootAction = (_local2.g6.shootAction = function (px, py) {
this.point._x = px + ((1 - (random(2) * 2)) * random(30));
this.point._y = py - random(50);
enemy_shootAction(this, "\u843D\u96E8\u5BFC\u5F39", undefined, "\u624B\u96F7\u7206\u70B8", 3, 2, 0, 0, 90, 12);
}));
_local2.stand2 = function () {
this.enemy_parts = 4;
this.g_broken = 0;
this.r1.gotoAndStop("normal");
this.r2.gotoAndStop("normal");
this.r3.gotoAndStop("normal");
this.r4.gotoAndStop("normal");
this.r1.live = true;
this.r2.live = true;
this.r3.live = true;
this.r4.live = true;
this.r1.xspeed = (1 - (random(2) * 2)) * (random(2) + 2);
this.r1.yspeed = (1 - (random(2) * 2)) * (random(2) + 2);
this.r2.xspeed = (1 - (random(2) * 2)) * (random(2) + 2);
this.r2.yspeed = (1 - (random(2) * 2)) * (random(2) + 2);
this.r3.xspeed = (1 - (random(2) * 2)) * (random(2) + 2);
this.r3.yspeed = (1 - (random(2) * 2)) * (random(2) + 2);
this.r4.xspeed = (1 - (random(2) * 2)) * (random(2) + 2);
this.r4.yspeed = (1 - (random(2) * 2)) * (random(2) + 2);
this.r1._name = "g1";
this.r2._name = "g2";
this.r3._name = "g3";
this.r4._name = "g4";
this.onEnterFrame = function () {
this._y = this._y + this.yspeed;
this.check_ball_attack(this.g1);
this.check_ball_attack(this.g2);
this.check_ball_attack(this.g3);
this.check_ball_attack(this.g4);
};
};
_local2.check_ball_attack = function (which) {
if (which.live) {
which._x = which._x + which.xspeed;
which._y = which._y + which.yspeed;
if (((which._x + which.xspeed) > 80) or ((which._x + which.xspeed) < -80)) {
which.xspeed = which.xspeed * -1;
which.shootAction();
shot_shine(which, "white", 1);
}
if (((which._y + which.yspeed) > -50) or ((which._y + which.yspeed) < -225)) {
which.yspeed = which.yspeed * -1;
which.shootAction();
shot_shine(which, "white", 1);
}
}
};
_local2.r1.to_die = (_local2.r2.to_die = (_local2.r3.to_die = (_local2.r4.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
play_soundAction("\u5927\u7206\u70B8", false);
this.gotoAndStop("die");
this._name = this._name + "_broken2";
this.live = false;
this._parent.to_die2();
} else {
shot_shine(this, "white", 1);
}
})));
_local2.r1.shootAction = (_local2.r2.shootAction = (_local2.r3.shootAction = (_local2.r3.shootAction = function () {
if (random(3)) {
var _local2 = -180 + ((1 - (random(2) * 2)) * random(45));
} else {
var _local2 = get_dir(this.targeter, this);
}
enemy_shootAction(this, "\u654C\u4EBA_\u6FC0\u5149\u675F", "\u5FC5\u6740\u97F3\u65482", "\u624B\u96F7\u7206\u70B8", 0, 8, 0, 0, _local2, 12);
})));
_local2.to_die1 = function () {
this.g_broken++;
if (this.g_broken >= this.enemy_parts) {
play_soundAction("\u5927\u7206\u70B8", false);
this.b1.play();
this.b2.play();
this.b1.onEnterFrame = function () {
this._x = this._x - 2;
this._parent.g1_broken1._x = this._parent.g1_broken1._x - 2;
this._parent.g2_broken1._x = this._parent.g2_broken1._x - 2;
this._parent.g3_broken1._x = this._parent.g3_broken1._x - 2;
this._y = this._y + 8;
this._parent.g1_broken1._y = this._parent.g1_broken1._y + 8;
this._parent.g2_broken1._y = this._parent.g2_broken1._y + 8;
this._parent.g3_broken1._y = this._parent.g3_broken1._y + 8;
if (this._y > 100) {
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
this._parent.g1_broken1.swapDepths(this._parent.getNextHighestDepth());
this._parent.g1_broken1.removeMovieClip();
this._parent.g2_broken1.swapDepths(this._parent.getNextHighestDepth());
this._parent.g2_broken1.removeMovieClip();
this._parent.g3_broken1.swapDepths(this._parent.getNextHighestDepth());
this._parent.g3_broken1.removeMovieClip();
}
};
this.b2.onEnterFrame = function () {
this._x = this._x + 2;
this._parent.g4_broken1._x = this._parent.g4_broken1._x + 2;
this._parent.g5_broken1._x = this._parent.g5_broken1._x + 2;
this._parent.g6_broken1._x = this._parent.g6_broken1._x + 2;
this._y = this._y + 8;
this._parent.g4_broken1._y = this._parent.g4_broken1._y + 8;
this._parent.g5_broken1._y = this._parent.g5_broken1._y + 8;
this._parent.g6_broken1._y = this._parent.g6_broken1._y + 8;
if (this._y > 100) {
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
this._parent.g4_broken1.swapDepths(this._parent.getNextHighestDepth());
this._parent.g4_broken1.removeMovieClip();
this._parent.g5_broken1.swapDepths(this._parent.getNextHighestDepth());
this._parent.g5_broken1.removeMovieClip();
this._parent.g6_broken1.swapDepths(this._parent.getNextHighestDepth());
this._parent.g6_broken1.removeMovieClip();
}
};
this.stand2();
}
};
_local2.to_die2 = function () {
this.g_broken++;
if (this.g_broken >= this.enemy_parts) {
this.live = false;
delete this.onEnterFrame;
play_soundAction("\u5927\u7206\u70B8", false);
this.gotoAndStop("die");
if (this.dieEvents != undefined) {
this.dieEvents();
}
}
};
_local2.stand1();
return(_local2);
}
function enemysAction48(who, x, y) {
var _local3 = add_enemyAction(who, x, y, 800, 100);
_local3.active_moved = true;
_local3.enemy_type = 2;
_local3.get_pos = false;
enemy_shake(_local3, 0.5, 1, true);
active_map_drawer.final_boss = _local3;
_local3.step_mc = active_map_drawer;
_local3.no_absorb = true;
_local3.no_damage = true;
_local3.always_on = true;
_local3.stand = function () {
this.gotoAndStop("stand");
this.yspeed = -6;
this.onEnterFrame = function () {
if (!this.get_pos) {
if (get_map_point(this)[1] > 185) {
this.get_pos = true;
delete this.no_absorb;
delete this.no_damage;
shot_shine(this, "yellow", 1);
this.check_laser_attack();
}
} else if (this.yspeed > -10) {
this.yspeed = this.yspeed - 0.5;
} else {
this.yspeed = -10;
}
this._y = this._y + this.yspeed;
if (this.get_player) {
this.targeter._y = this.targeter._y + this.yspeed;
}
if (this.get_pos) {
this.check_canon_attack(this);
}
};
};
_local3.check_laser_attack = function () {
this.laser.play();
shake_screen();
play_soundAction("\u6FC0\u5149\u70AE", false);
this.laser.onEnterFrame = function () {
if (this._currentframe == 15) {
active_map_drawer.gotoAndStop("die");
} else if (this._currentframe == this._totalframes) {
delete this.onEnterFrame;
}
if (enemy_killAction(this, this._parent.targeter, "shoot", 12, "\u6253\u51FB\u58F0\u97F3", "\u5C0F\u5200\u780D\u91D1\u5C5E_\u6548\u679C")) {
shake_screen();
}
};
};
_local3.check_canon_attack = function (which) {
if (which.live) {
if (which.point._currentframe == 1) {
if (!random(40 - (game_diff_level * 10))) {
which.point.play();
}
}
}
};
_local3.shootAction = function () {
shake_screen();
var _local3 = random(360);
var _local2 = 1;
while (_local2 <= 12) {
enemy_shootAction(this, "\u5766\u514B_\u70AE\u5F39", "\u5766\u514B\u5C04\u51FB", "\u624B\u96F7\u7206\u70B8", false, 6, 0, 0, _local3 + (30 * _local2), 12);
_local2++;
}
};
_local3.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.healthbar != undefined) {
this.healthbar.check_health(this.blood, this.org_blood);
}
if (this.blood <= 0) {
this.live = false;
this.onEnterFrame = function () {
shake_screen();
this._y = this._y + this.yspeed;
this.targeter._y = this.targeter._y + this.yspeed;
};
this.gotoAndStop("die");
if (this.dieEvents != undefined) {
this.dieEvents();
}
} else {
shot_shine(this, "white", 1);
}
};
_local3.stand();
return(_local3);
}
function get_enemy_blood(much) {
return((game_diff_level + 1) * much);
}
function add_enemyAction(who, px, py, blood, xscale) {
var _local2 = main.enemies.getNextHighestDepth();
var _local1 = main.enemies.attachMovie(who, who + _local2, _local2);
_local1.live = true;
_local1._x = px;
_local1._y = py;
_local1.blood = get_enemy_blood(blood);
_local1.org_blood = _local1.blood;
_local1.targeter = main.player;
_local1._xscale = xscale;
_local1.hit_ground = true;
return(_local1);
}
function enemy_shake(mc, speed, dir, with_me) {
if (mc.driver == undefined) {
mc.createEmptyMovieClip("driver", mc.getNextHighestDepth());
mc.driver.y_speed = speed;
mc.driver.y_dir = dir;
mc.driver.with_me = with_me;
mc.driver.onEnterFrame = function () {
if ((this.y_speed * this.y_dir) > speed) {
this.y_dir = this.y_dir * -1;
}
this.y_speed = this.y_speed + ((this.y_dir * speed) / 10);
this._parent._y = this._parent._y + this.y_speed;
if (this.with_me) {
for (var _local4 in main.enemies) {
var _local2 = main.enemies[_local4];
if (this._parent.hitTest(_local2._x + main._x, _local2._y + main._y, true)) {
_local2._y = _local2._y + this.y_speed;
}
}
for (var _local3 in main.others) {
var _local2 = main.others[_local3];
if (this._parent.hitTest(_local2._x + main._x, _local2._y + main._y, true)) {
_local2._y = _local2._y + this.y_speed;
}
}
}
};
}
}
function enemy_move(who, xspeed, yspeed) {
var _local7 = who._x + main._x;
var _local6 = (who._y + main._y) + 10;
var _local9 = (who._x + main._x) + xspeed;
var _local11 = (who._y + main._y) - 15;
var _local12 = _local9;
var _local10 = (who._y + main._y) - who._height;
var _local18 = who._x;
var _local19 = who._y;
if (!who.yspeed) {
who.yspeed = yspeed;
}
who.hit_head = false;
who.hit_ground = false;
if (!who.in_air) {
if (who.yspeed >= 0) {
for (var _local14 in main.enemies) {
if (main.enemies[_local14]._name != who._name) {
if (main.enemies[_local14].can_enemy_stand) {
if (main.enemies[_local14].g.hitTest(_local7, _local6, true)) {
who.hit_ground = true;
adjustY(who, main.enemies[_local14].g);
break;
}
}
}
}
if (!who.hit_ground) {
for (var _local13 in main.objects) {
if (main.objects[_local13].g.hitTest(_local7, _local6, true)) {
who.hit_ground = true;
adjustY(who, main.objects[_local13].g);
break;
}
}
}
if (!who.hit_ground) {
for (var _local15 in main.bg) {
if (main.bg[_local15].g.hitTest(_local7, _local6, true)) {
who.hit_ground = true;
adjustY(who, main.bg[_local15].g);
break;
}
}
}
if (who.hit_ground and who.change_rotation) {
var _local4 = who._width / 2;
if (who.xspeed > 0) {
for (var _local15 in main.bg) {
if (main.bg[_local15].hitTest((who._x + main._x) + (_local4 * Math.cos(who._rotation * 0.01745)), (who._y + main._y) + (_local4 * Math.sin(who._rotation * 0.01745)), true)) {
var _local5 = 0;
do {
if (!main.bg[_local15].g.hitTest((who._x + main._x) + (_local4 * Math.cos(who._rotation * 0.01745)), ((who._y + main._y) + (_local4 * Math.sin(who._rotation * 0.01745))) - 1, true)) {
break;
}
who._rotation--;
_local5++;
} while (_local5 <= 30);
_local5 = 0;
do {
if (main.bg[_local15].g.hitTest((who._x + main._x) + (_local4 * Math.cos(who._rotation * 0.01745)), ((who._y + main._y) + (_local4 * Math.sin(who._rotation * 0.01745))) + 1, true)) {
break;
}
who._rotation++;
_local5++;
} while (_local5 <= 30);
break;
}
}
} else {
for (var _local15 in main.bg) {
if (main.bg[_local15].hitTest((who._x + main._x) + (_local4 * Math.cos((who._rotation + 180) * 0.01745)), ((who._y + main._y) + (_local4 * Math.sin((who._rotation + 180) * 0.01745))) - 1, true)) {
var _local5 = 0;
do {
if (!main.bg[_local15].g.hitTest((who._x + main._x) + (_local4 * Math.cos((who._rotation + 180) * 0.01745)), ((who._y + main._y) + (_local4 * Math.sin((who._rotation + 180) * 0.01745))) - 1, true)) {
break;
}
who._rotation++;
_local5++;
} while (_local5 <= 30);
_local5 = 0;
do {
if (main.bg[_local15].g.hitTest((who._x + main._x) + (_local4 * Math.cos((who._rotation + 180) * 0.01745)), ((who._y + main._y) + (_local4 * Math.sin((who._rotation + 180) * 0.01745))) + 1, true)) {
break;
}
who._rotation--;
_local5++;
} while (_local5 <= 30);
break;
}
}
}
}
} else {
for (var _local15 in main.bg) {
if (main.bg[_local15].g.hitTest(_local12, _local10, true)) {
who.hit_head = true;
break;
}
}
}
} else {
who.hit_ground = true;
}
who.hit_blocks = false;
for (var _local15 in main.bg) {
if (main.bg[_local15].g.hitTest(_local9, _local11, true)) {
who.hit_blocks = true;
break;
}
}
who.hit_area = false;
if (who.hit_blocks) {
if (who.live) {
if (who.hit_ground) {
who.get_blocked();
}
}
} else {
if (who.hit_ground) {
var _local8 = xspeed;
} else {
var _local8 = xspeed / 2;
}
if (_local8 > 0) {
if ((who.max_area_x != undefined) and (!who.flee)) {
if ((who._x + _local8) < who.max_area_x) {
who._x = who._x + _local8;
} else {
who.hit_area = true;
}
} else {
who._x = who._x + _local8;
}
} else if (_local8 < 0) {
if ((who.min_area_x != undefined) and (!who.flee)) {
if ((who._x + _local8) > who.min_area_x) {
who._x = who._x + _local8;
} else {
who.hit_area = true;
}
} else {
who._x = who._x + _local8;
}
}
}
if (!who.hit_ground) {
if (who.hit_head) {
who.yspeed = Math.abs(who.yspeed);
}
if (!who.fly) {
who.yspeed = who.yspeed + 0.85;
if (!who.in_water) {
if (Math.abs(who.yspeed) > 15) {
who.yspeed = (15 * Math.abs(who.yspeed)) / who.yspeed;
}
} else if (Math.abs(who.yspeed) > 3) {
who.yspeed = (3 * Math.abs(who.yspeed)) / who.yspeed;
}
} else {
who.yspeed = 2;
}
who._y = who._y + who.yspeed;
} else {
delete who.yspeed;
}
if (who.active_moved) {
var _local16 = Math.abs(_root[(("stg_direct_" + stages) + "_") + stages_section]);
if (_local16 == 1) {
who._x = who._x + active_object_speed;
} else if (_local16 == 2) {
who._y = who._y + active_object_speed;
}
}
who.moved_xspeed2 = who._x - _local18;
who.moved_yspeed2 = who._y - _local19;
enemy_move_things(who, who.targeter, who.moved_xspeed2, who.hit_area);
var _local16 = this[(("stg_direct_" + stages) + "_") + stages_section];
if (Math.abs(_local16) != 2) {
if (!who.hit_ground) {
if (((who._y - who._height) + main._y) > 450) {
who.live = false;
if (who.dieEvents != undefined) {
who.dieEvents();
}
who.removeMovieClip();
}
}
}
return(who.hit_ground);
}
function enemy_shootAction(where, what, sound1, sound2, hitable, speed, xspeed, yspeed, rotate, power) {
play_soundAction(sound1, false);
if (hitable) {
var _local12 = main.enemies.getNextHighestDepth();
var _local4 = main.enemies.attachMovie(what, "enemy_shoot" + _local12, _local12);
_local4.blood = get_enemy_blood(hitable);
_local4.no_score = true;
} else {
var _local12 = main.getNextHighestDepth();
var _local4 = main.attachMovie(what, "enemy_shoot" + _local12, _local12);
}
if (where.mc.point != undefined) {
_local4._x = get_shoot_point(where.mc.point)[0];
_local4._y = get_shoot_point(where.mc.point)[1];
} else {
_local4._x = get_shoot_point(where.point)[0];
_local4._y = get_shoot_point(where.point)[1];
}
_local4.targeter = where.targeter;
_local4.speed = speed + game_diff_level;
_local4.xspeed = xspeed;
_local4.yspeed = yspeed;
if (where.active_moved) {
_local4.active_moved = 1;
} else {
_local4.active_moved = 0;
}
_local4._rotation = rotate;
_local4.power = power + (game_diff_level * 3);
_local4.get_blocked = function () {
if (this.land_angle) {
this.gotoAndStop("hit");
object_remove(this, 10);
delete this.onEnterFrame;
} else if (this.bounce) {
this._y = this._y - 10;
this.yspeed = this.yspeed * -0.6;
this.power = Math.round(this.power * 0.75);
} else {
if (!this.shoot_angle) {
this._rotation = 0;
}
this.gotoAndStop("hit");
delete this.onEnterFrame;
}
if ((Math.abs(this.yspeed) + Math.abs(this.xspeed)) > 2) {
play_soundAction(sound2, false);
}
};
_local4.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.get_blocked();
}
};
_local4.onEnterFrame = function () {
var _local9 = get_map_point(this);
if ((Math.abs(_local9[0] - 295) < 295) and (Math.abs(_local9[1] - 150) < 250)) {
if (speed != 0) {
this.xspeed = this.speed * Math.cos(this._rotation * 0.01745);
this.yspeed = this.speed * Math.sin(this._rotation * 0.01745);
} else {
if (this.accelerate) {
this.xspeed = this.xspeed * 1.05;
}
if (this.tracer) {
var _local5 = (this.targeter._y - 20) - this._y;
if (Math.abs(_local5) > 15) {
if (((_local5 > 0) and (this.yspeed < (_local5 / 30))) or ((_local5 < 0) and (this.yspeed > (_local5 / 30)))) {
this.yspeed = _local5 / 30;
}
}
} else {
this.yspeed = this.yspeed + 0.4;
}
if (this.rotate_me) {
this._rotation = this._rotation + this.rotate_me;
}
if (this.shade) {
var _local8 = this._parent.getNextHighestDepth();
var _local4 = this.duplicateMovieClip(this._name + _local8, _local8);
_local4._x = this._x;
_local4._y = this._y;
_local4._alpha = 75;
_local4.swapDepths(this);
_local4.stop();
_local4.onEnterFrame = function () {
this._alpha = this._alpha - 15;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
}
}
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (this.active_moved) {
var _local7 = Math.abs(_root[(("stg_direct_" + stages) + "_") + stages_section]);
if (_local7 == 1) {
this._x = this._x + active_object_speed;
} else if (_local7 == 2) {
this._y = this._y + active_object_speed;
}
}
} else {
this.removeMovieClip();
return(undefined);
}
for (var _local6 in main.bg) {
var _local3 = get_ground_hit(main.bg[_local6].g, _local9[0] + this.xspeed, _local9[1] + this.yspeed);
if (_local3 == -1) {
if (main["water_flower" + this._name] == undefined) {
main.attachMovie("\u843D\u6C34\u6548\u679C", "water_flower" + this._name, main.getNextHighestDepth(), {_x:this._x, _y:this._y});
if (this.yspeed > 0) {
always_shine(this, "blue");
} else {
always_shine(this, "normal");
}
}
play_soundAction("\u843D\u6C34", false);
break;
}
if (_local3 == 1) {
this.get_blocked();
break;
}
}
if (this.g != undefined) {
if (this.targeter.g.hitTest(this.g)) {
player_die(this.targeter, "shoot", this.power);
this.get_blocked();
}
} else {
_local9 = get_map_point(this);
if (this.targeter.g.hitTest(_local9[0], _local9[1], true)) {
player_die(this.targeter, "shoot", this.power);
this.get_blocked();
}
}
};
return(_local4);
}
function enemy_killAction(where, targeter, how, power, sound, effect) {
if (where.hitTest(targeter.g)) {
if (!targeter.injure) {
if (player_die(targeter, how, power + (game_diff_level * 3))) {
play_soundAction(sound, false);
var _local2 = main.getNextHighestDepth();
main.attachMovie(effect, "attack_effect" + _local2, _local2, {_x:targeter._x, _y:targeter._y - 30});
return(true);
}
}
}
return(false);
}
function enemy_tracerAction(where, tracer, targeter, speed, trace_max_rate, power) {
play_soundAction("\u91CD\u578B\u67AA\u68B01", false);
tracer.targeter = targeter;
tracer.speed = speed + game_diff_level;
tracer.trace_max_rate = trace_max_rate + game_diff_level;
if (where.active_moved) {
tracer.active_moved = 1;
} else {
tracer.active_moved = 0;
}
tracer.blood = get_enemy_blood(1);
tracer.trace_time = 150;
tracer.no_score = true;
tracer.get_blocked = function () {
this._rotation = 0;
this.gotoAndStop("hit");
play_soundAction("\u5BFC\u5F39\u7206\u70B8", false);
delete this.onEnterFrame;
};
tracer.to_die = function (how, much) {
this.blood = this.blood - much;
if (this.blood <= 0) {
this.get_blocked();
} else {
shot_shine(this, "white", 1);
}
};
tracer.onEnterFrame = function () {
var _local7 = Math.atan2((this.targeter._y - 35) - this._y, this.targeter._x - this._x) / 0.01745;
if (_local7 > 0) {
var _local5 = _local7;
} else {
var _local5 = _local7 + 360;
}
if (this._rotation > 0) {
var _local4 = this._rotation;
} else {
var _local4 = this._rotation + 360;
}
if ((--this.trace_time) > 0) {
var _local3 = trace_max_rate;
while (_local3 >= 0) {
if (Math.abs(_local5 - _local4) > _local3) {
if (_local5 > _local4) {
if ((_local5 - _local4) < 180) {
this._rotation = this._rotation + _local3;
} else {
this._rotation = this._rotation - _local3;
}
} else if (_local5 < _local4) {
if ((_local4 - _local5) < 180) {
this._rotation = this._rotation - _local3;
} else {
this._rotation = this._rotation + _local3;
}
}
break;
}
_local3--;
}
}
var _local6 = get_map_point(this);
if ((Math.abs(_local6[0] - 295) < 395) and (Math.abs(_local6[1] - 250) < 250)) {
this._x = this._x + (this.speed * Math.cos(this._rotation * 0.01745));
this._y = this._y + (this.speed * Math.sin(this._rotation * 0.01745));
if (this.active_moved) {
var _local8 = Math.abs(_root[(("stg_direct_" + stages) + "_") + stages_section]);
if (_local8 == 1) {
this._x = this._x + active_object_speed;
} else if (_local8 == 2) {
this._y = this._y + active_object_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.get_blocked();
break;
}
}
if (this.targeter.g.hitTest(_local6[0], _local6[1], true)) {
player_die(this.targeter, "shoot", power + (game_diff_level * 3));
this.get_blocked();
}
};
}
function enemy_add_items(where) {
if (!where.no_bonus) {
if (game_diff_level == 2) {
if (!random(30)) {
if (random(2)) {
add_food(where, "food" + (random(8) + 3));
} else {
add_weapon(where);
}
} else {
add_present(where, "pre" + (random(9) + 1));
}
} else if (game_diff_level == 1) {
if (!random(45)) {
if (random(2)) {
add_food(where, "food" + (random(6) + 2));
} else {
add_weapon(where);
}
} else {
add_present(where, "pre" + (random(7) + 1));
}
} else if (game_diff_level == 0) {
if (!random(60)) {
if (random(2)) {
add_food(where, "food" + (random(4) + 1));
} else {
add_weapon(where);
}
} else {
add_present(where, "pre" + (random(5) + 1));
}
}
}
}
function enemy_explode(who, time, power) {
var _local3 = event_delay(who, time, time + 1);
_local3.delay_Event1 = function () {
player_shooting = true;
for (var _local2 in main.enemies) {
var _local1 = get_map_point(main.enemies[_local2])[0];
if ((_local1 > 0) and (_local1 < 590)) {
if (main.enemies[_local2].g.hitTest(who)) {
main.enemies[_local2].to_die("blow", power);
}
}
}
};
_local3.delay_Event2 = function () {
player_shooting = false;
};
shake_screen();
}
function enemy_move_things(who, targeter, xspeed, area) {
if (who.can_move_targeter) {
if (who.just_move_targeter) {
targeter._x = targeter._x + (xspeed * who.can_move_targeter);
} else if ((!targeter.hit_ground) and (!targeter.hit_head)) {
var _local2 = get_map_point(targeter);
var _local4 = xspeed * who.can_move_targeter;
if (who.g.hitTest(_local2[0] - (2 * _local4), _local2[1], true)) {
var _local6 = true;
} else if (who.g.hitTest(_local2[0], _local2[1] + 5, true)) {
var _local6 = true;
} else {
var _local6 = false;
}
if (_local6) {
if (((_local2[0] + _local4) > 10) and ((_local2[0] + _local4) < 580)) {
targeter._x = targeter._x + (xspeed * who.can_move_targeter);
targeter.enemy_xspeed = xspeed * who.can_move_targeter;
} else {
targeter.enemy_xspeed = 0;
}
} else {
targeter.enemy_xspeed = 0;
}
}
if (active_map_drawer == who) {
active_object_speed = who.moved_xspeed2;
if (who.area_strict) {
player_min_x = who._x - who.area_strict;
player_max_x = who._x + who.area_strict;
}
}
if (area) {
who.enemy_limited_area_Action();
}
}
}
function enemy_check_ground(who) {
if (!who.in_air) {
var _local2 = get_map_point(who)[0];
if (Math.abs(_local2 - 295) < 345) {
enemy_move(who, 0, 0);
}
}
}
function enemy_mankind_die(who, how, much, f1, f2, f3, f4, s1, s2, s3, s4) {
who.blood = who.blood - much;
if (who.blood_mc == undefined) {
who.attachMovie("\u5C0F\u5200\u780D\u4EBA_\u6548\u679C", "blood_mc", who.getNextHighestDepth(), {_x:0, _y:(-who.g._height) / 2});
}
shot_shine(who, "pink", 1);
if (who.blood <= 0) {
who._visible = 1;
who.live = false;
delete who.onEnterFrame;
delete who.in_air;
delete who.fly;
if (how == "elec") {
something_elec(who);
who.gotoAndStop(f1);
play_soundAction(s1, false);
who.onEnterFrame = function () {
if (enemy_move(this, (3 * this._xscale) / 100, -6)) {
if (this.blowup_next == 3) {
this.gotoAndStop("die" + (random(3) + 1));
} else {
this.gotoAndStop("die");
}
delete this.onEnterFrame;
}
};
} else if (how == "blow") {
who.gotoAndStop(f2);
play_soundAction(s2, false);
who.onEnterFrame = function () {
if (enemy_move(this, (3 * this._xscale) / 100, -12)) {
if (this.blowup_next == 3) {
this.gotoAndStop("die" + (random(3) + 1));
} else {
this.gotoAndStop("die");
}
delete this.onEnterFrame;
}
};
} else if (how == "fly") {
who.gotoAndStop(f3);
play_soundAction(s3, false);
who.onEnterFrame = function () {
var _local2 = (-Math.abs(this.targeter._x - this._x)) / (this.targeter._x - this._x);
if (enemy_move(this, 20 * _local2, -10)) {
delete this.onEnterFrame;
}
};
} else {
who.gotoAndStop(f4);
play_soundAction(s4, false);
who.onEnterFrame = function () {
if (enemy_move(this, 0, 0)) {
delete this.onEnterFrame;
}
};
}
if (who.drop_weapon != undefined) {
who.drop_weapon();
}
if (who.get_ballute != undefined) {
who.get_ballute();
}
if (who.dieEvents != undefined) {
who.dieEvents();
} else {
enemy_add_items(who);
}
return(true);
}
if (who.moves != undefined) {
if (Math.abs(who.moves) >= 50) {
who.get_shocked();
}
}
return(false);
}
function enemy_team_die(team) {
for (var _local4 in team) {
team[_local4].my_team = team;
team[_local4].dieEvents = function () {
var _local2 = true;
for (var _local3 in this.my_team) {
if (this.my_team[_local3].live) {
_local2 = false;
break;
}
}
if (this.dieEvents1 != undefined) {
this.dieEvents1();
}
if (_local2) {
if (this.dieEvents2 != undefined) {
this.dieEvents2();
}
}
};
}
}
function blocksAction(my_name, px, py, lv_all, blood, explode, still_time) {
var _local3 = main.enemies.getNextHighestDepth();
var _local2 = main.enemies.attachMovie(my_name, my_name + _local3, _local3);
_local2.live = true;
_local2.targeter = main.player;
_local2._x = px;
_local2._y = py;
_local2.enemy_type = 2;
_local2.level_now = 1;
_local2.level_all = lv_all;
if (lv_all < 0) {
_local2.no_damage = true;
_local2.no_score = true;
}
_local2.blood_now = blood;
_local2.blood_all = blood;
_local2.explode = explode;
_local2.still_time = still_time;
_local2.stop();
_local2.can_enemy_stand = true;
_local2.definite = true;
_local2.exploding = function () {
enemy_explode(this, 5, 5);
};
_local2.to_die = function (how, much) {
if (this.mc != undefined) {
this.mc.play();
}
if (this.level_all > 0) {
this.blood_now = this.blood_now - much;
shot_shine(this, "red", 1);
if (this.blood_now <= 0) {
if (Math.abs(this.blood_now) >= (this.blood_all * (this.level_all - this.level_now))) {
object_die(this, this.still_time);
} else {
this.gotoAndStop("n" + (++this.level_now));
this.blood_now = this.blood_all;
}
} else if (this.beatAction != undefined) {
this.beatAction();
}
}
};
_local2.find_land = function () {
this.onEnterFrame = function () {
if (!this.in_air) {
enemy_check_ground(this);
} else {
delete this.onEnterFrame;
}
};
};
_local2.find_land();
return(_local2);
}
function object_die(which, still_time) {
which.gotoAndStop("die");
which.live = false;
if (which.explode) {
which.exploding();
}
if (which.dieEvents != undefined) {
which.dieEvents();
} else {
enemy_add_items(which);
}
object_remove(which, still_time);
}
this._lockroot = true;
loadingAction();
stop();
Stage.scaleMode = "noScale";
System.security.allowInsecureDomain("www.miniclip.com");
_level0.flashGameMasterDisableNet = true;
_level0.flashGameMasterDisableNetList = [game_score];
_root.swapDepths(2 << (random(6) + 10));
myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
this.menu = myMenu;
fscommand ("trapallkeys", true);
game_masked = true;
game_gun_locked = true;
game_testing = false;
game_powerup = false;
game_god = false;
Wcode = (org_Wcode = 87);
Scode = (org_Scode = 83);
Acode = (org_Acode = 65);
Dcode = (org_Dcode = 68);
Num4code = (org_Num4code = 100);
Num5code = (org_Num5code = 101);
Num6code = (org_Num6code = 102);
Num8code = (org_Num8code = 104);
Weapon_code1 = (org_Weapon_code1 = 81);
Weapon_code2 = (org_Weapon_code2 = 69);
Num7code = (org_Num7code = 103);
Num9code = (org_Num9code = 105);
Wcode_pressed = false;
Weapon_code1_pressed = false;
Weapon_code2_pressed = false;
game_music = true;
game_sounds = true;
game_quality = "MEDIUM";
_quality = "MEDIUM";
game_diff_level = 0;
game_score = 0;
stages = 1;
stages_section = 0;
specific_stage = undefined;
begining_section = 1;
level_passed_at_begining = 1;
game_save_file_num = 0;
game_player_name = "";
game_player_sex = 1;
game_stage_pass = 1;
game_show_hints = true;
game_player_weapons = [1, 15, 0, 0, 0, 0];
player_shooting = false;
player_life = 10;
weapon_sounds = [];
weapon_sounds[1] = ["\u5C0F\u5200\u51FA\u5200"];
weapon_sounds[2] = ["\u5C0F\u5200\u51FA\u5200"];
weapon_sounds[3] = ["\u6254\u624B\u96F7"];
weapon_sounds[4] = ["\u6254\u624B\u96F7"];
weapon_sounds[8] = ["\u6D88\u97F31"];
weapon_sounds[9] = ["\u6D88\u97F32"];
weapon_sounds[10] = ["\u6D88\u97F33"];
weapon_sounds[11] = ["\u6D88\u97F34"];
weapon_sounds[15] = ["\u8F7B\u578B\u67AA\u68B01"];
weapon_sounds[16] = ["\u8F7B\u578B\u67AA\u68B02"];
weapon_sounds[17] = ["\u8F7B\u578B\u67AA\u68B03"];
weapon_sounds[18] = ["\u8F7B\u578B\u67AA\u68B04"];
weapon_sounds[22] = ["\u673A\u67AA1"];
weapon_sounds[23] = ["\u673A\u67AA2"];
weapon_sounds[24] = ["\u673A\u67AA3"];
weapon_sounds[25] = ["\u673A\u67AA4"];
weapon_sounds[26] = ["\u673A\u67AA5"];
weapon_sounds[30] = ["\u5F13\u653B\u51FB1"];
weapon_sounds[31] = ["\u5F13\u653B\u51FB2"];
weapon_sounds[35] = ["\u4E2D\u578B\u67AA\u68B01"];
weapon_sounds[36] = ["\u4E2D\u578B\u67AA\u68B02"];
weapon_sounds[37] = ["\u4E2D\u578B\u67AA\u68B03"];
weapon_sounds[38] = ["\u4E2D\u578B\u67AA\u68B04"];
weapon_sounds[39] = ["\u4E2D\u578B\u67AA\u68B05"];
weapon_sounds[43] = ["\u91CD\u578B\u67AA\u68B01"];
weapon_sounds[44] = ["\u91CD\u578B\u67AA\u68B02"];
weapon_sounds[45] = ["\u91CD\u578B\u67AA\u68B03"];
weapon_sounds[46] = ["\u673A\u67AA7"];
weapon_sounds[47] = ["\u673A\u67AA8"];
weapon_sounds[51] = ["\u673A\u67AA6"];
weapon_sounds[52] = ["\u91CD\u578B\u67AA\u68B04"];
weapon_sounds[53] = ["\u91CD\u578B\u67AA\u68B05"];
weapon_sounds[54] = ["\u91CD\u578B\u67AA\u68B01"];
weapon_sounds[58] = ["\u91CD\u578B\u67AA\u68B06"];
weapon_sounds[59] = ["\u91CD\u578B\u67AA\u68B07"];
weapon_sounds[60] = ["\u673A\u67AA3"];
weapon_amr = [];
weapon_amr[1] = [1, 99999999, "Commando Knife"];
weapon_amr[2] = [1, 99999999, "Commando Sword"];
weapon_amr[3] = [1, 30, "Hand Grenade"];
weapon_amr[4] = [1, 40, "Flame Cocktail"];
weapon_amr[8] = [1, 99999999, "Barreti MC21"];
weapon_amr[9] = [2, 99999999, "Cult Commando w/ Silencer"];
weapon_amr[10] = [3, 99999999, "MC-5 Defender w/Silencer"];
weapon_amr[11] = [4, 99999999, "Desert Rat w/ Silencer"];
weapon_amr[15] = [1, 99999999, "Commando-P1"];
weapon_amr[16] = [2, 99999999, "Cult Commando"];
weapon_amr[17] = [3, 99999999, "MC-5 Defender"];
weapon_amr[18] = [4, 99999999, "Desert Rat"];
weapon_amr[22] = [1, 200, "SG-200"];
weapon_amr[23] = [1, 250, "Stingfire 220"];
weapon_amr[24] = [2, 250, "The Catcher"];
weapon_amr[25] = [3, 300, "MK-150"];
weapon_amr[26] = [6, 300, "MCP-Avenger"];
weapon_amr[30] = [1, 50, "Scorpion"];
weapon_amr[31] = [4, 50, "Logan-35"];
weapon_amr[35] = [4, 15, "PA-4514"];
weapon_amr[36] = [2, 25, "Poncho-25"];
weapon_amr[37] = [1, 40, "Ti-rex M30"];
weapon_amr[38] = [5, 30, "C25 Marrugo"];
weapon_amr[39] = [8, 25, "Dominator"];
weapon_amr[43] = [1, 30, "Nayberg NS30"];
weapon_amr[44] = [3, 25, "P25-Maisto"];
weapon_amr[45] = [5, 30, "SE-40 Prowse"];
weapon_amr[46] = [7, 300, "Glenos-G160"];
weapon_amr[47] = [9, 350, "TI Prescision"];
weapon_amr[51] = [10, 500, "Big Lester"];
weapon_amr[52] = [6, 35, "DA Moonshadow"];
weapon_amr[53] = [9, 40, "ALX W30"];
weapon_amr[54] = [11, 25, "Pequeno-R25"];
weapon_amr[58] = [12, 10, "Dragon Destructor"];
weapon_amr[59] = [13, 99999999, "Metal Driller"];
weapon_amr[60] = [13, 99999999, "Kee-Jerk Terminator"];
NM_ColorMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
BW_ColorMatrix = [0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0, 0, 0, 1, 0];
STR_ColorMatrix = [0.824697183686884, 0.783755772313774, -0.608452956000658, 0, -50, 0.000747695393677947, 0.772793422051606, 0.226458882554716, 0, -50, 0.641926894284263, -0.20214342598035, 0.560216531696088, 0, -50, 0, 0, 0, 1, 0];
shine_Transform_normal = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
shine_Transform_white = {ra:0, rb:255, ga:0, gb:255, ba:0, bb:255, aa:100, ab:0};
shine_Transform_pink = {ra:100, rb:100, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
shine_Transform_red = {ra:50, rb:185, ga:50, gb:-50, ba:50, bb:-255, aa:100, ab:0};
shine_Transform_blue = {ra:60, rb:0, ga:80, gb:0, ba:100, bb:128, aa:100, ab:0};
shine_Transform_yellow = {ra:0, rb:255, ga:0, gb:255, ba:0, bb:0, aa:100, ab:0};
shine_Transform_black = {ra:45, rb:0, ga:45, gb:0, ba:45, bb:0, aa:100, ab:0};
shine_Transform_dark = {ra:-255, rb:0, ga:-255, gb:0, ba:-255, bb:0, aa:100, ab:0};
map_array4_1 = [];
map_array4_1[0] = [19, 20, 21];
map_array4_1[1] = [18, 17, 16];
map_array4_1[2] = [13, 14, 15];
map_array4_1[3] = [12, 11, 10];
map_array4_1[4] = [7, 8, 9];
map_array4_1[5] = [6, 5, 4];
map_array4_1[6] = [1, 2, 3];
map_width_min4_1 = -1180;
map_width_max4_1 = 0;
map_height_min4_1 = -2400;
map_height_max4_1 = 0;
this.sound_objects = this.createEmptyMovieClip("sound_objects", this.getNextHighestDepth());
this.music_objects = this.createEmptyMovieClip("music_objects", this.getNextHighestDepth());
keycodes = [["A", 65], ["B", 66], ["C", 67], ["D", 68], ["E", 69], ["F", 70], ["G", 71], ["H", 72], ["I", 73], ["J", 74], ["K", 75], ["L", 76], ["M", 77], ["N", 78], ["O", 79], ["P", 80], ["Q", 81], ["R", 82], ["S", 83], ["T", 84], ["U", 85], ["V", 86], ["W", 87], ["X", 88], ["Y", 89], ["Z", 90], ["0", 48], ["1", 49], ["2", 50], ["3", 51], ["4", 52], ["5", 53], ["6", 54], ["7", 55], ["8", 56], ["9", 57], ["NUMBER 0", 96], ["NUMBER 1", 97], ["NUMBER 2", 98], ["NUMBER 3", 99], ["NUMBER 4", 100], ["NUMBER 5", 101], ["NUMBER 6", 102], ["NUMBER 7", 103], ["NUMBER 8", 104], ["NUMBER 9", 105], ["*", 106], ["+", 107], ["-", 109], [".", 110], ["/", 111][112], ["F2", 113], ["F3", 114], ["F4", 115], ["F5", 116], ["F6", 117], ["F7", 118], ["F8", 119], ["F9", 120], ["F11", 122], ["F12", 123][8], ["TAB", 9], ["ENTER", 13], ["SHIFT", 16], ["CONTROL", 17], ["CAPS LOCK", 20], ["ESC", 27], ["SPACE", 32], ["PAGE UP", 33], ["PAGE DOWN", 34], ["END", 35], ["HOME", 36], ["\u2190", 37], ["\u2191", 38], ["\u2192", 39], ["\u2193", 40], ["INSERT", 45], ["DELETE", 46], ["NUM LOCK", 144], ["SCRLK", 145], ["PAUSE/BREAK", 19], ["; :", 186], ["= +", 187], ["- _", 189], ["/ ?", 191], ["` ~", 192], ["[ {", 219], ["\\|", 220], ["] }", 221], ["\u201D \u2019", 222], [", <", 188], [". >", 190]];
Frame 7
gotoAndStop ("game_start");
Frame 17
gotoAndPlay(_currentframe - 1);
Frame 26
play_music("OP", true);
trace("BytesLoaded:" + this.getBytesLoaded());
Symbol 181 MovieClip [save_file] Frame 5
stop();
Symbol 181 MovieClip [save_file] Frame 9
stop();
Symbol 269 MovieClip Frame 1
var i = 1;
while (i <= 12) {
this["btn" + i].mc.gotoAndStop(i);
this["btn" + i].stage = i;
this["btn" + i].sel._visible = 0;
if (i <= 0) {
this["btn" + i].gotoAndStop(1);
this["btn" + i].onPress = function () {
this._y++;
};
this["btn" + i].onRelease = (this["btn" + i].onReleaseOutside = function () {
this._y--;
_root.shot_shine(this, "white", 2);
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39", false);
_root.stages = Math.round(this.stage % 4.05);
_root.game_diff_level = Math.floor(this.stage / 4.5);
var _local3 = 1;
while (_local3 <= 12) {
if (this._parent["btn" + _local3].sel._visible) {
this._parent["btn" + _local3].sel._visible = 0;
break;
}
_local3++;
}
this.sel._visible = 1;
});
} else {
this["btn" + i].gotoAndStop(2);
this["btn" + i].enabled = false;
}
i++;
}
if (_root.URL_lockAction()) {
if (_root.game_stage_pass <= 12) {
var last_btn = this["btn" + _root.game_stage_pass];
} else {
var last_btn = this.btn12;
}
} else {
var last_btn = this.btn1;
var j = 2;
while (j <= 12) {
this["btn" + j].gotoAndStop(2);
this["btn" + j].enabled = false;
j++;
}
}
last_btn.gotoAndStop(1);
last_btn.sel._visible = 1;
_root.stages = Math.round(last_btn.stage % 4.05);
_root.game_diff_level = Math.floor(last_btn.stage / 4.5);
Symbol 373 MovieClip Frame 1
mc.stop();
Symbol 378 MovieClip Frame 1
var i = 1;
while (i <= 9) {
this["tab" + i].gotoAndStop(i);
this["tab" + i].my_num = i;
this["tab" + i].onPress = function () {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39", false);
var _local3 = 1;
while (_local3 <= 9) {
this._parent["tab" + _local3]._alpha = 0;
_local3++;
}
this._alpha = 100;
_root.select_weapon(this._parent, this.my_num);
this.hint_mc.removeMovieClip();
};
if (i > 1) {
this["tab" + i]._alpha = 0;
}
i++;
}
_root.select_weapon(this, 1);
_root.show_player_weapon(this);
Symbol 388 MovieClip Frame 1
_root.control_able = false;
Symbol 388 MovieClip Frame 13
_root.next_scene();
Symbol 388 MovieClip Frame 25
_root.control_able = true;
_parent.removeMovieClip();
Symbol 421 MovieClip Frame 146
stop();
var ref = this;
congrats_screen.onRelease = function () {
ref.getURL("http://www.miniclip.com/games/commando-2/en/", "_blank");
};
playagain_btn.onRelease = function () {
trace("restart");
_root.clean_fire();
_root.gotoAndStop("game_start");
_parent.removeMovieClip();
};
Symbol 446 MovieClip Frame 1
stop();
Symbol 450 MovieClip Frame 1
_root.adjust_score(true, this, 0);
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 2
stop();
Symbol 484 MovieClip Frame 1
this._visible = 0;
this.cacheAsBitmap = true;
Symbol 583 MovieClip Frame 1
if (_root.game_player_sex == 1) {
player2.swapDepths(this.getNextHighestDepth());
player2.removeMovieClip();
player1.stop();
} else if (_root.game_player_sex == 2) {
player1.swapDepths(this.getNextHighestDepth());
player1.removeMovieClip();
player2.stop();
}
Symbol 583 MovieClip Frame 55
if (_root.game_player_sex == 1) {
player1.play();
} else if (_root.game_player_sex == 2) {
player2.play();
}
Symbol 583 MovieClip Frame 140
stop();
_parent.play();
Symbol 584 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 16
stop();
delete this.onPress;
Symbol 615 MovieClip [game_msg_box] Frame 1
bg.useHandCursor = false;
Symbol 615 MovieClip [game_msg_box] Frame 4
stop();
temp_sex = 1;
_root.change_color(player1, _root.NM_ColorMatrix);
_root.change_color(player2, _root.BW_ColorMatrix);
player1.onPress = function () {
temp_sex = 1;
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
_root.change_color(this, _root.NM_ColorMatrix);
_root.change_color(player2, _root.BW_ColorMatrix);
};
player2.onPress = function () {
temp_sex = 2;
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
_root.change_color(this, _root.NM_ColorMatrix);
_root.change_color(player1, _root.BW_ColorMatrix);
};
Key_Enter_pressed = false;
this.onEnterFrame = function () {
if (Key.isDown(13)) {
if (!Key_Enter_pressed) {
Key_Enter_pressed = true;
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
if (new_name.text == "") {
new_name.text = "Player" + random(99999);
}
if (_root.enter_user_name(this, new_name.text, temp_sex)) {
_parent.gotoAndStop("level_select");
this.removeMovieClip();
} else {
_root.notice_Action(" Please Enter Your Name ");
Selection.setFocus("new_name");
}
}
} else {
Key_Enter_pressed = false;
}
};
btn_ok.onRelease = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
if (new_name.text == "") {
new_name.text = "Player" + random(99999);
}
if (_root.enter_user_name(this._parent, new_name.text, temp_sex)) {
_parent.gotoAndStop("level_select");
this._parent.removeMovieClip();
} else {
_root.notice_Action(" Please Enter Your Name ");
Selection.setFocus("new_name");
}
};
btn_cancel.onRelease = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
this._parent.removeMovieClip();
};
Selection.setFocus("new_name");
Symbol 615 MovieClip [game_msg_box] Frame 6
bg.useHandCursor = false;
Symbol 615 MovieClip [game_msg_box] Frame 9
stop();
btn_ok.onRelease = function () {
_root.delete_playerAction(this._parent._parent);
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
this._parent.removeMovieClip();
};
btn_cancel.onRelease = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
this._parent.removeMovieClip();
};
Symbol 615 MovieClip [game_msg_box] Frame 11
bg.useHandCursor = false;
Symbol 615 MovieClip [game_msg_box] Frame 14
stop();
btn_ok.onRelease = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
if (btn_never._alpha == 100) {
if (_root.game_save_files(undefined, _root.game_player_name, _root.game_player_sex, _root.game_stage_pass, false)) {
_root.game_show_hints = false;
this._parent.removeMovieClip();
}
} else {
this._parent.removeMovieClip();
}
};
btn_never._alpha = 0;
btn_never.onRelease = function () {
_root.play_soundAction("\u624B\u67AA\u4E0A\u5B50\u5F39", false);
if (this._alpha == 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
};
Symbol 619 MovieClip Frame 1
this._visible = 0;
Symbol 621 MovieClip Frame 1
_parent._parent.up._y = _parent._y;
Symbol 621 MovieClip Frame 7
_parent._parent.up._y = _parent._y + 1;
Symbol 621 MovieClip Frame 13
_parent._parent.up._y = _parent._y + 2;
Symbol 621 MovieClip Frame 19
_parent._parent.up._y = _parent._y + 1;
Symbol 638 MovieClip Frame 1
_parent._parent.up._y = _parent._y + 1;
Symbol 638 MovieClip Frame 3
_parent._parent.up._y = _parent._y;
Symbol 638 MovieClip Frame 5
_parent._parent.up._y = _parent._y - 1;
Symbol 638 MovieClip Frame 7
_parent._parent.up._y = _parent._y;
Symbol 638 MovieClip Frame 9
_parent._parent.up._y = _parent._y + 1;
Symbol 638 MovieClip Frame 11
_parent._parent.up._y = _parent._y;
Symbol 638 MovieClip Frame 13
_parent._parent.up._y = _parent._y - 1;
Symbol 638 MovieClip Frame 15
_parent._parent.up._y = _parent._y;
Symbol 648 MovieClip Frame 1
_parent._parent.up._y = _parent._y + 11;
Symbol 648 MovieClip Frame 5
_parent._parent.up._y = _parent._y + 10;
Symbol 648 MovieClip Frame 9
_parent._parent.up._y = _parent._y + 9;
Symbol 648 MovieClip Frame 13
_parent._parent.up._y = _parent._y + 10;
Symbol 659 MovieClip Frame 1
stop();
_parent.states = "stand";
_parent.can_with = true;
_parent.g._yscale = 100;
_parent.up._y = this._y;
Symbol 659 MovieClip Frame 8
_parent.states = "stand";
_parent.can_with = true;
_parent.g._yscale = 100;
_parent.up._y = this._y;
Symbol 659 MovieClip Frame 15
_parent.states = "crouch";
_parent.can_with = true;
_parent.g._yscale = 75;
_parent.up._y = this._y + 10;
Symbol 659 MovieClip Frame 22
_parent.states = "crouch";
_parent.can_with = true;
_parent.g._yscale = 75;
_parent.up._y = this._y + 10;
Symbol 659 MovieClip Frame 29
_parent.states = "jump";
_parent.can_with = true;
_parent.g._yscale = 100;
_parent.up._y = this._y;
if (this.force_jump) {
_root.jump_Action(_parent, this.force_jump);
delete this.force_jump;
} else {
_root.jump_Action(_parent, -15);
}
Symbol 659 MovieClip Frame 37
_parent.states = "jump";
_parent.can_with = true;
_parent.g._yscale = 100;
_parent.up._y = this._y;
_root.jump_Action(_parent, 5);
Symbol 684 MovieClip Frame 1
stop();
Symbol 684 MovieClip Frame 8
_root.doing_attack1(this);
Symbol 703 MovieClip Frame 1
stop();
Symbol 703 MovieClip Frame 7
_root.doing_attack2(this);
Symbol 718 MovieClip Frame 1
stop();
Symbol 718 MovieClip Frame 6
_root.doing_attack3(_parent._parent._parent, _parent._rotation);
Symbol 723 MovieClip Frame 1
stop();
Symbol 723 MovieClip Frame 6
_root.doing_attack4(_parent._parent._parent, _parent._rotation);
Symbol 726 MovieClip Frame 1
stop();
Symbol 729 MovieClip Frame 1
stop();
Symbol 732 MovieClip Frame 1
stop();
Symbol 735 MovieClip Frame 1
stop();
Symbol 737 MovieClip Frame 1
stop();
Symbol 740 MovieClip Frame 1
stop();
Symbol 743 MovieClip Frame 1
stop();
Symbol 746 MovieClip Frame 1
stop();
Symbol 749 MovieClip Frame 1
stop();
Symbol 752 MovieClip Frame 1
stop();
Symbol 755 MovieClip Frame 1
stop();
Symbol 758 MovieClip Frame 1
stop();
Symbol 761 MovieClip Frame 1
stop();
Symbol 772 MovieClip Frame 1
stop();
Symbol 783 MovieClip Frame 1
stop();
Symbol 786 MovieClip Frame 1
stop();
Symbol 789 MovieClip Frame 1
stop();
Symbol 792 MovieClip Frame 1
stop();
Symbol 795 MovieClip Frame 1
stop();
Symbol 798 MovieClip Frame 1
stop();
Symbol 801 MovieClip Frame 1
stop();
Symbol 804 MovieClip Frame 1
stop();
Symbol 807 MovieClip Frame 1
stop();
Symbol 810 MovieClip Frame 1
stop();
Symbol 813 MovieClip Frame 1
stop();
Symbol 816 MovieClip Frame 1
stop();
Symbol 819 MovieClip Frame 1
stop();
Symbol 822 MovieClip Frame 1
stop();
Symbol 825 MovieClip Frame 1
stop();
Symbol 830 MovieClip Frame 1
stop();
Symbol 843 MovieClip Frame 1
stop();
Symbol 843 MovieClip Frame 3
_root.doing_attack1(this.killer);
Symbol 845 MovieClip Frame 1
stop();
Symbol 875 MovieClip Frame 1
r_arm._x = -8;
r_arm._y = -10;
l_arm._x = r_arm._x + 5;
l_arm._y = r_arm._y - 1;
Symbol 875 MovieClip Frame 2
r_arm._x = -5;
r_arm._y = -11;
l_arm._x = r_arm._x + 5;
l_arm._y = r_arm._y - 1;
Symbol 875 MovieClip Frame 3
r_arm._x = -3;
r_arm._y = -10;
l_arm._x = r_arm._x + 5;
l_arm._y = r_arm._y - 1;
Symbol 875 MovieClip Frame 4
r_arm._x = -1;
r_arm._y = -10;
l_arm._x = r_arm._x + 5;
l_arm._y = r_arm._y - 1;
Symbol 875 MovieClip Frame 5
r_arm._x = 0;
r_arm._y = -10;
l_arm._x = r_arm._x + 5;
l_arm._y = r_arm._y - 1;
Symbol 875 MovieClip Frame 6
r_arm._x = -2;
r_arm._y = -9;
l_arm._x = r_arm._x + 5;
l_arm._y = r_arm._y - 1;
Symbol 875 MovieClip Frame 7
r_arm._x = -2;
r_arm._y = -8;
l_arm._x = r_arm._x + 5;
l_arm._y = r_arm._y - 1;
Symbol 875 MovieClip Frame 8
r_arm._x = -2;
r_arm._y = -8;
l_arm._x = r_arm._x + 5;
l_arm._y = r_arm._y - 1;
Symbol 875 MovieClip Frame 9
r_arm._x = -2;
r_arm._y = -8;
l_arm._x = r_arm._x + 5;
l_arm._y = r_arm._y - 1;
Symbol 875 MovieClip Frame 10
r_arm._x = -2;
r_arm._y = -8;
l_arm._x = r_arm._x + 5;
l_arm._y = r_arm._y - 1;
Symbol 895 MovieClip Frame 31
stop();
Symbol 916 MovieClip Frame 33
stop();
Symbol 939 MovieClip Frame 26
stop();
Symbol 969 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 980 MovieClip Frame 11
_parent.removeMovieClip();
Symbol 981 MovieClip [落水效果] Frame 15
if (this.getDepth() > 0) {
this.removeMovieClip();
} else {
_parent.removeMovieClip();
}
Symbol 982 MovieClip [主角_子弹0] Frame 2
mc.gotoAndStop(frame);
stop();
Symbol 1012 MovieClip Frame 6
_parent.removeMovieClip();
Symbol 1013 MovieClip [主角_子弹1] Frame 2
mc.gotoAndStop(frame);
stop();
Symbol 1014 MovieClip Frame 1
this._visible = 0;
this.cacheAsBitmap = true;
Symbol 1041 MovieClip [主角_子弹3] Frame 23
this.removeMovieClip();
Symbol 1164 MovieClip Frame 10
_parent.numbers = 5;
Symbol 1164 MovieClip Frame 16
_parent.numbers = 10;
Symbol 1164 MovieClip Frame 22
_parent.numbers = 15;
Symbol 1164 MovieClip Frame 28
_parent.numbers = 20;
Symbol 1164 MovieClip Frame 34
_parent.numbers = 25;
Symbol 1164 MovieClip Frame 40
_parent.numbers = 30;
Symbol 1164 MovieClip Frame 46
_parent.numbers = 35;
Symbol 1164 MovieClip Frame 52
_parent.numbers = 40;
Symbol 1164 MovieClip Frame 58
_parent.numbers = 45;
Symbol 1164 MovieClip Frame 64
_parent.numbers = 50;
Symbol 1164 MovieClip Frame 73
_parent.numbers = 5;
Symbol 1164 MovieClip Frame 78
_parent.numbers = 10;
Symbol 1164 MovieClip Frame 86
_parent.numbers = 100;
Symbol 1164 MovieClip Frame 92
_parent.numbers = 150;
Symbol 1164 MovieClip Frame 98
_parent.numbers = 200;
Symbol 1164 MovieClip Frame 104
_parent.numbers = 250;
Symbol 1164 MovieClip Frame 110
_parent.numbers = 300;
Symbol 1164 MovieClip Frame 116
_parent.numbers = 500;
Symbol 1164 MovieClip Frame 122
_parent.numbers = 750;
Symbol 1164 MovieClip Frame 127
_parent.numbers = 1000;
Symbol 1164 MovieClip Frame 132
_parent.numbers = 1500;
Symbol 1185 MovieClip Frame 1
stop();
Symbol 1186 MovieClip Frame 1
_parent.show_score(5);
Symbol 1186 MovieClip Frame 4
_parent.show_score(4);
Symbol 1186 MovieClip Frame 7
_parent.show_score(3);
Symbol 1186 MovieClip Frame 10
_parent.show_score(2);
Symbol 1186 MovieClip Frame 13
_parent.show_score(1);
Symbol 1186 MovieClip Frame 66
_parent.show_score_over();
Symbol 1189 MovieClip [各种奖励] Frame 7
this.check_item();
Symbol 1189 MovieClip [各种奖励] Frame 13
stop();
ready = true;
Symbol 1189 MovieClip [各种奖励] Frame 23
this.removeMovieClip();
Symbol 1200 MovieClip [小刀砍人_效果] Frame 11
this.removeMovieClip();
Symbol 1223 MovieClip [主角_导弹烟雾] Frame 23
this.removeMovieClip();
Symbol 1250 MovieClip Frame 27
_parent.removeMovieClip();
Symbol 1251 MovieClip [主角_手雷1] Frame 1
stop();
Symbol 1251 MovieClip [主角_手雷1] Frame 5
this.exploding();
Symbol 1289 MovieClip Frame 31
stop();
_parent.removeMovieClip();
Symbol 1290 MovieClip [主角_子弹5] Frame 1
stop();
Symbol 1290 MovieClip [主角_子弹5] Frame 6
this.exploding();
Symbol 1290 MovieClip [主角_子弹5] Frame 12
this.exploding();
Symbol 1293 MovieClip [主角_子弹6] Frame 1
stop();
Symbol 1293 MovieClip [主角_子弹6] Frame 6
this.exploding();
Symbol 1293 MovieClip [主角_子弹6] Frame 12
this.exploding();
Symbol 1326 MovieClip Frame 1
_parent.exploding();
_root.play_soundAction("\u624B\u96F7\u7206\u70B8", false);
Symbol 1326 MovieClip Frame 5
_parent.exploding();
_root.play_soundAction("\u624B\u96F7\u7206\u70B8", false);
Symbol 1326 MovieClip Frame 10
_parent.exploding();
_root.play_soundAction("\u624B\u96F7\u7206\u70B8", false);
Symbol 1326 MovieClip Frame 39
_parent.removeMovieClip();
Symbol 1327 MovieClip [主角_子弹10] Frame 1
stop();
Symbol 1330 MovieClip [主角_子弹8] Frame 1
stop();
Symbol 1330 MovieClip [主角_子弹8] Frame 6
this.exploding();
Symbol 1330 MovieClip [主角_子弹8] Frame 13
this.exploding();
Symbol 1331 MovieClip Frame 1
_parent.exploding();
_root.play_soundAction("\u624B\u96F7\u7206\u70B8", false);
Symbol 1331 MovieClip Frame 5
_parent.exploding();
_root.play_soundAction("\u624B\u96F7\u7206\u70B8", false);
Symbol 1331 MovieClip Frame 35
_parent.removeMovieClip();
Symbol 1332 MovieClip [主角_手雷2] Frame 1
stop();
Symbol 1332 MovieClip [主角_手雷2] Frame 6
this.exploding();
Symbol 1336 MovieClip [主角_子弹2] Frame 1
mc.gotoAndStop(frame);
stop();
Symbol 1336 MovieClip [主角_子弹2] Frame 6
this.exploding();
Symbol 1336 MovieClip [主角_子弹2] Frame 12
this.exploding();
Symbol 1339 MovieClip [主角_子弹4] Frame 1
stop();
Symbol 1339 MovieClip [主角_子弹4] Frame 6
this.exploding();
Symbol 1339 MovieClip [主角_子弹4] Frame 12
this.exploding();
Symbol 1342 MovieClip [主角_子弹7] Frame 1
stop();
Symbol 1342 MovieClip [主角_子弹7] Frame 6
this.exploding();
Symbol 1342 MovieClip [主角_子弹7] Frame 13
this.exploding();
Symbol 1357 MovieClip Frame 29
_parent.gotoAndStop("walk");
Symbol 1359 MovieClip [主角_子弹9] Frame 1
stop();
Symbol 1359 MovieClip [主角_子弹9] Frame 6
can_go = true;
Symbol 1359 MovieClip [主角_子弹9] Frame 12
this.exploding();
Symbol 1359 MovieClip [主角_子弹9] Frame 19
this.exploding();
Symbol 1375 MovieClip [主角_子弹11] Frame 1
gotoAndPlay(random(4) + 1);
Symbol 1375 MovieClip [主角_子弹11] Frame 6
this.removeMovieClip();
Symbol 1378 MovieClip Frame 31
_parent.removeMovieClip();
Symbol 1379 MovieClip [主角_子弹12] Frame 1
stop();
Symbol 1379 MovieClip [主角_子弹12] Frame 6
this.exploding();
Symbol 1379 MovieClip [主角_子弹12] Frame 12
this.exploding();
Symbol 1388 MovieClip [小刀砍金属_效果] Frame 5
stop();
this.removeMovieClip();
Symbol 1421 MovieClip Frame 31
_parent.removeMovieClip();
Symbol 1422 MovieClip [主角_子弹13] Frame 1
stop();
Symbol 1422 MovieClip [主角_子弹13] Frame 6
this.exploding();
Symbol 1422 MovieClip [主角_子弹13] Frame 13
this.exploding();
Symbol 1423 MovieClip [player1] Frame 1
stop();
_root.gameControl02();
Symbol 1425 MovieClip Frame 1
_parent._parent.up._y = _parent._y;
Symbol 1425 MovieClip Frame 7
_parent._parent.up._y = _parent._y + 1;
Symbol 1425 MovieClip Frame 13
_parent._parent.up._y = _parent._y + 2;
Symbol 1425 MovieClip Frame 19
_parent._parent.up._y = _parent._y + 1;
Symbol 1442 MovieClip Frame 1
_parent._parent.up._y = _parent._y + 1;
Symbol 1442 MovieClip Frame 3
_parent._parent.up._y = _parent._y;
Symbol 1442 MovieClip Frame 5
_parent._parent.up._y = _parent._y - 1;
Symbol 1442 MovieClip Frame 7
_parent._parent.up._y = _parent._y;
Symbol 1442 MovieClip Frame 9
_parent._parent.up._y = _parent._y + 1;
Symbol 1442 MovieClip Frame 11
_parent._parent.up._y = _parent._y;
Symbol 1442 MovieClip Frame 13
_parent._parent.up._y = _parent._y - 1;
Symbol 1442 MovieClip Frame 15
_parent._parent.up._y = _parent._y;
Symbol 1452 MovieClip Frame 1
_parent._parent.up._y = _parent._y + 11;
Symbol 1452 MovieClip Frame 5
_parent._parent.up._y = _parent._y + 10;
Symbol 1452 MovieClip Frame 9
_parent._parent.up._y = _parent._y + 9;
Symbol 1452 MovieClip Frame 13
_parent._parent.up._y = _parent._y + 10;
Symbol 1463 MovieClip Frame 1
stop();
_parent.states = "stand";
_parent.can_with = true;
_parent.g._yscale = 100;
_parent.up._y = this._y;
Symbol 1463 MovieClip Frame 8
_parent.states = "stand";
_parent.can_with = true;
_parent.g._yscale = 100;
_parent.up._y = this._y;
Symbol 1463 MovieClip Frame 15
_parent.states = "crouch";
_parent.can_with = true;
_parent.g._yscale = 75;
_parent.up._y = this._y + 10;
Symbol 1463 MovieClip Frame 22
_parent.states = "crouch";
_parent.can_with = true;
_parent.g._yscale = 75;
_parent.up._y = this._y + 10;
Symbol 1463 MovieClip Frame 29
_parent.states = "jump";
_parent.can_with = true;
_parent.g._yscale = 100;
_parent.up._y = this._y;
if (this.force_jump) {
_root.jump_Action(_parent, this.force_jump);
delete this.force_jump;
} else {
_root.jump_Action(_parent, -15);
}
Symbol 1463 MovieClip Frame 37
_parent.states = "jump";
_parent.can_with = true;
_parent.g._yscale = 100;
_parent.up._y = this._y;
_root.jump_Action(_parent, 5);
Symbol 1486 MovieClip Frame 1
stop();
Symbol 1486 MovieClip Frame 5
_root.doing_attack1(this);
Symbol 1509 MovieClip Frame 1
stop();
Symbol 1509 MovieClip Frame 5
_root.doing_attack2(this);
Symbol 1524 MovieClip Frame 1
stop();
Symbol 1524 MovieClip Frame 6
_root.doing_attack3(_parent._parent._parent, _parent._rotation);
Symbol 1529 MovieClip Frame 1
stop();
Symbol 1529 MovieClip Frame 6
_root.doing_attack4(_parent._parent._parent, _parent._rotation);
Symbol 1532 MovieClip Frame 1
stop();
Symbol 1535 MovieClip Frame 1
stop();
Symbol 1538 MovieClip Frame 1
stop();
Symbol 1541 MovieClip Frame 1
stop();
Symbol 1543 MovieClip Frame 1
stop();
Symbol 1546 MovieClip Frame 1
stop();
Symbol 1549 MovieClip Frame 1
stop();
Symbol 1552 MovieClip Frame 1
stop();
Symbol 1555 MovieClip Frame 1
stop();
Symbol 1558 MovieClip Frame 1
stop();
Symbol 1561 MovieClip Frame 1
stop();
Symbol 1564 MovieClip Frame 1
stop();
Symbol 1567 MovieClip Frame 1
stop();
Symbol 1578 MovieClip Frame 1
stop();
Symbol 1589 MovieClip Frame 1
stop();
Symbol 1592 MovieClip Frame 1
stop();
Symbol 1595 MovieClip Frame 1
stop();
Symbol 1598 MovieClip Frame 1
stop();
Symbol 1601 MovieClip Frame 1
stop();
Symbol 1604 MovieClip Frame 1
stop();
Symbol 1607 MovieClip Frame 1
stop();
Symbol 1610 MovieClip Frame 1
stop();
Symbol 1613 MovieClip Frame 1
stop();
Symbol 1616 MovieClip Frame 1
stop();
Symbol 1619 MovieClip Frame 1
stop();
Symbol 1622 MovieClip Frame 1
stop();
Symbol 1625 MovieClip Frame 1
stop();
Symbol 1628 MovieClip Frame 1
stop();
Symbol 1631 MovieClip Frame 1
stop();
Symbol 1636 MovieClip Frame 1
stop();
Symbol 1645 MovieClip Frame 1
stop();
Symbol 1645 MovieClip Frame 3
_root.doing_attack1(this.killer);
Symbol 1646 MovieClip Frame 1
stop();
Symbol 1675 MovieClip Frame 1
r_arm._x = -4;
r_arm._y = -12;
l_arm._x = r_arm._x + 1;
l_arm._y = r_arm._y - 1;
Symbol 1675 MovieClip Frame 2
r_arm._x = -3;
r_arm._y = -11;
l_arm._x = r_arm._x + 1;
l_arm._y = r_arm._y - 1;
Symbol 1675 MovieClip Frame 3
r_arm._x = -2;
r_arm._y = -11;
l_arm._x = r_arm._x + 1;
l_arm._y = r_arm._y - 1;
Symbol 1675 MovieClip Frame 4
r_arm._x = -2;
r_arm._y = -10;
l_arm._x = r_arm._x + 1;
l_arm._y = r_arm._y - 1;
Symbol 1675 MovieClip Frame 5
r_arm._x = -2;
r_arm._y = -11;
l_arm._x = r_arm._x + 1;
l_arm._y = r_arm._y - 1;
Symbol 1675 MovieClip Frame 6
r_arm._x = -2;
r_arm._y = -10;
l_arm._x = r_arm._x + 1;
l_arm._y = r_arm._y - 1;
Symbol 1675 MovieClip Frame 7
r_arm._x = -2;
r_arm._y = -11;
l_arm._x = r_arm._x + 1;
l_arm._y = r_arm._y - 1;
Symbol 1675 MovieClip Frame 8
r_arm._x = -2;
r_arm._y = -9;
l_arm._x = r_arm._x + 1;
l_arm._y = r_arm._y - 1;
Symbol 1675 MovieClip Frame 9
r_arm._x = -2;
r_arm._y = -9;
l_arm._x = r_arm._x + 1;
l_arm._y = r_arm._y - 1;
Symbol 1675 MovieClip Frame 10
r_arm._x = -2;
r_arm._y = -9;
l_arm._x = r_arm._x + 1;
l_arm._y = r_arm._y - 1;
Symbol 1695 MovieClip Frame 31
stop();
Symbol 1712 MovieClip Frame 33
stop();
Symbol 1720 MovieClip Frame 26
stop();
Symbol 1721 MovieClip [player2] Frame 1
stop();
_root.gameControl02();
Symbol 1732 MovieClip Frame 1
this._visible = 0;
this.cacheAsBitmap = true;
Symbol 1801 MovieClip [敌人_运输卡车] Frame 1
if (!mine_visible) {
mine._visible = false;
}
Symbol 1801 MovieClip [敌人_运输卡车] Frame 60
stop();
Symbol 1821 MovieClip Frame 15
_parent.removeMovieClip();
Symbol 1822 MovieClip [奖励_木箱子] Frame 8
_root.play_soundAction("\u6728\u7BB1\u7834\u788E", false);
Symbol 1830 MovieClip [奖励_油桶] Frame 15
_root.play_soundAction("\u5927\u7206\u70B8", false);
Symbol 1833 MovieClip Frame 9
stop();
Symbol 1834 MovieClip [陷阱盖子] Frame 8
_root.play_soundAction("\u6728\u7BB1\u7834\u788E", false);
Symbol 1837 MovieClip Frame 1
this._visible = 0;
this.cacheAsBitmap = true;
Symbol 1838 MovieClip [奖励_隐藏宝物] Frame 8
this.removeMovieClip();
Symbol 1841 MovieClip Frame 31
stop();
_parent.removeMovieClip();
Symbol 1842 MovieClip [奖励_集装箱] Frame 7
_root.play_soundAction("\u624B\u96F7\u7206\u70B8", false);
Symbol 1846 MovieClip Frame 1
this._visible = 0;
this.cacheAsBitmap = true;
Symbol 1851 MovieClip [轰炸炸弹] Frame 1
stop();
Symbol 1882 MovieClip [德军_轰炸机] Frame 25
this.shootAction();
Symbol 1882 MovieClip [德军_轰炸机] Frame 99
stop();
Symbol 1894 MovieClip [clue_arrow] Frame 61
this.removeMovieClip();
Symbol 1897 MovieClip [check_bar] Frame 116
this.removeMovieClip();
Symbol 1919 MovieClip [boss_warning] Frame 1
_root.play_soundAction("BOSS\u8B66\u62A5", false);
Symbol 1919 MovieClip [boss_warning] Frame 31
_root.play_soundAction("BOSS\u8B66\u62A5", false);
Symbol 1919 MovieClip [boss_warning] Frame 61
_root.play_soundAction("BOSS\u8B66\u62A5", false);
Symbol 1919 MovieClip [boss_warning] Frame 80
this.final_event();
Symbol 1924 MovieClip Frame 1
this.gotoAndStop(_root.game_player_sex);
Symbol 1945 MovieClip Frame 1
stop();
Symbol 1972 MovieClip Frame 1
stop();
Symbol 1994 MovieClip Frame 1
stop();
Symbol 1997 MovieClip Frame 1
stop();
Symbol 2018 MovieClip Frame 1
stop();
Symbol 2021 MovieClip Frame 1
stop();
Symbol 2024 MovieClip Frame 1
stop();
Symbol 2032 MovieClip [game_intro] Frame 1
stop();
btn_play.onRelease = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
gotoAndStop ("player_select");
};
btn_option.onRelease = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
gotoAndStop ("options");
};
btn_help.onRelease = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
gotoAndStop ("help");
};
_root.noiser_this(this, 80, "temp");
if (!_root.LOCAL_lockAction()) {
gotoAndStop ("online");
}
Symbol 2032 MovieClip [game_intro] Frame 11
stop();
buttons.btn_next.onRelease = function () {
if (msg_box == undefined) {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
gotoAndStop ("level_select");
}
};
buttons.btn_back.onRelease = function () {
if (msg_box == undefined) {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
gotoAndStop ("index");
}
};
buttons.btn_new.onRelease = function () {
if (msg_box == undefined) {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
_root.create_new_player(this._parent._parent);
}
};
buttons.btn_delete.onRelease = function () {
if (msg_box == undefined) {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
_root.delete_player(this._parent._parent);
}
};
_root.noiser_this(this, 80, "temp");
_root.game_load_files(this);
Symbol 2032 MovieClip [game_intro] Frame 21
stop();
_root.set_current_key();
_root.set_current_options();
btn_back.onRelease = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
if (_root.check_correct() == "finish") {
if (_root.game_save_files(undefined, undefined, undefined, undefined, undefined)) {
_root.end_set_key();
gotoAndStop ("index");
}
}
};
btn_default.onRelease = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
_root.noiser_this(this._parent, 80, "temp");
_root.reset_org_options();
};
_root.noiser_this(this, 80, "temp");
Symbol 2032 MovieClip [game_intro] Frame 30
stop();
btn_back.onRelease = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
gotoAndStop ("index");
};
_root.noiser_this(this, 80, "temp");
Symbol 2032 MovieClip [game_intro] Frame 40
function loadTracker() {
trace("loadTracker");
var _local2 = new LoadVars();
var _local3 = new Date().getTime();
var _local1 = "http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/commando2_start/152645@x01?rnd=" + _local3;
trace(_local1);
_local2.sendAndLoad(_local1, _local2, "GET");
}
stop();
var ref = this;
btn_start.onRelease = function () {
trace("btn_start.onReleaser");
ref.loadTracker();
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
_root.default_weapons(inventory);
_root.gotoGame();
};
btn_back.onRelease = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
gotoAndStop ("player_select");
};
if (_root.game_show_hints) {
this.attachMovie("game_msg_box", "msg_box2", this.getNextHighestDepth()).gotoAndPlay("hints");
}
_root.noiser_this(this, 80, "temp");
Symbol 2032 MovieClip [game_intro] Frame 51
stop();
Symbol 2032 MovieClip [game_intro] Frame 62
stop();
_root.play_music("bgm_win", false);
Symbol 2032 MovieClip [game_intro] Frame 74
stop();
btn_again.onRelease = function () {
_root.game_score = 0;
_root.death_photo.dispose();
_root.clean_cache();
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
gotoAndStop ("level_select");
};
btn_submit.onRelease = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
_root.noiser_this(this._parent, 80, "temp");
Highscore.play();
};
_root.show_death_photo(photo);
_root.noiser_this(this, 80, "temp");
_root.play_music("bgm_lose", false);
Symbol 2032 MovieClip [game_intro] Frame 87
stop();
final_ani.onPress = function () {
this.play();
};
final_ani.useHandCursor = false;
btn_again.onRelease = function () {
_root.game_score = 0;
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
gotoAndStop ("index");
};
btn_submit.onRelease = function () {
_root.play_soundAction("\u8865\u5145\u5F39\u836F", false);
_root.noiser_this(this._parent, 80, "temp");
Highscore.play();
};
_root.noiser_this(this, 80, "temp");
Symbol 2046 MovieClip Frame 1
var temp_mc = _root.blocksAction("\u5956\u52B1_\u9690\u85CF\u5B9D\u7269", _parent._x + this._x, _parent._y + this._y, 1, 5, false, 0);
temp_mc.in_air = true;
temp_mc.can_enemy_stand = false;
temp_mc.no_shine = true;
temp_mc._visible = 0;
this.swapDepths(_parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 2100 MovieClip Frame 1
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", _parent._x + this._x, _parent._y + this._y, 99, 1 - random(4), "stand", this._xscale);
this.swapDepths(_parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 2240 MovieClip Frame 22
stop();
Symbol 2265 MovieClip Frame 25
gotoAndPlay (10);
Symbol 2290 MovieClip Frame 22
gotoAndPlay (10);
Symbol 2374 MovieClip Frame 15
_parent.attackAction();
Symbol 2393 MovieClip Frame 21
_parent.shootAction("\u654C\u4EBA_\u624B\u96F7", 0);
Symbol 2404 MovieClip Frame 15
_parent.shootAction("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", 180);
Symbol 2413 MovieClip Frame 14
_parent.shootAction("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", -163);
Symbol 2422 MovieClip Frame 14
_parent.shootAction("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", -124);
Symbol 2431 MovieClip Frame 14
_parent.shootAction("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", -90);
Symbol 2454 MovieClip Frame 14
_parent.shootAction("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", 180);
Symbol 2469 MovieClip Frame 24
_parent.shootAction("\u654C\u4EBA_\u624B\u96F7", 0);
Symbol 2506 MovieClip Frame 26
_parent.shootAction("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", 180);
Symbol 2525 MovieClip Frame 21
_parent.shootAction("\u654C\u4EBA_\u624B\u96F7", 0);
Symbol 2546 MovieClip Frame 10
_parent.shootAction();
Symbol 2546 MovieClip Frame 23
stop();
Symbol 2670 MovieClip Frame 51
stop();
_parent.removeMovieClip();
Symbol 2685 MovieClip Frame 59
stop();
_parent.removeMovieClip();
Symbol 2700 MovieClip Frame 55
stop();
_parent.removeMovieClip();
Symbol 2715 MovieClip Frame 22
gotoAndPlay (7);
Symbol 2723 MovieClip [敌人_枪械子弹] Frame 2
stop();
Symbol 2730 MovieClip [敌人_手雷] Frame 1
stop();
Symbol 2735 MovieClip [敌人_竹子武器] Frame 1
stop();
Symbol 2765 MovieClip Frame 10
_parent.shootAction("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", 180);
Symbol 2765 MovieClip Frame 22
_parent.shootAction("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", 180);
Symbol 2765 MovieClip Frame 34
_parent.shootAction("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", 180);
Symbol 2796 MovieClip Frame 10
_parent.shootAction("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", 180);
Symbol 2796 MovieClip Frame 22
_parent.shootAction("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", 180);
Symbol 2796 MovieClip Frame 34
_parent.shootAction("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", 180);
Symbol 2805 MovieClip Frame 16
stop();
Symbol 2818 MovieClip Frame 9
_parent.attackAction();
Symbol 2846 MovieClip Frame 53
_parent.removeMovieClip();
Symbol 2863 MovieClip Frame 63
_parent.removeMovieClip();
Symbol 2989 MovieClip Frame 11
_parent.attackAction();
Symbol 2989 MovieClip Frame 13
_parent.shootAction("\u654C\u4EBA_\u5200\u5149", 180);
Symbol 2989 MovieClip Frame 23
_parent.attackAction();
Symbol 2989 MovieClip Frame 25
_parent.shootAction("\u654C\u4EBA_\u5200\u5149", 180);
Symbol 3007 MovieClip Frame 3
_parent.attackAction();
Symbol 3043 MovieClip Frame 9
_parent.shootAction("\u654C\u4EBA_\u5200\u5149", -145);
Symbol 3043 MovieClip Frame 11
_parent.shootAction("\u654C\u4EBA_\u5200\u5149", 180);
Symbol 3043 MovieClip Frame 13
_parent.shootAction("\u654C\u4EBA_\u5200\u5149", 145);
Symbol 3043 MovieClip Frame 15
_parent.attackAction();
Symbol 3064 MovieClip Frame 57
_root.play_soundAction("\u5C0F\u52000" + (random(2) + 1), false);
Symbol 3064 MovieClip Frame 135
_parent.removeMovieClip();
Symbol 3081 MovieClip Frame 63
_parent.removeMovieClip();
Symbol 3087 MovieClip [敌人_刀光] Frame 1
stop();
Symbol 3092 MovieClip Frame 1
this._visible = 0;
this.cacheAsBitmap = true;
Symbol 3134 MovieClip Frame 5
_parent.shootAction();
Symbol 3134 MovieClip Frame 11
_parent.shootAction();
Symbol 3134 MovieClip Frame 17
_parent.shootAction();
Symbol 3134 MovieClip Frame 23
_parent.shootAction();
Symbol 3145 MovieClip Frame 13
_parent.attackAction();
Symbol 3160 MovieClip Frame 59
stop();
_parent.removeMovieClip();
Symbol 3187 MovieClip Frame 75
stop();
_parent.removeMovieClip();
Symbol 3201 MovieClip Frame 1
stop();
Symbol 3201 MovieClip Frame 38
_parent.shoot_stoneAction();
Symbol 3254 MovieClip Frame 3
_root.play_soundAction("\u5927\u7206\u70B8", false);
Symbol 3254 MovieClip Frame 6
_root.play_soundAction("\u5927\u7206\u70B8", false);
Symbol 3254 MovieClip Frame 11
_root.play_soundAction("\u5927\u7206\u70B8", false);
Symbol 3254 MovieClip Frame 17
_root.play_soundAction("\u5927\u7206\u70B8", false);
Symbol 3254 MovieClip Frame 38
_root.play_soundAction("\u5927\u7206\u70B8", false);
Symbol 3254 MovieClip Frame 43
_root.play_soundAction("\u5927\u7206\u70B8", false);
Symbol 3254 MovieClip Frame 48
_root.play_soundAction("\u5927\u7206\u70B8", false);
Symbol 3254 MovieClip Frame 54
_root.play_soundAction("\u5927\u7206\u70B8", false);
Symbol 3254 MovieClip Frame 81
stop();
Symbol 3263 MovieClip [敌人_巨石] Frame 1
gotoAndStop(random(5) + 1);
Symbol 3285 MovieClip Frame 1
this._visible = 0;
this.cacheAsBitmap = true;
Symbol 3293 MovieClip [障碍_木门] Frame 8
_root.play_soundAction("\u6728\u7BB1\u7834\u788E", false);
Symbol 3307 MovieClip Frame 1
this._visible = 0;
this.cacheAsBitmap = true;
Symbol 3353 MovieClip [坦克_炮弹] Frame 1
stop();
Symbol 3354 MovieClip [德军_坦克1] Frame 37
this.stand();
Symbol 3354 MovieClip [德军_坦克1] Frame 62
this.shootAction1();
Symbol 3354 MovieClip [德军_坦克1] Frame 92
this.stand();
Symbol 3354 MovieClip [德军_坦克1] Frame 174
stop();
Symbol 3366 MovieClip Frame 39
_parent.removeMovieClip();
Symbol 3380 MovieClip Frame 34
_parent.removeMovieClip();
Symbol 3381 MovieClip [小木头房子] Frame 8
_root.play_soundAction("\u5927\u7206\u70B8", false);
Symbol 3403 MovieClip Frame 9
_parent.shootAction("\u654C\u4EBA_\u67AA\u68B0\u5B50\u5F39", 180);
Symbol 3428 MovieClip Frame 3
_parent.attackAction();
Symbol 3428 MovieClip Frame 7
_parent.attackAction();
Symbol 3428 MovieClip Frame 11
_parent.attackAction();
Symbol 3428 MovieClip Frame 15
_parent.attackAction();
Symbol 3428 MovieClip Frame 19
_parent.attackAction();
Symbol 3428 MovieClip Frame 23
_parent.attackAction();
Symbol 3436 MovieClip Frame 4
_parent.attackAction();
Symbol 3436 MovieClip Frame 14
_parent.attackAction();
Symbol 3436 MovieClip Frame 17
_parent.attackAction();
Symbol 3457 MovieClip Frame 16
_root.play_soundAction("\u654C\u5175\u6B7B\u4EA10" + (random(3) + 1), false);
Symbol 3457 MovieClip Frame 55
stop();
Symbol 3466 MovieClip Frame 17
_root.play_soundAction("\u6728\u7BB1\u7834\u788E", false);
Symbol 3467 MovieClip [敌人_油桶士兵] Frame 15
_root.play_soundAction("\u5927\u7206\u70B8", false);
Symbol 3481 MovieClip Frame 29
level.gotoAndStop(20 + _root.stages);
Symbol 3481 MovieClip Frame 80
stop();
Symbol 3493 MovieClip [mission1_start] Frame 3
_root.play_soundAction("\u98DE\u673A\u98DE\u6765", false);
Symbol 3493 MovieClip [mission1_start] Frame 57
_root.play_soundAction("\u98DE\u673A\u8DF3\u51FA", false);
if (_root.game_player_sex == 1) {
player2.swapDepths(this.getNextHighestDepth());
player2.removeMovieClip();
} else if (_root.game_player_sex == 2) {
player1.swapDepths(this.getNextHighestDepth());
player1.removeMovieClip();
}
Symbol 3493 MovieClip [mission1_start] Frame 69
_root.play_soundAction("\u516C\u9E21", false);
Symbol 3493 MovieClip [mission1_start] Frame 77
_root.play_soundAction("\u516C\u9E21", false);
Symbol 3493 MovieClip [mission1_start] Frame 118
_root.play_soundAction("\u98DE\u673A\u98DE\u8D70", false);
Symbol 3493 MovieClip [mission1_start] Frame 142
_root.level_start();
this.removeMovieClip();
Symbol 3497 MovieClip [stage1_bg] Frame 1
g._visible = 0;
Symbol 3497 MovieClip [stage1_bg] Frame 2
if (_root.game_diff_level == 0) {
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 245, this._y + 320, -1, 0, false, 0).enemy_type = 3;
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 510, this._y + 325, -1, 0, false, 0).enemy_type = 3;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 320, this._y + 318, 3, 51, "stand", 100).min_area_x = this._x + 310;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 400, this._y + 318, 3, 52, "stand", -100).min_area_x = this._x + 310;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 437, this._y + 318, 3, 52, "stand", 100).min_area_x = this._x + 310;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 570, this._y + 318, 3, 52, "stand", -100).min_area_x = this._x + 560;
}
if (_root.game_diff_level >= 1) {
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 245, this._y + 320, -1, 0, false, 0).enemy_type = 3;
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 510, this._y + 325, -1, 0, false, 0).enemy_type = 3;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 320, this._y + 318, 99, 1, "stand", 100).min_area_x = this._x + 310;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 400, this._y + 318, 99, 0, "stand", -100).min_area_x = this._x + 310;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 437, this._y + 318, 99, 0, "stand", 100).min_area_x = this._x + 310;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 570, this._y + 318, 99, 0, "stand", -100).min_area_x = this._x + 560;
}
Symbol 3497 MovieClip [stage1_bg] Frame 3
if (_root.game_diff_level == 0) {
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 250, this._y + 318, false).dieEvents = function () {
_root.add_weapon(this);
};
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 60, this._y + 318, 3, 52, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 100, this._y + 318, 3, 52, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 235, this._y + 280, 3, 53, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 270, this._y + 280, 3, 54, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 315, this._y + 280, 3, 55, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 355, this._y + 318, 3, 55, "stand", 100);
}
if (_root.game_diff_level >= 1) {
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 250, this._y + 318, false).dieEvents = function () {
_root.add_weapon(this);
};
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 60, this._y + 318, 3, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 100, this._y + 318, 3, 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 235, this._y + 280, 3, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 270, this._y + 280, 3, 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 315, this._y + 280, 3, 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 355, this._y + 318, 3, 1, "stand", 100);
}
Symbol 3497 MovieClip [stage1_bg] Frame 4
if (_root.game_diff_level == 0) {
_root.add_frontpic("\u524D\u666F_\u82A6\u82C7", this._x + 374, this._y + 360);
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 50, this._y + 320, -1, 0, false, 0).enemy_type = 3;
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 300, this._y + 318, false).body.stop();
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 490, this._y + 318, false).body.stop();
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 557, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 519, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 481, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 366, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 328, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 291, this._y + 280, 1, 5, false, 30);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 105, this._y + 167, 3, 52, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 140, this._y + 167, 3, 51, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 130, this._y + 318, 3, 55, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 180, this._y + 318, 3, 57, "stand", 100);
}
if (_root.game_diff_level >= 1) {
_root.add_frontpic("\u524D\u666F_\u82A6\u82C7", this._x + 374, this._y + 360);
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 50, this._y + 320, -1, 0, false, 0).enemy_type = 3;
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 300, this._y + 318, false).body.stop();
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 490, this._y + 318, false).body.stop();
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 557, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 519, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 481, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 366, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 328, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 291, this._y + 280, 1, 5, false, 30);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 105, this._y + 167, 3, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 140, this._y + 167, 3, 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 130, this._y + 318, 3, 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 180, this._y + 318, 3, 1, "stand", 100);
}
Symbol 3497 MovieClip [stage1_bg] Frame 5
if (_root.game_diff_level == 0) {
_root.add_frontpic("\u524D\u666F_\u82A6\u82C7", this._x + 228, this._y + 364);
_root.enemysAction17("\u654C\u4EBA_\u7889\u5821\u5C0F\u5175", 1, this._x + 306, this._y + 313, 3, 100);
var i = 1;
while (i <= 8) {
_root.add_creatures_04((this._x + 200) + random(350), (this._y + 345) + random(55), 100 * ((random(2) * 2) - 1));
i++;
}
}
if (_root.game_diff_level >= 1) {
_root.add_frontpic("\u524D\u666F_\u82A6\u82C7", this._x + 228, this._y + 364);
_root.enemysAction26("\u654C\u4EBA_\u673A\u67AA\u5175", this._x + 335, this._y + 222, 0, 100);
_root.enemysAction17("\u654C\u4EBA_\u7889\u5821\u5C0F\u5175", 2, this._x + 306, this._y + 313, 3, 100);
var i = 1;
while (i <= 8) {
_root.add_creatures_04((this._x + 200) + random(350), (this._y + 345) + random(55), 100 * ((random(2) * 2) - 1));
i++;
}
}
Symbol 3497 MovieClip [stage1_bg] Frame 6
if (_root.game_diff_level == 0) {
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 255, this._y + 307, 1, 5, false, 30).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 298, this._y + 309, 99, 56, "crouch", -100).max_area_x = this._x + 310;
}
if (_root.game_diff_level >= 1) {
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 255, this._y + 307, 1, 5, false, 30).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 298, this._y + 309, 99, 56, "crouch", -100).max_area_x = this._x + 310;
}
Symbol 3497 MovieClip [stage1_bg] Frame 7
if (_root.game_diff_level == 0) {
_root.add_object("\u6C34\u9762_\u5C0F\u8239", this._x + 208, this._y + 380, true);
var enemy_mc1 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 55, this._y + 345, 99, 56, "crouch", 100);
enemy_mc1.min_area_x = this._x + 40;
enemy_mc1.max_area_x = this._x + 365;
var enemy_mc2 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 346, this._y + 347, 99, 56, "crouch", -100);
enemy_mc2.min_area_x = this._x + 40;
enemy_mc2.max_area_x = this._x + 365;
var enemy_mc3 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 200, this._y + 357, 99, 54, "stand", -100);
enemy_mc3.min_area_x = this._x + 40;
enemy_mc3.max_area_x = this._x + 365;
var enemy_mc4 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 245, this._y + 357, 99, 55, "stand", 100);
enemy_mc4.min_area_x = this._x + 40;
enemy_mc4.max_area_x = this._x + 365;
_root.hold_camera([enemy_mc1, enemy_mc2, enemy_mc3, enemy_mc4], -3390);
var temp_dir = (100 * ((random(2) * 2) - 1));
var i = 1;
while (i <= 15) {
_root.add_creatures_09((this._x + 150) + random(100), (this._y + 450) + random(80), temp_dir);
i++;
}
var temp_dir = (100 * ((random(2) * 2) - 1));
var i = 1;
while (i <= 8) {
_root.add_creatures_05((this._x + 450) + random(150), (this._y + 300) + random(30), temp_dir);
i++;
}
if (_root.main.others.getDepth() > _root.main.enemies.getDepth()) {
_root.main.others.swapDepths(_root.main.enemies);
}
var box_mc1 = _root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 200, this._y + 508, 1, 5, false, 30);
box_mc1.in_water = true;
_root.always_shine(box_mc1, "blue");
var box_mc2 = _root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 250, this._y + 508, 1, 5, false, 30);
box_mc2.in_water = true;
_root.always_shine(box_mc2, "blue");
var box_mc3 = _root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 300, this._y + 508, 1, 5, false, 30);
box_mc3.in_water = true;
_root.always_shine(box_mc3, "blue");
}
if (_root.game_diff_level >= 1) {
_root.add_object("\u6C34\u9762_\u5C0F\u8239", this._x + 208, this._y + 380, true);
var enemy_mc1 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 55, this._y + 345, 99, 1, "crouch", 100);
enemy_mc1.min_area_x = this._x + 40;
enemy_mc1.max_area_x = this._x + 365;
var enemy_mc2 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 346, this._y + 347, 99, 1, "crouch", -100);
enemy_mc2.min_area_x = this._x + 40;
enemy_mc2.max_area_x = this._x + 365;
var enemy_mc3 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 200, this._y + 357, 99, 1, "stand", -100);
enemy_mc3.min_area_x = this._x + 40;
enemy_mc3.max_area_x = this._x + 365;
var enemy_mc4 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 245, this._y + 357, 99, 1, "stand", 100);
enemy_mc4.min_area_x = this._x + 40;
enemy_mc4.max_area_x = this._x + 365;
_root.hold_camera([enemy_mc1, enemy_mc2, enemy_mc3, enemy_mc4], -3390);
var temp_dir = (100 * ((random(2) * 2) - 1));
var i = 1;
while (i <= 15) {
_root.add_creatures_09((this._x + 150) + random(100), (this._y + 450) + random(80), temp_dir);
i++;
}
var temp_dir = (100 * ((random(2) * 2) - 1));
var i = 1;
while (i <= 8) {
_root.add_creatures_05((this._x + 450) + random(150), (this._y + 300) + random(30), temp_dir);
i++;
}
if (_root.main.others.getDepth() > _root.main.enemies.getDepth()) {
_root.main.others.swapDepths(_root.main.enemies);
}
var box_mc1 = _root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 200, this._y + 508, 1, 5, false, 30);
box_mc1.in_water = true;
_root.always_shine(box_mc1, "blue");
var box_mc2 = _root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 250, this._y + 508, 1, 5, false, 30);
box_mc2.in_water = true;
_root.always_shine(box_mc2, "blue");
var box_mc3 = _root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 300, this._y + 508, 1, 5, false, 30);
box_mc3.in_water = true;
_root.always_shine(box_mc3, "blue");
}
Symbol 3497 MovieClip [stage1_bg] Frame 8
if (_root.game_diff_level == 0) {
var temp_dir = (100 * ((random(2) * 2) - 1));
var i = 1;
while (i <= 8) {
_root.add_creatures_05((this._x + 550) + random(150), (this._y + 300) + random(30), temp_dir);
i++;
}
_root.add_creatures_06(this._x + 100, this._y + 520, 100 * ((random(2) * 2) - 1), "water");
_root.add_creatures_06(this._x + 490, this._y + 520, 100 * ((random(2) * 2) - 1), "water");
_root.add_object("\u6C34\u9762_\u5C0F\u8239", this._x + 308, this._y + 380, true);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 258, this._y + 360, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 310, this._y + 360, 1, 5, false, 30).dieEvents = function () {
_root.add_weapon(this);
};
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 378, this._y + 360, 1, 5, false, 30);
var enemy_mc1 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 164, this._y + 349, 99, 56, "crouch", 100);
enemy_mc1.min_area_x = this._x + 135;
enemy_mc1.max_area_x = this._x + 470;
var enemy_mc2 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 454, this._y + 348, 99, 56, "crouch", -100);
enemy_mc2.min_area_x = this._x + 135;
enemy_mc2.max_area_x = this._x + 470;
}
if (_root.game_diff_level >= 1) {
var temp_dir = (100 * ((random(2) * 2) - 1));
var i = 1;
while (i <= 8) {
_root.add_creatures_05((this._x + 550) + random(150), (this._y + 300) + random(30), temp_dir);
i++;
}
_root.add_creatures_06(this._x + 100, this._y + 520, 100 * ((random(2) * 2) - 1), "water");
_root.add_creatures_06(this._x + 490, this._y + 520, 100 * ((random(2) * 2) - 1), "water");
_root.add_object("\u6C34\u9762_\u5C0F\u8239", this._x + 308, this._y + 380, true);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 258, this._y + 360, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 310, this._y + 360, 1, 5, false, 30).dieEvents = function () {
_root.add_weapon(this);
};
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 378, this._y + 360, 1, 5, false, 30);
var enemy_mc1 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 164, this._y + 349, 99, 1, "crouch", 100);
enemy_mc1.min_area_x = this._x + 135;
enemy_mc1.max_area_x = this._x + 470;
var enemy_mc2 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 454, this._y + 348, 99, 1, "crouch", -100);
enemy_mc2.min_area_x = this._x + 135;
enemy_mc2.max_area_x = this._x + 470;
var enemy_mc3 = _root.enemysAction35("\u654C\u4EBA_\u9CC4\u9C7C", this._x + 400, this._y + 480, 1, "water", 100);
enemy_mc3.min_area_x = this._x - 500;
enemy_mc3.max_area_x = this._x + 1280;
enemy_mc3.min_area_y = this._y + 460;
enemy_mc3.max_area_y = this._y + 520;
_root.always_shine(enemy_mc3, "blue");
}
Symbol 3497 MovieClip [stage1_bg] Frame 9
if (_root.game_diff_level == 0) {
_root.add_object("\u6C34\u9762_\u5C0F\u8239", this._x + 428, this._y + 380, true);
var enemy_mc1 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 275, this._y + 345, 99, 56, "crouch", 100);
enemy_mc1.min_area_x = this._x + 260;
enemy_mc1.max_area_x = this._x + 585;
var enemy_mc2 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 566, this._y + 347, 99, 56, "crouch", -100);
enemy_mc2.min_area_x = this._x + 260;
enemy_mc2.max_area_x = this._x + 585;
var enemy_mc3 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 370, this._y + 357, 99, 56, "stand", 100);
enemy_mc3.min_area_x = this._x + 260;
enemy_mc3.max_area_x = this._x + 585;
var enemy_mc4 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 420, this._y + 357, 99, 57, "stand", -100);
enemy_mc4.min_area_x = this._x + 260;
enemy_mc4.max_area_x = this._x + 585;
var enemy_mc5 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 465, this._y + 357, 99, 57, "stand", 100);
enemy_mc5.min_area_x = this._x + 260;
enemy_mc5.max_area_x = this._x + 585;
var enemy_mc6 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 500, this._y + 357, 99, 56, "stand", -100);
enemy_mc6.min_area_x = this._x + 260;
enemy_mc6.max_area_x = this._x + 585;
_root.hold_camera([enemy_mc1, enemy_mc2, enemy_mc3, enemy_mc4, enemy_mc5, enemy_mc6], -4755);
var temp_dir = (100 * ((random(2) * 2) - 1));
var i = 1;
while (i <= 15) {
_root.add_creatures_09((this._x + 150) + random(100), (this._y + 450) + random(80), temp_dir);
i++;
}
var box_mc1 = _root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 300, this._y + 508, 1, 5, false, 30);
box_mc1.in_water = true;
_root.always_shine(box_mc1, "blue");
var box_mc2 = _root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 350, this._y + 508, 1, 5, false, 30);
box_mc2.in_water = true;
_root.always_shine(box_mc2, "blue");
var box_mc3 = _root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 500, this._y + 508, 1, 5, false, 30);
box_mc3.in_water = true;
_root.always_shine(box_mc3, "blue");
}
if (_root.game_diff_level >= 1) {
_root.add_object("\u6C34\u9762_\u5C0F\u8239", this._x + 428, this._y + 380, true);
var enemy_mc1 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 275, this._y + 345, 99, 1, "crouch", 100);
enemy_mc1.min_area_x = this._x + 260;
enemy_mc1.max_area_x = this._x + 585;
var enemy_mc2 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 566, this._y + 347, 99, 1, "crouch", -100);
enemy_mc2.min_area_x = this._x + 260;
enemy_mc2.max_area_x = this._x + 585;
var enemy_mc3 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 370, this._y + 357, 99, 1, "stand", 100);
enemy_mc3.min_area_x = this._x + 260;
enemy_mc3.max_area_x = this._x + 585;
var enemy_mc4 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 420, this._y + 357, 99, 1, "stand", -100);
enemy_mc4.min_area_x = this._x + 260;
enemy_mc4.max_area_x = this._x + 585;
var enemy_mc5 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 465, this._y + 357, 99, 1, "stand", 100);
enemy_mc5.min_area_x = this._x + 260;
enemy_mc5.max_area_x = this._x + 585;
var enemy_mc6 = _root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 500, this._y + 357, 99, 1, "stand", -100);
enemy_mc6.min_area_x = this._x + 260;
enemy_mc6.max_area_x = this._x + 585;
_root.hold_camera([enemy_mc1, enemy_mc2, enemy_mc3, enemy_mc4, enemy_mc5, enemy_mc6], -4755);
var temp_dir = (100 * ((random(2) * 2) - 1));
var i = 1;
while (i <= 15) {
_root.add_creatures_09((this._x + 150) + random(100), (this._y + 450) + random(80), temp_dir);
i++;
}
var box_mc1 = _root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 300, this._y + 508, 1, 5, false, 30);
box_mc1.in_water = true;
_root.always_shine(box_mc1, "blue");
var box_mc2 = _root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 350, this._y + 508, 1, 5, false, 30);
box_mc2.in_water = true;
_root.always_shine(box_mc2, "blue");
var box_mc3 = _root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 500, this._y + 508, 1, 5, false, 30);
box_mc3.in_water = true;
_root.always_shine(box_mc3, "blue");
}
Symbol 3497 MovieClip [stage1_bg] Frame 10
if (_root.game_diff_level == 0) {
if (_root.main.others.getDepth() < _root.main.enemies.getDepth()) {
_root.main.others.swapDepths(_root.main.enemies);
}
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 400, this._y + 356, -1, 0, false, 0).enemy_type = 3;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 500, this._y + 356, 99, 53, "stand", -100).min_area_x = this._x + 215;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 550, this._y + 356, 99, 54, "stand", 100).min_area_x = this._x + 215;
}
if (_root.game_diff_level >= 1) {
if (_root.main.others.getDepth() < _root.main.enemies.getDepth()) {
_root.main.others.swapDepths(_root.main.enemies);
}
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 400, this._y + 356, -1, 0, false, 0).enemy_type = 3;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 500, this._y + 356, 99, 1, "stand", -100).min_area_x = this._x + 215;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 550, this._y + 356, 99, 1, "stand", 100).min_area_x = this._x + 215;
var enemy_mc1 = _root.enemysAction35("\u654C\u4EBA_\u9CC4\u9C7C", this._x + 85, this._y + 460, 1, "water", 100);
enemy_mc1.min_area_x = this._x - 500;
enemy_mc1.max_area_x = this._x + 100;
enemy_mc1.min_area_y = this._y + 460;
enemy_mc1.max_area_y = this._y + 520;
_root.always_shine(enemy_mc1, "blue");
}
Symbol 3497 MovieClip [stage1_bg] Frame 11
if (_root.game_diff_level == 0) {
_root.add_frontpic("\u524D\u666F_\u6728\u95E8", this._x + 227, this._y + 388);
var object_mc = _root.blocksAction("\u969C\u788D_\u6728\u95E8", this._x + 209, this._y + 355, 1, 30, false, 30);
object_mc.dieEvents = function () {
var _local3 = _root.enemysAction08("\u5FB7\u519B_\u8F70\u70B8\u673A", this._x, this._y - 400);
_root.hold_camera([_local3], -5780);
_local3.dieEvents2 = function () {
_root.add_weapon(this);
};
};
}
if (_root.game_diff_level >= 1) {
_root.add_frontpic("\u524D\u666F_\u6728\u95E8", this._x + 227, this._y + 388);
var object_mc = _root.blocksAction("\u969C\u788D_\u6728\u95E8", this._x + 209, this._y + 355, 1, 30, false, 30);
object_mc.dieEvents = function () {
var _local3 = _root.enemysAction08("\u5FB7\u519B_\u8F70\u70B8\u673A", this._x, this._y - 400);
_root.hold_camera([_local3], -5780);
_local3.dieEvents2 = function () {
_root.add_weapon(this);
};
};
}
Symbol 3497 MovieClip [stage1_bg] Frame 12
if (_root.game_diff_level == 0) {
var enemy_mc1 = _root.enemysAction23("\u654C\u4EBA_\u9A91\u5175", this._x + 110, this._y + 355, 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 30, this._y + 355, 10, -1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 50, this._y + 355, 10, -1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x - 620, this._y + 355, 10, (-random(2)) - 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x - 640, this._y + 355, 10, (-random(2)) - 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x - 660, this._y + 355, 10, (-random(2)) - 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x - 680, this._y + 355, 10, (-random(2)) - 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x - 700, this._y + 355, 10, (-random(2)) - 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x - 720, this._y + 355, 10, (-random(2)) - 1, "stand", -100);
_root.hold_camera([enemy_mc1], -5875);
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 373, this._y + 273, -1, 0, false, 0).enemy_type = 3;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 427, this._y + 274, 99, 0, "crouch", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 480, this._y + 355, 99, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 520, this._y + 355, 99, 0, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 560, this._y + 355, 99, 0, "crouch", 100);
_root.enemysAction17("\u654C\u4EBA_\u7889\u5821\u5C0F\u5175", 1, this._x + 376, this._y + 365, 3, 100);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 215, this._y + 355, 1, 5, false, 30).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 175, this._y + 355, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 495, this._y + 160, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 550, this._y + 160, 1, 5, false, 30);
}
if (_root.game_diff_level >= 1) {
var enemy_mc1 = _root.enemysAction23("\u654C\u4EBA_\u9A91\u5175", this._x + 110, this._y + 355, 100);
var enemy_mc2 = _root.enemysAction23("\u654C\u4EBA_\u9A91\u5175", this._x + 210, this._y + 355, 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 30, this._y + 355, 10, -1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 50, this._y + 355, 10, -1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x - 620, this._y + 355, 10, (-random(2)) - 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x - 640, this._y + 355, 10, (-random(2)) - 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x - 660, this._y + 355, 10, (-random(2)) - 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x - 680, this._y + 355, 10, (-random(2)) - 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x - 700, this._y + 355, 10, (-random(2)) - 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x - 720, this._y + 355, 10, (-random(2)) - 1, "stand", -100);
_root.hold_camera([enemy_mc1, enemy_mc2], -5875);
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 373, this._y + 273, -1, 0, false, 0).enemy_type = 3;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 427, this._y + 274, 99, 0, "crouch", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 480, this._y + 355, 99, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 520, this._y + 355, 99, 0, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 560, this._y + 355, 99, 0, "crouch", 100);
_root.enemysAction17("\u654C\u4EBA_\u7889\u5821\u5C0F\u5175", 1, this._x + 376, this._y + 365, 3, 100);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 215, this._y + 355, 1, 5, false, 30).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 175, this._y + 355, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 495, this._y + 160, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 550, this._y + 160, 1, 5, false, 30);
}
Symbol 3497 MovieClip [stage1_bg] Frame 13
if (_root.game_diff_level == 0) {
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 65, this._y + 160, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 125, this._y + 160, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 400, this._y + 160, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 450, this._y + 160, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 510, this._y + 160, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 560, this._y + 160, 1, 5, false, 30);
var enemy_mc1 = _root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 128, this._y + 355, false);
var enemy_mc2 = _root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 316, this._y + 355, false);
_root.hold_camera([enemy_mc1, enemy_mc2], -6900);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 123, this._y + 319, 5, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 158, this._y + 319, 99, 0, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 189, this._y + 319, 5, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 308, this._y + 319, 5, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 342, this._y + 319, 5, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 375, this._y + 319, 99, 0, "stand", 100);
}
if (_root.game_diff_level >= 1) {
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 65, this._y + 160, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 125, this._y + 160, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 400, this._y + 160, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 450, this._y + 160, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 510, this._y + 160, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 560, this._y + 160, 1, 5, false, 30);
var enemy_mc1 = _root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 128, this._y + 355, false);
var enemy_mc2 = _root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 316, this._y + 355, false);
_root.hold_camera([enemy_mc1, enemy_mc2], -6900);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 123, this._y + 319, 5, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 158, this._y + 319, 99, 0, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 189, this._y + 319, 5, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 308, this._y + 319, 5, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 342, this._y + 319, 5, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 375, this._y + 319, 99, 0, "stand", 100);
}
Symbol 3497 MovieClip [stage1_bg] Frame 14
if (_root.game_diff_level == 0) {
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 114, this._y + 168, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 162, this._y + 168, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 295, this._y + 151, 1, 5, false, 30);
}
if (_root.game_diff_level >= 1) {
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 114, this._y + 168, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 162, this._y + 168, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 295, this._y + 151, 1, 5, false, 30);
}
Symbol 3497 MovieClip [stage1_bg] Frame 15
if (_root.game_diff_level == 0) {
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 127, this._y + 161, 2, 5, true, 10).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 55, this._y + 356, -1, 0, false, 0).enemy_type = 3;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 30, this._y + 162, 99, 0, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 70, this._y + 162, 99, 0, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 122, this._y + 355, 99, 0, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 156, this._y + 355, 99, 0, "grovel", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 188, this._y + 355, 99, 0, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 218, this._y + 355, 99, 0, "crouch", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 253, this._y + 355, 99, 0, "stand", 100);
_root.player_max_x = this._x + 265;
_root.enemysAction03("\u5FB7\u519B_\u5766\u514B1", this._x + 345, this._y + 265, 0, 1, 590, 1, 100).dieEvents = function () {
delete _root.player_max_x;
var _local2 = _root.add_stage_arrow(1);
_local2._x = 480;
_local2._y = 270;
};
_root.enemysAction17("\u654C\u4EBA_\u7889\u5821\u5C0F\u5175", 1, this._x + 327, this._y + 358, 3, 100);
}
if (_root.game_diff_level >= 1) {
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 127, this._y + 161, 2, 5, true, 10).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 55, this._y + 356, -1, 0, false, 0).enemy_type = 3;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 30, this._y + 162, 99, 0, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 70, this._y + 162, 99, 0, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 122, this._y + 355, 99, 0, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 156, this._y + 355, 99, 0, "grovel", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 188, this._y + 355, 99, 0, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 218, this._y + 355, 99, 0, "crouch", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 253, this._y + 355, 99, 0, "stand", 100);
_root.player_max_x = this._x + 265;
_root.enemysAction03("\u5FB7\u519B_\u5766\u514B1", this._x + 345, this._y + 265, 0, 1, 590, 1, 100).dieEvents = function () {
delete _root.player_max_x;
var _local2 = _root.add_stage_arrow(1);
_local2._x = 480;
_local2._y = 270;
};
_root.enemysAction17("\u654C\u4EBA_\u7889\u5821\u5C0F\u5175", 1, this._x + 327, this._y + 358, 3, 100);
_root.enemysAction31("\u654C\u4EBA_\u72D9\u51FB\u624B", this._x + 442, this._y + 333, "crouch", 100);
}
Symbol 3497 MovieClip [stage1_bg] Frame 16
if (_root.game_diff_level == 0) {
_root.play_music("bgm1_2", true);
var i = 1;
while (i <= 10) {
_root.add_creatures_07(((this._x + 200) + random(100)) + ((random(10) + 5) * i), (this._y + 75) + random(5), 100 * ((random(2) * 2) - 1));
i++;
}
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 240, this._y + 319, 2, 5, true, 10);
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 280, this._y + 319, 2, 5, true, 10);
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 520, this._y + 319, 2, 5, true, 10);
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 560, this._y + 319, 2, 5, true, 10).dieEvents = function () {
_root.add_weapon(this);
};
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 165, this._y + 318, -1, 0, 0, 0).enemy_type = 3;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 350, this._y + 319, 99, 57, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 420, this._y + 319, 99, 57, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 295, this._y + 319, 99, 54, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 462, this._y + 319, 99, 55, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 500, this._y + 319, 99, 55, "stand", 100);
}
if (_root.game_diff_level >= 1) {
_root.play_music("bgm1_2", true);
var i = 1;
while (i <= 10) {
_root.add_creatures_07(((this._x + 200) + random(100)) + ((random(10) + 5) * i), (this._y + 75) + random(5), 100 * ((random(2) * 2) - 1));
i++;
}
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 240, this._y + 319, 2, 5, true, 10);
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 280, this._y + 319, 2, 5, true, 10);
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 520, this._y + 319, 2, 5, true, 10);
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 560, this._y + 319, 2, 5, true, 10).dieEvents = function () {
_root.add_weapon(this);
};
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 165, this._y + 318, -1, 0, 0, 0).enemy_type = 3;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 350, this._y + 319, 99, 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 420, this._y + 319, 99, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 295, this._y + 319, 99, 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 462, this._y + 319, 99, 1, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 500, this._y + 319, 99, 1, "stand", 100);
}
Symbol 3497 MovieClip [stage1_bg] Frame 17
if (_root.game_diff_level == 0) {
var i = 1;
while (i <= 10) {
_root.add_creatures_07(((this._x + 200) + random(100)) + ((random(10) + 5) * i), (this._y + 75) + random(5), 100 * ((random(2) * 2) - 1));
i++;
}
}
if (_root.game_diff_level >= 1) {
var i = 1;
while (i <= 10) {
_root.add_creatures_07(((this._x + 200) + random(100)) + ((random(10) + 5) * i), (this._y + 75) + random(5), 100 * ((random(2) * 2) - 1));
i++;
}
}
Symbol 3497 MovieClip [stage1_bg] Frame 18
if (_root.game_diff_level == 0) {
var i = 1;
while (i <= 10) {
_root.add_creatures_07(((this._x + 200) + random(100)) + ((random(10) + 5) * i), (this._y + 75) + random(5), 100 * ((random(2) * 2) - 1));
i++;
}
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 100, this._y + 320, true).mine_visible = true;
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 400, this._y + 320, true).mine_visible = true;
}
if (_root.game_diff_level >= 1) {
var i = 1;
while (i <= 10) {
_root.add_creatures_07(((this._x + 200) + random(100)) + ((random(10) + 5) * i), (this._y + 75) + random(5), 100 * ((random(2) * 2) - 1));
i++;
}
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 100, this._y + 320, true).mine_visible = true;
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 400, this._y + 320, true).mine_visible = true;
}
Symbol 3497 MovieClip [stage1_bg] Frame 19
if (_root.game_diff_level == 0) {
var i = 1;
while (i <= 10) {
_root.add_creatures_07(((this._x + 200) + random(100)) + ((random(10) + 5) * i), (this._y + 75) + random(5), 100 * ((random(2) * 2) - 1));
i++;
}
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 100, this._y + 320, true).mine_visible = true;
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 350, this._y + 320, true).mine_visible = true;
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 600, this._y + 320, true).mine_visible = true;
}
if (_root.game_diff_level >= 1) {
var i = 1;
while (i <= 10) {
_root.add_creatures_07(((this._x + 200) + random(100)) + ((random(10) + 5) * i), (this._y + 75) + random(5), 100 * ((random(2) * 2) - 1));
i++;
}
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 100, this._y + 320, true).mine_visible = true;
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 350, this._y + 320, true).mine_visible = true;
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 600, this._y + 320, true).mine_visible = true;
}
Symbol 3497 MovieClip [stage1_bg] Frame 20
if (_root.game_diff_level == 0) {
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 100, this._y + 320, true).mine_visible = true;
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 229, this._y + 319, false).mine_visible = true;
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 371, this._y + 326, false).mine_visible = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 80, this._y + 318, 99, 54, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 115, this._y + 318, 99, 54, "stand", -100);
}
if (_root.game_diff_level >= 1) {
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 100, this._y + 320, true).mine_visible = true;
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 229, this._y + 319, false).mine_visible = true;
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 371, this._y + 326, false).mine_visible = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 80, this._y + 318, 99, 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 115, this._y + 318, 99, 1, "stand", -100);
}
Symbol 3497 MovieClip [stage1_bg] Frame 21
if (_root.game_diff_level == 0) {
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 253, this._y + 471, 99, 0, "stand", 100).in_air = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 402, this._y + 417, 99, 0, "stand", 100).in_air = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 526, this._y + 359, 99, 0, "stand", 100).in_air = true;
var temp_mc1 = _root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 227, this._y + 559);
var temp_mc2 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 259, this._y + 552, 0, "stand", 100);
temp_mc2.kick_things = temp_mc1;
_root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 227, this._y + 559).move_me(1);
_root.hold_camera([temp_mc2], -2725);
}
if (_root.game_diff_level >= 1) {
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 253, this._y + 471, 99, 0, "stand", 100).in_air = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 402, this._y + 417, 99, 0, "stand", 100).in_air = true;
_root.enemysAction31("\u654C\u4EBA_\u72D9\u51FB\u624B", this._x + 526, this._y + 359, "crouch", 100).in_air = true;
var temp_mc1 = _root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 227, this._y + 559);
var temp_mc2 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 259, this._y + 552, 0, "stand", 100);
temp_mc2.kick_things = temp_mc1;
_root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 227, this._y + 559).move_me(1);
_root.hold_camera([temp_mc2], -2725);
}
Symbol 3497 MovieClip [stage1_bg] Frame 22
if (_root.game_diff_level == 0) {
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 346, this._y + 181, 99, 0, "stand", 100).in_air = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 512, this._y + 173, 99, 0, "stand", 100).in_air = true;
var temp_mc1 = _root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 219, this._y + 324);
var temp_mc2 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 255, this._y + 324, 0, "stand", 100);
temp_mc2.kick_things = temp_mc1;
_root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 219, this._y + 324).move_me(1);
_root.hold_camera([temp_mc2], -3345);
}
if (_root.game_diff_level >= 1) {
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 346, this._y + 181, 99, 0, "stand", 100).in_air = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 512, this._y + 173, 99, 0, "stand", 100).in_air = true;
var temp_mc1 = _root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 219, this._y + 324);
var temp_mc2 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 255, this._y + 324, 0, "stand", 100);
temp_mc2.kick_things = temp_mc1;
_root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 219, this._y + 324).move_me(1);
_root.hold_camera([temp_mc2], -3345);
}
Symbol 3497 MovieClip [stage1_bg] Frame 23
if (_root.game_diff_level == 0) {
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 253, this._y + 449, 99, 0, "stand", 100).in_air = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 403, this._y + 443, 99, 0, "stand", 100).in_air = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 528, this._y + 372, 99, 0, "stand", 100).in_air = true;
}
if (_root.game_diff_level >= 1) {
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 253, this._y + 449, 99, 0, "stand", 100).in_air = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 403, this._y + 443, 99, 0, "stand", 100).in_air = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 528, this._y + 372, 99, 0, "stand", 100).in_air = true;
}
Symbol 3497 MovieClip [stage1_bg] Frame 24
if (_root.game_diff_level == 0) {
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 281, this._y + 319, 2, 5, true, 10).dieEvents = function () {
_root.add_weapon(this);
};
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 362, this._y + 213, 99, 0, "stand", 100).in_air = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 533, this._y + 155, 99, 0, "stand", 100).in_air = true;
var temp_mc1 = _root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 219, this._y + 324);
var temp_mc2 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 255, this._y + 324, 0, "stand", 100);
temp_mc2.kick_things = temp_mc1;
_root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 117, this._y + 397).move_me(1);
_root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 219, this._y + 324).move_me(1);
_root.hold_camera([temp_mc2], -4470);
}
if (_root.game_diff_level >= 1) {
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 281, this._y + 319, 2, 5, true, 10).dieEvents = function () {
_root.add_weapon(this);
};
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 362, this._y + 213, 99, 0, "stand", 100).in_air = true;
_root.enemysAction31("\u654C\u4EBA_\u72D9\u51FB\u624B", this._x + 533, this._y + 155, "crouch", 100).in_air = true;
var temp_mc1 = _root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 219, this._y + 324);
var temp_mc2 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 255, this._y + 324, 0, "stand", 100);
temp_mc2.kick_things = temp_mc1;
_root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 117, this._y + 397).move_me(1);
_root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 219, this._y + 324).move_me(1);
_root.hold_camera([temp_mc2], -4470);
}
Symbol 3497 MovieClip [stage1_bg] Frame 25
if (_root.game_diff_level == 0) {
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 272, this._y + 550, 2, 5, true, 10);
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 307, this._y + 541, 2, 5, true, 10).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 252, this._y + 490, 99, 0, "stand", 100).in_air = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 361, this._y + 445, 99, 0, "stand", 100).in_air = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 496, this._y + 370, 99, 0, "stand", 100).in_air = true;
var temp_mc1 = _root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 227, this._y + 559);
var temp_mc2 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 259, this._y + 552, 0, "stand", 100);
temp_mc2.kick_things = temp_mc1;
_root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 83, this._y + 661).move_me(1);
_root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 165, this._y + 635).move_me(1);
_root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 227, this._y + 559).move_me(1);
_root.hold_camera([temp_mc2], -5050);
}
if (_root.game_diff_level >= 1) {
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 272, this._y + 550, 2, 5, true, 10);
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 307, this._y + 541, 2, 5, true, 10).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 252, this._y + 490, 99, 0, "stand", 100).in_air = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 361, this._y + 445, 99, 0, "stand", 100).in_air = true;
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 496, this._y + 370, 99, 0, "stand", 100).in_air = true;
var temp_mc1 = _root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 227, this._y + 559);
var temp_mc2 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 259, this._y + 552, 0, "stand", 100);
temp_mc2.kick_things = temp_mc1;
_root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 83, this._y + 661).move_me(1);
_root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 165, this._y + 635).move_me(1);
_root.enemysAction15("\u6EDA\u52A8_\u6CB9\u6876", this._x + 227, this._y + 559).move_me(1);
_root.hold_camera([temp_mc2], -5050);
}
Symbol 3497 MovieClip [stage1_bg] Frame 26
if (_root.game_diff_level == 0) {
_root.enemysAction17("\u654C\u4EBA_\u7889\u5821\u5C0F\u5175", 2, this._x + 248, this._y + 344, 10, 100);
}
if (_root.game_diff_level >= 1) {
_root.enemysAction31("\u654C\u4EBA_\u72D9\u51FB\u624B", this._x + 262, this._y + 255, "grovel", 100);
_root.enemysAction17("\u654C\u4EBA_\u7889\u5821\u5C0F\u5175", 2, this._x + 248, this._y + 344, 10, 100);
}
Symbol 3497 MovieClip [stage1_bg] Frame 27
if (_root.game_diff_level == 0) {
var enemy_mc1 = _root.blocksAction("\u5C0F\u6728\u5934\u623F\u5B50", this._x + 270, this._y + 320, 1, 50, false, 30);
_root.hold_camera([enemy_mc1], -6230);
enemy_mc1.dieEvents2 = function () {
var _local3 = _root.enemysAction03("\u5FB7\u519B_\u5766\u514B1", this._x, this._y, 0, 1, 590, 1, 100);
_local3.swapDepths(this);
_root.hold_camera([_local3], -6230);
_local3.dieEvents2 = function () {
_root.add_weapon(this);
};
};
}
if (_root.game_diff_level >= 1) {
var enemy_mc1 = _root.blocksAction("\u5C0F\u6728\u5934\u623F\u5B50", this._x + 270, this._y + 320, 1, 50, false, 30);
_root.hold_camera([enemy_mc1], -6230);
enemy_mc1.dieEvents2 = function () {
var _local3 = _root.enemysAction03("\u5FB7\u519B_\u5766\u514B2", this._x, this._y, 0, 1, 590, 1, 100);
_local3.swapDepths(this);
var _local4 = _root.enemysAction23("\u654C\u4EBA_\u9A91\u5175", this._x + 320, this._y, 100);
_root.hold_camera([_local3, _local4], -6230);
_local3.dieEvents2 = function () {
_root.add_weapon(this);
};
};
}
Symbol 3497 MovieClip [stage1_bg] Frame 28
if (_root.game_diff_level == 0) {
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 518, this._y + 425, 1, 5, false, 30);
_root.blocksAction("\u9677\u9631\u76D6\u5B50", this._x + 95, this._y + 785, 1, 5, false, 5);
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 100, this._y + 721, 2, 5, true, 10);
}
if (_root.game_diff_level >= 1) {
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 518, this._y + 425, 1, 5, false, 30);
_root.blocksAction("\u9677\u9631\u76D6\u5B50", this._x + 95, this._y + 785, 1, 5, false, 5);
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 100, this._y + 721, 2, 5, true, 10);
}
Symbol 3497 MovieClip [stage1_bg] Frame 29
if (_root.game_diff_level == 0) {
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 59, this._y + 748, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 219, this._y + 631, 1, 5, false, 30).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 310, this._y + 538, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 461, this._y + 423, 1, 5, false, 30);
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 74, this._y + 935).move_me();
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 312, this._y + 769).move_me();
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 462, this._y + 671).move_me();
}
if (_root.game_diff_level >= 1) {
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 59, this._y + 748, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 219, this._y + 631, 1, 5, false, 30).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 310, this._y + 538, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 461, this._y + 423, 1, 5, false, 30);
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 74, this._y + 935).move_me();
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 312, this._y + 769).move_me();
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 462, this._y + 671).move_me();
}
Symbol 3497 MovieClip [stage1_bg] Frame 30
if (_root.game_diff_level == 0) {
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 59, this._y + 748, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 219, this._y + 631, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 310, this._y + 538, 1, 5, false, 30).dieEvents = function () {
_root.add_weapon(this);
};
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 477, this._y + 472, 1, 5, false, 30);
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 106, this._y + 912).move_me();
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 220, this._y + 833).move_me();
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 444, this._y + 681).move_me();
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 541, this._y + 621).move_me();
}
if (_root.game_diff_level >= 1) {
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 59, this._y + 748, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 219, this._y + 631, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 310, this._y + 538, 1, 5, false, 30).dieEvents = function () {
_root.add_weapon(this);
};
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 477, this._y + 472, 1, 5, false, 30);
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 106, this._y + 912).move_me();
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 220, this._y + 833).move_me();
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 444, this._y + 681).move_me();
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 541, this._y + 621).move_me();
}
Symbol 3497 MovieClip [stage1_bg] Frame 31
if (_root.game_diff_level == 0) {
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 50, this._y + 551).move_me();
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 183, this._y + 455).move_me();
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 560, this._y + 321).move_me();
var temp_mc1 = _root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 450, this._y + 320);
temp_mc1.dieEvents = function () {
_root.add_weapon(this);
};
var temp_mc2 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 500, this._y + 321, 0, "stand", 100);
temp_mc2.kick_things = temp_mc1;
_root.hold_camera([temp_mc2], -8900);
}
if (_root.game_diff_level >= 1) {
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 50, this._y + 551).move_me();
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 183, this._y + 455).move_me();
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 560, this._y + 321).move_me();
var temp_mc1 = _root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 450, this._y + 320);
temp_mc1.dieEvents = function () {
_root.add_weapon(this);
};
var temp_mc2 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 500, this._y + 321, 0, "stand", 100);
temp_mc2.kick_things = temp_mc1;
_root.hold_camera([temp_mc2], -8900);
}
Symbol 3497 MovieClip [stage1_bg] Frame 32
if (_root.game_diff_level == 0) {
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 100, this._y + 320);
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 500, this._y + 320);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 230, this._y + 320, 5, 55, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 290, this._y + 320, 5, 53, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 330, this._y + 320, 5, 53, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 380, this._y + 320, 5, 55, "stand", 100);
}
if (_root.game_diff_level >= 1) {
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 100, this._y + 320);
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 500, this._y + 320);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 230, this._y + 320, 5, 55, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 290, this._y + 320, 5, 53, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 330, this._y + 320, 5, 53, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 380, this._y + 320, 5, 55, "stand", 100);
}
Symbol 3497 MovieClip [stage1_bg] Frame 33
if (_root.game_diff_level == 0) {
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 235, this._y + 320).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
var enemy_mc1 = _root.blocksAction("\u5C0F\u6728\u5934\u623F\u5B50", this._x + 120, this._y + 320, 1, 50, false, 30);
_root.hold_camera([enemy_mc1], -9750);
enemy_mc1.dieEvents2 = function () {
var _local3 = _root.enemysAction18("\u654C\u4EBA_\u65E5\u672C\u6B66\u58EB\u519B\u5B98", this._x, this._y, 1, 100);
_local3.swapDepths(this);
_root.hold_camera([_local3], -9750);
};
}
if (_root.game_diff_level >= 1) {
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 235, this._y + 320).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
var enemy_mc1 = _root.blocksAction("\u5C0F\u6728\u5934\u623F\u5B50", this._x + 120, this._y + 320, 1, 50, false, 30);
_root.hold_camera([enemy_mc1], -9750);
enemy_mc1.dieEvents2 = function () {
var _local3 = _root.enemysAction18("\u654C\u4EBA_\u65E5\u672C\u6B66\u58EB\u519B\u5B98", this._x - 20, this._y, 2, 100);
_local3.swapDepths(this);
var _local4 = _root.enemysAction18("\u654C\u4EBA_\u65E5\u672C\u6B66\u58EB\u519B\u5B98", this._x + 20, this._y, 2, 100);
_local4.swapDepths(this);
_root.hold_camera([_local3, _local4], -9750);
};
}
Symbol 3497 MovieClip [stage1_bg] Frame 34
if (_root.game_diff_level == 0) {
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 300, this._y + 318, false).body.stop();
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 490, this._y + 318, false).body.stop();
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 557, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 519, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 481, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 366, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 328, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 291, this._y + 280, 1, 5, false, 30).dieEvents = function () {
_root.add_weapon(this);
};
}
if (_root.game_diff_level >= 1) {
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 300, this._y + 318, false).body.stop();
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 490, this._y + 318, false).body.stop();
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 557, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 519, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 481, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 366, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 328, this._y + 280, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 291, this._y + 280, 1, 5, false, 30).dieEvents = function () {
_root.add_weapon(this);
};
}
Symbol 3497 MovieClip [stage1_bg] Frame 36
if (_root.game_diff_level == 0) {
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 60, this._y + 319, 2, 5, true, 10);
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 100, this._y + 319, 2, 5, true, 10).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 190, this._y + 319, 2, 5, true, 10);
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 230, this._y + 319, 2, 5, true, 10);
var enemy_mc1 = _root.enemysAction23("\u654C\u4EBA_\u9A91\u5175", this._x + 50, this._y + 320, 100);
var enemy_mc2 = _root.enemysAction23("\u654C\u4EBA_\u9A91\u5175", this._x - 680, this._y + 320, -100);
_root.hold_camera([enemy_mc1, enemy_mc2], -11195);
_root.scene_end_arrow(this, 1, 544, 200);
}
if (_root.game_diff_level >= 1) {
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 60, this._y + 319, 2, 5, true, 10);
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 100, this._y + 319, 2, 5, true, 10).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 190, this._y + 319, 2, 5, true, 10);
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 230, this._y + 319, 2, 5, true, 10);
var enemy_mc1 = _root.enemysAction03("\u5FB7\u519B_\u5766\u514B1", this._x + 50, this._y + 320, 1, 1, 510, 1, 100);
var enemy_mc2 = _root.enemysAction03("\u5FB7\u519B_\u5766\u514B1", this._x - 680, this._y + 320, 1, 1, 80, 1, -100);
_root.hold_camera([enemy_mc1, enemy_mc2], -11195);
_root.scene_end_arrow(this, 1, 544, 200);
}
Symbol 3497 MovieClip [stage1_bg] Frame 37
if (_root.game_diff_level == 0) {
_root.play_music("bgm1_3", true);
_root.player_min_x = 50;
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 419, this._y + 298).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 523, this._y + 298).dieEvents = function () {
_root.add_weapon(this);
};
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 278, this._y + 298, 99, 53, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 325, this._y + 298, 99, 54, "stand", 100);
}
if (_root.game_diff_level >= 1) {
_root.play_music("bgm1_3", true);
_root.player_min_x = 50;
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 419, this._y + 298).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.enemysAction16("\u63A8\u8F66_\u8F66", this._x + 523, this._y + 298).dieEvents = function () {
_root.add_weapon(this);
};
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 278, this._y + 298, 99, 1, "stand", -100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 325, this._y + 298, 99, 1, "stand", 100);
}
Symbol 3497 MovieClip [stage1_bg] Frame 39
if (_root.game_diff_level == 0) {
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 113, this._y + 398, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 197, this._y + 393, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 247, this._y + 395, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 363, this._y + 436, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 538, this._y + 484, 100);
}
if (_root.game_diff_level >= 1) {
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 113, this._y + 398, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 197, this._y + 393, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 247, this._y + 395, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 363, this._y + 436, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 538, this._y + 484, 100);
}
Symbol 3497 MovieClip [stage1_bg] Frame 40
if (_root.game_diff_level == 0) {
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 80, this._y + 547, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 169, this._y + 559, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 240, this._y + 579, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 383, this._y + 628, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 483, this._y + 674, 100);
}
if (_root.game_diff_level >= 1) {
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 80, this._y + 547, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 169, this._y + 559, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 240, this._y + 579, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 383, this._y + 628, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 483, this._y + 674, 100);
}
Symbol 3497 MovieClip [stage1_bg] Frame 41
if (_root.game_diff_level == 0) {
_root.add_creatures_08(this._x + 465, this._y + 555, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 113, this._y + 378, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 197, this._y + 373, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 247, this._y + 375, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 363, this._y + 416, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 538, this._y + 464, 100);
}
if (_root.game_diff_level >= 1) {
_root.add_creatures_08(this._x + 465, this._y + 555, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 113, this._y + 378, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 197, this._y + 373, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 247, this._y + 375, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 363, this._y + 416, 100);
_root.enemysAction19("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 538, this._y + 464, 100);
}
Symbol 3497 MovieClip [stage1_bg] Frame 42
if (_root.game_diff_level == 0) {
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 444, this._y + 724, -1, 0, false, 0).enemy_type = 3;
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 580, this._y + 724, 2, 5, true, 10).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 480, this._y + 725, 99, 0, "crouch", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 520, this._y + 725, 99, 0, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 550, this._y + 725, 99, 0, "grovel", 100);
}
if (_root.game_diff_level >= 1) {
_root.blocksAction("\u969C\u788D_\u6C99\u888B", this._x + 444, this._y + 724, -1, 0, false, 0).enemy_type = 3;
_root.blocksAction("\u5956\u52B1_\u6CB9\u6876", this._x + 580, this._y + 724, 2, 5, true, 10).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 480, this._y + 725, 99, 0, "crouch", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 520, this._y + 725, 99, 0, "stand", 100);
_root.enemysAction12("\u654C\u4EBA_\u6B65\u67AA\u5175", this._x + 550, this._y + 725, 99, 0, "grovel", 100);
}
Symbol 3497 MovieClip [stage1_bg] Frame 43
if (_root.game_diff_level == 0) {
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 150, this._y + 374, false).body.stop();
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 490, this._y + 374, false).body.stop();
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 557, this._y + 336, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 519, this._y + 336, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 481, this._y + 336, 1, 5, false, 30).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 216, this._y + 336, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 178, this._y + 336, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 141, this._y + 336, 1, 5, false, 30).dieEvents = function () {
_root.add_weapon(this);
};
var enemy_mc1 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 240, this._y + 374, 1, "stand", 100);
var enemy_mc2 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 350, this._y + 374, 1, "stand", 100);
_root.hold_camera([enemy_mc1, enemy_mc2], -3330);
}
if (_root.game_diff_level >= 1) {
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 150, this._y + 374, false).body.stop();
_root.enemysAction13("\u654C\u4EBA_\u8FD0\u8F93\u5361\u8F66", this._x + 490, this._y + 374, false).body.stop();
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 557, this._y + 336, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 519, this._y + 336, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 481, this._y + 336, 1, 5, false, 30).dieEvents = function () {
_root.add_food(this, "food" + (random(6) + 1));
};
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 216, this._y + 336, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 178, this._y + 336, 1, 5, false, 30);
_root.blocksAction("\u5956\u52B1_\u6728\u7BB1\u5B50", this._x + 141, this._y + 336, 1, 5, false, 30).dieEvents = function () {
_root.add_weapon(this);
};
var enemy_mc1 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 240, this._y + 374, 1, "stand", 100);
var enemy_mc2 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 350, this._y + 374, 1, "stand", 100);
var enemy_mc3 = _root.enemysAction14("\u654C\u4EBA_\u6C49\u5978", this._x + 460, this._y + 374, 1, "stand", 100);
_root.hold_camera([enemy_mc1, enemy_mc2, enemy_mc3], -3330);
}
Symbol 3497 MovieClip [stage1_bg] Frame 44
if (_root.game_diff_level == 0) {
var enemy_mc = _root.enemysAction20("\u654C\u4EBA_BOSS1", this._x + 770, this._y + 291);
_root.add_enemy_boss_healthbar(enemy_mc, 1);
enemy_mc.dieEvents = function () {
var _local2 = _root.game_save_level_file(2);
_root.kill_boss(_local2);
};
}
if (_root.game_diff_level >= 1) {
var enemy_mc = _root.enemysAction20("\u654C\u4EBA_BOSS1", this._x + 770, this._y + 291);
_root.add_enemy_boss_healthbar(enemy_mc, 1);
enemy_mc.dieEvents = function () {
var _local2 = _root.game_save_level_file(2);
_root.kill_boss(_local2);
};
}