Frame 1
stop();
_root.r_bound._visible = false;
_root.l_bound._visible = false;
Stage.showMenu = false;
_quality = "HIGH";
tank.removeMovieClip();
char.removeMovieClip();
g_o.removeMovieClip();
Instance of Symbol 8 MovieClip in Frame 1
onClipEvent (keyDown) {
if (Key.isDown(81)) {
toggleHighQuality();
}
}
Frame 2
Game = 1;
Ammo = 0;
stop();
Instance of Symbol 85 MovieClip "music" in Frame 2
onClipEvent (load) {
bgmusic = new Sound();
bgmusic.attachSound("bgmusic");
bgmusic.setVolume(60);
bgmusic.start();
}
Instance of Symbol 105 MovieClip "char" in Frame 2
onClipEvent (load) {
function moveCheck() {
if ((0.5 <= speed) or (speed < -0.5)) {
this.gotoAndStop(2);
} else if ((0.5 > speed) > -0.5) {
this.gotoAndStop(1);
}
}
function GameOverCheck() {
if (gameover == true) {
this.speed = 0;
}
}
function hitGun() {
var _local1 = _root;
if (this.hitTest(_local1.tank.truck) && (gameover == false)) {
_local1.timer.stop();
gameover = true;
_local1.tank.gameover = true;
_local1.music.bgmusic.stop();
_local1.descript.gotoAndStop(2);
_local1.MyScore = (_local1.Time * _local1.Ammo) * 10;
_local1.gotoAndStop(16);
}
}
this.swapDepths(100000);
xmax = 620;
xmin = 28;
ymax = 431;
ymin = 54;
moving = false;
gameover = false;
speed = 0;
maxspeed = 7;
}
onClipEvent (enterFrame) {
moveCheck();
hitGun();
if (Key.isDown(38) && (gameover == false)) {
speed = speed + 1;
moving = true;
}
if (Key.isDown(40) && (gameover == false)) {
speed = speed - 0.75;
}
if (Math.abs(speed) > maxspeed) {
speed = speed * 0.9;
moving = true;
}
if (Key.isDown(37) && (gameover == false)) {
_rotation = (_rotation - 7);
moving = true;
}
if (Key.isDown(39) && (gameover == false)) {
_rotation = (_rotation + 7);
moving = true;
}
speed = speed * 0.88;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
if (_x <= xmin) {
_x = xmin;
}
if (_x >= xmax) {
_x = xmax;
}
if (_y <= ymin) {
_y = ymin;
}
if (_y >= ymax) {
_y = ymax;
}
}
Instance of Symbol 108 MovieClip in Frame 2
onClipEvent (load) {
this._x = random(300) + 230;
this._y = random(350) + 30;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.char.maxspeed = _root.char.maxspeed + 0.1;
this._x = random(400) + 130;
this._y = random(350) + 30;
_root.Ammo = _root.Ammo + 1;
}
}
Instance of Symbol 110 MovieClip "tread" in Frame 2
onClipEvent (load) {
_alpha = 100;
_rotation = _parent.tank._rotation;
_x = _parent.tank._x;
_y = _parent.tank._y;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
_alpha = (_alpha - 2);
}
if (timer > 90) {
_visible = 0;
removeMovieClip(this);
}
}
Instance of Symbol 114 MovieClip "shot" in Frame 2
onClipEvent (load) {
xmax = 620;
xmin = 28;
ymax = 431;
ymin = 54;
if (String(_name) != "shot") {
cannonLength = 80;
turretpoint = _parent.tank._rotation + _parent.tank.turret._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.tank._x);
_y = (ycomponent + _parent.tank._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (_root.char.gameover == false) {
if (this.hitTest(_root.char)) {
_root.timer.stop();
_root.char.gameover = true;
_root.tank.gameover = true;
_root.music.bgmusic.stop();
_root.descript.gotoAndStop(3);
_root.MyScore = (_root.Time * _root.Ammo) * 10;
_root.gotoAndStop("gameover");
removeMovieClip(this);
}
if (String(_name) != "shot") {
_x = (_x + xmove);
_y = (_y + ymove);
if ((((_x <= xmin) | (_x >= xmax)) | (_y <= ymin)) | (_y >= ymax)) {
_parent.d++;
duplicateMovieClip (_parent.damagedGround, "d" + _parent.d, (_parent.d % 100) + 5000);
_parent["d" + _parent.d]._x = _x;
_parent["d" + _parent.d]._y = _y;
removeMovieClip(this);
}
timer++;
if (timer > 30) {
_parent.d++;
duplicateMovieClip (_parent.damagedGround, "d" + _parent.d, (_parent.d % 100) + 5000);
_parent["d" + _parent.d]._x = _x;
_parent["d" + _parent.d]._y = _y;
removeMovieClip(this);
}
}
}
}
Instance of Symbol 122 MovieClip "timer" in Frame 2
onClipEvent (load) {
howlong = 0;
}
onClipEvent (enterFrame) {
_root.Time = howlong;
}
Instance of Symbol 125 MovieClip "r_bound" in Frame 2
onClipEvent (load) {
this.swapDepths(10000001);
}
Instance of Symbol 125 MovieClip "l_bound" in Frame 2
onClipEvent (load) {
this.swapDepths(10000000);
}
Instance of Symbol 135 MovieClip "tank" in Frame 2
onClipEvent (load) {
gameover = false;
this.swapDepths(1000000);
speed = 1;
shotSound = new Sound();
shotSound.attachSound("shoot");
shotTimer = 100;
}
onClipEvent (enterFrame) {
if (!gameover) {
xx = math.cos((_rotation * Math.PI) / 180) * speed;
yy = math.sin((_rotation * Math.PI) / 180) * speed;
this._x = this._x + xx;
this._y = this._y + yy;
_rotation = (Math.atan2(_root.char._y - this._y, _root.char._x - this._x) * 57.2957795130823);
}
treadcheck++;
if ((treadcheck > 5) && (!gameover)) {
treadcount++;
duplicateMovieClip (_root.tread, "tread" + treadcount, (treadcount % 100) + 1000);
treadcheck = 0;
}
if ((shotTimer <= 0) && (!gameover)) {
shotSound.start();
shotCount++;
duplicateMovieClip (_parent.shot, "shot" + shotCount, (shotCount % 100) + 1100);
shotTimer = 90;
}
shotTimer--;
}
Instance of Symbol 149 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._rotation = _root.char._rotation;
}
Frame 10
Game = 2;
Ammo = 0;
stop();
Instance of Symbol 105 MovieClip "char" in Frame 10
onClipEvent (load) {
function moveCheck() {
if ((0.5 <= speed) or (speed < -0.5)) {
this.gotoAndStop(2);
} else if ((0.5 > speed) > -0.5) {
this.gotoAndStop(1);
}
}
function GameOverCheck() {
if (gameover == true) {
this.speed = 0;
}
}
function hitGun() {
var _local1 = _root;
if (this.hitTest(_local1.tank.truck) && (gameover == false)) {
_local1.timer.stop();
gameover = true;
_local1.tank.gameover = true;
_local1.music.bgmusic.stop();
_local1.MyScore = (_local1.Time * _local1.Ammo) * 10;
_local1.gotoAndStop(16);
}
}
this.swapDepths(100000);
xmax = 620;
xmin = 28;
ymax = 431;
ymin = 54;
moving = false;
gameover = false;
speed = 0;
maxspeed = 7;
}
onClipEvent (enterFrame) {
moveCheck();
hitGun();
if (Key.isDown(87) && (gameover == false)) {
speed = speed + 1;
moving = true;
}
if (Key.isDown(83) && (gameover == false)) {
speed = speed - 0.75;
}
if (Math.abs(speed) > maxspeed) {
speed = speed * 0.9;
moving = true;
}
if (Key.isDown(65) && (gameover == false)) {
_rotation = (_rotation - 7);
moving = true;
}
if (Key.isDown(68) && (gameover == false)) {
_rotation = (_rotation + 7);
moving = true;
}
speed = speed * 0.88;
x = Math.sin(_rotation * (Math.PI/180)) * speed;
y = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
_x = (_x + x);
_y = (_y + y);
} else {
speed = speed * -0.6;
}
if (_x <= xmin) {
_x = xmin;
}
if (_x >= xmax) {
_x = xmax;
}
if (_y <= ymin) {
_y = ymin;
}
if (_y >= ymax) {
_y = ymax;
}
}
Instance of Symbol 114 MovieClip "shot" in Frame 10
onClipEvent (load) {
xmax = 620;
xmin = 28;
ymax = 431;
ymin = 54;
if (String(_name) != "shot") {
cannonLength = 80;
turretpoint = _parent.tank._rotation + _parent.tank.turret._rotation;
angle = ((turretpoint / 360) * 2) * Math.PI;
xcomponent = cannonLength * Math.sin(angle);
ycomponent = (-cannonLength) * Math.cos(angle);
_x = (xcomponent + _parent.tank._x);
_y = (ycomponent + _parent.tank._y);
xmove = (xcomponent / cannonLength) * 10;
ymove = (ycomponent / cannonLength) * 10;
this._rotation = turretpoint - 90;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char) && (_root.char.gameover == false)) {
_root.timer.stop();
_root.char.gameover = true;
_root.tank.gameover = true;
_root.music.bgmusic.stop();
_root.gotoAndStop("gameover");
_root.MyScore = (_root.Time * _root.Ammo) * 10;
removeMovieClip(this);
}
if (String(_name) != "shot") {
_x = (_x + xmove);
_y = (_y + ymove);
if ((((_x <= xmin) | (_x >= xmax)) | (_y <= ymin)) | (_y >= ymax)) {
_parent.d++;
duplicateMovieClip (_parent.damagedGround, "d" + _parent.d, (_parent.d % 100) + 5000);
_parent["d" + _parent.d]._x = _x;
_parent["d" + _parent.d]._y = _y;
removeMovieClip(this);
}
timer++;
if (timer > 30) {
_parent.d++;
duplicateMovieClip (_parent.damagedGround, "d" + _parent.d, (_parent.d % 100) + 5000);
_parent["d" + _parent.d]._x = _x;
_parent["d" + _parent.d]._y = _y;
removeMovieClip(this);
}
}
}
Instance of Symbol 122 MovieClip "timer" in Frame 10
onClipEvent (load) {
howlong = 0;
}
onClipEvent (enterFrame) {
_root.Time = howlong;
}
Instance of Symbol 135 MovieClip "tank" in Frame 10
onClipEvent (load) {
gameover = false;
this.swapDepths(1000000);
speed = 1.5;
shotSound = new Sound();
shotSound.attachSound("shoot");
shotTimer = 50;
xmax = 570;
xmin = 90;
ymax = 400;
ymin = 100;
}
onClipEvent (enterFrame) {
shotTimer--;
if (!gameover) {
xx = math.cos((_rotation * Math.PI) / 180) * speed;
yy = math.sin((_rotation * Math.PI) / 180) * speed;
this._x = this._x + xx;
this._y = this._y + yy;
_rotation = (Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x) * 57.2957795130823);
}
treadcheck++;
if ((treadcheck > 5) && (!gameover)) {
treadcount++;
duplicateMovieClip (_root.tread, "tread" + treadcount, (treadcount % 100) + 1000);
treadcheck = 0;
}
if (_x <= xmin) {
_x = xmin;
}
if (_x >= xmax) {
_x = xmax;
}
if (_y <= ymin) {
_y = ymin;
}
if (_y >= ymax) {
_y = ymax;
}
}
onClipEvent (mouseDown) {
if ((shotTimer <= 0) && (!gameover)) {
shotSound.start();
shotCount++;
duplicateMovieClip (_parent.shot, "shot" + shotCount, (shotCount % 100) + 1100);
shotTimer = 75;
}
shotTimer--;
}
Frame 16
stop();
Instance of Symbol 139 MovieClip "b_bound" in Frame 16
onClipEvent (enterFrame) {
if (hitTest(_root.char)) {
_root.char.speed = -_root.char.speed;
_root.char._x = oldx;
_root.char._y = oldy;
} else {
oldx = _root.char._x;
oldy = _root.char._y;
}
}
Instance of Symbol 179 MovieClip "g_o" in Frame 16
onClipEvent (load) {
this._visible = true;
this.swapDepths(_root.tank);
}
Symbol 41 Button
on (release) {
this.gotoAndStop(106);
}
Symbol 42 Button
on (release) {
this.gotoAndPlay(71);
}
Symbol 43 Button
on (release) {
this.gotoandplay(41);
}
Symbol 59 Button
on (release) {
_root.gotoAndPlay("1p");
}
Symbol 64 Button
on (release) {
this.gotoAndPlay(65);
}
Symbol 71 Button
on (release) {
_root.gotoAndPlay(65);
}
Symbol 72 Button
on (release) {
this.gotoAndPlay(91);
}
Symbol 73 Button
on (release) {
_root.gotoAndPlay(30);
}
Symbol 76 Button
on (release) {
getURL ("http://www.oldhickpro.net", "_blank");
}
Symbol 77 Button
on (release) {
getURL ("http://www.flashkit.com", "_blank");
}
Symbol 78 Button
on (release) {
getURL ("http://www.newgrounds.com/gold/profile/template.php3?id=906192", "_blank");
}
Symbol 79 Button
on (release) {
getURL ("http://www.desertforce.com", "_blank");
}
Symbol 80 Button
on (release) {
getURL ("http://www.gotoandplay.it", "_blank");
}
Symbol 81 Button
on (release) {
this.gotoAndPlay(12);
}
Symbol 82 MovieClip Frame 1
var bytes = _root.getBytesTotal();
var bytes_loaded = _root.getBytesLoaded();
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this.lBites = (bytes_loaded / 1000) + " Kb";
this.tBites = (bytes_total / 1000) + " Kb";
this.loadText = Math.round(getPercent * 100) + " %";
this.tBar._yscale = Math.round(getPercent * 100);
if (bytes_loaded == bytes_total) {
gotoAndPlay (3);
}
_root.Version = 2;
Symbol 82 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 82 MovieClip Frame 3
Name = "";
Instance of Symbol 27 MovieClip in Symbol 82 MovieClip Frame 25
onClipEvent (enterFrame) {
display = (("x: " + _root._xmouse) + " y: ") + _root._ymouse;
}
Symbol 82 MovieClip Frame 40
stop();
Instance of Symbol 48 Font in Symbol 82 MovieClip Frame 40
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gameversion != _root.Version) {
this._visible = true;
} else if (_root.gameversion == _root.Version) {
this._visible = false;
}
if (!_root.gameversion) {
this.gotoAndStop(2);
this._visible = true;
}
}
Symbol 82 MovieClip Frame 64
stop();
Symbol 82 MovieClip Frame 70
this.gotoAndPlay(30);
Symbol 82 MovieClip Frame 90
stop();
Symbol 82 MovieClip Frame 105
this.gotoAndPlay(25);
Symbol 82 MovieClip Frame 106
stop();
Symbol 182 MovieClip [ibproArcadeMC] Frame 1
unloadMovie (10);
loadMovieNum ("arcade/arcadelib/score2.swf?blah=" + getTimer(), 10);
trace("here" + _level10);
Symbol 182 MovieClip [ibproArcadeMC] Frame 2
ibproArcadeLoaded = (_level10._framesloaded / _level10._totalframes) * 100;
Symbol 182 MovieClip [ibproArcadeMC] Frame 3
if (ibproArcadeLoaded >= 99) {
stop();
} else {
gotoAndPlay (2);
}
Symbol 93 MovieClip Frame 14
_root.hero.gotoAndPlay("standing");
Symbol 99 MovieClip Frame 15
stop();
Symbol 100 MovieClip Frame 7
_root.char.gotoAndStop("standing");
Symbol 104 MovieClip Frame 22
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
stop();
Symbol 118 MovieClip Frame 17
c = Math.random() * 360;
_rotation = c;
Symbol 118 MovieClip Frame 165
this.removeMovieClip();
Symbol 122 MovieClip Frame 24
this.howlong++;
_root.tank.speed = _root.tank.speed + 0.1;
Symbol 133 MovieClip Frame 1
scale = Number(random(50)) + 30;
setProperty(_target, _x , (Number(../:x) + Number(random(12))) - 6);
setProperty(_target, _yscale , scale);
Symbol 134 MovieClip Frame 1
i = 1;
max = 60;
x = getProperty("fire", _x);
Symbol 134 MovieClip Frame 2
if (Number(i) <= Number(max)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
Symbol 134 MovieClip Frame 3
if (Number(i) <= Number(max)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
gotoAndPlay (2);
Instance of Symbol 134 MovieClip "flame" in Symbol 135 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.char) && (_root.char.gameover == false)) {
_root.timer.stop();
_root.char.gameover = true;
_root.tank.gameover = true;
_root.music.bgmusic.stop();
_root.descript.gotoAndStop(4);
_root.MyScore = (_root.Time * _root.Ammo) * 10;
_root.gotoAndStop(16);
}
}
Symbol 157 MovieClip Frame 1
stop();
Symbol 178 Button
on (press) {
_root.gotoAndStop(1);
}
Symbol 179 MovieClip Frame 1
gotoAndStop ("blah");
Symbol 179 MovieClip Frame 10
gotoAndPlay (11);
Symbol 179 MovieClip Frame 11
mst.Check = 0;
Symbol 179 MovieClip Frame 30
stop();