Frame 1
function createPts(xx, yy, pbamount) {
d++;
pbballs = 0;
pbBallAmount = 0;
pbballs = pbballs + pbamount;
while (pbballs > pbBallAmount) {
d++;
attachMovie("PointBall", "pb" + d, d);
this["pb" + d]._x = xx;
this["pb" + d]._y = yy;
pbBallAmount++;
}
}
function machineShot(xx, yy, sca) {
if (gun1_ammo > 0) {
gun1_ammo--;
d++;
b++;
if (b > 30) {
b = 1;
}
attachMovie("bullet", "b" + b, d);
this["b" + b]._x = xx;
this["b" + b]._xscale = sca;
this["b" + b]._y = yy;
}
}
function shottyShot(xx, yy, sca) {
if (gun2_ammo > 0) {
gun2_ammo--;
d++;
b++;
if (b > 30) {
b = 1;
}
attachMovie("bullet", "b" + b, d);
this["b" + b]._x = xx;
this["b" + b]._xscale = sca;
this["b" + b]._y = yy;
d++;
b++;
if (b > 30) {
b = 1;
}
attachMovie("bullet", "b" + b, d);
this["b" + b]._x = xx;
this["b" + b]._xscale = sca;
this["b" + b]._y = yy;
d++;
b++;
if (b > 30) {
b = 1;
}
attachMovie("bullet", "b" + b, d);
this["b" + b]._x = xx;
this["b" + b]._xscale = sca;
this["b" + b]._y = yy;
d++;
b++;
if (b > 30) {
b = 1;
}
attachMovie("bullet", "b" + b, d);
this["b" + b]._x = xx;
this["b" + b]._xscale = sca;
this["b" + b]._y = yy;
d++;
b++;
if (b > 30) {
b = 1;
}
attachMovie("bullet", "b" + b, d);
this["b" + b]._x = xx;
this["b" + b]._xscale = sca;
this["b" + b]._y = yy;
d++;
b++;
if (b > 30) {
b = 1;
}
attachMovie("bullet", "b" + b, d);
this["b" + b]._x = xx;
this["b" + b]._xscale = sca;
this["b" + b]._y = yy;
}
}
function rocket(xx, yy, sca) {
if (gun3_ammo > 0) {
gun3_ammo--;
d++;
b++;
if (b > 30) {
b = 1;
}
attachMovie("rocket", "b" + b, d);
this["b" + b]._x = xx;
this["b" + b]._xscale = sca;
this["b" + b]._y = yy;
}
}
function explode(xx, yy) {
d++;
attachMovie("ex2", "e" + d, d);
this["e" + d]._x = xx;
this["e" + d]._y = yy;
}
function enemyshot(xx, yy, sca, ccgun) {
if (ccgun == 4) {
d++;
attachMovie("enemybullet", "enb" + d, d);
this["enb" + d]._x = xx;
this["enb" + d]._y = yy;
this["enb" + d]._xscale = sca;
this["enb" + d].weapon = 1;
}
if (ccgun == 5) {
d++;
attachMovie("enemybullet", "enb" + d, d);
this["enb" + d]._x = xx;
this["enb" + d]._y = yy;
this["enb" + d]._xscale = sca;
this["enb" + d].weapon = 2;
d++;
attachMovie("enemybullet", "enb" + d, d);
this["enb" + d]._x = xx;
this["enb" + d]._y = yy;
this["enb" + d]._xscale = sca;
this["enb" + d].weapon = 2;
}
if (ccgun == 6) {
d++;
attachMovie("enemybullet", "enb" + d, d);
this["enb" + d]._x = xx;
this["enb" + d]._y = yy;
this["enb" + d]._xscale = sca;
this["enb" + d].weapon = 3;
d++;
attachMovie("enemybullet", "enb" + d, d);
this["enb" + d]._x = xx;
this["enb" + d]._y = yy;
this["enb" + d]._xscale = sca;
this["enb" + d].weapon = 3;
d++;
attachMovie("enemybullet", "enb" + d, d);
this["enb" + d]._x = xx;
this["enb" + d]._y = yy;
this["enb" + d]._xscale = sca;
this["enb" + d].weapon = 3;
d++;
attachMovie("enemybullet", "enb" + d, d);
this["enb" + d]._x = xx;
this["enb" + d]._y = yy;
this["enb" + d]._xscale = sca;
this["enb" + d].weapon = 3;
d++;
attachMovie("enemybullet", "enb" + d, d);
this["enb" + d]._x = xx;
this["enb" + d]._y = yy;
this["enb" + d]._xscale = sca;
this["enb" + d].weapon = 3;
}
}
function createLife(xx, yy, lbamount) {
d++;
lifeballs = 0;
lifeBallAmount = 0;
lifeballs = lifeballs + lbamount;
while (lifeballs > lifeBallAmount) {
d++;
attachMovie("LifeBall", "lb" + d, d);
this["lb" + d]._x = xx;
this["lb" + d]._y = yy;
lifeBallAmount++;
}
}
function sounds(sType) {
if (sType == "explosion") {
explosions.gotoAndStop(random(explosions.f) + 1);
}
if (sType == "wizz") {
wizzes.gotoAndStop(random(wizzes.f) + 1);
}
if (sType == "hGun") {
gunshots.gotoAndStop(Number(weapon) + 1);
}
if (sType == "wack") {
wacks.gotoAndStop(random(wacks.f) + 1);
}
if (sType == "grunt") {
grunts.gotoAndStop(random(grunts.f) + 1);
}
if (sType == "step") {
steps.gotoAndStop(random(steps.f) + 1);
}
}
function die() {
gotoAndStop ("die");
}
function upgrade() {
d++;
attachMovie("upgrade", "ug" + d, d);
}
weapon = 1;
effects_on = true;
shakeon = true;
shakeintense = 1.4;
gameVolume = 100;
life = 150;
score = 0;
d = 0;
wave = 1;
kills = 0;
coins = 0;
nades = 5;
b = 0;
gun1_ammo = 100;
gun2_ammo = 30;
gun3_ammo = 15;
NewgroundsAPI.connectMovie(9677);
mute = false;
weapon1_unlocked = true;
weapon2_unlocked = false;
weapon3_unlocked = false;
weapon4_unlocked = false;
weapon5_unlocked = false;
weapon6_unlocked = false;
weapon7_unlocked = false;
Frame 2
stop();
Frame 3
stop();
weapon = 1;
life = 150;
score = 0;
d = 0;
wave = 1;
kills = 0;
coins = 0;
nades = 5;
b = 0;
gun1_ammo = 100;
gun2_ammo = 30;
gun3_ammo = 15;
weapon1_unlocked = true;
weapon2_unlocked = false;
weapon3_unlocked = false;
weapon4_unlocked = false;
weapon5_unlocked = false;
weapon6_unlocked = false;
weapon7_unlocked = false;
sponsor = "http://www.newgrounds.com";
Frame 5
stop();
bg.cacheAsBitmap = true;
wavekills = 0;
killsneeded = (wave * 2) + 4;
Instance of Symbol 292 MovieClip "bg" in Frame 5
onClipEvent (enterFrame) {
if (!_root.effects_on) {
this.swapDepths(99999);
this.removeMovieClip();
}
_x = (_root.cam._x / 2);
_y = (_root.cam._y / 2);
}
Instance of Symbol 497 MovieClip in Frame 5
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 34 MovieClip [hit] in Frame 5
onClipEvent (enterFrame) {
if (!_root.pau) {
if (_root.wavekills >= _root.killsneeded) {
_root.wave++;
_root.gotoAndStop("win");
}
if (Key.isDown(49) && (_root.weapon1_unlocked)) {
_root.weapon = 1;
}
if (Key.isDown(50) && (_root.weapon2_unlocked)) {
_root.weapon = 2;
}
if (Key.isDown(51) && (_root.weapon3_unlocked)) {
_root.weapon = 3;
}
if (Key.isDown(52) && (_root.weapon4_unlocked)) {
_root.weapon = 4;
}
if (Key.isDown(53) && (_root.weapon5_unlocked)) {
_root.weapon = 5;
}
if (Key.isDown(54) && (_root.weapon6_unlocked)) {
_root.weapon = 6;
}
if (Key.isDown(55) && (_root.weapon7_unlocked)) {
_root.weapon = 7;
}
if (!t) {
time = 0;
t = true;
}
time++;
if (time > 500) {
_root.upgrade();
time = 0;
}
}
}
Instance of Symbol 571 MovieClip "cam" in Frame 5
onClipEvent (load) {
_x = _root.hero._x;
_y = _root.hero._y;
_root.gaming = true;
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
xspeed = 12;
yspeed = 6;
xdist = (_root.hero._x - _x) + _root.hero._xscale;
xdist = xdist / xspeed;
_x = (_x + xdist);
ydist = (_root.hero._y - _y) - 50;
ydist = ydist / yspeed;
_y = (_y + ydist);
while (hitTest(_root.lvlE)) {
_x = (_x-1);
}
while (hitTest(_root.lvlB)) {
_x = (_x+1);
}
}
}
onClipEvent (unload) {
_root.gaming = false;
}
Instance of Symbol 573 MovieClip in Frame 5
onClipEvent (load) {
_root.shakex = 0;
_root.shakey = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (!_root.pau) {
if (_root.shakeon) {
_root.shakex = _root.shakex * -1;
_root.shakex = _root.shakex / _root.shakeintense;
_root.shakey = _root.shakey * -1;
_root.shakey = _root.shakey / _root.shakeintense;
} else {
_root.shakex = 0;
_root.shakey = 0;
}
}
}
Instance of Symbol 589 MovieClip in Frame 5
onClipEvent (load) {
lol = new Sound(this);
lol.setVolume(80);
}
Instance of Symbol 601 MovieClip in Frame 5
onClipEvent (load) {
lol = new Sound(this);
lol.setVolume(90);
}
Instance of Symbol 615 MovieClip in Frame 5
onClipEvent (load) {
lol = new Sound(this);
lol.setVolume(40);
}
Instance of Symbol 626 MovieClip in Frame 5
onClipEvent (load) {
lol = new Sound(this);
lol.setVolume(60);
}
Instance of Symbol 634 MovieClip in Frame 5
onClipEvent (load) {
lol = new Sound(this);
lol.setVolume(80);
}
Instance of Symbol 642 MovieClip in Frame 5
onClipEvent (load) {
lol = new Sound(this);
lol.setVolume(70);
}
Frame 11
gaming = false;
cam.swapDepths(99999);
cam.removeMovieClip();
_x = 0;
_y = 0;
coins = coins + 50;
nades = nades + 3;
endwave = (((((((("Nice!\r+50 coins for winning\r+3 nades for winning\r-score as of now: " + _root.score) + newline) + "-kills: ") + _root.kills) + newline) + "Next wave: ") + _root.wave) + newline) + "check the shop!";
Instance of Symbol 292 MovieClip in Frame 11
onClipEvent (enterFrame) {
_x = (_root.cam._x / 2);
_y = (_root.cam._y / 2);
}
Instance of Symbol 342 MovieClip in Frame 11
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Frame 16
gaming = false;
cam.swapDepths(99999);
cam.removeMovieClip();
_x = 0;
_y = 0;
endwave = ((((((("You lasted: " + _root.wave) + " waves!") + newline) + "Your final score was: ") + _root.score) + newline) + "-kills: ") + _root.kills;
life = 150;
wave = 1;
kills = 0;
wavekills = 0;
score = 0;
Symbol 3 MovieClip [cube] Frame 1
_y = (random(50) - 25);
_x = (_parent.pc * 2.365);
lol = random(50) + 100;
_xscale = lol;
_yscale = lol;
Symbol 3 MovieClip [cube] Frame 16
this.removeMovieClip();
Symbol 29 MovieClip Frame 1
_root.shakey = _root.shakey + 10;
Symbol 29 MovieClip Frame 44
stop();
_parent.removeMovieClip();
Symbol 30 MovieClip [explo] Frame 1
onEnterFrame = function () {
if (!_root.pau) {
if (!t) {
t = 1;
}
t++;
if (t < 4) {
_root.explo = this;
}
if ((t == 4) || (t == 5)) {
_root.explo = false;
}
}
};
Symbol 34 MovieClip [hit] Frame 1
_visible = false;
Symbol 35 MovieClip [grenade] Frame 1
function die() {
_root.sounds("explosion");
_root.explode(_x, _y);
this.removeMovieClip();
}
stop();
grav = random(4) + 6;
grav = grav * -1;
power = 5;
poop = random(50) - 25;
onEnterFrame = function () {
if (!_root.pau) {
gren._rotation = gren._rotation + poop;
if (!_root.b12) {
_name = "b32";
}
if (!_root.b13) {
_name = "b33";
}
if (!_root.b14) {
_name = "b34";
}
_y = (_y + grav);
grav++;
_x = (_x + ((_xscale / 100) * 10));
if (_root.ground.hitTest(_x, _y, true)) {
if (shooter) {
play();
} else {
die();
}
}
if (shooter) {
if (hitTest(_root.hero.hit)) {
_root.hero.hurt(15);
die();
}
}
}
};
Symbol 35 MovieClip [grenade] Frame 2
_root.explode(_x, _y);
Instance of Symbol 34 MovieClip [hit] in Symbol 35 MovieClip [grenade] Frame 2
onClipEvent (enterFrame) {
if (!_root.pau) {
if (hitTest(_root.hero.hit)) {
_root.hero.hurt(15);
}
}
}
Symbol 35 MovieClip [grenade] Frame 4
this.removeMovieClip();
Symbol 44 MovieClip Frame 24
_parent.removeMovieClip();
Symbol 45 MovieClip [eSplo] Frame 1
if (!_root.effects_on) {
swapDepths(9999);
this.removeMovieClip();
}
Symbol 58 MovieClip Frame 1
_rotation = random(360);
lol = random(40) + 80;
_xscale = lol;
_yscale = lol;
Symbol 58 MovieClip Frame 15
_parent.removeMovieClip();
Symbol 60 MovieClip [LifeBall] Frame 1
onEnterFrame = function () {
if (!_root.pau) {
if (hitTest(_root.hero.hit)) {
gotoAndStop ("get");
}
if (!setVars) {
speed = random(20) - 10;
grav = (random(7) + 7) * -1;
timer = 0;
setVars = true;
}
timer++;
if (timer > 140) {
_xscale = (_xscale - 10);
_yscale = (_yscale - 10);
}
if ((timer > 150) or (_xscale == 0)) {
this.removeMovieClip();
}
_x = (_x + speed);
if ((speed > 0) && (speed < 1)) {
speed = 0;
}
if ((speed < 0) && (speed > -1)) {
speed = 0;
}
if (speed > 0.5) {
speed = speed - 0.2;
}
if (speed < -0.5) {
speed = speed + 0.2;
}
_y = (_y + grav);
if (!_root.ground.hitTest(_x, _y, true)) {
grav++;
} else {
grav = grav * -1;
grav = grav / 2;
}
while (_root.ground.hitTest(_x, _y - 4, true)) {
_y = (_y-1);
}
if (_root.ground.hitTest(_x + 7, _y - 25, true)) {
speed = speed * -1;
}
if (_root.ground.hitTest(_x - 7, _y - 25, true)) {
speed = speed * -1;
}
if (_root.ground.hitTest(_x, _y - 35, true) && (grav < 0)) {
grav = grav * -1;
}
}
};
Symbol 60 MovieClip [LifeBall] Frame 7
gotoAndPlay (1);
Symbol 60 MovieClip [LifeBall] Frame 8
onEnterFrame = null;
_root.life++;
Symbol 73 MovieClip [ex2] Frame 2
_root.explo = this;
_root.sounds("explosion");
Symbol 73 MovieClip [ex2] Frame 4
_root.explo = false;
Symbol 73 MovieClip [ex2] Frame 26
this.removeMovieClip();
Symbol 81 MovieClip [PointBall] Frame 1
onEnterFrame = function () {
if (!_root.pau) {
if (hitTest(_root.hero.hit)) {
gotoAndStop ("get");
}
if (!setVars) {
speed = random(20) - 10;
grav = (random(7) + 7) * -1;
timer = 0;
setVars = true;
}
timer++;
if (timer > 140) {
_xscale = (_xscale - 10);
_yscale = (_yscale - 10);
}
if ((timer > 150) or (_xscale == 0)) {
this.removeMovieClip();
}
_x = (_x + speed);
if ((speed > 0) && (speed < 1)) {
speed = 0;
}
if ((speed < 0) && (speed > -1)) {
speed = 0;
}
if (speed > 0.5) {
speed = speed - 0.2;
}
if (speed < -0.5) {
speed = speed + 0.2;
}
_y = (_y + grav);
if (!_root.ground.hitTest(_x, _y, true)) {
grav++;
} else {
grav = grav * -1;
grav = grav / 2;
}
while (_root.ground.hitTest(_x, _y - 4, true)) {
_y = (_y-1);
}
if (_root.ground.hitTest(_x + 7, _y - 25, true)) {
speed = speed * -1;
}
if (_root.ground.hitTest(_x - 7, _y - 25, true)) {
speed = speed * -1;
}
if (_root.ground.hitTest(_x, _y - 35, true) && (grav < 0)) {
grav = grav * -1;
}
}
};
Symbol 81 MovieClip [PointBall] Frame 9
gotoAndPlay (1);
Symbol 81 MovieClip [PointBall] Frame 10
onEnterFrame = null;
_root.score = _root.score + (5 + random(4));
_root.coins++;
Symbol 144 MovieClip Frame 1
timer = 0;
onEnterFrame = function () {
if (!_root.pau) {
timer++;
if (timer > 100) {
_alpha = (_alpha - 10);
}
if (_alpha <= 0) {
swapDepths(99999);
this.removeMovieClip();
}
}
};
Symbol 144 MovieClip Frame 3
if (_root.bloodpuddles == false) {
stop();
}
Symbol 144 MovieClip Frame 14
if (random(2) == 1) {
gotoAndPlay ("b2");
}
Symbol 144 MovieClip Frame 15
if (random(2) == 1) {
gotoAndPlay ("b6");
}
Symbol 144 MovieClip Frame 16
if (random(4) >= 2) {
gotoAndPlay ("b3");
}
Symbol 144 MovieClip Frame 17
if (random(2) == 1) {
gotoAndPlay ("b5");
}
Symbol 144 MovieClip Frame 18
if (random(4) >= 2) {
gotoAndPlay ("b4");
}
Symbol 144 MovieClip Frame 29
stop();
Symbol 144 MovieClip Frame 39
stop();
Symbol 144 MovieClip Frame 50
stop();
Symbol 144 MovieClip Frame 60
stop();
Symbol 144 MovieClip Frame 71
stop();
Symbol 144 MovieClip Frame 81
stop();
Symbol 156 MovieClip Frame 23
stop();
Symbol 169 MovieClip Frame 25
stop();
Symbol 183 MovieClip Frame 27
stop();
Symbol 184 MovieClip [Blood_mc] Frame 1
if (!_root.effects_on) {
this.removeMovieClip();
}
gotoAndStop(random(3) + 1);
Symbol 191 MovieClip [smoke_mc_1] Frame 1
if (!_root.effects_on) {
this.removeMovieClip();
}
Symbol 191 MovieClip [smoke_mc_1] Frame 25
swapDepths(9999);
this.removeMovieClip();
Symbol 199 MovieClip [smoke_mc_2] Frame 1
if (!_root.effects_on) {
this.removeMovieClip();
}
Symbol 199 MovieClip [smoke_mc_2] Frame 22
swapDepths(9999);
this.removeMovieClip();
Symbol 210 MovieClip Frame 1
gotoAndStop(_parent._parent.weapon);
Symbol 215 MovieClip Frame 1
_visible = false;
onEnterFrame = function () {
if (!_root.pau) {
if (hitTest(_root.herohit)) {
if (_root.hero.raging) {
_parent.hurt(_root.herohit.power + 4, true);
} else {
_parent.hurt(_root.herohit.power, true);
}
}
if (hitTest(_root.b0)) {
_parent.hurt(_root.b0.power);
_root.b0.die();
}
if (hitTest(_root.b1)) {
_parent.hurt(_root.b1.power);
_root.b1.die();
}
if (hitTest(_root.b2)) {
_parent.hurt(_root.b2.power);
_root.b2.die();
}
if (hitTest(_root.b3)) {
_parent.hurt(_root.b3.power);
_root.b3.die();
}
if (hitTest(_root.b4)) {
_parent.hurt(_root.b4.power);
_root.b4.die();
}
if (hitTest(_root.b5)) {
_parent.hurt(_root.b5.power);
_root.b5.die();
}
if (hitTest(_root.b6)) {
_parent.hurt(_root.b6.power);
_root.b6.die();
}
if (hitTest(_root.b7)) {
_parent.hurt(_root.b7.power);
_root.b7.die();
}
if (hitTest(_root.b8)) {
_parent.hurt(_root.b8.power);
_root.b8.die();
}
if (hitTest(_root.b9)) {
_parent.hurt(_root.b9.power);
_root.b9.die();
}
if (hitTest(_root.b10)) {
_parent.hurt(_root.b10.power);
_root.b10.die();
}
if (hitTest(_root.b11)) {
_parent.hurt(_root.b11.power);
_root.b11.die();
}
if (hitTest(_root.b12)) {
_parent.hurt(_root.b12.power);
_root.b12.die();
}
if (hitTest(_root.b13)) {
_parent.hurt(_root.b13.power);
_root.b13.die();
}
if (hitTest(_root.b14)) {
_parent.hurt(_root.b14.power);
_root.b14.die();
}
if (hitTest(_root.b15)) {
_parent.hurt(_root.b15.power);
_root.b15.die();
}
if (hitTest(_root.b16)) {
_parent.hurt(_root.b16.power);
_root.b16.die();
}
if (hitTest(_root.b17)) {
_parent.hurt(_root.b17.power);
_root.b17.die();
}
if (hitTest(_root.b18)) {
_parent.hurt(_root.b18.power);
_root.b18.die();
}
if (hitTest(_root.b19)) {
_parent.hurt(_root.b19.power);
_root.b19.die();
}
if (hitTest(_root.b21)) {
_parent.hurt(_root.b21.power);
_root.b21.die();
}
if (hitTest(_root.b20)) {
_parent.hurt(_root.b20.power);
_root.b20.die();
}
if (hitTest(_root.b22)) {
_parent.hurt(_root.b22.power);
_root.b22.die();
}
if (hitTest(_root.b23)) {
_parent.hurt(_root.b23.power);
_root.b23.die();
}
if (hitTest(_root.b24)) {
_parent.hurt(_root.b24.power);
_root.b24.die();
}
if (hitTest(_root.b25)) {
_parent.hurt(_root.b25.power);
_root.b25.die();
}
if (hitTest(_root.b26)) {
_parent.hurt(_root.b26.power);
_root.b26.die();
}
if (hitTest(_root.b27)) {
_parent.hurt(_root.b27.power);
_root.b27.die();
}
if (hitTest(_root.b28)) {
_parent.hurt(_root.b28.power);
_root.b28.die();
}
if (hitTest(_root.b29)) {
_parent.hurt(_root.b29.power);
_root.b29.die();
}
if (hitTest(_root.b30)) {
_parent.hurt(_root.b30.power);
_root.b30.die();
}
if (hitTest(_root.b31)) {
_parent.hurt(_root.b31.power);
_root.b31.die();
}
if (hitTest(_root.b32)) {
_parent.hurt(_root.b32.power);
_root.b32.die();
}
if (hitTest(_root.b33)) {
_parent.hurt(_root.b33.power);
_root.b33.die();
}
if (hitTest(_root.b34)) {
_parent.hurt(_root.b34.power);
_root.b34.die();
}
if (hitTest(_root.b35)) {
_parent.hurt(_root.b35.power);
_root.b35.die();
}
if (hitTest(_root.explo)) {
_parent.hurt(25);
}
}
};
Symbol 231 MovieClip Frame 9
_root.sounds("wizz");
Instance of Symbol 34 MovieClip [hit] in Symbol 231 MovieClip Frame 9
onClipEvent (enterFrame) {
if (!_root.pau) {
if (hitTest(_root.hero.hit)) {
_root.hero.hurt(5 + (_parent._parent.weapon * 2));
_root.hero._xscale = _parent._parent._xscale;
}
}
}
Symbol 231 MovieClip Frame 17
_parent.gotoAndStop("idle");
Symbol 239 MovieClip Frame 1
gotoAndStop(random(6) + 1);
Symbol 244 MovieClip Frame 7
_root.enemyshot(_parent._x + ((_parent._xscale / 100) * 70), _parent._y - 70, _parent._xscale, _parent.weapon);
Symbol 244 MovieClip Frame 15
_parent.gotoAndStop("idle");
Symbol 267 MovieClip Frame 2
_root.createPts(_parent._x, _parent._y, random(5) + 10);
_root.createLife(_parent._x, _parent._y, 5);
_root.kills++;
Symbol 267 MovieClip Frame 30
stop();
Symbol 268 MovieClip [Gray] Frame 1
function sbb() {
_xscale = _root.hero._xscale;
}
function hurt(lifeminus, bullet) {
if (lifeminus > 0) {
_root.createLife(_x, _y, 1);
_root.sounds("wack");
_xscale = (_root.hero._xscale * -1);
randN = random(9999);
_root.blood.attachMovie("Blood_mc", "b" + randN, randN);
_root.blood["b" + randN]._x = _x;
_root.blood["b" + randN]._xscale = _xscale;
_root.blood["b" + randN]._y = _y;
_root.shakex = _root.shakex + lifeminus;
_root.special++;
red = 255;
tintfade = 100;
slideback = slideback + lifeminus;
life = life - lifeminus;
_root.score = _root.score + lifeminus;
}
}
function dirChange() {
dir = dir * -1;
}
onEnterFrame = function () {
if (!_root.gaming) {
this.removeMovieClip();
}
if (!_root.pau) {
while (hit.hitTest(_root.lvlb1)) {
_x = (_x-1);
}
while (hit.hitTest(_root.lvlb2)) {
_x = (_x-1);
}
while (hit.hitTest(_root.lvlb3)) {
_x = (_x-1);
}
while (hit.hitTest(_root.lvlb4)) {
_x = (_x-1);
}
while (hit.hitTest(_root.lvlb5)) {
_x = (_x-1);
}
while (hit.hitTest(_root.lvlb6)) {
_x = (_x-1);
}
while (hit.hitTest(_root.lvlb7)) {
_x = (_x-1);
}
while (hit.hitTest(_root.lvlb8)) {
_x = (_x-1);
}
while (hit.hitTest(_root.lvlb9)) {
_x = (_x-1);
}
if (!sb) {
slideback = 0;
sb = true;
}
slideback = slideback / 1.2;
_x = (_x - ((slideback * _xscale) / 100));
while (hit.hitTest(_root.lvlhit1)) {
if (_x > _root.lvlhit1._x) {
_x = (_x+1);
}
if (_x < _root.lvlhit1._x) {
_x = (_x-1);
}
}
while (hit.hitTest(_root.lvlhit2)) {
if (_x > _root.lvlhit2._x) {
_x = (_x+1);
}
if (_x < _root.lvlhit2._x) {
_x = (_x-1);
}
}
while (hit.hitTest(_root.lvlhit3)) {
if (_x > _root.lvlhit3._x) {
_x = (_x+1);
}
if (_x < _root.lvlhit3._x) {
_x = (_x-1);
}
}
while (hit.hitTest(_root.lvlhit4)) {
if (_x > _root.lvlhit4._x) {
_x = (_x+1);
}
if (_x < _root.lvlhit4._x) {
_x = (_x-1);
}
}
while (hit.hitTest(_root.lvlhit5)) {
if (_x > _root.lvlhit5._x) {
_x = (_x+1);
}
if (_x < _root.lvlhit5._x) {
_x = (_x-1);
}
}
while (hit.hitTest(_root.lvlhit6)) {
if (_x > _root.lvlhit6._x) {
_x = (_x+1);
}
if (_x < _root.lvlhit6._x) {
_x = (_x-1);
}
}
if (!hitTest(_root.screenhit)) {
htt++;
}
_y = (_y + grav);
if (!setvars) {
if (_root.wave >= 9) {
weapon = random(6) + 1;
} else if (_root.wave >= 7) {
weapon = random(5) + 1;
} else if (_root.wave >= 5) {
weapon = random(4) + 1;
} else if (_root.wave >= 3) {
weapon = random(3) + 1;
} else if (_root.wave >= 1) {
weapon = random(2) + 1;
}
_root.kn++;
col = new Color(this);
red = 0;
tintfade = 0;
stop();
life = random(20) + 43;
life = life + (_root.wave * 5);
speed = random(4) + 5;
dir = speed / 2;
grav = 0;
setvars = true;
}
if (red > 0) {
red = red / 1.5;
}
if (tintfade > 0) {
tintfade = tintfade / 1.5;
}
col.setTint(red, 0, 0, tintfade);
if (act1) {
if (life <= 0) {
gotoAndStop ("die");
}
while (_root.ground.hitTest(_x + 40, _y - 20, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 40, _y - 20, true)) {
_x = (_x+1);
}
if (!_root.ground.hitTest(_x, _y, true)) {
grav++;
} else {
grav = 0;
}
while (_root.ground.hitTest(_x, _y, true)) {
jump = false;
_y = (_y-1);
}
}
}
};
col = new Color(this);
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
stop();
if (!esplo) {
_root.d++;
_root.attachMovie("eSplo", "es" + _root.d, _root._d);
_root["es" + _root.d]._x = _x;
_root["es" + _root.d]._y = _y;
esplo = true;
}
Instance of Symbol 213 MovieClip in Symbol 268 MovieClip [Gray] Frame 1
onClipEvent (enterFrame) {
if (!_root.pau) {
if (_parent.active) {
if (_root.hero._x > (_parent._x + 40)) {
if (random(20) == 1) {
_parent._xscale = 100;
_parent.gotoAndStop("run");
}
}
if (_root.hero._x < (_parent._x - 40)) {
if (random(20) == 1) {
_parent._xscale = -100;
_parent.gotoAndStop("run");
}
}
}
if (hitTest(_root.screenhit)) {
_parent._visible = true;
_parent.active = true;
_parent.act1 = true;
} else {
_parent._visible = false;
_parent.active = false;
}
}
}
Instance of Symbol 34 MovieClip [hit] in Symbol 268 MovieClip [Gray] Frame 1
onClipEvent (enterFrame) {
if (!_root.pau) {
if (hitTest(_root.hero.hit)) {
if (random(20) == 1) {
if (_parent.weapon < 4) {
_parent.gotoAndStop("att");
}
}
}
}
}
Instance of Symbol 34 MovieClip [hit] in Symbol 268 MovieClip [Gray] Frame 1
onClipEvent (enterFrame) {
if (!_root.pau) {
if (hitTest(_root.hero.hit)) {
if (random(30) == 1) {
if (_parent.weapon >= 4) {
_parent.gotoAndStop("shoot");
}
}
}
}
}
Instance of Symbol 227 MovieClip in Symbol 268 MovieClip [Gray] Frame 5
onClipEvent (enterFrame) {
if (!_root.pau) {
if (_parent._xscale == -100) {
_parent._x = _parent._x - _parent.speed;
} else {
_parent._x = _parent._x + _parent.speed;
}
if (random(100) == 1) {
_parent.gotoAndStop("idle");
}
if (_root.hero._x > (_parent._x + 50)) {
if (random(10) == 1) {
_parent._xscale = 100;
}
}
if (_root.hero._x < (_parent._x - 50)) {
if (random(10) == 1) {
_parent._xscale = -100;
}
}
if (random(150) == 1) {
_parent._xscale = _parent._xscale * -1;
}
if (hitTest(_root.screenhit)) {
_parent.active = true;
} else {
_parent.active = false;
}
if (!_parent.active) {
_parent.gotoAndStop("idle");
}
}
}
Symbol 268 MovieClip [Gray] Frame 19
_root.wavekills++;
_root.sounds("grunt");
_root.killed = true;
Symbol 273 MovieClip [enemybullet] Frame 1
function die() {
swapDepths(99999);
this.removeMovieClip();
}
onEnterFrame = function () {
if (!_root.pau) {
_y = (_y + upspeed);
_x = (_x + ((_xscale / 100) * speed));
if (_root.ground.hitTest(_x, _y, true)) {
die();
}
if (!hitTest(_root.screenhit)) {
die();
}
if (hitTest(_root.hero.hit)) {
if (!_xscale) {
_xscale = 100;
}
_root.hero.hurt(power);
_root.hero._xscale = this._xscale;
die();
}
}
if (!setv) {
speed = 14 + random(8);
if (weapon == 1) {
upspeed = 0;
power = 10;
}
if (weapon == 2) {
upspeed = random(6) - 3;
power = 7;
}
if (weapon == 3) {
upspeed = random(8) - 4;
power = 6;
}
setv = true;
}
};
Symbol 275 MovieClip [bullet] Frame 1
function die() {
swapDepths(99999);
this.removeMovieClip();
}
onEnterFrame = function () {
if (!_root.pau) {
_y = (_y + upspeed);
_x = (_x + ((_xscale / 100) * speed));
if (_root.ground.hitTest(_x, _y, true)) {
die();
}
if (!hitTest(_root.screenhit)) {
die();
}
}
if (!setv) {
speed = 14 + random(8);
if (_root.weapon == 5) {
power = 5;
}
if (_root.weapon == 6) {
upspeed = random(8) - 4;
power = 4;
}
setv = true;
}
};
Symbol 279 MovieClip [rocket] Frame 1
function die() {
_root.explode(_x, _y);
swapDepths(99999);
this.removeMovieClip();
}
onEnterFrame = function () {
if (!_root.pau) {
speed = speed * 1.3;
_y = (_y + upspeed);
_x = (_x + ((_xscale / 100) * speed));
if (_root.ground.hitTest(_x, _y, true)) {
die();
}
if (!hitTest(_root.screenhit)) {
swapDepths(9999);
this.removeMovieClip();
}
}
if (!setv) {
speed = 8;
power = 5;
setv = true;
}
};
Symbol 285 MovieClip Frame 1
gotoAndStop(random(5) + 1);
Symbol 287 MovieClip Frame 1
_x = (random(_parent.wid) - (_parent.wid / 2));
_y = (random(_parent.hig) - (_parent.hig / 2));
lol = random(80) + 2;
_xscale = lol;
_yscale = lol;
_alpha = (random(50) + 50);
Symbol 289 MovieClip Frame 1
_x = (random(_parent.wid) - (_parent.wid / 2));
_y = (random(_parent.hig) - (_parent.hig / 2));
lol = random(20) + 50;
_xscale = lol;
_yscale = lol;
_rotation = random(360);
_alpha = (random(60) + 40);
Symbol 291 MovieClip Frame 1
_x = (random(_parent.wid) - (_parent.wid / 2));
_y = (random(_parent.hig) - (_parent.hig / 2));
lol = random(20) + 50;
_xscale = lol;
_yscale = lol;
_rotation = random(360);
_alpha = (random(60) + 40);
Symbol 292 MovieClip Frame 1
s1d = 120;
s2d = 40;
s3d = 60;
d = 0;
wid = nebula._width;
hig = nebula._height;
this.cacheAsBitmap = true;
while (s1d > d) {
d++;
s1.duplicateMovieClip("s" + d, d);
}
while ((s2d + s1d) > d) {
d++;
s2.duplicateMovieClip("s" + d, d);
}
while (((s3d + s2d) + s1d) > d) {
d++;
s3.duplicateMovieClip("s" + d, d);
}
while ((((s4d + s3d) + s2d) + s1d) > d) {
d++;
s4.duplicateMovieClip("s" + d, d);
}
Symbol 309 MovieClip Frame 40
stop();
Symbol 323 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 324 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 299 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("lastframe");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 325 MovieClip Frame 101
play();
Symbol 325 MovieClip Frame 165
stop();
Symbol 331 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 337 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 339 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 779 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 343 MovieClip Frame 53
_root.play();
Symbol 346 MovieClip Frame 2
stopAllSounds();
Symbol 346 MovieClip Frame 4
stop();
Symbol 359 Button
on (release) {
NewgroundsAPI.loadMySite();
}
Symbol 366 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 367 Button
on (release) {
gotoAndStop ("howto");
}
Symbol 368 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 369 Button
on (release) {
gotoAndStop ("options");
}
Symbol 382 Button
on (release) {
gotoAndStop (1);
}
Symbol 389 MovieClip Frame 1
stop();
Instance of Symbol 388 MovieClip in Symbol 389 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.effects_on) {
_alpha = 100;
} else {
_alpha = 0;
}
}
on (release) {
_root.effects_on = true;
}
Instance of Symbol 388 MovieClip in Symbol 389 MovieClip Frame 12
onClipEvent (enterFrame) {
if (!_root.effects_on) {
_alpha = 100;
} else {
_alpha = 0;
}
}
on (release) {
_root.effects_on = false;
}
Instance of Symbol 388 MovieClip in Symbol 389 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.shakeon) {
_alpha = 100;
} else {
_alpha = 0;
}
}
on (release) {
_root.shakeon = true;
}
Instance of Symbol 388 MovieClip in Symbol 389 MovieClip Frame 12
onClipEvent (enterFrame) {
if (!_root.shakeon) {
_alpha = 100;
} else {
_alpha = 0;
}
}
on (release) {
_root.shakeon = false;
}
Instance of Symbol 388 MovieClip in Symbol 389 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root._quality == "high") {
_alpha = 100;
} else {
_alpha = 0;
}
}
on (release) {
_root._quality = "high";
}
Instance of Symbol 388 MovieClip in Symbol 389 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root._quality == "medium") {
_alpha = 100;
} else {
_alpha = 0;
}
}
on (release) {
_root._quality = "medium";
}
Instance of Symbol 388 MovieClip in Symbol 389 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root._quality == "low") {
_alpha = 100;
} else {
_alpha = 0;
}
}
on (release) {
_root._quality = "low";
}
Instance of Symbol 388 MovieClip in Symbol 389 MovieClip Frame 12
onClipEvent (enterFrame) {
_root.llol = new Sound(_root);
_root.llol.setVolume(_root.gameVolume);
if (_root.gameVolume == 0) {
_alpha = 100;
} else {
_alpha = 0;
}
}
on (release) {
_root.gameVolume = 0;
}
Instance of Symbol 388 MovieClip in Symbol 389 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.gameVolume == 25) {
_alpha = 100;
} else {
_alpha = 0;
}
}
on (release) {
_root.gameVolume = 25;
}
Instance of Symbol 388 MovieClip in Symbol 389 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.gameVolume == 50) {
_alpha = 100;
} else {
_alpha = 0;
}
}
on (release) {
_root.gameVolume = 50;
}
Instance of Symbol 388 MovieClip in Symbol 389 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.gameVolume == 75) {
_alpha = 100;
} else {
_alpha = 0;
}
}
on (release) {
_root.gameVolume = 75;
}
Instance of Symbol 388 MovieClip in Symbol 389 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.gameVolume == 100) {
_alpha = 100;
} else {
_alpha = 0;
}
}
on (release) {
_root.gameVolume = 100;
}
Symbol 392 MovieClip Frame 1
swapDepths(99999);
_x = 0;
_y = 0;
Symbol 392 MovieClip Frame 26
this.removeMovieClip();
Symbol 395 MovieClip Frame 1
_x = 0;
_y = 0;
Symbol 397 MovieClip Frame 1
_visible = false;
Symbol 406 MovieClip Frame 1
gotoAndStop(_root.weapon);
onEnterFrame = function () {
gotoAndStop(_root.weapon);
};
Symbol 448 MovieClip Frame 1
k = true;
Symbol 448 MovieClip Frame 5
_root.sounds("wizz");
Instance of Symbol 34 MovieClip [hit] in Symbol 448 MovieClip Frame 5
onClipEvent (load) {
_root.herohit = this;
power = 6 + _root.weapon;
}
Instance of Symbol 34 MovieClip [hit] in Symbol 448 MovieClip Frame 7
onClipEvent (enterFrame) {
if (!_root.pau) {
if (Key.isDown(65)) {
if (!_parent.k) {
_parent.gotoAndPlay("p2");
}
}
}
}
Symbol 448 MovieClip Frame 12
_parent.gotoAndStop("idle");
Symbol 448 MovieClip Frame 13
k = true;
Symbol 448 MovieClip Frame 17
_root.sounds("wizz");
Instance of Symbol 34 MovieClip [hit] in Symbol 448 MovieClip Frame 17
onClipEvent (load) {
_root.herohit = this;
power = 6 + _root.weapon;
}
Instance of Symbol 34 MovieClip [hit] in Symbol 448 MovieClip Frame 20
onClipEvent (enterFrame) {
if (!_root.pau) {
if (Key.isDown(65)) {
if (!_parent.k) {
_parent.gotoAndPlay("p3");
}
}
}
}
Symbol 448 MovieClip Frame 26
_parent.gotoAndStop("idle");
Symbol 448 MovieClip Frame 27
k = true;
Instance of Symbol 34 MovieClip [hit] in Symbol 448 MovieClip Frame 31
onClipEvent (load) {
_root.herohit = this;
power = 7 + _root.weapon;
}
Symbol 448 MovieClip Frame 33
_root.sounds("wizz");
Instance of Symbol 34 MovieClip [hit] in Symbol 448 MovieClip Frame 33
onClipEvent (enterFrame) {
if (!_root.pau) {
if (Key.isDown(65)) {
if (!_parent.k) {
_parent.gotoAndPlay("p4");
}
}
}
}
Symbol 448 MovieClip Frame 40
_parent.gotoAndStop("idle");
Symbol 448 MovieClip Frame 41
k = true;
Symbol 448 MovieClip Frame 47
_root.sounds("wizz");
Instance of Symbol 34 MovieClip [hit] in Symbol 448 MovieClip Frame 47
onClipEvent (load) {
_root.herohit = this;
power = 9 + _root.weapon;
}
Instance of Symbol 34 MovieClip [hit] in Symbol 448 MovieClip Frame 49
onClipEvent (enterFrame) {
if (!_root.pau) {
if (Key.isDown(65)) {
if (!_parent.k) {
_parent.gotoAndPlay("p1");
}
}
}
}
Symbol 448 MovieClip Frame 56
_parent.gotoAndStop("idle");
Symbol 453 MovieClip Frame 3
_root.machineShot(_parent._x + ((_parent._xscale / 100) * 70), _parent._y - 70, _parent._xscale);
_root.sounds("hGun");
Symbol 464 MovieClip Frame 6
_root.shottyShot(_parent._x + ((_parent._xscale / 100) * 100), _parent._y - 65, _parent._xscale);
_root.sounds("hGun");
Symbol 464 MovieClip Frame 11
if (Key.isDown(65)) {
gotoAndPlay (1);
}
Symbol 464 MovieClip Frame 12
if (Key.isDown(65)) {
gotoAndPlay (1);
}
_parent.gotoAndStop("idle");
Symbol 474 MovieClip Frame 7
_root.rocket(_parent._x + ((_parent._xscale / 100) * 100), _parent._y - 40, _parent._xscale);
_root.sounds("hGun");
Symbol 474 MovieClip Frame 14
if (Key.isDown(65)) {
gotoAndPlay (1);
}
Symbol 474 MovieClip Frame 15
if (Key.isDown(65)) {
gotoAndPlay (1);
}
_parent.gotoAndStop("idle");
Symbol 477 MovieClip Frame 5
if (_root.nades > 0) {
_root.nades--;
_root.d++;
_root.attachMovie("grenade", "g" + _root.d, _root.d);
_root["g" + _root.d]._x = _parent._x + ((_parent._xscale / 100) * 65);
_root["g" + _root.d]._y = _parent._y - 50;
_root["g" + _root.d]._xscale = _parent._xscale;
}
Symbol 477 MovieClip Frame 9
_parent.gotoAndStop("idle");
Symbol 494 MovieClip Frame 69
stop();
_root.die();
Symbol 495 MovieClip Frame 1
function hurt(lf) {
if (lf) {
_root.sounds("wack");
_root.life = _root.life - lf;
_root.shakex = _root.shakex + lf;
xplus = xplus + (lf * 2);
rrr = 255;
amou = 100;
}
}
function attack() {
if (_root.weapon <= 4) {
gotoAndStop ("att");
} else if (_root.weapon == 5) {
gotoAndStop ("machine");
} else if (_root.weapon == 6) {
gotoAndStop ("shotty");
} else if (_root.weapon == 7) {
gotoAndStop ("rocket");
}
}
function shoot() {
gotoAndStop ("grenade");
}
onEnterFrame = function () {
if (!_root.pau) {
_name = "hero";
if (!setv) {
stop();
htt = 0;
xplus = 0;
jumph = 14;
grav = 0;
speed = 12;
rrr = 0;
amou = 0;
high = 90;
wid = 35;
setv = true;
}
if (_root.life >= 300) {
_root.life = 300;
}
if (_root.life <= 0) {
gotoAndStop ("die");
}
_y = (_y + grav);
xplus = xplus / 1.6;
_x = (_x + ((_xscale / 100) * xplus));
amou = amou / 1.6;
col.setTint(rrr, 0, 0, amou);
if (!_root.ground.hitTest(_x, _y, true)) {
grav++;
} else {
grav = 0;
}
while (_root.ground.hitTest(_x, _y, true)) {
jump = false;
_y = (_y-1);
}
while (_root.ground.hitTest(_x + wid, _y - (high / 3), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - wid, _y - (high / 3), true)) {
_x = (_x+1);
}
if (_root.ground.hitTest(_x, _y - (high / 2), true)) {
jump = false;
grav = 10;
_y = (_y+1);
}
if (jump) {
_y = (_y - jumph);
}
if (!hall) {
htt++;
amou = -50;
if (htt > 15) {
hall = true;
htt = 0;
}
}
}
};
col = new Color(this);
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
jj = false;
Instance of Symbol 416 MovieClip in Symbol 495 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.pau) {
if (Key.isDown(83)) {
if (Key.isDown(65)) {
_parent.special();
}
}
if (Key.isDown(83)) {
_parent.shoot();
}
if (Key.isDown(65)) {
_parent.attack();
}
if (Key.isDown(37)) {
_parent.gotoAndStop("run");
}
if (Key.isDown(39)) {
_parent.gotoAndStop("run");
}
if (Key.isDown(38)) {
_parent.jump = true;
_parent.gotoAndStop("jump");
}
}
}
Symbol 495 MovieClip Frame 5
if (Key.isDown(37)) {
_xscale = -100;
}
if (Key.isDown(39)) {
_xscale = 100;
}
_root.d++;
_root.attachMovie("smoke_mc_1", "s" + _root.d, _root.d);
_root["s" + _root.d]._x = _x;
_root["s" + _root.d]._xscale = _xscale;
_root["s" + _root.d]._y = _y;
Instance of Symbol 426 MovieClip in Symbol 495 MovieClip Frame 5
onClipEvent (enterFrame) {
if (!_root.pau) {
if (Key.isDown(83)) {
if (Key.isDown(65)) {
_parent.special();
}
}
if (Key.isDown(83)) {
_parent.shoot();
}
if (Key.isDown(38)) {
} else if (Key.isDown(40)) {
} else if (Key.isDown(37)) {
} else if (Key.isDown(39)) {
} else {
_parent.gotoAndStop("idle");
}
if (Key.isDown(37)) {
_parent._x = _parent._x - _parent.speed;
_parent._xscale = -100;
}
if (Key.isDown(39)) {
_parent._x = _parent._x + _parent.speed;
_parent._xscale = 100;
}
if (Key.isDown(65)) {
_parent.attack();
}
if (Key.isDown(38)) {
_parent.jump = true;
_parent.gotoAndStop("jump");
}
}
}
Instance of Symbol 448 MovieClip in Symbol 495 MovieClip Frame 9
onClipEvent (enterFrame) {
if (!Key.isDown(65)) {
k = false;
}
if (!_root.pau) {
if (Key.isDown(83)) {
if (Key.isDown(65)) {
_parent.special();
}
}
if (Key.isDown(37)) {
_parent._xscale = -100;
} else if (Key.isDown(39)) {
_parent._xscale = 100;
}
}
}
Instance of Symbol 453 MovieClip in Symbol 495 MovieClip Frame 13
onClipEvent (enterFrame) {
if (!Key.isDown(65)) {
k = false;
}
if (!_root.pau) {
if (Key.isDown(83)) {
if (Key.isDown(65)) {
_parent.special();
}
}
if (Key.isDown(37)) {
_parent._xscale = -100;
} else if (Key.isDown(39)) {
_parent._xscale = 100;
}
if (!Key.isDown(65)) {
_parent.gotoAndStop("idle");
}
}
}
Instance of Symbol 464 MovieClip in Symbol 495 MovieClip Frame 21
onClipEvent (enterFrame) {
if (!Key.isDown(65)) {
k = false;
}
if (!_root.pau) {
if (Key.isDown(83)) {
if (Key.isDown(65)) {
_parent.special();
}
}
if (Key.isDown(37)) {
_parent._xscale = -100;
} else if (Key.isDown(39)) {
_parent._xscale = 100;
}
}
}
Instance of Symbol 474 MovieClip in Symbol 495 MovieClip Frame 27
onClipEvent (enterFrame) {
if (!Key.isDown(65)) {
k = false;
}
if (!_root.pau) {
if (Key.isDown(83)) {
if (Key.isDown(65)) {
_parent.special();
}
}
if (Key.isDown(37)) {
_parent._xscale = -100;
} else if (Key.isDown(39)) {
_parent._xscale = 100;
}
}
}
Instance of Symbol 477 MovieClip in Symbol 495 MovieClip Frame 33
onClipEvent (enterFrame) {
if (!Key.isDown(65)) {
k = false;
}
if (!_root.pau) {
if (Key.isDown(37)) {
_parent._xscale = -100;
} else if (Key.isDown(39)) {
_parent._xscale = 100;
}
}
}
Symbol 495 MovieClip Frame 40
_root.d++;
_root.attachMovie("smoke_mc_2", "s" + _root.d, _root.d);
_root["s" + _root.d]._x = _x;
_root["s" + _root.d]._xscale = _xscale;
_root["s" + _root.d]._y = _y;
if (!jj) {
jump = true;
_y = (_y - 30);
grav = 1;
}
Instance of Symbol 480 MovieClip in Symbol 495 MovieClip Frame 40
onClipEvent (enterFrame) {
if (!_root.pau) {
if (_parent.grav == 0) {
_parent.gotoAndStop("idle");
}
if (Key.isDown(37)) {
_parent._xscale = -100;
_parent._x = _parent._x - _parent.speed;
}
if (Key.isDown(39)) {
_parent._xscale = 100;
_parent._x = _parent._x + _parent.speed;
}
}
}
Symbol 497 MovieClip Frame 1
_visible = false;
t = 0;
time = 300;
time = time - (_root.wave * 10);
timer = random(100) + 100;
onEnterFrame = function () {
if (time <= 60) {
time = 60;
}
if (!_root.pau) {
if (_root.killed) {
timer = timer + 30;
_root.killed = false;
}
if (hitTest(_root.screenhit)) {
timer++;
if (timer > time) {
_root.d++;
cure = "enemy" + _root.d;
lol = "Gray";
_root.attachMovie(lol, cure, _root.d);
lmaox = (_x + random(200)) - 100;
lmaoy = _y - random(100);
_root[cure]._x = lmaox;
_root[cure]._y = lmaoy;
if (time > 50) {
time = time - 10;
}
timer = 0;
}
}
}
};
Symbol 501 MovieClip Frame 1
_root.screenhit._x = _parent._x;
_root.screenhit._y = _parent._y;
_root.bg._y = _parent._y / 2;
_root.bg._x = _parent._x / 2;
if (_root.shakeon) {
shakex = _root.shakex;
shakey = _root.shakey;
} else {
shakex = 0;
shakey = 0;
}
if (!_root.pau) {
_root._x = ((_parent._x * -1) + 300) + shakex;
_root._y = ((_parent._y * -1) + 200) + shakey;
}
Symbol 501 MovieClip Frame 2
gotoAndPlay (1);
Symbol 509 MovieClip Frame 1
stop();
Symbol 509 MovieClip Frame 2
stopAllSounds();
Symbol 509 MovieClip Frame 43
gotoAndPlay (42);
Symbol 509 MovieClip Frame 44
gotoAndPlay (42);
Symbol 509 MovieClip Frame 45
gotoAndPlay (42);
Symbol 547 MovieClip Frame 1
stop();
Symbol 547 MovieClip Frame 45
_root.kills = 0;
Symbol 555 MovieClip Frame 1
stop();
Symbol 560 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 564 Button
on (release) {
play();
}
Symbol 565 Button
on (release) {
_root.gaming = false;
_root._x = 0;
_root._y = 0;
_root.gotoAndStop("menu");
}
Symbol 566 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 567 Button
on (release) {
NewgroundsAPI.loadMySite();
}
Symbol 571 MovieClip Frame 1
cam._visible = false;
_root.pau = false;
stop();
onEnterFrame = function () {
if (_root.weapon == 5) {
amm = "Ammo: " + _root.gun1_ammo;
} else if (_root.weapon == 6) {
amm = "Ammo: " + _root.gun2_ammo;
} else if (_root.weapon == 7) {
amm = "Ammo: " + _root.gun3_ammo;
} else {
amm = "";
}
hudd = (((((((((((((((((("life: " + _root.life) + "/300") + newline) + "score: ") + _root.score) + newline) + "coins: ") + _root.coins) + newline) + "wave: ") + _root.wave) + newline) + "Nades: ") + _root.nades) + newline) + "kills needed: ") + _root.wavekills) + "/") + _root.killsneeded;
if (!_root.gaming) {
swapDepths(9999);
this.removeMovieClip();
}
if (!swap) {
swapDepths(random(9999999));
swap = true;
}
};
Instance of Symbol 519 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 522 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 2) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 527 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 3) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 530 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 4) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 535 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 5) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 538 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 6) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 541 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 7) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 34 MovieClip [hit] in Symbol 571 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
} else {
key = false;
}
if (Key.isDown(80)) {
if (!key) {
_parent.play();
key = true;
}
}
}
Symbol 571 MovieClip Frame 2
stop();
_root.pau = true;
Symbol 576 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 589 MovieClip Frame 1
stop();
_visible = false;
_name = "grunts";
f = 13;
Symbol 601 MovieClip Frame 1
stop();
_name = "wacks";
_visible = false;
f = 13;
Symbol 615 MovieClip Frame 1
stop();
_name = "wizzes";
_visible = false;
f = 13;
Symbol 626 MovieClip Frame 1
stop();
_name = "gunshots";
_visible = false;
f = 13;
Symbol 634 MovieClip Frame 1
stop();
_name = "explosions";
_visible = false;
f = 7;
Symbol 642 MovieClip Frame 1
f = 7;
stop();
_visible = false;
_name = "steps";
Symbol 645 MovieClip Frame 2
stopAllSounds();
Symbol 645 MovieClip Frame 4
stop();
Symbol 653 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 658 Button
on (release) {
gotoAndStop ("game");
}
Symbol 660 Button
on (release) {
gotoAndStop ("shop");
}
Symbol 707 Button
on (release) {
_root.coins = _root.coins - 10;
_root.life = _root.life + 10;
_root.buysound.play();
}
Symbol 721 Button
on (release) {
_root.coins = _root.coins - 90;
_root.weapon2_unlocked = true;
_root.buysound.play();
}
Symbol 731 Button
on (release) {
_root.coins = _root.coins - 150;
_root.weapon3_unlocked = true;
_root.buysound.play();
}
Symbol 739 Button
on (release) {
_root.coins = _root.coins - 250;
_root.weapon4_unlocked = true;
_root.buysound.play();
}
Symbol 746 Button
on (release) {
_root.coins = _root.coins - 400;
_root.weapon5_unlocked = true;
_root.buysound.play();
}
Symbol 751 Button
on (release) {
_root.coins = _root.coins - 500;
_root.weapon6_unlocked = true;
_root.buysound.play();
}
Symbol 755 Button
on (release) {
_root.coins = _root.coins - 700;
_root.weapon7_unlocked = true;
_root.buysound.play();
}
Symbol 758 Button
on (release) {
_root.coins = _root.coins - 10;
_root.gun1_ammo = _root.gun1_ammo + 10;
_root.buysound.play();
}
Symbol 761 Button
on (release) {
_root.coins = _root.coins - 15;
_root.gun2_ammo = _root.gun2_ammo + 6;
_root.buysound.play();
}
Symbol 765 Button
on (release) {
_root.coins = _root.coins - 20;
_root.gun3_ammo = _root.gun3_ammo + 5;
_root.buysound.play();
}
Symbol 769 Button
on (release) {
_root.coins = _root.coins - 20;
_root.nades = _root.nades + 3;
_root.buysound.play();
}
Symbol 772 MovieClip Frame 1
onEnterFrame = function () {
coins = "coins: " + _root.coins;
};
Instance of Symbol 715 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.life < 300) && (_root.coins > 9)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 727 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.weapon2_unlocked == false) && (_root.coins > 89)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 735 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.weapon3_unlocked == false) && (_root.coins > 149)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 743 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.weapon4_unlocked == false) && (_root.coins > 249)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 749 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.weapon5_unlocked == false) && (_root.coins > 399)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 753 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.weapon6_unlocked == false) && (_root.coins > 499)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 757 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.weapon7_unlocked == false) && (_root.coins > 699)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 759 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.coins > 9) && (_root.weapon5_unlocked == true)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 763 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.coins > 14) && (_root.weapon6_unlocked == true)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 767 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.coins > 19) && (_root.weapon7_unlocked == true)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 771 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.coins > 19) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 775 MovieClip Frame 1
stop();
Symbol 778 MovieClip Frame 1
onEnterFrame = function () {
hudd = ((((((((((((((((((("life: " + _root.life) + "/300") + newline) + "score: ") + _root.score) + newline) + "coins: ") + _root.coins) + newline) + "machinegun ammo: ") + _root.gun1_ammo) + newline) + "shotgun ammo: ") + _root.gun2_ammo) + newline) + "rockets ammo: ") + _root.gun3_ammo) + newline) + "Nades: ") + _root.nades;
};