Frame 2
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
current = _root.getBytesLoaded();
total = _root.getBytesTotal();
gotoAndPlay (1);
}
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
current = _root.getBytesLoaded();
total = _root.getBytesTotal();
}
Frame 8
Frame 32
if (Key.isDown(32)) {
gotoAndPlay(nextscene);
} else {
gotoAndPlay (31);
}
Frame 33
Math.easeInExpo = function (t, b, c, d) {
return((c * Math.pow(2, 10 * ((t / d) - 1))) + b);
};
Math.easeOutExpo = function (t, b, c, d) {
return((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b);
};
Math.easeInOutExpo = function (t, b, c, d) {
if (((t = t / (d / 2))) < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
return(((c / 2) * ((-Math.pow(2, -10 * (--t))) + 2)) + b);
};
_root.attachMovie("guy", "guy", 10000);
guy._xscale = (guy._yscale = 3);
guy.currframe = 0;
guy._x = (guy.fromx = 30);
guy._y = (guy.fromy = -50);
guy.tox = 20;
guy.toy = 220;
guy.froms = 4;
guy.tos = 350;
guy.dur = 100;
guy.s = new Sound();
_root.running.gotoAndPlay(2);
guy.s.setVolume(20);
guy.onEnterFrame = function () {
with (guy) {
if (_x < 880) {
this._xscale = math.easeinexpo(this.currframe, this.froms, this.tos, this.dur + 130);
this._yscale = _xscale;
this._x = math.easeinexpo(this.currframe, this.fromx, this.tox, this.dur + 40);
this._y = math.easeoutexpo(this.currframe, this.fromy, this.toy, this.dur + 280);
_root.attachMovie("smokewhite", "sw" + i, i);
_root["sw" + i]._xscale = (_root["sw" + i]._yscale = (this._yscale * 1.6) * (Math.random() + 0.35));
_root["sw" + i]._x = this._x - (Math.random() * (_root["sw" + i]._yscale / 10));
_root["sw" + i]._y = (this._y + (this._height / 5)) - (Math.random() * 7);
_root["sw" + i].num = i;
_root["sw" + i].randy = (Math.random() * 0.04) + 0.06;
_root["sw" + i].xv = Math.random() * 90;
_root["sw" + i].wait = (Math.random() * 10) + 10;
_root["sw" + i].n = 0;
_root["sw" + i].onEnterFrame = function () {
with (["sw" + i]) {
if (this.n > this.wait) {
if (this._y < (-(this._height / 2))) {
this.removeMovieClip();
}
this.yvel = this.yvel + (this.randy / 1.2);
this._y = this._y - this.yvel;
} else {
this.n++;
}
this.xvel = Math.sin(this.xv / 4);
this._x = this._x + this.xvel;
this.xv = this.xv + 1;
}
};
this.currframe++;
this.i++;
if (this.newvol > 99) {
this.newvol = 100;
} else {
this.newvol = (this._x / 2) + 20;
}
this.s.setVolume(this.newvol);
} else {
if (!this.done) {
this.done = true;
_root.nextFrame();
}
stopAllSounds();
_root.squeak.gotoAndPlay(2);
this.removeMovieClip();
}
}
};
stop();
Frame 34
play();
Frame 89
play();
Frame 90
if (Key.isDown(32)) {
nextFrame();
} else {
prevFrame();
}
Frame 91
play();
Frame 109
currentlevel = 1;
score = 0;
stop();
Instance of Symbol 217 MovieClip "gamebase" in Frame 109
onClipEvent (load) {
_x = 0;
gamebottom = -300;
gametop = 0;
gameleft = -750;
gameright = 0;
vx = 0;
ax = 0;
force = 0.06;
damping = 0.75;
}
onClipEvent (enterFrame) {
ax = ((_root.gamebase.char._x + _root.gamebase._x) - 375) * force;
vx = vx + ax;
vx = vx * damping;
ay = ((_root.gamebase.char._y + _root.gamebase._y) - 190) * force;
vy = vy + ay;
vy = vy * damping;
_x = (_x - vx);
_y = (_y - vy);
if (_x > gameright) {
_x = gameright;
}
if (_x < gameleft) {
_x = gameleft;
}
if (_y > gametop) {
_y = gametop;
}
if (_y < gamebottom) {
_y = gamebottom;
}
}
Frame 110
stop();
Frame 169
if (_root.gamebase.leveltimer > 0) {
_root.score = _root.score + 100;
_root.gamebase.leveltimer = _root.gamebase.leveltimer - 5;
_root.gamebase.leveltime = Math.round(_root.gamebase.leveltimer / 0.3) / 100;
gotoAndPlay (168);
} else {
_root.gamebase.leveltimer = 0;
_root.gamebase.leveltime = 0;
nextFrame();
}
Frame 229
if (Key.isDown(32)) {
nextFrame();
} else {
prevFrame();
}
Frame 230
_root.currentlevel++;
gotoAndPlay (110);
stop();
Symbol 3 MovieClip [pu_chicken] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 3 MovieClip [pu_chicken] Frame 2
gotoAndPlay (1);
Symbol 3 MovieClip [pu_chicken] Frame 16
this.removeMovieClip("");
stop();
Symbol 6 MovieClip [pu_can] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 6 MovieClip [pu_can] Frame 2
gotoAndPlay (1);
Symbol 6 MovieClip [pu_can] Frame 16
this.removeMovieClip("");
stop();
Symbol 9 MovieClip [pu_burger] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 9 MovieClip [pu_burger] Frame 2
gotoAndPlay (1);
Symbol 9 MovieClip [pu_burger] Frame 16
this.removeMovieClip("");
stop();
Symbol 12 MovieClip [pu_bottle] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 12 MovieClip [pu_bottle] Frame 2
gotoAndPlay (1);
Symbol 12 MovieClip [pu_bottle] Frame 16
this.removeMovieClip("");
stop();
Symbol 15 MovieClip [pu_bonsai] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 15 MovieClip [pu_bonsai] Frame 2
gotoAndPlay (1);
Symbol 15 MovieClip [pu_bonsai] Frame 16
this.removeMovieClip("");
stop();
Symbol 18 MovieClip [pu_beverage] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 18 MovieClip [pu_beverage] Frame 2
gotoAndPlay (1);
Symbol 18 MovieClip [pu_beverage] Frame 16
this.removeMovieClip("");
stop();
Symbol 21 MovieClip [pu_bowl] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 21 MovieClip [pu_bowl] Frame 2
gotoAndPlay (1);
Symbol 21 MovieClip [pu_bowl] Frame 16
this.removeMovieClip("");
stop();
Symbol 24 MovieClip [pu_watermelon] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 24 MovieClip [pu_watermelon] Frame 2
gotoAndPlay (1);
Symbol 24 MovieClip [pu_watermelon] Frame 16
this.removeMovieClip("");
stop();
Symbol 27 MovieClip [pu_trainer] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 27 MovieClip [pu_trainer] Frame 2
gotoAndPlay (1);
Symbol 27 MovieClip [pu_trainer] Frame 16
this.removeMovieClip("");
stop();
Symbol 30 MovieClip [pu_orange] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 30 MovieClip [pu_orange] Frame 2
gotoAndPlay (1);
Symbol 30 MovieClip [pu_orange] Frame 16
this.removeMovieClip("");
stop();
Symbol 33 MovieClip [pu_shuriken] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 33 MovieClip [pu_shuriken] Frame 2
gotoAndPlay (1);
Symbol 33 MovieClip [pu_shuriken] Frame 16
this.removeMovieClip("");
stop();
Symbol 36 MovieClip [pu_rollerskate] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 36 MovieClip [pu_rollerskate] Frame 2
gotoAndPlay (1);
Symbol 36 MovieClip [pu_rollerskate] Frame 16
this.removeMovieClip("");
stop();
Symbol 39 MovieClip [pu_pie] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 39 MovieClip [pu_pie] Frame 2
gotoAndPlay (1);
Symbol 39 MovieClip [pu_pie] Frame 16
this.removeMovieClip("");
stop();
Symbol 42 MovieClip [pu_nunchuckas] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 42 MovieClip [pu_nunchuckas] Frame 2
gotoAndPlay (1);
Symbol 42 MovieClip [pu_nunchuckas] Frame 16
this.removeMovieClip("");
stop();
Symbol 45 MovieClip [pu_mouse] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 45 MovieClip [pu_mouse] Frame 2
gotoAndPlay (1);
Symbol 45 MovieClip [pu_mouse] Frame 16
this.removeMovieClip("");
stop();
Symbol 48 MovieClip [pu_lemon] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 48 MovieClip [pu_lemon] Frame 2
gotoAndPlay (1);
Symbol 48 MovieClip [pu_lemon] Frame 16
this.removeMovieClip("");
stop();
Symbol 51 MovieClip [pu_icecream] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 51 MovieClip [pu_icecream] Frame 2
gotoAndPlay (1);
Symbol 51 MovieClip [pu_icecream] Frame 16
this.removeMovieClip("");
stop();
Symbol 54 MovieClip [pu_ham] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 54 MovieClip [pu_ham] Frame 2
gotoAndPlay (1);
Symbol 54 MovieClip [pu_ham] Frame 16
this.removeMovieClip("");
stop();
Symbol 57 MovieClip [pu_egg] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 57 MovieClip [pu_egg] Frame 2
gotoAndPlay (1);
Symbol 57 MovieClip [pu_egg] Frame 16
this.removeMovieClip("");
stop();
Symbol 60 MovieClip [pu_donut] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 60 MovieClip [pu_donut] Frame 2
gotoAndPlay (1);
Symbol 60 MovieClip [pu_donut] Frame 16
this.removeMovieClip("");
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 16
stop();
Symbol 75 MovieClip [pu_coin1] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 75 MovieClip [pu_coin1] Frame 2
gotoAndPlay (1);
Symbol 75 MovieClip [pu_coin1] Frame 16
this.removeMovieClip("");
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 16
stop();
Symbol 92 MovieClip [pu_cube1] Frame 1
if (hitTest(_root.gamebase.char)) {
if (pickup) {
_root.gamebase.pickedup++;
_root.score = _root.score + 15;
}
_root.bling1.gotoAndPlay(2);
gotoAndPlay (3);
this.anim.gotoAndPlay(2);
}
Symbol 92 MovieClip [pu_cube1] Frame 2
gotoAndPlay (1);
Symbol 92 MovieClip [pu_cube1] Frame 16
this.removeMovieClip("");
stop();
Symbol 109 MovieClip [char1] Frame 1
play();
Instance of Symbol 94 MovieClip "arrow" in Symbol 109 MovieClip [char1] Frame 1
onClipEvent (load) {
_rotation = (shootangle + 45);
}
onClipEvent (enterFrame) {
_rotation = (shootangle + 45);
}
Symbol 109 MovieClip [char1] Frame 9
gotoAndPlay (1);
Symbol 109 MovieClip [char1] Frame 18
gotoAndPlay (10);
Symbol 109 MovieClip [char1] Frame 19
play();
Symbol 109 MovieClip [char1] Frame 26
stop();
Symbol 109 MovieClip [char1] Frame 34
gotoAndPlay (27);
Symbol 109 MovieClip [char1] Frame 45
gotoAndPlay (35);
Symbol 109 MovieClip [char1] Frame 53
gotoAndPlay (46);
Symbol 111 MovieClip [sack] Frame 1
stop();
Symbol 111 MovieClip [sack] Frame 2
stop();
Symbol 114 MovieClip [newgrapple] Frame 1
stop();
Symbol 114 MovieClip [newgrapple] Frame 2
stop();
Symbol 186 MovieClip [squeak1] Frame 1
stop();
Symbol 188 MovieClip Frame 1
function allrot_points(oriArray, theArray, xangle, yangle, zangle) {
thing = (Math.PI/180);
xranglec = Math.cos(xangle * thing);
xrangles = Math.sin(xangle * thing);
yranglec = Math.cos(yangle * thing);
yrangles = Math.sin(yangle * thing);
zranglec = Math.cos(zangle * thing);
zrangles = Math.sin(zangle * thing);
i = 0;
while (i < theArray.length) {
y = oriArray[i][1];
z = oriArray[i][2];
theArray[i][0] = oriArray[i][0];
theArray[i][1] = (y * xranglec) - (z * xrangles);
theArray[i][2] = (z * xranglec) + (y * xrangles);
x = theArray[i][0];
z = theArray[i][2];
theArray[i][0] = (x * yranglec) + (z * yrangles);
theArray[i][2] = (z * yranglec) - (x * yrangles);
y = theArray[i][1];
x = theArray[i][0];
theArray[i][1] = (y * zranglec) + (x * zrangles);
theArray[i][0] = (x * zranglec) - (y * zrangles);
i++;
}
}
function project_points(theArray, pp) {
i = 0;
while (i < theArray.length) {
r = (pp / (pp - theArray[i][2])) / 1.3;
theArray[i][0] = theArray[i][0] * r;
theArray[i][1] = theArray[i][1] * r;
i++;
}
}
function draw_points(theArray) {
persp.clear();
persp.lineStyle(2);
persp.moveTo(theArray[0][0], theArray[0][1]);
i = 1;
while (i < theArray.length) {
persp.lineTo(theArray[i][0], theArray[i][1]);
i++;
}
}
function set_cols(theFaces) {
i = 0;
while (i < theFaces.length) {
var me = theFaces[i][4].toString(16);
var temp = new Object();
temp.r = parseInt(me.substr(0, 2), 16);
temp.g = parseInt(me.substr(2, 2), 16);
temp.b = parseInt(me.substr(4, 2), 16);
theFaces[i][11] = [temp.r, temp.g, temp.b];
i++;
}
}
function calc_shade(thePoints, theFaces) {
newFaces = [];
i = 0;
while (i < theFaces.length) {
newFaces[i] = [];
newFaces[i].push(theFaces[i][0], theFaces[i][1], theFaces[i][2], theFaces[i][3], theFaces[i][4]);
i++;
}
}
function depth_sort(thePoints, theFaces) {
sorted = [];
i = 0;
while (i < theFaces.length) {
aver = (((thePoints[theFaces[i][0]][2] + thePoints[theFaces[i][1]][2]) + thePoints[theFaces[i][2]][2]) + thePoints[theFaces[i][3]][2]) / 4;
sorted[i] = [];
sorted[i].push(aver, i);
sorted.sort(function (a, b) {
return(a[0] - b[0]);
});
i++;
}
}
function draw_cables(thePoints) {
persp.clear();
if (linesel > 0) {
persp.lineStyle(1, 12303291, lineopacity);
}
i = 0;
while (i < thePoints.length) {
persp.moveTo(-578, -150);
persp.curveTo(thePoints[i][0] - 200, thePoints[i][1] * 0.1, thePoints[i][0], thePoints[i][1]);
persp.endFill();
i++;
}
}
function draw_solid(thePoints, theFaces) {
if (linesel > 0) {
persp.lineStyle(linesel, 2267647, lineopacity);
}
i = 0;
while (i < theFaces.length) {
n = sorted[i][1];
persp.moveTo(thePoints[theFaces[n][0]][0], thePoints[theFaces[n][0]][1]);
persp.lineTo(thePoints[theFaces[n][1]][0], thePoints[theFaces[n][1]][1]);
persp.lineTo(thePoints[theFaces[n][2]][0], thePoints[theFaces[n][2]][1]);
persp.lineTo(thePoints[theFaces[n][3]][0], thePoints[theFaces[n][3]][1]);
persp.endFill();
i++;
}
}
points = new Array(new Array(-100, -100, 40), new Array(-40, -100, 40), new Array(40, -100, 40), new Array(100, -100, 40), new Array(-100, -20, 40), new Array(-40, -20, 40), new Array(40, -20, 40), new Array(100, -20, 40), new Array(-40, 100, 40), new Array(40, 100, 40), new Array(-100, -100, -40), new Array(-40, -100, -40), new Array(40, -100, -40), new Array(100, -100, -40), new Array(-100, -20, -40), new Array(-40, -20, -40), new Array(40, -20, -40), new Array(100, -20, -40), new Array(-40, 100, -40), new Array(40, 100, -40));
faces = new Array(new Array(4, 0, 3, 7, 16777215), new Array(6, 9, 8, 5, 16777215), new Array(17, 13, 10, 14, 1052927), new Array(15, 18, 19, 16, 1052927), new Array(0, 4, 14, 10, 16717077), new Array(4, 5, 15, 14, 16717077), new Array(5, 8, 18, 15, 16717077), new Array(8, 9, 19, 18, 16717077), new Array(9, 6, 16, 19, 16717077), new Array(6, 7, 17, 16, 16717077), new Array(7, 3, 13, 17, 16717077), new Array(0, 10, 13, 3, 16717077));
Math.easeInExpo = function (t, b, c, d) {
return((c * Math.pow(2, 10 * ((t / d) - 1))) + b);
};
Math.easeOutExpo = function (t, b, c, d) {
return((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b);
};
Math.easeInOutExpo = function (t, b, c, d) {
if (((t = t / (d / 2))) < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
return(((c / 2) * ((-Math.pow(2, -10 * (--t))) + 2)) + b);
};
Math.easeInQuad = function (t, b, c, d) {
return(((c * ((t = t / d))) * t) + b);
};
Math.easeOutQuad = function (t, b, c, d) {
return((((-c) * ((t = t / d))) * (t - 2)) + b);
};
Math.easeInOutQuad = function (t, b, c, d) {
if (((t = t / (d / 2))) < 1) {
return((((c / 2) * t) * t) + b);
}
return((((-c) / 2) * (((--t) * (t - 2)) - 1)) + b);
};
xrt = 29;
yrt = 17.6;
zrt = 23;
prs = 10;
brightness = 0.89;
light = 1.26;
linesel = 4;
polysel = "off";
opacity = 100;
lineopacity = 50;
culling = "off";
shading = "off";
dupe = false;
set_cols(faces);
rot_points = new Array(points.length);
i = 0;
while (i < rot_points.length) {
rot_points[i] = new Array(3);
j = 0;
while (j < 3) {
rot_points[i][j] = points[i][j];
j++;
}
i++;
}
Symbol 188 MovieClip Frame 2
xrs = xrs + (xrt / 10);
yrs = yrs + (yrt / 10);
zrs = zrs + (zrt / 10);
if (xrs < 0) {
xrs = xrs + 360;
} else if (xrs > 360) {
xrs = xrs - 360;
}
if (yrs < 0) {
yrs = yrs + 360;
} else if (yrs > 360) {
yrs = yrs - 360;
}
if (zrs < 0) {
zrs = zrs + 360;
} else if (zrs > 360) {
zrs = zrs - 360;
}
allrot_points(points, rot_points, xrs, yrs, zrs);
project_points(rot_points, ((-prs) * 8) + 300);
calc_shade(rot_points, faces);
depth_sort(rot_points, newFaces);
draw_cables(rot_points);
draw_solid(rot_points, newFaces);
if (dupe) {
duplicateMovieClip ("persp3", "persp4", 13);
setProperty(persp4, _visible , 1);
duplicateMovieClip ("persp2", "persp3", 9);
setProperty(persp3, _visible , 1);
duplicateMovieClip ("persp", "persp2", 5);
setProperty(persp2, _visible , 0);
}
Symbol 188 MovieClip Frame 3
gotoAndPlay (2);
Symbol 201 MovieClip Frame 18
wait = Math.random() * 12;
passed = 0;
Symbol 201 MovieClip Frame 22
passed++;
Symbol 201 MovieClip Frame 30
if (passed > wait) {
gotoAndPlay (31);
} else {
gotoAndPlay (22);
}
Symbol 207 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 40
stop();
Symbol 217 MovieClip Frame 1
function draw_limbfront(a, b) {
char.perspfront.lineStyle(2);
char.perspfront.moveTo(a._x, a._y);
char.perspfront.lineTo(b._x, b._y);
char.perspfront.lineStyle(2, 3355443);
char.perspfront.moveTo(a._x, a._y);
char.perspfront.lineTo(b._x, b._y);
}
function draw_limbback(a, b) {
char.perspback.lineStyle(2);
char.perspback.moveTo(a._x, a._y);
char.perspback.lineTo(b._x, b._y);
}
function draw_rope(a, b) {
_root.gamebase.persp.lineStyle(2);
_root.gamebase.persp.moveTo(a._x, a._y);
_root.gamebase.persp.lineTo(b._x, b._y);
_root.gamebase.persp.lineStyle(1, 6710886);
_root.gamebase.persp.moveTo(a._x, a._y);
_root.gamebase.persp.lineTo(b._x, b._y);
}
function draw_glowrope(a, b) {
_root.gamebase.persp.lineStyle(2, 13421823);
_root.gamebase.persp.moveTo(a._x, a._y);
_root.gamebase.persp.lineTo(b._x, b._y);
_root.gamebase.persp.lineStyle(1, 16777215);
_root.gamebase.persp.moveTo(a._x, a._y);
_root.gamebase.persp.lineTo(b._x, b._y);
}
i = 0;
leveltimer = 1500;
platheight = ground;
platcount = 0;
gravity = 0.98;
friction = 0.9;
ropefriction = 0.99;
ground = 580;
ceiling = 10;
xspeed = 0;
leveltime = 0;
pickedup = 0;
numpickups = 1;
leftedge = 10;
rightedge = 1490;
timego = true;
mood = "placid";
Movieclip.prototype.distance = function (moviec) {
if (typeof(moviec) == "string") {
moviec = eval (moviec);
}
var temp = new Object();
temp.distx = this._x;
temp.disty = this._y;
temp.distance = Math.sqrt((temp.distx * temp.distx) + (temp.disty * temp.disty));
return(temp);
};
Symbol 217 MovieClip Frame 2
if (_root.currentlevel == 1) {
levelname = "Level 1";
backdrop = "backdrop1";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 2) {
levelname = "Level 2";
backdrop = "backdrop2";
platformtype = "platform1";
platforms = [[750, 200, 300, 20], [160, 100, 320, 20], [200, 250, 400, 20], [250, 400, 500, 20], [1340, 100, 320, 20], [1300, 250, 400, 20], [1250, 400, 500, 20]];
pickuptype = "pu_lemon";
pickups = [[750, 300], [630, 180], [670, 180], [710, 180], [750, 180], [790, 180], [830, 180], [870, 180], [40, 80], [80, 80], [120, 80], [160, 80], [200, 80], [240, 80], [280, 80], [1460, 80], [1420, 80], [1380, 80], [1340, 80], [1300, 80], [1260, 80], [1220, 80], [40, 230], [80, 230], [120, 230], [160, 230], [200, 230], [240, 230], [280, 230], [1220, 230], [1260, 230], [1300, 230], [1340, 230], [1380, 230], [1420, 230], [1460, 230]];
enemytype = "enemy02";
enemies = [[211, 230, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 3) {
levelname = "Level 3";
backdrop = "backdrop3";
platformtype = "platform1";
platforms = [[450, 320, 300, 20], [450, 100, 180, 20], [1050, 320, 300, 20], [1050, 100, 180, 20]];
pickuptype = "pu_beverage";
pickups = [[75, 500], [75, 410], [75, 320], [75, 230], [75, 140], [75, 50], [750, 500], [750, 410], [750, 320], [750, 230], [750, 140], [750, 50], [1425, 500], [1425, 410], [1425, 320], [1425, 230], [1425, 140], [1425, 50], [125, 225], [250, 225], [375, 225], [500, 225], [625, 225], [750, 225], [1375, 225], [1250, 225], [1125, 225], [1000, 225], [875, 225]];
enemytype = "enemy03";
enemies = [[450, 100, 0.007, 0.93], [750, 520, 0.006, 0.93], [1050, 330, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 4) {
levelname = "Level 4";
backdrop = "backdrop4";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_burger";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy04";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 5) {
levelname = "Level 5";
backdrop = "backdrop5";
platformtype = "platform1";
platforms = [[450, 320, 300, 20], [450, 100, 180, 20], [1050, 320, 300, 20], [1050, 100, 180, 20]];
pickuptype = "pu_donut";
pickups = [[75, 500], [75, 410], [75, 320], [75, 230], [75, 140], [75, 50], [750, 500], [750, 410], [750, 320], [750, 230], [750, 140], [750, 50], [1425, 500], [1425, 410], [1425, 320], [1425, 230], [1425, 140], [1425, 50], [125, 225], [250, 225], [375, 225], [500, 225], [625, 225], [750, 225], [1375, 225], [1250, 225], [1125, 225], [1000, 225], [875, 225]];
enemytype = "enemy05";
enemies = [[450, 100, 0.007, 0.93], [750, 520, 0.006, 0.93], [1050, 330, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 6) {
levelname = "Level 6";
backdrop = "backdrop6";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_can";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy06";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 7) {
levelname = "Level 7";
backdrop = "backdrop7";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_bonsai";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy07";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 8) {
levelname = "Level 8";
backdrop = "backdrop8";
platformtype = "platform1";
platforms = [[750, 200, 300, 20], [160, 100, 320, 20], [200, 250, 400, 20], [250, 400, 500, 20], [1340, 100, 320, 20], [1300, 250, 400, 20], [1250, 400, 500, 20]];
pickuptype = "pu_egg";
pickups = [[750, 300], [630, 180], [670, 180], [710, 180], [750, 180], [790, 180], [830, 180], [870, 180], [40, 80], [80, 80], [120, 80], [160, 80], [200, 80], [240, 80], [280, 80], [1460, 80], [1420, 80], [1380, 80], [1340, 80], [1300, 80], [1260, 80], [1220, 80], [40, 230], [80, 230], [120, 230], [160, 230], [200, 230], [240, 230], [280, 230], [1220, 230], [1260, 230], [1300, 230], [1340, 230], [1380, 230], [1420, 230], [1460, 230]];
enemytype = "enemy07";
enemies = [[211, 230, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 9) {
levelname = "Level 9";
backdrop = "backdrop9";
platformtype = "platform1";
platforms = [[450, 320, 300, 20], [450, 100, 180, 20], [1050, 320, 300, 20], [1050, 100, 180, 20]];
pickuptype = "pu_bottle";
pickups = [[75, 500], [75, 410], [75, 320], [75, 230], [75, 140], [75, 50], [750, 500], [750, 410], [750, 320], [750, 230], [750, 140], [750, 50], [1425, 500], [1425, 410], [1425, 320], [1425, 230], [1425, 140], [1425, 50], [125, 225], [250, 225], [375, 225], [500, 225], [625, 225], [750, 225], [1375, 225], [1250, 225], [1125, 225], [1000, 225], [875, 225]];
enemytype = "enemy06";
enemies = [[450, 100, 0.007, 0.93], [750, 520, 0.006, 0.93], [1050, 330, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 10) {
levelname = "Level 10";
backdrop = "backdrop10";
platformtype = "platform1";
platforms = [[450, 320, 300, 20], [450, 100, 180, 20], [1050, 320, 300, 20], [1050, 100, 180, 20]];
pickuptype = "pu_trainer";
pickups = [[75, 500], [75, 410], [75, 320], [75, 230], [75, 140], [75, 50], [750, 500], [750, 410], [750, 320], [750, 230], [750, 140], [750, 50], [1425, 500], [1425, 410], [1425, 320], [1425, 230], [1425, 140], [1425, 50], [125, 225], [250, 225], [375, 225], [500, 225], [625, 225], [750, 225], [1375, 225], [1250, 225], [1125, 225], [1000, 225], [875, 225]];
enemytype = "enemy06";
enemies = [[450, 100, 0.007, 0.93], [750, 520, 0.006, 0.93], [1050, 330, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 11) {
levelname = "Level 11";
backdrop = "backdrop11";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_watermelon";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 12) {
levelname = "Level 12";
backdrop = "backdrop12";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_icecream";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 13) {
levelname = "Level 13";
backdrop = "backdrop13";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_nunchuckas";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 14) {
levelname = "Level 14";
backdrop = "backdrop14";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_ham";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 15) {
levelname = "Level 15";
backdrop = "backdrop15";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_chicken";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 16) {
levelname = "Level 16";
backdrop = "backdrop16";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 17) {
levelname = "Level 17";
backdrop = "backdrop17";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 18) {
levelname = "Level 18";
backdrop = "backdrop18";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 19) {
levelname = "Level 19";
backdrop = "backdrop19";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
// unexpected jump
}
if (_root.currentlevel == 20) {
levelname = "Level 20";
backdrop = "backdrop20";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 21) {
levelname = "Level 21";
backdrop = "backdrop21";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 22) {
levelname = "Level 22";
backdrop = "backdrop22";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 23) {
levelname = "Level 23";
backdrop = "backdrop23";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 24) {
levelname = "Level 24";
backdrop = "backdrop24";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 25) {
levelname = "Level 25";
backdrop = "backdrop25";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 26) {
levelname = "Level 26";
backdrop = "backdrop26";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 27) {
levelname = "Level 27";
backdrop = "backdrop27";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 28) {
levelname = "Level 28";
backdrop = "backdrop28";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 29) {
levelname = "Level 29";
backdrop = "backdrop29";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 30) {
levelname = "Level 30";
backdrop = "backdrop30";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 31) {
levelname = "Level 31";
backdrop = "backdrop31";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 32) {
levelname = "Level 32";
backdrop = "backdrop32";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 33) {
levelname = "Level 33";
backdrop = "backdrop33";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 34) {
levelname = "Level 34";
backdrop = "backdrop34";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 35) {
levelname = "Level 35";
backdrop = "backdrop35";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 36) {
levelname = "Level 36";
backdrop = "backdrop36";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 37) {
levelname = "Level 37";
backdrop = "backdrop37";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 38) {
levelname = "Level 38";
backdrop = "backdrop38";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 39) {
levelname = "Level 39";
backdrop = "backdrop39";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 40) {
levelname = "Level 40";
backdrop = "backdrop40";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 41) {
levelname = "Level 41";
backdrop = "backdrop41";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 42) {
levelname = "Level 42";
backdrop = "backdrop42";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 43) {
levelname = "Level 43";
backdrop = "backdrop43";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 44) {
levelname = "Level 44";
backdrop = "backdrop44";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 45) {
levelname = "Level 45";
backdrop = "backdrop45";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 46) {
levelname = "Level 46";
backdrop = "backdrop46";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 47) {
levelname = "Level 47";
backdrop = "backdrop47";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 48) {
levelname = "Level 48";
backdrop = "backdrop48";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 49) {
levelname = "Level 49";
backdrop = "backdrop49";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
} else if (_root.currentlevel == 50) {
levelname = "Level 50";
backdrop = "backdrop50";
platformtype = "platform1";
platforms = [[122, 79, 140, 20], [295, 419, 180, 20], [631, 252, 200, 20], [982, 362, 100, 20], [1172, 114, 300, 20], [1324, 463, 140, 20]];
pickuptype = "pu_orange";
pickups = [[1275, 440], [1305, 440], [1335, 440], [1365, 440], [370, 395], [340, 395], [310, 395], [280, 395], [250, 395], [220, 395], [180, 55], [150, 55], [120, 55], [90, 55], [60, 55], [545, 225], [575, 225], [605, 225], [635, 225], [665, 225], [695, 225], [725, 225], [1035, 85], [1065, 85], [1095, 85], [1125, 85], [1155, 85], [1185, 85], [1215, 85], [1245, 85], [1275, 85], [1305, 85], [950, 340], [980, 340], [1010, 340], [950, 340]];
enemytype = "enemy01";
enemies = [[211, 250, 0.007, 0.93], [580, 120, 0.006, 0.93], [1210, 60, 0.008, 0.93]];
}
Symbol 217 MovieClip Frame 3
this.attachMovie(backdrop, "backd", -600);
this.backd._width = 1500;
this.backd._height = 600;
this.backd._x = 750;
this.backd._y = 300;
Symbol 217 MovieClip Frame 4
numplatforms = platforms.length;
count = 0;
while (count < numplatforms) {
this.attachMovie(platformtype, "platform" + count, -500 + count);
this["platform" + count]._x = platforms[count][0];
this["platform" + count]._y = platforms[count][1];
this["platform" + count]._width = platforms[count][2];
this["platform" + count]._height = platforms[count][3];
this["platform" + count].leftedge = platforms[count][0] - (platforms[count][2] / 2);
this["platform" + count].rightedge = platforms[count][0] + (platforms[count][2] / 2);
this["platform" + count].topedge = platforms[count][1] - (platforms[count][3] / 2);
this["platform" + count].onEnterFrame = function () {
with ("platform" + count) {
if (((_root.gamebase.char._x > this.leftedge) && (_root.gamebase.char._x < this.rightedge)) && (_root.gamebase.char._y < this.topedge)) {
if (_root.gamebase.char.platheight > this.topedge) {
_root.gamebase.char.platheight = this.topedge;
}
} else {
_root.gamebase.char.platcount++;
}
if (((_root.gamebase.enemy0._x > this.leftedge) && (_root.gamebase.enemy0._x < this.rightedge)) && (_root.gamebase.enemy0._y < this.topedge)) {
if (_root.gamebase.enemy0.platheight > this.topedge) {
_root.gamebase.enemy0.platheight = this.topedge;
_root.gamebase.enemy0.leftedge = this.leftedge;
_root.gamebase.enemy0.rightedge = this.rightedge;
}
} else {
_root.gamebase.enemy0.platcount++;
}
if (((_root.gamebase.enemy1._x > this.leftedge) && (_root.gamebase.enemy1._x < this.rightedge)) && (_root.gamebase.enemy1._y < this.topedge)) {
if (_root.gamebase.enemy1.platheight > this.topedge) {
_root.gamebase.enemy1.platheight = this.topedge;
_root.gamebase.enemy1.leftedge = this.leftedge;
_root.gamebase.enemy1.rightedge = this.rightedge;
}
} else {
_root.gamebase.enemy1.platcount++;
}
if (((_root.gamebase.enemy2._x > this.leftedge) && (_root.gamebase.enemy2._x < this.rightedge)) && (_root.gamebase.enemy2._y < this.topedge)) {
if (_root.gamebase.enemy2.platheight > this.topedge) {
_root.gamebase.enemy2.platheight = this.topedge;
_root.gamebase.enemy2.leftedge = this.leftedge;
_root.gamebase.enemy2.rightedge = this.rightedge;
}
} else {
_root.gamebase.enemy2.platcount++;
}
if (((_root.gamebase.enemy3._x > this.leftedge) && (_root.gamebase.enemy3._x < this.rightedge)) && (_root.gamebase.enemy3._y < this.topedge)) {
if (_root.gamebase.enemy3.platheight > this.topedge) {
_root.gamebase.enemy3.platheight = this.topedge;
_root.gamebase.enemy3.leftedge = this.leftedge;
_root.gamebase.enemy3.rightedge = this.rightedge;
}
} else {
_root.gamebase.enemy3.platcount++;
}
}
};
count++;
}
Symbol 217 MovieClip Frame 5
numpickups = pickups.length;
count = 0;
while (count < numpickups) {
this.attachMovie(pickuptype, "pickup" + count, 2000 + count);
this["pickup" + count]._x = pickups[count][0];
this["pickup" + count]._y = pickups[count][1];
this["pickup" + count].pickup = true;
count++;
}
Symbol 217 MovieClip Frame 6
numenemies = enemies.length;
count = 0;
while (count < 3) {
this.attachMovie(enemytype, "enemy" + count, 5000 + count);
this["enemy" + count]._x = enemies[count][0];
this["enemy" + count]._y = enemies[count][1];
this["enemy" + count].defforce = enemies[count][2];
this["enemy" + count].defdamp = enemies[count][3];
this["enemy" + count].health = 100;
this["enemy" + count].vx = 4;
this["enemy" + count].ax = 0;
this["enemy" + count].num = count;
this["enemy" + count].slock = false;
this["enemy" + count].mood = "placid";
this["enemy" + count].platcount = 0;
this["enemy" + count].platheight = _root.gamebase.ground;
this["enemy" + count].leftedge = _root.gamebase.leftedge;
this["enemy" + count].rightedge = _root.gamebase.rightedge;
this["enemy" + count].onEnterFrame = function () {
with ("enemy" + count) {
if (_root.gamebase.mood != "placid") {
if (this.mood != "projectile") {
this.mood = _root.gamebase.mood;
}
}
if (this.health < 0) {
this.slock = false;
this.dead = true;
}
if (this.slock) {
this.force = this.defforce * 2;
this.damping = this.defdamp + 0.05;
this.ax = (_root.gamebase.char._x - this._x) * this.force;
this.vx = this.vx + this.ax;
this.vx = this.vx * this.damping;
this.ay = ((_root.gamebase.char._y + 5) - this._y) * this.force;
this.vy = this.vy + this.ay;
this.vy = this.vy * this.damping;
this.vy = this.vy * _root.gamebase.gravity;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this.platcount < _root.gamebase.numplatforms) {
if (this._y > (this.platheight - 15)) {
this._y = this.platheight - 15;
this.vy = 0;
}
} else {
this.platcount = 0;
this.platheight = _root.gamebase.ground;
if (this._y > (_root.gamebase.ground - 5)) {
if (this.vy > 7) {
this.health = this.health - ((vy * 2) + 30);
_root.squeak1.gotoAndPlay(2);
}
this._y = _root.gamebase.ground - 5;
this.vy = -this.vy;
}
}
if (this._x > 1490) {
this._x = 1490;
this.vx = this.vx * -0.4;
}
if (this._x < 10) {
this._x = 10;
this.vx = this.vx * -0.4;
}
_root.gamebase.newsack._x = this._x;
_root.gamebase.newsack._y = this._y;
} else {
if (this.dead) {
if (!this.dropbonus) {
this.dropbonus = true;
_root.score = _root.score + 100;
acount = this.num;
_root.gamebase.char.slock = false;
_root.gamebase.char.sshoot = false;
_root.gamebase.attachMovie("pu_coin1", "bonus" + acount, 5000 + acount);
_root.gamebase["bonus" + acount]._x = _root.gamebase[acount + "currentx"];
_root.gamebase["bonus" + acount]._y = _root.gamebase[acount + "currenty"] - 30;
_root.gamebase["bonus" + acount]._xscale = 300;
_root.gamebase["bonus" + acount]._yscale = 300;
_root.gamebase["bonus" + acount].vx = this.vx;
_root.gamebase["bonus" + acount].vy = -15;
_root.gamebase["bonus" + acount].damping = 0.85;
_root.gamebase["bonus" + acount].pickup = false;
_root.gamebase["bonus" + acount].onEnterFrame = function () {
with (_root.gamebase["bonus" + acount]) {
this.vx = this.vx * this.damping;
this.vy = this.vy * this.damping;
this.vy = this.vy + _root.gamebase.gravity;
if (this._y > (_root.gamebase.ground - 16)) {
this._y = _root.gamebase.ground - 16;
this.vy = (-this.vy) * 0.8;
}
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (hitTest(_root.gamebase.char)) {
_root.bling1.gotoAndPlay(2);
_root.score = _root.score + 100;
this.removeMovieClip("");
}
}
};
_root.gamebase.newsack.removeMovieClip();
this.removeMovieClip("");
}
} else if (this.mood == "placid") {
this.damping = this.defdamp;
this.vy = this.vy + 1;
this.vy = this.vy * this.damping;
this.vy = this.vy * _root.gamebase.gravity;
if (this.vx > 0) {
this._xscale = 100;
} else {
this._xscale = -100;
}
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this.platcount < _root.gamebase.numplatforms) {
if (this._y > (this.platheight - 15)) {
this._y = this.platheight - 15;
this.vy = this.vy * -0.8;
}
} else {
this.leftedge = _root.gamebase.leftedge;
this.rightedge = _root.gamebase.rightedge;
this.platcount = 0;
this.platheight = _root.gamebase.ground;
if (this._y > (_root.gamebase.ground - 5)) {
if (this.vy > 7) {
this.health = this.health - ((vy * 2) + 30);
_root.squeak1.gotoAndPlay(2);
}
this._y = _root.gamebase.ground - 5;
this.vy = -this.vy;
}
}
if (this._x > (this.rightedge - 10)) {
this._x = this.rightedge - 10;
this.vx = -this.vx;
}
if (this._x < (this.leftedge + 10)) {
this._x = this.leftedge + 10;
this.vx = -this.vx;
}
} else if (this.mood == "agitated") {
this.damping = this.defdamp;
this.vxx = this.vx * 2;
this.vy = this.vy + 3;
this.vy = this.vy * this.damping;
this.vy = this.vy * _root.gamebase.gravity;
if (this.vx > 0) {
this._xscale = 100;
} else {
this._xscale = -100;
}
this._x = this._x + this.vxx;
this._y = this._y + this.vy;
if (this.platcount < _root.gamebase.numplatforms) {
if (this._y > (this.platheight - 10)) {
this._y = this.platheight - 10;
this.vy = this.vy * -0.8;
}
} else {
this.leftedge = _root.gamebase.leftedge;
this.rightedge = _root.gamebase.rightedge;
this.platcount = 0;
this.platheight = _root.gamebase.ground;
if (this._y > (_root.gamebase.ground - 5)) {
if (this.vy > 7) {
this.health = this.health - ((vy * 2) + 30);
_root.squeak1.gotoAndPlay(2);
}
this._y = _root.gamebase.ground - 5;
this.vy = -this.vy;
}
}
if (this._x > (this.rightedge - 10)) {
this._x = this.rightedge - 10;
this.vx = -this.vx;
}
if (this._x < (this.leftedge + 10)) {
this._x = this.leftedge + 10;
this.vx = -this.vx;
}
} else if (this.mood == "pissed") {
this.force = this.defforce / 10;
this.damping = this.defdamp;
this.ax = (_root.gamebase.char._x - this._x) * this.force;
if (this.ax > 0) {
this._xscale = 100;
} else {
this._xscale = -100;
}
this.vx = this.vx + this.ax;
this.vx = this.vx * this.damping;
this.vy = this.vy + 1;
this.vy = this.vy * this.damping;
this.vy = this.vy * _root.gamebase.gravity;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this.platcount < _root.gamebase.numplatforms) {
if (this._y > (this.platheight - 15)) {
this._y = this.platheight - 15;
this.vy = this.vy * -0.8;
}
} else {
this.platcount = 0;
this.platheight = _root.gamebase.ground;
if (this._y > (_root.gamebase.ground - 5)) {
if (this.vy > 7) {
this.health = this.health - ((vy * 2) + 30);
_root.squeak1.gotoAndPlay(2);
}
this._y = _root.gamebase.ground - 5;
this.vy = -this.vy;
}
}
this.leftedge = _root.gamebase.leftedge;
this.rightedge = _root.gamebase.rightedge;
if (this._x > this.rightedge) {
this._x = this.rightedge;
this.vx = this.vx * -0.4;
}
if (this._x < this.leftedge) {
this._x = this.leftedge;
this.vx = this.vx * -0.4;
}
} else if (this.mood == "projectile") {
this._rotation = this._rotation + 15;
this.damping = this.defdamp;
if (this.ax > 0) {
this._xscale = 100;
} else {
this._xscale = -100;
}
this.vx = this.vx * this.damping;
this.vy = this.vy + 1;
this.vy = this.vy * this.damping;
this.vy = this.vy * _root.gamebase.gravity;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this.platcount < _root.gamebase.numplats) {
if (this._y > (this.platheight - 15)) {
if (this.vy > 7) {
_root.squeak1.gotoAndPlay(2);
this.health = -1;
}
this._y = this.platheight - 15;
this.vy = this.vy * -0.8;
}
} else {
this.leftedge = 10;
this.rightedge = 1490;
this.platcount = 0;
this.platheight = _root.gamebase.ground;
if (this._y > (_root.gamebase.ground - 5)) {
if (this.vy > 3) {
this.health = -1;
_root.squeak1.gotoAndPlay(2);
}
this._y = _root.gamebase.ground - 5;
this.vy = -this.vy;
}
}
if (this._x > this.rightedge) {
if ((this.vx > 3) || (this.vx < -3)) {
_root.squeak1.gotoAndPlay(2);
this.health = -1;
}
this._x = this.rightedge;
this.vx = this.vx * -0.4;
}
if (this._x < this.leftedge) {
if ((this.vx > 3) || (this.vx < -3)) {
_root.squeak1.gotoAndPlay(2);
this.health = -1;
}
this._x = _this.leftedge;
this.vx = this.vx * -0.4;
}
}
if (this.hitTest(char)) {
char.xvel = this.vx * 1.3;
char.yvel = -4;
this.vx = this.vx * -1;
this.vy = -4;
}
}
if (!this.dead) {
_root.gamebase[this.num + "currentx"] = this._x;
_root.gamebase[this.num + "currenty"] = this._y;
}
}
};
count++;
}
Symbol 217 MovieClip Frame 7
this.attachMovie("char1", "char", 50000);
char._x = 20;
char._y = 540;
char.xvel = 0;
char.yvel = 0;
char.svel = 0;
char.mass = 0.8;
char.jump = -0.6;
char.flyangle = 0;
char.shootangle = -55;
char.maxjumps = 3;
char.maxspeed = 9;
char.faceright = true;
char.swingpower = 0.25;
char.runpower = 0.5;
char.swinggrav = 0;
char.grapcount = 0;
char.graplength = 7;
char.grapspeed = 30;
char.sacklength = 9;
char.sackspeed = 30;
char.sackcount = 3;
char.glock = false;
char.swapDepths(60000);
_root.gamebase.persp.swapDepths(59000);
char.onEnterFrame = function () {
with (char) {
perspfront.clear();
perspback.clear();
_root.gamebase.persp.clear();
if (this.yvel != 0) {
this.airborne = true;
} else {
this.airborne = false;
_root.gamebase.grapadder = 0;
this.jumps = 0;
}
if (this.glock) {
this.jumps = this.maxjumps - 1;
}
if (Key.isDown(38)) {
if (this.glock) {
this.roperad = this.roperad - 4;
} else if (this.shootangle < -89) {
this.shootangle = -90;
} else {
this.shootangle = this.shootangle - 5;
}
}
if (Key.isDown(40)) {
if (this.glock) {
this.roperad = this.roperad + 4;
} else if (this.shootangle > 89) {
this.shootangle = 90;
} else {
this.shootangle = this.shootangle + 5;
}
}
if (Key.isDown(39)) {
if (this.glock) {
this.svel = this.svel + this.swingpower;
} else if (this.airborne) {
this.xvel = this.xvel + (this.runpower * 0.5);
} else {
this.xvel = this.xvel + this.runpower;
}
this._xscale = 100;
this.charstatus = "running";
this.faceright = true;
} else if (Key.isDown(37)) {
if (this.glock) {
this.svel = this.svel - this.swingpower;
} else if (this.airborne) {
this.xvel = this.xvel - (this.runpower * 0.5);
} else {
this.xvel = this.xvel - this.runpower;
}
this._xscale = -100;
this.charstatus = "running";
this.faceright = false;
} else if ((this.xvel > 0.2) || (this.xvel < -0.2)) {
if (!this.airborne) {
this.xvel = this.xvel * _root.gamebase.friction;
this.charstatus = "skidding";
}
} else {
this.xvel = 0;
this.charstatus = "standing";
}
if (Key.isDown(32) || (Key.isDown(68))) {
if (this.jumps < this.maxjumps) {
if (!this.sppressed) {
_root.jump1.gotoAndPlay(2);
this.yvel = this.yvel + (jump * 10);
this.sppressed = true;
this.jumps++;
}
}
this.charstatus = "jumping";
} else {
this.sppressed = false;
}
if (Key.isDown(17) || (Key.isDown(83))) {
if ((!this.gshoot) && (this.grapcount < this.graplength)) {
this.gshoot = true;
_root.shootrope1.gotoAndPlay(2);
_root.gamebase.attachMovie("newgrapple", "newgrap", 40000);
_root.gamebase.newgrap._x = _root.gamebase.char._x;
_root.gamebase.newgrap._y = _root.gamebase.char._y;
if (!this.angcalc) {
this.sangle = (this.shootangle + 90) * (Math.PI/180);
if (this.faceright) {
_root.gamebase.newgrap.xvel = math.sin(this.sangle) * this.grapspeed;
_root.gamebase.newgrap._rotation = this.shootangle - this._rotation;
} else {
_root.gamebase.newgrap.xvel = (-math.sin(this.sangle)) * this.grapspeed;
_root.gamebase.newgrap._rotation = ((-this.shootangle) + 180) - this._rotation;
}
_root.gamebase.newgrap.yvel = math.cos(this.sangle) * this.grapspeed;
this.angcalc = true;
}
_root.gamebase.newgrap.onEnterFrame = function () {
with (_root.gamebase.newgrap) {
if (hitTest(_root.gamebase.platform0) || (_y < 25)) {
_root.gamebase.char.glock = true;
nextframe();
} else if (hitTest(_root.gamebase.platform1)) {
_root.gamebase.char.glock = true;
nextframe();
} else if (hitTest(_root.gamebase.platform2)) {
_root.gamebase.char.glock = true;
nextframe();
} else if (hitTest(_root.gamebase.platform3)) {
_root.gamebase.char.glock = true;
nextframe();
} else if (hitTest(_root.gamebase.platform4)) {
_root.gamebase.char.glock = true;
nextframe();
} else if (hitTest(_root.gamebase.platform5)) {
_root.gamebase.char.glock = true;
nextframe();
} else if (hitTest(_root.gamebase.platform6)) {
_root.gamebase.char.glock = true;
nextframe();
} else {
_root.gamebase.char.glock = false;
if (_root.gamebase.char.grapcount < _root.gamebase.char.graplength) {
_x = _x + xvel;
_y = _y - yvel;
_root.gamebase.char.grapcount++;
} else {
_root.gamebase.char.gshoot = false;
_root.gamebase.newgrap.removeMovieClip();
}
}
}
};
this.charstatus = "shooting";
}
} else {
this.glock = false;
this.gshoot = false;
this.angcalc = false;
_root.gamebase.newgrap.removeMovieClip();
_root.gamebase.char.grapcount = 0;
}
if (Key.isDown(16) || (Key.isDown(65))) {
if (((!this.sshoot) && (!this.slock)) && (!this.shpressed)) {
this.shpressed = true;
this.sshoot = true;
_root.shootrope1.gotoAndPlay(2);
_root.gamebase.attachMovie("sack", "newsack", 20000);
_root.gamebase.newsack._x = _root.gamebase.char._x;
_root.gamebase.newsack._y = _root.gamebase.char._y;
if (!this.sangcalc) {
this.ssangle = (this.shootangle + 90) * 0.0174532925;
if (this.faceright) {
_root.gamebase.newsack.xvel = math.sin(this.ssangle) * this.sackspeed;
_root.gamebase.newsack._rotation = this.shootangle - this._rotation;
} else {
_root.gamebase.newsack.xvel = (-math.sin(this.ssangle)) * this.sackspeed;
_root.gamebase.newsack._rotation = ((-this.shootangle) + 180) - this._rotation;
}
_root.gamebase.newsack.yvel = math.cos(this.ssangle) * this.sackspeed;
this.sangcalc = true;
}
_root.gamebase.newsack.onEnterFrame = function () {
with (_root.gamebase.newsack) {
if (!_root.gamebase.char.slock) {
if (hitTest(_root.gamebase.enemy0)) {
_root.gamebase.char.slock = true;
sacked = 0;
_root.gamebase.enemy0.slock = true;
nextframe();
} else if (hitTest(_root.gamebase.enemy1)) {
_root.gamebase.char.slock = true;
sacked = 1;
_root.gamebase.enemy1.slock = true;
nextframe();
} else if (hitTest(_root.gamebase.enemy2)) {
_root.gamebase.char.slock = true;
sacked = 2;
_root.gamebase.enemy2.slock = true;
nextframe();
} else if (hitTest(_root.gamebase.enemy3)) {
_root.gamebase.char.slock = true;
sacked = 3;
_root.gamebase.enemy3.slock = true;
nextframe();
} else if (hitTest(_root.gamebase.enemy4)) {
_root.gamebase.char.slock = true;
sacked = 4;
_root.gamebase.enemy4.slock = true;
nextframe();
} else if (hitTest(_root.gamebase.enemy5)) {
_root.gamebase.char.slock = true;
sacked = 5;
_root.gamebase.enemy5.slock = true;
nextframe();
}
if (_root.gamebase.char.sackcount < _root.gamebase.char.sacklength) {
_x = _x + xvel;
_y = _y - yvel;
_root.gamebase.char.sackcount++;
} else {
_root.gamebase.char.sshoot = false;
_root.gamebase.char.sangcalc = false;
_root.gamebase.newsack.removeMovieClip();
_root.gamebase.char.sackcount = 0;
}
}
}
};
this.charstatus = "shooting";
} else if (!this.shpressed) {
this.shpressed = true;
_root.gamebase["enemy" + sacked].mood = "projectile";
_root.gamebase["enemy" + sacked].slock = false;
this.sshoot = false;
this.sangcalc = false;
this.slock = false;
_root.gamebase.newsack.removeMovieClip();
_root.gamebase.char.sackcount = 0;
}
} else {
this.shpressed = false;
this.sangcalc = false;
}
this.xvel = Math.floor(this.xvel * 100) / 100;
this.yvel = Math.floor(this.yvel * 100) / 100;
if (this.glock) {
if (this._x > 1490) {
this._x = 1490;
this.svel = this.svel * -1;
}
if (this._x < 10) {
this._x = 10;
this.svel = this.svel * -1;
}
this.charstatus = "swinging";
this.gotoAndPlay("swinging");
this.distx = this._x - _root.gamebase.newgrap._x;
this.disty = this._y - _root.gamebase.newgrap._y;
if (!this.circcalc) {
_root.punch.gotoAndPlay(2);
if (_root.gamebase.char.grapadder - 50) {
_root.gamebase.char.grapadder = _root.gamebase.char.grapadder + 5;
}
_root.score = _root.score + _root.gamebase.char.grapadder;
this.roperad = Math.sqrt((this.distx * this.distx) + (this.disty * this.disty));
this.currangle = Math.atan2(this.distx, this.disty) - 402.123859659494;
this.swingangle = this.currangle;
this.entryangle = Math.atan2(this.xvel, this.yvel);
this.entryvel = Math.sqrt((this.xvel * this.xvel) + (this.yvel * this.yvel)) * Math.sin(this.entryangle - this.currangle);
this.svel = this.entryvel;
this.circcalc = true;
}
if (this.roperad < 30) {
this.roperad = 30;
}
this.swingcirc = (Math.PI*2) * this.roperad;
this.disprad = Math.sqrt((this.distx * this.distx) + (this.disty * this.disty));
if ((this.swingangle * 57.29578) > 180) {
this.svel = this.svel + (Math.sin(this.swingangle) * (mass * _root.gamebase.gravity));
} else {
this.svel = this.svel - (Math.sin(this.swingangle) * (mass * _root.gamebase.gravity));
}
this.svel = this.svel * _root.gamebase.ropefriction;
if (this._y > (_root.gamebase.ground - 1)) {
this.svel = this.svel * 0.85;
}
this.swingdist = this.svel;
this.addangle = ((this.swingdist / this.swingcirc) * 360) / 57.2957795130823;
this.swingangle = this.swingangle + this.addangle;
if (!this.faceright) {
this._rotation = (-(57.29578 * this.swingangle)) + 30;
} else {
this._rotation = (-(57.29578 * this.swingangle)) - 30;
}
this._y = (Math.cos(this.swingangle) * this.roperad) + _root.gamebase.newgrap._y;
this._x = (Math.sin(this.swingangle) * this.roperad) + _root.gamebase.newgrap._x;
if (this._y > (_root.gamebase.ground - 2)) {
}
this.flyangle = this.swingangle + (Math.PI/2);
this.xvel = Math.sin(this.flyangle) * this.swingdist;
this.yvel = Math.cos(this.flyangle) * this.swingdist;
} else {
this.yvel = this.yvel + (this.mass * _root.gamebase.gravity);
this._y = this._y + this.yvel;
this._x = this._x + this.xvel;
this.circcalc = false;
this.svel = 0;
this._rotation = 0;
}
if (!this.airborne) {
if (this.xvel > this.maxspeed) {
this.xvel--;
} else if (this.xvel < (-this.maxspeed)) {
this.xvel++;
}
}
if (!this.glock) {
if (this._x > 1490) {
this._x = 1490;
this.xvel = this.xvel * -0.4;
}
if (this._x < 10) {
this._x = 10;
this.xvel = this.xvel * -0.4;
}
}
if (_root.gamebase.char.platcount < _root.gamebase.numplatforms) {
if (this._y > (_root.gamebase.char.platheight - 6)) {
this._y = _root.gamebase.char.platheight - 6;
this.yvel = 0;
}
} else if (this._y > _root.gamebase.ground) {
if (this._y < (_root.gamebase.ground + 17)) {
this._y = _root.gamebase.ground;
this.yvel = 0;
} else {
this._y = _root.gamebase.ground;
this.yvel = this.yvel * -0.3;
}
}
_root.gamebase.char.platcount = 0;
_root.gamebase.char.platheight = ground;
if (this.charstatus != this.oldcharstatus) {
gotoAndPlay(this.charstatus);
}
this.oldcharstatus = this.charstatus;
draw_limbback(shoulder, lefthand);
draw_limbfront(shoulder, righthand);
if (this.gshoot || (this.glock)) {
draw_glowrope(_root.gamebase.newgrap, _root.gamebase.char);
}
if (this.sshoot || (this.slock)) {
draw_glowrope(_root.gamebase.newsack, _root.gamebase.char);
}
if (this.faceright) {
arrow._rotation = (this.shootangle + 45) - this._rotation;
} else {
arrow._rotation = (this.shootangle + 45) + this._rotation;
}
if (_root.gamebase.timego && (_root.gamebase.pickedup < _root.gamebase.numpickups)) {
_root.gamebase.leveltimer--;
_root.gamebase.leveltime = Math.round(_root.gamebase.leveltimer / 0.3) / 100;
} else {
_root.nextFrame();
}
if (_root.gamebase.pickedup > (_root.gamebase.numpickups - 10)) {
_root.gamebase.mood = "agitated";
}
}
};
Symbol 217 MovieClip Frame 8
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 1
speed = 1;
holes = 0;
base = 0;
moviewidth = 750;
movieheight = 300;
numacross = 10;
numdown = 4;
mywidth = 75;
myheight = 75;
totalsquares = numacross * numdown;
i = 0;
p = 0;
Symbol 233 MovieClip Frame 2
xarray = new Array();
yarray = new Array();
repeat = 1;
while (repeat < (numdown + 1)) {
count = 0;
while (count < numacross) {
xarray.push(count * mywidth);
yarray.push(offset);
count++;
}
offset = offset + myheight;
repeat++;
}
Symbol 233 MovieClip Frame 3
repeat = 0;
while (repeat < speed) {
if (i < (totalsquares - holes)) {
n = random(xarray.length);
this.attachMovie("blanker", "square" + i, 200 + i);
this["square" + i]._x = xarray[n];
this["square" + i]._y = yarray[n];
xarray.splice(n, 1);
yarray.splice(n, 1);
}
i++;
repeat++;
}
Symbol 233 MovieClip Frame 4
if (i > totalsquares) {
stop();
}
gotoAndPlay (3);