Frame 1
function gotoMySite() {
getURL ("http://www.arcadebomb.com", "_blank", "POST");
}
function gotoMySite2() {
}
stop();
customize._visible = false;
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var mySiteLink = new ContextMenuItem("Our Sponsors", gotoMySite);
var mySiteLink2 = new ContextMenuItem("HighScore=" + _root.scorexx);
myMenu.customItems.push(mySiteLink, copyrightNotice);
myMenu.customItems.push(mySiteLink2);
myMenu.customItems.push(qualitysetter);
myMenu.customItems.push(qualitysetter2);
myMenu.customItems.push(qualitysetter3);
_root.menu = myMenu;
YOUR_MOVIE_ID = 4772;
var Newgrounds_API = new NewgroundsAPI_AS2(YOUR_MOVIE_ID);
NewgroundsAPI.connectMovie(4772);
Frame 2
stop();
Instance of Symbol 151 MovieClip "infos" in Frame 2
onClipEvent (load) {
_visible = false;
}
Frame 3
if (qset == undefined) {
qset = 2;
}
Frame 4
stop();
enemy2.gotoAndStop(2);
enemy3.gotoAndStop(2);
enemy4.gotoAndStop(2);
enemy5.gotoAndStop(2);
enemy6.gotoAndStop(2);
enemy7.gotoAndStop(2);
xset2 = 700;
xset3 = -100;
xset4 = 700;
xset5 = -100;
xset6 = 700;
xset7 = -100;
xset8 = -100;
splatter1.gotoAndStop(1);
crosshair.swapDepths(3002);
gate.swapDepths(3000);
tranny.swapDepths(15000);
gauge.swapDepths(5000);
wizard1.swapDepths(120);
enemy2.swapDepths(121);
enemy3.swapDepths(122);
enemy4.swapDepths(123);
enemy5.swapDepths(124);
enemy6.swapDepths(125);
enemy7.swapDepths(126);
enemy8.swapDepths(126);
if (nameentry == undefined) {
nameentry = "Urban Soldier";
}
kills = 0;
score = 0;
quota = 2;
wave = 1;
gax = bg._x - gate._x;
gay = bg._y - gate._y;
wizx2 = bg._x - enemy2._x;
wizy2 = bg._y - enemy2._y;
wizx3 = bg._x - enemy3._x;
wizy3 = bg._y - enemy3._y;
wizx4 = bg._x - enemy4._x;
wizy4 = bg._y - enemy4._y;
wizx5 = bg._x - enemy5._x;
wizy5 = bg._y - enemy5._y;
wizx6 = bg._x - enemy6._x;
wizy6 = bg._y - enemy6._y;
wizx7 = bg._x - enemy7._x;
wizy7 = bg._y - enemy7._y;
bg.wall._visible = false;
inty = bg._y;
rory = 1;
ros = 1;
cam = 1;
refocus = 0;
jump = 0;
ht = 0;
reload = 0;
firerate = 4;
combo = 1;
level = 1;
slash = 0;
cam2 = 1;
cam2 = 1;
hp1 = 100;
hp2 = 50;
hp3 = 80;
hp4 = 80;
hp5 = 80;
hp6 = 80;
hp7 = 80;
hp8 = 80;
spq = 2 + (Math.random() * 2);
sl = 1;
hpd1 = 5;
hpd2 = 5;
hpd3 = 5;
hpd4 = 5;
hpd5 = 5;
hpd6 = 5;
hpd7 = 5;
hpd8 = 5;
chaos = 150;
gun = 1;
gro = 1;
ammo1 = 30;
rounds1 = 99;
roundsq1 = 99;
ammoq1 = 30;
recoil1 = 0;
pwr1 = 8;
ammo2 = 100;
rounds2 = 1;
roundsq2 = 1;
ammoq2 = 100;
recoil2 = 14;
pwr2 = 12;
ammo3 = 30;
rounds3 = 6;
roundsq3 = 6;
ammoq3 = 30;
recoil3 = 0;
pwr3 = 8;
ammo4 = 10;
rounds4 = 6;
roundsq4 = 6;
ammoq4 = 10;
recoil4 = 12;
pwr4 = 12;
ammo5 = 50;
rounds5 = 3;
roundsq5 = 3;
ammoq5 = 50;
recoil5 = 0;
pwr5 = 12;
ammo6 = 30;
rounds6 = 4;
roundsq6 = 4;
ammoq6 = 30;
recoil6 = 14;
pwr6 = 7;
ammo7 = 6;
rounds7 = 3;
ammoq7 = 6;
roundsq7 = 3;
recoil7 = 0;
pwr7 = 70;
ammo8 = 50;
rounds8 = 2;
ammoq8 = 50;
roundsq8 = 2;
recoil8 = 0;
pwr8 = 9;
charge = 0;
spawn = 0;
Mouse.hide();
startDrag ("crosshair", true);
att1 = 0;
dmg1 = 0;
wave = 1;
edmg1 = 0;
ejump1 = 0;
eht1 = 0;
edmg2 = 0;
ejump2 = 0;
eht2 = 0;
edmg3 = 0;
ejump3 = 0;
eht3 = 0;
edmg4 = 0;
ejump4 = 0;
eht4 = 0;
edmg5 = 0;
ejump5 = 0;
eht5 = 0;
edmg6 = 0;
ejump6 = 0;
eht6 = 0;
edmg7 = 0;
ejump7 = 0;
eht7 = 0;
edmg8 = 0;
ejump8 = 0;
eht8 = 0;
etype1 = 1;
etype2 = 1;
etype3 = 1;
etype4 = 1;
etype5 = 1;
etype6 = 1;
etype7 = 1;
etype8 = 1;
turn1 = 120;
turn2 = 120;
turn3 = 120;
turn4 = 120;
turn5 = 120;
turn6 = 120;
turn7 = 120;
turn8 = 120;
site1 = true;
site2 = true;
site3 = true;
site4 = true;
site5 = true;
site6 = true;
site7 = true;
site8 = true;
onEnterFrame = function () {
i = 0;
while (i <= 8) {
if (((wizard1._x < (_root["enemy" + i]._x - 50)) && (_root["site" + i] == true)) && (_root["hp" + i] > 0)) {
_root["wizx" + i] = _root["wizx" + i] + 3;
_root["enemy" + i]._xscale = 60;
_root["enemy" + i].body.gotoAndStop("walk");
}
if (((wizard1._x > (_root["enemy" + i]._x + 50)) && (_root["site" + i] == true)) && (_root["hp" + i] > 0)) {
_root["wizx" + i] = _root["wizx" + i] - 3;
_root["enemy" + i]._xscale = -60;
_root["enemy" + i].body.gotoAndStop("walk");
}
if (((wizard1._x >= (_root["enemy" + i]._x - 50)) && (wizard1._x <= (_root["enemy" + i]._x + 50))) && (_root["hp" + i] > 0)) {
_root["enemy" + i].body.gotoAndStop("attack");
}
if (enemy3.hitTest(enemy2)) {
wizx3 = wizx3 + 0.2;
}
if (enemy4.hitTest(enemy3)) {
wizx4 = wizx4 - 0.2;
}
if (enemy5.hitTest(enemy4)) {
wizx5 = wizx5 + 0.2;
}
if (enemy6.hitTest(enemy5)) {
wizx6 = wizx6 + 0.2;
}
if (qset <= 1) {
_quality = "Low";
}
if (qset == 2) {
_quality = "Medium";
}
if (qset >= 3) {
_quality = "High";
}
if (mute == true) {
stopAllSounds();
}
if (!Key.isDown(77)) {
palm = false;
}
if (!Key.isDown(81)) {
palmq = false;
}
if ((Key.isDown(77) && (palm != true)) && (mute != true)) {
mute = true;
palm = true;
}
if ((Key.isDown(77) && (palm != true)) && (mute == true)) {
mute = false;
palm = true;
}
if ((Key.isDown(77) && (palm != true)) && (mute != true)) {
mute = true;
palm = true;
}
if ((Key.isDown(81) && (palmq != true)) && (qset <= 1)) {
qset = 2;
palmq = true;
}
if ((Key.isDown(81) && (palmq != true)) && (qset == 2)) {
qset = 3;
palmq = true;
}
if ((Key.isDown(81) && (palmq != true)) && (qset >= 3)) {
qset = 1;
palmq = true;
}
if (shot2.hitTest(_root["enemy" + i].corex) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("hurt");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot2._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - _root["pwr" + gun];
duplicateMovieClip (blood, "splat2", 200);
splatx2 = bg._x - shot2._x;
splat2._rotation = Math.random() * 360;
splaty2 = bg._y - shot2._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 1;
removeMovieClip(shot2);
}
if (shot3.hitTest(_root["enemy" + i].corex) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("hurt");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot3._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - _root["pwr" + gun];
duplicateMovieClip (blood, "splat3", 203);
splatx3 = bg._x - shot3._x;
splat3._rotation = Math.random() * 360;
splaty3 = bg._y - shot3._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 1;
removeMovieClip(shot3);
}
if (shot4.hitTest(_root["enemy" + i].corex) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("hurt");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot4._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - _root["pwr" + gun];
duplicateMovieClip (blood, "splat4", 204);
splatx4 = bg._x - shot4._x;
splaty4 = bg._y - shot4._y;
splat4._rotation = Math.random() * 360;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 1;
removeMovieClip(shot4);
}
if (shot5.hitTest(_root["enemy" + i].corex) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("hurt");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot5._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - _root["pwr" + gun];
duplicateMovieClip (blood, "splat5", 205);
splatx5 = bg._x - shot5._x;
splat1._rotation = Math.random() * 360;
splaty5 = bg._y - shot5._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 1;
removeMovieClip(shot5);
}
if (shot6.hitTest(_root["enemy" + i].corex) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("hurt");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot6._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - _root["pwr" + gun];
duplicateMovieClip (blood, "splat6", 206);
splatx6 = bg._x - shot6._x;
splat6._rotation = Math.random() * 360;
splaty6 = bg._y - shot6._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 1;
removeMovieClip(shot6);
}
if (shot7.hitTest(_root["enemy" + i].corex) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("hurt");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot7._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - _root["pwr" + gun];
duplicateMovieClip (blood, "splat7", 207);
splatx7 = bg._x - shot7._x;
splaty7 = bg._y - shot7._y;
splat7._rotation = Math.random() * 360;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 1;
removeMovieClip(shot7);
}
if (shot8.hitTest(_root["enemy" + i].corex) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("hurt");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot8._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - _root["pwr" + gun];
duplicateMovieClip (blood, "splat8", 200);
splatx8 = bg._x - shot8._x;
splat8._rotation = Math.random() * 360;
splaty8 = bg._y - shot8._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 1;
removeMovieClip(shot8);
}
if (shot1.hitTest(_root["enemy" + i].corex) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("hurt");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot1._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - _root["pwr" + gun];
duplicateMovieClip (blood, "splat1", 201);
splat1._rotation = Math.random() * 360;
splatx1 = bg._x - shot1._x;
splaty1 = bg._y - shot1._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 1;
removeMovieClip(shot1);
}
if (shot2.hitTest(_root["enemy" + i].head) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("headshot");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot2._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - (_root["pwr" + gun] * 1.5);
duplicateMovieClip (blood, "splat2", 200);
splatx2 = bg._x - shot2._x;
splat2._rotation = Math.random() * 360;
splaty2 = bg._y - shot2._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
shot2.gotoAndStop(10);
removeMovieClip(shot2);
}
if (shot3.hitTest(_root["enemy" + i].head) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("headshot");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot3._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - (_root["pwr" + gun] * 1.5);
duplicateMovieClip (blood, "splat3", 203);
splatx3 = bg._x - shot3._x;
splat3._rotation = Math.random() * 360;
splaty3 = bg._y - shot3._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
shot3.gotoAndStop(10);
removeMovieClip(shot3);
}
if (shot4.hitTest(_root["enemy" + i].head) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("headshot");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot4._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - (_root["pwr" + gun] * 1.5);
duplicateMovieClip (blood, "splat4", 204);
splatx4 = bg._x - shot4._x;
shot4.gotoAndStop(10);
splaty4 = bg._y - shot4._y;
splat4._rotation = Math.random() * 360;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
removeMovieClip(shot4);
}
if (shot5.hitTest(_root["enemy" + i].head) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("headshot");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot5._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - (_root["pwr" + gun] * 1.5);
duplicateMovieClip (blood, "splat5", 205);
splatx5 = bg._x - shot5._x;
splat1._rotation = Math.random() * 360;
splaty5 = bg._y - shot5._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
shot5.gotoAndStop(10);
removeMovieClip(shot5);
}
if (shot6.hitTest(_root["enemy" + i].head) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("headshot");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot6._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - (_root["pwr" + gun] * 1.5);
duplicateMovieClip (blood, "splat6", 206);
splatx6 = bg._x - shot6._x;
splat6._rotation = Math.random() * 360;
splaty6 = bg._y - shot6._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
shot6.gotoAndStop(10);
removeMovieClip(shot6);
}
if (shot7.hitTest(_root["enemy" + i].head) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("headshot");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot7._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - (_root["pwr" + gun] * 1.5);
duplicateMovieClip (blood, "splat7", 207);
splatx7 = bg._x - shot7._x;
splaty7 = bg._y - shot7._y;
splat7._rotation = Math.random() * 360;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
shot7.gotoAndStop(10);
removeMovieClip(shot7);
}
if (shot8.hitTest(_root["enemy" + i].head) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("headshot");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot8._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - (_root["pwr" + gun] * 1.5);
duplicateMovieClip (blood, "splat8", 200);
splatx8 = bg._x - shot8._x;
splat8._rotation = Math.random() * 360;
splaty8 = bg._y - shot8._y;
shot8.gotoAndStop(10);
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
removeMovieClip(shot8);
}
if (shot1.hitTest(_root["enemy" + i].head) && (_root["hp" + i] > 0)) {
_root["enemy" + i].gotoAndPlay("headshot");
_root["edmg" + i] = _root["edmg" + i] + ((_root["pwr" + gun] / 20) * Math.cos(shot1._rotation * (Math.PI/180)));
_root["hp" + i] = _root["hp" + i] - (_root["pwr" + gun] * 1.5);
duplicateMovieClip (blood, "splat1", 201);
splat1._rotation = Math.random() * 360;
splatx1 = bg._x - shot1._x;
shot1.gotoAndStop(10);
splaty1 = bg._y - shot1._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
removeMovieClip(shot1);
}
if (shot2.hitTest(_root["enemy" + i].armor) && (_root["hp" + i] > 0)) {
duplicateMovieClip (spark, "splat2", 200);
splatx2 = bg._x - shot2._x;
splat2._rotation = Math.random() * 360;
splaty2 = bg._y - shot2._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
shot2.gotoAndStop(10);
removeMovieClip(shot2);
}
if (shot3.hitTest(_root["enemy" + i].armor) && (_root["hp" + i] > 0)) {
duplicateMovieClip (spark, "splat3", 203);
splatx3 = bg._x - shot3._x;
splat3._rotation = Math.random() * 360;
splaty3 = bg._y - shot3._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
shot3.gotoAndStop(10);
removeMovieClip(shot3);
}
if (shot4.hitTest(_root["enemy" + i].armor) && (_root["hp" + i] > 0)) {
duplicateMovieClip (spark, "splat4", 204);
splatx4 = bg._x - shot4._x;
shot4.gotoAndStop(10);
splaty4 = bg._y - shot4._y;
splat4._rotation = Math.random() * 360;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
removeMovieClip(shot4);
}
if (shot5.hitTest(_root["enemy" + i].armor) && (_root["hp" + i] > 0)) {
duplicateMovieClip (blood, "splat5", 205);
splatx5 = bg._x - shot5._x;
splat1._rotation = Math.random() * 360;
splaty5 = bg._y - shot5._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
shot5.gotoAndStop(10);
removeMovieClip(shot5);
}
if (shot6.hitTest(_root["enemy" + i].armor) && (_root["hp" + i] > 0)) {
duplicateMovieClip (spark, "splat6", 206);
splatx6 = bg._x - shot6._x;
splat6._rotation = Math.random() * 360;
splaty6 = bg._y - shot6._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
shot6.gotoAndStop(10);
removeMovieClip(shot6);
}
if (shot7.hitTest(_root["enemy" + i].armor) && (_root["hp" + i] > 0)) {
duplicateMovieClip (spark, "splat7", 207);
splatx7 = bg._x - shot7._x;
splaty7 = bg._y - shot7._y;
splat7._rotation = Math.random() * 360;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
shot7.gotoAndStop(10);
removeMovieClip(shot7);
}
if (shot8.hitTest(_root["enemy" + i].armor) && (_root["hp" + i] > 0)) {
duplicateMovieClip (spark, "splat8", 200);
splatx8 = bg._x - shot8._x;
splat8._rotation = Math.random() * 360;
splaty8 = bg._y - shot8._y;
shot8.gotoAndStop(10);
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
removeMovieClip(shot8);
}
if (shot1.hitTest(_root["enemy" + i].armor) && (_root["hp" + i] > 0)) {
duplicateMovieClip (spark, "splat1", 201);
splat1._rotation = Math.random() * 360;
splatx1 = bg._x - shot1._x;
shot1.gotoAndStop(10);
splaty1 = bg._y - shot1._y;
refocus = 10 + (2 * _root["pwr" + gun]);
cam = i;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
removeMovieClip(shot1);
}
if (wizard1.hitTest(_root["enemy" + i].body.attack.hitbox)) {
_root.dmg1 = 3.8;
_root.hp1 = _root.hp1 - 3;
duplicateMovieClip (bloodx, "splat1", 201);
splat1._rotation = Math.random() * 360;
splatx1 = bg._x - wizard1._x;
splaty1 = bg._y - wizard1._y;
cam = 1;
cam2 = 1;
}
if (wizard1.hitbox.hitTest(_root["enemy" + i])) {
_root["enemy" + i].gotoAndPlay("headshot");
_root["edmg" + i] = har * 2.8;
_root["hp" + i] = _root["hp" + i] - har;
duplicateMovieClip (bloodx, "splat1", 201);
splat1._rotation = Math.random() * 360;
splatx1 = bg._x - _root["enemy" + i]._x;
splaty1 = bg._y - _root["enemy" + i]._y;
cam = 1;
cam2 = i;
_root["site" + i] = true;
_root["site" + i] = true;
score = score + 10;
}
if (((_root["hp" + i] <= 0) && (_root["dead" + i] != true)) && (kills < quota)) {
_root["respawn" + i] = 200;
_root["enemy" + i].gotoAndPlay("die");
score = score + 100;
duplicateMovieClip (killsplus, "killplus", 999);
killplus._x = _root["enemy" + i]._x;
killplus._y = _root["enemy" + i]._y;
duplicateMovieClip ("bloodchunk", "blo1", 551);
blox1 = bg._x - _root["enemy" + i]._x;
bloy1 = bg._y - _root["enemy" + i]._y;
blo1.gotoAndStop(random(6));
bloburst1 = Math.random() * 8;
blojump1 = 3 + (Math.random() * 8);
duplicateMovieClip ("bloodchunk", "blo2", 552);
blox2 = bg._x - _root["enemy" + i]._x;
bloy2 = bg._y - _root["enemy" + i]._y;
bloburst2 = Math.random() * 8;
blo2.gotoAndStop(random(6));
blo2._xscale = -30;
blojump2 = 4 + (Math.random() * 9);
duplicateMovieClip ("bloodchunk", "blo3", 553);
blox3 = bg._x - _root["enemy" + i]._x;
bloy3 = bg._y - _root["enemy" + i]._y;
bloburst3 = Math.random() * 8;
blojump3 = 3 + (Math.random() * 8);
blo3.gotoAndStop(random(6));
duplicateMovieClip ("bloodchunk", "blo4", 554);
blox4 = bg._x - _root["enemy" + i]._x;
bloy4 = bg._y - _root["enemy" + i]._y;
bloburst4 = Math.random() * 8;
blo4._xscale = -30;
blo4.gotoAndStop(random(6));
blojump4 = 3 + (Math.random() * 11);
duplicateMovieClip (splat, "splatter" + sl, sl + 14);
_root["splx" + sl] = bg._x - _root["enemy" + i]._x;
_root["splatter" + sl].gotoAndStop(random(5));
sl = sl + 1;
spawn = spawn + 1;
refocus = 20;
kills = kills + 1;
cam = 1;
cam2 = 1;
_root["site" + i] = true;
_root["dead" + i] = true;
}
if ((_root["respawn" + i] < 2) && (_root["dead" + i] == true)) {
_root["wizx" + i] = bg._x - (Math.random() * 600);
}
if (_root["dead" + i] == true) {
_root["respawn" + i] = _root["respawn" + i] - 1;
}
if (((_root["respawn" + i] <= 0) && (_root["dead" + i] == true)) && (quota > kills)) {
_root["hp" + i] = 100 * level;
_root["enemy" + i].gotoAndPlay("rise");
_root["wizx" + i] = bg._x - 0;
_root["dead" + i] = false;
_root["site" + i] = true;
}
if ((_root["wizx" + i] == undefined) || (_root["wizx" + i] == NaN)) {
_root["wizx" + i] = 100;
}
if (sl > 9) {
sl = 1;
}
if ((_root["shot" + i]._x > 900) || (_root["shot" + i]._x < -100)) {
removeMovieClip(_root["shot" + i]);
_root["shot" + i].gotoAndStop(10);
}
if (bg.wall.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true)) {
removeMovieClip(_root["shot" + i]);
}
if ((_root["enemy" + i]._y > (bg._y - 30)) && (_root["ejump" + i] < 0)) {
_root["enemy" + i]._y = bg._y - 30;
_root["ejump" + i] = 0;
_root["eht" + i] = 0;
}
if (_root["enemy" + i]._y > (bg._y - 30)) {
_root["wizy" + i] = bg._y - (bg._y - 30);
}
if (_root["enemy" + i]._y < (bg._y - 40)) {
_root["eht" + i] = 0.5;
}
if (((_root["cap" + i]._y > bg._y) && (_root["capjump" + i] < -1)) && (_root["capbounce" + i] > 0)) {
_root["capjump" + i] = _root["capjump" + i] * -0.3;
_root["cap" + i].play();
_root["capbounce" + i] = _root["capbounce" + i] - 1;
}
if ((_root["cap" + i]._y < bg._y) && (_root["capbounce" + i] > 0)) {
_root["capjump" + i] = _root["capjump" + i] - 0.5;
_root["cap" + i]._rotation = _root["cap" + i]._rotation + _root["capro" + i];
}
if (_root["capbounce" + i] <= 0) {
_root["capjump" + i] = 0;
}
_root["edmg" + i] = _root["edmg" + i] * 0.93;
_root["wizx" + i] = _root["wizx" + i] - ((_root["edmg" + i] * (_root["enemy" + i]._xscale / 100)) / 6);
_root["ejump" + i] = _root["ejump" + i] - _root["eht" + i];
_root["wizy" + i] = _root["wizy" + i] + (_root["ejump" + i] / 6);
_root["sparky" + i]._x = bg._x - _root["sparx" + i];
_root["sparky" + i]._y = bg._y - _root["spary" + i];
_root["shot" + i]._x = bg._x - _root["shotx" + i];
_root["shot" + i]._y = bg._y - _root["shoty" + i];
_root["shotx" + i] = _root["shotx" + i] - (30 * Math.cos(_root["shot" + i]._rotation * (Math.PI/180)));
_root["shoty" + i] = _root["shoty" + i] - (30 * Math.sin(_root["shot" + i]._rotation * (Math.PI/180)));
_root["cap" + i]._x = bg._x - _root["capx" + i];
_root["cap" + i]._y = bg._y - _root["capy" + i];
_root["capx" + i] = _root["capx" + i] + _root["capburst" + i];
_root["capy" + i] = _root["capy" + i] + _root["capjump" + i];
_root["capburst" + i] = _root["capburst" + i] * 0.93;
i++;
}
if (((_root["wizard" + cam]._x < 250) && (cam <= 1)) || ((_root["wizard" + cam]._x > 350) && (cam <= 1))) {
bg._x = bg._x + (posx / 20);
midg._x = midg._x + (posx / 300);
wizard1._x = wizard1._x + (posx / 20);
}
if ((_root["wizard" + cam]._y < 120) && (cam <= 1)) {
bg._y = bg._y + (posy / 40);
midg._y = midg._y + (posy / 350);
wizard1._y = wizard1._y + (posy / 40);
}
if ((_root["wizard" + cam]._y > 290) && (cam <= 1)) {
bg._y = bg._y + (posy / 25);
midg._y = midg._y + (posy / 250);
wizard1._y = wizard1._y + (posy / 25);
}
if (((_root["enemy" + cam]._x < 100) && (cam > 1)) || ((_root["enemy" + cam]._x > 450) && (cam > 1))) {
bg._x = bg._x + (posx / 40);
midg._x = midg._x + (posx / 600);
wizard1._x = wizard1._x + (posx / 40);
}
if ((_root["enemy" + cam]._y < 120) && (cam > 1)) {
bg._y = bg._y + (posy / 40);
midg._y = midg._y + (posy / 350);
wizard1._y = wizard1._y + (posy / 40);
}
if ((_root["enemy" + cam]._y > 290) && (cam > 1)) {
bg._y = bg._y + (posy / 25);
midg._y = midg._y + (posy / 250);
wizard1._y = wizard1._y + (posy / 25);
}
if (((wizard._x <= 0) && (refocus <= 15)) || ((wizard._x >= 600) && (refocus <= 15))) {
cam = 1;
}
if (cam <= 1) {
posy = 290 - _root["wizard" + cam]._y;
posx = 300 - _root["wizard" + cam]._x;
}
if (cam > 1) {
posy = 290 - _root["enemy" + cam]._y;
posx = 300 - _root["enemy" + cam]._x;
}
if (refocus <= 0) {
cam = 1;
}
if (refocus > 0) {
refocus = refocus - 1;
}
if (((((((Key.isDown(68) && (!Key.isDown(39))) && (pause != true)) && (hp1 > 0)) && (wizard1._xscale > 0)) && (att1 <= 0.9)) && (dmg1 <= 0.9)) && (charge <= 0)) {
wizard1._x = wizard1._x + 5;
goright = true;
ros = 1;
wizard1.legs.shoes.play();
}
if (((((((Key.isDown(65) && (!Key.isDown(37))) && (pause != true)) && (hp1 > 0)) && (wizard1._xscale < 0)) && (att1 <= 0.9)) && (dmg1 <= 0.9)) && (charge <= 0)) {
wizard1._x = wizard1._x - 5;
goleft = true;
ros = 1;
wizard1.legs.shoes.play();
}
if (((((((Key.isDown(68) && (!Key.isDown(39))) && (pause != true)) && (hp1 > 0)) && (wizard1._xscale < 0)) && (att1 <= 0.9)) && (dmg1 <= 0.9)) && (charge <= 0)) {
wizard1._x = wizard1._x + 5;
goright = true;
ros = 2;
wizard1.legs.shoes.play();
}
if (((((((Key.isDown(65) && (!Key.isDown(37))) && (pause != true)) && (hp1 > 0)) && (wizard1._xscale > 0)) && (att1 <= 0.9)) && (dmg1 <= 0.9)) && (charge <= 0)) {
wizard1._x = wizard1._x - 5;
goleft = true;
ros = 2;
wizard1.legs.shoes.play();
}
if ((((((Key.isDown(87) && (pause != true)) && (hp1 > 0)) && (jump == 0)) && (cop != true)) && (gun > 0)) && (charge <= 0)) {
jump = 12;
ht = 0.54;
cop = true;
wizard1.gotoAndPlay("jump" + ros);
}
if ((((((Key.isDown(87) && (gun > 0)) && (jump > -2)) && (charge <= 0)) && (jump < 2)) && (djump != true)) && (cop != true)) {
jump = 12;
djump = true;
ht = 0.54;
cop = true;
wizard1.gotoAndPlay("jump" + ros);
}
if (((((Key.isDown(87) && (pause != true)) && (hp1 > 0)) && (jump == 0)) && (cop != true)) && (gun <= 0)) {
jump = 12;
ht = 0.54;
cop = true;
wizard1.gotoAndPlay("jumpx" + ros);
}
if (((((((Key.isDown(87) && (pause != true)) && (hp1 > 0)) && (gun <= 0)) && (jump > -2)) && (jump < 2)) && (djump != true)) && (cop != true)) {
jump = 12;
djump = true;
ht = 0.54;
cop = true;
wizard1.gotoAndPlay("jumpx" + ros);
}
if ((pause != true) && (jump != 0)) {
wizard1._y = wizard1._y - jump;
jump = jump - ht;
}
if (((((((Key.isDown(39) && (!Key.isDown(68))) && (pause != true)) && (hp1 > 0)) && (wizard1._xscale > 0)) && (att1 <= 0.9)) && (dmg1 <= 0.9)) && (charge <= 0)) {
wizard1._x = wizard1._x + 5;
goright = true;
ros = 1;
wizard1.legs.shoes.play();
}
if (((((((Key.isDown(37) && (!Key.isDown(65))) && (pause != true)) && (hp1 > 0)) && (wizard1._xscale < 0)) && (att1 <= 0.9)) && (dmg1 <= 0.9)) && (charge <= 0)) {
wizard1._x = wizard1._x - 5;
goleft = true;
ros = 1;
wizard1.legs.shoes.play();
}
if (((((((Key.isDown(39) && (!Key.isDown(68))) && (pause != true)) && (hp1 > 0)) && (wizard1._xscale < 0)) && (att1 <= 0.9)) && (dmg1 <= 0.9)) && (charge <= 0)) {
wizard1._x = wizard1._x + 5;
goright = true;
ros = 2;
wizard1.legs.shoes.play();
}
if (((((((Key.isDown(37) && (!Key.isDown(65))) && (pause != true)) && (hp1 > 0)) && (wizard1._xscale > 0)) && (att1 <= 0.9)) && (dmg1 <= 0.9)) && (charge <= 0)) {
wizard1._x = wizard1._x - 5;
goleft = true;
ros = 2;
wizard1.legs.shoes.play();
}
if ((((((!Key.isDown(68)) && (!Key.isDown(39))) && (pause != true)) && (hp1 > 0)) && (goright == true)) || (((!Key.isDown(65)) && (!Key.isDown(37))) && (goleft == true))) {
wizard1.legs.shoes.gotoAndStop(1);
goright = false;
goleft = false;
ros = 1;
}
if ((((((Key.isDown(38) && (pause != true)) && (hp1 > 0)) && (jump == 0)) && (cop != true)) && (gun > 0)) && (charge <= 0)) {
jump = 12;
ht = 0.54;
cop = true;
wizard1.gotoAndPlay("jump" + ros);
}
if ((((((Key.isDown(38) && (gun > 0)) && (jump > -2)) && (charge <= 0)) && (jump < 2)) && (djump != true)) && (cop != true)) {
jump = 12;
djump = true;
ht = 0.54;
cop = true;
wizard1.gotoAndPlay("jump" + ros);
}
if (((((Key.isDown(38) && (pause != true)) && (hp1 > 0)) && (jump == 0)) && (cop != true)) && (gun <= 0)) {
jump = 12;
ht = 0.54;
cop = true;
wizard1.gotoAndPlay("jumpx" + ros);
}
if (((((((Key.isDown(38) && (pause != true)) && (hp1 > 0)) && (gun <= 0)) && (jump > -2)) && (jump < 2)) && (djump != true)) && (cop != true)) {
jump = 12;
djump = true;
ht = 0.54;
cop = true;
wizard1.gotoAndPlay("jumpx" + ros);
}
if ((!Key.isDown(38)) && (!Key.isDown(87))) {
cop = false;
}
if (((wizard1._y > (bg._y - 40)) && (jump < 0)) && (gun > 0)) {
jump = 0;
ht = 0;
djump = false;
wizard1.gotoAndPlay("land");
wizard1._y = bg._y - 40;
}
if (((wizard1._y > (bg._y - 40)) && (jump < 0)) && (gun <= 0)) {
jump = 0;
ht = 0;
djump = false;
wizard1.gotoAndPlay("landx");
wizard1._y = bg._y - 40;
}
if (((pause != true) && (pause != true)) && (hp1 > 0)) {
wizard1._x = wizard1._x - (dmg1 * (wizard1._xscale / 84));
wizard1._x = wizard1._x + (att1 * (wizard1._xscale / 84));
dmg1 = dmg1 * 0.9;
att1 = att1 * 0.9;
}
if (att1 <= 0.7) {
att1 = 0;
}
if (((crosshair._x > wizard1._x) && (att1 <= 0.7)) && (dmg1 <= 0.8)) {
wizard1._xscale = 84;
wizard1.arm._rotation = Math.atan2(crosshair._y - wizard1._y, crosshair._x - wizard1._x) / (Math.PI/180);
wizard1.arm._xscale = 84;
wizard1.arm._yscale = 100;
}
if (((crosshair._x < wizard1._x) && (att1 <= 0.7)) && (dmg1 <= 0.8)) {
wizard1._xscale = -84;
wizard1.arm._rotation = Math.atan2(wizard1._y - crosshair._y, crosshair._x - wizard1._x) / (Math.PI/180);
wizard1.arm._xscale = -84;
wizard1.arm._yscale = -100;
}
if (gro == 2) {
gro = 3;
}
while (bg.wall.hitTest(wizard1._x + 30, wizard1._y, true)) {
wizard1._x = wizard1._x - 0.1;
}
while (bg.wall.hitTest(wizard1._x - 30, wizard1._y, true)) {
wizard1._x = wizard1._x + 0.1;
}
if (((needreload == true) && (pollygraph > 60)) || ((needreload == true) && (pollygraph2 > 60))) {
reload = 0;
fire = false;
reloader.play();
_root["rounds" + gun] = _root["rounds" + gun] - 1;
_root["ammo" + gun] = _root["ammoq" + gun];
needreload = false;
}
if (((_root["ammo" + gun] <= 0) && (_root["rounds" + gun] > 0)) && (needreload != true)) {
needreload = true;
duplicateMovieClip (reloading, "reloader", 333);
}
if ((roco._x < (crosshair._x - 20)) || (roco._x > (crosshair._x + 20))) {
roco._x = roco._x + (pollygraph / 20);
}
if ((roco2._y < (crosshair._y - 20)) || (roco2._y > (crosshair._y + 20))) {
roco2._y = roco2._y + (pollygraph2 / 20);
}
if (gro >= 8) {
gro = 1;
}
if (((((gun == 2) || (gun == 3)) || (gun == 5)) || (gun == 6)) || (gun == 8)) {
automatic = true;
}
if (((gun <= 1) || (gun == 4)) || (gun == 7)) {
automatic = false;
}
if (((((automatic == true) && (pause != true)) && (hp1 > 0)) && (fire == true)) && (needreload != true)) {
firerate = firerate - 1;
}
if (((((firerate <= 0) && (pause != true)) && (hp1 > 0)) && (_root["ammo" + gun] > 0)) && (burst <= burstlimit)) {
_root["ammo" + gun] = _root["ammo" + gun] - 1;
fire = true;
wizard1.arm.gun.gotoAndPlay(2);
removeMovieClip(reloader);
burst = burst + 1;
duplicateMovieClip (shot, "shot" + gro, gro);
_root["shotx" + gro] = bg._x - (wizard1._x + (10 * Math.sin((wizard1.arm._rotation * (wizard1.arm._xscale / 84)) * (Math.PI/180))));
_root["shoty" + gro] = bg._y - (wizard1._y - ((10 * (wizard1._xscale / 84)) * Math.cos(wizard1.arm._rotation * (Math.PI/180))));
_root["shot" + gro]._rotation = (wizard1.arm._rotation * (wizard1.arm._xscale / 84)) + (_root["recoil" + gun] * ((Math.random() / 2) - (Math.random() / 2)));
_root["shot" + gro].gotoAndPlay(1);
duplicateMovieClip (cap, "cap" + gro, 10 + gro);
_root["capx" + gro] = bg._x - wizard1._x;
_root["capy" + gro] = bg._y - wizard1._y;
_root["capburst" + gro] = (Math.random() * 10) - (Math.random() * 10);
_root["capjump" + gro] = 2 + (Math.random() * 4);
_root["capro" + gro] = (Math.random() * 10) - (Math.random() * 10);
_root["capbounce" + gro] = Math.random() * 4;
gro = gro + 1;
firerate = fr;
}
if (burst > burstlimit) {
fire = false;
firerate = fr;
burst = 0;
reload = 10;
}
if ((_root["ammo" + gun] <= 0) && (_root["rounds" + gun] <= 0)) {
gun = 1;
ammo1 = 30;
rounds1 = 99;
}
if (((combo > 3) && (charge <= 0)) || ((slash <= 0) && (charge <= 0))) {
combo = 1;
}
if (charge > 30) {
charge = 30;
}
if (grow == true) {
charge = charge + 0.3;
}
if (spawn >= spq) {
duplicateMovieClip (gunso, "newgun", 777);
ngtype = 1 + random(8);
ngx = bg._x - (Math.random() * 600);
ngy = bg._y - 0;
spq = 10 + (Math.random() * 4);
spawn = 0;
}
if (wizard1.hitTest(newgun) && (Key.isDown(32))) {
gun = ngtype;
needreload = false;
_root["ammo" + ngtype] = _root["ammoq" + ngtype];
_root["rounds" + ngtype] = _root["roundsq" + ngtype];
removeMovieClip(newgun);
gunup.gotoAndPlay(4);
}
if (wizard1.hitTest(newgun) && (!Key.isDown(32))) {
duplicateMovieClip (pickupgun, "gunup", 888);
gunup._x = wizard1._x;
cam = 1;
gunup._y = wizard1._y;
gunup.gotoAndPlay(1);
}
if (hp1 <= 0) {
wizard1.gotoAndStop("dead");
}
if ((kills >= quota) && (wave <= 1)) {
nero = nero + 1;
quota = quota + (3 + (Math.random() * 4));
wave = 2;
duplicateMovieClip (enemytype1, "enemy3", 122);
wizx3 = bg._x - 600;
wizy3 = bg._y - 294;
hp3 = 0;
enemy3.gotoAndStop(1);
duplicateMovieClip (enemytype1, "enemy4", 123);
wizx4 = bg._x + 30;
wizy4 = bg._y - 294;
hp2 = 0;
enemy4.gotoAndStop(1);
}
if ((kills >= quota) && (wave == 2)) {
nero = nero + 1;
quota = quota + (3 + (Math.random() * 4));
wave = 3;
duplicateMovieClip (enemytype1, "enemy3", 122);
wizx3 = bg._x - 600;
wizy3 = bg._y - 294;
hp3 = 0;
enemy3.gotoAndStop(1);
duplicateMovieClip (enemytype2, "enemy4", 123);
wizx4 = bg._x + 30;
wizy4 = bg._y - 294;
hp2 = 0;
etype4 = 2;
enemy4.gotoAndStop(2);
}
if ((kills >= quota) && (wave == 3)) {
nero = nero + 1;
quota = quota + (8 + (Math.random() * 4));
wave = 4;
duplicateMovieClip (enemytype1, "enemy3", 122);
wizx3 = bg._x - 600;
wizy3 = bg._y - 294;
hp3 = 0;
enemy3.gotoAndStop(2);
duplicateMovieClip (enemytype2, "enemy4", 123);
wizx4 = bg._x + 30;
wizy4 = bg._y - 294;
hp4 = 0;
etype4 = 2;
enemy4.gotoAndStop(1);
duplicateMovieClip (enemytype2, "enemy5", 124);
wizx5 = bg._x + 30;
wizy5 = bg._y - 294;
hp5 = 0;
etype5 = 2;
enemy5.gotoAndStop(1);
}
if ((kills >= quota) && (wave == 4)) {
removeMovieClip(enemy2);
removeMovieClip(enemy3);
removeMovieClip(enemy4);
removeMovieClip(enemy5);
removeMovieClip(enemy6);
removeMovieClip(enemy6);
removeMovieClip(enemy7);
removeMovieClip(enemy8);
nero = nero + 1;
quota = quota + (3 + (Math.random() * 4));
wave = 5;
duplicateMovieClip (enemytype2, "enemy3", 122);
wizx3 = bg._x - 600;
wizy3 = bg._y - 294;
hp3 = 0;
etype3 = 2;
enemy3.gotoAndStop(1);
duplicateMovieClip (enemytype2, "enemy4", 123);
wizx4 = bg._x + 30;
wizy4 = bg._y - 294;
hp4 = 0;
etype4 = 2;
enemy4.gotoAndStop(2);
duplicateMovieClip (enemytype2, "enemy5", 124);
wizx5 = bg._x + 30;
wizy5 = bg._y - 294;
hp5 = 0;
etype5 = 2;
enemy5.gotoAndStop(1);
}
if ((kills >= quota) && (wave == 5)) {
removeMovieClip(enemy2);
removeMovieClip(enemy3);
removeMovieClip(enemy4);
removeMovieClip(enemy5);
removeMovieClip(enemy6);
removeMovieClip(enemy6);
removeMovieClip(enemy7);
removeMovieClip(enemy8);
nero = nero + 1;
quota = quota + (3 + (Math.random() * 4));
wave = 6;
duplicateMovieClip (enemytype1, "enemy3", 122);
wizx3 = bg._x - 600;
wizy3 = bg._y - 294;
hp3 = 0;
etype3 = 1;
enemy3.gotoAndStop(1);
duplicateMovieClip (enemytype1, "enemy4", 123);
wizx4 = bg._x + 30;
wizy4 = bg._y - 294;
hp4 = 0;
etype4 = 1;
enemy4.gotoAndStop(1);
duplicateMovieClip (enemytype3, "enemy5", 124);
wizx5 = bg._x + 30;
wizy5 = bg._y - 294;
hp5 = 0;
etype5 = 3;
enemy5.gotoAndStop(1);
}
if ((kills >= quota) && (wave == 6)) {
removeMovieClip(enemy2);
removeMovieClip(enemy3);
removeMovieClip(enemy4);
removeMovieClip(enemy5);
removeMovieClip(enemy6);
removeMovieClip(enemy6);
removeMovieClip(enemy7);
removeMovieClip(enemy8);
nero = nero + 1;
quota = quota + (3 + (Math.random() * 4));
wave = 7;
duplicateMovieClip (enemytype3, "enemy3", 122);
wizx3 = bg._x - 600;
wizy3 = bg._y - 294;
hp3 = 0;
etype3 = 3;
enemy3.gotoAndStop(1);
duplicateMovieClip (enemytype1, "enemy4", 123);
wizx4 = bg._x + 30;
wizy4 = bg._y - 294;
hp4 = 0;
etype4 = 1;
enemy4.gotoAndStop(1);
duplicateMovieClip (enemytype3, "enemy5", 124);
wizx5 = bg._x + 30;
wizy5 = bg._y - 294;
hp5 = 0;
etype5 = 3;
enemy5.gotoAndStop(1);
duplicateMovieClip (enemytype1, "enemy6", 125);
wizx6 = bg._x + 30;
wizy6 = bg._y - 294;
hp4 = 0;
etype6 = 1;
enemy6.gotoAndStop(1);
}
if ((kills >= quota) && (wave == 7)) {
removeMovieClip(enemy2);
removeMovieClip(enemy3);
removeMovieClip(enemy4);
removeMovieClip(enemy5);
removeMovieClip(enemy6);
removeMovieClip(enemy6);
removeMovieClip(enemy7);
removeMovieClip(enemy8);
nero = nero + 1;
quota = quota + (3 + (Math.random() * 4));
wave = 8;
duplicateMovieClip (enemytype1, "enemy3", 122);
wizx3 = bg._x - 600;
wizy3 = bg._y - 294;
hp3 = 0;
etype3 = 1;
enemy3.gotoAndStop(1);
duplicateMovieClip (enemytype1, "enemy4", 123);
wizx4 = bg._x + 30;
wizy4 = bg._y - 294;
hp4 = 0;
etype4 = 1;
enemy4.gotoAndStop(1);
duplicateMovieClip (enemytype3, "enemy5", 124);
wizx5 = bg._x + 30;
wizy5 = bg._y - 294;
hp5 = 0;
etype5 = 3;
enemy5.gotoAndStop(1);
duplicateMovieClip (enemytype1, "enemy6", 125);
wizx6 = bg._x + 30;
wizy6 = bg._y - 294;
hp6 = 0;
etype6 = 1;
enemy6.gotoAndStop(1);
duplicateMovieClip (enemytype1, "enemy7", 126);
wizx7 = bg._x + 30;
wizy7 = bg._y - 294;
hp7 = 0;
etype7 = 1;
enemy7.gotoAndStop(1);
}
if ((kills >= quota) && (wave == 8)) {
removeMovieClip(enemy2);
removeMovieClip(enemy3);
removeMovieClip(enemy4);
removeMovieClip(enemy5);
removeMovieClip(enemy6);
removeMovieClip(enemy6);
removeMovieClip(enemy7);
removeMovieClip(enemy8);
nero = nero + 1;
quota = quota + (3 + (Math.random() * 4));
wave = 9;
duplicateMovieClip (enemytype3, "enemy3", 122);
wizx3 = bg._x - 600;
wizy3 = bg._y - 294;
hp3 = 0;
etype3 = 3;
enemy3.gotoAndStop(1);
duplicateMovieClip (enemytype3, "enemy4", 123);
wizx4 = bg._x + 30;
wizy4 = bg._y - 294;
hp4 = 0;
etype4 = 3;
enemy4.gotoAndStop(1);
duplicateMovieClip (enemytype2, "enemy5", 124);
wizx5 = bg._x + 30;
wizy5 = bg._y - 294;
hp5 = 0;
etype5 = 2;
enemy5.gotoAndStop(1);
duplicateMovieClip (enemytype2, "enemy6", 125);
wizx6 = bg._x + 30;
wizy6 = bg._y - 294;
hp6 = 0;
etype6 = 2;
enemy6.gotoAndStop(1);
duplicateMovieClip (enemytype1, "enemy7", 126);
wizx7 = bg._x + 30;
wizy7 = bg._y - 294;
hp7 = 0;
etype7 = 1;
enemy7.gotoAndStop(1);
}
if ((kills >= quota) && (wave == 9)) {
removeMovieClip(enemy2);
removeMovieClip(enemy3);
removeMovieClip(enemy4);
removeMovieClip(enemy5);
removeMovieClip(enemy6);
removeMovieClip(enemy6);
removeMovieClip(enemy7);
removeMovieClip(enemy8);
level = level + 1;
duplicateMovieClip (levelup, "levelsup", 50000);
levelsup._x = wizard1._x;
levelsup._y = wizard1._y;
nero = nero + 1;
quota = quota + (3 + (Math.random() * 4));
wave = 5;
duplicateMovieClip (enemytype3, "enemy3", 122);
wizx3 = bg._x - 600;
wizy3 = bg._y - 294;
hp3 = 0;
etype3 = 3;
enemy3.gotoAndStop(1);
duplicateMovieClip (enemytype3, "enemy4", 123);
wizx4 = bg._x + 30;
wizy4 = bg._y - 294;
hp4 = 0;
etype4 = 3;
enemy4.gotoAndStop(1);
duplicateMovieClip (enemytype3, "enemy5", 124);
wizx5 = bg._x + 30;
wizy5 = bg._y - 294;
hp5 = 0;
etype5 = 3;
enemy5.gotoAndStop(1);
duplicateMovieClip (enemytype2, "enemy6", 125);
wizx6 = bg._x + 30;
wizy6 = bg._y - 294;
hp6 = 0;
etype6 = 3;
enemy6.gotoAndStop(1);
duplicateMovieClip (enemytype2, "enemy7", 126);
wizx7 = bg._x + 30;
wizy7 = bg._y - 294;
hp7 = 0;
etype7 = 2;
enemy7.gotoAndStop(1);
}
selection1 = "GP-35";
selection2 = "M249 S.A.W";
selection3 = "T.M.P";
selection4 = "V.H.C-870";
selection5 = "M4-Carbine";
selection6 = "Skorpion Vz.61";
selection7 = "44-Magnum";
selection8 = "M16A2";
ammo = _root["ammo" + gun];
bg.wall.gotoAndStop(nero);
gate.gotoAndStop(nero);
gunup.gun = _root["selection" + ngtype];
newgun._x = bg._x - ngx;
newgun._y = bg._y;
newgun.gotoAndStop(ngtype);
pollygraph = crosshair._x - roco._x;
pollygraph2 = crosshair._y - roco2._y;
enemy2._x = bg._x - wizx2;
enemy2._y = bg._y - wizy2;
enemy3._x = bg._x - wizx3;
enemy3._y = bg._y - wizy3;
enemy4._x = bg._x - wizx4;
enemy4._y = bg._y - wizy4;
enemy5._x = bg._x - wizx5;
enemy5._y = bg._y - wizy5;
enemy6._x = bg._x - wizx6;
enemy6._y = bg._y - wizy6;
enemy7._x = bg._x - wizx7;
enemy7._y = bg._y - wizy7;
wizard1.legs.gotoAndStop(ros);
gauge.ammo.gotoAndStop(gun + 1);
gauge.ammo.rounds = _root["rounds" + gun];
slash = slash - 1;
gauge.ammo.shots.gotoAndStop((_root["ammoq" + gun] + 1) - _root["ammo" + gun]);
reload = reload - 1;
wizard1.arm.gun.burst.spark2._rotation = Math.random() * 10;
wizard1.arm.gun.burst.spark3._rotation = (-Math.random()) * 10;
reloader._x = wizard1._x;
reloader._y = wizard1._y;
wizard1.charger.gotoAndStop(Math.round(charge + 1));
wizard1.arm.gotoAndStop(gun + 1);
gauge.board.kills = kills;
gauge.board.score = score;
gauge.hp.gotoAndStop(Math.round(_root["hp" + cam2] / _root["hpd" + cam2]));
gauge.hp.id.gotoAndStop(cam2);
gauge.hp.id.playername = nameentry;
gauge.hp.id.eid = _root["enemyid" + _root["etype" + cam2]];
hpd7 = 5 * level;
hpd2 = 5 * level;
hpd3 = 5 * level;
hpd4 = 5 * level;
hpd6 = 5 * level;
hpd5 = 5 * level;
hpd1 = 5 * level;
hpd2 = 5 * level;
hpd8 = 5 * level;
enemyid1 = "Zombie";
enemyid2 = "ArmorZombie";
enemyid3 = "Iron Maiden";
splat2._x = bg._x - splatx2;
splat2._y = bg._y - splaty2;
splat3._x = bg._x - splatx3;
splat3._y = bg._y - splaty3;
splat4._x = bg._x - splatx4;
splat4._y = bg._y - splaty4;
splat5._x = bg._x - splatx5;
splat5._y = bg._y - splaty5;
splat6._x = bg._x - splatx6;
splat6._y = bg._y - splaty6;
splat7._x = bg._x - splatx7;
splat7._y = bg._y - splaty7;
splat8._x = bg._x - splatx8;
splat8._y = bg._y - splaty8;
blo1._x = bg._x - blox1;
blo1._y = bg._y - bloy1;
blo2._x = bg._x - blox2;
blo2._y = bg._y - bloy2;
blo3._x = bg._x - blox3;
blo3._y = bg._y - bloy3;
blo4._x = bg._x - blox4;
blo4._y = bg._y - bloy4;
gate._x = bg._x - gax;
gate._y = bg._y - gay;
blox1 = blox1 + bloburst1;
bloburst1 = bloburst1 * 0.98;
bloy1 = bloy1 + blojump1;
blojump1 = blojump1 - 0.5;
blo1._rotation = blo1._rotation - 4;
blox2 = blox2 - bloburst2;
bloburst2 = bloburst2 * 0.98;
bloy2 = bloy2 + blojump2;
blojump2 = blojump2 - 0.5;
blo2._rotation = blo2._rotation + 4;
blox3 = blox3 + bloburst3;
bloburst3 = bloburst3 * 0.98;
bloy3 = bloy3 + blojump3;
blojump3 = blojump3 - 0.5;
blo3._rotation = blo3._rotation - 4;
blox4 = blox4 - bloburst4;
bloburst4 = bloburst4 * 0.98;
bloy4 = bloy4 + blojump4;
blojump4 = blojump4 - 0.5;
blo4._rotation = blo4._rotation + 4;
splatter1._x = bg._x - splx1;
splatter1._y = bg._y;
splatter2._x = bg._x - splx2;
splatter2._y = bg._y;
splatter3._x = bg._x - splx3;
splatter3._y = bg._y;
splatter4._x = bg._x - splx4;
splatter4._y = bg._y;
splatter5._x = bg._x - splx5;
splatter5._y = bg._y;
splatter6._x = bg._x - splx6;
splatter6._y = bg._y;
splatter7._x = bg._x - splx7;
splatter7._y = bg._y;
splatter8._x = bg._x - splx8;
splatter8._y = bg._y;
splatter9._x = bg._x - splx9;
splatter9._y = bg._y;
splatter10._x = bg._x - splx10;
splatter10._y = bg._y;
};
onMouseDown = function () {
if ((((((fire != true) && (gun == 1)) && (ammo1 > 0)) && (reload <= 0)) && (pause != true)) && (hp1 > 0)) {
ammo1 = ammo1 - 1;
fire = true;
wizard1.arm.gun.gotoAndPlay(2);
duplicateMovieClip (shot, "shot" + gro, gro);
_root["shotx" + gro] = bg._x - (wizard1._x + (10 * Math.sin((wizard1.arm._rotation * (wizard1.arm._xscale / 84)) * (Math.PI/180))));
_root["shoty" + gro] = bg._y - (wizard1._y - ((10 * (wizard1._xscale / 84)) * Math.cos(wizard1.arm._rotation * (Math.PI/180))));
_root["shot" + gro]._rotation = (wizard1.arm._rotation * (wizard1.arm._xscale / 84)) + (_root["recoil" + gun] * ((Math.random() * 3) - (Math.random() * 3)));
_root["shot" + gro].gotoAndPlay(1);
duplicateMovieClip (cap, "cap" + gro, 10 + gro);
_root["capx" + gro] = bg._x - wizard1._x;
_root["capy" + gro] = bg._y - wizard1._y;
_root["capburst" + gro] = (Math.random() * 10) - (Math.random() * 10);
_root["capjump" + gro] = 2 + (Math.random() * 4);
_root["capro" + gro] = (Math.random() * 10) - (Math.random() * 10);
_root["capbounce" + gro] = Math.random() * 4;
removeMovieClip(reloader);
gro = gro + 1;
reload = 8;
}
if ((((((fire != true) && (gun == 2)) && (ammo2 > 0)) && (reload <= 0)) && (pause != true)) && (hp1 > 0)) {
fire = true;
firerate = 6;
recoil2 = 7;
fr = 6;
burst = 0;
burstlimit = 399;
}
if ((((((fire != true) && (gun == 3)) && (ammo3 > 0)) && (reload <= 0)) && (pause != true)) && (hp1 > 0)) {
fire = true;
firerate = 5;
recoil3 = 0;
fr = 5;
burst = 0;
burstlimit = 300;
}
if ((((((fire != true) && (gun == 4)) && (ammo4 > 0)) && (reload <= 0)) && (pause != true)) && (hp1 > 0)) {
ammo4 = ammo4 - 2;
fire = true;
wizard1.arm.gun.gotoAndPlay(2);
removeMovieClip(reloader);
duplicateMovieClip (shot, "shot" + gro, gro);
_root["shotx" + gro] = bg._x - (wizard1._x + (10 * Math.sin((wizard1.arm._rotation * (wizard1.arm._xscale / 84)) * (Math.PI/180))));
_root["shoty" + gro] = bg._y - (wizard1._y - ((10 * (wizard1._xscale / 84)) * Math.cos(wizard1.arm._rotation * (Math.PI/180))));
_root["shot" + gro]._rotation = (wizard1.arm._rotation * (wizard1.arm._xscale / 84)) + (_root["recoil" + gun] * ((Math.random() * 3) - (Math.random() * 3)));
_root["shot" + gro].gotoAndPlay(1);
duplicateMovieClip (shot, "shot" + (gro + 1), gro + 1);
_root["shotx" + (gro + 1)] = bg._x - (wizard1._x + (10 * Math.sin((wizard1.arm._rotation * (wizard1.arm._xscale / 84)) * (Math.PI/180))));
_root["shoty" + (gro + 1)] = bg._y - (wizard1._y - ((10 * (wizard1._xscale / 84)) * Math.cos(wizard1.arm._rotation * (Math.PI/180))));
_root["shot" + (gro + 1)]._rotation = ((wizard1.arm._rotation * (wizard1.arm._xscale / 84)) + 5) + (_root["recoil" + gun] * ((Math.random() * 3) - (Math.random() * 3)));
_root["shot" + (gro + 1)].gotoAndPlay(1);
duplicateMovieClip (shot, "shot" + (gro + 2), gro + 2);
_root["shotx" + (gro + 2)] = bg._x - (wizard1._x + (10 * Math.sin((wizard1.arm._rotation * (wizard1.arm._xscale / 84)) * (Math.PI/180))));
_root["shoty" + (gro + 2)] = bg._y - (wizard1._y - ((10 * (wizard1._xscale / 84)) * Math.cos(wizard1.arm._rotation * (Math.PI/180))));
_root["shot" + (gro + 2)]._rotation = ((wizard1.arm._rotation * (wizard1.arm._xscale / 84)) - 5) + (_root["recoil" + gun] * ((Math.random() * 3) - (Math.random() * 3)));
_root["shot" + (gro + 2)].gotoAndPlay(1);
duplicateMovieClip (cap, "cap" + gro, 10 + gro);
_root["capx" + gro] = bg._x - wizard1._x;
_root["capy" + gro] = bg._y - wizard1._y;
_root["capburst" + gro] = (Math.random() * 10) - (Math.random() * 10);
_root["capjump" + gro] = 2 + (Math.random() * 4);
_root["capro" + gro] = (Math.random() * 10) - (Math.random() * 10);
_root["capbounce" + gro] = Math.random() * 4;
duplicateMovieClip (cap, "cap" + (gro + 1), 11 + gro);
_root["capx" + (gro + 1)] = bg._x - wizard1._x;
_root["capy" + (gro + 1)] = bg._y - wizard1._y;
_root["capburst" + (gro + 1)] = (Math.random() * 10) - (Math.random() * 10);
_root["capjump" + (gro + 1)] = 4 + (Math.random() * 10);
_root["capro" + (gro + 1)] = (Math.random() * 10) - (Math.random() * 10);
_root["capbounce" + (gro + 1)] = Math.random() * 4;
removeMovieClip(reloader);
gro = gro + 3;
reload = 17;
}
if ((((((fire != true) && (gun == 5)) && (ammo5 > 0)) && (reload <= 0)) && (pause != true)) && (hp1 > 0)) {
fire = true;
firerate = 9;
recoil5 = 0;
fr = 9;
burstlimit = 300;
burst = 0;
}
if ((((((fire != true) && (gun == 6)) && (ammo6 > 0)) && (reload <= 0)) && (pause != true)) && (hp1 > 0)) {
fire = true;
firerate = 6;
fr = 6;
burstlimit = 300;
burst = 0;
}
if ((((((fire != true) && (gun == 7)) && (ammo7 > 0)) && (reload <= 0)) && (pause != true)) && (hp1 > 0)) {
ammo7 = ammo7 - 1;
fire = true;
wizard1.arm.gun.gotoAndPlay(2);
duplicateMovieClip (shot, "shot" + gro, gro);
_root["shotx" + gro] = bg._x - (wizard1._x + (10 * Math.sin((wizard1.arm._rotation * (wizard1.arm._xscale / 84)) * (Math.PI/180))));
_root["shoty" + gro] = bg._y - (wizard1._y - ((10 * (wizard1._xscale / 84)) * Math.cos(wizard1.arm._rotation * (Math.PI/180))));
_root["shot" + gro]._rotation = (wizard1.arm._rotation * (wizard1.arm._xscale / 84)) + (_root["recoil" + gun] * ((Math.random() * 3) - (Math.random() * 3)));
_root["shot" + gro].gotoAndPlay(1);
duplicateMovieClip (cap, "cap" + gro, 10 + gro);
_root["capx" + gro] = bg._x - wizard1._x;
_root["capy" + gro] = bg._y - wizard1._y;
_root["capburst" + gro] = (Math.random() * 10) - (Math.random() * 10);
_root["capjump" + gro] = 2 + (Math.random() * 4);
_root["capro" + gro] = (Math.random() * 10) - (Math.random() * 10);
_root["capbounce" + gro] = Math.random() * 4;
removeMovieClip(reloader);
gro = gro + 1;
reload = 16;
}
if ((((((fire != true) && (gun == 8)) && (ammo8 > 0)) && (reload <= 0)) && (pause != true)) && (hp1 > 0)) {
fire = true;
firerate = 5;
recoil8 = 0;
fr = 5;
burst = 0;
burstlimit = 2;
}
};
onMouseUp = function () {
if (((gun < 1) && (charge > 0)) && (jump > 0)) {
wizard1.gotoAndPlay("jumpattack");
att1 = 3 + (1.2 * (charge / 10));
har = 4;
charge = 0;
combo = combo + 1;
grow = false;
slash = 30;
}
_root._y = 0;
_root._x = 0;
fire = false;
};
Frame 5
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
play();
delete eval (onEnterFrame());
stopAllSounds();
Frame 6
stop();
Mouse.hide();
startDrag ("crosshair", true);
_quality = "High";
Instance of Symbol 529 MovieClip in Frame 6
onClipEvent (mouseDown) {
_root.gotoAndPlay(3);
_root.kills = 0;
_root.score = 0;
}
Symbol 21 MovieClip Frame 40
stop();
Symbol 35 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 36 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 11 MovieClip in Symbol 37 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 37 MovieClip Frame 101
play();
Symbol 37 MovieClip Frame 103
_root.loady._visible = false;
Symbol 37 MovieClip Frame 165
stop();
Symbol 43 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 49 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 51 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 61 Button
on (release) {
getURL ("http://www.arcadebomb.com/free_website_games.html", "_blank");
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 43
gotoAndPlay (7);
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 29
gotoAndPlay (5);
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
_root._y = (Math.random() * 2) - (Math.random() * 2);
_root._x = (Math.random() * 2) - (Math.random() * 2);
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
_root._y = (Math.random() * 4) - (Math.random() * 4);
_root._x = (Math.random() * 4) - (Math.random() * 4);
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
_root._y = (Math.random() * 2) - (Math.random() * 2);
_root._x = (Math.random() * 2) - (Math.random() * 2);
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
_root._y = (Math.random() * 13) - (Math.random() * 13);
_root._x = (Math.random() * 13) - (Math.random() * 13);
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
_root._y = (Math.random() * 3) - (Math.random() * 3);
_root._x = (Math.random() * 3) - (Math.random() * 3);
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
_root._y = (Math.random() * 3) - (Math.random() * 3);
_root._x = (Math.random() * 3) - (Math.random() * 3);
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
_root._y = (Math.random() * 13) - (Math.random() * 13);
_root._x = (Math.random() * 13) - (Math.random() * 13);
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
_root._y = (Math.random() * 3) - (Math.random() * 3);
_root._x = (Math.random() * 3) - (Math.random() * 3);
Symbol 120 MovieClip Frame 1
stop();
Symbol 127 Button
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 535 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 133 Button
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 137 Button
on (release) {
play();
}
Symbol 141 Button
on (release) {
_root.infos._visible = true;
}
Symbol 150 Button
on (release) {
_root.infos._visible = false;
}
Symbol 176 MovieClip Frame 40
stop();
Symbol 246 MovieClip Frame 13
_root.tranny.play();
Symbol 246 MovieClip Frame 957
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 29
stop();
Symbol 247 MovieClip Frame 44
if (_root["rounds" + _root.gun] >= 0) {
gotoAndStop (1);
}
if ((_root["ammo" + _root.gun] <= 0) && (_root["rounds" + _root.gun] <= 0)) {
gotoAndStop ("unarmed");
}
Symbol 247 MovieClip Frame 68
gotoAndStop (29);
Symbol 247 MovieClip Frame 69
stop();
Symbol 247 MovieClip Frame 97
stop();
Symbol 247 MovieClip Frame 112
if ((_root["ammo" + _root.gun] > 0) && (_root["rounds" + _root.gun] > 0)) {
gotoAndStop (1);
}
if ((_root["ammo" + _root.gun] <= 0) && (_root["rounds" + _root.gun] <= 0)) {
gotoAndStop ("unarmed");
}
Symbol 247 MovieClip Frame 136
gotoAndStop (97);
Symbol 247 MovieClip Frame 170
gotoAndStop ("unarmed");
Symbol 247 MovieClip Frame 204
gotoAndStop ("unarmed");
Symbol 247 MovieClip Frame 238
gotoAndStop ("unarmed");
Symbol 247 MovieClip Frame 263
gotoAndStop (97);
Symbol 253 MovieClip Frame 428
stop();
Symbol 254 MovieClip Frame 3
stop();
Symbol 254 MovieClip Frame 14
stop();
Symbol 262 MovieClip Frame 8
stop();
Symbol 262 MovieClip Frame 10
stop();
Symbol 269 MovieClip Frame 5
stop();
Symbol 272 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 33
stop();
Symbol 282 MovieClip Frame 10
stop();
Symbol 298 MovieClip Frame 37
stop();
Symbol 302 MovieClip Frame 65
stop();
Symbol 330 MovieClip Frame 3
stop();
Symbol 330 MovieClip Frame 14
stop();
Symbol 332 MovieClip Frame 15
stop();
Symbol 341 MovieClip Frame 57
gotoAndPlay (10);
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 2
stop();
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 2
stop();
Symbol 362 MovieClip Frame 15
gotoAndStop (2);
Symbol 362 MovieClip Frame 30
gotoAndStop (2);
Symbol 362 MovieClip Frame 73
stop();
Symbol 362 MovieClip Frame 127
gotoAndStop (2);
Symbol 371 MovieClip Frame 57
gotoAndPlay (10);
Symbol 375 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 2
stop();
Symbol 384 MovieClip Frame 37
stop();
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 2
stop();
Symbol 393 MovieClip Frame 15
gotoAndStop (2);
Symbol 393 MovieClip Frame 30
gotoAndStop (2);
Symbol 393 MovieClip Frame 73
stop();
Symbol 393 MovieClip Frame 127
gotoAndStop (2);
Symbol 402 MovieClip Frame 57
gotoAndPlay (10);
Symbol 406 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 2
stop();
Symbol 413 MovieClip Frame 37
stop();
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 2
stop();
Symbol 422 MovieClip Frame 15
gotoAndStop (2);
Symbol 422 MovieClip Frame 30
gotoAndStop (2);
Symbol 422 MovieClip Frame 73
stop();
Symbol 422 MovieClip Frame 127
gotoAndStop (2);
Symbol 457 MovieClip Frame 101
stop();
Symbol 519 MovieClip Frame 1
stop();
Symbol 519 MovieClip Frame 123
stop();
_root.gotoAndPlay("gover");
Symbol 534 Button
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
}