Frame 2
stop();
Symbol 10 MovieClip Frame 1
stop();
Symbol 10 MovieClip Frame 3
stop();
Symbol 10 MovieClip Frame 5
stop();
Symbol 10 MovieClip Frame 7
stop();
Symbol 10 MovieClip Frame 9
stop();
Symbol 10 MovieClip Frame 11
stop();
Symbol 32 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 3
stop();
Symbol 37 MovieClip Frame 5
stop();
Symbol 37 MovieClip Frame 7
stop();
Symbol 37 MovieClip Frame 9
stop();
Symbol 37 MovieClip Frame 11
stop();
Symbol 47 MovieClip Frame 1
stop();
pat = 1;
Symbol 47 MovieClip Frame 2
play();
list.pat = pat;
list.gotoAndStop(pat);
Symbol 47 MovieClip Frame 52
pat2 = (pat = pat + 1);
if (pat2 > _parent.stagemax) {
pat2 = 1;
}
list2.pat2 = pat2;
list2.gotoAndStop(pat2);
Symbol 47 MovieClip Frame 57
stop();
_parent.smode = 2;
pat = pat2;
sky.play();
ground.play();
Symbol 52 MovieClip Frame 1
_parent.ax = -1;
Symbol 52 MovieClip Frame 6
_parent.ax = 0;
Symbol 52 MovieClip Frame 8
_parent.ax = 1;
Symbol 52 MovieClip Frame 13
_parent.ax = 0;
Symbol 62 MovieClip Frame 1
_parent.ax = 1;
Symbol 62 MovieClip Frame 7
_parent.ax = 0;
Symbol 62 MovieClip Frame 8
_parent.ax = -1;
Symbol 62 MovieClip Frame 14
_parent.ax = 0;
Symbol 66 MovieClip Frame 1
_parent.ax = -1;
Symbol 66 MovieClip Frame 3
_parent.ax = -0.5;
Symbol 66 MovieClip Frame 5
_parent.ax = 0;
Symbol 66 MovieClip Frame 8
_parent.ax = 1;
Symbol 66 MovieClip Frame 10
_parent.ax = 0.5;
Symbol 66 MovieClip Frame 12
_parent.ax = 0;
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 3
stop();
mc.stop();
Symbol 78 MovieClip Frame 8
stop();
mc.stop();
Symbol 78 MovieClip Frame 14
stop();
mc.stop();
Symbol 78 MovieClip Frame 21
stop();
mc.stop();
Symbol 78 MovieClip Frame 27
stop();
mc.stop();
Symbol 78 MovieClip Frame 33
stop();
mc.stop();
Symbol 90 MovieClip Frame 7
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 4
stop();
Symbol 91 MovieClip Frame 7
gotoAndStop (1);
Symbol 91 MovieClip Frame 14
play();
Symbol 91 MovieClip Frame 18
cnt++;
if (cnt < 2) {
gotoAndPlay ("slip");
} else if (random(2) < 1) {
_parent.stat = 0;
gotoAndStop ("wait");
} else {
_parent.stat = 3;
gotoAndStop ("down");
}
Symbol 91 MovieClip Frame 20
play();
Symbol 91 MovieClip Frame 24
cnt++;
if (cnt < 2) {
gotoAndPlay ("slip2");
} else if (random(2) < 1) {
_parent.stat = 0;
gotoAndStop ("wait");
} else {
_parent.stat = 3;
gotoAndStop ("down2");
}
Symbol 92 MovieClip Frame 1
stop();
onEnterFrame = function () {
_y = (_y + 2);
if (_y > 80) {
_y = -10;
_x = Math.floor(Math.random() * 74);
if (_parent.snow == 0) {
_x = 81;
}
}
};
Symbol 114 MovieClip Frame 30
stop();
btRetry.onRelease = function () {
_parent._parent.play();
};
btToppage.onRelease = function () {
getURL ("http://www.gamedesign.jp/");
};
btRanking.onRelease = function () {
gotoAndStop ("rank");
};
Symbol 114 MovieClip Frame 34
stop();
score = Number(_parent.score);
ranker = new Array();
RANK_MAX = 10;
i = 0;
while (i < RANK_MAX) {
ranker[i] = new Object();
i++;
}
CGIFile = "hisc.cgi?" + Math.floor(Math.random() * 1000);
myLoadVars = new LoadVars();
myLoadVars.onLoad = function (success) {
var _local1;
_local1 = 0;
while (_local1 < RANK_MAX) {
ranker[_local1].playername = myLoadVars["name" + _local1];
ranker[_local1].score = myLoadVars["score" + _local1];
_local1++;
}
rank_in = false;
_local1 = 0;
while (_local1 < RANK_MAX) {
if (score > Number(myLoadVars["score" + _local1])) {
rank_in = true;
}
_local1++;
}
if (rank_in) {
gotoAndStop ("entry");
} else {
gotoAndStop ("display");
}
};
myLoadVars.load(CGIFile);
Symbol 114 MovieClip Frame 40
stop();
btEntry.onRelease = function () {
playername = tfName.text;
if (playername.length > 20) {
playername = playername.slice(0, 20);
}
gotoAndStop ("save");
};
Symbol 114 MovieClip Frame 46
stop();
CGIFile = "hisc.cgi?" + Math.floor(Math.random() * 1000);
mySaveVars = new LoadVars();
mySaveVars.score = score;
mySaveVars.playername = playername;
myLoadVars = new LoadVars();
myLoadVars.onLoad = function (success) {
var _local1;
_local1 = 0;
while (_local1 < RANK_MAX) {
ranker[_local1].playername = myLoadVars["name" + _local1];
ranker[_local1].score = myLoadVars["score" + _local1];
_local1++;
}
gotoAndStop ("display");
};
mySaveVars.sendAndLoad(CGIFile, myLoadVars, "POST");
Symbol 114 MovieClip Frame 51
stop();
i = 0;
while (i < RANK_MAX) {
mc = eval ("mc" + i);
mc.tfRank.text = i + 1;
if (i == 0) {
mc.tfRank.text = "Top";
}
mc.tfName.text = ranker[i].playername;
mc.tfScore.text = ranker[i].score;
i++;
}
btOK.onRelease = function () {
_parent._parent.play();
};
Symbol 115 MovieClip Frame 1
_xscale = 400;
_yscale = 400;
score = 0;
stat = 0;
spd = 0;
axel = 1;
spdmax = 4;
manx = 40;
man._x = manx;
xspd = 0;
xadd = 0;
dir = 0;
meter = 0;
apppoint = 50;
endpoint = 1000;
smode = 0;
snow = 0;
stagenum = 1;
stagemax = 6;
screen_w = 80;
view_w = 30;
view_scale = screen_w / view_w;
view_z = 50;
Symbol 115 MovieClip Frame 3
function stagedata() {
fax = 0;
fwid = 3;
switch (stagenum) {
case 1 :
flab = "girl";
fspd = 5;
fint = 50;
fax = 0.5;
return;
case 2 :
flab = "spin";
fspd = 5;
fint = 30;
return;
case 3 :
flab = "keeper";
fspd = 5;
fint = 30;
fax = 0;
fwid = 5;
return;
case 4 :
flab = "speed";
fspd = 6;
fint = 35;
fax = 1.5;
return;
case 5 :
flab = "black";
fspd = 5;
fint = 30;
fax = 0;
return;
case 6 :
flab = "pair";
fspd = 4;
fint = 40;
fax = 2;
fwid = 4;
}
}
fmax = 8;
i = 0;
while (i < fmax) {
this["foe" + i].stat = 0;
this["foe" + i]._visible = false;
i++;
}
stagedata();
Symbol 115 MovieClip Frame 6
stop();
score = 0;
score_txt = "";
xmax = 3;
onPress = function () {
if (stat < 2) {
stat = 1;
if (dir == 0) {
if (man._x <= 40) {
dir = -1;
} else {
dir = 1;
}
}
if (dir > 0) {
dir = -1;
xadd = -xmax;
man.gotoAndPlay("left");
} else {
dir = 1;
xadd = xmax;
man.gotoAndPlay("right");
}
logo._visible = false;
}
};
onEnterFrame = function () {
hit = 0;
if ((stat == 1) || (stat == 2)) {
spd = spd + axel;
if (spd > spdmax) {
spd = spdmax;
}
manx = manx + xspd;
if (manx < 4) {
manx = 4;
hit = 1;
}
if (manx > 75) {
manx = 75;
hit = 2;
}
man._x = Math.floor(manx);
xspd = xspd + xadd;
if (xspd < (-xmax)) {
xspd = -xmax;
}
if (xspd > xmax) {
xspd = xmax;
}
if (dir < 0) {
xadd = xadd - 1;
}
if (dir > 0) {
xadd = xadd + 1;
}
}
vx = (man._x - 40) / view_scale;
i = 0;
while (i < fmax) {
if (this["foe" + i].stat == 0) {
} else {
if (flab == "black") {
this["foe" + i].px = this["foe" + i].px + this["foe" + i].ddx;
nx = this["foe" + i].px;
if ((nx < -14) || (nx > 14)) {
this["foe" + i].ddx = this["foe" + i].ddx * -1;
}
} else {
this["foe" + i].px = this["foe" + i].px + (this["foe" + i].ax * fax);
}
this["foe" + i].pz = this["foe" + i].pz - (fspd + spd);
nz = this["foe" + i].pz;
bai = view_z / nz;
bai100 = bai * 100;
this["foe" + i]._xscale = bai100;
this["foe" + i]._yscale = bai100;
baiv = bai * view_scale;
nx = 40 + (this["foe" + i].px * baiv);
this["foe" + i]._x = nx;
this["foe" + i]._y = 60;
if (nz < 100) {
if (this["prio" + i].use) {
this["prio" + i]._visible = true;
this["prio" + i]._xscale = bai100;
this["prio" + i]._yscale = bai100;
this["prio" + i]._x = nx;
this["prio" + i]._y = 60;
this["foe" + i]._visible = false;
}
}
if (stat < 2) {
if ((nz < 45) && (nz <= 55)) {
cx = this["foe" + i].px;
if ((cx >= (vx - fwid)) && (cx < (vx + fwid))) {
if (cx < vx) {
hit = 2;
} else {
hit = 1;
}
}
}
}
if (nz < 40) {
this["foe" + i].stat = 0;
this["foe" + i]._visible = false;
this["prio" + i]._visible = false;
score++;
score_txt = score;
}
}
i++;
}
if (hit) {
stat = 2;
man.cnt = 0;
if (hit == 1) {
man.gotoAndPlay("slip");
} else {
man.gotoAndPlay("slip2");
}
xspd = 0;
xadd = 0;
dir = 0;
}
meter = meter + spd;
if (smode == 0) {
if (meter > apppoint) {
if (meter < (endpoint - 80)) {
apppoint = apppoint + fint;
fn = -1;
i = 0;
while (i < fmax) {
if (this["foe" + i].stat == 0) {
fn = i;
}
i++;
}
if (fn >= 0) {
this["foe" + fn].stat = 1;
this["foe" + fn]._visible = true;
this["foe" + fn]._y = 500;
this["foe" + fn].flab = flab;
this["foe" + fn].ddx = ((Math.random() < 0.5) ? -1 : 1);
this["foe" + fn].gotoAndStop(flab);
px = -14 + (Math.random() * 28);
this["foe" + fn].px = px;
this["foe" + fn].pz = view_z + 500;
this["foe" + fn].ax = 0;
this["prio" + fn].flab = flab;
this["prio" + fn].gotoAndStop(flab);
this["prio" + fn]._visible = false;
this["prio" + fn].use = 0;
this["prio" + fn].use = 1;
}
}
}
if (meter > endpoint) {
if (stat == 1) {
smode = 1;
road.gotoAndPlay(2);
}
}
} else if (smode == 1) {
} else if (smode == 2) {
smode = 0;
meter = 0;
apppoint = 50;
stagenum++;
if (stagenum > stagemax) {
stagenum = 1;
}
snow = ((stagenum >= 5) ? 1 : 0);
stagedata();
}
if (stat == 3) {
road.stop();
i = 0;
while (i < fmax) {
this["foe" + i].nextFrame();
this["prio" + i].nextFrame();
i++;
}
delete onEnterFrame;
delete onPress;
gotoAndStop ("over");
}
};
Symbol 115 MovieClip Frame 12
stop();