Frame 1
stop();
Instance of Symbol 113 MovieClip in Frame 1
onClipEvent (load) {
total = _parent.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _parent.getBytesLoaded();
percent = int((loaded / total) * 100);
gotoAndStop(percent);
if (percent >= 100) {
_parent.gotoAndStop("home");
}
}
Frame 2
function loadlevel() {
time = 900;
snd1.bgsound.stop();
snd1.bgsound.start(0, 10000);
snd1.bgsound.setVolume(40);
levelcomplete = 0;
map.attachMovie("soJump", "soJump", 1800);
map.attachMovie("soLadder", "soLadder", 1801);
map.attachMovie("soWalk", "soWalk", 1802);
map.attachMovie("soFall", "soFall", 1803);
soWalk = new Sound(map.soWalk);
soWalk.attachSound("leftrite.wav");
soWalk.playing = 0;
soWalk.onSoundComplete = function () {
soWalk.playing = 0;
};
soFall = new Sound(map.soFall);
soFall.attachSound("fall.wav");
soFall.playing = 0;
soFall.onSoundComplete = function () {
soFall.playing = 0;
};
soLadder = new Sound(map.soLadder);
soLadder.attachSound("updown.wav");
soLadder.playing = 0;
soLadder.onSoundComplete = function () {
soLadder.playing = 0;
};
soJump = new Sound(map.soJump);
soJump.attachSound("jump.wav");
soJump.playing = 0;
soJump.onSoundComplete = function () {
soJump.playing = 0;
};
soEgg = new Sound(map.soEgg);
soEgg.attachSound("egg.wav");
soEgg.playing = 0;
soEgg.onSoundComplete = function () {
soEgg.playing = 0;
};
soGrain = new Sound(map.soGrain);
soGrain.attachSound("grain.wav");
soGrain.playing = 0;
soGrain.onSoundComplete = function () {
soGrain.playing = 0;
};
soDoneLevel = new Sound(map.soDoneLevel);
soDoneLevel.attachSound("applause.wav");
soDoneLevel.playing = 0;
soDoneLevel.onSoundComplete = function () {
soDoneLevel.playing = 0;
};
soDeath = new Sound(map.soDeath);
soDeath.attachSound("Tune.wav");
soDeath.playing = 0;
soDeath.onSoundComplete = function () {
soDeath.playing = 0;
};
count = 0;
i = 0;
while (i < 20) {
j = 0;
while (j < 27) {
if (dead != 1) {
grid[j][i] = leveldata[LEVEL % 8][j][i];
}
count++;
j++;
}
i++;
}
dead = 0;
count = 0;
i = 0;
while (i < 20) {
j = 0;
while (j < 27) {
map.attachMovie("char" + grid[j][i], "c" + count, 100 + count);
map["c" + count]._x = (i * 32) + 16;
map["c" + count]._y = ((j * 16) + 88) - 16;
count++;
j++;
}
i++;
}
map.attachMovie("man", "man", 1500);
runner = map.man;
runner.x = Start[LEVEL % 8][0];
runner.y = Start[LEVEL % 8][1];
runner.dir = 1;
runner.anim = 0;
runner.onLadder = eval("FALSE");
runner.jumping = eval("FALSE");
runner.yvel = 0;
runner.xvel = 0;
runner.jumpFromLadder = eval("FALSE");
runner.minijump = eval("FALSE");
runner.onElevator = eval("FALSE");
runner.fallNudge = 0;
runner.squirm = -1;
runner.byebye = 0;
i = 0;
while (i < 8) {
if (Swans[LEVEL % 8][i][0] != 0) {
if (((LEVEL < 8) || (LEVEL > 15)) && ((i < 4) || (LEVEL >= 24))) {
map.attachMovie("swan", "swan" + i, 1001 + i);
swan = map["swan" + i];
swan.x = Swans[LEVEL % 8][i][0];
swan.y = Swans[LEVEL % 8][i][1];
swan.x = (swan.x - 1) * 8;
swan.y = (27 - swan.y) * 8;
swan.dir = 1;
swan.pecking = 0;
swan.swancount = 0;
}
}
i++;
}
if (Elevator[LEVEL % 8] != 0) {
map.attachMovie("lift", "lift1", 1997);
lift = map.lift1;
lift._x = Elevator[LEVEL % 8] * 32;
lift.elevatorPos = 223;
lift.elevator = Elevator[LEVEL % 8];
lift.real = eval("TRUE");
map.attachMovie("lift", "lift", 1998);
lift = map.lift;
lift._x = Elevator[LEVEL % 8] * 32;
lift.elevatorPos = 143;
lift.elevator = Elevator[LEVEL % 8];
lift.real = eval("FALSE");
}
map.attachMovie("chuckie", "chuckie", 1999);
chuckie = map.chuckie;
chuckie.x = 4;
chuckie.y = 20;
chuckie.dir = 0;
chuckie.xvel = 0;
chuckie.yvel = 0;
chuckie.chuckieCount = 0;
if (LEVEL > 7) {
chuckie.caged = eval("FALSE");
} else {
chuckie.caged = eval("TRUE");
}
}
function matrix(x, y) {
var _local1 = Math.floor(x);
var _local2 = Math.floor(y);
if ((((_local1 >= 0) && (_local1 < 20)) && (_local2 >= 0)) && (_local2 < 27)) {
res = grid[_local2][_local1];
return(res);
}
return(0);
}
function isLadder(x, y) {
BLANK = 0;
PLATFORM = 1;
LADDER = 2;
EGG = 3;
GRAIN = 4;
INV_PLATFORM = 5;
SOLID_LADDER = 6;
Set("FALSE", 0);
Set("TRUE", 1);
var _local1 = Math.floor(x);
var _local2 = Math.floor(y);
if ((((_local1 < 0) || (_local1 >= 20)) || (_local2 < 0)) || (_local2 >= 27)) {
return(eval("FALSE"));
}
res = grid[_local2][_local1];
if ((res == LADDER) || (res == SOLID_LADDER)) {
return(eval("TRUE"));
}
return(eval("FALSE"));
}
function isPlatform(x, y) {
BLANK = 0;
PLATFORM = 1;
LADDER = 2;
EGG = 3;
GRAIN = 4;
INV_PLATFORM = 5;
SOLID_LADDER = 6;
Set("FALSE", 0);
Set("TRUE", 1);
var _local1 = Math.floor(x);
var _local2 = Math.floor(y);
if ((((_local1 < 0) || (_local1 >= 20)) || (_local2 < 0)) || (_local2 >= 27)) {
return(eval("FALSE"));
}
res = grid[_local2][_local1];
if ((((res == PLATFORM) || (res == SOLID_LADDER)) || (res == INV_PLATFORM)) || ((res == LADDER) && ((matrix(_local1 - 1, _local2) == PLATFORM) || (matrix(_local1 + 1, _local2) == PLATFORM)))) {
return(eval("TRUE"));
}
return(eval("FALSE"));
}
function getymod(vel) {
var _local1 = Math.floor(vel);
runner = map.man;
switch (_local1) {
default :
// unexpected jump
if (eval("TRUE") == map.man.minijump) {
return(-1);
}
return(-2);
return(Math.floor(((_local1 >= 18) ? 5 : (((_local1 - 10) / 4) + 3))));
case -19 :
return(-1);
case -18 :
return(-4);
case -17 :
return(-4);
case -16 :
return(-4);
case -15 :
return(-4);
case -14 :
return(-3);
case -13 :
return(-3);
case -12 :
return(-3);
case -11 :
return(-3);
case -10 :
return(-2);
case -9 :
return(-2);
case -8 :
return(-2);
case :
return(-1);
case -5 :
return(-1);
case -4 :
return(-1);
case -3 :
return(-1);
case -2 :
return(0);
case -1 :
return(0);
case 0 :
return(0);
case 1 :
return(0);
case 2 :
return(1);
case 3 :
return(1);
case 4 :
return(1);
case 5 :
return(1);
case 6 :
return(2);
case 7 :
return(2);
case 8 :
return(2);
case 9 :
}
return(2);
}
function setMatrix(x, y, sq) {
var _local1 = y;
var _local2 = x;
if ((((_local2 >= 0) && (_local2 < 20)) && (_local1 >= 0)) && (_local1 < 27)) {
grid[_local1][_local2] = sq;
}
if (BLANK == sq) {
tempval = (_local2 * 27) + _local1;
map["c" + tempval].removeMovieClip();
}
}
function pickUp(x, y) {
var _local1 = Math.floor(x);
var _local2 = Math.floor(y);
blank.left = 0;
blank.right = 16 * magnify;
blank.top = 121 * magnify;
blank.bottom = 129 * magnify;
if (matrix(_local1, _local2) == EGG) {
setMatrix(_local1, _local2, BLANK);
soEgg.start();
if (Math.floor((score + 100) / 10000) > Math.floor(score / 10000)) {
lives++;
updatelives();
}
score = score + 100;
eggCount = 0;
xx = 0;
while (xx < 20) {
yy = 0;
while (yy < 27) {
if (matrix(xx, yy) == EGG) {
eggCount++;
}
yy++;
}
xx++;
}
if (eggCount == 0) {
soWalk.stop();
soWalk.playing = 0;
soLadder.stop();
soLadder.playing = 0;
soJump.stop();
soJump.playing = 0;
soFall.stop();
soFall.playing = 0;
soDoneLevel.start(0, 1000);
soDoneLevel.playing = 1;
LEVEL = LEVEL + 1;
levelcomplete = 1;
}
}
if (matrix(_local1, _local2) == GRAIN) {
setMatrix(_local1, _local2, BLANK);
soGrain.start();
if (Math.floor((score + 50) / 10000) > Math.floor(score / 10000)) {
lives++;
updatelives();
}
score = score + 50;
}
return(0);
}
function die() {
soWalk.stop();
soWalk.playing = 0;
soLadder.stop();
soLadder.playing = 0;
soJump.stop();
soJump.playing = 0;
soFall.stop();
soFall.playing = 0;
dead = 1;
lives = lives - 1;
trace("die called");
soDeath.start();
soDeath.playing = 1;
}
function updatescore() {
lemon = score + "";
i = 0;
while (i < lemon.length) {
map.attachMovie(substring(lemon, lemon.length - i, 1), "score" + i, 2000 + i);
map["score" + i]._x = (212 - (20 * i)) + 2;
map["score" + i]._y = 5;
i++;
}
}
function updatebonus() {
lemon = bonus + "";
if (lemon.length == 1) {
lemon = "000" + lemon;
}
if (lemon.length == 2) {
lemon = "00" + lemon;
}
if (lemon.length == 3) {
lemon = "0" + lemon;
}
i = 0;
while (i < lemon.length) {
map.attachMovie(substring(lemon, lemon.length - i, 1), "bonus" + i, 2100 + i);
map["bonus" + i]._x = (168 - (20 * i)) + 2;
map["bonus" + i]._y = 34;
i++;
}
}
function updatetime() {
lemon = time + "";
if (lemon.length == 1) {
lemon = "00" + lemon;
}
if (lemon.length == 2) {
lemon = "0" + lemon;
}
i = 0;
while (i < lemon.length) {
map.attachMovie(substring(lemon, lemon.length - i, 1), "time" + i, 2200 + i);
map["time" + i]._x = (600 - (20 * i)) + 2;
map["time" + i]._y = 34;
i++;
}
}
function updatelevel() {
lemon = (LEVEL + 1) + "";
if (lemon.length == 1) {
lemon = "0" + lemon;
}
i = 0;
while (i < lemon.length) {
map.attachMovie(substring(lemon, lemon.length - i, 1), "level" + i, 2300 + i);
map["level" + i]._x = (388 - (20 * i)) + 2;
map["level" + i]._y = 5;
i++;
}
}
function updatelives() {
i = 0;
while (i < (lives - 1)) {
map.attachMovie("lives", "lives" + i, 2400 + i);
map["lives" + i]._x = (488 + (36 * i)) + 2;
map["lives" + i]._y = 5;
i++;
}
}
LEVEL = 0;
score = 0;
bonus = 1000;
lives = 5;
dead = 0;
BLANK = 0;
PLATFORM = 1;
LADDER = 2;
EGG = 3;
GRAIN = 4;
INV_PLATFORM = 5;
SOLID_LADDER = 6;
Set("FALSE", 0);
Set("TRUE", 1);
var leveldata = new Array();
var Swans = new Array();
var Start = new Array();
var Elevator = new Array();
leveldata[0] = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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L")) {
tempcount = 0;
}
tempcount++;
if (levelcomplete == 1) {
bonus = bonus - 10;
score = score + 10;
}
trace("dead = " + dead);
trace("soDeath.playing = " + soDeath.playing);
if ((dead == 1) && (soDeath.playing == 0)) {
trace("lives = " + lives);
if (lives == 0) {
gotoAndPlay ("gameover");
} else {
gotoAndPlay ("startgame");
}
}
if ((levelcomplete == 1) && (bonus < 0)) {
soDoneLevel.stop();
soDoneLevel.playing = 0;
bonus = 1000;
gotoAndPlay ("levelover");
}
if (((dead != 1) && (levelcomplete != 1)) && ((tempcount % 10) == 0)) {
time = time - 1;
}
if ((((dead != 1) && (levelcomplete != 1)) && ((tempcount % 50) == 0)) && (bonus > 0)) {
bonus = bonus - 10;
}
if (((dead != 1) && (levelcomplete != 1)) && (time == 0)) {
trace("afahsf -----------------------");
die();
}
updatescore();
updatebonus();
updatetime();
Instance of Symbol 143 MovieClip "cageClip" in Frame 64
onClipEvent (load) {
this.swapDepths(16457);
}
Frame 65
gotoAndPlay ("repeat");
Frame 66
removeMovieClip(cageClip);
Frame 125
gotoAndPlay ("home");
Symbol 12 MovieClip [manclimb] Frame 1
stop();
Symbol 12 MovieClip [manclimb] Frame 2
stop();
Symbol 12 MovieClip [manclimb] Frame 3
stop();
Symbol 12 MovieClip [manclimb] Frame 4
stop();
Symbol 15 MovieClip [swanclimb] Frame 21
gotoAndPlay (1);
Symbol 26 MovieClip [chuckieright] Frame 21
gotoAndPlay (1);
Symbol 29 MovieClip [chuckieleft] Frame 21
gotoAndPlay (1);
Symbol 34 MovieClip [peckingleft] Frame 6
gotoAndPlay (1);
Symbol 37 MovieClip [peckingright] Frame 6
gotoAndPlay (1);
Symbol 40 MovieClip [swanleft] Frame 21
gotoAndPlay (1);
Symbol 41 MovieClip [swanright] Frame 21
gotoAndPlay (1);
Symbol 75 MovieClip [swan] Frame 1
BLANK = 0;
PLATFORM = 1;
LADDER = 2;
EGG = 3;
GRAIN = 4;
INV_PLATFORM = 5;
SOLID_LADDER = 6;
Set("FALSE", 0);
Set("TRUE", 1);
swan = this;
if (((swancount++) % 10) == 0) {
if (swan.x != -1) {
tx = swan.x;
ty = swan.y;
td = swan.dir;
pecking = swan.pecking;
if (pecking > 0) {
pecking++;
if (pecking == 5) {
pecking = 0;
}
if (pecking == 2) {
_root.setMatrix((tx / 8) + ((td == 1) ? 1 : -1), ty / 8, BLANK);
}
} else if (((tx % 8) == 0) && ((ty % 8) == 0)) {
exits = [0, 0, 0, 0, 0];
exitCount = 0;
if (_root.matrix(tx / 8, (ty / 8) - 2) == LADDER) {
exits[0] = eval("TRUE");
exitCount++;
}
if (_root.matrix(tx / 8, (ty / 8) + 1) == LADDER) {
exits[2] = eval("TRUE");
exitCount++;
}
if ((_root.matrix((tx / 8) + 1, (ty / 8) + 1) == PLATFORM) || ((_root.matrix((tx / 8) + 1, (ty / 8) + 1) == LADDER) && ((_root.matrix(tx / 8, (ty / 8) + 1) == PLATFORM) || (_root.matrix((tx / 8) + 2, (ty / 8) + 1) == PLATFORM)))) {
exits[1] = eval("TRUE");
exitCount++;
}
if ((_root.matrix((tx / 8) - 1, (ty / 8) + 1) == PLATFORM) || ((_root.matrix((tx / 8) - 1, (ty / 8) + 1) == LADDER) && ((_root.matrix(tx / 8, (ty / 8) + 1) == PLATFORM) || (_root.matrix((tx / 8) - 2, (ty / 8) + 1) == PLATFORM)))) {
exits[3] = eval("TRUE");
exitCount++;
}
switch (exitCount) {
case 1 :
td = td ^ 2;
break;
case 2 :
if (!exits[td]) {
exits[td ^ 2] = eval("FALSE");
swanTemp = 0;
while (swanTemp < 4) {
if (exits[swanTemp]) {
td = swanTemp;
}
swanTemp++;
}
}
break;
case 3 :
exits[td ^ 2] = eval("FALSE");
first = -1;
swanTemp = 0;
while (swanTemp < 4) {
if ((exits[swanTemp] == eval("TRUE")) && (first == -1)) {
first = swanTemp;
}
if ((exits[swanTemp] == eval("TRUE")) && (first > -1)) {
second = swanTemp;
}
swanTemp++;
}
if (random(2) == 0) {
td = first;
} else {
td = second;
}
break;
case 4 :
exits[td ^ 2] = eval("FALSE");
first = -1;
second = -1;
swanTemp = 0;
while (swanTemp < 4) {
if (((exits[swanTemp] == eval("TRUE")) && (first == -1)) && (second == -1)) {
first = swanTemp;
}
if (((exits[swanTemp] == eval("TRUE")) && (first > -1)) && (second == -1)) {
second = swanTemp;
}
if (((exits[swanTemp] == eval("TRUE")) && (first > -1)) && (second > -1)) {
third = swanTemp;
}
swanTemp++;
}
if (random(3) == 0) {
td = first;
} else {
td = ((random(2) == 0) ? (second) : (third));
}
}
if (((td == 1) && (_root.matrix((tx / 8) + 1, ty / 8) == GRAIN)) || ((td == 3) && (_root.matrix((tx / 8) - 1, ty / 8) == GRAIN))) {
pecking = 1;
}
}
if (pecking == 0) {
tx = (tx + ((td == 1) ? 4 : 0)) - ((td == 3) ? 4 : 0);
ty = (ty + ((td == 2) ? 4 : 0)) - ((td == 0) ? 4 : 0);
}
swan.x = tx;
swan.y = ty;
swan.dir = td;
swan.pecking = pecking;
}
}
if (((((swan.x + 6) >= _root.map.man.x) && (swan.x <= (_root.map.man.x + 7))) && ((swan.y + 11) >= _root.map.man.y)) && (swan.y <= (_root.map.man.y + 15))) {
_root.die();
}
if (swan.dir == 3) {
if (this.neil.whatis != "swanleft") {
this.attachMovie("swanleft", "neil", 90);
this.neil.whatis = "swanleft";
}
}
if (swan.dir == 1) {
if (this.neil.whatis != "swanright") {
this.attachMovie("swanright", "neil", 90);
this.neil.whatis = "swanright";
}
}
if ((swan.dir == 2) || (swan.dir == 0)) {
if (this.neil.whatis != "swanclimb") {
this.attachMovie("swanclimb", "neil", 90);
this.neil.whatis = "swanclimb";
}
}
if ((swan.dir == 3) && (pecking > 0)) {
this.attachMovie("peckingleft", "neil", 90);
this.neil.gotoAndStop(pecking + 1);
}
if ((swan.dir == 1) && (pecking > 0)) {
this.attachMovie("peckingright", "neil", 90);
this.neil.gotoAndStop(pecking + 1);
}
swan._x = ((swan.x * 4) + 32) - 2;
swan._y = ((((swan.y * 2) + 88) - 16) - 8) - 4;
if ((_root.dead == 1) || (_root.levelcomplete == 1)) {
this.neil.stop();
this.stop();
}
Symbol 75 MovieClip [swan] Frame 2
gotoAndPlay (1);
Symbol 77 MovieClip [man] Frame 1
BLANK = 0;
PLATFORM = 1;
LADDER = 2;
EGG = 3;
GRAIN = 4;
INV_PLATFORM = 5;
SOLID_LADDER = 6;
Set("FALSE", 0);
Set("TRUE", 1);
runner = this;
oldx = runner.x;
oldy = runner.y;
canWalk = eval("FALSE");
if (Key.isDown(39) || (Key.isDown(190))) {
rightPressed = 1;
} else {
rightPressed = 0;
}
if (Key.isDown(37) || (Key.isDown(188))) {
leftPressed = 1;
} else {
leftPressed = 0;
}
if (Key.isDown(38) || (Key.isDown(65))) {
upPressed = 1;
} else {
upPressed = 0;
}
if (Key.isDown(40) || (Key.isDown(90))) {
downPressed = 1;
} else {
downPressed = 0;
}
if (Key.isDown(32)) {
jumpPressed = 1;
} else {
jumpPressed = 0;
}
if (((runner.onLadder == eval("FALSE")) && ((runner.y % 8) == 0)) || (runner.onElevator == eval("TRUE"))) {
canWalk = eval("TRUE");
}
if (((runner.onLadder == eval("TRUE")) && ((runner.y % 8) == 0)) && ((_root.matrix((runner.x / 8) + 1, (runner.y / 8) + 1) == PLATFORM) || (_root.matrix((runner.x / 8) - 1, (runner.y / 8) + 1) == PLATFORM))) {
canWalk = eval("TRUE");
}
walking = eval("FALSE");
if (runner.jumping == eval("TRUE")) {
canWalk = eval("FALSE");
}
if (((rightPressed && (!leftPressed)) && (canWalk == eval("TRUE"))) && (_root.matrix(((runner.x - 2) / 8) + 1, runner.y / 8) != PLATFORM)) {
runner.onLadder = eval("FALSE");
runner.x = runner.x + 1;
if (this.neil.whatis != "manright") {
this.attachMovie("manright", "neil", 90);
this.neil.whatis = "manright";
}
runner.dir = 1;
runner.jumpFromLadder = eval("FALSE");
if (_root.soWalk.playing == 0) {
_root.soWalk.start();
_root.soWalk.playing = 1;
}
if (runner.x > 152) {
runner.x = 152;
} else {
walking = eval("TRUE");
}
}
if (((leftPressed && (!rightPressed)) && (canWalk == eval("TRUE"))) && (_root.matrix((runner.x + 1) / 8, runner.y / 8) != PLATFORM)) {
runner.onLadder = eval("FALSE");
runner.x = runner.x - 1;
if (this.neil.whatis != "manleft") {
this.attachMovie("manleft", "neil", 90);
this.neil.whatis = "manleft";
}
runner.dir = 0;
runner.jumpFromLadder = eval("FALSE");
if (_root.soWalk.playing == 0) {
_root.soWalk.start();
_root.soWalk.playing = 1;
}
if (runner.x < 0) {
runner.x = 0;
} else {
walking = eval("TRUE");
}
}
if ((!walking) == eval("TRUE")) {
_root.soWalk.stop();
_root.soWalk.playing = 0;
}
if (canWalk == eval("TRUE")) {
_root.soFall.stop();
_root.soFall.playing = 0;
}
if ((jumpPressed && (leftPressed || (rightPressed))) && ((canWalk == eval("TRUE")) || (runner.onLadder == eval("TRUE")))) {
if (_root.soJump.playing == 0) {
_root.soJump.start();
_root.soJump.playing = 1;
}
runner.dir = (leftPressed ? 0 : 1);
if ((dir == 0) && (this.neil.whatis != "manleft")) {
this.attachMovie("manleft", "neil", 90);
this.neil.whatis = "manleft";
}
if ((dir == 1) && (this.neil.whatis != "manright")) {
this.attachMovie("manright", "neil", 90);
this.neil.whatis = "manright";
}
runner.jumping = eval("TRUE");
runner.yvel = -10;
runner.xvel = (leftPressed ? -1 : 1);
runner.jumpFromLadder = eval("FALSE");
runner.fallNudge = 0;
if (_root.matrix(((runner.x + (leftPressed ? 1 : -2)) / 8) + (leftPressed ? 0 : 1), runner.y / 8) == PLATFORM) {
runner.minijump = eval("TRUE");
}
if (((leftPressed && (_root.isPlatform((runner.x / 8) - 2, runner.y / 8))) && ((!runner.onLadder) == eval("TRUE"))) && ((!_root.isPlatform((runner.x / 8) - 1, runner.y / 8)) == eval("TRUE"))) {
runner.byebye = 14;
}
if (((rightPressed && (_root.matrix(((runner.x - 2) / 8) + 3, runner.y / 8) == PLATFORM)) && (_root.matrix(((runner.x - 2) / 8) + 2, runner.y / 8) != PLATFORM)) && (_root.matrix((runner.x - 2) / 8, (runner.y / 8) + 1) == PLATFORM)) {
runner.byebye = 13;
}
runner.onLadder = eval("FALSE");
}
if ((jumpPressed && (!leftPressed)) && (!rightPressed)) {
if (!runner.jumping) {
if (_root.soJump.playing == 0) {
_root.soJump.start();
_root.soJump.playing = 1;
}
}
if (canWalk && (!runner.onLadder)) {
runner.yvel = -10;
runner.xvel = 0;
runner.onLadder = eval("FALSE");
runner.jumping = eval("TRUE");
runner.fallNudge = 0;
if (_root.matrix(runner.x / 8, runner.y / 8) == PLATFORM) {
runner.minijump = eval("TRUE");
}
}
if (runner.onLadder) {
runner.yvel = -10;
runner.xvel = 0;
runner.jumping = eval("TRUE");
runner.jumpFromLadder = eval("TRUE");
runner.onLadder = eval("FALSE");
runner.fallNudge = 0;
}
}
ladder = eval("FALSE");
if (((upPressed && (!downPressed)) && ((runner.x % 8) == 0)) && ((_root.isLadder(runner.x / 8, (runner.y / 8) - (((runner.y % 8) == 0) ? 2 : 1)) || ((runner.jumping == eval("TRUE")) && (_root.isLadder(runner.x / 8, (runner.y / 8) - 1)))) || ((runner.jumping == eval("TRUE")) && (_root.isLadder(runner.x / 8, runner.y / 8))))) {
if (((runner.jumping == eval("TRUE")) && (jumpPressed)) && (leftPressed || (rightPressed))) {
if (_root.soJump.playing == 0) {
_root.soJump.start();
_root.soJump.playing = 1;
}
runner.yvel = -10;
runner.xvel = (leftPressed ? -1 : 1);
runner.dir = (leftPressed ? 0 : 1);
runner.jumpFromLadder = eval("FALSE");
} else {
if (((((runner.jumping == eval("TRUE")) && (jumpPressed)) && (!leftPressed)) && (!rightPressed)) && (runner.xvel != 0)) {
runner.squirm = runner.dir;
}
runner.y = runner.y - 2;
if ((runner.jumping == eval("TRUE")) && ((runner.y % 2) == 1)) {
runner.y--;
}
runner.onLadder = eval("TRUE");
runner.jumping = eval("FALSE");
if (this.neil.whatis != "manclimb") {
this.attachMovie("manclimb", "neil", 90);
this.neil.whatis = "manclimb";
}
runner.anim++;
runner.anim = runner.anim % 4;
runner.jumpFromLadder = eval("FALSE");
if (_root.soLadder.playing == 0) {
_root.soLadder.start();
_root.soLadder.playing = 1;
}
ladder = eval("TRUE");
}
}
if (((downPressed && (!upPressed)) && ((runner.x % 8) == 0)) && (_root.isLadder(runner.x / 8, (runner.y / 8) + 1))) {
if (((runner.jumping && (upPressed)) && (jumpPressed)) && (leftPressed || (rightPressed))) {
runner.yvel = -10;
runner.xvel = (leftPressed ? -1 : 1);
runner.dir = (leftPressed ? 0 : 1);
} else {
runner.y = runner.y + 2;
if (runner.jumping && ((runner.y % 2) == 1)) {
runner.y--;
}
runner.onLadder = eval("TRUE");
runner.jumping = eval("FALSE");
if (this.neil.whatis != "manclimb") {
this.attachMovie("manclimb", "neil", 90);
this.neil.whatis = "manclimb";
}
runner.anim++;
runner.anim = runner.anim % 4;
runner.jumpFromLadder = eval("FALSE");
if (_root.soLadder.playing == 0) {
_root.soLadder.start();
_root.soLadder.playing = 1;
}
ladder = eval("TRUE");
}
}
if ((!ladder) == eval("TRUE")) {
_root.soLadder.stop();
_root.soLadder.playing = 0;
}
if (runner.jumpFromLadder == eval("TRUE")) {
runner.anim = 0;
}
if (runner.jumping == eval("TRUE")) {
runner.y = runner.y + _root.getymod(runner.yvel);
runner.x = runner.x + runner.xvel;
runner.yvel++;
if (runner.x < 0) {
runner.x = 1;
runner.xvel = 1;
}
if (runner.x > 152) {
runner.x = 151;
runner.xvel = -1;
}
if ((runner.minijump == eval("TRUE")) && (runner.yvel == -5)) {
runner.jumping = eval("FALSE");
runner.minijump = eval("FALSE");
}
if (runner.fallNudge > 0) {
runner.x++;
runner.fallNudge--;
}
if (runner.fallNudge < 0) {
runner.x--;
runner.fallNudge++;
}
}
if ((((runner.jumping == eval("TRUE")) && (runner.xvel == 1)) && ((runner.x % 8) == 1)) && (runner.yvel > -2)) {
if (((_root.matrix((runner.x / 8) + 1, runner.y / 8) == PLATFORM) || ((runner.yvel >= 8) && (_root.matrix((runner.x / 8) + 1, (runner.y / 8) + 1) == PLATFORM))) || ((runner.yvel >= 8) && (_root.matrix((runner.x / 8) + 1, (runner.y / 8) - 1) == PLATFORM))) {
runner.xvel = -1;
}
}
if ((((runner.jumping == eval("TRUE")) && (runner.xvel == -1)) && ((runner.x % 8) == 7)) && (runner.yvel > -2)) {
if (((_root.matrix(runner.x / 8, runner.y / 8) == PLATFORM) || ((runner.yvel >= 8) && (_root.matrix(runner.x / 8, (runner.y / 8) - 1) == PLATFORM))) || ((runner.yvel >= 8) && (_root.matrix(runner.x / 8, (runner.y / 8) + 1) == PLATFORM))) {
runner.xvel = 1;
}
}
if (((((!runner.onLadder) == eval("TRUE")) && ((!runner.jumping) == eval("TRUE"))) && (!jumpPressed)) && ((!runner.onElevator) == eval("TRUE"))) {
if (((runner.x % 8) > 3) && (((_root.matrix((runner.x / 8) + 1, (runner.y / 8) + 1) == BLANK) || (_root.matrix((runner.x / 8) + 1, (runner.y / 8) + 1) == EGG)) || (_root.matrix((runner.x / 8) + 1, (runner.y / 8) + 1) == GRAIN))) {
runner.yvel = 8;
runner.jumping = eval("TRUE");
runner.xvel = 0;
runner.fallNudge = (runner.dir * 4) - 2;
if (_root.soFall.playing == 0) {
_root.soFall.start();
_root.soFall.playing = 1;
}
}
if (((runner.x % 8) < 5) && (((_root.matrix(runner.x / 8, (runner.y / 8) + 1) == BLANK) || (_root.matrix(runner.x / 8, (runner.y / 8) + 1) == EGG)) || (_root.matrix(runner.x / 8, (runner.y / 8) + 1) == GRAIN))) {
runner.yvel = 8;
runner.jumping = eval("TRUE");
runner.xvel = 0;
runner.fallNudge = (runner.dir * 4) - 2;
if (_root.soFall.playing == 0) {
_root.soFall.start();
_root.soFall.playing = 1;
}
}
}
if ((runner.jumping == eval("TRUE")) && (runner.yvel >= 0)) {
tx = Math.floor(runner.x / 8);
ty = Math.floor((((runner.y + _root.getymod(runner.yvel)) + 1) / 8) + 1);
if (((runner.x % 8) > 3) && (_root.isPlatform(tx + 1, ty) == eval("TRUE"))) {
runner.yvel = 0;
runner.jumping = eval("FALSE");
if ((runner.y % 8) != 0) {
runner.y = Math.floor((runner.y / 8) + 1) * 8;
}
if (rightPressed) {
runner.x++;
}
if (leftPressed) {
runner.x--;
}
}
if (((runner.x % 8) < 5) && (_root.isPlatform(tx, ty) == eval("TRUE"))) {
runner.yvel = 0;
runner.jumping = eval("FALSE");
if ((runner.y % 8) != 0) {
runner.y = Math.floor((runner.y / 8) + 1) * 8;
}
if (rightPressed) {
runner.x++;
}
if (leftPressed) {
runner.x--;
}
}
}
if (((!jumpPressed) == eval("TRUE")) || ((runner.jumping == eval("TRUE")) && (runner.xvel != 0))) {
runner.squirm = -1;
}
if ((!runner.jumping) == eval("TRUE")) {
_root.soJump.stop();
_root.soJump.playing = 0;
_root.soFall.stop();
_root.soFall.playing = 0;
}
if ((runner.x % 8) > 4) {
_root.pickUp((runner.x / 8) + 1, runner.y / 8);
if ((runner.y % 8) > 0) {
_root.pickUp((runner.x / 8) + 1, (runner.y / 8) - 1);
}
}
if ((runner.x % 8) < 4) {
_root.pickUp(runner.x / 8, runner.y / 8);
if ((runner.y % 8) > 0) {
_root.pickUp(runner.x / 8, (runner.y / 8) - 1);
}
}
if (((!runner.onLadder) == eval("TRUE")) && (oldX != runner.x)) {
runner.anim++;
runner.anim = runner.anim % 4;
}
if ((!runner.onLadder) && (oldx == runner.x)) {
runner.anim = 0;
}
if (runner.onLadder && (oldy == runner.y)) {
runner.anim = 0;
}
if ((runner.y > 213) || (((runner.y < 6) && (runner.onElevator == eval("TRUE"))) && ((!jumpPressed) == eval("TRUE")))) {
_root.die();
}
if ((((runner.dir == 1) && (runner.onLadder == eval("FALSE"))) && (walking == eval("FALSE"))) && (jumping == eval("FALSE"))) {
this.attachMovie("manstandright", "neil", 90);
this.neil.whatis = "manstandright";
}
if ((((runner.dir == 0) && (runner.onLadder == eval("FALSE"))) && (walking == eval("FALSE"))) && (jumping == eval("FALSE"))) {
this.attachMovie("manstandleft", "neil", 90);
this.neil.whatis = "manstandleft";
}
if (this.neil.whatis == "manclimb") {
this.neil.gotoAndStop(anim + 1);
}
if (this.neil.whatis == "manright") {
this.neil.gotoAndStop(anim + 1);
}
if (this.neil.whatis == "manleft") {
this.neil.gotoAndStop(anim + 1);
}
_root.map.man._x = (runner.x * 4) + 16;
_root.map.man._y = (((runner.y * 2) + 88) - 16) - 8;
if ((_root.dead == 1) || (_root.levelcomplete == 1)) {
_root.soWalk.stop();
_root.soWalk.playing = 0;
_root.soLadder.stop();
_root.soLadder.playing = 0;
_root.soJump.stop();
_root.soJump.playing = 0;
_root.soFall.stop();
_root.soFall.playing = 0;
this.neil.stop();
this.stop();
}
Symbol 77 MovieClip [man] Frame 2
gotoAndPlay (1);
Symbol 79 MovieClip [lift] Frame 1
BLANK = 0;
PLATFORM = 1;
LADDER = 2;
EGG = 3;
GRAIN = 4;
INV_PLATFORM = 5;
SOLID_LADDER = 6;
Set("FALSE", 0);
Set("TRUE", 1);
runner = _root.map.man;
lift = this;
if (real == eval("TRUE")) {
runner.onElevator = eval("FALSE");
if ((runner.x > ((lift.elevator * 8) - 8)) && (runner.x < (lift.elevator * 8))) {
elevator2Pos = elevatorPos - 80;
if (elevator2Pos < 0) {
elevator2Pos = elevator2Pos + 226;
}
if (_root.getymod(runner.yvel) > 4) {
elevatorHeight = _root.getymod(runner.yvel);
} else {
elevatorHeight = 4;
}
if (((elevator2Pos - 16) <= runner.y) && (((elevator2Pos + elevatorHeight) - 16) >= runner.y)) {
runner.y = elevator2Pos - 16;
runner.jumping = eval("FALSE");
runner.onElevator = eval("TRUE");
}
if (((elevatorPos - 16) <= runner.y) && (((elevatorPos + elevatorHeight) - 16) >= runner.y)) {
runner.y = elevatorPos - 16;
runner.jumping = eval("FALSE");
runner.onElevator = eval("TRUE");
}
}
}
elevatorPos--;
if (elevatorPos < 0) {
elevatorPos = 225;
}
lift._y = (((((elevatorPos * 2) + 88) - 16) - 8) - 4) - 4;
if ((_root.dead == 1) || (_root.levelcomplete == 1)) {
this.neil.stop();
this.stop();
}
Symbol 79 MovieClip [lift] Frame 2
gotoAndPlay (1);
Symbol 85 MovieClip [manleft] Frame 1
stop();
Symbol 85 MovieClip [manleft] Frame 2
stop();
Symbol 85 MovieClip [manleft] Frame 3
stop();
Symbol 85 MovieClip [manleft] Frame 4
stop();
Symbol 90 MovieClip [manright] Frame 1
stop();
Symbol 90 MovieClip [manright] Frame 2
stop();
Symbol 90 MovieClip [manright] Frame 3
stop();
Symbol 90 MovieClip [manright] Frame 4
stop();
Symbol 104 MovieClip [chuckie] Frame 1
BLANK = 0;
PLATFORM = 1;
LADDER = 2;
EGG = 3;
GRAIN = 4;
INV_PLATFORM = 5;
SOLID_LADDER = 6;
Set("FALSE", 0);
Set("TRUE", 1);
chuckie = this;
runner = _root.map.man;
if ((!chuckie.caged) && (((chuckieCount++) % 10) == 0)) {
if ((runner.x + 4) > (chuckie.x + 8)) {
chuckie.xvel++;
chuckie.dir = 0;
} else {
chuckie.xvel = chuckie.xvel - 1;
chuckie.dir = 1;
}
if ((runner.y + 8) > (chuckie.y + 12)) {
chuckie.yvel++;
} else {
chuckie.yvel--;
}
if (chuckie.xvel > 5) {
chuckie.xvel = 5;
}
if (chuckie.xvel < -5) {
chuckie.xvel = -5;
}
if (chuckie.yvel > 5) {
chuckie.yvel = 5;
}
if (chuckie.yvel < -5) {
chuckie.yvel = -5;
}
chuckie.x = chuckie.x + chuckie.xvel;
chuckie.y = chuckie.y + chuckie.yvel;
if ((chuckie.x < 0) || (chuckie.x > 144)) {
chuckie.xvel = -chuckie.xvel;
chuckie.x = chuckie.x + (chuckie.xvel * 2);
}
if ((chuckie.y < 0) || (chuckie.y > 190)) {
chuckie.yvel = -chuckie.yvel;
chuckie.y = chuckie.y + (chuckie.yvel * 2);
}
}
if (!chuckie.caged) {
if (((((chuckie.x + 14) > runner.x) && (chuckie.x < (runner.x + 3))) && ((chuckie.y + 21) > runner.y)) && (chuckie.y < (runner.y + 9))) {
_root.die();
}
}
if (chuckie.dir == 1) {
if (this.neil.whatis != "chuckieleft") {
this.attachMovie("chuckieleft", "neil", 90);
this.neil.whatis = "chuckieleft";
}
}
if (chuckie.dir == 0) {
if (this.neil.whatis != "chuckieright") {
this.attachMovie("chuckieright", "neil", 90);
this.neil.whatis = "chuckieright";
}
}
chuckie._x = chuckie.x * 4;
chuckie._y = (chuckie.y * 2) + 48;
if ((_root.dead == 1) || (_root.levelcomplete == 1)) {
this.neil.stop();
this.stop();
}
Symbol 104 MovieClip [chuckie] Frame 2
gotoAndPlay (1);
Symbol 113 MovieClip Frame 1
stop();
Symbol 117 Button
on (release) {
getURL ("http://www.gamesforge.com", "_blank");
}
Symbol 122 Button
on (release) {
gotoAndPlay ("startgame");
}
Symbol 137 MovieClip Frame 1
bgsound = new Sound(this);
bgsound.attachSound("bgsound");