Frame 1
function doSomething() {
}
function doSomething3() {
_quality = "LOW";
}
function doSomething4() {
_quality = "MEDIUM";
}
function doSomething5() {
_quality = "HIGH";
}
NewgroundsAPI.connectMovie(4999);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned3 = new ContextMenuItem("Quality: Low", doSomething3);
MENU.customItems.push(Functioned3);
Functioned4 = new ContextMenuItem("Quality: Medium", doSomething4);
MENU.customItems.push(Functioned4);
Functioned5 = new ContextMenuItem("Quality: High", doSomething5);
MENU.customItems.push(Functioned5);
_root.menu = MENU;
Frame 2
_global.mus = true;
_global.tauntArray = new Array();
_global.jumpstyle = 1;
_global.tauntArray[1] = "Cross over to the right pillar...";
_global.tauntArray[2] = "Now back to the left one.";
_global.tauntArray[3] = "Continue for as long as you can!";
_global.tauntArray[4] = "Eventually you will die, but that's ok.";
_global.tauntArray[5] = "Beware of the fireballs.";
_global.tauntArray[6] = "The longer you go, the harder it gets.";
_global.tauntArray[7] = "Nice work so far; it won't last.";
_global.tauntArray[8] = "I think you're doing a bit too well.";
_global.tauntArray[9] = "I should make this harder for you...";
_global.tauntArray[10] = "Have some more fire.";
_global.tauntArray[11] = "Hmm...";
_global.tauntArray[12] = "You're still going...";
_global.tauntArray[13] = "Your determination will not last.";
_global.tauntArray[14] = "You may be good...";
_global.tauntArray[15] = "But you are not infinitly good!";
_global.tauntArray[16] = "I'll see you at level 20. zzzz.";
_global.tauntArray[17] = "zzzz.";
_global.tauntArray[18] = "zzzz.";
_global.tauntArray[19] = "zzzz.";
_global.tauntArray[20] = "Hmm, you made it.";
_global.tauntArray[21] = "Well getting to 20 is easy anyways!";
_global.tauntArray[22] = "I wonder how much more you can take.";
_global.tauntArray[23] = "Back and forth, back and forth.";
_global.tauntArray[24] = "Level 30 is the real challenge...";
_global.tauntArray[25] = "You're not even out of the tutorial yet!";
_global.tauntArray[26] = "";
_global.tauntArray[27] = "You're not even close to 30!";
_global.tauntArray[28] = "Hmm, well maybe now you are.";
_global.tauntArray[29] = "Uh oh.";
_global.tauntArray[30] = "Damn... you reached lvl 30.";
_global.tauntArray[31] = "Well 40 is the real challenge.";
_global.tauntArray[32] = "I've seen someone reach lvl 100.";
_global.tauntArray[33] = "Do you think you can reach lvl 100?";
_global.tauntArray[34] = "I don't think you can reach lvl 100";
_global.tauntArray[35] = "You probably won't even reach 40.";
_global.tauntArray[36] = "Your jumping is impressive.";
_global.tauntArray[37] = "The gaps are becoming bigger.";
_global.tauntArray[38] = "You are close";
_global.tauntArray[39] = "You are close";
_global.tauntArray[40] = "Very good... very good.";
_global.tauntArray[41] = "If you reach 50 I will leave you alone.";
_global.tauntArray[42] = "Only a few ever pass 50.";
_global.tauntArray[43] = "Even if you reach it, you will still die.";
_global.tauntArray[44] = "There is no escape.";
_global.tauntArray[45] = "5 left!";
_global.tauntArray[46] = "4 left!";
_global.tauntArray[47] = "3 left!";
_global.tauntArray[48] = "2 left!";
_global.tauntArray[49] = "One more...";
_global.tauntArray[50] = ":O";
stopAllSounds();
Frame 4
function initGame() {
if (_global.mus == true) {
sn1 = new Sound();
sn1.attachSound("sng1");
sn1.start();
}
sn1.onSoundComplete = function () {
if (_global.mus == true) {
sn1.start();
}
};
_root.attachMovie("boundboxguy", "bbox", 2431);
_root.bbox._visible = false;
_global.jumpdef = 0;
_global.playGame = false;
_root.attachMovie("guy", "guy", 1000);
_root.guy._x = 58;
_root.guy.gotoAndPlay("spawn");
_global.isSet = false;
_root.guy._y = 280;
_global.dying = false;
_global.dead = false;
_global.lives = 3;
_root.theScreen.screen_spec = "none";
_global.SPECIAL1 = false;
_global.SPECIAL2 = false;
_global.SPECIAL3 = false;
_global.SPECIAL4 = false;
_global.SPECIAL5 = false;
_global.SPECIAL6 = false;
_global.spec6type = 0;
_global.faithlvl = 3;
_global.faithcount = 0;
_global.tile1_Idle = 500;
_global.tile2_Idle = 500;
_global.tile1_Pos = 500;
_global.tile2_Pos = 500;
_global.blockCount = 3;
_global.roundWon = false;
_global.roundReady = false;
_global.level = 1;
_global.THECHANCE = _global.level / 40;
_global.winX = 680;
_global.speedLimit = 8;
_global.gravity = 2.5;
_global.fireballs = 0;
_global.parts = 50;
_global.partonscreen = 0;
_global.spaceisheld = false;
slide20 = 0;
_global.Itrack1 = 0;
_global.Itrack2 = 0;
_global.Itrack1_stat = true;
_global.Itrack2_stat = false;
Itrack = new Object();
grounded = new Object();
_root.guy.grounded = false;
xspeed = new Object();
yspeed = new Object();
MOVEbeg = new Object();
MOVEend = new Object();
MOVEdir = new Object();
tType = new Object();
_root.guy.xspeed = 0;
_root.guy.yspeed = 0;
DRAW_starty = _global.tile1_Pos - (_root.tile1._height / 2);
DRAW_endy = _global.tile2_Pos - (_root.tile2._height / 2);
_global.ychange = (DRAW_endy - DRAW_starty) / 20;
DRAWx = 135;
_global.edraw = 3;
DRAWy = _global.tile1_Pos - (_root.tile1._height / 2);
_root.theScreen.screen_taunt = _global.tauntArray[_global.level];
}
function musicON() {
sn1.start();
}
function musicOFF() {
sn1.stop();
}
function lights() {
if ((_root.darkcover._alpha == 0) && (random(20) == 3)) {
_root.darkcover._alpha = 95;
} else if ((_root.darkcover._alpha >= 80) && (random(10) == 3)) {
_root.darkcover._alpha = 0;
}
}
function wind() {
if ((_global.winX == 680) && (_root.guy._x < 735)) {
_root.guy._x = _root.guy._x + 0.8;
} else if ((_global.winX == 85) && (_root.guy._x > 12)) {
_root.guy._x = _root.guy._x - 0.8;
}
}
function dissBlocks(block) {
if (_global[("Itrack" + block.Itrack) + "_stat"] == true) {
block.illBlock.gotoAndStop(1);
block._alpha = 100;
} else {
block.illBlock.gotoAndStop(2);
block._alpha = 95;
}
}
function addfire() {
attachMovie("fireball", ["fball" + _global.fireballs], 300 + _global.fireballs);
_root["fball" + _global.fireballs]._x = 370;
_root["fball" + _global.fireballs]._y = 10;
_root["fball" + _global.fireballs].yspeed = random(4) + 1;
_root["fball" + _global.fireballs].xspeed = random(100) - random(100);
_global.fireballs = _global.fireballs + 1;
}
function firerain() {
i = 0;
while (i <= _global.fireballs) {
_root["fball" + i]._y = _root["fball" + i]._y + _root["fball" + i].yspeed;
_root["fball" + i]._x = _root["fball" + i]._x + _root["fball" + i].xspeed;
_root["fball" + i].xspeed = _root["fball" + i].xspeed * 0.6;
_root["fball" + i].yspeed = _root["fball" + i].yspeed + 0.02;
if (_root.guy.hitbox.hitTest(_root["fball" + i]) && (_root.guy._currentframe < 55)) {
_root.guy.gotoAndPlay("burnt");
_global.dying = true;
}
if (_root["fball" + i]._y > 600) {
_root["fball" + i]._x = 370;
_root["fball" + i]._y = 10;
_root["fball" + i].yspeed = random(4) + 1;
_root["fball" + i].xspeed = random(100) - random(100);
}
i++;
}
}
function leapofaith(blocktype) {
if (_global.isSet != true) {
importanttile = true;
attachMovie("tile", ["tile" + _global.edraw], 100 + _global.edraw);
_root["tile" + _global.edraw].tType = 4;
_root["tile" + _global.edraw].gotoAndStop(_root["tile" + _global.edraw].tType);
if (_global.winX == 680) {
DRAWx = DRAWx + 25;
} else if (_global.winX == 85) {
DRAWx = DRAWx - 25;
}
_root["tile" + _global.edraw]._x = DRAWx;
_root["tile" + _global.edraw]._y = DRAWy;
_root["tile" + _global.edraw].tType = blocktype;
_root["tile" + _global.edraw].gotoAndStop(_root["tile" + _global.edraw].tType);
if (_root["tile" + _global.edraw].tType == 2) {
_root["tile" + _global.edraw].Itrack = random(2) + 1;
}
if (_root["tile" + _global.edraw]._y < 600) {
if (_root["tile" + _global.edraw].tType == 4) {
_root["tile" + _global.edraw].MOVEbeg = DRAWy;
if (_global.DRAWx < 375) {
_root["tile" + _global.edraw].MOVEend = DRAWy - (50 + (_global.edraw * 2));
} else if (_global.DRAWx >= 375) {
_root["tile" + _global.edraw].MOVEend = DRAWy - (50 - (_global.edraw * 2));
}
if (_root["tile" + _global.edraw].MOVEbeg > _root["tile" + _global.edraw].MOVEend) {
_root["tile" + _global.edraw].MOVEdir = "down";
} else {
_root["tile" + _global.edraw].MOVEdir = "up";
}
}
}
if ((_global.partonscreen < _global.parts) && (importanttile == false)) {
i = 1;
while (i <= (random(6) + 1)) {
attachMovie("parttest", ["part" + _global.partonscreen], 500 + _global.partonscreen);
_root["part" + _global.partonscreen]._x = _root["tile" + _global.edraw]._x;
_root["part" + _global.partonscreen]._y = _root["tile" + _global.edraw]._y;
_root["part" + _global.partonscreen].xspeed = random(10) - random(10);
_root["part" + _global.partonscreen].yspeed = random(10) - random(20);
_global.partonscreen++;
if (_global.partonscreen >= (_global.parts - 2)) {
break;
}
i++;
}
}
_global.edraw++;
_global.faithcount++;
if (_global.faithcount >= _global.faithlvl) {
_global.isSet = true;
}
}
return(_global.isSet);
}
function particle() {
i = 0;
while (i <= _global.parts) {
_root["part" + i]._x = _root["part" + i]._x + _root["part" + i].xspeed;
_root["part" + i]._y = _root["part" + i]._y + _root["part" + i].yspeed;
if (_root["part" + i].xspeed > 0) {
_root["part" + i].xspeed = _root["part" + i].xspeed - 0.5;
} else if (_root["part" + i].xspeed < 0) {
_root["part" + i].xspeed = _root["part" + i].xspeed + 0.5;
}
_root["part" + i].yspeed = _root["part" + i].yspeed + 1;
if (_root["part" + i]._y > 600) {
removeMovieClip(_root["part" + i]);
_global.partonscreen--;
}
i++;
}
}
function drawSnakeMap() {
if (_global.isSet != true) {
if ((DRAWx < 600) && (DRAWx > 130)) {
importanttile = false;
if (_global.winX == 680) {
miny = (_global.tile2_Pos - (_root.tile2._height / 2)) + (650 - DRAWx);
} else if (_global.winX == 85) {
miny = (_global.tile1_Pos - (_root.tile1._height / 2)) + (DRAWx - 100);
}
attachMovie("tile", ["tile" + _global.edraw], 100 + _global.edraw);
_root["tile" + _global.edraw].tType = 4;
_root["tile" + _global.edraw].gotoAndStop(_root["tile" + _global.edraw].tType);
nextdir = random(7) + 1;
fish = random(Math.floor((500 - DRAWy) / 25)) * 25;
if (((nextdir == 1) && (DRAWy < 460)) && (DRAWy < miny)) {
DRAWy = DRAWy + 25;
} else if (((nextdir == 2) | (nextdir == 3)) | (nextdir == 4)) {
if (DRAWy > 120) {
DRAWy = DRAWy - 25;
}
} else if ((nextdir == 5) | (nextdir == 6)) {
if ((DRAWy + fish) < miny) {
DRAWy = DRAWy + fish;
}
} else if (DRAWy < 200) {
DRAWy = DRAWy + 25;
} else if (DRAWy > miny) {
DRAWy = DRAWy - 25;
}
if (DRAWy < 120) {
DRAWy = DRAWy + 25;
} else if (DRAWy > 500) {
DRAWy = DRAWy - 25;
} else if (DRAWy > miny) {
DRAWy = DRAWy - 25;
}
if (_global.winX == 680) {
DRAWx = DRAWx + 25;
} else if (_global.winX == 85) {
DRAWx = DRAWx - 25;
}
_root["tile" + _global.edraw]._x = DRAWx;
_root["tile" + _global.edraw]._y = DRAWy;
if (edraw < 4) {
importanttile = true;
}
if (_root[("tile" + _global.edraw) - 1]._y > 600) {
importanttile = true;
}
if ((importanttile == false) && (random(100) < Math.floor(65 * _global.THECHANCE))) {
_root["tile" + _global.edraw]._y = 1000;
}
if (_root["tile" + _global.edraw]._y < 600) {
if (_root["tile" + _global.edraw].tType == 4) {
_root["tile" + _global.edraw].MOVEbeg = DRAWy;
if (_global.DRAWx < 375) {
_root["tile" + _global.edraw].MOVEend = DRAWy - (50 + (_global.edraw * 2));
} else if (_global.DRAWx >= 375) {
_root["tile" + _global.edraw].MOVEend = DRAWy - (50 - (_global.edraw * 2));
}
if (_root["tile" + _global.edraw].MOVEbeg > _root["tile" + _global.edraw].MOVEend) {
_root["tile" + _global.edraw].MOVEdir = "down";
} else {
_root["tile" + _global.edraw].MOVEdir = "up";
}
}
}
if ((_global.partonscreen < _global.parts) && (importanttile == false)) {
i = 1;
while (i <= (random(6) + 1)) {
attachMovie("parttest", ["part" + _global.partonscreen], 500 + _global.partonscreen);
_root["part" + _global.partonscreen]._x = _root["tile" + _global.edraw]._x;
_root["part" + _global.partonscreen]._y = _root["tile" + _global.edraw]._y;
_root["part" + _global.partonscreen].xspeed = random(10) - random(10);
_root["part" + _global.partonscreen].yspeed = random(10) - random(20);
_global.partonscreen++;
if (_global.partonscreen >= (_global.parts - 2)) {
break;
}
i++;
}
}
_global.edraw++;
} else {
_global.isSet = true;
}
}
return(_global.isSet);
}
function drawMap() {
if (_global.isSet != true) {
if ((DRAWx < 600) && (DRAWx > 130)) {
importanttile = false;
if (_global.winX == 680) {
miny = (_global.tile2_Pos - (_root.tile2._height / 2)) + (650 - DRAWx);
} else if (_global.winX == 85) {
miny = (_global.tile1_Pos - (_root.tile1._height / 2)) + (DRAWx - 100);
}
attachMovie("tile", ["tile" + _global.edraw], 100 + _global.edraw);
if (random(100) < Math.floor(30 * _global.THECHANCE)) {
_root["tile" + _global.edraw].tType = random(3) + 2;
importanttile = true;
} else {
_root["tile" + _global.edraw].tType = 1;
if (_global.SPECIAL3 == true) {
_root["tile" + _global.edraw].tType = 2;
}
if (_global.SPECIAL4 == true) {
_root["tile" + _global.edraw].tType = 3;
}
if (edraw > 4) {
if (((_root["tile" + (_global.edraw - 1)].tType == 2) | (_root["tile" + (_global.edraw - 1)].tType == 3)) | (_root["tile" + (_global.edraw - 1)].tType == 4)) {
importanttile = true;
}
if (_global.jumpdef >= 2) {
importanttile = true;
_global.jumpdef = 0;
}
} else if (edraw < 4) {
importanttile = true;
}
}
_root["tile" + _global.edraw].gotoAndStop(_root["tile" + _global.edraw].tType);
if (_root["tile" + _global.edraw].tType == 2) {
_root["tile" + _global.edraw].Itrack = random(2) + 1;
}
nextdir = random(7) + 1;
fish = random(Math.floor((500 - DRAWy) / 25)) * 25;
if (((nextdir == 1) && (DRAWy < 460)) && (DRAWy < miny)) {
DRAWy = DRAWy + 25;
} else if (((nextdir == 2) | (nextdir == 3)) | (nextdir == 4)) {
if (DRAWy > 120) {
DRAWy = DRAWy - 25;
}
} else if ((nextdir == 5) | (nextdir == 6)) {
if ((DRAWy + fish) < miny) {
DRAWy = DRAWy + fish;
}
} else if (DRAWy < 200) {
DRAWy = DRAWy + 25;
} else if (DRAWy > miny) {
DRAWy = DRAWy - 25;
}
if (DRAWy < 120) {
DRAWy = DRAWy + 25;
} else if (DRAWy > 500) {
DRAWy = DRAWy - 25;
} else if (DRAWy > miny) {
DRAWy = DRAWy - 25;
}
if (_global.winX == 680) {
DRAWx = DRAWx + 25;
} else if (_global.winX == 85) {
DRAWx = DRAWx - 25;
}
_root["tile" + _global.edraw]._x = DRAWx;
_root["tile" + _global.edraw]._y = DRAWy;
if ((((importanttile == false) && (_global.edraw > 4)) && (_root["tile" + (_global.edraw - 1)].tType == 1)) && (_root["tile" + (_global.edraw - 1)]._y > _root["tile" + _global.edraw]._y)) {
holdx = _root["tile" + (_global.edraw - 1)]._x;
holdy = _root["tile" + (_global.edraw - 1)]._y;
_root.removeMovieClip(["tile" + (_global.edraw - 1)]);
attachMovie("slanted", ["tile" + (_global.edraw - 1)], (100 + _global.edraw) - 1);
_root["tile" + (_global.edraw - 1)]._x = holdx;
_root["tile" + (_global.edraw - 1)]._y = holdy;
if (_global.winX == 85) {
_root["tile" + (_global.edraw - 1)]._xscale = -100;
}
}
if ((importanttile == false) && (random(100) < Math.floor(65 * _global.THECHANCE))) {
_root["tile" + _global.edraw]._y = 1000;
_global.jumpdef++;
}
if ((_root["tile" + _global.edraw].tType == 3) && (DRAWy > 180)) {
importanttile = true;
DRAWy = DRAWy - (((random(3) + 1) * 25) - (random(3) * 25));
}
if (_root["tile" + _global.edraw].tType == 4) {
_root["tile" + _global.edraw].MOVEbeg = DRAWy;
if (DRAWy < 250) {
_root["tile" + _global.edraw].MOVEend = random(200) + 250;
} else if (DRAWy >= 250) {
_root["tile" + _global.edraw].MOVEend = random(250) + 200;
}
if (_root["tile" + _global.edraw].MOVEbeg > _root["tile" + _global.edraw].MOVEend) {
_root["tile" + _global.edraw].MOVEdir = "down";
} else {
_root["tile" + _global.edraw].MOVEdir = "up";
}
if (_root["tile" + _global.edraw].MOVEend > miny) {
DRAWy = _root["tile" + _global.edraw].MOVEend;
}
}
if ((_global.partonscreen < _global.parts) && (importanttile == false)) {
i = 1;
while (i <= (random(6) + 1)) {
attachMovie("parttest", ["part" + _global.partonscreen], 500 + _global.partonscreen);
_root["part" + _global.partonscreen]._x = _root["tile" + _global.edraw]._x;
_root["part" + _global.partonscreen]._y = _root["tile" + _global.edraw]._y;
_root["part" + _global.partonscreen].xspeed = random(10) - random(10);
_root["part" + _global.partonscreen].yspeed = random(10) - random(20);
_global.partonscreen++;
if (_global.partonscreen >= (_global.parts - 2)) {
break;
}
i++;
}
}
_global.edraw++;
} else {
_global.isSet = true;
}
}
return(_global.isSet);
}
function slideEnd() {
if (_global.winX == 85) {
_root.winlight._y = (_root.tile2._y - (_root.tile2._height / 2)) + 10;
} else if (_global.winX == 680) {
_root.winlight._y = (_root.tile1._y - (_root.tile1._height / 2)) + 10;
}
_root.tile1._y = _root.tile1._y + ((_global.tile1_Pos - _root.tile1._y) / 15);
_root.tile2._y = _root.tile2._y + ((_global.tile2_Pos - _root.tile2._y) / 15);
}
function game() {
if (Key.isDown(80)) {
_root.overlaying.gotoAndStop(2);
_root.overlaying._x = -8;
_root.overlaying._y = -8;
_global.playGame = false;
}
_global.Itrack1++;
_global.Itrack2++;
if (_global.Itrack1 == 62) {
if (_global.Itrack1_stat == true) {
_global.Itrack1_stat = false;
} else {
_global.Itrack1_stat = true;
}
_global.Itrack1 = 0;
}
if (_global.Itrack2 == 62) {
if (_global.Itrack2_stat == true) {
_global.Itrack2_stat = false;
} else {
_global.Itrack2_stat = true;
}
_global.Itrack2 = 0;
}
if (_global.SPECIAL1 == true) {
lights();
} else if (_global.SPECIAL2 == true) {
wind();
}
_root.theScreen.screen_Level = _global.level;
_root.theScreen.screen_lives = _global.lives;
if ((_global.dying == true) && (_global.jumpstyle == 1)) {
if (_root.guy.xspeed > 0) {
_root.guy.xspeed = _root.guy.xspeed - 0.25;
} else if (_root.guy.xspeed < 0) {
_root.guy.xspeed = _root.guy.xspeed + 0.25;
}
}
if (_global.dead == true) {
_global.dead = false;
_global.dying = false;
_root.guy.xspeed = 0;
_root.guy.yspeed = 0;
_root.guy.grounded = true;
if (_global.winX == 680) {
_root.guy._y = (_global.tile1_Pos - (_root.tile1._height / 2)) - 50;
_root.guy._x = 40;
} else if (_global.winX == 85) {
_root.guy._y = (_global.tile2_Pos - (_root.tile2._height / 2)) - 50;
_root.guy._x = 700;
}
_global.lives--;
_root.theScreen.lifee.gotoAndPlay(5);
_root.guy.gotoAndPlay("spawn");
}
if (_global.partonscreen > 0) {
particle();
}
if (_global.roundReady != true) {
if (slide20 != 20) {
slideEnd();
slide20++;
}
if ((slide20 >= 20) && (_global.isSet == true)) {
_global.roundReady = true;
}
if ((_global.SPECIAL5 != true) && (_global.SPECIAL6 != true)) {
drawMap();
} else if (_global.SPECIAL5 == true) {
drawSnakeMap();
} else if (_global.SPECIAL6 == true) {
leapofaith(_global.spec6type);
}
}
firerain();
if (((_global.winX == 680) && (_root.guy._x >= _global.winX)) && (_root.tile2.hitTest(_root.guy._x, _root.guy._y + 15, true))) {
_global.roundWon = true;
_global.winX = 85;
_global.tile1_Pos = 350 + random(310);
_global.tile2_Pos = 350 + random(310);
DRAWx = 590;
DRAWy = ((25 + _global.tile2_Pos) - (_root.tile2._height / 2)) + random(500 - (_global.tile2_Pos - (_root.tile2._height / 2)));
DRAW_starty = (_global.tile2_Pos - (_root.tile2._height / 2)) + 60;
DRAW_endy = _global.tile1_Pos - (_root.tile1._height / 2);
_root.attachMovie("winlight", "winlight", 23);
_root.winlight._x = _root.tile2._x;
_root.winlight._y = _root.tile2._y - (_root.tile2._height / 2);
} else if (((_global.winX == 85) && (_root.guy._x <= _global.winX)) && (_root.tile1.hitTest(_root.guy._x, _root.guy._y + 15, true))) {
_global.roundWon = true;
_global.winX = 680;
_global.tile1_Pos = 350 + random(310);
_global.tile2_Pos = 350 + random(310);
DRAWx = 135;
DRAWy = ((25 + _global.tile1_Pos) - (_root.tile1._height / 2)) + random(500 - (_global.tile1_Pos - (_root.tile1._height / 2)));
DRAW_starty = (_global.tile1_Pos - (_root.tile1._height / 2)) + 60;
DRAW_endy = _global.tile2_Pos - (_root.tile2._height / 2);
_root.attachMovie("winlight", "winlight", 23);
_root.winlight._x = _root.tile1._x;
_root.winlight._y = _root.tile1._y - (_root.tile1._height / 2);
}
if (_global.roundWon == true) {
i = 3;
while (i <= 100) {
removeMovieClip(_root["tile" + i]);
i++;
}
i = 0;
while (i <= _global.parts) {
removeMovieClip(_root["part" + i]);
i++;
}
removeMovieClip(_root.darkcover);
removeMovieClip(_root.windcover);
_global.spikes = 0;
_global.partonscreen = 0;
slide20 = 0;
_global.blockCount = 3;
_global.level++;
if (_global.level <= 50) {
_root.theScreen.screen_taunt = _global.tauntArray[_global.level];
}
_root.theScreen.gear1.gotoAndPlay(2);
_root.theScreen.gear2.gotoAndPlay(2);
_global.SPECIAL1 = false;
_global.SPECIAL2 = false;
_global.SPECIAL3 = false;
_global.SPECIAL4 = false;
_global.SPECIAL5 = false;
_global.SPECIAL6 = false;
_global.faithcount = 0;
specchance = random(13);
if (specchance == 2) {
_global.SPECIAL1 = true;
_root.attachMovie("darkcover", "darkcover", 2323);
_root.darkcover._alpha = 95;
_root.theScreen.screen_spec = "Lights";
} else if (specchance == 3) {
_global.SPECIAL2 = true;
_root.attachMovie("wind", "windcover", 2323);
if (_global.winX == 680) {
_root.windcover.gotoAndPlay(15);
} else if (_global.winX == 85) {
_root.windcover.gotoAndPlay(1);
}
_root.theScreen.screen_spec = "Wind";
} else if (((specchance == 4) && (random(2) == 1)) && (_global.level > 10)) {
_global.SPECIAL3 = true;
_root.theScreen.screen_spec = "Illusion";
} else if ((specchance == 5) && (_global.level > 5)) {
_global.SPECIAL4 = true;
_root.theScreen.screen_spec = "Bounce";
} else if (((specchance == 6) && (random(2) == 1)) && (_global.level > 3)) {
_global.SPECIAL5 = true;
_global.tile1_Pos = 500;
DRAWy = 450;
_global.tile2_Pos = 500;
_root.theScreen.screen_spec = "Snake";
} else if ((specchance == 7) && (_global.level > 3)) {
_global.SPECIAL6 = true;
DRAWy = 300;
_global.spec6type = random(4) + 1;
if (_global.level <= 15) {
_global.faithlvl = 4;
} else if ((_global.level > 15) && (_global.level <= 25)) {
_global.faithlvl = 3;
} else if ((_global.level > 25) && (_global.level <= 40)) {
_global.faithlvl = 2;
} else if (_global.level > 40) {
_global.faithlvl = 1;
}
if (_global.winX == 680) {
_global.tile1_Pos = 350;
_global.tile2_Pos = 650;
DRAWx = 375 - ((_global.faithlvl - 1) * 25);
} else if (winX == 85) {
_global.tile1_Pos = 650;
_global.tile2_Pos = 350;
DRAWx = 375 + ((_global.faithlvl - 1) * 25);
}
_root.theScreen.screen_spec = "Leap";
} else {
_root.theScreen.screen_spec = "----";
}
if ((_global.lives <= 10) && ((_global.level % 10) == 0)) {
_global.lives++;
_root.theScreen.plusone.gotoAndPlay(2);
}
_global.isSet = false;
if (_global.level < 50) {
_global.THECHANCE = _global.level / 40;
} else if (_global.level >= 40) {
_global.THECHANCE = 0.99;
}
_global.roundReady = false;
_global.edraw = 3;
_global.ychange = (DRAW_endy - DRAW_starty) / 20;
_global.roundWon = false;
if (_global.level == 5) {
addfire();
}
if (_global.level == 10) {
addfire();
}
if (_global.level == 15) {
addfire();
}
if (_global.level == 20) {
addfire();
}
if (_global.level == 30) {
addfire();
}
if (_global.level == 40) {
addfire();
}
if (_global.level == 50) {
addfire();
addfire();
}
}
_root.fuck = _root.guy.grounded;
if ((_global.dying == false) && (_root.guy._currentframe < 120)) {
if ((Key.isDown(32) && (_root.guy.grounded == true)) && (_global.spaceisheld == false)) {
_root.guy.yspeed = _root.guy.yspeed - 12;
_root.guy._y = _root.guy._y - 15;
_root.guy.grounded = false;
_global.spaceisheld = true;
}
if (!Key.isDown(32)) {
_global.spaceisheld = false;
}
if ((_global.spaceisheld == true) && (_root.guy.grounded == false)) {
_root.guy.yspeed = _root.guy.yspeed + (_global.gravity / 3);
} else if ((_global.spaceisheld != true) && (_root.guy.grounded == false)) {
_root.guy.yspeed = _root.guy.yspeed + (_global.gravity / 1.2);
}
if (((_root.guy.grounded == false) && (_root.guy.yspeed < -5)) && ((_root.guy._currentframe < 120) | (_root.guy._currentframe > 36))) {
_root.guy.gotoAndPlay("jumping");
} else if (((_root.guy.grounded == true) && (_root.guy._currentframe > 22)) && (_root.guy._currentframe < 119)) {
_root.guy.gotoAndStop(1);
}
if (((_root.guy.grounded == false) && (_root.guy.yspeed > 5)) && (_root.guy._currentframe < 37)) {
_root.guy.gotoAndPlay("falling");
}
if (_root.guy.grounded == true) {
_root.guy.yspeed = 0;
}
}
if (_root.guy.xspeed > _global.speedLimit) {
_root.guy.xspeed = _global.speedLimit;
}
if (_root.guy.yspeed > (_global.speedLimit * 1.5)) {
_root.guy.yspeed = _global.speedLimit;
}
if (_root.guy.xspeed < (-_global.speedLimit)) {
_root.guy.xspeed = -_global.speedLimit;
}
if (((_root.guy._x + _root.guy.xspeed) < 8) | ((_root.guy._x + _root.guy.xspeed) > 740)) {
_root.guy.xspeed = 0;
}
if (((Math.abs(_root.guy.xspeed) > 0.7) && (_global.dying == false)) && (_root.guy._currentframe < 22)) {
_root.guy.play();
} else if (((_global.dying == false) && (_root.guy.grounded == true)) && (_root.guy._currentframe < 120)) {
_root.guy.gotoAndStop(1);
}
_root.guy._x = _root.guy._x + _root.guy.xspeed;
_root.guy._y = _root.guy._y + _root.guy.yspeed;
_root.guy.grounded = false;
_root.bbox._x = _root.guy._x;
_root.bbox._y = _root.guy._y;
i = 1;
while (i <= 60) {
if ((_root["tile" + i]._alpha == 100) && (_root["tile" + i].hitTest(_root.guy._x + 5, _root.guy._y + 5, true))) {
_root.guy.grounded = true;
}
if ((_root["tile" + i]._alpha == 100) && (_root["tile" + i].hitTest(_root.guy._x - 5, _root.guy._y + 5, true))) {
_root.guy.grounded = true;
}
if (_root["tile" + i]._alpha == 100) {
while (_root["tile" + i].hitTest(_root.bbox._x, _root.bbox._y, true)) {
_root.guy.yspeed = 0;
_root.guy._y--;
_root.bbox._y--;
_root.guy.grounded = true;
}
while (_root["tile" + i].hitTest(_root.bbox._x - (_root.bbox._width / 2), _root.bbox._y - (_root.bbox._height / 2), true)) {
_root.guy.xspeed = 0;
_root.guy._x++;
_root.bbox._x++;
}
while (_root["tile" + i].hitTest(_root.bbox._x + (_root.bbox._width / 2), _root.bbox._y - (_root.bbox._height / 2), true)) {
_root.guy.xspeed = 0;
_root.guy._x--;
_root.bbox._x--;
}
while (_root["tile" + i].hitTest(_root.bbox._x, (_root.bbox._y - _root.bbox._height) + 5, true)) {
_root.guy.yspeed = 0;
_root.guy._y++;
_root.bbox._y++;
}
}
if (_root["tile" + i].tType == 2) {
dissBlocks(_root["tile" + i]);
}
if ((_root["tile" + i].tType == 3) && (_root["tile" + i].hitTest(_root.guy._x, _root.guy._y + 5, true))) {
_global.spaceisheld = false;
_root.guy.yspeed = -24;
_root.guy.grounded = false;
_root.guy._y = _root.guy._y - 10;
}
if (_root["tile" + i].tType == 4) {
if (_root["tile" + i].MOVEbeg > _root["tile" + i].MOVEend) {
if (_root["tile" + i].MOVEdir == "down") {
_root["tile" + i]._y = _root["tile" + i]._y - 0.5;
if (_root["tile" + i]._y < _root["tile" + i].MOVEend) {
_root["tile" + i].MOVEdir = "up";
}
} else if (_root["tile" + i].MOVEdir == "up") {
_root["tile" + i]._y = _root["tile" + i]._y + 0.5;
if (_root["tile" + i]._y > _root["tile" + i].MOVEbeg) {
_root["tile" + i].MOVEdir = "down";
}
}
} else if (_root["tile" + i].MOVEbeg < _root["tile" + i].MOVEend) {
if (_root["tile" + i].MOVEdir == "down") {
_root["tile" + i]._y = _root["tile" + i]._y + 1;
if (_root["tile" + i]._y > _root["tile" + i].MOVEend) {
_root["tile" + i].MOVEdir = "up";
}
} else if (_root["tile" + i].MOVEdir == "up") {
_root["tile" + i]._y = _root["tile" + i]._y - 1;
if (_root["tile" + i]._y < _root["tile" + i].MOVEbeg) {
_root["tile" + i].MOVEdir = "down";
}
}
}
}
i++;
}
if ((_global.dying == false) && (_root.guy._currentframe < 120)) {
if (Key.isDown(65) | Key.isDown(37)) {
_root.guy.xspeed = _root.guy.xspeed - 1;
if (_root.guy.xspeed > 0) {
_root.guy.xspeed = 0;
}
_root.guy._xscale = -100;
} else if (Key.isDown(68) | Key.isDown(39)) {
if (_root.guy.xspeed < 0) {
_root.guy.xspeed = 0;
}
_root.guy.xspeed = _root.guy.xspeed + 1;
_root.guy._xscale = 100;
} else if (_root.guy.grounded == true) {
_root.guy.xspeed = 0;
} else if (_global.jumpstyle == 1) {
_root.guy.xspeed = 0;
} else if (_global.jumpstyle == 2) {
if (_root.guy.xspeed > 0) {
_root.guy.xspeed = _root.guy.xspeed - 0.25;
} else if (_root.guy.xspeed < 0) {
_root.guy.xspeed = _root.guy.xspeed + 0.25;
}
}
} else {
_root.guy.yspeed = _root.guy.yspeed + _global.gravity;
}
if (_root.guy._y > 510) {
_root.guy.xspeed = 0;
_root.guy.yspeed = 0;
_root.guy.grounded = true;
_global.dying = false;
if (_global.winX == 680) {
_root.guy._y = (_global.tile1_Pos - (_root.tile1._height / 2)) - 50;
_root.guy._x = 40;
} else if (_global.winX == 85) {
_root.guy._y = (_global.tile2_Pos - (_root.tile2._height / 2)) - 50;
_root.guy._x = 700;
}
_global.lives--;
_root.theScreen.lifee.gotoAndPlay(5);
_root.guy.gotoAndPlay("spawn");
}
if (_global.lives < 0) {
_global.playGame = false;
_root.overlaying._x = -8;
_root.overlaying._y = -8;
removeMovieClip(_root.guy);
i = 3;
while (i <= 100) {
removeMovieClip(_root["tile" + i]);
i++;
}
i = 0;
while (i <= _global.parts) {
removeMovieClip(_root["part" + i]);
i++;
}
i = 0;
while (i <= _global.fireballs) {
removeMovieClip(_root["fball" + i]);
i++;
}
removeMovieClip(_root.darkcover);
removeMovieClip(_root.windcover);
_global.roundReady = false;
_root.overlaying.gotoAndStop(3);
}
}
stop();
Instance of Symbol 187 MovieClip in Frame 4
onClipEvent (load) {
_root.attachMovie("overlaying", "overlaying", 4000);
}
onClipEvent (enterFrame) {
if (_global.jumpstyle == 1) {
_root.overlaying.JS = "Air momentum off.";
} else if (_global.jumpstyle == 2) {
_root.overlaying.JS = "Air momentum on.";
}
if (_global.playGame == true) {
_root.game();
}
}
Symbol 9 MovieClip [plusone] Frame 1
stop();
Symbol 9 MovieClip [plusone] Frame 26
gotoAndStop (1);
Symbol 26 MovieClip Frame 40
stop();
Symbol 40 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 41 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 16 MovieClip in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("lastframe");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 42 MovieClip Frame 101
play();
Symbol 42 MovieClip Frame 165
stop();
Symbol 48 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 54 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 56 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 190 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Instance of Symbol 65 MovieClip [hitbox] "hitbox" in Symbol 74 MovieClip [guy] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 74 MovieClip [guy] Frame 21
gotoAndPlay (2);
Symbol 74 MovieClip [guy] Frame 36
stop();
Symbol 74 MovieClip [guy] Frame 50
stop();
Symbol 74 MovieClip [guy] Frame 115
_global.dead = true;
_global.dying = false;
stop();
Symbol 74 MovieClip [guy] Frame 135
gotoAndStop (1);
Symbol 79 MovieClip Frame 15
stop();
Symbol 83 MovieClip [illBlock] Frame 1
stop();
Symbol 83 MovieClip [illBlock] Frame 2
stop();
Symbol 95 MovieClip [slanted] Frame 15
stop();
Symbol 99 MovieClip [winlight] Frame 16
this.removeMovieClip();
Instance of Symbol 65 MovieClip [hitbox] "hitbox" in Symbol 105 MovieClip [fireball] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 111 MovieClip [wind] Frame 11
gotoAndPlay (2);
Symbol 111 MovieClip [wind] Frame 25
gotoAndPlay (16);
Symbol 129 Button
on (release) {
if (_global.jumpstyle == 1) {
_global.jumpstyle = 2;
} else if (_global.jumpstyle == 2) {
_global.jumpstyle = 1;
}
}
Symbol 134 Button
on (release) {
getURL ("http://www.dead-tree.com", "blank");
}
Symbol 140 Button
on (release) {
_root.initGame();
_global.playGame = true;
_root.overlaying._x = 1000;
_root.overlaying._y = 1000;
}
Symbol 145 Button
on (release) {
_global.playGame = true;
_root.overlaying._x = 1000;
_root.overlaying._y = 1000;
}
Symbol 147 Button
on (release) {
if (_global.mus == false) {
_root.musicON();
_global.mus = true;
} else {
_root.musicOFF();
_global.mus = false;
}
}
Symbol 150 Button
on (release) {
_root.theScreen.screenMovie.gotoAndStop(1);
this.gotoAndStop(1);
}
Symbol 156 MovieClip [overlaying] Frame 1
stop();
Symbol 156 MovieClip [overlaying] Frame 2
stop();
Symbol 156 MovieClip [overlaying] Frame 3
wincounter = _global.level;
if (_global.level < 5) {
winvoicelol = "WORTHLESS";
} else if ((_global.level >= 5) && (_global.level < 10)) {
winvoicelol = "BEGINNER";
} else if ((_global.level >= 10) && (_global.level < 15)) {
winvoicelol = "TRAINEE";
} else if ((_global.level >= 15) && (_global.level < 20)) {
winvoicelol = "ACCEPTABLE";
} else if ((_global.level >= 20) && (_global.level < 25)) {
winvoicelol = "PROMISING";
} else if ((_global.level >= 25) && (_global.level < 30)) {
winvoicelol = "ADEPT";
} else if ((_global.level >= 30) && (_global.level < 35)) {
winvoicelol = "AMAZIZNG";
} else if ((_global.level >= 35) && (_global.level < 40)) {
winvoicelol = "HEROIC";
} else if ((_global.level >= 40) && (_global.level < 45)) {
winvoicelol = "MASTER";
} else if ((_global.level >= 45) && (_global.level < 50)) {
winvoicelol = "IMMORTAL";
} else if (_global.level >= 50) {
winvoicelol = "GODLY";
}
stop();
stopAllSounds();
Symbol 163 MovieClip Frame 1
stop();
Symbol 167 MovieClip [lifegem] Frame 1
stop();
Symbol 170 MovieClip Frame 1
stop();