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 9
this.stop();
Frame 17
mapdata = eval ("data" + map_no);
jump_ok = 0;
c = 0;
i = 0;
while (i < 8) {
j = 0;
while (j < 8) {
mc = eval (("mcStep" + i) + j);
mc._x = cel_ox + (cel_w * j);
mc._y = cel_oy + (cel_h * i);
mc._visible = ((mapdata.charAt(c) == "1") ? true : false);
mc.gotoAndStop(1);
cel_exist[c] = ((mapdata.charAt(c) == "1") ? 1 : 0);
c++;
j++;
}
i++;
}
chara_x = Number(mapdata.charAt(c));
c++;
chara_y = Number(mapdata.charAt(c));
c++;
chara_dir = Number(mapdata.charAt(c));
c++;
put_chara(chara_x, chara_y, chara_dir);
stage_txt = ("STAGE " + stage) + "/10";
Instance of Symbol 40 MovieClip "mcChara" in Frame 17
/* no clip actions */
Frame 23
jump_ok = 1;
c = 0;
i = 0;
while (i < ymax) {
j = 0;
while (j < xmax) {
mc = eval (("mcStep" + i) + j);
if (mc._visible) {
c++;
}
j++;
}
i++;
}
if (c <= 1) {
gotoAndStop ("clear");
}
Frame 24
gotoAndPlay(_currentframe - 1);
Frame 28
jump_c++;
if (jump_c >= jump_c_max) {
sndLand.start();
mc = eval (("mcStep" + chara_ny) + chara_nx);
mcHamon2._visible = true;
mcHamon2._x = mc._x;
mcHamon2._y = mc._y;
mcHamon2.gotoAndPlay(2);
put_chara(chara_nx, chara_ny, chara_dir);
gotoAndPlay ("wait");
mcChara.gotoAndStop(1 + (chara_dir * 4));
} else {
ox = cel_ox + (chara_x * cel_w);
oy = cel_oy + (chara_y * cel_h);
dx = (chara_nx - chara_x) * cel_w;
dy = (chara_ny - chara_y) * cel_h;
x = ox + ((dx * jump_c) / jump_c_max);
y = oy + ((dy * jump_c) / jump_c_max);
mcShade._x = x;
mcShade._y = y;
y = y - ((jump_h[jump_dt] * 2) * Math.sin((Math.PI * jump_c) / jump_c_max));
mcChara._x = x;
mcChara._y = y;
if (jump_c <= (jump_c_max / 2)) {
mcChara.gotoAndStop((1 + (chara_dir * 4)) + 1);
} else {
mcChara.gotoAndStop((1 + (chara_dir * 4)) + 2);
}
}
Frame 29
gotoAndPlay(_currentframe - 1);
Frame 34
this.stop();
Frame 39
gotoAndStop ("error");
Frame 41
chara_x = 4;
chara_y = 5;
chara_dir = 2;
put_chara(chara_x, chara_y, chara_dir);
c = 0;
i = 0;
while (i < 8) {
j = 0;
while (j < 8) {
mc = eval (("mcStep" + i) + j);
mc._x = cel_ox + (cel_w * j);
mc._y = cel_oy + (cel_h * i);
mc._visible = (((i == chara_y) && (j == chara_x)) ? true : false);
mc.gotoAndStop(1);
c++;
j++;
}
i++;
}
cnt = 150;
mcBlack._alpha = cnt;
Frame 42
cnt = cnt - 3;
mcBlack._alpha = cnt;
Frame 43
if (cnt >= -100) {
gotoAndPlay(_currentframe - 1);
}
Frame 44
this.stop();
Frame 45
mc = eval (("mcStep" + chara_y) + chara_x);
mc.gotoAndPlay(2);
mcHamon._visible = true;
mcHamon._x = mc._x;
mcHamon._y = mc._y;
mcHamon.gotoAndPlay(2);
chara_dir = 0;
chara_nx = chara_x;
chara_ny = chara_y - 2;
jump_ok = 0;
jump_dt = 2;
jump_c = 0;
jump_c_max = jump_div[jump_dt];
Frame 46
jump_c++;
if (jump_c >= jump_c_max) {
mc = eval (("mcStep" + chara_ny) + chara_nx);
mcHamon2._visible = true;
mcHamon2._x = mc._x;
mcHamon2._y = mc._y;
mcHamon2.gotoAndPlay(2);
mcChara._x = cel_ox + (chara_nx * cel_w);
mcChara._y = cel_oy + (chara_ny * cel_h);
mcChara.gotoAndPlay("fall");
mcShade._visible = false;
gotoAndPlay(_currentframe + 2);
} else {
ox = cel_ox + (chara_x * cel_w);
oy = cel_oy + (chara_y * cel_h);
dx = (chara_nx - chara_x) * cel_w;
dy = (chara_ny - chara_y) * cel_h;
x = ox + ((dx * jump_c) / jump_c_max);
y = oy + ((dy * jump_c) / jump_c_max);
mcShade._x = x;
mcShade._y = y;
y = y - ((jump_h[jump_dt] * 2) * Math.sin((Math.PI * jump_c) / jump_c_max));
mcChara._x = x;
mcChara._y = y;
if (jump_c <= (jump_c_max / 2)) {
mcChara.gotoAndStop((1 + (chara_dir * 4)) + 1);
} else {
mcChara.gotoAndStop((1 + (chara_dir * 4)) + 2);
}
}
Frame 47
gotoAndPlay(_currentframe - 1);
Frame 48
this.stop();
Frame 52
gotoAndStop ("error");
Symbol 8 Button
on (press) {
getURL ("http://www.gamedesign.jp/");
}
Symbol 12 Button
on (keyPress "<Enter>") {
start_game();
}
on (release) {
start_game();
}
Symbol 19 MovieClip Frame 1
this.stop();
Symbol 19 MovieClip Frame 21
this._visible = false;
Symbol 21 MovieClip Frame 1
this.stop();
Symbol 21 MovieClip Frame 16
this._visible = false;
Symbol 40 MovieClip Frame 1
this.stop();
Symbol 40 MovieClip Frame 74
this.stop();
Symbol 44 Button
on (keyPress "<Enter>") {
restart();
}
on (release) {
restart();
}
Symbol 49 Button
on (release) {
gotoAndStop ("menu");
}
on (keyPress "<Delete>") {
gotoAndStop ("menu");
}
Symbol 52 Button
on (keyPress "<Up>") {
start_jump(0);
}
on (keyPress "<Down>") {
start_jump(1);
}
on (keyPress "<Left>") {
start_jump(2);
}
on (keyPress "<Right>") {
start_jump(3);
}
Symbol 55 Button
on (keyPress "<Enter>") {
after_clear();
}
on (release) {
after_clear();
}
Symbol 62 MovieClip Frame 11
this.stop();
_parent.play();
Symbol 66 Button
on (keyPress "<Enter>") {
getURL ("http://www.gamedesign.jp/");
}
on (release) {
getURL ("http://www.gamedesign.jp/");
}