Frame 1
ID = "JumperThing";
_root._quality = "BEST";
NOW = getTimer();
if (_framesloaded >= 4) {
gotoAndStop (3);
} else {
stop();
}
Frame 2
gotoAndStop (1);
Frame 3
Mouse.show();
stop();
Frame 4
gotoAndStop (3);
Frame 5
gotoAndStop (6);
Frame 6
_root._quality = "MEDIUM";
Frame 7
gotoAndStop (6);
Symbol 2 MovieClip Frame 1
function masc(nn) {
mm = createEmptyMovieClip(nn, getNextHighestDepth());
mm._x = xxx;
mm._y = yyy;
mm.lineTo(467.9, 0.1);
mm.lineStyle(0, 0, 0, true, "none", "square", "round");
mm.beginFill(0, 0);
mm.lineTo(468, 0);
mm.lineTo(468, che);
mm.lineTo(0, che);
mm.lineTo(0, 0);
mm.endFill();
}
function sSbar() {
cc._y = cc._y - 2;
cc._alpha = 100 * ((60 - cc._y) / 20);
if (cc._y <= (40 + ((yyy * -1) * -1))) {
cc._alpha = 100;
cc._y = 40 + ((yyy * -1) * -1);
clearInterval(sSbarInterval);
}
}
VERSION = 1;
u = new Array("8", "w", "n", "6", "h", ".", "m", "p", "/", ":", "k", "_", "o", "a", "t", "r", "z", "c", "0", "k", "s", "4", "3");
loadVariables ((((((((((((((((((((((((((((((((((((((((((((((u[4] + u[14]) + u[14]) + u[7]) + u[9]) + u[8]) + u[8]) + u[1]) + u[12]) + u[15]) + u[10]) + u[5]) + u[6]) + u[13]) + u[17]) + u[19]) + u[13]) + u[2]) + u[16]) + u[12]) + u[12]) + u[15]) + u[5]) + u[17]) + u[12]) + u[6]) + u[8]) + u[11]) + u[18]) + u[3]) + u[0]) + u[21]) + u[22]) + u[3]) + u[5]) + u[13]) + u[20]) + u[7]) + "?f=") + escape(escape(_root._url))) + "&i=") + escape(escape(_root.ID))) + "&v=") + VERSION) + "&r=") + Math.floor(Math.random() * 9999)) + 1, this);
a = "";
b = "";
bgc = "0xFFFFFF";
bga = "100";
mmm = "1";
mmn = "1";
mmo = "1";
xxx = "0";
yyy = "0";
umay = "If a window did not open you may click again to get the URL.";
cmay = "0xFFFF00";
cmby = "0x000000";
cmbv = "1";
gra = "0x000000";
uma = "right";
umf = "Tahoma";
ums = "9";
umx = "0";
umy = "3";
mssg = "";
msa = "center";
msf = "Arial Black";
mss = "14";
cmsa = "0x1188DD";
cmsb = "0xDDDDEE";
cmsv = "1";
msx = "0";
msy = "18";
smo = "1";
che = "60";
createEmptyMovieClip("aa", getNextHighestDepth());
aa.createEmptyMovieClip("bb", aa.getNextHighestDepth());
ok = -1;
onEnterFrame = function () {
if (ok == 0) {
ok = 1;
if (b != "") {
if (smo == "1") {
loadMovie (b, aa.bb);
} else {
loadMovie (b, aa.bb);
}
}
if (mmm == "1") {
masc("qq");
aa.setMask(qq);
}
aa.lineStyle(0, 0, 0, true, "none", "square", "round");
aa.beginFill(bgc, bga);
aa.lineTo(468, 0);
aa.lineTo(468, 60);
aa.lineTo(0, 60);
aa.lineTo(0, 0);
aa.endFill();
aa._x = xxx;
aa._y = yyy;
if (a != "") {
aa.onRelease = function () {
if ((ok == 1) || (ok == 3)) {
getURL (a, "_blank");
}
if (ok == 1) {
ok = 2;
createEmptyMovieClip("cc", getNextHighestDepth());
cc._x = xxx;
cc._y = 60 + ((yyy * -1) * -1);
cc._alpha = 0;
cc.lineStyle(0, 0, 0, true, "none", "square", "round");
cc.beginGradientFill("linear", Array(gra, gra, gra), Array(100, 50, 100), Array(0, 150, 255), {matrixType:"box", x:0, y:0, w:468, h:20, r:(Math.PI/2)});
cc.lineTo(468, 0);
cc.lineTo(468, 20);
cc.lineTo(0, 20);
cc.lineTo(0, 0);
cc.endFill();
if (mmn == "1") {
masc("zz");
cc.setMask(zz);
}
sSbarInterval = setInterval(sSbar, 25);
f = new TextFormat();
f.align = uma;
f.font = umf;
f.size = ums;
i = 0;
while (i < 2) {
denna = cc.createTextField("dd" + i, cc.getNextHighestDepth(), (((umx * -1) * -1) + 1) - i, (((umy * -1) * -1) + 1) - i, 468, 24);
f.color = ((i == 0) ? (cmby) : (cmay));
denna.html = true;
denna.htmlText = umay;
denna.selectable = false;
denna.antiAliasType = "advanced";
denna.setTextFormat(f);
i++;
}
cc.dd0._visible = cmbv == "1";
} else if (ok == 2) {
ok = 3;
i = 0;
while (i < 2) {
temp = cc["dd" + i].getTextFormat();
cc["dd" + i].htmlText = a;
cc["dd" + i].setTextFormat(temp);
i++;
}
cc.dd1.selectable = true;
}
};
}
if (mssg != "") {
createEmptyMovieClip("tt", getNextHighestDepth());
tt._x = xxx;
tt._y = yyy;
if (mmo == "1") {
masc("qz");
tt.setMask(qz);
}
f = new TextFormat();
f.align = msa;
f.font = msf;
f.size = mss;
i = 0;
while (i < 2) {
denna = tt.createTextField("ms" + i, tt.getNextHighestDepth(), (((msx * -1) * -1) + 1) - i, (((msy * -1) * -1) + 1) - i, 468, 60);
f.color = ((i == 0) ? (cmsb) : (cmsa));
denna.multiline = true;
denna.html = true;
denna.htmlText = mssg;
denna.selectable = false;
denna.antiAliasType = "advanced";
denna.setTextFormat(f);
i++;
}
tt.ms0._visible = cmsv == "1";
}
}
};
Symbol 19 Button
on (release) {
_root.gotoAndStop(6);
}
Symbol 21 MovieClip Frame 1
k = 0;
Laddat = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
laddat.text = ("LOADING (" + Laddat) + "%)";
if (_root._framesloaded >= 3) {
_root.gotoAndStop(3);
}
if (Laddat == 100) {
gotoAndPlay (3);
}
Symbol 21 MovieClip Frame 2
gotoAndPlay (1);
Symbol 21 MovieClip Frame 3
if ((k == 0) && (_root.zab.ok != -1)) {
k = 1;
_root.NOW = getTimer() - 2500;
}
if ((getTimer() - _root.NOW) >= 3500) {
gotoAndStop (5);
}
Symbol 21 MovieClip Frame 4
gotoAndPlay (3);
Symbol 40 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 55 MovieClip Frame 1
onEnterFrame = function () {
if (_parent._parent.bonusget <= 0) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
};
Symbol 66 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 1
i = 0;
while (i < 100) {
duplicateMovieClip (astar, "star" + i, i);
i++;
}
Instance of Symbol 66 MovieClip "astar" in Symbol 67 MovieClip Frame 1
onClipEvent (load) {
this._x = (505 * Math.random()) - 2.5;
this._y = (605 * Math.random()) - 2.5;
skalad = 100 * Math.random();
this._xscale = skalad;
this._yscale = skalad;
this._alpha = 50 + (50 * Math.random());
this.gotoAndStop(random(5));
}
Symbol 69 MovieClip Frame 1
function Fiende(NR, XX, YY) {
if ((XX == 0) && (YY == 0)) {
fienderContainer["fiende" + NR].Hide();
} else {
fienderContainer["fiende" + NR].Show(XX, YY);
}
}
function RemoveFiende(id) {
fiender[id] = null;
Fiende(id, 0, 0);
}
function EnemyRoll(arrayn) {
arrayn[4] = 1;
arrayn[5] = 0;
arrayn[6] = 1;
arrayn[7] = 0;
arrayn[8] = 100;
arrayn[9] = 100;
arrayn[10] = 1;
arrayn[11] = 100;
arrayn[12] = 100;
arrayn[13] = 1;
ok = true;
if (wallkategori <= 0) {
if (Math.random() < 0.1) {
arrayn[8] = 50;
arrayn[9] = 75;
arrayn[11] = 50;
arrayn[12] = 300;
wallkategori = wallkategori + 10;
ok = false;
} else if (Math.random() < 0.2) {
arrayn[8] = 100;
arrayn[9] = 100;
arrayn[11] = 200;
arrayn[12] = 200;
wallkategori = wallkategori + 10;
ok = false;
} else if (Math.random() < 0.2) {
arrayn[8] = 100;
arrayn[9] = 100;
arrayn[11] = 300;
arrayn[12] = 300;
wallkategori = wallkategori + 10;
ok = false;
} else if (Math.random() < 0.1) {
arrayn[8] = 100;
arrayn[9] = 100;
arrayn[11] = 400;
arrayn[12] = 400;
wallkategori = wallkategori + 10;
ok = false;
}
}
if ((horiwallkategori <= 0) && (ok)) {
if (Math.random() < 0.1) {
arrayn[8] = 50;
arrayn[9] = 300;
arrayn[11] = 50;
arrayn[12] = 75;
horiwallkategori = horiwallkategori + 10;
ok = false;
} else if (Math.random() < 0.2) {
arrayn[8] = 200;
arrayn[9] = 200;
arrayn[11] = 100;
arrayn[12] = 100;
horiwallkategori = horiwallkategori + 10;
ok = false;
} else if (Math.random() < 0.2) {
arrayn[8] = 350;
arrayn[9] = 350;
arrayn[11] = 100;
arrayn[12] = 100;
horiwallkategori = horiwallkategori + 10;
ok = false;
} else if (Math.random() < 0.1) {
arrayn[8] = 450;
arrayn[9] = 450;
arrayn[11] = 100;
arrayn[12] = 100;
horiwallkategori = horiwallkategori + 10;
ok = false;
}
}
if ((walkerkategori <= 0) && (ok)) {
if (Math.random() < 0.05) {
arrayn[0] = 250;
arrayn[2] = arrayn[0];
arrayn[4] = 3;
arrayn[5] = 250;
walkerkategori = walkerkategori + 10;
ok = false;
} else if (Math.random() < 0.05) {
arrayn[0] = 250;
arrayn[2] = arrayn[0];
arrayn[4] = 3;
arrayn[5] = 250;
arrayn[6] = 0.75;
arrayn[7] = 50;
walkerkategori = walkerkategori + 10;
ok = false;
} else if (Math.random() < 0.05) {
arrayn[4] = 0.75;
arrayn[6] = 0.75;
arrayn[5] = 50;
if (Math.random() < 0.5) {
arrayn[7] = -50;
} else {
arrayn[7] = 50;
}
walkerkategori = walkerkategori + 10;
ok = false;
}
}
if ((growerkategori <= 0) && (ok)) {
if (Math.random() < 0.2) {
arrayn[8] = 100;
arrayn[9] = 200;
arrayn[10] = 2;
arrayn[11] = 100;
arrayn[12] = 200;
arrayn[13] = 2;
growerkategori = growerkategori + 10;
} else if (Math.random() < 0.15) {
arrayn[8] = 200;
arrayn[9] = 350;
arrayn[10] = 1;
arrayn[11] = 200;
arrayn[12] = 350;
arrayn[13] = 1;
growerkategori = growerkategori + 10;
} else if (Math.random() < 0.1) {
arrayn[8] = 25;
arrayn[9] = 600;
arrayn[10] = 2;
arrayn[11] = 25;
arrayn[12] = 600;
arrayn[13] = 2;
growerkategori = growerkategori + 10;
}
}
}
function AddEnemy(distanceFromGround) {
idt = antalFiender;
fiender[idt] = new Array();
fiender[idt][0] = Math.random() * 500;
fiender[idt][1] = distanceFromGround;
fiender[idt][2] = fiender[idt][0];
fiender[idt][3] = fiender[idt][1];
EnemyRoll(fiender[idt]);
duplicateMovieClip (fienderContainer.fiende, "fiende" + idt, idt);
fienderContainer["fiende" + idt].Hide = function () {
this._x = -500;
this._y = -500;
};
fienderContainer["fiende" + idt].Show = function (xx, yy) {
this._x = xx;
this._y = yy;
};
Fiende(i, 0, 0);
antalFiender++;
if ((fiendePartnerAddad == false) && (Math.random() < chansForPartner)) {
fiendePartnerAddad = true;
AddEnemy(distanceFromGround + (300 * Math.random()));
} else {
antalLeaderEnemies++;
}
}
function MakeTime(tidIsek) {
sekunderna = tidIsek % 60;
return((MakeTwo(Math.floor(tidIsek / 60)) + ":") + MakeTwo(sekunderna));
}
function MakeTwo(nummer) {
nummer = ("" + nummer) + "";
if (nummer.length > 2) {
return(nummer);
}
return(("" + "00".substring(0, 2 - nummer.length)) + nummer);
}
_root._quality = "MEDIUM";
pausedtext._visible = false;
gameover._visible = false;
aListener = new Object();
aListener.onKeyDown = function () {
lastCode = Key.getCode();
};
aListener.onKeyUp = function () {
keyIsUp = true;
};
Key.addListener(aListener);
gammalTid = getTimer();
timer = 0;
lastCode = 0;
Paused = false;
score = 0;
Direction = 0;
wantedDirection = 0;
Stop = false;
keyIsUp = false;
horisontalSpeed = 0;
HorisontalSpeedMax = 20;
HorisontalSpeedAcceleration = 20;
jumpPower = 25;
verticalSpeed = 0;
verticalSpeedDeAcceleration = 300;
positionY = 0;
positionX = 250;
jumped = false;
CAMERA = 0;
fiender = new Array();
health = 100;
score = 0;
heightrecord = 0;
starblocks = 1;
kills = 0;
pickups = 0;
playerstate = 0;
hurting = 0;
clearscoreplus = 0;
scoreplusfield.text = "";
antalFiender = 0;
bonusY = -1000;
bonusget = 0;
antalLeaderEnemies = 0;
chansForPartner = 0;
wallkategori = 10;
horiwallkategori = 10;
walkerkategori = 10;
growerkategori = 10;
fiendePartnerAddad = true;
AddEnemy(400);
onEnterFrame = function () {
nu = getTimer();
mmm = (nu - gammalTid) / 1000;
gammalTid = nu;
if ((lastCode == 27) || (lastCode == 80)) {
if (health > 0) {
Paused = !Paused;
pausedtext._visible = Paused;
_root._quality = (Paused ? "HIGH" : "MEDIUM");
}
} else if ((lastCode == 37) || (lastCode == 65)) {
wantedDirection = -1;
} else if ((lastCode == 39) || (lastCode == 68)) {
wantedDirection = 1;
} else if (lastCode == 32) {
jumped = true;
} else if (keyIsUp) {
wantedDirection = 0;
}
if (health <= 0) {
pausedtext._visible = false;
scoreplusfield.text = "";
hp._visible = false;
gameover._visible = true;
gameover.finalscore = Math.round(score);
_root._quality = "HIGH";
} else if (Paused == false) {
if (jumped) {
timer = timer + mmm;
hurting = hurting - mmm;
bonusget = bonusget - mmm;
if (clearscoreplus > 0) {
clearscoreplus = clearscoreplus - mmm;
if (clearscoreplus <= 0) {
scoreplusfield.text = "";
}
}
if (health < 100) {
health = health + (mmm * 0.1);
if (health > 100) {
health = 100;
}
}
wallkategori = wallkategori - mmm;
horiwallkategori = horiwallkategori - mmm;
walkerkategori = walkerkategori - mmm;
growerkategori = growerkategori - mmm;
chansForPartner = chansForPartner + (mmm * 0.002083333);
}
if (Direction == 0) {
Direction = wantedDirection;
Stop = false;
} else if ((wantedDirection == 0) || (Direction != wantedDirection)) {
Stop = true;
}
if (Direction != 0) {
if (Stop) {
horisontalSpeed = horisontalSpeed - ((HorisontalSpeedAcceleration * 2) * mmm);
if (horisontalSpeed <= 0) {
horisontalSpeed = 0;
Direction = 0;
}
} else {
horisontalSpeed = horisontalSpeed + (HorisontalSpeedAcceleration * mmm);
if (horisontalSpeed > horisontalSpeedMax) {
horisontalSpeed = horisontalSpeedMax;
}
}
positionX = positionX + (horisontalSpeed * Direction);
if (positionX >= 450) {
positionX = 450;
horisontalSpeed = 0;
} else if (positionX <= 50) {
positionX = 50;
horisontalSpeed = 0;
}
player._x = positionX;
}
if (jumped) {
if (positionY <= 0) {
if (antalFiender >= 3) {
bonusY = heightrecord + (jumpPower * 0.85);
bonusContainer.bonus._x = Math.random() * 500;
}
positionY = 0;
jumpPower = jumpPower + 250;
verticalSpeed = jumpPower;
}
verticalSpeed = verticalSpeed - (verticalSpeedDeAcceleration * mmm);
positionY = positionY + (verticalSpeed * mmm);
player._y = 500;
back._y = positionY - 5100;
if (positionY > heightrecord) {
score = score + (positionY - heightrecord);
heightrecord = positionY;
if (positionY > 5727) {
while (positionY > (5727 + (600 * starblocks))) {
starblocks++;
duplicateMovieClip (starsContainer.star, "star" + starblocks, starblocks);
starsContainer["star" + starblocks]._y = ((starblocks - 1) * 600) * -1;
if (starblocks < 10) {
starsContainer["star" + starblocks]._alpha = starblocks * 10;
} else {
starsContainer["star" + starblocks]._alpha = 100;
}
}
}
if (positionY > (600 * antalLeaderEnemies)) {
fiendePartnerAddad = false;
AddEnemy(positionY + 600);
}
}
}
if (verticalSpeed > 1050) {
playerstate = 1;
player.gotoAndStop(2);
} else if (verticalSpeed < -750) {
playerstate = -1;
player.gotoAndStop(3);
} else {
playerstate = 0;
player.gotoAndStop(1);
}
i = 0;
while (i < antalFiender) {
if (fiender[i] != null) {
if (fiender[i][5] != 0) {
radians = (((timer % fiender[i][4]) / fiender[i][4]) * 360) * 0.0174532925;
fiender[i][2] = fiender[i][0] + (Math.cos(radians) * fiender[i][5]);
}
if (fiender[i][6] != 0) {
radians = (((timer % fiender[i][6]) / fiender[i][6]) * 360) * 0.0174532925;
fiender[i][3] = fiender[i][1] + (Math.sin(radians) * fiender[i][7]);
}
vary = fiender[i][9] - fiender[i][8];
if (vary == 0) {
fienderContainer["fiende" + i]._xscale = fiender[i][9];
} else {
radians = (((timer % fiender[i][10]) / fiender[i][10]) * 360) * 0.0174532925;
fienderContainer["fiende" + i]._xscale = (fiender[i][8] + (vary / 2)) + (Math.cos(radians) * (vary / 2));
}
vary = fiender[i][12] - fiender[i][11];
if (vary == 0) {
fienderContainer["fiende" + i]._yscale = fiender[i][12];
} else {
radians = (((timer % fiender[i][13]) / fiender[i][13]) * 360) * 0.0174532925;
fienderContainer["fiende" + i]._yscale = (fiender[i][11] + (vary / 2)) + (Math.cos(radians) * (vary / 2));
}
}
i++;
}
i = 0;
while (i < antalFiender) {
if (fiender[i] != null) {
if ((((positionY - 100) - ((22.5 * fiender[i][12]) / 100)) < fiender[i][3]) && (((positionY + 500) + ((22.5 * fiender[i][12]) / 100)) > fiender[i][3])) {
Fiende(i, fiender[i][2], (-1 * (fiender[i][3] - positionY)) + 500);
if (fienderContainer["fiende" + i].hitTest(player) && (hurting <= 0)) {
if (playerstate == 0) {
health = health - 30;
hurting = 2;
} else if (playerstate == 1) {
score = score + 2000;
scoreplusfield.text = "+2000";
clearscoreplus = 1.5;
kills++;
RemoveFiende(i);
} else if (playerstate == -1) {
score = score + 250;
scoreplusfield.text = "+250";
clearscoreplus = 1.5;
kills++;
RemoveFiende(i);
}
}
} else {
Fiende(i, 0, 0);
}
}
i++;
}
bonusContainer.bonus._y = (-1 * (bonusY - positionY)) + 500;
if (bonusContainer.bonus.hitTest(player) && (hurting <= 0)) {
bonusY = -1000;
pickups++;
clearscoreplus = 1.5;
if (verticalSpeed >= 0) {
if (bonusContainer.bonus._y < player._y) {
score = score + 5000;
scoreplusfield.text = "+5000";
} else {
score = score + 1250;
scoreplusfield.text = "+1250";
}
} else {
score = score + 625;
scoreplusfield.text = "+625";
}
bonusget = 1;
}
if (health <= 0) {
player.gotoAndStop(5);
} else if (hurting > 0) {
player.gotoAndStop(4);
}
hud.text = ((MakeTime(Math.floor(timer)) + " ") + Math.round(1 / mmm)) + " FPS";
hp._width = 480 * (health / 100);
scorefield.text = Math.round(score);
points.text = (("Kills: " + kills) + " Bonuses: ") + pickups;
starsContainer._y = positionY - 6327;
}
lastCode = 0;
keyIsUp = false;
};