Frame 1
stop();
Instance of Symbol 11 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_parent._framesloaded >= 39) {
_parent.nextFrame();
}
}
Frame 2
stop();
Frame 3
play();
Frame 39
stop();
Frame 40
play();
Frame 41
play();
Frame 42
ifFrameLoaded (68) {
gotoAndPlay (45);
}
play();
Frame 43
gotoAndPlay (42);
Frame 45
play();
Frame 66
ifFrameLoaded (76) {
gotoAndStop (70);
}
play();
Frame 67
prevFrame();
Frame 70
stop();
Frame 76
function newGame() {
gameOn = false;
g = -0.15;
gameLevel = 0;
playerEnergy1 = 10;
explodeDamage = 10;
}
function newLevel() {
gameLevel++;
player1HitCount = 0;
player2HitCount = 0;
if ((gameLevel < 5) && (gameType != 2)) {
playerEnergy2 = 2 + (gameLevel * 2);
} else {
playerEnergy2 = 10;
}
if ((gameLevel < 3) && (playerEnergy1 < 10)) {
playerEnergy1 = playerEnergy1 + 1;
} else if ((gameLevel < 5) && (playerEnergy1 < 9)) {
playerEnergy1 = playerEnergy1 + 2;
} else if (playerEnergy1 < 8) {
playerEnergy1 = playerEnergy1 + 3;
}
bomb.bombX = 100;
bomb.bombY = 100;
energybar1._xscale = playerEnergy1 * explodeDamage;
energybar2._xscale = playerEnergy2 * explodeDamage;
bomb._visible = false;
pcTracking = false;
markX = 400;
notrackX = 400;
trackingStartFrame = 1000;
gameOn = true;
}
function pcPlayer() {
if ((t == trackingStartFrame) && (pcTrackingEnabled)) {
pcTracking = true;
}
bombX = bomb._x;
bombY = bomb._y;
if ((((t == markJumpTime) && (0 < markJumpTime)) && (pcTracking)) && (pcSlam)) {
pcJump = true;
} else if (((t >= markTime) && (0 < markTime)) && (pcTracking)) {
if (((pcSlam && (10 >= Math.abs(bombX - pcX))) && (40 >= Math.abs((pcY - 80) - bombY))) || (((!pcSlam) && (player2.action != "jump")) && (5 >= Math.abs(markX - pcX)))) {
if (pcSlam) {
tempText.hit = "slam";
} else {
tempText.hit = "hit";
}
tempText.gotoAndPlay(2);
pcDX = 0;
pcHit = true;
notrackX = 350 + random(150);
pcTracking = false;
} else if (!pcSlam) {
pcTracking = false;
}
} else if (((((3 < gameLevel) && (250 < bombY)) && (0 < bomb.dY)) && (40 >= Math.abs(bombX - pcX))) && (player2.action != "jump")) {
tempText.hit = "splits";
tempText.gotoAndPlay(2);
pcDX = 0;
pcHit = true;
notrackX = 350 + random(150);
pcTracking = false;
} else if (pcTracking) {
if (5 >= Math.abs(markX - pcX)) {
pcDX = 0;
} else if (pcX < markX) {
pcDX = 5;
} else if (markX < pcX) {
pcDX = -5;
}
notrackX = 350 + random(150);
} else if ((275 < bombX) && (bombX < 550)) {
if ((5 >= Math.abs(bombX - pcX)) || (((bombX < 350) && (bomb.dX < 0)) && (bomb.dY < 0))) {
pcDX = 0;
} else if (pcX < bombX) {
pcDX = 5;
} else {
pcDX = -5;
}
notrackX = 350 + random(150);
} else if (((200 < player1._x) && (player1.action == "jump")) && (notrackX != 420)) {
notrackX = 420;
} else if (10 >= Math.abs(notrackX - pcX)) {
if (random(30) == 0) {
notrackX = 350 + random(150);
}
pcDX = 0;
} else if (pcX < notrackX) {
pcDX = 5;
} else {
pcDX = -5;
}
return(pcDX);
}
function bombPath(sX, sY, dX, dY) {
i = 0;
prevY = 0;
markFound = 0;
do {
i++;
prevY = checkY;
checkY = sY + ((dY * i) - (g * Math.pow(i, 2)));
checkX = sX + (dX * i);
dYnow = prevY - checkY;
if (((320 < checkY) && (dYnow < 0)) && (1 < i)) {
markFound = 1;
}
if (((((200 < checkY) && (checkY < 220)) && (265 < checkX)) && (checkX < 285)) && (dYnow < 0)) {
markFound = 1;
}
if (((checkY >= 220) && (265 < checkX)) && (checkX < 285)) {
markFound = 1;
}
if (((checkX < 15) && (dX < 0)) || ((535 < checkX) && (0 < dX))) {
markFound = 1;
}
if (((((110 < checkY) && (checkY < 130)) && ((300 < checkX) || ((275 < checkX) && (4 < gameLevel)))) && (checkX < 400)) && ((((-3 < dX) && (dYnow < 0)) && (20 < i)) || ((3 < gameLevel) && (30 < i)))) {
if (pcSlam || (2 < gameLevel)) {
markX = checkX;
markTime = i;
if (4 < gameLevel) {
markJumpTime = i - (6 + random(7));
} else {
markJumpTime = i - 18;
}
pcSlam = true;
markFound = 3;
}
} else if ((((230 < checkY) && (275 < checkX)) && (dYnow < 0)) && (1 < i)) {
pcSlam = false;
markJumpTime = 0;
markX = checkX;
markTime = i;
markFound = 2;
}
} while (markFound == 0);
if (markFound == 2) {
if ((0 < dX) && (0 < dY)) {
trackingStartFrame = (8 - gameLevel) + Math.floor(dY / 2);
} else if (0 < dX) {
trackingStartFrame = (4 - gameLevel) + random(10 + Math.floor(dY));
} else {
trackingStartFrame = 1;
}
pcTrackingEnabled = true;
} else if (2 < markFound) {
trackingStartFrame = 1;
pcTrackingEnabled = true;
} else {
pcTrackingEnabled = false;
}
if (trackingStartFrame < 1) {
trackingStartFrame = 1;
}
pcTracking = false;
}
function bombExplode(playerNum) {
if (playerNum == 1) {
playerEnergy1--;
energybar1._xscale = playerEnergy1 * explodeDamage;
} else {
playerEnergy2--;
energybar2._xscale = playerEnergy2 * explodeDamage;
}
player1HitCount = 0;
player2HitCount = 0;
if ((0 >= playerEnergy1) && (gameOn)) {
gameOn = false;
bomb.active = false;
bomb.dX = 0;
bomb.dY = 0;
bomb.gotoAndPlay("boom");
if (gameType == 1) {
gotoAndStop (85);
} else if (gameType == 3) {
gotoAndStop (105);
} else {
gotoAndStop (96);
}
} else if ((0 >= playerEnergy2) && (gameOn)) {
gameOn = false;
bomb.active = false;
bomb.dX = 0;
bomb.dY = 0;
bomb.gotoAndPlay("boom");
if (gameType == 1) {
gotoAndStop (80);
} else if (gameType == 3) {
gotoAndStop (100);
} else {
gotoAndStop (95);
}
} else {
boom._x = bomb._x;
boom._y = bomb._y + 10;
boom.gotoAndPlay("boom");
}
}
hitBomb = new Sound();
hitBomb.attachSound("hitBomb");
grunt1 = new Sound();
grunt1.attachSound("grunt1");
grunt2 = new Sound();
grunt2.attachSound("grunt2");
grunt3 = new Sound();
grunt3.attachSound("grunt3");
grunt4 = new Sound();
grunt4.attachSound("grunt4");
stopAllSounds();
sfx.gotoAndStop("beach");
stop();
Instance of Symbol 185 MovieClip "player2" in Frame 76
onClipEvent (load) {
action = "static";
dX = 0;
jumpPower = 0;
hit = false;
_parent.pcX = this._x - 20;
_parent.pcY = this._y;
xScale = this._xscale;
xScale = xScale * -1;
}
onClipEvent (enterFrame) {
if (_parent.gameOn) {
dX = _parent.pcPlayer();
} else {
dX = 0;
}
if (action == "jump") {
if ((_parent.pcY >= 333) && (jumpPower < 0)) {
jumpPower = 0;
_parent.pcJump = false;
_parent.pcY = 333;
action = "land";
gotoAndPlay (76);
} else {
_parent.pcJumpCount++;
jumpPower--;
}
}
if (dX < 0) {
if (0 < xScale) {
xScale = xScale * -1;
}
} else if (0 < dX) {
if (xScale < 0) {
xScale = xScale * -1;
}
}
if (((!hit) && (dX != 0)) && (action == "static")) {
action = "walk";
this.gotoAndPlay("walk");
} else if (((!hit) && (dX == 0)) && (action == "walk")) {
if (0 < xScale) {
xScale = xScale * -1;
}
action = "static";
this.gotoAndStop("static");
} else if (((!hit) && (_parent.pcJump)) && (action != "jump")) {
_parent.pcJumpCount = 1;
jumpPower = 18;
action = "jump";
this.gotoAndPlay("jump");
} else if (_parent.pcHit && (!hit)) {
hit = true;
bombX = _parent.bomb._x;
bombY = _parent.bomb._y;
if (((260 < bombY) && (!_parent.pcSlam)) || (((((1 < _parent.gameLevel) && (!_parent.pcSlam)) && (300 < bombX)) && (bombX < 400)) && (_parent.player2HitCount < 2))) {
_parent.pcSlam = true;
if ((4 < _parent.gameLevel) && (_parent.player1._x < 150)) {
hitX = (280 - _parent.pcX) / 50;
} else {
hitX = 0;
}
hitY = -10;
} else if (_parent.pcSlam) {
_parent.pcSlam = false;
if (_parent.gameLevel < 4) {
hitY = 12 - Math.round((_parent.pcX - 300) / 10);
hitX = (6 + random(8)) * -1;
} else if (_parent.gameLevel < 5) {
hitY = 12 - Math.round((_parent.pcX - 300) / 12);
hitX = (7 + random(9)) * -1;
} else if (((170 < _parent.player1._y) && (_parent.player1._y < 250)) && (180 < _parent.player1._x)) {
hitX = -7;
hitY = (_parent.player1._y - 250) / 15;
} else if (_parent.player1._x < 120) {
hitY = 12 - Math.round((_parent.pcX - 275) / 16);
hitX = -10;
} else {
hitY = 10 - Math.round((_parent.pcX - 275) / 14);
hitX = -15;
}
} else {
_parent.pcSlam = false;
hitYmin = 7 + Math.floor(Math.abs(_parent.pcX - 412) / 30);
hitYrange = 11 - hitYmin;
hitY = (hitYmin + random(hitYrange)) * -1;
hitX = -random(11);
}
_parent.player1HitCount = 0;
_parent.player2HitCount++;
if (_parent.player2HitCount == 4) {
_parent.bombExplode(2);
}
_parent.hitBomb.start();
if (random(3) == 0) {
eval ("_parent.grunt" + (1 + random(4))).start();
}
_parent.bomb.bombHit(hitX, hitY);
if (250 < bombY) {
this.gotoAndPlay("hit2");
} else {
this.gotoAndPlay("hit1");
}
}
_parent.pcX = _parent.pcX + dX;
if (_parent.pcX < 270) {
_parent.pcX = 270;
}
_parent.pcY = _parent.pcY - jumpPower;
this._xscale = xScale;
this._x = _parent.pcX + 20;
this._y = _parent.pcY;
}
Instance of Symbol 224 MovieClip "player1" in Frame 76
onClipEvent (load) {
function startLevel() {
if (xScale < 0) {
xScale = xScale * -1;
}
xPos = 100;
yPos = 333;
this._xscale = xScale;
this._x = xPos;
this._y = yPos;
jumpPower = 0;
hit = false;
this.gotoAndPlay("throwup");
}
action = "static";
xPos = this._x;
yPos = this._y;
xScale = this._xscale;
jumpPower = 0;
playerActive = false;
hit = false;
}
onClipEvent (enterFrame) {
if (playerActive) {
if (action == "jump") {
if ((yPos >= 333) && (jumpPower < 0)) {
jumpPower = 0;
yPos = 333;
action = "land";
gotoAndPlay (76);
} else {
yPos = yPos - jumpPower;
jumpPower--;
}
}
if (Key.isDown(37)) {
if (0 < xScale) {
xScale = xScale * -1;
}
dX = -5;
} else if (Key.isDown(39)) {
if (xScale < 0) {
xScale = xScale * -1;
}
dX = 5;
} else {
dX = 0;
}
if (action != "jump") {
if (Key.isDown(38)) {
if (action == "splits") {
action = "getup";
this.gotoAndPlay("getup");
}
if (jumpPower < 20) {
jumpPower++;
}
} else if (3 < jumpPower) {
action = "jump";
this.gotoAndStop("jump");
}
}
if (Key.isDown(40)) {
if ((action == "static") || (action == "walk")) {
action = "splits";
this.gotoAndPlay("splits");
} else if (action == "jump") {
jumpPower--;
}
}
if (Key.isDown(32) && (!hit)) {
hit = true;
if (action == "splits") {
this.gotoAndPlay("hit2");
} else {
this.gotoAndPlay("hit1");
}
}
if ((dX != 0) && ((action == "static") || (action == "splits"))) {
action = "walk";
this.gotoAndPlay("walk");
} else if ((dX == 0) && (action == "walk")) {
action = "static";
this.gotoAndStop("static");
}
xPos = xPos + dX;
if (xPos < 20) {
xPos = 20;
} else if (220 < xPos) {
xPos = 220;
}
this._xscale = xScale;
this._x = xPos;
this._y = yPos;
}
}
Instance of Symbol 182 MovieClip "bomb" in Frame 76
onClipEvent (load) {
function bombHit(x, y) {
active = true;
_parent.t = 0;
xPos = this._x;
yPos = this._y;
dY = y;
dX = x;
if (_parent.gameType != 2) {
_parent.bombPath(xPos, yPos, dX, dY);
}
}
dX = 0;
dY = 0;
active = false;
pointerActive = false;
netActive = 1;
_parent.net2._visible = false;
_parent.net1._visible = true;
}
onClipEvent (enterFrame) {
if (active && (_parent.gameOn)) {
_parent.t++;
bombX = xPos + (dX * _parent.t);
bombY = yPos + ((dY * _parent.t) - (_parent.g * Math.pow(_parent.t, 2)));
dYnow = bombY - this._y;
this._x = bombX;
this._y = bombY;
if (bombY < -15) {
if (!pointerActive) {
pointerActive = true;
_parent.pointer.gotoAndStop("on");
}
_parent.pointer._x = bombX;
} else if (pointerActive) {
pointerActive = false;
_parent.pointer.gotoAndStop("off");
}
if ((bombX >= 275) && (netActive == 1)) {
_parent.player1HitCount = 0;
netActive = 2;
_parent.net1._visible = false;
netFrame = _parent.net1._currentframe;
if (1 < netFrame) {
_parent.net2.gotoAndPlay(netFrame);
}
_parent.net2._visible = true;
} else if ((bombX < 275) && (netActive == 2)) {
_parent.player2HitCount = 0;
netActive = 1;
_parent.net2._visible = false;
netFrame = _parent.net2._currentframe;
if (1 < netFrame) {
_parent.net1.gotoAndPlay(netFrame);
}
_parent.net1._visible = true;
}
if ((320 < bombY) && (0 < dYnow)) {
if (bombX < 275) {
_parent.bombExplode(1);
} else {
_parent.bombExplode(2);
}
bombHit(dX, dYnow * -0.9);
}
if (((((200 < bombY) && (bombY < 220)) && (265 < bombX)) && (bombX < 285)) && (0 < dYnow)) {
eval ("_parent.net" + netActive).gotoAndPlay("wobble");
bombHit(dX, dYnow * -0.9);
}
if (((bombY >= 220) && (265 < bombX)) && (bombX < 285)) {
eval ("_parent.net" + netActive).gotoAndPlay("wobble");
if (((0 < dX) && (275 < bombX)) || ((dX < 0) && (bombX < 275))) {
dX = dX * 1.5;
}
bombHit(-dX, dYnow);
}
if (((bombX < 15) && (dX < 0)) || ((535 < bombX) && (0 < dX))) {
bombHit(dX * -0.9, dYnow);
}
}
}
Frame 80
if (gameLevel == 5) {
pwReveal.gotoAndStop(2);
}
levelInfo = "LEVEL " + (gameLevel + 1);
stop();
Frame 81
player1.startLevel();
stop();
Frame 85
levelInfo = "LEVEL " + gameLevel;
stop();
Frame 90
stop();
Instance of Symbol 284 MovieClip "player2" in Frame 90
onClipEvent (load) {
function startLevel() {
if (0 < xScale) {
xScale = xScale * -1;
}
xPos = 400;
yPos = 333;
this._xscale = xScale;
this._x = xPos;
this._y = yPos;
jumpPower = 0;
hit = false;
this.gotoAndPlay("throwup");
}
action = "static";
xPos = this._x;
yPos = this._y;
xScale = this._xscale;
jumpPower = 0;
playerActive = false;
hit = false;
}
onClipEvent (enterFrame) {
if (playerActive) {
if (action == "jump") {
if ((yPos >= 333) && (jumpPower < 0)) {
jumpPower = 0;
yPos = 333;
action = "land";
gotoAndPlay (76);
} else {
yPos = yPos - jumpPower;
jumpPower--;
}
}
if (Key.isDown(37)) {
if (0 < xScale) {
xScale = xScale * -1;
}
dX = -5;
} else if (Key.isDown(39)) {
if (xScale < 0) {
xScale = xScale * -1;
}
dX = 5;
} else {
dX = 0;
}
if (action != "jump") {
if (Key.isDown(38)) {
if (action == "splits") {
action = "getup";
this.gotoAndPlay("getup");
}
if (jumpPower < 20) {
jumpPower++;
}
} else if (3 < jumpPower) {
action = "jump";
this.gotoAndStop("jump");
}
}
if (Key.isDown(40)) {
if ((action == "static") || (action == "walk")) {
action = "splits";
this.gotoAndPlay("splits");
} else if (action == "jump") {
jumpPower--;
}
}
if (Key.isDown(16) && (!hit)) {
hit = true;
if (action == "splits") {
this.gotoAndPlay("hit2");
} else {
this.gotoAndPlay("hit1");
}
}
if ((dX != 0) && ((action == "static") || (action == "splits"))) {
action = "walk";
this.gotoAndPlay("walk");
} else if ((dX == 0) && (action == "walk")) {
action = "static";
this.gotoAndStop("static");
}
xPos = xPos + dX;
if (xPos < 320) {
xPos = 320;
} else if (530 < xPos) {
xPos = 530;
}
this._xscale = xScale;
this._x = xPos;
this._y = yPos;
}
}
Instance of Symbol 224 MovieClip "player1" in Frame 90
onClipEvent (load) {
function startLevel() {
if (xScale < 0) {
xScale = xScale * -1;
}
xPos = 100;
yPos = 333;
this._xscale = xScale;
this._x = xPos;
this._y = yPos;
jumpPower = 0;
hit = false;
this.gotoAndPlay("throwup");
}
action = "static";
xPos = this._x;
yPos = this._y;
xScale = this._xscale;
jumpPower = 0;
playerActive = false;
hit = false;
}
onClipEvent (enterFrame) {
if (playerActive) {
if (action == "jump") {
if ((yPos >= 333) && (jumpPower < 0)) {
jumpPower = 0;
yPos = 333;
action = "land";
gotoAndPlay (76);
} else {
yPos = yPos - jumpPower;
jumpPower--;
}
}
if (Key.isDown(68)) {
if (0 < xScale) {
xScale = xScale * -1;
}
dX = -5;
} else if (Key.isDown(86)) {
if (xScale < 0) {
xScale = xScale * -1;
}
dX = 5;
} else {
dX = 0;
}
if (action != "jump") {
if (Key.isDown(70)) {
if (action == "splits") {
action = "getup";
this.gotoAndPlay("getup");
}
if (jumpPower < 20) {
jumpPower++;
}
} else if (3 < jumpPower) {
action = "jump";
this.gotoAndStop("jump");
}
}
if (Key.isDown(67)) {
if ((action == "static") || (action == "walk")) {
action = "splits";
this.gotoAndPlay("splits");
} else if (action == "jump") {
jumpPower--;
}
}
if (Key.isDown(81) && (!hit)) {
hit = true;
if (action == "splits") {
this.gotoAndPlay("hit2");
} else {
this.gotoAndPlay("hit1");
}
}
if ((dX != 0) && ((action == "static") || (action == "splits"))) {
action = "walk";
this.gotoAndPlay("walk");
} else if ((dX == 0) && (action == "walk")) {
action = "static";
this.gotoAndStop("static");
}
xPos = xPos + dX;
if (xPos < 20) {
xPos = 20;
} else if (220 < xPos) {
xPos = 220;
}
this._xscale = xScale;
this._x = xPos;
this._y = yPos;
}
}
Frame 91
player1.startLevel();
stop();
Frame 95
stop();
Frame 96
stop();
Frame 100
levelInfo = "LEVEL " + (gameLevel + 1);
stop();
Instance of Symbol 290 MovieClip "player2" in Frame 100
onClipEvent (load) {
action = "static";
dX = 0;
jumpPower = 0;
hit = false;
_parent.pcX = this._x - 20;
_parent.pcY = this._y;
xScale = this._xscale;
xScale = xScale * -1;
}
onClipEvent (enterFrame) {
if (_parent.gameOn) {
dX = _parent.pcPlayer();
} else {
dX = 0;
}
if (action == "jump") {
if ((_parent.pcY >= 333) && (jumpPower < 0)) {
jumpPower = 0;
_parent.pcJump = false;
_parent.pcY = 333;
action = "land";
gotoAndPlay (76);
} else {
_parent.pcJumpCount++;
jumpPower--;
}
}
if (dX < 0) {
if (0 < xScale) {
xScale = xScale * -1;
}
} else if (0 < dX) {
if (xScale < 0) {
xScale = xScale * -1;
}
}
if (((!hit) && (dX != 0)) && (action == "static")) {
action = "walk";
this.gotoAndPlay("walk");
} else if (((!hit) && (dX == 0)) && (action == "walk")) {
if (0 < xScale) {
xScale = xScale * -1;
}
action = "static";
this.gotoAndStop("static");
} else if (((!hit) && (_parent.pcJump)) && (action != "jump")) {
_parent.pcJumpCount = 1;
jumpPower = 18;
action = "jump";
this.gotoAndPlay("jump");
} else if (_parent.pcHit && (!hit)) {
hit = true;
bombX = _parent.bomb._x;
bombY = _parent.bomb._y;
if (((260 < bombY) && (!_parent.pcSlam)) || (((((1 < _parent.gameLevel) && (!_parent.pcSlam)) && (300 < bombX)) && (bombX < 400)) && (_parent.player2HitCount < 2))) {
_parent.pcSlam = true;
if ((4 < _parent.gameLevel) && (_parent.player1._x < 150)) {
hitX = (280 - _parent.pcX) / 50;
} else {
hitX = 0;
}
hitY = -10;
} else if (_parent.pcSlam) {
_parent.pcSlam = false;
if (_parent.gameLevel < 4) {
hitY = 12 - Math.round((_parent.pcX - 300) / 10);
hitX = (6 + random(8)) * -1;
} else if (_parent.gameLevel < 5) {
hitY = 12 - Math.round((_parent.pcX - 300) / 12);
hitX = (7 + random(9)) * -1;
} else if (((170 < _parent.player1._y) && (_parent.player1._y < 250)) && (180 < _parent.player1._x)) {
hitX = -7;
hitY = (_parent.player1._y - 250) / 15;
} else if (_parent.player1._x < 120) {
hitY = 12 - Math.round((_parent.pcX - 275) / 16);
hitX = -10;
} else {
hitY = 10 - Math.round((_parent.pcX - 275) / 14);
hitX = -15;
}
} else {
_parent.pcSlam = false;
hitYmin = 7 + Math.floor(Math.abs(_parent.pcX - 412) / 30);
hitYrange = 11 - hitYmin;
hitY = (hitYmin + random(hitYrange)) * -1;
hitX = -random(11);
}
_parent.player1HitCount = 0;
_parent.player2HitCount++;
if (_parent.player2HitCount == 4) {
_parent.bombExplode(2);
}
_parent.hitBomb.start();
if (random(3) == 0) {
eval ("_parent.grunt" + (1 + random(4))).start();
}
_parent.bomb.bombHit(hitX, hitY);
if (250 < bombY) {
this.gotoAndPlay("hit2");
} else {
this.gotoAndPlay("hit1");
}
}
_parent.pcX = _parent.pcX + dX;
_parent.pcY = _parent.pcY - jumpPower;
this._xscale = xScale;
this._x = _parent.pcX + 20;
this._y = _parent.pcY;
}
Instance of Symbol 291 MovieClip "player1" in Frame 100
onClipEvent (load) {
function startLevel() {
if (xScale < 0) {
xScale = xScale * -1;
}
xPos = 100;
yPos = 333;
this._xscale = xScale;
this._x = xPos;
this._y = yPos;
jumpPower = 0;
hit = false;
this.gotoAndPlay("throwup");
}
action = "static";
xPos = this._x;
yPos = this._y;
xScale = this._xscale;
jumpPower = 0;
playerActive = false;
hit = false;
}
onClipEvent (enterFrame) {
if (playerActive) {
if (action == "jump") {
if ((yPos >= 333) && (jumpPower < 0)) {
jumpPower = 0;
yPos = 333;
action = "land";
gotoAndPlay (76);
} else {
yPos = yPos - jumpPower;
jumpPower--;
}
}
if (Key.isDown(37)) {
if (0 < xScale) {
xScale = xScale * -1;
}
dX = -5;
} else if (Key.isDown(39)) {
if (xScale < 0) {
xScale = xScale * -1;
}
dX = 5;
} else {
dX = 0;
}
if (action != "jump") {
if (Key.isDown(38)) {
if (action == "splits") {
action = "getup";
this.gotoAndPlay("getup");
}
if (jumpPower < 20) {
jumpPower++;
}
} else if (3 < jumpPower) {
action = "jump";
this.gotoAndStop("jump");
}
}
if (Key.isDown(40)) {
if ((action == "static") || (action == "walk")) {
action = "splits";
this.gotoAndPlay("splits");
} else if (action == "jump") {
jumpPower--;
}
}
if (Key.isDown(32) && (!hit)) {
hit = true;
if (action == "splits") {
this.gotoAndPlay("hit2");
} else {
this.gotoAndPlay("hit1");
}
}
if ((dX != 0) && ((action == "static") || (action == "splits"))) {
action = "walk";
this.gotoAndPlay("walk");
} else if ((dX == 0) && (action == "walk")) {
action = "static";
this.gotoAndStop("static");
}
xPos = xPos + dX;
if (xPos < 20) {
xPos = 20;
} else if (220 < xPos) {
xPos = 220;
}
this._xscale = xScale;
this._x = xPos;
this._y = yPos;
}
}
Frame 101
player1.startLevel();
stop();
Frame 105
levelInfo = "LEVEL " + gameLevel;
stop();
Symbol 25 MovieClip Frame 1
play();
Symbol 25 MovieClip Frame 99
_parent.nextFrame();
stop();
Symbol 95 MovieClip Frame 1
play();
Symbol 95 MovieClip Frame 180
_parent.nextFrame();
Symbol 125 Button
on (release) {
getURL ("http://www.miniclip.com/Homepage.htm", "_blank");
}
Symbol 131 Button
on (press) {
getURL ("http://www.mohsye.com/enter.htm", "_blank");
}
Symbol 137 Button
on (release) {
nextFrame();
}
Symbol 140 Button
on (release) {
gotoAndStop (1);
}
Symbol 165 MovieClip Frame 1
stop();
Symbol 169 Button
on (release) {
gotoAndStop (76);
}
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 3
play();
Symbol 182 MovieClip Frame 14
stop();
Symbol 185 MovieClip Frame 1
hit = false;
action = "static";
stop();
Symbol 185 MovieClip Frame 5
play();
Symbol 185 MovieClip Frame 8
if (action == "walk") {
gotoAndPlay (5);
} else {
gotoAndStop (1);
}
Symbol 185 MovieClip Frame 10
play();
Symbol 185 MovieClip Frame 36
gotoAndStop (1);
Symbol 185 MovieClip Frame 40
stop();
Symbol 185 MovieClip Frame 45
play();
Symbol 185 MovieClip Frame 51
hit = false;
_parent.pcHit = false;
if (action == "jump") {
stop();
} else {
gotoAndStop (1);
}
Symbol 185 MovieClip Frame 53
play();
Symbol 185 MovieClip Frame 56
gotoAndStop (1);
Symbol 185 MovieClip Frame 60
play();
Symbol 185 MovieClip Frame 66
hit = false;
_parent.pcHit = false;
gotoAndStop (1);
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 2
play();
Symbol 223 MovieClip Frame 18
gotoAndStop (1);
Symbol 224 MovieClip Frame 1
function hitA(splitsHit) {
if (splitsHit) {
yOffset = 0;
} else {
yOffset = 60;
}
bX = _parent.bomb._x - (xPos + 10);
bY = _parent.bomb._y - (yPos - yOffset);
bZ = Math.sqrt((bX * bX) + (bY * bY));
if ((bZ < 70) && (_parent.bomb._x < 280)) {
bAngle = Math.atan(bX / bY);
if (bY < 0) {
bX = Math.sin(bAngle) * -10;
bY = Math.cos(bAngle) * -10;
} else {
bX = Math.sin(bAngle) * 10;
bY = Math.cos(bAngle) * 10;
}
if (splitsHit) {
bY = bY * 1.2;
if (-5 < bY) {
bY = -5;
}
}
_parent.player2HitCount = 0;
_parent.player1HitCount++;
if (_parent.player1HitCount == 4) {
_parent.bombExplode(1);
}
_parent.bomb.bombHit(bX, bY);
if (random(3) == 0) {
eval ("_parent.grunt" + (1 + random(4))).start();
}
_parent.hitBomb.start();
return(true);
}
return(false);
}
hit = false;
action = "static";
stop();
Symbol 224 MovieClip Frame 5
play();
Symbol 224 MovieClip Frame 8
if (action == "walk") {
gotoAndPlay (5);
} else {
gotoAndStop (1);
}
Symbol 224 MovieClip Frame 10
playerActive = false;
play();
Symbol 224 MovieClip Frame 28
_parent.bomb._x = this._x + 36.6;
_parent.bomb._y = 205;
_parent.bomb._visible = true;
_parent.bomb.gotoAndStop(1);
_parent.bomb.bombHit(0, -10);
Symbol 224 MovieClip Frame 36
if (_parent.gameType == 2) {
_parent.player2.playerActive = true;
}
playerActive = true;
gotoAndStop (1);
Symbol 224 MovieClip Frame 40
stop();
Symbol 224 MovieClip Frame 45
bombHit = hitA(false);
play();
Symbol 224 MovieClip Frame 46
if (!bombHit) {
bombHit = hitA(false);
}
Symbol 224 MovieClip Frame 47
if (!bombHit) {
bombHit = hitA(false);
}
Symbol 224 MovieClip Frame 51
hit = false;
if (action == "jump") {
stop();
} else {
gotoAndStop (1);
}
Symbol 224 MovieClip Frame 53
play();
Symbol 224 MovieClip Frame 56
gotoAndStop (1);
Symbol 224 MovieClip Frame 60
hit = false;
play();
Symbol 224 MovieClip Frame 62
stop();
Symbol 224 MovieClip Frame 65
bombHit = hitA(true);
play();
Symbol 224 MovieClip Frame 66
if (!bombHit) {
bombHit = hitA(true);
}
Symbol 224 MovieClip Frame 67
if (!bombHit) {
bombHit = hitA(true);
}
hit = false;
Symbol 224 MovieClip Frame 69
play();
Symbol 224 MovieClip Frame 73
gotoAndStop (1);
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 2
play();
Symbol 226 MovieClip Frame 13
gotoAndStop (1);
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
stop();
Symbol 233 Button
on (release) {
gameType = 1;
newGame();
gotoAndStop (80);
}
Symbol 237 Button
on (release) {
gameType = 2;
newGame();
gotoAndStop (90);
}
Symbol 242 Button
on (release) {
nextFrame();
}
Symbol 247 Button
on (release) {
if (pass == "getumout") {
_parent.gameType = 3;
_parent.newGame();
_parent.gotoAndStop("newlevel3");
} else {
nextFrame();
}
}
on (keyPress "<Enter>") {
if (pass == "getumout") {
_parent.gameType = 3;
_parent.newGame();
_parent.gotoAndStop("newlevel3");
} else {
nextFrame();
}
}
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 2
pass = "";
Selection.setFocus("pass");
stop();
Symbol 253 MovieClip Frame 3
play();
Symbol 253 MovieClip Frame 20
gotoAndStop (2);
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 5
gotoAndStop (1);
Symbol 264 Button
on (keyPress "S") {
newLevel();
if (gameLevel == 6) {
gameType = 3;
gotoAndStop (101);
} else {
nextFrame();
}
}
on (keyPress "s") {
newLevel();
if (gameLevel == 6) {
gameType = 3;
gotoAndStop (101);
} else {
nextFrame();
}
}
Symbol 267 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 2
stop();
Symbol 268 Button
on (keyPress "S") {
gotoAndStop (76);
}
on (keyPress "s") {
gotoAndStop (76);
}
Symbol 275 Button
on (release) {
getURL ("http://www.miniclip.com/Homepage.htm", "_blank");
}
Symbol 279 Button
on (release) {
getURL ("http://www.miniclip.com/signup.htm", "_blank");
}
Symbol 283 Button
on (release) {
getURL ("http://www.miniclip.com/download_boom.htm", "_blank");
}
Symbol 284 MovieClip Frame 1
function hitA(splitsHit) {
if (splitsHit) {
yOffset = 0;
} else {
yOffset = 60;
}
bX = _parent.bomb._x - (xPos + 10);
bY = _parent.bomb._y - (yPos - yOffset);
bZ = Math.sqrt((bX * bX) + (bY * bY));
if ((bZ < 70) && (270 < _parent.bomb._x)) {
bAngle = Math.atan(bX / bY);
if (bY < 0) {
bX = Math.sin(bAngle) * -10;
bY = Math.cos(bAngle) * -10;
} else {
bX = Math.sin(bAngle) * 10;
bY = Math.cos(bAngle) * 10;
}
if (splitsHit) {
bY = bY * 1.2;
if (-5 < bY) {
bY = -5;
}
}
_parent.player1HitCount = 0;
_parent.player2HitCount++;
if (_parent.player2HitCount == 4) {
_parent.bombExplode(2);
}
if (random(3) == 0) {
eval ("_parent.grunt" + (1 + random(4))).start();
}
_parent.hitBomb.start();
_parent.bomb.bombHit(bX, bY);
return(true);
}
return(false);
}
hit = false;
action = "static";
stop();
Symbol 284 MovieClip Frame 5
play();
Symbol 284 MovieClip Frame 8
if (action == "walk") {
gotoAndPlay (5);
} else {
gotoAndStop (1);
}
Symbol 284 MovieClip Frame 10
playerActive = false;
play();
Symbol 284 MovieClip Frame 28
_parent.bomb._x = this._x + 36.6;
_parent.bomb._y = 205;
_parent.bomb._visible = true;
_parent.bomb.gotoAndStop(1);
_parent.bomb.bombHit(0, -10);
Symbol 284 MovieClip Frame 36
playerActive = true;
gotoAndStop (1);
Symbol 284 MovieClip Frame 40
stop();
Symbol 284 MovieClip Frame 45
bombHit = hitA(false);
play();
Symbol 284 MovieClip Frame 46
if (!bombHit) {
bombHit = hitA(false);
}
Symbol 284 MovieClip Frame 47
if (!bombHit) {
bombHit = hitA(false);
}
Symbol 284 MovieClip Frame 51
hit = false;
if (action == "jump") {
stop();
} else {
gotoAndStop (1);
}
Symbol 284 MovieClip Frame 53
play();
Symbol 284 MovieClip Frame 56
gotoAndStop (1);
Symbol 284 MovieClip Frame 60
hit = false;
play();
Symbol 284 MovieClip Frame 62
stop();
Symbol 284 MovieClip Frame 65
bombHit = hitA(true);
play();
Symbol 284 MovieClip Frame 66
if (!bombHit) {
bombHit = hitA(true);
}
Symbol 284 MovieClip Frame 67
if (!bombHit) {
bombHit = hitA(true);
}
hit = false;
Symbol 284 MovieClip Frame 69
play();
Symbol 284 MovieClip Frame 73
gotoAndStop (1);
Symbol 285 Button
on (keyPress "S") {
newLevel();
nextFrame();
}
on (keyPress "s") {
newLevel();
nextFrame();
}
Symbol 290 MovieClip Frame 1
hit = false;
action = "static";
stop();
Symbol 290 MovieClip Frame 5
play();
Symbol 290 MovieClip Frame 8
if (action == "walk") {
gotoAndPlay (5);
} else {
gotoAndStop (1);
}
Symbol 290 MovieClip Frame 10
play();
Symbol 290 MovieClip Frame 36
gotoAndStop (1);
Symbol 290 MovieClip Frame 40
stop();
Symbol 290 MovieClip Frame 45
play();
Symbol 290 MovieClip Frame 51
hit = false;
_parent.pcHit = false;
if (action == "jump") {
stop();
} else {
gotoAndStop (1);
}
Symbol 290 MovieClip Frame 53
play();
Symbol 290 MovieClip Frame 56
gotoAndStop (1);
Symbol 290 MovieClip Frame 60
play();
Symbol 290 MovieClip Frame 66
hit = false;
_parent.pcHit = false;
gotoAndStop (1);
Symbol 291 MovieClip Frame 1
function hitA(splitsHit) {
if (splitsHit) {
yOffset = 0;
} else {
yOffset = 60;
}
bX = _parent.bomb._x - (xPos + 10);
bY = _parent.bomb._y - (yPos - yOffset);
bZ = Math.sqrt((bX * bX) + (bY * bY));
if ((bZ < 70) && (_parent.bomb._x < 280)) {
bAngle = Math.atan(bX / bY);
if (bY < 0) {
bX = Math.sin(bAngle) * -10;
bY = Math.cos(bAngle) * -10;
} else {
bX = Math.sin(bAngle) * 10;
bY = Math.cos(bAngle) * 10;
}
if (splitsHit) {
bY = bY * 1.2;
if (-5 < bY) {
bY = -5;
}
}
_parent.player2HitCount = 0;
_parent.player1HitCount++;
if (_parent.player1HitCount == 4) {
_parent.bombExplode(1);
}
if (random(3) == 0) {
eval ("_parent.grunt" + (1 + random(4))).start();
}
_parent.hitBomb.start();
_parent.bomb.bombHit(bX, bY);
return(true);
}
return(false);
}
hit = false;
action = "static";
stop();
Symbol 291 MovieClip Frame 5
play();
Symbol 291 MovieClip Frame 8
if (action == "walk") {
gotoAndPlay (5);
} else {
gotoAndStop (1);
}
Symbol 291 MovieClip Frame 10
playerActive = false;
play();
Symbol 291 MovieClip Frame 28
_parent.bomb._x = this._x + 36.6;
_parent.bomb._y = 205;
_parent.bomb._visible = true;
_parent.bomb.gotoAndStop(1);
_parent.bomb.bombHit(0, -10);
Symbol 291 MovieClip Frame 36
playerActive = true;
gotoAndStop (1);
Symbol 291 MovieClip Frame 40
stop();
Symbol 291 MovieClip Frame 45
bombHit = hitA(false);
play();
Symbol 291 MovieClip Frame 46
if (!bombHit) {
bombHit = hitA(false);
}
Symbol 291 MovieClip Frame 47
if (!bombHit) {
bombHit = hitA(false);
}
Symbol 291 MovieClip Frame 51
hit = false;
if (action == "jump") {
stop();
} else {
gotoAndStop (1);
}
Symbol 291 MovieClip Frame 53
play();
Symbol 291 MovieClip Frame 56
gotoAndStop (1);
Symbol 291 MovieClip Frame 60
hit = false;
play();
Symbol 291 MovieClip Frame 62
stop();
Symbol 291 MovieClip Frame 65
bombHit = hitA(true);
play();
Symbol 291 MovieClip Frame 66
if (!bombHit) {
bombHit = hitA(true);
}
Symbol 291 MovieClip Frame 67
if (!bombHit) {
bombHit = hitA(true);
}
hit = false;
Symbol 291 MovieClip Frame 69
play();
Symbol 291 MovieClip Frame 73
gotoAndStop (1);