Frame 1
total_bytes = this.getBytesTotal();
Frame 2
loaded = this.getBytesLoaded();
if (loaded >= total_bytes) {
gotoAndStop (10);
}
percent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "% Loaded";
Frame 3
gotoAndPlay (2);
Frame 25
stop();
Instance of Symbol 34 MovieClip "asteroid" in Frame 25
onClipEvent (load) {
function explode() {
_root.ship.big_ass.start();
_root.duplicator.x = this._x;
_root.duplicator.y = this._y;
_root.duplicator.Meteors();
removeMovieClip(_root["missile" + i]);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
if (_name != "asteroid") {
_x = (xmov + this._x);
_y = (ymov + this._y);
_rotation = (this._rotation + rot);
if (_root.ship.hitTest(this)) {
_root.energy._xscale = _root.energy._xscale - 10;
_root.ship.hit();
_root.ship.shield.start();
explode();
}
i = -1;
while (_root.max_missiles >= (++i)) {
if (_root["missile" + i].hitTest(this)) {
_root.ak++;
explode();
}
}
if ((((this._x < (-1 * this._width)) || ((550 + this._width) < this._x)) || (this._y < (-1 * this._width))) || ((400 + this._width) < this._y)) {
removeMovieClip("");
}
}
}
Instance of Symbol 36 MovieClip "missile" in Frame 25
onClipEvent (enterFrame) {
if (_name != "missile") {
_x = (xmov + this._x);
_y = (ymov + this._y);
if ((((this._x < -20) or (570 < this._x)) or (this._y < -10)) or (420 < this._y)) {
removeMovieClip("");
}
}
}
Instance of Symbol 39 MovieClip "duplicator" in Frame 25
onClipEvent (load) {
function nextLevel() {
val = new Array();
diff = 0;
while (difficulty >= diff) {
val[diff] = (diff * 2) * delta;
diff++;
}
trace(difficulty);
}
i = 0;
ii = 0;
delay = 0;
difficulty = 4;
delta = 100;
nextLevel();
num = 10;
max = 1000;
}
onClipEvent (enterFrame) {
function Meteors() {
ms = random(3) + 1;
duplicateMovieClip ("_root.meteor", "meteor" + ii, Number(500) + ii);
setProperty(_root["meteor" + ii], _x , x);
setProperty(_root["meteor" + ii], _y , y);
_root["meteor" + ii].xmov = ms;
_root["meteor" + ii].ymov = ms;
ii = ++ii;
duplicateMovieClip ("_root.meteor", "meteor" + ii, Number(500) + ii);
setProperty(_root["meteor" + ii], _x , x);
setProperty(_root["meteor" + ii], _y , y);
_root["meteor" + ii].xmov = -ms;
_root["meteor" + ii].ymov = -ms;
ii = ++ii;
duplicateMovieClip ("_root.meteor", "meteor" + ii, Number(500) + ii);
setProperty(_root["meteor" + ii], _x , x);
setProperty(_root["meteor" + ii], _y , y);
_root["meteor" + ii].xmov = -ms;
_root["meteor" + ii].ymov = ms;
ii = ++ii;
duplicateMovieClip ("_root.meteor", "meteor" + ii, Number(500) + ii);
setProperty(_root["meteor" + ii], _x , x);
setProperty(_root["meteor" + ii], _y , y);
_root["meteor" + ii].xmov = ms;
_root["meteor" + ii].ymov = -ms;
ii = ++ii;
}
delay = ++delay;
k = -1;
while (num >= (++k)) {
if (val[k] == delay) {
side = random(4);
if (side == 0) {
duplicateMovieClip ("_root.asteroid", "asteroid" + i, 1000 + i);
_root["asteroid" + i]._x = random(250) + 125;
_root["asteroid" + i]._y = (-this._width) / 2;
_root["asteroid" + i].xmov = random(3) + 1;
_root["asteroid" + i].ymov = random(4) + 1;
_root["asteroid" + i].rot = random(4) - 2;
i = ++i;
} else if (side == 1) {
duplicateMovieClip ("_root.asteroid", "asteroid" + i, 1000 + i);
_root["asteroid" + i]._x = random(250) + 125;
_root["asteroid" + i]._y = 400 + (this._width / 2);
_root["asteroid" + i].xmov = random(3) + 1;
_root["asteroid" + i].ymov = -1 * (random(4) + 1);
_root["asteroid" + i].rot = random(4) - 2;
i = ++i;
} else if (side == 2) {
duplicateMovieClip ("_root.asteroid", "asteroid" + i, 1000 + i);
_root["asteroid" + i]._x = (-this._width) / 2;
_root["asteroid" + i]._y = random(200) + 100;
_root["asteroid" + i].xmov = random(4) + 1;
_root["asteroid" + i].ymov = random(2) + 1;
_root["asteroid" + i].rot = random(4) - 2;
i = ++i;
} else {
duplicateMovieClip ("_root.asteroid", "asteroid" + i, 1000 + i);
_root["asteroid" + i]._x = 550 + (this._width / 2);
_root["asteroid" + i]._y = random(200) + 100;
_root["asteroid" + i].xmov = -1 * (random(4) + 1);
_root["asteroid" + i].ymov = random(2) + 1;
_root["asteroid" + i].rot = random(4) - 2;
i = ++i;
}
}
}
if (max < delay) {
delay = 0;
_root.statusGame.play();
num = num + 2;
difficulty = difficulty + 2;
delta = delta - 20;
nextLevel();
}
}
Instance of Symbol 44 MovieClip "meteor" in Frame 25
onClipEvent (load) {
rot = random(4) - random(4);
this.gotoAndStop(random(2) + 1);
}
onClipEvent (enterFrame) {
if (_name != "meteor") {
_x = (xmov + this._x);
_y = (ymov + this._y);
_rotation = (this._rotation + rot);
if (_root.ship.hitTest(this)) {
if (_currentframe == 1) {
_root.ship.hit();
_root.ship.little_ass.start();
_root.ship.shield.start();
_root.energy._xscale = _root.energy._xscale - 5;
} else {
_root.ship.diamond_collected.start();
_root.energy._xscale = _root.energy._xscale + 5;
_root.score++;
}
removeMovieClip("");
}
i = -1;
while ((_root.max_missiles >= (++i)) && (_currentframe == 1)) {
if (_root["missile" + i].hitTest(this)) {
_root.ship.little_ass.start();
removeMovieClip("");
_root.ak++;
}
}
}
if ((((this._x < -20) or (570 < this._x)) or (this._y < -10)) or (420 < this._y)) {
removeMovieClip("");
}
}
Instance of Symbol 53 MovieClip "enemyFire" in Frame 25
onClipEvent (enterFrame) {
if (this._name != "enemyFire") {
this._x = this._x + xmov;
this._y = this._y + ymov;
if ((((this._x < -20) or (570 < this._x)) or (this._y < -10)) or (420 < this._y)) {
removeMovieClip("");
}
if (this.hitTest(_root.ship)) {
_root.ship.play();
_root.energy._xscale = _root.energy._xscale - 10;
_root.ship.shield.start();
removeMovieClip(this);
}
}
}
Instance of Symbol 56 MovieClip "energy" in Frame 25
onClipEvent (enterFrame) {
if (0 >= this._xscale) {
this._xscale = 0;
_root.statusGame.gotoAndstop("gameOver");
_root.hiscores._visible = 1;
_root.gameover = "yes";
}
if (this._xscale >= 100) {
this._xscale = 100;
}
}
Instance of Symbol 61 MovieClip "ship" in Frame 25
onClipEvent (load) {
function hit() {
gotoAndPlay (26);
}
laser = new sound();
shield = new sound();
big_ass = new sound();
little_ass = new sound();
diamond_collected = new sound();
laser.attachsound("laser");
diamond_collected.attachsound("diamond_collected");
shield.attachsound("shield");
little_ass.attachsound("little_ass");
big_ass.attachsound("big_ass");
movie_height = 400;
movie_width = 550;
xmov = 0;
ymov = 0;
accel = 0.2;
angle_accel = 4;
angle = 0;
speed = 0;
missile_speed = 15;
max_missiles = 10;
_root.max_missiles = max_missiles;
nose = 10;
i = 0;
go_space = "yes";
}
onClipEvent (enterFrame) {
if (_root.gameover != "yes") {
if (Key.isDown(Key.UP)) {
speed = Number(speed) + accel;
flame_left.gotoAndPlay(2);
flame_right.gotoAndPlay(2);
}
if (Key.isDown(Key.DOWN)) {
speed = Number(speed) - accel;
}
if (Key.isDown(Key.RIGHT)) {
angle = Number(angle) + angle_accel;
_rotation = angle;
flame_left.gotoAndPlay(2);
}
if (Key.isDown(Key.LEFT)) {
angle = Number(angle) - angle_accel;
_rotation = angle;
flame_right.gotoAndPlay(2);
}
if (Key.isDown(Key.SPACE) && (go_space == "yes")) {
laser.start();
duplicateMovieClip ("_root.missile", "missile" + i, i);
_root["missile" + i].xmov = missile_speed * math.cos((math.pi / 180) * angle);
_root["missile" + i].ymov = missile_speed * math.sin((math.pi / 180) * angle);
setProperty(_root["missile" + i], _x , this._x + (nose * math.cos((math.pi / 180) * angle)));
setProperty(_root["missile" + i], _y , this._y + (nose * math.sin((math.pi / 180) * angle)));
setProperty(_root["missile" + i], _rotation , angle);
i = ++i;
if (max_missiles < i) {
i = 0;
}
go_space = "no";
} else if (Key.isDown(Key.SPACE) != true) {
go_space = "yes";
}
xmov = speed * math.cos((math.pi / 180) * angle);
ymov = speed * math.sin((math.pi / 180) * angle);
_x = (this._x + xmov);
_y = (this._y + ymov);
if (this._y < -10) {
_y = movie_height;
} else if ((movie_height + 10) < this._y) {
_y = 0;
} else if (this._x < -10) {
_x = movie_width;
} else if ((movie_width + 10) < this._x) {
_x = 0;
}
}
}
Instance of Symbol 63 MovieClip "enemy" in Frame 25
onClipEvent (load) {
function randomTime() {
subTime = _root.duplicator.max / (_root.duplicator.difficulty - 2);
amountTime = _root.duplicator.max + 1;
time = 0;
}
function nextTime() {
next = next + subTime;
}
function findAngle() {
adx = this._x - _root.ship._x;
ady = this._y - _root.ship._y;
check = Math.atan(ady / adx) * 57.2957795130823;
if ((_root.ship._x < this._x) && (this._y < _root.ship._y)) {
angle = check + 180;
} else if ((this._x < _root.ship._x) && (this._y < _root.ship._y)) {
angle = check;
} else if ((this._x < _root.ship._x) && (_root.ship._y < this._y)) {
angle = check;
} else {
angle = check - 180;
}
}
dup = 1;
friction = 0.98;
randomTime();
next = subTime;
livingTime = random(100) + 50;
livingStart = 0;
fire = 0;
missile_speed = 8;
nose = 10;
}
onClipEvent (enterFrame) {
time++;
if (this._name == "enemy") {
if (time >= next) {
dup++;
next = next + subTime;
duplicateMovieClip (this, "e" + dup, dup + 5000);
_root["e" + dup].gravx = random(20);
_root["e" + dup].gravy = random(20);
_root["e" + dup].target = "ship";
_root["e" + (dup - 1)].target = "farAway";
_root["e" + dup].newOne = 0;
_root["e" + (dup - 1)].newOne = 1;
side = random(4) + 1;
if (side == 0) {
_root["e" + dup]._x = random(550);
_root["e" + dup]._y = (-this._width) / 2;
} else if (side == 1) {
_root["e" + dup]._x = random(550);
_root["e" + dup]._y = 400 + (this._width / 2);
} else if (side == 2) {
_root["e" + dup]._x = (-this._width) / 2;
_root["e" + dup]._y = random(400);
} else {
_root["e" + dup]._x = 550 + (this._width / 2);
_root["e" + dup]._y = random(400);
}
if (amountTime < time) {
randomTime();
next = 0;
}
}
} else {
livingStart++;
trace("ship");
if ((livingTime < livingStart) || (newOne == 1)) {
target = "farAway";
} else {
target = "ship";
}
movex = this._x;
movey = this._y;
ex = _root[target]._x;
ey = _root[target]._y;
gravx = gravx + ((ex - movex) / 300);
gravy = gravy + ((ey - movey) / 300);
if (ex < movex) {
dirx = 1;
} else {
dirx = 0;
}
if (dirx == 1) {
if (movex < ex) {
gravx = gravx * -1;
}
} else if (ex < movex) {
gravx = gravx * -1;
}
if (ey < movey) {
diry = 1;
} else {
diry = 0;
}
if (diry == 1) {
if (movey < ey) {
gravy = gravy * -1;
}
} else if (ey < movey) {
gravy = gravy * -1;
}
this._x = this._x + gravx;
this._y = this._y + gravy;
gravx = gravx * friction;
gravy = gravy * friction;
if (this._x < -500) {
removeMovieClip(this);
}
if (this.hitTest(_root.ship)) {
_root.energy._xscale = _root.energy._xscale - 10;
_root.ship.hit();
_root.ship.shield.start();
removeMovieClip(this);
}
i = 0;
while (10 >= i) {
if (_root["missile" + i].hitTest(this)) {
_root.energy._xscale = _root.energy._xscale + 10;
removeMovieClip(this);
}
i++;
}
fire++;
if ((fire % 40) == 0) {
_root.ship.laser.start();
findAngle();
duplicateMovieClip ("_root.enemyFire", "ef" + fire, fire);
_root["ef" + fire].xmov = missile_speed * math.cos((math.pi / 180) * angle);
_root["ef" + fire].ymov = missile_speed * math.sin((math.pi / 180) * angle);
setProperty(_root["ef" + fire], _x , this._x + (nose * math.cos((math.pi / 180) * angle)));
setProperty(_root["ef" + fire], _y , this._y + (nose * math.sin((math.pi / 180) * angle)));
setProperty(_root["ef" + fire], _rotation , angle);
}
}
}
Instance of Symbol 103 MovieClip "hiscores" in Frame 25
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 113 MovieClip "looker" in Frame 25
onClipEvent (load) {
this._visible = 0;
}
Frame 27
_root.gameover = "";
ak = 0;
score = 0;
gotoAndStop (25);
Symbol 15 Button
on (release) {
getURL ("http://www.ultimatearcade.com");
}
Symbol 29 Button
on (release) {
gotoAndStop (25);
}
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 2
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 32
gotoAndStop (1);
Symbol 59 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 70 Button
on (release) {
looker._visible = 1;
}
Symbol 88 Button
on (press) {
down = "yes";
}
on (rollOut, release, dragOut, releaseOutside) {
down = "";
}
Symbol 95 Button
on (release) {
wordbank = wordbank;
my_score = _root.score;
if (submitted eq "") {
submitted = "done";
if (my_name eq "") {
my_name = "PigSkin";
}
if ((substring(wordbank, 1, 1)) ne ",") {
wordbank = ("," add wordbank) add ",";
}
comma = 0;
r = length(wordbank);
count = 1;
while (Number(r) >= Number(count)) {
if ((substring(wordbank, count, 1)) eq ",") {
comma = Number(comma) + 1;
Set("num" add comma, count);
}
count = Number(count) + 1;
}
count = 1;
while (Number(comma) >= Number(count)) {
Set("bad" add count, substring(wordbank, eval ("num" add count) + 1, (eval ("num" add (count + 1)) - eval ("num" add count)) - 1));
count = Number(count) + 1;
}
badwords = comma - 1;
short = my_name;
length = length(short);
l = 1;
while (Number(length) >= Number(l)) {
Set("w" add l, ord(substring(short, l, 1)));
if ((eval ("w" add l) >= 65) and (90 >= eval ("w" add l))) {
Set("w" add l, chr(eval ("w" add l) + 32));
} else {
Set("w" add l, chr(eval ("w" add l)));
}
l = Number(l) + 1;
}
l = 1;
short = "";
while (Number(length) >= Number(l)) {
short = short add eval ("w" add l);
l = Number(l) + 1;
}
m = 1;
n = length(my_name);
while (Number(badwords) >= Number(m)) {
if (n >= length(eval ("bad" add m))) {
v = 1;
while (((n - length(eval ("bad" add m))) + 1) >= v) {
if ((substring(short, v, length(eval ("bad" add m)))) eq eval ("bad" add m)) {
my_name = "PigSkin";
}
v = Number(v) + 1;
}
}
m = Number(m) + 1;
}
loadVariables (score_keeper, "", "POST");
gotoAndPlay (6);
}
}
Symbol 99 Button
on (release) {
_root.number = 0;
my_score = 0;
_root.time.start_date();
this._visible = 0;
this.gotoAndPlay(1);
_root.gotoandplay("clean");
}
Symbol 103 MovieClip Frame 1
function BuildList() {
view_scores = "";
num = 1;
while (Number(numplayers) >= Number(num)) {
spacer1 = substring(" ", 0, 3 - length(num));
spacer2 = substring(" ", 0, 8 - length(eval ("name_" add num)));
spacer3 = substring(" ", 0, 7 - length(eval ("score_" add num)));
view_scores = (((((view_scores add num) add spacer1) add eval ("name_" add num)) add spacer2) add spacer3) add eval ("score_" add num);
if (Number(num) != Number(numplayers)) {
view_scores = view_scores add newline;
}
num = Number(num) + 1;
}
_root.view_scores = view_scores;
_root.hi_score = score_1;
_root.hi_name = name_1;
}
numplayers = 100;
wordbank = "fuck,shit,damn,ass,pussy";
game_author = "uarcade";
game_title = "diamond_chaser";
scoring = "regular";
if (scoring == "regular") {
score_keeper = "http://www.ultimatearcade.com/cgi-bin/score_keeper.pl";
} else if (scoring == "reverse") {
my_score = 1000000000 /* 0x3B9ACA00 */;
my_name = "A Ghost";
score_keeper = _level0.hiscores;
}
loadVariables (score_keeper, "", "POST");
count = 0;
my_score = _root.my_score;
my_name = "";
Instance of Symbol 89 MovieClip in Symbol 103 MovieClip Frame 1
onClipEvent (enterFrame) {
if (down == "yes") {
currentScroll = this._parent.view_scores.scroll;
if (1 < Number(currentScroll)) {
this._parent.view_scores.scroll = currentScroll - 1;
}
}
}
Instance of Symbol 90 MovieClip in Symbol 103 MovieClip Frame 1
onClipEvent (enterFrame) {
if (down == "yes") {
currentScroll = this._parent.view_scores.scroll;
if (Number(currentScroll) < Number(this._parent.view_scores.maxscroll)) {
this._parent.view_scores.scroll = Number(currentScroll) + 1;
}
}
}
Symbol 103 MovieClip Frame 2
if (sk_done eq "yes") {
sk_done = "";
stop();
BuildList();
} else if (error ne "") {
view_scores = error;
stop();
} else {
if (Number(count) < 4) {
view_scores = "Loading Scores..";
} else if ((Number(count) >= 4) and (Number(count) < 8)) {
view_scores = "Loading Scores....";
} else if ((Number(count) >= 8) and (Number(count) < 12)) {
view_scores = "Loading Scores......";
} else if ((Number(count) >= 12) and (Number(count) < 16)) {
view_scores = "Loading Scores";
} else {
view_scores = "Loading Scores";
count = 0;
}
play();
}
count = Number(count) + 1;
Symbol 103 MovieClip Frame 3
gotoAndPlay (2);
Symbol 103 MovieClip Frame 5
stop();
Symbol 103 MovieClip Frame 6
if (sk_done eq "yes") {
sk_done = "";
gotoAndStop(Number(_currentframe) + 2);
} else if (error ne "") {
view_scores = error;
stop();
} else {
if (Number(count) < 4) {
view_scores = "Loading Scores..";
} else if ((Number(count) >= 4) and (Number(count) < 8)) {
view_scores = "Loading Scores....";
} else if ((Number(count) >= 8) and (Number(count) < 12)) {
view_scores = "Loading Scores......";
} else if ((Number(count) >= 12) and (Number(count) < 16)) {
view_scores = "Loading Scores";
} else {
view_scores = "Loading Scores";
count = 0;
}
play();
}
count = Number(count) + 1;
Symbol 103 MovieClip Frame 7
gotoAndPlay (6);
Symbol 103 MovieClip Frame 8
view_scores = "";
my_ranking = "";
num = 1;
while (Number(numplayers) >= Number(num)) {
spacer1 = substring(" ", 0, 3 - length(num));
spacer2 = substring(" ", 0, 8 - length(eval ("name_" add num)));
spacer3 = substring(" ", 0, 7 - length(eval ("score_" add num)));
view_scores = (((((view_scores add num) add spacer1) add eval ("name_" add num)) add spacer2) add spacer3) add eval ("score_" add num);
if (Number(num) != Number(numplayers)) {
view_scores = view_scores add newline;
}
num = Number(num) + 1;
}
num = 1;
while (Number(num) < Number(numplayers)) {
if ((my_score == eval ("score_" add num)) and (my_name == eval ("name_" add num))) {
my_ranking = ((("You ranked #" add num) add " out of the top ") add numplayers) add " players!!!";
}
num = Number(num) + 1;
}
if (my_ranking eq "") {
my_ranking = ("You did not rank within the top " add numplayers) add " scores.";
}
stop();
Symbol 103 MovieClip Frame 10
my_score = 1000000 /* 0x0F4240 */;
my_name = "A Ghost";
if (submitted eq "") {
submitted = "done";
if (my_name eq "") {
my_name = "JigSaw";
}
if ((substring(wordbank, 1, 1)) ne ",") {
wordbank = ("," add wordbank) add ",";
}
comma = 0;
r = length(wordbank);
count = 1;
while (Number(r) >= Number(count)) {
if ((substring(wordbank, count, 1)) eq ",") {
comma = Number(comma) + 1;
Set("num" add comma, count);
}
count = Number(count) + 1;
}
count = 1;
while (Number(comma) >= Number(count)) {
Set("bad" add count, substring(wordbank, eval ("num" add count) + 1, (eval ("num" add (count + 1)) - eval ("num" add count)) - 1));
count = Number(count) + 1;
}
badwords = comma - 1;
short = my_name;
length = length(short);
l = 1;
while (Number(length) >= Number(l)) {
Set("w" add l, ord(substring(short, l, 1)));
if ((eval ("w" add l) >= 65) and (90 >= eval ("w" add l))) {
Set("w" add l, chr(eval ("w" add l) + 32));
} else {
Set("w" add l, chr(eval ("w" add l)));
}
l = Number(l) + 1;
}
l = 1;
short = "";
while (Number(length) >= Number(l)) {
short = short add eval ("w" add l);
l = Number(l) + 1;
}
m = 1;
n = length(my_name);
while (Number(badwords) >= Number(m)) {
if (n >= length(eval ("bad" add m))) {
v = 1;
while (((n - length(eval ("bad" add m))) + 1) >= v) {
if ((substring(short, v, length(eval ("bad" add m)))) eq eval ("bad" add m)) {
my_name = "JigSaw";
}
v = Number(v) + 1;
}
}
m = Number(m) + 1;
}
loadVariables (score_keeper, "", "POST");
gotoAndPlay (6);
}
Symbol 103 MovieClip Frame 11
gotoAndPlay (1);
Symbol 112 Button
on (release) {
this._visible = 0;
}
Instance of Symbol 106 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (enterFrame) {
if (down == "yes") {
currentScroll = _root.view_scores.scroll;
if (1 < Number(currentScroll)) {
_root.view_scores.scroll = currentScroll - 1;
}
}
}
Instance of Symbol 107 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (enterFrame) {
if (down == "yes") {
currentScroll = _root.view_scores.scroll;
if (Number(currentScroll) < Number(_root.view_scores.maxscroll)) {
_root.view_scores.scroll = Number(currentScroll) + 1;
}
}
}