Frame 5
data0 = "00000000000010000001100000111110001111100010011000010000000000003603";
data1 = "00000000000000000000000000111100001001000110011000011000000000001531";
data2 = "00000000000000000001000001111100010001000111110000010000000000003601";
data3 = "00000000000000000000000000111000000111000001110000000100000000002331";
data4 = "00000000000000000000100000111100001101000011110000001000000000004211";
data5 = "00000000000000000000000000011000001111000111111000000000000000006522";
data6 = "00000000000000000000000000111100011001101110011100000000000000007522";
data7 = "00000000000000000000010000111100001001000010010001111100000000001632";
data8 = "00000000000000000000111100011110001111000111100011110000000000000633";
data9 = "00000000011100000001001000010010111111101001000010010000000111017723";
data10 = "00000000000000000001110000010100000101100011110000000000000000002531";
data11 = "00000000000000000000010000011100001001000010010000011110000000005211";
data12 = "00000000000000000001000000100100001110000001110000000000000000003211";
data13 = "00000000000000000000011000001100000101000011010000011000000000006222";
data14 = "00000000000000000010000000011000001111000111010000001100000000002211";
data15 = "00000000000000000000010000011100000011000010010000010100000000005211";
data16 = "00000000001011000001100001001000000100100001100000111100000000006422";
data17 = "00000000000000000000011000110010000111100010010001110000000010001632";
data18 = "00000000000000000001100000010100001111000001010000000000000000002431";
data19 = "00000000000000000000000000001000000111000110000001101100000000004311";
data20 = "00000000000000000000000000010000001101000011100000101000000000003311";
data21 = "00000000000000000000000000011000001011000010100000010000000000005421";
data22 = "00000000000000000000110000011100001110100011000000001000000000006421";
data23 = "00000000000000000010100001111100000010000001110000000100000000001332";
data24 = "00000000000000000011000000001000000011100001100000101000000000006421";
data25 = "00000000000110000011111000010100011000010100100001111100000000006223";
data26 = "00000000000000000000000000011100001100000001100000011000000000002431";
data27 = "00000000000000000000000001110000010111000010100000000000000000005421";
data28 = "00000000000000000000000000011000000100100011010000001100000000002531";
data29 = "00000000000000000000000000011000001100000001110000011000000000002431";
data30 = "00000000000000000011111001101010001011100000000000001000000000004602";
data31 = "00000000000000000001100000010010000111000001100000000000000000006321";
data32 = "00000000000000000011110000100100001100000010000000001000000000004601";
data33 = "00000000001010000110110000100000001001000001010000001100000000001232";
data34 = "00000000000100000010010000000110001110000010001001111000000000001633";
data35 = "00000000001110000001110001110000001000100001110000110100000000006423";
data36 = "00000000000000000001000000011000000101000010011000111100000000006522";
data37 = "00000000000000100001010001000110001110000001001001100000000000006112";
data38 = "00000000000010000001110000111100011101000010011001101000000000006523";
data39 = "00000000000010001001100011001100111011110011100000011100000000004113";
data40 = "00000000001101000111111100010010001001000001000000111100000000001233";
data41 = "00000000000000100010011000010100000010100010001000001100000000006112";
data42 = "00000000000000000010010001101110000110000111010000001000000000006322";
data43 = "00000000000000000000101000011010000010100011110000000000000000002531";
data44 = "00000000000000000001000000110110011111100110110000001000000000003212";
data45 = "00000000000000000001000000111000001101000001100000000000000000003211";
data46 = "00000000000100000011000000101010011011000111110000111000000000006323";
data47 = "00000000001110000110011001111100001001000111000000000100000000005603";
data48 = "00000000000000000011000000111100001011000001000000001000000000004601";
data49 = "00000000000000000011111101001000000111000100011000000000000000007222";
data50 = "00000000000000000110101101001000000100000011101000010010000000007222";
data51 = "00000000000000000000000001111100001110000001000000100100000000003502";
data52 = "00000000000000000010010000010110010001000010110000010100000000006322";
data53 = "00000000000000000011101100000010001000100010001011110110000000000633";
data54 = "00000000010110000000011000100010101000100100010001100010001010000433";
data55 = "00000000000001000010100001111000000010000001111000011110000000005112";
data56 = "00000000001101100000111001101010000100110011001000000110000000007423";
data57 = "00000000000010000001011000111000000100000010101001001110011000104113";
data58 = "00000000000000000010100000010100000011000010011000000000000000006521";
data59 = "00000000000000000000000000011100000111000111111000011100000000001531";
data60 = "00000000000000000000000000000000000110000111010000101110000000001531";
data61 = "00000000011100000111000001011110100011010111001000000110000000000433";
data62 = "00000000000010000110100011001111101100001111100000010110000000004113";
data63 = "00000000001101000010011001001110010100011110011000011000000110007423";
data64 = "00000000000000000010001000100010001111000011100000010000000000003602";
data65 = "00000000000000000010100001011010110110000111010001000010000000000433";
data66 = "00000000000000000000010000101110010111000101100001100000000011006323";
data67 = "00000000000000000000100001111100011101100111010000000000000000006422";
data68 = "00000000000110000011110011011011010110100011110000110100000000007323";
data69 = "00000000000000000010010000111000001100000001011000100100000000006522";
data70 = "00000000000000000001100000111100011111100011110000011000000000006422";
data71 = "00000000000000000000000000000100001011000001110000011000000000005311";
data72 = "00000000000000000100100000011100001010000110010000100000000000002601";
data73 = "00000000000000000000110000000010001000100011110000010000000000003601";
data74 = "00000000000000000001100000000100001001000110110000110000001001001532";
data75 = "00000000000000000000000001011100000100100011010001001000000000006422";
data76 = "00000000000000000010010000111000000100000110110000000000000000001531";
data77 = "00000000000000000000100000000110000101000011011000011100000011002532";
data78 = "00000000000000000000000000001000000111000011110000001100000000004311";
data79 = "00000000000000000010011001000011010101000000101000100100000000007322";
data80 = "00000000000000000001010000101010011111110101010010101010000000007423";
data81 = "00000000000000000000000000111010011100100001010000011000000000001432";
data82 = "00000000000001000000110000111000001101100110101000000110000000001532";
data83 = "00000000001110000111110001000100110001000110111000111000000000006523";
data84 = "00000000000000000001001000100010000001100110100000111010000000001532";
data85 = "00000000000000000111000001100010011010000010110000010100000000006322";
data86 = "00000000000000000001111000100000111100110011100000010111000000000433";
data87 = "00000000011100100001011001111000101010100001010000001000000000000433";
data88 = "00000000000000000101110000001001111111100000100010000010000000007323";
data89 = "00000000001001000010000100100010011101000000101100010001001001001433";
data90 = "00000000000000000011100000100110011100110011011000111000000000001433";
data91 = "00000000000000000000000011110110101001101001111100000010000000007523";
data92 = "00000000010111001001100011101010110000001101100001000100001000006323";
data93 = "00000000000000000010110000011100101010000010101001110100011000006523";
data94 = "00000000000000000111101000111010000111100010000000000000000000001232";
data95 = "00000000001000000111011101000101010001100011110000000100000000002113";
data96 = "00000000011110000010000010100000000001000011010001110010000011100333";
data97 = "00000000000000000011101001110000011000000111000000111100000000006222";
data98 = "00000000001000000101110001101100001001011010001001010011000000000533";
data99 = "00000000000001000000111000011100001110000111000001100000000000006222";
mapdata_max = 100;
xmax = 8;
ymax = 8;
cel_w = 60;
cel_h = 48;
cel_ox = 30;
cel_oy = 28;
cel_exist = new Array(64);
level = 0;
stage = 0;
map_no = Math.floor(Math.random() * mapdata_max);
maplist = new Array(mapdata_max);
list_c = new Array(4);
used = new Array(mapdata_max);
i = 0;
while (i < mapdata_max) {
used[i] = 0;
i++;
}
chara_x = 0;
chara_y = 0;
chara_dir = 0;
chara_nx = 0;
chara_ny = 0;
jump_ok = 0;
jump_c = 0;
jump_c_max = 0;
jump_h = 0;
jump_dt = 0;
jump_div = [1, 4, 6, 8, 10, 12, 13, 14];
jump_h = [1, 16, 24, 40, 50, 60, 70, 80];
curs_pos = 0;
sndJump = new Sound();
sndJump.attachSound("jump.wav");
sndLand = new Sound();
sndLand.attachSound("powan.wav");
Frame 6
function start_game() {
stage = 1;
i = 1;
while (i < 4) {
list_c[i] = 0;
i++;
}
i = 0;
while (i < mapdata_max) {
var data = eval ("data" + i);
var lev = Number(data.charAt(67));
if (used[i] == 0) {
list_c[lev]++;
}
i++;
}
var f = 0;
i = 1;
while (i < 4) {
if (list_c[i] < 5) {
f = 1;
}
i++;
}
if (f) {
i = 0;
while (i < mapdata_max) {
used[i] = 0;
i++;
}
}
start_stage();
}
function start_stage() {
level = 1;
if (stage >= 4) {
level = 2;
}
if (stage >= 7) {
level = 3;
}
var c = 0;
i = 0;
while (i < mapdata_max) {
var data = eval ("data" + i);
var lev = Number(data.charAt(67));
if (used[i]) {
} else if (lev != level) {
} else {
maplist[c] = i;
c++;
}
i++;
}
var r = Math.floor(Math.random() * c);
map_no = maplist[r];
used[map_no] = 1;
gotoAndPlay ("start");
}
function put_chara(x, y, dir) {
chara_x = x;
chara_y = y;
chara_dir = dir;
mcChara._x = cel_ox + (x * cel_w);
mcChara._y = cel_oy + (y * cel_h);
mcChara.gotoAndStop(1 + (dir * 4));
mcShade._x = mcChara._x;
mcShade._y = mcChara._y;
}
function check_back(dir) {
var _local1 = 0;
switch (dir) {
case 0 :
_local1 = 1;
break;
case 1 :
_local1 = 0;
break;
case 2 :
_local1 = 3;
break;
case 3 :
_local1 = 2;
}
if (chara_dir == _local1) {
return(1);
}
return(0);
}
function start_jump(dir) {
if (jump_ok == 0) {
return(undefined);
}
if (check_back(dir)) {
return(undefined);
}
var ax = 1;
var ay = 1;
switch (dir) {
case 0 :
ax = 0;
ay = -1;
break;
case 1 :
ax = 0;
ay = 1;
break;
case 2 :
ax = -1;
ay = 0;
break;
default :
ax = 1;
ay = 0;
}
var x = chara_x;
var y = chara_y;
do {
x = x + ax;
y = y + ay;
if ((((x < 0) || (x >= xmax)) || (y < 0)) || (y >= ymax)) {
return(undefined);
}
} while (!cel_exist[(y * xmax) + x]);
sndJump.start();
mc = eval (("mcStep" + chara_y) + chara_x);
mc.gotoAndPlay(2);
cel_exist[(chara_y * xmax) + chara_x] = 0;
mcHamon._visible = true;
mcHamon._x = mc._x;
mcHamon._y = mc._y;
mcHamon.gotoAndPlay(2);
chara_dir = dir;
chara_nx = x;
chara_ny = y;
jump_ok = 0;
jump_dt = Math.abs(x - chara_x) + Math.abs(y - chara_y);
jump_c = 0;
jump_c_max = jump_div[jump_dt];
gotoAndPlay ("jump");
}
function restart() {
gotoAndPlay ("start");
}
function after_clear() {
if (stage >= 10) {
gotoAndPlay ("ending");
} else {
stage++;
start_stage();
}
}
Frame 10
stop();
minilogo.onRelease = function () {
getURL ("http://www.minijuegos.com");
};
Frame 12
stop();
btReset.onRelease = function () {
btReset._visible = false;
gotoAndPlay ("comienzo");
};
btLink.onRelease = function () {
getURL ("http://www.minijuegos.com");
};
Frame 20
stop();
Frame 21
stop();
Symbol 9 MovieClip Frame 5
stop();
Symbol 12 MovieClip [mcCelOrg] Frame 1
stop();
Symbol 12 MovieClip [mcCelOrg] Frame 2
stop();
delete onPress;
Symbol 12 MovieClip [mcCelOrg] Frame 3
stop();
onPress = function () {
var _local3 = this._name.split("_");
_parent._parent.click_cel(Number(_local3[2]), Number(_local3[1]));
gotoAndStop (4);
};
Symbol 12 MovieClip [mcCelOrg] Frame 4
stop();
delete onPress;
Symbol 33 Button
on (release) {
getURL ("http://www.minijuegos.com", "_blank");
}
Symbol 35 MovieClip Frame 40
stop();
Symbol 41 MovieClip Frame 1
function onEnterFrame() {
if (!loaded) {
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
if (_local3 >= 1) {
play();
bar._x = initX;
loaded = true;
} else {
bar._x = initX + ((_local3 - 1) * bar._width);
}
}
var _local4 = getTimer() - time;
timeAccum = timeAccum + _local4;
while (timeAccum >= FRAME_TIME) {
var _local2 = 0;
while (_local2 < timeClips.length) {
if (timeClips[_local2]._currentframe < timeClips[_local2]._totalframes) {
timeClips[_local2].nextFrame();
} else {
timeClips[_local2].gotoAndStop(1);
}
_local2++;
}
if (loaded && (_currentframe < _totalframes)) {
nextFrame();
}
timeAccum = timeAccum - FRAME_TIME;
}
time = time + _local4;
}
stop();
_root.stop();
var initX = bar._x;
var time = getTimer();
var FRAME_TIME = 33.3333333333333;
var timeAccum = 0;
var loaded = false;
timeClips = [bargfx, tank.mc0, tank.mc1, tank.mc2, tank.mc3, tank.mc4, tank.mc4.mc0, tank.mc4.mc1, tank.mc4.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc0.mc2, tank.mc4.mc0.mc0.mc0.mc3, tank.mc4.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc2, tank.mc5.mc0];
var i = 0;
while (i < timeClips.length) {
timeClips[i].stop();
i++;
}
Symbol 41 MovieClip Frame 51
_root.play();
Symbol 54 Button
on (release) {
gotoAndPlay ("comienzo");
}
Symbol 55 Button
on (release) {
getURL ("http://www.minijuegos.com");
}
Symbol 60 MovieClip Frame 1
_visible = false;
Symbol 60 MovieClip Frame 2
stop();
_visible = true;
Symbol 81 Button
on (rollOver) {
this.gotoAndPlay("tres");
}
Symbol 82 Button
on (rollOver) {
this.gotoAndPlay("dos");
}
Symbol 84 Button
on (rollOver) {
this.gotoAndPlay("uno");
}
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 5
stop();
Symbol 97 MovieClip Frame 13
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 8
if (_parent.act == 0) {
_parent._parent.cat_position();
gotoAndStop (1);
} else {
_parent._parent.cat_move();
gotoAndPlay (2);
}
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 8
if (_parent.act == 0) {
_parent._parent.cat_position();
gotoAndStop (1);
} else {
_parent._parent.cat_move();
gotoAndPlay (2);
}
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 8
if (_parent.act == 0) {
_parent._parent.cat_position();
gotoAndStop (1);
} else {
_parent._parent.cat_move();
gotoAndPlay (2);
}
Symbol 125 MovieClip Frame 1
function start_jump(dir) {
gotoAndPlay(2 + (dir * 2));
act = 0;
}
function start_run(dir) {
gotoAndPlay(2 + (dir * 2));
act = 1;
}
stop();
_visible = false;
Symbol 125 MovieClip Frame 3
stop();
mc.gotoAndPlay(2);
Symbol 125 MovieClip Frame 5
stop();
mc.gotoAndPlay(2);
Symbol 125 MovieClip Frame 7
stop();
mc.gotoAndPlay(2);
Symbol 125 MovieClip Frame 9
stop();
mc.gotoAndPlay(2);
Symbol 125 MovieClip Frame 11
stop();
mc.gotoAndPlay(2);
Symbol 125 MovieClip Frame 13
stop();
mc.gotoAndPlay(2);
Symbol 126 MovieClip Frame 1
function cat_position() {
mc = eval ((("mcCelLayer.mc_" + caty) + "_") + catx);
mcCat._x = mc._x;
mcCat._y = mc._y;
mcCat._visible = true;
}
function all_disable() {
var i;
var j;
i = 0;
while (i < ymax) {
j = 0;
while (j < xmax) {
if (cel[i][j].stat == 1) {
var mc = eval ((("mcCelLayer.mc_" + i) + "_") + j);
mc.gotoAndStop(2);
}
j++;
}
i++;
}
}
function all_enable() {
var i;
var j;
i = 0;
while (i < ymax) {
j = 0;
while (j < xmax) {
var mc = eval ((("mcCelLayer.mc_" + i) + "_") + j);
if (cel[i][j].stat == 1) {
if ((j == catx) && (i == caty)) {
mc.gotoAndStop(2);
} else {
mc.gotoAndStop(3);
}
mc._visible = true;
}
if (cel[i][j].stat == 2) {
mc.gotoAndStop(4);
mc._visible = true;
}
j++;
}
i++;
}
}
addx0 = [1, 0, -1, -1, -1, 0];
addy0 = [0, 1, 1, 0, -1, -1];
addx1 = [1, 1, 0, -1, 0, 1];
addy1 = [0, 1, 1, 0, -1, -1];
xmax = 15;
ymax = 15;
cel = new Array();
i = 0;
while (i < ymax) {
cel[i] = new Array();
j = 0;
while (j < xmax) {
cel[i][j] = new Object();
cel[i][j].stat = 0;
cel[i][j].win = 0;
j++;
}
i++;
}
catx = Math.floor(xmax / 2);
caty = Math.floor(ymax / 2);
cel[caty][catx].stat = 1;
lx = new Array();
ly = new Array();
ld = new Array();
lx[0] = catx;
ly[0] = caty;
lmax = 1;
lx2 = new Array();
ly2 = new Array();
i = 2;
while (i < (ymax - 2)) {
j = 2;
while (j < (xmax - 2)) {
cel[i][j].stat = 1;
j++;
}
i++;
}
loop = 0;
while (loop < 20) {
rx = Math.floor(Math.random() * xmax);
ry = Math.floor(Math.random() * ymax);
if ((rx != catx) && (ry != caty)) {
if (cel[ry][rx].stat == 1) {
cel[ry][rx].stat = 2;
}
}
loop++;
}
i = 0;
while (i < ymax) {
j = 0;
while (j < xmax) {
if (cel[i][j].stat != 1) {
} else {
k = 0;
while (k < 6) {
var nx = ((i % 2) ? (j + addx1[k]) : (j + addx0[k]));
var ny = (i + addy0[k]);
if (cel[ny][nx].stat == 0) {
cel[i][j].win = 1;
}
k++;
}
}
j++;
}
i++;
}
w = 34;
h = 26;
opx = ((-(xmax - 1)) * w) / 2;
opy = ((-(ymax - 1)) * h) / 2;
c = 0;
i = 0;
while (i < ymax) {
j = 0;
while (j < xmax) {
mcName = (("mc_" + i) + "_") + j;
mcCelLayer.attachMovie("mcCelOrg", mcName, c);
mc = eval ("mcCelLayer." + mcName);
mc._x = opx + (j * w);
if (i % 2) {
mc._x = mc._x + (w / 4);
} else {
mc._x = mc._x - (w / 4);
}
mc._y = opy + (i * h);
mc._visible = false;
c++;
j++;
}
i++;
}
Symbol 126 MovieClip Frame 5
function click_cel(cx, cy) {
cel[cy][cx].stat = 2;
gotoAndPlay ("cat");
all_disable();
}
stop();
cat_position();
all_enable();
Symbol 126 MovieClip Frame 11
function go_out() {
var _local1;
var _local4 = catx;
var _local5 = caty;
_local1 = 0;
while (_local1 < 6) {
var _local2 = ((_local5 % 2) ? (_local4 + addx1[_local1]) : (_local4 + addx0[_local1]));
var _local3 = _local5 + addy0[_local1];
if (cel[_local3][_local2].stat == 0) {
catx = _local2;
caty = _local3;
catdir = _local1;
return(1);
}
_local1++;
}
return(0);
}
function goto_win() {
var _local4 = catx;
var _local5 = caty;
var _local1 = 0;
while (_local1 < 6) {
var _local2 = ((_local5 % 2) ? (_local4 + addx1[_local1]) : (_local4 + addx0[_local1]));
var _local3 = _local5 + addy0[_local1];
if (cel[_local3][_local2].stat != 1) {
} else if (cel[_local3][_local2].win) {
catx = _local2;
caty = _local3;
catdir = _local1;
return(1);
}
_local1++;
}
return(0);
}
function get_nearest() {
var _local8;
var _local7;
var _local6;
var _local3;
var _local11;
cel[caty][catx].po = 0;
lx[0] = catx;
ly[0] = caty;
var _local12 = 1;
var _local9 = 999;
po = 1;
while (po < 200) {
_local3 = 0;
_local8 = 0;
while (_local8 < _local12) {
var _local4 = lx[_local8];
var _local5 = ly[_local8];
_local6 = 0;
while (_local6 < 6) {
var _local1 = ((_local5 % 2) ? (_local4 + addx1[_local6]) : (_local4 + addx0[_local6]));
var _local2 = _local5 + addy0[_local6];
if (cel[_local2][_local1].stat != 1) {
} else if (cel[_local2][_local1].po >= 0) {
} else {
cel[_local2][_local1].po = po;
lx2[_local3] = _local1;
ly2[_local3] = _local2;
_local3++;
if (cel[_local2][_local1].win && (po < _local9)) {
_local9 = po;
}
}
_local6++;
}
_local8++;
}
if (_local3 == 0) {
break;
}
_local8 = 0;
while (_local8 < _local3) {
lx[_local8] = lx2[_local8];
ly[_local8] = ly2[_local8];
_local8++;
}
_local12 = _local3;
po++;
}
if (_local9 == 999) {
return(0);
}
_local3 = 0;
_local8 = 0;
while (_local8 < ymax) {
_local7 = 0;
while (_local7 < xmax) {
if ((cel[_local8][_local7].po == _local9) && (cel[_local8][_local7].win)) {
lx[_local3] = _local7;
ly[_local3] = _local8;
_local3++;
}
_local7++;
}
_local8++;
}
if (_local3 == 0) {
return(0);
}
_local11 = Math.floor(Math.random() * _local3);
var _local4 = lx[_local11];
var _local5 = ly[_local11];
var _local10 = 0;
while (_local10 < 200) {
_local3 = 0;
_local6 = 0;
while (_local6 < 6) {
var _local1 = ((_local5 % 2) ? (_local4 + addx1[_local6]) : (_local4 + addx0[_local6]));
var _local2 = _local5 + addy0[_local6];
if (cel[_local2][_local1].stat != 1) {
} else if (cel[_local2][_local1].po >= cel[_local5][_local4].po) {
} else {
lx[_local3] = _local1;
ly[_local3] = _local2;
ld[_local3] = _local6;
_local3++;
}
_local6++;
}
if (_local3 == 0) {
return(0);
}
_local11 = Math.floor(Math.random() * _local3);
_local4 = lx[_local11];
_local5 = ly[_local11];
if (cel[_local5][_local4].po == 1) {
catx = _local4;
caty = _local5;
catdir = 0;
_local6 = 0;
while (_local6 < 6) {
var _local1 = ((_local5 % 2) ? (_local4 + addx1[_local6]) : (_local4 + addx0[_local6]));
var _local2 = _local5 + addy0[_local6];
if (cel[_local2][_local1].po == 0) {
catdir = (_local6 + 3) % 6;
}
_local6++;
}
return(1);
}
_local10++;
}
return(0);
}
function rand_move() {
var _local5 = catx;
var _local6 = caty;
var _local2 = 0;
var _local1 = 0;
while (_local1 < 6) {
var _local3 = ((_local6 % 2) ? (_local5 + addx1[_local1]) : (_local5 + addx0[_local1]));
var _local4 = _local6 + addy0[_local1];
if (cel[_local4][_local3].stat != 1) {
} else {
lx[_local2] = _local3;
ly[_local2] = _local4;
ld[_local2] = _local1;
_local2++;
}
_local1++;
}
if (_local2 == 0) {
return(0);
}
var _local7 = Math.floor(Math.random() * _local2);
catx = lx[_local7];
caty = ly[_local7];
catdir = ld[_local7];
return(1);
}
Symbol 126 MovieClip Frame 12
i = 0;
while (i < ymax) {
j = 0;
while (j < xmax) {
cel[i][j].reach = 0;
cel[i][j].po = -1;
j++;
}
i++;
}
i = 0;
while (i < ymax) {
j = 0;
while (j < xmax) {
if (cel[i][j].stat != 1) {
} else {
k = 0;
while (k < 6) {
var nx = ((i % 2) ? (j + addx1[k]) : (j + addx0[k]));
var ny = (i + addy0[k]);
if (cel[ny][nx].win) {
cel[i][j].reach++;
}
k++;
}
}
j++;
}
i++;
}
f = 0;
if (go_out() == 0) {
if (goto_win() == 0) {
if (get_nearest() == 0) {
if (rand_move() == 0) {
f = 1;
}
}
}
}
if (f) {
gotoAndStop ("over");
} else {
mcCat.start_jump(catdir);
}
Symbol 126 MovieClip Frame 19
if (cel[caty][catx].stat == 0) {
gotoAndStop ("run");
} else {
gotoAndStop ("wait");
}
Symbol 126 MovieClip Frame 21
function cat_move() {
var _local1 = 34;
var _local2 = 26;
var _local3 = [1, 0.5, -0.5, -1, -0.5, 0.5];
var _local4 = [0, 1, 1, 0, -1, -1];
mcCat._x = mcCat._x + (_local1 * _local3[catdir]);
mcCat._y = mcCat._y + (_local2 * _local4[catdir]);
}
stop();
mcCat.start_run(catdir);
cnt = 0;
onEnterFrame = function () {
cnt++;
if (cnt > 50) {
delete onEnterFrame;
_parent.mcFade.start_fadeout();
_parent.gotoAndPlay("finpierde");
}
};
Symbol 126 MovieClip Frame 27
stop();
mcCat.mc.gotoAndStop(2);
cnt = 0;
onEnterFrame = function () {
cnt++;
if (cnt > 50) {
delete onEnterFrame;
_parent.mcFade.start_fadeout();
_parent.gotoAndPlay("fin");
}
};
Symbol 132 MovieClip Frame 1
function start_fadeout() {
_alpha = 0;
onEnterFrame = function () {
_alpha = (_alpha + 4);
if (_alpha >= 100) {
delete onEnterFrame;
_parent.gotoAndPlay("prin");
}
};
}
_alpha = 100;
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
delete onEnterFrame;
}
};
Symbol 134 MovieClip Frame 163
_root.gotoAndPlay("prin");
Symbol 136 MovieClip Frame 163
_root.gotoAndPlay("prin");