Frame 1
level = "1";
life = "3";
point = "0";
Frame 2
duplicateMovieClip ("/head", "1", 1);
setProperty("/1", _x , "202.5");
setProperty("/1", _y , "277.5");
count = "2";
while (count < "11") {
duplicateMovieClip ("/cell", count, count);
setProperty("/" add count, _x , "202.5");
setProperty("/" add count, _y , "277.5" + ((count - "1") * "15"));
count = count + "1";
}
count = "10";
start = "1";
stop();
Frame 6
x = (random("18") * "15") + "67.5";
y = (random("30") * "15") + "22.5";
count = count + "1";
if (count == "20") {
call("clear");
} else {
duplicateMovieClip ("/cell", count, count);
setProperty("/" add count, _x , x);
setProperty("/" add count, _y , y);
}
Frame 13
i = "1";
while (count >= i) {
removeMovieClip(i);
i = i + "1";
}
i = "1";
while ((level * "3") >= i) {
removeMovieClip("/s" add i);
i = i + "1";
}
if (count == "20") {
level = level + "1";
} else {
life = life - "1";
if (life == "0") {
gotoAndStop (30);
}
}
call("start");
Frame 20
i = "1";
while (i < (level * "3")) {
duplicateMovieClip ("/stoun", "s" add i, "1000" + i);
x = (random("18") * "15") + "67.5";
y = (random("28") * "15") + "22.5";
if (x == getProperty("/1", _x)) {
x = x - "30";
}
setProperty("/s" add i, _x , x);
setProperty("/s" add i, _y , y);
setProperty("/s" add i, _rotation , random("4") * "90");
i = i + "1";
duplicateMovieClip ("stoun", "s" add i, "1000" + i);
setProperty("/s" add i, _x , getProperty("/s" add (i - "1"), _x));
setProperty("/s" add i, _y , getProperty("/s" add (i - "1"), _y) + "15");
setProperty("/s" add i, _rotation , random("4") * "90");
i = i + "1";
duplicateMovieClip ("stoun", "s" add i, "1000" + i);
setProperty("/s" add i, _x , getProperty("/s" add (i - "1"), _x));
setProperty("/s" add i, _y , getProperty("/s" add (i - "1"), _y) + "15");
setProperty("/s" add i, _rotation , random("4") * "90");
i = i + "1";
}
Frame 30
stop();
Symbol 2 MovieClip Frame 1
if ((getProperty("/" add /:count, _x) == _x) and (getProperty("/" add /:count, _y) == _y)) {
Set("/:count", "/:count-1");
call("/:Add");
}
if ((_x == getProperty("/1", _x)) and (_y == getProperty("/1", _y))) {
call("/:clear");
}
Symbol 2 MovieClip Frame 2
gotoAndPlay (1);
Symbol 7 MovieClip Frame 1
setProperty("color", _rotation , random("360"));
stop();
Symbol 7 MovieClip Frame 4
if ((_x == getProperty("/1", _x)) and (_y == getProperty("/1", _y))) {
call("/:clear");
}
Symbol 7 MovieClip Frame 5
_x = getProperty("/" add (_name - "1"), _x);
_y = getProperty("/" add (_name - "1"), _y);
Symbol 7 MovieClip Frame 6
gotoAndPlay (2);
Symbol 9 Button
on (keyPress "<Left>") {
key = "4";
}
on (keyPress "<Right>") {
key = "6";
}
on (keyPress "<Up>") {
key = "8";
}
on (keyPress "<Down>") {
key = "2";
}
Symbol 10 MovieClip Frame 1
stop();
Symbol 10 MovieClip Frame 5
if (key == "4") {
_x = (_x - "15");
} else if (key == "6") {
_x = (_x + "15");
} else if (key == "2") {
_y = (_y + "15");
} else {
_y = (_y - "15");
}
if ((_x == getProperty("/" add /:count, _x)) and (_y == getProperty("/" add /:count, _y))) {
tellTarget ("/" add /:count) {
gotoAndPlay (5);
};
Set("/:point", /:point + /:level);
call("/:Add");
}
if ((((_x < "60") or ("330" < _x)) or (_y < "15")) or ("465" < _y)) {
call("/:Clear");
}
Symbol 10 MovieClip Frame 6
gotoAndPlay (2);
Symbol 23 Button
on (press, keyPress "<Space>") {
i = "1";
if (start == "1") {
while (count >= i) {
tellTarget ("/" add i) {
gotoAndPlay (2);
};
i = i + "1";
}
if ("1" < level) {
call("Wall");
}
call("Add");
start = "0";
}
}
Symbol 33 Button
on (press, keyPress "<Space>") {
gotoAndPlay (1);
}