Frame 1
load_bar._width = (_root.getBytesLoaded() * 200) / _root.getBytesTotal();
var eat_bigSnd = new Sound(this);
eat_bigSnd.attachSound("eat_big_snd");
GotoDownload = function () {
if (_root.link != undefined) {
getURL (_root.link, "_blank");
} else {
getURL ("http://www.alawar.com/games/pacmania3/?referer1=flash&referer2=PacMania", "_blank");
}
if (_root.dload_f != undefined) {
cstr = ("JavaScript:" + _root.dload_f) + "()";
getURL (cstr);
}
};
_root.help_f = true;
Frame 2
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndPlay (1);
}
Frame 6
stop();
_root.Total_Score = 0;
kletka = 24;
packman_step = kletka / 6;
monster_step = kletka / 8;
score_za_bonus = 50;
score_za_goroh = 30;
score_za_monstra = 100;
score_za_life = 50;
lifes = 10;
minuta = 50000;
snd = 1;
GameStart = new Sound();
GameStart.attachSound("GameStart");
LevelComplete = new Sound();
LevelComplete.attachSound("LevelComplete");
BonusLife = new Sound();
BonusLife.attachSound("BonusLife");
EatMonster = new Sound();
EatMonster.attachSound("EatMonster");
Death = new Sound();
Death.attachSound("Death");
EatBonus = new Sound();
EatBonus.attachSound("EatBonus");
GameOver = new Sound();
GameOver.attachSound("GameOver");
StartGame = new Sound();
StartGame.attachSound("StartGame");
GameComplete = new Sound();
GameComplete.attachSound("GameComplete");
EatDot = new Sound();
EatDot.attachSound("EatDot");
PushButton = new Sound();
PushButton.attachSound("PushButton");
StartGame.start();
Frame 7
tochka_count = 1;
rody_delay = 2;
score = 0;
goroh = 0;
bonus_posibility = 30;
life_posibility = 30;
LC = 0;
level_x_ext = 15;
level_y_ext = 16;
level = 1;
m_i = 0;
col_monstrov = 4;
bonus_count = 0;
monsters = 0;
level_goroh = 138;
m1y = 8;
m1x = 9;
m2y = 8;
m2x = 9;
m3y = 8;
m3x = 9;
m4y = 8;
m4x = 9;
Instance of Symbol 42 MovieClip "test" in Frame 7
onClipEvent (load) {
flag = true;
}
Instance of Symbol 50 MovieClip in Frame 7
onClipEvent (enterFrame) {
score_txt = _parent.score;
tscore_txt = _root.Total_Score;
life_txt = _parent.lifes;
if (_parent.level == 9) {
level_txt = "8";
} else if (_parent.level == 10) {
level_txt = "9";
} else {
level_txt = _parent.level;
}
goroh_txt = _parent.goroh;
if (Key.isDown(69)) {
key69 = 1;
}
if (Key.isDown(79) && (key69 == 1)) {
_parent.lifes = 50;
}
}
Instance of Symbol 79 MovieClip "bonus" in Frame 7
onClipEvent (enterFrame) {
if (this.hit.hitTest(_parent.packman.hit)) {
_parent.score = _parent.score + _parent.score_za_bonus;
_root.Total_Score = _root.Total_Score + _parent.score_za_bonus;
_parent.EatBonus.start();
this.removeMovieClip();
}
}
Instance of Symbol 96 MovieClip "monster" in Frame 7
onClipEvent (load) {
function see_packman() {
xx = Math.round(_x / _parent.kletka) - 1;
yy = Math.round(_y / _parent.kletka) - 1;
xxp = Math.round(_parent.packman._x / _parent.kletka) - 1;
yyp = Math.round(_parent.packman._y / _parent.kletka) - 1;
f = 0;
if (yy == yyp) {
pp = p[yy];
if (xx > xxp) {
j = xxp + 1;
while (j < xx) {
if ((pp[j] != 0) && (pp[j] < 30)) {
f = 1;
}
j++;
}
if (f == 0) {
return("e");
}
} else if (xxp > xx) {
j = xx + 1;
while (j < xxp) {
if ((pp[j] != 0) && (pp[j] < 30)) {
f = 1;
}
j++;
}
if (f == 0) {
return("w");
}
}
}
if (xx == xxp) {
if (yy < yyp) {
j = yy + 1;
while (j < yyp) {
pp = p[j];
if ((pp[xx] != 0) && (pp[xx] < 30)) {
f = 1;
}
j++;
}
if (f == 0) {
return("s");
}
} else if (yy > yyp) {
j = yyp + 1;
while (j < yy) {
pp = p[j];
if ((pp[xx] != 0) && (pp[xx] < 30)) {
f = 1;
}
j++;
}
if (f == 0) {
return("n");
}
}
}
return("");
}
function nam(dx, dy) {
xx = Math.round(_x / _parent.kletka) - 1;
yy = Math.round(_y / _parent.kletka) - 1;
z1 = 0;
z2 = 0;
if (dx == 0) {
if (dy < 0) {
z1 = -1;
} else if (dy > 0) {
z1 = 1;
} else {
z1 = 0;
}
} else if (dy == 0) {
if (dx < 0) {
z2 = -1;
} else if (dx > 0) {
z2 = 1;
} else {
z2 = 0;
}
}
pp = p[yy + z1];
ppp = pp[xx + z2];
if ((ppp != 0) && (ppp < 30)) {
rt = 1;
} else {
rt = 0;
}
return(rt);
}
function get_inv_napr(ax, ay) {
if (ax == 0) {
if (ay > 0) {
v = "n";
} else {
v = "s";
}
} else if (ay == 0) {
if (ax > 0) {
v = "e";
} else {
v = "w";
}
}
return(v);
}
function get_napr(ar, ax, ay, inv_napr) {
a = ar.length;
bin = 0;
if ((_parent.packman._currentframe == 1) && (_currentframe == 1)) {
i = 0;
while (i < a) {
see_v = see_packman();
if (see_v != "") {
bin = 1;
i = a;
v = see_v;
}
i++;
}
}
if (bin == 0) {
z = Math.ceil(Math.random() * a);
if ((a == 2) && ((inv_napr == ar[0]) || (inv_napr == ar[1]))) {
nazad = Math.random() * 100;
if (nazad < 20) {
v = inv_napr;
} else if (ar[0] == inv_napr) {
v = ar[1];
} else {
v = ar[0];
}
} else {
switch (z) {
case 1 :
v = ar[0];
break;
case 2 :
v = ar[1];
break;
case 3 :
v = ar[2];
break;
case 4 :
v = ar[3];
}
}
}
if (v == "n") {
this.glaz1._rotation = 180;
this.glaz2._rotation = 180;
} else if (v == "s") {
this.glaz1._rotation = 0;
this.glaz2._rotation = 0;
} else if (v == "w") {
this.glaz1._rotation = -90;
this.glaz2._rotation = -90;
} else if (v == "e") {
this.glaz1._rotation = 90;
this.glaz2._rotation = 90;
}
return(v);
}
function po_x(b, step) {
switch (b) {
case "n" :
c = 0;
break;
case "s" :
c = 0;
break;
case "w" :
c = step;
break;
case "e" :
c = -step;
}
return(c);
}
function po_y(b, step) {
switch (b) {
case "n" :
c = -step;
break;
case "s" :
c = step;
break;
case "w" :
c = 0;
break;
case "e" :
c = 0;
}
return(c);
}
step = _parent.monster_step;
dx = step;
dy = 0;
pausa = 0;
p = _parent.pole.pole;
gug = 0;
crazy = 0;
mode = "";
}
onClipEvent (enterFrame) {
if (_name != "monster") {
if (mode == "EatMonsters") {
if (crazy > 0) {
crazy = 0;
}
gotoAndStop (2);
mode = "";
}
if (_currentframe == 2) {
if (this.hit_crazy.hitTest(_parent.packman.hit)) {
_parent.score = _parent.score + _parent.score_za_monstra;
_root.Total_Score = _root.Total_Score + _parent.score_za_monstra;
_parent.last_eated = "mon" + _name.substr(_name.length - 1, 1);
_parent.monsters = _parent.monsters - 1;
_parent.EatMonster.start();
this.removeMovieClip();
}
crazy = crazy + 1;
if (crazy > 150) {
gotoAndStop (1);
crazy = 0;
}
} else if (this.hit.hitTest(_parent.packman.hit)) {
_parent.packman.gotoAndStop("die");
_parent.lifes = _parent.lifes - 1;
_parent.Death.start();
}
pos_x = Math.round(_x % _parent.kletka);
pos_y = Math.round(_y % _parent.kletka);
if ((pos_x == 0) && (pos_y == 0)) {
inv_napr = get_inv_napr(dx, dy);
nord = !nam(0, -step);
south = !nam(0, step);
west = !nam(step, 0);
east = !nam(-step, 0);
gy = ((nord + south) + west) + east;
see_napr = see_packman();
if (_currentframe == 2) {
if (nord) {
if (see_napr == "n") {
nord = false;
sp = 1;
}
}
if (south) {
if (see_napr == "s") {
south = false;
sp = 1;
}
}
if (west) {
if (see_napr == "w") {
west = false;
sp = 1;
}
}
if (east) {
if (see_napr == "e") {
east = false;
sp = 1;
}
}
}
if (((nam(dx, dy) == 1) || (gy > 2)) || (see_napr != "")) {
sp = 0;
if (sp == 0) {
if (Number(gy) > 2) {
if (inv_napr == "n") {
nord = false;
} else if (inv_napr == "s") {
south = false;
} else if (inv_napr == "w") {
west = false;
} else if (inv_napr == "e") {
east = false;
}
}
}
if (((nord && (south)) && (west)) && (east)) {
np = new Array("n", "s", "w", "e");
} else if ((nord && (south)) && (west)) {
np = new Array("n", "s", "w");
} else if ((nord && (south)) && (east)) {
np = new Array("n", "s", "e");
} else if ((nord && (east)) && (west)) {
np = new Array("n", "w", "e");
} else if ((east && (south)) && (west)) {
np = new Array("s", "w", "e");
} else if (east && (west)) {
np = new Array("w", "e");
} else if (nord && south) {
np = new Array("n", "s");
} else if (east && south) {
np = new Array("s", "e");
} else if (south && west) {
np = new Array("s", "w");
} else if (east && nord) {
np = new Array("e", "n");
} else if (nord && west) {
np = new Array("n", "w");
} else if (south) {
np = new Array("s");
} else if (nord) {
np = new Array("n");
} else if (west) {
np = new Array("w");
} else if (east) {
np = new Array("e");
}
u = get_napr(np, dx, dy, inv_napr);
dx = po_x(u, step);
dy = po_y(u, step);
}
}
_x = (_x + dx);
_y = (_y + dy);
}
}
Instance of Symbol 121 MovieClip "level_c" in Frame 7
onClipEvent (keyDown) {
if (_y > 0) {
_y = (_y * -1);
zu = "level" + (_parent.level + 1);
if ((_parent.level + 1) == 8) {
zu = "level" + (_parent.level + 2);
}
if (zu == "level11") {
_parent.gotoAndStop("end");
_parent.GameComplete.start();
} else {
_parent.gotoAndPlay(zu);
}
}
}
Instance of Symbol 123 MovieClip "game_over" in Frame 7
onClipEvent (keyDown) {
if (_y > 0) {
tellTarget (_parent) {
gotoAndStop ("end");
};
}
}
Frame 8
packman._x = kletka * 9;
packman._y = kletka * 3;
packman.birth_x = 9;
packman.birth_y = 3;
GameStart.start();
stop();
Instance of Symbol 131 MovieClip "pole" in Frame 8
onClipEvent (load) {
_parent.zzz = "loading";
pole = new Array();
line = new Array(6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7);
pole[0] = line;
line = new Array(5, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4);
pole[17] = line;
line = new Array(2, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 2);
pole[1] = line;
pole[16] = line;
line = new Array(2, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 2);
pole[4] = line;
pole[13] = line;
line = new Array(2, 31, 1, 1, 31, 1, 1, 1, 31, 1, 1, 1, 31, 1, 1, 31, 2);
pole[2] = line;
pole[3] = line;
pole[14] = line;
pole[15] = line;
line = new Array(2, 31, 1, 31, 1, 1, 1, 1, 1, 1, 1, 1, 1, 31, 1, 31, 2);
pole[5] = line;
pole[12] = line;
line = new Array(2, 31, 1, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 1, 31, 2);
pole[6] = line;
pole[11] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 1, 0, 1, 1, 31, 1, 31, 1, 31, 2);
pole[7] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 0, 0, 0, 1, 31, 1, 31, 1, 31, 2);
pole[8] = line;
pole[9] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 1, 1, 1, 1, 31, 1, 31, 1, 31, 2);
pole[10] = line;
_parent.zzz = "goroh " + _parent.zzz;
tellTarget (_parent) {
call("goroh");
};
s_time = getTimer();
}
onClipEvent (enterFrame) {
e_time = getTimer();
if ((e_time - s_time) >= _parent.minuta) {
s_time = e_time;
z = Math.random() * 100;
if (z < _parent.bonus_posibility) {
tellTarget (_parent) {
call("bonus");
};
}
zz = Math.random() * 100;
if (zz < _parent.life_posibility) {
tellTarget (_parent) {
call("life");
};
}
}
}
Instance of Symbol 151 MovieClip "packman" in Frame 8
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
pre_nord = 1;
pre_south = 0;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(40)) {
pre_nord = 0;
pre_south = 1;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(37)) {
pre_nord = 0;
pre_south = 0;
pre_east = 1;
pre_west = 0;
} else if (Key.isDown(39)) {
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 1;
}
if ((_parent.goroh == _parent.level_goroh) && (l_c == 0)) {
l_c = 1;
_parent.level_c._y = -1 * _parent.level_c._y;
_parent.LevelComplete.start();
_parent.LC = 1;
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
pos_x = Math.round(_x % _parent.kletka);
pos_y = Math.round(_y % _parent.kletka);
if ((_currentframe == 2) && (_parent.lifes > 0)) {
z = z + 1;
if (z > 100) {
gotoAndStop (1);
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
_x = (_parent.kletka * birth_x);
_y = (_parent.kletka * birth_y);
_parent.monster1._x = (_parent.kletka * _parent.m1x) + _parent.kletka;
_parent.monster1._y = (_parent.kletka * _parent.m1y) + _parent.kletka;
_parent.monster2._x = (_parent.kletka * _parent.m2x) + _parent.kletka;
_parent.monster2._y = (_parent.kletka * _parent.m2y) + _parent.kletka;
_parent.monster3._x = (_parent.kletka * _parent.m3x) + _parent.kletka;
_parent.monster3._y = (_parent.kletka * _parent.m3y) + _parent.kletka;
_parent.monster4._x = (_parent.kletka * _parent.m4x) + _parent.kletka;
_parent.monster4._y = (_parent.kletka * _parent.m4y) + _parent.kletka;
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 0;
dx = 0;
dy = 0;
z = 0;
}
} else if ((_parent.lifes == 0) && (g_o == 0)) {
g_o = 1;
_parent.LC = 1;
_parent.game_over._y = -1 * _parent.game_over._y;
_parent.GameOver.start();
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
if ((pos_x == 0) && (pos_y == 0)) {
if (hit.hitTest(_parent.life1.hit)) {
_parent.lifes = _parent.lifes + 1;
_parent.score = _parent.score + _parent.score_za_life;
_root.Total_Score = _root.Total_Score + _parent.score_za_life;
_parent.BonusLife.start();
_parent.life1.removeMovieClip();
}
if (_parent.monsters < 4) {
tellTarget (_parent) {
call("new_mon");
};
}
_parent.pax = Math.round(_x / _parent.kletka) - 1;
_parent.pay = Math.round(_y / _parent.kletka) - 1;
tellTarget (_parent) {
call("eat");
};
if (Key.isDown(38) || (pre_nord)) {
if (nam(0, -step) == 0) {
dy = -step;
dx = 0;
face.rot._rotation = 90;
face.gotoAndStop(2);
_parent.rody_delay = 20;
}
}
if (Key.isDown(40) || (pre_south)) {
if (nam(0, step) == 0) {
dy = step;
dx = 0;
face.rot._rotation = -90;
face.gotoAndStop(4);
_parent.rody_delay = 20;
}
}
if (Key.isDown(37) || (pre_east)) {
if (nam(-step, 0) == 0) {
dx = -step;
dy = 0;
face.rot._rotation = 0;
face.gotoAndStop(1);
_parent.rody_delay = 20;
}
}
if (Key.isDown(39) || (pre_west)) {
if (nam(step, 0) == 0) {
dx = step;
dy = 0;
face.rot._rotation = 180;
face.gotoAndStop(3);
_parent.rody_delay = 20;
}
}
if (face_motion == 4) {
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
face_motion = 0;
} else {
face_motion++;
}
if (nam(dx, dy) == 1) {
dx = 0;
dy = 0;
}
}
if (_currentframe == 1) {
_x = (_x + dx);
_y = (_y + dy);
}
}
onClipEvent (load) {
function nam(dx, dy) {
xx = Math.round(_x / _parent.kletka) - 1;
yy = Math.round(_y / _parent.kletka) - 1;
p = _parent.pole.pole;
z1 = 0;
z2 = 0;
if (dx == 0) {
if (dy < 0) {
z1 = -1;
} else if (dy > 0) {
z1 = 1;
} else {
z1 = 0;
}
} else if (dy == 0) {
if (dx < 0) {
z2 = -1;
} else if (dx > 0) {
z2 = 1;
} else {
z2 = 0;
}
}
if ((ppp != 0) && (ppp < 30)) {
}
pp = p[yy + z1];
ppp = pp[xx + z2];
if ((ppp != 0) && (ppp < 30)) {
rt = 1;
} else {
rt = 0;
}
return(rt);
}
l_c = 0;
g_o = 0;
step = _parent.packman_step;
dx = 0;
dy = 0;
z = 0;
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
}
Instance of Symbol 156 MovieClip in Frame 8
onClipEvent (load) {
if (_root.snd == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
tellTarget (_parent) {
call("snd_off_on");
};
}
Frame 9
doska.gotoAndStop(2);
tochka_count = 1;
rody_delay = 2;
score = 0;
goroh = 0;
bonus_posibility = 30;
life_posibility = 30;
LC = 0;
level_x_ext = 15;
level_y_ext = 15;
level = 2;
m_i = 0;
col_monstrov = 4;
bonus_count = 0;
monsters = 0;
level_goroh = 136;
m1y = 1;
m1x = 9;
m2y = 1;
m2x = 9;
m3y = 15;
m3x = 9;
m4y = 15;
m4x = 9;
Frame 10
packman._x = kletka * 9;
packman._y = kletka * 4;
packman.birth_x = 9;
packman.birth_y = 4;
GameStart.start();
stop();
Instance of Symbol 131 MovieClip "pole" in Frame 10
onClipEvent (load) {
_parent.zzz = "loading";
pole = new Array();
line = new Array(6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7);
pole[0] = line;
line = new Array(5, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4);
pole[16] = line;
line = new Array(2, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 2);
pole[1] = line;
pole[15] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 1, 1, 1, 1, 31, 1, 31, 1, 31, 2);
pole[2] = line;
pole[14] = line;
line = new Array(2, 31, 1, 31, 1, 31, 31, 31, 31, 31, 31, 31, 1, 31, 1, 31, 2);
pole[3] = line;
pole[13] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 2);
pole[4] = line;
pole[12] = line;
pole[5] = line;
pole[6] = line;
pole[11] = line;
pole[7] = line;
pole[9] = line;
pole[10] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 31, 3, 31, 1, 31, 2);
pole[8] = line;
_parent.zzz = "goroh " + _parent.zzz;
tellTarget (_parent) {
call("goroh");
};
s_time = getTimer();
}
onClipEvent (enterFrame) {
e_time = getTimer();
if ((e_time - s_time) >= _parent.minuta) {
s_time = e_time;
z = Math.random() * 100;
if (z < _parent.bonus_posibility) {
tellTarget (_parent) {
call("bonus");
};
}
zz = Math.random() * 100;
if (zz < _parent.life_posibility) {
tellTarget (_parent) {
call("life");
};
}
}
}
Instance of Symbol 151 MovieClip "packman" in Frame 10
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
pre_nord = 1;
pre_south = 0;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(40)) {
pre_nord = 0;
pre_south = 1;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(37)) {
pre_nord = 0;
pre_south = 0;
pre_east = 1;
pre_west = 0;
} else if (Key.isDown(39)) {
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 1;
}
if ((_parent.goroh == _parent.level_goroh) && (l_c == 0)) {
l_c = 1;
_parent.level_c._y = -1 * _parent.level_c._y;
_parent.LevelComplete.start();
_parent.LC = 1;
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
pos_x = Math.round(_x % _parent.kletka);
pos_y = Math.round(_y % _parent.kletka);
if ((_currentframe == 2) && (_parent.lifes > 0)) {
z = z + 1;
if (z > 100) {
gotoAndStop (1);
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
_x = (_parent.kletka * birth_x);
_y = (_parent.kletka * birth_y);
_parent.monster1._x = (_parent.kletka * _parent.m1x) + _parent.kletka;
_parent.monster1._y = (_parent.kletka * _parent.m1y) + _parent.kletka;
_parent.monster2._x = (_parent.kletka * _parent.m2x) + _parent.kletka;
_parent.monster2._y = (_parent.kletka * _parent.m2y) + _parent.kletka;
_parent.monster3._x = (_parent.kletka * _parent.m3x) + _parent.kletka;
_parent.monster3._y = (_parent.kletka * _parent.m3y) + _parent.kletka;
_parent.monster4._x = (_parent.kletka * _parent.m4x) + _parent.kletka;
_parent.monster4._y = (_parent.kletka * _parent.m4y) + _parent.kletka;
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 0;
dx = 0;
dy = 0;
z = 0;
}
} else if ((_parent.lifes == 0) && (g_o == 0)) {
g_o = 1;
_parent.LC = 1;
_parent.game_over._y = -1 * _parent.game_over._y;
_parent.GameOver.start();
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
if ((pos_x == 0) && (pos_y == 0)) {
if (hit.hitTest(_parent.life1.hit)) {
_parent.lifes = _parent.lifes + 1;
_parent.score = _parent.score + _parent.score_za_life;
_root.Total_Score = _root.Total_Score + _parent.score_za_life;
_parent.BonusLife.start();
_parent.life1.removeMovieClip();
}
if (_parent.monsters < 4) {
tellTarget (_parent) {
call("new_mon");
};
}
_parent.pax = Math.round(_x / _parent.kletka) - 1;
_parent.pay = Math.round(_y / _parent.kletka) - 1;
tellTarget (_parent) {
call("eat");
};
if (Key.isDown(38) || (pre_nord)) {
if (nam(0, -step) == 0) {
dy = -step;
dx = 0;
face.rot._rotation = 90;
face.gotoAndStop(2);
_parent.rody_delay = 20;
}
}
if (Key.isDown(40) || (pre_south)) {
if (nam(0, step) == 0) {
dy = step;
dx = 0;
face.rot._rotation = -90;
face.gotoAndStop(4);
_parent.rody_delay = 20;
}
}
if (Key.isDown(37) || (pre_east)) {
if (nam(-step, 0) == 0) {
dx = -step;
dy = 0;
face.rot._rotation = 0;
face.gotoAndStop(1);
_parent.rody_delay = 20;
}
}
if (Key.isDown(39) || (pre_west)) {
if (nam(step, 0) == 0) {
dx = step;
dy = 0;
face.rot._rotation = 180;
face.gotoAndStop(3);
_parent.rody_delay = 20;
}
}
if (face_motion == 4) {
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
face_motion = 0;
} else {
face_motion++;
}
if (nam(dx, dy) == 1) {
dx = 0;
dy = 0;
}
}
if (_currentframe == 1) {
_x = (_x + dx);
_y = (_y + dy);
}
}
onClipEvent (load) {
function nam(dx, dy) {
xx = Math.round(_x / _parent.kletka) - 1;
yy = Math.round(_y / _parent.kletka) - 1;
p = _parent.pole.pole;
z1 = 0;
z2 = 0;
if (dx == 0) {
if (dy < 0) {
z1 = -1;
} else if (dy > 0) {
z1 = 1;
} else {
z1 = 0;
}
} else if (dy == 0) {
if (dx < 0) {
z2 = -1;
} else if (dx > 0) {
z2 = 1;
} else {
z2 = 0;
}
}
if ((ppp != 0) && (ppp < 30)) {
}
pp = p[yy + z1];
ppp = pp[xx + z2];
if ((ppp != 0) && (ppp < 30)) {
rt = 1;
} else {
rt = 0;
}
return(rt);
}
l_c = 0;
g_o = 0;
step = _parent.packman_step;
dx = 0;
dy = 0;
z = 0;
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
}
Frame 11
doska.gotoAndStop(3);
tochka_count = 1;
rody_delay = 2;
score = 0;
goroh = 0;
bonus_posibility = 30;
life_posibility = 30;
LC = 0;
level_x_ext = 15;
level_y_ext = 15;
level = 3;
m_i = 0;
col_monstrov = 4;
bonus_count = 0;
monsters = 0;
level_goroh = 132;
m1y = 7;
m1x = 7;
m2y = 7;
m2x = 7;
m3y = 9;
m3x = 9;
m4y = 9;
m4x = 9;
Frame 12
packman._x = kletka * 7;
packman._y = kletka * 16;
packman.birth_x = 7;
packman.birth_y = 16;
GameStart.start();
stop();
Instance of Symbol 131 MovieClip "pole" in Frame 12
onClipEvent (load) {
_parent.zzz = "loading";
pole = new Array();
line = new Array(6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7);
pole[0] = line;
line = new Array(5, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4);
pole[16] = line;
line = new Array(2, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 2);
pole[1] = line;
pole[15] = line;
line = new Array(2, 31, 1, 31, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 31, 2);
pole[2] = line;
line = new Array(2, 31, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 31, 1, 31, 2);
pole[14] = line;
line = new Array(2, 31, 1, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 1, 31, 2);
pole[3] = line;
pole[13] = line;
line = new Array(2, 31, 1, 31, 1, 32, 1, 1, 1, 1, 1, 1, 1, 31, 1, 31, 2);
pole[4] = line;
line = new Array(2, 31, 1, 31, 1, 1, 1, 1, 1, 1, 1, 32, 1, 31, 1, 31, 2);
pole[12] = line;
line = new Array(2, 31, 1, 31, 1, 31, 31, 31, 31, 31, 31, 31, 1, 31, 1, 31, 2);
pole[5] = line;
pole[11] = line;
line = new Array(2, 31, 1, 31, 1, 31, 31, 31, 1, 1, 1, 31, 1, 31, 1, 31, 2);
pole[6] = line;
line = new Array(2, 31, 1, 31, 1, 31, 31, 31, 1, 32, 1, 31, 1, 31, 1, 31, 2);
pole[7] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 1, 1, 1, 1, 31, 3, 31, 1, 31, 2);
pole[8] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 32, 1, 31, 31, 31, 3, 31, 1, 31, 2);
pole[9] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 1, 1, 31, 31, 31, 1, 31, 1, 31, 2);
pole[10] = line;
_parent.zzz = "goroh " + _parent.zzz;
tellTarget (_parent) {
call("goroh");
};
s_time = getTimer();
}
onClipEvent (enterFrame) {
e_time = getTimer();
if ((e_time - s_time) >= _parent.minuta) {
s_time = e_time;
z = Math.random() * 100;
if (z < _parent.bonus_posibility) {
tellTarget (_parent) {
call("bonus");
};
}
zz = Math.random() * 100;
if (zz < _parent.life_posibility) {
tellTarget (_parent) {
call("life");
};
}
}
}
Instance of Symbol 151 MovieClip "packman" in Frame 12
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
pre_nord = 1;
pre_south = 0;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(40)) {
pre_nord = 0;
pre_south = 1;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(37)) {
pre_nord = 0;
pre_south = 0;
pre_east = 1;
pre_west = 0;
} else if (Key.isDown(39)) {
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 1;
}
if ((_parent.goroh == _parent.level_goroh) && (l_c == 0)) {
l_c = 1;
_parent.level_c._y = -1 * _parent.level_c._y;
_parent.LevelComplete.start();
_parent.LC = 1;
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
pos_x = Math.round(_x % _parent.kletka);
pos_y = Math.round(_y % _parent.kletka);
if ((_currentframe == 2) && (_parent.lifes > 0)) {
z = z + 1;
if (z > 100) {
gotoAndStop (1);
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
_x = (_parent.kletka * birth_x);
_y = (_parent.kletka * birth_y);
_parent.monster1._x = (_parent.kletka * _parent.m1x) + _parent.kletka;
_parent.monster1._y = (_parent.kletka * _parent.m1y) + _parent.kletka;
_parent.monster2._x = (_parent.kletka * _parent.m2x) + _parent.kletka;
_parent.monster2._y = (_parent.kletka * _parent.m2y) + _parent.kletka;
_parent.monster3._x = (_parent.kletka * _parent.m3x) + _parent.kletka;
_parent.monster3._y = (_parent.kletka * _parent.m3y) + _parent.kletka;
_parent.monster4._x = (_parent.kletka * _parent.m4x) + _parent.kletka;
_parent.monster4._y = (_parent.kletka * _parent.m4y) + _parent.kletka;
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 0;
dx = 0;
dy = 0;
z = 0;
}
} else if ((_parent.lifes == 0) && (g_o == 0)) {
g_o = 1;
_parent.LC = 1;
_parent.game_over._y = -1 * _parent.game_over._y;
_parent.GameOver.start();
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
if ((pos_x == 0) && (pos_y == 0)) {
if (hit.hitTest(_parent.life1.hit)) {
_parent.lifes = _parent.lifes + 1;
_parent.score = _parent.score + _parent.score_za_life;
_root.Total_Score = _root.Total_Score + _parent.score_za_life;
_parent.BonusLife.start();
_parent.life1.removeMovieClip();
}
if (_parent.monsters < 4) {
tellTarget (_parent) {
call("new_mon");
};
}
_parent.pax = Math.round(_x / _parent.kletka) - 1;
_parent.pay = Math.round(_y / _parent.kletka) - 1;
tellTarget (_parent) {
call("eat");
};
if (Key.isDown(38) || (pre_nord)) {
if (nam(0, -step) == 0) {
dy = -step;
dx = 0;
face.rot._rotation = 90;
face.gotoAndStop(2);
_parent.rody_delay = 20;
}
}
if (Key.isDown(40) || (pre_south)) {
if (nam(0, step) == 0) {
dy = step;
dx = 0;
face.rot._rotation = -90;
face.gotoAndStop(4);
_parent.rody_delay = 20;
}
}
if (Key.isDown(37) || (pre_east)) {
if (nam(-step, 0) == 0) {
dx = -step;
dy = 0;
face.rot._rotation = 0;
face.gotoAndStop(1);
_parent.rody_delay = 20;
}
}
if (Key.isDown(39) || (pre_west)) {
if (nam(step, 0) == 0) {
dx = step;
dy = 0;
face.rot._rotation = 180;
face.gotoAndStop(3);
_parent.rody_delay = 20;
}
}
if (face_motion == 4) {
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
face_motion = 0;
} else {
face_motion++;
}
if (nam(dx, dy) == 1) {
dx = 0;
dy = 0;
}
}
if (_currentframe == 1) {
_x = (_x + dx);
_y = (_y + dy);
}
}
onClipEvent (load) {
function nam(dx, dy) {
xx = Math.round(_x / _parent.kletka) - 1;
yy = Math.round(_y / _parent.kletka) - 1;
p = _parent.pole.pole;
z1 = 0;
z2 = 0;
if (dx == 0) {
if (dy < 0) {
z1 = -1;
} else if (dy > 0) {
z1 = 1;
} else {
z1 = 0;
}
} else if (dy == 0) {
if (dx < 0) {
z2 = -1;
} else if (dx > 0) {
z2 = 1;
} else {
z2 = 0;
}
}
if ((ppp != 0) && (ppp < 30)) {
}
pp = p[yy + z1];
ppp = pp[xx + z2];
if ((ppp != 0) && (ppp < 30)) {
rt = 1;
} else {
rt = 0;
}
return(rt);
}
l_c = 0;
g_o = 0;
step = _parent.packman_step;
dx = 0;
dy = 0;
z = 0;
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
}
Frame 13
doska.gotoAndStop(4);
tochka_count = 1;
rody_delay = 2;
score = 0;
goroh = 0;
bonus_posibility = 30;
life_posibility = 30;
LC = 0;
level_x_ext = 15;
level_y_ext = 15;
level = 4;
m_i = 0;
col_monstrov = 4;
bonus_count = 0;
monsters = 0;
level_goroh = 141;
m1y = 1;
m1x = 1;
m2y = 1;
m2x = 15;
m3y = 15;
m3x = 15;
m4y = 15;
m4x = 1;
Frame 14
packman._x = kletka * 9;
packman._y = kletka * 9;
packman.birth_x = 9;
packman.birth_y = 9;
GameStart.start();
stop();
Instance of Symbol 131 MovieClip "pole" in Frame 14
onClipEvent (load) {
_parent.zzz = "loading";
pole = new Array();
line = new Array(6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7);
pole[0] = line;
line = new Array(5, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4);
pole[16] = line;
line = new Array(2, 31, 31, 31, 31, 31, 31, 31, 32, 31, 31, 31, 31, 31, 31, 31, 2);
pole[1] = line;
pole[15] = line;
line = new Array(2, 31, 1, 31, 1, 1, 31, 1, 31, 1, 31, 1, 1, 31, 1, 31, 2);
pole[2] = line;
pole[14] = line;
line = new Array(2, 31, 1, 31, 31, 1, 31, 1, 31, 1, 31, 1, 31, 31, 1, 31, 2);
pole[3] = line;
pole[13] = line;
line = new Array(2, 31, 1, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 1, 31, 2);
pole[4] = line;
pole[12] = line;
line = new Array(2, 31, 31, 31, 31, 31, 31, 1, 31, 1, 31, 31, 31, 31, 31, 31, 2);
pole[5] = line;
pole[11] = line;
line = new Array(2, 1, 1, 1, 1, 1, 31, 1, 31, 1, 31, 1, 1, 1, 1, 1, 2);
pole[6] = line;
pole[10] = line;
line = new Array(2, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 2);
pole[7] = line;
pole[9] = line;
line = new Array(2, 32, 1, 1, 1, 1, 1, 1, 31, 1, 1, 1, 1, 1, 1, 32, 2);
pole[8] = line;
_parent.zzz = "goroh " + _parent.zzz;
tellTarget (_parent) {
call("goroh");
};
s_time = getTimer();
}
onClipEvent (enterFrame) {
e_time = getTimer();
if ((e_time - s_time) >= _parent.minuta) {
s_time = e_time;
z = Math.random() * 100;
if (z < _parent.bonus_posibility) {
tellTarget (_parent) {
call("bonus");
};
}
zz = Math.random() * 100;
if (zz < _parent.life_posibility) {
tellTarget (_parent) {
call("life");
};
}
}
}
Instance of Symbol 151 MovieClip "packman" in Frame 14
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
pre_nord = 1;
pre_south = 0;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(40)) {
pre_nord = 0;
pre_south = 1;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(37)) {
pre_nord = 0;
pre_south = 0;
pre_east = 1;
pre_west = 0;
} else if (Key.isDown(39)) {
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 1;
}
if ((_parent.goroh == _parent.level_goroh) && (l_c == 0)) {
l_c = 1;
_parent.level_c._y = -1 * _parent.level_c._y;
_parent.LevelComplete.start();
_parent.LC = 1;
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
pos_x = Math.round(_x % _parent.kletka);
pos_y = Math.round(_y % _parent.kletka);
if ((_currentframe == 2) && (_parent.lifes > 0)) {
z = z + 1;
if (z > 100) {
gotoAndStop (1);
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
_x = (_parent.kletka * birth_x);
_y = (_parent.kletka * birth_y);
_parent.monster1._x = (_parent.kletka * _parent.m1x) + _parent.kletka;
_parent.monster1._y = (_parent.kletka * _parent.m1y) + _parent.kletka;
_parent.monster2._x = (_parent.kletka * _parent.m2x) + _parent.kletka;
_parent.monster2._y = (_parent.kletka * _parent.m2y) + _parent.kletka;
_parent.monster3._x = (_parent.kletka * _parent.m3x) + _parent.kletka;
_parent.monster3._y = (_parent.kletka * _parent.m3y) + _parent.kletka;
_parent.monster4._x = (_parent.kletka * _parent.m4x) + _parent.kletka;
_parent.monster4._y = (_parent.kletka * _parent.m4y) + _parent.kletka;
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 0;
dx = 0;
dy = 0;
z = 0;
}
} else if ((_parent.lifes == 0) && (g_o == 0)) {
g_o = 1;
_parent.LC = 1;
_parent.game_over._y = -1 * _parent.game_over._y;
_parent.GameOver.start();
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
if ((pos_x == 0) && (pos_y == 0)) {
if (hit.hitTest(_parent.life1.hit)) {
_parent.lifes = _parent.lifes + 1;
_parent.score = _parent.score + _parent.score_za_life;
_root.Total_Score = _root.Total_Score + _parent.score_za_life;
_parent.BonusLife.start();
_parent.life1.removeMovieClip();
}
if (_parent.monsters < 4) {
tellTarget (_parent) {
call("new_mon");
};
}
_parent.pax = Math.round(_x / _parent.kletka) - 1;
_parent.pay = Math.round(_y / _parent.kletka) - 1;
tellTarget (_parent) {
call("eat");
};
if (Key.isDown(38) || (pre_nord)) {
if (nam(0, -step) == 0) {
dy = -step;
dx = 0;
face.rot._rotation = 90;
face.gotoAndStop(2);
_parent.rody_delay = 20;
}
}
if (Key.isDown(40) || (pre_south)) {
if (nam(0, step) == 0) {
dy = step;
dx = 0;
face.rot._rotation = -90;
face.gotoAndStop(4);
_parent.rody_delay = 20;
}
}
if (Key.isDown(37) || (pre_east)) {
if (nam(-step, 0) == 0) {
dx = -step;
dy = 0;
face.rot._rotation = 0;
face.gotoAndStop(1);
_parent.rody_delay = 20;
}
}
if (Key.isDown(39) || (pre_west)) {
if (nam(step, 0) == 0) {
dx = step;
dy = 0;
face.rot._rotation = 180;
face.gotoAndStop(3);
_parent.rody_delay = 20;
}
}
if (face_motion == 4) {
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
face_motion = 0;
} else {
face_motion++;
}
if (nam(dx, dy) == 1) {
dx = 0;
dy = 0;
}
}
if (_currentframe == 1) {
_x = (_x + dx);
_y = (_y + dy);
}
}
onClipEvent (load) {
function nam(dx, dy) {
xx = Math.round(_x / _parent.kletka) - 1;
yy = Math.round(_y / _parent.kletka) - 1;
p = _parent.pole.pole;
z1 = 0;
z2 = 0;
if (dx == 0) {
if (dy < 0) {
z1 = -1;
} else if (dy > 0) {
z1 = 1;
} else {
z1 = 0;
}
} else if (dy == 0) {
if (dx < 0) {
z2 = -1;
} else if (dx > 0) {
z2 = 1;
} else {
z2 = 0;
}
}
if ((ppp != 0) && (ppp < 30)) {
}
pp = p[yy + z1];
ppp = pp[xx + z2];
if ((ppp != 0) && (ppp < 30)) {
rt = 1;
} else {
rt = 0;
}
return(rt);
}
l_c = 0;
g_o = 0;
step = _parent.packman_step;
dx = 0;
dy = 0;
z = 0;
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
}
Frame 15
doska.gotoAndStop(5);
tochka_count = 1;
rody_delay = 2;
score = 0;
goroh = 0;
bonus_posibility = 30;
life_posibility = 30;
LC = 0;
level_x_ext = 16;
level_y_ext = 15;
level = 5;
m_i = 0;
col_monstrov = 4;
bonus_count = 0;
monsters = 0;
level_goroh = 142;
m1y = 8;
m1x = 9;
m2y = 8;
m2x = 9;
m3y = 8;
m3x = 8;
m4y = 8;
m4x = 8;
Frame 16
packman._x = kletka * 9;
packman._y = kletka * 16;
packman.birth_x = 9;
packman.birth_y = 16;
GameStart.start();
stop();
Instance of Symbol 131 MovieClip "pole" in Frame 16
onClipEvent (load) {
_parent.zzz = "loading";
pole = new Array();
line = new Array(6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7);
pole[0] = line;
line = new Array(5, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4);
pole[16] = line;
line = new Array(2, 32, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 2);
pole[1] = line;
pole[15] = line;
line = new Array(2, 31, 1, 1, 1, 31, 1, 1, 31, 31, 1, 1, 31, 1, 1, 1, 31, 2);
pole[2] = line;
pole[14] = line;
line = new Array(2, 31, 1, 1, 31, 31, 31, 1, 1, 1, 1, 31, 31, 31, 1, 1, 31, 2);
pole[3] = line;
pole[13] = line;
line = new Array(2, 31, 31, 31, 31, 1, 31, 31, 31, 31, 31, 31, 1, 31, 31, 31, 31, 2);
pole[4] = line;
pole[12] = line;
line = new Array(2, 31, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 31, 2);
pole[5] = line;
pole[11] = line;
line = new Array(2, 31, 1, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 1, 31, 2);
pole[6] = line;
pole[10] = line;
line = new Array(2, 31, 31, 31, 1, 1, 1, 31, 1, 1, 31, 1, 1, 1, 31, 31, 31, 2);
pole[7] = line;
pole[9] = line;
line = new Array(2, 1, 32, 1, 1, 1, 1, 31, 31, 31, 31, 1, 1, 1, 1, 32, 1, 2);
pole[8] = line;
_parent.zzz = "goroh " + _parent.zzz;
tellTarget (_parent) {
call("goroh");
};
s_time = getTimer();
}
onClipEvent (enterFrame) {
e_time = getTimer();
if ((e_time - s_time) >= _parent.minuta) {
s_time = e_time;
z = Math.random() * 100;
if (z < _parent.bonus_posibility) {
tellTarget (_parent) {
call("bonus");
};
}
zz = Math.random() * 100;
if (zz < _parent.life_posibility) {
tellTarget (_parent) {
call("life");
};
}
}
}
Instance of Symbol 151 MovieClip "packman" in Frame 16
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
pre_nord = 1;
pre_south = 0;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(40)) {
pre_nord = 0;
pre_south = 1;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(37)) {
pre_nord = 0;
pre_south = 0;
pre_east = 1;
pre_west = 0;
} else if (Key.isDown(39)) {
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 1;
}
if ((_parent.goroh == _parent.level_goroh) && (l_c == 0)) {
l_c = 1;
_parent.level_c._y = -1 * _parent.level_c._y;
_parent.LevelComplete.start();
_parent.LC = 1;
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
pos_x = Math.round(_x % _parent.kletka);
pos_y = Math.round(_y % _parent.kletka);
if ((_currentframe == 2) && (_parent.lifes > 0)) {
z = z + 1;
if (z > 100) {
gotoAndStop (1);
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
_x = (_parent.kletka * birth_x);
_y = (_parent.kletka * birth_y);
_parent.monster1._x = (_parent.kletka * _parent.m1x) + _parent.kletka;
_parent.monster1._y = (_parent.kletka * _parent.m1y) + _parent.kletka;
_parent.monster2._x = (_parent.kletka * _parent.m2x) + _parent.kletka;
_parent.monster2._y = (_parent.kletka * _parent.m2y) + _parent.kletka;
_parent.monster3._x = (_parent.kletka * _parent.m3x) + _parent.kletka;
_parent.monster3._y = (_parent.kletka * _parent.m3y) + _parent.kletka;
_parent.monster4._x = (_parent.kletka * _parent.m4x) + _parent.kletka;
_parent.monster4._y = (_parent.kletka * _parent.m4y) + _parent.kletka;
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 0;
dx = 0;
dy = 0;
z = 0;
}
} else if ((_parent.lifes == 0) && (g_o == 0)) {
g_o = 1;
_parent.LC = 1;
_parent.game_over._y = -1 * _parent.game_over._y;
_parent.GameOver.start();
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
if ((pos_x == 0) && (pos_y == 0)) {
if (hit.hitTest(_parent.life1.hit)) {
_parent.lifes = _parent.lifes + 1;
_parent.score = _parent.score + _parent.score_za_life;
_root.Total_Score = _root.Total_Score + _parent.score_za_life;
_parent.BonusLife.start();
_parent.life1.removeMovieClip();
}
if (_parent.monsters < 4) {
tellTarget (_parent) {
call("new_mon");
};
}
_parent.pax = Math.round(_x / _parent.kletka) - 1;
_parent.pay = Math.round(_y / _parent.kletka) - 1;
tellTarget (_parent) {
call("eat");
};
if (Key.isDown(38) || (pre_nord)) {
if (nam(0, -step) == 0) {
dy = -step;
dx = 0;
face.rot._rotation = 90;
face.gotoAndStop(2);
_parent.rody_delay = 20;
}
}
if (Key.isDown(40) || (pre_south)) {
if (nam(0, step) == 0) {
dy = step;
dx = 0;
face.rot._rotation = -90;
face.gotoAndStop(4);
_parent.rody_delay = 20;
}
}
if (Key.isDown(37) || (pre_east)) {
if (nam(-step, 0) == 0) {
dx = -step;
dy = 0;
face.rot._rotation = 0;
face.gotoAndStop(1);
_parent.rody_delay = 20;
}
}
if (Key.isDown(39) || (pre_west)) {
if (nam(step, 0) == 0) {
dx = step;
dy = 0;
face.rot._rotation = 180;
face.gotoAndStop(3);
_parent.rody_delay = 20;
}
}
if (face_motion == 4) {
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
face_motion = 0;
} else {
face_motion++;
}
if (nam(dx, dy) == 1) {
dx = 0;
dy = 0;
}
}
if (_currentframe == 1) {
_x = (_x + dx);
_y = (_y + dy);
}
}
onClipEvent (load) {
function nam(dx, dy) {
xx = Math.round(_x / _parent.kletka) - 1;
yy = Math.round(_y / _parent.kletka) - 1;
p = _parent.pole.pole;
z1 = 0;
z2 = 0;
if (dx == 0) {
if (dy < 0) {
z1 = -1;
} else if (dy > 0) {
z1 = 1;
} else {
z1 = 0;
}
} else if (dy == 0) {
if (dx < 0) {
z2 = -1;
} else if (dx > 0) {
z2 = 1;
} else {
z2 = 0;
}
}
if ((ppp != 0) && (ppp < 30)) {
}
pp = p[yy + z1];
ppp = pp[xx + z2];
if ((ppp != 0) && (ppp < 30)) {
rt = 1;
} else {
rt = 0;
}
return(rt);
}
l_c = 0;
g_o = 0;
step = _parent.packman_step;
dx = 0;
dy = 0;
z = 0;
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
}
Frame 17
doska.gotoAndStop(6);
tochka_count = 1;
rody_delay = 2;
score = 0;
goroh = 0;
bonus_posibility = 30;
life_posibility = 30;
LC = 0;
level_x_ext = 15;
level_y_ext = 15;
level = 6;
m_i = 0;
col_monstrov = 4;
bonus_count = 0;
monsters = 0;
level_goroh = 146;
m1y = 7;
m1x = 7;
m2y = 9;
m2x = 7;
m3y = 7;
m3x = 9;
m4y = 9;
m4x = 9;
Frame 18
packman._x = kletka * 3;
packman._y = kletka * 2;
packman.birth_x = 3;
packman.birth_y = 2;
GameStart.start();
stop();
Instance of Symbol 131 MovieClip "pole" in Frame 18
onClipEvent (load) {
_parent.zzz = "loading";
pole = new Array();
line = new Array(6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7);
pole[0] = line;
line = new Array(5, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4);
pole[16] = line;
line = new Array(2, 31, 31, 31, 31, 31, 31, 31, 32, 31, 31, 31, 31, 31, 31, 31, 2);
pole[1] = line;
pole[15] = line;
line = new Array(2, 31, 1, 1, 31, 1, 1, 1, 31, 1, 1, 1, 31, 1, 1, 31, 2);
pole[2] = line;
pole[14] = line;
line = new Array(2, 31, 1, 1, 31, 31, 31, 1, 31, 1, 31, 31, 31, 1, 1, 31, 2);
pole[3] = line;
line = new Array(2, 31, 31, 1, 31, 31, 31, 1, 31, 1, 31, 31, 31, 1, 31, 31, 2);
pole[13] = line;
line = new Array(2, 31, 31, 31, 31, 1, 31, 31, 31, 31, 31, 1, 31, 31, 31, 31, 2);
pole[4] = line;
line = new Array(2, 1, 31, 31, 31, 1, 31, 31, 31, 31, 31, 1, 31, 31, 31, 1, 2);
pole[12] = line;
line = new Array(2, 32, 31, 1, 1, 1, 31, 1, 1, 1, 31, 1, 1, 1, 31, 32, 2);
pole[5] = line;
line = new Array(2, 32, 31, 1, 1, 1, 31, 1, 1, 1, 31, 1, 1, 1, 31, 32, 2);
pole[11] = line;
line = new Array(2, 1, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 1, 2);
pole[6] = line;
line = new Array(2, 31, 31, 31, 1, 1, 31, 31, 31, 31, 31, 1, 1, 31, 31, 31, 2);
pole[10] = line;
line = new Array(2, 31, 31, 1, 1, 1, 31, 31, 1, 31, 31, 1, 1, 1, 31, 31, 2);
pole[7] = line;
line = new Array(2, 31, 1, 31, 31, 1, 31, 31, 1, 31, 31, 1, 31, 31, 1, 31, 2);
pole[9] = line;
line = new Array(2, 31, 1, 1, 31, 31, 31, 1, 1, 1, 31, 31, 31, 1, 1, 31, 2);
pole[8] = line;
_parent.zzz = "goroh " + _parent.zzz;
tellTarget (_parent) {
call("goroh");
};
s_time = getTimer();
}
onClipEvent (enterFrame) {
e_time = getTimer();
if ((e_time - s_time) >= _parent.minuta) {
s_time = e_time;
z = Math.random() * 100;
if (z < _parent.bonus_posibility) {
tellTarget (_parent) {
call("bonus");
};
}
zz = Math.random() * 100;
if (zz < _parent.life_posibility) {
tellTarget (_parent) {
call("life");
};
}
}
}
Instance of Symbol 151 MovieClip "packman" in Frame 18
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
pre_nord = 1;
pre_south = 0;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(40)) {
pre_nord = 0;
pre_south = 1;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(37)) {
pre_nord = 0;
pre_south = 0;
pre_east = 1;
pre_west = 0;
} else if (Key.isDown(39)) {
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 1;
}
if ((_parent.goroh == _parent.level_goroh) && (l_c == 0)) {
l_c = 1;
_parent.level_c._y = -1 * _parent.level_c._y;
_parent.LevelComplete.start();
_parent.LC = 1;
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
pos_x = Math.round(_x % _parent.kletka);
pos_y = Math.round(_y % _parent.kletka);
if ((_currentframe == 2) && (_parent.lifes > 0)) {
z = z + 1;
if (z > 100) {
gotoAndStop (1);
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
_x = (_parent.kletka * birth_x);
_y = (_parent.kletka * birth_y);
_parent.monster1._x = (_parent.kletka * _parent.m1x) + _parent.kletka;
_parent.monster1._y = (_parent.kletka * _parent.m1y) + _parent.kletka;
_parent.monster2._x = (_parent.kletka * _parent.m2x) + _parent.kletka;
_parent.monster2._y = (_parent.kletka * _parent.m2y) + _parent.kletka;
_parent.monster3._x = (_parent.kletka * _parent.m3x) + _parent.kletka;
_parent.monster3._y = (_parent.kletka * _parent.m3y) + _parent.kletka;
_parent.monster4._x = (_parent.kletka * _parent.m4x) + _parent.kletka;
_parent.monster4._y = (_parent.kletka * _parent.m4y) + _parent.kletka;
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 0;
dx = 0;
dy = 0;
z = 0;
}
} else if ((_parent.lifes == 0) && (g_o == 0)) {
g_o = 1;
_parent.LC = 1;
_parent.game_over._y = -1 * _parent.game_over._y;
_parent.GameOver.start();
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
if ((pos_x == 0) && (pos_y == 0)) {
if (hit.hitTest(_parent.life1.hit)) {
_parent.lifes = _parent.lifes + 1;
_parent.score = _parent.score + _parent.score_za_life;
_root.Total_Score = _root.Total_Score + _parent.score_za_life;
_parent.BonusLife.start();
_parent.life1.removeMovieClip();
}
if (_parent.monsters < 4) {
tellTarget (_parent) {
call("new_mon");
};
}
_parent.pax = Math.round(_x / _parent.kletka) - 1;
_parent.pay = Math.round(_y / _parent.kletka) - 1;
tellTarget (_parent) {
call("eat");
};
if (Key.isDown(38) || (pre_nord)) {
if (nam(0, -step) == 0) {
dy = -step;
dx = 0;
face.rot._rotation = 90;
face.gotoAndStop(2);
_parent.rody_delay = 20;
}
}
if (Key.isDown(40) || (pre_south)) {
if (nam(0, step) == 0) {
dy = step;
dx = 0;
face.rot._rotation = -90;
face.gotoAndStop(4);
_parent.rody_delay = 20;
}
}
if (Key.isDown(37) || (pre_east)) {
if (nam(-step, 0) == 0) {
dx = -step;
dy = 0;
face.rot._rotation = 0;
face.gotoAndStop(1);
_parent.rody_delay = 20;
}
}
if (Key.isDown(39) || (pre_west)) {
if (nam(step, 0) == 0) {
dx = step;
dy = 0;
face.rot._rotation = 180;
face.gotoAndStop(3);
_parent.rody_delay = 20;
}
}
if (face_motion == 4) {
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
face_motion = 0;
} else {
face_motion++;
}
if (nam(dx, dy) == 1) {
dx = 0;
dy = 0;
}
}
if (_currentframe == 1) {
_x = (_x + dx);
_y = (_y + dy);
}
}
onClipEvent (load) {
function nam(dx, dy) {
xx = Math.round(_x / _parent.kletka) - 1;
yy = Math.round(_y / _parent.kletka) - 1;
p = _parent.pole.pole;
z1 = 0;
z2 = 0;
if (dx == 0) {
if (dy < 0) {
z1 = -1;
} else if (dy > 0) {
z1 = 1;
} else {
z1 = 0;
}
} else if (dy == 0) {
if (dx < 0) {
z2 = -1;
} else if (dx > 0) {
z2 = 1;
} else {
z2 = 0;
}
}
if ((ppp != 0) && (ppp < 30)) {
}
pp = p[yy + z1];
ppp = pp[xx + z2];
if ((ppp != 0) && (ppp < 30)) {
rt = 1;
} else {
rt = 0;
}
return(rt);
}
l_c = 0;
g_o = 0;
step = _parent.packman_step;
dx = 0;
dy = 0;
z = 0;
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
}
Frame 19
doska.gotoAndStop(7);
tochka_count = 1;
rody_delay = 2;
score = 0;
goroh = 0;
bonus_posibility = 30;
life_posibility = 30;
LC = 0;
level_x_ext = 15;
level_y_ext = 15;
level = 7;
m_i = 0;
col_monstrov = 4;
bonus_count = 0;
monsters = 0;
level_goroh = 133;
m1y = 7;
m1x = 7;
m2y = 7;
m2x = 7;
m3y = 7;
m3x = 9;
m4y = 7;
m4x = 9;
Frame 20
packman._x = kletka * 9;
packman._y = kletka * 5;
packman.birth_x = 9;
packman.birth_y = 5;
GameStart.start();
stop();
Instance of Symbol 131 MovieClip "pole" in Frame 20
onClipEvent (load) {
_parent.zzz = "loading";
pole = new Array();
line = new Array(6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7);
pole[0] = line;
line = new Array(5, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4);
pole[16] = line;
line = new Array(2, 31, 31, 31, 31, 31, 31, 31, 1, 31, 31, 31, 31, 31, 31, 31, 2);
pole[1] = line;
pole[15] = line;
line = new Array(2, 31, 1, 1, 31, 1, 1, 31, 1, 31, 1, 1, 31, 1, 1, 31, 2);
pole[2] = line;
pole[14] = line;
pole[3] = line;
pole[13] = line;
line = new Array(2, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 2);
pole[4] = line;
pole[12] = line;
line = new Array(2, 32, 1, 31, 1, 31, 31, 1, 1, 1, 31, 31, 1, 31, 2, 32, 2);
pole[5] = line;
line = new Array(2, 32, 1, 31, 1, 31, 1, 1, 1, 1, 1, 31, 1, 31, 2, 32, 2);
pole[11] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 1, 0, 1, 1, 31, 1, 31, 2, 31, 2);
pole[6] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 0, 0, 0, 1, 31, 1, 31, 2, 31, 2);
pole[7] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 1, 0, 1, 1, 31, 1, 31, 2, 31, 2);
pole[8] = line;
line = new Array(2, 31, 1, 31, 1, 31, 31, 31, 31, 31, 31, 31, 1, 31, 1, 31, 2);
pole[10] = line;
line = new Array(2, 31, 1, 31, 1, 31, 31, 1, 0, 1, 31, 31, 1, 31, 1, 31, 2);
pole[9] = line;
_parent.zzz = "goroh " + _parent.zzz;
tellTarget (_parent) {
call("goroh");
};
s_time = getTimer();
}
onClipEvent (enterFrame) {
e_time = getTimer();
if ((e_time - s_time) >= _parent.minuta) {
s_time = e_time;
z = Math.random() * 100;
if (z < _parent.bonus_posibility) {
tellTarget (_parent) {
call("bonus");
};
}
zz = Math.random() * 100;
if (zz < _parent.life_posibility) {
tellTarget (_parent) {
call("life");
};
}
}
}
Instance of Symbol 151 MovieClip "packman" in Frame 20
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
pre_nord = 1;
pre_south = 0;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(40)) {
pre_nord = 0;
pre_south = 1;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(37)) {
pre_nord = 0;
pre_south = 0;
pre_east = 1;
pre_west = 0;
} else if (Key.isDown(39)) {
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 1;
}
if ((_parent.goroh == _parent.level_goroh) && (l_c == 0)) {
l_c = 1;
_parent.level_c._y = -1 * _parent.level_c._y;
_parent.LevelComplete.start();
_parent.LC = 1;
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
pos_x = Math.round(_x % _parent.kletka);
pos_y = Math.round(_y % _parent.kletka);
if ((_currentframe == 2) && (_parent.lifes > 0)) {
z = z + 1;
if (z > 100) {
gotoAndStop (1);
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
_x = (_parent.kletka * birth_x);
_y = (_parent.kletka * birth_y);
_parent.monster1._x = (_parent.kletka * _parent.m1x) + _parent.kletka;
_parent.monster1._y = (_parent.kletka * _parent.m1y) + _parent.kletka;
_parent.monster2._x = (_parent.kletka * _parent.m2x) + _parent.kletka;
_parent.monster2._y = (_parent.kletka * _parent.m2y) + _parent.kletka;
_parent.monster3._x = (_parent.kletka * _parent.m3x) + _parent.kletka;
_parent.monster3._y = (_parent.kletka * _parent.m3y) + _parent.kletka;
_parent.monster4._x = (_parent.kletka * _parent.m4x) + _parent.kletka;
_parent.monster4._y = (_parent.kletka * _parent.m4y) + _parent.kletka;
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 0;
dx = 0;
dy = 0;
z = 0;
}
} else if ((_parent.lifes == 0) && (g_o == 0)) {
g_o = 1;
_parent.LC = 1;
_parent.game_over._y = -1 * _parent.game_over._y;
_parent.GameOver.start();
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
if ((pos_x == 0) && (pos_y == 0)) {
if (hit.hitTest(_parent.life1.hit)) {
_parent.lifes = _parent.lifes + 1;
_parent.score = _parent.score + _parent.score_za_life;
_root.Total_Score = _root.Total_Score + _parent.score_za_life;
_parent.BonusLife.start();
_parent.life1.removeMovieClip();
}
if (_parent.monsters < 4) {
tellTarget (_parent) {
call("new_mon");
};
}
_parent.pax = Math.round(_x / _parent.kletka) - 1;
_parent.pay = Math.round(_y / _parent.kletka) - 1;
tellTarget (_parent) {
call("eat");
};
if (Key.isDown(38) || (pre_nord)) {
if (nam(0, -step) == 0) {
dy = -step;
dx = 0;
face.rot._rotation = 90;
face.gotoAndStop(2);
_parent.rody_delay = 20;
}
}
if (Key.isDown(40) || (pre_south)) {
if (nam(0, step) == 0) {
dy = step;
dx = 0;
face.rot._rotation = -90;
face.gotoAndStop(4);
_parent.rody_delay = 20;
}
}
if (Key.isDown(37) || (pre_east)) {
if (nam(-step, 0) == 0) {
dx = -step;
dy = 0;
face.rot._rotation = 0;
face.gotoAndStop(1);
_parent.rody_delay = 20;
}
}
if (Key.isDown(39) || (pre_west)) {
if (nam(step, 0) == 0) {
dx = step;
dy = 0;
face.rot._rotation = 180;
face.gotoAndStop(3);
_parent.rody_delay = 20;
}
}
if (face_motion == 4) {
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
face_motion = 0;
} else {
face_motion++;
}
if (nam(dx, dy) == 1) {
dx = 0;
dy = 0;
}
}
if (_currentframe == 1) {
_x = (_x + dx);
_y = (_y + dy);
}
}
onClipEvent (load) {
function nam(dx, dy) {
xx = Math.round(_x / _parent.kletka) - 1;
yy = Math.round(_y / _parent.kletka) - 1;
p = _parent.pole.pole;
z1 = 0;
z2 = 0;
if (dx == 0) {
if (dy < 0) {
z1 = -1;
} else if (dy > 0) {
z1 = 1;
} else {
z1 = 0;
}
} else if (dy == 0) {
if (dx < 0) {
z2 = -1;
} else if (dx > 0) {
z2 = 1;
} else {
z2 = 0;
}
}
if ((ppp != 0) && (ppp < 30)) {
}
pp = p[yy + z1];
ppp = pp[xx + z2];
if ((ppp != 0) && (ppp < 30)) {
rt = 1;
} else {
rt = 0;
}
return(rt);
}
l_c = 0;
g_o = 0;
step = _parent.packman_step;
dx = 0;
dy = 0;
z = 0;
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
}
Frame 21
doska.gotoAndStop(8);
tochka_count = 1;
rody_delay = 2;
score = 0;
goroh = 0;
bonus_posibility = 30;
life_posibility = 30;
LC = 0;
level_x_ext = 15;
level_y_ext = 15;
level = 8;
m_i = 0;
col_monstrov = 4;
bonus_count = 0;
monsters = 0;
level_goroh = 133;
m1y = 7;
m1x = 7;
m2y = 7;
m2x = 7;
m3y = 7;
m3x = 9;
m4y = 7;
m4x = 9;
Frame 22
packman._x = kletka * 9;
packman._y = kletka * 5;
packman.birth_x = 9;
packman.birth_y = 5;
GameStart.start();
stop();
Instance of Symbol 131 MovieClip "pole" in Frame 22
onClipEvent (load) {
_parent.zzz = "loading";
pole = new Array();
line = new Array(6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7);
pole[0] = line;
line = new Array(5, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4);
pole[16] = line;
line = new Array(2, 31, 31, 31, 31, 31, 31, 31, 1, 31, 31, 31, 31, 31, 31, 31, 2);
pole[1] = line;
pole[15] = line;
line = new Array(2, 31, 1, 1, 31, 1, 1, 31, 1, 31, 1, 1, 31, 1, 1, 31, 2);
pole[2] = line;
pole[14] = line;
pole[3] = line;
pole[13] = line;
line = new Array(2, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 2);
pole[4] = line;
pole[12] = line;
line = new Array(2, 32, 1, 31, 1, 31, 31, 1, 1, 1, 31, 31, 1, 31, 2, 32, 2);
pole[5] = line;
line = new Array(2, 32, 1, 31, 1, 31, 1, 1, 1, 1, 1, 31, 1, 31, 2, 32, 2);
pole[11] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 1, 0, 1, 1, 31, 1, 31, 2, 31, 2);
pole[6] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 0, 0, 0, 1, 31, 1, 31, 2, 31, 2);
pole[7] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 1, 0, 1, 1, 31, 1, 31, 2, 31, 2);
pole[8] = line;
line = new Array(2, 31, 1, 31, 1, 31, 31, 31, 31, 31, 31, 31, 1, 31, 1, 31, 2);
pole[10] = line;
line = new Array(2, 31, 1, 31, 1, 31, 31, 1, 0, 1, 31, 31, 1, 31, 1, 31, 2);
pole[9] = line;
_parent.zzz = "goroh " + _parent.zzz;
tellTarget (_parent) {
call("goroh");
};
s_time = getTimer();
}
onClipEvent (enterFrame) {
e_time = getTimer();
if ((e_time - s_time) >= _parent.minuta) {
s_time = e_time;
z = Math.random() * 100;
if (z < _parent.bonus_posibility) {
tellTarget (_parent) {
call("bonus");
};
}
zz = Math.random() * 100;
if (zz < _parent.life_posibility) {
tellTarget (_parent) {
call("life");
};
}
}
}
Instance of Symbol 151 MovieClip "packman" in Frame 22
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
pre_nord = 1;
pre_south = 0;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(40)) {
pre_nord = 0;
pre_south = 1;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(37)) {
pre_nord = 0;
pre_south = 0;
pre_east = 1;
pre_west = 0;
} else if (Key.isDown(39)) {
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 1;
}
if ((_parent.goroh == _parent.level_goroh) && (l_c == 0)) {
l_c = 1;
_parent.level_c._y = -1 * _parent.level_c._y;
_parent.LevelComplete.start();
_parent.LC = 1;
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
pos_x = Math.round(_x % _parent.kletka);
pos_y = Math.round(_y % _parent.kletka);
if ((_currentframe == 2) && (_parent.lifes > 0)) {
z = z + 1;
if (z > 100) {
gotoAndStop (1);
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
_x = (_parent.kletka * birth_x);
_y = (_parent.kletka * birth_y);
_parent.monster1._x = (_parent.kletka * _parent.m1x) + _parent.kletka;
_parent.monster1._y = (_parent.kletka * _parent.m1y) + _parent.kletka;
_parent.monster2._x = (_parent.kletka * _parent.m2x) + _parent.kletka;
_parent.monster2._y = (_parent.kletka * _parent.m2y) + _parent.kletka;
_parent.monster3._x = (_parent.kletka * _parent.m3x) + _parent.kletka;
_parent.monster3._y = (_parent.kletka * _parent.m3y) + _parent.kletka;
_parent.monster4._x = (_parent.kletka * _parent.m4x) + _parent.kletka;
_parent.monster4._y = (_parent.kletka * _parent.m4y) + _parent.kletka;
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 0;
dx = 0;
dy = 0;
z = 0;
}
} else if ((_parent.lifes == 0) && (g_o == 0)) {
g_o = 1;
_parent.LC = 1;
_parent.game_over._y = -1 * _parent.game_over._y;
_parent.GameOver.start();
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
if ((pos_x == 0) && (pos_y == 0)) {
if (hit.hitTest(_parent.life1.hit)) {
_parent.lifes = _parent.lifes + 1;
_parent.score = _parent.score + _parent.score_za_life;
_root.Total_Score = _root.Total_Score + _parent.score_za_life;
_parent.BonusLife.start();
_parent.life1.removeMovieClip();
}
if (_parent.monsters < 4) {
tellTarget (_parent) {
call("new_mon");
};
}
_parent.pax = Math.round(_x / _parent.kletka) - 1;
_parent.pay = Math.round(_y / _parent.kletka) - 1;
tellTarget (_parent) {
call("eat");
};
if (Key.isDown(38) || (pre_nord)) {
if (nam(0, -step) == 0) {
dy = -step;
dx = 0;
face.rot._rotation = 90;
face.gotoAndStop(2);
_parent.rody_delay = 20;
}
}
if (Key.isDown(40) || (pre_south)) {
if (nam(0, step) == 0) {
dy = step;
dx = 0;
face.rot._rotation = -90;
face.gotoAndStop(4);
_parent.rody_delay = 20;
}
}
if (Key.isDown(37) || (pre_east)) {
if (nam(-step, 0) == 0) {
dx = -step;
dy = 0;
face.rot._rotation = 0;
face.gotoAndStop(1);
_parent.rody_delay = 20;
}
}
if (Key.isDown(39) || (pre_west)) {
if (nam(step, 0) == 0) {
dx = step;
dy = 0;
face.rot._rotation = 180;
face.gotoAndStop(3);
_parent.rody_delay = 20;
}
}
if (face_motion == 4) {
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
face_motion = 0;
} else {
face_motion++;
}
if (nam(dx, dy) == 1) {
dx = 0;
dy = 0;
}
}
if (_currentframe == 1) {
_x = (_x + dx);
_y = (_y + dy);
}
}
onClipEvent (load) {
function nam(dx, dy) {
xx = Math.round(_x / _parent.kletka) - 1;
yy = Math.round(_y / _parent.kletka) - 1;
p = _parent.pole.pole;
z1 = 0;
z2 = 0;
if (dx == 0) {
if (dy < 0) {
z1 = -1;
} else if (dy > 0) {
z1 = 1;
} else {
z1 = 0;
}
} else if (dy == 0) {
if (dx < 0) {
z2 = -1;
} else if (dx > 0) {
z2 = 1;
} else {
z2 = 0;
}
}
if ((ppp != 0) && (ppp < 30)) {
}
pp = p[yy + z1];
ppp = pp[xx + z2];
if ((ppp != 0) && (ppp < 30)) {
rt = 1;
} else {
rt = 0;
}
return(rt);
}
l_c = 0;
g_o = 0;
step = _parent.packman_step;
dx = 0;
dy = 0;
z = 0;
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
}
Frame 23
doska.gotoAndStop(9);
tochka_count = 1;
rody_delay = 2;
score = 0;
goroh = 0;
bonus_posibility = 30;
life_posibility = 30;
LC = 0;
level_x_ext = 15;
level_y_ext = 15;
level = 9;
m_i = 0;
col_monstrov = 4;
bonus_count = 0;
monsters = 0;
level_goroh = 141;
m1y = 7;
m1x = 7;
m2y = 7;
m2x = 9;
m3y = 9;
m3x = 7;
m4y = 9;
m4x = 9;
Frame 24
packman._x = kletka * 5;
packman._y = kletka * 16;
packman.birth_x = 5;
packman.birth_y = 16;
GameStart.start();
stop();
Instance of Symbol 131 MovieClip "pole" in Frame 24
onClipEvent (load) {
_parent.zzz = "loading";
pole = new Array();
line = new Array(6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7);
pole[0] = line;
line = new Array(5, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4);
pole[16] = line;
line = new Array(2, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 2);
pole[1] = line;
pole[15] = line;
pole[5] = line;
pole[11] = line;
line = new Array(2, 31, 1, 1, 1, 1, 1, 31, 1, 31, 1, 1, 1, 1, 1, 31, 2);
pole[2] = line;
pole[14] = line;
line = new Array(2, 31, 1, 31, 31, 31, 31, 32, 1, 32, 31, 31, 31, 31, 1, 31, 2);
pole[3] = line;
pole[13] = line;
line = new Array(2, 31, 1, 31, 1, 1, 31, 1, 1, 1, 31, 1, 1, 31, 1, 31, 2);
pole[4] = line;
pole[12] = line;
line = new Array(2, 31, 1, 1, 1, 31, 1, 1, 31, 1, 1, 31, 1, 1, 1, 31, 2);
pole[6] = line;
pole[10] = line;
line = new Array(2, 31, 31, 1, 1, 31, 1, 31, 31, 31, 1, 31, 1, 1, 31, 31, 2);
pole[7] = line;
pole[9] = line;
line = new Array(2, 1, 31, 32, 1, 31, 1, 31, 31, 31, 1, 31, 1, 32, 31, 1, 2);
pole[8] = line;
_parent.zzz = "goroh " + _parent.zzz;
tellTarget (_parent) {
call("goroh");
};
s_time = getTimer();
}
onClipEvent (enterFrame) {
e_time = getTimer();
if ((e_time - s_time) >= _parent.minuta) {
s_time = e_time;
z = Math.random() * 100;
if (z < _parent.bonus_posibility) {
tellTarget (_parent) {
call("bonus");
};
}
zz = Math.random() * 100;
if (zz < _parent.life_posibility) {
tellTarget (_parent) {
call("life");
};
}
}
}
Instance of Symbol 151 MovieClip "packman" in Frame 24
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
pre_nord = 1;
pre_south = 0;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(40)) {
pre_nord = 0;
pre_south = 1;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(37)) {
pre_nord = 0;
pre_south = 0;
pre_east = 1;
pre_west = 0;
} else if (Key.isDown(39)) {
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 1;
}
if ((_parent.goroh == _parent.level_goroh) && (l_c == 0)) {
l_c = 1;
_parent.level_c._y = -1 * _parent.level_c._y;
_parent.LevelComplete.start();
_parent.LC = 1;
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
pos_x = Math.round(_x % _parent.kletka);
pos_y = Math.round(_y % _parent.kletka);
if ((_currentframe == 2) && (_parent.lifes > 0)) {
z = z + 1;
if (z > 100) {
gotoAndStop (1);
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
_x = (_parent.kletka * birth_x);
_y = (_parent.kletka * birth_y);
_parent.monster1._x = (_parent.kletka * _parent.m1x) + _parent.kletka;
_parent.monster1._y = (_parent.kletka * _parent.m1y) + _parent.kletka;
_parent.monster2._x = (_parent.kletka * _parent.m2x) + _parent.kletka;
_parent.monster2._y = (_parent.kletka * _parent.m2y) + _parent.kletka;
_parent.monster3._x = (_parent.kletka * _parent.m3x) + _parent.kletka;
_parent.monster3._y = (_parent.kletka * _parent.m3y) + _parent.kletka;
_parent.monster4._x = (_parent.kletka * _parent.m4x) + _parent.kletka;
_parent.monster4._y = (_parent.kletka * _parent.m4y) + _parent.kletka;
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 0;
dx = 0;
dy = 0;
z = 0;
}
} else if ((_parent.lifes == 0) && (g_o == 0)) {
g_o = 1;
_parent.LC = 1;
_parent.game_over._y = -1 * _parent.game_over._y;
_parent.GameOver.start();
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
if ((pos_x == 0) && (pos_y == 0)) {
if (hit.hitTest(_parent.life1.hit)) {
_parent.lifes = _parent.lifes + 1;
_parent.score = _parent.score + _parent.score_za_life;
_root.Total_Score = _root.Total_Score + _parent.score_za_life;
_parent.BonusLife.start();
_parent.life1.removeMovieClip();
}
if (_parent.monsters < 4) {
tellTarget (_parent) {
call("new_mon");
};
}
_parent.pax = Math.round(_x / _parent.kletka) - 1;
_parent.pay = Math.round(_y / _parent.kletka) - 1;
tellTarget (_parent) {
call("eat");
};
if (Key.isDown(38) || (pre_nord)) {
if (nam(0, -step) == 0) {
dy = -step;
dx = 0;
face.rot._rotation = 90;
face.gotoAndStop(2);
_parent.rody_delay = 20;
}
}
if (Key.isDown(40) || (pre_south)) {
if (nam(0, step) == 0) {
dy = step;
dx = 0;
face.rot._rotation = -90;
face.gotoAndStop(4);
_parent.rody_delay = 20;
}
}
if (Key.isDown(37) || (pre_east)) {
if (nam(-step, 0) == 0) {
dx = -step;
dy = 0;
face.rot._rotation = 0;
face.gotoAndStop(1);
_parent.rody_delay = 20;
}
}
if (Key.isDown(39) || (pre_west)) {
if (nam(step, 0) == 0) {
dx = step;
dy = 0;
face.rot._rotation = 180;
face.gotoAndStop(3);
_parent.rody_delay = 20;
}
}
if (face_motion == 4) {
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
face_motion = 0;
} else {
face_motion++;
}
if (nam(dx, dy) == 1) {
dx = 0;
dy = 0;
}
}
if (_currentframe == 1) {
_x = (_x + dx);
_y = (_y + dy);
}
}
onClipEvent (load) {
function nam(dx, dy) {
xx = Math.round(_x / _parent.kletka) - 1;
yy = Math.round(_y / _parent.kletka) - 1;
p = _parent.pole.pole;
z1 = 0;
z2 = 0;
if (dx == 0) {
if (dy < 0) {
z1 = -1;
} else if (dy > 0) {
z1 = 1;
} else {
z1 = 0;
}
} else if (dy == 0) {
if (dx < 0) {
z2 = -1;
} else if (dx > 0) {
z2 = 1;
} else {
z2 = 0;
}
}
if ((ppp != 0) && (ppp < 30)) {
}
pp = p[yy + z1];
ppp = pp[xx + z2];
if ((ppp != 0) && (ppp < 30)) {
rt = 1;
} else {
rt = 0;
}
return(rt);
}
l_c = 0;
g_o = 0;
step = _parent.packman_step;
dx = 0;
dy = 0;
z = 0;
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
}
Frame 25
doska.gotoAndStop(10);
tochka_count = 1;
rody_delay = 2;
score = 0;
goroh = 0;
bonus_posibility = 30;
life_posibility = 30;
LC = 0;
level_x_ext = 15;
level_y_ext = 15;
level = 10;
m_i = 0;
col_monstrov = 4;
bonus_count = 0;
monsters = 0;
level_goroh = 136;
m1y = 7;
m1x = 9;
m2y = 7;
m2x = 9;
m3y = 9;
m3x = 7;
m4y = 9;
m4x = 7;
Frame 26
packman._x = kletka * 4;
packman._y = kletka * 16;
packman.birth_x = 4;
packman.birth_y = 16;
GameStart.start();
stop();
Instance of Symbol 131 MovieClip "pole" in Frame 26
onClipEvent (load) {
_parent.zzz = "loading";
pole = new Array();
line = new Array(6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7);
pole[0] = line;
line = new Array(5, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4);
pole[16] = line;
line = new Array(2, 31, 31, 31, 31, 31, 31, 31, 1, 31, 31, 31, 31, 31, 31, 31, 2);
pole[1] = line;
pole[15] = line;
line = new Array(2, 31, 1, 1, 31, 1, 1, 31, 1, 31, 1, 1, 31, 1, 1, 31, 2);
pole[2] = line;
pole[14] = line;
line = new Array(2, 31, 1, 1, 31, 1, 1, 32, 31, 32, 1, 1, 31, 1, 1, 31, 2);
pole[3] = line;
pole[13] = line;
line = new Array(2, 31, 31, 31, 31, 31, 1, 1, 1, 1, 1, 31, 31, 31, 31, 31, 2);
pole[4] = line;
pole[12] = line;
line = new Array(2, 31, 1, 31, 1, 31, 31, 31, 31, 31, 31, 31, 1, 31, 1, 31, 2);
pole[5] = line;
pole[11] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 31, 1, 1, 1, 31, 1, 31, 1, 31, 2);
pole[6] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 1, 1, 31, 1, 31, 1, 31, 1, 31, 2);
pole[10] = line;
line = new Array(2, 31, 1, 31, 1, 31, 1, 31, 31, 31, 1, 31, 1, 31, 1, 31, 2);
pole[7] = line;
pole[9] = line;
line = new Array(2, 32, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 2);
pole[8] = line;
_parent.zzz = "goroh " + _parent.zzz;
tellTarget (_parent) {
call("goroh");
};
s_time = getTimer();
}
onClipEvent (enterFrame) {
e_time = getTimer();
if ((e_time - s_time) >= _parent.minuta) {
s_time = e_time;
z = Math.random() * 100;
if (z < _parent.bonus_posibility) {
tellTarget (_parent) {
call("bonus");
};
}
zz = Math.random() * 100;
if (zz < _parent.life_posibility) {
tellTarget (_parent) {
call("life");
};
}
}
}
Instance of Symbol 151 MovieClip "packman" in Frame 26
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
pre_nord = 1;
pre_south = 0;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(40)) {
pre_nord = 0;
pre_south = 1;
pre_east = 0;
pre_west = 0;
} else if (Key.isDown(37)) {
pre_nord = 0;
pre_south = 0;
pre_east = 1;
pre_west = 0;
} else if (Key.isDown(39)) {
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 1;
}
if ((_parent.goroh == _parent.level_goroh) && (l_c == 0)) {
l_c = 1;
_parent.level_c._y = -1 * _parent.level_c._y;
_parent.LevelComplete.start();
_parent.LC = 1;
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
pos_x = Math.round(_x % _parent.kletka);
pos_y = Math.round(_y % _parent.kletka);
if ((_currentframe == 2) && (_parent.lifes > 0)) {
z = z + 1;
if (z > 100) {
gotoAndStop (1);
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
_x = (_parent.kletka * birth_x);
_y = (_parent.kletka * birth_y);
_parent.monster1._x = (_parent.kletka * _parent.m1x) + _parent.kletka;
_parent.monster1._y = (_parent.kletka * _parent.m1y) + _parent.kletka;
_parent.monster2._x = (_parent.kletka * _parent.m2x) + _parent.kletka;
_parent.monster2._y = (_parent.kletka * _parent.m2y) + _parent.kletka;
_parent.monster3._x = (_parent.kletka * _parent.m3x) + _parent.kletka;
_parent.monster3._y = (_parent.kletka * _parent.m3y) + _parent.kletka;
_parent.monster4._x = (_parent.kletka * _parent.m4x) + _parent.kletka;
_parent.monster4._y = (_parent.kletka * _parent.m4y) + _parent.kletka;
pre_nord = 0;
pre_south = 0;
pre_east = 0;
pre_west = 0;
dx = 0;
dy = 0;
z = 0;
}
} else if ((_parent.lifes == 0) && (g_o == 0)) {
g_o = 1;
_parent.LC = 1;
_parent.game_over._y = -1 * _parent.game_over._y;
_parent.GameOver.start();
tellTarget (_parent) {
call("clear");
};
dx = 0;
dy = 0;
}
if ((pos_x == 0) && (pos_y == 0)) {
if (hit.hitTest(_parent.life1.hit)) {
_parent.lifes = _parent.lifes + 1;
_parent.score = _parent.score + _parent.score_za_life;
_root.Total_Score = _root.Total_Score + _parent.score_za_life;
_parent.BonusLife.start();
_parent.life1.removeMovieClip();
}
if (_parent.monsters < 4) {
tellTarget (_parent) {
call("new_mon");
};
}
_parent.pax = Math.round(_x / _parent.kletka) - 1;
_parent.pay = Math.round(_y / _parent.kletka) - 1;
tellTarget (_parent) {
call("eat");
};
if (Key.isDown(38) || (pre_nord)) {
if (nam(0, -step) == 0) {
dy = -step;
dx = 0;
face.rot._rotation = 90;
face.gotoAndStop(2);
_parent.rody_delay = 20;
}
}
if (Key.isDown(40) || (pre_south)) {
if (nam(0, step) == 0) {
dy = step;
dx = 0;
face.rot._rotation = -90;
face.gotoAndStop(4);
_parent.rody_delay = 20;
}
}
if (Key.isDown(37) || (pre_east)) {
if (nam(-step, 0) == 0) {
dx = -step;
dy = 0;
face.rot._rotation = 0;
face.gotoAndStop(1);
_parent.rody_delay = 20;
}
}
if (Key.isDown(39) || (pre_west)) {
if (nam(step, 0) == 0) {
dx = step;
dy = 0;
face.rot._rotation = 180;
face.gotoAndStop(3);
_parent.rody_delay = 20;
}
}
if (face_motion == 4) {
face.rot.gotoAndStop(1);
face.kleshny.gotoAndStop(1);
face_motion = 0;
} else {
face_motion++;
}
if (nam(dx, dy) == 1) {
dx = 0;
dy = 0;
}
}
if (_currentframe == 1) {
_x = (_x + dx);
_y = (_y + dy);
}
}
onClipEvent (load) {
function nam(dx, dy) {
xx = Math.round(_x / _parent.kletka) - 1;
yy = Math.round(_y / _parent.kletka) - 1;
p = _parent.pole.pole;
z1 = 0;
z2 = 0;
if (dx == 0) {
if (dy < 0) {
z1 = -1;
} else if (dy > 0) {
z1 = 1;
} else {
z1 = 0;
}
} else if (dy == 0) {
if (dx < 0) {
z2 = -1;
} else if (dx > 0) {
z2 = 1;
} else {
z2 = 0;
}
}
if ((ppp != 0) && (ppp < 30)) {
}
pp = p[yy + z1];
ppp = pp[xx + z2];
if ((ppp != 0) && (ppp < 30)) {
rt = 1;
} else {
rt = 0;
}
return(rt);
}
l_c = 0;
g_o = 0;
step = _parent.packman_step;
dx = 0;
dy = 0;
z = 0;
face.rot.stop();
face.kleshny.stop();
face.gotoAndStop(1);
}
Frame 39
call("clear");
call("clear_points");
if (_root.dload_flag) {
_root.dload_flag = false;
gotoAndStop ("DownLoad");
} else if (_root.menu_f) {
_root.menu_f = false;
gotoAndStop ("First");
} else if (!_root.exit_f) {
_root.exit_f = false;
gotoAndStop ("First");
}
Frame 44
zzz = "proc " + zzz;
i = 1;
while (i < 17) {
j = 1;
while (j < 17) {
p = pole.pole;
pp = p[i];
ppp = pp[j];
if (ppp > 30) {
tochka_x = j;
tochka_y = i;
if (ppp == 31) {
call("tochka");
} else if (ppp == 32) {
call("rtochka");
}
}
j++;
}
i++;
}
zzz = zzz + p[1];
Frame 50
tochka.duplicateMovieClip((("tochka" + i) + "_") + j, 10 * tochka_count);
setProperty(eval ((("tochka" + i) + "_") + j), _y , kletka + (tochka_y * kletka));
setProperty(eval ((("tochka" + i) + "_") + j), _x , kletka + (tochka_x * kletka));
tochka_count = tochka_count + 1;
Frame 57
red_tochka.duplicateMovieClip((("tochka" + i) + "_") + j, 10 * tochka_count);
setProperty(eval ((("tochka" + i) + "_") + j), _y , kletka + (tochka_y * kletka));
setProperty(eval ((("tochka" + i) + "_") + j), _x , kletka + (tochka_x * kletka));
tochka_count = tochka_count + 1;
Frame 65
z = eval ((("tochka" + pay) + "_") + pax);
if (z.tchk.hit.hitTest(packman.hit)) {
packman.face.rot.play();
score = score + score_za_goroh;
_root.Total_Score = _root.Total_Score + score_za_goroh;
goroh = goroh + 1;
EatDot.start();
z.removeMovieClip();
}
Frame 71
monster.duplicateMovieClip("monster1", 2001);
setProperty(monster1, _y , kletka + (m1y * kletka));
setProperty(monster1, _x , kletka + (m1x * kletka));
myColorTransform = new Object();
myColorTransform.ra = 100;
myColorTransform.rb = 255;
myColorTransform.ga = 100;
myColorTransform.gb = 27;
myColorTransform.ba = -100;
myColorTransform.bb = 0;
myColorTransform.aa = 100;
myColorTransform.ab = 0;
myColor = new Color(monster1.body);
myColor.setTransform(myColorTransform);
monsters = monsters + 1;
Frame 77
monster.duplicateMovieClip("monster2", 2002);
setProperty(monster2, _y , kletka + (m2y * kletka));
setProperty(monster2, _x , kletka + (m2x * kletka));
myColorTransform = new Object();
myColorTransform.ra = 100;
myColorTransform.rb = -47;
myColorTransform.ga = 100;
myColorTransform.gb = -116;
myColorTransform.ba = 100;
myColorTransform.bb = 255;
myColorTransform.aa = 100;
myColorTransform.ab = 0;
myColor = new Color(monster2.body);
myColor.setTransform(myColorTransform);
monsters = monsters + 1;
Frame 82
monster.duplicateMovieClip("monster3", 2003);
setProperty(monster3, _y , kletka + (m3y * kletka));
setProperty(monster3, _x , kletka + (m3x * kletka));
myColorTransform = new Object();
myColorTransform.ra = 100;
myColorTransform.rb = 255;
myColorTransform.ga = 100;
myColorTransform.gb = -84;
myColorTransform.ba = 100;
myColorTransform.bb = 102;
myColorTransform.aa = 100;
myColorTransform.ab = 0;
myColor = new Color(monster3.body);
myColor.setTransform(myColorTransform);
monsters = monsters + 1;
Frame 87
monster.duplicateMovieClip("monster4", 2004);
setProperty(monster4, _y , kletka + (m4y * kletka));
setProperty(monster4, _x , kletka + (m4x * kletka));
monsters = monsters + 1;
Frame 92
function getPoint() {
w = new Array();
x1 = Math.ceil(Math.random() * level_x_ext);
y1 = Math.ceil(Math.random() * level_y_ext);
p = pole.pole;
pp = p[x1];
ppp = pp[y1];
if ((ppp != 0) && (ppp < 31)) {
w = getPoint();
} else {
w[1] = x1;
w[2] = y1;
}
return(w);
}
if (LC == 0) {
w = getPoint();
bonus.duplicateMovieClip("bonus" + bonus_count, 1800 + bonus_count);
setProperty(eval ("bonus" + bonus_count), _y , (w[1] + 1) * kletka);
setProperty(eval ("bonus" + bonus_count), _x , (w[2] + 1) * kletka);
r_b = Math.ceil(Math.random() * 4);
eval ("bonus" + bonus_count).gotoAndStop(r_b);
bonus_count = bonus_count + 1;
if (bonus_count == 10) {
bonus_count = 0;
}
}
Frame 98
if (LC == 0) {
if (!monster1) {
call("mon1");
} else if (!monster2) {
call("mon2");
} else if (!monster3) {
call("mon3");
} else if (!monster4) {
call("mon4");
}
}
Frame 104
monster1.removeMovieClip();
monster2.removeMovieClip();
monster3.removeMovieClip();
monster4.removeMovieClip();
i = 0;
while (i < 11) {
eval ("bonus" + i).removeMovieClip();
i++;
}
life1.removeMovieClip();
Frame 110
function getPoint() {
w = new Array();
x1 = Math.ceil(Math.random() * level_x_ext);
y1 = Math.ceil(Math.random() * level_y_ext);
p = pole.pole;
pp = p[x1];
ppp = pp[y1];
if ((ppp != 0) && (ppp < 31)) {
w = getPoint();
} else {
w[1] = x1;
w[2] = y1;
}
return(w);
}
if (LC == 0) {
w = getPoint();
life.duplicateMovieClip("life1", 1700);
setProperty(life1, _y , (1 + w[1]) * kletka);
setProperty(life1, _x , (1 + w[2]) * kletka);
}
Frame 115
i = 1;
while (i < 17) {
j = 1;
while (j < 17) {
eval ((("tochka" + i) + "_") + j).removeMovieClip();
j++;
}
i++;
}
tochka7.removeMovieClip();
tochka6.removeMovieClip();
tochka5.removeMovieClip();
tochka4.removeMovieClip();
Frame 124
if (test.flag) {
test.attachMovie("rodilny", "rodilny1", "100000");
}
Frame 132
if (snd == 0) {
GameStart.setVolume(0);
LevelComplete.setVolume(0);
BonusLife.setVolume(0);
EatMonster.setVolume(0);
Death.setVolume(0);
EatBonus.setVolume(0);
GameOver.setVolume(0);
StartGame.setVolume(0);
GameComplete.setVolume(0);
EatDot.setVolume(0);
PushButton.setVolume(0);
} else {
GameStart.setVolume(100);
LevelComplete.setVolume(100);
BonusLife.setVolume(100);
EatMonster.setVolume(100);
Death.setVolume(100);
EatBonus.setVolume(100);
GameOver.setVolume(100);
StartGame.setVolume(100);
GameComplete.setVolume(100);
EatDot.setVolume(100);
PushButton.setVolume(100);
}
Frame 140
stop();
Frame 141
stop();
Instance of Symbol 244 MovieClip in Frame 141
on (press) {
if (_root.help_f) {
_root.help_f = false;
this.gotoAndStop(2);
} else {
_root.help_f = true;
this.gotoAndStop(1);
}
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip [rodilny] Frame 1
onClipEvent (load) {
k = 0;
_parent._parent.flag = false;
}
onClipEvent (enterFrame) {
if (k == _parent._parent._parent.rody_delay) {
tellTarget (_parent._parent._parent) {
call("mon");
};
_parent._parent.flag = true;
this.removeMovieClip();
}
k = k + 1;
}
Symbol 30 Button
on (press) {
_root.gotoAndStop("Select");
_root.PushButton.start();
}
Symbol 37 Button
on (press) {
cstr = ("JavaScript:" + _root.close_f) + "()";
getURL (cstr);
}
Symbol 39 Button
on (press) {
_root.dload_flag = true;
_root.gotoAndStop("end");
_root.PushButton.start();
}
Symbol 41 MovieClip Frame 1
stop();
if (_root.close_f == undefined) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
Symbol 41 MovieClip Frame 2
stop();
Instance of Symbol 58 MovieClip in Symbol 59 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hit.hitTest(_parent._parent.packman.hit)) {
_root.eat_bigSnd.start();
_parent._parent.goroh = _parent._parent.goroh + 1;
_parent._parent.packman.face.rot.play();
_parent._parent.monster1.mode = "EatMonsters";
_parent._parent.monster2.mode = "EatMonsters";
_parent._parent.monster3.mode = "EatMonsters";
_parent._parent.monster4.mode = "EatMonsters";
_parent.removeMovieClip();
}
}
Instance of Symbol 58 MovieClip in Symbol 59 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this.hit.hitTest(_parent._parent.packman.hit)) {
_root.eat_bigSnd.start();
_parent._parent.goroh = _parent._parent.goroh + 1;
_parent._parent.packman.face.rot.play();
_parent._parent.monster1.mode = "EatMonsters";
_parent._parent.monster2.mode = "EatMonsters";
_parent._parent.monster3.mode = "EatMonsters";
_parent._parent.monster4.mode = "EatMonsters";
_parent.removeMovieClip();
}
}
Symbol 67 MovieClip Frame 1
total = 0;
time = getTimer();
Symbol 67 MovieClip Frame 2
time = getTimer();
count++;
Symbol 67 MovieClip Frame 3
if (count < 0) {
tfps = -count;
gotoAndPlay (2);
} else {
gotoAndPlay (4);
}
Symbol 67 MovieClip Frame 4
step = time;
time = getTimer();
step = time - step;
fps = int(1000 / step);
total = total + fps;
count++;
tfps = total / count;
Symbol 67 MovieClip Frame 5
gotoAndPlay (4);
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 3
stop();
Symbol 79 MovieClip Frame 4
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 2
stop();
Symbol 119 MovieClip Frame 3
stop();
Symbol 119 MovieClip Frame 4
stop();
Symbol 119 MovieClip Frame 5
stop();
Symbol 119 MovieClip Frame 6
stop();
Symbol 119 MovieClip Frame 7
stop();
Symbol 119 MovieClip Frame 8
stop();
Symbol 119 MovieClip Frame 9
stop();
Symbol 119 MovieClip Frame 10
stop();
Symbol 126 Button
on (press) {
_root.menu_f = true;
_parent.gotoAndStop("end");
_parent.PushButton.start();
}
Symbol 128 Button
on (press) {
_root.dload_flag = true;
_parent.gotoAndStop("end");
_parent.PushButton.start();
}
Symbol 129 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 24
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
stop();
Symbol 153 Button
on (press) {
if (_root.snd == 1) {
_root.snd = 0;
gotoAndStop (2);
} else {
_root.snd = 1;
gotoAndStop (1);
}
tellTarget (_parent) {
call("snd_off_on");
};
}
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 2
stop();
Symbol 160 Button
on (press) {
_parent.gotoAndStop(1);
_parent.PushButton.start();
}
Symbol 161 Button
on (press) {
cstr = ("JavaScript:" + _root.close_f) + "()";
getURL (cstr);
}
Symbol 164 MovieClip Frame 1
stop();
Symbol 166 Button
on (release) {
_root.GotoDownload();
}
Symbol 168 Button
on (press) {
_root.menu_f = true;
_root.gotoAndStop("end");
_root.PushButton.start();
}
Symbol 183 Button
on (press) {
if (_root.help_f) {
_root.gotoAndPlay("Help");
} else {
_root.gotoAndPlay("start");
}
_root.PushButton.start();
}
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 2
stop();
Symbol 195 MovieClip Frame 3
stop();
Symbol 197 Button
on (press) {
o_tweak.gotoAndStop(1);
_root.PushButton.start();
}
Symbol 198 Button
on (press) {
o_tweak.gotoAndStop(2);
_root.PushButton.start();
}
Symbol 199 Button
on (press) {
o_tweak.gotoAndStop(3);
_root.PushButton.start();
}
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 2
stop();
Symbol 245 Button
on (press) {
_root.gotoAndPlay("start");
_root.PushButton.start();
}