Frame 1
play();
Frame 3
if (_framesloaded != _totalframes) {
gotoAndPlay(_currentframe - 1);
}
Frame 4
stop();
Frame 5
function addblob() {
if ((0 < blobs.length) && (random(15))) {
if (!random(2)) {
var seed = blobs[blobs.length - 1];
} else {
var seed = blobs[random(blobs.length)];
}
var sx = seed._x;
var sy = seed._y;
} else {
var sx = random(400);
var sy = 360;
}
if (sy < 20) {
gameover();
}
num++;
var newblob = ("blob" + num);
attachMovie("blob1", newblob, num);
var blobwidth = _root[newblob]._width;
var newx = (sx + (1.5 * (random(blobwidth) - (blobwidth / 2))));
if (newx < 0) {
newx = 0;
} else if (400 < newx) {
newx = 400;
}
_root[newblob].blobtype = random(blobtypes) + 1;
_root[newblob]._x = newx;
_root[newblob]._y = (sy - (blobwidth * 1.4)) + (random(5) - 2.5);
blobs.push(_root[newblob]);
}
function fire(x, y, fx, fy) {
num++;
var myfire = ("fire" + num);
attachMovie("fire", myfire, num);
_root[myfire]._x = x;
_root[myfire]._y = y;
_root[myfire].fx = fx;
_root[myfire].fy = fy;
}
function gameover() {
playing = 0;
play();
}
movieclip.prototype.remove = function () {
i = 0;
while (i < _root.blobs.length) {
if (_root.blobs[i] == this) {
_root.blobs.splice(i, 1);
this.gotoAndPlay("out");
_root.score = _root.score + 10;
_root.scoredisplay._visible = 1;
_root.ball.chance = _root.ball.chance * 0.998;
return;
}
i++;
}
};
num = 0;
score = 0;
blobtypes = 11;
delete blobs;
blobs = new Array();
stop();
Instance of Symbol 49 MovieClip "ball" in Frame 5
onClipEvent (load) {
chance = 20;
damping = 0.7;
x = _x;
y = _y;
dragsize = 60;
top = _y - 50;
bot = _y + 20;
left = _x - dragsize;
right = _x + dragsize;
}
onClipEvent (enterFrame) {
if (!dragging) {
dx = (_x - x) * damping;
dy = (_y - y) * damping;
fx = dx + (fx * damping);
fy = dy + (fy * damping);
_x = (_x - (fx * damping));
_y = (_y - (fy * damping));
}
if (!random(chance)) {
_root.addblob();
}
}
Frame 95
stop();
i = 0;
while (i < blobs.length) {
removeMovieClip(blobs[i]);
i++;
}
Symbol 7 MovieClip Frame 1
gotoAndStop(_parent.blobtype);
Symbol 9 MovieClip Frame 1
gotoAndStop(_parent.blobtype);
Symbol 10 MovieClip [blob1] Frame 3
stop();
Symbol 10 MovieClip [blob1] Frame 4
vx = random(16) - 8;
vy = random(10) - 5;
g = 1;
bottom = 350 + _height;
gotoAndPlay(_currentframe + 1);
Symbol 10 MovieClip [blob1] Frame 5
if (bottom < _y) {
removeMovieClip(this);
}
_y = (_y + vy);
_x = (_x + vx);
vy = vy + g;
Symbol 10 MovieClip [blob1] Frame 6
gotoAndPlay(_currentframe - 1);
Symbol 16 MovieClip [fire] Frame 1
fx = fx / 1.7;
fy = fy / 1.7;
Symbol 16 MovieClip [fire] Frame 2
_x = (_x - fx);
_y = (_y - fy);
i++;
Symbol 16 MovieClip [fire] Frame 3
if (10 < i) {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
Symbol 16 MovieClip [fire] Frame 4
i = 0;
while (i < _root.blobs.length) {
if (hitTest(_root.blobs[i])) {
_root.blobs[i].remove();
}
i++;
}
Symbol 16 MovieClip [fire] Frame 11
removeMovieClip(this);
Symbol 28 Button
on (press) {
getURL ("http://www.spikything.com", "_blank");
}
Symbol 37 Button
on (press) {
viewing_highscores = 0;
nextFrame();
}
Symbol 41 Button
on (press) {
viewing_highscores = 1;
gotoAndStop (95);
}
Symbol 46 Button
on (press) {
if (text._visible) {
unloadMovie ("text");
}
dragging = 1;
startDrag ("", false, left, top, right, bot);
}
on (release, releaseOutside) {
dragging = 0;
stopDrag();
_root.fire(_x, _y, _x - x, _y - y);
}
Symbol 52 MovieClip Frame 1
_visible = 0;
Symbol 59 Button
on (press, keyPress "<Enter>") {
Set("/:myname", ../:my_name);
if (../:my_name eq "") {
Set("../:my_name", "Anon");
}
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)) {
Set("../:my_name", ../:word_replacer);
}
v = Number(v) + 1;
}
}
m = Number(m) + 1;
}
tellTarget ("../") {
call("submitscore");
gotoAndPlay ("aftergame");
};
}
Symbol 60 MovieClip Frame 1
stop();
wordbank = ",jizm,tits,asshole,asswipe,arse,wank,cunt,piss,shit,shite,fuck,phuck,fuc,fuk,phuc,phuk,shitter,bollocks,bollox,bolox,fucker,fuct,motherfucker,motherfuck,bastard,shag,shagger,wanker,wanky,wanking,whore,anal,pussy,bitch,butt,buttfuck,arse,assfuck,jerk,dork,dick,snatch,";
Symbol 78 Button
on (press) {
setProperty("scrollbox", _y , getProperty("mouse", _y));
tellTarget ("scrollbox") {
call("scroll");
};
}
on (rollOver) {
startDrag ("mouse", true);
}
on (rollOut, release, dragOut, releaseOutside) {
stopDrag();
}
Symbol 83 Button
on (press) {
tellTarget ("scrollUp") {
gotoAndPlay (2);
};
}
on (release, releaseOutside) {
tellTarget ("scrollUp") {
gotoAndStop (1);
};
}
Symbol 84 Button
on (press) {
tellTarget ("scrollDown") {
gotoAndPlay (2);
};
}
on (release, releaseOutside) {
tellTarget ("scrollDown") {
gotoAndStop (1);
};
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
currentScroll = ../:numbers.scroll;
if (Number(currentScroll) < Number(../:numbers.maxscroll)) {
../:numbers.scroll = Number(currentScroll) + 1;
../:names.scroll = Number(currentScroll) + 1;
../:scores.scroll = Number(currentScroll) + 1;
}
_parent.scrollbox._y = _parent.scrollboxtop + ((_parent.numbers.scroll / _parent.numbers.maxscroll) * (_parent.scrollboxbottom - _parent.scrollboxtop));
Symbol 85 MovieClip Frame 4
gotoAndPlay (2);
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 2
currentScroll = ../:numbers.scroll;
if (1 < Number(currentScroll)) {
../:numbers.scroll = currentScroll - 1;
../:names.scroll = currentScroll - 1;
../:scores.scroll = currentScroll - 1;
}
_parent.scrollbox._y = (_parent.scrollboxtop + ((_parent.numbers.scroll / _parent.numbers.maxscroll) * (_parent.scrollboxbottom - _parent.scrollboxtop))) - 2;
Symbol 86 MovieClip Frame 3
gotoAndPlay (2);
Symbol 88 Button
on (press) {
startDrag ("", false, myx, ../:scrollboxtop, myx, ../:scrollboxbottom);
play();
}
on (release, releaseOutside) {
stopDrag();
gotoAndStop (1);
}
Symbol 89 MovieClip Frame 1
stop();
myx = _x;
scrollboxlength = int(../:scrollboxbottom - ../:scrollboxtop);
Symbol 89 MovieClip Frame 2
scrollboxy = getProperty("../scrollbox", _y);
maxscroll = ../:numbers.maxscroll;
boxpos = int(scrollboxy - ../:scrollboxtop) / scrollboxlength;
scrollposition = int(maxscroll * boxpos);
../:numbers.scroll = scrollposition;
../:names.scroll = scrollposition;
../:scores.scroll = scrollposition;
Symbol 89 MovieClip Frame 3
gotoAndPlay (2);
Symbol 91 MovieClip Frame 1
score_keeper = "/cgi-bin/highscore.pl";
game_title = "blobs";
game_author = "liam";
numplayers = 100;
count = 0;
if (((_root.bestscore >= _root.score) || (_root.viewing_highscores == 1)) || (_root.compromised == 1)) {
call("submitscore");
justlooking = 1;
gotoAndPlay (19);
} else {
stop();
word_replacer = "No Swearing!";
my_name = _root.myname;
my_score = _root.score;
_root.bestscore = _root.score;
}
Symbol 91 MovieClip Frame 19
if (sk_done eq "yes") {
sk_done = "";
gotoAndStop(Number(_currentframe) + 2);
} else if (error ne "") {
view_scores = error;
stop();
} else {
play();
}
count++;
Symbol 91 MovieClip Frame 20
gotoAndPlay (19);
Symbol 91 MovieClip Frame 21
view_scores = "";
my_ranking = "";
num = 1;
max_possible_score = 3000000 /* 0x2DC6C0 */;
while (numplayers >= num) {
if (eval ("score_" add num) < max_possible_score) {
numbers = (numbers add num) add newline;
names = (names add eval ("name_" add num)) add newline;
scores = (scores add eval ("score_" add num)) add newline;
}
num++;
}
if (justlooking != 1) {
num = 1;
while (num < numplayers) {
if ((my_score == eval ("score_" add num)) and (my_name == eval ("name_" add num))) {
my_ranking = ((("you are ranked at position " add num) add " in the top ") add numplayers) add "!";
}
num++;
}
if (my_ranking == "") {
my_ranking = ("sorry, you did not rank among the top " add numplayers) add " scores";
}
} else {
my_ranking = ("you didn't beat your previous best of " + _root.bestscore) + " ...go and try again!";
if (_root.compromised) {
my_ranking = "game performance compromised! it's not fair to submit an unfairly achieved score!";
}
if (_root.viewing_highscores) {
my_ranking == "";
}
}
my_score = 0;
stop();
scrollboxtop = getProperty("scrollbox", _y);
scrollboxbottom = getProperty("marker", _y);
Symbol 91 MovieClip Frame 27
currentScroll = scores.scroll;
if (1 < Number(currentScroll)) {
scores.scroll = currentScroll - 1;
numbers.scroll = currentScroll - 1;
names.scroll = currentScroll - 1;
}
play();
Symbol 91 MovieClip Frame 28
gotoAndPlay (27);
Symbol 91 MovieClip Frame 33
currentScroll = scores.scroll;
if (Number(currentScroll) < Number(scores.maxscroll)) {
scores.scroll = Number(currentScroll) + 1;
numbers.scroll = Number(currentScroll) + 1;
names.scroll = Number(currentScroll) + 1;
}
play();
Symbol 91 MovieClip Frame 34
gotoAndPlay (33);
Symbol 91 MovieClip Frame 49
loadVariables (score_keeper, "", "POST");
Symbol 96 Button
on (press) {
gotoAndStop (4);
}