Frame 1
var playingWii = com.wiicade.Wii.isWii();
if (_root.playingWii) {
_root.qual = 3;
_quality = "low";
} else {
_root.qual = 1;
_quality = "high";
}
_root.debug = false;
Frame 2
_global.fpsCounter = function () {
_root.createEmptyMovieClip("movFrameRate", 100);
_root.movFrameRate.onEnterFrame = function () {
this.t = getTimer();
_root.frameRateSource = Math.round(1000 / (this.t - this.o));
this.o = this.t;
};
};
_global.camVars = function () {
if (_root.camFocus && (!_root.nocam)) {
_root.scrollVarX = _root.scrollVarXJoe;
_root.scrollVarY = _root.scrollVarYJoe;
} else if ((!_root.camFocus) && (!_root.nocam)) {
_root.scrollVarX = _root.scrollVarXBzzzt;
_root.scrollVarY = _root.scrollVarYBzzzt;
} else if (_root.nocam) {
_root.scrollVarX = 0;
_root.scrollVarY = 0;
}
_root.checkerUp._x = 550 + _root.scrollVarXJoe;
_root.checkerUp._y = _root.scrollVarYJoe;
_root.checkerRight._x = 550 + _root.scrollVarXJoe;
_root.checkerRight._y = _root.scrollVarYJoe;
_root.checkerLeft._x = _root.scrollVarXJoe;
_root.checkerLeft._y = _root.scrollVarYJoe;
_root.checkerDown._x = 550 + _root.scrollVarXJoe;
_root.checkerDown._y = 400 + _root.scrollVarYJoe;
_root.checkerUp2._x = 550 + _root.scrollVarXBzzzt;
_root.checkerUp2._y = _root.scrollVarYBzzzt;
_root.checkerRight2._x = 550 + _root.scrollVarXBzzzt;
_root.checkerRight2._y = _root.scrollVarYBzzzt;
_root.checkerLeft2._x = _root.scrollVarXBzzzt;
_root.checkerLeft2._y = _root.scrollVarYBzzzt;
_root.checkerDown2._x = 550 + _root.scrollVarXBzzzt;
_root.checkerDown2._y = 400 + _root.scrollVarYBzzzt;
};
_global.camReset = function () {
_root.scrollVarXJoe = 0;
_root.scrollVarYJoe = 0;
_root.scrollVarXBzzzt = 0;
_root.scrollVarYBzzzt = 0;
_root.rightWall._visible = false;
_root.ground._visible = false;
_root.celing._visible = false;
_root.leftWall._visible = false;
_root.scrollLockUp._visible = false;
_root.scrollLockDown._visible = false;
_root.scrollLockRight._visible = false;
_root.scrollLockLeft._visible = false;
_root.checkerUp._visible = false;
_root.checkerDown._visible = false;
_root.checkerRight._visible = false;
_root.checkerLeft._visible = false;
_root.checkerUp2._visible = false;
_root.checkerDown2._visible = false;
_root.checkerRight2._visible = false;
_root.checkerLeft2._visible = false;
_root.hero._visible = false;
_root.hero2Bound._visible = false;
_root.camVars._visible = false;
_root.jumpCountMax = 1;
};
_global.camMoveJoe = function (scrollSpeed) {
if ((_root.hero._x > (350 + _root.scrollVarXJoe)) && (!_root.checkerRight.hitTest(_root.scrollLockRight))) {
if (_root.camFocus) {
_root.backBack._x = _root.backBack._x + 2;
}
_root.scrollVarXJoe = _root.scrollVarXJoe + scrollSpeed;
} else if ((_root.hero._x < (200 + _root.scrollVarXJoe)) && (!_root.checkerLeft.hitTest(_root.scrollLockLeft))) {
if (_root.camFocus) {
_root.backBack._x = _root.backBack._x - 2;
}
_root.scrollVarXJoe = _root.scrollVarXJoe - scrollSpeed;
}
if ((_root.hero._y < (150 + _root.scrollVarYJoe)) && (!_root.checkerUp.hitTest(_root.scrollLockUp))) {
if (_root.camFocus) {
_root.backBack._y = _root.backBack._y - 2;
}
_root.scrollVarYJoe = _root.scrollVarYJoe - scrollSpeed;
} else if (((_root.hero._y > (250 + _root.scrollVarYJoe)) && (!_root.checkerDown.hitTest(_root.scrollLockDown))) && (!_root.hero.jump)) {
if (_root.camFocus) {
_root.backBack._y = _root.backBack._y + 2;
}
_root.scrollVarYJoe = _root.scrollVarYJoe + scrollSpeed;
}
};
_global.camMoveBzzt = function (scrollSpeedX, scrollSpeedY) {
if (((_root.hero2._x > (350 + _root.scrollVarXBzzzt)) && (!_root.checkerRight2.hitTest(_root.scrollLockRight))) && (_root.cursor._x > _root.hero2._x)) {
if (!_root.camFocus) {
_root.backBack._x = _root.backBack._x - (scrollSpeedX / 8);
}
_root.scrollVarXBzzzt = _root.scrollVarXBzzzt - scrollSpeedX;
} else if (((_root.hero2._x < (200 + _root.scrollVarXBzzzt)) && (!_root.checkerLeft2.hitTest(_root.scrollLockLeft))) && (_root.cursor._x < _root.hero2._x)) {
if (!_root.camFocus) {
_root.backBack._x = _root.backBack._x - (scrollSpeedX / 8);
}
_root.scrollVarXBzzzt = _root.scrollVarXBzzzt - scrollSpeedX;
}
if (((_root.hero2._y < (150 + _root.scrollVarYBzzzt)) && (!_root.checkerUp2.hitTest(_root.scrollLockUp))) && (_root.cursor._y < _root.hero2._y)) {
if (!_root.camFocus) {
_root.backBack._y = _root.backBack._y - (scrollSpeedY / 8);
}
_root.scrollVarYBzzzt = _root.scrollVarYBzzzt - scrollSpeedY;
} else if (((_root.hero2._y > (250 + _root.scrollVarYBzzzt)) && (!_root.checkerDown2.hitTest(_root.scrollLockDown))) && (_root.cursor._y > _root.hero2._y)) {
if (!_root.camFocus) {
_root.backBack._y = _root.backBack._y - (scrollSpeedY / 8);
}
_root.scrollVarYBzzzt = _root.scrollVarYBzzzt - scrollSpeedY;
}
};
Frame 3
Mouse.show();
stop();
Frame 4
Mouse.show();
stop();
Frame 5
Mouse.show();
stop();
Frame 6
Mouse.show();
stop();
Frame 7
Mouse.show();
stop();
Frame 8
Mouse.show();
stop();
Frame 10
if (_root.debug) {
} else if (!_root.debug) {
Mouse.hide();
}
stop();
_global.fpsCounter();
_root.jumpCountMax = 1;
_root.camFocus = true;
_root.levelNext = "lv1-1";
_root.currentLevel = "The Park";
_root.nocam = false;
Instance of Symbol 160 MovieClip "shi" in Frame 10
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.levelNext = "cut2";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.joe.gotoAndStop(1);
}
}
Instance of Symbol 166 MovieClip "question" in Frame 10
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 10
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 10
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if (!onGround) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!walk) && (!investigate)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if ((Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if ((Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 10
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 10
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 10
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 10
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 252 MovieClip "HUD" in Frame 10
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Frame 12
Mouse.show();
Frame 13
if (_root.debug) {
} else if (!_root.debug) {
Mouse.hide();
}
stop();
_global.fpsCounter();
_root.jumpCountMax = 1;
_root.camFocus = true;
_root.levelNext = "lv1-2";
_root.currentLevel = "Puzzle Cave 1-1";
_root.nocam = false;
Instance of Symbol 166 MovieClip "question" in Frame 13
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 13
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 13
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if (!onGround) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!walk) && (!investigate)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if ((Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if ((Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 13
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 13
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 13
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 13
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 13
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 13
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Frame 16
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "lv1-3";
_root.currentLevel = "Puzzle Cave 1-2";
_root.nocam = false;
Instance of Symbol 166 MovieClip "question" in Frame 16
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 16
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 16
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if (!onGround) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!walk) && (!investigate)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if ((Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if ((Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 16
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 16
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 16
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 16
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 16
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 16
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Frame 19
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "lv1-4";
_root.currentLevel = "Puzzle Cave 1-3";
_root.nocam = false;
Instance of Symbol 361 MovieClip "jumpBoots" in Frame 19
onClipEvent (load) {
got = false;
used = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.joe) && (!got)) && (!used)) {
got = true;
_root.jumpCountMax++;
_root.hero2.inv = false;
}
if (got) {
_alpha = (_alpha - 5);
}
if (_alpha <= 0) {
got = false;
used = true;
}
if (_root.hero2.inv) {
_x = _root.hero2._x;
_y = _root.hero2._y;
}
}
Instance of Symbol 160 MovieClip "shi" in Frame 19
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.levelNext = "lv1-3b";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.hero2Move = 0;
if (i == 0) {
i++;
mus = new Sound(this);
mus.attachSound("sfxBuzz");
mus.start(0, 1);
}
}
}
Instance of Symbol 166 MovieClip "question" in Frame 19
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 19
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 19
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if (!onGround) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!walk) && (!investigate)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if ((Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if ((Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 19
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 0;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 19
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 19
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 19
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 19
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 19
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Instance of Symbol 367 MovieClip in Frame 21
onClipEvent (load) {
_root.gotoAndStop("lv1-3");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-3");
}
Frame 24
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "lv1-5";
_root.currentLevel = "Puzzle Cave 1-4";
_root.nocam = false;
Instance of Symbol 160 MovieClip "shi" in Frame 24
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.levelNext = "lv1-4b";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.hero2Move = 0;
if (i == 0) {
i++;
mus = new Sound(this);
mus.attachSound("sfxBuzz");
mus.start(0, 1);
}
}
}
Instance of Symbol 361 MovieClip "jumpBoots" in Frame 24
onClipEvent (load) {
got = false;
used = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.joe) && (!got)) && (!used)) {
got = true;
_root.jumpCountMax++;
_root.hero2.inv = false;
}
if (got) {
_alpha = (_alpha - 5);
}
if (_alpha <= 0) {
got = false;
used = true;
}
if (_root.hero2.inv) {
_x = _root.hero2._x;
_y = _root.hero2._y;
}
}
Instance of Symbol 166 MovieClip "question" in Frame 24
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 24
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 24
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if (!onGround) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!walk) && (!investigate)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if ((Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if ((Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 24
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 24
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 24
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 24
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 24
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 24
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Instance of Symbol 367 MovieClip in Frame 26
onClipEvent (load) {
_root.gotoAndStop("lv1-4");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-4");
}
Frame 28
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "lv1-6";
_root.currentLevel = "Puzzle Cave 1-5";
_root.nocam = false;
Instance of Symbol 160 MovieClip "shi" in Frame 28
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.levelNext = "lv1-5b";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.hero2Move = 0;
if (i == 0) {
i++;
mus = new Sound(this);
mus.attachSound("sfxBuzz");
mus.start(0, 1);
}
}
}
Instance of Symbol 361 MovieClip "jumpBoots" in Frame 28
onClipEvent (load) {
got = false;
used = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.joe) && (!got)) && (!used)) {
got = true;
_root.jumpCountMax++;
_root.hero2.inv = false;
}
if (got) {
_alpha = (_alpha - 5);
}
if (_alpha <= 0) {
got = false;
used = true;
}
if (_root.hero2.inv) {
_x = _root.hero2._x;
_y = _root.hero2._y;
}
}
Instance of Symbol 166 MovieClip "question" in Frame 28
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 28
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 28
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if (!onGround) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!walk) && (!investigate)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if ((Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if ((Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 28
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 28
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 28
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 28
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 28
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 28
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Instance of Symbol 367 MovieClip in Frame 30
onClipEvent (load) {
_root.gotoAndStop("lv1-5");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-5");
}
Frame 32
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "lv1-7";
_root.currentLevel = "Puzzle Cave 1-6";
_root.nocam = false;
Instance of Symbol 160 MovieClip "shi" in Frame 32
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.levelNext = "lv1-6b";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.hero2Move = 0;
if (i == 0) {
i++;
mus = new Sound(this);
mus.attachSound("sfxBuzz");
mus.start(0, 1);
}
}
}
Instance of Symbol 166 MovieClip "question" in Frame 32
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 32
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 32
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if (!onGround) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!walk) && (!investigate)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if ((Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if ((Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 32
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 32
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 32
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 32
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 32
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 32
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Instance of Symbol 367 MovieClip in Frame 34
onClipEvent (load) {
_root.gotoAndStop("lv1-6");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-6");
}
Frame 36
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "lv1-8";
_root.currentLevel = "Puzzle Cave 1-7";
_root.nocam = false;
Instance of Symbol 307 MovieClip "barrier" in Frame 36
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.hero._x = _root.hero._x - _root.hero.speed;
}
}
Instance of Symbol 166 MovieClip "question" in Frame 36
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 36
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 36
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if (!onGround) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!walk) && (!investigate)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if ((Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if ((Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 36
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 36
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 36
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 36
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 36
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 36
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Instance of Symbol 367 MovieClip in Frame 38
onClipEvent (load) {
_root.gotoAndStop("lv1-7");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-7");
}
Frame 40
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "lv1-9";
_root.currentLevel = "Puzzle Cave 1-8";
_root.nocam = false;
Instance of Symbol 160 MovieClip "shi" in Frame 40
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.levelNext = "lv1-8b";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.hero2Move = 0;
if (i == 0) {
i++;
mus = new Sound(this);
mus.attachSound("sfxBuzz");
mus.start(0, 1);
}
}
}
Instance of Symbol 166 MovieClip "question" in Frame 40
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 40
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 40
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if (!onGround) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!walk) && (!investigate)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if ((Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if ((Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
if ((Key.isDown(aKey) && (Key.isDown(num1) or Key.isDown(key1))) && (Key.isDown(wKey))) {
_root.key._y = 330;
}
if ((Key.isDown(37) && (Key.isDown(num1) or Key.isDown(key1))) && (Key.isDown(38))) {
_root.key._y = 330;
}
if (((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS))) && (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) && (_root.coop == 0)) {
_root.key._y = 330;
}
if (((remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) && (remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS))) && (remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) && (_root.coop == 1)) {
_root.key._y = 330;
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 40
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 40
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 40
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 40
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 40
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 40
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Instance of Symbol 367 MovieClip in Frame 42
onClipEvent (load) {
_root.gotoAndStop("lv1-8");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-8");
}
Frame 44
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "lv1-10";
_root.currentLevel = "Puzzle Cave 1-9";
_root.nocam = false;
Instance of Symbol 160 MovieClip "shi" in Frame 44
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.levelNext = "lv1-9b";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.hero2Move = 0;
if (i == 0) {
i++;
mus = new Sound(this);
mus.attachSound("sfxBuzz");
mus.start(0, 1);
}
}
}
Instance of Symbol 166 MovieClip "question" in Frame 44
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 44
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 44
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if (!onGround) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!walk) && (!investigate)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if ((Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if ((Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 44
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 44
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 44
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 44
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 44
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 44
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Instance of Symbol 367 MovieClip in Frame 46
onClipEvent (load) {
_root.gotoAndStop("lv1-9");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-9");
}
Frame 48
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "lv1-11";
_root.currentLevel = "Puzzle Cave 1-10";
_root.nocam = false;
Instance of Symbol 160 MovieClip "shi" in Frame 48
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.levelNext = "lv1-10b";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.hero2Move = 0;
if (i == 0) {
i++;
mus = new Sound(this);
mus.attachSound("sfxBuzz");
mus.start(0, 1);
}
}
}
Instance of Symbol 307 MovieClip "barrier" in Frame 48
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.hero._x = _root.hero._x - _root.hero.speed;
}
}
Instance of Symbol 361 MovieClip "jumpBoots" in Frame 48
onClipEvent (load) {
got = false;
used = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.joe) && (!got)) && (!used)) {
got = true;
_root.jumpCountMax++;
_root.hero2.inv = false;
}
if (got) {
_alpha = (_alpha - 5);
}
if (_alpha <= 0) {
got = false;
used = true;
}
if (_root.hero2.inv) {
_x = _root.hero2._x;
_y = _root.hero2._y;
}
}
Instance of Symbol 166 MovieClip "question" in Frame 48
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 48
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 48
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if (!onGround) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!walk) && (!investigate)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if ((Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if ((Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 48
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 48
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 48
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 48
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 48
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 48
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Instance of Symbol 367 MovieClip in Frame 50
onClipEvent (load) {
_root.gotoAndStop("lv1-10");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-10");
}
Frame 52
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "lv1-12";
_root.currentLevel = "Puzzle Cave 1-11";
_root.nocam = false;
Instance of Symbol 160 MovieClip "shi" in Frame 52
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.levelNext = "lv1-11b";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.hero2Move = 0;
if (i == 0) {
i++;
mus = new Sound(this);
mus.attachSound("sfxBuzz");
mus.start(0, 1);
}
}
}
Instance of Symbol 361 MovieClip "jumpBoots" in Frame 52
onClipEvent (load) {
got = false;
used = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.joe) && (!got)) && (!used)) {
got = true;
_root.jumpCountMax++;
_root.hero2.inv = false;
}
if (got) {
_alpha = (_alpha - 5);
}
if (_alpha <= 0) {
got = false;
used = true;
}
if (_root.hero2.inv) {
_x = _root.hero2._x;
_y = _root.hero2._y;
}
}
Instance of Symbol 488 MovieClip "diekill" in Frame 52
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe) && (_root.killSense.hitTest(_root.joe))) {
_root.hero.dead = true;
}
}
Instance of Symbol 166 MovieClip "question" in Frame 52
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 52
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 52
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (dead) {
_root.joe.gotoAndStop(6);
_y = (_y + 15);
keyOnePress = true;
onGround = false;
_root.ground.gotoAndStop(2);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if ((!onGround) && (!dead)) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!onGround) && (dead)) {
_y = (_y + (gravity - jumpSpeed));
} else if (((!walk) && (!investigate)) && (!dead)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if (((!dead) && (Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0)))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if ((!dead) && (onGround)) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if (((!dead) && (Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0)))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if ((!dead) && (onGround)) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 52
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 52
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 52
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 52
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 52
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 52
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Instance of Symbol 367 MovieClip in Frame 54
onClipEvent (load) {
_root.gotoAndStop("lv1-11");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-11");
}
Frame 56
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "lv1-13";
_root.currentLevel = "Puzzle Cave 1-12";
_root.nocam = false;
Instance of Symbol 160 MovieClip "shi" in Frame 56
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.levelNext = "lv1-12b";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.hero2Move = 0;
if (i == 0) {
i++;
mus = new Sound(this);
mus.attachSound("sfxBuzz");
mus.start(0, 1);
}
}
}
Instance of Symbol 166 MovieClip "question" in Frame 56
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 56
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 56
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if (!onGround) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!walk) && (!investigate)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if ((Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if ((Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 56
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 56
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 56
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 56
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 56
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 56
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Instance of Symbol 367 MovieClip in Frame 58
onClipEvent (load) {
_root.gotoAndStop("lv1-12");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-12");
}
Frame 60
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "lv1-14";
_root.currentLevel = "Puzzle Cave 1-13";
_root.nocam = false;
Instance of Symbol 160 MovieClip "shi" in Frame 60
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.levelNext = "lv1-13b";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.hero2Move = 0;
if (i == 0) {
i++;
mus = new Sound(this);
mus.attachSound("sfxBuzz");
mus.start(0, 1);
}
}
}
Instance of Symbol 166 MovieClip "question" in Frame 60
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 60
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 60
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (dead) {
_root.joe.gotoAndStop(6);
_y = (_y + 15);
keyOnePress = true;
onGround = false;
_root.ground.gotoAndStop(2);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if ((!onGround) && (!dead)) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!onGround) && (dead)) {
_y = (_y + (gravity - jumpSpeed));
} else if (((!walk) && (!investigate)) && (!dead)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if (((!dead) && (Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0)))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if ((!dead) && (onGround)) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if (((!dead) && (Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0)))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if ((!dead) && (onGround)) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 60
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 60
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 60
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 60
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 60
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 60
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Instance of Symbol 367 MovieClip in Frame 62
onClipEvent (load) {
_root.gotoAndStop("lv1-13");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-13");
}
Frame 64
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "lv1-15";
_root.currentLevel = "Puzzle Cave 1-14";
_root.nocam = false;
Instance of Symbol 160 MovieClip "shi" in Frame 64
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.levelNext = "lv1-14b";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.hero2Move = 0;
if (i == 0) {
i++;
mus = new Sound(this);
mus.attachSound("sfxBuzz");
mus.start(0, 1);
}
}
}
Instance of Symbol 526 MovieClip "diekill" in Frame 64
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe) && (_root.killSense.hitTest(_root.joe))) {
_root.hero.dead = true;
}
}
Instance of Symbol 166 MovieClip "question" in Frame 64
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 64
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 64
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (dead) {
_root.joe.gotoAndStop(6);
_y = (_y + 15);
keyOnePress = true;
onGround = false;
_root.ground.gotoAndStop(3);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if ((!onGround) && (!dead)) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!onGround) && (dead)) {
_y = (_y + (gravity - jumpSpeed));
} else if (((!walk) && (!investigate)) && (!dead)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if (((!dead) && (Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0)))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if ((!dead) && (onGround)) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if (((!dead) && (Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0)))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if ((!dead) && (onGround)) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 64
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 64
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 64
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 64
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 64
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 64
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Instance of Symbol 367 MovieClip in Frame 66
onClipEvent (load) {
_root.gotoAndStop("lv1-14");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-14");
}
Frame 68
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "lv1-16";
_root.currentLevel = "Puzzle Cave 1-15";
_root.nocam = false;
Instance of Symbol 160 MovieClip "shi" in Frame 68
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.levelNext = "lv1-15b";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.hero2Move = 0;
if (i == 0) {
i++;
mus = new Sound(this);
mus.attachSound("sfxBuzz");
mus.start(0, 1);
}
}
}
Instance of Symbol 166 MovieClip "question" in Frame 68
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 68
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 68
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if (!onGround) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!walk) && (!investigate)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if ((Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if ((Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if (onGround) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 68
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 68
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 68
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 68
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 68
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 335 MovieClip "HUD" in Frame 68
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Instance of Symbol 367 MovieClip in Frame 70
onClipEvent (load) {
_root.gotoAndStop("lv1-15");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-15");
}
Frame 72
nextFrame();
Instance of Symbol 367 MovieClip in Frame 73
onClipEvent (load) {
_root.gotoAndStop("lv1-16b");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-16b");
}
Frame 74
stop();
_global.fpsCounter();
_root.buttonPress = false;
_root.levelNext = "cut3";
_root.currentLevel = "Puzzle Cave 1-16";
_root.nocam = true;
Instance of Symbol 160 MovieClip "shi" in Frame 74
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.joe)) {
_root.levelNext = "lv1-16c";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.hero2Move = 0;
if (i == 0) {
i++;
mus = new Sound(this);
mus.attachSound("sfxBuzz");
mus.start(0, 1);
}
}
}
Instance of Symbol 361 MovieClip "jumpBoots" in Frame 74
onClipEvent (load) {
got = false;
used = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.joe) && (!got)) && (!used)) {
got = true;
_root.jumpCountMax++;
_root.hero2.inv = false;
}
if (got) {
_alpha = (_alpha - 5);
}
if (_alpha <= 0) {
got = false;
used = true;
}
if (_root.hero2.inv) {
_x = _root.hero2._x;
_y = _root.hero2._y;
}
}
Instance of Symbol 583 MovieClip in Frame 74
onClipEvent (load) {
bossHealth = true;
dirLeft = false;
}
onClipEvent (enterFrame) {
if (bossHealth) {
if (dirLeft) {
_x = (_x - 6);
} else if (!dirLeft) {
_x = (_x + 6);
}
} else if (!bossHealth) {
_y = (_y + 14);
}
if (this.hitTest(_root.rightWall)) {
dirLeft = false;
}
if (this.hitTest(_root.leftWall)) {
dirLeft = true;
}
if (this.hitTest(_root.barrel) && (_root.barrel._y < this._y)) {
bossHealth = false;
}
if (this.hitTest(_root.hero)) {
_root.hero.dead = true;
}
if (_y > 600) {
_root.levelNext = "cut3";
_root.doorIn = true;
_root.jumpCountMax = 1;
_root.joe.gotoAndStop(1);
}
}
Instance of Symbol 587 MovieClip "barrel" in Frame 74
onClipEvent (enterFrame) {
if (roll && (!fall)) {
_x = (_x + 10);
this.gotoAndStop(2);
} else if ((!roll) && (!fall)) {
_x = (_x - 10);
this.gotoAndStop(1);
} else if (fall) {
_y = (_y + 15);
}
if (this.hitTest(_root.leftBarrel)) {
roll = true;
}
if (this.hitTest(_root.rightBarrel)) {
roll = false;
}
if (_root.ground.hitTest(_x + 23, _y + _height, true) && (!fall)) {
fall = false;
} else {
fall = true;
}
}
Instance of Symbol 166 MovieClip "question" in Frame 74
onClipEvent (load) {
if (_name == "poop") {
this._x = _root.hero._x - 18;
this._y = _root.hero._y + 6;
_root.questionMark = true;
} else {
_visible = false;
}
i = 0;
}
onClipEvent (enterFrame) {
if (_name == "poop") {
i++;
if (i < 4) {
this._y = this._y - 15;
}
if ((i > 10) && (this._alpha != 0)) {
this._alpha = 0;
} else if ((i > 10) && (this._alpha != 100)) {
this._alpha = 100;
}
if (i > 18) {
_root.questionMark = false;
}
if (i == 19) {
unloadMovie (this);
}
}
}
Instance of Symbol 207 MovieClip "joe" in Frame 74
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 209 MovieClip "hero" in Frame 74
onClipEvent (load) {
gravity = 25;
speed = 13;
jumpSpeed = 0;
jumpSpeedReset = 45;
cKey = 67;
wKey = 87;
aKey = 65;
sKey = 83;
dKey = 68;
key1 = 49;
key2 = 50;
num1 = 97;
num2 = 98;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_UP, 38);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_MINUS, 49);
remote.setKeyMapping(com.wiicade.WiiRemote.BUTTON_PLUS, 67);
jump = false;
walk = false;
faceRight = true;
key1Press = false;
key2Press = false;
_root.doorIn = false;
_root.questionMark = false;
cKeyPress = false;
}
onClipEvent (enterFrame) {
if (!_root.doorIn) {
if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == false)) && (!keyOnePress)) {
_root.camFocus = true;
keyOnePress = true;
} else if ((((remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS) or Key.isDown(key1)) or Key.isDown(num1)) && (_root.camFocus == true)) && (!keyOnePress)) {
_root.camFocus = false;
keyOnePress = true;
}
if (((!remote.isDown(com.wiicade.WiiRemote.BUTTON_MINUS)) && (!Key.isDown(num1))) && (!Key.isDown(key1))) {
keyOnePress = false;
}
}
if (investigate) {
_root.joe.gotoAndStop(5);
}
if (dead) {
_root.joe.gotoAndStop(6);
_y = (_y + 15);
keyOnePress = true;
onGround = false;
_root.ground.gotoAndStop(5);
}
if (faceRight) {
_root.joe._xscale = 100;
} else if (!faceRight) {
_root.joe._xscale = -100;
}
if ((!onGround) && (!dead)) {
_y = (_y + (gravity - jumpSpeed));
_root.joe.gotoAndStop(4);
} else if ((!onGround) && (dead)) {
_y = (_y + (gravity - jumpSpeed));
} else if (((!walk) && (!investigate)) && (!dead)) {
_root.joe.gotoAndStop(1);
}
if (_x > (550 + _root.scrollVarX)) {
_root.joePointer._x = 540 + _root.scrollVarX;
_root.joePointer._xscale = -100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.joePointer._x = 10 + _root.scrollVarX;
_root.joePointer._xscale = 100;
_root.joePointer._visible = true;
_root.joePointer._y = _y;
} else {
_root.joePointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.joePointer3._x = _x;
_root.joePointer3._visible = true;
_root.joePointer3._y = 390 + _root.scrollVarY;
} else {
_root.joePointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.joePointer2._visible = true;
_root.joePointer2._x = _x;
_root.joePointer2._y = 10 + _root.scrollVarY;
} else {
_root.joePointer2._visible = false;
}
_global.camMoveJoe(speed);
if ((jumpSpeed > 0) && ((remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0))) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1))))) {
jumpSpeed = jumpSpeed - 2;
} else if ((jumpSpeed > 0) && ((!(remote.isDown(com.wiicade.WiiRemote.BUTTON_UP) or (Key.isDown(wKey) && (_root.coop == 0)))) or (!(remote2.isDown(com.wiicade.WiiRemote.BUTTON_2) or (Key.isDown(wKey) && (_root.coop == 1)))))) {
jumpSpeed = jumpSpeed - 4;
}
if (jumpSpeed <= gravity) {
jump = false;
}
if (!_root.doorIn) {
if (((!dead) && (Key.isDown(dKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_RIGHT) && (_root.coop == 0)))) or (Key.isDown(dKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_DOWN) && (_root.coop == 1)))) {
investigate = false;
_x = (_x + speed);
if ((!dead) && (onGround)) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = true;
} else if (((!dead) && (Key.isDown(aKey) or (remote.isDown(com.wiicade.WiiRemote.BUTTON_LEFT) && (_root.coop == 0)))) or (Key.isDown(aKey) or (remote2.isDown(com.wiicade.WiiRemote.BUTTON_UP) && (_root.coop == 1)))) {
investigate = false;
_x = (_x - speed);
if ((!dead) && (onGround)) {
_root.joe.gotoAndStop(2);
}
walk = true;
faceRight = false;
} else {
walk = false;
}
if (((((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) && (_root.coop == 0)) or ((Key.isDown(sKey) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_1)) && (_root.coop == 1))) && (!_root.downPress)) && (onGround)) {
_root.downPress = true;
if (this.hitTest(_root.door) && (key)) {
_root.stop();
_root.door.gotoAndStop(2);
_root.doorIn = true;
key = false;
investigate = true;
} else if (this.hitTest(_root.redButton)) {
_root.redButton.play();
_root.bb.play();
_root.bb2.play();
_root.bb3.play();
_root.hero2Move = 1;
_root.hero2Bound.gotoAndStop(2);
} else if (onGround) {
if ((!_root.questionMark) && (!investigate)) {
duplicateMovieClip (_root.question, "poop", getNextHighestDepth());
}
investigate = true;
}
} else if (!((Key.isDown(sKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_DOWN)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_LEFT))) {
_root.downPress = false;
}
if ((((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2)) && (jumpCount != _root.jumpCountMax)) && (!jumpKeyDown)) {
investigate = false;
jumpCount = jumpCount + 1;
jumpKeyDown = true;
jumpSpeed = jumpSpeedReset;
jump = true;
} else if (!((Key.isDown(wKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_UP)) or remote2.isDown(com.wiicade.WiiRemote.BUTTON_2))) {
jumpKeyDown = false;
}
if (((_root.ground.hitTest(_x + -4, _y + _height, true) && (!jump)) or (_root.ground.hitTest(_x + 2, _y + _height, true) && (!jump))) or (_root.ground.hitTest(_x + 8, _y + _height, true) && (!jump))) {
while ((_root.ground.hitTest(_x + -4, _y + (_height - 1), true) or _root.ground.hitTest(_x + 2, _y + (_height - 1), true)) or _root.ground.hitTest(_x + 8, _y + (_height - 1), true)) {
_y = (_y-1);
}
_y = (_y + 4);
onGround = true;
jumpSpeed = 15;
jumpCount = 0;
} else {
onGround = false;
while (jumpCount == 0) {
jumpCount = 1;
}
}
if ((_root.leftWall.hitTest(_x + 8, _y + 40, true) or _root.leftWall.hitTest(_x + 16, _y + 30, true)) or _root.leftWall.hitTest(_x + 16, _y + 16, true)) {
while ((_root.leftWall.hitTest(_x + 7, _y + 40, true) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) or _root.leftWall.hitTest(_x + 15, _y + 30, true)) {
_x = (_x-1);
}
}
if ((_root.rightWall.hitTest(_x + -16, _y + 16, true) or _root.rightWall.hitTest(_x + -16, _y + 30, true)) or _root.rightWall.hitTest(_x + -6, _y + 40, true)) {
while ((_root.rightWall.hitTest(_x + -15, _y + 16, true) or _root.rightWall.hitTest(_x + -15, _y + 30, true)) or _root.rightWall.hitTest(_x + -5, _y + 40, true)) {
_x = (_x+1);
}
}
if ((_root.celing.hitTest(_x + 16, _y, true) or _root.celing.hitTest(_x + 0, _y, true)) or _root.celing.hitTest(_x + -16, _y + 0, true)) {
while ((_root.celing.hitTest(_x + 16, _y - 1, true) or _root.celing.hitTest(_x + 0, _y - 1, true)) or _root.celing.hitTest(_x + -16, _y - 1, true)) {
_y = (_y+1);
}
if (jumpSpeed > 6) {
jumpSpeed = 6;
}
}
}
if (_root.joe.hitTest(_root.key)) {
key = true;
unloadMovie (_root.key);
}
}
Instance of Symbol 318 MovieClip "hero2" in Frame 74
onClipEvent (load) {
inv = false;
factor1 = 20;
factor2 = factor1 - 1;
divFact = 8;
maxSpeed = 25;
_root.hero2Move = 1;
}
onClipEvent (enterFrame) {
if (_root.hero2Move == 1) {
if (_root.clik) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.doorIn) {
xSpeedSour = (_x - _root.cursor._x) / divFact;
ySpeedSour = (_y - _root.cursor._y) / divFact;
} else {
xSpeedSour = (_x - _root.joe._x) / divFact;
ySpeedSour = (_y - _root.joe._y) / divFact;
}
if (xSpeedSour >= maxSpeed) {
xSpeed = maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (xSpeedSour <= (-maxSpeed)) {
xSpeed = -maxSpeed;
} else {
xSpeed = xSpeedSour;
}
if (ySpeedSour >= maxSpeed) {
ySpeed = maxSpeed;
} else {
ySpeed = ySpeedSour;
}
if (ySpeedSour <= (-maxSpeed)) {
ySpeed = -maxSpeed;
} else {
ySpeed = ySpeedSour;
}
_global.camMoveBzzt(xSpeedSour, ySpeedSour);
_x = (_x - xSpeed);
_y = (_y - ySpeed);
if (this.hitTest(_root.hero) && (_root.hero2Inv)) {
_root.hero2Inv = false;
}
if (!_root.doorIn) {
if (_root.cursor._x > _x) {
_xscale = -100;
} else if (_root.cursor._x < _x) {
_xscale = 100;
}
} else if (_root.joe._x > _x) {
_xscale = -100;
} else if (_root.joe_x < _x) {
_xscale = 100;
}
if (_root.hero2Bound.hitTest(_x + factor1, _y, true) && (_root.cursor._x > _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x + factor2, _y, true) && (_root.cursor._x > _x)) {
_x = (_x-1);
}
}
if (_root.hero2Bound.hitTest(_x - factor1, _y, true) && (_root.cursor._x < _x)) {
_x = (_x + xSpeed);
while (_root.hero2Bound.hitTest(_x - factor2, _y, true) && (_root.cursor._x < _x)) {
_x = (_x+1);
}
}
if (_root.hero2Bound.hitTest(_x, _y + factor1, true) && (_root.cursor._y > _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y + factor2, true) && (_root.cursor._y > _y)) {
_y = (_y-1);
}
}
if (_root.hero2Bound.hitTest(_x, _y - factor1, true) && (_root.cursor._y < _y)) {
_y = (_y + ySpeed);
while (_root.hero2Bound.hitTest(_x, _y - factor2, true) && (_root.cursor._y < _y)) {
_y = (_y+1);
}
}
if (this.hitTest(_root.jumpBoots)) {
if ((_root.clik && (!_root.jumpBoots.got)) && (!inv)) {
inv = true;
}
}
}
if (_x > (550 + _root.scrollVarX)) {
_root.pointer._x = 540 + _root.scrollVarX;
_root.pointer._xscale = -100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else if (_x < (0 + _root.scrollVarX)) {
_root.pointer._x = 10 + _root.scrollVarX;
_root.pointer._xscale = 100;
_root.pointer._visible = true;
_root.pointer._y = _y;
} else {
_root.pointer._visible = false;
}
if (_y > (400 + _root.scrollVarY)) {
_root.pointer3._x = _x;
_root.pointer3._visible = true;
_root.pointer3._y = 390 + _root.scrollVarY;
} else {
_root.pointer3._visible = false;
}
if (_y < (0 + _root.scrollVarY)) {
_root.pointer2._visible = true;
_root.pointer2._x = _x;
_root.pointer2._y = 10 + _root.scrollVarY;
} else {
_root.pointer2._visible = false;
}
if (this.hitTest(_root.redButton)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton.play();
}
}
if (this.hitTest(_root.redButton2)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton2.play();
}
}
if (this.hitTest(_root.redButton3)) {
if (_root.clik && (!_root.buttonPress)) {
_root.redButton3.play();
}
}
}
Instance of Symbol 226 MovieClip "cursor" in Frame 74
onClipEvent (load) {
_root.clik = false;
mous = false;
clik = false;
cKey = 67;
var remote = com.wiicade.Wii.getRemote(0);
var remote2 = com.wiicade.Wii.getRemote(1);
}
onClipEvent (enterFrame) {
if (clik) {
_root.clik = true;
} else if (!clik) {
_root.clik = false;
}
if ((Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS)) && (!cKeyPress)) {
_root.qual++;
if (_root.qual > 3) {
_root.qual = 1;
}
cKeyPress = true;
} else if (!(Key.isDown(cKey) or remote.isDown(com.wiicade.WiiRemote.BUTTON_PLUS))) {
cKeyPress = false;
}
if (_root.coop == 0) {
if (mous) {
clik = true;
} else if (!mous) {
clik = false;
}
} else if (_root.coop == 1) {
if (remote.isDown(com.wiicade.WiiRemote.BUTTON_A) or mous) {
clik = true;
} else if ((!remote.isDown(com.wiicade.WiiRemote.BUTTON_A)) or (!mous)) {
clik = false;
}
}
if (_root.qual == 1) {
_root._quality = "high";
} else if (_root.qual == 2) {
_root._quality = "medium";
} else if (_root.qual == 3) {
_root._quality = "low";
}
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_x > (550 + _root.scrollVarX)) {
_x = (550 + _root.scrollVarX);
}
if (_x < (0 + _root.scrollVarX)) {
_x = (0 + _root.scrollVarX);
}
if (_y > (400 + _root.scrollVarY)) {
_y = (400 + _root.scrollVarY);
}
if (_y < (0 + _root.scrollVarY)) {
_y = (0 + _root.scrollVarY);
}
}
onClipEvent (mouseDown) {
mous = true;
}
onClipEvent (mouseUp) {
mous = false;
}
Instance of Symbol 228 MovieClip "cam" in Frame 74
onClipEvent (load) {
_global.camReset();
}
onClipEvent (enterFrame) {
_x = (_root.scrollVarX + 275);
_y = (_root.scrollVarY + 200);
}
Instance of Symbol 233 MovieClip "fade" in Frame 74
onClipEvent (load) {
this.gotoAndStop(3);
_root.newLevel = true;
}
onClipEvent (enterFrame) {
if ((!_root.doorIn) && (!_root.newLevel)) {
_visible = false;
} else if (_root.doorIn) {
_visible = true;
this.gotoAndStop(2);
}
_x = (-110 + _root.scrollVarX);
_y = (-90 + _root.scrollVarY);
}
Instance of Symbol 235 MovieClip "cameraVars" in Frame 74
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_global.camVars();
_root.HUD._x = 30 + _root.scrollVarX;
_root.HUD._y = 10 + _root.scrollVarY;
}
Instance of Symbol 589 MovieClip "HUD" in Frame 74
onClipEvent (load) {
stop();
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i == 30) {
_root.frameRate = _root.frameRateSource;
i = 0;
}
}
Instance of Symbol 367 MovieClip in Frame 76
onClipEvent (load) {
_root.gotoAndStop("lv1-16b");
}
onClipEvent (enterFrame) {
_root.gotoAndStop("lv1-16b");
}
Frame 79
stop();
Symbol 6 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
_root.gotoAndStop(2);
}
Symbol 6 MovieClip Frame 2
gotoAndPlay (1);
Symbol 8 MovieClip Frame 1
stop();
Symbol 602 MovieClip [__Packages.com.wiicade.Wii] Frame 0
class com.wiicade.Wii
{
static var instance;
var keyboard, lc;
function Wii () {
if (!_global.Wii) {
_global.Wii = this;
} else {
return;
}
wii = System.capabilities.os == "Nintendo Wii";
com.wiicade.WiiRemote.init();
com.wiicade.KeyboardController.init();
com.wiicade.Browser.init();
var _local3 = 0;
while (_local3 < 4) {
remotes[_local3] = new com.wiicade.WiiRemote(_local3);
_local3++;
}
if (!isWii()) {
keyboard = new com.wiicade.KeyboardController(wiicommand);
}
lc = new LocalConnection();
lc.connect("wii");
lc.wiicommand = function (packet) {
_global.Wii.wiicommand(packet);
};
if (isWii()) {
getURL (((("javascript:initializeWiiCadeAPI(20, " + Stage.width) + ", ") + Stage.height) + ");");
}
}
static function getInstance() {
if (!_global.Wii) {
instance = new com.wiicade.Wii();
}
return(_global.Wii);
}
static function init() {
_global.Wii = null;
instance = new com.wiicade.Wii();
}
static function isWii() {
var _local1 = getInstance();
return(_local1.wii || (_local1.virtualized));
}
function wiicommand(packet) {
var _local4 = getInstance();
var _local2 = (4294901760 & packet) >> 16;
var _local3 = packet & 65535;
if (_local2 < 5) {
_local4.remotes[_local2 - 1].buttonsUpdated(_local3);
} else if (_local2 < 9) {
_local4.remotes[_local2 - 5].twistUpdated(_local3);
} else if (_local2 < 13) {
_local4.remotes[_local2 - 9].distanceUpdated(_local3);
} else if (_local2 == 13) {
parseFlags(_local3);
} else if (_local2 < 18) {
parseAttachment(_local3, _local2 - 14);
} else if (_local2 < 22) {
_local4.remotes[_local2 - 18].cursorXUpdated(_local3);
} else if (_local2 < 32) {
_local4.remotes[_local2 - 22].cursorYUpdated(_local3);
}
}
function parseFlags(flags) {
var _local7 = primary;
var _local3;
var _local4;
var _local5 = 8;
primary = flags & 3;
if (primary != _local7) {
getRemote(_local7).updatePrimary(false);
getRemote(primary).updatePrimary(true);
}
virtualized = (4 & _local5) > 0;
var _local2 = 0;
while (_local2 < 4) {
_local3 = getRemote(_local2);
_local4 = (_local5 & flags) > 0;
if (_local3.isConnected() != _local4) {
_local3.connectedUpdated(_local4);
}
_local5 = _local5 << 1;
_local2++;
}
}
function parseAttachment(data, remote) {
var _local4 = getRemote(remote);
var _local3 = _local4.getAttachment();
var _local2;
var _local1;
if ((data & 256) == 0) {
if (!(_local3 instanceof com.wiicade.Nunchuk)) {
_local3 = new com.wiicade.Nunchuk(_local4);
_local4.updateAttachment(_local3);
}
_local3.updateButtons(data & 3);
_local2 = (data & 28) >>> 2;
_local1 = (data & 224) >>> 5;
if ((_local2 & 4) > 0) {
_local2 = _local2 | 65528;
}
if ((_local1 & 4) > 0) {
_local1 = _local1 | 65528;
}
_local2 = Math.floor((_local2 * 128) / 3);
_local1 = Math.floor((_local1 * 128) / 3);
_local3.updateStick(_local2, _local1);
}
}
static function getRemote(identity) {
var _local1 = getInstance();
if ((!_local1.activated[identity]) && (_local1.isWii())) {
getURL (("javascript:activateWiiRemoteFeature(" + identity) + ", null, true);");
_local1.activated[identity] = true;
}
return(_local1.remotes[identity]);
}
static function getPrimaryRemote() {
var _local1 = getInstance();
return(_local1.remotes[_local1.primary]);
}
static var COMMAND_BUTTONS = 1;
static var COMMAND_TWIST = 5;
static var COMMAND_DISTANCE = 9;
static var COMMAND_FLAGS = 13;
static var COMMAND_ATTACH = 14;
static var COMMAND_CURSORX = 18;
static var COMMAND_CURSORY = 22;
var remotes = new Array();
var activated = new Array();
var primary = 0;
var virtualized = false;
var wii = true;
}
Symbol 603 MovieClip [__Packages.com.wiicade.KeyboardController] Frame 0
class com.wiicade.KeyboardController
{
static var keyCodes, buttonCodes;
var callback;
function KeyboardController (callback) {
this.callback = callback;
Key.addListener(this);
Mouse.addListener(this);
if (!keyCodes) {
init();
}
}
static function init() {
keyCodes = new Array();
buttonCodes = new Array();
keyCodes[37] = com.wiicade.WiiRemote.BUTTON_LEFT;
keyCodes[38] = com.wiicade.WiiRemote.BUTTON_UP;
keyCodes[39] = com.wiicade.WiiRemote.BUTTON_RIGHT;
keyCodes[40] = com.wiicade.WiiRemote.BUTTON_DOWN;
keyCodes[65] = com.wiicade.WiiRemote.BUTTON_1;
keyCodes[83] = com.wiicade.WiiRemote.BUTTON_2;
keyCodes[68] = com.wiicade.WiiRemote.BUTTON_A;
keyCodes[32] = com.wiicade.WiiRemote.BUTTON_B;
keyCodes[187] = com.wiicade.WiiRemote.BUTTON_PLUS;
keyCodes[189] = com.wiicade.WiiRemote.BUTTON_MINUS;
buttonCodes[com.wiicade.WiiRemote.BUTTON_LEFT] = 37;
buttonCodes[com.wiicade.WiiRemote.BUTTON_UP] = 38;
buttonCodes[com.wiicade.WiiRemote.BUTTON_RIGHT] = 39;
buttonCodes[com.wiicade.WiiRemote.BUTTON_DOWN] = 40;
buttonCodes[com.wiicade.WiiRemote.BUTTON_1] = 65;
buttonCodes[com.wiicade.WiiRemote.BUTTON_2] = 83;
buttonCodes[com.wiicade.WiiRemote.BUTTON_A] = 68;
buttonCodes[com.wiicade.WiiRemote.BUTTON_B] = 32;
buttonCodes[com.wiicade.WiiRemote.BUTTON_PLUS] = 187;
buttonCodes[com.wiicade.WiiRemote.BUTTON_MINUS] = 189;
}
function onKeyDown() {
var _local2 = Key.getCode();
if (keyCodes[_local2]) {
bitmap = bitmap | keyCodes[_local2];
callback((com.wiicade.Wii.COMMAND_BUTTONS << 16) | bitmap);
}
}
function onKeyUp() {
var _local2 = Key.getCode();
if (keyCodes[_local2]) {
bitmap = bitmap & (~keyCodes[_local2]);
callback((com.wiicade.Wii.COMMAND_BUTTONS << 16) | bitmap);
}
}
function onMouseDown() {
bitmap = bitmap | com.wiicade.WiiRemote.BUTTON_A;
callback((com.wiicade.Wii.COMMAND_BUTTONS << 16) | bitmap);
}
function onMouseUp() {
bitmap = bitmap & (~com.wiicade.WiiRemote.BUTTON_A);
callback((com.wiicade.Wii.COMMAND_BUTTONS << 16) | bitmap);
}
function onMouseMove() {
callback((com.wiicade.Wii.COMMAND_CURSORX << 16) | _xmouse);
callback((com.wiicade.Wii.COMMAND_CURSORY << 16) | _ymouse);
}
static function getButtonMappingForKey(keyCode) {
if (!keyCodes) {
com.wiicade.Wii.isWii();
}
return(keyCodes[keyCode]);
}
static function getKeyMappingForButton(buttonCode) {
if (!keyCodes) {
com.wiicade.Wii.isWii();
}
return(buttonCodes[buttonCode]);
}
static function setKeyMapping(buttonCode, keyCode) {
if (!keyCodes) {
com.wiicade.Wii.isWii();
}
var _local1 = buttonCodes[buttonCode];
var _local2 = keyCodes[keyCode];
if (_local1) {
keyCodes[_local1] = null;
}
if (_local2) {
buttonCodes[_local2] = null;
}
keyCodes[keyCode] = buttonCode;
buttonCodes[buttonCode] = keyCode;
}
var bitmap = 0;
}
Symbol 604 MovieClip [__Packages.com.wiicade.WiiRemote] Frame 0
class com.wiicade.WiiRemote
{
var identity, attachment, activated, dispatchEvent, oldcursorx, oldcursory;
function WiiRemote (identity) {
this.identity = identity;
allowRotate = com.wiicade.Wii.isWii();
attachment = new com.wiicade.Nunchuk(this);
activated = new Array();
if (this.identity == 0) {
primary = true;
connected = true;
}
mx.events.EventDispatcher.initialize(this);
}
static function init() {
}
function getIdentity() {
return(identity);
}
function isPrimary() {
return(primary);
}
function isConnected() {
return(connected);
}
function isRotated() {
return(rotated);
}
function setRotated(rotate) {
rotated = rotate;
}
function getTwistAngle() {
if ((!activated[com.wiicade.Wii.COMMAND_TWIST]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_TWIST + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_TWIST] = true;
}
return(twistAngle);
}
function getDistance() {
if ((!activated[com.wiicade.Wii.COMMAND_DISTANCE]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_DISTANCE + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_DISTANCE] = true;
}
return(distance);
}
function getCursorX() {
if ((!activated[com.wiicade.Wii.COMMAND_CURSORX]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_CURSORX + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_CURSORX] = true;
}
return(cursorx);
}
function getCursorY() {
if ((!activated[com.wiicade.Wii.COMMAND_CURSORX]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_CURSORX + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_CURSORX] = true;
}
return(cursory);
}
function isFacingScreen() {
return((cursorx > 0) || (cursory > 0));
}
function isDown(buttonCode) {
if (rotated && (allowRotate)) {
if (buttonCode == BUTTON_UP) {
buttonCode = BUTTON_RIGHT;
} else if (buttonCode == BUTTON_RIGHT) {
buttonCode = BUTTON_DOWN;
} else if (buttonCode == BUTTON_DOWN) {
buttonCode = BUTTON_LEFT;
} else if (buttonCode == BUTTON_LEFT) {
buttonCode = BUTTON_UP;
}
}
return((pressed & buttonCode) > 0);
}
function getAttachment() {
if ((!activated[com.wiicade.Wii.COMMAND_ATTACH]) && (com.wiicade.Wii.isWii())) {
getURL (((("javascript:activateWiiRemoteFeature(" + identity) + ", ") + (com.wiicade.Wii.COMMAND_ATTACH + identity)) + ", true);");
activated[com.wiicade.Wii.COMMAND_ATTACH] = true;
}
return(attachment);
}
function buttonsUpdated(bitmap) {
var _local2 = 1;
var _local8 = pressed;
var _local7;
pressed = bitmap;
_local7 = pressed ^ _local8;
var _local3 = 0;
while (_local3 < 10) {
if ((_local7 & _local2) > 0) {
if ((pressed & _local2) > 0) {
dispatchEvent({type:"buttondown", buttonCode:_local2, identity:identity});
} else {
dispatchEvent({type:"buttonup", buttonCode:_local2, identity:identity});
}
}
_local2 = _local2 << 1;
_local3++;
}
}
function twistUpdated(angle) {
var _local2 = twistAngle;
twistAngle = angle;
if (twistAngle != _local2) {
dispatchEvent({type:"twist", angle:angle, identity:identity});
}
}
function distanceUpdated(distance) {
var _local2 = this.distance;
this.distance = distance;
if (this.distance != _local2) {
dispatchEvent({type:"distance", distance:distance, identity:identity});
}
}
function connectedUpdated(connected) {
var _local2 = this.connected;
this.connected = connected;
if (this.connected != _local2) {
if (connected) {
dispatchEvent({type:"connected", identity:identity});
} else {
dispatchEvent({type:"disconnected", identity:identity});
}
}
}
function cursorXUpdated(cursorx) {
oldcursorx = this.cursorx;
this.cursorx = cursorx;
}
function cursorYUpdated(cursory) {
oldcursory = this.cursory;
this.cursory = cursory;
if ((cursorx != oldcursorx) || (this.cursory != oldcursory)) {
dispatchEvent({type:"pointer", cursorx:cursorx, cursory:this.cursory, identity:identity});
}
}
function updatePrimary(primary) {
this.primary = primary;
}
function updateAttachment(attachment) {
this.attachment = attachment;
}
static var BUTTON_UP = 8;
static var BUTTON_DOWN = 4;
static var BUTTON_RIGHT = 2;
static var BUTTON_LEFT = 1;
static var BUTTON_1 = 64;
static var BUTTON_2 = 32;
static var BUTTON_A = 256;
static var BUTTON_B = 128;
static var BUTTON_PLUS = 16;
static var BUTTON_MINUS = 512;
var primary = false;
var connected = false;
var rotated = false;
var allowRotate = true;
var twistAngle = 0;
var distance = 0;
var cursorx = 0;
var cursory = 0;
var pressed = 0;
}
Symbol 605 MovieClip [__Packages.com.wiicade.Nunchuk] Frame 0
class com.wiicade.Nunchuk
{
var parent, dispatchEvent;
function Nunchuk (parent) {
this.parent = parent;
mx.events.EventDispatcher.initialize(this);
}
function isDown(buttonCode) {
return((pressed & buttonCode) > 0);
}
function getStickX() {
return(stickx);
}
function getStickY() {
return(sticky);
}
function updateButtons(buttons) {
var _local2 = 1;
var _local8 = pressed;
var _local7;
pressed = buttons;
_local7 = pressed ^ _local8;
var _local3 = 0;
while (_local3 < 10) {
if ((_local7 & _local2) > 0) {
if ((pressed & _local2) > 0) {
dispatchEvent({type:"buttondown", buttonCode:_local2, identity:parent.getIdentity()});
} else {
dispatchEvent({type:"buttonup", buttonCode:_local2, identity:parent.getIdentity()});
}
}
_local2 = _local2 << 1;
_local3++;
}
}
function updateStick(x, y) {
stickx = x;
sticky = y;
}
static var BUTTON_C = 2;
static var BUTTON_Z = 1;
var pressed = 0;
var stickx = 0;
var sticky = 0;
}
Symbol 606 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 607 MovieClip [__Packages.com.wiicade.Browser] Frame 0
class com.wiicade.Browser
{
static var buttonEnabled;
function Browser () {
}
static function init() {
buttonEnabled = new Array();
buttonEnabled[com.wiicade.WiiRemote.BUTTON_LEFT] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_UP] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_RIGHT] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_DOWN] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_1] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_2] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_A] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_B] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_PLUS] = false;
buttonEnabled[com.wiicade.WiiRemote.BUTTON_MINUS] = false;
}
static function isDefaultEnabled(buttonCode) {
if (!buttonEnabled) {
com.wiicade.Wii.isWii();
}
return(buttonEnabled[buttonCode]);
}
static function setDefaultEnabled(buttonCode, enabled) {
if (!buttonEnabled) {
com.wiicade.Wii.isWii();
}
buttonEnabled[buttonCode] = enabled;
if (com.wiicade.Wii.isWii()) {
getURL (((("javascript:enableWiiButton(" + buttonCode) + ",") + enabled) + ");");
}
}
static function enableZooming() {
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_PLUS, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_MINUS, true);
}
static function disableZooming() {
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_PLUS, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_MINUS, false);
}
static function enableScrolling() {
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_LEFT, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_RIGHT, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_UP, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_DOWN, true);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_B, true);
}
static function disableScrolling() {
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_LEFT, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_RIGHT, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_UP, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_DOWN, false);
setDefaultEnabled(com.wiicade.WiiRemote.BUTTON_B, false);
}
static function setBackgroundColor(color) {
if (com.wiicade.Wii.isWii()) {
getURL (("javascript:setBackgroundColor(" + color) + ");");
}
}
}
Symbol 22 Button
on (release) {
_root._quality = "low";
_root.qual = 3;
}
Symbol 26 Button
on (release) {
_root._quality = "medium";
_root.qual = 2;
}
Symbol 30 Button
on (release) {
_root._quality = "high";
_root.qual = 1;
}
Symbol 36 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 47 Button
on (release) {
_root.debug = false;
}
Symbol 51 Button
on (release) {
_root.debug = true;
}
Symbol 54 Button
on (release) {
getURL ("http://www.isamedia.org/");
}
Symbol 55 Button
on (release) {
getURL ("http://www.mindstage.org/");
}
Symbol 56 Button
on (release) {
getURL ("http://www.wiicade.com/");
}
Symbol 58 MovieClip Frame 112
stop();
Symbol 61 Button
on (release) {
_root.coop = 0;
if (_root.playingWii) {
gotoAndStop (6);
} else if (!_root.playingWii) {
gotoAndStop (4);
}
}
Symbol 63 Button
on (release) {
if (_root.playingWii) {
gotoAndStop (7);
_root.coop = 1;
} else if (!_root.playingWii) {
gotoAndStop (5);
_root.coop = 0;
}
}
Symbol 81 Button
on (release) {
gotoAndStop (8);
}
Symbol 103 Button
on (release) {
play();
}
Symbol 106 Button
on (release) {
_root.play();
}
Symbol 151 MovieClip Frame 1
_root.stop();
Symbol 151 MovieClip Frame 1537
_root.play();
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 2
_root.nextFrame();
Symbol 197 MovieClip Frame 2
stop();
Symbol 199 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 4
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 5
stop();
Symbol 207 MovieClip Frame 6
stop();
Symbol 214 MovieClip Frame 1
if (_root.playingWii) {
stop();
} else {
gotoAndStop (2);
}
Symbol 214 MovieClip Frame 2
stop();
Symbol 215 MovieClip Frame 1
if (_root.playingWii) {
stop();
} else {
gotoAndStop (2);
}
Symbol 215 MovieClip Frame 2
stop();
Symbol 216 MovieClip Frame 1
if (_root.playingWii) {
stop();
} else {
gotoAndStop (2);
}
Symbol 216 MovieClip Frame 2
stop();
Symbol 228 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 231 MovieClip Frame 24
stop();
_root.nextLevel = true;
_root.gotoAndStop(_root.levelNext);
Symbol 232 MovieClip Frame 24
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 1
stop();
Symbol 248 Button
on (release) {
_root.doorIn = true;
}
Symbol 250 Button
on (release) {
_root.gotoAndStop(1);
}
Instance of Symbol 241 MovieClip in Symbol 252 MovieClip Frame 1
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i < 75) {
gotoAndStop (1);
} else {
unloadMovie (this);
}
}
Instance of Symbol 251 MovieClip in Symbol 252 MovieClip Frame 1
onClipEvent (load) {
if (!_root.debug) {
unloadMovie (this);
}
}
Symbol 272 MovieClip Frame 1
_root.stop();
Symbol 272 MovieClip Frame 1310
_root.play();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
Symbol 296 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 2
_root.buttonPress = true;
Symbol 296 MovieClip Frame 8
_root.barrier.gotoAndStop(2);
_root.barrier2.gotoAndStop(2);
_root.leftWall.gotoAndStop(2);
_root.rightWall.gotoAndStop(2);
_root.ground.gotoAndStop(2);
stop();
Symbol 306 MovieClip Frame 5
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 2
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 2
stop();
Instance of Symbol 317 MovieClip in Symbol 318 MovieClip Frame 2
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i > 40) {
gotoAndStop (3);
}
}
Symbol 320 MovieClip Frame 1
if (_root.playingWii) {
stop();
} else {
gotoAndStop (2);
}
Symbol 320 MovieClip Frame 2
stop();
Symbol 321 MovieClip Frame 1
if (_root.playingWii) {
stop();
} else {
gotoAndStop (2);
}
Symbol 321 MovieClip Frame 2
stop();
Symbol 322 MovieClip Frame 1
if (_root.playingWii) {
stop();
} else {
gotoAndStop (2);
}
Symbol 322 MovieClip Frame 2
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 1
stop();
Instance of Symbol 325 MovieClip in Symbol 335 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.key) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 330 MovieClip in Symbol 335 MovieClip Frame 1
onClipEvent (load) {
if (_root.camFocus) {
gotoAndStop (1);
} else if (!_root.camFocus) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.camFocus) {
gotoAndStop (1);
} else if (!_root.camFocus) {
gotoAndStop (2);
}
}
Instance of Symbol 333 MovieClip in Symbol 335 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.jumpCountMax == 2) {
gotoAndStop (2);
}
}
Instance of Symbol 241 MovieClip in Symbol 335 MovieClip Frame 1
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i < 75) {
gotoAndStop (1);
} else {
unloadMovie (this);
}
}
Instance of Symbol 251 MovieClip in Symbol 335 MovieClip Frame 1
onClipEvent (load) {
if (!_root.debug) {
unloadMovie (this);
}
}
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 2
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 2
stop();
Symbol 364 MovieClip Frame 1
stop();
Symbol 364 MovieClip Frame 6
stop();
_root.hero2Move = true;
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 2
stop();
Symbol 382 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 2
stop();
Symbol 385 MovieClip Frame 1
stop();
Symbol 385 MovieClip Frame 2
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 2
_root.buttonPress = true;
Symbol 396 MovieClip Frame 8
_root.barrier.gotoAndStop(2);
_root.barrier2.gotoAndStop(2);
_root.leftWall.gotoAndStop(2);
_root.rightWall.gotoAndStop(2);
_root.ground.gotoAndStop(2);
stop();
Symbol 399 MovieClip Frame 7
gotoAndPlay (4);
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 2
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 2
stop();
Symbol 408 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 2
stop();
Symbol 411 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 2
stop();
Symbol 426 MovieClip Frame 1
stop();
_root.buttonPress = false;
Symbol 426 MovieClip Frame 2
_root.buttonPress = true;
Symbol 426 MovieClip Frame 6
_root.barrier.gotoAndStop(2);
_root.barrier2.gotoAndStop(2);
_root.barrier3.gotoAndStop(2);
_root.barrier4.gotoAndStop(2);
_root.barrier5.gotoAndStop(2);
_root.leftWall.gotoAndStop(2);
_root.rightWall.gotoAndStop(2);
_root.ground.gotoAndStop(2);
Symbol 426 MovieClip Frame 8
stop();
_root.buttonPress = false;
Symbol 426 MovieClip Frame 9
_root.buttonPress = true;
Symbol 426 MovieClip Frame 13
_root.barrier.gotoAndStop(1);
_root.barrier2.gotoAndStop(1);
_root.barrier3.gotoAndStop(1);
_root.barrier4.gotoAndStop(1);
_root.barrier5.gotoAndStop(1);
_root.leftWall.gotoAndStop(1);
_root.rightWall.gotoAndStop(1);
_root.ground.gotoAndStop(1);
Symbol 426 MovieClip Frame 15
gotoAndStop (1);
Symbol 432 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 2
stop();
Symbol 456 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 2
stop();
Symbol 468 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 2
stop();
Symbol 478 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 2
stop();
Symbol 480 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 2
stop();
Symbol 494 MovieClip Frame 1
stop();
Symbol 497 MovieClip Frame 1
stop();
Symbol 497 MovieClip Frame 2
stop();
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 2
stop();
Symbol 506 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 2
stop();
Symbol 518 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 2
stop();
Symbol 521 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 2
stop();
Symbol 521 MovieClip Frame 3
stop();
Symbol 531 MovieClip Frame 1
stop();
Symbol 531 MovieClip Frame 2
stop();
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 2
stop();
Symbol 547 MovieClip Frame 1
stop();
Symbol 547 MovieClip Frame 2
stop();
Symbol 547 MovieClip Frame 3
stop();
Symbol 547 MovieClip Frame 4
stop();
Symbol 547 MovieClip Frame 5
stop();
Symbol 549 MovieClip Frame 1
stop();
Symbol 549 MovieClip Frame 2
stop();
Symbol 549 MovieClip Frame 3
stop();
Symbol 549 MovieClip Frame 4
stop();
Symbol 560 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 2
_root.buttonPress = true;
Symbol 560 MovieClip Frame 4
_root.ground.gotoAndStop(2);
_root.bb1.play();
Symbol 565 MovieClip Frame 1
stop();
Symbol 565 MovieClip Frame 2
_root.buttonPress = true;
Symbol 565 MovieClip Frame 4
_root.ground.gotoAndStop(3);
_root.bb2.play();
_root.bb3.play();
Symbol 570 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 2
_root.buttonPress = true;
Symbol 570 MovieClip Frame 4
_root.ground.gotoAndStop(4);
_root.bb4.play();
Symbol 571 MovieClip Frame 1
stop();
Symbol 571 MovieClip Frame 26
_root.ground.gotoAndStop(1);
_root.buttonPress = false;
Symbol 587 MovieClip Frame 1
stop();
Symbol 587 MovieClip Frame 2
stop();
Instance of Symbol 325 MovieClip in Symbol 589 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.key) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 333 MovieClip in Symbol 589 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.jumpCountMax == 2) {
gotoAndStop (2);
}
}
Instance of Symbol 241 MovieClip in Symbol 589 MovieClip Frame 1
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i < 75) {
gotoAndStop (1);
} else {
unloadMovie (this);
}
}
Instance of Symbol 251 MovieClip in Symbol 589 MovieClip Frame 1
onClipEvent (load) {
if (!_root.debug) {
unloadMovie (this);
}
}
Symbol 599 MovieClip Frame 1
_root.stop();
Symbol 599 MovieClip Frame 518
_root.play();