Frame 1
function loadfr() {
i = 0;
portal = 0;
coins = 0;
bluekey = 0;
redkey = 0;
yellowkey = 0;
while (i < 510) {
map_array[i] = Number(String(maps_array[mapnum]).substr(i * 2, 2));
map["t_" + i].gotoAndStop(offset + map_array[i]);
map["t_" + i].tile.gotoAndPlay(1);
map["t_" + i].tile.num = i;
mclip.gotoAndPlay(1);
if ((map_array[i] > 22) && (map_array[i] < 26)) {
switch (map_array[i]) {
case 23 :
blues[bluekey] = i;
bluekey++;
break;
case 24 :
reds[redkey] = i;
redkey++;
break;
case 25 :
yellows[yellowkey] = i;
yellowkey++;
}
} else if (map_array[i] == 2) {
jr._x = (i % 30) * 16;
jr._y = ((i / 30) * 16) - 8;
gravity = 0;
hurt = false;
jumping = false;
jrmpy = ((jr._y + 16) - ((jr._y + 16) % 16)) / 16;
jrmpx = ((jr._x + 8) - ((jr._x + 8) % 16)) / 16;
} else if (map_array[i] == 5) {
coins++;
if (portal != 0) {
map["t_" + portal].gotoAndStop(offset + 1);
}
} else if (map_array[i] == 15) {
portal = i;
if (coins > 0) {
map["t_" + i].gotoAndStop(offset + 1);
}
}
i++;
}
}
function init() {
i = 0;
portal = 0;
coins = 0;
redkey = 0;
yellowkey = 0;
bluekey = 0;
while (i < 510) {
map_array[i] = Number(String(maps_array[mapnum]).substr(i * 2, 2));
map.attachMovie("tile", "t_" + i, i, {_x:Math.floor(i % 30) * 16, _y:Math.floor(i / 30) * 16});
map["t_" + i].gotoAndStop(offset + map_array[i]);
map["t_" + i].tile.num = i;
mclip.gotoAndPlay(1);
if ((map_array[i] > 22) && (map_array[i] < 26)) {
switch (map_array[i]) {
case 23 :
blues[bluekey] = i;
bluekey++;
break;
case 24 :
reds[redkey] = i;
redkey++;
break;
case 25 :
yellows[yellowkey] = i;
yellowkey++;
}
} else if (map_array[i] == 2) {
jr._x = (i % 30) * 16;
jr._y = ((i / 30) * 16) - 8;
jrmpy = (((jr._y + 17) + gravity) - (((jr._y + gravity) + 17) % 16)) / 16;
jrmpx = ((jr._x + 8) - ((jr._x + 8) % 16)) / 16;
} else if (map_array[i] == 5) {
coins++;
if (portal != 0) {
map["t_" + portal].gotoAndStop(offset + 1);
}
} else if (map_array[i] == 15) {
portal = i;
if (coins > 0) {
map["t_" + i].gotoAndStop(offset + 1);
}
}
i++;
}
}
function manipjump() {
if (otherwise) {
if (begin) {
if (phase == 0) {
ldbg.pl.gotoAndStop(l);
health = maxhealth;
offset = 0;
healthb.health._width = (80 * (health / maxhealth)) - ((80 * (health / maxhealth)) % 1);
if (select == 10) {
l = ldbg.pl._currentframe;
if (Key.isDown(39)) {
phase = 3;
ldbg.gotoAndPlay(49);
} else if (Key.isDown(37)) {
phase = 2;
ldbg.gotoAndPlay(25);
} else if (Key.isDown(38)) {
ldbg.pl.prevFrame();
depth = jr.getDepth();
jr.removeMovieClip();
l = ldbg.pl._currentframe;
_root.attachMovie("char" + l, "jr", depth);
jr.stop();
b = jr._height;
jr._height = ((b > jr._width) ? 16 : ((16 / jr._width) * b));
jr._width = ((b > jr._width) ? ((16 / b) * jr._width) : 16);
select = 0;
} else if (Key.isDown(40)) {
ldbg.pl.nextFrame();
depth = jr.getDepth();
jr.removeMovieClip();
l = ldbg.pl._currentframe;
_root.attachMovie("char" + l, "jr", depth);
jr.stop();
b = jr._height;
jr._height = ((b > jr._width) ? 16 : ((16 / jr._width) * b));
jr._width = ((b > jr._width) ? ((16 / b) * jr._width) : 16);
select = 0;
}
} else {
select++;
}
} else if (phase == 1) {
if (ldbg._currentframe == 3) {
mapnum = testmap;
init();
}
if (ldbg._currentframe == 24) {
ldbg._visible = false;
otherwise = false;
begin = false;
}
} else if (phase == 2) {
if (ldbg._currentframe == 26) {
mapnum = maps_array.length - 4;
challenge = true;
init();
} else if (ldbg._currentframe == 48) {
ldbg._visible = false;
otherwise = false;
begin = false;
timer = 0;
lives = 0;
}
} else if (phase == 3) {
if (ldbg._currentframe == 50) {
mapnum = 0;
init();
} else if (ldbg._currentframe == 72) {
ldbg._visible = false;
otherwise = false;
begin = false;
}
}
} else if (win) {
if (ldmp._currentframe < 23) {
ldmp.play();
ldmp._visible = true;
played_array[mapnum] = true;
} else if (ldmp._currentframe == 23) {
if ((phase == 1) || (phase == 2)) {
if (challenge) {
if (mapnum < (maps_array.length - 1)) {
mapnum++;
offset = ((offset == 30) ? 0 : 30);
ldmp.gotoAndPlay(24);
loadfr();
} else {
otherwise = true;
win = false;
ldmp.gotoAndStop(1);
ldmp._visible = false;
begin = true;
ldbg.gotoAndPlay(73);
ldbg._visible = true;
phase = 5;
ldbg.liveslost.text = ("You lost " + lives) + ((lives == 1) ? " life" : " lives");
ldbg.timelost.text = "Your time is " + timer;
}
} else {
otherwise = true;
win = false;
ldmp.gotoAndStop(1);
ldmp._visible = false;
begin = true;
ldbg.gotoAndStop(1);
ldbg._visible = true;
phase = 0;
}
} else {
i = (j = 0);
do {
if (!played_array[i]) {
break;
}
i = Math.floor(Math.random() * (maps_array.length - 5));
j++;
} while (j < 20);
offset = ((Math.floor(Math.random() * 2) == 1) ? 30 : 0);
mapnum = i;
ldmp.gotoAndPlay(24);
loadfr();
}
} else if (ldmp._currentframe == 30) {
ldmp.leveldata.text = String(maps_array[mapnum]).substr(1021, String(maps_array[mapnum]).length);
ldmp.play();
} else if (ldmp._currentframe == ldmp._totalframes) {
otherwise = false;
win = false;
ldmp._visible = false;
if (!challenge) {
health = maxhealth;
healthb.health._width = (80 * (health / maxhealth)) - ((80 * (health / maxhealth)) % 1);
}
}
} else {
lddd._visible = true;
if (lddd._currentframe < 22) {
lddd.play();
} else if (lddd._currentframe == 22) {
if (Key.isDown(38)) {
otherwise = true;
win = false;
lddd.gotoAndStop(1);
lddd._visible = false;
begin = true;
ldbg.gotoAndStop(1);
ldbg._visible = true;
challenge = false;
phase = 0;
}
} else if (lddd._currentframe == 25) {
lddd.gotoAndPlay(26);
loadfr();
} else if (lddd._currentframe == lddd._totalframes) {
lives++;
lddd._visible = false;
otherwise = false;
health = maxhealth;
healthb.health._width = (80 * (health / maxhealth)) - ((80 * (health / maxhealth)) % 1);
}
}
} else {
if ((mclip._currentframe % 15) == 0) {
if (mclip._currentframe < 20) {
cycle = 17;
} else {
cycle = 16;
}
}
if (hurt) {
healthb.health._width = (80 * (health / maxhealth)) - ((80 * (health / maxhealth)) % 1);
if (right) {
yf = (((jr._y + 12) - ((jr._y + 12) % 16)) / 16) * 30;
xf = ((jr._x + 16) - ((jr._x + 16) % 16)) / 16;
yf2 = ((jr._y - (jr._y % 16)) / 16) * 30;
if ((((map_array[yf + xf] < cloud) && (map_array[yf2 + xf] < cloud)) && (map_array[yf + xf] != cycle)) && (map_array[yf2 + xf] != cycle)) {
jr._x = jr._x + 2;
}
} else {
yf = (((jr._y + 12) - ((jr._y + 12) % 16)) / 16) * 30;
xf = (jr._x - (jr._x % 16)) / 16;
yf2 = ((jr._y - (jr._y % 16)) / 16) * 30;
if ((((map_array[yf + xf] < cloud) && (map_array[yf2 + xf] < cloud)) && (map_array[yf + xf] != cycle)) && (map_array[yf2 + xf] != cycle)) {
jr._x = jr._x - 2;
}
if (!jumping) {
if ((map_array[(jrmpy * 30) + jrmpx] < (walkable + 1)) && (map_array[(jrmpy * 30) + jrmpx] != cycle)) {
jumping = true;
gravity = 0;
}
}
}
count--;
if (count == 0) {
hurt = false;
count = 6;
jumping = false;
gravity = 0;
jr.gotoAndStop(1 + Number(right));
jrmpx = ((jr._x + 8) - ((jr._x + 8) % 16)) / 16;
}
} else {
jrmpy = (((jr._y + 17) + gravity) - (((jr._y + gravity) + 17) % 16)) / 16;
jrtpy = ((jr._y + gravity) - ((jr._y + gravity) % 16)) / 16;
jrrpy = ((jr._y + 8) - ((jr._y + 8) % 16)) / 16;
if (Key.isDown(39)) {
right = true;
yf = (((jr._y + 12) - ((jr._y + 12) % 16)) / 16) * 30;
xf = ((jr._x + 16) - ((jr._x + 16) % 16)) / 16;
yf2 = ((jr._y - (jr._y % 16)) / 16) * 30;
if ((((map_array[yf + xf] < cloud) && (map_array[yf2 + xf] < cloud)) && (map_array[yf + xf] != cycle)) && (map_array[yf2 + xf] != cycle)) {
jr._x = jr._x + 3;
}
jrmpx = ((jr._x + 8) - ((jr._x + 8) % 16)) / 16;
if (!jumping) {
jr.gotoAndStop(4);
} else {
jr.gotoAndStop(6);
}
} else if (Key.isDown(37)) {
right = false;
yf = (((jr._y + 12) - ((jr._y + 12) % 16)) / 16) * 30;
xf = (jr._x - (jr._x % 16)) / 16;
yf2 = ((jr._y - (jr._y % 16)) / 16) * 30;
if ((((map_array[yf + xf] < cloud) && (map_array[yf2 + xf] < cloud)) && (map_array[yf + xf] != cycle)) && (map_array[yf2 + xf] != cycle)) {
jr._x = jr._x - 3;
}
jrmpx = ((jr._x + 8) - ((jr._x + 8) % 16)) / 16;
if (!jumping) {
jr.gotoAndStop(3);
} else {
jr.gotoAndStop(5);
}
} else if (!jumping) {
jr.gotoAndStop((right ? 2 : 1));
}
if (!jumping) {
if ((map_array[(jrmpy * 30) + jrmpx] < (walkable + 1)) && (map_array[(jrmpy * 30) + jrmpx] != cycle)) {
jr.gotoAndStop(5 + Number(right));
jumping = true;
gravity = 0;
}
}
if (map_array[((((jr._y + 8) - ((jr._y + 8) % 16)) / 16) * 30) + jrmpx] > 4) {
switch (map_array[((((jr._y + 8) - ((jr._y + 8) % 16)) / 16) * 30) + jrmpx]) {
case 5 :
map["t_" + (((((jr._y + 8) - ((jr._y + 8) % 16)) / 16) * 30) + jrmpx)].gotoAndStop(offset + 1);
map_array[((((jr._y + 8) - ((jr._y + 8) % 16)) / 16) * 30) + jrmpx] = 1;
coins--;
if (coins == 0) {
map["t_" + portal].gotoAndStop(offset + 15);
}
break;
case 6 :
health = health - 4;
hurt = true;
right = (jr._x % 16) < 8;
jr.gotoAndStop(7 + Number(!right));
break;
case 7 :
otherwise = true;
jr.gotoAndStop(7 + Number(!right));
break;
case 8 :
if (cycle == 16) {
health = health - 4;
hurt = true;
right = (jr._x % 16) < 8;
jr.gotoAndStop(7 + Number(!right));
}
break;
case 9 :
if (cycle == 17) {
health = health - 4;
hurt = true;
right = (jr._x % 16) < 8;
jr.gotoAndStop(7 + Number(!right));
}
break;
case 10 :
i = 0;
while (i < bluekey) {
map["t_" + blues[i]].tile.play();
i++;
}
map["t_" + (((((jr._y + 8) - ((jr._y + 8) % 16)) / 16) * 30) + jrmpx)].gotoAndStop(offset + 2);
map_array[((((jr._y + 8) - ((jr._y + 8) % 16)) / 16) * 30) + jrmpx] = 1;
break;
case 11 :
i = 0;
while (i < redkey) {
map["t_" + reds[i]].tile.play();
i++;
}
map["t_" + (((((jr._y + 8) - ((jr._y + 8) % 16)) / 16) * 30) + jrmpx)].gotoAndStop(offset + 2);
map_array[((((jr._y + 8) - ((jr._y + 8) % 16)) / 16) * 30) + jrmpx] = 1;
break;
case 12 :
i = 0;
while (i < yellowkey) {
map["t_" + yellows[i]].tile.play();
i++;
}
map["t_" + (((((jr._y + 8) - ((jr._y + 8) % 16)) / 16) * 30) + jrmpx)].gotoAndStop(offset + 2);
map_array[((((jr._y + 8) - ((jr._y + 8) % 16)) / 16) * 30) + jrmpx] = 1;
break;
case 13 :
breaking++;
if (breaking == 10) {
map["t_" + (((((jr._y + 8) - ((jr._y + 8) % 16)) / 16) * 30) + jrmpx)].gotoAndStop(offset + 1);
map_array[((((jr._y + 8) - ((jr._y + 8) % 16)) / 16) * 30) + jrmpx] = 1;
map["t_" + ((((((jr._y + 8) - ((jr._y + 8) % 16)) / 16) + 1) * 30) + jrmpx)].gotoAndStop(offset + 1);
map_array[(((((jr._y + 8) - ((jr._y + 8) % 16)) / 16) + 1) * 30) + jrmpx] = 1;
}
break;
case 14 :
jumping = true;
gravity = -12;
jr.gotoAndStop(5 + Number(right));
break;
case 15 :
if (coins != 0) {
break;
}
otherwise = true;
win = true;
}
otherwise = ((health <= 0) ? true : (otherwise));
} else {
breaking = 0;
}
if (jumping) {
gravity = ((gravity < 8) ? (gravity + vel) : (gravity));
jr._y = jr._y + gravity;
if (gravity > 0) {
if (map_array[(jrmpy * 30) + jrmpx] > 13) {
if ((map_array[(jrmpy * 30) + jrmpx] > (cloud - 1)) || (map_array[(jrmpy * 30) + jrmpx] == cycle)) {
jumping = false;
jr._y = (jrmpy - 1) * 16;
} else {
if ((map_array[((((jr._y + 12) - ((jr._y + 12) % 16)) / 16) * 30) + jrmpx] > (cloud - 1)) || (map_array[((((jr._y + 12) - ((jr._y + 12) % 16)) / 16) * 30) + jrmpx] == cycle)) {
jr._y = (jrmpy - 1) * 16;
jumping = false;
} else {
jumping = false;
}
if ((map_array[((((jr._y + 12) - ((jr._y + 12) % 16)) / 16) * 30) + jrmpx] != cycle) && (map_array[((((jr._y + 12) - ((jr._y + 12) % 16)) / 16) * 30) + jrmpx] < (walkable + 1))) {
jumping = true;
}
}
}
} else if ((map_array[(jrtpy * 30) + jrmpx] > cloud) || (map_array[(jrtpy * 30) + jrmpx] == cycle)) {
gravity = 0;
jr._y = (jrtpy + 1) * 16;
}
}
timer++;
}
}
}
_quality = "low";
jumping = false;
gravity = 0;
vel = 0.5;
count = 6;
testmap = 0;
otherwise = true;
select = 0;
mclip.stop();
offset = 0;
ldmp._visible = (lddd._visible = false);
health = 40;
maxhealth = 40;
breaking = 0;
phase = 0;
portal = 0;
mapnum = 4;
offset = 0;
iter = 1;
begin = true;
otherwise = true;
win = false;
bluekey = (redkey = (yellowkey = 0));
coins = 0;
hurt = false;
walkable = 17;
cloud = 23;
i = (j = (l = (b = (a = (c = (x = 0))))));
blues = new Array(10);
reds = new Array(10);
yellows = new Array(10);
played_array = Array(false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
maps_array = Array(["303030303030303030303030303030303030303030303030303030303030300101010101010101010101010101010101010101010101010101010130300101010101010901080101260101010101010101010101010101010130300101010301010901080101270101060101010101010101030101010130300101303030303030303030303030303030222222223030303001010130300121300101010101010130010101010101010101010101013001011730300101300101010104040430010101010101010101010101013001010130302101300101010113131330010101010101010101010101013016010130300101300101013030303030010101010101010101010101013001010130300101010101013004040401010101010101011501010101013019182030300101010101013001010101010505050505050505050103013001010130303030303030303030303030303030303030303030303030303001010130300101010123010101012401010101010101010101010101010101010130300101100123011211012401010101010101010101010101010101010130300201010123010101012501010501012601010101012601010101010130300101010123010301012501010101032701070701012701010101140130303030303030303030303030303030303030303030303030303030303030:Tutorial-crimsonhotsun"], ["303030303030303030303030303030303030303030303030303030303030260201010101010101010101013001012801010101010101010101010126282929161716172929290101013001012812010101010101010101010128280130070707073001010101303001012819182001010101010101010128281030303030303001010130301101012801010113010101010101010128280101090101080101013030010101012801013030300121010101010128280101260301260103303001012101012801013007300101010101010128280130303030303030300101010101012701013030300101010101010128280101010130010101010101010101212401010101010101010121010128280103010130010101010101012101012601260106010101010101010128283030300130010101010101010101012801270126260121010101010128280101010930010101010101191818202801010127270101010101010128280101013030012301010801010101012801010101010101010101252928280130303001012601012601010101012801010101010101010129011528280801010101012801012801010101012801010101010101010129292928272601010301012807072803010101012801010103010101010301010127303030303030303030303030303030303007070730070707073007070730:The Gauntlet-crimsonhotsun"], ["303030303030303030303030303030303030303030303030303030303030300404050101010101010101012601010101010130010101010101010130300201010101010101010101012801303030303030010101010101010130302626292929010101010101012801301504040405040501010101010130302727010129292929292929012801303030303030300101010101010130301024010101010101010101012801010101010101010125010101010130300126010119181818181820012801010101010101010101010101120130300828013030303030070121012801010101010101010101040404210530302028011101010101300707072801010101010101010101010101010130300828170101010101013030302801010104040405010101010101010130302028010101010101010101012801010101010101010101010101210130300928010101010101010101012801010101010101010101010101010130302028010103010101010101012801010101170101010101011701010130300827303030303001010101012801010101010101010101010101010130300117010101050101010101012701160101010101011601010101010130300116010101090101010103012301010101010101010101010101010130303030303007300730303030303030070707070707070707070707070730:Black Mesa-crimsonhotsun"], ["303030303030303030303030303030303030303030303030303030303030070201010126010101010101120101010101010130010101010101010126260101010128010101010101010130010101010130010101010101010128273030010128010101010101010130010101010130010101010101010128303010260128010101010101010130011701010130010101010101010127303016270128010101010101010130010101010130010108010101302515300124010128010101010101010129010101010130010126010101261626300101010128010101010101010101011601010130010127010101270128300117010128010101010101170126010101010130010101210101010128300101010128010101010101010128010101010130010101010101010128300101010128010101010101010128010101010130010101012101010128300116010128010101010101160128010101010130010101010101080128300101010127010101010101010128010101010101011701010119182028300301010123010101080101010128010101010101012601010101210128303030261126010101260101260127010126010101012801010101010128010101281628010101280101280101010128011601012801010101070128010101280728070707280707280707070728070707072826262626260730:Impalement Room-crimsonhotsun"], ["303030303030303030303030303030303030303030303030303030303030260101303030040501010117303030300101100101013030303030010126280101022601300101080101062601010129292901010101260101010128280103012811080901300601012801010101010101010101280101010128280830302826090901010101062801010101010101010101280101010128281601012827210404050601012801010126010101080101280101010128280101012801010101010101062801011427090101260101280130010128280701012801030101070601032701013030300101280101280122220128283030162801303030303001303030033001300707272501280101010927280101012701300101010101010130303001303030303001283030010130280101303030300101010114010126010101303030303001273015030130280101010101060101010121260128010101010101010103303030300130281601303001060101010101280128012416171617163030303001010126280701010405060101011701281727012601010101010101013001010128283016173030060116010701280101012801010101010101012301010128270109011601010101013001280101012814120101300130303030011427300730073030300707070730273030302730070707070730010101303030:Compartmentalize-crimsonhotsun"], ["303030303030303030303030303030303030303030303030303030303030302901010501010105010101050101010501010105010101050101012930300112011601030101010110160101010101010116010301010124251530300129090701300907012901070929010709290107093009070129232930300101013001010130010101300101013001010130010101300101010130300101010101010101010101010101010101010101010101010101010130300101010101010101010101010101010101010101010101010101010130301401140114011401140114011401140114011401140114011401140130302101210121012101210121012101210121012101210121012101210130300101010101010101010102010101010101010101010101010101010130300101010101010101010101010101010106010101010101010101010130300101040401010101010105010101010111010101010104040101010130300101220101010101010126010101010126010101010101220101010130300101010101010101010128010101010128010101010101010101010130300101010101010101010128010101010128010101010101010101010130300101010101010101010127010101010127010101010101010101010130300714071407140714071407140714071407140714071407140714071430:Spring low, sweet chariot-crimsonhotsun"], ["303030303030303030303030303030303030303030303030303030303030261205050125010101010101010101010101010101010404010101010126283030301726171616171716160101010101230101010101040101010128280101010128010101010101010501012101260101010101010101050528280101010128040404010101010501010101280101010101010121171728280101011428010101010101303001010101270101010117010101010128280101013028010101010105010101010101010101010101010101010128280101010128010101010105010101010101010101010101010101010128280117170128050606010105010101010101010101010116010101010128280116160128050101303030010101010101010101010101010104040428280101010128050101010101010404040401010101010101010101010128280101010128050101010101010101010101010121010117010101010128280101010128050101010101010101010101010101010101010101010128280101010128051918181818181820010101160101010103010101010128280101010228050101010101010101010101010101010130301414101428271401011528010301030101040404010101030101010101303030303027303007073027303030303007070707070707300707070707070707070730:Sickle Bridge-crimsonhotsun"], ["261501010101010101010101010101010101010101010101010101011126280101010101010101010101010101010101010901010101010101010128280101010101010101010101010101010301010901010101010101010128280201161601010101171701010103303001010901010101010101010128283016171716010117161617010130303030010901161601171701010128280116171716010117161617010130303030010901171701161601010128280101161601010101171701010101303001010901010101010101010128280101010101010101010101010101010101010901010101010101010128280101010101010101010101010101010101010101010101010126062428280606061406060606140606060606060606060606060606060628011628280101013001010101300101010101010101010101010101010128010128280105010101010101010101010101010101010101010101010128010128280101010101010101010101010101010101010101010101010128011728280101010101010101010129010129010129010129010129010127010128280129010101010101010101010101010101010101010103010101030128270101042901012904012901040101010104010101010430300430303027300707140707070714070707140707070714070707071407071407070730:Planetized-crimsonhotsun"], ["010101010101010101010101010101010101010101010101010101010101260201010101010101010101010101010101010101010101010101010101280101010404040101010130303030010101010101010101040404040126280101010101010101013006010101300101010101010101010101010128280101010101010101301106010101013001010101010101010101010128280101010101010130120101010701010130010101010101010101010128282929292929013030303030303030300101300129292929290101010528280101010101240101010101010101010101300101010101010105210128280504040505013001050105050505010501300101010101010101010528280505050505213001303030303030303030300101010101010101010128280505050505013001010809080908010101300101011001010101210128282929292929253030303030303030300101300129292929290101010128280101010101010130010101010101010130010101010101010101010128280101010101010101230101010101013001010101010101010101210128280101010101010101013030303030300101010101010101010101010128270101030101140301010101011501010101010301030101010103010127303030303030303030303030303030303030303030303030303030303030:Circleplex-crimsonhotsun"], ["303030303030303030303030303030303030303030303030303030303030260606060606010101010606060601010101010101010101010101010106280601010101010101010101010601010101010101010101010101010106280601010101010101010101010601161630303030010101010101010106280601063001011701160101170601010101060101010101010101010106280601060606060606060101010601010101060101010101010101010106280601060101010101060101010601010101060130303030303030300106280601060105011101060101010614010101060801010101010101010806280601060608090806060101010621060101060101010101010101010106280601060101010101010130010606010101062626262601012626262606280614060130303030303006060601010101062728282810122828282706280601060106060606060606010601010606060127282801012828270106280601060101010101010101010601010106060106272801012827060106280601060101010101010101012401010101060106012701012701060106280601060617010117060616010601140101060125010101010101231506270214060606010606060606060626300606060601010105050101010606303030303030303030303030303030303030303030303030303030303030:Sea of Fire-crimsonhotsun"], ["303030303030303030303030303030303001010101010101010101010101260101010101010101010126010101010101010101010101010101010126280130300101010101010128010101010101010101010101010101010128280101013030010101010127010101010101010101010101010101010128280101030101300101010323010303161617171616171716161717010128280103300101060101303030303030010101010101010101010101010128280130050102060101010101010101260707070707070707070707010128280130303030300130303030260101283030303030303030303030090828281430100505300130110101280101280501080109010101010101010128283001030505300130300103280130281918181818182001010101262628283001260130010101010330280101280101010101010101012626282828283001280124010303013001270101280101010101262626262827272728283001273030303030300505053001280101262626272727272701011528280101010101010101010505050101270101272727010101010101013028280101010101010101010101013030010125010101010101010101010128270101010101010101303030301205050130010101010129011616171727303030070707303030010101303030303030303030303007070707070730:Snake Cage-crimsonhotsun"], ["010101260104040101010101010101010101010101010101010101010101260101280101010101010404040404010101010101010101010101013001280101280101010124010101010101010104040401010101010101013001281201280826010124010101010101010101303030303030171717173001282601280128170824010104040401011717300104040401010101013001282801271728080124010101010101010101300101010101010101013001282701010127010124090101010116170808301616303030303030303001283030303030303030300101010101010101300101010404010101013001280101010101010130010101010101011616300101010101010101013001270201040404010130010101010101010101303030303030303017173030303030010401010124010126303001013030300101010101010101010130013001131303010124010128050130013001010101040404040101010130013030303030010124070128010530013030303030303001012525252530013005241030302324300128052116013001010101010101012501010130013030303030010123011427010101143011010108010101012501150130010101010130030123013001010101300101010129010126012501260130040404040401303030303030303030303030070707070730303030303030:Parthenon-crimsonhotsun"], ["280101010101280101010101280101010101010101013030303030303028280101110101280101100101280101010101010101010601121601013028280101010101280101010101280101010101010101010601013001013028280101010101280101010101282101010101010101010601053001013028281717260909280101260101280101260501010101010625013025253028280101280101281717280101280107280517170101010601013001013028280101281701280101280101280130280501010101010605013001013028281616280808280101280808280101280105010101010601253025253028280101280101281616280101280101280105161601010601013001013028280101280116280101280101280101280105010101010601053001013028281717280909280101280101280701280101050101010625013001013028280101280101281717280909283001280101051717010601013025253028280101281701280101280101280114280101050101010605013001013028281616280808270101280101271920280121010501010601253001013028280101280101241616280101230101280101010516163018183001013028270201270101240101280101230101270101010501010101013005153027303030303030300707271414300707300707073030303030303030303030:Skyward Ho!-crimsonhotsun"], ["303030303030303030303030303030303030303030303030303030303030300110300111013001010101030130010512013001010101013015010130301616301616163016161616300130161616163001050130013021010530300101300101013008080808300130010101013001051730013021010630300101300101013001010101300130010101013001050130013019182030301717301717173017171717300130171717173016050130083001010130300101300101013009090909300130010101013001050130013007010130300101300101013001010101300130010101013001051730013030161630301616301616163016161616300130161616163001050130013001010130300101300101013008080808300130010101013016050130013001010130300101300101013001010101300130010101013001050130013001070730301717301717173017171717300130171717173001051730093001303030300101300101013009090909300130010101013001050130013001010130300101300101013001010101300130010101013016050130013001010130301616301616163016161616300101161616162501050130013001010130300201230103012401060606300103010101012503010330030114010130303030303030303030303030303030070707073030303030303030070730:Elevators-crimsonhotsun"], ["303030303030303030303030303030303030303030303030303030303030260601010101011001010101012409092401010101011501010101010626282601010101171601010101010226260101010101011617010101012628282726010101070707010101012627272601010101070707010101262728280127260101303030010101262724242726010101303030010126270128280101282601010101010126280124240128260101010101012628010128282101272826010101012628270124240127282601010101262827012128281205012828262323262828010124240101282826232326282801051128280101052728282323282827010130300101272828232328282705010128280101010528280101282801010130300101012828010128280501011728280808010127280101282701010130300101012728010128270101010128280101010101280101280101043030303004010128010128010101080828280101012101270101270101133005053013010127010127010101013028280909010101010121010101303025253030010101210101010101300128280101010101010101010130252525252513160101010101010101300128271401010101011401010130303030303030010101010101010130010127303030070707303030300730303030303030300730303030070730303030:Altar of a Sunrise-crimsonhotsun"], ["303030303030303030303030303030303030303030303030303030303030303030303011010101050101303030150101010101010101303030303030301001020130303003010101013030303001010404040404040101303030303030010801010130050104042230010117010101010101010101013030303030303003090130300301010130010606010101011601010101013030303001010130300130053001010124010606061601010616010101010130300501010101010830013001160124012505060605010601010101010130300801010101010830013001010124012525060617010601011918182030300501010309010130013001010124010507060707070707070707010130303023233030303030010101170124012130013030303030303030252530303023232301010101140101010124010101010101010101010530011630303023232301010404210101010124010101170101050104040130010130300530232301010101010101160130011701010101210101220501010130300901300101010101010101010130010101010101010404012101011730302001013001011601011701210130120505010701010101010101010130300103010801010101010104042230161616213016011601170116010130303030303030070707070707070730070707070707070707070707070730:Emprovise-crimsonhotsun:"], ["262727272727272727272727282727272727272727272727272727272726280101010101010101010101280101010101010101010101010101010128280101010101010101010101280101010101010101010101010101011028280101171716161717161601281601261616171701161617171616011728280101010707070707070101280101280101010101010101010101010128281601073030303030300101280101280101010101010101010101010128280101260101010101010101280117280101010101010101010101010128280101280101010101010101280101280101010101010101010101010128281701280101010101011616281601280707080808080808080808070728280101280116010117010101280101283030232323232323232323303028280101280101010101010107270117281130010101010101010107301528280116280107070707070730010101280505300101010101010730050528280101280130303030303001010101280505053001010101073005050528280101280101010101010101011616280505050530010101300505050528280117280101010101010117170101280101010101010101242424012128280201282116161717161601010101280119181818201616171724010128272626260707070707070707070707281407070707070707070726262627:Theater of Beams-crimsonhotsun"], ["283030303030303030303030303030303030303030303030303030303028281224100505010505010505010505010505010505010505010505010128282530303030303030303030303030303030303030303030303030300128280101010901080109010801090108010901080109010801090108010128280130303030303030303030303030303030303030303030303030303028280109010108010109010108010109010108010109010108010101010128283030303030303030303030303030303030303030303030303030300128280101090101010801010109010101080101010901010108010101090128280130303030303030303030303030303030303030303030303030303028280901081601010109010816010101010901081601010101010101010128283030303030303030303030303030303030303030303030303030240128280101030303050303030303050303030303050303030303030303030128280123303030303030303030303030303030303030303030303030302428281408010901080109010801090108010901080101010801010101010128283030303030303030303030303030303030303030303030302318182028281525020101010101010101010101010101010101010101010101231128283030303030303030303030303030303030303030303030303030303028:Lazy Zigzag-crimsonhotsun"], ["260101010101010101010101010101010101010404040430303030303026280101010505050505050505010101010505050505050501011024153028280101011617171616171716161617171616161717161617173030303028280101160101010101010707070707070707070707070707070707070728280105010606060606063030303030303030303030303030303030303028280117060101010101010101010101010101010101010101010101010128280105010101010101010505050101010101010105050501010101010128281601010101010101010101010101010101010101010101010101010128280116171717161617171716161717171616161717161617171616010128280707070707070707070707070703070707070707070707070707012128283030303030303030303030303030303030303030303030303030010128280101010101010101010101010404040101010101010101010101160128280101040404040101010101010101010101010101010101010101010128280201080109010108010109010108010109010108010109010108010128282607260723070730070730070730070730070730070730070730071628282826282611232301010101010101010101010101010101010101012328272727272730262626262626262626262626262626262626262626262627:Boomerang Flight-crimsonhotsun"], ["303030303030303030303030303030303030303030303030303030303030303001010101010101010125010101010123010101010101010101013030300112090101010101010125010105010123010101010101010101010130300109010101010109010125010110010123010101010101010101050130300101080101010809010125010124010123010101010101010101050130300116170101010801090125010124010123010101010101010101050130300101010109093030303030242430242430303030303030010101050130300101010116010101010126010124010126010101010101010101050130300101010101191818182028010124010128050505050505050505050130300101010101010101010128010124010128050505050505050505050130300101010116160101010128010124010128010101010101010101050130300101171701010101010128010101010128012101210121012101050130300101010101010101010128013001300128010101010101010101050130300101010101010101010128013013300128050505050505050505010130300101161617170101010128193030302028010101010101010101300130300101010101010101010227013011300127140114011401140114301530300707070707070707073030303030303030303030303030303030303030:Lift High the Cross-crimsonhotsun"], ["292929292929292929292929292902292929292929292929292929292929290101010101010101010101010101010101010101010101010101010129290101010101010101010101010101010101010101010115010101010129291101100101010101010101010101010101010101010101010111011029292323232323232323232323232324242424242424242424242424242429290101010101010101010101010101010101010101010101010101010129290101010101010101010101010101010601010101010101010101010129290101010101010106010101010101010101010101010601010101010129290101010101010101010101010101010101010101010101060101010129290101010101010101010101010101010101010101010101010101010129290101010106010101010101010601010101010101010101010101010129290101010101010101010101010101010101010101060101010101060129290901010101010101010101010101010101010101010101010101010929292901010101010101010106010101010101060101010101010101012929290101010101010101010101010101010101010101010101060101010129290707070707070707070707070715150707070707070707070707070729292929292929292929292929292929292929292929292929292929292929:Choices...-nothing"], ["303030303002303030303030303030303030303030303030303030303030300101010101010101010101010601010101010101010101010101010130302626262626262501010101010101010101010101010101010101060130302727272727270101010101010101300101010101060101060101010130300101060101010101010101060101060101010101010101010106010630300101010101010101010101010101010101012501010101010101010130300101010101250101013001010101010101010101010101010101010630300106010601010101010101010601060101010101010101060101010130300101060101010101010101010101010101010130010101010101060130300601010101010601010601011601010601010101010601010101010130300101010130010101010101010101010101010101060101010106010130300606010101010101010106010106011401010101010101010101010130300114060106010106011601010101010101010101010106010101010130300606010101140101010101011601010101010601010101060101010130300101010601010601010116010101010130010101011401010101010130300106010106010101010101011616161601010101060101010101011530301407070707141406141414140707070707141407070707303030303030:Oh Snap, What now-nothing"], ["303030303030303030303030303030303030303030303030303030303030300201010101010101010101010101010101010101010606062525252530302626262626240129292929292929292301010101060606062525252530302727272727240101010101240101012301010601060707070625252530302501010124240110010101240101012301010611060707070725252530302501010124242424242424240101012323232323230707072525252530302501010124242424242424240101062323232323232307252525252530302501010101010101010101010101010101010101072525250725252530302501010129292929292929010101060106060101012525252525252530302501010101010101010101010101010101010701010701012525252530302501010101012121212121010101010107010701070101010125252530300101012121212112010101010101010101010101010101010101012530300101010101012121212121012121210121012101212101212121010130300601060106010601060106210601062106210621010621210601211530300601060106010601060106010601060106010601010601010601212130300707070707070707070707070707070707070707070707070707070730303030303030303030303030303030303030303030303030303030303030:Puzzle 1-nothing"], ["282727272727272727270101010101010101010101010101010101010128271818181818182001010101011920010101010101012101010101010128260101010101010101010101010101010101010101010101010101010128280101010201010101010101010121012101010101010101010101010128280105010124012101010121010101010101010124010101010101010128280101052401012101010121010101010101010101010101010101010128280101230105012101010101010101010101010101010101010101010128280101230101010101010101010101010101010101010101010124010128280101230101300101010101010101010101010101010101010101010128280101230101010101010101010101010101010101010101010101240128280105050501010101010101010101010101010101010101010101010128280105050501010101050105010101010501050101010501050101010128280530013005010105300130050101053001300501053001300501010128283030013030010130300130300101303001303001303001303001010128280130013001010101300130010101013001300101013001300101300128280101010101010101010101010101010101010101010101010101011527280707070707071407070707070707070707070714070707070707070707:Run Across-nothing"], ["010101010101010101010101010101010101010101010101010101010101260101010101010101010101010101010101010101010101010101010126280101161601171701161616011717161617171616171716161717010128280101010101010101010101010101010101010101010101010101010128280101010101010101010101010101010101010101010101010101010128280101210101010101010101010101010101010101010101010101010128280101010101012101010121010101010101010101010101010101161628280101010101010101010119181820010101010101010606060506060628280101010101010101010101010121010101010101010606010101010128280101010101010101010101010101010101010101010606010101010128280101010101010101010101010119181820010101010606060101010128280101010101010101010101010101010121010101010606060605060628280101010130010101013001010101010101010101010606060101010128280101013030160101013030010101010119181820010606060601010128280201303030010101053030300101010101010101010606060606010528270130303030010101053030303001010101010101010101010101011527303030303030070707303030303030303030303030070707070707073030:Mario Lv 1:Overworld-crimsonhotsun"], ["010101010101010101010130303030303030303030303030303030303030260101110101010601010101010101303030303030102401010101013030280101010101010109010101010101010130303030303001010101010130280101010101160116010501010105010101010130303030303030010130280101171701010101011601010117010101010601010101010101010130280101010101060101010106010601010601010601303030303030010130280101050101011701010101160101010101080601010130303030010130280101240101010501010106060606160617170601010130303030010130280101010105012401010101010101060606010601010101303030010130280101010124010101010501010101010101010101010101013030140130280101010101010101012401010501010101010101010101012330300130280101161601010101010101012401010516160101010101012330302430280101010101010101010101010101012401010101010101232301300530280101050101010101010101010101010101010101010101232301303030280101240101010101010101010101010101010101010123230101013030270201010101010101010101010101010101010114010123230105011530303007070707070707070707070707070707070730303030303030303030:Mario Lv 2:Transition-crimsonhotsun"], ["30303033030303030303030303030303030303030303030303030303030300101010101010101010101010101010101010101010101010130301530300501033001010101013030300101303001010101013001010130302330301030300130010101303030013030013030010101300130300124012330303001300130010130013030013030050530050505300101303030012330303001300130050530013030050101050130013030300101013001012330303001300130053030013030010101010130300530300101010101012330303001010130300101010106011616171701010130060606060601010130303001010130300101050106010101060101161630010101010101140130303001010101010101010106010101060101010130010101010101210130303001161617170616061706010117061717010101161601010101010130303001010101010606010108010801060101010101010106010101010130303001171716160601010101010101061601010101010106010101010130300101010101010601160106011616060101161616171706010101013030300101161617170611060601170101060101010101010106010301143030300201010101010617010101010101060101010101010101013030303030303007070707070707070707070707070707070707070707303030303030::Mario Lv 3:Underworld-crimsonhotsun"], ["262601012630303026010101260101012626262601010101010101011526282811012801050128011201280110012828282801010101010101010128282801012801011728300109281601012828282801010101010101010128282801012801010128010130280106172828282817010101160101051728282817172801010128080901280101012828282801010101010101010128282801012816010128300101280101052828282816010101010101010128282801012801010128010130280101162828282801010104010401010128272716162801011728300101280501062828282807070113011301010128303001012701010128010101281701012828282730303030303030302128300201012401160127010117280101012828270804040406040404060128262617172601010101011601270101052727230804040406040404060128282801012801011726010101250101162323230604040409040404080128282801012801170128010117261601082626260813131309131313061428282824242801010128011701280101172828282630303030303030303028282824242801010128010101280101012828282804040401040404010128282824242801010128010101280101012828282804040401040404010128272707072707070727070707270707072727272707070707070707070727:Hall of the Mountain King-crimsonhotsun"], ["300101010101010101010101010101010101010101010101010101010130300101010101010101050101010101010101010101010101010101010130300101303030300130163030013030303001011918181820010101010130300101250505300130050505010505053001010101010101011918182030300121303030302130163030213030303001010125250101010112010130300101300101010101050130013001010101010101010601252525252130300101300101010130163030013001010101232301060606060621060630301920010101010101050101010101010101012301010101010101010130300101010101010101010101010101010101010101010101010101010130300116161601010101010101060101010101170101160101010101010130300101150101010101140101060116010617010106012301010101010130300117171701010101300101060101060101010601012323010101010130300130010101010230303002060106010101060101170101160101010130301123010101013001300130010101010101010101010106010101010130300123010101010101160101010101010101010101010601010101100130302424010124242424242424240101010101010101060101170123231630301407070707070707300707070707070707070707070707070707070730:The Emblem-crimsonhotsun"], ["280101010101010101010201010101010101010101010101010101010128280101010101010101091509010101010101010101010101010101010128280101010101010101013001010101010101010101010101010101010128280101010101010101010101010101010101010101010101010101010128280101010101010125010101010101010101010101010101010101010128280101010101010101010101010101010101010101010101010101010128280101010105050501010505010501010501010505010105010101010128280105050505010101050101010501010501050101010101010105050128280101050105050501010505010501010501050505010105010501010128280501050105010112010105010501010501010105010105010105050128280505050105050501050505010505050501050501010105010101050128280101010101010101010101010101010101010101010101010505050128280107010114010114010114010114010114010114010114010114010128280105050505010505050501050101010101050105010105010501010128280101050105050505050501010501050105010501050101050101010128280101050105010505050501010105010501010501050101050101010128281414141414141414141414141414141414141414141414141414141428:Coins in the Coffer-crimsonhotsun"], ["303030300606060606010101010101010101010101010101010101010130301501010101010101060101040404040101010101010101010101010130303003040404040401010606170606160101010101010101010101010130300130290117170104010106040606040101010101010101010101010130300707070707071604040406160606170101010404040101010101010130303030303030300717170104040606040404040101010404040404040430300101010101303007071616170606161616171701161619181818182030300101010101013030300707070707070701010101010101290101010430300101010401010101303030303030303007070707070701290101012130300106161601010101010101010101013030303030303029010104040430300206010406060606010101010101010101010101010101011717040430302929010406010104040404040101010101010101060606060104292930260101010406061616171716160101010101040401010101060104010126280101010404040404010601040404040404161604040101061616010128280101171701011717010617171616161717010117170404040404010128280101010116160101010601010101010101010101011616161717010128280707070707070707070707070707070707070707070707070707070728:Megaman Style I-crimsonhotsun"], ["280101010101012929292929292929290101010101010101013030303030280101010101010101010108010101010101010101010101010101010230280101010101010106010108010101010101010101010101010101033001281716161706060106171701161601090101080101090101080129300101280106010101010606010101010101300101300101300101300101010101280106010101010101010101010707300707300707300707300707070707280106011617171717161601073030303030303030303030303030303030280106010101010101010107300101010101010101010101010101010126280106070707070707070730010101010116171716161717161617171628280301303030303030303001010101010101060101010101010101010128283001010101010101010101010116010117010107070707070707070128280130161616171717161616170107070707070730303030303030301728280101070707070707070707070730303030303030010101010101010128280707303030303030303030303030010101010101010101010101010128283030010101010101010101010101010101010101010101010101010128281501010101011716161717161617171616171717171716171717171628283030303030300707070707070707070707070707070707070707070728:Megaman Style II-crimsonhotsun"], ["283030010101010101012501012401010101010101303028010101013001281201010101010101012501012401010101010101011128303030303001281601010101010101012501012401010101010101011628010101013001280101010101060101012505102401010106010101010128303030303001280101010121010601013030303001010601210101010128010130010101281717010101010106300105050130060101010101171728303030303001280101010101010130010130300101300101010101010128300130013001281616161601010130010101010101300101011616161628010101010101280101010101010130010101010101300101010101010128303030303001280101010101010108300101010130090101010101010128010101013001280101010101010101083024243009010101010101010128013030300101280101010117010130303025253030300101170101010128300101010101280101010101010123010101010101230101010101010128303030303001280104040401012301010101010101012301010404040128300101013001280101010101012317170101010116162301010101010128013030300101280203010101012301011601011701012301010101031528010101010101283030070707140707070714140707070714070707303028010101010101:The Omega-crimsonhotsun"], ["303030303030303030303030303030303030303030303030303030303030300203010101010101010101010101010101010101010101010101010126303030303030010101010101010101010101010101010101010404040528261101010130300101010109010101080101010117010101010101010128282101010101303001080301260101260116010101010116010101010128280116160101013030303030280101280101010101010101010101010128280101010101010101010112270707270707070707070707072601010128280117172101040404050130303030303030303030303030302801010128280101010101010101010130010101010101010101010101012730083028282116160101010101010123010101010101010101010101013030013028280101010101010126262630170801090108010901080109010801010128280101010126262628282830011918181818181818181818181818182028280126262628282827272730010103010101030101010103010101011028282427272727272730303030303030303030303030303030303030303028280101010101010130303030303030303030303030303030303030303028270104050101082509010801090108010901080109010801090108011527303030303030303030303030303030303030303030303030303030303030:First Challenge"], ["303030303030303030303030303030303030303030303030303030303030300101011601170116011701160117011601010101010101010101010226300101011606170116061701160617011601010301010101010101010128300130303030303030303030303030303030303007073030300730303027300101030101010101030101010101010101013030303001303030013030303030303030303030303030010101010101010901010108010101010130301201010101010101010116010301010101010901010108010101011130303030303030300101013030303030303030303030303030303030303030300124010101010101303001010101010301080101090101080101100106300126263030303030300101010101303030303030303030303030303030300127280101010101010101010101012301010101010130010101131530300101280101010101010101170101162601010126010130010101303030300101280101010101160101010101012801010128010130010101010126300101270101010101010101010101012801160128010130010116010128300101010101170104040404040501012801010128010130010113131328301401030101010122222222222201012701010127010125013030303027303030303007070707070707070714073030303030303030303007070730:Second Challenge: Are you ready?"], ["303030303030303030303030303030303030303030303030303030303030260101010101010101010101010101010101010101010101010101010126280201010101010101010101010101010101010101010101010101010128282609010108010109010108010109010108010109010108010109010128282726011026010126010126010126010126010126010126010126010128283027171627010127010127010127010127010127010127010127012328283030070730070730070730070730070730070730070730070730070128281230303030303011303030303030303030303030303030303030300128280109010909090901080808080109090909010808080801090909090128280101011601011701010101011701011701010101011601011701010128280801012617172617172616162616162616012617172601012616162628280101012706062706062706062706062706062706062706062706062728280501010101010101010101010101010101012501010101012403011528280101010101010101010101040405010101011717161617173030303028280101010101010101160101010101010101010101010104040405010128271403160101010817010101091616170101010101012116161717010127303030070707073007070707300707070707300707070707070707070730:Third Challenge: It gets harder!"], ["303030303030303030303030303030303030303030303030303030303030303001010101112601010101010101010101010101010101010101010130300121300101012801010801090101080101090101080109010801010130300901012601012801012601260101260101260117171616171716160126302601012809012801162807270707270707270707070707070707070128302701012830012801012830303030303030303030303030303030300128300109262801012801012801010101010101010101010101010101010128300126272801082817012801011616171701090101010101080101010128302027012801302801012801070707070707290606290606290606290728300101012801012801012801303030303030303030303030303030303027302601012809012801162801012630150109050508050501300525013030302701092830012801012821012830303030303030303001303030010126300101262801012801012801012801010101010101010101010101010128300226272801082817012801212705010101010101010101050101010128302627012701302701012801010101010101010101010101010101010128302710012401012301012721010108010901080109010801011701011227303030303030303030073030300730073007300730073014070707143030:Final Challenge: It's the last one! Can you beat it?"]);
map_array = new Array(29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 25, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 29, 1, 1, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 25, 27, 28, 28, 15, 16, 15, 16, 28, 28, 28, 1, 1, 1, 29, 1, 1, 27, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 27, 27, 1, 29, 7, 7, 7, 7, 29, 1, 1, 1, 1, 29, 29, 1, 1, 27, 18, 17, 19, 1, 1, 1, 1, 1, 1, 1, 1, 1, 27, 27, 10, 29, 29, 29, 29, 29, 29, 1, 1, 1, 29, 29, 11, 1, 1, 27, 1, 1, 1, 13, 1, 1, 1, 1, 1, 1, 1, 1, 27, 27, 1, 1, 9, 1, 1, 8, 1, 1, 1, 29, 29, 1, 1, 1, 1, 27, 1, 1, 29, 29, 29, 1, 20, 1, 1, 1, 1, 1, 27, 27, 1, 1, 25, 3, 1, 25, 1, 3, 29, 29, 1, 1, 20, 1, 1, 27, 1, 1, 29, 7, 29, 1, 1, 1, 1, 1, 1, 1, 27, 27, 1, 29, 29, 29, 29, 29, 29, 29, 29, 1, 1, 1, 1, 1, 1, 26, 1, 1, 29, 29, 29, 1, 1, 1, 1, 1, 1, 1, 27, 27, 1, 1, 1, 1, 29, 1, 1, 1, 1, 1, 1, 1, 1, 1, 20, 23, 1, 1, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 27, 27, 1, 3, 1, 1, 29, 1, 1, 1, 1, 1, 1, 1, 20, 1, 1, 25, 1, 25, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 27, 27, 29, 29, 29, 1, 29, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 27, 1, 26, 1, 25, 25, 1, 20, 1, 1, 1, 1, 1, 27, 27, 1, 1, 1, 9, 29, 1, 1, 1, 1, 1, 1, 18, 17, 17, 19, 27, 1, 1, 1, 26, 26, 1, 1, 1, 1, 1, 1, 1, 27, 27, 1, 1, 1, 29, 29, 1, 22, 1, 1, 8, 1, 1, 1, 1, 1, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 24, 28, 27, 27, 1, 29, 29, 29, 1, 1, 25, 1, 1, 25, 1, 1, 1, 1, 1, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 28, 1, 14, 27, 27, 8, 1, 1, 1, 1, 1, 27, 1, 1, 27, 1, 2, 1, 1, 1, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 28, 28, 28, 27, 26, 25, 1, 1, 3, 1, 1, 27, 7, 7, 27, 3, 1, 1, 1, 1, 27, 1, 1, 1, 3, 1, 1, 1, 1, 3, 1, 1, 1, 26, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 7, 7, 7, 29, 7, 7, 7, 7, 29, 7, 7, 7, 29);
i = 0;
_root.onMouseDown = function () {
if (otherwise) {
if (begin) {
if (phase == 0) {
ldbg.play();
phase = 1;
} else if (phase == 5) {
ldbg.gotoAndStop(1);
phase = 0;
}
} else if (!win) {
if (lddd._currentframe == 22) {
lddd.gotoAndPlay(23);
}
}
} else if (!jumping) {
jr.gotoAndStop(5 + Number(right));
jumping = true;
gravity = -7;
}
};
_root.onMouseUp = function () {
if (jumping) {
gravity = ((gravity < 0) ? (gravity / 10) : (gravity));
}
};
map.onEnterFrame = function () {
manipjump();
};
Symbol 52 MovieClip Frame 2
stop();
Symbol 52 MovieClip Frame 9
stop();
_root.map_array[num] = 4;
Symbol 58 MovieClip Frame 2
stop();
Symbol 58 MovieClip Frame 9
stop();
_root.map_array[num] = 4;
Symbol 64 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 9
stop();
_root.map_array[num] = 4;
Symbol 124 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 15
stop();
_root.map_array[num] = 4;
Symbol 132 MovieClip Frame 2
stop();
Symbol 132 MovieClip Frame 13
stop();
_root.map_array[num] = 4;
Symbol 139 MovieClip Frame 2
stop();
Symbol 139 MovieClip Frame 11
stop();
_root.map_array[num] = 4;
Symbol 332 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 23
stop();
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 22
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
stop();
Symbol 352 MovieClip Frame 3
stop();
Symbol 352 MovieClip Frame 4
stop();
Symbol 352 MovieClip Frame 5
stop();
Symbol 380 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 74
stop();
liveslost.text = ("You lost " + _root.lives) + ((_root.lives == 1) ? " life" : " lives");
timelost.text = "Your time is " + _root.timer;