Frame 1
loadpercent = "0%";
fullload = loader._width;
loader._width = 0;
loadplay = false;
basevars = new LoadVars();
basevars.namegame = "Born To Be Big";
basevars.titlestart = "Start Game";
basevars.titlehelp = "Help";
basevars.titlesound = "SOUND";
basevars.sound1 = "aaaa.wav";
basevars.sound2 = "big.wav";
basevars.sound3 = "die.wav";
basevars.sound4 = "ham1.wav";
basevars.sound5 = "ham2.wav";
basevars.sound6 = "ham3.wav";
basevars.sound7 = "level.wav";
basevars.sound8 = "over.wav";
basevars.sound9 = "beep.wav";
Frame 2
loadPercent = Math.floor(((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 1) + "%";
loader._width = (Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) / 100) * fullload;
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
loadPercent = "100%";
gotoAndStop ("begin");
var i = 1;
while (i <= 9) {
_root["sound" + String(i)] = new Sound();
_root["sound" + String(i)].attachSound(basevars["sound" + String(i)]);
i++;
}
}
Frame 3
gotoAndPlay (2);
Frame 4
numlevel = 1;
score = 0;
lives = 3;
removeMovieClip(_root.getInstanceAtDepth(6000));
sound_bttn.onRelease = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
sound1.setVolume(0);
sound2.setVolume(0);
sound3.setVolume(0);
sound4.setVolume(0);
sound5.setVolume(0);
sound6.setVolume(0);
sound7.setVolume(0);
sound8.setVolume(0);
sound9.setVolume(0);
} else {
this.gotoAndStop(1);
sound1.setVolume(100);
sound2.setVolume(100);
sound3.setVolume(100);
sound4.setVolume(100);
sound5.setVolume(100);
sound6.setVolume(100);
sound7.setVolume(100);
sound8.setVolume(100);
sound9.setVolume(100);
sound9.start();
}
};
bttnRollOver = function () {
sound9.start();
};
help_bttn.onRelease = function () {
sound9.start();
nextFrame();
};
help_bttn.onRollOver = bttnRollOver;
start_game_bttn.onRelease = function () {
sound9.start();
gotoAndPlay ("wait_level");
};
start_game_bttn.onRollOver = bttnRollOver;
actions.width = 640;
actions.height = 480;
actions.killfish = 0;
actions.myscale = 3;
coef = 0.8;
Frame 5
prev_bttn.onRelease = function () {
sound9.start();
if (_currentframe > 5) {
prevFrame();
} else {
gotoAndStop (6);
}
bttn_sound.start();
};
prev_bttn.onRollOver = bttnRollOver;
next_bttn.onRelease = function () {
sound9.start();
if (_currentframe < 6) {
nextFrame();
} else {
gotoAndStop (5);
}
bttn_sound.start();
};
next_bttn.onRollOver = bttnRollOver;
back_bttn.onRelease = function () {
sound9.start();
gotoAndStop ("begin");
bttn_sound.start();
};
back_bttn.onRollOver = bttnRollOver;
overview = "<p>A small fish is born in the vast expanses of the ocean. It is full of hungry fish ready to eat the other defenseless underwater creatures.</p><p>Take control of the small fish, who must be able to stand up for itself to survive. The more this small fish it eats, the bigger and more experienced it becomes.</p><p>Get a definite number of scores for each eaten fish. You can increase your abilities, restrict movement, add or lose scores by eating other things.</p><p>The vast expanses of the ocean are open to you: Feel Freedom!</p>";
about = basevars.namegame;
Frame 9
function loadplayerfish() {
this._alpha = 0;
if (numlevel < 9) {
var _local3 = numlevel;
} else {
var _local3 = Math.round(Math.random() * 8);
if (_local3 == 0) {
_local3 = 8;
}
}
this.frm = _local3;
this.gotoAndStop(this.frm);
this.scale = _root.actions.myscale;
this._x = _root.actions.width / 2;
this._y = _root.actions.height / 2;
this._xscale = 100 / this.scale;
this._yscale = 100 / this.scale;
this.onEnterFrame = this._parent.moveplayerfish;
}
function moveplayerfish() {
if (!pauseflag) {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
if (!pauseplayer) {
var _local3 = 5;
targetX = _xmouse;
targetY = _ymouse;
if (((targetX - this._x) > 0) && (this._xscale > 0)) {
this._xscale = -this._xscale;
}
if (((targetX - this._x) < 0) && (this._xscale < 0)) {
this._xscale = -this._xscale;
}
this._x = this._x + ((targetX - this._x) / _local3);
if (((this._y + ((targetY - this._y) / _local3)) > (_root.actions.height / 10)) && ((this._y + ((targetY - this._y) / _local3)) < (_root.actions.height - (_root.actions.height / 15)))) {
this._y = this._y + ((targetY - this._y) / _local3);
}
this._parent.checkDistance();
} else if ((getTimer() - stoptimeplayer) > 5000) {
pauseplayer = !pauseplayer;
}
}
}
function checkDistance() {
if ((Math.abs(this.targetX - this._x) < 0.2) && (Math.abs(this.targetY - this._y) < 0.2)) {
this._x = this.targetX;
this._y = this.targetY;
delete this.onEnterFrame;
}
}
function reloadplayerfish() {
this._alpha = 0;
this.gotoAndStop(this.frm);
this.scale = _root.actions.myscale;
this._x = _root.actions.width / 2;
this._y = _root.actions.height / 2;
this._xscale = 100 / this.scale;
this._yscale = 100 / this.scale;
this.onEnterFrame = this._parent.moveplayerfish;
}
function loadfish() {
if (numlevel < 6) {
var _local3 = numlevel + 2;
do {
if (Math.random() < 0.3) {
this.frm = Math.round(Math.random() * 14);
if (this.frm == 0) {
this.frm = 14;
}
} else {
this.frm = Math.round(Math.random() * _local3);
if (this.frm == 0) {
this.frm = _local3;
}
}
} while (((((this.frm < 9) && (this.frm > _local3)) || (((this.frm - 8) == 1) && (fishplayer.scale == 1))) || (((this.frm - 8) == 2) && (lives == 3))) || (((this.frm - 8) == 1) && (Math.random() < 0.3)));
} else {
var _local3 = 8;
do {
if (Math.random() < 0.3) {
this.frm = Math.round(Math.random() * 14);
if (this.frm == 0) {
this.frm = 14;
}
} else {
this.frm = Math.round(Math.random() * _local3);
if (this.frm == 0) {
this.frm = _local3;
}
}
} while (((((this.frm - 8) == 1) && (fishplayer.scale == 1)) || (((this.frm - 8) == 2) && (lives == 3))) || (((this.frm - 8) == 1) && (Math.random() < 0.3)));
}
this.speed = ((Math.random() * 12) + 4) * 1.25;
this._y = (_root.actions.height / 10) + (Math.random() * (_root.actions.height - ((2 * _root.actions.height) / 10)));
if (this.frm < 9) {
this.scale = Math.round(Math.random() * 4);
if (this.scale == 0) {
this.scale = 4;
}
this.gotoAndStop(this.frm);
if (Math.random() > 0.5) {
this._x = _root.actions.width + (_root.actions.width / 2);
this._xscale = 100 / this.scale;
} else {
this._x = (-_root.actions.width) / 2;
this._xscale = -100 / this.scale;
}
this._yscale = 100 / this.scale;
this.onEnterFrame = this._parent.movefish;
} else {
this.gotoAndStop(this.frm);
if (Math.random() > 0.5) {
this._x = _root.actions.width + (_root.actions.width / 2);
this._xscale = 100;
} else {
this._x = (-_root.actions.width) / 2;
this._xscale = -100;
}
this._yscale = 100;
this.onEnterFrame = this._parent.objfish;
}
}
function movefish() {
if (!pauseflag) {
if (!pausefish) {
if (this._xscale > 0) {
this._x = this._x - this.speed;
if (this._x < ((-_root.actions.width) / 2)) {
this.onEnterFrame = this._parent.loadfish;
}
} else {
this._x = this._x + this.speed;
if (this._x > (_root.actions.width + (_root.actions.width / 2))) {
this.onEnterFrame = this._parent.loadfish;
}
}
this._parent.eatplayerfish(this);
} else if ((getTimer() - stoptimefish) > 9000) {
pausefish = !pausefish;
}
this._parent.eatfish(this);
}
}
function objfish() {
if (!pauseflag) {
if (!pausefish) {
if (this._xscale > 0) {
this._x = this._x - this.speed;
if (this._x < ((-_root.actions.width) / 2)) {
this.onEnterFrame = this._parent.loadfish;
}
} else {
this._x = this._x + this.speed;
if (this._x > (_root.actions.width + (_root.actions.width / 2))) {
this.onEnterFrame = this._parent.loadfish;
}
}
} else if ((getTimer() - stoptimefish) > 9000) {
pausefish = !pausefish;
}
this._parent.eatobj(this);
}
}
function loadfishs() {
var _local4 = 5000;
var _local5 = _root.fish_mc.duplicateMovieClip("fishplayer", _local4);
_local5.onEnterFrame = _local5._parent.loadplayerfish;
var _local2 = 1;
while (_local2 < (numlevel + 4)) {
_local4 = 2000 + _local2;
var _local3 = _root.fish_mc.duplicateMovieClip("fish" + String(_local2), _local4);
_local3.onEnterFrame = _local3._parent.loadfish;
_local2++;
}
}
time_wait = 0;
actions.label = "Level " + String(numlevel);
levelpanel = String(numlevel);
scorepanel = String(score);
mask_mc._x = 0;
mask_mc._y = 0;
_root.setMask(mask_mc);
trydead = false;
nextlevel = false;
pauseflag = true;
pauseplayer = false;
pausefish = false;
uppanel.swapDepths(6000);
_root.getInstanceAtDepth(6000).killfish_mc.gotoAndStop(1);
_root.getInstanceAtDepth(6000).lives_mc.gotoAndStop(4 - lives);
_root.getInstanceAtDepth(6000).bonus_mc.gotoAndStop(1);
eatfish = function (fish) {
if ((fish.scale > fishplayer.scale) || ((fish.frm <= fishplayer.frm) && (fish.scale >= fishplayer.scale))) {
if (fish.hitTest(fishplayer._x, fishplayer._y, true)) {
_root.actions.killfish = _root.actions.killfish + 1;
switch (3 - fishplayer.scale) {
case 0 :
sound4.start();
break;
case 1 :
sound5.start();
break;
case 2 :
sound6.start();
}
score = score + ((5 - fish.scale) * 5);
fish.onEnterFrame = fish._parent.loadfish;
if (_root.actions.killfish > 5) {
_root.actions.killfish = 0;
if (fishplayer.scale > 1) {
_root.actions.myscale = _root.actions.myscale - 1;
fishplayer.scale = _root.actions.myscale;
fishplayer._xscale = 100 / fishplayer.scale;
fishplayer._yscale = 100 / fishplayer.scale;
sound2.start();
} else {
nextlevel = true;
_root.actions.myscale = 3;
}
}
var _local3 = (_root.actions.killfish + ((3 - _root.actions.myscale) * 10)) + 1;
_root.getInstanceAtDepth(6000).killfish_mc.gotoAndStop(_local3);
}
}
};
eatobj = function (obj) {
if (obj.hitTest(fishplayer._x, fishplayer._y, true)) {
obj.onEnterFrame = obj._parent.loadfish;
switch (obj.frm - 8) {
case 1 :
if (fishplayer.scale > 1) {
_root.actions.myscale = _root.actions.myscale - 1;
fishplayer.scale = _root.actions.myscale;
fishplayer._xscale = 100 / fishplayer.scale;
fishplayer._yscale = 100 / fishplayer.scale;
sound2.start();
} else {
nextlevel = true;
_root.actions.myscale = 3;
}
var _local3 = (_root.actions.killfish + ((3 - _root.actions.myscale) * 10)) + 1;
_root.getInstanceAtDepth(6000).killfish_mc.gotoAndStop(_local3);
break;
case 2 :
if (lives < 3) {
lives = lives + 1;
_root.getInstanceAtDepth(6000).lives_mc.gotoAndStop(4 - lives);
}
break;
case 3 :
stoptimefish = getTimer();
pausefish = true;
break;
case 4 :
score = score + 50;
break;
case 5 :
stoptimeplayer = getTimer();
pauseplayer = true;
break;
case 6 :
if (score <= 50) {
score = 0;
} else {
score = score - 50;
}
}
if ((obj.frm - 8) != 6) {
switch (3 - fishplayer.scale) {
case 0 :
sound4.start();
break;
case 1 :
sound5.start();
break;
case 2 :
sound6.start();
}
} else {
sound1.start();
}
}
};
eatplayerfish = function (fish) {
if ((fish.scale < fishplayer.scale) || ((fish.frm > fishplayer.frm) && (fish.scale <= fishplayer.scale))) {
if (fishplayer.hitTest(fish._x, fish._y, true) && (fishplayer._alpha > 90)) {
switch (4 - fish.scale) {
case 1 :
sound4.start();
break;
case 2 :
sound5.start();
break;
case 3 :
sound6.start();
}
trydead = true;
}
}
};
fish_mc.stop();
loadfishs();
Frame 10
if (time_wait > 36) {
gotoAndPlay ("gogogo");
}
time_wait = time_wait + 1;
Frame 11
gotoAndPlay (10);
Frame 12
pauseflag = false;
_root.actions.label = "";
Frame 13
actions.score = String(score);
if (trydead) {
trydead = false;
pauseplayer = false;
lives--;
_root.getInstanceAtDepth(6000).lives_mc.gotoAndStop(4 - lives);
fishplayer._alpha = 0;
if (lives <= 0) {
gotoAndPlay ("game_over");
} else {
sound3.start();
fishplayer.onEnterFrame = fishplayer._parent.reloadplayerfish;
}
}
if (nextlevel) {
numlevel++;
sound7.start();
removeMovieClip(fishplayer);
var count = (numlevel + 4);
trace(count);
var j = 1;
while (j < count) {
removeMovieClip("fish" + String(j));
j++;
}
gotoAndPlay ("wait_level");
}
if (Key.isDown(27)) {
trace(numlevel);
gotoAndPlay ("game_over");
}
if (Key.isDown(80)) {
if (!pauseflag) {
_root.actions.label = "Pause";
} else {
_root.actions.label = "";
}
pauseflag = !pauseflag;
}
if (pauseplayer) {
_root.getInstanceAtDepth(6000).bonus_mc.gotoAndStop(3);
} else if (pausefish) {
_root.getInstanceAtDepth(6000).bonus_mc.gotoAndStop(2);
} else {
_root.getInstanceAtDepth(6000).bonus_mc.gotoAndStop(1);
}
Frame 14
gotoAndPlay (13);
Frame 15
time_wait = 0;
Frame 16
if (time_wait > 0) {
gotoAndPlay ("gogogo");
}
time_wait = time_wait + 1;
Frame 17
gotoAndPlay (16);
Frame 18
time_wait = 0;
Frame 19
if (time_wait > 36) {
gotoAndPlay ("wait_level");
}
time_wait = time_wait + 1;
Frame 20
gotoAndPlay (19);
Frame 21
time_wait = 0;
_root.actions.label = "Game Over";
removeMovieClip(fishplayer);
var count = (numlevel + 4);
trace(count);
var j = 1;
while (j < count) {
removeMovieClip("fish" + String(j));
j++;
}
sound8.start();
Frame 22
if (time_wait > 36) {
_root.actions.label = "";
_root.getInstanceAtDepth(6000).removeMovieClip();
gotoAndStop ("begin");
}
time_wait = time_wait + 1;
Frame 23
gotoAndPlay (22);
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 2
stop();
Symbol 60 Button
on (release) {
overview.scroll++;
}
Symbol 61 Button
on (release) {
overview.scroll--;
}