Frame 1
function test_bit(num, bit) {
return((num >> bit) & 1);
}
function shrinkOnHit() {
if (_root.spriteLayer.character.hitTest(this)) {
this.play();
}
}
function checkForStuff(tind) {
var ttype = tileArray[tind];
if (ttype == 48) {
deactivateTile(yellowtnum);
deactivateTile(yellowtnum - boardWidth);
_root.spriteLayer.yellowdoor._visible = true;
_root.spriteLayer.yellowdoor.onEnterFrame = shrinkOnHit;
bottomBar.yellowkey._alpha = 100;
} else if (ttype == 49) {
deactivateTile(redtnum);
deactivateTile(redtnum - boardWidth);
_root.spriteLayer.reddoor._visible = true;
_root.spriteLayer.reddoor.onEnterFrame = shrinkOnHit;
bottomBar.redkey._alpha = 100;
} else if (ttype == 50) {
deactivateTile(greentnum);
deactivateTile(greentnum - boardWidth);
_root.spriteLayer.greendoor._visible = true;
_root.spriteLayer.greendoor.onEnterFrame = shrinkOnHit;
bottomBar.greenkey._alpha = 100;
} else if (ttype == 51) {
deactivateTile(bluetnum);
deactivateTile(bluetnum - boardWidth);
_root.spriteLayer.bluedoor._visible = true;
_root.spriteLayer.bluedoor.onEnterFrame = shrinkOnHit;
bottomBar.bluekey._alpha = 100;
} else if (ttype == 34) {
haspogo = true;
bottombar.pogostick._alpha = 100;
} else if (ttype == 33) {
ammo = ammo + 5;
bottombar.ammocount.text = ammo;
} else if (ttype == 59) {
score = score + 500;
updateScore();
} else if (ttype == 60) {
score = score + 100;
updateScore();
} else if (ttype == 61) {
score = score + 200;
updateScore();
} else if (ttype == 62) {
score = score + 1000;
updateScore();
} else if (ttype == 63) {
score = score + 5000;
updateScore();
} else if ((ttype >= 79) && (ttype <= 81)) {
bottombar.joystick._alpha = 100;
} else if ((ttype >= 95) && (ttype <= 98)) {
bottombar.battery._alpha = 100;
} else if ((ttype >= 99) && (ttype <= 102)) {
bottombar.vacuum._alpha = 100;
} else if ((ttype >= 103) && (ttype <= 106)) {
bottombar.poison._alpha = 100;
}
}
Stage.scaleMode = "noScale";
numScreenXTiles = 22;
numScreenYTiles = 15;
boardHeight = 21;
boardWidth = 120;
tileX = 0;
tileY = 0;
loading.swapDepths(10006);
Title.swapDepths(10009);
liveslostscreen.swapDepths(10005);
liveslostscreen._visible = false;
ammo = 0;
curlevel = 1;
lives = 5;
haspogo = false;
frozen = false;
var guyx = 64;
var guyy = 152;
var guyy = 1200;
tileFlags = new Array();
tileFlags[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[2] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[3] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[5] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[6] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[7] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[8] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[9] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[11] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[12] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[13] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[14] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[15] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[16] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[17] = [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0];
tileFlags[18] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[19] = [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0];
tileFlags[20] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[21] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[22] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[23] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[24] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[25] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[26] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[27] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[28] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[29] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[30] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[31] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[32] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[33] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[34] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[35] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[36] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[37] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[38] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[39] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[40] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[41] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[42] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[43] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[44] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[45] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[46] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[47] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[48] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[49] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[50] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[51] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[52] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[53] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[54] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[55] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[56] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[57] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[58] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[59] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[60] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[61] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[62] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[63] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[64] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[65] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[66] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[67] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[68] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[69] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[70] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[71] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[72] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[73] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[74] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[75] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[76] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[77] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[78] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[79] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[80] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[81] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[82] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[83] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[84] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[85] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[86] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[87] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[88] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[89] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[90] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[91] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[92] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[93] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[94] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[95] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[96] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[97] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[98] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[99] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[100] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[101] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[102] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[103] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[104] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[105] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[106] = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
tileFlags[107] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[108] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[109] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[110] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[111] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[112] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[113] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[114] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[115] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[116] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[117] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[118] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[119] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[120] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[121] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[122] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[123] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[124] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[125] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[126] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[127] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[128] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[129] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[130] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[131] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[132] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[133] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[134] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[135] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[136] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[137] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[138] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[139] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[140] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[141] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[142] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[143] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[144] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[145] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[146] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[147] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[148] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[149] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[150] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[151] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[152] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[153] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[154] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[155] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[156] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[157] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[158] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[159] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[160] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[161] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[162] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[163] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[164] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[165] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[166] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[167] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[168] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[169] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[170] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[171] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[172] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[173] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[174] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[175] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[176] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[177] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[178] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[179] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[180] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[181] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[182] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[183] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[184] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[185] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[186] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[187] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[188] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[189] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[190] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[191] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[192] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[193] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[194] = [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[195] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[196] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[197] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[198] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[199] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[200] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[201] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[202] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[203] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[204] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[205] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[206] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[207] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[208] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[209] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[210] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[211] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[212] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[213] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[214] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[215] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[216] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[217] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[218] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[219] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[220] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[221] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[222] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[223] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[224] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[225] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[226] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[227] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[228] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[229] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[230] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[231] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[232] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[233] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[234] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[235] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[236] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[237] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[238] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[239] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[240] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[241] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[242] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[243] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[244] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[245] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[246] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[247] = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[248] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[249] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[250] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[251] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[252] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0];
tileFlags[253] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[254] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[255] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[256] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[257] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[258] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[259] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0];
tileFlags[260] = [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
tileFlags[261] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0];
tileFlags[262] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0];
tileFlags[263] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0];
tileFlags[264] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0];
tileFlags[265] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0];
tileFlags[266] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[267] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[268] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[269] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[270] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[271] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[272] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[273] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[274] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[275] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[276] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[277] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[278] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[279] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[280] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[281] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[282] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[283] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[284] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[285] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[286] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
tileFlags[287] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[288] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[289] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[290] = [0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0];
tileFlags[291] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[292] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[293] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[294] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[295] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[296] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[297] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[298] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[299] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[300] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[301] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[302] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[303] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[304] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[305] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[306] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[307] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[308] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[309] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[310] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[311] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[312] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[313] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[314] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[315] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[316] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[317] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[318] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[319] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[320] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[321] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[322] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[323] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[324] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[325] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[326] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[327] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[328] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[329] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[330] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[331] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[332] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[333] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[334] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[335] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[336] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[337] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[338] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[339] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[340] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[341] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[342] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[343] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[344] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[345] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[346] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[347] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[348] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[349] = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[350] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[351] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[352] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[353] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[354] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
tileFlags[355] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_quality = "LOW";
j = 0;
while (j < boardHeight) {
i = 0;
while (i < boardWidth) {
var tindex = ((j * boardWidth) + i);
if (j == 15) {
tileArray[tindex] = 1;
} else if (j == 7) {
tileArray[tindex] = random(200);
} else if (j == 4) {
tileArray[tindex] = random(3);
} else {
tileArray[tindex] = 0;
}
i++;
}
j++;
}
movetype1 = function () {
if ((Math.abs(guyx - this._x) < 340) && (Math.abs(guyy - this._y) < 260)) {
var tlx = Math.floor((this._x + this.dx) / 16);
var tly = Math.floor((this._y - 1) / 16);
var tindex = ((tly * boardWidth) + tlx);
if (this.dx > 0) {
if (tileFlags[tileArray[tindex]][1]) {
this.dx = this.dx * -1;
this._xscale = -100;
}
} else if (this.dx < 0) {
if (tileFlags[tileArray[tindex]][2]) {
this.dx = this.dx * -1;
this._xscale = 100;
}
}
this.dy = this.dy + 0.5;
if (this.dy > 5) {
this.dy = 5;
}
var curtly = Math.floor((this._y - 1) / 16);
var tlx = Math.floor(this._x / 16);
var tly = Math.floor((this._y + this.dy) / 16);
var tindex = ((tly * boardWidth) + tlx);
if (tileFlags[tileArray[tindex]][0] && (curtly != tly)) {
this.dy = 0;
this.onfloor = true;
this._y = (tly * 16) - 1;
} else {
this.onfloor = false;
}
if (this.dy < 0) {
var tlx = Math.floor(this._x / 16);
var tly = Math.floor(((this._y + this.dy) - 24) / 16);
var tindex = ((tly * boardWidth) + tlx);
if (tileFlags[tileArray[tindex]][1]) {
this.dy = 0;
this._y = (tly * 16) + 32;
}
}
if (this.mode == 1) {
this._x = this._x + this.dx;
this._y = this._y + this.dy;
if (((random(50) == 2) || (shotalive)) && (this.onfloor)) {
this.dy = this.jumpheight;
}
if (random(50) == 2) {
this.override = true;
this.gotoAndPlay("search");
this.mode = 0;
}
} else if (this.mode == 0) {
this._y = this._y + this.dy;
if (random(20) == 2) {
this.override = true;
this.gotoAndPlay("walk");
if (guyx < this._x) {
this.dx = -1;
this._xscale = -100;
} else {
this.dx = 1;
this._xscale = 100;
}
this.mode = 1;
}
} else if (this.mode == 3) {
this._y = this._y + this.dy;
}
if (shotalive && (this.mode != 3)) {
if (_root.spriteLayer.laser.hitTest(this)) {
this.health--;
_root.spriteLayer.laser.play();
_root.spriteLayer.laser.onEnterFrame = null;
shotalive = false;
if (this.health <= 0) {
this.override = true;
this.gotoAndPlay("die");
this.dy = -1;
this.mode = 3;
}
}
}
if ((this.mode != 3) && (this.mode != 4)) {
if (_root.spriteLayer.character.hitTest(this)) {
if (!this.deadly) {
if ((this.injurable && (dy > 1)) && (guyy < (this._y - 10))) {
this.mode = 4;
this.injuretime = 20;
dy = -3;
this.override = true;
this.gotoAndPlay("injured");
} else {
dx = guyx - this._x;
if (dx < 0) {
dx = -4;
} else {
dx = 4;
}
}
} else {
_root.spriteLayer.character.gotoAndPlay("die");
_root.onEnterFrame = diemode;
}
}
}
}
};
movetype2 = function () {
if ((Math.abs(guyx - this._x) < 340) && (Math.abs(guyy - this._y) < 260)) {
var tlx = Math.floor((this._x + this.dx) / 16);
var tly = Math.floor((this._y - 1) / 16);
var tindex = ((tly * boardWidth) + tlx);
if (this.dx > 0) {
if (tileFlags[tileArray[tindex]][1]) {
this.dx = this.dx * -1;
this._xscale = -100;
}
} else if (this.dx < 0) {
if (tileFlags[tileArray[tindex]][2]) {
this.dx = this.dx * -1;
this._xscale = 100;
}
}
var tlx = Math.floor(this._x / 16);
var tly = Math.floor((this._y + this.dy) / 16);
var tindex = ((tly * boardWidth) + tlx);
if (tileFlags[tileArray[tindex]][0]) {
this.dy = 0;
this.onfloor = true;
this._y = tly * 16;
} else {
this.onfloor = false;
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this.dy = this.dy + 0.5;
if (this.dy > 5) {
this.dy = 5;
}
}
};
movetype3 = function () {
if ((Math.abs(guyx - this._x) < 340) && (Math.abs(guyy - this._y) < 260)) {
var tlx = Math.floor((this._x + this.dx) / 16);
var tly = Math.floor((this._y - 1) / 16);
var tindex = ((tly * boardWidth) + tlx);
if (this.dx > 0) {
if (tileFlags[tileArray[tindex]][1]) {
this.dx = this.dx * -1;
this._xscale = -100;
}
} else if (this.dx < 0) {
if (tileFlags[tileArray[tindex]][2]) {
this.dx = this.dx * -1;
this._xscale = 100;
}
}
var tlx = Math.floor((this._x + this.dx) / 16);
var tly = Math.floor((this._y + this.dy) / 16);
var tindex = ((tly * boardWidth) + tlx);
if (tileFlags[tileArray[tindex]][0]) {
this.dy = 0;
this.onfloor = true;
this._y = tly * 16;
} else {
this._xscale = this._xscale * -1;
this.dx = this.dx * -1;
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
this.dy = this.dy + 0.5;
if (this.dy > 5) {
this.dy = 5;
}
if (shotalive) {
if (_root.spriteLayer.laser.hitTest(this)) {
_root.spriteLayer.laser.play();
_root.spriteLayer.laser.onEnterFrame = null;
shotalive = false;
}
}
if (_root.spriteLayer.character.hitTest(this)) {
dx = guyx - this._x;
if (dx < 0) {
dx = -4;
} else {
dx = 4;
}
}
if (this.doshoot && (random(45) == 2)) {
nm = "badlaser" + bshot;
_root.spriteLayer.attachMovie("laser2", nm, 990 + bshot);
_root.spriteLayer[nm]._x = this._x;
_root.spriteLayer[nm]._y = this._y - 11;
_root.spriteLayer[nm].onEnterFrame = movetype5;
_root.spriteLayer[nm].dx = this._xscale / 15;
bshot++;
if (bshot > 8) {
bshot = 0;
}
}
}
};
movetype4 = function () {
var tlx = Math.floor((this._x + this.dx) / 16);
var tly = Math.floor(this._y / 16);
var tindex = ((tly * boardWidth) + tlx);
if (this.dx > 0) {
if (tileFlags[tileArray[tindex]][1]) {
shotalive = false;
this.play();
this.onEnterFrame = null;
}
} else if (this.dx < 0) {
if (tileFlags[tileArray[tindex]][2]) {
shotalive = false;
this.play();
this.onEnterFrame = null;
}
}
if (Math.abs(this._x - guyx) > 320) {
shotalive = false;
this.play();
this.onEnterFrame = null;
}
this._x = this._x + this.dx;
};
movetype5 = function () {
var tlx = Math.floor((this._x + this.dx) / 16);
var tly = Math.floor(this._y / 16);
var tindex = ((tly * boardWidth) + tlx);
if (this.dx > 0) {
if (tileFlags[tileArray[tindex]][1]) {
this.play();
this.onEnterFrame = null;
}
} else if (this.dx < 0) {
if (tileFlags[tileArray[tindex]][2]) {
this.play();
this.onEnterFrame = null;
}
}
if (Math.abs(this._x - guyx) > 320) {
this.play();
this.onEnterFrame = null;
}
if (_root.spriteLayer.character.hitTest(this)) {
if (this.action == "freeze") {
_root.spriteLayer.character.gotoAndPlay("frozen");
_root.frozen = true;
pogo = false;
dx = this.dx;
dy = this.dy;
} else {
_root.spriteLayer.character.gotoAndPlay("die");
_root.onEnterFrame = diemode;
}
this.play();
this.onEnterFrame = null;
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
};
bshot = 0;
movetype6 = function () {
if ((Math.abs(guyx - this._x) < 340) && (Math.abs(guyy - this._y) < 260)) {
if (this.doshoot && (this.timetoshoot < 1)) {
this.timetoshoot = 30;
nm = "badlaser" + bshot;
_root.spriteLayer.attachMovie(this.shotitem, nm, 990 + bshot);
_root.spriteLayer[nm]._x = this._x + this.xoff;
_root.spriteLayer[nm]._y = this._y + this.yoff;
_root.spriteLayer[nm].onEnterFrame = movetype5;
_root.spriteLayer[nm].dx = this.shotdx;
_root.spriteLayer[nm].dy = this.shotdy;
if (this.shotitem == "icecube") {
_root.spriteLayer[nm].action = "freeze";
}
bshot++;
if (bshot > 8) {
bshot = 0;
}
}
this.timetoshoot--;
}
};
starti = 0;
startj = 0;
tnum = 0;
mnum++;
tocnt = 0;
duplicateTiles = function () {
clearInterval(bibi);
ccnt = 0;
var j = startj;
while (j < boardHeight) {
var curyquad = Math.floor(j / numScreenYTiles);
var i = starti;
while (i < boardWidth) {
var curxquad = Math.floor(i / numScreenXTiles);
starti = 0;
if (tileArray[tnum] > 0) {
if (tileFlags[tileArray[tnum]][7] == 0) {
qnm = (("quad_" add curyquad) + "_") + curxquad;
nm = "tile" add tnum;
_root.tileLayer[qnm].attachMovie("tile", nm, tnum);
_root.tileLayer[qnm][nm]._x = i * 16;
_root.tileLayer[qnm][nm]._y = j * 16;
_root.tileLayer[qnm][nm].gotoAndStop(tileArray[tnum] + 1);
} else {
nm = "tile" add tnum;
_root.frontTileLayer.attachMovie("tile", nm, tnum);
_root.frontTileLayer[nm]._x = i * 16;
_root.frontTileLayer[nm]._y = j * 16;
_root.frontTileLayer[nm].gotoAndStop(tileArray[tnum] + 1);
}
if (tileArray[tnum] == 18) {
exiti = i;
exitj = j;
exitqnm = (("quad_" add curyquad) + "_") + curxquad;
}
if (tileArray[tnum] == 32) {
yellowi = i;
yellowj = j;
yellowqnm = (("quad_" add curyquad) + "_") + curxquad;
yellowtnum = tnum;
}
if (tileArray[tnum] == 54) {
redi = i;
redj = j;
redqnm = (("quad_" add curyquad) + "_") + curxquad;
redtnum = tnum;
}
if (tileArray[tnum] == 56) {
greeni = i;
greenj = j;
greenqnm = (("quad_" add curyquad) + "_") + curxquad;
greentnum = tnum;
}
if (tileArray[tnum] == 58) {
bluei = i;
bluej = j;
blueqnm = (("quad_" add curyquad) + "_") + curxquad;
bluetnum = tnum;
}
ccnt++;
tocnt++;
loading.loadbar._xscale = (tocnt / totiles) * 100;
if (ccnt > 200) {
starti = i;
startj = j;
return(false);
}
}
if (monstArray[tnum] > 0) {
nm = "monst" add mnum;
_root.spriteLayer.attachMovie("monster" add monstArray[tnum], nm, mnum++);
_root.spriteLayer[nm]._x = i * 16;
_root.spriteLayer[nm]._y = ((j + 2) * 16) - 32;
_root.spriteLayer[nm].dx = 1;
_root.spriteLayer[nm].mode = 0;
_root.spriteLayer[nm].health = 1;
_root.spriteLayer[nm].jumpheight = -3;
if (monstArray[tnum] == 3) {
_root.spriteLayer[nm].health = 3;
_root.spriteLayer[nm].jumpheight = -7;
_root.spriteLayer[nm].deadly = true;
}
if (monstArray[tnum] == 1) {
_root.spriteLayer[nm].injurable = true;
}
if (monstArray[tnum] == 4) {
_root.spriteLayer[nm].dx = 1.5;
_root.spriteLayer[nm].onEnterFrame = movetype3;
} else if (monstArray[tnum] == 5) {
_root.spriteLayer[nm].doshoot = true;
_root.spriteLayer[nm].onEnterFrame = movetype3;
} else if (monstArray[tnum] == 6) {
_root.spriteLayer[nm].doshoot = true;
_root.spriteLayer[nm].shotitem = "icecube";
_root.spriteLayer[nm].shotdx = 7;
_root.spriteLayer[nm].shotdy = -7;
_root.spriteLayer[nm].xoff = 32;
_root.spriteLayer[nm].yoff = 0;
_root.spriteLayer[nm].onEnterFrame = movetype6;
} else if (monstArray[tnum] == 9) {
_root.spriteLayer[nm].doshoot = true;
_root.spriteLayer[nm].shotitem = "icecube";
_root.spriteLayer[nm].shotdx = -7;
_root.spriteLayer[nm].shotdy = -7;
_root.spriteLayer[nm].xoff = 0;
_root.spriteLayer[nm].yoff = 0;
_root.spriteLayer[nm].onEnterFrame = movetype6;
} else {
_root.spriteLayer[nm].onEnterFrame = movetype1;
}
if (monstArray[tnum] == 2) {
_root.spriteLayer[nm].deadly = true;
}
_root.spriteLayer[nm].gotoAndPlay("walk");
}
tnum++;
i++;
}
j++;
}
_root.spriteLayer.attachMovie("exitdoor", "exit", 9999);
_root.spriteLayer.exit._x = exiti * 16;
_root.spriteLayer.exit._y = exitj * 16;
_root.spriteLayer.exit._visible = false;
_root.spriteLayer.attachMovie("reddoor", "reddoor", 9900);
_root.spriteLayer.reddoor._x = redi * 16;
_root.spriteLayer.reddoor._y = redj * 16;
_root.spriteLayer.reddoor._visible = false;
_root.spriteLayer.attachMovie("bluedoor", "bluedoor", 9901);
_root.spriteLayer.bluedoor._x = bluei * 16;
_root.spriteLayer.bluedoor._y = bluej * 16;
_root.spriteLayer.bluedoor._visible = false;
_root.spriteLayer.attachMovie("greendoor", "greendoor", 9902);
_root.spriteLayer.greendoor._x = greeni * 16;
_root.spriteLayer.greendoor._y = greenj * 16;
_root.spriteLayer.greendoor._visible = false;
_root.spriteLayer.attachMovie("yellowdoor", "yellowdoor", 9903);
_root.spriteLayer.yellowdoor._x = yellowi * 16;
_root.spriteLayer.yellowdoor._y = yellowj * 16;
_root.spriteLayer.yellowdoor._visible = false;
tlxpos = (-guyx) + 100;
tlypos = (-guyy) + 100;
spriteLayer.attachMovie("character", "character", mnum);
loading._visible = false;
repaintQuads();
liveslostscreen._visible = false;
_root.onEnterFrame = gameloop;
};
bottombar.swapDepths(32);
character.swapDepths(22);
var dx = 0;
var dy = 0;
var guyht = 26;
updateScore = function () {
bottombar.scorecount.text = score;
};
var landed = false;
var jumpsetup = false;
var slipping = false;
var keyright = false;
var keyleft = false;
deactivateTile = function (tnum) {
var ti = Math.floor(tnum % boardWidth);
var tj = Math.floor(tnum / boardWidth);
var qi = Math.floor(ti / numScreenXTiles);
var qj = Math.floor(tj / numScreenYTiles);
var qnm = ((("quad_" + qj) + "_") + qi);
tileArray[tnum] = 0;
_root.tileLayer[qnm]["tile" add tnum].gotoAndStop(1);
};
pogo = false;
gameloop = function () {
if (!frozen) {
if (Key.isDown(39)) {
dx = dx + (1 - (slipping * 0.5));
}
if (Key.isDown(37)) {
dx = dx - (1 - (slipping * 0.5));
}
}
var curtly = Math.floor((guyy - 2) / 16);
var curtlx = Math.floor(guyx / 16);
if ((dy > 0) && (!jumpsetup)) {
var curtl = ((curtly * boardWidth) + curtlx);
var tlx = Math.floor((guyx - 5) / 16);
var tly = Math.floor((guyy + dy) / 16);
var tindex = ((tly * boardWidth) + tlx);
var tlx = Math.floor((guyx + 5) / 16);
var tindex2 = ((tly * boardWidth) + tlx);
if ((tileFlags[tileArray[tindex]][0] || (tileFlags[tileArray[tindex2]][0])) || ((guyy + dx) > ((boardHeight - 2) * 16))) {
if (curtly != tly) {
landed = true;
jumping = false;
guyy = (Math.floor((guyy + dy) / 16) * 16) - 1;
if (!pogo) {
dy = 0;
} else {
dy = -10;
}
if (tileFlags[tileArray[tindex]][9] || (tileFlags[tileArray[tindex2]][9])) {
slipping = true;
} else {
slipping = false;
}
}
} else {
landed = false;
}
} else if (dy < 0) {
var tlx = Math.floor((guyx - 3) / 16);
var tly = Math.floor(((guyy - guyht) + dy) / 16);
var tindex = ((tly * boardWidth) + tlx);
var tlx = Math.floor((guyx + 3) / 16);
var tly = Math.floor(((guyy - guyht) + dy) / 16);
var tindex2 = ((tly * boardWidth) + tlx);
if (tileFlags[tileArray[tindex]][6] || (tileFlags[tileArray[tindex2]][6])) {
_root.spriteLayer.character.gotoAndPlay("die");
_root.onEnterFrame = diemode;
return(false);
}
if ((tileFlags[tileArray[tindex]][3] || (tileFlags[tileArray[tindex2]][3])) || (((guyy - guyht) + dy) < 32)) {
guyy = ((Math.floor(((guyy - guyht) + dy) / 16) * 16) + 16) + guyht;
dy = 0;
}
}
dy = dy + 0.5;
if (dx > 0) {
var curtlx = Math.floor((guyx + 5) / 16);
var tlx = Math.floor(((guyx + 5) + dx) / 16);
var tly = Math.floor((guyy - 1) / 16);
var tindex = ((tly * boardWidth) + tlx);
var tlx = Math.floor(((guyx + 5) + dx) / 16);
var tly = Math.floor((guyy - 17) / 16);
var tindex2 = ((tly * boardWidth) + tlx);
if ((tileFlags[tileArray[tindex]][1] || (tileFlags[tileArray[tindex2]][1])) || (((guyx + 6) + dx) > ((boardWidth - 2) * 16))) {
if (curtlx != tlx) {
guyx = (Math.floor((guyx + dx) / 16) * 16) + 10;
dx = 0;
} else {
guyx = guyx - 6;
dx = 0;
}
}
} else if (dx < 0) {
var curtlx = Math.floor((guyx - 5) / 16);
var tlx = Math.floor(((guyx - 5) + dx) / 16);
var tly = Math.floor((guyy - 1) / 16);
var tindex = ((tly * boardWidth) + tlx);
var tlx = Math.floor(((guyx - 5) + dx) / 16);
var tly = Math.floor((guyy - 16) / 16);
var tindex2 = ((tly * boardWidth) + tlx);
if ((tileFlags[tileArray[tindex]][2] || (tileFlags[tileArray[tindex2]][2])) || (((guyx - 5) + dx) < 32)) {
if (curtlx != tlx) {
guyx = (Math.floor((guyx + dx) / 16) * 16) + 5;
dx = 0;
} else {
dx = 0;
guyx = guyx + 6;
}
}
}
var tlx = Math.floor((guyx - 6) / 16);
var tly = Math.floor((guyy - 1) / 16);
var tindexa = ((tly * boardWidth) + tlx);
var tlx = Math.floor((guyx + 6) / 16);
var tly = Math.floor((guyy - 1) / 16);
var tindexb = ((tly * boardWidth) + tlx);
var tlx = Math.floor((guyx - 6) / 16);
var tly = Math.floor((guyy - 24) / 16);
var tindexc = ((tly * boardWidth) + tlx);
var tlx = Math.floor((guyx + 6) / 16);
var tly = Math.floor((guyy - 24) / 16);
var tindexd = ((tly * boardWidth) + tlx);
var tlx = Math.floor(guyx / 16);
var tly = Math.floor((guyy - 1) / 16);
var tindexe = ((tly * boardWidth) + tlx);
if (tileFlags[tileArray[tindexa]][4] > 0) {
if (tileFlags[tileArray[tindexa]][4] == 1) {
checkForStuff(tindexa);
deactivateTile(tindexa);
// unexpected jump
}
_root.spriteLayer.character.gotoAndPlay("die");
_root.onEnterFrame = diemode;
return(false);
}
if (tileFlags[tileArray[tindexb]][4] > 0) {
if (tileFlags[tileArray[tindexb]][4] == 1) {
checkForStuff(tindexb);
deactivateTile(tindexb);
// unexpected jump
}
_root.spriteLayer.character.gotoAndPlay("die");
_root.onEnterFrame = diemode;
return(false);
}
if (tileFlags[tileArray[tindexc]][4] > 0) {
if (tileFlags[tileArray[tindexc]][4] == 1) {
checkForStuff(tindexc);
deactivateTile(tindexc);
// unexpected jump
}
_root.spriteLayer.character.gotoAndPlay("die");
_root.onEnterFrame = diemode;
return(false);
}
if (tileFlags[tileArray[tindexd]][4] > 0) {
if (tileFlags[tileArray[tindexd]][4] == 1) {
checkForStuff(tindexd);
deactivateTile(tindexd);
} else {
_root.spriteLayer.character.gotoAndPlay("die");
_root.onEnterFrame = diemode;
return(false);
}
}
if (tileFlags[tileArray[tindexe]][8] && (landed)) {
_root.spriteLayer.character._y = (tly + 1) * 16;
_root.spriteLayer.character.gotoAndPlay(1);
_root.onEnterFrame = exitmode;
return(false);
}
if (dy > 6) {
dy = 6;
}
if (!jumpsetup) {
guyx = guyx + dx;
guyy = guyy + dy;
}
if (guyx < 8) {
guyx = 8;
}
if (((tlxpos + _root.spriteLayer.character._x) < 100) && (tlxpos < -32)) {
xscroll = (-dx) * 1;
if (xscroll < 1) {
xscroll = 1;
}
}
if (((tlxpos + _root.spriteLayer.character._x) > 220) && (tlxpos > (-((BoardWidth - 22) * 16)))) {
xscroll = (-dx) * 1;
if (xscroll > -1) {
xscroll = -1;
}
}
if (tlxpos > -32) {
xscroll = 0;
tlxpos = -32;
}
if (tlxpos < (-((BoardWidth - 22) * 16))) {
xscroll = 0;
tlxpos = -((BoardWidth - 22) * 16);
}
if (((tlypos + _root.spriteLayer.character._y) < 90) && (tlypos < -32)) {
yscroll = (-dy) * 1;
if (yscroll < 1) {
yscroll = 1;
}
}
if (((tlypos + _root.spriteLayer.character._y) > 140) && (tlypos > (-((BoardHeight - 15) * 16)))) {
yscroll = (-dy) * 1;
if (yscroll > -1) {
yscroll = -1;
}
}
if (tlypos > -32) {
yscroll = 0;
tlypos = -32;
}
if (tlypos < (-((BoardHeight - 15) * 16))) {
yscroll = 0;
tlypos = -((BoardHeight - 15) * 16);
}
spriteLayer._x = (frontTileLayer._x = (_root.tileLayer._x = Math.round(tlxpos)));
spriteLayer._y = (frontTileLayer._y = (_root.tileLayer._y = Math.round(tlypos)));
_root.spriteLayer.character._x = Math.round(guyx);
_root.spriteLayer.character._y = Math.round(guyy);
repaintQuads();
tlxpos = tlxpos + xscroll;
tlypos = tlypos + yscroll;
xscroll = xscroll * 0.3;
yscroll = yscroll * 0.3;
if (dx > 5) {
dx = 5;
}
if (dx < -5) {
dx = -5;
}
if ((!slipping) && (!frozen)) {
dx = dx * 0.8;
} else {
dx = dx * 1;
}
if (Math.abs(dx) < 0.5) {
dx = 0;
}
if (dx < 0) {
_root.spriteLayer.character._xscale = -100;
}
if (dx > 0) {
_root.spriteLayer.character._xscale = 100;
}
if (((!jumping) && (!pogo)) && (!frozen)) {
if ((dx == 0) || (slipping)) {
_root.spriteLayer.character.gotoAndStop(1);
} else if (_root.spriteLayer.character._currentframe == 21) {
_root.spriteLayer.character.gotoAndPlay(1);
} else {
_root.spriteLayer.character.play();
}
} else if (pogo && (!frozen)) {
_root.spriteLayer.character.gotoAndStop(22);
}
};
exitmode = function () {
_root.spriteLayer.character._xscale = 100;
_root.spriteLayer.character.play();
_root.spriteLayer.character._x++;
_root.spriteLayer.exit._visible = true;
if (_root.spriteLayer.character._x > (_root.spriteLayer.exit._x + 8)) {
_root.onEnterFrame = null;
gl = new LoadVars();
gl.onLoad = handleload;
curlevel++;
curlevel = curlevel % 17;
if (curlevel == 0) {
curlevel = 1;
}
loading._visible = true;
loading.loadbar._xscale = 0;
loading.stat.text = "LOADING LEVEL " + curlevel;
gl.load(("level" + curlevel) + ".dat");
}
};
diemode = function () {
_root.spriteLayer.character._xscale = 100;
_root.spriteLayer.character._y = _root.spriteLayer.character._y - 4;
_root.spriteLayer.character._alpha = _root.spriteLayer.character._alpha - 3;
if (_root.spriteLayer.character._alpha <= 0) {
liveslostscreen._visible = true;
_root.onEnterFrame = null;
ammo = 0;
lives--;
if (lives >= 0) {
liveslostscreen.gotoAndStop(1);
liveslostscreen.stat.text = lives + " LIVES LEFT";
bottombar.ammocount.text = ammo;
bottombar.livescount.text = lives;
gl.onLoad();
} else {
liveslostscreen.gotoAndStop(2);
liveslostscreen.stat.text = "GAME OVER";
_root.tileLayer.removeMovieClip();
_root.frontTileLayer.removeMovieClip();
_root.spriteLayer.removeMovieClip();
}
}
};
repaintQuads = function () {
quax = Math.floor((-tlxpos) / (numScreenXTiles * 16));
quay = Math.floor((-tlypos) / (numScreenYTiles * 16));
if ((oquax != quax) || (oquay != quay)) {
oquan = (("quad_" + oquay) + "_") + oquax;
_root.tileLayer[oquan]._visible = false;
oquan = (("quad_" + (oquay + 1)) + "_") + oquax;
_root.tileLayer[oquan]._visible = false;
oquan = (("quad_" + oquay) + "_") + (oquax + 1);
_root.tileLayer[oquan]._visible = false;
oquan = (("quad_" + (oquay + 1)) + "_") + (oquax + 1);
_root.tileLayer[oquan]._visible = false;
curquan = (("quad_" + quay) + "_") + quax;
_root.tileLayer[curquan]._visible = true;
curquan = (("quad_" + (quay + 1)) + "_") + quax;
_root.tileLayer[curquan]._visible = true;
curquan = (("quad_" + quay) + "_") + (quax + 1);
_root.tileLayer[curquan]._visible = true;
curquan = (("quad_" + (quay + 1)) + "_") + (quax + 1);
_root.tileLayer[curquan]._visible = true;
}
oquax = quax;
oquay = quay;
};
keyupped = true;
shotalive = false;
m = new Object();
m.onKeyDown = function () {
var cod = Key.getCode();
if (cod == 38) {
if (((landed && (!jumpsetup)) && (!pogo)) && (!frozen)) {
jumping = true;
landed = false;
keyupped = false;
_root.spriteLayer.character.gotoAndPlay(13);
jumpsetup = true;
}
} else if (cod == 16) {
if (haspogo && (!frozen)) {
pogo = !pogo;
if (!pogo) {
_root.spriteLayer.character.gotoAndPlay(1);
} else {
_root.spriteLayer.character.gotoAndStop(22);
}
}
} else if ((((cod == 40) && (shotalive == false)) && (ammo > 0)) && (!frozen)) {
shotalive = true;
ammo--;
bottombar.ammocount.text = ammo;
nm = "laser";
_root.spriteLayer.attachMovie("laser", nm, 999);
_root.spriteLayer[nm]._x = guyx;
_root.spriteLayer[nm]._y = guyy - 11;
_root.spriteLayer[nm].onEnterFrame = movetype4;
_root.spriteLayer[nm].dx = _root.spritelayer.character._xscale / 15;
}
};
m.onKeyUp = function () {
var cod = Key.getCode();
if (cod == 38) {
keyupped = true;
if (jumpsetup) {
var fm = (_root.spriteLayer.character._currentframe - 13);
if (fm < 5) {
fm = 5;
}
_root.spriteLayer.character.gotoAndStop(21);
dy = -fm;
jumpsetup = false;
}
}
if (cod == 36) {
haspogo = true;
ammo = ammo + 20;
}
};
Key.addListener(m);
handleload = function () {
tcnt = 0;
totiles = 0;
bottombar.yellowkey._alpha = 30;
bottombar.redkey._alpha = 30;
bottombar.greenkey._alpha = 30;
bottombar.bluekey._alpha = 30;
var ts = new Array();
ts = this.st.split(",");
boardWidth = parseInt(ts[0]);
boardHeight = parseInt(ts[1]);
tileArray = new Array();
monstArray = new Array();
var j = 0;
while (j < boardHeight) {
var i = 0;
while (i < boardWidth) {
var tindex = ((j * boardWidth) + i);
var ink = (this["t" add tcnt] - 142);
if (this["m" add tcnt] > 0) {
if (this["m" add tcnt] == 255) {
guyx = (i * 16) + 8;
guyy = (j * 16) + 31;
} else {
monstArray[tindex] = this["m" add tcnt];
}
}
if (ink <= 1) {
tileArray[tindex] = 0;
tcnt++;
} else {
tileArray[tindex] = ink;
totiles++;
tcnt++;
}
i++;
}
j++;
}
starti = 0;
startj = 0;
tnum = 0;
mnum = 0;
_root.createEmptyMovieClip("tileLayer", 20);
_root.createEmptyMovieClip("spriteLayer", 28);
_root.createEmptyMovieClip("frontTileLayer", 30);
numxquads = Math.ceil(boardWidth / numScreenXTiles);
numyquads = Math.ceil(boardHeight / numScreenYTiles);
var qcount = 0;
var i = 0;
while (i < numyquads) {
var j = 0;
while (j < numxquads) {
nm = (("quad_" add i) add "_") add j;
tileLayer.createEmptyMovieClip(nm, qcount);
tileLayer[nm]._visible = false;
qcount++;
j++;
}
i++;
}
bottombar.livescount.text = lives;
oquax = -2;
pogo = false;
frozen = false;
slipping = false;
dx = 0;
dy = 0;
tocnt = 0;
updateScore();
_root.onEnterFrame = duplicateTiles;
};
Title.playButton.onRelease = function () {
bottombar.joystick._alpha = 30;
bottombar.vacuum._alpha = 30;
bottombar.battery._alpha = 30;
bottombar.poison._alpha = 30;
score = 0;
lives = 5;
ammo = 0;
curlevel = 1;
Title._visible = false;
gl = new LoadVars();
gl.onLoad = handleload;
loading._visible = true;
loading.stat.text = "LOADING LEVEL " + curlevel;
loading.loadbar._xscale = 0;
gl.load(("level" + curlevel) + ".dat");
};
Symbol 723 MovieClip [tile] Frame 29
p.gotoAndPlay(4);
Symbol 723 MovieClip [tile] Frame 30
p.gotoAndPlay(8);
Symbol 723 MovieClip [tile] Frame 31
p.gotoAndPlay(12);
Symbol 723 MovieClip [tile] Frame 68
p.gotoAndPlay(4);
Symbol 723 MovieClip [tile] Frame 69
p.gotoAndPlay(7);
Symbol 723 MovieClip [tile] Frame 70
p.gotoAndPlay(10);
Symbol 723 MovieClip [tile] Frame 72
p.gotoAndPlay(4);
Symbol 723 MovieClip [tile] Frame 73
p.gotoAndPlay(7);
Symbol 723 MovieClip [tile] Frame 74
p.gotoAndPlay(10);
Symbol 723 MovieClip [tile] Frame 76
p.gotoAndPlay(4);
Symbol 723 MovieClip [tile] Frame 77
p.gotoAndPlay(7);
Symbol 723 MovieClip [tile] Frame 78
p.gotoAndPlay(10);
Symbol 723 MovieClip [tile] Frame 110
p.gotoAndPlay(5);
Symbol 723 MovieClip [tile] Frame 111
p.gotoAndPlay(9);
Symbol 723 MovieClip [tile] Frame 112
p.gotoAndPlay(13);
Symbol 723 MovieClip [tile] Frame 126
p.gotoAndPlay(4);
Symbol 723 MovieClip [tile] Frame 127
p.gotoAndPlay(7);
Symbol 723 MovieClip [tile] Frame 128
p.gotoAndPlay(10);
Symbol 723 MovieClip [tile] Frame 139
p.gotoAndPlay(4);
Symbol 723 MovieClip [tile] Frame 140
p.gotoAndPlay(7);
Symbol 723 MovieClip [tile] Frame 141
p.gotoAndPlay(10);
Symbol 723 MovieClip [tile] Frame 289
p.gotoAndPlay(4);
Symbol 723 MovieClip [tile] Frame 290
p.gotoAndPlay(7);
Symbol 723 MovieClip [tile] Frame 291
p.gotoAndPlay(10);
Symbol 723 MovieClip [tile] Frame 295
p.gotoAndPlay(4);
Symbol 723 MovieClip [tile] Frame 296
p.gotoAndPlay(7);
Symbol 723 MovieClip [tile] Frame 297
p.gotoAndPlay(10);
Symbol 756 MovieClip [character] Frame 12
gotoAndPlay (1);
Symbol 756 MovieClip [character] Frame 19
_root.jumpsetup = false;
_root.dy = -7.7;
Symbol 756 MovieClip [character] Frame 21
stop();
Symbol 756 MovieClip [character] Frame 22
stop();
Symbol 756 MovieClip [character] Frame 27
gotoAndPlay (24);
Symbol 756 MovieClip [character] Frame 191
_root.frozen = false;
Symbol 756 MovieClip [character] Frame 192
_root.slipping = 0;
_root.frozen = false;
gotoAndPlay (1);
Symbol 774 MovieClip [monster1] Frame 2
override = false;
Symbol 774 MovieClip [monster1] Frame 7
if (!override) {
gotoAndPlay (2);
}
Symbol 774 MovieClip [monster1] Frame 8
override = false;
Symbol 774 MovieClip [monster1] Frame 27
if (!override) {
gotoAndPlay (8);
}
Symbol 774 MovieClip [monster1] Frame 65
this.removeMovieClip();
Symbol 774 MovieClip [monster1] Frame 66
this.override = false;
Symbol 774 MovieClip [monster1] Frame 75
if (this.injuretime > 0) {
this.injuretime--;
gotoAndPlay (66);
} else {
this.mode = 0;
gotoAndPlay (2);
}
Symbol 789 MovieClip [monster2] Frame 1
override = false;
Symbol 789 MovieClip [monster2] Frame 9
if (!override) {
gotoAndPlay (1);
}
Symbol 789 MovieClip [monster2] Frame 10
override = false;
Symbol 789 MovieClip [monster2] Frame 19
if (!override) {
gotoAndPlay (10);
}
Symbol 789 MovieClip [monster2] Frame 68
this.removeMovieClip();
Symbol 794 MovieClip [laser2] Frame 1
stop();
Symbol 794 MovieClip [laser2] Frame 8
_root.badshotalive = false;
this.removeMovieClip();
Symbol 797 MovieClip [laser] Frame 1
stop();
Symbol 797 MovieClip [laser] Frame 8
this.removeMovieClip();
Symbol 821 MovieClip [icecube] Frame 1
stop();
Symbol 821 MovieClip [icecube] Frame 11
_root.badshotalive = false;
this.removeMovieClip();
Symbol 825 MovieClip [reddoor] Frame 1
stop();
Symbol 825 MovieClip [reddoor] Frame 10
this.removeMovieClip();
Symbol 827 MovieClip [greendoor] Frame 1
stop();
Symbol 827 MovieClip [greendoor] Frame 10
this.removeMovieClip();
Symbol 829 MovieClip [bluedoor] Frame 1
stop();
Symbol 829 MovieClip [bluedoor] Frame 10
this.removeMovieClip();
Symbol 831 MovieClip [yellowdoor] Frame 1
stop();
Symbol 831 MovieClip [yellowdoor] Frame 10
this.removeMovieClip();
Symbol 854 MovieClip [monster3] Frame 1
override = false;
Symbol 854 MovieClip [monster3] Frame 20
if (!override) {
gotoAndPlay (1);
}
Symbol 854 MovieClip [monster3] Frame 21
override = false;
Symbol 854 MovieClip [monster3] Frame 22
override = false;
Symbol 854 MovieClip [monster3] Frame 32
if (!override) {
gotoAndPlay (22);
}
Symbol 854 MovieClip [monster3] Frame 33
override = false;
Symbol 854 MovieClip [monster3] Frame 98
this.removeMovieClip();
Symbol 874 MovieClip Frame 1
yellowkey._alpha = 30;
redkey._alpha = 30;
greenkey._alpha = 30;
bluekey._alpha = 30;
pogostick._alpha = 30;
Symbol 890 MovieClip Frame 1
stop();
Symbol 890 MovieClip Frame 2
okbutton.onRelease = function () {
_root.Title._visible = true;
_visible = false;
};
stop();