Frame 1
_quality = "BEST";
stop();
add_url = "http://www.freeworldgroup.com/koalafiles.htm";
more_url = "http://www.freeworldgroup.com";
down_url = "http://www.ifungames.com";
sr_url = "http://www.freeworldgroup.com/sewerrun.htm";
Frame 2
ifFrameLoaded (28) {
gotoAndPlay ("ins");
}
play();
Frame 3
gotoAndPlay (2);
Frame 5
play();
Frame 28
stop();
this.onEnterFrame = function () {
if ((this.getBytesLoaded() / this.getBytesTotal()) > 0.99) {
this.play();
delete this.onEnterFrame;
}
};
Frame 30
stop();
stopAllSounds();
Frame 36
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) && (markJumpTime > 0)) && (pcTracking)) && (pcSlam)) {
pcJump = true;
} else if (((t >= markTime) && (markTime > 0)) && (pcTracking)) {
if (((pcSlam && (Math.abs(bombX - pcX) <= 10)) && (Math.abs((pcY - 80) - bombY) <= 40)) || (((!pcSlam) && (player2.action != "jump")) && (Math.abs(markX - pcX) <= 5))) {
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 (((((gameLevel > 3) && (bombY > 250)) && (bomb.dY > 0)) && (Math.abs(bombX - pcX) <= 40)) && (player2.action != "jump")) {
tempText.hit = "splits";
tempText.gotoAndPlay(2);
pcDX = 0;
pcHit = true;
notrackX = 350 + random(150);
pcTracking = false;
} else if (pcTracking) {
if (Math.abs(markX - pcX) <= 5) {
pcDX = 0;
} else if (pcX < markX) {
pcDX = 5;
} else if (pcX > markX) {
pcDX = -5;
}
notrackX = 350 + random(150);
} else if ((bombX > 275) && (bombX < 550)) {
if ((Math.abs(bombX - pcX) <= 5) || (((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 (((player1._x > 200) && (player1.action == "jump")) && (notrackX != 420)) {
notrackX = 420;
} else if (Math.abs(notrackX - pcX) <= 10) {
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 (((checkY > 320) && (dYnow < 0)) && (i > 1)) {
markFound = 1;
}
if (((((checkY > 200) && (checkY < 220)) && (checkX > 265)) && (checkX < 285)) && (dYnow < 0)) {
markFound = 1;
}
if (((checkY >= 220) && (checkX > 265)) && (checkX < 285)) {
markFound = 1;
}
if (((checkX < 15) && (dX < 0)) || ((checkX > 535) && (dX > 0))) {
markFound = 1;
}
if (((((checkY > 110) && (checkY < 130)) && ((checkX > 300) || ((checkX > 275) && (gameLevel > 4)))) && (checkX < 400)) && ((((dX > -3) && (dYnow < 0)) && (i > 20)) || ((gameLevel > 3) && (i > 30)))) {
if (pcSlam || (gameLevel > 2)) {
markX = checkX;
markTime = i;
if (gameLevel > 4) {
markJumpTime = i - (6 + random(7));
} else {
markJumpTime = i - 18;
}
pcSlam = true;
markFound = 3;
}
} else if ((((checkY > 230) && (checkX > 275)) && (dYnow < 0)) && (i > 1)) {
pcSlam = false;
markJumpTime = 0;
markX = checkX;
markTime = i;
markFound = 2;
}
} while (markFound == 0);
if (markFound == 2) {
if ((dX > 0) && (dY > 0)) {
trackingStartFrame = (8 - gameLevel) + Math.floor(dY / 2);
} else if (dX > 0) {
trackingStartFrame = (4 - gameLevel) + random(10 + Math.floor(dY));
} else {
trackingStartFrame = 1;
}
pcTrackingEnabled = true;
} else if (markFound > 2) {
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 ((playerEnergy1 <= 0) && (gameOn)) {
gameOn = false;
bomb.active = false;
bomb.dX = 0;
bomb.dY = 0;
bomb.gotoAndPlay("boom");
if (gameType == 1) {
gotoAndStop ("gameover1");
} else if (gameType == 3) {
gotoAndStop ("gameover3");
} else {
gotoAndStop ("gameover2b");
}
} else if ((playerEnergy2 <= 0) && (gameOn)) {
gameOn = false;
bomb.active = false;
bomb.dX = 0;
bomb.dY = 0;
bomb.gotoAndPlay("boom");
if (gameType == 1) {
gotoAndStop ("newlevel1");
} else if (gameType == 3) {
gotoAndStop ("newlevel3");
} else {
gotoAndStop ("gameover2a");
}
} 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 117 MovieClip "player2" in Frame 36
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 ("land");
} else {
_parent.pcJumpCount++;
jumpPower--;
}
}
if (dX < 0) {
if (xScale > 0) {
xScale = xScale * -1;
}
} else if (dX > 0) {
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 (xScale > 0) {
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 (((bombY > 260) && (!_parent.pcSlam)) || (((((_parent.gameLevel > 1) && (!_parent.pcSlam)) && (bombX > 300)) && (bombX < 400)) && (_parent.player2HitCount < 2))) {
_parent.pcSlam = true;
if ((_parent.gameLevel > 4) && (_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 (((_parent.player1._y > 170) && (_parent.player1._y < 250)) && (_parent.player1._x > 180)) {
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 (bombY > 250) {
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 156 MovieClip "player1" in Frame 36
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 ("land");
} else {
yPos = yPos - jumpPower;
jumpPower--;
}
}
if (Key.isDown(37)) {
if (xScale > 0) {
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 (jumpPower > 3) {
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 (xPos > 220) {
xPos = 220;
}
this._xscale = xScale;
this._x = xPos;
this._y = yPos;
}
}
Instance of Symbol 114 MovieClip "bomb" in Frame 36
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 (netFrame > 1) {
_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 (netFrame > 1) {
_parent.net1.gotoAndPlay(netFrame);
}
_parent.net1._visible = true;
}
if ((bombY > 320) && (dYnow > 0)) {
if (bombX < 275) {
_parent.bombExplode(1);
} else {
_parent.bombExplode(2);
}
bombHit(dX, dYnow * -0.9);
}
if (((((bombY > 200) && (bombY < 220)) && (bombX > 265)) && (bombX < 285)) && (dYnow > 0)) {
eval ("_parent.net" + netActive).gotoAndPlay("wobble");
bombHit(dX, dYnow * -0.9);
}
if (((bombY >= 220) && (bombX > 265)) && (bombX < 285)) {
eval ("_parent.net" + netActive).gotoAndPlay("wobble");
if (((dX > 0) && (bombX > 275)) || ((dX < 0) && (bombX < 275))) {
dX = dX * 1.5;
}
bombHit(-dX, dYnow);
}
if (((bombX < 15) && (dX < 0)) || ((bombX > 535) && (dX > 0))) {
bombHit(dX * -0.9, dYnow);
}
}
}
Frame 40
if (gameLevel == 4) {
}
levelInfo = "LEVEL " + (gameLevel + 1);
stop();
Frame 41
player1.startLevel();
stop();
Frame 45
levelInfo = "LEVEL " + gameLevel;
stop();
Frame 50
stop();
Instance of Symbol 188 MovieClip "player2" in Frame 50
onClipEvent (load) {
function startLevel() {
if (xScale > 0) {
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 ("land");
} else {
yPos = yPos - jumpPower;
jumpPower--;
}
}
if (Key.isDown(37)) {
if (xScale > 0) {
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 (jumpPower > 3) {
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 (xPos > 530) {
xPos = 530;
}
this._xscale = xScale;
this._x = xPos;
this._y = yPos;
}
}
Instance of Symbol 156 MovieClip "player1" in Frame 50
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 ("land");
} else {
yPos = yPos - jumpPower;
jumpPower--;
}
}
if (Key.isDown(68)) {
if (xScale > 0) {
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 (jumpPower > 3) {
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 (xPos > 220) {
xPos = 220;
}
this._xscale = xScale;
this._x = xPos;
this._y = yPos;
}
}
Frame 51
player1.startLevel();
stop();
Frame 55
stop();
Frame 56
stop();
Frame 60
levelInfo = "LEVEL " + (gameLevel + 1);
stop();
Instance of Symbol 195 MovieClip "player2" in Frame 60
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 ("land");
} else {
_parent.pcJumpCount++;
jumpPower--;
}
}
if (dX < 0) {
if (xScale > 0) {
xScale = xScale * -1;
}
} else if (dX > 0) {
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 (xScale > 0) {
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 (((bombY > 260) && (!_parent.pcSlam)) || (((((_parent.gameLevel > 1) && (!_parent.pcSlam)) && (bombX > 300)) && (bombX < 400)) && (_parent.player2HitCount < 2))) {
_parent.pcSlam = true;
if ((_parent.gameLevel > 4) && (_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 (((_parent.player1._y > 170) && (_parent.player1._y < 250)) && (_parent.player1._x > 180)) {
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 (bombY > 250) {
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 196 MovieClip "player1" in Frame 60
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 ("land");
} else {
yPos = yPos - jumpPower;
jumpPower--;
}
}
if (Key.isDown(37)) {
if (xScale > 0) {
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 (jumpPower > 3) {
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 (xPos > 220) {
xPos = 220;
}
this._xscale = xScale;
this._x = xPos;
this._y = yPos;
}
}
Frame 61
player1.startLevel();
stop();
Frame 65
levelInfo = "LEVEL " + gameLevel;
stop();
Symbol 16 MovieClip Frame 95
_root.play();
Symbol 27 Button
on (release) {
getURL (add_url, "_blank");
}
Symbol 30 Button
on (release) {
getURL (more_url, "_blank");
}
Symbol 33 Button
on (release) {
getURL (down_url, "_blank");
}
Symbol 38 Button
on (release) {
getURL (sr_url, "_blank");
}
Symbol 68 Button
on (release) {
nextFrame();
}
Symbol 71 Button
on (release) {
gotoAndStop (1);
}
Symbol 97 MovieClip Frame 1
stop();
Symbol 101 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 3
play();
Symbol 114 MovieClip Frame 14
stop();
Symbol 117 MovieClip Frame 1
hit = false;
action = "static";
stop();
Symbol 117 MovieClip Frame 5
play();
Symbol 117 MovieClip Frame 8
if (action == "walk") {
gotoAndPlay ("walk");
} else {
gotoAndStop ("static");
}
Symbol 117 MovieClip Frame 10
play();
Symbol 117 MovieClip Frame 36
gotoAndStop ("static");
Symbol 117 MovieClip Frame 40
stop();
Symbol 117 MovieClip Frame 45
play();
Symbol 117 MovieClip Frame 51
hit = false;
_parent.pcHit = false;
if (action == "jump") {
stop();
} else {
gotoAndStop ("static");
}
Symbol 117 MovieClip Frame 53
play();
Symbol 117 MovieClip Frame 56
gotoAndStop ("static");
Symbol 117 MovieClip Frame 60
play();
Symbol 117 MovieClip Frame 66
hit = false;
_parent.pcHit = false;
gotoAndStop ("static");
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
play();
Symbol 155 MovieClip Frame 18
gotoAndStop (1);
Symbol 156 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 (bY > -5) {
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 156 MovieClip Frame 5
play();
Symbol 156 MovieClip Frame 8
if (action == "walk") {
gotoAndPlay ("walk");
} else {
gotoAndStop ("static");
}
Symbol 156 MovieClip Frame 10
playerActive = false;
play();
Symbol 156 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 156 MovieClip Frame 36
if (_parent.gameType == 2) {
_parent.player2.playerActive = true;
}
playerActive = true;
gotoAndStop ("static");
Symbol 156 MovieClip Frame 40
stop();
Symbol 156 MovieClip Frame 45
bombHit = hitA(false);
play();
Symbol 156 MovieClip Frame 46
if (!bombHit) {
bombHit = hitA(false);
}
Symbol 156 MovieClip Frame 47
if (!bombHit) {
bombHit = hitA(false);
}
Symbol 156 MovieClip Frame 51
hit = false;
if (action == "jump") {
stop();
} else {
gotoAndStop ("static");
}
Symbol 156 MovieClip Frame 53
play();
Symbol 156 MovieClip Frame 56
gotoAndStop ("static");
Symbol 156 MovieClip Frame 60
hit = false;
play();
Symbol 156 MovieClip Frame 62
stop();
Symbol 156 MovieClip Frame 65
bombHit = hitA(true);
play();
Symbol 156 MovieClip Frame 66
if (!bombHit) {
bombHit = hitA(true);
}
Symbol 156 MovieClip Frame 67
if (!bombHit) {
bombHit = hitA(true);
}
hit = false;
Symbol 156 MovieClip Frame 69
play();
Symbol 156 MovieClip Frame 73
gotoAndStop ("static");
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 2
play();
Symbol 158 MovieClip Frame 13
gotoAndStop (1);
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 2
stop();
Symbol 165 Button
on (release) {
gameType = 1;
newGame();
gotoAndStop ("newlevel1");
}
Symbol 169 Button
on (release) {
gameType = 2;
newGame();
gotoAndStop ("newlevel2");
}
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 5
gotoAndStop (1);
Symbol 181 Button
on (keyPress "S") {
newLevel();
if (gameLevel == 5) {
gameType = 3;
gotoAndStop ("naked");
} else {
nextFrame();
}
}
on (keyPress "s") {
newLevel();
if (gameLevel == 5) {
gameType = 3;
gotoAndStop ("naked");
} else {
nextFrame();
}
}
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 2
stop();
Symbol 187 Button
on (keyPress "S") {
gotoAndStop ("ready");
}
on (keyPress "s") {
gotoAndStop ("ready");
}
Symbol 188 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 > 270)) {
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 (bY > -5) {
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 188 MovieClip Frame 5
play();
Symbol 188 MovieClip Frame 8
if (action == "walk") {
gotoAndPlay ("walk");
} else {
gotoAndStop ("static");
}
Symbol 188 MovieClip Frame 10
playerActive = false;
play();
Symbol 188 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 188 MovieClip Frame 36
playerActive = true;
gotoAndStop ("static");
Symbol 188 MovieClip Frame 40
stop();
Symbol 188 MovieClip Frame 45
bombHit = hitA(false);
play();
Symbol 188 MovieClip Frame 46
if (!bombHit) {
bombHit = hitA(false);
}
Symbol 188 MovieClip Frame 47
if (!bombHit) {
bombHit = hitA(false);
}
Symbol 188 MovieClip Frame 51
hit = false;
if (action == "jump") {
stop();
} else {
gotoAndStop ("static");
}
Symbol 188 MovieClip Frame 53
play();
Symbol 188 MovieClip Frame 56
gotoAndStop ("static");
Symbol 188 MovieClip Frame 60
hit = false;
play();
Symbol 188 MovieClip Frame 62
stop();
Symbol 188 MovieClip Frame 65
bombHit = hitA(true);
play();
Symbol 188 MovieClip Frame 66
if (!bombHit) {
bombHit = hitA(true);
}
Symbol 188 MovieClip Frame 67
if (!bombHit) {
bombHit = hitA(true);
}
hit = false;
Symbol 188 MovieClip Frame 69
play();
Symbol 188 MovieClip Frame 73
gotoAndStop ("static");
Symbol 189 Button
on (keyPress "S") {
newLevel();
nextFrame();
}
on (keyPress "s") {
newLevel();
nextFrame();
}
Symbol 195 MovieClip Frame 1
hit = false;
action = "static";
stop();
Symbol 195 MovieClip Frame 5
play();
Symbol 195 MovieClip Frame 8
if (action == "walk") {
gotoAndPlay ("walk");
} else {
gotoAndStop ("static");
}
Symbol 195 MovieClip Frame 10
play();
Symbol 195 MovieClip Frame 36
gotoAndStop ("static");
Symbol 195 MovieClip Frame 40
stop();
Symbol 195 MovieClip Frame 45
play();
Symbol 195 MovieClip Frame 51
hit = false;
_parent.pcHit = false;
if (action == "jump") {
stop();
} else {
gotoAndStop ("static");
}
Symbol 195 MovieClip Frame 53
play();
Symbol 195 MovieClip Frame 56
gotoAndStop ("static");
Symbol 195 MovieClip Frame 60
play();
Symbol 195 MovieClip Frame 66
hit = false;
_parent.pcHit = false;
gotoAndStop ("static");
Symbol 196 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 (bY > -5) {
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 196 MovieClip Frame 5
play();
Symbol 196 MovieClip Frame 8
if (action == "walk") {
gotoAndPlay ("walk");
} else {
gotoAndStop ("static");
}
Symbol 196 MovieClip Frame 10
playerActive = false;
play();
Symbol 196 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 196 MovieClip Frame 36
playerActive = true;
gotoAndStop ("static");
Symbol 196 MovieClip Frame 40
stop();
Symbol 196 MovieClip Frame 45
bombHit = hitA(false);
play();
Symbol 196 MovieClip Frame 46
if (!bombHit) {
bombHit = hitA(false);
}
Symbol 196 MovieClip Frame 47
if (!bombHit) {
bombHit = hitA(false);
}
Symbol 196 MovieClip Frame 51
hit = false;
if (action == "jump") {
stop();
} else {
gotoAndStop ("static");
}
Symbol 196 MovieClip Frame 53
play();
Symbol 196 MovieClip Frame 56
gotoAndStop ("static");
Symbol 196 MovieClip Frame 60
hit = false;
play();
Symbol 196 MovieClip Frame 62
stop();
Symbol 196 MovieClip Frame 65
bombHit = hitA(true);
play();
Symbol 196 MovieClip Frame 66
if (!bombHit) {
bombHit = hitA(true);
}
Symbol 196 MovieClip Frame 67
if (!bombHit) {
bombHit = hitA(true);
}
hit = false;
Symbol 196 MovieClip Frame 69
play();
Symbol 196 MovieClip Frame 73
gotoAndStop ("static");