Frame 1
if (level != undefined) {
gotoAndStop (3);
}
_global.poo = false;
command = "init";
this.loadVariables("highscores.php?" + int(Math.random() * 100000), "POST");
name = "";
stop();
Frame 2
stop();
Instance of Symbol 12 MovieClip in Frame 2
onClipEvent (load) {
countd = 180;
}
onClipEvent (enterFrame) {
countd--;
down = Math.ceil(countd / 60);
if (down <= 0) {
Set("/:countdown", "go!");
} else {
Set("/:countdown", down);
}
if (down <= -1) {
_root.nextFrame();
}
}
Frame 3
Mouse.hide();
stop();
Instance of Symbol 12 MovieClip "proc" in Frame 3
onClipEvent (load) {
_global.radius = 200;
_global.playaccel = 0.24;
_global.playdrag = 0.98;
_global.guyaccel = 0.25;
_global.guydrag = 0.98;
if (level == 0) {
level = 1;
}
enemies = level;
increment = 360 / enemies;
i = 0;
while (i < (enemies - 1)) {
duplicateMovieClip (_root.part, "part" + i, i);
i++;
}
}
onClipEvent (enterFrame) {
timer++;
Set("/:timer", " " + timer);
Set("/:level", _global.level);
if (timer >= 1000) {
timer = 0;
_root.gotoAndPlay("win");
}
}
Instance of Symbol 20 MovieClip "part" in Frame 3
onClipEvent (load) {
_global.dead = 0;
_y = (_root.bounding._height / 2);
_x = (_root.bounding._height / 2);
_global.count++;
num = count - 1;
deg = num * _level0.proc.increment;
rad = ((deg + 90) * Math.PI) / 180;
x = _global.radius * Math.sin(rad);
y = _global.radius * Math.cos(rad);
_x = (_x + x);
_y = (_y + y);
speedx = 0;
speedy = 0;
accel = _global.guyaccel;
drag = _global.guydrag;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.bounding)) {
if (_x > playx) {
speedx = speedx - accel;
}
if (_x < playx) {
speedx = speedx + accel;
}
if (_y > playy) {
speedy = speedy - accel;
}
if (_y < playy) {
speedy = speedy + accel;
}
} else {
if (_x < 0) {
_x = 600;
}
if (_x > 600) {
_x = 0;
}
if (_y < 0) {
_y = 600;
}
if (_y > 600) {
_y = 0;
}
}
speedx = speedx * drag;
speedy = speedy * drag;
_x = (_x + speedx);
_y = (_y + speedy);
if (this.hitTest(_root.play)) {
_global.dead = 1;
_root.gotoAndStop("lose");
}
}
Instance of Symbol 21 MovieClip "play" in Frame 3
onClipEvent (load) {
speedy = 0;
speedx = 0;
accel = _global.playaccel;
drag = _global.playdrag;
_y = (_root.bounding._height / 2);
_x = (_root.bounding._height / 2);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.bounding)) {
kDown = Key.isDown;
if (kDown(37)) {
speedx = speedx - accel;
}
if (kDown(39)) {
speedx = speedx + accel;
}
if (kDown(40)) {
speedy = speedy + accel;
}
if (kDown(38)) {
speedy = speedy - accel;
}
speedx = speedx * drag;
speedy = speedy * drag;
_x = (_x + speedx);
_y = (_y + speedy);
_global.playx = _x;
_global.playy = _y;
} else if (_x < 0) {
_x = 600;
} else if (_x > 600) {
_x = 0;
} else if (_y < 0) {
_y = 600;
} else if (_y > 600) {
_y = 0;
}
}
Instance of Symbol 24 MovieClip "new0" in Frame 3
onClipEvent (load) {
dratex = 2 * Math.random();
dratey = 2 * Math.random();
negx = Math.ceil(2 * Math.random());
if (negx == 2) {
dratex = dratex * -1;
}
negy = Math.ceil(2 * Math.random());
if (negy == 2) {
dratey = dratey * -1;
}
x = 1;
decay = 5;
ease = 2;
if (_name != "new0") {
y = _name.substr(3, 3);
y = Number(y) - 1;
} else {
y = 0;
}
main = true;
}
onClipEvent (enterFrame) {
if ((_name == "new0") && (main)) {
if (_xscale > 0) {
this.duplicateMovieClip("new" + x, x + 100);
_xscale = (_xscale - decay);
_yscale = (_xscale - decay);
_alpha = (_alpha - (decay * 2));
x++;
} else {
_visible = false;
_root.go = true;
main = false;
}
}
if (_root.go) {
if (_name == ("new" + String(1))) {
x1 = _global.playx;
y = _global.playy;
if (_global.dead == 0) {
p = 0;
ratex = x1 - _x;
ratey = y - _y;
} else {
p++;
if (p == 1) {
dratex = dratex + (ratex / 10);
dratey = dratey + (ratey / 10);
}
ratex = dratex;
ratey = dratey;
}
if ((ratex != 0) && (ratey != 0)) {
_x = (_x + (ratex / ease));
_y = (_y + (ratey / ease));
}
} else {
x1 = _root["new" + y]._x;
y1 = _root["new" + y]._y;
if (_global.dead == 0) {
ratex = x1 - _x;
ratey = y1 - _y;
p = 0;
} else {
p++;
if (p == 1) {
dratex = dratex + (ratex / 10);
dratey = dratey + (ratey / 10);
}
ratex = dratex;
ratey = dratey;
}
if ((ratex != 0) && (ratey != 0)) {
_x = (_x + (ratex / ease));
_y = (_y + (ratey / ease));
}
}
}
}
Frame 4
Mouse.show();
stop();
Instance of Symbol 12 MovieClip in Frame 4
onClipEvent (load) {
tscore = (_global.level + 1) * 1000;
if (tscore > _global.score) {
_global.score = tscore;
}
Set("/:score", "score: " + _global.score);
countd = 60;
_global.count = 0;
}
onClipEvent (enterFrame) {
countd--;
down = Math.ceil((10 * countd) / 60) / 10;
Set("/:countdown", down);
if (down <= 0) {
countd = 180;
_global.level++;
_root.gotoAndPlay(1);
}
}
Instance of Symbol 30 MovieClip in Frame 4
on (release) {
gotoAndPlay (7);
}
Frame 5
Mouse.show();
stop();
Instance of Symbol 12 MovieClip "cont" in Frame 5
onClipEvent (load) {
tscore = (_global.level * 1000) + _level0.proc.timer;
if (tscore > _global.score) {
_global.score = tscore;
}
Set("/:score", "score: " + _global.score);
countd = 150;
_global.count = 0;
}
onClipEvent (enterFrame) {
countd--;
down = Math.ceil((10 * countd) / 60) / 10;
Set("/:countdown", down);
if (down <= 0) {
countd = 180;
_global.timer = 0;
_root.gotoAndPlay(1);
}
}
Instance of Symbol 30 MovieClip in Frame 5
on (release) {
_root.gotoAndPlay("hiscore");
}
Frame 6
stop();
Frame 7
Set("/:score", _global.score);
Set("/:name", _global.name);
stop();
Instance of Symbol 12 MovieClip "cont" in Frame 7
onClipEvent (enterFrame) {
_global.name = _level0.name + "<br>";
_global.score = _level0.score + "<br>";
}
Frame 8
stop();
Instance of Symbol 48 MovieClip in Frame 8
on (release) {
_global.score = 0;
_global.level = 0;
_global.timer = 0;
gotoAndPlay (3);
}
Symbol 5 Button
on (press) {
_global.poo = true;
_global.name = _level0.name;
_global.level = 0;
}
Symbol 10 MovieClip Frame 69
if (_global.poo) {
_global.level++;
gotoAndPlay (71);
}
Symbol 10 MovieClip Frame 70
gotoAndPlay (69);
Symbol 10 MovieClip Frame 131
_root.nextFrame();
Symbol 40 Button
on (release) {
if (name != "") {
command = "update";
this.loadVariables("highscores.php?" + int(Math.random() * 100000), "POST");
gotoAndStop (8);
}
}