Frame 1
stop();
Symbol 3 Button
on (press) {
var a = this._name.split("_");
_parent._parent.click_cel(Number(a[1]), Number(a[2]));
}
Symbol 4 MovieClip [mcCelOrg] Frame 1
stop();
Symbol 4 MovieClip [mcCelOrg] Frame 2
stop();
Symbol 8 MovieClip Frame 1
_visible = false;
Symbol 14 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 1
stop();
n = Number(this._name.slice(2));
mcPat.gotoAndStop(n);
t = ["", "Reset", "Top Page", "Chinese"];
tf.text = t[n];
btn.onRelease = function () {
_parent.click_link(n);
};
Symbol 37 MovieClip Frame 1
function draw_line(cx1, cy1, cx2, cy2, curve) {
var _local9 = cel[cy1][cx1].px;
var _local8 = cel[cy1][cx1].py;
var _local6 = cel[cy2][cx2].px;
var _local5 = cel[cy2][cx2].py;
mcLineLayer.lineStyle(2, 13167487, 100);
mcLineLayer.moveTo(_local9, _local8);
if (curve) {
var _local7 = cel[cy1][cx2].px;
var _local10 = cel[cy1][cx2].py;
mcLineLayer.curveTo(_local7, _local10, _local6, _local5);
} else {
mcLineLayer.lineTo(_local6, _local5);
}
cel[cy1][cx1].cone[cel[cy1][cx1].cc] = (cy2 * xmax) + cx2;
cel[cy1][cx1].cc++;
cel[cy2][cx2].cone[cel[cy2][cx2].cc] = (cy1 * xmax) + cx1;
cel[cy2][cx2].cc++;
}
xmax = 4;
ymax = 4;
cel_size = 80;
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].cone = new Array();
cel[i][j].cc = 0;
cel[i][j].px = (320 + (j * cel_size)) - (i * cel_size);
cel[i][j].py = (120 + ((j * cel_size) / 2)) + ((i * cel_size) / 2);
cel[i][j].danger = 0;
j++;
}
i++;
}
cel[2][3].danger = 1;
cel[3][2].danger = 1;
c = 0;
i = 0;
while (i < ymax) {
j = 0;
while (j < xmax) {
if ((i + j) >= 6) {
} else {
mcname = (("mc_" + j) + "_") + i;
mcCelLayer.attachMovie("mcCelOrg", mcname, c++);
mc = eval ("mcCelLayer." + mcname);
mc._x = cel[i][j].px;
mc._y = cel[i][j].py;
}
j++;
}
i++;
}
i = 0;
while (i < ymax) {
j = 0;
while (j < xmax) {
if ((i + j) >= 5) {
} else {
if (j < (xmax - 1)) {
draw_line(j, i, j + 1, i, false);
}
if (i < (ymax - 1)) {
draw_line(j, i, j, i + 1, false);
}
}
j++;
}
i++;
}
draw_line(2, 3, 3, 2, true);
Symbol 37 MovieClip Frame 4
function set_person(n, dir, cx, cy) {
var mc = eval ("mcPerson" + n);
mc._visible = true;
mc.gotoAndStop((1 + (n * 4)) + dir);
mc.cx = cx;
mc.cy = cy;
var mcs = eval ("mcShadow" + n);
mcs.gotoAndStop(1 + dir);
mc._x = (mcs._x = cel[cy][cx].px);
mc._y = (mcs._y = cel[cy][cx].py);
}
function start_move(n, nx, ny) {
who = n;
var mc = eval ("mcPerson" + n);
mc.nx = nx;
mc.ny = ny;
gotoAndStop ("move");
}
set_person(0, 1, 0, 0);
set_person(1, 0, 1, 3);
Symbol 37 MovieClip Frame 7
function click_cel(cx, cy) {
var i = 0;
while (i < ymax) {
var j = 0;
while (j < xmax) {
var mc = eval ((("mcCelLayer.mc_" + j) + "_") + i);
mc.gotoAndStop(1);
j++;
}
i++;
}
start_move(0, cx, cy);
}
stop();
cx = mcPerson0.cx;
cy = mcPerson0.cy;
i = 0;
while (i < cel[cy][cx].cc) {
n = cel[cy][cx].cone[i];
nx = Math.floor(n % xmax);
ny = Math.floor(n / xmax);
var mc = eval ((("mcCelLayer.mc_" + nx) + "_") + ny);
mc.gotoAndStop(2);
i++;
}
Symbol 37 MovieClip Frame 13
stop();
cx = mcPerson1.cx;
cy = mcPerson1.cy;
i = 0;
while (i < ymax) {
j = 0;
while (j < xmax) {
cel[i][j].pt = 100 + (Math.random() * 10);
if (cel[i][j].danger) {
cel[i][j].pt = 90;
if (cel[cy][cx].danger) {
cel[i][j].pt = 80;
}
}
j++;
}
i++;
}
ex = mcPerson0.cx;
ey = mcPerson0.cy;
cel[ey][ex].pt = 1;
i = 0;
while (i < cel[ey][ex].cc) {
n = cel[ey][ex].cone[i];
nx = Math.floor(n % xmax);
ny = Math.floor(n / ymax);
cel[ny][nx].pt = 2 + (Math.random() * 10);
i++;
}
dx = 0;
dy = 0;
max = -1;
i = 0;
while (i < cel[cy][cx].cc) {
n = cel[cy][cx].cone[i];
nx = Math.floor(n % xmax);
ny = Math.floor(n / ymax);
if (cel[ny][nx].pt > max) {
max = cel[ny][nx].pt;
dx = nx;
dy = ny;
}
i++;
}
start_move(1, dx, dy);
Symbol 37 MovieClip Frame 20
stop();
cnt = 0;
cmax = 8;
mc = eval ("mcPerson" + who);
mc.ox = mc._x;
mc.oy = mc._y;
mc.dx = cel[mc.ny][mc.nx].px;
mc.dy = cel[mc.ny][mc.nx].py;
if (mc.dy > mc.oy) {
if (mc.dx > mc.ox) {
dir = 0;
} else {
dir = 1;
}
} else if (mc.dx > mc.ox) {
dir = 3;
} else {
dir = 2;
}
mc.gotoAndStop((1 + (who * 4)) + dir);
if (mcPerson0._y < mcPerson1._y) {
if (mcPerson0.getDepth() > mcPerson1.getDepth()) {
mcPerson0.swapDepths(mcPerson1);
}
} else if (mcPerson0.getDepth() < mcPerson1.getDepth()) {
mcPerson0.swapDepths(mcPerson1);
}
mcs = eval ("mcShadow" + who);
mcs.gotoAndStop(1 + dir);
onEnterFrame = function () {
var mc = eval ("mcPerson" + who);
var mcs = eval ("mcShadow" + who);
var px = (mc.ox + (((mc.dx - mc.ox) * cnt) / cmax));
var py = (mc.oy + (((mc.dy - mc.oy) * cnt) / cmax));
(-Math.sin((Math.PI * cnt) / cmax)) * 50;
mc._x = px;
mc._y = py - (Math.sin((Math.PI * cnt) / cmax) * 50);
mcs._x = px;
mcs._y = py;
cnt++;
if (cnt > cmax) {
delete onEnterFrame;
set_person(who, dir, mc.nx, mc.ny);
if ((mcPerson0.cx == mcPerson1.cx) && (mcPerson0.cy == mcPerson1.cy)) {
gotoAndStop ("catch");
} else if (who == 0) {
gotoAndStop ("com");
} else {
gotoAndStop ("user");
}
}
};
Symbol 37 MovieClip Frame 26
function start_run(n) {
var mc = eval ("mcPerson" + n);
mc.run = 1;
mc.ox = mc._x;
mc.oy = mc._y;
mc.dx = mc._x + (addx[dir] * cel_size);
mc.dy = mc._y + ((addy[dir] * cel_size) / 2);
mc.cnt = 0;
mc.gotoAndStop((1 + (n * 4)) + dir);
}
function running(n) {
var mc = eval ("mcPerson" + n);
var mcs = eval ("mcShadow" + n);
if (mc.run == 0) {
return(undefined);
}
var px = (mc.ox + (((mc.dx - mc.ox) * mc.cnt) / cmax));
var py = (mc.oy + (((mc.dy - mc.oy) * mc.cnt) / cmax));
(-Math.sin((Math.PI * mc.cnt) / cmax)) * 50;
mc._x = px;
mc._y = py - (Math.sin((Math.PI * mc.cnt) / cmax) * 50);
mcs._x = px;
mcs._y = py;
mc.cnt++;
if (mc.cnt > cmax) {
mc.ox = mc._x;
mc.oy = mc._y;
mc.dx = mc._x + (addx[dir] * cel_size);
mc.dy = mc._y + ((addy[dir] * cel_size) / 2);
mc.cnt = 0;
}
}
stop();
addx = [1, -1, -1, 1];
addy = [1, 1, -1, -1];
pix = 12;
mcPerson0._x = mcPerson0._x - (addx[dir] * pix);
mcPerson0._y = mcPerson0._y - ((addy[dir] * pix) / 2);
mcPerson1._x = mcPerson1._x + (addx[dir] * pix);
mcPerson1._y = mcPerson1._y + ((addy[dir] * pix) / 2);
mcPerson0.run = 0;
mcPerson1.run = 0;
stat = 0;
ot = getTimer();
onEnterFrame = function () {
var _local1 = getTimer();
switch (stat) {
case 0 :
if (_local1 > (ot + 3000)) {
ot = _local1;
start_run(1);
stat++;
}
break;
case 1 :
if (_local1 > (ot + 500)) {
ot = _local1;
start_run(0);
stat++;
}
break;
case 2 :
if (_local1 > (ot + 3000)) {
delete onEnterFrame;
gotoAndStop ("end");
}
break;
}
running(0);
running(1);
};
Symbol 37 MovieClip Frame 34
stop();
mcScreen._alpha = 0;
onEnterFrame = function () {
mcScreen._alpha = mcScreen._alpha + 3;
if (mcScreen._alpha >= 100) {
delete onEnterFrame;
gotoAndStop ("link");
}
};
Symbol 37 MovieClip Frame 41
function click_link(n) {
switch (n) {
case 1 :
gotoAndPlay (1);
break;
case 2 :
getURL ("http://www.gamedesign.jp/");
}
}
stop();
Symbol 42 Button
on (release) {
getURL ("http://www.gamedesign.jp/");
}