Frame 1
play();
Instance of Symbol 11 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() < total) {
} else {
_root.play();
}
}
onClipEvent (load) {
_root.stop();
total = _root.getBytesTotal();
loading = ("loading " + int(total / 1024)) + "k...";
}
Frame 3
function boingsound() {
boing.start();
}
function thunksound() {
thunk.start();
}
function moveshadow(name, me) {
with (_root[name + "shadow"]) {
_x = me._x;
scale = (me._y / 12) * (me._width / 20);
_xscale = scale;
_yscale = scale;
_alpha = (me._y / 5) - 30;
}
}
boing = new Sound();
boing.attachSound("boing");
thunk = new Sound();
thunk.attachSound("thunk");
gravity = 0.8;
playerspeed = 8;
players = 1;
jumpheight = 12;
score = 0;
bestscore = -20;
score1 = 0;
score2 = 0;
Frame 4
stop();
Frame 5
function createExtraBall() {
rand = random(998) + 1;
duplicateMovieClip ("extraball", "eball" + rand, rand);
_root["eball" + rand]._y = random(75) + 125;
_root["eball" + rand]._x = random(200) + 25;
}
stop();
score = 0;
balls = 10;
angle = -1.4;
balls = 10;
gameover = 0;
ai_move_fraction = 0.5;
ai_skill_increment = 1.02;
score1 = 0;
score2 = 0;
Instance of Symbol 47 MovieClip "player1" in Frame 5
onClipEvent (enterFrame) {
if (jumping == 1) {
yspeed = yspeed + _root.gravity;
_y = (_y + yspeed);
if (_y >= ground) {
jumping = 0;
_y = ground;
}
}
if ((Key.isDown(39) && (_x < 250)) && (!_root.gameover)) {
_x = (_x + _root.playerspeed);
if (jumping != 1) {
nextFrame();
}
} else if ((Key.isDown(37) && (10 < _x)) && (!_root.gameover)) {
_x = (_x - _root.playerspeed);
if (jumping != 1) {
nextFrame();
}
}
if (hitTest(_root.ball._x, _root.ball._y, true)) {
_root.boingsound();
eye.play();
divx = 3.142 * ((_x - _root.ball._x) / width);
cosx = Math.cos(divx / 2);
sinx = Math.sin(divx / 2);
_root.ball._y = _y - ((height * 0.5) * cosx);
_root.ball.xspeed = (_root.angle * sinx) * _root.ball.yspeed;
_root.ball.yspeed = cosx * -15;
}
_root.moveshadow(_name, this);
}
onClipEvent (keyDown) {
if (((Key.getCode() == 38) && (jumping != 1)) && (!_root.gameover)) {
tellTarget ("") {
gotoAndPlay ("jump");
};
jumping = 1;
yspeed = -_root.jumpheight;
}
}
onClipEvent (load) {
ground = _y;
jumping = 0;
width = _width / 2;
height = _height;
if (_name == "player2") {
polarity = -1;
} else {
polarity = 1;
}
}
Instance of Symbol 48 MovieClip "player2" in Frame 5
onClipEvent (enterFrame) {
function jump() {
if (jumping != 1) {
tellTarget ("") {
gotoAndPlay ("jump");
};
jumping = 1;
yspeed = -_root.jumpheight;
}
}
_root.ai();
if (jumping == 1) {
yspeed = yspeed + _root.gravity;
_y = (_y + yspeed);
if (_y >= ground) {
jumping = 0;
_y = ground;
}
}
if ((0 < ai_move) && (_x < 610)) {
_x = (_x + (_root.playerspeed * _root.ai_move_fraction));
if (jumping != 1) {
nextFrame();
}
} else if ((ai_move < 0) && (370 < _x)) {
_x = (_x - (_root.playerspeed * _root.ai_move_fraction));
if (jumping != 1) {
nextFrame();
}
}
if (hitTest(_root.ball._x, _root.ball._y, true)) {
_root.boingsound();
eye.play();
divx = 3.142 * ((_x - _root.ball._x) / width);
cosx = Math.cos(divx / 2);
sinx = Math.sin(divx / 2);
_root.ball._y = _y - ((height * 0.5) * cosx);
_root.ball.xspeed = (_root.angle * sinx) * _root.ball.yspeed;
_root.ball.yspeed = cosx * -15;
}
_root.moveshadow(_name, this);
}
onClipEvent (load) {
ground = _y;
jumping = 0;
width = _width / 2;
height = _height;
if (_name == "player2") {
polarity = -1;
} else {
polarity = 1;
}
}
Instance of Symbol 50 MovieClip in Frame 5
onClipEvent (enterFrame) {
_xscale = 100;
_yscale = 100;
_rotation = (_root.ball.xspeed * -2);
_x = _root.player2._x;
_y = _root.player2._y;
if (hitTest(_root.ball._x, _root.ball._y, true) && (-3 < _root.ball.yspeed)) {
_root.player2.jump();
}
}
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 52 MovieClip "predict" in Frame 5
onClipEvent (enterFrame) {
x = _root.ball._x;
y = _root.ball._y - 350;
sx = _root.ball.xspeed;
sy = _root.ball.yspeed;
_x = (x + ((y * sx) * -0.05));
if (370 < _x) {
divx = _x - _root.player2._x;
if (-3 < divx) {
_root.player2.ai_move = 1;
} else if (divx < -15) {
_root.player2.ai_move = -1;
} else {
_root.player2.ai_move = 0;
}
} else {
divx = 0;
}
}
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 54 MovieClip "ball" in Frame 5
onClipEvent (load) {
height = _height / 2;
_x = _root.player2._x;
xspeed = 1 - random(3);
yspeed = 0;
}
onClipEvent (enterFrame) {
x = _x;
y = _y;
if ((x < 20) || (600 < x)) {
xspeed = xspeed * -1;
_x = (_x + xspeed);
}
if (350 < y) {
_root.boingsound();
_y = 350;
yspeed = yspeed * -1;
if (_x < 310) {
_root.balls--;
_root.ballsleft.nextFrame();
_root.score2 = _root.score2 + 1;
_root.score--;
} else if (310 < _x) {
_root.createExtraBall();
_root.score1 = _root.score1 + 1;
_root.ai_move_fraction = _root.ai_move_fraction * _root.ai_skill_increment;
_root.score++;
}
}
yspeed = yspeed + _root.gravity;
_x = (_x + xspeed);
_y = (_y + yspeed);
_rotation = (_rotation + (xspeed * 2));
_xscale = 100;
_yscale = 100;
_root.moveshadow(_name, this);
}
Instance of Symbol 63 MovieClip "extraball" in Frame 5
onClipEvent (load) {
if (_name == "extraball") {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.gameover) {
removeMovieClip("");
}
if ((hitTest(_root.ball) && (_root.balls < 10)) && (!dead)) {
_root.boingsound();
_root.balls++;
_root.ballsleft.prevFrame();
dead = 1;
tellTarget ("") {
gotoAndPlay ("out");
};
}
}
Instance of Symbol 66 MovieClip "fence" in Frame 5
onClipEvent (enterFrame) {
if (hitTest(_root.ball)) {
_root.thunk.start();
balltop = _root.ball.y + _root.ball.height;
if ((balltop < top) && (0 < _root.ball.yspeed)) {
_root.ball._y = top - _root.ball.height;
_root.ball.yspeed = _root.ball.yspeed * -1;
} else if (balltop >= top) {
_root.ball.xspeed = _root.ball.xspeed * -1;
}
}
}
onClipEvent (load) {
_visible = 0;
top = _y - (_height / 2);
}
Frame 6
gameover = 1;
Frame 115
stop();
Symbol 6 MovieClip Frame 1
if (0 < random(2)) {
_xscale = (_xscale * -1);
}
gotoAndPlay(random(25) + 2);
Symbol 6 MovieClip Frame 44
gotoAndPlay(random(25) + 45);
Symbol 6 MovieClip Frame 116
gotoAndPlay(random(25) + 120);
Symbol 15 Button
on (press) {
getURL ("http://www.spikything.com", "_blank");
}
Symbol 23 Button
on (press, keyPress "<Space>") {
play();
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 1
stop();
Instance of Symbol 34 MovieClip "eye" in Symbol 47 MovieClip Frame 1
onClipEvent (load) {
x = _x;
y = _y;
}
onClipEvent (enterFrame) {
_x = (x + ((_parent.polarity * (_root.ball.x - _parent._x)) / 65));
_y = ((y + 1) + ((_root.ball.y - _parent._y) / 60));
}
Symbol 47 MovieClip Frame 4
gotoAndStop (1);
Symbol 47 MovieClip Frame 5
_root.jumpsound();
Symbol 48 MovieClip Frame 1
stop();
Instance of Symbol 34 MovieClip "eye" in Symbol 48 MovieClip Frame 1
onClipEvent (load) {
x = _x;
y = _y;
}
onClipEvent (enterFrame) {
_x = (x + ((_parent.polarity * (_root.ball.x - _parent._x)) / 65));
_y = ((y + 1) + ((_root.ball.y - _parent._y) / 60));
}
Symbol 48 MovieClip Frame 4
gotoAndStop (1);
Symbol 48 MovieClip Frame 5
_root.jumpsound();
Symbol 63 MovieClip Frame 236
stop();
removeMovieClip("");
unloadMovie ();
Symbol 63 MovieClip Frame 238
stop();
removeMovieClip("");
unloadMovie ();
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 11
_root.play();
Symbol 85 Button
on (press) {
score = 0;
gotoAndStop (5);
}
Symbol 87 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 88 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 108 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 113 Button
on (press) {
tellTarget ("scrollUp") {
gotoAndPlay (2);
};
}
on (release, releaseOutside) {
tellTarget ("scrollUp") {
gotoAndStop (1);
};
}
Symbol 114 Button
on (press) {
tellTarget ("scrollDown") {
gotoAndPlay (2);
};
}
on (release, releaseOutside) {
tellTarget ("scrollDown") {
gotoAndStop (1);
};
}
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 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;
}
setProperty("../scrollbox", _y , _parent.scrollboxtop + (_parent.numbers.scroll/../:numbers.maxscroll * (_parent.scrollboxbottom - _parent.scrollboxtop)));
Symbol 115 MovieClip Frame 4
gotoAndPlay (2);
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
currentScroll = ../:numbers.scroll;
if (1 < Number(currentScroll)) {
../:numbers.scroll = currentScroll - 1;
../:names.scroll = currentScroll - 1;
../:scores.scroll = currentScroll - 1;
}
setProperty("../scrollbox", _y , _parent.scrollboxtop + (_parent.numbers.scroll/../:numbers.maxscroll * (_parent.scrollboxbottom - _parent.scrollboxtop)));
Symbol 116 MovieClip Frame 3
gotoAndPlay (2);
Symbol 118 Button
on (press) {
startDrag ("", false, myx, ../:scrollboxtop, myx, ../:scrollboxbottom);
play();
}
on (release, releaseOutside) {
stopDrag();
gotoAndStop (1);
}
Symbol 119 MovieClip Frame 1
stop();
myx = _x;
scrollboxlength = int(../:scrollboxbottom - ../:scrollboxtop);
Symbol 119 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 119 MovieClip Frame 3
gotoAndPlay (2);
Symbol 121 MovieClip Frame 1
score_keeper = "http://www.blokey.verycool.co.uk/cgi-bin/highscore.pl";
game_title = "crabs";
game_author = "liam";
numplayers = 100;
count = 0;
if ((Number(/:bestscore) >= Number(/:score)) or (Number(/:compromised) == 1)) {
call("submitscore");
justlooking = 1;
gotoAndPlay (19);
} else {
stop();
word_replacer = "No Swearing!";
my_name = /:myname;
my_score = /:score;
Set("/:bestscore", /:score);
}
Symbol 121 MovieClip Frame 19
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 121 MovieClip Frame 20
gotoAndPlay (19);
Symbol 121 MovieClip Frame 21
unloadMovieNum (1);
view_scores = "";
my_ranking = "";
num = 1;
max_possible_score = 50000;
while (Number(numplayers) >= Number(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 = Number(num) + 1;
}
if (Number(justlooking) != 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 are ranked at position " add num) add " in the top ") add numplayers) add "!";
}
num = Number(num) + 1;
}
if (my_ranking eq "") {
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 " add /:bestscore) add " ...go and try again!";
if (Number(/:compromised) == 1) {
my_ranking = "game performance compromised! it's not fair to submit an unfairly achieved score!";
}
}
my_score = 0;
stop();
scrollboxtop = getProperty("scrollbox", _y);
scrollboxbottom = getProperty("marker", _y);
Symbol 121 MovieClip Frame 27
currentScroll = scores.scroll;
if (1 < Number(currentScroll)) {
scores.scroll = currentScroll - 1;
numbers.scroll = currentScroll - 1;
names.scroll = currentScroll - 1;
}
play();
Symbol 121 MovieClip Frame 28
gotoAndPlay (27);
Symbol 121 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 121 MovieClip Frame 34
gotoAndPlay (33);
Symbol 121 MovieClip Frame 47
loadMovieNum ((((((((("http:/ /www.spikything.com/resources/proxy.swf?url=" add score_keeper) add "&path=") add _target) add "&method=POST&game_title=") add game_title) add "&game_author=") add game_author) add "&numplayers=") add numplayers, 1);
Symbol 121 MovieClip Frame 56
loadMovieNum ((((((((((((("http:/ /www.spikything.com/resources/proxy.swf?url=" add score_keeper) add "&path=") add _target) add "&method=POST&game_title=") add game_title) add "&game_author=") add game_author) add "&numplayers=") add numplayers) add "&my_name=") add my_name) add "&my_score=") add my_score, 1);
Symbol 121 MovieClip Frame 65
loadVariables (score_keeper, "", "POST");