Frame 1
stop();
_quality = "high";
mute = 0;
Instance of Symbol 79 MovieClip in Frame 1
onClipEvent (enterFrame) {
touchMe();
}
Instance of Symbol 84 MovieClip in Frame 1
onClipEvent (load) {
loadWait = 0;
}
onClipEvent (enterFrame) {
_xscale = (100 * (_root.getBytesLoaded() / _root.getBytesTotal()));
_yscale = _xscale;
loadWait = loadWait + 1;
if ((loadWait > 2) && (_xscale == 100)) {
_parent.nextFrame();
}
}
Instance of Symbol 86 MovieClip in Frame 1
/* no clip actions */
Frame 3
function setGame(gameNum) {
_root.game = gameNum;
_quality = "low";
bonus = 1000;
if (gameNum == 1) {
if (musicStyle != "normal") {
playMusic();
}
musicStyle = "normal";
stopBossMusic();
spikers = 0;
seakers = 0;
badguys = 1;
bites = 5;
bitesEaten = 0;
levelNum = 1;
playersLeft = 3;
points = 0;
}
if (gameNum == 2) {
playBossMusic();
stopMusic();
musicStyle = "boss";
spikers = 10;
seakers = 1;
badguys = 0;
bites = 0;
bitesEaten = 0;
levelNum = 30;
playersLeft = 3;
points = 0;
}
if (gameNum == 3) {
if (musicStyle != "normal") {
playMusic();
}
musicStyle = "normal";
stopBossMusic();
playMusic();
spikers = 0;
seakers = 0;
badguys = 3;
bites = 0;
bitesEaten = 0;
levelNum = 1;
playersLeft = 3;
points = 0;
}
gotoAndStop (5);
}
function killPlayer() {
if ((_root.time > 0) && (!levelDone)) {
bonus = 1000;
engine.player.playSound("squeakDeath");
engine.player.gotoAndPlay(2);
_root.playersLeft = _root.playersLeft - 1;
if (playersLeft > 0) {
gotoAndStop (6);
} else {
gotoAndStop (7);
}
Mouse.show();
}
}
function eatBonus() {
points = points + bonus;
bonus = bonus + 1000;
}
function eatBite(size, sizePoints) {
if (comboTime > 0) {
if (sizePoints > 0) {
combo = combo + 1;
sizePoints = sizePoints * (combo + 1);
}
} else {
combo = 0;
}
if (sizePoints < 1) {
sizePoints = 1;
}
points = points + (int(sizePoints) * 10);
bitesEaten = bitesEaten + 1;
if (bitesEaten == (int(bites) + int(badguys))) {
levelDone = 1;
}
engine.player._width = engine.player._width + size;
engine.player._height = engine.player._height + size;
}
function nextLevel() {
combo = 0;
levelNum = levelNum + 1;
if (((levelNum / 4) - int(levelNum / 4)) == 0) {
playersLeft = playersLeft + 1;
}
bitesEaten = 0;
if (game == 1) {
badguys = 1 + (levelNum * 0.25);
spikers = -1 + (levelNum * 0.125);
bites = 5 + (levelNum * 0.25);
if (levelNum > 3) {
seakers = 1;
} else {
seakers = 0;
}
if (bossMusic) {
}
if (((levelNum / 4) - int(levelNum / 4)) == 0) {
playStinger();
bites = 12 + (levelNum / 2);
seakers = 1;
spikers = (levelNum / 4) - 1;
badguys = 0;
bossMusic = 1;
} else {
bossMusic = 0;
}
}
if (game == 3) {
badguys = badguys + 0.5;
}
gotoAndPlay (4);
}
stop();
Stage.showMenu = false;
levelLag = 0;
levelEndLag = 16;
combo = 0;
comboTime = 0;
MaxComboTime = 12;
_quality = "high";
function saveCookie() {
shareObj = SharedObject.getLocal("shareObj");
_root.shareObj.data.scoreArray = highScores;
_root.shareObj.data.nameArray = highScoreNames;
_root.shareObj.data.flush();
}
function loadCookie() {
shareObj = SharedObject.getLocal("shareObj");
highScores = shareObj.data.scoreArray;
highScoreNames = shareObj.data.nameArray;
}
function deleteCookie() {
_root.shareObj.data.scoreArray = highScoresXX;
_root.shareObj.data.nameArray = highScoresXX;
_root.shareObj.data.flush();
}
count = 10;
while (count > 0) {
this["Apoints" + count] = 55000 - (5000 * count);
count = count - 1;
}
count = 10;
while (count > 0) {
this["Bpoints" + count] = 55000 - (5000 * count);
count = count - 1;
}
count = 10;
while (count > 0) {
this["Cpoints" + count] = 55000 - (5000 * count);
count = count - 1;
}
loadCookie();
if (highScores[0] <= 1000) {
highScores = new Array(Apoints1, Apoints2, Apoints3, Apoints4, Apoints5, Apoints6, Apoints7, Apoints8, Apoints9, Apoints10, Bpoints1, Bpoints2, Bpoints3, Bpoints4, Bpoints5, Bpoints6, Bpoints7, Bpoints8, Bpoints9, Bpoints10, Cpoints1, Cpoints2, Cpoints3, Cpoints4, Cpoints5, Cpoints6, Cpoints7, Cpoints8, Cpoints9, Cpoints10);
highScoreNames = new Array("com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com", "com");
highScoresXX = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
function playMusic() {
if (!_root.mute) {
musicControl.gotoAndStop(2);
}
}
function stopMusic() {
if (!_root.mute) {
musicControl.gotoAndStop(10);
}
}
function playBossMusic() {
if (!_root.mute) {
bossMusicControl.gotoAndStop(2);
}
}
function stopBossMusic() {
if (!_root.mute) {
bossMusicControl.gotoAndStop(10);
}
}
function playStinger() {
if (!_root.mute) {
stingerControl.gotoAndPlay(2);
}
}
function playSound(sound, loops) {
if (!_root.mute) {
this[sound] = new Sound(this);
this[sound].attachSound("S" + sound);
eval (sound).setPan(_x / 3.2);
eval (sound).start(0, loops);
}
}
bubblesLoop.stop();
stopBossMusic();
playSound("bubblesLoop", 9000);
Instance of Symbol 79 MovieClip in Frame 3
onClipEvent (enterFrame) {
touchMe();
}
Instance of Symbol 86 MovieClip in Frame 3
/* no clip actions */
Frame 5
stop();
_quality = "low";
Mouse.hide();
levelDone = 0;
Instance of Symbol 227 MovieClip "engine" in Frame 5
onClipEvent (load) {
mouseStill = 0;
}
onClipEvent (enterFrame) {
if (_root._currentframe == 9) {
if (_root._ymouse != prevYmouse) {
mouseStill = 0;
_root.gotoAndStop(5);
}
}
if ((_root._currentframe == 5) && (_root.levelDone == 0)) {
time = time + 1;
if ((_root.game == 2) && (time > 30)) {
_root.points = _root.points + 50;
}
_root.time = int((time - 30) / 3.3) / 10;
if (_root.game == 2) {
if (((_root.time / 4) - int(_root.time / 4)) == 0) {
spawnBonusBall();
}
}
if (_root.time < 0) {
_root.time = 0;
}
count = 1;
while (count <= _root.badguys) {
this["badguy" + count].moveMe();
count = count + 1;
}
count = 1;
while (count <= _root.bites) {
this["bite" + count].eatMe();
count = count + 1;
}
count = 1;
while (count <= _root.spikers) {
this["spiker" + count].touchMe();
count = count + 1;
}
count = 1;
while (count <= _root.seakers) {
this["seaker" + count].touchMe();
count = count + 1;
}
if ((Math.abs(nextYmouse) > 240) or (Math.abs(nextXmouse) > 320)) {
if ((_root._ymouse == prevYmouse) && (_root._xmouse == prevXmouse)) {
mouseStill = mouseStill + 1;
if (mouseStill > 5) {
_root.gotoAndStop(9);
}
} else {
mouseStill = 0;
}
}
}
if ((_root._ymouse != prevYmouse) && (_root._xmouse != prevXmouse)) {
nextXmouse = _xmouse + (_root._xmouse - prevXmouse);
nextYmouse = _ymouse + (_root._ymouse - prevYmouse);
}
prevYmouse = _root._ymouse;
prevXmouse = _root._xmouse;
if (_root.comboTime > 0) {
_root.comboTime = _root.comboTime - 1;
} else if (_root._currentframe == 5) {
_root.combo = 0;
}
if (_root.levelDone) {
_root.levelLag = _root.levelLag + 1;
this["seaker" + _root.levelLag].face.eyes.gotoAndStop(2);
this["spiker" + _root.levelLag].face.eyes.gotoAndStop(2);
if (_root.levelLag > 5) {
seakerDieNum = _root.levelLag - 5;
spikerDieNum = _root.levelLag - 6;
this["seaker" + seakerDieNum].gotoAndPlay(2);
this["spiker" + spikerDieNum].gotoAndPlay(2);
}
}
if (_root.levelLag > _root.levelEndLag) {
_root.gotoAndStop(8);
_root.levelLag = 0;
_root.levelDone = 0;
}
player.moveMe();
}
Frame 6
_quality = "high";
Mouse.show();
_root.playSound("ouch");
if (_root.game == 2) {
timeSurvived = time;
} else {
timeSurvived = "";
}
Instance of Symbol 235 MovieClip "timeText" in Frame 6
onClipEvent (load) {
if (_root.game != 2) {
_visible = false;
}
}
Frame 7
function setScores() {
highscoretext._visible = false;
initialMenu._visible = false;
if (game == 1) {
count = 0;
while (count < 10) {
if (((points < highScores[count - 1]) && (points > highScores[count])) or ((count == 0) && (points > highScores[0]))) {
highscoretext._visible = true;
initialMenu._visible = true;
countdown = 9;
while (countdown > count) {
highScores[countdown] = highScores[countdown - 1];
highScoreNames[countdown] = highScoreNames[countdown - 1];
countdown = countdown - 1;
}
highScores[count] = points;
highScoreNames[count] = initials;
}
count = count + 1;
}
count = 0;
while (count < 10) {
this["points" + count] = highScores[count];
this["name" + count] = highScoreNames[count];
count = count + 1;
}
}
if (game == 2) {
count = 10;
while (count < 20) {
if (((points < highScores[count - 1]) && (points > highScores[count])) or ((count == 10) && (points > highScores[10]))) {
highscoretext._visible = true;
initialMenu._visible = true;
countdown = 19;
while (countdown > count) {
highScores[countdown] = highScores[countdown - 1];
highScoreNames[countdown] = highScoreNames[countdown - 1];
countdown = countdown - 1;
}
highScores[count] = points;
highScoreNames[count] = initials;
}
count = count + 1;
}
count = 0;
while (count < 10) {
this["points" + count] = highScores[count + 10];
this["name" + count] = highScoreNames[count + 10];
count = count + 1;
}
}
if (game == 3) {
count = 20;
while (count < 30) {
if (((points < highScores[count - 1]) && (points > highScores[count])) or ((count == 20) && (points > highScores[20]))) {
highscoretext._visible = true;
initialMenu._visible = true;
countdown = 29;
while (countdown > count) {
highScores[countdown] = highScores[countdown - 1];
highScoreNames[countdown] = highScoreNames[countdown - 1];
countdown = countdown - 1;
}
highScores[count] = points;
highScoreNames[count] = initials;
}
count = count + 1;
}
count = 0;
while (count < 10) {
this["points" + count] = highScores[count + 20];
this["name" + count] = highScoreNames[count + 20];
count = count + 1;
}
}
}
playersLeft = 0;
Mouse.show();
_quality = "high";
_root.playSound("gameover");
if (initialsMenu._visible == false) {
setScores();
}
function playAgain() {
_root.HSHubSubmitter._visible = true;
_root.disabler._visible = false;
}
System.security.allowDomain("shockwave.com", "gameblast.shockwave.com", "www.shockwave.com", "dev.shockwave.com", "stage.shockwave.com");
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = "view";
if (_root.game == 1) {
_level0.swHighScoreObject.gameId = "blobber";
_level0.swHighScoreObject.gameTitle = "Blobber!";
}
if (game == 2) {
_level0.swHighScoreObject.gameId = "blobbersurvival";
_level0.swHighScoreObject.gameTitle = "Blobber! Survival";
}
if (game == 3) {
_level0.swHighScoreObject.gameId = "blobberfoodchain";
_level0.swHighScoreObject.gameTitle = "Blobber! Food Chain";
}
_level0.swHighScoreObject.screenWidth = 640;
_level0.swHighScoreObject.screenHeight = 480;
_level0.swHighScoreObject.scoreDescriptor = "points";
_level0.swHighScoreObject.numPlayers = 1;
_level0.swHighScoreObject.player1Score = points;
_level0.swHighScoreObject.player2Score = 0;
_level0.swHighScoreObject.player3Score = 0;
_level0.swHighScoreObject.player4Score = 0;
_level0.HSHubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
Instance of Symbol 240 MovieClip "disabler" in Frame 7
onClipEvent (load) {
this.swapDepths(120001);
_visible = false;
}
Instance of Symbol 250 MovieClip "HSHubSubmitter" in Frame 7
onClipEvent (load) {
this.swapDepths(100033);
docount = false;
}
onClipEvent (enterFrame) {
if (docount) {
trycount++;
if ((_level2.getBytesTotal() == -1) && (trycount > 60)) {
docount = false;
trycount = 0;
}
}
}
Frame 8
Mouse.show();
speedBonusText = 0;
speedBonus = int(1000 / _root.time) * 10;
levelBonus = levelNum * 1000;
levelBonusText = 0;
_root.points = _root.points + (speedBonus + levelBonus);
_quality = "high";
Instance of Symbol 275 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.levelBonusText < _root.levelBonus) {
if (!beep) {
_parent.soundNode.playSound("beepLow");
beep = 1;
} else {
beep = 0;
}
_root.levelBonusText = _root.levelBonusText + 500;
} else if (_root.speedBonusText < _root.speedBonus) {
if (!beep) {
_parent.soundNode.playSound("beepHigh");
beep = 1;
} else {
beep = 0;
}
_root.levelBonusText = _root.levelBonus;
_root.speedBonusText = _root.speedBonusText + 500;
} else {
_root.speedBonusText = _root.speedBonus;
}
}
Frame 9
_quality = "high";
Mouse.show();
Instance of Symbol 286 MovieClip in Frame 9
onClipEvent (load) {
_alpha = -20;
}
onClipEvent (enterFrame) {
if (_alpha < 50) {
_alpha = (_alpha + 1);
}
}
Frame 10
Mouse.show();
_quality = "high";
Instance of Symbol 290 MovieClip in Frame 10
onClipEvent (load) {
_width = _root.engine.player._width;
_height = _root.engine.player._height;
_x = _parent._xmouse;
_y = _parent._ymouse;
}
Symbol 28 MovieClip [bubble] Frame 1
function moveMe() {
this.blendMode = 5;
prevx = _x;
prevy = _y;
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs(_x) > 320) {
xspeed = xspeed * -1;
_x = prevx;
}
if (Math.abs(_y) > 240) {
yspeed = yspeed * -1;
_y = prevy;
}
}
function playSound(sound) {
this[sound] = new Sound(this);
this[sound].attachSound("S" + sound);
eval (sound).setPan(_x / 3.2);
eval (sound).start();
}
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
}
stop();
_xscale = (300 - (50 * self));
_yscale = _xscale;
xspeed = 100 / _xscale;
yspeed = 100 / _xscale;
xspeed = xspeed + ((random(4) - 2) / 100);
yspeed = yspeed - (xspeed - yspeed);
if (random(2) == 0) {
xspeed = xspeed * -1;
}
if (random(2) == 0) {
yspeed = yspeed * -1;
}
_alpha = (4000 / _xscale);
blurMe(_xscale / 10, _yscale / 10);
Symbol 33 MovieClip Frame 1
stop();
Symbol 39 MovieClip [bonusBall] Frame 1
function moveMe() {
bounceMid.setPan(_x / 3.2);
if (_currentframe == 1) {
size = _width;
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs(_x) > 1000) {
removeMovieClip(this);
}
if (Math.abs(_y) > 600) {
removeMovieClip(this);
}
playerDifx = Math.abs(_x - _parent.player._x);
playerDify = Math.abs(_y - _parent.player._y);
playerDif = Math.sqrt((playerDifx * playerDifx) + (playerDify * playerDify));
hitDif = (_width + _parent.player._width) / 2;
if (playerDif < (hitDif - 5)) {
gotoAndPlay (2);
}
}
}
function playSound(sound) {
if (!_root.mute) {
this[sound] = new Sound(this);
this[sound].attachSound("S" + sound);
eval (sound).setPan(_x / 3.2);
eval (sound).start();
}
}
stop();
xspeed = 2 + random(4);
yspeed = 6 - xspeed;
if (_x > 0) {
xspeed = xspeed * -1;
}
if (_y > 0) {
yspeed = yspeed * -1;
}
Instance of Symbol 33 MovieClip "face" in Symbol 39 MovieClip [bonusBall] Frame 1
onClipEvent (enterFrame) {
if (_root._currentframe == 5) {
_parent.moveMe();
}
}
Symbol 39 MovieClip [bonusBall] Frame 2
_root.eatBonus();
playSound("bounceHighest");
Symbol 39 MovieClip [bonusBall] Frame 3
combo = ["+" + (_root.bonus - 1000)];
playSound("bounceMid");
Symbol 39 MovieClip [bonusBall] Frame 27
_alpha = 75;
Symbol 39 MovieClip [bonusBall] Frame 28
_alpha = 50;
Symbol 39 MovieClip [bonusBall] Frame 29
_alpha = 25;
Symbol 39 MovieClip [bonusBall] Frame 30
stop();
removeMovieClip(this);
Symbol 43 MovieClip Frame 1
stop();
Symbol 46 MovieClip [badguy] Frame 1
function moveMe() {
bounceMid.setPan(_x / 3.2);
if (_currentframe == 1) {
size = _width;
if (_parent.player._width < _width) {
this.blendMode = 1;
} else {
face.gotoAndStop(2);
this.blendMode = 8;
}
prevx = _x;
prevy = _y;
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs(_x) > (320 - (_width / 2))) {
playSound("bounceLow");
xspeed = xspeed * -1;
_x = prevx;
}
if (Math.abs(_y) > (240 - (_width / 2))) {
playSound("bounceLow");
yspeed = yspeed * -1;
_y = prevy;
}
playerDifx = Math.abs(_x - _parent.player._x);
playerDify = Math.abs(_y - _parent.player._y);
playerDif = Math.sqrt((playerDifx * playerDifx) + (playerDify * playerDify));
hitDif = (_width + _parent.player._width) / 2;
if (playerDif < (hitDif - 5)) {
if (_parent.player._width < _width) {
_root.killPlayer();
} else if (_parent.time > 25) {
gotoAndPlay (2);
}
}
}
}
function playSound(sound) {
if (!_root.mute) {
this[sound] = new Sound(this);
this[sound].attachSound("S" + sound);
eval (sound).setPan(_x / 3.2);
eval (sound).start();
}
}
stop();
if (_root.game == 1) {
xscaleOffset = 15 * self;
xscaleOffset = xscaleOffset + ((_root.levelNum / 8) * self);
}
if (_root.game == 3) {
xscaleOffset = 5 * self;
}
_width = (50 + xscaleOffset);
_height = _width;
xspeed = 500 / _width;
yspeed = 500 / _width;
xspeedOffset = random((_root.levelNum / 10) + 2);
yspeedOffset = (_root.levelNum / 10) - xspeedOffset;
xspeed = xspeed + xspeedOffset;
yspeed = yspeed + yspeedOffset;
if (_x < 0) {
xspeed = xspeed * -1;
}
if (_y < 0) {
yspeed = yspeed * -1;
}
Symbol 46 MovieClip [badguy] Frame 2
playSound("squeakEat");
_root.comboTime = _root.MaxComboTime;
_root.eatBite(xscaleOffset / self, _width);
Symbol 46 MovieClip [badguy] Frame 3
playSound("bounceLow");
if (_root.combo > 1) {
ring._visible = true;
combo = ["x" + _root.combo];
} else {
ring._visible = false;
combo = "";
}
Symbol 46 MovieClip [badguy] Frame 27
_alpha = 75;
Symbol 46 MovieClip [badguy] Frame 28
_alpha = 50;
Symbol 46 MovieClip [badguy] Frame 29
_alpha = 25;
Symbol 46 MovieClip [badguy] Frame 30
stop();
Symbol 49 MovieClip [floater] Frame 1
function eatMe() {
this.blendMode = 5;
_rotation = (_rotation + xspeed);
if (_rotation > 360) {
_rotation = (_rotation - 360);
}
prevx = _x;
prevy = _y;
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs(_x) > 320) {
xspeed = xspeed * -1;
_x = prevx;
}
if (Math.abs(_y) > 240) {
yspeed = yspeed * -1;
_y = prevy;
}
}
function playSound(sound) {
this[sound] = new Sound(this);
this[sound].attachSound("S" + sound);
eval (sound).setPan(_x / 3.2);
eval (sound).start();
}
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
}
stop();
_xscale = (5 + random(45));
_yscale = _xscale;
_alpha = _xscale;
xspeed = random(10) / 30;
yspeed = xspeed;
xspeed = xspeed + ((random(10) - 5) / 20);
yspeed = yspeed - (xspeed - yspeed);
if (random(2) == 0) {
xspeed = xspeed * -1;
}
if (random(2) == 0) {
yspeed = yspeed * -1;
}
Symbol 52 MovieClip [bite] Frame 1
function eatMe() {
if (_currentframe == 1) {
prevx = _x;
prevy = _y;
playerDifx = Math.abs(_x - _parent.player._x);
playerDify = Math.abs(_y - _parent.player._y);
playerDif = Math.sqrt((playerDifx * playerDifx) + (playerDify * playerDify));
speedStep = 0.025 + ((_root.levelNum / playerDif) * 1);
speedMax = ((_root.levelNum * 2) / playerDif) * 50;
if (playerDif > 300) {
runToward();
} else if (playerDif > 100) {
runAway();
} else if ((playerDifx < 100) or (playerDify < 100)) {
if (playerDifx > playerDify) {
flankX();
} else if (playerDifx < playerDify) {
flankY();
}
}
if (xspeed > speedMax) {
xspeed = speedMax;
} else if (xspeed < (-speedMax)) {
xspeed = -speedMax;
}
if (yspeed > speedMax) {
yspeed = speedMax;
} else if (yspeed < (-speedMax)) {
yspeed = -speedMax;
}
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs(_x) > (320 - (_width / 2))) {
playSound("bounceHigh");
xspeed = xspeed * -0.5;
_x = prevx;
}
if (Math.abs(_y) > (240 - (_width / 2))) {
playSound("bounceHigh");
yspeed = yspeed * -0.5;
_y = prevy;
}
playerDifx = Math.abs(_x - _parent.player._x);
playerDify = Math.abs(_y - _parent.player._y);
playerDif = Math.sqrt((playerDifx * playerDifx) + (playerDify * playerDify));
hitDif = (_width + _parent.player._width) / 2;
if ((playerDif < hitDif) && (_parent.time > 25)) {
gotoAndPlay (2);
}
}
}
function playSound(sound) {
if (!_root.mute) {
this[sound] = new Sound(this);
this[sound].attachSound("S" + sound);
eval (sound).setPan(_x / 3.2);
eval (sound).start();
}
}
function flankX() {
if (playerDifx < (playerDify * 2)) {
moveAwayx();
} else {
moveTowardx();
}
moveAwayy();
}
function flankY() {
if (playerDify < (playerDifx * 2)) {
moveAwayy();
} else {
moveTowardy();
}
moveAwayx();
}
function runAway() {
moveAwayy();
moveAwayx();
}
function runToward() {
moveTowardy();
moveTowardx();
}
function moveAwayx() {
if (_parent.player._x > _x) {
xspeed = xspeed - speedStep;
} else {
xspeed = xspeed + speedStep;
}
}
function moveTowardx() {
if (_parent.player._x < _x) {
xspeed = xspeed - speedStep;
} else {
xspeed = xspeed + speedStep;
}
}
function moveAwayy() {
if (_parent.player._y > _y) {
yspeed = yspeed - speedStep;
} else {
yspeed = yspeed + speedStep;
}
}
function moveTowardy() {
if (_parent.player._y < _y) {
yspeed = yspeed - speedStep;
} else {
yspeed = yspeed + speedStep;
}
}
stop();
speedStep = 0.05 + (_root.levelNum / 100);
speedMax = 1 + (_root.levelNum / 10);
xspeed = 0;
yspeed = 0;
if (random(2) == 0) {
}
if (random(2) == 0) {
}
Symbol 52 MovieClip [bite] Frame 2
playSound("bounceHighest");
_root.eatBite(_width / 2, 0);
Symbol 52 MovieClip [bite] Frame 10
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 30
gotoAndPlay (1);
Symbol 60 MovieClip [seaker] Frame 1
function touchMe() {
bounceMid.setPan(_x / 3.2);
if (_currentframe == 1) {
prevx = _x;
prevy = _y;
targetX = _parent.player._x;
targetY = _parent.player._y;
if (targetX > _x) {
xspeed = xspeed + speedStep;
if (xspeed > speedMax) {
xspeed = speedMax;
}
} else if (targetX < _x) {
xspeed = xspeed - speedStep;
if (xspeed < (-speedMax)) {
xspeed = -speedMax;
}
}
if (targetY > _y) {
yspeed = yspeed + speedStep;
if (yspeed > speedMax) {
yspeed = speedMax;
}
} else if (targetY < _y) {
yspeed = yspeed - speedStep;
if (yspeed < (-speedMax)) {
yspeed = -speedMax;
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs(_x) > (320 - (_width / 4))) {
playSound("bounceLow");
xspeed = xspeed * -0.5;
_x = prevx;
}
if (Math.abs(_y) > (240 - (_width / 4))) {
playSound("bounceLow");
yspeed = yspeed * -0.5;
_y = prevy;
}
playerDifx = Math.abs(_x - _parent.player._x);
playerDify = Math.abs(_y - _parent.player._y);
playerDif = Math.sqrt((playerDifx * playerDifx) + (playerDify * playerDify));
hitDif = (_width + _parent.player._width) / 2;
if (playerDif < (hitDif - 5)) {
_root.killPlayer();
}
}
}
function playSound(sound) {
if (!_root.mute) {
this[sound] = new Sound(this);
this[sound].attachSound("S" + sound);
eval (sound).setPan(_x / 3.2);
eval (sound).start();
}
}
speedMax = 1.5 + (_root.levelNum / 10);
speedStep = 0.025 + (_root.levelNum / 100);
xspeed = 0;
yspeed = 0;
stop();
if (((_root.levelNum / 4) - int(_root.levelNum / 4)) == 0) {
playSound("roarHigh");
speedMax = speedMax * 3.5;
speedStep = speedStep * 3.5;
_xscale = 250;
_yscale = _xscale;
}
Symbol 60 MovieClip [seaker] Frame 2
playSound("bounceLow");
Symbol 60 MovieClip [seaker] Frame 10
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 30
gotoAndPlay (1);
Symbol 68 MovieClip [spiker] Frame 1
function touchMe() {
bounceMid.setPan(_x / 3.2);
if (_currentframe == 1) {
prevx = _x;
prevy = _y;
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs(_x) > (320 - (_width / 4))) {
playSound("bounceMid");
xspeed = xspeed * -1;
_x = prevx;
}
if (Math.abs(_y) > (240 - (_width / 4))) {
playSound("bounceMid");
yspeed = yspeed * -1;
_y = prevy;
}
playerDifx = Math.abs(_x - _parent.player._x);
playerDify = Math.abs(_y - _parent.player._y);
playerDif = Math.sqrt((playerDifx * playerDifx) + (playerDify * playerDify));
hitDif = (_width + _parent.player._width) / 2;
if (playerDif < (hitDif - 5)) {
_root.killPlayer();
}
}
if (_root.game == 2) {
if (_xscale < 250) {
_xscale = (100 + (_root.time * 10));
_yscale = _xscale;
}
}
}
function playSound(sound) {
if (!_root.mute) {
this[sound] = new Sound(this);
this[sound].attachSound("S" + sound);
eval (sound).setPan(_x / 3.2);
eval (sound).start();
}
}
xspeed = _root.levelNum / 8;
yspeed = xspeed;
xspeedOffset = random((_root.levelNum / 8) + 2);
yspeedOffset = (_root.levelNum / 8) - xspeedOffset;
xspeed = xspeed + xspeedOffset;
yspeed = yspeed + yspeedOffset;
stop();
if (_x < 0) {
xspeed = xspeed * -1;
}
if (_y < 0) {
yspeed = yspeed * -1;
}
if (_root.game == 1) {
_xscale = 75;
_yscale = _xscale;
}
if (_root.game == 2) {
_xscale = 75;
_yscale = _xscale;
}
if (((_root.levelNum / 4) - int(_root.levelNum / 4)) == 0) {
xspeed = xspeed * 1.25;
yspeed = yspeed * 1.25;
}
Symbol 68 MovieClip [spiker] Frame 2
playSound("bounceMid");
Symbol 68 MovieClip [spiker] Frame 10
stop();
Symbol 79 MovieClip Frame 1
function touchMe() {
bounceMid.setPan(_x / 3.2);
prevx = _x;
prevy = _y;
targetX = _parent._xmouse;
targetY = _parent._ymouse;
if (targetX > _x) {
xspeed = xspeed + speedStep;
if (xspeed > speedMax) {
xspeed = speedMax;
}
} else if (targetX < _x) {
xspeed = xspeed - speedStep;
if (xspeed < (-speedMax)) {
xspeed = -speedMax;
}
}
if (targetY > _y) {
yspeed = yspeed + speedStep;
if (yspeed > speedMax) {
yspeed = speedMax;
}
} else if (targetY < _y) {
yspeed = yspeed - speedStep;
if (yspeed < (-speedMax)) {
yspeed = -speedMax;
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs(_x - 320) > (320 - (_width / 4))) {
playSound("bounceLow");
xspeed = xspeed * -1;
_x = prevx;
}
if (Math.abs(_y - 240) > (240 - (_width / 4))) {
playSound("bounceLow");
yspeed = yspeed * -1;
_y = prevy;
}
}
function playSound(sound) {
if (!_root.mute) {
this[sound] = new Sound(this);
this[sound].attachSound("S" + sound);
eval (sound).setPan(_x / 3.2);
eval (sound).start();
}
}
speedMax = 3;
speedStep = 0.05;
xspeed = 0;
yspeed = 0;
stop();
Symbol 82 MovieClip Frame 15
gotoAndPlay (1);
Symbol 82 MovieClip Frame 16
stop();
Symbol 86 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
}
blurMe(25, 25);
Symbol 98 Button
on (release) {
_root.nextFrame();
}
Symbol 102 Button
on (keyPress "<Space>") {
_root.nextFrame();
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 2
_root.soundeffects.playsound("note2");
Symbol 120 MovieClip Frame 3
_root.soundeffects.playsound("note4");
Symbol 120 MovieClip Frame 4
_root.soundeffects.playsound("note3");
Symbol 120 MovieClip Frame 5
_root.soundeffects.playsound("note1");
Symbol 120 MovieClip Frame 6
_root.soundeffects.playsound("note2");
Symbol 120 MovieClip Frame 7
_root.soundeffects.playsound("note1");
Symbol 120 MovieClip Frame 8
_root.soundeffects.playsound("note3");
Symbol 120 MovieClip Frame 9
_root.soundeffects.playsound("note4");
Symbol 120 MovieClip Frame 10
_root.soundeffects.playsound("note2");
Symbol 140 MovieClip Frame 1
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
}
if (_root.playedIntro) {
_root.nextFrame();
}
Symbol 140 MovieClip Frame 2
_root.playedIntro = 1;
Instance of Symbol 99 MovieClip in Symbol 140 MovieClip Frame 2
onClipEvent (load) {
blur = 40;
}
onClipEvent (enterFrame) {
_parent.blurMe(blur, blur);
blur = blur - 0.5;
}
Symbol 140 MovieClip Frame 65
blurMe(1.5, 1.5);
Instance of Symbol 99 MovieClip in Symbol 140 MovieClip Frame 155
onClipEvent (load) {
blur = 2;
}
onClipEvent (enterFrame) {
_parent.blurMe(blur, blur);
blur = blur + 0.25;
}
Symbol 141 MovieClip Frame 16
stop();
Symbol 171 MovieClip Frame 34
stop();
Symbol 174 Button
on (release) {
nextFrame();
stopAllSounds();
_root.stopMusic();
_root.stopBossMusic();
_root.mute = 1;
}
Symbol 176 Button
on (release) {
prevFrame();
_root.mute = 0;
_root.musicStyle = "off";
_root.playSound("bubblesLoop", 9000);
}
Symbol 177 MovieClip Frame 1
stop();
if (_root.mute) {
nextFrame();
}
Symbol 185 Button
on (release) {
_root.setGame(1);
}
Instance of Symbol 43 MovieClip in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 33 MovieClip in Symbol 189 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 198 Button
on (release) {
_root.setGame(2);
}
Symbol 199 Button
on (release) {
_root.setGame(3);
}
Symbol 202 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 1
_root.playSound("beeplow");
Symbol 216 MovieClip Frame 15
_root.playSound("beeplow");
Symbol 216 MovieClip Frame 30
_root.playSound("beephigh");
Symbol 216 MovieClip Frame 45
stop();
Symbol 225 Button
on (press) {
if (!levelDone) {
gotoAndStop (10);
}
}
Symbol 226 MovieClip Frame 1
function moveMe() {
if (_root._currentframe == 5) {
if (_parent.time < 30) {
this.blendMode = 8;
if (_alpha > 0) {
_alpha = 0;
} else {
_alpha = 100;
}
} else {
this.blendMode = 1;
_alpha = 100;
}
size = _width;
}
}
function playSound(sound) {
if (!_root.mute) {
this[sound] = new Sound(this);
this[sound].attachSound("S" + sound);
eval (sound).setPan(_x / 3.2);
eval (sound).start();
}
}
this.swapDepths(50);
onMouseMove = function () {
if (_root._currentframe == 5) {
difx = _x - _parent._xmouse;
dify = _y - _parent._ymouse;
_x = (_x - (difx / 3));
_y = (_y - (dify / 3));
}
};
stop();
if (_root.game == 2) {
_width = 40;
}
if (_root.game == 3) {
_width = 55;
}
_height = _width;
Symbol 226 MovieClip Frame 10
stop();
Symbol 227 MovieClip Frame 1
function spawnBonusBall() {
this.attachMovie("bonusBall", "bonusBall" + _root.time, 500 + int(_root.time));
position = random(7) + 1;
if (position == 1) {
this["bonusBall" + _root.time]._x = -400;
this["bonusBall" + _root.time]._y = -300;
}
if (position == 2) {
this["bonusBall" + _root.time]._x = -400;
this["bonusBall" + _root.time]._y = 300;
}
if (position == 3) {
this["bonusBall" + _root.time]._x = 400;
this["bonusBall" + _root.time]._y = -300;
}
if (position == 4) {
this["bonusBall" + _root.time]._x = 400;
this["bonusBall" + _root.time]._y = 300;
}
if (position == 5) {
this["bonusBall" + _root.time]._x = -400;
this["bonusBall" + _root.time]._y = 0;
}
if (position == 6) {
this["bonusBall" + _root.time]._x = 0;
this["bonusBall" + _root.time]._y = 300;
}
if (position == 7) {
this["bonusBall" + _root.time]._x = 400;
this["bonusBall" + _root.time]._y = 0;
}
if (position == 8) {
this["bonusBall" + _root.time]._x = 0;
this["bonusBall" + _root.time]._y = -300;
}
this["bonusBall" + _root.time]._xscale = 80 + (_root.bonus / 100);
this["bonusBall" + _root.time]._yscale = this["bonusBall" + _root.time]._xscale;
}
time = 0;
count = 1;
while (count <= _root.badguys) {
this.attachMovie("badguy", "badguy" + count, 200 - count);
this["badguy" + count].self = count;
this["badguy" + count]._x = random(400) - 200;
this["badguy" + count]._y = random(200) - 100;
count = count + 1;
}
count = 1;
while (count <= _root.spikers) {
this.attachMovie("spiker", "spiker" + count, 300 - count);
this["spiker" + count].self = count;
this["spiker" + count]._x = random(400) - 200;
this["spiker" + count]._y = random(200) - 100;
count = count + 1;
}
count = 1;
while (count <= _root.bites) {
this.attachMovie("bite", "bite" + count, 100 - count);
this["bite" + count]._x = random(400) - 300;
this["bite" + count]._y = random(300) - 150;
count = count + 1;
}
count = 1;
while (count <= _root.seakers) {
this.attachMovie("seaker", "seaker" + count, 400 - count);
this["seaker" + count].self = count;
this["seaker" + count]._x = random(400) - 200;
this["seaker" + count]._y = random(200) - 100;
count = count + 1;
}
spawnBonusBall();
Instance of Symbol 226 MovieClip "player" in Symbol 227 MovieClip Frame 1
/* no clip actions */
Symbol 230 Button
on (release) {
bitesEaten = 0;
gotoAndPlay (4);
}
Symbol 242 Button
on (release) {
_root.gotoAndStop(3);
_visible = false;
}
Symbol 244 Button
on (release) {
_level0.swHighScoreObject.player1Score = 0;
_root.swHighScoreObject.showTab = "view";
_visible = false;
docount = true;
_root.disabler._visible = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 246 Button
on (release) {
_level0.swHighScoreObject.player1Score = _root.points;
_root.swHighScoreObject.showTab = "submit";
_visible = false;
docount = true;
_root.disabler._visible = true;
loadMovieNum (_root.HSHubURL, 2);
_root.points = 0;
}
Symbol 267 MovieClip Frame 1
stop();
gotoAndStop(random(6) + 1);
Instance of Symbol 43 MovieClip in Symbol 267 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 43 MovieClip in Symbol 267 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 43 MovieClip in Symbol 267 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 268 MovieClip Frame 1
function playSound(sound) {
if (!_root.mute) {
this[sound] = new Sound(this);
this[sound].attachSound("S" + sound);
eval (sound).setVolume(20);
eval (sound).setPan(0);
eval (sound).start();
}
}
Symbol 275 MovieClip Frame 1
stop();
gotoAndStop(random(5) + 2);
Symbol 275 MovieClip Frame 2
_root.playSound("yippee");
Symbol 275 MovieClip Frame 3
_root.playSound("hooray");
Symbol 275 MovieClip Frame 4
_root.playSound("youdidit");
Symbol 275 MovieClip Frame 5
_root.playSound("yippeeskipee");
Symbol 275 MovieClip Frame 6
_root.playSound("yahoo");
Symbol 281 Button
on (release) {
_root.nextLevel();
}
Symbol 289 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 292 Button
on (release) {
gotoAndStop (3);
}
Symbol 302 Button
on (release) {
_root.initials = initialField.text.substr(0, 3);
_parent.setScores();
_root.saveCookie();
gotoAndStop (2);
}
Symbol 306 MovieClip Frame 1
stop();