Frame 5
stop();
Frame 6
function scor() {
_root.mes.text = (("\u30E9\u30A6\u30F3\u30C9\uFF1A" + round) + "/10\n\u30B9\u30B3\u30A2\uFF1A") + score;
}
function prround() {
round++;
_root.scor();
}
function prscore(num) {
score = score + num;
_root.scor();
if (round >= 11) {
this.gotoAndPlay("over");
}
}
round = 1;
score = 0;
_root.scor();
Instance of Symbol 40 MovieClip "ziki" in Frame 6
onClipEvent (load) {
function mov() {
ax = (px - _x) / Math.abs((px - _x) + 0.01);
ax = Math.floor(ax + 0.5);
_x = (_x + (ax * 5));
if ((_x > (px - 10)) && (_x < (px + 10))) {
algo = "sto";
_x = px;
}
_xscale = (ax * 100);
this.gotoAndStop(2);
}
function sto() {
if ((_root.gomi._y == 308) && (!((_x > (px - 10)) && (_x < (px + 10))))) {
algo = "mov";
}
_xscale = 100;
this.gotoAndStop(1);
}
function trw() {
this.gotoAndStop(3);
}
algo = "sto";
}
onClipEvent (enterFrame) {
px = _root.gomi._x - 30;
this[algo]();
}
Instance of Symbol 6 MovieClip "gomi" in Frame 6
onClipEvent (load) {
function rnd() {
_x = ((Math.random() * 200) + 50);
}
dd = 0;
_y = -15;
sw = 0;
kk = 0;
bb = 0;
saiko = 500;
this.rnd();
}
onClipEvent (enterFrame) {
if (sw == 0) {
_y = (_y + dd);
dd++;
if (_y >= 308) {
_y = 308;
sw = 1;
}
} else if (sw == 2) {
sw = 3;
xx = _root.xx / 5;
yy = _root.yy / 5;
}
if (sw == 3) {
_x = (_x + xx);
_y = (_y - yy);
if (_y <= saiko) {
saiko = _y;
}
yy = yy - 1;
yy = Math.max(yy, -15);
if (_y > 308) {
_y = 308;
sw = 1;
kk++;
}
if (_x > 530) {
xx = -xx;
}
if (this.hitTest(_root.atari)) {
_y = -15;
dd = 0;
this.rnd();
_root.prround();
_root.gomibako.gotoAndPlay(2);
sw = 0;
bb = (bb + 1) % 100;
_root.attachMovie("ten", "ten" + bb, bb);
_root["ten" + bb].sc = Math.floor((700 + (300 - saiko)) / Math.pow(2, kk));
kk = 0;
saiko = 500;
}
}
}
Instance of Symbol 43 MovieClip in Frame 6
onClipEvent (enterFrame) {
if ((_root.gomi._y == 308) && (_root.ziki.algo == "sto")) {
_x = (_root.ziki._x + 2);
sw = 1;
ht = this.hitTest(_root._xmouse, _root._ymouse, true);
if (ht) {
ox = _xmouse;
oy = _ymouse;
kk = -Math.floor((Math.atan2(_ymouse, _xmouse) * 180) / Math.PI);
pw = Math.floor((Math.sqrt(Math.pow(ox, 2) + Math.pow(oy, 2)) / 121) * 100);
this.mes = ((("\u89D2\u5EA6=" + kk) + newline) + "\u529B=") + pw;
} else {
this.mes = "";
}
} else {
sw = 0;
_x = -131;
}
}
onClipEvent (mouseDown) {
if (ht) {
if (sw == 1) {
_root.xx = _xmouse;
_root.yy = -_ymouse;
_root.ziki.algo = "trw";
}
}
}
Frame 10
this.stop();
Frame 11
rank = "\uFF15S";
com = "\u795E";
if (score <= 3000) {
rank = "E";
com = "\u866B\u3051\u3089";
} else if (score <= 4000) {
rank = "D";
com = "\u72AC\u755C\u751F";
} else if (score <= 5000) {
rank = "C";
com = "\u4E00\u822C\u5E02\u6C11";
} else if (score <= 6000) {
rank = "B";
com = "\u5BCC\u8C6A";
} else if (score <= 7000) {
rank = "A";
com = "\u8CB4\u65CF";
} else if (score <= 7500) {
rank = "S";
com = "\u5148\u751F";
} else if (score <= 8000) {
rank = "SS";
com = "\u9054\u4EBA";
} else if (score <= 8500) {
rank = "SSS";
com = "\u5E2B\u7BC4";
} else if (score <= 9000) {
rank = "\uFF14S";
com = "\u4ED9\u4EBA";
}
_root.mes.text = ((((("SCORE:" + score) + "\nRANK:") + rank) + "\n\u79F0\u53F7\u201C") + com) + "\u201D";
Frame 15
stop();
Symbol 3 MovieClip [ten] Frame 1
this.mes.text = "\u30B9\u30B3\u30A2\uFF1A" + sc;
_root.prscore(sc);
co = 0;
_y = 300;
_x = 480;
Symbol 3 MovieClip [ten] Frame 2
co++;
if (co < 20) {
_y = (_y - (5 - (co / 4)));
} else {
this.removeMovieClip();
}
Symbol 3 MovieClip [ten] Frame 3
this.gotoAndPlay(2);
Symbol 13 Button
on (release) {
gotoAndPlay ("play");
}
Symbol 19 MovieClip Frame 1
_x = (_x + 0.5);
if (_x >= 420) {
_x = 40;
_y = ((Math.random() * 40) + 60);
}
Symbol 19 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 8
this.gotoAndStop(1);
Symbol 39 MovieClip Frame 11
_root.gomi._y = -15;
Symbol 39 MovieClip Frame 21
_root.gomi._x = _root.ziki._x - 26;
_root.gomi._y = 276;
_root.gomi.sw = 2;
Symbol 39 MovieClip Frame 25
_root.ziki.algo = "sto";
Symbol 40 MovieClip Frame 1
stop();
Symbol 52 Button
on (release) {
this.gotoAndPlay("play");
}