Frame 1
stop();
Instance of Symbol 27 MovieClip in Frame 1
onClipEvent (load) {
totalBytes = _root.getBytesTotal();
sound1 = new Sound();
sound1.attachSound("ok");
timer = 0;
}
onClipEvent (enterFrame) {
this._rotation = this._rotation + (10 * amountLoaded);
c1 = _url.indexOf("://") + 3;
c2 = _url.indexOf("/", c1);
domain = _url.substring(c1, c2);
c3 = domain.lastIndexOf(".") - 1;
c4 = domain.lastIndexOf(".", c3) + 1;
domain = domain.substring(c4, domain.length);
bytesL = _root.getBytesLoaded();
amountLoaded = bytesL / totalBytes;
_root.read = ((int(bytesL / 1000) + "kb/") + int(totalBytes / 1000)) + "kb";
if (amountLoaded >= 1) {
sound1.attachSound("explode");
sound1.start();
_root.gotoAndStop(2);
}
if (timer == 0) {
timer = 90;
sound1.attachSound("filler");
sound1.start();
} else {
timer = timer - 1;
}
}
Frame 2
stop();
Instance of Symbol 109 MovieClip in Frame 2
onClipEvent (load) {
t = 0;
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (t == 0) {
this._alpha = 100;
}
if (t > 0) {
if (t < 20) {
this._alpha = this._alpha - 5;
}
}
if (t > 120) {
if (t < 140) {
this._alpha = this._alpha + 5;
}
}
if (t == 140) {
_root.nextFrame();
}
t = t + 1;
}
Frame 3
stop();
Instance of Symbol 27 MovieClip "ent" in Frame 3
onClipEvent (load) {
y = 0;
x = 0;
Selection.setFocus(_root);
}
onClipEvent (keyDown) {
if (Key.isDown(13)) {
y = 1;
x = 1;
}
}
onClipEvent (enterFrame) {
Mouse.show();
if (y == 1) {
if (x == 0) {
_root.nextFrame();
}
if (x == 1) {
x = 0;
}
}
}
Frame 4
function fire(number, rotat, Xpos, Ypos, Forg) {
_root.tank.plays("fire");
j = 0;
while (j < 1) {
if (_root["explosion" + a]._x != undefined) {
a++;
j--;
}
if (_root["etank" + a]._x != undefined) {
a++;
j--;
}
if (_root["power" + a]._x != undefined) {
a++;
j--;
}
j++;
}
if (number == 0) {
attachMovie("bullet", "bullet" + a, a);
_root["bullet" + a]._rotation = rotat;
_root["bullet" + a]._x = Xpos;
_root["bullet" + a]._y = Ypos;
_root["bullet" + a].side = 0;
if (Forg == 1) {
_root["bullet" + a].typ = 1;
}
if (Forg == 2) {
_root["bullet" + a].typ = 2;
}
if (Forg == 3) {
_root["bullet" + a].typ = 3;
}
a++;
}
if (number == 1) {
attachMovie("ebull", "bullet" + a, a);
_root["bullet" + a]._rotation = rotat;
_root["bullet" + a]._x = Xpos;
_root["bullet" + a]._y = Ypos;
_root["bullet" + a].side = 1;
a++;
}
recreate();
}
function makewall() {
_root.tank.plays("makwal");
i = 0;
while (i < 4) {
attachMovie("wall", "wall" + i, i);
_root["wall" + i]._rotation = int(Math.random() * 361);
_root["wall" + i]._x = (int(Math.random() * 25) + 50) + (i * 125);
_root["wall" + i]._y = int(Math.random() * 175) + 100;
i++;
}
_root.background._x = 250 + (int(Math.random() * 251) - 125);
_root.background._y = 187.5 + (int(Math.random() * 151) - 75);
recreate();
}
function explode(Xex, Yex) {
_root.tank.plays("explode");
j = 0;
while (j < 1) {
if (_root["etank" + b]._x != undefined) {
b++;
j--;
}
if (_root["bullet" + b]._x != undefined) {
b++;
j--;
}
if (_root["power" + b]._x != undefined) {
b++;
j--;
}
j++;
}
attachMovie("explosion", "explosion" + b, b);
_root["explosion" + b]._rotation = int(Math.random() * 361);
_root["explosion" + b]._x = Xex;
_root["explosion" + b]._y = Yex;
b++;
recreate();
}
function exgraph(Xex, Yex, form) {
if (form == 0) {
_root.tank.plays("pow");
j = 0;
while (j < 1) {
if (_root["etank" + b]._x != undefined) {
b++;
j--;
}
if (_root["bullet" + b]._x != undefined) {
b++;
j--;
}
if (_root["power" + b]._x != undefined) {
b++;
j--;
}
j++;
}
attachMovie("flash", "explosion" + b, b);
_root["explosion" + b]._rotation = int(Math.random() * 361);
_root["explosion" + b]._x = Xex;
_root["explosion" + b]._y = Yex;
b++;
recreate();
}
if (form == 1) {
_root.tank.plays("shoc");
j = 0;
while (j < 1) {
if (_root["etank" + b]._x != undefined) {
b++;
j--;
}
if (_root["bullet" + b]._x != undefined) {
b++;
j--;
}
if (_root["power" + b]._x != undefined) {
b++;
j--;
}
j++;
}
attachMovie("shok", "explosion" + b, b);
_root["explosion" + b]._rotation = int(Math.random() * 361);
_root["explosion" + b]._x = Xex;
_root["explosion" + b]._y = Yex;
b++;
recreate();
}
}
function enem(tocreate, outof) {
if (tocreate > outof) {
tocreate = outof;
}
if (tocreate == -2) {
j = 0;
while (j < 1) {
if (_root["bullet" + e]._x != undefined) {
e++;
j--;
}
if (_root["explosion" + e]._x != undefined) {
e++;
j--;
}
if (_root["power" + e]._x != undefined) {
e++;
j--;
}
j++;
}
attachMovie("etank", "etank" + e, e);
_root["etank" + e]._y = -25;
_root["etank" + e]._x = int(Math.random() * 460) + 20;
_root["etank" + e].rot = 180;
_root["etank" + e].typ = 3;
_root["etank" + e].speed = 2;
_root["etank" + e].rotat = 6;
_root["etank" + e].resped = 4;
_root["etank" + e].hit = _root.Area;
_root["etank" + e].gotoAndStop("boss");
e++;
}
k = 0;
while (k < tocreate) {
j = 0;
while (j < 1) {
if (_root["bullet" + e]._x != undefined) {
e++;
j--;
}
if (_root["explosion" + e]._x != undefined) {
e++;
j--;
}
if (_root["power" + e]._x != undefined) {
e++;
j--;
}
j++;
}
attachMovie("etank", "etank" + e, e);
r = int(Math.random() * 4);
if (r == 0) {
_root["etank" + e]._y = -25;
_root["etank" + e]._x = int(Math.random() * 460) + 20;
_root["etank" + e].rot = 180;
}
if (r == 1) {
_root["etank" + e]._y = 400;
_root["etank" + e]._x = int(Math.random() * 460) + 20;
_root["etank" + e].rot = 0;
}
if (r == 2) {
_root["etank" + e]._x = -25;
_root["etank" + e]._y = int(Math.random() * 335) + 20;
_root["etank" + e].rot = 90;
}
if (r == 3) {
_root["etank" + e]._x = 525;
_root["etank" + e]._y = int(Math.random() * 335) + 20;
_root["etank" + e].rot = 270;
}
_root["etank" + e].typ = int(Math.random() * 3);
if (_root["etank" + e].typ == 1) {
if (f == e) {
_root["etank" + e].typ = int(Math.random() * 3);
if (_root["etank" + e].typ == 1) {
_root["etank" + e].typ = int(Math.random() * 3);
}
}
}
if (_root["etank" + e].typ == 0) {
_root["etank" + e].speed = 3.2;
_root["etank" + e].rotat = 6;
_root["etank" + e].resped = 1.3;
}
if (_root["etank" + e].typ == 1) {
_root["etank" + e].speed = 4;
_root["etank" + e].rotat = 6;
_root["etank" + e].gotoAndStop("fast");
}
if (_root["etank" + e].typ == 2) {
_root["etank" + e].speed = 2.3;
_root["etank" + e].rotat = 6;
_root["etank" + e].resped = 2;
_root["etank" + e].gotoAndStop("skilled");
}
e++;
k++;
}
}
function powerup(tx, ty) {
j = 0;
while (j < 1) {
if (_root["etank" + g]._x != undefined) {
g++;
j--;
}
if (_root["bullet" + g]._x != undefined) {
g++;
j--;
}
if (_root["explosion" + g]._x != undefined) {
g++;
j--;
}
j++;
}
j = -2;
no = 0;
k = 0;
while (k < 4) {
if (_root["wall" + k].hitTest(tx - 12, ty, true)) {
no = 1;
}
if (_root["wall" + k].hitTest(tx + 12, ty, true)) {
no = 1;
}
if (_root["wall" + k].hitTest(tx, ty + 12, true)) {
no = 1;
}
if (_root["wall" + k].hitTest(tx, ty - 12, true)) {
no = 1;
}
k++;
}
if (ty < 80) {
no = 1;
}
if (no == 0) {
if (int(Math.random() * 1) == 0) {
if (j < 1) {
attachMovie("power", "power" + g, g);
_root["power" + g]._x = tx;
_root["power" + g]._y = ty;
_root["power" + g].coun = 10;
_root["power" + g].typ = int(Math.random() * 8) + 1;
_root["power" + g].gotoAndStop(_root["power" + g].typ);
recreate();
}
}
}
if (int(Math.random() * 7) == 0) {
_root["power" + g].removeMovieClip();
}
g++;
}
function recreate() {
d = 999999999 /* 0x3B9AC9FF */;
sx = 250;
sy = 362.5;
_root.stupid.removeMovieClip();
attachMovie("stup", "stupid", d);
_root.stupid._x = sx;
_root.stupid._y = sy;
_root.stupid.score = _root.score;
_root.stupid.read = "Area " + _root.Area;
shield = _root.tank.shield;
_root.stupid.shielda = shield;
unnum = 0;
shock = _root.tank.shock;
spread = _root.tank.spread;
three = _root.tank.three;
guided = _root.tank.guided;
if (shock > 0) {
_root.stupid.shota = shock;
_root.stupid.powin.gotoAndStop(4);
unnum = 1;
}
if (spread > 0) {
_root.stupid.shota = spread;
_root.stupid.powin.gotoAndStop(5);
unnum = 1;
}
if (three > 0) {
_root.stupid.shota = three;
_root.stupid.powin.gotoAndStop(2);
unnum = 1;
}
if (guided > 0) {
_root.stupid.shota = guided;
_root.stupid.powin.gotoAndStop(3);
unnum = 1;
}
if (unnum == 0) {
_root.stupid.powin.gotoAndStop("normal");
_root.stupid.shota = "-";
}
}
stop();
Instance of Symbol 27 MovieClip "tank" in Frame 4
onClipEvent (load) {
_root.rec.removeMovieClip();
speed = 4;
resped = 2;
rotat = 9;
end = 0;
tooyii = 0;
thyme = -1;
auv = 0;
shield = 2;
three = 0;
guided = 0;
shock = 0;
spread = 0;
powspeed = 0;
powsped = 0;
powrot = 0;
_root.Area = 1;
_root.chec = 0;
_root.a = 4;
_root.i = 0;
_root.b = 4;
_root.c = 4;
_root.e = 4;
_root.f = 4;
_root.g = 4;
_root.h = 4;
_root.score = 0;
stag = 0;
_root.stupid.read = "Area 1";
_root.stupid.score = _root.score;
_root.left = "";
_root.right = "";
_root.arrow1._alpha = 0;
_root.arrow2._alpha = 0;
sound1 = new Sound();
sound1.attachSound("explode");
}
onClipEvent (enterFrame) {
function zeroize() {
three = 0;
guided = 0;
spread = 0;
shock = 0;
}
function zeroit() {
powspeed = 0;
powsped = 0;
powrot = 0;
}
function sprd(tanx, tany, tanr, side) {
rtanx = tanx + (Math.cos(((Math.PI*2) * (_root.tank._rotation - 90)) / 360) * 12);
rtany = tany + (Math.sin(((Math.PI*2) * (_root.tank._rotation - 90)) / 360) * 12);
_root.fire(side, tanr, rtanx, rtany);
rtanx = tanx + (Math.cos(((Math.PI*2) * (_root.tank._rotation - 150)) / 360) * 12);
rtany = tany + (Math.sin(((Math.PI*2) * (_root.tank._rotation - 150)) / 360) * 12);
_root.fire(side, tanr - 60, rtanx, rtany);
rtanx = tanx + (Math.cos(((Math.PI*2) * (_root.tank._rotation - 210)) / 360) * 12);
rtany = tany + (Math.sin(((Math.PI*2) * (_root.tank._rotation - 210)) / 360) * 12);
_root.fire(side, tanr - 120, rtanx, rtany);
rtanx = tanx + (Math.cos(((Math.PI*2) * (_root.tank._rotation - 270)) / 360) * 12);
rtany = tany + (Math.sin(((Math.PI*2) * (_root.tank._rotation - 270)) / 360) * 12);
_root.fire(side, tanr - 180, rtanx, rtany);
rtanx = tanx + (Math.cos(((Math.PI*2) * (_root.tank._rotation - 330)) / 360) * 12);
rtany = tany + (Math.sin(((Math.PI*2) * (_root.tank._rotation - 330)) / 360) * 12);
_root.fire(side, tanr - 240, rtanx, rtany);
rtanx = tanx + (Math.cos(((Math.PI*2) * (_root.tank._rotation - 390)) / 360) * 12);
rtany = tany + (Math.sin(((Math.PI*2) * (_root.tank._rotation - 390)) / 360) * 12);
_root.fire(side, tanr - 300, rtanx, rtany);
}
function sprid(tanx, tany) {
_root.exgraph(tanx, tany, 1);
l = _root.f;
while (l < _root.e) {
if (_root["etank" + l]._x != undefined) {
ltanx = Math.abs(tanx - _root["etank" + l]._x);
ltany = Math.abs(tany - _root["etank" + l]._y);
if ((ltanx + ltany) < 101) {
_root["etank" + l].shocked = 150;
}
}
l++;
}
l = _root.c;
while (l < _root.a) {
if (_root["bullet" + l]._x != undefined) {
ltanx = Math.abs(tanx - _root["bullet" + l]._x);
ltany = Math.abs(tany - _root["bullet" + l]._y);
if ((ltanx + ltany) < 101) {
_root.explode(_root["bullet" + l]._x, _root["bullet" + l]._y);
_root["bullet" + l].removeMovieClip();
}
}
l++;
}
}
function plays(name) {
sound1.attachSound(name);
sound1.start();
}
_root.stupid.shielda = shield;
unnum = 0;
if (shock > 0) {
_root.stupid.shota = shock;
_root.stupid.powin.gotoAndStop(4);
unnum = 1;
}
if (spread > 0) {
_root.stupid.shota = spread;
_root.stupid.powin.gotoAndStop(5);
unnum = 1;
}
if (three > 0) {
_root.stupid.shota = three;
_root.stupid.powin.gotoAndStop(2);
unnum = 1;
}
if (guided > 0) {
_root.stupid.shota = guided;
_root.stupid.powin.gotoAndStop(3);
unnum = 1;
}
if (unnum == 0) {
_root.stupid.powin.gotoAndStop("normal");
_root.stupid.shota = "-";
}
Mouse.hide();
if (powrot == 0) {
rotat = 9;
reload = int(30 / resped);
} else {
rotat = 12;
reload = int(30 / resped);
}
if (powspeed == 0) {
speed = 2.5;
} else {
speed = 5;
}
if (powsped == 0) {
resped = 3;
} else {
resped = 4;
}
if (end == 0) {
j = _root.h;
while (j < _root.g) {
if (_root["power" + j]._x != undefined) {
if (_root["power" + j].coun > 0) {
_root["power" + j].coun = _root["power" + j].coun - 1;
}
}
j++;
}
if (stag == 0) {
stag = 1;
_root.makewall();
reload = int(30 / resped);
setim = 150;
aat = _root.Area;
if (aat > 1) {
aat = 1;
}
tea = _root.Area * 5;
}
if (Key.isDown(38)) {
PosX = _root.tank._x + (Math.cos(((Math.PI*2) * (_root.tank._rotation - 90)) / 360) * (15 + speed));
PosY = _root.tank._y + (Math.sin(((Math.PI*2) * (_root.tank._rotation - 90)) / 360) * (15 + speed));
RigX = _root.tank._x + (Math.cos(((Math.PI*2) * (_root.tank._rotation - 45)) / 360) * (15 + speed));
RigY = _root.tank._y + (Math.sin(((Math.PI*2) * (_root.tank._rotation - 45)) / 360) * (15 + speed));
LefX = _root.tank._x + (Math.cos(((Math.PI*2) * (_root.tank._rotation - 135)) / 360) * (15 + speed));
LefY = _root.tank._y + (Math.sin(((Math.PI*2) * (_root.tank._rotation - 135)) / 360) * (15 + speed));
move = 0;
i = 0;
while (i < 4) {
if (_root["wall" + i].hitTest(PosX, PosY, true)) {
move = 1;
}
if (move == 0) {
if (_root["wall" + i].hitTest(RigX, RigY, true)) {
move = 3;
}
if (_root["wall" + i].hitTest(LefX, LefY, true)) {
move = 2;
}
}
i++;
}
j = _root.f;
while (j < _root.e) {
if (_root["etank" + j]._x != undefined) {
if (_root["etank" + j].hitTest(PosX, PosY, true)) {
move = 1;
}
if (_root["etank" + j].hitTest(RigX, RigY, true)) {
move = 3;
}
if (_root["etank" + j].hitTest(LefX, LefY, true)) {
move = 2;
}
}
j++;
}
j = _root.h;
while (j < _root.g) {
if (_root["power" + j]._x != undefined) {
if (_root["power" + j].hitTest(PosX, PosY, true)) {
_root.exgraph(_root["power" + j]._x, _root["power" + j]._y, 0);
if (_root["power" + j].typ == 1) {
if (thyme > -1) {
thyme = -1;
} else {
shield = shield + 1;
}
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 2) {
temp = three;
zeroize();
three = temp;
three = three + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 3) {
temp = guided;
zeroize();
guided = temp;
guided = guided + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 4) {
temp = shock;
zeroize();
shock = temp;
shock = shock + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 5) {
temp = spread;
zeroize();
spread = temp;
spread = spread + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 6) {
powspeed = 1;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 7) {
powrot = 1;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 8) {
powsped = 1;
_root["power" + j].removeMovieClip();
}
}
if (_root["power" + j].hitTest(RigX, RigY, true)) {
_root.exgraph(_root["power" + j]._x, _root["power" + j]._y, 0);
if (_root["power" + j].typ == 1) {
if (thyme > -1) {
thyme = -1;
} else {
shield = shield + 1;
}
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 2) {
temp = three;
zeroize();
three = temp;
three = three + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 3) {
temp = guided;
zeroize();
guided = temp;
guided = guided + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 4) {
temp = shock;
zeroize();
shock = temp;
shock = shock + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 5) {
temp = spread;
zeroize();
spread = temp;
spread = spread + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 6) {
powspeed = 1;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 7) {
powrot = 1;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 8) {
powsped = 1;
_root["power" + j].removeMovieClip();
}
}
if (_root["power" + j].hitTest(LefX, LefY, true)) {
_root.exgraph(_root["power" + j]._x, _root["power" + j]._y, 0);
if (_root["power" + j].typ == 1) {
if (thyme > -1) {
thyme = -1;
} else {
shield = shield + 1;
}
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 2) {
temp = three;
zeroize();
three = temp;
three = three + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 3) {
temp = guided;
zeroize();
guided = temp;
guided = guided + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 4) {
temp = shock;
zeroize();
shock = temp;
shock = shock + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 5) {
temp = spread;
zeroize();
spread = temp;
spread = spread + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 6) {
powspeed = 1;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 7) {
powrot = 1;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 8) {
powsped = 1;
_root["power" + j].removeMovieClip();
}
}
} else if (j == _root.h) {
_root.h = _root.h + 1;
}
j++;
}
if (PosX > 500) {
move = 1;
}
if (move == 0) {
if (RigX > 500) {
move = 3;
}
if (LefX > 500) {
move = 2;
}
}
if (PosX < 0) {
move = 1;
}
if (move == 0) {
if (RigX < 0) {
move = 3;
}
if (LefX < 0) {
move = 2;
}
}
if (PosY > 375) {
move = 1;
}
if (move == 0) {
if (RigY > 375) {
move = 3;
}
if (LefY > 375) {
move = 2;
}
}
if (tooyii == 0) {
if (PosY < 0) {
move = 1;
}
if (move == 0) {
if (RigY < 0) {
move = 3;
}
if (LefY < 0) {
move = 2;
}
}
}
if (tooyii == 1) {
if (PosY < -30) {
if (PosX < 220) {
this._x = this._x + 250;
this._y = 362.5;
_root.Area = _root.Area + 2;
stag = 0;
_root.makewall();
tooyii = 0;
_root.left = "";
_root.right = "";
_root.arrow1._alpha = 0;
_root.arrow2._alpha = 0;
} else if (PosX > 280) {
this._x = this._x - 250;
this._y = 362.5;
_root.Area = _root.Area + 1;
stag = 0;
_root.makewall();
tooyii = 0;
_root.left = "";
_root.right = "";
_root.arrow1._alpha = 0;
_root.arrow2._alpha = 0;
} else {
move = 1;
}
}
}
if (move == 0) {
_root.tank._x = _root.tank._x + (Math.cos(((Math.PI*2) * (_root.tank._rotation - 90)) / 360) * speed);
_root.tank._y = _root.tank._y + (Math.sin(((Math.PI*2) * (_root.tank._rotation - 90)) / 360) * speed);
}
if (move == 2) {
_root.tank._rotation = _root.tank._rotation + (speed * 2);
}
if (move == 3) {
_root.tank._rotation = _root.tank._rotation - (speed * 2);
}
}
if (Key.isDown(39)) {
_root.tank._rotation = _root.tank._rotation + rotat;
}
if (Key.isDown(37)) {
_root.tank._rotation = _root.tank._rotation - rotat;
}
if (Key.isDown(40)) {
PosX = _root.tank._x - (Math.cos(((Math.PI*2) * (_root.tank._rotation - 90)) / 360) * (15 + speed));
PosY = _root.tank._y - (Math.sin(((Math.PI*2) * (_root.tank._rotation - 90)) / 360) * (15 + speed));
RigX = _root.tank._x - (Math.cos(((Math.PI*2) * (_root.tank._rotation - 45)) / 360) * (15 + speed));
RigY = _root.tank._y - (Math.sin(((Math.PI*2) * (_root.tank._rotation - 45)) / 360) * (15 + speed));
LefX = _root.tank._x - (Math.cos(((Math.PI*2) * (_root.tank._rotation - 135)) / 360) * (15 + speed));
LefY = _root.tank._y - (Math.sin(((Math.PI*2) * (_root.tank._rotation - 135)) / 360) * (15 + speed));
move = 0;
i = 0;
while (i < 4) {
if (_root["wall" + i].hitTest(PosX, PosY, true)) {
move = 1;
}
if (move == 0) {
if (_root["wall" + i].hitTest(RigX, RigY, true)) {
move = 3;
}
if (_root["wall" + i].hitTest(LefX, LefY, true)) {
move = 2;
}
}
i++;
}
j = _root.f;
while (j < _root.e) {
if (_root["etank" + j]._x != undefined) {
if (_root["etank" + j].hitTest(PosX, PosY, true)) {
move = 1;
}
if (_root["etank" + j].hitTest(RigX, RigY, true)) {
move = 3;
}
if (_root["etank" + j].hitTest(LefX, LefY, true)) {
move = 2;
}
}
j++;
}
j = _root.h;
while (j < _root.g) {
if (_root["power" + j]._x != undefined) {
if (_root["power" + j].hitTest(PosX, PosY, true)) {
_root.exgraph(_root["power" + j]._x, _root["power" + j]._y, 0);
if (_root["power" + j].typ == 1) {
if (thyme > -1) {
thyme = -1;
} else {
shield = shield + 1;
}
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 2) {
temp = three;
zeroize();
three = temp;
three = three + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 3) {
temp = guided;
zeroize();
guided = temp;
guided = guided + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 4) {
temp = shock;
zeroize();
shock = temp;
shock = shock + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 5) {
temp = spread;
zeroize();
spread = temp;
spread = spread + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 6) {
powspeed = 1;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 7) {
powrot = 1;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 8) {
powsped = 1;
_root["power" + j].removeMovieClip();
}
}
if (_root["power" + j].hitTest(RigX, RigY, true)) {
_root.exgraph(_root["power" + j]._x, _root["power" + j]._y, 0);
if (_root["power" + j].typ == 1) {
if (thyme > -1) {
thyme = -1;
} else {
shield = shield + 1;
}
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 2) {
temp = three;
zeroize();
three = temp;
three = three + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 3) {
temp = guided;
zeroize();
guided = temp;
guided = guided + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 4) {
temp = shock;
zeroize();
shock = temp;
shock = shock + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 5) {
temp = spread;
zeroize();
spread = temp;
spread = spread + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 6) {
powspeed = 1;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 7) {
powrot = 1;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 8) {
powsped = 1;
_root["power" + j].removeMovieClip();
}
}
if (_root["power" + j].hitTest(LefX, LefY, true)) {
_root.exgraph(_root["power" + j]._x, _root["power" + j]._y, 0);
if (_root["power" + j].typ == 1) {
if (thyme > -1) {
thyme = -1;
} else {
shield = shield + 1;
}
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 2) {
temp = three;
zeroize();
three = temp;
three = three + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 3) {
temp = guided;
zeroize();
guided = temp;
guided = guided + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 4) {
temp = shock;
zeroize();
shock = temp;
shock = shock + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 5) {
temp = spread;
zeroize();
spread = temp;
spread = spread + 5;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 6) {
powspeed = 1;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 7) {
powrot = 1;
_root["power" + j].removeMovieClip();
}
if (_root["power" + j].typ == 8) {
powsped = 1;
_root["power" + j].removeMovieClip();
}
}
} else if (j == _root.h) {
_root.h = _root.h + 1;
}
j++;
}
if (PosX > 500) {
move = 1;
}
if (move == 0) {
if (RigX > 500) {
move = 3;
}
if (LefX > 500) {
move = 2;
}
}
if (PosX < 0) {
move = 1;
}
if (move == 0) {
if (RigX < 0) {
move = 3;
}
if (LefX < 0) {
move = 2;
}
}
if (PosY > 375) {
move = 1;
}
if (move == 0) {
if (RigY > 375) {
move = 3;
}
if (LefY > 375) {
move = 2;
}
}
if (tooyii == 0) {
if (PosY < 0) {
move = 1;
}
if (move == 0) {
if (RigY < 0) {
move = 3;
}
if (LefY < 0) {
move = 2;
}
}
}
if (tooyii == 1) {
if (PosY < -30) {
if (PosX < 220) {
this._x = this._x + 250;
this._y = 362.5;
_root.Area = _root.Area + 2;
stag = 0;
_root.makewall();
tooyii = 0;
_root.left = "";
_root.right = "";
_root.arrow1._alpha = 0;
_root.arrow2._alpha = 0;
} else if (PosX > 280) {
this._x = this._x - 250;
this._y = 362.5;
_root.Area = _root.Area + 1;
stag = 0;
_root.makewall();
tooyii = 0;
_root.left = "";
_root.right = "";
_root.arrow1._alpha = 0;
_root.arrow2._alpha = 0;
} else {
move = 1;
}
}
}
if (move == 0) {
_root.tank._x = _root.tank._x + ((Math.cos(((Math.PI*2) * (_root.tank._rotation - 270)) / 360) * speed) / 1.5);
_root.tank._y = _root.tank._y + ((Math.sin(((Math.PI*2) * (_root.tank._rotation - 270)) / 360) * speed) / 1.5);
}
if (move == 2) {
_root.tank._rotation = _root.tank._rotation + (speed * 2);
}
if (move == 3) {
_root.tank._rotation = _root.tank._rotation - (speed * 2);
}
}
if (tooyii == 0) {
if (Key.isDown(32)) {
if (_root.chec == 0) {
timer = reload;
tanx = _root.tank._x;
tany = _root.tank._y;
tanr = _root.tank._rotation;
rtanx = tanx + (Math.cos(((Math.PI*2) * (_root.tank._rotation - 45)) / 360) * 12);
rtany = tany + (Math.sin(((Math.PI*2) * (_root.tank._rotation - 45)) / 360) * 12);
ltanx = tanx + (Math.cos(((Math.PI*2) * (_root.tank._rotation - 135)) / 360) * 12);
ltany = tany + (Math.sin(((Math.PI*2) * (_root.tank._rotation - 135)) / 360) * 12);
if (spread > 0) {
spread = spread - 1;
_root.fire(0, _root.tank._rotation, tanx, tany, 3);
} else if (shock > 0) {
shock = shock - 1;
_root.fire(0, _root.tank._rotation, tanx, tany, 2);
} else if (guided > 0) {
guided = guided - 1;
_root.fire(0, _root.tank._rotation, tanx, tany, 1);
} else {
_root.fire(0, _root.tank._rotation, tanx, tany);
}
if (three > 0) {
three = three - 1;
_root.fire(0, tanr, ltanx, ltany);
_root.fire(0, tanr, rtanx, rtany);
}
_root.chec = 1;
}
}
}
i = _root.f;
while (i < _root.e) {
if (_root.f == i) {
if (_root["etank" + i]._x == undefined) {
_root.f = _root.f + 1;
}
}
if (_root["etank" + i]._x != undefined) {
if (tea > -2) {
PosX = _root["etank" + i]._x + (Math.cos(((Math.PI*2) * (_root["etank" + i]._rotation - 90)) / 360) * (15 + _root["etank" + i].speed));
PosY = _root["etank" + i]._y + (Math.sin(((Math.PI*2) * (_root["etank" + i]._rotation - 90)) / 360) * (15 + _root["etank" + i].speed));
RigX = _root["etank" + i]._x + (Math.cos(((Math.PI*2) * (_root["etank" + i]._rotation - 45)) / 360) * (15 + _root["etank" + i].speed));
RigY = _root["etank" + i]._y + (Math.sin(((Math.PI*2) * (_root["etank" + i]._rotation - 45)) / 360) * (15 + _root["etank" + i].speed));
LefX = _root["etank" + i]._x + (Math.cos(((Math.PI*2) * (_root["etank" + i]._rotation - 135)) / 360) * (15 + _root["etank" + i].speed));
LefY = _root["etank" + i]._y + (Math.sin(((Math.PI*2) * (_root["etank" + i]._rotation - 135)) / 360) * (15 + _root["etank" + i].speed));
} else {
PosX = _root["etank" + i]._x + (Math.cos(((Math.PI*2) * (_root["etank" + i]._rotation - 90)) / 360) * (20 + _root["etank" + i].speed));
PosY = _root["etank" + i]._y + (Math.sin(((Math.PI*2) * (_root["etank" + i]._rotation - 90)) / 360) * (20 + _root["etank" + i].speed));
RigX = _root["etank" + i]._x + (Math.cos(((Math.PI*2) * (_root["etank" + i]._rotation - 45)) / 360) * (20 + _root["etank" + i].speed));
RigY = _root["etank" + i]._y + (Math.sin(((Math.PI*2) * (_root["etank" + i]._rotation - 45)) / 360) * (20 + _root["etank" + i].speed));
LefX = _root["etank" + i]._x + (Math.cos(((Math.PI*2) * (_root["etank" + i]._rotation - 135)) / 360) * (20 + _root["etank" + i].speed));
LefY = _root["etank" + i]._y + (Math.sin(((Math.PI*2) * (_root["etank" + i]._rotation - 135)) / 360) * (20 + _root["etank" + i].speed));
}
if (_root["etank" + i].shocked == undefined) {
_root["etank" + i].shocked = 0;
}
move = 0;
j = 0;
while (j < 4) {
if (_root["wall" + j].hitTest(PosX, PosY, true)) {
move = 1;
}
if (_root["wall" + j].hitTest(RigX, RigY, true)) {
move = 3;
}
if (_root["wall" + j].hitTest(LefX, LefY, true)) {
move = 2;
}
j++;
}
j = _root.f;
while (j < _root.e) {
if (_root["etank" + j]._x != undefined) {
if (_root["etank" + j].hitTest(PosX, PosY, true)) {
move = 1;
}
if (_root["etank" + j].hitTest(RigX, RigY, true)) {
move = 3;
}
if (_root["etank" + j].hitTest(LefX, LefY, true)) {
move = 2;
}
}
j++;
}
j = _root.h;
while (j < _root.g) {
if (_root["power" + j]._x != undefined) {
if (_root["power" + j].hitTest(PosX, PosY, true)) {
move = 1;
}
if (_root["power" + j].hitTest(RigX, RigY, true)) {
move = 3;
}
if (_root["power" + j].hitTest(LefX, LefY, true)) {
move = 2;
}
}
j++;
}
if (_root.tank.hitTest(PosX, PosY, true)) {
move = 1;
if (_root["etank" + i].typ == 1) {
if (shield == 0) {
_root.explode(_root["etank" + i]._x, _root["etank" + i]._y);
_root["etank" + i].removeMovieClip();
_root.explode(_root.tank._x, _root.tank._y);
end = 1;
this._alpha = 0;
} else {
plays("shield");
_root.explode(_root["etank" + i]._x, _root["etank" + i]._y);
_root["etank" + i].removeMovieClip();
if (thyme == -1) {
thyme = 150;
}
zeroit();
}
}
}
if (_root.tank.hitTest(RigX, RigY, true)) {
move = 3;
if (_root["etank" + i].typ == 1) {
if (shield == 0) {
_root.explode(_root["etank" + i]._x, _root["etank" + i]._y);
_root["etank" + i].removeMovieClip();
_root.explode(_root.tank._x, _root.tank._y);
end = 1;
this._alpha = 0;
} else {
plays("shield");
_root.explode(_root["etank" + i]._x, _root["etank" + i]._y);
_root["etank" + i].removeMovieClip();
if (thyme == -1) {
thyme = 150;
}
zeroit();
}
}
}
if (_root.tank.hitTest(LefX, LefY, true)) {
move = 2;
if (_root["etank" + i].typ == 1) {
if (shield == 0) {
_root.explode(_root["etank" + i]._x, _root["etank" + i]._y);
_root["etank" + i].removeMovieClip();
_root.explode(_root.tank._x, _root.tank._y);
end = 1;
this._alpha = 0;
} else {
plays("shield");
_root.explode(_root["etank" + i]._x, _root["etank" + i]._y);
_root["etank" + i].removeMovieClip();
if (thyme == -1) {
thyme = 150;
}
zeroit();
}
}
}
if (move == 1) {
move = int(Math.random() * 2) + 2;
}
if (move == 2) {
_root["etank" + i]._rotation = _root["etank" + i]._rotation + (_root["etank" + i].speed * 2);
_root["etank" + i].rot = _root["etank" + i].rot + (_root["etank" + i].speed * 2);
}
if (move == 3) {
_root["etank" + i]._rotation = _root["etank" + i]._rotation - (_root["etank" + i].speed * 2);
_root["etank" + i].rot = _root["etank" + i].rot - (_root["etank" + i].speed * 2);
}
if (_root["etank" + i].shocked > 0) {
_root["etank" + i].shocked = _root["etank" + i].shocked - 1;
move = 1;
}
if (move == 0) {
_root["etank" + i]._x = _root["etank" + i]._x + (Math.cos(((Math.PI*2) * (_root["etank" + i]._rotation - 90)) / 360) * _root["etank" + i].speed);
_root["etank" + i]._y = _root["etank" + i]._y + (Math.sin(((Math.PI*2) * (_root["etank" + i]._rotation - 90)) / 360) * _root["etank" + i].speed);
rtx = _root.tank._x;
rty = _root.tank._y;
dixc = rtx - _root["etank" + i]._x;
diyc = rty - _root["etank" + i]._y;
rotga = _root["etank" + i].rot;
if (dixc == 0) {
dixc = int(Math.random() * 2);
if (dixc == 0) {
dixc = -1;
}
}
if (diyc == 0) {
diyc = int(Math.random() * 2);
if (diyc == 0) {
diyc = -1;
}
}
vakx = dixc / Math.abs(dixc);
vaky = diyc / Math.abs(diyc);
if (vakx == 1) {
if (vaky == 1) {
firdur = 90;
xory = 0;
}
if (vaky == -1) {
firdur = 0;
xory = 1;
}
}
if (vakx == -1) {
if (vaky == 1) {
firdur = 180;
xory = 1;
}
if (vaky == -1) {
firdur = 270;
xory = 0;
}
}
if (xory == 0) {
if (Math.abs(dixc) >= Math.abs(diyc)) {
thrdur = 45 * Math.abs(diyc / dixc);
}
if (Math.abs(diyc) > Math.abs(dixc)) {
thrdur = 45 * Math.abs(dixc / diyc);
}
}
if (xory == 1) {
if (Math.abs(diyc) >= Math.abs(dixc)) {
thrdur = 45 * Math.abs(dixc / diyc);
}
if (Math.abs(diyc) < Math.abs(dixc)) {
thrdur = 45 * Math.abs(diyc / dixc);
}
}
secdur = firdur + thrdur;
if (rotga > secdur) {
if (rotga > (secdur + 180)) {
rotga = rotga + _root["etank" + i].rotat;
}
if (rotga < (secdur + 180)) {
rotga = rotga - _root["etank" + i].rotat;
}
}
if (rotga < secdur) {
if (rotga > (secdur - 180)) {
rotga = rotga + _root["etank" + i].rotat;
}
if (rotga < (secdur - 180)) {
rotga = rotga - _root["etank" + i].rotat;
}
}
if (rotga > 360) {
rotga = rotga - 360;
}
if (rotga < 0) {
rotga = rotga + 360;
}
_root["etank" + i].rot = rotga;
_root["etank" + i]._rotation = rotga;
if (_root["etank" + i].yes == undefined) {
if (_root["etank" + i].typ != 1) {
_root["etank" + i].yes = 0;
}
} else if (_root["etank" + i].yes == 0) {
if (_root["etank" + i].typ != 2) {
_root.fire(1, _root["etank" + i]._rotation, _root["etank" + i]._x, _root["etank" + i]._y);
} else {
_root.fire(1, (_root["etank" + i]._rotation + int(Math.random() * 21)) - 10, _root["etank" + i]._x, _root["etank" + i]._y);
}
_root["etank" + i].num = 30 / _root["etank" + i].resped;
_root["etank" + i].yes = 1;
} else if (_root["etank" + i].yes == 1) {
if (_root["etank" + i].num > 0) {
_root["etank" + i].num = _root["etank" + i].num - 1;
} else {
_root["etank" + i].yes = 0;
}
}
}
}
i++;
}
i = _root.c;
while (i < _root.a) {
if (_root.c == i) {
if (_root["bullet" + i]._x == undefined) {
_root.c = _root.c + 1;
}
}
if (_root["bullet" + i]._x != undefined) {
if (_root["bullet" + i].typ == undefined) {
_root["bullet" + i].typ = 0;
}
if (_root["bullet" + i].typ == 1) {
_root["bullet" + i]._rotation = _root.tank._rotation;
}
j = _root.c;
while (j < _root.a) {
if (j == i) {
j++;
}
if (_root["bullet" + j]._x != undefined) {
if (_root["bullet" + j].hitTest(_root["bullet" + i]._x, _root["bullet" + i]._y, true)) {
_root.explode(_root["bullet" + i]._x, _root["bullet" + i]._y);
if (_root["bullet" + i].typ == 2) {
sprid(_root["bullet" + i]._x, _root["bullet" + i]._y);
}
if (_root["bullet" + i].typ == 3) {
sprd(_root["bullet" + i]._x, _root["bullet" + i]._y, _root["bullet" + i]._rotation, 0);
}
_root["bullet" + i].removeMovieClip();
if (_root["bullet" + j]._x != undefined) {
_root.explode(_root["bullet" + j]._x, _root["bullet" + j]._y);
}
if (_root["bullet" + j].typ == 2) {
sprid(_root["bullet" + j]._x, _root["bullet" + j]._y);
}
if (_root["bullet" + j].typ == 3) {
sprd(_root["bullet" + j]._x, _root["bullet" + j]._y, _root["bullet" + j]._rotation, 0);
}
_root["bullet" + j].removeMovieClip();
}
}
j++;
}
j = _root.h;
while (j < _root.g) {
if (_root["power" + j].hitTest(_root["bullet" + i]._x, _root["bullet" + i]._y, true)) {
if (_root["power" + j].coun == 0) {
_root.explode(_root["power" + j]._x, _root["power" + j]._y);
_root.explode(_root["bullet" + i]._x, _root["bullet" + i]._y);
if (_root["bullet" + i].typ == 2) {
sprid(_root["bullet" + i]._x, _root["bullet" + i]._y);
}
if (_root["bullet" + i].typ == 3) {
sprd(_root["bullet" + i]._x, _root["bullet" + i]._y, _root["bullet" + i]._rotation, 0);
}
if (_root["power" + j].typ == 4) {
sprid(_root["power" + j]._x, _root["power" + j]._y);
}
if (_root["power" + j].typ == 5) {
if (_root["bullet" + i].side == 0) {
sprd(_root["power" + j]._x, _root["power" + j]._y, _root["bullet" + i]._rotation, 0);
} else {
sprd(_root["power" + j]._x, _root["power" + j]._y, _root["bullet" + i]._rotation, 1);
}
}
_root["power" + j].removeMovieClip();
_root["bullet" + i].removeMovieClip();
} else {
_root.explode(_root["bullet" + i]._x, _root["bullet" + i]._y);
if (_root["bullet" + i].typ == 2) {
sprid(_root["bullet" + i]._x, _root["bullet" + i]._y);
}
if (_root["bullet" + i].typ == 3) {
sprd(_root["bullet" + i]._x, _root["bullet" + i]._y, _root["bullet" + i]._rotation, 0);
}
_root["bullet" + i].removeMovieClip();
}
}
j++;
}
if (_root["bullet" + i].side == 0) {
if (tea > -2) {
j = _root.f;
while (j < _root.e) {
if (_root["etank" + j]._x != undefined) {
if (_root["etank" + j].hitTest(_root["bullet" + i]._x, _root["bullet" + i]._y, true)) {
_root.explode(_root["bullet" + i]._x, _root["bullet" + i]._y);
if (_root["bullet" + i].typ == 2) {
sprid(_root["bullet" + i]._x, _root["bullet" + i]._y);
}
if (_root["bullet" + i].typ == 3) {
sprd(_root["bullet" + i]._x, _root["bullet" + i]._y, _root["bullet" + i]._rotation, 0);
}
_root["bullet" + i].removeMovieClip();
_root.explode(_root["etank" + j]._x, _root["etank" + j]._y);
_root.powerup(_root["etank" + j]._x, _root["etank" + j]._y);
_root["etank" + j].removeMovieClip();
if (i == _root.c) {
_root.c = _root.c + 1;
}
auv = 0;
if (setim > 5) {
if ((_root.e - 1) == _root.f) {
_root.score = _root.score + int(setim / 6);
auv = 1;
}
}
if (auv == 0) {
_root.score = _root.score + 1;
}
_root.stupid.score = _root.score;
}
}
j++;
}
} else if (_root["etank" + _root.f].hitTest(_root["bullet" + i]._x, _root["bullet" + i]._y, true)) {
if (_root["etank" + _root.f].hit == 1) {
_root.explode(_root["bullet" + i]._x, _root["bullet" + i]._y);
if (_root["bullet" + i].typ == 2) {
sprid(_root["bullet" + i]._x, _root["bullet" + i]._y);
}
if (_root["bullet" + i].typ == 3) {
sprd(_root["bullet" + i]._x, _root["bullet" + i]._y, _root["bullet" + i]._rotation, 0);
}
_root["bullet" + i].removeMovieClip();
_root.explode(_root["etank" + _root.f]._x, _root["etank" + _root.f]._y);
_root.powerup(_root["etank" + _root.f]._x, _root["etank" + _root.f]._y);
_root["etank" + _root.f].removeMovieClip();
tea = -1;
auv = 0;
if (setim > 5) {
if ((_root.e - 1) == _root.f) {
_root.score = _root.score + int(setim / 6);
auv = 1;
}
}
if (auv == 0) {
_root.score = _root.score + 1;
}
}
if (_root["etank" + _root.f].hit > 1) {
_root["etank" + _root.f].hit = _root["etank" + _root.f].hit - 1;
_root.explode(_root["bullet" + i]._x, _root["bullet" + i]._y);
if (_root["bullet" + i].typ == 2) {
sprid(_root["bullet" + i]._x, _root["bullet" + i]._y);
}
if (_root["bullet" + i].typ == 3) {
sprd(_root["bullet" + i]._x, _root["bullet" + i]._y, _root["bullet" + i]._rotation, 0);
}
_root["bullet" + i].removeMovieClip();
}
}
}
if (_root["bullet" + i].side == 1) {
if (_root.tank.hitTest(_root["bullet" + i]._x, _root["bullet" + i]._y, true)) {
if (shield == 0) {
_root.explode(_root["bullet" + i]._x, _root["bullet" + i]._y);
_root["bullet" + i].removeMovieClip();
_root.explode(_root.tank._x, _root.tank._y);
end = 1;
this._alpha = 0;
} else {
plays("shield");
_root.explode(_root["bullet" + i]._x, _root["bullet" + i]._y);
_root["bullet" + i].removeMovieClip();
if (thyme == -1) {
thyme = 150;
}
zeroit();
}
if (i == _root.c) {
_root.c = _root.c + 1;
}
}
}
j = 0;
while (j < 4) {
if (_root["wall" + j].hitTest(_root["bullet" + i]._x, _root["bullet" + i]._y, true)) {
_root.explode(_root["bullet" + i]._x, _root["bullet" + i]._y);
if (_root["bullet" + i].typ == 2) {
sprid(_root["bullet" + i]._x, _root["bullet" + i]._y);
}
if (_root["bullet" + i].typ == 3) {
sprd(_root["bullet" + i]._x, _root["bullet" + i]._y, _root["bullet" + i]._rotation, 0);
}
_root["bullet" + i].removeMovieClip();
if (i == _root.c) {
_root.c = _root.c + 1;
}
}
j++;
}
if (_root["bullet" + i]._x != undefined) {
if (_root["bullet" + i]._x > 544) {
_root.explode(_root["bullet" + i]._x, _root["bullet" + i]._y);
_root["bullet" + i].removeMovieClip();
if (i == _root.c) {
_root.c = _root.c + 1;
}
} else if (_root["bullet" + i]._x < -44) {
_root.explode(_root["bullet" + i]._x, _root["bullet" + i]._y);
_root["bullet" + i].removeMovieClip();
if (i == _root.c) {
_root.c = _root.c + 1;
}
} else if (_root["bullet" + i]._y > 419) {
_root.explode(_root["bullet" + i]._x, _root["bullet" + i]._y);
_root["bullet" + i].removeMovieClip();
if (i == _root.c) {
_root.c = _root.c + 1;
}
} else if (_root["bullet" + i]._y < -44) {
_root.explode(_root["bullet" + i]._x, _root["bullet" + i]._y);
_root["bullet" + i].removeMovieClip();
if (i == _root.c) {
_root.c = _root.c + 1;
}
}
}
_root["bullet" + i]._x = _root["bullet" + i]._x + (Math.cos(((Math.PI*2) * (_root["bullet" + i]._rotation - 90)) / 360) * 6);
_root["bullet" + i]._y = _root["bullet" + i]._y + (Math.sin(((Math.PI*2) * (_root["bullet" + i]._rotation - 90)) / 360) * 6);
}
i++;
}
if (timer > 0) {
timer = timer - 1;
} else {
_root.chec = 0;
}
if (setim > 0) {
setim = setim - 1;
} else {
_root.enem(aat, tea);
if (tea > -1) {
tea = tea - aat;
}
if (tea > -1) {
setim = 100 - int(_root.score / 50);
} else {
setim = 0;
}
if (tea == -2) {
tea = -3;
setim = (100 - int(_root.score / 100)) * _root.Area;
}
}
if (stag == 0) {
stag = 1;
_root.makewall();
i = _root.h;
while (i < _root.g) {
_root["power" + i].removeMovieClip();
i++;
}
reload = int(30 / resped);
setim = 150;
aat = _root.Area;
if (aat > 1) {
aat = 1;
}
tea = _root.Area * 5;
if (int(Math.random() * 5) == 0) {
tea = -2;
}
}
if (tea <= 0) {
if (tea > -2) {
if (_root.f == _root.e) {
tooyii = 1;
_root.left = "Area " + (_root.Area + 2);
_root.right = "Area " + (_root.Area + 1);
_root.arrow1._alpha = 100;
_root.arrow2._alpha = 100;
}
}
}
}
if (end == 1) {
Mouse.show();
_root.nextFrame();
}
if (shield > 0) {
if (thyme == -1) {
this.gotoAndStop(2);
}
if (thyme > -1) {
thyme = thyme - 1;
if (this._currentframe < 3) {
this.gotoAndPlay(3);
}
}
if (thyme == 0) {
thyme = -1;
shield = shield - 1;
this.gotoAndStop(1);
}
}
}
Frame 5
if (fto == undefined) {
fto = 0;
}
if (fto == 0) {
fto = 1;
attachMovie("copo", "copo", 999999999);
_root.copo._x = 250;
_root.copo._y = 187.5;
}
stop();
Instance of Symbol 27 MovieClip "loader" in Frame 5
onClipEvent (load) {
y = 0;
x = 0;
sound1 = new Sound();
}
onClipEvent (keyDown) {
if (Key.isDown(13)) {
y = 1;
x = 1;
}
}
onClipEvent (enterFrame) {
function plays(file) {
sound1.attachSound(file);
sound1.start();
}
Mouse.show();
if (y == 1) {
if (x == 0) {
i = _root.c;
while (i < _root.a) {
_root["bullet" + i].removeMovieClip();
i++;
}
i = _root.f;
while (i < _root.e) {
_root["etank" + i].removeMovieClip();
i++;
}
i = _root.h;
while (i < _root.g) {
_root["power" + i].removeMovieClip();
i++;
}
i = 0;
while (i < 4) {
_root["wall" + i].removeMovieClip();
i++;
}
_root.stupid._y = 450;
_root.stupid.removeMovieClip();
_root.copo._y = 450;
_root.copo.removeMovieClip();
plays("explode");
_root.gotoAndStop("start");
}
if (x == 1) {
x = 0;
}
}
}
Frame 6
stop();
Instance of Symbol 30 MovieClip [power] in Frame 6
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 30 MovieClip [power] in Frame 6
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 30 MovieClip [power] in Frame 6
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 30 MovieClip [power] in Frame 6
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 30 MovieClip [power] in Frame 6
onClipEvent (load) {
this.gotoAndStop(5);
}
Instance of Symbol 30 MovieClip [power] in Frame 6
onClipEvent (load) {
this.gotoAndStop(6);
}
Instance of Symbol 30 MovieClip [power] in Frame 6
onClipEvent (load) {
this.gotoAndStop(7);
}
Instance of Symbol 30 MovieClip [power] in Frame 6
onClipEvent (load) {
this.gotoAndStop(8);
}
Instance of Symbol 27 MovieClip in Frame 6
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 100 MovieClip [etank] in Frame 6
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 100 MovieClip [etank] in Frame 6
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 100 MovieClip [etank] in Frame 6
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 100 MovieClip [etank] in Frame 6
onClipEvent (load) {
this.gotoAndStop(4);
}
Symbol 8 MovieClip [wall] Frame 1
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 2
stop();
Symbol 27 MovieClip Frame 8
gotoAndPlay (3);
Symbol 30 MovieClip [power] Frame 1
stop();
Symbol 30 MovieClip [power] Frame 2
stop();
Symbol 30 MovieClip [power] Frame 3
stop();
Symbol 30 MovieClip [power] Frame 4
stop();
Symbol 30 MovieClip [power] Frame 5
stop();
Symbol 30 MovieClip [power] Frame 6
stop();
Symbol 30 MovieClip [power] Frame 7
stop();
Symbol 30 MovieClip [power] Frame 8
stop();
Symbol 30 MovieClip [power] Frame 9
stop();
Symbol 39 MovieClip [explosion] Frame 6
this.removeMovieClip();
stop();
Symbol 45 Button [res]
on (release) {
if (g == undefined) {
g = 0;
}
if (g == 0) {
i = _root.c;
while (i < _root.a) {
_root["bullet" + i].removeMovieClip();
i++;
}
i = _root.f;
while (i < _root.e) {
_root["etank" + i].removeMovieClip();
i++;
}
i = _root.h;
while (i < _root.g) {
_root["power" + i].removeMovieClip();
i++;
}
i = 0;
while (i < 4) {
_root["wall" + i].removeMovieClip();
i++;
}
_root.stupid._y = 450;
_root.stupid.removeMovieClip();
}
this._alpha = 0;
this._x = -50;
this._y = -50;
_root.loader.plays("explode");
_root.gotoAndStop(2);
g = 1;
}
Symbol 68 MovieClip [flash] Frame 4
this.removeMovieClip();
stop();
Symbol 74 MovieClip [shok] Frame 6
this.removeMovieClip();
stop();
Symbol 80 Button [enter]
on (release) {
if (_root.v == 0) {
_root.tan.save();
_root.v = 1;
}
_root.stupid._y = -50;
}
Symbol 86 Button [res]
on (release) {
i = _root.c;
while (i < _root.a) {
_root["bullet" + i].removeMovieClip();
i++;
}
i = _root.f;
while (i < _root.e) {
_root["etank" + i].removeMovieClip();
i++;
}
i = _root.h;
while (i < _root.g) {
_root["power" + i].removeMovieClip();
i++;
}
i = 0;
while (i < 4) {
_root["wall" + i].removeMovieClip();
i++;
}
_root.stupid._y = 450;
_root.stupid.removeMovieClip();
_root.copo._y = -450;
_root.copo.removeMovieClip();
_root.loader.plays("explode");
_root.gotoAndStop("start");
}
Symbol 93 Button
on (release) {
getURL ("http://www.gamegecko.com", "_blank");
}
Symbol 95 Button [Start]
on (release) {
_root.gotoAndStop(4);
}
Symbol 100 MovieClip [etank] Frame 1
stop();
Symbol 100 MovieClip [etank] Frame 2
stop();
Symbol 100 MovieClip [etank] Frame 3
stop();
Symbol 100 MovieClip [etank] Frame 4
stop();
Symbol 101 Button [Start]
on (release) {
_root.nextFrame();
}
Symbol 107 Button
on (release) {
getURL ("http://www.gamegecko.com", "_blank");
}
Symbol 114 Button
on (release) {
_root.gotoAndStop("rules");
}
Symbol 118 Button
on (release) {
getURL ("http://www.gamegecko.com", "_blank");
}
Symbol 124 Button
on (release) {
getURL ("http://www.gamesforwebsites.com", "_blank");
}