Frame 1
fscommand ("fullscreen", false);
fscommand ("allowscale", false);
stop();
this.onEnterFrame = function () {
p = Math.ceil((this.getBytesLoaded() / this.getBytesTotal()) * 100);
l.gotoAndStop(p);
if (p == 100) {
delete this.onEnterFrame;
play();
}
};
Frame 26
var vol = 100;
Frame 259
delete eval (this.onEnterFrame());
stopgame = false;
var hard = false;
var highscore = 0;
so = SharedObject.getLocal("theFlashCookie");
highscore = so.data.dscore;
lvl = so.data.lev;
hard = so.data.hrd;
if (highscore == "undefined") {
highscore = 0;
}
if (lvl == "undefined") {
lvl = 1;
}
ng = false;
again_check = false;
snd.stop();
var snd = new Sound();
snd.attachSound("sound0");
snd.start(0, 10000);
snd.setVolume(vol);
this.onEnterFrame = function () {
snd.setVolume(vol);
};
Frame 298
stop();
if (lvl > 1) {
con.r.t = "GO TO LEVEL " + lvl;
} else {
con.r.t = "SAVED GAME";
con.but._visible = false;
con.r._alpha = 70;
}
hrd.r.t = "START HARD GAME";
easy.r.t = "START EASY GAME";
Frame 326
Frame 414
snd.stop();
if (lvl == 2) {
gotoAndPlay (851);
hard = so.data.hrd;
}
if (lvl == 3) {
gotoAndPlay (1287);
hard = so.data.hrd;
}
if (lvl == 4) {
gotoAndPlay (1723);
hard = so.data.hrd;
}
if (lvl == 5) {
gotoAndPlay (2159);
hard = so.data.hrd;
}
if (lvl == 6) {
gotoAndPlay (2595);
hard = so.data.hrd;
}
if (lvl == 7) {
gotoAndPlay (3031);
hard = so.data.hrd;
}
Frame 415
delete eval (this.onEnterFrame());
stopgame = false;
highscore = 0;
so.data.dscore = highscore;
so.data.lev = 1;
so.data.hrd = hard;
var snd = new Sound();
snd.attachSound("sound0");
snd.start(0, 10000);
snd.setVolume(vol);
this.onEnterFrame = function () {
snd.setVolume(vol);
};
Frame 454
stop();
if (again_check) {
b2.r.t = "TRY AGAIN";
} else {
b2.r.t = "START LEVEL 1";
}
Frame 482
Frame 570
snd.stop();
if (ng) {
gotoAndPlay (259);
}
Frame 571
level_score = 0;
temp_score = highscore;
stat.s_score = highscore;
again_check = false;
Frame 623
var snd = new Sound();
snd.attachSound("sound");
snd.start(0, 10000);
snd.setVolume(vol);
Frame 637
stop();
this.onEnterFrame = function () {
if (Key.isDown(32)) {
play();
delete this.onEnterFrame;
}
};
Frame 669
stop();
m_target = "en_t0";
total = 50;
stat.rrr = total;
enemy0_kol = 2;
score = 0;
function robot1() {
var _local4 = Math.round(iam._x / 70) * 70;
var _local3 = Math.round(iam._y / 70) * 70;
if (e_target._x < 140) {
e_target._x = 140;
}
if (e_target._y < 140) {
e_target._y = 140;
}
if (e_target._x > 840) {
e_target._x = 840;
}
if (e_target._y > 560) {
e_target._y = 560;
}
if (e_target.life > 0) {
if (e_target.think > 0) {
e_target.think--;
} else if (((((e_target._rotation == 0) || (e_target._rotation == 90)) || (e_target._rotation == -90)) || (e_target._rotation == 180)) || (e_target._rotation == -180)) {
var _local2 = 0;
var _local5 = dist(e_target._x, e_target._y, _local4, _local3);
var _local1 = (ltar = (rtar = (ttar = (btar = "0"))));
e_target.fire = true;
if (chkl(e_target._name)) {
if (dist(e_target._x - 27, e_target._y, _local4, _local3) > _local5) {
if (e_target._x > 145) {
ltar = "l";
}
}
}
if (chkr(e_target._name)) {
if (dist(e_target._x + 27, e_target._y, _local4, _local3) > _local5) {
if (e_target._x < 835) {
rtar = "r";
}
}
}
if (chkt(e_target._name)) {
if (dist(e_target._x, e_target._y - 27, _local4, _local3) > _local5) {
if (e_target._y > 145) {
ttar = "t";
}
}
}
if (chkb(e_target._name)) {
if (dist(e_target._x, e_target._y + 27, _local4, _local3) > _local5) {
if (e_target._y < 555) {
btar = "b";
}
}
}
while ((_local1 == "0") && ((((ltar != "0") || (rtar != "0")) || (ttar != "0")) || (btar != "0"))) {
_local2 = random(4);
if ((_local2 == 0) && (ltar != "0")) {
_local1 = ltar;
}
if ((_local2 == 1) && (rtar != "0")) {
_local1 = rtar;
}
if ((_local2 == 2) && (ttar != "0")) {
_local1 = ttar;
}
if ((_local2 == 3) && (btar != "0")) {
_local1 = btar;
}
}
if (e_target.direct != _local1) {
e_target.direct = _local1;
e_target.think = 17;
}
}
}
}
function robot() {
var _local6 = Math.round(iam._x / 70) * 70;
var _local5 = Math.round(iam._y / 70) * 70;
var _local8 = 0;
if ((_local5 % 140) != 0) {
if (_local5 > 560) {
_local5 = _local5 - 70;
} else if (_local5 < 100) {
_local5 = _local5 + 70;
} else {
_local8 = random(1);
if (_local8 == 0) {
_local5 = _local5 + 70;
} else {
_local5 = _local5 - 70;
}
}
}
if ((_local6 % 140) != 0) {
if (_local6 > 850) {
_local6 = _local6 - 70;
} else if (_local6 < 100) {
_local6 = _local6 + 70;
} else {
_local8 = random(1);
if (_local8 == 0) {
_local6 = _local6 + 70;
} else {
_local6 = _local6 - 70;
}
}
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
if (this["enemy" + i]._x < 140) {
this["enemy" + i]._x = 140;
}
if (this["enemy" + i]._y < 140) {
this["enemy" + i]._y = 140;
}
if (this["enemy" + i]._x > 840) {
this["enemy" + i]._x = 840;
}
if (this["enemy" + i]._y > 560) {
this["enemy" + i]._y = 560;
}
if (this["enemy" + i].life > 0) {
if (this["enemy" + i].think > 0) {
this["enemy" + i].think--;
} else if (((((this["enemy" + i]._rotation == 0) || (this["enemy" + i]._rotation == 90)) || (this["enemy" + i]._rotation == -90)) || (this["enemy" + i]._rotation == 180)) || (this["enemy" + i]._rotation == -180)) {
var _local3 = 0;
var _local7 = dist(this["enemy" + i]._x, this["enemy" + i]._y, _local6, _local5);
var _local4 = (rtar = (ttar = (btar = "0")));
var _local2 = "0";
this["enemy" + i].fire = true;
if (chkl(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x - 27, this["enemy" + i]._y, _local6, _local5) < _local7) {
if (this["enemy" + i]._x > 145) {
_local4 = "l";
}
}
}
if (chkr(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x + 27, this["enemy" + i]._y, _local6, _local5) < _local7) {
if (this["enemy" + i]._x < 835) {
rtar = "r";
}
}
}
if (chkt(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y - 27, _local6, _local5) < _local7) {
if (this["enemy" + i]._y > 145) {
ttar = "t";
}
}
}
if (chkb(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y + 27, _local6, _local5) < _local7) {
if (this["enemy" + i]._y < 555) {
btar = "b";
}
}
}
while ((_local2 == "0") && ((((_local4 != "0") || (rtar != "0")) || (ttar != "0")) || (btar != "0"))) {
_local3 = random(4);
if ((_local3 == 0) && (_local4 != "0")) {
_local2 = _local4;
}
if ((_local3 == 1) && (rtar != "0")) {
_local2 = rtar;
}
if ((_local3 == 2) && (ttar != "0")) {
_local2 = ttar;
}
if ((_local3 == 3) && (btar != "0")) {
_local2 = btar;
}
}
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 120) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 100) {
if ((chk("iam", this["enemy" + i]._x - 70, this["enemy" + i]._y - 33) || (chk("iam", this["enemy" + i]._x - 50, this["enemy" + i]._y + 33))) && (iam.direct == "r")) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
if ((chk("iam", this["enemy" + i]._x + 70, this["enemy" + i]._y - 33) || (chk("iam", this["enemy" + i]._x + 50, this["enemy" + i]._y + 33))) && (iam.direct == "l")) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
if ((chk("iam", this["enemy" + i]._x - 33, this["enemy" + i]._y - 50) || (chk("iam", this["enemy" + i]._x + 33, this["enemy" + i]._y - 70))) && (iam.direct == "b")) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
if ((chk("iam", this["enemy" + i]._x - 33, this["enemy" + i]._y + 50) || (chk("iam", this["enemy" + i]._x + 33, this["enemy" + i]._y + 70))) && (iam.direct == "t")) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
}
_local2 = "0";
this["enemy" + i].w = "esnr1";
this["enemy" + i].direct = _local2;
this["enemy" + i].rm = 5;
} else {
this["enemy" + i].w = this["enemy" + i].wp;
this["enemy" + i].rm = this["enemy" + i].rrm;
if (_local2 == "0") {
_local2 = this["enemy" + i].direct;
}
if (this["enemy" + i].direct != _local2) {
this["enemy" + i].direct = _local2;
this["enemy" + i].think = 7 + random(50 / e_a);
}
}
}
}
i++;
}
}
function robot_t() {
var _local4 = Math.round(iam._x / 70) * 70;
var _local3 = Math.round(iam._y / 70) * 70;
if ((_local4 % 140) != 0) {
_local4 = _local4 + 70;
}
if ((_local3 % 140) != 0) {
_local3 = _local3 + 70;
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
if (this["enemy" + i].life > 0) {
if (this["enemy" + i].p > 0) {
this["enemy" + i].p--;
} else if (((((this["enemy" + i]._rotation == 0) || (this["enemy" + i]._rotation == 90)) || (this["enemy" + i]._rotation == -90)) || (this["enemy" + i]._rotation == 180)) || (this["enemy" + i]._rotation == -180)) {
this["enemy" + i].p = this["enemy" + i].think;
var _local2 = 10000;
var _local5 = "0";
this["enemy" + i].fire = true;
if (chkl(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x - 1, this["enemy" + i]._y, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x - 1, this["enemy" + i]._y, _local4, _local3);
_local5 = "l";
}
}
if (chkr(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x + 1, this["enemy" + i]._y, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x + 1, this["enemy" + i]._y, _local4, _local3);
_local5 = "r";
}
}
if (chkt(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y - 1, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x, this["enemy" + i]._y - 1, _local4, _local3);
_local5 = "t";
}
}
if (chkb(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y + 1, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x, this["enemy" + i]._y + 1, _local4, _local3);
_local5 = "b";
}
}
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 100) {
_local5 = "0";
this["enemy" + i].w = "esnr1";
} else {
this["enemy" + i].w = this["enemy" + i].wp;
}
this["enemy" + i].direct = _local5;
}
}
i++;
}
}
function dovod(nn) {
if (nn == "iam") {
tx = Math.round(this[nn]._x / 70) * 70;
rx = (tx - this[nn]._x) / 3;
this[nn]._x = this[nn]._x + rx;
if (Math.abs(tx - this[nn]._x) < 1) {
this[nn]._x = tx;
}
ty = Math.round(this[nn]._y / 70) * 70;
ry = (ty - this[nn]._y) / 3;
this[nn]._y = this[nn]._y + ry;
if (Math.abs(ty - this[nn]._y) < 1) {
this[nn]._y = ty;
}
}
}
function fireok(nn) {
fok = true;
if ((this[nn]._rotation == 90) && (chk("bg", this[nn]._x + 70, this[nn]._y))) {
fok = false;
}
if ((this[nn]._rotation == -90) && (chk("bg", this[nn]._x - 70, this[nn]._y))) {
fok = false;
}
if ((this[nn]._rotation == 0) && (chk("bg", this[nn]._x, this[nn]._y - 70))) {
fok = false;
}
if ((Math.abs(this[nn]._rotation) == 180) && (chk("bg", this[nn]._x, this[nn]._y + 70))) {
fok = false;
}
return(fok);
}
function dist(xx, yy, xx1, yy1) {
return(Math.sqrt(((xx - xx1) * (xx - xx1)) + ((yy - yy1) * (yy - yy1))));
}
function kd() {
if (Key.getCode() == 37) {
iam.direct = "l";
pl = true;
}
if (Key.getCode() == 39) {
iam.direct = "r";
pr = true;
}
if (Key.getCode() == 38) {
iam.direct = "t";
pt = true;
}
if (Key.getCode() == 40) {
iam.direct = "b";
pb = true;
}
if (Key.getCode() == 65) {
iam.fire = true;
}
}
function ku() {
if (Key.getCode() == 65) {
iam.fire = false;
}
if (Key.getCode() == 37) {
pl = false;
}
if (Key.getCode() == 39) {
pr = false;
}
if (Key.getCode() == 38) {
pt = false;
}
if (Key.getCode() == 40) {
pb = false;
}
if (Key.getCode() == 83) {
if (min_timeout >= min_tm) {
minen();
min_timeout = 0;
}
}
if (((pl && (pr)) && (pt)) && (pb)) {
}
}
var ll = new Object();
ll.onKeyUp = ku;
ll.onKeyDown = kd;
Key.addListener(ll);
function chk(nn, xx, yy) {
if (eval (nn).hitTest(xx, yy, true)) {
return(true);
}
return(false);
}
function chkl(nn) {
ret = true;
if (chk("bg", this[nn]._x - 50, this[nn]._y - 28) || (chk("bg", this[nn]._x - 50, this[nn]._y + 28))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x - 50, this[nn]._y)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x - 50, this[nn]._y)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 50, this[nn]._y - 28) || (chk(("enemy" + ii) + ".dz", this[nn]._x - 50, this[nn]._y + 28))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkr(nn) {
ret = true;
if (chk("bg", this[nn]._x + 50, this[nn]._y - 28) || (chk("bg", this[nn]._x + 50, this[nn]._y + 28))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x + 50, this[nn]._y)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x + 50, this[nn]._y)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x + 50, this[nn]._y - 28) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 50, this[nn]._y + 28))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkt(nn) {
ret = true;
if (chk("bg", this[nn]._x - 28, this[nn]._y - 50) || (chk("bg", this[nn]._x + 28, this[nn]._y - 50))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x, this[nn]._y - 50)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x, this[nn]._y - 50)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 28, this[nn]._y - 50) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 28, this[nn]._y - 50))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkb(nn) {
ret = true;
if (chk("bg", this[nn]._x - 28, this[nn]._y + 50) || (chk("bg", this[nn]._x + 28, this[nn]._y + 50))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x, this[nn]._y + 50)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x, this[nn]._y + 50)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (nn != "enemy") {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 28, this[nn]._y + 50) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 28, this[nn]._y + 50))) {
ret = false;
}
}
}
ii++;
}
return(ret);
}
function birn() {
if (score < total) {
i = 30000;
while (i < (30000 + enemy0_kol)) {
rx = 70 + (70 * random(13));
ry = 70 + (70 * random(9));
if ((!chk("bg", rx, ry)) && (dist(rx, ry, iam._x, iam._y) > 200)) {
if (this["enemy" + i]._name != ("enemy" + i)) {
this.attachMovie("en2", "enemy" + i, i, {_x:rx, _y:ry});
}
}
i++;
}
}
}
function minen() {
this.attachMovie("minen", "min" + min_dp, min_dp, {_x:iam._x, _y:iam._y});
min_dp++;
}
e_t = false;
if (hard) {
iam.bron = 0;
} else {
iam.bron = 3;
}
iam.life = 100;
iam.sp = 4;
iam.ms = 4;
iam.ready = 50;
iam.rm = 50;
iam.dym = 5;
iam.w = "snr";
iam.wp2 = 0;
iam.swapDepths(30007);
g_timer = 0;
e_a = 3;
min_timeout = 0;
min_tm = 50;
min_dp = 10000;
dym_dp = 20000;
tnk_dp = 70001 /* 0x011171 */;
snr_dp = 40000;
MovieClip.prototype.rota = function (dir) {
if (this.life > 0) {
if (!this.ch_fire) {
if (!this.dov) {
if (dir == "l") {
if (this._rotation == 180) {
this._rotation = -180;
}
this.rot = -90;
} else if (dir == "r") {
if (this._rotation < -100) {
this._rotation = 180;
}
this.rot = 90;
} else if (dir == "t") {
this.rot = 0;
} else if (dir == "b") {
if (this._rotation < 0) {
this.rot = -180;
} else {
this.rot = 180;
}
}
r = (this.rot - this._rotation) / 5;
if (Math.abs(r) < 11) {
r = (Math.abs(r) / r) * 11;
}
if (Math.abs(this._rotation - this.rot) > 7) {
this._rotation = this._rotation + r;
dovod(this._name);
} else {
this._rotation = this.rot;
if (dir != "0") {
this.dym++;
if (this.dym > 3) {
duplicateMovieClip ("dm", "dm" + dym_dp, dym_dp);
this.dym = 0;
eval ("dm" + dym_dp)._rotation = random(359);
if (dir == "l") {
eval ("dm" + dym_dp)._x = this._x + 15;
eval ("dm" + dym_dp)._y = this._y;
}
if (dir == "r") {
eval ("dm" + dym_dp)._x = this._x - 15;
eval ("dm" + dym_dp)._y = this._y;
}
if (dir == "t") {
eval ("dm" + dym_dp)._x = this._x;
eval ("dm" + dym_dp)._y = this._y + 15;
}
if (dir == "b") {
eval ("dm" + dym_dp)._x = this._x;
eval ("dm" + dym_dp)._y = this._y - 15;
}
dym_dp++;
if (dym_dp > 19998) {
dym_dp = 10000;
}
}
}
if (dir == "l") {
if (chkl(this._name)) {
this._x = this._x - this.sp;
}
}
if (dir == "r") {
if (chkr(this._name)) {
this._x = this._x + this.sp;
}
}
if (dir == "t") {
if (chkt(this._name)) {
this._y = this._y - this.sp;
}
}
if (dir == "b") {
if (chkb(this._name)) {
this._y = this._y + this.sp;
}
}
if (this.ready < this.rm) {
this.ready++;
}
if ((this.fire && (this.ready >= this.rm)) && (fireok(this._name))) {
this.ready = 0;
this.t.gotoAndPlay(2);
this.fire = false;
if (this.w != "esnr1") {
duplicateMovieClip (this.w, "snr" + snr_dp, snr_dp);
eval ("snr" + snr_dp)._rotation = this._rotation;
if (this._rotation == -90) {
eval ("snr" + snr_dp)._x = this._x - 20;
eval ("snr" + snr_dp)._y = this._y;
eval ("snr" + snr_dp).spx = -7;
eval ("snr" + snr_dp).spy = 0;
}
if (this._rotation == 90) {
eval ("snr" + snr_dp)._x = this._x + 20;
eval ("snr" + snr_dp)._y = this._y;
eval ("snr" + snr_dp).spx = 7;
eval ("snr" + snr_dp).spy = 0;
}
if (this._rotation == 0) {
eval ("snr" + snr_dp)._x = this._x;
eval ("snr" + snr_dp)._y = this._y - 20;
eval ("snr" + snr_dp).spx = 0;
eval ("snr" + snr_dp).spy = -7;
}
if ((this._rotation == 180) || (this._rotation == -180)) {
eval ("snr" + snr_dp)._x = this._x;
eval ("snr" + snr_dp)._y = this._y + 20;
eval ("snr" + snr_dp).spx = 0;
eval ("snr" + snr_dp).spy = 7;
}
snr_dp++;
}
}
}
} else {
dovod(this._name);
}
}
}
};
this.onEnterFrame = function () {
if (iam.life <= 0) {
iam.t.gotoAndPlay("end");
}
if (score == total) {
stopgame = true;
mission_complete = true;
}
stat.life._xscale = iam.life;
birn();
if (min_timeout < min_tm) {
min_timeout++;
}
if (stopgame) {
delete this.onEnterFrame;
play();
}
if (((pl || (pr)) || (pt)) || (pb)) {
} else {
iam.direct = "0";
}
iam.rota(iam.direct);
e_target.rota(e_target.direct);
robot1();
robot();
g_timer++;
if (((g_timer == 1000) || (g_timer == 2000)) || ((g_timer == 3000) && (hard))) {
e_a++;
rm = rm - 90;
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
this["enemy" + i].rota(this["enemy" + i].direct);
i++;
}
};
Frame 670
zzz.swapDepths(99999);
play();
iam_bonus = iam.life;
Frame 850
trace("SCORE1=" + highscore);
for (i in _root) {
this[i].removeMovieClip();
}
snd.stop();
delete eval (this.onEnterFrame());
if (!mission_complete) {
gotoAndPlay (415);
highscore = highscore - 10;
again_check = true;
} else {
highscore = highscore + (level_score + Math.round(iam_bonus));
}
Frame 851
delete eval (this.onEnterFrame());
stopgame = false;
so.data.dscore = highscore;
so.data.lev = 2;
so.data.hrd = hard;
var snd = new Sound();
snd.attachSound("sound0");
snd.start(0, 10000);
snd.setVolume(vol);
this.onEnterFrame = function () {
snd.setVolume(vol);
};
Frame 890
stop();
if (again_check) {
b2.r.t = "TRY AGAIN";
} else {
b2.r.t = "START LEVEL 2";
}
Frame 918
Frame 1006
snd.stop();
if (ng) {
gotoAndPlay (259);
}
Frame 1007
level_score = 0;
temp_score = highscore;
stat.s_score = highscore;
again_check = false;
Frame 1059
var snd = new Sound();
snd.attachSound("sound");
snd.start(0, 10000);
snd.setVolume(vol);
Frame 1073
stop();
this.onEnterFrame = function () {
if (Key.isDown(32)) {
play();
delete this.onEnterFrame;
}
};
Frame 1105
stop();
m_target = "en_t0";
total = 70;
stat.rrr = total;
enemy0_kol = 3;
score = 0;
function robot1() {
var _local4 = Math.round(iam._x / 70) * 70;
var _local3 = Math.round(iam._y / 70) * 70;
if (e_target._x < 140) {
e_target._x = 140;
}
if (e_target._y < 140) {
e_target._y = 140;
}
if (e_target._x > 840) {
e_target._x = 840;
}
if (e_target._y > 560) {
e_target._y = 560;
}
if (e_target.life > 0) {
if (e_target.think > 0) {
e_target.think--;
} else if (((((e_target._rotation == 0) || (e_target._rotation == 90)) || (e_target._rotation == -90)) || (e_target._rotation == 180)) || (e_target._rotation == -180)) {
var _local2 = 0;
var _local5 = dist(e_target._x, e_target._y, _local4, _local3);
var _local1 = (ltar = (rtar = (ttar = (btar = "0"))));
e_target.fire = true;
if (chkl(e_target._name)) {
if (dist(e_target._x - 27, e_target._y, _local4, _local3) > _local5) {
if (e_target._x > 145) {
ltar = "l";
}
}
}
if (chkr(e_target._name)) {
if (dist(e_target._x + 27, e_target._y, _local4, _local3) > _local5) {
if (e_target._x < 835) {
rtar = "r";
}
}
}
if (chkt(e_target._name)) {
if (dist(e_target._x, e_target._y - 27, _local4, _local3) > _local5) {
if (e_target._y > 145) {
ttar = "t";
}
}
}
if (chkb(e_target._name)) {
if (dist(e_target._x, e_target._y + 27, _local4, _local3) > _local5) {
if (e_target._y < 555) {
btar = "b";
}
}
}
while ((_local1 == "0") && ((((ltar != "0") || (rtar != "0")) || (ttar != "0")) || (btar != "0"))) {
_local2 = random(4);
if ((_local2 == 0) && (ltar != "0")) {
_local1 = ltar;
}
if ((_local2 == 1) && (rtar != "0")) {
_local1 = rtar;
}
if ((_local2 == 2) && (ttar != "0")) {
_local1 = ttar;
}
if ((_local2 == 3) && (btar != "0")) {
_local1 = btar;
}
}
if (e_target.direct != _local1) {
e_target.direct = _local1;
e_target.think = 17;
}
}
}
}
function robot() {
var _local6 = Math.round(iam._x / 70) * 70;
var _local5 = Math.round(iam._y / 70) * 70;
var _local8 = 0;
if ((_local5 % 140) != 0) {
if (_local5 > 560) {
_local5 = _local5 - 70;
} else if (_local5 < 100) {
_local5 = _local5 + 70;
} else {
_local8 = random(1);
if (_local8 == 0) {
_local5 = _local5 + 70;
} else {
_local5 = _local5 - 70;
}
}
}
if ((_local6 % 140) != 0) {
if (_local6 > 850) {
_local6 = _local6 - 70;
} else if (_local6 < 100) {
_local6 = _local6 + 70;
} else {
_local8 = random(1);
if (_local8 == 0) {
_local6 = _local6 + 70;
} else {
_local6 = _local6 - 70;
}
}
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
if (this["enemy" + i]._x < 140) {
this["enemy" + i]._x = 140;
}
if (this["enemy" + i]._y < 140) {
this["enemy" + i]._y = 140;
}
if (this["enemy" + i]._x > 840) {
this["enemy" + i]._x = 840;
}
if (this["enemy" + i]._y > 560) {
this["enemy" + i]._y = 560;
}
if (this["enemy" + i].life > 0) {
if (this["enemy" + i].think > 0) {
this["enemy" + i].think--;
} else if (((((this["enemy" + i]._rotation == 0) || (this["enemy" + i]._rotation == 90)) || (this["enemy" + i]._rotation == -90)) || (this["enemy" + i]._rotation == 180)) || (this["enemy" + i]._rotation == -180)) {
var _local3 = 0;
var _local7 = dist(this["enemy" + i]._x, this["enemy" + i]._y, _local6, _local5);
var _local4 = (rtar = (ttar = (btar = "0")));
var _local2 = "0";
this["enemy" + i].fire = true;
if (chkl(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x - 27, this["enemy" + i]._y, _local6, _local5) < _local7) {
if (this["enemy" + i]._x > 145) {
_local4 = "l";
}
}
}
if (chkr(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x + 27, this["enemy" + i]._y, _local6, _local5) < _local7) {
if (this["enemy" + i]._x < 835) {
rtar = "r";
}
}
}
if (chkt(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y - 27, _local6, _local5) < _local7) {
if (this["enemy" + i]._y > 145) {
ttar = "t";
}
}
}
if (chkb(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y + 27, _local6, _local5) < _local7) {
if (this["enemy" + i]._y < 555) {
btar = "b";
}
}
}
while ((_local2 == "0") && ((((_local4 != "0") || (rtar != "0")) || (ttar != "0")) || (btar != "0"))) {
_local3 = random(4);
if ((_local3 == 0) && (_local4 != "0")) {
_local2 = _local4;
}
if ((_local3 == 1) && (rtar != "0")) {
_local2 = rtar;
}
if ((_local3 == 2) && (ttar != "0")) {
_local2 = ttar;
}
if ((_local3 == 3) && (btar != "0")) {
_local2 = btar;
}
}
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 120) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 100) {
if ((chk("iam", this["enemy" + i]._x - 70, this["enemy" + i]._y - 33) || (chk("iam", this["enemy" + i]._x - 50, this["enemy" + i]._y + 33))) && (iam.direct == "r")) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
if ((chk("iam", this["enemy" + i]._x + 70, this["enemy" + i]._y - 33) || (chk("iam", this["enemy" + i]._x + 50, this["enemy" + i]._y + 33))) && (iam.direct == "l")) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
if ((chk("iam", this["enemy" + i]._x - 33, this["enemy" + i]._y - 50) || (chk("iam", this["enemy" + i]._x + 33, this["enemy" + i]._y - 70))) && (iam.direct == "b")) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
if ((chk("iam", this["enemy" + i]._x - 33, this["enemy" + i]._y + 50) || (chk("iam", this["enemy" + i]._x + 33, this["enemy" + i]._y + 70))) && (iam.direct == "t")) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
}
_local2 = "0";
this["enemy" + i].w = "esnr1";
this["enemy" + i].direct = _local2;
this["enemy" + i].rm = 5;
} else {
this["enemy" + i].w = this["enemy" + i].wp;
this["enemy" + i].rm = this["enemy" + i].rrm;
if (_local2 == "0") {
_local2 = this["enemy" + i].direct;
}
if (this["enemy" + i].direct != _local2) {
this["enemy" + i].direct = _local2;
this["enemy" + i].think = 7 + random(50 / e_a);
}
}
}
}
i++;
}
}
function robot_t() {
var _local4 = Math.round(iam._x / 70) * 70;
var _local3 = Math.round(iam._y / 70) * 70;
if ((_local4 % 140) != 0) {
_local4 = _local4 + 70;
}
if ((_local3 % 140) != 0) {
_local3 = _local3 + 70;
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
if (this["enemy" + i].life > 0) {
if (this["enemy" + i].p > 0) {
this["enemy" + i].p--;
} else if (((((this["enemy" + i]._rotation == 0) || (this["enemy" + i]._rotation == 90)) || (this["enemy" + i]._rotation == -90)) || (this["enemy" + i]._rotation == 180)) || (this["enemy" + i]._rotation == -180)) {
this["enemy" + i].p = this["enemy" + i].think;
var _local2 = 10000;
var _local5 = "0";
this["enemy" + i].fire = true;
if (chkl(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x - 1, this["enemy" + i]._y, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x - 1, this["enemy" + i]._y, _local4, _local3);
_local5 = "l";
}
}
if (chkr(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x + 1, this["enemy" + i]._y, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x + 1, this["enemy" + i]._y, _local4, _local3);
_local5 = "r";
}
}
if (chkt(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y - 1, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x, this["enemy" + i]._y - 1, _local4, _local3);
_local5 = "t";
}
}
if (chkb(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y + 1, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x, this["enemy" + i]._y + 1, _local4, _local3);
_local5 = "b";
}
}
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 100) {
_local5 = "0";
this["enemy" + i].w = "esnr1";
} else {
this["enemy" + i].w = this["enemy" + i].wp;
}
this["enemy" + i].direct = _local5;
}
}
i++;
}
}
function dovod(nn) {
if (nn == "iam") {
tx = Math.round(this[nn]._x / 70) * 70;
rx = (tx - this[nn]._x) / 3;
this[nn]._x = this[nn]._x + rx;
if (Math.abs(tx - this[nn]._x) < 1) {
this[nn]._x = tx;
}
ty = Math.round(this[nn]._y / 70) * 70;
ry = (ty - this[nn]._y) / 3;
this[nn]._y = this[nn]._y + ry;
if (Math.abs(ty - this[nn]._y) < 1) {
this[nn]._y = ty;
}
}
}
function fireok(nn) {
fok = true;
if ((this[nn]._rotation == 90) && (chk("bg", this[nn]._x + 70, this[nn]._y))) {
fok = false;
}
if ((this[nn]._rotation == -90) && (chk("bg", this[nn]._x - 70, this[nn]._y))) {
fok = false;
}
if ((this[nn]._rotation == 0) && (chk("bg", this[nn]._x, this[nn]._y - 70))) {
fok = false;
}
if ((Math.abs(this[nn]._rotation) == 180) && (chk("bg", this[nn]._x, this[nn]._y + 70))) {
fok = false;
}
return(fok);
}
function dist(xx, yy, xx1, yy1) {
return(Math.sqrt(((xx - xx1) * (xx - xx1)) + ((yy - yy1) * (yy - yy1))));
}
function kd() {
if (Key.getCode() == 37) {
iam.direct = "l";
pl = true;
}
if (Key.getCode() == 39) {
iam.direct = "r";
pr = true;
}
if (Key.getCode() == 38) {
iam.direct = "t";
pt = true;
}
if (Key.getCode() == 40) {
iam.direct = "b";
pb = true;
}
if (Key.getCode() == 65) {
iam.fire = true;
}
}
function ku() {
if (Key.getCode() == 65) {
iam.fire = false;
}
if (Key.getCode() == 37) {
pl = false;
}
if (Key.getCode() == 39) {
pr = false;
}
if (Key.getCode() == 38) {
pt = false;
}
if (Key.getCode() == 40) {
pb = false;
}
if (Key.getCode() == 83) {
if (min_timeout >= min_tm) {
minen();
min_timeout = 0;
}
}
if (((pl && (pr)) && (pt)) && (pb)) {
}
}
var ll = new Object();
ll.onKeyUp = ku;
ll.onKeyDown = kd;
Key.addListener(ll);
function chk(nn, xx, yy) {
if (eval (nn).hitTest(xx, yy, true)) {
return(true);
}
return(false);
}
function chkl(nn) {
ret = true;
if (chk("bg", this[nn]._x - 50, this[nn]._y - 28) || (chk("bg", this[nn]._x - 50, this[nn]._y + 28))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x - 50, this[nn]._y)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x - 50, this[nn]._y)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 50, this[nn]._y - 28) || (chk(("enemy" + ii) + ".dz", this[nn]._x - 50, this[nn]._y + 28))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkr(nn) {
ret = true;
if (chk("bg", this[nn]._x + 50, this[nn]._y - 28) || (chk("bg", this[nn]._x + 50, this[nn]._y + 28))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x + 50, this[nn]._y)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x + 50, this[nn]._y)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x + 50, this[nn]._y - 28) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 50, this[nn]._y + 28))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkt(nn) {
ret = true;
if (chk("bg", this[nn]._x - 28, this[nn]._y - 50) || (chk("bg", this[nn]._x + 28, this[nn]._y - 50))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x, this[nn]._y - 50)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x, this[nn]._y - 50)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 28, this[nn]._y - 50) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 28, this[nn]._y - 50))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkb(nn) {
ret = true;
if (chk("bg", this[nn]._x - 28, this[nn]._y + 50) || (chk("bg", this[nn]._x + 28, this[nn]._y + 50))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x, this[nn]._y + 50)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x, this[nn]._y + 50)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (nn != "enemy") {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 28, this[nn]._y + 50) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 28, this[nn]._y + 50))) {
ret = false;
}
}
}
ii++;
}
return(ret);
}
function birn() {
if (score < total) {
i = 30000;
while (i < (30000 + enemy0_kol)) {
rx = 70 + (70 * random(13));
ry = 70 + (70 * random(9));
if ((!chk("bg", rx, ry)) && (dist(rx, ry, iam._x, iam._y) > 200)) {
if (this["enemy" + i]._name != ("enemy" + i)) {
this.attachMovie("en2", "enemy" + i, i, {_x:rx, _y:ry});
}
}
i++;
}
}
}
function minen() {
this.attachMovie("minen", "min" + min_dp, min_dp, {_x:iam._x, _y:iam._y});
min_dp++;
}
e_t = false;
if (hard) {
iam.bron = 0;
} else {
iam.bron = 3;
}
iam.life = 100;
iam.sp = 4;
iam.ms = 4;
iam.ready = 50;
iam.rm = 50;
iam.dym = 5;
iam.w = "snr";
iam.wp2 = 0;
iam.swapDepths(30007);
g_timer = 0;
e_a = 3;
min_timeout = 0;
min_tm = 50;
min_dp = 10000;
dym_dp = 20000;
tnk_dp = 70001 /* 0x011171 */;
snr_dp = 40000;
MovieClip.prototype.rota = function (dir) {
if (this.life > 0) {
if (!this.ch_fire) {
if (!this.dov) {
if (dir == "l") {
if (this._rotation == 180) {
this._rotation = -180;
}
this.rot = -90;
} else if (dir == "r") {
if (this._rotation < -100) {
this._rotation = 180;
}
this.rot = 90;
} else if (dir == "t") {
this.rot = 0;
} else if (dir == "b") {
if (this._rotation < 0) {
this.rot = -180;
} else {
this.rot = 180;
}
}
r = (this.rot - this._rotation) / 5;
if (Math.abs(r) < 11) {
r = (Math.abs(r) / r) * 11;
}
if (Math.abs(this._rotation - this.rot) > 7) {
this._rotation = this._rotation + r;
dovod(this._name);
} else {
this._rotation = this.rot;
if (dir != "0") {
this.dym++;
if (this.dym > 3) {
duplicateMovieClip ("dm", "dm" + dym_dp, dym_dp);
this.dym = 0;
eval ("dm" + dym_dp)._rotation = random(359);
if (dir == "l") {
eval ("dm" + dym_dp)._x = this._x + 15;
eval ("dm" + dym_dp)._y = this._y;
}
if (dir == "r") {
eval ("dm" + dym_dp)._x = this._x - 15;
eval ("dm" + dym_dp)._y = this._y;
}
if (dir == "t") {
eval ("dm" + dym_dp)._x = this._x;
eval ("dm" + dym_dp)._y = this._y + 15;
}
if (dir == "b") {
eval ("dm" + dym_dp)._x = this._x;
eval ("dm" + dym_dp)._y = this._y - 15;
}
dym_dp++;
if (dym_dp > 19998) {
dym_dp = 10000;
}
}
}
if (dir == "l") {
if (chkl(this._name)) {
this._x = this._x - this.sp;
}
}
if (dir == "r") {
if (chkr(this._name)) {
this._x = this._x + this.sp;
}
}
if (dir == "t") {
if (chkt(this._name)) {
this._y = this._y - this.sp;
}
}
if (dir == "b") {
if (chkb(this._name)) {
this._y = this._y + this.sp;
}
}
if (this.ready < this.rm) {
this.ready++;
}
if ((this.fire && (this.ready >= this.rm)) && (fireok(this._name))) {
this.ready = 0;
this.t.gotoAndPlay(2);
this.fire = false;
if (this.w != "esnr1") {
duplicateMovieClip (this.w, "snr" + snr_dp, snr_dp);
eval ("snr" + snr_dp)._rotation = this._rotation;
if (this._rotation == -90) {
eval ("snr" + snr_dp)._x = this._x - 20;
eval ("snr" + snr_dp)._y = this._y;
eval ("snr" + snr_dp).spx = -7;
eval ("snr" + snr_dp).spy = 0;
}
if (this._rotation == 90) {
eval ("snr" + snr_dp)._x = this._x + 20;
eval ("snr" + snr_dp)._y = this._y;
eval ("snr" + snr_dp).spx = 7;
eval ("snr" + snr_dp).spy = 0;
}
if (this._rotation == 0) {
eval ("snr" + snr_dp)._x = this._x;
eval ("snr" + snr_dp)._y = this._y - 20;
eval ("snr" + snr_dp).spx = 0;
eval ("snr" + snr_dp).spy = -7;
}
if ((this._rotation == 180) || (this._rotation == -180)) {
eval ("snr" + snr_dp)._x = this._x;
eval ("snr" + snr_dp)._y = this._y + 20;
eval ("snr" + snr_dp).spx = 0;
eval ("snr" + snr_dp).spy = 7;
}
snr_dp++;
}
}
}
} else {
dovod(this._name);
}
}
}
};
this.onEnterFrame = function () {
if (iam.life <= 0) {
iam.t.gotoAndPlay("end");
}
if (score == total) {
stopgame = true;
mission_complete = true;
}
stat.life._xscale = iam.life;
stat.score = score;
birn();
if (min_timeout < min_tm) {
min_timeout++;
}
if (stopgame) {
delete this.onEnterFrame;
play();
}
if (((pl || (pr)) || (pt)) || (pb)) {
} else {
iam.direct = "0";
}
iam.rota(iam.direct);
e_target.rota(e_target.direct);
robot1();
robot();
g_timer++;
if (((g_timer == 1000) || (g_timer == 2000)) || ((g_timer == 3000) && (hard))) {
e_a++;
rm = rm - 90;
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
this["enemy" + i].rota(this["enemy" + i].direct);
i++;
}
};
Frame 1106
zzz.swapDepths(99999);
play();
iam_bonus = iam.life;
Frame 1286
for (i in _root) {
this[i].removeMovieClip();
}
snd.stop();
delete eval (this.onEnterFrame());
if (!mission_complete) {
gotoAndPlay (851);
highscore = highscore - 10;
again_check = true;
} else {
highscore = highscore + (level_score + Math.round(iam_bonus));
}
Frame 1287
delete eval (this.onEnterFrame());
stopgame = false;
so.data.dscore = highscore;
so.data.lev = 3;
so.data.hrd = hard;
var snd = new Sound();
snd.attachSound("sound0");
snd.start(0, 10000);
snd.setVolume(vol);
this.onEnterFrame = function () {
snd.setVolume(vol);
};
Frame 1326
stop();
stop();
if (again_check) {
b2.r.t = "TRY AGAIN";
} else {
b2.r.t = "START LEVEL 3";
}
Frame 1354
Frame 1442
snd.stop();
if (ng) {
gotoAndPlay (259);
}
Frame 1443
level_score = 0;
temp_score = highscore;
stat.s_score = highscore;
again_check = false;
Frame 1495
var snd = new Sound();
snd.attachSound("sound");
snd.start(0, 10000);
snd.setVolume(vol);
Frame 1509
stop();
this.onEnterFrame = function () {
if (Key.isDown(32)) {
play();
delete this.onEnterFrame;
}
};
Frame 1541
stop();
m_target = "en_t0";
total = 70;
stat.rrr = total;
enemy0_kol = 3;
score = 0;
function robot1() {
var _local4 = Math.round(iam._x / 70) * 70;
var _local3 = Math.round(iam._y / 70) * 70;
if (e_target._x < 140) {
e_target._x = 140;
}
if (e_target._y < 140) {
e_target._y = 140;
}
if (e_target._x > 840) {
e_target._x = 840;
}
if (e_target._y > 560) {
e_target._y = 560;
}
if (e_target.life > 0) {
if (e_target.think > 0) {
e_target.think--;
} else if (((((e_target._rotation == 0) || (e_target._rotation == 90)) || (e_target._rotation == -90)) || (e_target._rotation == 180)) || (e_target._rotation == -180)) {
var _local2 = 0;
var _local5 = dist(e_target._x, e_target._y, _local4, _local3);
var _local1 = (ltar = (rtar = (ttar = (btar = "0"))));
e_target.fire = true;
if (chkl(e_target._name)) {
if (dist(e_target._x - 27, e_target._y, _local4, _local3) > _local5) {
if (e_target._x > 145) {
ltar = "l";
}
}
}
if (chkr(e_target._name)) {
if (dist(e_target._x + 27, e_target._y, _local4, _local3) > _local5) {
if (e_target._x < 835) {
rtar = "r";
}
}
}
if (chkt(e_target._name)) {
if (dist(e_target._x, e_target._y - 27, _local4, _local3) > _local5) {
if (e_target._y > 145) {
ttar = "t";
}
}
}
if (chkb(e_target._name)) {
if (dist(e_target._x, e_target._y + 27, _local4, _local3) > _local5) {
if (e_target._y < 555) {
btar = "b";
}
}
}
while ((_local1 == "0") && ((((ltar != "0") || (rtar != "0")) || (ttar != "0")) || (btar != "0"))) {
_local2 = random(4);
if ((_local2 == 0) && (ltar != "0")) {
_local1 = ltar;
}
if ((_local2 == 1) && (rtar != "0")) {
_local1 = rtar;
}
if ((_local2 == 2) && (ttar != "0")) {
_local1 = ttar;
}
if ((_local2 == 3) && (btar != "0")) {
_local1 = btar;
}
}
if (e_target.direct != _local1) {
e_target.direct = _local1;
e_target.think = 17;
}
}
}
}
function robot() {
var _local6 = Math.round(iam._x / 70) * 70;
var _local5 = Math.round(iam._y / 70) * 70;
var _local8 = 0;
if ((_local5 % 140) != 0) {
if (_local5 > 560) {
_local5 = _local5 - 70;
} else if (_local5 < 100) {
_local5 = _local5 + 70;
} else {
_local8 = random(1);
if (_local8 == 0) {
_local5 = _local5 + 70;
} else {
_local5 = _local5 - 70;
}
}
}
if ((_local6 % 140) != 0) {
if (_local6 > 850) {
_local6 = _local6 - 70;
} else if (_local6 < 100) {
_local6 = _local6 + 70;
} else {
_local8 = random(1);
if (_local8 == 0) {
_local6 = _local6 + 70;
} else {
_local6 = _local6 - 70;
}
}
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
if (this["enemy" + i]._x < 140) {
this["enemy" + i]._x = 140;
}
if (this["enemy" + i]._y < 140) {
this["enemy" + i]._y = 140;
}
if (this["enemy" + i]._x > 840) {
this["enemy" + i]._x = 840;
}
if (this["enemy" + i]._y > 560) {
this["enemy" + i]._y = 560;
}
if (this["enemy" + i].life > 0) {
if (this["enemy" + i].think > 0) {
this["enemy" + i].think--;
} else if (((((this["enemy" + i]._rotation == 0) || (this["enemy" + i]._rotation == 90)) || (this["enemy" + i]._rotation == -90)) || (this["enemy" + i]._rotation == 180)) || (this["enemy" + i]._rotation == -180)) {
var _local3 = 0;
var _local7 = dist(this["enemy" + i]._x, this["enemy" + i]._y, _local6, _local5);
var _local4 = (rtar = (ttar = (btar = "0")));
var _local2 = "0";
this["enemy" + i].fire = true;
if (chkl(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x - 27, this["enemy" + i]._y, _local6, _local5) < _local7) {
if (this["enemy" + i]._x > 145) {
_local4 = "l";
}
}
}
if (chkr(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x + 27, this["enemy" + i]._y, _local6, _local5) < _local7) {
if (this["enemy" + i]._x < 835) {
rtar = "r";
}
}
}
if (chkt(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y - 27, _local6, _local5) < _local7) {
if (this["enemy" + i]._y > 145) {
ttar = "t";
}
}
}
if (chkb(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y + 27, _local6, _local5) < _local7) {
if (this["enemy" + i]._y < 555) {
btar = "b";
}
}
}
while ((_local2 == "0") && ((((_local4 != "0") || (rtar != "0")) || (ttar != "0")) || (btar != "0"))) {
_local3 = random(4);
if ((_local3 == 0) && (_local4 != "0")) {
_local2 = _local4;
}
if ((_local3 == 1) && (rtar != "0")) {
_local2 = rtar;
}
if ((_local3 == 2) && (ttar != "0")) {
_local2 = ttar;
}
if ((_local3 == 3) && (btar != "0")) {
_local2 = btar;
}
}
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 120) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 100) {
if (((chk("iam", this["enemy" + i]._x - 70, this["enemy" + i]._y - 33) || (chk("iam", this["enemy" + i]._x - 50, this["enemy" + i]._y + 33))) && (iam.direct == "r")) && (this["enemy" + i].kill)) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
if (((chk("iam", this["enemy" + i]._x + 70, this["enemy" + i]._y - 33) || (chk("iam", this["enemy" + i]._x + 50, this["enemy" + i]._y + 33))) && (iam.direct == "l")) && (this["enemy" + i].kill)) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
if (((chk("iam", this["enemy" + i]._x - 33, this["enemy" + i]._y - 50) || (chk("iam", this["enemy" + i]._x + 33, this["enemy" + i]._y - 70))) && (iam.direct == "b")) && (this["enemy" + i].kill)) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
if (((chk("iam", this["enemy" + i]._x - 33, this["enemy" + i]._y + 50) || (chk("iam", this["enemy" + i]._x + 33, this["enemy" + i]._y + 70))) && (iam.direct == "t")) && (this["enemy" + i].kill)) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
}
_local2 = "0";
this["enemy" + i].w = "esnr1";
this["enemy" + i].direct = _local2;
this["enemy" + i].rm = 5;
} else {
this["enemy" + i].w = this["enemy" + i].wp;
this["enemy" + i].rm = this["enemy" + i].rrm;
if (_local2 == "0") {
_local2 = this["enemy" + i].direct;
}
if (this["enemy" + i].direct != _local2) {
this["enemy" + i].direct = _local2;
this["enemy" + i].think = 7 + random(50 / e_a);
}
}
}
}
i++;
}
}
function robot_t() {
var _local4 = Math.round(iam._x / 70) * 70;
var _local3 = Math.round(iam._y / 70) * 70;
if ((_local4 % 140) != 0) {
_local4 = _local4 + 70;
}
if ((_local3 % 140) != 0) {
_local3 = _local3 + 70;
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
if (this["enemy" + i].life > 0) {
if (this["enemy" + i].p > 0) {
this["enemy" + i].p--;
} else if (((((this["enemy" + i]._rotation == 0) || (this["enemy" + i]._rotation == 90)) || (this["enemy" + i]._rotation == -90)) || (this["enemy" + i]._rotation == 180)) || (this["enemy" + i]._rotation == -180)) {
this["enemy" + i].p = this["enemy" + i].think;
var _local2 = 10000;
var _local5 = "0";
this["enemy" + i].fire = true;
if (chkl(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x - 1, this["enemy" + i]._y, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x - 1, this["enemy" + i]._y, _local4, _local3);
_local5 = "l";
}
}
if (chkr(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x + 1, this["enemy" + i]._y, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x + 1, this["enemy" + i]._y, _local4, _local3);
_local5 = "r";
}
}
if (chkt(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y - 1, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x, this["enemy" + i]._y - 1, _local4, _local3);
_local5 = "t";
}
}
if (chkb(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y + 1, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x, this["enemy" + i]._y + 1, _local4, _local3);
_local5 = "b";
}
}
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 100) {
_local5 = "0";
this["enemy" + i].w = "esnr1";
} else {
this["enemy" + i].w = this["enemy" + i].wp;
}
this["enemy" + i].direct = _local5;
}
}
i++;
}
}
function dovod(nn) {
if (nn == "iam") {
tx = Math.round(this[nn]._x / 70) * 70;
rx = (tx - this[nn]._x) / 3;
this[nn]._x = this[nn]._x + rx;
if (Math.abs(tx - this[nn]._x) < 1) {
this[nn]._x = tx;
}
ty = Math.round(this[nn]._y / 70) * 70;
ry = (ty - this[nn]._y) / 3;
this[nn]._y = this[nn]._y + ry;
if (Math.abs(ty - this[nn]._y) < 1) {
this[nn]._y = ty;
}
}
}
function fireok(nn) {
fok = true;
if ((this[nn]._rotation == 90) && (chk("bg", this[nn]._x + 70, this[nn]._y))) {
fok = false;
}
if ((this[nn]._rotation == -90) && (chk("bg", this[nn]._x - 70, this[nn]._y))) {
fok = false;
}
if ((this[nn]._rotation == 0) && (chk("bg", this[nn]._x, this[nn]._y - 70))) {
fok = false;
}
if ((Math.abs(this[nn]._rotation) == 180) && (chk("bg", this[nn]._x, this[nn]._y + 70))) {
fok = false;
}
return(fok);
}
function dist(xx, yy, xx1, yy1) {
return(Math.sqrt(((xx - xx1) * (xx - xx1)) + ((yy - yy1) * (yy - yy1))));
}
function kd() {
if (Key.getCode() == 37) {
iam.direct = "l";
pl = true;
}
if (Key.getCode() == 39) {
iam.direct = "r";
pr = true;
}
if (Key.getCode() == 38) {
iam.direct = "t";
pt = true;
}
if (Key.getCode() == 40) {
iam.direct = "b";
pb = true;
}
if (Key.getCode() == 65) {
iam.fire = true;
}
}
function ku() {
if (Key.getCode() == 65) {
iam.fire = false;
}
if (Key.getCode() == 37) {
pl = false;
}
if (Key.getCode() == 39) {
pr = false;
}
if (Key.getCode() == 38) {
pt = false;
}
if (Key.getCode() == 40) {
pb = false;
}
if (Key.getCode() == 83) {
if (min_timeout >= min_tm) {
minen();
min_timeout = 0;
}
}
if (((pl && (pr)) && (pt)) && (pb)) {
}
}
var ll = new Object();
ll.onKeyUp = ku;
ll.onKeyDown = kd;
Key.addListener(ll);
function chk(nn, xx, yy) {
if (eval (nn).hitTest(xx, yy, true)) {
return(true);
}
return(false);
}
function chkl(nn) {
ret = true;
if (chk("bg", this[nn]._x - 50, this[nn]._y - 28) || (chk("bg", this[nn]._x - 50, this[nn]._y + 28))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x - 50, this[nn]._y)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x - 50, this[nn]._y)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 50, this[nn]._y - 28) || (chk(("enemy" + ii) + ".dz", this[nn]._x - 50, this[nn]._y + 28))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkr(nn) {
ret = true;
if (chk("bg", this[nn]._x + 50, this[nn]._y - 28) || (chk("bg", this[nn]._x + 50, this[nn]._y + 28))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x + 50, this[nn]._y)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x + 50, this[nn]._y)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x + 50, this[nn]._y - 28) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 50, this[nn]._y + 28))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkt(nn) {
ret = true;
if (chk("bg", this[nn]._x - 28, this[nn]._y - 50) || (chk("bg", this[nn]._x + 28, this[nn]._y - 50))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x, this[nn]._y - 50)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x, this[nn]._y - 50)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 28, this[nn]._y - 50) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 28, this[nn]._y - 50))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkb(nn) {
ret = true;
if (chk("bg", this[nn]._x - 28, this[nn]._y + 50) || (chk("bg", this[nn]._x + 28, this[nn]._y + 50))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x, this[nn]._y + 50)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x, this[nn]._y + 50)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (nn != "enemy") {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 28, this[nn]._y + 50) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 28, this[nn]._y + 50))) {
ret = false;
}
}
}
ii++;
}
return(ret);
}
function birn() {
if (score < total) {
i = 30000;
while (i < (30000 + enemy0_kol)) {
rx = 70 + (70 * random(13));
ry = 70 + (70 * random(9));
if ((!chk("bg", rx, ry)) && (dist(rx, ry, iam._x, iam._y) > 200)) {
if (this["enemy" + i]._name != ("enemy" + i)) {
rand = random(3);
if ((rand == 0) || (rand == 1)) {
this.attachMovie("en2", "enemy" + i, i, {_x:rx, _y:ry});
this["enemy" + i].kill = true;
}
if (rand == 2) {
this.attachMovie("en0", "enemy" + i, i, {_x:rx, _y:ry});
}
}
}
i++;
}
}
}
function minen() {
this.attachMovie("minen", "min" + min_dp, min_dp, {_x:iam._x, _y:iam._y});
min_dp++;
}
e_t = false;
if (hard) {
iam.bron = 0;
} else {
iam.bron = 3;
}
iam.life = 100;
iam.sp = 4;
iam.ms = 4;
iam.ready = 50;
iam.rm = 50;
iam.dym = 5;
iam.w = "snr";
iam.wp2 = 0;
iam.swapDepths(30007);
g_timer = 0;
e_a = 3;
min_timeout = 0;
min_tm = 50;
min_dp = 10000;
dym_dp = 20000;
tnk_dp = 70001 /* 0x011171 */;
snr_dp = 40000;
MovieClip.prototype.rota = function (dir) {
if (this.life > 0) {
if (!this.ch_fire) {
if (!this.dov) {
if (dir == "l") {
if (this._rotation == 180) {
this._rotation = -180;
}
this.rot = -90;
} else if (dir == "r") {
if (this._rotation < -100) {
this._rotation = 180;
}
this.rot = 90;
} else if (dir == "t") {
this.rot = 0;
} else if (dir == "b") {
if (this._rotation < 0) {
this.rot = -180;
} else {
this.rot = 180;
}
}
r = (this.rot - this._rotation) / 5;
if (Math.abs(r) < 11) {
r = (Math.abs(r) / r) * 11;
}
if (Math.abs(this._rotation - this.rot) > 7) {
this._rotation = this._rotation + r;
dovod(this._name);
} else {
this._rotation = this.rot;
if (dir != "0") {
this.dym++;
if (this.dym > 3) {
duplicateMovieClip ("dm", "dm" + dym_dp, dym_dp);
this.dym = 0;
eval ("dm" + dym_dp)._rotation = random(359);
if (dir == "l") {
eval ("dm" + dym_dp)._x = this._x + 15;
eval ("dm" + dym_dp)._y = this._y;
}
if (dir == "r") {
eval ("dm" + dym_dp)._x = this._x - 15;
eval ("dm" + dym_dp)._y = this._y;
}
if (dir == "t") {
eval ("dm" + dym_dp)._x = this._x;
eval ("dm" + dym_dp)._y = this._y + 15;
}
if (dir == "b") {
eval ("dm" + dym_dp)._x = this._x;
eval ("dm" + dym_dp)._y = this._y - 15;
}
dym_dp++;
if (dym_dp > 19998) {
dym_dp = 10000;
}
}
}
if (dir == "l") {
if (chkl(this._name)) {
this._x = this._x - this.sp;
}
}
if (dir == "r") {
if (chkr(this._name)) {
this._x = this._x + this.sp;
}
}
if (dir == "t") {
if (chkt(this._name)) {
this._y = this._y - this.sp;
}
}
if (dir == "b") {
if (chkb(this._name)) {
this._y = this._y + this.sp;
}
}
if (this.ready < this.rm) {
this.ready++;
}
if ((this.fire && (this.ready >= this.rm)) && (fireok(this._name))) {
this.ready = 0;
this.t.gotoAndPlay(2);
this.fire = false;
if (this.w != "esnr1") {
duplicateMovieClip (this.w, "snr" + snr_dp, snr_dp);
eval ("snr" + snr_dp)._rotation = this._rotation;
if (this._rotation == -90) {
eval ("snr" + snr_dp)._x = this._x - 20;
eval ("snr" + snr_dp)._y = this._y;
eval ("snr" + snr_dp).spx = -7;
eval ("snr" + snr_dp).spy = 0;
}
if (this._rotation == 90) {
eval ("snr" + snr_dp)._x = this._x + 20;
eval ("snr" + snr_dp)._y = this._y;
eval ("snr" + snr_dp).spx = 7;
eval ("snr" + snr_dp).spy = 0;
}
if (this._rotation == 0) {
eval ("snr" + snr_dp)._x = this._x;
eval ("snr" + snr_dp)._y = this._y - 20;
eval ("snr" + snr_dp).spx = 0;
eval ("snr" + snr_dp).spy = -7;
}
if ((this._rotation == 180) || (this._rotation == -180)) {
eval ("snr" + snr_dp)._x = this._x;
eval ("snr" + snr_dp)._y = this._y + 20;
eval ("snr" + snr_dp).spx = 0;
eval ("snr" + snr_dp).spy = 7;
}
snr_dp++;
}
}
}
} else {
dovod(this._name);
}
}
}
};
this.onEnterFrame = function () {
if (iam.life <= 0) {
iam.t.gotoAndPlay("end");
}
if (score == total) {
stopgame = true;
mission_complete = true;
}
stat.life._xscale = iam.life;
stat.score = score;
birn();
if (min_timeout < min_tm) {
min_timeout++;
}
if (stopgame) {
delete this.onEnterFrame;
play();
}
if (((pl || (pr)) || (pt)) || (pb)) {
} else {
iam.direct = "0";
}
iam.rota(iam.direct);
e_target.rota(e_target.direct);
robot1();
robot();
g_timer++;
if (((g_timer == 1000) || (g_timer == 2000)) || ((g_timer == 3000) && (hard))) {
e_a++;
rm = rm - 90;
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
this["enemy" + i].rota(this["enemy" + i].direct);
i++;
}
};
Frame 1542
zzz.swapDepths(99999);
play();
iam_bonus = iam.life;
Frame 1722
for (i in _root) {
this[i].removeMovieClip();
}
snd.stop();
delete eval (this.onEnterFrame());
if (!mission_complete) {
gotoAndPlay (1287);
highscore = highscore - 10;
again_check = true;
} else {
highscore = highscore + (level_score + Math.round(iam_bonus));
}
Frame 1723
delete eval (this.onEnterFrame());
stopgame = false;
trace(hard);
so.data.dscore = highscore;
so.data.lev = 4;
so.data.hrd = hard;
var snd = new Sound();
snd.attachSound("sound0");
snd.start(0, 10000);
snd.setVolume(vol);
this.onEnterFrame = function () {
snd.setVolume(vol);
};
Frame 1762
stop();
if (again_check) {
b2.r.t = "TRY AGAIN";
} else {
b2.r.t = "START LEVEL 4";
}
Frame 1790
Frame 1878
snd.stop();
if (ng) {
gotoAndPlay (259);
}
Frame 1879
stat.m_life._visible = false;
level_score = 0;
temp_score = highscore;
stat.s_score = highscore;
again_check = false;
Frame 1931
var snd = new Sound();
snd.attachSound("sound");
snd.start(0, 10000);
snd.setVolume(vol);
Frame 1945
stop();
this.onEnterFrame = function () {
if (Key.isDown(32)) {
play();
delete this.onEnterFrame;
}
};
Frame 1977
stop();
m_target = "en_t0";
enemy0_kol = 4;
score = 0;
function robot1() {
var _local4 = Math.round(iam._x / 70) * 70;
var _local3 = Math.round(iam._y / 70) * 70;
if (e_target._x < 140) {
e_target._x = 140;
}
if (e_target._y < 140) {
e_target._y = 140;
}
if (e_target._x > 840) {
e_target._x = 840;
}
if (e_target._y > 560) {
e_target._y = 560;
}
if (e_target.life > 0) {
if (e_target.think > 0) {
e_target.think--;
} else if (((((e_target._rotation == 0) || (e_target._rotation == 90)) || (e_target._rotation == -90)) || (e_target._rotation == 180)) || (e_target._rotation == -180)) {
var _local2 = 0;
var _local5 = dist(e_target._x, e_target._y, _local4, _local3);
var _local1 = (ltar = (rtar = (ttar = (btar = "0"))));
e_target.fire = true;
if (chkl(e_target._name)) {
if (dist(e_target._x - 27, e_target._y, _local4, _local3) > _local5) {
if (e_target._x > 145) {
ltar = "l";
}
}
}
if (chkr(e_target._name)) {
if (dist(e_target._x + 27, e_target._y, _local4, _local3) > _local5) {
if (e_target._x < 835) {
rtar = "r";
}
}
}
if (chkt(e_target._name)) {
if (dist(e_target._x, e_target._y - 27, _local4, _local3) > _local5) {
if (e_target._y > 145) {
ttar = "t";
}
}
}
if (chkb(e_target._name)) {
if (dist(e_target._x, e_target._y + 27, _local4, _local3) > _local5) {
if (e_target._y < 555) {
btar = "b";
}
}
}
while ((_local1 == "0") && ((((ltar != "0") || (rtar != "0")) || (ttar != "0")) || (btar != "0"))) {
_local2 = random(4);
if ((_local2 == 0) && (ltar != "0")) {
_local1 = ltar;
}
if ((_local2 == 1) && (rtar != "0")) {
_local1 = rtar;
}
if ((_local2 == 2) && (ttar != "0")) {
_local1 = ttar;
}
if ((_local2 == 3) && (btar != "0")) {
_local1 = btar;
}
}
if (e_target.direct != _local1) {
e_target.direct = _local1;
e_target.think = 17;
}
}
}
}
function robot() {
var _local6 = Math.round(iam._x / 70) * 70;
var _local5 = Math.round(iam._y / 70) * 70;
var _local8 = 0;
if ((_local5 % 140) != 0) {
if (_local5 > 560) {
_local5 = _local5 - 70;
} else if (_local5 < 100) {
_local5 = _local5 + 70;
} else {
_local8 = random(1);
if (_local8 == 0) {
_local5 = _local5 + 70;
} else {
_local5 = _local5 - 70;
}
}
}
if ((_local6 % 140) != 0) {
if (_local6 > 850) {
_local6 = _local6 - 70;
} else if (_local6 < 100) {
_local6 = _local6 + 70;
} else {
_local8 = random(1);
if (_local8 == 0) {
_local6 = _local6 + 70;
} else {
_local6 = _local6 - 70;
}
}
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
if (this["enemy" + i]._x < 140) {
this["enemy" + i]._x = 140;
}
if (this["enemy" + i]._y < 140) {
this["enemy" + i]._y = 140;
}
if (this["enemy" + i]._x > 840) {
this["enemy" + i]._x = 840;
}
if (this["enemy" + i]._y > 560) {
this["enemy" + i]._y = 560;
}
if (this["enemy" + i].life > 0) {
if (this["enemy" + i].think > 0) {
this["enemy" + i].think--;
} else if (((((this["enemy" + i]._rotation == 0) || (this["enemy" + i]._rotation == 90)) || (this["enemy" + i]._rotation == -90)) || (this["enemy" + i]._rotation == 180)) || (this["enemy" + i]._rotation == -180)) {
var _local3 = 0;
var _local7 = dist(this["enemy" + i]._x, this["enemy" + i]._y, _local6, _local5);
var _local4 = (rtar = (ttar = (btar = "0")));
var _local2 = "0";
this["enemy" + i].fire = true;
if (chkl(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x - 27, this["enemy" + i]._y, _local6, _local5) < _local7) {
if (this["enemy" + i]._x > 145) {
_local4 = "l";
}
}
}
if (chkr(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x + 27, this["enemy" + i]._y, _local6, _local5) < _local7) {
if (this["enemy" + i]._x < 835) {
rtar = "r";
}
}
}
if (chkt(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y - 27, _local6, _local5) < _local7) {
if (this["enemy" + i]._y > 145) {
ttar = "t";
}
}
}
if (chkb(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y + 27, _local6, _local5) < _local7) {
if (this["enemy" + i]._y < 555) {
btar = "b";
}
}
}
while ((_local2 == "0") && ((((_local4 != "0") || (rtar != "0")) || (ttar != "0")) || (btar != "0"))) {
_local3 = random(4);
if ((_local3 == 0) && (_local4 != "0")) {
_local2 = _local4;
}
if ((_local3 == 1) && (rtar != "0")) {
_local2 = rtar;
}
if ((_local3 == 2) && (ttar != "0")) {
_local2 = ttar;
}
if ((_local3 == 3) && (btar != "0")) {
_local2 = btar;
}
}
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 100) {
_local2 = "0";
this["enemy" + i].w = "esnr1";
this["enemy" + i].direct = _local2;
this["enemy" + i].rm = 5;
} else {
this["enemy" + i].w = this["enemy" + i].wp;
this["enemy" + i].rm = this["enemy" + i].rrm;
if (_local2 == "0") {
_local2 = this["enemy" + i].direct;
}
if (this["enemy" + i].direct != _local2) {
this["enemy" + i].direct = _local2;
this["enemy" + i].think = 7 + random(50 / e_a);
}
}
}
}
i++;
}
}
function robot_t() {
var _local4 = Math.round(iam._x / 70) * 70;
var _local3 = Math.round(iam._y / 70) * 70;
if ((_local4 % 140) != 0) {
_local4 = _local4 + 70;
}
if ((_local3 % 140) != 0) {
_local3 = _local3 + 70;
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
if (this["enemy" + i].life > 0) {
if (this["enemy" + i].p > 0) {
this["enemy" + i].p--;
} else if (((((this["enemy" + i]._rotation == 0) || (this["enemy" + i]._rotation == 90)) || (this["enemy" + i]._rotation == -90)) || (this["enemy" + i]._rotation == 180)) || (this["enemy" + i]._rotation == -180)) {
this["enemy" + i].p = this["enemy" + i].think;
var _local2 = 10000;
var _local5 = "0";
this["enemy" + i].fire = true;
if (chkl(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x - 1, this["enemy" + i]._y, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x - 1, this["enemy" + i]._y, _local4, _local3);
_local5 = "l";
}
}
if (chkr(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x + 1, this["enemy" + i]._y, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x + 1, this["enemy" + i]._y, _local4, _local3);
_local5 = "r";
}
}
if (chkt(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y - 1, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x, this["enemy" + i]._y - 1, _local4, _local3);
_local5 = "t";
}
}
if (chkb(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y + 1, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x, this["enemy" + i]._y + 1, _local4, _local3);
_local5 = "b";
}
}
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 100) {
_local5 = "0";
this["enemy" + i].w = "esnr1";
} else {
this["enemy" + i].w = this["enemy" + i].wp;
}
this["enemy" + i].direct = _local5;
}
}
i++;
}
}
function dovod(nn) {
if (nn == "iam") {
tx = Math.round(this[nn]._x / 70) * 70;
rx = (tx - this[nn]._x) / 3;
this[nn]._x = this[nn]._x + rx;
if (Math.abs(tx - this[nn]._x) < 1) {
this[nn]._x = tx;
}
ty = Math.round(this[nn]._y / 70) * 70;
ry = (ty - this[nn]._y) / 3;
this[nn]._y = this[nn]._y + ry;
if (Math.abs(ty - this[nn]._y) < 1) {
this[nn]._y = ty;
}
}
}
function fireok(nn) {
fok = true;
if ((this[nn]._rotation == 90) && (chk("bg", this[nn]._x + 70, this[nn]._y))) {
fok = false;
}
if ((this[nn]._rotation == -90) && (chk("bg", this[nn]._x - 70, this[nn]._y))) {
fok = false;
}
if ((this[nn]._rotation == 0) && (chk("bg", this[nn]._x, this[nn]._y - 70))) {
fok = false;
}
if ((Math.abs(this[nn]._rotation) == 180) && (chk("bg", this[nn]._x, this[nn]._y + 70))) {
fok = false;
}
return(fok);
}
function dist(xx, yy, xx1, yy1) {
return(Math.sqrt(((xx - xx1) * (xx - xx1)) + ((yy - yy1) * (yy - yy1))));
}
function kd() {
if (Key.getCode() == 37) {
iam.direct = "l";
pl = true;
}
if (Key.getCode() == 39) {
iam.direct = "r";
pr = true;
}
if (Key.getCode() == 38) {
iam.direct = "t";
pt = true;
}
if (Key.getCode() == 40) {
iam.direct = "b";
pb = true;
}
if (Key.getCode() == 65) {
iam.fire = true;
}
}
function ku() {
if (Key.getCode() == 65) {
iam.fire = false;
}
if (Key.getCode() == 37) {
pl = false;
}
if (Key.getCode() == 39) {
pr = false;
}
if (Key.getCode() == 38) {
pt = false;
}
if (Key.getCode() == 40) {
pb = false;
}
if (Key.getCode() == 83) {
if (min_timeout >= min_tm) {
minen();
min_timeout = 0;
}
}
if (((pl && (pr)) && (pt)) && (pb)) {
}
}
var ll = new Object();
ll.onKeyUp = ku;
ll.onKeyDown = kd;
Key.addListener(ll);
function chk(nn, xx, yy) {
if (eval (nn).hitTest(xx, yy, true)) {
return(true);
}
return(false);
}
function chkl(nn) {
ret = true;
if (chk("bg", this[nn]._x - 50, this[nn]._y - 28) || (chk("bg", this[nn]._x - 50, this[nn]._y + 28))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x - 50, this[nn]._y)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x - 50, this[nn]._y)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 50, this[nn]._y - 28) || (chk(("enemy" + ii) + ".dz", this[nn]._x - 50, this[nn]._y + 28))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkr(nn) {
ret = true;
if (chk("bg", this[nn]._x + 50, this[nn]._y - 28) || (chk("bg", this[nn]._x + 50, this[nn]._y + 28))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x + 50, this[nn]._y)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x + 50, this[nn]._y)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x + 50, this[nn]._y - 28) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 50, this[nn]._y + 28))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkt(nn) {
ret = true;
if (chk("bg", this[nn]._x - 28, this[nn]._y - 50) || (chk("bg", this[nn]._x + 28, this[nn]._y - 50))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x, this[nn]._y - 50)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x, this[nn]._y - 50)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 28, this[nn]._y - 50) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 28, this[nn]._y - 50))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkb(nn) {
ret = true;
if (chk("bg", this[nn]._x - 28, this[nn]._y + 50) || (chk("bg", this[nn]._x + 28, this[nn]._y + 50))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x, this[nn]._y + 50)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x, this[nn]._y + 50)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (nn != "enemy") {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 28, this[nn]._y + 50) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 28, this[nn]._y + 50))) {
ret = false;
}
}
}
ii++;
}
return(ret);
}
function birn() {
if ((g_timer > 3500) && (!e_t)) {
e_t = true;
stat.m_life._visible = true;
while (chk("bg", rx, ry) || (dist(rx, ry, iam._x, iam._y) < 200)) {
i = 30000;
while (i < (30000 + enemy0_kol)) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
i++;
}
rx = 70 + (70 * random(13));
ry = 70 + (70 * random(9));
}
this.attachMovie(m_target, "e_target", 30006, {_x:rx, _y:ry});
} else if (g_timer < 3499) {
i = 30000;
while (i < (30000 + enemy0_kol)) {
rx = 70 + (70 * random(13));
ry = 70 + (70 * random(9));
if ((!chk("bg", rx, ry)) && (dist(rx, ry, iam._x, iam._y) > 200)) {
if (this["enemy" + i]._name != ("enemy" + i)) {
this.attachMovie("en0", "enemy" + i, i, {_x:rx, _y:ry});
}
}
i++;
}
}
}
function minen() {
this.attachMovie("minen", "min" + min_dp, min_dp, {_x:iam._x, _y:iam._y});
min_dp++;
}
e_t = false;
if (hard) {
iam.bron = 0;
} else {
iam.bron = 3;
}
iam.life = 100;
iam.sp = 4;
iam.ms = 4;
iam.ready = 50;
iam.rm = 50;
iam.dym = 5;
iam.w = "snr";
iam.wp2 = 0;
iam.swapDepths(30007);
g_timer = 0;
e_a = 3;
min_timeout = 0;
min_tm = 50;
min_dp = 10000;
dym_dp = 20000;
tnk_dp = 70001 /* 0x011171 */;
snr_dp = 40000;
MovieClip.prototype.rota = function (dir) {
if (this.life > 0) {
if (!this.ch_fire) {
if (!this.dov) {
if (dir == "l") {
if (this._rotation == 180) {
this._rotation = -180;
}
this.rot = -90;
} else if (dir == "r") {
if (this._rotation < -100) {
this._rotation = 180;
}
this.rot = 90;
} else if (dir == "t") {
this.rot = 0;
} else if (dir == "b") {
if (this._rotation < 0) {
this.rot = -180;
} else {
this.rot = 180;
}
}
r = (this.rot - this._rotation) / 5;
if (Math.abs(r) < 11) {
r = (Math.abs(r) / r) * 11;
}
if (Math.abs(this._rotation - this.rot) > 7) {
this._rotation = this._rotation + r;
dovod(this._name);
} else {
this._rotation = this.rot;
if (dir != "0") {
this.dym++;
if (this.dym > 3) {
duplicateMovieClip ("dm", "dm" + dym_dp, dym_dp);
this.dym = 0;
eval ("dm" + dym_dp)._rotation = random(359);
if (dir == "l") {
eval ("dm" + dym_dp)._x = this._x + 15;
eval ("dm" + dym_dp)._y = this._y;
}
if (dir == "r") {
eval ("dm" + dym_dp)._x = this._x - 15;
eval ("dm" + dym_dp)._y = this._y;
}
if (dir == "t") {
eval ("dm" + dym_dp)._x = this._x;
eval ("dm" + dym_dp)._y = this._y + 15;
}
if (dir == "b") {
eval ("dm" + dym_dp)._x = this._x;
eval ("dm" + dym_dp)._y = this._y - 15;
}
dym_dp++;
if (dym_dp > 19998) {
dym_dp = 10000;
}
}
}
if (dir == "l") {
if (chkl(this._name)) {
this._x = this._x - this.sp;
}
}
if (dir == "r") {
if (chkr(this._name)) {
this._x = this._x + this.sp;
}
}
if (dir == "t") {
if (chkt(this._name)) {
this._y = this._y - this.sp;
}
}
if (dir == "b") {
if (chkb(this._name)) {
this._y = this._y + this.sp;
}
}
if (this.ready < this.rm) {
this.ready++;
}
if ((this.fire && (this.ready >= this.rm)) && (fireok(this._name))) {
this.ready = 0;
this.t.gotoAndPlay(2);
this.fire = false;
if (this.w != "esnr1") {
duplicateMovieClip (this.w, "snr" + snr_dp, snr_dp);
eval ("snr" + snr_dp)._rotation = this._rotation;
if (this._rotation == -90) {
eval ("snr" + snr_dp)._x = this._x - 20;
eval ("snr" + snr_dp)._y = this._y;
eval ("snr" + snr_dp).spx = -7;
eval ("snr" + snr_dp).spy = 0;
}
if (this._rotation == 90) {
eval ("snr" + snr_dp)._x = this._x + 20;
eval ("snr" + snr_dp)._y = this._y;
eval ("snr" + snr_dp).spx = 7;
eval ("snr" + snr_dp).spy = 0;
}
if (this._rotation == 0) {
eval ("snr" + snr_dp)._x = this._x;
eval ("snr" + snr_dp)._y = this._y - 20;
eval ("snr" + snr_dp).spx = 0;
eval ("snr" + snr_dp).spy = -7;
}
if ((this._rotation == 180) || (this._rotation == -180)) {
eval ("snr" + snr_dp)._x = this._x;
eval ("snr" + snr_dp)._y = this._y + 20;
eval ("snr" + snr_dp).spx = 0;
eval ("snr" + snr_dp).spy = 7;
}
snr_dp++;
}
}
}
} else {
dovod(this._name);
}
}
}
};
this.onEnterFrame = function () {
if (stat.m_life._visible == true) {
stat.m_life._xscale = e_target.life / 3;
}
if (iam.life <= 0) {
iam.t.gotoAndPlay("end");
}
if (score == 70) {
stopgame = true;
mission_complete = true;
}
stat.life._xscale = iam.life;
stat.score = score;
birn();
if (min_timeout < min_tm) {
min_timeout++;
}
if (stopgame) {
delete this.onEnterFrame;
play();
}
if (((pl || (pr)) || (pt)) || (pb)) {
} else {
iam.direct = "0";
}
iam.rota(iam.direct);
e_target.rota(e_target.direct);
robot1();
robot();
g_timer++;
if (((g_timer == 1000) || (g_timer == 2000)) || ((g_timer == 3000) && (hard))) {
e_a++;
rm = rm - 90;
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
this["enemy" + i].rota(this["enemy" + i].direct);
i++;
}
};
Frame 1978
zzz.swapDepths(99999);
play();
iam_bonus = iam.life;
Frame 2158
for (i in _root) {
this[i].removeMovieClip();
}
snd.stop();
delete eval (this.onEnterFrame());
if (!mission_complete) {
gotoAndPlay (1723);
highscore = highscore - 10;
again_check = true;
} else {
highscore = highscore + (level_score + Math.round(iam_bonus));
}
Frame 2159
delete eval (this.onEnterFrame());
stopgame = false;
so.data.dscore = highscore;
so.data.lev = 5;
so.data.hrd = hard;
var snd = new Sound();
snd.attachSound("sound0");
snd.start(0, 10000);
snd.setVolume(vol);
this.onEnterFrame = function () {
snd.setVolume(vol);
};
Frame 2198
stop();
if (again_check) {
b2.r.t = "TRY AGAIN";
} else {
b2.r.t = "START LEVEL 5";
}
Frame 2226
Frame 2314
snd.stop();
if (ng) {
gotoAndPlay (259);
}
Frame 2315
again_check = false;
rzm._visible = false;
level_score = 0;
temp_score = highscore;
stat.s_score = highscore;
Frame 2367
var snd = new Sound();
snd.attachSound("sound");
snd.start(0, 10000);
snd.setVolume(vol);
Frame 2381
stop();
this.onEnterFrame = function () {
if (Key.isDown(32)) {
play();
delete this.onEnterFrame;
}
};
Frame 2413
stop();
m_target = "en_t0";
tm = 0;
enemy0_kol = 3;
score = 0;
function robot1() {
var _local4 = Math.round(iam._x / 70) * 70;
var _local3 = Math.round(iam._y / 70) * 70;
if (e_target._x < 140) {
e_target._x = 140;
}
if (e_target._y < 140) {
e_target._y = 140;
}
if (e_target._x > 840) {
e_target._x = 840;
}
if (e_target._y > 560) {
e_target._y = 560;
}
if (e_target.life > 0) {
if (e_target.think > 0) {
e_target.think--;
} else if (((((e_target._rotation == 0) || (e_target._rotation == 90)) || (e_target._rotation == -90)) || (e_target._rotation == 180)) || (e_target._rotation == -180)) {
var _local2 = 0;
var _local5 = dist(e_target._x, e_target._y, _local4, _local3);
var _local1 = (ltar = (rtar = (ttar = (btar = "0"))));
e_target.fire = true;
if (chkl(e_target._name)) {
if (dist(e_target._x - 27, e_target._y, _local4, _local3) > _local5) {
if (e_target._x > 145) {
ltar = "l";
}
}
}
if (chkr(e_target._name)) {
if (dist(e_target._x + 27, e_target._y, _local4, _local3) > _local5) {
if (e_target._x < 835) {
rtar = "r";
}
}
}
if (chkt(e_target._name)) {
if (dist(e_target._x, e_target._y - 27, _local4, _local3) > _local5) {
if (e_target._y > 145) {
ttar = "t";
}
}
}
if (chkb(e_target._name)) {
if (dist(e_target._x, e_target._y + 27, _local4, _local3) > _local5) {
if (e_target._y < 555) {
btar = "b";
}
}
}
while ((_local1 == "0") && ((((ltar != "0") || (rtar != "0")) || (ttar != "0")) || (btar != "0"))) {
_local2 = random(4);
if ((_local2 == 0) && (ltar != "0")) {
_local1 = ltar;
}
if ((_local2 == 1) && (rtar != "0")) {
_local1 = rtar;
}
if ((_local2 == 2) && (ttar != "0")) {
_local1 = ttar;
}
if ((_local2 == 3) && (btar != "0")) {
_local1 = btar;
}
}
if (e_target.direct != _local1) {
e_target.direct = _local1;
e_target.think = 17;
}
}
}
}
function robot() {
if (m_bur > 0) {
m_bur--;
i = 30000;
while (i < (30000 + enemy0_kol)) {
this["enemy" + i].direct = "0";
i++;
}
} else {
var _local6 = Math.round(iam._x / 70) * 70;
var _local5 = Math.round(iam._y / 70) * 70;
var _local8 = 0;
if ((_local5 % 140) != 0) {
if (_local5 > 560) {
_local5 = _local5 - 70;
} else if (_local5 < 100) {
_local5 = _local5 + 70;
} else {
_local8 = random(1);
if (_local8 == 0) {
_local5 = _local5 + 70;
} else {
_local5 = _local5 - 70;
}
}
}
if ((_local6 % 140) != 0) {
if (_local6 > 850) {
_local6 = _local6 - 70;
} else if (_local6 < 100) {
_local6 = _local6 + 70;
} else {
_local8 = random(1);
if (_local8 == 0) {
_local6 = _local6 + 70;
} else {
_local6 = _local6 - 70;
}
}
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
if (this["enemy" + i]._x < 140) {
this["enemy" + i]._x = 140;
}
if (this["enemy" + i]._y < 140) {
this["enemy" + i]._y = 140;
}
if (this["enemy" + i]._x > 840) {
this["enemy" + i]._x = 840;
}
if (this["enemy" + i]._y > 560) {
this["enemy" + i]._y = 560;
}
if (this["enemy" + i].life > 0) {
if (this["enemy" + i].think > 0) {
this["enemy" + i].think--;
} else if (((((this["enemy" + i]._rotation == 0) || (this["enemy" + i]._rotation == 90)) || (this["enemy" + i]._rotation == -90)) || (this["enemy" + i]._rotation == 180)) || (this["enemy" + i]._rotation == -180)) {
var _local3 = 0;
var _local7 = dist(this["enemy" + i]._x, this["enemy" + i]._y, _local6, _local5);
var _local4 = (rtar = (ttar = (btar = "0")));
var _local2 = "0";
this["enemy" + i].fire = true;
if (chkl(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x - 27, this["enemy" + i]._y, _local6, _local5) < _local7) {
if (this["enemy" + i]._x > 145) {
_local4 = "l";
}
}
}
if (chkr(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x + 27, this["enemy" + i]._y, _local6, _local5) < _local7) {
if (this["enemy" + i]._x < 835) {
rtar = "r";
}
}
}
if (chkt(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y - 27, _local6, _local5) < _local7) {
if (this["enemy" + i]._y > 145) {
ttar = "t";
}
}
}
if (chkb(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y + 27, _local6, _local5) < _local7) {
if (this["enemy" + i]._y < 555) {
btar = "b";
}
}
}
while ((_local2 == "0") && ((((_local4 != "0") || (rtar != "0")) || (ttar != "0")) || (btar != "0"))) {
_local3 = random(4);
if ((_local3 == 0) && (_local4 != "0")) {
_local2 = _local4;
}
if ((_local3 == 1) && (rtar != "0")) {
_local2 = rtar;
}
if ((_local3 == 2) && (ttar != "0")) {
_local2 = ttar;
}
if ((_local3 == 3) && (btar != "0")) {
_local2 = btar;
}
}
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 120) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 100) {
if ((chk("iam", this["enemy" + i]._x - 70, this["enemy" + i]._y - 33) || (chk("iam", this["enemy" + i]._x - 70, this["enemy" + i]._y + 33))) && (iam.direct == "r")) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
if ((chk("iam", this["enemy" + i]._x + 70, this["enemy" + i]._y - 33) || (chk("iam", this["enemy" + i]._x + 70, this["enemy" + i]._y + 33))) && (iam.direct == "l")) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
if ((chk("iam", this["enemy" + i]._x - 33, this["enemy" + i]._y - 70) || (chk("iam", this["enemy" + i]._x + 33, this["enemy" + i]._y - 70))) && (iam.direct == "b")) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
if ((chk("iam", this["enemy" + i]._x - 33, this["enemy" + i]._y + 70) || (chk("iam", this["enemy" + i]._x + 33, this["enemy" + i]._y + 70))) && (iam.direct == "t")) {
this["enemy" + i].life = 0;
this["enemy" + i].t.gotoAndPlay("end");
}
}
_local2 = "0";
this["enemy" + i].w = "esnr1";
this["enemy" + i].direct = _local2;
this["enemy" + i].rm = 5;
} else {
this["enemy" + i].w = this["enemy" + i].wp;
this["enemy" + i].rm = this["enemy" + i].rrm;
if (_local2 == "0") {
_local2 = this["enemy" + i].direct;
}
if (this["enemy" + i].direct != _local2) {
this["enemy" + i].direct = _local2;
this["enemy" + i].think = 7 + random(50 / e_a);
}
}
}
}
i++;
}
}
}
function robot_t() {
var _local4 = Math.round(iam._x / 70) * 70;
var _local3 = Math.round(iam._y / 70) * 70;
if ((_local4 % 140) != 0) {
_local4 = _local4 + 70;
}
if ((_local3 % 140) != 0) {
_local3 = _local3 + 70;
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
if (this["enemy" + i].life > 0) {
if (this["enemy" + i].p > 0) {
this["enemy" + i].p--;
} else if (((((this["enemy" + i]._rotation == 0) || (this["enemy" + i]._rotation == 90)) || (this["enemy" + i]._rotation == -90)) || (this["enemy" + i]._rotation == 180)) || (this["enemy" + i]._rotation == -180)) {
this["enemy" + i].p = this["enemy" + i].think;
var _local2 = 10000;
var _local5 = "0";
this["enemy" + i].fire = true;
if (chkl(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x - 1, this["enemy" + i]._y, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x - 1, this["enemy" + i]._y, _local4, _local3);
_local5 = "l";
}
}
if (chkr(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x + 1, this["enemy" + i]._y, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x + 1, this["enemy" + i]._y, _local4, _local3);
_local5 = "r";
}
}
if (chkt(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y - 1, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x, this["enemy" + i]._y - 1, _local4, _local3);
_local5 = "t";
}
}
if (chkb(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y + 1, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x, this["enemy" + i]._y + 1, _local4, _local3);
_local5 = "b";
}
}
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 100) {
_local5 = "0";
this["enemy" + i].w = "esnr1";
} else {
this["enemy" + i].w = this["enemy" + i].wp;
}
this["enemy" + i].direct = _local5;
}
}
i++;
}
}
function dovod(nn) {
if (nn == "iam") {
tx = Math.round(this[nn]._x / 70) * 70;
rx = (tx - this[nn]._x) / 3;
this[nn]._x = this[nn]._x + rx;
if (Math.abs(tx - this[nn]._x) < 1) {
this[nn]._x = tx;
}
ty = Math.round(this[nn]._y / 70) * 70;
ry = (ty - this[nn]._y) / 3;
this[nn]._y = this[nn]._y + ry;
if (Math.abs(ty - this[nn]._y) < 1) {
this[nn]._y = ty;
}
}
}
function fireok(nn) {
fok = true;
if ((this[nn]._rotation == 90) && (chk("bg", this[nn]._x + 70, this[nn]._y))) {
fok = false;
}
if ((this[nn]._rotation == -90) && (chk("bg", this[nn]._x - 70, this[nn]._y))) {
fok = false;
}
if ((this[nn]._rotation == 0) && (chk("bg", this[nn]._x, this[nn]._y - 70))) {
fok = false;
}
if ((Math.abs(this[nn]._rotation) == 180) && (chk("bg", this[nn]._x, this[nn]._y + 70))) {
fok = false;
}
return(fok);
}
function dist(xx, yy, xx1, yy1) {
return(Math.sqrt(((xx - xx1) * (xx - xx1)) + ((yy - yy1) * (yy - yy1))));
}
function kd() {
if (Key.getCode() == 37) {
iam.direct = "l";
pl = true;
}
if (Key.getCode() == 39) {
iam.direct = "r";
pr = true;
}
if (Key.getCode() == 38) {
iam.direct = "t";
pt = true;
}
if (Key.getCode() == 40) {
iam.direct = "b";
pb = true;
}
if (Key.getCode() == 65) {
iam.fire = true;
}
}
function ku() {
if (Key.getCode() == 65) {
iam.fire = false;
}
if (Key.getCode() == 37) {
pl = false;
}
if (Key.getCode() == 39) {
pr = false;
}
if (Key.getCode() == 38) {
pt = false;
}
if (Key.getCode() == 40) {
pb = false;
}
if (Key.getCode() == 83) {
if (min_timeout >= min_tm) {
minen();
min_timeout = 0;
}
}
if (((pl && (pr)) && (pt)) && (pb)) {
}
}
var ll = new Object();
ll.onKeyUp = ku;
ll.onKeyDown = kd;
Key.addListener(ll);
function chk(nn, xx, yy) {
if (eval (nn).hitTest(xx, yy, true)) {
return(true);
}
return(false);
}
function chkl(nn) {
ret = true;
if (chk("bg", this[nn]._x - 50, this[nn]._y - 28) || (chk("bg", this[nn]._x - 50, this[nn]._y + 28))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x - 50, this[nn]._y)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x - 50, this[nn]._y)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 50, this[nn]._y - 28) || (chk(("enemy" + ii) + ".dz", this[nn]._x - 50, this[nn]._y + 28))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkr(nn) {
ret = true;
if (chk("bg", this[nn]._x + 50, this[nn]._y - 28) || (chk("bg", this[nn]._x + 50, this[nn]._y + 28))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x + 50, this[nn]._y)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x + 50, this[nn]._y)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x + 50, this[nn]._y - 28) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 50, this[nn]._y + 28))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkt(nn) {
ret = true;
if (chk("bg", this[nn]._x - 28, this[nn]._y - 50) || (chk("bg", this[nn]._x + 28, this[nn]._y - 50))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x, this[nn]._y - 50)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x, this[nn]._y - 50)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 28, this[nn]._y - 50) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 28, this[nn]._y - 50))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkb(nn) {
ret = true;
if (chk("bg", this[nn]._x - 28, this[nn]._y + 50) || (chk("bg", this[nn]._x + 28, this[nn]._y + 50))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x, this[nn]._y + 50)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x, this[nn]._y + 50)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (nn != "enemy") {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 28, this[nn]._y + 50) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 28, this[nn]._y + 50))) {
ret = false;
}
}
}
ii++;
}
return(ret);
}
function birn() {
i = 30000;
while (i < (30000 + enemy0_kol)) {
rx = 70 + (70 * random(13));
ry = 70 + (70 * random(9));
if ((!chk("bg", rx, ry)) && (dist(rx, ry, iam._x, iam._y) > 200)) {
if (this["enemy" + i]._name != ("enemy" + i)) {
this.attachMovie("en2", "enemy" + i, i, {_x:rx, _y:ry});
}
}
i++;
}
}
function minen() {
this.attachMovie("minen", "min" + min_dp, min_dp, {_x:iam._x, _y:iam._y});
min_dp++;
}
e_t = false;
if (hard) {
iam.bron = 0;
} else {
iam.bron = 3;
}
iam.life = 100;
iam.sp = 4;
iam.ms = 4;
iam.ready = 50;
iam.rm = 50;
iam.dym = 5;
iam.w = "snr";
iam.wp2 = 0;
iam.swapDepths(30007);
g_timer = 0;
e_a = 3;
min_timeout = 0;
min_tm = 50;
min_dp = 10000;
dym_dp = 20000;
tnk_dp = 70001 /* 0x011171 */;
snr_dp = 40000;
MovieClip.prototype.rota = function (dir) {
if (this.life > 0) {
if (!this.ch_fire) {
if (!this.dov) {
if (dir == "l") {
if (this._rotation == 180) {
this._rotation = -180;
}
this.rot = -90;
} else if (dir == "r") {
if (this._rotation < -100) {
this._rotation = 180;
}
this.rot = 90;
} else if (dir == "t") {
this.rot = 0;
} else if (dir == "b") {
if (this._rotation < 0) {
this.rot = -180;
} else {
this.rot = 180;
}
}
r = (this.rot - this._rotation) / 5;
if (Math.abs(r) < 11) {
r = (Math.abs(r) / r) * 11;
}
if (Math.abs(this._rotation - this.rot) > 7) {
this._rotation = this._rotation + r;
dovod(this._name);
} else {
this._rotation = this.rot;
if (dir != "0") {
this.dym++;
if (this.dym > 3) {
duplicateMovieClip ("dm", "dm" + dym_dp, dym_dp);
this.dym = 0;
eval ("dm" + dym_dp)._rotation = random(359);
if (dir == "l") {
eval ("dm" + dym_dp)._x = this._x + 15;
eval ("dm" + dym_dp)._y = this._y;
}
if (dir == "r") {
eval ("dm" + dym_dp)._x = this._x - 15;
eval ("dm" + dym_dp)._y = this._y;
}
if (dir == "t") {
eval ("dm" + dym_dp)._x = this._x;
eval ("dm" + dym_dp)._y = this._y + 15;
}
if (dir == "b") {
eval ("dm" + dym_dp)._x = this._x;
eval ("dm" + dym_dp)._y = this._y - 15;
}
dym_dp++;
if (dym_dp > 19998) {
dym_dp = 10000;
}
}
}
if (dir == "l") {
if (chkl(this._name)) {
this._x = this._x - this.sp;
}
}
if (dir == "r") {
if (chkr(this._name)) {
this._x = this._x + this.sp;
}
}
if (dir == "t") {
if (chkt(this._name)) {
this._y = this._y - this.sp;
}
}
if (dir == "b") {
if (chkb(this._name)) {
this._y = this._y + this.sp;
}
}
if (this.ready < this.rm) {
this.ready++;
}
if ((this.fire && (this.ready >= this.rm)) && (fireok(this._name))) {
this.ready = 0;
this.t.gotoAndPlay(2);
this.fire = false;
if (this.w != "esnr1") {
duplicateMovieClip (this.w, "snr" + snr_dp, snr_dp);
eval ("snr" + snr_dp)._rotation = this._rotation;
if (this._rotation == -90) {
eval ("snr" + snr_dp)._x = this._x - 20;
eval ("snr" + snr_dp)._y = this._y;
eval ("snr" + snr_dp).spx = -7;
eval ("snr" + snr_dp).spy = 0;
}
if (this._rotation == 90) {
eval ("snr" + snr_dp)._x = this._x + 20;
eval ("snr" + snr_dp)._y = this._y;
eval ("snr" + snr_dp).spx = 7;
eval ("snr" + snr_dp).spy = 0;
}
if (this._rotation == 0) {
eval ("snr" + snr_dp)._x = this._x;
eval ("snr" + snr_dp)._y = this._y - 20;
eval ("snr" + snr_dp).spx = 0;
eval ("snr" + snr_dp).spy = -7;
}
if ((this._rotation == 180) || (this._rotation == -180)) {
eval ("snr" + snr_dp)._x = this._x;
eval ("snr" + snr_dp)._y = this._y + 20;
eval ("snr" + snr_dp).spx = 0;
eval ("snr" + snr_dp).spy = 7;
}
snr_dp++;
}
}
}
} else {
dovod(this._name);
}
}
}
};
this.onEnterFrame = function () {
if (g_timer == 3300) {
bsrx = 70 + (70 * random(13));
bsry = 70 + (70 * random(9));
while (chk("bg", bsrx, bsry)) {
bsrx = 70 + (70 * random(13));
bsry = 70 + (70 * random(9));
}
this.attachMovie("bs0", "bs0e", 3331, {_x:bsrx, _y:bsry});
}
if (iam.life <= 0) {
iam.t.gotoAndPlay("end");
}
if (tm == 20) {
stopgame = true;
mission_complete = true;
}
stat.life._xscale = iam.life;
stat.score = score;
birn();
if (min_timeout < min_tm) {
min_timeout++;
}
if (stopgame) {
delete this.onEnterFrame;
play();
}
if (((pl || (pr)) || (pt)) || (pb)) {
} else {
iam.direct = "0";
}
iam.rota(iam.direct);
e_target.rota(e_target.direct);
robot1();
robot();
g_timer++;
if (((g_timer == 1000) || (g_timer == 2000)) || ((g_timer == 3000) && (hard))) {
e_a++;
rm = rm - 90;
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
this["enemy" + i].rota(this["enemy" + i].direct);
i++;
}
};
Frame 2414
rzm._visible = false;
zzz.swapDepths(99999);
play();
iam_bonus = iam.life;
Frame 2594
for (i in _root) {
this[i].removeMovieClip();
}
snd.stop();
delete eval (this.onEnterFrame());
if (!mission_complete) {
gotoAndPlay (2159);
highscore = highscore - 10;
again_check = true;
} else {
highscore = highscore + (level_score + Math.round(iam_bonus));
}
Frame 2595
delete eval (this.onEnterFrame());
stopgame = false;
so.data.dscore = highscore;
so.data.lev = 6;
so.data.hrd = hard;
var snd = new Sound();
snd.attachSound("sound0");
snd.start(0, 10000);
snd.setVolume(vol);
this.onEnterFrame = function () {
snd.setVolume(vol);
};
Frame 2634
stop();
if (again_check) {
b2.r.t = "TRY AGAIN";
} else {
b2.r.t = "START LEVEL 6";
}
Frame 2662
Frame 2750
snd.stop();
if (ng) {
gotoAndPlay (259);
}
Frame 2751
stat.m_life._visible = false;
stat.data_t._xscale = 0;
level_score = 0;
temp_score = highscore;
stat.s_score = highscore;
again_check = false;
Frame 2803
var snd = new Sound();
snd.attachSound("sound");
snd.start(0, 10000);
snd.setVolume(vol);
Frame 2817
stop();
this.onEnterFrame = function () {
if (Key.isDown(32)) {
play();
delete this.onEnterFrame;
}
};
Frame 2849
function robot1() {
var _local4 = Math.round(iam._x / 70) * 70;
var _local3 = Math.round(iam._y / 70) * 70;
if (e_target._x < 140) {
e_target._x = 140;
}
if (e_target._y < 140) {
e_target._y = 140;
}
if (e_target._x > 840) {
e_target._x = 840;
}
if (e_target._y > 560) {
e_target._y = 560;
}
if (e_target.life > 0) {
if (e_target.think > 0) {
e_target.think--;
} else if (((((e_target._rotation == 0) || (e_target._rotation == 90)) || (e_target._rotation == -90)) || (e_target._rotation == 180)) || (e_target._rotation == -180)) {
var _local2 = 0;
var _local5 = dist(e_target._x, e_target._y, _local4, _local3);
var _local1 = (ltar = (rtar = (ttar = (btar = "0"))));
e_target.fire = true;
if (chkl(e_target._name)) {
if (dist(e_target._x - 27, e_target._y, _local4, _local3) > _local5) {
if (e_target._x > 145) {
ltar = "l";
}
}
}
if (chkr(e_target._name)) {
if (dist(e_target._x + 27, e_target._y, _local4, _local3) > _local5) {
if (e_target._x < 835) {
rtar = "r";
}
}
}
if (chkt(e_target._name)) {
if (dist(e_target._x, e_target._y - 27, _local4, _local3) > _local5) {
if (e_target._y > 145) {
ttar = "t";
}
}
}
if (chkb(e_target._name)) {
if (dist(e_target._x, e_target._y + 27, _local4, _local3) > _local5) {
if (e_target._y < 555) {
btar = "b";
}
}
}
while ((_local1 == "0") && ((((ltar != "0") || (rtar != 0)) || (ttar != 0)) || (btar != 0))) {
_local2 = random(4);
if ((_local2 == 0) && (ltar != "0")) {
_local1 = ltar;
}
if ((_local2 == 1) && (rtar != "0")) {
_local1 = rtar;
}
if ((_local2 == 2) && (ttar != "0")) {
_local1 = ttar;
}
if ((_local2 == 3) && (btar != "0")) {
_local1 = btar;
}
}
if (e_target.direct != _local1) {
e_target.direct = _local1;
e_target.think = 17;
}
}
}
}
m_target = "en_t";
score = 0;
function birn() {
if ((g_timer > 5000) && (!e_t)) {
e_t = true;
stat.m_life._visible = true;
while (chk("bg", rx, ry) || (dist(rx, ry, iam._x, iam._y) < 200)) {
rx = 70 + (70 * random(13));
ry = 70 + (70 * random(9));
}
this.attachMovie("en_t", "e_target", 30006, {_x:rx, _y:ry});
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
rx = 70 + (70 * random(13));
ry = 70 + (70 * random(9));
if ((!chk("bg", rx, ry)) && (dist(rx, ry, iam._x, iam._y) > 200)) {
if (this["enemy" + i]._name != ("enemy" + i)) {
this.attachMovie("en", "enemy" + i, i, {_x:rx, _y:ry});
}
}
i++;
}
}
e_t = false;
stop();
enemy0_kol = 3;
if (hard) {
iam.bron = 0;
} else {
iam.bron = 3;
}
iam.life = 100;
iam.sp = 4;
iam.ms = 4;
iam.ready = 50;
iam.rm = 50;
iam.dym = 5;
iam.w = "snr";
iam.wp2 = 0;
iam.swapDepths(30007);
g_timer = 0;
e_a = 3;
min_timeout = 0;
min_tm = 50;
min_dp = 10000;
dym_dp = 20000;
tnk_dp = 70001 /* 0x011171 */;
snr_dp = 40000;
stat.m_life._visible = false;
stat.data_t._xscale = 0;
this.onEnterFrame = function () {
if (stat.m_life._visible) {
stat.m_life._xscale = e_target.life / 3;
if (random(30) == 1) {
stat.data_t._xscale++;
}
if (stat.data_t._xscale == 100) {
stopgame = true;
mission_complete = false;
}
}
stat.life._xscale = iam.life;
stat.score = score;
birn();
if (min_timeout < min_tm) {
min_timeout++;
}
if (stopgame) {
delete this.onEnterFrame;
play();
}
if (((pl || (pr)) || (pt)) || (pb)) {
} else {
iam.direct = "0";
}
iam.rota(iam.direct);
e_target.rota(e_target.direct);
robot1();
robot();
g_timer++;
if ((g_timer == 2000) || (g_timer == 4000)) {
e_a++;
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
this["enemy" + i].rota(this["enemy" + i].direct);
i++;
}
};
function robot() {
var _local6 = Math.round(iam._x / 70) * 70;
var _local5 = Math.round(iam._y / 70) * 70;
var _local8 = 0;
if ((_local5 % 140) != 0) {
if (_local5 > 560) {
_local5 = _local5 - 70;
} else if (_local5 < 100) {
_local5 = _local5 + 70;
} else {
_local8 = random(1);
if (_local8 == 0) {
_local5 = _local5 + 70;
} else {
_local5 = _local5 - 70;
}
}
}
if ((_local6 % 140) != 0) {
if (_local6 > 850) {
_local6 = _local6 - 70;
} else if (_local6 < 100) {
_local6 = _local6 + 70;
} else {
_local8 = random(1);
if (_local8 == 0) {
_local6 = _local6 + 70;
} else {
_local6 = _local6 - 70;
}
}
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
if (this["enemy" + i]._x < 140) {
this["enemy" + i]._x = 140;
}
if (this["enemy" + i]._y < 140) {
this["enemy" + i]._y = 140;
}
if (this["enemy" + i]._x > 840) {
this["enemy" + i]._x = 840;
}
if (this["enemy" + i]._y > 560) {
this["enemy" + i]._y = 560;
}
if (this["enemy" + i].life > 0) {
if (this["enemy" + i].think > 0) {
this["enemy" + i].think--;
} else if (((((this["enemy" + i]._rotation == 0) || (this["enemy" + i]._rotation == 90)) || (this["enemy" + i]._rotation == -90)) || (this["enemy" + i]._rotation == 180)) || (this["enemy" + i]._rotation == -180)) {
var _local3 = 0;
var _local7 = dist(this["enemy" + i]._x, this["enemy" + i]._y, _local6, _local5);
var _local4 = (rtar = (ttar = (btar = "0")));
var _local2 = "0";
this["enemy" + i].fire = true;
if (chkl(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x - 27, this["enemy" + i]._y, _local6, _local5) < _local7) {
if (this["enemy" + i]._x > 145) {
_local4 = "l";
}
}
}
if (chkr(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x + 27, this["enemy" + i]._y, _local6, _local5) < _local7) {
if (this["enemy" + i]._x < 835) {
rtar = "r";
}
}
}
if (chkt(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y - 27, _local6, _local5) < _local7) {
if (this["enemy" + i]._y > 145) {
ttar = "t";
}
}
}
if (chkb(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y + 27, _local6, _local5) < _local7) {
if (this["enemy" + i]._y < 555) {
btar = "b";
}
}
}
while ((_local2 == "0") && ((((_local4 != "0") || (rtar != "0")) || (ttar != "0")) || (btar != "0"))) {
_local3 = random(4);
if ((_local3 == 0) && (_local4 != "0")) {
_local2 = _local4;
}
if ((_local3 == 1) && (rtar != "0")) {
_local2 = rtar;
}
if ((_local3 == 2) && (ttar != "0")) {
_local2 = ttar;
}
if ((_local3 == 3) && (btar != "0")) {
_local2 = btar;
}
}
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 100) {
_local2 = "0";
this["enemy" + i].w = "esnr1";
this["enemy" + i].direct = _local2;
} else {
this["enemy" + i].w = this["enemy" + i].wp;
if (_local2 == "0") {
_local2 = this["enemy" + i].direct;
}
if (this["enemy" + i].direct != _local2) {
this["enemy" + i].direct = _local2;
this["enemy" + i].think = 7 + random(50 / e_a);
}
}
}
}
i++;
}
}
Frame 2850
zzz.swapDepths(99999);
play();
iam_bonus = iam.life;
Frame 3030
for (i in _root) {
this[i].removeMovieClip();
}
snd.stop();
delete eval (this.onEnterFrame());
if (!mission_complete) {
gotoAndPlay (2595);
highscore = highscore - 10;
again_check = true;
} else {
highscore = highscore + (level_score + Math.round(iam_bonus));
}
Frame 3031
delete eval (this.onEnterFrame());
stopgame = false;
so.data.dscore = highscore;
so.data.lev = 7;
so.data.hrd = hard;
var snd = new Sound();
snd.attachSound("sound0");
snd.start(0, 10000);
snd.setVolume(vol);
this.onEnterFrame = function () {
snd.setVolume(vol);
};
Frame 3070
stop();
if (again_check) {
b2.r.t = "TRY AGAIN";
} else {
b2.r.t = "START LEVEL 7";
}
Frame 3098
Frame 3186
snd.stop();
if (ng) {
gotoAndPlay (259);
}
Frame 3187
level_score = 0;
temp_score = highscore;
stat.s_score = highscore;
again_check = false;
Frame 3239
var snd = new Sound();
snd.attachSound("sound");
snd.start(0, 10000);
snd.setVolume(vol);
Frame 3253
stop();
this.onEnterFrame = function () {
if (Key.isDown(32)) {
play();
delete this.onEnterFrame;
}
};
Frame 3285
stop();
m_target = "en_t0";
level_m = 207;
enemy0_kol = 3;
score = 0;
function robot1() {
var _local4 = Math.round(iam._x / 70) * 70;
var _local3 = Math.round(iam._y / 70) * 70;
if (e_target._x < 140) {
e_target._x = 140;
}
if (e_target._y < 140) {
e_target._y = 140;
}
if (e_target._x > 840) {
e_target._x = 840;
}
if (e_target._y > 560) {
e_target._y = 560;
}
if (e_target.life > 0) {
if (e_target.think > 0) {
e_target.think--;
} else if (((((e_target._rotation == 0) || (e_target._rotation == 90)) || (e_target._rotation == -90)) || (e_target._rotation == 180)) || (e_target._rotation == -180)) {
var _local2 = 0;
var _local5 = dist(e_target._x, e_target._y, _local4, _local3);
var _local1 = (ltar = (rtar = (ttar = (btar = "0"))));
e_target.fire = true;
if (chkl(e_target._name)) {
if (dist(e_target._x - 27, e_target._y, _local4, _local3) > _local5) {
if (e_target._x > 145) {
ltar = "l";
}
}
}
if (chkr(e_target._name)) {
if (dist(e_target._x + 27, e_target._y, _local4, _local3) > _local5) {
if (e_target._x < 835) {
rtar = "r";
}
}
}
if (chkt(e_target._name)) {
if (dist(e_target._x, e_target._y - 27, _local4, _local3) > _local5) {
if (e_target._y > 145) {
ttar = "t";
}
}
}
if (chkb(e_target._name)) {
if (dist(e_target._x, e_target._y + 27, _local4, _local3) > _local5) {
if (e_target._y < 555) {
btar = "b";
}
}
}
while ((_local1 == "0") && ((((ltar != "0") || (rtar != "0")) || (ttar != "0")) || (btar != "0"))) {
_local2 = random(4);
if ((_local2 == 0) && (ltar != "0")) {
_local1 = ltar;
}
if ((_local2 == 1) && (rtar != "0")) {
_local1 = rtar;
}
if ((_local2 == 2) && (ttar != "0")) {
_local1 = ttar;
}
if ((_local2 == 3) && (btar != "0")) {
_local1 = btar;
}
}
if (e_target.direct != _local1) {
e_target.direct = _local1;
e_target.think = 17;
}
}
}
}
function robot() {
var _local5 = Math.round(iam._x / 70) * 70;
var _local4 = Math.round(iam._y / 70) * 70;
var _local10 = 0;
if ((_local4 % 140) != 0) {
if (_local4 > 560) {
_local4 = _local4 - 70;
} else if (_local4 < 100) {
_local4 = _local4 + 70;
} else {
_local10 = random(1);
if (_local10 == 0) {
_local4 = _local4 + 70;
} else {
_local4 = _local4 - 70;
}
}
}
if ((_local5 % 140) != 0) {
if (_local5 > 850) {
_local5 = _local5 - 70;
} else if (_local5 < 100) {
_local5 = _local5 + 70;
} else {
_local10 = random(1);
if (_local10 == 0) {
_local5 = _local5 + 70;
} else {
_local5 = _local5 - 70;
}
}
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
if (this["enemy" + i]._x < 140) {
this["enemy" + i]._x = 140;
}
if (this["enemy" + i]._y < 140) {
this["enemy" + i]._y = 140;
}
if (this["enemy" + i]._x > 840) {
this["enemy" + i]._x = 840;
}
if (this["enemy" + i]._y > 560) {
this["enemy" + i]._y = 560;
}
if (this["enemy" + i].think > 0) {
this["enemy" + i].think--;
}
if ((this["enemy" + i].life > 0) && (this["enemy" + i].think == 0)) {
if (((((this["enemy" + i]._rotation == 0) || (this["enemy" + i]._rotation == 90)) || (this["enemy" + i]._rotation == -90)) || (this["enemy" + i]._rotation == 180)) || (this["enemy" + i]._rotation == -180)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) > 230) {
this["enemy" + i].w = this["enemy" + i].wp;
this["enemy" + i].rm = this["enemy" + i].rrm;
var _local3 = 0;
var _local7 = dist(this["enemy" + i]._x, this["enemy" + i]._y, _local5, _local4);
var _local6 = (rtar = (ttar = (btar = "0")));
var _local2 = "0";
if (chkl(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x - 27, this["enemy" + i]._y, _local5, _local4) < _local7) {
if (this["enemy" + i]._x > 145) {
_local6 = "l";
}
}
}
if (chkr(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x + 27, this["enemy" + i]._y, _local5, _local4) < _local7) {
if (this["enemy" + i]._x < 835) {
rtar = "r";
}
}
}
if (chkt(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y - 27, _local5, _local4) < _local7) {
if (this["enemy" + i]._y > 145) {
ttar = "t";
}
}
}
if (chkb(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y + 27, _local5, _local4) < _local7) {
if (this["enemy" + i]._y < 555) {
btar = "b";
}
}
}
while ((_local2 == "0") && ((((_local6 != "0") || (rtar != "0")) || (ttar != "0")) || (btar != "0"))) {
_local3 = random(4);
if ((_local3 == 0) && (_local6 != "0")) {
_local2 = _local6;
}
if ((_local3 == 1) && (rtar != "0")) {
_local2 = rtar;
}
if ((_local3 == 2) && (ttar != "0")) {
_local2 = ttar;
}
if ((_local3 == 3) && (btar != "0")) {
_local2 = btar;
}
}
this["enemy" + i].direct = _local2;
} else if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 200) {
if (random(2) == 1) {
this.attachMovie("em", "mine" + minn, minn, {_x:this["enemy" + i]._x, _y:this["enemy" + i]._y});
minn++;
}
this["enemy" + i].w = "esnr1";
this["enemy" + i].rm = this["enemy" + i].rrm;
var _local3 = 0;
var _local7 = dist(this["enemy" + i]._x, this["enemy" + i]._y, _local5, _local4);
var _local6 = (rtar = (ttar = (btar = "0")));
var _local2 = "0";
if (chkl(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x - 27, this["enemy" + i]._y, _local5, _local4) > _local7) {
if (this["enemy" + i]._x > 145) {
_local6 = "l";
}
}
}
if (chkr(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x + 27, this["enemy" + i]._y, _local5, _local4) > _local7) {
if (this["enemy" + i]._x < 835) {
rtar = "r";
}
}
}
if (chkt(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y - 27, _local5, _local4) > _local7) {
if (this["enemy" + i]._y > 145) {
ttar = "t";
}
}
}
if (chkb(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y + 27, _local5, _local4) > _local7) {
if (this["enemy" + i]._y < 555) {
btar = "b";
}
}
}
while ((_local2 == "0") && ((((_local6 != "0") || (rtar != "0")) || (ttar != "0")) || (btar != "0"))) {
_local3 = random(4);
if ((_local3 == 0) && (_local6 != "0")) {
_local2 = _local6;
}
if ((_local3 == 1) && (rtar != "0")) {
_local2 = rtar;
}
if ((_local3 == 2) && (ttar != "0")) {
_local2 = ttar;
}
if ((_local3 == 3) && (btar != "0")) {
_local2 = btar;
}
}
this["enemy" + i].direct = _local2;
} else {
this["enemy" + i].direct = "0";
this.attachMovie("raketa", "raketa" + minn, minn + 202077, {_x:this["enemy" + i]._x, _y:this["enemy" + i]._y});
minn++;
}
this["enemy" + i].think = 15 + random(7);
}
}
i++;
}
}
function robot_t() {
var _local4 = Math.round(iam._x / 70) * 70;
var _local3 = Math.round(iam._y / 70) * 70;
if ((_local4 % 140) != 0) {
_local4 = _local4 + 70;
}
if ((_local3 % 140) != 0) {
_local3 = _local3 + 70;
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
if (this["enemy" + i].life > 0) {
if (this["enemy" + i].p > 0) {
this["enemy" + i].p--;
} else if (((((this["enemy" + i]._rotation == 0) || (this["enemy" + i]._rotation == 90)) || (this["enemy" + i]._rotation == -90)) || (this["enemy" + i]._rotation == 180)) || (this["enemy" + i]._rotation == -180)) {
this["enemy" + i].p = this["enemy" + i].think;
var _local2 = 10000;
var _local5 = "0";
this["enemy" + i].fire = true;
if (chkl(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x - 1, this["enemy" + i]._y, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x - 1, this["enemy" + i]._y, _local4, _local3);
_local5 = "l";
}
}
if (chkr(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x + 1, this["enemy" + i]._y, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x + 1, this["enemy" + i]._y, _local4, _local3);
_local5 = "r";
}
}
if (chkt(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y - 1, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x, this["enemy" + i]._y - 1, _local4, _local3);
_local5 = "t";
}
}
if (chkb(this["enemy" + i]._name)) {
if (dist(this["enemy" + i]._x, this["enemy" + i]._y + 1, _local4, _local3) < _local2) {
_local2 = dist(this["enemy" + i]._x, this["enemy" + i]._y + 1, _local4, _local3);
_local5 = "b";
}
}
if (dist(this["enemy" + i]._x, this["enemy" + i]._y, iam._x, iam._y) < 100) {
_local5 = "0";
this["enemy" + i].w = "esnr1";
} else {
this["enemy" + i].w = this["enemy" + i].wp;
}
this["enemy" + i].direct = _local5;
}
}
i++;
}
}
function dovod(nn) {
if (nn == "iam") {
tx = Math.round(this[nn]._x / 70) * 70;
rx = (tx - this[nn]._x) / 3;
this[nn]._x = this[nn]._x + rx;
if (Math.abs(tx - this[nn]._x) < 1) {
this[nn]._x = tx;
}
ty = Math.round(this[nn]._y / 70) * 70;
ry = (ty - this[nn]._y) / 3;
this[nn]._y = this[nn]._y + ry;
if (Math.abs(ty - this[nn]._y) < 1) {
this[nn]._y = ty;
}
}
}
function fireok(nn) {
fok = true;
if ((this[nn]._rotation == 90) && (chk("bg", this[nn]._x + 70, this[nn]._y))) {
fok = false;
}
if ((this[nn]._rotation == -90) && (chk("bg", this[nn]._x - 70, this[nn]._y))) {
fok = false;
}
if ((this[nn]._rotation == 0) && (chk("bg", this[nn]._x, this[nn]._y - 70))) {
fok = false;
}
if ((Math.abs(this[nn]._rotation) == 180) && (chk("bg", this[nn]._x, this[nn]._y + 70))) {
fok = false;
}
return(fok);
}
function dist(xx, yy, xx1, yy1) {
return(Math.sqrt(((xx - xx1) * (xx - xx1)) + ((yy - yy1) * (yy - yy1))));
}
function kd() {
if (Key.getCode() == 37) {
iam.direct = "l";
pl = true;
}
if (Key.getCode() == 39) {
iam.direct = "r";
pr = true;
}
if (Key.getCode() == 38) {
iam.direct = "t";
pt = true;
}
if (Key.getCode() == 40) {
iam.direct = "b";
pb = true;
}
if (Key.getCode() == 65) {
iam.fire = true;
}
}
function ku() {
if (Key.getCode() == 65) {
iam.fire = false;
}
if (Key.getCode() == 37) {
pl = false;
}
if (Key.getCode() == 39) {
pr = false;
}
if (Key.getCode() == 38) {
pt = false;
}
if (Key.getCode() == 40) {
pb = false;
}
if (Key.getCode() == 83) {
if (min_timeout >= min_tm) {
minen();
min_timeout = 0;
}
}
if (((pl && (pr)) && (pt)) && (pb)) {
}
}
var ll = new Object();
ll.onKeyUp = ku;
ll.onKeyDown = kd;
Key.addListener(ll);
function chk(nn, xx, yy) {
if (eval (nn).hitTest(xx, yy, true)) {
return(true);
}
return(false);
}
function chkl(nn) {
ret = true;
if (chk("bg", this[nn]._x - 50, this[nn]._y - 28) || (chk("bg", this[nn]._x - 50, this[nn]._y + 28))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x - 50, this[nn]._y)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x - 50, this[nn]._y)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 50, this[nn]._y - 28) || (chk(("enemy" + ii) + ".dz", this[nn]._x - 50, this[nn]._y + 28))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkr(nn) {
ret = true;
if (chk("bg", this[nn]._x + 50, this[nn]._y - 28) || (chk("bg", this[nn]._x + 50, this[nn]._y + 28))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x + 50, this[nn]._y)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x + 50, this[nn]._y)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x + 50, this[nn]._y - 28) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 50, this[nn]._y + 28))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkt(nn) {
ret = true;
if (chk("bg", this[nn]._x - 28, this[nn]._y - 50) || (chk("bg", this[nn]._x + 28, this[nn]._y - 50))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x, this[nn]._y - 50)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x, this[nn]._y - 50)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 28, this[nn]._y - 50) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 28, this[nn]._y - 50))) {
ret = false;
}
}
ii++;
}
return(ret);
}
function chkb(nn) {
ret = true;
if (chk("bg", this[nn]._x - 28, this[nn]._y + 50) || (chk("bg", this[nn]._x + 28, this[nn]._y + 50))) {
ret = false;
}
if (nn != "e_target") {
if (chk("e_target.dz", this[nn]._x, this[nn]._y + 50)) {
ret = false;
}
}
if (nn != "iam") {
if (chk("iam.dz", this[nn]._x, this[nn]._y + 50)) {
ret = false;
}
}
ii = 30000;
while (ii < 30005) {
if (("enemy" + ii) != nn) {
if (nn != "enemy") {
if (chk(("enemy" + ii) + ".dz", this[nn]._x - 28, this[nn]._y + 50) || (chk(("enemy" + ii) + ".dz", this[nn]._x + 28, this[nn]._y + 50))) {
ret = false;
}
}
}
ii++;
}
return(ret);
}
function birn() {
i = 30000;
while (i < (30000 + enemy0_kol)) {
rx = 70 + (70 * random(13));
ry = 70 + (70 * random(9));
if ((!chk("bg", rx, ry)) && (dist(rx, ry, iam._x, iam._y) > 200)) {
if (this["enemy" + i]._name != ("enemy" + i)) {
this.attachMovie("en1", "enemy" + i, i, {_x:rx, _y:ry});
}
}
i++;
}
if (!m_t) {
rx = 70 + (70 * random(13));
ry = 70 + (70 * random(9));
if ((!chk("bg", rx, ry)) && (dist(rx, ry, iam._x, iam._y) > 200)) {
if (random(20) == 1) {
this.attachMovie("m_tar", "m_tar" + level_m, level_m, {_x:rx, _y:ry});
level_m++;
}
}
}
}
function minen() {
this.attachMovie("minen", "min" + min_dp, min_dp, {_x:iam._x, _y:iam._y});
min_dp++;
}
e_t = (m_t = false);
iam.bron = 0;
iam.life = 100;
iam.sp = 4;
iam.ms = 4;
iam.ready = 50;
iam.rm = 50;
iam.dym = 5;
iam.w = "snr";
iam.wp2 = 0;
iam.swapDepths(30007);
minn = 777;
g_timer = 0;
e_a = 3;
min_timeout = 0;
min_tm = 50;
min_dp = 10000;
dym_dp = 20000;
tnk_dp = 70001 /* 0x011171 */;
snr_dp = 40000;
MovieClip.prototype.rota = function (dir) {
if (this.life > 0) {
if (!this.ch_fire) {
if (!this.dov) {
if (dir == "l") {
if (this._rotation == 180) {
this._rotation = -180;
}
this.rot = -90;
} else if (dir == "r") {
if (this._rotation < -100) {
this._rotation = 180;
}
this.rot = 90;
} else if (dir == "t") {
this.rot = 0;
} else if (dir == "b") {
if (this._rotation < 0) {
this.rot = -180;
} else {
this.rot = 180;
}
}
r = (this.rot - this._rotation) / 5;
if (Math.abs(r) < 11) {
r = (Math.abs(r) / r) * 11;
}
if (Math.abs(this._rotation - this.rot) > 7) {
this._rotation = this._rotation + r;
dovod(this._name);
} else {
this._rotation = this.rot;
if (dir != "0") {
this.dym++;
if (this.dym > 3) {
duplicateMovieClip ("dm", "dm" + dym_dp, dym_dp);
this.dym = 0;
eval ("dm" + dym_dp)._rotation = random(359);
if (dir == "l") {
eval ("dm" + dym_dp)._x = this._x + 15;
eval ("dm" + dym_dp)._y = this._y;
}
if (dir == "r") {
eval ("dm" + dym_dp)._x = this._x - 15;
eval ("dm" + dym_dp)._y = this._y;
}
if (dir == "t") {
eval ("dm" + dym_dp)._x = this._x;
eval ("dm" + dym_dp)._y = this._y + 15;
}
if (dir == "b") {
eval ("dm" + dym_dp)._x = this._x;
eval ("dm" + dym_dp)._y = this._y - 15;
}
dym_dp++;
if (dym_dp > 19998) {
dym_dp = 10000;
}
}
}
if (dir == "l") {
if (chkl(this._name)) {
this._x = this._x - this.sp;
}
}
if (dir == "r") {
if (chkr(this._name)) {
this._x = this._x + this.sp;
}
}
if (dir == "t") {
if (chkt(this._name)) {
this._y = this._y - this.sp;
}
}
if (dir == "b") {
if (chkb(this._name)) {
this._y = this._y + this.sp;
}
}
if (this.ready < this.rm) {
this.ready++;
}
if ((this.fire && (this.ready >= this.rm)) && (fireok(this._name))) {
this.ready = 0;
this.t.gotoAndPlay(2);
this.fire = false;
if (this.w != "esnr1") {
duplicateMovieClip (this.w, "snr" + snr_dp, snr_dp);
eval ("snr" + snr_dp)._rotation = this._rotation;
if (this._rotation == -90) {
eval ("snr" + snr_dp)._x = this._x - 20;
eval ("snr" + snr_dp)._y = this._y;
eval ("snr" + snr_dp).spx = -7;
eval ("snr" + snr_dp).spy = 0;
}
if (this._rotation == 90) {
eval ("snr" + snr_dp)._x = this._x + 20;
eval ("snr" + snr_dp)._y = this._y;
eval ("snr" + snr_dp).spx = 7;
eval ("snr" + snr_dp).spy = 0;
}
if (this._rotation == 0) {
eval ("snr" + snr_dp)._x = this._x;
eval ("snr" + snr_dp)._y = this._y - 20;
eval ("snr" + snr_dp).spx = 0;
eval ("snr" + snr_dp).spy = -7;
}
if ((this._rotation == 180) || (this._rotation == -180)) {
eval ("snr" + snr_dp)._x = this._x;
eval ("snr" + snr_dp)._y = this._y + 20;
eval ("snr" + snr_dp).spx = 0;
eval ("snr" + snr_dp).spy = 7;
}
snr_dp++;
}
}
}
} else {
dovod(this._name);
}
}
}
};
m_kol = 20;
this.onEnterFrame = function () {
trace("mc=" + m_kol);
if (m_kol == 0) {
stopgame = true;
mission_complete = true;
}
if (iam.life <= 0) {
iam.t.gotoAndPlay("end");
}
stat.life._xscale = iam.life;
stat.score = score;
birn();
if (min_timeout < min_tm) {
min_timeout++;
}
if (stopgame) {
delete this.onEnterFrame;
play();
}
if (((pl || (pr)) || (pt)) || (pb)) {
} else {
iam.direct = "0";
}
iam.rota(iam.direct);
e_target.rota(e_target.direct);
robot1();
robot();
g_timer++;
if (((g_timer == 1000) || (g_timer == 2000)) || (g_timer == 3000)) {
e_a++;
rm = rm - 90;
}
i = 30000;
while (i < (30000 + enemy0_kol)) {
this["enemy" + i].rota(this["enemy" + i].direct);
i++;
}
};
Frame 3286
zzz.swapDepths(99999);
play();
iam_bonus = iam.life;
Frame 3466
for (i in _root) {
this[i].removeMovieClip();
}
snd.stop();
delete eval (this.onEnterFrame());
if (!mission_complete) {
gotoAndPlay (3031);
highscore = highscore - 10;
again_check = true;
} else {
highscore = highscore + (level_score + Math.round(iam_bonus));
}
Frame 3467
delete eval (this.onEnterFrame());
stopgame = false;
if (hard) {
highscore = highscore * 2;
}
var snd = new Sound();
snd.attachSound("sound0");
snd.start(0, 10000);
snd.setVolume(vol);
this.onEnterFrame = function () {
snd.setVolume(vol);
};
Frame 3506
stop();
total_score = highscore;
Frame 3534
Frame 3622
snd.stop();
if (ng) {
gotoAndPlay (259);
}
Symbol 24 MovieClip Frame 20
stop();
Symbol 44 MovieClip Frame 25
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 2
if (_parent.w == "esnr1") {
gotoAndPlay ("f2");
}
if ((random(10) == 1) && (_parent.direct != "0")) {
_parent._parent.attachMovie("bomb", "mine" + _parent._parent.minn, _parent._parent.minn, {_x:_parent._x, _y:_parent._y});
_parent._parent.minn++;
} else {
gotoAndStop (1);
}
Symbol 45 MovieClip Frame 32
gotoAndStop (1);
Symbol 45 MovieClip Frame 33
if (_parent.life <= 0) {
gotoAndPlay ("end");
}
_parent.direct = "0";
Symbol 45 MovieClip Frame 69
gotoAndStop (1);
Symbol 45 MovieClip Frame 70
_parent._parent.level_score = _parent._parent.level_score + 4;
_parent._parent.temp_score = _parent._parent.temp_score + 4;
_parent._parent.stat.s_score = _parent._parent.temp_score;
_parent._parent.score++;
_parent._parent.attachMovie("e1d", _parent._name + d, _parent.getDepth() - 100, {_x:_parent._x, _y:_parent._y});
_parent._parent[_parent._name + d]._rotation = _parent._rotation;
_parent.removeMovieClip();
Symbol 45 MovieClip Frame 76
_parent._parent.attachMovie("em", "mine" + _parent._parent.minn, _parent._parent.minn, {_x:_parent._x, _y:_parent._y});
_parent._parent.minn++;
Symbol 45 MovieClip Frame 110
_parent.sp = _parent.ms;
_parent.ch_fire = false;
gotoAndStop (1);
Symbol 98 MovieClip Frame 79
stop();
Symbol 102 MovieClip [en1] Frame 1
life = 0;
sp = 5;
ms = 5;
ready = random(40);
rrm = (rm = 70);
dym = 5;
p = 0;
wp = "esnr0";
think = 3;
direct = "0";
Symbol 102 MovieClip [en1] Frame 94
life = 100;
t.minn = 77702 /* 0x012F86 */;
stop();
Symbol 106 MovieClip Frame 7
gotoAndPlay (1);
Symbol 130 MovieClip Frame 77
gotoAndPlay (1);
Symbol 132 MovieClip Frame 1
shag = 0;
stop();
Symbol 132 MovieClip Frame 2
if (_parent.w == "esnr1") {
gotoAndPlay ("f2");
}
_parent.ch_fire = true;
ch = true;
r = 20;
this.onEnterFrame = function () {
play();
ot = false;
i = 30000;
while (i < (30000 + _parent._parent.enemy0_kol)) {
if (_parent._name != ("enemy" + i)) {
if (_parent.dz.hitTest(_parent._parent["enemy" + i].dz)) {
ot = true;
}
}
i++;
}
if (ot) {
delete this.onEnterFrame;
} else {
if (_parent._rotation == 90) {
if (_parent._x < 45) {
r = (-r) / 1.3;
}
tar = (_parent._x = _parent._x - (r / 2));
}
if (_parent._rotation == -90) {
if (_parent._x > 939) {
r = (-r) / 1.3;
}
tar = (_parent._x = _parent._x + (r / 2));
}
if (_parent._rotation == 0) {
if (_parent._y > 655) {
r = (-r) / 1.3;
}
tar = (_parent._y = _parent._y + (r / 2));
}
if ((_parent._rotation == 180) || (_parent._rotation == -180)) {
if (_parent._y < 45) {
r = (-r) / 1.3;
}
tar = (_parent._y = _parent._y - (r / 2));
}
r = r / 1.3;
}
};
Symbol 132 MovieClip Frame 16
_parent.ch_fire = false;
_parent.sp = _parent.ms;
Symbol 132 MovieClip Frame 19
delete this.onEnterFrame;
Symbol 132 MovieClip Frame 32
gotoAndStop (1);
Symbol 132 MovieClip Frame 33
_parent.sp = 0;
_parent.direct = "0";
_parent.ch_fire = false;
delete this.onEnterFrame;
if (_parent.life <= 0) {
gotoAndPlay ("end");
}
Symbol 132 MovieClip Frame 69
gotoAndStop (1);
_parent.sp = _parent.ms;
Symbol 132 MovieClip Frame 70
_parent._parent.level_score = _parent._parent.level_score + 1;
_parent._parent.temp_score = _parent._parent.temp_score + 1;
_parent._parent.stat.s_score = _parent._parent.temp_score;
_parent._parent.score++;
_parent.sp = _parent.ms;
_parent._parent.stat.rrr = _parent._parent.total - _parent._parent.score;
_parent._parent.attachMovie("e1d", _parent._name + d, _parent.getDepth() - 100, {_x:_parent._x, _y:_parent._y});
_parent._parent[_parent._name + d]._rotation = _parent._rotation;
_parent.removeMovieClip();
Symbol 132 MovieClip Frame 76
_parent.ready = 180;
this.onEnterFrame = function () {
if (_parent._parent.iam.life > 0) {
_parent._parent.iam.life = _parent._parent.iam.life - 0.5;
}
};
Symbol 132 MovieClip Frame 80
delete this.onEnterFrame;
Symbol 132 MovieClip Frame 110
_parent.sp = _parent.ms;
_parent.ch_fire = false;
gotoAndStop (1);
Symbol 133 MovieClip [en2] Frame 1
life = 0;
sp = _parent.e_a;
ms = _parent.e_a;
ready = random(200);
rrm = (rm = 200);
dym = 5;
p = 0;
wp = "esnr0";
think = 3;
direct = "0";
Symbol 133 MovieClip [en2] Frame 82
life = 50;
stop();
Symbol 165 MovieClip Frame 1
shag = 0;
stop();
Symbol 165 MovieClip Frame 2
if (_parent.w == "esnr1") {
gotoAndPlay ("f2");
}
_parent.ch_fire = true;
ch = true;
r = 20;
this.onEnterFrame = function () {
play();
ot = false;
i = 30000;
while (i < (30000 + _parent._parent.enemy0_kol)) {
if (_parent._name != ("enemy" + i)) {
if (_parent.dz.hitTest(_parent._parent["enemy" + i].dz)) {
ot = true;
}
}
i++;
}
if (ot) {
delete this.onEnterFrame;
} else {
if (_parent._rotation == 90) {
if (_parent._x < 45) {
r = (-r) / 1.3;
}
tar = (_parent._x = _parent._x - r);
}
if (_parent._rotation == -90) {
if (_parent._x > 939) {
r = (-r) / 1.3;
}
tar = (_parent._x = _parent._x + r);
}
if (_parent._rotation == 0) {
if (_parent._y > 655) {
r = (-r) / 1.3;
}
tar = (_parent._y = _parent._y + r);
}
if ((_parent._rotation == 180) || (_parent._rotation == -180)) {
if (_parent._y < 45) {
r = (-r) / 1.3;
}
tar = (_parent._y = _parent._y - r);
}
r = r / 1.3;
}
};
Symbol 165 MovieClip Frame 16
_parent.ch_fire = false;
_parent.sp = _parent.ms;
Symbol 165 MovieClip Frame 19
delete this.onEnterFrame;
Symbol 165 MovieClip Frame 32
gotoAndStop (1);
Symbol 165 MovieClip Frame 33
_parent.sp = 0;
_parent.ch_fire = false;
_parent.direct = "0";
delete this.onEnterFrame;
if (_parent.life <= 0) {
gotoAndPlay ("end");
}
Symbol 165 MovieClip Frame 69
gotoAndStop (1);
_parent.sp = _parent.ms;
Symbol 165 MovieClip Frame 70
_parent._parent.level_score = _parent._parent.level_score + 3;
_parent._parent.temp_score = _parent._parent.temp_score + 3;
_parent._parent.stat.s_score = _parent._parent.temp_score;
_parent._parent.score++;
_parent._parent.stat.rrr = _parent._parent.total - _parent._parent.score;
_parent._parent.attachMovie("e0d", _parent._name + d, _parent.getDepth() - 100, {_x:_parent._x, _y:_parent._y});
_parent._parent[_parent._name + d]._rotation = _parent._rotation;
_parent.removeMovieClip();
Symbol 165 MovieClip Frame 76
_parent.ready = 180;
this.onEnterFrame = function () {
_parent._parent.iam.life = _parent._parent.iam.life - 1;
};
_parent._parent.iam.t.gotoAndPlay("dmg");
Symbol 165 MovieClip Frame 80
delete this.onEnterFrame;
Symbol 165 MovieClip Frame 110
_parent.sp = _parent.ms;
_parent.ch_fire = false;
gotoAndStop (1);
Symbol 166 MovieClip [en] Frame 1
life = 0;
sp = _parent.e_a;
ms = _parent.e_a;
ready = random(200);
rm = 200;
dym = 5;
p = 0;
wp = "esnr";
think = 3;
Symbol 166 MovieClip [en] Frame 94
life = 100;
stop();
Symbol 205 MovieClip Frame 44
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 2
if (_parent.life <= 0) {
gotoAndPlay ("end");
}
_parent.direct = "0";
Symbol 207 MovieClip Frame 7
gotoAndStop (1);
Symbol 207 MovieClip Frame 8
_parent._parent.level_score = _parent._parent.level_score + 10;
_parent._parent.temp_score = _parent._parent.temp_score + 10;
_parent._parent.stat.score = _parent._parent.temp_score;
_parent._parent.stopgame = true;
_parent._parent.mission_complete = true;
Symbol 207 MovieClip Frame 30
stop();
_parent._parent.stopgame = true;
_parent.swapDepths(0);
Symbol 208 MovieClip [en_t0] Frame 1
life = 0;
Symbol 208 MovieClip [en_t0] Frame 78
stop();
life = 300;
think = 20;
ready = 20000;
rm = 200;
dym = 5;
p = 0;
w = "0";
min = 207;
minn = 702;
sp = 4;
ms = 4;
this.onEnterFrame = function () {
if ((_parent.iam.life <= 0) || (life <= 0)) {
delete this.onEnterFrame;
}
if (((this.direct != "0") && (random(57) == 1)) && (!_parent.stopgame)) {
_parent.attachMovie("em", "mine" + min, min, {_x:this._x, _y:this._y});
min++;
}
r = random(50);
if (r == 1) {
_parent.attachMovie("electro", "electro" + minn, minn + 202077, {_x:this._x, _y:this._y});
minn++;
}
};
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 2
if (_parent.life <= 0) {
gotoAndPlay ("end");
}
_parent.direct = "0";
Symbol 213 MovieClip Frame 7
gotoAndStop (1);
Symbol 213 MovieClip Frame 8
_parent._parent.level_score = _parent._parent.level_score + 10;
_parent._parent.temp_score = _parent._parent.temp_score + 10;
_parent._parent.stat.score = _parent._parent.temp_score;
_parent._parent.stopgame = true;
_parent._parent.mission_complete = true;
Symbol 213 MovieClip Frame 30
stop();
_parent._parent.stopgame = true;
_parent.swapDepths(0);
Symbol 214 MovieClip [en_t] Frame 1
life = 0;
Symbol 214 MovieClip [en_t] Frame 78
stop();
life = 300;
sp = _parent.e_a;
ms = _parent.e_a;
ready = 20000;
rm = 200;
dym = 5;
p = 0;
w = "0";
Symbol 217 MovieClip Frame 20
stop();
Symbol 218 MovieClip [bomb] Frame 1
this.onEnterFrame = function () {
if (this._name != "esnr1") {
rx = (_parent.iam._x - this._x) / 3;
if (Math.abs(rx) > 5) {
rx = (Math.abs(rx) / rx) * 5;
}
this._x = this._x + rx;
ry = (_parent.iam._y - this._y) / 3;
if (Math.abs(ry) > 5) {
ry = (Math.abs(ry) / ry) * 5;
}
this._y = this._y + ry;
}
};
Symbol 222 MovieClip Frame 44
stop();
Symbol 223 MovieClip [minen] Frame 58
this.swapDepths(999999);
this.onEnterFrame = function () {
i = 30000;
while (i < (30000 + _parent.enemy0_kol)) {
if (this.dmg.hitTest(_parent["enemy" + i].dz)) {
_parent["enemy" + i].t.gotoAndPlay("dmg");
_parent["enemy" + i].life = _parent["enemy" + i].life - 50;
delete this.onEnterFrame;
}
i++;
}
};
Symbol 223 MovieClip [minen] Frame 102
this.removeMovieClip();
Symbol 227 MovieClip [e1d] Frame 23
r = random(7);
_parent.attachMovie("b" + r, "b" + this._name, this.getDepth() + 777, {_x:this._x, _y:this._y});
Symbol 227 MovieClip [e1d] Frame 151
this.removeMovieClip();
Symbol 231 MovieClip [e0d] Frame 23
r = random(7);
_parent.attachMovie("b" + r, "b" + this._name, this.getDepth() + 777, {_x:this._x, _y:this._y});
Symbol 231 MovieClip [e0d] Frame 151
this.removeMovieClip();
Symbol 244 MovieClip Frame 29
stop();
Symbol 245 MovieClip Frame 23
stop();
Symbol 247 MovieClip [bs1] Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_parent.iam.dz)) {
if (_parent.min_tm > 10) {
_parent.min_tm = _parent.min_tm - 5;
}
delete this.onEnterFrame;
gotoAndPlay ("active");
}
};
Symbol 247 MovieClip [bs1] Frame 224
this.removeMovieClip();
Symbol 247 MovieClip [bs1] Frame 225
i = 30000;
while (i < (30000 + _parent.enemy0_kol)) {
_parent["enemy" + i].life = 0;
_parent["enemy" + i].t.gotoAndPlay("end");
i++;
}
Symbol 247 MovieClip [bs1] Frame 416
this.removeMovieClip();
Symbol 309 MovieClip Frame 59
stop();
Symbol 313 MovieClip [bs0] Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_parent.iam.dz)) {
if (_parent.min_tm > 10) {
_parent.min_tm = _parent.min_tm - 5;
}
delete this.onEnterFrame;
gotoAndPlay ("active");
}
};
Symbol 313 MovieClip [bs0] Frame 281
this.removeMovieClip();
Symbol 313 MovieClip [bs0] Frame 282
_parent.m_bur = 400;
Symbol 313 MovieClip [bs0] Frame 473
this.removeMovieClip();
Symbol 314 MovieClip [b3] Frame 1
this.onEnterFrame = function () {
i = 30000;
while (i < (30000 + _parent.enemy0_kol)) {
if (this.hitTest(_parent["enemy" + i].dz)) {
delete this.onEnterFrame;
gotoAndPlay ("active");
}
i++;
}
if (this.hitTest(_parent.iam.dz)) {
if (_parent.min_tm > 10) {
_parent.min_tm = _parent.min_tm - 5;
}
delete this.onEnterFrame;
gotoAndPlay ("active");
}
};
Symbol 314 MovieClip [b3] Frame 224
this.removeMovieClip();
Symbol 314 MovieClip [b3] Frame 286
this.removeMovieClip();
Symbol 318 MovieClip [b2] Frame 1
this.onEnterFrame = function () {
i = 30000;
while (i < (30000 + _parent.enemy0_kol)) {
if (this.hitTest(_parent["enemy" + i].dz)) {
delete this.onEnterFrame;
gotoAndPlay ("active");
}
i++;
}
if (this.hitTest(_parent.iam.dz)) {
if (_parent.iam.rm > 10) {
_parent.iam.rm = _parent.iam.rm - 5;
}
delete this.onEnterFrame;
gotoAndPlay ("active");
}
};
Symbol 318 MovieClip [b2] Frame 224
this.removeMovieClip();
Symbol 318 MovieClip [b2] Frame 288
this.removeMovieClip();
Symbol 322 MovieClip Frame 10
gotoAndPlay (1);
Symbol 323 MovieClip [b1] Frame 1
this.onEnterFrame = function () {
i = 30000;
while (i < (30000 + _parent.enemy0_kol)) {
if (this.hitTest(_parent["enemy" + i].dz)) {
delete this.onEnterFrame;
gotoAndPlay ("active");
}
i++;
}
if (this.hitTest(_parent.iam.dz)) {
_parent.iam.wp2 = 10;
_parent.iam.w = "snr0";
delete this.onEnterFrame;
gotoAndPlay ("active");
}
};
Symbol 323 MovieClip [b1] Frame 224
this.removeMovieClip();
Symbol 323 MovieClip [b1] Frame 289
this.removeMovieClip();
Symbol 328 MovieClip [b0] Frame 1
this.onEnterFrame = function () {
i = 30000;
while (i < (30000 + _parent.enemy0_kol)) {
if (this.hitTest(_parent["enemy" + i].dz)) {
delete this.onEnterFrame;
gotoAndPlay ("active");
}
i++;
}
if (this.hitTest(_parent.iam.dz)) {
if (_parent.iam.ms < 8) {
_parent.iam.sp = _parent.iam.sp + 1;
_parent.iam.ms = _parent.iam.ms + 1;
}
delete this.onEnterFrame;
gotoAndPlay ("active");
}
};
Symbol 328 MovieClip [b0] Frame 224
this.removeMovieClip();
Symbol 328 MovieClip [b0] Frame 291
this.removeMovieClip();
Symbol 329 MovieClip Frame 30
stop();
Symbol 332 MovieClip [electro] Frame 1
stop();
this.swapDepths(207702 + random(1000));
dx = 0;
dy = 0;
l = 0;
this.onEnterFrame = function () {
l++;
if (l == 90) {
delete this.onEnterFrame;
play();
}
if ((this._x < _parent.iam._x) && (dx < 5)) {
dx++;
} else if (dx > -5) {
dx--;
}
if ((this._y < _parent.iam._y) && (dy < 5)) {
dy++;
} else if (dy > -5) {
dy--;
}
this._x = this._x + dx;
this._y = this._y + dy;
};
Symbol 332 MovieClip [electro] Frame 2
if (this.dm.hitTest(_parent.iam.dz)) {
_parent.iam.life = _parent.iam.life - 1;
}
this.swapDepths(207702 + random(1000));
Symbol 332 MovieClip [electro] Frame 50
this.removeMovieClip();
Symbol 333 MovieClip Frame 53
stop();
Symbol 334 MovieClip Frame 54
stop();
Symbol 335 MovieClip [raketa] Frame 1
stop();
this.swapDepths(207702 + random(1000));
dx = 0;
dy = 0;
l = 0;
this.onEnterFrame = function () {
l++;
if (l == 40) {
delete this.onEnterFrame;
play();
}
if ((this._x < _parent.iam._x) && (dx < 5)) {
dx++;
} else if (dx > -5) {
dx--;
}
if ((this._y < _parent.iam._y) && (dy < 5)) {
dy++;
} else if (dy > -5) {
dy--;
}
this._x = this._x + dx;
this._y = this._y + dy;
};
Symbol 335 MovieClip [raketa] Frame 2
if (this.dm.hitTest(_parent.iam.dz)) {
if (_parent.hard) {
_parent.iam.life = _parent.iam.life - 1;
} else {
_parent.iam.life = _parent.iam.life - 2;
}
}
this.swapDepths(207702 + random(1000));
Symbol 335 MovieClip [raketa] Frame 50
this.removeMovieClip();
Symbol 344 MovieClip [m_tar] Frame 1
_parent.m_t = true;
this.onEnterFrame = function () {
if (this.hitTest(_parent.iam.dz)) {
gotoAndPlay ("a");
delete this.onEnterFrame;
}
};
Symbol 344 MovieClip [m_tar] Frame 212
_parent.m_t = false;
this.removeMovieClip();
Symbol 344 MovieClip [m_tar] Frame 213
_parent.m_kol--;
_parent.stat.rrr = _parent.m_kol;
_parent.m_t = false;
Symbol 344 MovieClip [m_tar] Frame 270
this.removeMovieClip();
Symbol 347 MovieClip [em] Frame 30
this.swapDepths(917209 + random(11));
if (_parent.hard) {
var hh = 1;
} else {
var hh = 0;
}
this.onEnterFrame = function () {
if (this.dm.hitTest(_parent.iam.dz)) {
_parent.iam.t.gotoAndPlay("dmg");
_parent.iam.life = _parent.iam.life - (1 + hh);
}
};
Symbol 347 MovieClip [em] Frame 75
this.removeMovieClip();
Symbol 360 MovieClip Frame 1
shag = 0;
stop();
Symbol 360 MovieClip Frame 2
if (_parent.w == "esnr1") {
gotoAndPlay ("f2");
}
_parent.ch_fire = true;
ch = true;
r = 20;
this.onEnterFrame = function () {
play();
ot = false;
i = 30000;
while (i < (30000 + _parent._parent.enemy0_kol)) {
if (_parent._name != ("enemy" + i)) {
if (_parent.dz.hitTest(_parent._parent["enemy" + i].dz)) {
ot = true;
}
}
i++;
}
if (ot) {
delete this.onEnterFrame;
} else {
if (_parent._rotation == 90) {
if (_parent._x < 45) {
r = (-r) / 1.3;
}
tar = (_parent._x = _parent._x - (r / 2));
}
if (_parent._rotation == -90) {
if (_parent._x > 939) {
r = (-r) / 1.3;
}
tar = (_parent._x = _parent._x + (r / 2));
}
if (_parent._rotation == 0) {
if (_parent._y > 655) {
r = (-r) / 1.3;
}
tar = (_parent._y = _parent._y + (r / 2));
}
if ((_parent._rotation == 180) || (_parent._rotation == -180)) {
if (_parent._y < 45) {
r = (-r) / 1.3;
}
tar = (_parent._y = _parent._y - (r / 2));
}
r = r / 1.3;
}
};
Symbol 360 MovieClip Frame 16
_parent.ch_fire = false;
_parent.sp = _parent.ms;
Symbol 360 MovieClip Frame 19
delete this.onEnterFrame;
Symbol 360 MovieClip Frame 32
gotoAndStop (1);
Symbol 360 MovieClip Frame 33
_parent.sp = 0;
_parent.direct = "0";
_parent.ch_fire = false;
delete this.onEnterFrame;
if (_parent.life <= 0) {
gotoAndPlay ("end");
}
Symbol 360 MovieClip Frame 69
gotoAndStop (1);
_parent.sp = _parent.ms;
Symbol 360 MovieClip Frame 70
_parent._parent.level_score = _parent._parent.level_score + 2;
_parent._parent.temp_score = _parent._parent.temp_score + 2;
_parent._parent.stat.s_score = _parent._parent.temp_score;
_parent._parent.score++;
_parent._parent.stat.rrr = _parent._parent.total - _parent._parent.score;
_parent._parent.attachMovie("e1d", _parent._name + d, _parent.getDepth() - 100, {_x:_parent._x, _y:_parent._y});
_parent._parent[_parent._name + d]._rotation = _parent._rotation;
_parent.removeMovieClip();
Symbol 360 MovieClip Frame 76
_parent.ready = 180;
this.onEnterFrame = function () {
if (_parent._parent.iam.life > 0) {
_parent._parent.iam.life = _parent._parent.iam.life - 0.5;
}
};
Symbol 360 MovieClip Frame 80
delete this.onEnterFrame;
Symbol 360 MovieClip Frame 110
_parent.sp = _parent.ms;
_parent.ch_fire = false;
gotoAndStop (1);
Symbol 361 MovieClip [en0] Frame 1
life = 0;
sp = _parent.e_a;
ms = _parent.e_a;
ready = random(200);
rrm = (rm = 200);
dym = 5;
p = 0;
wp = "esnr0";
think = 3;
direct = "0";
Symbol 361 MovieClip [en0] Frame 94
life = 50;
stop();
Symbol 377 Button
on (release) {
getURL ("http://www.gameslunatic.com/", "_self");
}
Instance of Symbol 380 MovieClip "m_gr" in Symbol 381 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 381 MovieClip "mc_spiral" in Symbol 386 MovieClip Frame 1
onClipEvent (enterFrame) {
this.m_gr._rotation = this.m_gr._rotation + 70;
}
Instance of Symbol 381 MovieClip "mc_spiral" in Symbol 386 MovieClip Frame 1
onClipEvent (enterFrame) {
this.m_gr._rotation = this.m_gr._rotation + 70;
}
Symbol 391 Button
on (release) {
getURL ("http://www.gameslunatic.com/", "_self");
}
Symbol 395 Button
on (release) {
getURL ("http://www.gameslunatic.com/", "_self");
}
Instance of Symbol 397 MovieClip "m_gr" in Symbol 398 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 398 MovieClip "mc_spiral" in Symbol 403 MovieClip Frame 1
onClipEvent (enterFrame) {
this.m_gr._rotation = this.m_gr._rotation + 70;
}
Instance of Symbol 398 MovieClip "mc_spiral" in Symbol 403 MovieClip Frame 1
onClipEvent (enterFrame) {
this.m_gr._rotation = this.m_gr._rotation + 70;
}
Symbol 403 MovieClip Frame 21
stop();
Symbol 408 Button
on (release) {
getURL ("http://www.gameslunatic.com/", "_self");
}
Instance of Symbol 381 MovieClip "mc_spiral" in Symbol 409 MovieClip Frame 1
onClipEvent (enterFrame) {
this.m_gr._rotation = this.m_gr._rotation + 70;
}
Instance of Symbol 381 MovieClip "mc_spiral" in Symbol 409 MovieClip Frame 1
onClipEvent (enterFrame) {
this.m_gr._rotation = this.m_gr._rotation + 70;
}
Symbol 410 MovieClip Frame 24
stop();
Symbol 413 Button
on (release) {
_parent.vol = 0;
gotoAndStop (2);
_parent.snd.setVolume(0);
}
Symbol 414 Button
on (release) {
_parent.snd.setVolume(100);
_parent.vol = 100;
gotoAndStop (1);
}
Symbol 416 MovieClip Frame 1
if (_parent.vol == 0) {
gotoAndStop (2);
}
stop();
Symbol 416 MovieClip Frame 2
stop();
Symbol 425 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("u");
}
on (release) {
_parent.play();
}
Symbol 441 MovieClip Frame 4
stop();
Symbol 442 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 17
stop();
Symbol 443 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("u");
}
on (release) {
_parent.play();
_parent.hard = false;
_parent.lvl = 1;
}
Symbol 444 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 17
stop();
Symbol 445 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("u");
}
on (release) {
_parent.play();
_parent.hard = true;
_parent.lvl = 1;
}
Symbol 446 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 17
stop();
Symbol 449 MovieClip Frame 1
this.onEnterFrame = function () {
r = random(50);
if (r == 1) {
gotoAndPlay(random(55) + 1);
}
};
Symbol 450 MovieClip Frame 1
n = "<b>CONTROLS:</b> Arrow keys to move the tank. A to fire. S to place a mine.";
i = 0;
ii = 0.01;
this.onEnterFrame = function () {
if (random(5) == 1) {
if (i < n.length) {
i = i + ii;
} else {
snd.stop();
delete this.onEnterFrame;
delete snd.onEnterFrame;
}
ii = random(3) + 1;
nn = n.substr(0, i);
}
};
Symbol 452 MovieClip Frame 1
n = "You are real brave.";
i = 0;
ii = 0.01;
this.onEnterFrame = function () {
if (random(5) == 1) {
if (i < n.length) {
i = i + ii;
} else {
snd.stop();
delete this.onEnterFrame;
delete snd.onEnterFrame;
}
ii = random(3) + 1;
nn = n.substr(0, i);
}
};
Symbol 453 MovieClip Frame 1
stop();
Symbol 453 MovieClip Frame 2
stop();
Instance of Symbol 381 MovieClip "mc_spiral" in Symbol 457 MovieClip Frame 1
onClipEvent (enterFrame) {
this.m_gr._rotation = this.m_gr._rotation + 70;
}
Instance of Symbol 381 MovieClip "mc_spiral" in Symbol 457 MovieClip Frame 1
onClipEvent (enterFrame) {
this.m_gr._rotation = this.m_gr._rotation + 70;
}
Symbol 458 MovieClip Frame 24
stop();
Symbol 459 MovieClip Frame 18
stop();
Symbol 463 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("u");
}
on (release) {
_parent.play();
}
Symbol 464 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 17
stop();
Symbol 465 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("u");
}
on (release) {
_parent.play();
_parent.ng = true;
}
Symbol 466 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 17
stop();
Symbol 468 MovieClip Frame 1
i = 0;
ii = 0.01;
this.onEnterFrame = function () {
if (random(5) == 1) {
if (i < n.length) {
i = i + ii;
} else {
snd.stop();
delete this.onEnterFrame;
delete snd.onEnterFrame;
}
ii = random(3) + 1;
nn = n.substr(0, i);
}
};
Symbol 470 MovieClip Frame 1
i = 0;
ii = 0.01;
this.onEnterFrame = function () {
if (random(5) == 1) {
if (i < n.length) {
i = i + ii;
} else {
delete this.onEnterFrame;
}
ii = random(3) + 1;
nn = n.substr(0, i);
nnn = n.substr(0, i + 1);
}
};
Symbol 472 MovieClip Frame 1
i = 0;
ii = 0.01;
this.onEnterFrame = function () {
if (random(5) == 1) {
if (i < n.length) {
i = i + ii;
} else {
snd.stop();
delete this.onEnterFrame;
delete snd.onEnterFrame;
}
ii = random(3) + 1;
nn = n.substr(0, i);
nnn = n.substr(0, i + 1);
}
};
Symbol 473 MovieClip Frame 1
stop();
ttt.nn = (nnn = " ");
ttt.n = "Level 1: Baptism of fire";
mis.n = "Your mission is to destroy 50 enemy tanks.";
Symbol 473 MovieClip Frame 2
stop();
ttt.nn = (nnn = " ");
ttt.n = "Arrow buttons - move; 1 - fire; 2 - mine;";
Symbol 474 MovieClip Frame 20
this.removeMovieClip();
Symbol 528 MovieClip Frame 25
stop();
Symbol 534 MovieClip Frame 64
stop();
Symbol 535 MovieClip Frame 1
shag = 0;
stop();
_parent.sp = _parent.ms;
Symbol 535 MovieClip Frame 2
_parent.ch_fire = true;
ch = true;
r = 20;
this.onEnterFrame = function () {
play();
ot = false;
i = 30000;
while (i < (30000 + _parent._parent.enemy0_kol)) {
if (_parent.dz.hitTest(_parent._parent["enemy" + i].dz)) {
ot = true;
}
i++;
}
if (ot) {
delete this.onEnterFrame;
} else {
if (_parent._rotation == 90) {
if (_parent._x < 45) {
r = (-r) / 1.3;
}
tar = (_parent._x = _parent._x - r);
}
if (_parent._rotation == -90) {
if (_parent._x > 939) {
r = (-r) / 1.3;
}
tar = (_parent._x = _parent._x + r);
}
if (_parent._rotation == 0) {
if (_parent._y > 655) {
r = (-r) / 1.3;
}
tar = (_parent._y = _parent._y + r);
}
if ((_parent._rotation == 180) || (_parent._rotation == -180)) {
if (_parent._y < 45) {
r = (-r) / 1.3;
}
tar = (_parent._y = _parent._y - r);
}
r = r / 1.3;
}
};
Symbol 535 MovieClip Frame 16
Symbol 535 MovieClip Frame 19
delete this.onEnterFrame;
_parent.ch_fire = false;
_parent.sp = _parent.ms;
Symbol 535 MovieClip Frame 32
gotoAndStop (1);
Symbol 535 MovieClip Frame 33
if (_parent.life <= 0) {
gotoAndPlay ("end");
}
_parent.sp = 0;
_parent.ch_fire = false;
if (_parent.life <= 0) {
gotoAndPlay ("end");
}
delete this.onEnterFrame;
Symbol 535 MovieClip Frame 58
if (_parent.life <= 0) {
gotoAndPlay ("end");
} else {
gotoAndStop (1);
}
_parent.sp = _parent.ms;
Symbol 535 MovieClip Frame 59
_parent._parent.stopgame = true;
_parent._parent.mission_complete = false;
_parent.dz._x = -9999;
_parent.swapDepths(90000);
Symbol 535 MovieClip Frame 94
stop();
_parent.swapDepths(0);
Symbol 537 MovieClip Frame 1
this.onEnterFrame = function () {
if ((((_parent._x < 10) || (_parent._x > 950)) || (_parent._y < 10)) || (_parent._y > 670)) {
delete this.onEnterFrame;
delete _parent.onEnterFrame;
gotoAndPlay ("exp");
}
};
Symbol 537 MovieClip Frame 6
stop();
Symbol 537 MovieClip Frame 61
stop();
_parent.removeMovieClip();
Symbol 538 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = this._x + spx;
this._y = this._y + spy;
i = 30000;
while (i < (30000 + _parent.enemy0_kol)) {
if (this.sn.sn.hitTest(_parent["enemy" + i].dz)) {
sn.gotoAndPlay("exp");
_parent["enemy" + i].t.gotoAndPlay("dmg");
_parent["enemy" + i].life = _parent["enemy" + i].life - 50;
_parent["enemy" + i].gotoAndPlay("dmg");
this._x = _parent["enemy" + i]._x;
this._y = _parent["enemy" + i]._y;
delete this.onEnterFrame;
}
i++;
}
if (this.sn.sn.hitTest(_parent.e_target.dz)) {
sn.gotoAndPlay("exp");
_parent.e_target.t.gotoAndPlay("dmg");
_parent.e_target.life = _parent.e_target.life - 50;
this._x = _parent.e_target._x;
this._y = _parent.e_target._y;
delete this.onEnterFrame;
}
};
Symbol 539 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = this._x + (spx / 1.5);
this._y = this._y + (spy / 1.5);
if (this.sn.sn.hitTest(_parent.iam.dz)) {
sn.gotoAndPlay("exp");
_parent.iam.t.gotoAndPlay("dmg");
_parent.iam.life = _parent.iam.life - (10 - (_parent.iam.bron * 2));
this._x = _parent.iam._x;
this._y = _parent.iam._y;
delete this.onEnterFrame;
}
};
Symbol 544 MovieClip Frame 1
this.onEnterFrame = function () {
if ((((_parent._x < 10) || (_parent._x > 950)) || (_parent._y < 10)) || (_parent._y > 670)) {
delete this.onEnterFrame;
delete _parent.onEnterFrame;
gotoAndPlay ("exp");
}
};
Symbol 544 MovieClip Frame 6
stop();
Symbol 544 MovieClip Frame 61
stop();
_parent.removeMovieClip();
Symbol 545 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = this._x + (spx / 1.5);
this._y = this._y + (spy / 1.5);
if (this.sn.sn.hitTest(_parent.iam.dz)) {
sn.gotoAndPlay("exp");
_parent.iam.t.gotoAndPlay("dmg");
_parent.iam.life = _parent.iam.life - (5 - _parent.iam.bron);
this._x = _parent.iam._x;
this._y = _parent.iam._y;
delete this.onEnterFrame;
}
};
Symbol 578 MovieClip Frame 14
stop();
Symbol 581 Button
on (press) {
play();
}
Symbol 588 MovieClip Frame 1
this.onEnterFrame = function () {
if ((((_parent._x < 10) || (_parent._x > 950)) || (_parent._y < 10)) || (_parent._y > 670)) {
delete this.onEnterFrame;
delete _parent.onEnterFrame;
gotoAndPlay ("exp");
}
};
Symbol 588 MovieClip Frame 6
stop();
Symbol 588 MovieClip Frame 61
stop();
_parent.removeMovieClip();
Symbol 589 MovieClip Frame 1
_parent.iam.wp2--;
if (_parent.iam.wp2 <= 0) {
_parent.iam.w = "snr";
}
this.onEnterFrame = function () {
this._x = this._x + spx;
this._y = this._y + spy;
i = 30000;
while (i < (30000 + _parent.enemy0_kol)) {
if (this.sn.sn.hitTest(_parent["enemy" + i].dz)) {
sn.gotoAndPlay("exp");
_parent["enemy" + i].t.gotoAndPlay("dmg");
_parent["enemy" + i].life = _parent["enemy" + i].life - 100;
_parent["enemy" + i].gotoAndPlay("dmg");
this._x = _parent["enemy" + i]._x;
this._y = _parent["enemy" + i]._y;
_parent["enemy" + i].direct = "0";
delete this.onEnterFrame;
}
i++;
}
if (this.sn.sn.hitTest(_parent.e_target.dz)) {
sn.gotoAndPlay("exp");
_parent.e_target.t.gotoAndPlay("dmg");
_parent.e_target.life = _parent.e_target.life - 50;
this._x = _parent.e_target._x;
this._y = _parent.e_target._y;
_parent.e_target.direct = "0";
delete this.onEnterFrame;
}
};
Symbol 590 MovieClip Frame 109
stop();
Symbol 597 MovieClip Frame 45
stop();
Symbol 598 MovieClip Frame 1
stop();
ttt.nn = (nnn = " ");
ttt.n = "Level 2: Milksop's battle";
mis.n = "Your mission is to destroy 70 enemy tanks.";
Symbol 598 MovieClip Frame 2
stop();
ttt.nn = (nnn = " ");
ttt.n = "Arrow buttons - move; 1 - fire; 2 - mine;";
Symbol 603 MovieClip Frame 1
stop();
ttt.nn = (nnn = " ");
ttt.n = "Level 3: Baby-talk";
mis.n = "Your mission is to destroy 70 enemy tanks.";
Symbol 603 MovieClip Frame 2
stop();
ttt.nn = (nnn = " ");
ttt.n = "Arrow buttons - move; 1 - fire; 2 - mine;";
Symbol 610 MovieClip Frame 1
stop();
ttt.nn = (nnn = " ");
ttt.n = "Level 4: I am a soldier";
mis.n = "Your mission is to destroy all regular enemy tanks and a mine tank.";
Symbol 610 MovieClip Frame 2
stop();
ttt.nn = (nnn = " ");
ttt.n = "Arrow buttons - move; 1 - fire; 2 - mine;";
Symbol 623 MovieClip Frame 1
stop();
ttt.nn = (nnn = " ");
ttt.n = "Level 5: Experienced warrior";
mis.n = "Your mission is to demine all minefields.";
Symbol 623 MovieClip Frame 2
stop();
ttt.nn = (nnn = " ");
ttt.n = "Arrow buttons - move; 1 - fire; 2 - mine;";
Symbol 628 MovieClip Frame 1
life = 100;
stop();
this.onEnterFrame = function () {
if (this.hitTest(_parent.iam.dz)) {
_parent.rzm._visible = true;
_parent.rzm._x = this._x;
_parent.rzm._y = this._y;
if (_parent.hard) {
this.life--;
} else {
this.life = this.life - 1.5;
}
if (this.life <= 0) {
_parent.rzm._visible = false;
delete this.onEnterFrame;
play();
_parent.tm++;
}
_parent.rzm.life._xscale = this.life;
}
};
Symbol 628 MovieClip Frame 50
stop();
Symbol 629 MovieClip Frame 1
this.swapDepths(7979577);
Symbol 638 MovieClip Frame 1
stop();
ttt.nn = (nnn = " ");
ttt.n = "Level 6: Almost impossibly";
mis.n = "Your mission is to hold the bridgehead until the mobile radar arrives, then you must knock it out of action without letting it transfer the secret data.";
Symbol 638 MovieClip Frame 2
stop();
ttt.nn = (nnn = " ");
ttt.n = "Arrow buttons - move; 1 - fire; 2 - mine;";
Symbol 652 MovieClip Frame 1
stop();
ttt.nn = (nnn = " ");
ttt.n = "Level 7: Last veterans's battle";
mis.n = "Your mission is to deactivate underground radars.";
Symbol 652 MovieClip Frame 2
stop();
ttt.nn = (nnn = " ");
ttt.n = "Arrow buttons - move; 1 - fire; 2 - mine;";
Symbol 666 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("u");
}
on (release) {
_parent.play();
_parent.ng = true;
}
Symbol 667 MovieClip Frame 1
stop();
r.t = "SUBMIT SCORE";
Symbol 667 MovieClip Frame 17
stop();
Symbol 668 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay ("u");
}
on (release) {
_parent.play();
_parent.ng = true;
}
Symbol 669 MovieClip Frame 1
stop();
r.t = "HIGHSCORES";
Symbol 669 MovieClip Frame 17
stop();
Symbol 671 MovieClip Frame 1
n = "Congratulations!";
i = 0;
ii = 0.01;
this.onEnterFrame = function () {
if (random(5) == 1) {
if (i < n.length) {
i = i + ii;
} else {
snd.stop();
delete this.onEnterFrame;
delete snd.onEnterFrame;
}
ii = random(3) + 1;
nn = n.substr(0, i);
}
};