Frame 7
stopAllSounds();
Frame 10
s_mask = 1;
s_lock = 0;
if (s_mask == 1) {
Stage.scaleMode = "showAll";
createEmptyMovieClip("stage_mask", 12345);
with (stage_mask) {
lineStyle();
beginFill(0, 100);
moveTo(0, 0);
lineTo(Stage.width, 0);
lineTo(Stage.width, Stage.height);
lineTo(0, Stage.height);
lineTo(0, 0);
endFill();
}
_root.setMask(stage_mask);
}
if (s_lock == 1) {
Stage.scaleMode = "noScale";
}
Frame 11
Frame 14
stop();
Instance of Symbol 22 MovieClip [四角] "square" in Frame 17
onClipEvent (load) {
gotoAndStop(num);
}
onClipEvent (enterFrame) {
gotoAndStop(num);
}
Frame 17
size = 15;
xx = 10;
yy = 10;
sindo = 10000;
map = new Array();
iy = -4;
for ( ; iy < yy ; iy++) {
map[iy] = new Array();
ix = 0;
for ( ; ix < xx ; ix++) {
map[iy][ix] = square.duplicateMovieClip("part" + (((iy + 1) * 100) + ix), (sindo + ((iy + 1) * 100)) + ix);
map[iy][ix]._x = (ix * size) + 50;
map[iy][ix]._y = ((iy + 4) * size) + 10;
map[iy][ix].num = 1;
}
}
Frame 18
cube1 = [[7, 7, 7, 7], [7, 3, 3, 7], [7, 3, 3, 7], [7, 7, 7, 7]];
cube2 = [[7, 7, 7, 7], [7, 3, 3, 7], [7, 3, 3, 7], [7, 7, 7, 7]];
cube3 = [[7, 7, 7, 7], [7, 3, 3, 7], [7, 3, 3, 7], [7, 7, 7, 7]];
cube4 = [[7, 7, 7, 7], [7, 3, 3, 7], [7, 3, 3, 7], [7, 7, 7, 7]];
cube5 = [[7, 3, 7, 7], [3, 3, 3, 7], [7, 6, 7, 7], [7, 7, 7, 7]];
cube6 = [[7, 3, 7, 7], [3, 3, 6, 7], [7, 3, 7, 7], [7, 7, 7, 7]];
cube7 = [[7, 6, 7, 7], [3, 3, 3, 7], [7, 3, 7, 7], [7, 7, 7, 7]];
cube8 = [[7, 3, 7, 7], [6, 3, 3, 7], [7, 3, 7, 7], [7, 7, 7, 7]];
cube9 = [[6, 5, 3, 7], [3, 3, 3, 7], [4, 6, 7, 7], [7, 7, 7, 7]];
cube10 = [[3, 3, 7, 7], [5, 3, 6, 7], [6, 3, 4, 7], [7, 7, 7, 7]];
cube11 = [[7, 6, 4, 7], [3, 3, 3, 7], [3, 5, 6, 7], [7, 7, 7, 7]];
cube12 = [[4, 3, 6, 7], [6, 3, 5, 7], [7, 3, 3, 7], [7, 7, 7, 7]];
cube13 = [[3, 4, 6, 7], [3, 3, 3, 7], [7, 6, 5, 7], [7, 7, 7, 7]];
cube14 = [[6, 3, 5, 7], [4, 3, 6, 7], [3, 3, 7, 7], [7, 7, 7, 7]];
cube15 = [[5, 6, 7, 7], [3, 3, 3, 7], [6, 4, 3, 7], [7, 7, 7, 7]];
cube16 = [[7, 3, 3, 7], [6, 3, 4, 7], [5, 3, 6, 7], [7, 7, 7, 7]];
cube17 = [[7, 4, 5, 7], [3, 3, 5, 7], [4, 3, 3, 7], [7, 7, 7, 7]];
cube18 = [[5, 5, 3, 7], [4, 3, 3, 7], [7, 3, 4, 7], [7, 7, 7, 7]];
cube19 = [[3, 3, 4, 7], [5, 3, 3, 7], [5, 4, 7, 7], [7, 7, 7, 7]];
cube20 = [[4, 3, 7, 7], [3, 3, 4, 7], [3, 5, 5, 7], [7, 7, 7, 7]];
cube21 = [[4, 5, 7, 7], [4, 3, 3, 7], [3, 3, 5, 7], [7, 7, 7, 7]];
cube22 = [[7, 3, 5, 7], [5, 3, 3, 7], [4, 4, 3, 7], [7, 7, 7, 7]];
cube23 = [[5, 3, 3, 7], [3, 3, 4, 7], [7, 5, 4, 7], [7, 7, 7, 7]];
cube24 = [[3, 4, 4, 7], [3, 3, 5, 7], [5, 3, 7, 7], [7, 7, 7, 7]];
cube25 = [[7, 3, 7, 7], [4, 3, 4, 4], [5, 3, 5, 5], [7, 3, 7, 7]];
cube26 = [[7, 4, 5, 7], [7, 4, 5, 7], [3, 3, 3, 3], [7, 4, 5, 7]];
cube27 = [[7, 7, 3, 7], [5, 5, 3, 5], [4, 4, 3, 4], [7, 7, 3, 7]];
cube28 = [[7, 5, 4, 7], [3, 3, 3, 3], [7, 5, 4, 7], [7, 5, 4, 7]];
Frame 19
function standby() {
nextselect = Math.floor(Math.random() * 28) + 1;
nextcube = eval ("cube" + nextselect);
nextblock = new Array();
iy = 0;
for ( ; iy < yb ; iy++) {
nextblock[iy] = new Array();
ix = 0;
for ( ; ix < xb ; ix++) {
nextblock[iy][ix] = square.duplicateMovieClip("nextpiece" + (((iy + 1) * 100) + ix), (nextdepth + ((iy + 1) * 100)) + ix);
nextblock[iy][ix]._x = ((ix + 3) * size) + 50;
nextblock[iy][ix]._y = (iy * size) + 10;
nextblock[iy][ix].num = nextcube[iy][ix];
}
}
}
function change() {
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
nextblock[iy][ix].removeMovieClip();
}
}
nowselect = nextselect;
nowcube = eval ("cube" + nowselect);
nowblock = new Array();
iy = 0;
for ( ; iy < yb ; iy++) {
nowblock[iy] = new Array();
ix = 0;
for ( ; ix < xb ; ix++) {
nowblock[iy][ix] = square.duplicateMovieClip("nowpiece" + (((iy + 1) * 100) + ix), (nowdepth + ((iy + 1) * 100)) + ix);
nowblock[iy][ix]._x = ((ix + 3) * size) + 50;
nowblock[iy][ix]._y = (iy * size) + 10;
nowblock[iy][ix].num = nowcube[iy][ix];
}
}
}
function drop() {
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
nowblock[iy][ix]._y = nowblock[iy][ix]._y + 15;
}
}
nowY++;
}
function basecontact() {
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
if (nowblock[iy][ix].num == 3) {
if (map[(iy + nowY) + 1][ix + nowX].num != 1) {
scene = 3;
break;
}
}
}
}
}
function fix() {
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
if (nowblock[iy][ix].num == 3) {
map[iy + nowY][ix + nowX].num = 2;
}
nowblock[iy][ix].removeMovieClip();
}
}
nowX = 3;
nowY = -4;
}
function filled() {
ix = 1;
for ( ; ix < xx ; ix++) {
if (map[-1][ix].num == 2) {
delete onEnterFrame;
gotoAndPlay("\u30B2\u30FC\u30E0\u30AA\u30FC\u30D0\u30FC");
}
}
}
function keyL() {
leftFrag = true;
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
if (nowblock[iy][ix].num == 3) {
if (map[iy + nowY][(ix + nowX) - 1].num != 1) {
leftFrag = false;
break;
}
}
}
}
if (leftFrag) {
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
nowblock[iy][ix]._x = nowblock[iy][ix]._x - 15;
}
}
nowX--;
}
}
function keyR() {
rightFrag = true;
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
if (nowblock[iy][ix].num == 3) {
if (map[iy + nowY][(ix + nowX) + 1].num != 1) {
rightFrag = false;
break;
}
}
}
}
if (rightFrag) {
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
nowblock[iy][ix]._x = nowblock[iy][ix]._x + 15;
}
}
nowX++;
}
}
function keyD() {
downFrag = true;
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
if (nowblock[iy][ix].num == 3) {
if (map[(iy + nowY) + 1][ix + nowX].num != 1) {
downFrag = false;
break;
}
}
}
}
if (downFrag) {
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
nowblock[iy][ix]._y = nowblock[iy][ix]._y + 15;
}
}
nowY++;
}
}
function keyZ() {
leftrollFrag = true;
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
if ((nowblock[iy][ix].num == 5) || (nowblock[iy][ix].num == 6)) {
if (map[iy + nowY][ix + nowX].num != 1) {
leftrollFrag = false;
break;
}
}
}
}
if (leftrollFrag) {
if ((nowselect % 4) != 0) {
nowselect++;
} else {
nowselect = nowselect - 3;
}
nowcube = eval ("cube" + nowselect);
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
nowblock[iy][ix].num = nowcube[iy][ix];
}
}
}
}
function keyC() {
rightrollFrag = true;
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
if ((nowblock[iy][ix].num == 4) || (nowblock[iy][ix].num == 6)) {
if (map[iy + nowY][ix + nowX].num != 1) {
rightrollFrag = false;
break;
}
}
}
}
if (rightrollFrag) {
if ((nowselect % 4) != 1) {
nowselect--;
} else {
nowselect = nowselect + 3;
}
nowcube = eval ("cube" + nowselect);
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
nowblock[iy][ix].num = nowcube[iy][ix];
}
}
}
}
function check() {
iy = 0;
for ( ; iy < yy ; iy++) {
ix = 0;
for ( ; ix < xx ; ix++) {
numArray[iy][ix] = map[iy][ix].num;
}
}
point = 5;
iy = 0;
for ( ; iy < yy ; iy++) {
numtotal = 0;
ix = 0;
for ( ; ix < xx ; ix++) {
numtotal = numtotal + numArray[iy][ix];
if (numtotal == 20) {
point = point * 2;
numArray.splice(iy, 1);
numArray.unshift([1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
numtotal = 0;
}
}
}
if (point == 5) {
point = 0;
}
txt = txt + point;
iy = 0;
for ( ; iy < yy ; iy++) {
ix = 0;
for ( ; ix < xx ; ix++) {
map[iy][ix].num = numArray[iy][ix];
}
}
}
size = 15;
xb = 4;
yb = 4;
nextdepth = 20000;
count = 0;
txt = 0;
scene = 0;
if (_root.nanido != 1) {
if (_root.nanido != 2) {
if (_root.nanido == 3) {
difficulty = 1;
}
} else {
difficulty = 10;
}
} else {
difficulty = 15;
}
nowdepth = 30000;
nowX = 3;
nowY = -4;
numArray = new Array();
iy = 0;
for ( ; iy < yy ; iy++) {
numArray[iy] = new Array();
ix = 0;
for ( ; ix < xx ; ix++) {
numArray[iy][ix] = map[iy][ix].num;
}
}
Frame 20
standby();
Frame 22
onEnterFrame = function () {
if ((count % difficulty) == 0) {
basecontact();
check();
}
if (scene != 3) {
if (!((scene == 1) && (nowY == 0))) {
if (scene != 0) {
if ((count % difficulty) == 0) {
drop();
}
} else {
change();
scene = 1;
}
} else {
standby();
scene = 2;
}
} else {
fix();
filled();
scene = 0;
}
if (800 >= txt) {
if (400 >= txt) {
if (200 >= txt) {
if (100 < txt) {
difficulty = 8;
}
} else {
difficulty = 6;
}
} else {
difficulty = 4;
}
} else {
difficulty = 2;
}
count++;
};
operation = new Object();
operation.onKeyDown = function () {
if (scene == 1) {
if (Key.isDown(Key.LEFT)) {
keyL();
}
if (Key.isDown(Key.RIGHT)) {
keyR();
}
if (Key.isDown(Key.DOWN)) {
keyD();
}
if (Key.isDown(90)) {
keyZ();
}
if (Key.isDown(67)) {
keyC();
}
}
if (scene == 2) {
if (Key.isDown(Key.LEFT)) {
keyL();
}
if (Key.isDown(Key.RIGHT)) {
keyR();
}
if (Key.isDown(Key.DOWN)) {
keyD();
}
if (Key.isDown(90)) {
keyZ();
}
if (Key.isDown(67)) {
keyC();
}
}
};
Key.addListener(operation);
Frame 23
stop();
Instance of Symbol 22 MovieClip [四角] "square" in Frame 26
onClipEvent (load) {
gotoAndStop(num);
}
onClipEvent (enterFrame) {
gotoAndStop(num);
}
Frame 26
size = 15;
xx = 10;
yy = 10;
sindo = 10000;
map = new Array();
iy = -4;
for ( ; iy < yy ; iy++) {
map[iy] = new Array();
ix = 0;
for ( ; ix < xx ; ix++) {
map[iy][ix] = square.duplicateMovieClip("part" + (((iy + 1) * 100) + ix), (sindo + ((iy + 1) * 100)) + ix);
map[iy][ix]._x = (ix * size) + 50;
map[iy][ix]._y = ((iy + 4) * size) + 10;
map[iy][ix].num = 1;
}
}
Frame 27
cube1 = [[7, 7, 7, 7], [7, 3, 3, 7], [7, 3, 3, 7], [7, 7, 7, 7]];
cube2 = [[7, 7, 7, 7], [7, 3, 3, 7], [7, 3, 3, 7], [7, 7, 7, 7]];
cube3 = [[7, 7, 7, 7], [7, 3, 3, 7], [7, 3, 3, 7], [7, 7, 7, 7]];
cube4 = [[7, 7, 7, 7], [7, 3, 3, 7], [7, 3, 3, 7], [7, 7, 7, 7]];
cube5 = [[7, 3, 7, 7], [3, 3, 3, 7], [7, 6, 7, 7], [7, 7, 7, 7]];
cube6 = [[7, 3, 7, 7], [3, 3, 6, 7], [7, 3, 7, 7], [7, 7, 7, 7]];
cube7 = [[7, 6, 7, 7], [3, 3, 3, 7], [7, 3, 7, 7], [7, 7, 7, 7]];
cube8 = [[7, 3, 7, 7], [6, 3, 3, 7], [7, 3, 7, 7], [7, 7, 7, 7]];
cube9 = [[6, 5, 3, 7], [3, 3, 3, 7], [4, 6, 7, 7], [7, 7, 7, 7]];
cube10 = [[3, 3, 7, 7], [5, 3, 6, 7], [6, 3, 4, 7], [7, 7, 7, 7]];
cube11 = [[7, 6, 4, 7], [3, 3, 3, 7], [3, 5, 6, 7], [7, 7, 7, 7]];
cube12 = [[4, 3, 6, 7], [6, 3, 5, 7], [7, 3, 3, 7], [7, 7, 7, 7]];
cube13 = [[3, 4, 6, 7], [3, 3, 3, 7], [7, 6, 5, 7], [7, 7, 7, 7]];
cube14 = [[6, 3, 5, 7], [4, 3, 6, 7], [3, 3, 7, 7], [7, 7, 7, 7]];
cube15 = [[5, 6, 7, 7], [3, 3, 3, 7], [6, 4, 3, 7], [7, 7, 7, 7]];
cube16 = [[7, 3, 3, 7], [6, 3, 4, 7], [5, 3, 6, 7], [7, 7, 7, 7]];
cube17 = [[7, 4, 5, 7], [3, 3, 5, 7], [4, 3, 3, 7], [7, 7, 7, 7]];
cube18 = [[5, 5, 3, 7], [4, 3, 3, 7], [7, 3, 4, 7], [7, 7, 7, 7]];
cube19 = [[3, 3, 4, 7], [5, 3, 3, 7], [5, 4, 7, 7], [7, 7, 7, 7]];
cube20 = [[4, 3, 7, 7], [3, 3, 4, 7], [3, 5, 5, 7], [7, 7, 7, 7]];
cube21 = [[4, 5, 7, 7], [4, 3, 3, 7], [3, 3, 5, 7], [7, 7, 7, 7]];
cube22 = [[7, 3, 5, 7], [5, 3, 3, 7], [4, 4, 3, 7], [7, 7, 7, 7]];
cube23 = [[5, 3, 3, 7], [3, 3, 4, 7], [7, 5, 4, 7], [7, 7, 7, 7]];
cube24 = [[3, 4, 4, 7], [3, 3, 5, 7], [5, 3, 7, 7], [7, 7, 7, 7]];
cube25 = [[7, 3, 7, 7], [4, 3, 4, 4], [5, 3, 5, 5], [7, 3, 7, 7]];
cube26 = [[7, 4, 5, 7], [7, 4, 5, 7], [3, 3, 3, 3], [7, 4, 5, 7]];
cube27 = [[7, 7, 3, 7], [5, 5, 3, 5], [4, 4, 3, 4], [7, 7, 3, 7]];
cube28 = [[7, 5, 4, 7], [3, 3, 3, 3], [7, 5, 4, 7], [7, 5, 4, 7]];
Frame 28
function standby() {
nextselect = Math.floor(Math.random() * 28) + 1;
nextcube = eval ("cube" + nextselect);
nextblock = new Array();
iy = 0;
for ( ; iy < yb ; iy++) {
nextblock[iy] = new Array();
ix = 0;
for ( ; ix < xb ; ix++) {
nextblock[iy][ix] = square.duplicateMovieClip("nextpiece" + (((iy + 1) * 100) + ix), (nextdepth + ((iy + 1) * 100)) + ix);
nextblock[iy][ix]._x = ((ix + 3) * size) + 50;
nextblock[iy][ix]._y = (iy * size) + 10;
nextblock[iy][ix].num = nextcube[iy][ix];
}
}
}
function change() {
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
nextblock[iy][ix].removeMovieClip();
}
}
nowselect = nextselect;
nowcube = eval ("cube" + nowselect);
nowblock = new Array();
iy = 0;
for ( ; iy < yb ; iy++) {
nowblock[iy] = new Array();
ix = 0;
for ( ; ix < xb ; ix++) {
nowblock[iy][ix] = square.duplicateMovieClip("nowpiece" + (((iy + 1) * 100) + ix), (nowdepth + ((iy + 1) * 100)) + ix);
nowblock[iy][ix]._x = ((ix + 3) * size) + 50;
nowblock[iy][ix]._y = (iy * size) + 10;
nowblock[iy][ix].num = nowcube[iy][ix];
}
}
}
function drop() {
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
nowblock[iy][ix]._y = nowblock[iy][ix]._y + 15;
}
}
nowY++;
}
function basecontact() {
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
if (nowblock[iy][ix].num == 3) {
if (map[(iy + nowY) + 1][ix + nowX].num != 1) {
scene = 3;
break;
}
}
}
}
}
function fix() {
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
if (nowblock[iy][ix].num == 3) {
map[iy + nowY][ix + nowX].num = 2;
}
nowblock[iy][ix].removeMovieClip();
}
}
nowX = 3;
nowY = -4;
}
function filled() {
ix = 1;
for ( ; ix < xx ; ix++) {
if (map[-1][ix].num == 2) {
delete onEnterFrame;
gotoAndPlay("\u30B2\u30FC\u30E0\u30AA\u30FC\u30D0\u30FC");
}
}
}
function keyL() {
leftFrag = true;
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
if (nowblock[iy][ix].num == 3) {
if (map[iy + nowY][(ix + nowX) - 1].num != 1) {
leftFrag = false;
break;
}
}
}
}
if (leftFrag) {
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
nowblock[iy][ix]._x = nowblock[iy][ix]._x - 15;
}
}
nowX--;
}
}
function keyR() {
rightFrag = true;
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
if (nowblock[iy][ix].num == 3) {
if (map[iy + nowY][(ix + nowX) + 1].num != 1) {
rightFrag = false;
break;
}
}
}
}
if (rightFrag) {
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
nowblock[iy][ix]._x = nowblock[iy][ix]._x + 15;
}
}
nowX++;
}
}
function keyD() {
downFrag = true;
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
if (nowblock[iy][ix].num == 3) {
if (map[(iy + nowY) + 1][ix + nowX].num != 1) {
downFrag = false;
break;
}
}
}
}
if (downFrag) {
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
nowblock[iy][ix]._y = nowblock[iy][ix]._y + 15;
}
}
nowY++;
}
}
function keyZ() {
leftrollFrag = true;
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
if ((nowblock[iy][ix].num == 5) || (nowblock[iy][ix].num == 6)) {
if (map[iy + nowY][ix + nowX].num != 1) {
leftrollFrag = false;
break;
}
}
}
}
if (leftrollFrag) {
if ((nowselect % 4) != 0) {
nowselect++;
} else {
nowselect = nowselect - 3;
}
nowcube = eval ("cube" + nowselect);
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
nowblock[iy][ix].num = nowcube[iy][ix];
}
}
}
}
function keyC() {
rightrollFrag = true;
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
if ((nowblock[iy][ix].num == 4) || (nowblock[iy][ix].num == 6)) {
if (map[iy + nowY][ix + nowX].num != 1) {
rightrollFrag = false;
break;
}
}
}
}
if (rightrollFrag) {
if ((nowselect % 4) != 1) {
nowselect--;
} else {
nowselect = nowselect + 3;
}
nowcube = eval ("cube" + nowselect);
iy = 0;
for ( ; iy < yb ; iy++) {
ix = 0;
for ( ; ix < xb ; ix++) {
nowblock[iy][ix].num = nowcube[iy][ix];
}
}
}
}
function check() {
iy = 0;
for ( ; iy < yy ; iy++) {
ix = 0;
for ( ; ix < xx ; ix++) {
numArray[iy][ix] = map[iy][ix].num;
}
}
point = 5;
iy = 0;
for ( ; iy < yy ; iy++) {
numtotal = 0;
ix = 0;
for ( ; ix < xx ; ix++) {
numtotal = numtotal + numArray[iy][ix];
if (numtotal == 20) {
point = point * 2;
numArray.splice(iy, 1);
numArray.unshift([1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
numtotal = 0;
}
}
}
if (point == 5) {
point = 0;
}
txt = txt + point;
iy = 0;
for ( ; iy < yy ; iy++) {
ix = 0;
for ( ; ix < xx ; ix++) {
map[iy][ix].num = numArray[iy][ix];
}
}
}
size = 15;
xb = 4;
yb = 4;
nextdepth = 20000;
count = 0;
txt = 0;
scene = 0;
if (_root.nanido != 1) {
if (_root.nanido != 2) {
if (_root.nanido == 3) {
difficulty = 1;
}
} else {
difficulty = 10;
}
} else {
difficulty = 15;
}
nowdepth = 30000;
nowX = 3;
nowY = -4;
numArray = new Array();
iy = 0;
for ( ; iy < yy ; iy++) {
numArray[iy] = new Array();
ix = 0;
for ( ; ix < xx ; ix++) {
numArray[iy][ix] = map[iy][ix].num;
}
}
Frame 29
standby();
Frame 31
onEnterFrame = function () {
if ((count % difficulty) == 0) {
basecontact();
check();
}
if (scene != 3) {
if (!((scene == 1) && (nowY == 0))) {
if (scene != 0) {
if ((count % difficulty) == 0) {
drop();
}
} else {
change();
scene = 1;
}
} else {
standby();
scene = 2;
}
} else {
fix();
filled();
scene = 0;
}
if (800 >= txt) {
if (400 >= txt) {
if (200 >= txt) {
if (100 < txt) {
difficulty = 8;
}
} else {
difficulty = 6;
}
} else {
difficulty = 4;
}
} else {
difficulty = 2;
}
count++;
};
operation = new Object();
operation.onKeyDown = function () {
if (scene == 1) {
if (Key.isDown(Key.LEFT)) {
keyL();
}
if (Key.isDown(Key.RIGHT)) {
keyR();
}
if (Key.isDown(Key.DOWN)) {
keyD();
}
if (Key.isDown(90)) {
keyZ();
}
if (Key.isDown(67)) {
keyC();
}
}
if (scene == 2) {
if (Key.isDown(Key.LEFT)) {
keyL();
}
if (Key.isDown(Key.RIGHT)) {
keyR();
}
if (Key.isDown(Key.DOWN)) {
keyD();
}
if (Key.isDown(90)) {
keyZ();
}
if (Key.isDown(67)) {
keyC();
}
}
};
Key.addListener(operation);
Frame 32
stop();
Frame 34
iy = -4;
for ( ; iy < yy ; iy++) {
ix = 0;
for ( ; ix < xx ; ix++) {
map[iy][ix].removeMovieClip();
nowblock[iy][ix].removeMovieClip();
nextblock[iy][ix].removeMovieClip();
}
}
Key.removeListener(operation);
Frame 35
stopAllSounds();
Frame 36
iy = -4;
for ( ; iy < yy ; iy++) {
ix = 0;
for ( ; ix < xx ; ix++) {
map[iy][ix].removeMovieClip();
nowblock[iy][ix].removeMovieClip();
nextblock[iy][ix].removeMovieClip();
}
}
Key.removeListener(operation);
Frame 300
stop();
Symbol 132 MovieClip [effect(2)] Frame 1202
stop();
Symbol 134 MovieClip [face(2)] Frame 5
stop();
Symbol 160 MovieClip [eplo] Frame 10
stop();
Symbol 168 MovieClip [スプライト(7)] Frame 186
if (!((0 < _root.txt) && (_root.txt < 80))) {
if (!((80 < _root.txt) && (_root.txt < 160))) {
if (_root.txt != 0) {
if (!((160 < _root.txt) && (_root.txt < 240))) {
if (!((240 < _root.txt) && (_root.txt < 320))) {
if (320 >= _root.txt) {
gotoAndPlay("kao7");
} else {
gotoAndPlay("kao6");
}
} else {
gotoAndPlay("kao5");
}
} else {
gotoAndPlay("kao4");
}
} else {
gotoAndPlay("kao3");
}
} else {
gotoAndPlay("kao2");
}
} else {
gotoAndPlay("kao1");
}
Symbol 168 MovieClip [スプライト(7)] Frame 259
stop();
Symbol 168 MovieClip [スプライト(7)] Frame 272
stop();
Symbol 168 MovieClip [スプライト(7)] Frame 283
stop();
Symbol 168 MovieClip [スプライト(7)] Frame 296
stop();
Symbol 168 MovieClip [スプライト(7)] Frame 307
stop();
Symbol 168 MovieClip [スプライト(7)] Frame 320
stop();
Symbol 168 MovieClip [スプライト(7)] Frame 333
stop();
Symbol 20000 Button
on (press) {
_root.nanido = 1;
_root.gotoAndPlay("start1");
}
on () {
}
Symbol 20001 Button
on (press) {
_root.nanido = 2;
_root.gotoAndPlay("start1");
}
on () {
}
Symbol 20002 Button
on (press) {
_root.nanido = 3;
_root.gotoAndPlay("start2");
}
on () {
}
Symbol 20003 Button
on (release) {
gotoAndPlay("doatama");
}