Frame 1
if (_parent) {
stop();
}
Frame 2
stop();
delete INT;
Frame 3
LEVELS = new Object();
LEVELS[0] = [["", "cz_wallleft", "cz_wallleft", "cz_wallleft"], ["", "cz_floor", "cz_floor", "cz_floor"], ["", "cz_floor", "cz_floor", "cz_floor"], ["", "cz_stage_down", "cz_house_stage_up", "cz_floor"], ["", "cz_wallright", "cz_wallright", "cz_floor"], ["", "", "", "cz_floor"]];
LEVELS[0].HEROES = [];
LEVELS[0].OBJECTS = [["", "", "", "powerup"], ["", "", "door_marker"], [""], ["", "", "", "door_marker"], ["", "", "scoreup"], ["", ""]];
LEVELS[0].background = "back1";
LEVELS[0].startCell = [0, 1];
LEVELS[0].endCell = [5, 3];
LEVELS[1] = [["", "", "", "cz_floor"], ["", "cz_stage_down", "cz_updown", "cz_house_stage_up"], ["", "cz_floor", "", "cz_floor"], ["", "cz_floor", "", "cz_floor"], ["", "cz_floor", "", "cz_floor"], ["", "cz_floor", "", "cz_floor"]];
LEVELS[1].OBJECTS = [["", "", "", ""], ["", "", "", ""], [""], ["", "", ""], ["", "", "", ""], ["", ""]];
LEVELS[1].HEROES = [[""], [""], [""], [""], ["", "Girl2", "", ""], ["", "", "", "Polizei"]];
LEVELS[1].background = "back2";
LEVELS[1].startCell = [0, 3];
LEVELS[1].endCell = [5, 1];
LEVELS[2] = [["", "cz_wallleft", "", "cz_wallleft"], ["", "cz_floor", "", "cz_floor"], ["", "cz_floor", "", "cz_floor"], ["", "cz_floor", "", "cz_floor"], ["", "cz_floor", "", "cz_floor"], ["", "cz_floor", "", "cz_floor"]];
LEVELS[2].OBJECTS = [["", ""], ["", "", "", ""], [""], ["", "", ""], ["", "", "", ""], ["", "scoreup"]];
LEVELS[2].HEROES = [[""], [""], [""], [""], [""], ["", "", "", "Polizei"]];
LEVELS[2].background = "back3";
LEVELS[2].background2 = "zona3_up";
LEVELS[2].startCell = [0, 1];
LEVELS[2].endCell = [4, 1];
LEVELS[3] = [["cz_wallleft", "cz_floor", "", "cz_floor"], ["cz_stage_down", "cz_house_stage_up", "", "cz_floor"], ["cz_floor", "cz_wallleft", "", "cz_floor"], ["cz_floor", "cz_floor", "", "cz_floor"], ["cz_floor", "cz_floor", "", "cz_floor"], ["cz_wallright", "cz_floor", "", "cz_floor"]];
LEVELS[3].HEROES = [[""], [""], [""], ["", "Polizei"], [""], ["", "Girl1", "", "Polizei"]];
LEVELS[3].OBJECTS = [["door_marker", ""], [""], ["", "door_marker"], [], ["", "scoreup"]];
LEVELS[3].background = "back4";
LEVELS[3].startCell = [0, 1];
LEVELS[3].endCell = [4, 0];
LEVELS[4] = [["cz_wallleft", "cz_stage_down", "cz_house_stage_up", "cz_wallleft"], ["cz_stage_down", "cz_house_stage_up", "cz_floor", "cz_floor"], ["cz_floor", "cz_floor", "opendoor", "cz_floor"], ["opendoor", "cz_floor", "cz_stage_down", "cz_house_stage_up"], ["cz_floor", "cz_stage_down", "cz_house_stage_up", "cz_floor"], ["cz_wallright", "cz_floor", "cz_wallright", "cz_wallright"]];
LEVELS[4].HEROES = [[""], ["", "", "DOG"], [""], ["", "Polizei", "", ""], ["Girl1"], [""]];
LEVELS[4].OBJECTS = [["switcher2%%2,2"], ["", "", "switcher%%3,0"], ["", "speedup"], ["", "", "", ""], ["", ""], ["speedup", "", "switcher%%2,2"]];
LEVELS[4].background = "back5";
LEVELS[4].startCell = [4, 3];
LEVELS[4].endCell = [5, 1];
LEVELS[5] = [["", "cz_floor", "cz_wallleft"], ["", "cz_stage_down", "cz_house_stage_up"], ["", "cz_floor", "cz_floor"], ["", "cz_floor", "cz_floor"], ["", "cz_stage_down", "cz_house_stage_up"], ["", "cz_floor", "cz_wallright"]];
LEVELS[5].HEROES = [[""], [""], ["", "", "trigger%%%%1"], ["", "Polizei"], ["", "Polizei", ""], ["", "Polizei", "Polizei%%1"]];
LEVELS[5].OBJECTS = [["", "", "invisible"]];
LEVELS[5].background = "back6";
LEVELS[5].startCell = [0, 1];
LEVELS[5].endCell = [5, 1];
LEVELS[6] = [["", "cz_floor"], ["", "cz_floor"], ["", "cz_stage_down", "cz_updown", "cz_updown"], [""], [""], [""]];
LEVELS[6].HEROES = [["", "Polizei%%1"], ["", "trigger%%%%1"], ["", ""], ["", ""], ["", "", ""], ["", ""]];
LEVELS[6].background = "back7";
LEVELS[6].background2 = "back7_up";
LEVELS[6].startCell = [0, 1];
LEVELS[6].endCell = [2, 3];
LEVELS[7] = [["", "", "", "cz_floor"], ["", "", "", "cz_floor"], ["cz_updown", "cz_updown", "cz_updown", "cz_house_stage_up"], ["", "", "", "cz_floor"], ["", "", "cz_stage_down", "cz_house_stage_up"], ["", "", "cz_floor", "cz_floor"]];
LEVELS[7].HEROES = [["", "", "", "DOG%%2"], ["", "", "", "Girl2"], ["", "", "trigger%%%%1"], ["", "", "", ""], ["", "", "trigger%%%%2"], ["", "", "", "DOG%%1"]];
LEVELS[7].OBJECTS = [[""], [""], [""], [""], [""], ["", "", "powerup"]];
LEVELS[7].background = "back8";
LEVELS[7].background2 = "";
LEVELS[7].startCell = [2, 0];
LEVELS[7].endCell = [5, 3];
LEVELS[8] = [["", "", "", "cz_floor"], ["", "", "", "cz_floor"], ["", "", "", "cz_floor"], ["", "", "", "cz_floor"], ["", "cz_stage_down", "cz_updown", "cz_house_stage_up"], ["", "cz_floor", "", "cz_floor"]];
LEVELS[8].HEROES = [["", "", "", ""], [], ["", "", "", "Girl1"], ["", "", "", "alien"], ["", "", "", "trigger%%%%1"], ["", "", "", "DOG%%1"]];
LEVELS[8].OBJECTS = [[""], [""], [""], [""], [""], ["", "", ""]];
LEVELS[8].background = "back9";
LEVELS[8].background2 = "";
LEVELS[8].startCell = [0, 3];
LEVELS[8].endCell = [5, 1];
LEVELS[9] = [["", "cz_stage_down", "cz_allpass", "cz_house_stage_up"], ["", "cz_floor", "cz_wallright", "cz_floor"], ["", "cz_floor", "", "cz_floor"], ["", "cz_floor", "", "cz_floor"], ["", "cz_floor", "cz_wallleft", "cz_floor"], ["", "cz_stage_down", "cz_allpass", "cz_house_stage_up"]];
LEVELS[9].HEROES = [["", "", "", "DOG%%1"], ["", "", "Girl2"], ["", "", "", "alien"], ["", "", "", "alien"], ["", "DOG", "", ""], ["", "Polizei", "", "trigger%%%%1"]];
LEVELS[9].OBJECTS = [[""], ["", "speedup"], ["", "scoreup"], ["", "scoreup"], ["", "scoreup", "powerup"], ["", "", ""]];
LEVELS[9].background = "back10";
LEVELS[9].background2 = "back10_up";
LEVELS[9].startCell = [0, 1];
LEVELS[9].endCell = [5, 1];
LEVELS[10] = [["", "cz_floor"], ["", "cz_stage_down", "cz_house_stage_up"], ["", "cz_floor", "cz_floor"], ["", "opendoor", "cz_floor"], ["", "cz_stage_down", "cz_house_stage_up"], ["", "cz_floor"]];
LEVELS[10].HEROES = [["", "", "", ""], [], ["", "", "alien"], ["", "", "alien", ""], ["", "Girl1", "alien"], ["", "Polizei", "", "", ""]];
LEVELS[10].OBJECTS = [[""], [""], ["", "", "switcher%%3,1"], ["", "", ""], [""], ["", "", ""]];
LEVELS[10].background = "back11";
LEVELS[10].background2 = "back11_up";
LEVELS[10].startCell = [0, 1];
LEVELS[10].endCell = [5, 1];
LEVELS[11] = [["", "cz_stage_down", "cz_house_stage_up", "cz_floor"], ["", "cz_floor", "cz_floor", "cz_floor"], ["", "cz_floor", "cz_floor", "cz_floor"], ["", "cz_floor", "cz_floor", "cz_floor"], ["", "cz_floor", "cz_floor", "cz_floor"], ["", "cz_floor", "cz_stage_down", "cz_house_stage_up"]];
LEVELS[11].HEROES = [["", "Polizei%%1", "", "DOG%%4"], ["", "Girl1", "alien"], ["", "trigger%%%%1,2", "alien"], ["", "", "trigger%%%%5", ""], ["", "", "alien", "trigger%%%%4"], ["", "Polizei%%2", "Polizei%%5", ""]];
LEVELS[11].OBJECTS = [[""], ["", "", "", "scoreup"], ["", "", "", "scoreup"], ["", "", "powerup", "scoreup"], [""], ["", "", ""]];
LEVELS[11].background = "back12";
LEVELS[11].background2 = "";
LEVELS[11].startCell = [0, 3];
LEVELS[11].endCell = [3, 1];
LEVELS[12] = [["", "cz_wallleft"], ["", "cz_floor"], ["", "cz_floor"], ["", "cz_floor"], ["", "cz_floor"], ["", "cz_wallright"]];
LEVELS[12].HEROES = [["", "", "", ""], [], ["", "Girl1", ""], ["", "Girl3", "", ""], ["", "Girl2", "", ""], ["", "", "", ""]];
LEVELS[12].OBJECTS = [[""], [""], ["", ""], ["", "", ""], [""], ["", "", ""]];
LEVELS[12].background = "back13";
LEVELS[12].background2 = "back13_up";
LEVELS[12].startCell = [1, 1];
LEVELS[12].endCell = [5, 1];
LEVELS[13] = [[""], ["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"]];
LEVELS[13].HEROES = [["", "", "", ""], [], ["", "", ""], ["", "", "Girl1", ""], ["", "", "", ""], ["", "", "", ""]];
LEVELS[13].OBJECTS = [[""], [""], ["", ""], ["", "", ""], [""], ["", "", ""]];
LEVELS[13].background = "back14";
LEVELS[13].background2 = "";
LEVELS[13].startCell = [1, 2];
LEVELS[13].endCell = [5, 2];
LEVELS[14] = [["cz_stage_down", "cz_updown", "cz_house_stage_up"], ["cz_floor", "", "cz_floor"], ["cz_floor", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"]];
LEVELS[14].HEROES = [["", "", "DOG%%2", ""], ["trigger%%%%1", "", "Girl3"], ["Polizei%%1", "", "Girl2"], ["", "", "trigger%%%%2", ""], ["", "", "", ""], ["", "", "", ""]];
LEVELS[14].OBJECTS = [["scoreup"], ["penetrant", "", ""], [""], ["", "", "scoreup"], ["", "", "speedup"], ["", "", ""]];
LEVELS[14].background = "back15";
LEVELS[14].background2 = "back15_up";
LEVELS[14].startCell = [0, 2];
LEVELS[14].endCell = [5, 2];
LEVELS[15] = [["cz_stage_down", "cz_house_stage_up"], ["cz_floor", "cz_floor"], ["cz_floor", "cz_floor"], ["cz_floor", "cz_stage_down", "cz_house_stage_up"], ["cz_floor", "", "cz_floor"], ["cz_floor", "", "cz_floor"]];
LEVELS[15].HEROES = [["", "DOG", "", ""], ["", "", ""], ["Polizei", "", ""], ["Polizei", "", "", ""], ["Polizei", "", "condom", ""], ["Polizei", "", "", ""]];
LEVELS[15].OBJECTS = [[""], ["powerup", "invisible", ""], [""], ["", "", ""], ["", "", ""], ["", "", ""]];
LEVELS[15].background = "back16";
LEVELS[15].background2 = "";
LEVELS[15].startCell = [0, 0];
LEVELS[15].endCell = [5, 2];
LEVELS[16] = [["cz_floor", "cz_floor", "cz_floor"], ["cz_floor", "cz_stage_down", "cz_house_stage_up"], ["cz_floor", "", "sever_opendoor"], ["cz_floor", "cz_floor", "cz_floor"], ["cz_floor", "cz_stage_down", "cz_house_stage_up"], ["cz_floor", "cz_floor"]];
LEVELS[16].HEROES = [["", "", "DOG%%1", ""], ["", "condom", ""], ["Polizei", "", "trigger%%%%1"], ["Polizei", "", "", ""], ["Polizei", "", "", ""], ["Polizei", "condom", "", ""]];
LEVELS[16].OBJECTS = [["", "switcher%%2,2"], ["", "", ""], [""], ["", "scoreup", "switcher2%%2,2"], ["", "", ""], ["", "", ""]];
LEVELS[16].background = "back17";
LEVELS[16].background2 = "";
LEVELS[16].startCell = [0, 2];
LEVELS[16].endCell = [5, 1];
LEVELS[17] = [["cz_floor", "cz_floor", ""], ["cz_floor", "cz_stage_down", "cz_house_stage_up"], ["opendoor", "cz_floor"], ["cz_floor", "cz_floor"], ["cz_floor", "cz_floor"], ["cz_stage_down", "cz_house_stage_up"]];
LEVELS[17].HEROES = [["Girl1", "", "", ""], ["", "condom", ""], ["", "condom", ""], ["Polizei", "", "", ""], ["", "", "", ""], ["", "", "", ""]];
LEVELS[17].OBJECTS = [["", ""], ["", "", "switcher2%%2,0"], [""], ["", "speedup", ""], ["", "switcher%%2,0", ""], ["", "", ""]];
LEVELS[17].background = "back18";
LEVELS[17].background2 = "";
LEVELS[17].startCell = [0, 1];
LEVELS[17].endCell = [3, 0];
LEVELS[18] = [["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"], ["cz_updown", "cz_updown", "cz_house_stage_up"]];
LEVELS[18].HEROES = [["", "", "", ""], ["", "", "Girl3"], ["", "", "Girl1"], ["", "", "Polizei", ""], ["", "", "", ""], ["", "", "DOG", ""]];
LEVELS[18].OBJECTS = [[""], ["", "", "door_marker"], ["", ""], ["", "", "speedup"], ["", "", "door_marker"], ["", "", ""]];
LEVELS[18].background = "back19";
LEVELS[18].background2 = "";
LEVELS[18].startCell = [0, 2];
LEVELS[18].endCell = [5, 0];
LEVELS[19] = [["cz_floor"], ["cz_floor"], ["cz_stage_down", "cz_updown", "cz_house_stage_up"], ["", "", "cz_wallright"], ["", "", "cz_floor"], ["", "", "cz_floor"]];
LEVELS[19].HEROES = [["DOG%%1", "", "", ""], ["", "", ""], ["trigger%%%%1", "", "Girl1"], ["", "", "", ""], ["", "", "", ""], ["", "", "DOG"]];
LEVELS[19].OBJECTS = [[""], ["", "", ""], ["", "", "penetrant"], ["", "", ""], ["", "", ""], ["", "", ""]];
LEVELS[19].background = "back20";
LEVELS[19].background2 = "back20_up";
LEVELS[19].startCell = [0, 0];
LEVELS[19].endCell = [3, 2];
LEVELS[20] = [[""], ["", "cz_floor", "cz_floor"], ["", "cz_floor", "cz_floor"], ["", "cz_stage_down", "cz_house_stage_up"], ["", "cz_floor", "cz_floor"], ["", "cz_floor", "cz_floor"]];
LEVELS[20].HEROES = [["", "", "", ""], ["", "", ""], ["", "Girl4", ""], ["", "", "", ""], ["", "", "", ""], ["", "", ""]];
LEVELS[20].OBJECTS = [[""], ["", "", ""], ["", "", "powerup"], ["", "", ""], ["", "", ""], ["", "", ""]];
LEVELS[20].background = "back21";
LEVELS[20].background2 = "";
LEVELS[20].startCell = [1, 1];
LEVELS[20].endCell = [5, 2];
LEVELS[21] = [[""], ["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"], ["", "cz_stage_down", "cz_house_stage_up", ""], ["", "cz_floor"]];
LEVELS[21].HEROES = [["", "", "", ""], ["", "", ""], ["", "", ""], ["", "", "", ""], ["", "Girl1", ""], ["", "alien", ""]];
LEVELS[21].OBJECTS = [[""], ["", "", ""], ["", "", "scoreup"], ["", "", "scoreup"], ["", "", ""], ["", "", ""]];
LEVELS[21].background = "back22";
LEVELS[21].background2 = "";
LEVELS[21].startCell = [1, 2];
LEVELS[21].endCell = [5, 1];
LEVELS[22] = [["", "", "cz_floor"], ["", "cz_floor", "cz_floor"], ["", "cz_stage_down", "cz_house_stage_up"], ["", "", "roof_opendoor"], ["", "", "cz_floor"], ["", "", "cz_floor"]];
LEVELS[22].HEROES = [["", "", "", ""], ["", "", ""], ["", "", ""], ["", "", "trigger%%%%1", ""], ["", "", ""], ["", "", "DOG%%1"]];
LEVELS[22].OBJECTS = [[""], ["", "speedup", "switcher%%3,2"], ["", "powerup", ""], ["", "", ""], ["", "", ""], ["", "", ""]];
LEVELS[22].background = "back23";
LEVELS[22].background2 = "";
LEVELS[22].startCell = [0, 2];
LEVELS[22].endCell = [5, 2];
LEVELS[23] = [["", "", "cz_floor"], ["", "", "cz_floor"], ["", "cz_stage_down", "cz_house_stage_up"], ["", "cz_floor"], ["", "cz_floor"], ["", "cz_floor"]];
LEVELS[23].HEROES = [["", "", "", ""], ["", "", "alien"], ["", "", "alien"], ["", "", "", ""], ["", "", ""], ["", "", ""]];
LEVELS[23].OBJECTS = [[""], ["", "", "scoreup"], ["", "", "scoreup"], ["", "", ""], ["", "", ""], ["", "", ""]];
LEVELS[23].background = "back24";
LEVELS[23].background2 = "";
LEVELS[23].startCell = [0, 2];
LEVELS[23].endCell = [4, 1];
LEVELS[24] = [["cz_wallleft", "cz_wallleft", "cz_wallleft", "cz_wallleft"], ["cz_floor", "cz_floor", "cz_stage_down", "cz_house_stage_up"], ["cz_stage_down", "cz_house_stage_up", "cz_floor", "cz_floor"], ["cz_floor", "cz_stage_down", "cz_house_stage_up", "cz_floor"], ["cz_floor", "cz_floor", "cz_floor", "cz_floor"], ["cz_wallright", "cz_wallright", "cz_wallright", "cz_wallright"]];
LEVELS[24].HEROES = [["Polizei", "", "", ""], ["", "Polizei", ""], ["", "", ""], ["", "", "", ""], ["", "", "", "Girl4"], ["", "", "Polizei", "DOG"]];
LEVELS[24].OBJECTS = [["scoreup", "powerup", "penetrant"], ["", "", ""], ["", "", ""], ["", "speedup", ""], ["", "", ""], ["powerup", "scoreup", "invisible"]];
LEVELS[24].background = "back25";
LEVELS[24].background2 = "";
LEVELS[24].startCell = [3, 0];
LEVELS[24].endCell = [4, 3];
LEVELS[25] = [["", "", "cz_wallleft"], ["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_wallright"]];
LEVELS[25].HEROES = [["", "", "", ""], ["", "", ""], ["", "", "Girl3"], ["", "", "Madam", ""], ["", "", ""], ["", "", "", ""]];
LEVELS[25].OBJECTS = [["", "", ""], ["", "", ""], ["", "", ""], ["", "", ""], ["", "", ""], ["", "", ""]];
LEVELS[25].background = "back26";
LEVELS[25].background2 = "";
LEVELS[25].startCell = [5, 2];
LEVELS[25].endCell = [1, 2];
LEVELS[26] = [["", "cz_wallleft"], ["", "cz_stage_down", "cz_updown", "cz_house_stage_up"], ["", "cz_floor"], ["", "cz_stage_down", "cz_updown", "cz_house_stage_up"], ["", "cz_floor", "", "cz_floor"], [""]];
LEVELS[26].HEROES = [["", "DOG%%1", "", ""], ["", "", ""], ["", "", ""], ["", "", "", ""], ["", "Girl1%%2", "", "trigger%%%%1,2"], ["", "", "", ""]];
LEVELS[26].OBJECTS = [["", "", ""], ["", "", ""], ["", "", ""], ["", "invisible", ""], ["", "", "", "powerup"], ["", "", ""]];
LEVELS[26].background = "back27";
LEVELS[26].background2 = "back27_up";
LEVELS[26].startCell = [1, 3];
LEVELS[26].endCell = [4, 1];
LEVELS[27] = [["cz_stage_down", "cz_updown", "cz_house_stage_up"], ["cz_floor", "undefined", "cz_floor"], ["cz_floor", "undefined", "cz_floor"], ["cz_floor", "undefined", "cz_floor"], ["cz_floor", "undefined", "cz_floor"], ["cz_floor", "undefined", "cz_floor"]];
LEVELS[27].HEROES = [["", "", "", ""], ["", "", ""], ["", "", "Girl2"], ["", "", "Polizei", ""], ["Madam", ""], ["DOG", "", "", ""]];
LEVELS[27].OBJECTS = [["", "", ""], ["powerup", "", "penetrant"], ["scoreup", "", ""], ["", "", ""], ["", "", "", ""], ["", "", ""]];
LEVELS[27].background = "back28";
LEVELS[27].background2 = "back28_up";
LEVELS[27].startCell = [0, 0];
LEVELS[27].endCell = [4, 2];
LEVELS[28] = [[""], [""], ["", "", "cz_floor"], ["", "", "cz_floor"], [""], [""]];
LEVELS[28].HEROES = [["", "", "", ""], ["", "", ""], ["", "", "Girl4"], ["", "", "Girl1", ""], ["", "", "", ""], ["", "", "", ""]];
LEVELS[28].OBJECTS = [["", "", ""], ["", "", ""], ["", "", ""], ["", "", ""], ["", "", "", ""], ["", "", ""]];
LEVELS[28].background = "back29";
LEVELS[28].background2 = "";
LEVELS[28].startCell = [2, 2];
LEVELS[28].endCell = [3, 2];
LEVELS[29] = [["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"], ["", "", "cz_floor"]];
LEVELS[29].HEROES = [["", "", "", ""], ["", "", ""], ["", "", ""], ["", "", "", ""], ["", "", "Polizei"], ["", "", "Polizei"]];
LEVELS[29].OBJECTS = [["", "", "penetrant"], ["", "", ""], ["", "", ""], ["", "", ""], ["", "", "", ""], ["", "", ""]];
LEVELS[29].background = "back30";
LEVELS[29].background2 = "";
LEVELS[29].startCell = [1, 2];
LEVELS[29].endCell = [4, 2];
function onEnterFrame() {
if (c_key) {
if (HERO.speed != HERO.nextspeed) {
if (!HERO.nextspeed) {
HERO.nextspeed = HERO.speed;
} else {
HERO.speed = HERO.nextspeed;
}
}
HERO.moving = HERO.moveMe(c_key);
}
if (shake) {
quake();
}
}
function getScore() {
return(STATISTIC.score);
}
function setScore(value) {
STATISTIC.score = value;
toolbar.targetscore = STATISTIC.score;
toolbar.onEnterFrame = toolbar.newScore;
}
function quake() {
shake--;
CONTAINER._x = 2 - random(5);
CONTAINER._y = 60 + (2 - random(5));
if (shake <= 0) {
delete shake;
trace("ch");
checkLifes();
}
}
PERSONA = function () {
this.moverment = "anim";
};
PERSONA.prototype.getLeftPoint = function () {
return([this.x, this.y, this.x, (this.y + cell_size) - this.speed]);
};
PERSONA.prototype.getRightPoint = function () {
return([((this.x + cell_size) - 40) - this.speed, this.y, ((this.x + cell_size) - 40) - this.speed, (this.y + cell_size) - this.speed]);
};
PERSONA.prototype.getUpPoint = function () {
return([this.x, this.y, ((this.x + cell_size) - this.speed) - 40, this.y]);
};
PERSONA.prototype.getDownPoint = function () {
return([this.x, (this.y + cell_size) - this.speed, ((this.x + cell_size) - this.speed) - 40, (this.y + cell_size) - this.speed]);
};
PERSONA.prototype.showMe = function (value) {
this.sprite.anim._visible = (this.sprite.anim1._visible = (this.sprite.anim2._visible = false));
this.sprite[this.moverment]._visible = true;
if (value) {
this.sprite[this.moverment].gotoAndStop("static");
} else {
this.sprite._x = this.x;
this.sprite._y = this.y;
this.sprite.gotoAndStop(this.c_dir);
if (this.sprite[this.moverment]._currentframe == this.sprite[this.moverment]._totalframes) {
this.sprite[this.moverment].gotoAndStop(1);
} else {
this.sprite[this.moverment].gotoAndStop(this.sprite[this.moverment]._currentframe + 1);
}
this.sprite.t++;
}
};
PERSONA.prototype.getMyCell = function () {
return(ZONE.getCell([this.x + 45, this.y + 65, this.x + 45, this.y + 65]));
};
PERSONA.prototype.getMyFullCell = function () {
var _local2 = ZONE.getCell(this.getLeftPoint());
var _local3 = ZONE.getCell(this.getRightPoint());
if (_local2 == _local3) {
return(_local2);
}
return(undefined);
};
PERSONA.prototype.getXYinCell = function () {
var _local3 = this.x - this.getMyCell()._x;
var _local2 = this.y - this.getMyCell()._y;
return([_local3, _local2]);
};
PERSONA.prototype.checkPosition = function () {
if (this.getMyFullCell()) {
if (((this.rotation != 1) && (this.rotation != 2)) && (this.getMyFullCell().type != 8)) {
this.c_dir = 1;
this.rotation = 1;
this.showMe();
}
if (this.getMyFullCell() == lastCell) {
var _local2 = EFFECTS.attachMovie("nextLevel", "nextLevel", 1001, {_x:this.getMyFullCell()._x, _y:this.getMyFullCell()._y + 60, events:"nextlevel"});
this.getMyFullCell().localObject = _local2;
}
} else if (EFFECTS.nextLevel) {
EFFECTS.nextLevel.removeMovieClip();
}
};
PERSONA.prototype.moveMe = function (dir) {
if (this.lock) {
return(undefined);
}
yspeed = 0;
xspeed = 0;
switch (dir) {
case "left" :
var _local3 = this.getLeftPoint();
xspeed = -this.speed;
_local3[0] = _local3[0] - this.speed;
_local3[2] = _local3[2] - this.speed;
this.c_dir = 1;
break;
case "right" :
_local3 = this.getRightPoint();
xspeed = this.speed;
_local3[0] = _local3[0] + this.speed;
_local3[2] = _local3[2] + this.speed;
this.c_dir = 2;
break;
case "up" :
_local3 = this.getUpPoint();
yspeed = -this.speed;
_local3[1] = _local3[1] - this.speed;
_local3[3] = _local3[3] - this.speed;
this.c_dir = 3;
break;
case "down" :
_local3 = this.getDownPoint();
yspeed = this.speed;
_local3[1] = _local3[1] + this.speed;
_local3[3] = _local3[3] + this.speed;
this.c_dir = 4;
}
if ((this.getMyFullCell() == ZONE.getCell(_local3)) && (this.getMyFullCell())) {
this.myExCell = this.getMyFullCell();
switch (this.myExCell.type) {
case 4 :
if ((((this.getXYinCell()[0] + this.speed) < 20) && (dir == "right")) || (dir == "left")) {
this.x = this.x + xspeed;
this.y = this.y + yspeed;
this.rotation = this.c_dir;
this.showMe();
return(true);
}
break;
case 5 :
if ((((this.getXYinCell()[0] + this.speed) > 20) && (dir == "left")) || (dir == "right")) {
this.x = this.x + xspeed;
this.y = this.y + yspeed;
this.rotation = this.c_dir;
this.showMe();
return(true);
}
break;
case 8 :
if ((dir != "left") && (dir != "right")) {
this.x = this.x + xspeed;
this.y = this.y + yspeed;
this.rotation = this.c_dir;
this.showMe();
return(true);
}
break;
default :
this.x = this.x + xspeed;
this.y = this.y + yspeed;
this.rotation = this.c_dir;
this.showMe();
return(true);
}
this.showMe(true);
} else {
if (this.hero) {
this.checkPosition();
}
switch (ZONE.getCell(_local3).type) {
case 2 :
if ((dir == "left") || (dir == "right")) {
this.x = this.x + xspeed;
this.y = this.y + yspeed;
this.rotation = this.c_dir;
this.showMe();
return(true);
}
break;
case 3 :
this.x = this.x + xspeed;
this.y = this.y + yspeed;
this.rotation = this.c_dir;
this.showMe();
return(true);
case 4 :
if (dir == "right") {
this.x = this.x + xspeed;
this.y = this.y + yspeed;
this.rotation = this.c_dir;
this.showMe();
return(true);
}
break;
case 5 :
if (dir == "left") {
this.x = this.x + xspeed;
this.y = this.y + yspeed;
this.rotation = this.c_dir;
this.showMe();
return(true);
}
break;
case 6 :
if (dir != "up") {
this.x = this.x + xspeed;
this.y = this.y + yspeed;
this.rotation = this.c_dir;
this.showMe();
return(true);
}
break;
case 7 :
if (dir != "down") {
this.x = this.x + xspeed;
this.y = this.y + yspeed;
this.rotation = this.c_dir;
this.showMe();
return(true);
}
break;
case 8 :
if (!((dir != "left") && (dir != "right"))) {
break;
}
this.x = this.x + xspeed;
this.y = this.y + yspeed;
this.rotation = this.c_dir;
this.showMe();
return(true);
}
this.showMe(true);
}
return(false);
};
PERSONA.prototype.underFuck = function (value) {
if (!value) {
this.sprite.gotoAndStop("fuck" + random(this.fucks));
} else {
this.sprite.gotoAndStop(value);
}
this.lock = true;
};
PERSONA.prototype.hideMe = function (value, fucker) {
if (value) {
this.lock = true;
this.sprite._visible = false;
} else {
this.lock = false;
this.x = fucker.x;
this.y = fucker.y;
this.c_dir = 2;
this.showMe(false);
this.sprite._visible = true;
}
EVENTS.doingAction = false;
};
PERSONA.prototype.killMe = function () {
this.sprite.removeMovieClip();
};
ZONE = new Object();
ZONE.getCell = function (value) {
var _local5 = Math.floor(value[0] / cell_size);
var _local6 = Math.floor(value[1] / cell_size);
var _local3 = Math.floor(value[2] / cell_size);
var _local4 = Math.floor(value[3] / cell_size);
var _local2 = CONTAINER[(("cell_" + _local5) + "_") + _local6];
var _local7 = CONTAINER[(("cell_" + _local3) + "_") + _local4];
if (_local2 == _local7) {
return(_local2);
}
};
KL = new Object();
KL.onKeyDown = function () {
if (HERO.lock) {
trace("lock!!!");
return(undefined);
}
switch (Key.getCode()) {
case 37 :
c_key = "left";
return;
case 39 :
c_key = "right";
return;
case 38 :
c_key = "up";
return;
case 40 :
c_key = "down";
return;
case 32 :
delete c_key;
EVENTS.Action();
}
};
KL.onKeyUp = function () {
switch (Key.getCode()) {
case 37 :
if (c_key == "left") {
delete c_key;
}
break;
case 39 :
if (c_key == "right") {
delete c_key;
}
break;
case 38 :
if (c_key == "up") {
delete c_key;
}
break;
case 40 :
if (c_key == "down") {
delete c_key;
}
break;
case 32 :
EVENTS.doingAction = false;
}
HERO.checkPosition();
};
Key.addListener(KL);
STATISTIC = new Object();
STATISTIC.addProperty("score", getScore, setScore);
STATISTIC.score = 0;
EVENTS = new Object();
EVENTS.Action = function () {
this.doingAction = true;
switch (HERO.getMyFullCell().localObject.events) {
case "speedup" :
toolbar.bonuses.gotoAndStop(2);
HERO.nextspeed = 8;
EVENTS.bonusCount("endSpeed", 10000, "speed");
HERO.getMyFullCell().localObject.removeMovieClip();
delete HERO.getMyFullCell().localObject;
bonusSound.start();
this.doingAction = false;
break;
case "door" :
this.DoorsTeleport(HERO.getMyFullCell().localObject);
this.doingAction = false;
break;
case "powerup" :
Lifes++;
toolbar.bonuses.gotoAndStop(3);
toolbar.lifeflash.gotoAndPlay(2);
EVENTS.bonusCount("endUp", 2000, "up");
HERO.getMyFullCell().localObject.removeMovieClip();
this.doingAction = false;
bonusSound.start();
delete HERO.getMyFullCell().localObject;
break;
case "switch" :
HERO.getMyFullCell().localObject.nextFrame();
this.switcher(HERO.getMyFullCell().localObject);
delete HERO.getMyFullCell().localObject;
this.doingAction = false;
break;
case "switch2" :
HERO.getMyFullCell().localObject.nextFrame();
this.switcher2(HERO.getMyFullCell().localObject);
delete HERO.getMyFullCell().localObject;
this.doingAction = false;
break;
case "nextlevel" :
EVENTS.bonusCount("nextLevel", 200, "level");
break;
case "scoreup" :
bonusSound.start();
toolbar.bonuses.gotoAndStop(4);
STATISTIC.score = STATISTIC.score + (50 + (random(6) * 10));
EVENTS.bonusCount("endUp", 2000, "up");
HERO.getMyFullCell().localObject.removeMovieClip();
this.doingAction = false;
delete HERO.getMyFullCell().localObject;
break;
case "penetrant" :
bonusSound.start();
toolbar.bonuses.gotoAndStop(6);
HERO.penetrant = true;
EVENTS.bonusCount("endPenetrant", 10000, "pen");
HERO.getMyFullCell().localObject.removeMovieClip();
delete HERO.getMyFullCell().localObject;
this.doingAction = false;
break;
case "invisible" :
bonusSound.start();
HERO.sprite._alpha = 50;
toolbar.bonuses.gotoAndStop(5);
HERO.invisible = true;
EVENTS.bonusCount("endInvisible", 10000, "vis");
HERO.getMyFullCell().localObject.removeMovieClip();
delete HERO.getMyFullCell().localObject;
this.doingAction = false;
}
};
EVENTS.DoorsTeleport = function (value) {
for (var _local2 in CONTAINER) {
if ((CONTAINER[_local2] != value) && (CONTAINER[_local2].events == value.events)) {
HERO.x = CONTAINER[_local2]._x;
HERO.y = CONTAINER[_local2]._y;
HERO.c_dir = 1;
HERO.showMe();
break;
}
}
};
EVENTS.switcher = function (value) {
CONTAINER[(("cell_" + value.target[0]) + "_") + value.target[1]].nextFrame();
};
EVENTS.switcher2 = function (value) {
CONTAINER[(("cell_" + value.target[0]) + "_") + value.target[1]].prevFrame();
};
EVENTS.bonusCount = function (value, timeout, intname) {
if (INT[intname]) {
clearInterval(INT[intname]);
}
INT[intname] = setInterval(this[value], timeout, true);
};
EVENTS.endSpeed = function () {
HERO.nextspeed = 4;
toolbar.bonuses.gotoAndStop(1);
clearInterval(INT.speed);
};
EVENTS.endUp = function () {
toolbar.bonuses.gotoAndStop(1);
clearInterval(INT.up);
};
EVENTS.endInvisible = function () {
toolbar.bonuses.gotoAndStop(1);
clearInterval(INT.vis);
HERO.invisible = false;
HERO.sprite._alpha = 100;
};
EVENTS.endPenetrant = function () {
toolbar.bonuses.gotoAndStop(1);
clearInterval(INT.pen);
delete HERO.penetrant;
};
EVENTS.nextLevel = function () {
if (!HERO.lock) {
endLevel();
}
clearInterval(INT.level);
};
PERSONA.prototype.AI_Girl1 = function () {
if (!this.mdir) {
this.mdir = "left";
this.waitingTime = 1;
}
this.waitingTime--;
var _local5 = 200;
var _local3 = Math.abs(this.x - HERO.x);
var _local4 = Math.abs(this.y - HERO.y);
if ((_local3 < _local5) && (_local4 < 80)) {
var _local2 = true;
if ((this.x - HERO.x) > 0) {
var _local6 = "left";
this.mdir = "right";
} else {
var _local6 = "right";
this.mdir = "left";
}
this.speed = 3;
this.moverment = "anim1";
} else {
this.speed = 1;
this.moverment = "anim";
}
if (((random(100) == 0) && (this.waitingTime < 0)) && (!_local2)) {
this.waitingTime = 50 + random(50);
this.showMe(true);
}
if ((this.waitingTime < 0) || (_local2)) {
if (this.moveMe(this.mdir) == false) {
if (_local2) {
this.sprite[this.moverment].gotoAndStop("fear");
}
if (this.mdir == "left") {
this.mdir = "right";
} else {
this.mdir = "left";
}
}
} else if (random(2) == 0) {
this.mdir = "left";
} else {
this.mdir = "left";
}
if (((((_local3 < 100) && (EVENTS.doingAction)) && (_local4 < 80)) && (!HERO.invisible)) && (!HERO.lock)) {
this.underFuck();
STATISTIC.score = STATISTIC.score + (100 + (random(6) * 10));
HERO.hideMe(true);
delete this.sprite.onEnterFrame;
}
};
PERSONA.prototype.AI_Girl2 = function () {
var _local2 = Math.abs(this.x - HERO.x);
var _local3 = Math.abs(this.y - HERO.y);
if (((((_local2 < 100) && (EVENTS.doingAction)) && (_local3 < 80)) && (!HERO.invisible)) && (!HERO.lock)) {
this.underFuck();
STATISTIC.score = STATISTIC.score + (50 + (random(6) * 10));
HERO.hideMe(true);
delete this.sprite.onEnterFrame;
}
};
PERSONA.prototype.AI_Girl3 = function () {
if (!this.mdir) {
this.mdir = "left";
this.waitingTime = 1;
}
this.waitingTime--;
var _local5 = 200;
var _local2 = Math.abs(this.x - HERO.x);
var _local3 = Math.abs(this.y - HERO.y);
if ((_local2 < _local5) && (_local3 < 80)) {
var _local4 = true;
if ((this.x - HERO.x) > 0) {
var _local6 = "left";
this.mdir = "right";
} else {
var _local6 = "right";
this.mdir = "left";
}
this.speed = 1;
} else {
this.speed = 1;
}
if ((this.waitingTime < 0) || (_local4)) {
if (this.moveMe(this.mdir) == false) {
if (_local4) {
this.sprite[this.moverment].gotoAndStop("fear");
}
if (this.mdir == "left") {
this.mdir = "right";
} else {
this.mdir = "left";
}
}
} else if (random(2) == 0) {
this.mdir = "left";
} else {
this.mdir = "left";
}
if (((((_local2 < 100) && (EVENTS.doingAction)) && (_local3 < 80)) && (!HERO.invisible)) && (!HERO.lock)) {
this.underFuck();
STATISTIC.score = STATISTIC.score + (100 + (random(6) * 10));
HERO.hideMe(true);
delete this.sprite.onEnterFrame;
}
};
PERSONA.prototype.AI_Girl4 = PERSONA.prototype.AI_Girl3;
PERSONA.prototype.AI_Madam = function () {
if (!this.mdir) {
this.mdir = "left";
this.waitingTime = 1;
}
this.waitingTime--;
var _local6 = 200;
var _local3 = 40;
var _local2 = Math.abs(this.x - HERO.x);
var _local4 = Math.abs(this.y - HERO.y);
if ((_local2 < _local6) && (_local4 < 80)) {
var _local5 = true;
if (((this.x - HERO.x) > 0) && (_local2 > _local3)) {
var _local7 = "left";
this.mdir = "left";
this.speed = 2;
} else if (_local2 > _local3) {
var _local7 = "right";
this.mdir = "right";
this.speed = 2;
} else {
this.speed = 0;
}
} else {
this.speed = 1;
}
if ((this.waitingTime < 0) || (_local5)) {
if (this.moveMe(this.mdir) == false) {
if (_local5) {
this.sprite[this.moverment].gotoAndStop("fear");
}
if (this.mdir == "left") {
this.mdir = "left";
} else {
this.mdir = "right";
}
}
} else if (random(2) == 0) {
this.mdir = "left";
} else {
this.mdir = "left";
}
if (((((_local2 < 100) && (EVENTS.doingAction)) && (_local4 < 80)) && (!HERO.invisible)) && (!HERO.lock)) {
this.underFuck();
STATISTIC.score = STATISTIC.score + (100 + (random(6) * 10));
HERO.hideMe(true);
delete this.sprite.onEnterFrame;
}
};
PERSONA.prototype.AI_Polizei = function () {
if (!this.mdir) {
this.mdir = "left";
this.waitingTime = 1;
}
this.waitingTime--;
var _local5 = 240;
var _local3 = Math.abs(this.x - HERO.x);
var _local4 = Math.abs(this.y - HERO.y);
if (((_local3 < _local5) && (_local4 < 50)) && ((!HERO.lock) && (!HERO.invisible))) {
var _local2 = true;
if ((this.x - HERO.x) > 0) {
var _local6 = "left";
this.mdir = "left";
} else {
var _local6 = "right";
this.mdir = "right";
}
this.moverment = "anim1";
this.speed = 4.5;
} else {
this.speed = 2;
this.moverment = "anim";
}
if (((random(100) == 0) && (this.waitingTime < 0)) && (!_local2)) {
this.waitingTime = 30 + random(50);
this.showMe(true);
}
if ((this.waitingTime < 0) || (_local2)) {
if (this.moveMe(this.mdir) == false) {
if (_local2) {
}
if (this.mdir == "left") {
this.mdir = "right";
} else {
this.mdir = "left";
}
}
} else if (random(2) == 0) {
this.mdir = "left";
} else {
this.mdir = "left";
}
if ((((_local3 < 30) && (_local4 < 50)) && (!HERO.lock)) && (!HERO.invisible)) {
this.underFuck();
HERO.hideMe(true);
Lifes--;
}
if (HERO.penetrant) {
this.AI_Polizei = this.AI_Polizei_scary;
}
};
PERSONA.prototype.AI_Polizei_scary = function () {
if (!this.mdir) {
this.mdir = "left";
this.waitingTime = 1;
}
this.waitingTime--;
var _local5 = 240;
var _local3 = Math.abs(this.x - HERO.x);
var _local4 = Math.abs(this.y - HERO.y);
if (((_local3 < _local5) && (_local4 < 50)) && ((!HERO.lock) && (!HERO.invisible))) {
var _local2 = true;
if ((this.x - HERO.x) > 0) {
var _local6 = "left";
this.mdir = "right";
} else {
var _local6 = "right";
this.mdir = "left";
}
this.moverment = "anim1";
this.speed = 3;
} else {
this.speed = 2;
this.moverment = "anim";
}
if (((random(100) == 0) && (this.waitingTime < 0)) && (!_local2)) {
this.waitingTime = 30 + random(50);
this.showMe(true);
}
if ((this.waitingTime < 0) || (_local2)) {
if (this.moveMe(this.mdir) == false) {
if (_local2) {
}
if (this.mdir == "left") {
this.mdir = "right";
} else {
this.mdir = "left";
}
}
} else if (random(2) == 0) {
this.mdir = "left";
} else {
this.mdir = "left";
}
if (((((_local3 < 100) && (EVENTS.doingAction)) && (_local4 < 80)) && (!HERO.invisible)) && (!HERO.lock)) {
this.underFuck("fuck1");
STATISTIC.score = STATISTIC.score + (200 + (random(6) * 10));
HERO.hideMe(true);
delete this.sprite.onEnterFrame;
}
if (!HERO.penetrant) {
this.AI_Polizei = this.AI_Polizei_normal;
}
};
PERSONA.prototype.AI_Polizei_normal = PERSONA.prototype.AI_Polizei;
PERSONA.prototype.AI_DOG = function () {
var _local2 = Math.abs(this.x - HERO.x);
var _local3 = Math.abs(this.y - HERO.y);
this.speed = 8;
this.moverment = "anim";
if (this.moveMe(this.mdir) == false) {
if (this.mdir == "left") {
this.mdir = "right";
} else {
this.mdir = "left";
}
}
if ((((_local2 < 30) && (_local3 < 50)) && (!HERO.lock)) && (!HERO.invisible)) {
this.underFuck();
HERO.hideMe(true);
Lifes--;
}
if (HERO.penetrant) {
PERSONA.prototype.AI_DOG = PERSONA.prototype.AI_DOG_scary;
}
};
PERSONA.prototype.AI_DOG_normal = PERSONA.prototype.AI_DOG;
PERSONA.prototype.AI_DOG_scary = function () {
var _local2 = Math.abs(this.x - HERO.x);
var _local3 = Math.abs(this.y - HERO.y);
this.speed = 8;
this.moverment = "anim";
if (this.moveMe(this.mdir) == false) {
if (this.mdir == "left") {
this.mdir = "right";
} else {
this.mdir = "left";
}
}
if (((((_local2 < 100) && (EVENTS.doingAction)) && (_local3 < 80)) && (!HERO.invisible)) && (!HERO.lock)) {
this.underFuck("fuck1");
STATISTIC.score = STATISTIC.score + (200 + (random(6) * 10));
HERO.hideMe(true);
delete this.sprite.onEnterFrame;
}
if (!HERO.penetrant) {
PERSONA.prototype.AI_DOG = PERSONA.prototype.AI_DOG_normal;
}
};
PERSONA.prototype.AI_trigger = function () {
var _local8 = Math.abs(this.x - HERO.x);
var _local9 = Math.abs(this.y - HERO.y);
this.moverment = "anim";
if (((_local8 < 50) && (_local9 < 50)) && (!HERO.lock)) {
var _local3 = this.target.split(",");
var _local2 = 0;
while (_local2 < _local3.length) {
var _local4 = LockedObjects[Number(_local3[_local2])];
EFFECTS.attachMovie("jinn", "jinn" + _local2, 1002 + _local2, {_x:LockedObjects[_local3[_local2]].x, _y:LockedObjects[_local3[_local2]].y + 60, tar:_local4});
_local2++;
}
this.sprite.removeMovieClip();
}
};
PERSONA.prototype.AI_alien = function () {
var _local2 = Math.abs(this.x - HERO.x);
var _local3 = Math.abs(this.y - HERO.y);
this.moverment = "anim";
if (!this.timer) {
this.timer = 80 + random(45);
this.t = 0;
}
this.t++;
if (this.t > this.timer) {
this.t = 0;
this.sprite.anim.gotoAndPlay(2);
}
if (((((_local2 < 50) && (_local3 < 50)) && (!HERO.lock)) && (!HERO.invisible)) && (this.t < 40)) {
this.underFuck();
HERO.hideMe(true);
Lifes--;
}
};
PERSONA.prototype.AI_condom = function () {
var _local2 = Math.abs(this.x - HERO.x);
var _local3 = Math.abs(this.y - HERO.y);
this.moverment = "anim";
if (!this.timer) {
this.timer = 30 + random(30);
this.t = 0;
}
this.t++;
if (this.t > this.timer) {
this.t = 0;
this.sprite.anim.gotoAndPlay(2);
}
if (((((_local2 < 30) && (_local3 < 50)) && (!HERO.lock)) && (!HERO.invisible)) && (this.sprite.anim._currentframe > 6)) {
this.underFuck();
if (HERO.c_dir == 2) {
this.sprite.anim._xscale = -100;
}
HERO.hideMe(true);
Lifes--;
}
};
function switchLevel() {
if (LEVELS[LEVEL]) {
Field = LEVELS[LEVEL];
Objects = LEVELS[LEVEL].OBJECTS;
Heroes = LEVELS[LEVEL].HEROES;
createField();
HERO.x = startCell._x + 20;
HERO.y = startCell._y;
} else {
EFFECTS.removeMovieClip();
CONTAINER.removeMovieClip();
toolbar.removeMovieClip();
var _local2 = this.attachMovie("mult", "mult", 100);
_local2._x = 223;
_local2._y = 175;
}
}
function createField() {
EFFECTS = this.createEmptyMovieClip("effects", 3400, {_x:0, _y:60});
CONTAINER = this.createEmptyMovieClip("container", 100, {_x:0, _y:60});
CONTAINER.attachMovie(LEVELS[LEVEL].background, "background", 99, {_y:-60});
CONTAINER.attachMovie(LEVELS[LEVEL].background2, "background2", 3500, {_y:-60});
CONTAINER._y = 60;
LockedObjects = new Array();
if (!toolbar) {
attachMovie("Toolbar", "toolbar", 101);
}
if (!STATISTIC.score) {
STATISTIC.score = 0;
} else {
STATISTIC.score;
}
var _local7 = -1;
var _local4 = 0;
while (_local4 < 6) {
var _local3 = 0;
while (_local3 < 4) {
_local7++;
var _local8 = CONTAINER.attachMovie(Field[_local4][_local3], (("cell_" + _local4) + "_") + _local3, _local7 + 200, {_x:_local4 * cell_size, _y:_local3 * cell_size});
var _local5 = CONTAINER.attachMovie(Objects[_local4][_local3].split("%%")[0], (("bonus_" + _local4) + "_") + _local3, _local7 + 100, {_x:_local4 * cell_size, _y:_local3 * cell_size});
if (_local5) {
_local8.localObject = _local5;
_local5.myCell = _local8;
_local5.target = Objects[_local4][_local3].split("%%")[1].split(",");
}
TT = new Object();
var _local6 = CONTAINER.attachMovie(Heroes[_local4][_local3].split("%%")[0], (("personage_" + _local4) + "_") + _local3, _local7 + 1100, {_x:_local4 * cell_size, _y:_local3 * cell_size});
if (_local6) {
TT[(_local4 + "_") + _local3] = new PERSONA();
switch (Heroes[_local4][_local3].split("%%")[0]) {
case "Girl1" :
TT[(_local4 + "_") + _local3].fucks = 2;
break;
case "Girl2" :
TT[(_local4 + "_") + _local3].fucks = 2;
break;
case "Girl3" :
TT[(_local4 + "_") + _local3].fucks = 1;
break;
case "Polizei" :
TT[(_local4 + "_") + _local3].fucks = 1;
break;
case "alien" :
TT[(_local4 + "_") + _local3].fucks = 1;
}
TT[(_local4 + "_") + _local3].x = _local4 * cell_size;
TT[(_local4 + "_") + _local3].y = _local3 * cell_size;
TT[(_local4 + "_") + _local3].sprite = _local6;
_local6.parent = TT[(_local4 + "_") + _local3];
TT[(_local4 + "_") + _local3].moving = false;
TT[(_local4 + "_") + _local3].speed = 1;
TT[(_local4 + "_") + _local3].sprite.ai_name = "AI_" + Heroes[_local4][_local3].split("%%")[0];
TT[(_local4 + "_") + _local3].target = Heroes[_local4][_local3].split("%%")[2];
if (!Heroes[_local4][_local3].split("%%")[1]) {
TT[(_local4 + "_") + _local3].sprite.onEnterFrame = function () {
this.parent[this.ai_name]();
};
} else {
LockedObjects[Number(Heroes[_local4][_local3].split("%%")[1])] = TT[(_local4 + "_") + _local3];
TT[(_local4 + "_") + _local3].sprite._visible = false;
TT[(_local4 + "_") + _local3].sprite.go = function () {
this._visible = true;
this.onEnterFrame = function () {
this.parent[this.ai_name]();
};
};
}
}
_local3++;
}
_local4++;
}
startCell = CONTAINER[(("cell_" + LEVELS[LEVEL].startCell[0]) + "_") + LEVELS[LEVEL].startCell[1]];
lastCell = CONTAINER[(("cell_" + LEVELS[LEVEL].endCell[0]) + "_") + LEVELS[LEVEL].endCell[1]];
var _local9 = CONTAINER.attachMovie("hero", "hero", 1000, {_x:HERO.x, _y:HERO.y});
_global.HERO = new PERSONA();
HERO.x = startCell._x + 20;
HERO.y = startCell._y;
HERO.sprite = _local9;
HERO.moving = false;
HERO.speed = 4;
HERO.showMe();
_local9.t = 0;
HERO.sprite.onEnterFrame = staticTracer;
HERO.hero = true;
}
function staticTracer() {
if (this.flag) {
this.flag = false;
if (this.t == this.ext) {
this.anim.gotoAndStop("static");
this.t = 0;
}
} else {
this.flag = true;
this.ext = this.t;
}
}
function endLevel() {
clearInterval(INT.level);
LEVEL++;
nextLevel.removeMovieClip();
hero.removeMovieClip();
switchLevel();
}
function GameOver(value) {
HERO.lock = true;
HERO.hideMe(true);
if (value) {
CONTAINER.removeMovieClip();
toolbar.removeMovieClip();
gm.removeMovieClip();
nextFrame();
} else {
this.attachMovie("gm", "gm", 5000);
CONTAINER.removeMovieClip();
}
}
function checkLifes() {
if (Lifes <= 0) {
GameOver();
}
}
stop();
_global.TaskRoot = this;
if (!LEVEL) {
LEVEL = 0;
}
Lifes = 999;
cell_size = 135;
bonusSound = new Sound(this);
bonusSound.attachSound("bonusup");
switchLevel();
INT = new Object();
Frame 4
function rem() {
Key.removeListener(KL);
for (var _local2 in this) {
removeListener(this[_local2]);
clearInterval(this[_local2]);
this[_local2].removeMovieClip();
if (this[_local2] != rem) {
delete this[_local2];
}
}
gotoAndStop (2);
}
rem();
Symbol 38 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 31
lips.gotoAndPlay(31);
Symbol 87 MovieClip Frame 86
lips.gotoAndStop(37);
Symbol 87 MovieClip Frame 87
lips.gotoAndStop(34);
Symbol 95 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 13
gotoAndPlay (1);
Symbol 144 MovieClip Frame 14
gotoAndPlay (1);
Symbol 160 MovieClip Frame 13
gotoAndPlay (1);
Symbol 174 MovieClip [mult] Frame 482
singers.singer.gotoAndStop(86);
singers.singer2.gotoAndStop(86);
singers.singer3.gotoAndStop(86);
Symbol 174 MovieClip [mult] Frame 903
singers.singer.gotoAndPlay(31);
singers.singer2.gotoAndPlay(31);
singers.singer3.gotoAndPlay(31);
Symbol 174 MovieClip [mult] Frame 988
singers.singer.gotoAndStop(87);
singers.singer2.gotoAndStop(87);
singers.singer3.gotoAndStop(87);
Symbol 174 MovieClip [mult] Frame 1057
singers.singer.gotoAndPlay(25);
singers.singer2.gotoAndPlay(25);
singers.singer3.gotoAndPlay(25);
Symbol 174 MovieClip [mult] Frame 1309
stop();
TaskRoot.GameOver();
Symbol 183 MovieClip Frame 1
Symbol 183 MovieClip Frame 11
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 353 MovieClip [cz_updown] Frame 1
type = 8;
lname = "cz_updown";
Symbol 379 MovieClip Frame 1
stop();
Symbol 384 MovieClip Frame 1
stop();
Symbol 399 Button
on (release, keyPress "<Escape>") {
_parent.GameOver(true);
}
Symbol 413 MovieClip Frame 1
stop();
Symbol 415 MovieClip [Toolbar] Frame 1
function newScore() {
SCORE.text = Number(SCORE.text) + 5;
scoreflash.play();
if (Number(SCORE.text) >= targetscore) {
delete onEnterFrame;
SCORE.text = targetscore;
delete targetscore;
scoreflash.gotoAndStop(1);
}
}
Symbol 417 MovieClip [penetrant] Frame 1
bonus = true;
lname = "penetrant";
events = "penetrant";
Symbol 418 MovieClip [invisible] Frame 1
bonus = true;
lname = "invisible";
events = "invisible";
Symbol 419 MovieClip [scoreup] Frame 1
bonus = true;
lname = "scoreup";
events = "scoreup";
Symbol 420 MovieClip [speedup] Frame 1
bonus = true;
lname = "powerup";
events = "speedup";
Symbol 421 MovieClip [powerup] Frame 1
bonus = true;
lname = "powerup";
events = "powerup";
Symbol 430 MovieClip Frame 13
_parent.type = 2;
stop();
Symbol 431 MovieClip [roof_opendoor] Frame 1
stop();
type = 5;
lname = "opendoor";
Symbol 434 MovieClip Frame 15
stop();
Symbol 435 MovieClip Frame 15
stop();
Symbol 436 MovieClip [sever_opendoor] Frame 1
stop();
type = 5;
lname = "opendoor";
Symbol 436 MovieClip [sever_opendoor] Frame 2
type = 2;
Symbol 439 MovieClip [opendoor] Frame 1
stop();
type = 5;
lname = "opendoor";
Symbol 439 MovieClip [opendoor] Frame 2
type = 2;
Symbol 440 MovieClip [trigger] Frame 1
stop();
bonus = true;
events = "trigg";
Symbol 445 MovieClip [jinn] Frame 17
stop();
trace(tar);
tar.sprite.go();
Symbol 450 MovieClip [switcher2] Frame 1
stop();
bonus = true;
lname = "switcher";
events = "switch2";
Symbol 453 MovieClip [switcher] Frame 1
stop();
bonus = true;
lname = "switcher";
events = "switch";
Symbol 514 MovieClip [back1] Frame 1
l.gotoAndStop(7);
Symbol 515 MovieClip [door_marker] Frame 1
bonus = true;
lname = "door_marker";
events = "door";
Symbol 516 MovieClip [cz_allpass] Frame 1
type = 3;
lname = "cz_allpass";
Symbol 517 MovieClip [cz_stage_down] Frame 1
type = 7;
lname = "cs_stage_down";
Symbol 518 MovieClip [cz_wallright] Frame 1
type = 4;
lname = "cz_wallright";
Symbol 519 MovieClip [cz_wallleft] Frame 1
type = 5;
lname = "cz_wallleft";
Symbol 520 MovieClip [cz_house_stage_up] Frame 1
type = 6;
lname = "cz_house_stage_up";
Symbol 521 MovieClip [cz_floor] Frame 1
type = 2;
lname = "cz_floor";
Symbol 525 MovieClip Frame 1
type = 2;
lname = "floor_house";
Symbol 527 MovieClip Frame 1
type = 3;
lname = "allpass_house";
Symbol 529 MovieClip Frame 1
type = 5;
lname = "wallleft_house";
Symbol 531 MovieClip Frame 1
type = 6;
lname = "stageup_house";
Symbol 533 MovieClip Frame 1
type = 7;
lname = "stagedown_house";
Symbol 534 MovieClip [cell] Frame 1
stop();
Symbol 538 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 1
prezik.gotoAndStop(9);
h.gotoAndStop(3);
had.gotoAndStop(3);
if (!t) {
t = 1;
} else {
t++;
}
Symbol 584 MovieClip Frame 2
had.gotoAndStop(4);
Symbol 584 MovieClip Frame 6
had.gotoAndStop(3);
Symbol 584 MovieClip Frame 7
if (t < 9) {
gotoAndPlay (1);
}
Symbol 584 MovieClip Frame 15
had.gotoAndStop(5);
Symbol 584 MovieClip Frame 21
h.gotoAndStop(4);
Symbol 584 MovieClip Frame 37
TaskRoot.shake = 25;
Symbol 584 MovieClip Frame 50
stop();
HERO.hideMe(false, _parent._parent.parent);
_parent._parent.parent.killMe();
Symbol 585 MovieClip Frame 19
stop();
Symbol 587 MovieClip Frame 1
prezik.gotoAndStop(9);
h.gotoAndStop(2);
had.gotoAndStop(6);
if (!t) {
t = 1;
} else {
t++;
}
Symbol 587 MovieClip Frame 7
if (t < 9) {
gotoAndPlay (1);
}
Symbol 587 MovieClip Frame 15
had.gotoAndStop(2);
Symbol 587 MovieClip Frame 21
h.gotoAndStop(2);
Symbol 587 MovieClip Frame 32
TaskRoot.shake = 25;
Symbol 587 MovieClip Frame 50
stop();
HERO.hideMe(false, _parent._parent.parent);
_parent._parent.parent.killMe();
Symbol 588 MovieClip Frame 19
stop();
Symbol 589 MovieClip [DOG] Frame 1
stop();
if (!init) {
fucks = 1;
init = true;
}
Symbol 604 MovieClip Frame 1
stop();
Symbol 604 MovieClip Frame 2
stop();
Symbol 611 MovieClip Frame 19
gotoAndPlay (1);
Symbol 612 MovieClip Frame 1
h.gotoAndStop(2);
Symbol 612 MovieClip Frame 15
gotoAndPlay (1);
Symbol 614 MovieClip Frame 1
if (!t) {
t = 1;
} else {
t++;
}
prezik.gotoAndStop(9);
h.gotoAndStop(3);
had.gotoAndStop(3);
Symbol 614 MovieClip Frame 4
had.gotoAndStop(4);
Symbol 614 MovieClip Frame 8
had.gotoAndStop(3);
Symbol 614 MovieClip Frame 10
if (t < 7) {
gotoAndPlay (1);
}
Symbol 614 MovieClip Frame 17
had.gotoAndStop(5);
Symbol 614 MovieClip Frame 23
h.gotoAndStop(4);
Symbol 614 MovieClip Frame 41
TaskRoot.shake = 40;
Symbol 614 MovieClip Frame 78
stop();
HERO.hideMe(false, _parent._parent.parent);
_parent._parent.parent.killMe();
Symbol 615 MovieClip Frame 19
stop();
Symbol 622 MovieClip Frame 1
if (!t) {
t = 1;
} else {
t++;
}
prezik.gotoAndStop(9);
ruka.gotoAndStop(2);
ruka1.gotoAndStop(2);
noga.gotoAndStop(2);
noga1.gotoAndStop(2);
h.gotoAndStop(4);
Symbol 622 MovieClip Frame 4
had.gotoAndStop(6);
Symbol 622 MovieClip Frame 8
had.gotoAndStop(1);
Symbol 622 MovieClip Frame 10
if (t < 7) {
gotoAndPlay (1);
}
Symbol 622 MovieClip Frame 17
had.gotoAndStop(2);
p.gotoAndStop(1);
Symbol 622 MovieClip Frame 23
Symbol 622 MovieClip Frame 31
TaskRoot.shake = 30;
Symbol 622 MovieClip Frame 50
stop();
HERO.hideMe(false, _parent._parent.parent);
_parent._parent.parent.killMe();
Symbol 622 MovieClip Frame 51
gotoAndPlay (1);
Symbol 623 MovieClip Frame 19
stop();
Symbol 624 MovieClip [Polizei] Frame 1
stop();
if (!init) {
fucks = 1;
init = true;
anim._visible = (anim1._visible = false);
}
Symbol 636 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 11
if (_parent._currentframe != 1) {
stop();
}
Symbol 650 MovieClip Frame 4
TaskRoot.shake = 30;
Symbol 650 MovieClip Frame 17
stop();
HERO.hideMe(false, _parent._parent.parent);
_parent._parent.parent.killMe();
Symbol 652 MovieClip Frame 19
stop();
Symbol 653 MovieClip [condom] Frame 1
stop();
fucks = 1;
Symbol 670 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 1
if (!t) {
t = 1;
} else {
t++;
}
had.gotoAndStop(5);
Symbol 691 MovieClip Frame 9
if (t < 7) {
gotoAndPlay (1);
}
Symbol 691 MovieClip Frame 14
TaskRoot.shake = 30;
Symbol 691 MovieClip Frame 34
stop();
HERO.hideMe(false, _parent._parent.parent);
_parent._parent.parent.killMe();
Symbol 692 MovieClip Frame 19
stop();
Symbol 693 MovieClip [alien] Frame 1
stop();
fucks = 1;
Symbol 702 MovieClip Frame 21
gotoAndPlay (1);
Symbol 712 MovieClip Frame 1
if (!t) {
t = 1;
} else {
t++;
}
Symbol 712 MovieClip Frame 9
if (t < 7) {
gotoAndPlay (1);
}
Symbol 712 MovieClip Frame 32
TaskRoot.shake = 30;
Symbol 712 MovieClip Frame 44
stop();
HERO.hideMe(false, _parent._parent.parent);
_parent._parent.parent.killMe();
Symbol 713 MovieClip Frame 19
stop();
Symbol 714 MovieClip [Madam] Frame 1
stop();
fucks = 1;
Symbol 727 MovieClip Frame 1
stop();
Symbol 734 MovieClip Frame 21
gotoAndPlay (1);
Symbol 735 MovieClip Frame 1
h.gotoAndStop(2);
had.gotoAndStop(6);
had_g.gotoAndStop(2);
if (!t) {
t = 1;
} else {
t++;
}
Symbol 735 MovieClip Frame 10
if (t < 8) {
gotoAndPlay (1);
}
Symbol 735 MovieClip Frame 12
prezik.gotoAndStop(9);
Symbol 735 MovieClip Frame 13
had.gotoAndStop(2);
Symbol 735 MovieClip Frame 14
p.gotoAndStop(1);
Symbol 735 MovieClip Frame 35
TaskRoot.shake = 30;
Symbol 735 MovieClip Frame 50
stop();
HERO.hideMe(false, _parent._parent.parent);
_parent._parent.parent.killMe();
Symbol 736 MovieClip Frame 19
stop();
Symbol 737 MovieClip [Girl4] Frame 1
stop();
fucks = 1;
Symbol 744 MovieClip Frame 1
stop();
Symbol 745 MovieClip Frame 21
gotoAndPlay (1);
Symbol 746 MovieClip Frame 1
h.gotoAndStop(2);
had.gotoAndStop(6);
had_g.gotoAndStop(2);
if (!t) {
t = 1;
} else {
t++;
}
Symbol 746 MovieClip Frame 10
if (t < 8) {
gotoAndPlay (1);
}
Symbol 746 MovieClip Frame 12
prezik.gotoAndStop(9);
Symbol 746 MovieClip Frame 13
had.gotoAndStop(2);
Symbol 746 MovieClip Frame 14
p.gotoAndStop(1);
Symbol 746 MovieClip Frame 35
TaskRoot.shake = 30;
Symbol 746 MovieClip Frame 50
stop();
HERO.hideMe(false, _parent._parent.parent);
_parent._parent.parent.killMe();
Symbol 747 MovieClip Frame 19
stop();
Symbol 748 MovieClip [Girl3] Frame 1
stop();
fucks = 1;
Symbol 781 MovieClip Frame 1
h.gotoAndStop(1);
Symbol 788 MovieClip Frame 1
h.gotoAndStop(2);
if (!t) {
t = 1;
} else {
t++;
}
Symbol 788 MovieClip Frame 10
if (t < 7) {
gotoAndPlay (1);
}
Symbol 788 MovieClip Frame 12
prezik.gotoAndStop(9);
Symbol 788 MovieClip Frame 13
had.gotoAndStop(2);
Symbol 788 MovieClip Frame 14
p.gotoAndStop(1);
Symbol 788 MovieClip Frame 35
TaskRoot.shake = 30;
Symbol 788 MovieClip Frame 51
stop();
HERO.hideMe(false, _parent._parent.parent);
_parent._parent.parent.killMe();
Symbol 789 MovieClip Frame 19
stop();
Symbol 790 MovieClip Frame 1
if (!t) {
t = 1;
} else {
t++;
}
h.gotoAndStop(3);
Symbol 790 MovieClip Frame 10
if (t < 7) {
gotoAndPlay (1);
}
Symbol 790 MovieClip Frame 12
prezik.gotoAndStop(9);
Symbol 790 MovieClip Frame 13
had.gotoAndStop(2);
Symbol 790 MovieClip Frame 14
p.gotoAndStop(1);
Symbol 790 MovieClip Frame 39
TaskRoot.shake = 30;
Symbol 790 MovieClip Frame 50
stop();
HERO.hideMe(false, _parent._parent.parent);
_parent._parent.parent.killMe();
Symbol 791 MovieClip Frame 19
stop();
Symbol 792 MovieClip [Girl2] Frame 1
stop();
fucks = 1;
Symbol 813 MovieClip Frame 1
bust.play();
Symbol 813 MovieClip Frame 17
gotoAndPlay (1);
Symbol 813 MovieClip Frame 18
bust.gotoAndStop(1);
fear._visible = false;
Symbol 813 MovieClip Frame 19
fear._visible = true;
Symbol 814 MovieClip Frame 1
bust.play();
Symbol 814 MovieClip Frame 29
gotoAndPlay (1);
Symbol 814 MovieClip Frame 30
bust.gotoAndStop(1);
Symbol 824 MovieClip Frame 10
gotoAndPlay (1);
Symbol 824 MovieClip Frame 11
stop();
Symbol 825 MovieClip Frame 1
if (!t) {
t = 1;
} else {
t++;
}
Symbol 825 MovieClip Frame 10
if (t < 7) {
trace(t);
gotoAndPlay (1);
}
Symbol 825 MovieClip Frame 18
h.gotoAndStop(1);
Symbol 825 MovieClip Frame 19
prezik.gotoAndStop(9);
Symbol 825 MovieClip Frame 20
had.gotoAndStop(2);
Symbol 825 MovieClip Frame 21
h.gotoAndStop(11);
Symbol 825 MovieClip Frame 38
TaskRoot.shake = 40;
Symbol 825 MovieClip Frame 52
stop();
HERO.hideMe(false, _parent._parent.parent);
_parent._parent.parent.killMe();
Symbol 826 MovieClip Frame 19
stop();
Symbol 830 MovieClip Frame 1
if (!t) {
t = 1;
} else {
t++;
}
Symbol 830 MovieClip Frame 10
if (t < 8) {
gotoAndPlay (1);
}
Symbol 830 MovieClip Frame 13
h.gotoAndStop(1);
p.gotoAndStop(1);
Symbol 830 MovieClip Frame 14
prezik.gotoAndStop(9);
Symbol 830 MovieClip Frame 15
had.gotoAndStop(2);
Symbol 830 MovieClip Frame 16
h.gotoAndStop(11);
Symbol 830 MovieClip Frame 39
TaskRoot.shake = 40;
Symbol 830 MovieClip Frame 57
stop();
HERO.hideMe(false, _parent._parent.parent);
_parent._parent.parent.killMe();
Symbol 831 MovieClip Frame 19
stop();
Symbol 832 MovieClip [Girl1] Frame 1
stop();
if (!init) {
init = true;
anim._visible = (anim1._visible = false);
fucks = 2;
}
Symbol 834 MovieClip Frame 18
gotoAndPlay (1);
prezik.gotoAndPlay(1);
Symbol 845 MovieClip Frame 11
gotoAndPlay (1);
Symbol 846 MovieClip [hero] Frame 1
stop();
Symbol 856 Button
on (press) {
_parent.GameOver(true);
}
Symbol 859 MovieClip [gm] Frame 20
stop();
Symbol 868 Button
on (press) {
if (help._visible) {
help._visible = false;
} else {
help._visible = true;
}
}
Symbol 869 Button
on (press) {
nextFrame();
}
Symbol 883 MovieClip Frame 1
_visible = false;