Frame 1
gox = 0;
stop();
Instance of Symbol 36 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root._framesloaded >= 380) {
_root.gotoAndPlay("start");
}
}
Instance of Symbol 43 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root._framesloaded >= _root._totalFrames) {
_root.gox = 1;
gotoAndStop (2);
}
}
Frame 399
if (gox == 1) {
gotoAndPlay (401);
}
Frame 400
gotoAndPlay (399);
Frame 401
stopAllSounds();
gotoAndStop (473);
Frame 473
function playSound(name, loop) {
fx.gotoAndPlay(name);
}
function stopSound(name) {
s.stop(name);
}
Mouse.show();
_quality = "HIGH";
names = new Array();
names[1] = "ugluk'";
names[2] = "habib umbale";
names[3] = "metzga";
names[4] = "masta'kar";
names[5] = "ôld sirus";
names[6] = "da'bellak";
sets = new Array();
ranking = new Array();
ranking[0] = 10;
ranking[1] = 5;
ranking[2] = 4;
ranking[3] = 7;
ranking[4] = 6;
ranking[5] = 3;
ranking[6] = 8;
ranking[7] = 1;
ranking[8] = 2;
sets[1] = [150, 5, 8, 16, 5];
sets[2] = [100, 3, 12, 24, 3];
sets[3] = [180, 10, 5, 14, 6];
sets[4] = [160, 6, 7, 15, 4];
sets[5] = [320, 25, 8, 13, 20];
sets[6] = [250, 11, 5, 18, 9];
Instance of Symbol 216 MovieClip in Frame 512
onClipEvent (enterFrame) {
if ((0 >= _root.energy2) and (_root.dead2 == 0)) {
energy2 = 0;
_root.dead2 = 1;
}
if (0 < _root.dead2) {
energy2 = 0;
}
if (_root.dead1 == 0) {
energy2 = _root.energy2;
}
}
Instance of Symbol 218 MovieClip in Frame 512
onClipEvent (enterFrame) {
if ((0 >= _root.energy1) and (_root.dead1 == 0)) {
energy1 = 0;
_root.dead1 = 1;
}
if (0 < _root.dead2) {
energy2 = 0;
}
if (_root.dead2 == 0) {
energy1 = _root.energy1;
}
}
Frame 520
count = 1;
name = names[1];
Frame 527
function testPl(x, z) {
r = 0;
k = 1;
while (z >= k) {
if ((order[k] == x) or (x == myPlayer1)) {
r = 1;
break;
}
k++;
}
return(r);
}
stopAllSounds();
myPlayer1 = count;
fight = 1;
order = new Array();
bricks = new Array();
BrickExtra = new Array(0, 0, 0, 0, 0, 0);
ExtraNames = new Array("raw", "maxx", "vamp", "wall", "def", "glue", "shield", "pow", "speed");
pl1Xtra = new Array(0, 0, 0, 0, 0, 0, 0, 0);
pl2Xtra = new Array(0, 0, 0, 0, 0, 0, 0, 0);
bricks[1] = [3, 1, 0, 1, 0, 1];
bricks[2] = [4, 0, 1, 0, 0, 1];
bricks[3] = [5, 1, 1, 1, 0, 0];
order[1] = 0;
order[2] = 0;
order[3] = 0;
order[4] = 0;
order[5] = 0;
shotList1 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
shotList2 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
i = 1;
while (5 >= i) {
ran = random(6) + 1;
if (testPl(ran, i) == 0) {
order[i] = ran;
i++;
}
}
myPlayer2 = order[fight];
round1.gotoAndStop(order[1]);
round2.gotoAndStop(order[2]);
round3.gotoAndStop(order[3]);
round4.gotoAndStop(order[4]);
round5.gotoAndStop(order[5]);
pfad.gotoAndStop(1);
player1.gotoAndStop(myPlayer1);
player2.gotoAndStop(myPlayer2);
gotoAndPlay (533);
Frame 533
Mouse.hide();
round1.gotoAndStop(order[1]);
round2.gotoAndStop(order[2]);
round3.gotoAndStop(order[3]);
round4.gotoAndStop(order[4]);
round5.gotoAndStop(order[5]);
l = 1;
while ((fight - 1) >= l) {
_root["round" + l].gotoAndStop(7);
l++;
}
pfad.gotoAndStop(fight);
myPlayer2 = order[fight];
round = 1;
wins1 = 0;
wins2 = 0;
_root.player1.gotoAndStop(myPlayer1);
Instance of Symbol 248 MovieClip "player1" in Frame 533
onClipEvent (load) {
this.gotoAndPlay(_root.myPlayer1);
}
Frame 697
go = 0;
pl1Xtra = [0, 0, 0, 0, 0, 0, 0, 0];
pl2Xtra = [0, 0, 0, 0, 0, 0, 0, 0];
myPlayer2 = order[fight];
energy1 = sets[myPlayer1][0];
energy2 = sets[myPlayer2][0];
shotList1 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
shotList2 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
dead1 = 0;
dead2 = 0;
shotCount = 1;
play();
Instance of Symbol 253 MovieClip "detect2" in Frame 697
onClipEvent (enterFrame) {
_x = _root.pl2._x;
}
Instance of Symbol 257 MovieClip in Frame 697
onClipEvent (enterFrame) {
_x = _root.pl2._x;
if (_root.dead2 != 0) {
_visible = 0;
}
}
Instance of Symbol 258 MovieClip in Frame 697
onClipEvent (enterFrame) {
_x = _root.pl1._x;
if (_root.dead1 != 0) {
_visible = 0;
}
}
Instance of Symbol 259 MovieClip in Frame 697
onClipEvent (enterFrame) {
_y = (_root.brick1._y + 5);
_x = (_root.brick1._x + 10);
}
Instance of Symbol 260 MovieClip in Frame 697
onClipEvent (enterFrame) {
_y = (_root.brick2._y + 5);
_x = (_root.brick2._x + 10);
}
Instance of Symbol 261 MovieClip in Frame 697
onClipEvent (enterFrame) {
_y = (_root.brick3._y + 5);
_x = (_root.brick3._x + 10);
}
Instance of Symbol 262 MovieClip in Frame 697
onClipEvent (enterFrame) {
_y = (_root.brick4._y + 5);
_x = (_root.brick4._x + 10);
}
Instance of Symbol 263 MovieClip in Frame 697
onClipEvent (enterFrame) {
_y = (_root.brick5._y + 5);
_x = (_root.brick5._x + 10);
}
Instance of Symbol 305 MovieClip "pl2" in Frame 697
onClipEvent (load) {
function kollide(x1, y1, b1, h1, x2, y2, b2, h2) {
if ((((((((((x2 - (b2 / 2)) < (x1 + (b2 / 2))) and (y2 < (y1 - h1))) or (((x1 - (b1 / 2)) < (x2 + (b2 / 2))) and (y2 < (y1 - h1)))) or (((x2 - (b2 / 2)) < (x1 + (b2 / 2))) and (y1 < (y2 - h2)))) or (((x1 - (b1 / 2)) < (x2 + (b2 / 2))) and (y1 < (y2 - h2)))) or (((y1 - h1) < y2) and ((x1 + (b1 / 2)) < (x2 - (b2 / 2))))) or (((y1 - h1) < y2) and ((x2 + (b2 / 2)) < (x1 - (b1 / 2))))) or (((y2 - h2) < y1) and ((x1 + (b1 / 2)) < (x2 - (b2 / 2))))) or (((y2 - h2) < y1) and ((x2 + (b2 / 2)) < (x1 - (b1 / 2))))) {
return(0);
}
return(1);
}
function detectShot() {
var t;
var mc;
var sDx;
var eX;
var sSpeed;
t = 0;
while (_root.shotList1.length >= t) {
mc = _root.shotField["shot1" + t];
if (_root.detect2.hitTest(mc)) {
sDx = mc.shot.myDx;
sSpeed = mc.shot.mySpeed;
eX = mc._x;
if (_x >= eX) {
myAuswFak = 1;
}
if (_x < eX) {
myAuswFak = -1;
}
myAuswSteps = random(10) + 5;
return;
}
t++;
}
}
function avoid() {
if ((myAuswFak != 0) and (myAusEcke == 0)) {
_x = (_x + (mySpeed * myAuswFak));
walk();
myAuswSteps--;
if (myAuswSteps == 0) {
myAuswFak = 0;
myAuswSteps = random(10) + 5;
}
}
}
function border() {
if (60 >= _x) {
myAusEcke = 1;
myAusEckeSteps = random(20) + 10;
}
if (_x >= 490) {
myAusEcke = -1;
myAusEckeSteps = random(30) + 10;
}
if (myAusEcke != 0) {
_x = (_x + (mySpeed * myAusEcke));
walk();
myAusEckeSteps--;
if (myAusEckeSteps == 0) {
myAusEcke = 0;
myAusEckeSteps = random(30) + 10;
}
}
}
function shootOK() {
var steps;
var ex;
var br;
var t;
var x1;
var y1;
var ey;
var h1;
var b1;
var hit;
speed = _root.pl2ShotSpeed;
steps = Math.abs(int((190 / speed) * myDy));
ex = ((myDx * steps) * speed) + _x;
br = 0;
hit = 0;
t = 1;
while (5 >= t) {
if (_root.bricks[_root.round][t] == 1) {
x1 = _root["brick" + t]._x - (_root.bricks[_root.round][0] * steps);
y1 = _root["brick" + t]._y;
h1 = _root["brick" + t]._height;
b1 = _root["brick" + t]._width;
if (kollide(ex, 190, 60, 50, x1, y1, b1, h1) == 1) {
hit++;
break;
}
}
t++;
}
if (hit == 0) {
shoot();
}
if ((((hit != 0) and (_root["brick" + t].brick.myXtra != 0)) and (random(5) == 1)) or (_root.pl2Xtra[4] == 1)) {
shoot();
}
}
function shotWait() {
if (myShotOk == 0) {
myShotWait--;
if (-1 >= myShotWait) {
myShotOK = 1;
}
}
}
function shoot() {
var sc = 0;
shotWait();
if (((myShotOK == 1) and (_root.wall1.wall.myOn == 0)) and (random(3) == 1)) {
sc = 0;
while (_root.shotList2.length >= sc) {
if (_root.shotList2[sc] == 0) {
_root.shotList2[sc] = 1;
break;
}
sc++;
}
_root.playSound("blast2");
po.x = ref._x;
po.y = ref._y;
_root.pl2.ref.localToGlobal(po);
_root.shotField.globalToLocal(po);
_root.shotField.attachMovie("shot2", "shot2" + sc, sc);
_root.shotField["shot2" + sc]._x = po.x;
_root.shotField["shot2" + sc]._y = po.y;
_root.shotField["shot2" + sc].myDx = myDx;
_root.shotField["shot2" + sc].myDy = myDy;
_root.shotField["shot2" + sc]._rotation = _rotation;
_root.shotField["shot2" + sc].myOn = 1;
_root.shotField["shot2" + sc].shot.myNum = sc;
myShotOk = 0;
myShotWait = _root.sets[myPlayer][4];
this.pl.gotoAndStop(4);
this.blast.gotoAndPlay(2);
}
}
function shield() {
if (_root.pl2Xtra[6] == 1) {
_root.pl2Shield._visible = 1;
_root.pl2Shield._rotation = _root.pl2Shield._rotation + 15;
_root.pl2Shield._x = _x;
} else {
_root.pl2Shield._visible = 0;
}
}
function getXtra() {
var bx;
if ((myGetXtra == 0) and (_root.wall1.wall.myOn == 0)) {
t = 1;
while (5 >= t) {
myBrick = _root["brick" + t];
r = _rotation;
bx = myBrick.brick.myXtra;
if (_root.detect3.hitTest(myBrick) and (bx != 0)) {
if (_root.ranking[myXtra] >= _root.ranking[bx]) {
if (random(3) == 1) {
myGetXtra = 1;
}
break;
}
}
t++;
}
}
if (myGetXtra == 1) {
getWinkel(myBrick._x, myBrick._y, _x, _y);
myAuswSteps = int(Math.abs(myBrick._x - _x) / mySpeed);
if (_x < (myBrick._x + 50)) {
myAuswFak = 1;
}
if ((myBrick._x - 50) < _x) {
myAuswFak = -1;
}
if ((myBrick.brick.myXtra == 0) or (myBrick._x < 100)) {
myGetXtra = 0;
}
}
}
function getWinkel(x1, y1, x2, y2) {
var x1;
var x2;
var y1;
var y2;
x = int(x1 - x2);
y = int(y1 - y2);
a = -((Math.atan(x / y) * 180) / Math.PI);
myRotSteps = int(Math.abs(myRot - a) / 3);
if ((a - myRot) < 0) {
myRotFak = -1;
}
if ((a - myRot) >= 0) {
myRotFak = 1;
}
}
function drehen() {
if (0 < myRotSteps) {
if ((myRotFak == -1) and (myRot >= -45)) {
_rotation = (_rotation - 3);
}
if ((myRotFak == 1) and (45 >= myRot)) {
_rotation = (_rotation + 3);
}
myRotSteps--;
}
}
function glue() {
if (myGlueOn == 1) {
myGlueOn = 2;
_alpha = 40;
}
if (myGlueOn == 2) {
myGlueCount--;
if (myGlueCount == 0) {
_alpha = 100;
myGlueOn = 0;
myGlueCount = 100;
}
}
}
function walk() {
this.pl.gotoAndStop(myWalk[myWalkCount]);
myWalkCount++;
if (myWalkCount == 9) {
myWalkCount = 1;
}
}
function dead() {
if (_root.dead2 == 1) {
_root.dead2 = 2;
myStr = 200;
_root.playSound("dead");
_root.playSound("dead2");
}
if (_root.dead2 == 2) {
if (myStr >= -200) {
myStr = myStr - 10;
_width = (_width + myStr);
_alpha = (_alpha - 2);
_rotation = (_rotation - 30);
} else {
_root.dead2 = 3;
}
}
}
myPlayer = _root.myPlayer2;
this.gotoAndStop(myPlayer);
myAuswFak = 0;
myAusEcke = 0;
myShotOK = 1;
myMoveOn = 0;
myGetXtra = 0;
myRotSteps = 0;
myAngleDelta = 0;
myXtra = 0;
myGlueOn = 0;
myGlueCount = 100;
myWalk = new Array(1, 1, 2, 2, 1, 1, 3, 3);
myWalkCount = 1;
myShotWait = _root.sets[myPlayer][4];
mySpeed = _root.sets[myPlayer][2];
myDy = -Math.cos((_rotation * 3.14) / 180);
myDx = Math.sin((_rotation * 3.14) / 180);
po = new Object();
}
onClipEvent (enterFrame) {
if ((((myGlueOn == 0) and (_root.dead1 == 0)) and (_root.dead2 == 0)) and (_root.go == 1)) {
myRot = _rotation;
myDy = -Math.cos((_rotation * 3.14) / 180);
myDx = -Math.sin((_rotation * 3.14) / 180);
detectShot();
avoid();
border();
shootOK();
getXtra();
if (myGetXtra == 0) {
getWinkel(_x, _y, _root.pl1._x, _root.pl1._y);
}
drehen();
}
shield();
glue();
dead();
}
Instance of Symbol 309 MovieClip "brick1" in Frame 697
onClipEvent (load) {
myNumber = 1;
}
Instance of Symbol 310 MovieClip "brick2" in Frame 697
onClipEvent (load) {
myNumber = 2;
}
Instance of Symbol 311 MovieClip "brick3" in Frame 697
onClipEvent (load) {
myNumber = 3;
}
Instance of Symbol 312 MovieClip "brick4" in Frame 697
onClipEvent (load) {
myNumber = 4;
}
Instance of Symbol 313 MovieClip "brick5" in Frame 697
onClipEvent (load) {
myNumber = 5;
}
Instance of Symbol 358 MovieClip "pl1" in Frame 697
onClipEvent (load) {
function strafeRight() {
if (_x < 490) {
this.pl.gotoAndStop(myWalk[myWalkCount]);
myWalkCount++;
if (myWalkCount == 9) {
myWalkCount = 1;
}
_x = (_x + mySpeed);
}
}
function strafeLeft() {
if (60 < _x) {
this.pl.gotoAndStop(myWalk[myWalkCount]);
myWalkCount--;
if (myWalkCount == 0) {
myWalkCount = 8;
}
_x = (_x - mySpeed);
}
}
function rotRight() {
if (45 >= myAngle) {
myAngle = myAngle + 5;
}
_rotation = myAngle;
myDy = Math.cos((myAngle * 3.14) / 180);
myDx = Math.sin((myAngle * 3.14) / 180);
}
function rotLeft() {
if (myAngle >= -45) {
myAngle = myAngle - 5;
}
_rotation = myAngle;
myDy = Math.cos((myAngle * 3.14) / 180);
myDx = Math.sin((myAngle * 3.14) / 180);
}
function shotWait() {
if (myShotOk == 0) {
myShotWait--;
if (-1 >= myShotWait) {
myShotOK = 1;
}
}
}
function shoot() {
var sc = 0;
if (myShotOK == 1) {
sc = 0;
while (_root.shotList1.length >= sc) {
if (_root.shotList1[sc] == 0) {
_root.shotList1[sc] = 1;
break;
}
sc++;
}
_root.playSound("blast1");
po.x = ref._x;
po.y = ref._y;
_root.pl1.ref.localToGlobal(po);
_root.shotField.globalToLocal(po);
_root.shotField.attachMovie("shot1", "shot1" + sc, sc);
_root.shotField["shot1" + sc]._x = po.x;
_root.shotField["shot1" + sc]._y = po.y;
_root.shotField["shot1" + sc].myDx = myDx;
_root.shotField["shot1" + sc].myDy = myDy;
_root.shotField["shot1" + sc]._rotation = _rotation;
_root.shotField["shot1" + sc].myOn = 1;
_root.shotField["shot1" + sc].shot.myNum = sc;
myShotOk = 0;
myShotWait = _root.sets[myPlayer][4];
this.blast.gotoAndPlay(2);
this.pl.gotoAndStop(4);
}
}
function glue() {
if (myGlueOn == 1) {
myGlueOn = 2;
_alpha = 40;
}
if (myGlueOn == 2) {
myGlueCount--;
if (myGlueCount == 0) {
_alpha = 100;
_root.pl2.myXtra = 0;
myGlueOn = 0;
myGlueCount = 100;
}
}
}
function shield() {
if (_root.pl1Xtra[6] == 1) {
_root.pl1Shield._visible = 1;
_root.pl1Shield._rotation = _root.pl1Shield._rotation + 15;
_root.pl1Shield._x = _x;
} else {
_root.pl1Shield._visible = 0;
}
}
function dead() {
if (_root.dead1 == 1) {
_root.dead1 = 2;
myStr = 200;
_root.playSound("dead");
_root.playSound("dead2");
}
if (_root.dead1 == 2) {
if (myStr >= -200) {
myStr = myStr - 10;
_width = (_width + myStr);
_alpha = (_alpha - 2);
_rotation = (_rotation - 30);
} else {
_root.dead1 = 3;
}
}
}
myPlayer = _root.myPlayer1;
this.gotoAndStop(myPlayer);
myWalk = new Array(1, 1, 2, 2, 1, 1, 3, 3);
myWalkCount = 1;
myAngle = 0;
myShotOK = 1;
myShotWait = _root.sets[myPlayer][4];
mySpeed = _root.sets[myPlayer][2];
po = new Object();
myXtra = 1;
myGlueOn = 0;
myGlueCount = 100;
myWidth = _width;
_root.pl1Shield._visible = 0;
myDy = Math.cos((myAngle * 3.14) / 180);
myDx = Math.sin((myAngle * 3.14) / 180);
}
onClipEvent (enterFrame) {
if ((((myGlueOn == 0) and (_root.dead1 == 0)) and (_root.dead2 == 0)) and (_root.go == 1)) {
if (Key.isDown(Key.RIGHT) and (!Key.isDown(190))) {
rotRight();
}
if (Key.isDown(Key.LEFT) and (!Key.isDown(190))) {
rotLeft();
}
if (Key.isDown(190) and Key.isDown(Key.RIGHT)) {
strafeRight();
}
if (Key.isDown(190) and Key.isDown(Key.LEFT)) {
strafeLeft();
}
if (Key.isDown(Key.SHIFT)) {
shoot();
}
}
shotWait();
glue();
shield();
dead();
}
Instance of Symbol 364 MovieClip "pl1hit" in Frame 697
onClipEvent (enterFrame) {
_rotation = _root.pl1._rotation;
}
Instance of Symbol 373 MovieClip in Frame 697
onClipEvent (enterFrame) {
if (0 >= _root.energy2) {
energy2 = 0;
}
if ((0 >= _root.energy2) and (_root.dead2 == 0)) {
energy2 = 0;
_root.dead2 = 1;
}
if (0 < _root.dead2) {
energy2 = 0;
}
if (_root.dead1 == 0) {
energy2 = _root.energy2;
}
}
Instance of Symbol 374 MovieClip in Frame 697
onClipEvent (enterFrame) {
if (0 >= _root.energy1) {
energy1 = 0;
}
if ((0 >= _root.energy1) and (_root.dead1 == 0)) {
energy1 = 0;
_root.dead1 = 1;
}
if (0 < _root.dead2) {
energy2 = 0;
}
if (_root.dead2 == 0) {
energy1 = _root.energy1;
}
}
Frame 766
go = 1;
Frame 767
if (dead1 == 3) {
wins2++;
round++;
if (wins2 < 2) {
gotoAndPlay (648);
}
if (wins2 == 2) {
gotoAndPlay (824);
}
}
if (dead2 == 3) {
wins1++;
round++;
if (wins1 < 2) {
gotoAndPlay (648);
}
if (wins1 == 2) {
if (fight == 5) {
gotoAndPlay (884);
}
if (fight < 5) {
fight++;
gotoAndPlay (771);
}
}
}
Frame 768
gotoAndPlay (767);
Frame 771
name = names[myPlayer1];
Frame 822
gotoAndPlay (533);
Frame 880
gotoAndStop (473);
Instance of Symbol 398 MovieClip "pl2" in Frame 882
onClipEvent (load) {
function kollide(x1, y1, b1, h1, x2, y2, b2, h2) {
if ((((((((((x2 - (b2 / 2)) < (x1 + (b2 / 2))) and (y2 < (y1 - h1))) or (((x1 - (b1 / 2)) < (x2 + (b2 / 2))) and (y2 < (y1 - h1)))) or (((x2 - (b2 / 2)) < (x1 + (b2 / 2))) and (y1 < (y2 - h2)))) or (((x1 - (b1 / 2)) < (x2 + (b2 / 2))) and (y1 < (y2 - h2)))) or (((y1 - h1) < y2) and ((x1 + (b1 / 2)) < (x2 - (b2 / 2))))) or (((y1 - h1) < y2) and ((x2 + (b2 / 2)) < (x1 - (b1 / 2))))) or (((y2 - h2) < y1) and ((x1 + (b1 / 2)) < (x2 - (b2 / 2))))) or (((y2 - h2) < y1) and ((x2 + (b2 / 2)) < (x1 - (b1 / 2))))) {
return(0);
}
return(1);
}
function detectShot() {
var t;
var mc;
var sDx;
var eX;
var sSpeed;
t = 0;
while (_root.shotList1.length >= t) {
mc = _root.shotField["shot1" + t];
if (_root.detect2.hitTest(mc)) {
sDx = mc.shot.myDx;
sSpeed = mc.shot.mySpeed;
eX = mc._x;
if (_x >= eX) {
myAuswFak = 1;
}
if (_x < eX) {
myAuswFak = -1;
}
myAuswSteps = random(10) + 5;
return;
}
t++;
}
}
function avoid() {
if ((myAuswFak != 0) and (myAusEcke == 0)) {
_x = (_x + (mySpeed * myAuswFak));
walk();
myAuswSteps--;
if (myAuswSteps == 0) {
myAuswFak = 0;
myAuswSteps = random(10) + 5;
}
}
}
function border() {
if (60 >= _x) {
myAusEcke = 1;
myAusEckeSteps = random(20) + 10;
}
if (_x >= 490) {
myAusEcke = -1;
myAusEckeSteps = random(30) + 10;
}
if (myAusEcke != 0) {
_x = (_x + (mySpeed * myAusEcke));
walk();
myAusEckeSteps--;
if (myAusEckeSteps == 0) {
myAusEcke = 0;
myAusEckeSteps = random(30) + 10;
}
}
}
function shootOK() {
var steps;
var ex;
var br;
var t;
var x1;
var y1;
var ey;
var h1;
var b1;
var hit;
speed = _root.pl2ShotSpeed;
steps = Math.abs(int((190 / speed) * myDy));
ex = ((myDx * steps) * speed) + _x;
br = 0;
hit = 0;
t = 1;
while (5 >= t) {
if (_root.bricks[_root.round][t] == 1) {
x1 = _root["brick" + t]._x - (_root.bricks[_root.round][0] * steps);
y1 = _root["brick" + t]._y;
h1 = _root["brick" + t]._height;
b1 = _root["brick" + t]._width;
if (kollide(ex, 190, 60, 50, x1, y1, b1, h1) == 1) {
hit++;
break;
}
}
t++;
}
if (hit == 0) {
shoot();
}
if ((((hit != 0) and (_root["brick" + t].brick.myXtra != 0)) and (random(5) == 1)) or (_root.pl2Xtra[4] == 1)) {
shoot();
}
}
function shotWait() {
if (myShotOk == 0) {
myShotWait--;
if (-1 >= myShotWait) {
myShotOK = 1;
}
}
}
function shoot() {
var sc = 0;
shotWait();
if (((myShotOK == 1) and (_root.wall1.wall.myOn == 0)) and (random(3) == 1)) {
sc = 0;
while (_root.shotList2.length >= sc) {
if (_root.shotList2[sc] == 0) {
_root.shotList2[sc] = 1;
break;
}
sc++;
}
_root.playSound("blast2");
po.x = ref._x;
po.y = ref._y;
_root.pl2.ref.localToGlobal(po);
_root.shotField.globalToLocal(po);
_root.shotField.attachMovie("shot2", "shot2" + sc, sc);
_root.shotField["shot2" + sc]._x = po.x;
_root.shotField["shot2" + sc]._y = po.y;
_root.shotField["shot2" + sc].myDx = myDx;
_root.shotField["shot2" + sc].myDy = myDy;
_root.shotField["shot2" + sc]._rotation = _rotation;
_root.shotField["shot2" + sc].myOn = 1;
_root.shotField["shot2" + sc].shot.myNum = sc;
myShotOk = 0;
myShotWait = _root.sets[myPlayer][4];
this.pl.gotoAndStop(4);
this.blast.gotoAndPlay(2);
}
}
function shield() {
if (_root.pl2Xtra[6] == 1) {
_root.pl2Shield._visible = 1;
_root.pl2Shield._rotation = _root.pl2Shield._rotation + 15;
_root.pl2Shield._x = _x;
} else {
_root.pl2Shield._visible = 0;
}
}
function getXtra() {
var bx;
if ((myGetXtra == 0) and (_root.wall1.wall.myOn == 0)) {
t = 1;
while (5 >= t) {
myBrick = _root["brick" + t];
r = _rotation;
bx = myBrick.brick.myXtra;
if (_root.detect3.hitTest(myBrick) and (bx != 0)) {
if (_root.ranking[myXtra] >= _root.ranking[bx]) {
if (random(3) == 1) {
myGetXtra = 1;
}
break;
}
}
t++;
}
}
if (myGetXtra == 1) {
getWinkel(myBrick._x, myBrick._y, _x, _y);
myAuswSteps = int(Math.abs(myBrick._x - _x) / mySpeed);
if (_x < myBrick._x) {
myAuswFak = 1;
}
if (myBrick._x < _x) {
myAuswFak = -1;
}
if ((myBrick.brick.myXtra == 0) or (myBrick._x < 100)) {
myGetXtra = 0;
}
}
}
function getWinkel(x1, y1, x2, y2) {
var x1;
var x2;
var y1;
var y2;
x = int(x1 - x2);
y = int(y1 - y2);
a = -((Math.atan(x / y) * 180) / Math.PI);
myRotSteps = int(Math.abs(myRot - a) / 3);
if ((a - myRot) < 0) {
myRotFak = -1;
}
if ((a - myRot) >= 0) {
myRotFak = 1;
}
}
function drehen() {
if (0 < myRotSteps) {
if ((myRotFak == -1) and (myRot >= -45)) {
_rotation = (_rotation - 3);
}
if ((myRotFak == 1) and (45 >= myRot)) {
_rotation = (_rotation + 3);
}
myRotSteps--;
}
}
function glue() {
if (myGlueOn == 1) {
myGlueOn = 2;
_alpha = 40;
}
if (myGlueOn == 2) {
myGlueCount--;
if (myGlueCount == 0) {
_alpha = 100;
myGlueOn = 0;
myGlueCount = 100;
}
}
}
function walk() {
this.pl.gotoAndStop(myWalk[myWalkCount]);
myWalkCount++;
if (myWalkCount == 9) {
myWalkCount = 1;
}
}
function dead() {
if (_root.dead2 == 1) {
_root.dead2 = 2;
myStr = 200;
_root.playSound("dead");
_root.playSound("dead2");
}
if (_root.dead2 == 2) {
if (myStr >= -200) {
myStr = myStr - 10;
_width = (_width + myStr);
_alpha = (_alpha - 2);
_rotation = (_rotation - 30);
} else {
_root.dead2 = 3;
}
}
}
myPlayer = _root.myPlayer2;
this.gotoAndStop(myPlayer);
myAuswFak = 0;
myAusEcke = 0;
myShotOK = 1;
myMoveOn = 0;
myGetXtra = 0;
myRotSteps = 0;
myAngleDelta = 0;
myXtra = 0;
myGlueOn = 0;
myGlueCount = 100;
myWalk = new Array(1, 1, 2, 2, 1, 1, 3, 3);
myWalkCount = 1;
myShotWait = _root.sets[myPlayer][4];
mySpeed = _root.sets[myPlayer][2];
myDy = -Math.cos((_rotation * 3.14) / 180);
myDx = Math.sin((_rotation * 3.14) / 180);
po = new Object();
}
onClipEvent (enterFrame) {
if ((((myGlueOn == 0) and (_root.dead1 == 0)) and (_root.dead2 == 0)) and (_root.go == 1)) {
myRot = _rotation;
myDy = -Math.cos((_rotation * 3.14) / 180);
myDx = -Math.sin((_rotation * 3.14) / 180);
detectShot();
avoid();
border();
shootOK();
getXtra();
if (myGetXtra == 0) {
getWinkel(_x, _y, _root.pl1._x, _root.pl1._y);
}
drehen();
}
shield();
glue();
dead();
}
Instance of Symbol 400 MovieClip "pl1" in Frame 882
onClipEvent (load) {
function strafeRight() {
if (_x < 490) {
this.pl.gotoAndStop(myWalk[myWalkCount]);
myWalkCount++;
if (myWalkCount == 9) {
myWalkCount = 1;
}
_x = (_x + mySpeed);
}
}
function strafeLeft() {
if (60 < _x) {
this.pl.gotoAndStop(myWalk[myWalkCount]);
myWalkCount--;
if (myWalkCount == 0) {
myWalkCount = 8;
}
_x = (_x - mySpeed);
}
}
function rotRight() {
if (45 >= myAngle) {
myAngle = myAngle + 5;
}
_rotation = myAngle;
myDy = Math.cos((myAngle * 3.14) / 180);
myDx = Math.sin((myAngle * 3.14) / 180);
}
function rotLeft() {
if (myAngle >= -45) {
myAngle = myAngle - 5;
}
_rotation = myAngle;
myDy = Math.cos((myAngle * 3.14) / 180);
myDx = Math.sin((myAngle * 3.14) / 180);
}
function shotWait() {
if (myShotOk == 0) {
myShotWait--;
if (-1 >= myShotWait) {
myShotOK = 1;
}
}
}
function shoot() {
var sc = 0;
if (myShotOK == 1) {
sc = 0;
while (_root.shotList1.length >= sc) {
if (_root.shotList1[sc] == 0) {
_root.shotList1[sc] = 1;
break;
}
sc++;
}
_root.playSound("blast1");
po.x = ref._x;
po.y = ref._y;
_root.pl1.ref.localToGlobal(po);
_root.shotField.globalToLocal(po);
_root.shotField.attachMovie("shot1", "shot1" + sc, sc);
_root.shotField["shot1" + sc]._x = po.x;
_root.shotField["shot1" + sc]._y = po.y;
_root.shotField["shot1" + sc].myDx = myDx;
_root.shotField["shot1" + sc].myDy = myDy;
_root.shotField["shot1" + sc]._rotation = _rotation;
_root.shotField["shot1" + sc].myOn = 1;
_root.shotField["shot1" + sc].shot.myNum = sc;
myShotOk = 0;
myShotWait = _root.sets[myPlayer1][4];
this.blast.gotoAndPlay(2);
this.pl.gotoAndStop(4);
}
}
function glue() {
if (myGlueOn == 1) {
myGlueOn = 2;
_alpha = 40;
}
if (myGlueOn == 2) {
myGlueCount--;
if (myGlueCount == 0) {
_alpha = 100;
_root.pl2.myXtra = 0;
myGlueOn = 0;
myGlueCount = 100;
}
}
}
function shield() {
if (_root.pl1Xtra[6] == 1) {
_root.pl1Shield._visible = 1;
_root.pl1Shield._rotation = _root.pl1Shield._rotation + 15;
_root.pl1Shield._x = _x;
} else {
_root.pl1Shield._visible = 0;
}
}
function dead() {
if (_root.dead1 == 1) {
_root.dead1 = 2;
myStr = 200;
_root.playSound("dead");
_root.playSound("dead2");
}
if (_root.dead1 == 2) {
if (myStr >= -200) {
myStr = myStr - 10;
_width = (_width + myStr);
_alpha = (_alpha - 2);
_rotation = (_rotation - 30);
} else {
_root.dead1 = 3;
}
}
}
myPlayer1 = _root.myPlayer1;
this.gotoAndStop(myPlayer1);
myWalk = new Array(1, 1, 2, 2, 1, 1, 3, 3);
myWalkCount = 1;
myAngle = 0;
myShotOK = 1;
myShotWait = _root.sets[myPlayer1][4];
mySpeed = _root.sets[myPlayer1][2];
po = new Object();
myXtra = 1;
myGlueOn = 0;
myGlueCount = 100;
myWidth = _width;
_root.pl1Shield._visible = 0;
myDy = Math.cos((myAngle * 3.14) / 180);
myDx = Math.sin((myAngle * 3.14) / 180);
}
onClipEvent (enterFrame) {
if ((((myGlueOn == 0) and (_root.dead1 == 0)) and (_root.dead2 == 0)) and (_root.go == 1)) {
if (Key.isDown(Key.RIGHT) and (!Key.isDown(190))) {
rotRight();
}
if (Key.isDown(Key.LEFT) and (!Key.isDown(190))) {
rotLeft();
}
if (Key.isDown(190) and Key.isDown(Key.RIGHT)) {
strafeRight();
}
if (Key.isDown(190) and Key.isDown(Key.LEFT)) {
strafeLeft();
}
if (Key.isDown(Key.SHIFT)) {
shoot();
}
}
shotWait();
glue();
shield();
dead();
}
Instance of Symbol 216 MovieClip in Frame 882
onClipEvent (enterFrame) {
if ((0 >= _root.energy2) and (_root.dead2 == 0)) {
energy2 = 0;
_root.dead2 = 1;
}
if (0 < _root.dead2) {
energy2 = 0;
}
if (_root.dead1 == 0) {
energy2 = _root.energy2;
}
}
Instance of Symbol 218 MovieClip in Frame 882
onClipEvent (enterFrame) {
if ((0 >= _root.energy1) and (_root.dead1 == 0)) {
energy1 = 0;
_root.dead1 = 1;
}
if (0 < _root.dead2) {
energy2 = 0;
}
if (_root.dead2 == 0) {
energy1 = _root.energy1;
}
}
Frame 980
gotoAndStop (474);
Frame 983
stopAllSounds();
myPlayer1 = random(6) + 1;
order = new Array();
bricks = new Array();
BrickExtra = new Array(0, 0, 0, 0, 0, 0);
ExtraNames = new Array("raw", "maxx", "vamp", "wall", "def", "glue", "shield", "pow", "speed");
bricks[1] = [3, 1, 0, 1, 0, 1];
bricks[2] = [4, 0, 1, 0, 0, 1];
bricks[3] = [5, 1, 1, 1, 0, 0];
order[1] = 0;
order[2] = 0;
order[3] = 0;
order[4] = 0;
order[5] = 0;
shotList1 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
shotList2 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
i = 1;
while (i == 1) {
ran = random(6) + 1;
if (ran != myPlayer1) {
i = 0;
}
}
myPlayer2 = ran;
player1.gotoAndStop(myPlayer1);
player2.gotoAndStop(myPlayer2);
go = 1;
pl1Xtra = [0, 0, 0, 0, 0, 0, 0, 0];
pl2Xtra = [0, 0, 0, 0, 0, 0, 0, 0];
energy1 = sets[myPlayer1][0];
energy2 = sets[myPlayer2][0];
shotList1 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
shotList2 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
dead1 = 0;
dead2 = 0;
wins1 = 0;
wins2 = 0;
shotCount = 1;
play();
Instance of Symbol 253 MovieClip "detect2" in Frame 983
onClipEvent (enterFrame) {
_x = _root.pl2._x;
}
Instance of Symbol 410 MovieClip "detect4" in Frame 983
onClipEvent (enterFrame) {
_x = _root.pl1._x;
}
Instance of Symbol 257 MovieClip in Frame 983
onClipEvent (enterFrame) {
_x = _root.pl2._x;
if (_root.dead2 != 0) {
_visible = 0;
}
}
Instance of Symbol 258 MovieClip in Frame 983
onClipEvent (enterFrame) {
_x = _root.pl1._x;
if (_root.dead1 != 0) {
_visible = 0;
}
}
Instance of Symbol 259 MovieClip in Frame 983
onClipEvent (enterFrame) {
_y = (_root.brick1._y + 5);
_x = (_root.brick1._x + 10);
}
Instance of Symbol 260 MovieClip in Frame 983
onClipEvent (enterFrame) {
_y = (_root.brick2._y + 5);
_x = (_root.brick2._x + 10);
}
Instance of Symbol 261 MovieClip in Frame 983
onClipEvent (enterFrame) {
_y = (_root.brick3._y + 5);
_x = (_root.brick3._x + 10);
}
Instance of Symbol 262 MovieClip in Frame 983
onClipEvent (enterFrame) {
_y = (_root.brick4._y + 5);
_x = (_root.brick4._x + 10);
}
Instance of Symbol 263 MovieClip in Frame 983
onClipEvent (enterFrame) {
_y = (_root.brick5._y + 5);
_x = (_root.brick5._x + 10);
}
Instance of Symbol 411 MovieClip "pl2" in Frame 983
onClipEvent (load) {
function kollide(x1, y1, b1, h1, x2, y2, b2, h2) {
if ((((((((((x2 - (b2 / 2)) < (x1 + (b2 / 2))) and (y2 < (y1 - h1))) or (((x1 - (b1 / 2)) < (x2 + (b2 / 2))) and (y2 < (y1 - h1)))) or (((x2 - (b2 / 2)) < (x1 + (b2 / 2))) and (y1 < (y2 - h2)))) or (((x1 - (b1 / 2)) < (x2 + (b2 / 2))) and (y1 < (y2 - h2)))) or (((y1 - h1) < y2) and ((x1 + (b1 / 2)) < (x2 - (b2 / 2))))) or (((y1 - h1) < y2) and ((x2 + (b2 / 2)) < (x1 - (b1 / 2))))) or (((y2 - h2) < y1) and ((x1 + (b1 / 2)) < (x2 - (b2 / 2))))) or (((y2 - h2) < y1) and ((x2 + (b2 / 2)) < (x1 - (b1 / 2))))) {
return(0);
}
return(1);
}
function detectShot() {
var t;
var mc;
var sDx;
var eX;
var sSpeed;
t = 0;
while (_root.shotList1.length >= t) {
mc = _root.shotField["shot1" + t];
if (_root.detect2.hitTest(mc)) {
sDx = mc.shot.myDx;
sSpeed = mc.shot.mySpeed;
eX = mc._x;
if (_x >= eX) {
myAuswFak = 1;
}
if (_x < eX) {
myAuswFak = -1;
}
myAuswSteps = random(10) + 5;
return;
}
t++;
}
}
function avoid() {
if ((myAuswFak != 0) and (myAusEcke == 0)) {
_x = (_x + (mySpeed * myAuswFak));
walk();
myAuswSteps--;
if (myAuswSteps == 0) {
myAuswFak = 0;
myAuswSteps = random(10) + 5;
}
}
}
function border() {
if (60 >= _x) {
myAusEcke = 1;
myAusEckeSteps = random(20) + 10;
}
if (_x >= 490) {
myAusEcke = -1;
myAusEckeSteps = random(30) + 10;
}
if (myAusEcke != 0) {
_x = (_x + (mySpeed * myAusEcke));
walk();
myAusEckeSteps--;
if (myAusEckeSteps == 0) {
myAusEcke = 0;
myAusEckeSteps = random(30) + 10;
}
}
}
function shootOK() {
var steps;
var ex;
var br;
var t;
var x1;
var y1;
var ey;
var h1;
var b1;
var hit;
speed = _root.pl2ShotSpeed;
steps = Math.abs(int((190 / speed) * myDy));
ex = ((myDx * steps) * speed) + _x;
br = 0;
hit = 0;
t = 1;
while (5 >= t) {
if (_root.bricks[_root.round][t] == 1) {
x1 = _root["brick" + t]._x - (_root.bricks[_root.round][0] * steps);
y1 = _root["brick" + t]._y;
h1 = _root["brick" + t]._height;
b1 = _root["brick" + t]._width;
if (kollide(ex, 190, 60, 50, x1, y1, b1, h1) == 1) {
hit++;
break;
}
}
t++;
}
if (hit == 0) {
shoot();
}
if ((((hit != 0) and (_root["brick" + t].brick.myXtra != 0)) and (random(3) == 1)) or (_root.pl2Xtra[4] == 1)) {
shoot();
}
}
function shotWait() {
if (myShotOk == 0) {
myShotWait--;
if (-1 >= myShotWait) {
myShotOK = 1;
}
}
}
function shoot() {
var sc = 0;
shotWait();
if (((myShotOK == 1) and (_root.wall1.wall.myOn == 0)) and (random(3) == 1)) {
sc = 0;
while (_root.shotList2.length >= sc) {
if (_root.shotList2[sc] == 0) {
_root.shotList2[sc] = 1;
break;
}
sc++;
}
_root.playSound("blast2");
po.x = ref._x;
po.y = ref._y;
_root.pl2.ref.localToGlobal(po);
_root.shotField.globalToLocal(po);
_root.shotField.attachMovie("shot2", "shot2" + sc, sc);
_root.shotField["shot2" + sc]._x = po.x;
_root.shotField["shot2" + sc]._y = po.y;
_root.shotField["shot2" + sc].myDx = myDx;
_root.shotField["shot2" + sc].myDy = myDy;
_root.shotField["shot2" + sc]._rotation = _rotation;
_root.shotField["shot2" + sc].myOn = 1;
_root.shotField["shot2" + sc].shot.myNum = sc;
myShotOk = 0;
myShotWait = _root.sets[myPlayer][4];
this.pl.gotoAndStop(4);
this.blast.gotoAndPlay(2);
}
}
function shield() {
if (_root.pl2Xtra[6] == 1) {
_root.pl2Shield._visible = 1;
_root.pl2Shield._rotation = _root.pl2Shield._rotation + 15;
_root.pl2Shield._x = _x;
} else {
_root.pl2Shield._visible = 0;
}
}
function getXtra() {
var bx;
if ((myGetXtra == 0) and (_root.wall1.wall.myOn == 0)) {
t = 1;
while (5 >= t) {
myBrick = _root["brick" + t];
r = _rotation;
bx = myBrick.brick.myXtra;
if (_root.detect3.hitTest(myBrick) and (bx != 0)) {
if (_root.ranking[myXtra] >= _root.ranking[bx]) {
if (random(3) == 1) {
myGetXtra = 1;
}
break;
}
}
t++;
}
}
if (myGetXtra == 1) {
getWinkel(myBrick._x, myBrick._y, _x, _y);
myAuswSteps = int(Math.abs(myBrick._x - _x) / mySpeed);
if (_x < ((myBrick._x + random(40)) + 20)) {
myAuswFak = 1;
}
if (((myBrick._x - random(40)) - 20) < _x) {
myAuswFak = -1;
}
if ((myBrick.brick.myXtra == 0) or (myBrick._x < 100)) {
myGetXtra = 0;
}
}
}
function getWinkel(x1, y1, x2, y2) {
var x1;
var x2;
var y1;
var y2;
x = int(x1 - x2);
y = int(y1 - y2);
a = -((Math.atan(x / y) * 180) / Math.PI);
myRotSteps = int(Math.abs(myRot - a) / 3);
if ((a - myRot) < 0) {
myRotFak = -1;
}
if ((a - myRot) >= 0) {
myRotFak = 1;
}
}
function drehen() {
if (0 < myRotSteps) {
if ((myRotFak == -1) and (myRot >= -45)) {
_rotation = (_rotation - 3);
}
if ((myRotFak == 1) and (45 >= myRot)) {
_rotation = (_rotation + 3);
}
myRotSteps--;
}
}
function glue() {
if (myGlueOn == 1) {
myGlueOn = 2;
_alpha = 40;
}
if (myGlueOn == 2) {
myGlueCount--;
if (myGlueCount == 0) {
_alpha = 100;
myGlueOn = 0;
myGlueCount = 100;
}
}
}
function walk() {
this.pl.gotoAndStop(myWalk[myWalkCount]);
myWalkCount++;
if (myWalkCount == 9) {
myWalkCount = 1;
}
}
function dead() {
if (_root.dead2 == 1) {
_root.dead2 = 2;
myStr = 200;
_root.playSound("dead");
_root.playSound("dead2");
}
if (_root.dead2 == 2) {
if (myStr >= -200) {
myStr = myStr - 10;
_width = (_width + myStr);
_alpha = (_alpha - 2);
_rotation = (_rotation - 30);
} else {
_root.dead2 = 3;
}
}
}
myPlayer = _root.myPlayer2;
this.gotoAndStop(myPlayer);
myAuswFak = 0;
myAusEcke = 0;
myShotOK = 1;
myMoveOn = 0;
myGetXtra = 0;
myRotSteps = 0;
myAngleDelta = 0;
myXtra = 0;
myGlueOn = 0;
myGlueCount = 100;
myWalk = new Array(1, 1, 2, 2, 1, 1, 3, 3);
myWalkCount = 1;
myShotWait = _root.sets[myPlayer][4];
mySpeed = _root.sets[myPlayer][2];
myDy = -Math.cos((_rotation * 3.14) / 180);
myDx = Math.sin((_rotation * 3.14) / 180);
po = new Object();
}
onClipEvent (enterFrame) {
if ((((myGlueOn == 0) and (_root.dead1 == 0)) and (_root.dead2 == 0)) and (_root.go == 1)) {
myRot = _rotation;
myDy = -Math.cos((_rotation * 3.14) / 180);
myDx = -Math.sin((_rotation * 3.14) / 180);
detectShot();
avoid();
border();
shootOK();
getXtra();
if (myGetXtra == 0) {
getWinkel(_x, _y, _root.pl1._x, _root.pl1._y);
}
drehen();
}
shield();
glue();
dead();
}
Instance of Symbol 309 MovieClip "brick1" in Frame 983
onClipEvent (load) {
myNumber = 1;
}
Instance of Symbol 310 MovieClip "brick2" in Frame 983
onClipEvent (load) {
myNumber = 2;
}
Instance of Symbol 311 MovieClip "brick3" in Frame 983
onClipEvent (load) {
myNumber = 3;
}
Instance of Symbol 312 MovieClip "brick4" in Frame 983
onClipEvent (load) {
myNumber = 4;
}
Instance of Symbol 313 MovieClip "brick5" in Frame 983
onClipEvent (load) {
myNumber = 5;
}
Instance of Symbol 413 MovieClip "pl1" in Frame 983
onClipEvent (load) {
function kollide(x1, y1, b1, h1, x2, y2, b2, h2) {
if ((((((((((x2 - (b2 / 2)) < (x1 + (b2 / 2))) and (y2 < (y1 - h1))) or (((x1 - (b1 / 2)) < (x2 + (b2 / 2))) and (y2 < (y1 - h1)))) or (((x2 - (b2 / 2)) < (x1 + (b2 / 2))) and (y1 < (y2 - h2)))) or (((x1 - (b1 / 2)) < (x2 + (b2 / 2))) and (y1 < (y2 - h2)))) or (((y1 - h1) < y2) and ((x1 + (b1 / 2)) < (x2 - (b2 / 2))))) or (((y1 - h1) < y2) and ((x2 + (b2 / 2)) < (x1 - (b1 / 2))))) or (((y2 - h2) < y1) and ((x1 + (b1 / 2)) < (x2 - (b2 / 2))))) or (((y2 - h2) < y1) and ((x2 + (b2 / 2)) < (x1 - (b1 / 2))))) {
return(0);
}
return(1);
}
function detectShot() {
var t;
var mc;
var sDx;
var eX;
var sSpeed;
t = 0;
while (_root.shotList1.length >= t) {
mc = _root.shotField["shot2" + t];
if (_root.detect4.hitTest(mc)) {
sDx = mc.shot.myDx;
sSpeed = mc.shot.mySpeed;
eX = mc._x;
if (_x >= eX) {
myAuswFak = 1;
}
if (_x < eX) {
myAuswFak = -1;
}
myAuswSteps = random(10) + 5;
return;
}
t++;
}
}
function avoid() {
if ((myAuswFak != 0) and (myAusEcke == 0)) {
_x = (_x + (mySpeed * myAuswFak));
walk();
myAuswSteps--;
if (myAuswSteps == 0) {
myAuswFak = 0;
myAuswSteps = random(10) + 5;
}
}
}
function border() {
if (60 >= _x) {
myAusEcke = 1;
myAusEckeSteps = random(20) + 10;
}
if (_x >= 490) {
myAusEcke = -1;
myAusEckeSteps = random(30) + 10;
}
if (myAusEcke != 0) {
_x = (_x + (mySpeed * myAusEcke));
walk();
myAusEckeSteps--;
if (myAusEckeSteps == 0) {
myAusEcke = 0;
myAusEckeSteps = random(30) + 10;
}
}
}
function shootOK() {
var steps;
var ex;
var br;
var t;
var x1;
var y1;
var ey;
var h1;
var b1;
var hit;
speed = _root.pl1ShotSpeed;
steps = Math.abs(int(((_y - 190) / speed) * myDy));
ex = ((myDx * steps) * speed) + _x;
br = 0;
hit = 0;
t = 1;
while (5 >= t) {
if (_root.bricks[_root.round][t] == 1) {
x1 = _root["brick" + t]._x - (_root.bricks[_root.round][0] * steps);
y1 = _root["brick" + t]._y;
h1 = _root["brick" + t]._height;
b1 = _root["brick" + t]._width;
if (kollide(ex, 190, 60, 50, x1, y1, b1, h1) == 1) {
hit++;
break;
}
}
t++;
}
if (hit == 0) {
shoot();
}
if ((((hit != 0) and (_root["brick" + t].brick.myXtra != 0)) and (random(3) == 1)) or (_root.pl1Xtra[4] == 1)) {
shoot();
}
}
function shotWait() {
if (myShotOk == 0) {
myShotWait--;
if (-1 >= myShotWait) {
myShotOK = 1;
}
}
}
function shoot() {
var sc = 0;
shotWait();
if (((myShotOK == 1) and (_root.wall2.wall.myOn == 0)) and (random(3) == 1)) {
sc = 0;
while (_root.shotList1.length >= sc) {
if (_root.shotList1[sc] == 0) {
_root.shotList1[sc] = 1;
break;
}
sc++;
}
_root.playSound("blast1");
po.x = ref._x;
po.y = ref._y;
_root.pl1.ref.localToGlobal(po);
_root.shotField.globalToLocal(po);
_root.shotField.attachMovie("shot1", "shot1" + sc, sc);
_root.shotField["shot1" + sc]._x = po.x;
_root.shotField["shot1" + sc]._y = po.y;
_root.shotField["shot1" + sc].myDx = myDx;
_root.shotField["shot1" + sc].myDy = myDy;
_root.shotField["shot1" + sc]._rotation = _rotation;
_root.shotField["shot1" + sc].myOn = 1;
_root.shotField["shot1" + sc].shot.myNum = sc;
myShotOk = 0;
myShotWait = _root.sets[myPlayer][4];
this.pl.gotoAndStop(4);
this.blast.gotoAndPlay(2);
}
}
function shield() {
if (_root.pl1Xtra[6] == 1) {
_root.pl1Shield._visible = 1;
_root.pl1Shield._rotation = _root.pl1Shield._rotation + 15;
_root.pl1Shield._x = _x;
} else {
_root.pl1Shield._visible = 0;
}
}
function getXtra() {
var bx;
if ((myGetXtra == 0) and (_root.wall2.wall.myOn == 0)) {
t = 1;
while (5 >= t) {
myBrick = _root["brick" + t];
r = _rotation;
bx = myBrick.brick.myXtra;
if (_root.detect3.hitTest(myBrick) and (bx != 0)) {
if (_root.ranking[myXtra] >= _root.ranking[bx]) {
if (random(3) == 1) {
myGetXtra = 1;
}
break;
}
}
t++;
}
}
if (myGetXtra == 1) {
getWinkel(myBrick._x, myBrick._y, _x, _y);
myAuswSteps = int(Math.abs(myBrick._x - _x) / mySpeed);
if (_x < ((myBrick._x + random(40)) + 20)) {
myAuswFak = 1;
}
if (((myBrick._x - random(40)) + 20) < _x) {
myAuswFak = -1;
}
if ((myBrick.brick.myXtra == 0) or (myBrick._x < 100)) {
myGetXtra = 0;
}
}
}
function getWinkel(x1, y1, x2, y2) {
var x1;
var x2;
var y1;
var y2;
x = int(x1 - x2);
y = int(y1 - y2);
a = -((Math.atan(x / y) * 180) / Math.PI);
myRotSteps = int(Math.abs(myRot - a) / 3);
if ((a - myRot) < 0) {
myRotFak = -1;
}
if ((a - myRot) >= 0) {
myRotFak = 1;
}
}
function drehen() {
if (0 < myRotSteps) {
if ((myRotFak == -1) and (myRot >= -45)) {
_rotation = (_rotation - 3);
}
if ((myRotFak == 1) and (45 >= myRot)) {
_rotation = (_rotation + 3);
}
myRotSteps--;
}
}
function glue() {
if (myGlueOn == 1) {
myGlueOn = 2;
_alpha = 40;
}
if (myGlueOn == 2) {
myGlueCount--;
if (myGlueCount == 0) {
_alpha = 100;
myGlueOn = 0;
myGlueCount = 100;
}
}
}
function walk() {
this.pl.gotoAndStop(myWalk[myWalkCount]);
myWalkCount++;
if (myWalkCount == 9) {
myWalkCount = 1;
}
}
function dead() {
if (_root.dead1 == 1) {
_root.dead1 = 2;
myStr = 200;
_root.playSound("dead");
_root.playSound("dead2");
}
if (_root.dead1 == 2) {
if (myStr >= -200) {
myStr = myStr - 10;
_width = (_width + myStr);
_alpha = (_alpha - 2);
_rotation = (_rotation - 30);
} else {
_root.dead1 = 3;
}
}
}
myPlayer = _root.myPlayer1;
this.gotoAndStop(myPlayer);
myAuswFak = 0;
myAusEcke = 0;
myShotOK = 1;
myMoveOn = 0;
myGetXtra = 0;
myRotSteps = 0;
myAngleDelta = 0;
myXtra = 0;
myGlueOn = 0;
myGlueCount = 100;
myWalk = new Array(1, 1, 2, 2, 1, 1, 3, 3);
myWalkCount = 1;
myShotWait = _root.sets[myPlayer][4];
mySpeed = _root.sets[myPlayer][2];
myDy = -Math.cos((_rotation * 3.14) / 180);
myDx = Math.sin((_rotation * 3.14) / 180);
po = new Object();
}
onClipEvent (enterFrame) {
if ((((myGlueOn == 0) and (_root.dead1 == 0)) and (_root.dead2 == 0)) and (_root.go == 1)) {
myRot = _rotation;
myDy = Math.cos((_rotation * 3.14) / 180);
myDx = Math.sin((_rotation * 3.14) / 180);
detectShot();
avoid();
border();
shootOK();
getXtra();
if (myGetXtra == 0) {
getWinkel(_x, _y, _root.pl2._x, _root.pl2._y);
}
drehen();
}
shield();
glue();
dead();
}
Instance of Symbol 364 MovieClip "pl1hit" in Frame 983
onClipEvent (enterFrame) {
_rotation = _root.pl1._rotation;
}
Instance of Symbol 373 MovieClip in Frame 983
onClipEvent (enterFrame) {
if (0 >= _root.energy2) {
energy2 = 0;
}
if ((0 >= _root.energy2) and (_root.dead2 == 0)) {
energy2 = 0;
_root.dead2 = 1;
}
if (0 < _root.dead2) {
energy2 = 0;
}
if (_root.dead1 == 0) {
energy2 = _root.energy2;
}
}
Instance of Symbol 374 MovieClip in Frame 983
onClipEvent (enterFrame) {
if (0 >= _root.energy1) {
energy1 = 0;
}
if ((0 >= _root.energy1) and (_root.dead1 == 0)) {
energy1 = 0;
_root.dead1 = 1;
}
if (0 < _root.dead2) {
energy2 = 0;
}
if (_root.dead2 == 0) {
energy1 = _root.energy1;
}
}
Frame 984
if (dead1 == 3) {
gotoAndStop (473);
}
if (dead2 == 3) {
gotoAndStop (473);
}
Frame 985
gotoAndPlay (984);
Frame 988
count1 = 1;
name1 = names[1];
count2 = 1;
name2 = names[1];
order = new Array();
bricks = new Array();
BrickExtra = new Array(0, 0, 0, 0, 0, 0);
ExtraNames = new Array("raw", "maxx", "vamp", "wall", "def", "glue", "shield", "pow", "speed");
bricks[1] = [3, 1, 0, 1, 0, 1];
bricks[2] = [4, 0, 1, 0, 0, 1];
bricks[3] = [5, 1, 1, 1, 0, 0];
Frame 1103
myPlayer1 = count1;
myPlayer2 = count2;
round = 1;
wins1 = 0;
wins2 = 0;
Frame 1116
Mouse.hide();
Frame 1165
go = 0;
pl1Xtra = [0, 0, 0, 0, 0, 0, 0, 0];
pl2Xtra = [0, 0, 0, 0, 0, 0, 0, 0];
energy1 = sets[myPlayer1][0];
energy2 = sets[myPlayer2][0];
shotList1 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
shotList2 = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
dead1 = 0;
dead2 = 0;
shotCount = 1;
play();
Instance of Symbol 253 MovieClip "detect2" in Frame 1165
onClipEvent (enterFrame) {
_x = _root.pl2._x;
}
Instance of Symbol 257 MovieClip in Frame 1165
onClipEvent (enterFrame) {
_x = _root.pl2._x;
if (_root.dead2 != 0) {
_visible = 0;
}
}
Instance of Symbol 258 MovieClip in Frame 1165
onClipEvent (enterFrame) {
_x = _root.pl1._x;
if (_root.dead1 != 0) {
_visible = 0;
}
}
Instance of Symbol 259 MovieClip in Frame 1165
onClipEvent (enterFrame) {
_y = (_root.brick1._y + 5);
_x = (_root.brick1._x + 10);
}
Instance of Symbol 260 MovieClip in Frame 1165
onClipEvent (enterFrame) {
_y = (_root.brick2._y + 5);
_x = (_root.brick2._x + 10);
}
Instance of Symbol 261 MovieClip in Frame 1165
onClipEvent (enterFrame) {
_y = (_root.brick3._y + 5);
_x = (_root.brick3._x + 10);
}
Instance of Symbol 262 MovieClip in Frame 1165
onClipEvent (enterFrame) {
_y = (_root.brick4._y + 5);
_x = (_root.brick4._x + 10);
}
Instance of Symbol 263 MovieClip in Frame 1165
onClipEvent (enterFrame) {
_y = (_root.brick5._y + 5);
_x = (_root.brick5._x + 10);
}
Instance of Symbol 422 MovieClip "pl2" in Frame 1165
onClipEvent (load) {
function strafeRight() {
if (_x < 490) {
this.pl.gotoAndStop(myWalk[myWalkCount]);
myWalkCount++;
if (myWalkCount == 9) {
myWalkCount = 1;
}
_x = (_x + mySpeed);
}
}
function strafeLeft() {
if (60 < _x) {
this.pl.gotoAndStop(myWalk[myWalkCount]);
myWalkCount--;
if (myWalkCount == 0) {
myWalkCount = 8;
}
_x = (_x - mySpeed);
}
}
function rotRight() {
if (45 >= myAngle) {
myAngle = myAngle + 5;
}
_rotation = myAngle;
myDy = -Math.cos((myAngle * 3.14) / 180);
myDx = -Math.sin((myAngle * 3.14) / 180);
}
function rotLeft() {
if (myAngle >= -45) {
myAngle = myAngle - 5;
}
_rotation = myAngle;
myDy = -Math.cos((myAngle * 3.14) / 180);
myDx = -Math.sin((myAngle * 3.14) / 180);
}
function shotWait() {
if (myShotOk == 0) {
myShotWait--;
if (-1 >= myShotWait) {
myShotOK = 1;
}
}
}
function shoot() {
var sc = 0;
if (myShotOK == 1) {
sc = 0;
while (_root.shotList2.length >= sc) {
if (_root.shotList2[sc] == 0) {
_root.shotList2[sc] = 1;
break;
}
sc++;
}
_root.playSound("blast2");
po.x = ref._x;
po.y = ref._y;
_root.pl2.ref.localToGlobal(po);
_root.shotField.globalToLocal(po);
_root.shotField.attachMovie("shot2", "shot2" + sc, sc);
_root.shotField["shot2" + sc]._x = po.x;
_root.shotField["shot2" + sc]._y = po.y;
_root.shotField["shot2" + sc].myDx = myDx;
_root.shotField["shot2" + sc].myDy = myDy;
_root.shotField["shot2" + sc]._rotation = _rotation;
_root.shotField["shot2" + sc].myOn = 1;
_root.shotField["shot2" + sc].shot.myNum = sc;
myShotOk = 0;
myShotWait = _root.sets[myPlayer][4];
this.blast.gotoAndPlay(2);
this.pl.gotoAndStop(4);
}
}
function glue() {
if (myGlueOn == 1) {
myGlueOn = 2;
_alpha = 40;
}
if (myGlueOn == 2) {
myGlueCount--;
if (myGlueCount == 0) {
_alpha = 100;
_root.pl2.myXtra = 0;
myGlueOn = 0;
myGlueCount = 100;
}
}
}
function shield() {
if (_root.pl2Xtra[6] == 1) {
_root.pl2Shield._visible = 1;
_root.pl2Shield._rotation = _root.pl2Shield._rotation + 15;
_root.pl2Shield._x = _x;
} else {
_root.pl2Shield._visible = 0;
}
}
function dead() {
if (_root.dead2 == 1) {
_root.dead2 = 2;
myStr = 200;
_root.playSound("dead");
_root.playSound("dead2");
}
if (_root.dead2 == 2) {
if (myStr >= -200) {
myStr = myStr - 10;
_width = (_width + myStr);
_alpha = (_alpha - 2);
_rotation = (_rotation - 30);
} else {
_root.dead2 = 3;
}
}
}
myPlayer = _root.myPlayer2;
this.gotoAndStop(myPlayer);
myWalk = new Array(1, 1, 2, 2, 1, 1, 3, 3);
myWalkCount = 1;
myAngle = 0;
myShotOK = 1;
myShotWait = _root.sets[myPlayer][4];
mySpeed = _root.sets[myPlayer][2];
po = new Object();
myXtra = 1;
myGlueOn = 0;
myGlueCount = 100;
myWidth = _width;
_root.pl1Shield._visible = 0;
myDy = -Math.cos((myAngle * 3.14) / 180);
myDx = -Math.sin((myAngle * 3.14) / 180);
}
onClipEvent (enterFrame) {
if ((((myGlueOn == 0) and (_root.dead1 == 0)) and (_root.dead2 == 0)) and (_root.go == 1)) {
if (Key.isDown(71) and (!Key.isDown(65))) {
rotRight();
}
if (Key.isDown(70) and (!Key.isDown(65))) {
rotLeft();
}
if (Key.isDown(65) and Key.isDown(71)) {
strafeRight();
}
if (Key.isDown(65) and Key.isDown(70)) {
strafeLeft();
}
if (Key.isDown(83)) {
shoot();
}
}
shotWait();
glue();
shield();
dead();
}
Instance of Symbol 309 MovieClip "brick1" in Frame 1165
onClipEvent (load) {
myNumber = 1;
}
Instance of Symbol 310 MovieClip "brick2" in Frame 1165
onClipEvent (load) {
myNumber = 2;
}
Instance of Symbol 311 MovieClip "brick3" in Frame 1165
onClipEvent (load) {
myNumber = 3;
}
Instance of Symbol 312 MovieClip "brick4" in Frame 1165
onClipEvent (load) {
myNumber = 4;
}
Instance of Symbol 313 MovieClip "brick5" in Frame 1165
onClipEvent (load) {
myNumber = 5;
}
Instance of Symbol 358 MovieClip "pl1" in Frame 1165
onClipEvent (load) {
function strafeRight() {
if (_x < 490) {
this.pl.gotoAndStop(myWalk[myWalkCount]);
myWalkCount++;
if (myWalkCount == 9) {
myWalkCount = 1;
}
_x = (_x + mySpeed);
}
}
function strafeLeft() {
if (60 < _x) {
this.pl.gotoAndStop(myWalk[myWalkCount]);
myWalkCount--;
if (myWalkCount == 0) {
myWalkCount = 8;
}
_x = (_x - mySpeed);
}
}
function rotRight() {
if (45 >= myAngle) {
myAngle = myAngle + 5;
}
_rotation = myAngle;
myDy = Math.cos((myAngle * 3.14) / 180);
myDx = Math.sin((myAngle * 3.14) / 180);
}
function rotLeft() {
if (myAngle >= -45) {
myAngle = myAngle - 5;
}
_rotation = myAngle;
myDy = Math.cos((myAngle * 3.14) / 180);
myDx = Math.sin((myAngle * 3.14) / 180);
}
function shotWait() {
if (myShotOk == 0) {
myShotWait--;
if (-1 >= myShotWait) {
myShotOK = 1;
}
}
}
function shoot() {
var sc = 0;
if (myShotOK == 1) {
sc = 0;
while (_root.shotList1.length >= sc) {
if (_root.shotList1[sc] == 0) {
_root.shotList1[sc] = 1;
break;
}
sc++;
}
_root.playSound("blast1");
po.x = ref._x;
po.y = ref._y;
_root.pl1.ref.localToGlobal(po);
_root.shotField.globalToLocal(po);
_root.shotField.attachMovie("shot1", "shot1" + sc, sc);
_root.shotField["shot1" + sc]._x = po.x;
_root.shotField["shot1" + sc]._y = po.y;
_root.shotField["shot1" + sc].myDx = myDx;
_root.shotField["shot1" + sc].myDy = myDy;
_root.shotField["shot1" + sc]._rotation = _rotation;
_root.shotField["shot1" + sc].myOn = 1;
_root.shotField["shot1" + sc].shot.myNum = sc;
myShotOk = 0;
myShotWait = _root.sets[myPlayer][4];
this.blast.gotoAndPlay(2);
this.pl.gotoAndStop(4);
}
}
function glue() {
if (myGlueOn == 1) {
myGlueOn = 2;
_alpha = 40;
}
if (myGlueOn == 2) {
myGlueCount--;
if (myGlueCount == 0) {
_alpha = 100;
_root.pl2.myXtra = 0;
myGlueOn = 0;
myGlueCount = 100;
}
}
}
function shield() {
if (_root.pl1Xtra[6] == 1) {
_root.pl1Shield._visible = 1;
_root.pl1Shield._rotation = _root.pl1Shield._rotation + 15;
_root.pl1Shield._x = _x;
} else {
_root.pl1Shield._visible = 0;
}
}
function dead() {
if (_root.dead1 == 1) {
_root.dead1 = 2;
myStr = 200;
_root.playSound("dead");
_root.playSound("dead2");
}
if (_root.dead1 == 2) {
if (myStr >= -200) {
myStr = myStr - 10;
_width = (_width + myStr);
_alpha = (_alpha - 2);
_rotation = (_rotation - 30);
} else {
_root.dead1 = 3;
}
}
}
myPlayer = _root.myPlayer1;
this.gotoAndStop(myPlayer);
myWalk = new Array(1, 1, 2, 2, 1, 1, 3, 3);
myWalkCount = 1;
myAngle = 0;
myShotOK = 1;
myShotWait = _root.sets[myPlayer][4];
mySpeed = _root.sets[myPlayer][2];
po = new Object();
myXtra = 1;
myGlueOn = 0;
myGlueCount = 100;
myWidth = _width;
_root.pl1Shield._visible = 0;
myDy = Math.cos((myAngle * 3.14) / 180);
myDx = Math.sin((myAngle * 3.14) / 180);
}
onClipEvent (enterFrame) {
if ((((myGlueOn == 0) and (_root.dead1 == 0)) and (_root.dead2 == 0)) and (_root.go == 1)) {
if (Key.isDown(Key.RIGHT) and (!Key.isDown(190))) {
rotRight();
}
if (Key.isDown(Key.LEFT) and (!Key.isDown(190))) {
rotLeft();
}
if (Key.isDown(190) and Key.isDown(Key.RIGHT)) {
strafeRight();
}
if (Key.isDown(190) and Key.isDown(Key.LEFT)) {
strafeLeft();
}
if (Key.isDown(Key.SHIFT)) {
shoot();
}
}
shotWait();
glue();
shield();
dead();
}
Instance of Symbol 364 MovieClip "pl1hit" in Frame 1165
onClipEvent (enterFrame) {
_rotation = _root.pl1._rotation;
}
Instance of Symbol 373 MovieClip in Frame 1165
onClipEvent (enterFrame) {
if (0 >= _root.energy2) {
energy2 = 0;
}
if ((0 >= _root.energy2) and (_root.dead2 == 0)) {
energy2 = 0;
_root.dead2 = 1;
}
if (0 < _root.dead2) {
energy2 = 0;
}
if (_root.dead1 == 0) {
energy2 = _root.energy2;
}
}
Instance of Symbol 374 MovieClip in Frame 1165
onClipEvent (enterFrame) {
if (0 >= _root.energy1) {
energy1 = 0;
}
if ((0 >= _root.energy1) and (_root.dead1 == 0)) {
energy1 = 0;
_root.dead1 = 1;
}
if (0 < _root.dead2) {
energy2 = 0;
}
if (_root.dead2 == 0) {
energy1 = _root.energy1;
}
}
Frame 1234
go = 1;
Frame 1235
if (dead1 == 3) {
wins2++;
round++;
if (wins2 < 2) {
gotoAndPlay (1116);
}
if (wins2 == 2) {
winner = myPlayer2;
gotoAndPlay (1239);
}
}
if (dead2 == 3) {
wins1++;
round++;
if (wins1 < 2) {
gotoAndPlay (1116);
}
if (wins1 == 2) {
winner = myPlayer1;
gotoAndPlay (1239);
}
}
Frame 1236
gotoAndPlay (1235);
Frame 1239
name = names[winner];
Frame 1317
gotoAndStop (473);
Symbol 18 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 6
stop();
Instance of Symbol 18 MovieClip "shot" in Symbol 22 MovieClip [shot2] Frame 1
onClipEvent (load) {
function xtraManager() {
if (getXtra(1) == 1) {
this.gotoAndStop(2);
mySpeed = _root.sets[myPlayer][3];
mySpeed = mySpeed * 2;
myDamage = myDamage * 2;
_root.pl2shotSpeed = mySpeed;
}
if (getXtra(2) == 1) {
this.gotoAndStop(3);
mySpeed = _root.sets[myPlayer][3];
mySpeed = mySpeed * 1.5;
_root.pl2shotSpeed = mySpeed;
}
if (getXtra(4) == 1) {
this.def._visible = 1;
myDeflect = 0;
}
}
function setXtra(k) {
var k;
_root.pl2Xtra = [0, 0, 0, 0, 0, 0, 0, 0];
_root.pl2Xtra[k] = 1;
}
function getXtra(k) {
var k;
var x;
x = _root.pl2Xtra[k];
return(x);
}
function brickHit() {
var ii;
var xtra;
ii = 1;
while (5 >= ii) {
if (this.shot.hitTest(_root["brick" + ii]) and (_parent._y < 210)) {
if (myDeflect == 1) {
_parent.bang.gotoAndPlay(2);
_parent._rotation = -_parent._rotation;
myDy = -myDy;
myRebound = 1;
_root.playSound("rebound");
myHit1 = 1;
}
xtra = _root["brick" + ii].brick.myXtra;
if (xtra != 0) {
_root["brick" + ii].brick.gotoAndStop(1);
_root["brick" + ii].brick.myXtra = 0;
_root.pl2Xtra[xtra] = 1;
_root.playSound("xtra");
if (xtra == 1) {
setXtra(xtra);
_root.pl2.myXtra = xtra;
}
if (xtra == 2) {
setXtra(xtra);
_root.pl2.myXtra = xtra;
}
if (xtra == 3) {
_root.wall2.wall.myOn = 1;
_root.pl2Xtra[4] = 0;
_root.pl2Xtra[6] = 0;
}
if (xtra == 4) {
_root.pl2Xtra[4] = 1;
_root.def2.gotoAndPlay(3);
}
if (xtra == 5) {
_root.pl1.myGlueOn = 1;
}
if (xtra == 6) {
setXtra(xtra);
_root.pl2.myXtra = xtra;
}
if (xtra == 7) {
_root.energy2 = _root.energy2 + 30;
}
if (xtra == 8) {
_root.pl2.mySpeed = _root.pl2.mySpeed + 1.5;
}
_root.shotList2[myNum] = 0;
removeMovieClip(_parent);
}
return;
}
ii++;
}
}
function wall() {
if (this.shot.hitTest(_root.wall1) and (myHit3 == 0)) {
myDy = -myDy;
_parent._rotation = -_parent._rotation;
_parent.bang.gotoAndPlay(2);
myHit3 = 1;
myRebound = 1;
_root.playSound("rebound");
}
}
function player() {
if ((this.shot.hitTest(_root.pl2) and (myRebound == 1)) and (myHit4 == 0)) {
if (_root.pl2Xtra[6] == 1) {
_root.shotList2[myNum] = 0;
removeMovieClip(_parent);
} else {
_parent.bang.gotoAndPlay(2);
_root.pl2Hit._x = _root.pl2._x;
_root.pl2Hit.gotoAndPlay(2);
_root.energy2 = _root.energy2 - myDamage;
_root.playSound("hit2");
mySpeed = mySpeed * 3;
myHit4 = 1;
}
}
if (this.shot.hitTest(_root.pl1) and (myHit4 == 0)) {
_parent.bang.gotoAndPlay(2);
_root.pl1Hit._x = _root.pl1._x;
_root.pl1Hit.gotoAndPlay(2);
_root.energy1 = _root.energy1 - myDamage;
_root.playSound("hit1");
if (_root.pl2Xtra[2] == 1) {
_root.energy2 = _root.energy2 + myDamage;
}
mySpeed = mySpeed * 3;
myHit4 = 1;
}
}
myPlayer = _root.pl2.myPlayer;
myDx = _root.pl2.myDx;
myDy = -_root.pl2.myDy;
mySpeed = _root.sets[myPlayer][3];
myDamage = _root.sets[myPlayer][1];
_root.pl2shotSpeed = mySpeed;
this.gotoAndStop(myPlayer + 3);
myHit1 = 0;
myHit2 = 0;
myHit3 = 0;
myHit4 = 0;
myRebound = 0;
myDeflect = 1;
this.def._visible = 0;
xtraManager();
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (myDx * mySpeed);
_parent._y = _parent._y + (myDy * mySpeed);
if ((this.shot.hitTest(_root.mask1) or this.shot.hitTest(_root.mask2)) and (myHit2 == 0)) {
myDx = -myDx;
_parent._rotation = -_parent._rotation;
_parent.bang.gotoAndPlay(2);
myHit2 = 1;
_root.playSound("rebound");
}
if ((590 < _parent._y) or (_parent._y < -10)) {
_root.shotList2[myNum] = 0;
removeMovieClip(_parent);
}
if (myHit1 == 0) {
brickHit();
}
wall();
player();
}
Symbol 23 MovieClip Frame 1
stop();
Instance of Symbol 23 MovieClip "shot" in Symbol 24 MovieClip [shot1] Frame 1
onClipEvent (load) {
function xtraManager() {
if (getXtra(1) == 1) {
this.gotoAndStop(2);
mySpeed = _root.sets[myPlayer][3];
mySpeed = mySpeed * 2;
myDamage = myDamage * 2;
_root.pl1shotSpeed = mySpeed;
}
if (getXtra(2) == 1) {
this.gotoAndStop(3);
mySpeed = _root.sets[myPlayer][3];
mySpeed = mySpeed * 1.5;
_root.pl1shotSpeed = mySpeed;
}
if (getXtra(4) == 1) {
this.def._visible = 1;
myDeflect = 0;
}
}
function setXtra(k) {
var k;
_root.pl1Xtra = [0, 0, 0, 0, 0, 0, 0, 0];
_root.pl1Xtra[k] = 1;
}
function getXtra(k) {
var k;
var x;
x = _root.pl1Xtra[k];
return(x);
}
function brickHit() {
var ii;
var xtra;
ii = 1;
while (5 >= ii) {
if (this.shot.hitTest(_root["brick" + ii]) and (190 < _parent._y)) {
if (myDeflect == 1) {
_parent.bang.gotoAndPlay(2);
_parent._rotation = -_parent._rotation;
myDy = -myDy;
myRebound = 1;
_root.playSound("rebound");
myHit1 = 1;
}
xtra = _root["brick" + ii].brick.myXtra;
if (xtra != 0) {
_root["brick" + ii].brick.gotoAndStop(1);
_root["brick" + ii].brick.myXtra = 0;
_root.pl1Xtra[xtra] = 1;
_root.playSound("xtra");
if (xtra == 1) {
setXtra(xtra);
_root.pl1.myXtra = xtra;
}
if (xtra == 2) {
setXtra(xtra);
_root.pl1.myXtra = xtra;
}
if (xtra == 3) {
_root.wall1.wall.myOn = 1;
_root.pl1Xtra[4] = 0;
_root.pl1Xtra[6] = 0;
}
if (xtra == 4) {
_root.pl1Xtra[4] = 1;
_root.def1.gotoAndPlay(3);
}
if (xtra == 5) {
_root.pl2.myGlueOn = 1;
}
if (xtra == 6) {
setXtra(xtra);
_root.pl1.myXtra = xtra;
}
if (xtra == 7) {
_root.energy1 = _root.energy1 + 30;
}
if (xtra == 8) {
_root.pl1.mySpeed = _root.pl1.mySpeed + 1.5;
}
_root.shotList1[myNum] = 0;
removeMovieClip(_parent);
}
return;
}
ii++;
}
}
function wall() {
if (this.shot.hitTest(_root.wall2) and (myHit3 == 0)) {
myDy = -myDy;
_parent._rotation = -_parent._rotation;
_parent.bang.gotoAndPlay(2);
myHit3 = 1;
myRebound = 1;
_root.playSound("rebound");
}
}
function player() {
if ((this.shot.hitTest(_root.pl1) and (myRebound == 1)) and (myHit4 == 0)) {
if (_root.pl1Xtra[6] == 1) {
_root.shotList1[myNum] = 0;
removeMovieClip(_parent);
} else {
_parent.bang.gotoAndPlay(2);
_root.pl1Hit._x = _root.pl1._x;
_root.pl1Hit.gotoAndPlay(2);
_root.energy1 = _root.energy1 - myDamage;
_root.playSound("hit1");
mySpeed = mySpeed * 3;
myHit4 = 1;
}
}
if (this.shot.hitTest(_root.pl2) and (myHit4 == 0)) {
_parent.bang.gotoAndPlay(2);
_root.pl2Hit._x = _root.pl2._x;
_root.pl2Hit.gotoAndPlay(2);
_root.energy2 = _root.energy2 - myDamage;
_root.playSound("hit2");
if (_root.pl1Xtra[2] == 1) {
_root.energy1 = _root.energy1 + myDamage;
}
mySpeed = mySpeed * 3;
myHit4 = 1;
}
}
myPlayer = _root.pl1.myPlayer;
myDx = _root.pl1.myDx;
myDy = -_root.pl1.myDy;
mySpeed = _root.sets[myPlayer][3];
myDamage = _root.sets[myPlayer][1];
this.gotoAndStop(myPlayer + 3);
_root.pl1shotSpeed = mySpeed;
myHit1 = 0;
myHit2 = 0;
myHit3 = 0;
myHit4 = 0;
myRebound = 0;
myDeflect = 1;
this.def._visible = 0;
xtraManager();
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (myDx * mySpeed);
_parent._y = _parent._y + (myDy * mySpeed);
if ((this.shot.hitTest(_root.mask1) or this.shot.hitTest(_root.mask2)) and (myHit2 == 0)) {
myDx = -myDx;
_parent._rotation = -_parent._rotation;
_parent.bang.gotoAndPlay(2);
myHit2 = 1;
_root.playSound("rebound");
}
if ((590 < _parent._y) or (_parent._y < -10)) {
_root.shotList1[myNum] = 0;
removeMovieClip(_parent);
}
if (myHit1 == 0) {
brickHit();
}
wall();
player();
}
Symbol 35 Button
on (release) {
_root.gotoAndPlay("enter");
}
Symbol 36 MovieClip Frame 1
stop();
Instance of Symbol 30 MovieClip in Symbol 36 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = (!_visible);
}
Symbol 43 MovieClip Frame 1
stop();
Instance of Symbol 30 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = (!_visible);
}
Symbol 66 Button
on (release) {
gotoAndStop (520);
}
Symbol 69 Button
on (release) {
gotoAndStop (482);
}
Symbol 73 Button
on (release) {
gotoAndStop (494);
}
Symbol 76 Button
on (release) {
gotoAndStop (503);
}
Symbol 80 Button
on (release) {
gotoAndStop (512);
}
Symbol 84 Button
on (release) {
gotoAndStop (988);
}
Symbol 88 Button
on (release) {
gotoAndStop (983);
}
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 5
stop();
Symbol 99 MovieClip Frame 10
stop();
Symbol 99 MovieClip Frame 16
stop();
Symbol 99 MovieClip Frame 22
stop();
Symbol 99 MovieClip Frame 29
stop();
Symbol 99 MovieClip Frame 35
stop();
Symbol 99 MovieClip Frame 40
stop();
Symbol 99 MovieClip Frame 46
stop();
Symbol 99 MovieClip Frame 54
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 123 Button
on (release) {
prev.gotoAndStop(2);
}
Symbol 127 Button
on (release) {
prev.gotoAndStop(3);
}
Symbol 131 Button
on (release) {
prev.gotoAndStop(4);
}
Symbol 135 Button
on (release) {
prev.gotoAndStop(5);
}
Symbol 139 Button
on (release) {
prev.gotoAndStop(6);
}
Symbol 143 Button
on (release) {
prev.gotoAndStop(7);
}
Symbol 149 Button
on (release) {
gotoAndStop (474);
}
Symbol 200 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 229 Button
on (release) {
gotoAndStop (527);
}
Symbol 230 MovieClip Frame 1
stop();
Symbol 233 Button
on (release) {
count = count - 1;
if (count == 0) {
count = 6;
}
select1.gotoAndStop(count);
name = names[count];
}
Symbol 234 Button
on (release) {
count = count + 1;
if (count == 7) {
count = 1;
}
select1.gotoAndStop(count);
name = names[count];
}
Symbol 247 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 1
stop();
Instance of Symbol 308 MovieClip "brick" in Symbol 309 MovieClip Frame 1
onClipEvent (load) {
function extra() {
var ran;
this.gotoAndStop(1);
myXtra = 0;
if (random(2) == 1) {
ran = random(9);
myXtra = ran;
this.gotoAndStop(ran + 1);
}
name = _root.ExtraNames[myXtra];
}
myNum = _parent.myNumber;
mySpeed = _root.bricks[_root.round][0];
myOn = 1;
myXtra = 0;
if (_root.bricks[_root.round][myNum] == 0) {
_parent._x = 1000;
myOn = 0;
}
}
onClipEvent (enterFrame) {
if (myOn == 1) {
_parent._x = _parent._x - mySpeed;
if (-70 >= _parent._x) {
_parent._x = 580;
extra();
}
}
}
Instance of Symbol 308 MovieClip "brick" in Symbol 310 MovieClip Frame 1
onClipEvent (load) {
function extra() {
var ran;
this.gotoAndStop(1);
myXtra = 0;
if (random(2) == 1) {
ran = random(9);
myXtra = ran;
this.gotoAndStop(ran + 1);
}
name = _root.ExtraNames[myXtra];
}
myNum = _parent.myNumber;
mySpeed = _root.bricks[_root.round][0];
myOn = 1;
myXtra = 0;
if (_root.bricks[_root.round][myNum] == 0) {
_parent._x = 1000;
myOn = 0;
}
}
onClipEvent (enterFrame) {
if (myOn == 1) {
_parent._x = _parent._x - mySpeed;
if (-70 >= _parent._x) {
_parent._x = 580;
extra();
}
}
}
Instance of Symbol 308 MovieClip "brick" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
function extra() {
var ran;
this.gotoAndStop(1);
myXtra = 0;
if (random(2) == 1) {
ran = random(9);
myXtra = ran;
this.gotoAndStop(ran + 1);
}
name = _root.ExtraNames[myXtra];
}
myNum = _parent.myNumber;
mySpeed = _root.bricks[_root.round][0];
myOn = 1;
myXtra = 0;
if (_root.bricks[_root.round][myNum] == 0) {
_parent._x = 1000;
myOn = 0;
}
}
onClipEvent (enterFrame) {
if (myOn == 1) {
_parent._x = _parent._x - mySpeed;
if (-70 >= _parent._x) {
_parent._x = 580;
extra();
}
}
}
Instance of Symbol 308 MovieClip "brick" in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
function extra() {
var ran;
this.gotoAndStop(1);
myXtra = 0;
if (random(2) == 1) {
ran = random(9);
myXtra = ran;
this.gotoAndStop(ran + 1);
}
name = _root.ExtraNames[myXtra];
}
myNum = _parent.myNumber;
mySpeed = _root.bricks[_root.round][0];
myOn = 1;
myXtra = 0;
if (_root.bricks[_root.round][myNum] == 0) {
_parent._x = 1000;
myOn = 0;
}
}
onClipEvent (enterFrame) {
if (myOn == 1) {
_parent._x = _parent._x - mySpeed;
if (-70 >= _parent._x) {
_parent._x = 580;
extra();
}
}
}
Instance of Symbol 308 MovieClip "brick" in Symbol 313 MovieClip Frame 1
onClipEvent (load) {
function extra() {
var ran;
this.gotoAndStop(1);
myXtra = 0;
if (random(2) == 1) {
ran = random(9);
myXtra = ran;
this.gotoAndStop(ran + 1);
}
name = _root.ExtraNames[myXtra];
}
myNum = _parent.myNumber;
mySpeed = _root.bricks[_root.round][0];
myOn = 1;
myXtra = 0;
if (_root.bricks[_root.round][myNum] == 0) {
_parent._x = 1000;
myOn = 0;
}
}
onClipEvent (enterFrame) {
if (myOn == 1) {
_parent._x = _parent._x - mySpeed;
if (-70 >= _parent._x) {
_parent._x = 580;
extra();
}
}
}
Instance of Symbol 316 MovieClip "wall" in Symbol 317 MovieClip Frame 1
onClipEvent (load) {
myOn = 0;
myX = _parent._x;
myTimer = 300;
_parent._x = 1000;
}
onClipEvent (enterFrame) {
if (myOn == 1) {
myOn = 2;
_parent._x = myX;
}
if (myOn == 2) {
myTimer--;
if (myTimer == 0) {
myOn = 0;
_parent._x = 1000;
myTimer = 300;
}
}
}
Symbol 325 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 110
_root.pl1Xtra[4] = 0;
gotoAndStop (1);
Symbol 364 MovieClip Frame 1
stop();
Symbol 364 MovieClip Frame 2
play();
Symbol 364 MovieClip Frame 3
gotoAndStop (1);
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 2
play();
Symbol 365 MovieClip Frame 3
gotoAndStop (1);
Symbol 367 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 110
_root.pl2Xtra[4] = 0;
_root.pl2.myXtra = 0;
gotoAndStop (1);
Symbol 387 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("main0");
}
Symbol 390 Button
on (release) {
_parent._x = -1000;
myOn = 0;
_root.go = 1;
}
Instance of Symbol 391 MovieClip in Symbol 392 MovieClip Frame 1
onClipEvent (load) {
_parent._x = -1000;
myOn = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.ESCAPE) and (myOn == 0)) {
myOn = 1;
_root.playSound("xtra");
Mouse.show();
_parent._x = 200;
_parent._y = 225;
_root.go = 0;
}
}
Symbol 398 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 1
stop();
Symbol 414 Button
on (release) {
count2 = count2 - 1;
if (count2 == 0) {
count2 = 6;
}
select2.gotoAndStop(count2);
name2 = names[count2];
}
Symbol 415 Button
on (release) {
count2 = count2 + 1;
if (count2 == 7) {
count2 = 1;
}
select2.gotoAndStop(count2);
name2 = names[count2];
}
Symbol 416 Button
on (release) {
count1 = count1 - 1;
if (count1 == 0) {
count1 = 6;
}
select1.gotoAndStop(count1);
name1 = names[count1];
}
Symbol 417 Button
on (release) {
count1 = count1 + 1;
if (count1 == 7) {
count1 = 1;
}
select1.gotoAndStop(count1);
name1 = names[count1];
}
Symbol 420 Button
on (release) {
myPlayer1 = count1;
myPlayer2 = count2;
round = 1;
wins1 = 0;
wins2 = 0;
stopAllSounds();
gotoAndPlay (1116);
}
Symbol 422 MovieClip Frame 1
stop();