Frame 1
OnePercent = this.getBytesTotal() / 100;
begTime = getTimer() / 1000;
asize = getBytesTotal();
fscommand ("allowscale", false);
muzonOff = false;
Frame 2
tellTarget ("Progress Bar") {
with ("Progress Bar") {
n = (getTimer() / 1000) - this.begTime;
bps = Math.round(this.getBytesLoaded() / n);
tr = (this.asize - this.getBytesLoaded()) / bps;
trround = Math.floor(tr);
trf = Math.round((tr - trround) * 100);
trem = Math.floor(tr) + (trf / 100);
}
gotoAndStop(Math.round(this.getBytesLoaded() / _parent.OnePercent));
_root.procent = Math.round(this.getBytesLoaded() / _parent.OnePercent);
};
if (this.getBytesLoaded() >= this.getBytesTotal()) {
gotoAndStop (5);
}
Frame 3
gotoAndPlay ("CheckLoaded");
Frame 5
level = 1;
score = 0;
life = 5;
scoreBonus = 0;
soundOn = true;
mySound = new Sound();
ramka.removeMovieClip();
if (!_root.muzonOff) {
_root.muzon.gotoAndStop("start");
}
stop();
Frame 6
stop();
Frame 7
count1 = 100000 /* 0x0186A0 */;
LevelName1 = [];
LevelName1[1] = "LEVEL 1: MEET SUNNY...";
LevelName1[2] = "LEVEL 2: GOLDEN FISH";
LevelName1[3] = "LEVEL 3: BIG FISH";
LevelName1[4] = "LEVEL 4: RIVAL ";
LevelName1[5] = "LEVEL 5: SHARK ATTACK";
LevelName1[6] = "LEVEL 6: BONUS LEVEL";
LevelName1[7] = "LEVEL 7: IN THE DEEPS...";
LevelName1[8] = "LEVEL 8: SHARK'S KINGDOM";
LevelName1[9] = "LEVEL 9: PIRATE TREASURES";
LevelName1[10] = "LEVEL 10: A WANDERING SHARK";
LevelName1[11] = "LEVEL 11: TIME TO RELAX";
LevelName1[12] = "LEVEL 12: THE STORM";
LevelName1[13] = "LEVEL 13: SHARK LAIR";
LevelName1[14] = "LEVEL 14: THUNDER IN THE DEEPS";
LevelName1[15] = "LEVEL 15: GREAT WHITE SHARKS";
LevelName = LevelName1[level];
if (!_root.muzonOff) {
_root.muzon.gotoAndStop("start");
}
nn = 0;
while (nn <= level) {
_root["Way" + nn]._visible = false;
nn++;
}
if (level > 15) {
gotoAndStop (8);
}
_root["Way" + (nn - 1)].onEnterFrame = function () {
if (count1 > 0) {
this._visible = false;
count1--;
if ((count1 / 4) == Math.floor(count1 / 4)) {
this._visible = true;
}
}
};
stop();
Frame 8
stop();
Frame 9
function captureKeys() {
if (Key.isDown(39)) {
ship.xmov = ship.xmov + ship.x_inc;
if (ship.xmov > 0) {
ship.clip._xscale = -100;
} else {
ship.clip._xscale = 100;
}
} else if (Key.isDown(37)) {
ship.xmov = ship.xmov - ship.x_inc;
if (ship.xmov > 0) {
ship.clip._xscale = -100;
} else {
ship.clip._xscale = 100;
}
} else {
ship.xMov = ship.xMov * decay;
}
if (ship.xmov > maxSpeed) {
ship.xmov = maxSpeed;
}
if (ship.xmov < (-maxSpeed)) {
ship.xmov = -maxSpeed;
}
if (Key.isDown(38)) {
ship.ymov = ship.ymov - ship.y_inc;
} else if (Key.isDown(40)) {
ship.ymov = ship.ymov + ship.y_inc;
} else {
ship.yMov = ship.yMov * decay;
}
if (ship.ymov > maxSpeed) {
ship.ymov = maxSpeed;
}
if (ship.ymov < (-maxSpeed)) {
ship.ymov = -maxSpeed;
}
verify();
}
function moveShip() {
ship.x = ship.x + ship.xmov;
ship.y = ship.y + ship.ymov;
ship.clip._x = ship.x;
ship.clip._y = ship.y;
verify();
}
function playSound(name) {
if (soundOn) {
soundFX.gotoAndPlay(name);
}
}
AFFTAR = "KSTUDIO.RU";
m_iMaxSmallFish = [];
m_iMaxMediumFish = [];
m_iMaxBigFish = [];
m_iMaxGiantFish = [];
speed = 4;
speedMax = 3;
depth = 0;
nose = 50;
speedFish = 5;
count = 0;
numFish = 0;
level5 = 1;
Razmer = 0;
heroRazmer = 1;
deadHero = false;
fishMaxKolvo = [];
nn = 0;
while (nn <= 4) {
fishMaxKolvo[nn] = [];
nn++;
}
_quality = "medium";
fishMaxKolvoNew = [];
nn = 0;
while (nn <= 4) {
fishMaxKolvoNew[nn] = [];
bublyaCount = 0;
fishMaxKolvoNew[nn][1] = 0;
fishMaxKolvoNew[nn][2] = 0;
fishMaxKolvoNew[nn][3] = 0;
nn++;
}
fishFood = [];
fishFood[1] = 50;
fishFood[2] = 100;
fishNaLevel = [];
nn = 0;
while (nn <= 4) {
fishNaLevel[nn] = 0;
nn++;
}
razmerOSN = 0;
heroInvisible = false;
if (!_root.muzonOff) {
_root.muzon.gotoAndStop("start");
}
rndj = Math.floor(Math.random() * 200000);
switch (level) {
case 1 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish101 = 5);
fishMaxKolvo[3][1] = (m_iMaxMediumFish101 = 2);
fishMaxKolvo[2][1] = (m_iMaxBigFish101 = 0);
fishMaxKolvo[1][1] = (m_iMaxGiantFish101 = 0);
fishMaxKolvo[4][2] = (m_iMaxSmallFish201 = 4);
fishMaxKolvo[3][2] = (m_iMaxMediumFish201 = 2);
fishMaxKolvo[2][2] = (m_iMaxBigFish201 = 2);
fishMaxKolvo[1][2] = (m_iMaxGiantFish201 = 0);
fishMaxKolvo[4][3] = (m_iMaxSmallFish301 = 3);
fishMaxKolvo[3][3] = (m_iMaxMediumFish301 = 2);
fishMaxKolvo[2][3] = (m_iMaxBigFish301 = 1);
fishMaxKolvo[1][3] = (m_iMaxGiantFish301 = 0);
fishFood[3] = (fishFood1 = 200);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun1 = 80);
m_iPerNoHunt = (m_iPerNoHunt1 = 80);
m_bIsFishMoveDirect = true;
m_fRunRad = m_fRunRad1;
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt1 = 1);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate1 = 0);
break;
case 2 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish102 = 5);
fishMaxKolvo[3][1] = (m_iMaxMediumFish102 = 2);
fishMaxKolvo[2][1] = (m_iMaxBigFish102 = 0);
fishMaxKolvo[1][1] = (m_iMaxGiantFish102 = 0);
fishMaxKolvo[4][2] = (m_iMaxSmallFish202 = 4);
fishMaxKolvo[3][2] = (m_iMaxMediumFish202 = 1);
fishMaxKolvo[2][2] = (m_iMaxBigFish202 = 2);
fishMaxKolvo[1][2] = (m_iMaxGiantFish202 = 0);
fishMaxKolvo[4][3] = (m_iMaxSmallFish302 = 5);
fishMaxKolvo[3][3] = (m_iMaxMediumFish302 = 2);
fishMaxKolvo[2][3] = (m_iMaxBigFish302 = 1);
fishMaxKolvo[1][3] = (m_iMaxGiantFish302 = 0);
fishFood[3] = (fishFood2 = 200);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun2 = 70);
m_iPerNoHunt = (m_iPerNoHunt2 = 70);
m_bIsFishMoveDirect = true;
m_fRunRad = (m_fRunRad2 = 70);
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt2 = 0);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate2 = 1);
break;
case 3 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish103 = 5);
fishMaxKolvo[3][1] = (m_iMaxMediumFish103 = 2);
fishMaxKolvo[2][1] = (m_iMaxBigFish103 = 1);
fishMaxKolvo[1][1] = (m_iMaxGiantFish103 = 1);
fishMaxKolvo[4][2] = (m_iMaxSmallFish203 = 5);
fishMaxKolvo[3][2] = (m_iMaxMediumFish203 = 2);
fishMaxKolvo[2][2] = (m_iMaxBigFish203 = 2);
fishMaxKolvo[1][2] = (m_iMaxGiantFish203 = 1);
fishMaxKolvo[4][3] = (m_iMaxSmallFish303 = 5);
fishMaxKolvo[3][3] = (m_iMaxMediumFish303 = 2);
fishMaxKolvo[2][3] = (m_iMaxBigFish303 = 2);
fishMaxKolvo[1][3] = (m_iMaxGiantFish303 = 1);
fishFood[3] = (fishFood3 = 200);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun3 = 80);
m_iPerNoHunt = (m_iPerNoHunt3 = 80);
m_bIsFishMoveDirect = true;
m_fRunRad = (m_fRunRad3 = 110);
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt3 = 0);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate3 = 0);
break;
case 4 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish104 = 3);
fishMaxKolvo[3][1] = (m_iMaxMediumFish104 = 2);
fishMaxKolvo[2][1] = (m_iMaxBigFish104 = 3);
fishMaxKolvo[1][1] = (m_iMaxGiantFish104 = 0);
fishMaxKolvo[4][2] = (m_iMaxSmallFish204 = 3);
fishMaxKolvo[3][2] = (m_iMaxMediumFish204 = 1);
fishMaxKolvo[2][2] = (m_iMaxBigFish204 = 3);
fishMaxKolvo[1][2] = (m_iMaxGiantFish204 = 0);
fishMaxKolvo[4][3] = (m_iMaxSmallFish304 = 2);
fishMaxKolvo[3][3] = (m_iMaxMediumFish304 = 2);
fishMaxKolvo[2][3] = (m_iMaxBigFish304 = 2);
fishMaxKolvo[1][3] = (m_iMaxGiantFish304 = 1);
fishFood[3] = (fishFood4 = 200);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun4 = 80);
m_iPerNoHunt = (m_iPerNoHunt4 = 80);
m_bIsFishMoveDirect = true;
m_fRunRad = (m_fRunRad4 = 120);
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt4 = 0);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate4 = 0);
break;
case 5 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish105 = 5);
fishMaxKolvo[3][1] = (m_iMaxMediumFish105 = 2);
fishMaxKolvo[2][1] = (m_iMaxBigFish105 = 1);
fishMaxKolvo[1][1] = (m_iMaxGiantFish105 = 1);
fishMaxKolvo[4][2] = (m_iMaxSmallFish205 = 5);
fishMaxKolvo[3][2] = (m_iMaxMediumFish205 = 2);
fishMaxKolvo[2][2] = (m_iMaxBigFish205 = 2);
fishMaxKolvo[1][2] = (m_iMaxGiantFish205 = 1);
fishMaxKolvo[4][3] = (m_iMaxSmallFish305 = 4);
fishMaxKolvo[3][3] = (m_iMaxMediumFish305 = 1);
fishMaxKolvo[2][3] = (m_iMaxBigFish305 = 2);
fishMaxKolvo[1][3] = (m_iMaxGiantFish305 = 1);
fishFood[3] = (fishFood5 = 200);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun5 = 100);
m_iPerNoHunt = (m_iPerNoHunt5 = 100);
m_bIsFishMoveDirect = true;
m_fRunRad = (m_fRunRad5 = 150);
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt5 = 1);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate5 = 1);
break;
case 6 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish106 = 5);
fishMaxKolvo[3][1] = (m_iMaxMediumFish106 = 0);
fishMaxKolvo[2][1] = (m_iMaxBigFish106 = 1);
fishMaxKolvo[1][1] = (m_iMaxGiantFish106 = 0);
fishMaxKolvo[4][2] = (m_iMaxSmallFish206 = 4);
fishMaxKolvo[3][2] = (m_iMaxMediumFish206 = 0);
fishMaxKolvo[2][2] = (m_iMaxBigFish206 = 1);
fishMaxKolvo[1][2] = (m_iMaxGiantFish206 = 0);
fishMaxKolvo[4][3] = (m_iMaxSmallFish306 = 5);
fishMaxKolvo[3][3] = (m_iMaxMediumFish306 = 0);
fishMaxKolvo[2][3] = (m_iMaxBigFish306 = 0);
fishMaxKolvo[1][3] = (m_iMaxGiantFish306 = 1);
fishFood[3] = (fishFood6 = 250);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun6 = 100);
m_iPerNoHunt = (m_iPerNoHunt6 = 100);
m_bIsFishMoveDirect = true;
m_fRunRad = (m_fRunRad6 = 150);
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt6 = 0);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate6 = 0);
break;
case 7 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish107 = 3);
fishMaxKolvo[3][1] = (m_iMaxMediumFish107 = 2);
fishMaxKolvo[2][1] = (m_iMaxBigFish107 = 1);
fishMaxKolvo[1][1] = (m_iMaxGiantFish107 = 0);
fishMaxKolvo[4][2] = (m_iMaxSmallFish207 = 3);
fishMaxKolvo[3][2] = (m_iMaxMediumFish207 = 2);
fishMaxKolvo[2][2] = (m_iMaxBigFish207 = 2);
fishMaxKolvo[1][2] = (m_iMaxGiantFish207 = 0);
fishMaxKolvo[4][3] = (m_iMaxSmallFish307 = 3);
fishMaxKolvo[3][3] = (m_iMaxMediumFish307 = 2);
fishMaxKolvo[2][3] = (m_iMaxBigFish307 = 1);
fishMaxKolvo[1][3] = (m_iMaxGiantFish307 = 1);
fishFood[3] = (fishFood7 = 250);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun7 = 100);
m_iPerNoHunt = (m_iPerNoHunt7 = 100);
m_bIsFishMoveDirect = true;
m_fRunRad = (m_fRunRad7 = 150);
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt7 = 0);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate7 = 0);
break;
case 8 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish108 = 3);
fishMaxKolvo[3][1] = (m_iMaxMediumFish108 = 1);
fishMaxKolvo[2][1] = (m_iMaxBigFish108 = 1);
fishMaxKolvo[1][1] = (m_iMaxGiantFish108 = 1);
fishMaxKolvo[4][2] = (m_iMaxSmallFish208 = 3);
fishMaxKolvo[3][2] = (m_iMaxMediumFish208 = 1);
fishMaxKolvo[2][2] = (m_iMaxBigFish208 = 1);
fishMaxKolvo[1][2] = (m_iMaxGiantFish208 = 1);
fishMaxKolvo[4][3] = (m_iMaxSmallFish308 = 3);
fishMaxKolvo[3][3] = (m_iMaxMediumFish308 = 1);
fishMaxKolvo[2][3] = (m_iMaxBigFish308 = 1);
fishMaxKolvo[1][3] = (m_iMaxGiantFish308 = 1);
fishFood[3] = (fishFood8 = 250);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun8 = 100);
m_iPerNoHunt = (m_iPerNoHunt8 = 100);
m_bIsFishMoveDirect = true;
m_fRunRad = (m_fRunRad8 = 150);
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt8 = 1);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate8 = 1);
break;
case 9 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish109 = 4);
fishMaxKolvo[3][1] = (m_iMaxMediumFish109 = 2);
fishMaxKolvo[2][1] = (m_iMaxBigFish109 = 1);
fishMaxKolvo[1][1] = (m_iMaxGiantFish109 = 1);
fishMaxKolvo[4][2] = (m_iMaxSmallFish209 = 4);
fishMaxKolvo[3][2] = (m_iMaxMediumFish209 = 2);
fishMaxKolvo[2][2] = (m_iMaxBigFish209 = 1);
fishMaxKolvo[1][2] = (m_iMaxGiantFish209 = 1);
fishMaxKolvo[4][3] = (m_iMaxSmallFish309 = 4);
fishMaxKolvo[3][3] = (m_iMaxMediumFish309 = 2);
fishMaxKolvo[2][3] = (m_iMaxBigFish309 = 1);
fishMaxKolvo[1][3] = (m_iMaxGiantFish309 = 1);
fishFood[3] = (fishFood9 = 250);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun9 = 100);
m_iPerNoHunt = (m_iPerNoHunt9 = 100);
m_bIsFishMoveDirect = true;
m_fRunRad = (m_fRunRad9 = 150);
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt9 = 1);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate9 = 0);
break;
case 10 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish110 = 3);
fishMaxKolvo[3][1] = (m_iMaxMediumFish110 = 3);
fishMaxKolvo[2][1] = (m_iMaxBigFish110 = 1);
fishMaxKolvo[1][1] = (m_iMaxGiantFish110 = 1);
fishMaxKolvo[4][2] = (m_iMaxSmallFish210 = 2);
fishMaxKolvo[3][2] = (m_iMaxMediumFish210 = 3);
fishMaxKolvo[2][2] = (m_iMaxBigFish210 = 2);
fishMaxKolvo[1][2] = (m_iMaxGiantFish210 = 1);
fishMaxKolvo[4][3] = (m_iMaxSmallFish310 = 3);
fishMaxKolvo[3][3] = (m_iMaxMediumFish310 = 3);
fishMaxKolvo[2][3] = (m_iMaxBigFish310 = 2);
fishMaxKolvo[1][3] = (m_iMaxGiantFish310 = 1);
fishFood[3] = (fishFood10 = 250);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun10 = 100);
m_iPerNoHunt = (m_iPerNoHunt10 = 100);
m_bIsFishMoveDirect = true;
m_fRunRad = (m_fRunRad10 = 150);
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt10 = 1);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate10 = 1);
break;
case 11 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish111 = 7);
fishMaxKolvo[3][1] = (m_iMaxMediumFish111 = 1);
fishMaxKolvo[2][1] = (m_iMaxBigFish111 = 0);
fishMaxKolvo[1][1] = (m_iMaxGiantFish111 = 0);
fishMaxKolvo[4][2] = (m_iMaxSmallFish211 = 5);
fishMaxKolvo[3][2] = (m_iMaxMediumFish211 = 2);
fishMaxKolvo[2][2] = (m_iMaxBigFish211 = 1);
fishMaxKolvo[1][2] = (m_iMaxGiantFish211 = 0);
fishMaxKolvo[4][3] = (m_iMaxSmallFish311 = 5);
fishMaxKolvo[3][3] = (m_iMaxMediumFish311 = 2);
fishMaxKolvo[2][3] = (m_iMaxBigFish311 = 1);
fishMaxKolvo[1][3] = (m_iMaxGiantFish311 = 0);
fishFood[3] = (fishFood11 = 300);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun11 = 60);
m_iPerNoHunt = (m_iPerNoHunt11 = 60);
m_bIsFishMoveDirect = true;
m_fRunRad = (m_fRunRad11 = 80);
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt11 = 0);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate11 = 1);
break;
case 12 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish112 = 4);
fishMaxKolvo[3][1] = (m_iMaxMediumFish112 = 2);
fishMaxKolvo[2][1] = (m_iMaxBigFish112 = 2);
fishMaxKolvo[1][1] = (m_iMaxGiantFish112 = 1);
fishMaxKolvo[4][2] = (m_iMaxSmallFish212 = 4);
fishMaxKolvo[3][2] = (m_iMaxMediumFish212 = 2);
fishMaxKolvo[2][2] = (m_iMaxBigFish212 = 2);
fishMaxKolvo[1][2] = (m_iMaxGiantFish212 = 1);
fishMaxKolvo[4][3] = (m_iMaxSmallFish312 = 4);
fishMaxKolvo[3][3] = (m_iMaxMediumFish312 = 2);
fishMaxKolvo[2][3] = (m_iMaxBigFish312 = 2);
fishMaxKolvo[1][3] = (m_iMaxGiantFish312 = 1);
fishFood[3] = (fishFood12 = 250);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun12 = 100);
m_iPerNoHunt = (m_iPerNoHunt12 = 100);
m_bIsFishMoveDirect = true;
m_fRunRad = (m_fRunRad12 = 150);
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt12 = 0);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate12 = 0);
break;
case 13 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish113 = 3);
fishMaxKolvo[3][1] = (m_iMaxMediumFish113 = 1);
fishMaxKolvo[2][1] = (m_iMaxBigFish113 = 0);
fishMaxKolvo[1][1] = (m_iMaxGiantFish113 = 2);
fishMaxKolvo[4][2] = (m_iMaxSmallFish213 = 2);
fishMaxKolvo[3][2] = (m_iMaxMediumFish213 = 1);
fishMaxKolvo[2][2] = (m_iMaxBigFish213 = 1);
fishMaxKolvo[1][2] = (m_iMaxGiantFish213 = 1);
fishMaxKolvo[4][3] = (m_iMaxSmallFish313 = 2);
fishMaxKolvo[3][3] = (m_iMaxMediumFish313 = 1);
fishMaxKolvo[2][3] = (m_iMaxBigFish313 = 1);
fishMaxKolvo[1][3] = (m_iMaxGiantFish313 = 1);
fishFood[3] = (fishFood13 = 250);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun13 = 100);
m_iPerNoHunt = (m_iPerNoHunt13 = 100);
m_bIsFishMoveDirect = true;
m_fRunRad = (m_fRunRad13 = 150);
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt13 = 1);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate13 = 0);
break;
case 14 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish114 = 4);
fishMaxKolvo[3][1] = (m_iMaxMediumFish114 = 1);
fishMaxKolvo[2][1] = (m_iMaxBigFish114 = 1);
fishMaxKolvo[1][1] = (m_iMaxGiantFish114 = 0);
fishMaxKolvo[4][2] = (m_iMaxSmallFish214 = 3);
fishMaxKolvo[3][2] = (m_iMaxMediumFish214 = 2);
fishMaxKolvo[2][2] = (m_iMaxBigFish214 = 2);
fishMaxKolvo[1][2] = (m_iMaxGiantFish214 = 1);
fishMaxKolvo[4][3] = (m_iMaxSmallFish314 = 3);
fishMaxKolvo[3][3] = (m_iMaxMediumFish314 = 2);
fishMaxKolvo[2][3] = (m_iMaxBigFish314 = 1);
fishMaxKolvo[1][3] = (m_iMaxGiantFish314 = 1);
fishFood[3] = (fishFood3 = 300);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun14 = 100);
m_iPerNoHunt = (m_iPerNoHunt14 = 100);
m_bIsFishMoveDirect = true;
m_fRunRad = (m_fRunRad14 = 150);
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt14 = 1);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate14 = 1);
break;
case 15 :
fishMaxKolvo[4][1] = (m_iMaxSmallFish115 = 2);
fishMaxKolvo[3][1] = (m_iMaxMediumFish115 = 1);
fishMaxKolvo[2][1] = (m_iMaxBigFish115 = 0);
fishMaxKolvo[1][1] = (m_iMaxGiantFish115 = 2);
fishMaxKolvo[4][2] = (m_iMaxSmallFish215 = 2);
fishMaxKolvo[3][2] = (m_iMaxMediumFish215 = 1);
fishMaxKolvo[2][2] = (m_iMaxBigFish215 = 1);
fishMaxKolvo[1][2] = (m_iMaxGiantFish215 = 2);
fishMaxKolvo[4][3] = (m_iMaxSmallFish315 = 2);
fishMaxKolvo[3][3] = (m_iMaxMediumFish315 = 1);
fishMaxKolvo[2][3] = (m_iMaxBigFish315 = 1);
fishMaxKolvo[1][3] = (m_iMaxGiantFish315 = 2);
fishFood[3] = (fishFood15 = 300);
RazmerStep = fishFood[3] / 100;
m_iPerNoRun = (m_iPerNoRun15 = 100);
m_iPerNoHunt = (m_iPerNoHunt15 = 100);
m_bIsFishMoveDirect = true;
m_fRunRad = (m_fRunRad15 = 150);
m_iPerToCreateFishUp = 20;
m_iPerToCreateShakeUp = -1;
m_iPerShakeHunt = (m_iPerShakeHunt15 = 1);
m_iPerSingleFish = 80;
m_bIsBonusGenerate = (m_bIsBonusGenerate15 = 0);
}
ship = {};
ship.xmov = 0;
ship.ymov = 0;
ship.angle = 0;
ship.clip = _root.hero;
ship.speed = 1;
ship.x = ship.clip._x;
ship.y = ship.clip._y;
decay = 0.94;
depth = 0;
speed = 5;
maxSpeed = 12;
ship.x_inc = ship.speed;
ship.y_inc = ship.speed;
_root.Ugolz = function (namez, angl) {
updateAfterEvent();
_root[namez].ugol = angl;
angl = (angl * 180) / Math.PI;
_root[namez].xmov = speed * Math.cos(angl);
_root[namez].ymov = speed * Math.sin(angl);
};
_root.UgolHero = function (namez9) {
updateAfterEvent();
xdiff = _root[namez9]._x - _root.xHero;
ydiff = _root[namez9]._y - _root.yHero;
angleHero1 = Math.atan2(ydiff, xdiff);
angleHero1 = (angleHero1 * 180) / Math.PI;
_root[namez9].xmov = _root[namez9].speed * Math.cos(angleHero1);
_root[namez9].ymov = _root[namez9].speed * Math.sin(angleHero1);
};
_root.random100 = function (rnt, rnt2) {
rnt = Math.random() * rnt;
if (rnt2 < rnt) {
return(true);
}
};
_root.randomz = function (rotz) {
return((angle = ((Math.random() * 30) - 15) + rotz));
};
_root.randomz2 = function (rotz) {
return((angle = ((Math.random() * 50) - 25) + rotz));
};
_root.Rasstoyanie = function (namez5) {
var _local2 = Math.abs(_root[namez5]._x - _root.xHero);
var _local3 = Math.abs(_root[namez5]._y - _root.yHero);
var _local5 = Math.sqrt((_local2 * _local2) + (_local3 * _local3));
if ((_local2 < 200) && (_local3 < 200)) {
return(true);
}
};
_root.moveToDot = function (namez) {
var _local3 = _root[namez]._x - _root.hero._x;
var _local2 = _root[namez]._y - _root.hero._y;
var _local5 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
_root[namez].xMov = (_local3 / _local5) * 5;
_root[namez].yMov = (_local2 / _local5) * 5;
};
_root.initEnemy = function (fishNew) {
var _local3 = Math.floor(Math.random() * 9) + 1;
fishNew5 = fishNew;
if ((_local3 < 2) && (fishNew > 1)) {
_local3 = 2;
angle5 = randomz(90);
var _local7 = (Math.random() * 530) + 10;
var _local6 = -90;
} else if (_local3 > 5) {
_local3 = 2;
angle5 = randomz(0);
var _local7 = -90;
var _local6 = (Math.random() * 360) + 20;
} else {
_local3 = 1;
angle5 = randomz(180);
var _local7 = 640;
var _local6 = (Math.random() * 360) + 20;
}
angle = (angle5 * Math.PI) / 180;
depth++;
name1 = "projectile" + depth;
if (depth > 40) {
depth = 0;
}
EndFishRnd = false;
if (fishNew < 2) {
speed = 5;
} else {
speed = Math.floor(Math.random() * speedMax) + 1;
}
_root.attachMovie("projectile", name1, _root.depth);
if ((fishNew > 3) && (m_bIsBonusGenerate)) {
var _local9 = Math.floor(Math.random() * 9) + 1;
if (_local9 > 7) {
fishNew5 = 5;
}
}
_root[name1].gotoAndStop(fishNew5);
if (fishNew5 > 4) {
_root[name1].bonustip = 1;
_root[name1].bonusfish.gotoAndStop(_root[name1].bonustip);
}
if ((fishNew5 == 4) && ((score - scoreBonus) > 399)) {
_root[name1].bonustip = 2;
scoreBonus = score;
_root[name1].gotoAndStop(5);
_root[name1].bonusfish.gotoAndStop(_root[name1].bonustip);
}
_root[name1].namz = name1;
_root[name1].speed = speed;
_root[name1]._x = _local7;
_root[name1]._y = _local6;
_root[name1].CountEvent = (Math.random() * 50) + 50;
_root[name1].otbit = (_root[name1].popal = false);
_root[name1].real = true;
_root[name1].countPresled = 0;
_root[name1].beginPresled = true;
_root[name1].tipVrag = fishNew;
_root[name1].beginPresledFish = true;
_root[name1].xmov = speed * Math.cos(angle);
_root[name1].ymov = speed * Math.sin(angle);
if (_root[name1].xmov > 0) {
_root[name1]._xscale = -100;
}
var _local5 = Math.floor(Math.random() * 100);
if (_local5 < Number(m_iPerNoRun)) {
_root[name1].Run = true;
}
if (_local5 < m_iPerNoHunt) {
_root[name1].Hunt = true;
}
var _local8 = Math.floor(Math.random() * 100);
if (_local8 < m_iPerShakeHunt) {
_root[name1].ShakeHunt = true;
}
_root[name1].onEnterFrame = function () {
if (this.tipVrag < (5 - heroRazmer)) {
this.randomiz = this.Hunt;
this.naprav = -1;
} else {
this.randomiz = this.Run;
this.naprav = 1;
}
if ((this.randomiz && (this.real)) && (((_root.hero._x < this._x) && (this.xMov < 0)) || ((_root.hero._x > this._x) && (this.xMov > 0)))) {
this.xdiff = this._x - _root.hero._x;
this.ydiff = this._y - _root.hero._y;
this.distance = Math.sqrt((this.xDiff * this.xDiff) + (this.yDiff * this.yDiff));
if (this.distance > (65 + ((5 - this.tipVrag) * 10))) {
this.otbit = false;
}
if (this.distance < 15) {
this.popal = true;
}
if (((this.distance < m_fRunRad) && (this.distance > 15)) && (!this.popal)) {
if (this.countPresled > 0) {
this.countPresled--;
} else if (this.beginPresled) {
this.countPresled = Math.floor(Math.random() * 100) + 50;
this.beginPresled = false;
} else {
this.popal = true;
}
this.xMov = ((this.xdiff / this.distance) * this.naprav) * this.speed;
this.yMov = ((this.ydiff / this.distance) * this.naprav) * this.speed;
if (this.xmov > 0) {
this._xscale = -100;
} else {
this._xscale = 100;
}
}
}
this.napravFish = -1;
if (((!this.ohotaFish) && (this.tipVrag > 1)) && (this.real)) {
this.randomFish = Math.floor(Math.random() * 40) + 1;
this.ohotaFish = true;
this.smalFish = false;
if ((_root["projectile" + this.randomFish].bonustip == 2) || (this.bonustip > 0)) {
this.smalFish = true;
this.ohotaFish4 = false;
}
if ((this.tipVrag >= _root["projectile" + this.randomFish].tipVrag) && (_root["projectile" + this.randomFish].bonustip != 2)) {
this.smalFish = true;
this.ohotaFish = false;
} else {
this.speed = 4;
}
}
if ((_root["projectile" + this.randomFish].real && (!this.smalFish)) && (this.real)) {
this.xdiff = this._x - _root["projectile" + this.randomFish]._x;
this.ydiff = this._y - _root["projectile" + this.randomFish]._y;
this.distanceFish = Math.sqrt((this.xDiff * this.xDiff) + (this.yDiff * this.yDiff));
if (this.distanceFish > (65 + ((5 - this.tipVrag) * 10))) {
this.otbitFish = false;
}
if (this.distanceFish < 15) {
this.otbitFish = true;
}
if (((this.distanceFish < 150) && (this.distanceFish > 15)) && (!this.popalFish)) {
if (this.countPresledFish > 0) {
this.countPresledFish--;
} else if (this.beginPresledFish) {
this.countPresledFish = Math.floor(Math.random() * 1000) + 50;
this.beginPresledFish = false;
} else {
this.popalFish = true;
}
if (this.zont.hitTest(_root["projectile" + this.randomFish])) {
this.wayF = _root["projectile" + this.randomFish];
this.wayF.real = false;
this.speed = this.speed - 2;
this.wayF.naprav = 0;
this.wayF.Hunt = false;
this.wayF.run = false;
this.wayF.otbit = true;
this.wayF.xmov = 0;
this.wayF.ymov = 0;
fishMaxKolvoNew[this.wayF.tipVrag][heroRazmer]--;
playSound("eat");
this.wayF.gotoAndPlay("final");
}
this.xMov = ((this.xdiff / this.distanceFish) * this.napravFish) * this.speed;
this.yMov = ((this.ydiff / this.distanceFish) * this.napravFish) * this.speed;
if (this.xmov > 0) {
this._xscale = -100;
} else {
this._xscale = 100;
}
}
}
this.CountEvent--;
if (this.CountEvent < 1) {
this.CountEvent = (Math.random() * 50) + 50;
if (this.xMov > 0) {
this.angle5 = randomz2(0);
} else {
this.angle5 = randomz2(180);
}
this.angle = (this.angle5 * Math.PI) / 180;
this.xmov = this.speed * Math.cos(this.angle);
this.ymov = this.speed * Math.sin(this.angle);
}
this._x = this._x + this.xmov;
this._y = this._y + this.ymov;
if (this.tipVrag < 2) {
this.nnn = 0;
while (this.nnn <= 40) {
this.wayF2 = _root["projectile" + this.nnn];
if ((this.zont.hitTest(this.wayF2) && (this.wayF2.tipVrag > 1)) && (this.wayF2.real)) {
this.wayF2.real = false;
this.wayF2.naprav = 0;
this.wayF2.Hunt = false;
this.wayF2.run = false;
this.wayF2.otbit = true;
this.wayF2.xmov = 0;
this.wayF2.ymov = 0;
fishMaxKolvoNew[this.wayF2.tipVrag][heroRazmer]--;
playSound("eat");
this.wayF2.gotoAndPlay("final");
}
this.nnn++;
}
}
if ((((this._y > 550) || (this._y < -100)) || (this._x > 650)) || (this._x < -100)) {
fishMaxKolvoNew[this.tipVrag][heroRazmer]--;
this.removeMovieClip();
}
if ((this.tipVrag < (5 - heroRazmer)) && (!deadHero)) {
if ((this.zont.hitTest(_root.hero) && (!this.otbit)) && (!heroInvisible)) {
life = life - 1;
this.otbit = true;
heroInvisible = true;
if (life < 1) {
playSound("Die");
gotoAndStop (10);
}
playSound("Die");
ship.xmov = 0;
ship.ymov = 0;
countHeroDie = 80;
if (razmer > 66) {
razmer = 67;
razmerOSN = (fishFood[3] * 2) / 3;
liniya();
} else if (razmer > 33) {
razmer = 34;
razmerOSN = fishFood[3] / 3;
liniya();
} else if (razmer > 0) {
razmer = 1;
razmerOSN = 0;
liniya();
}
_root.deadHero = true;
hero.gotoAndPlay("final");
}
} else if (this.hitTest(_root.hero.zont) && (!this.otbit)) {
this.otbit = true;
this.real = false;
playSound("eat");
if (this.bonustip == 1) {
score = score + 40;
} else if (this.bonustip == 2) {
life++;
}
razmerOSN = razmerOSN + (((5 - this.tipVrag) * 10) / heroRazmer);
fishNaLevel[this.tipVrag]++;
Razmer = Razmer + ((((5 - this.tipVrag) * 10) / heroRazmer) / RazmerStep);
if (razmer > 99) {
level++;
gotoAndStop (11);
liniya();
nn = 0;
while (nn <= 50) {
_root["projectile" + nn].removeMovieClip();
nn++;
}
} else if ((razmer > 66) && (heroRazmer < 3)) {
playSound("grow");
heroRazmer = 3;
hero.gotoAndStop(3);
yummy.gotoAndPlay(40);
newRazmerFish();
} else if ((razmer > 33) && (heroRazmer < 2)) {
heroRazmer = 2;
playSound("grow");
hero.gotoAndStop(2);
yummy.gotoAndPlay(20);
newRazmerFish();
}
fishMaxKolvoNew[this.tipVrag][heroRazmer]--;
liniya();
this.xmov = 0;
this.ymov = 0;
this.gotoAndPlay("final");
score = score + ((5 - this.tipVrag) * 10);
}
};
};
newRazmerFish = function () {
nf = 0;
while (nf <= 4) {
fishMaxKolvoNew[nf][heroRazmer] = fishMaxKolvoNew[nf][heroRazmer - 1];
nf++;
}
};
liniya = function () {
linea.kvadro._x = (razmer * 1.55) - 96;
};
verify = function () {
if (ship.clip._y < 10) {
ship.clip._y = (ship.y = 10);
ship.ymov = 0;
}
if (ship.clip._y > 390) {
ship.clip._y = (ship.y = 390);
ship.ymov = 0;
}
if (ship.clip._x < 10) {
ship.clip._x = (ship.x = 10);
ship.xmov = 0;
}
if (ship.clip._x > 540) {
ship.clip._x = (ship.x = 540);
ship.xmov = 0;
}
};
toMouse = function () {
speedM = 0.2;
x = _root.hero._x;
y = _root.hero._y;
xm = _root._xmouse;
ym = _root._ymouse;
_root.hero._x = x + ((xm - x) * speedM);
_root.hero._y = y + ((ym - y) * speedM);
if ((xm - x) < 0) {
_root.hero._xscale = 100;
}
if ((xm - x) > 0) {
_root.hero._xscale = -100;
}
verify();
};
_root.hero.onEnterFrame = function () {
updateAfterEvent();
if (bublyaCount < 1) {
bublyaCount = Math.floor(Math.random() * 30) + 50;
var _local3 = _root.attachMovie("bublya", "bublya", 128);
_local3._x = (Math.random() * 520) + 10;
_local3._y = 420;
_local3._xscale = (_local3._xscale = Math.floor(Math.random() * 30) + 60);
_local3.onEnterFrame = function () {
this._y = this._y - 7;
if (this._y < -20) {
this.removeMovieClip();
}
};
} else {
bublyaCount--;
}
if (countHeroDie > 0) {
countHeroDie--;
if (HeroMigaet) {
this._visible = false;
if ((count / 2) == Math.floor(count / 2)) {
this._visible = true;
}
}
} else {
heroInvisible = false;
HeroMigaet = false;
this._visible = true;
}
if (!deadHero) {
toMouse();
}
if (count < 1) {
count = 2;
fishNew2 = Math.floor(Math.random() * 4) + 1;
if (fishMaxKolvoNew[fishNew2][heroRazmer] < fishMaxKolvo[fishNew2][heroRazmer]) {
initEnemy(fishNew2);
EndFishRnd = true;
fishMaxKolvoNew[fishNew2][heroRazmer]++;
}
} else {
count--;
}
};
panel.perekluchatel1.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
perekluchatel1 = !perekluchatel1;
if (perekluchatel1) {
_root.mySound.setVolume(0);
soundOn = false;
this.gotoAndStop(2);
} else {
_root.mySound.setVolume(100);
soundOn = true;
this.gotoAndStop(1);
}
}
};
stop();
Instance of Symbol 92 MovieClip "ramka" in Frame 9
onClipEvent (load) {
this.swapDepths(40001);
}
Instance of Symbol 132 MovieClip "hero" in Frame 9
onClipEvent (enterFrame) {
toMouse();
}
Frame 10
count = 100;
gameover.onEnterFrame = function () {
if (count < 1) {
_root.muzon.gotoAndStop("endsound");
gotoAndStop (5);
nn = 0;
while (nn <= 50) {
_root["projectile" + nn].removeMovieClip();
nn++;
}
this.removeMovieClip();
} else {
count--;
}
};
stop();
Instance of Symbol 143 MovieClip "gameover" in Frame 10
onClipEvent (load) {
this.swapDepths(40011);
}
Frame 11
fish1 = fishNaLevel[1];
fish2 = fishNaLevel[2];
fish3 = fishNaLevel[3];
fish4 = fishNaLevel[4];
count = 140;
levelz.onEnterFrame = function () {
if (count < 1) {
gotoAndStop (7);
} else {
count--;
}
};
stop();
Symbol 17 Button
on (press) {
getURL ("http://www.justfreegames.com?r1=F&r2=FT&WT.mc_id=FlashFT", "_blank");
}
Symbol 23 Button
on (press) {
mySound.stop();
gotoAndStop (7);
}
Symbol 28 Button
on (press) {
gotoAndStop (6);
}
Symbol 33 Button
on (press) {
getURL ("http://www.justfreegames.com?r1=F&r2=FT&WT.mc_id=FlashFT", "_blank");
}
Symbol 37 Button
on (press) {
_root.muzonOff = !_root.muzonOff;
if (!_root.muzonOff) {
gotoAndStop ("on");
_root.muzon.gotoAndStop("start");
} else {
gotoAndStop ("off");
_root.muzon.gotoAndStop("endsound");
}
}
Symbol 39 MovieClip Frame 1
if (_root.mySound.getVolume() < 10) {
gotoAndStop ("off");
}
if (!_root.muzonOff) {
_root.muzon.gotoAndStop("start");
} else {
gotoAndStop ("off");
}
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 91
Symbol 45 MovieClip Frame 1393
Symbol 50 Button
on (press) {
gotoAndStop (5);
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 91
Symbol 58 MovieClip Frame 1393
Symbol 66 Button
on (press) {
gotoAndStop (9);
}
Symbol 73 Button
on (press) {
gotoAndStop (9);
}
Symbol 78 Button
on (press) {
_root.muzon.gotoAndStop("endsound");
gotoAndStop (5);
}
Symbol 82 Button
on (press) {
_root.muzon.gotoAndStop("endsound");
gotoAndStop (5);
}
Symbol 90 MovieClip Frame 19
stop();
Symbol 90 MovieClip Frame 39
stop();
Symbol 90 MovieClip Frame 59
stop();
Symbol 108 MovieClip Frame 1
stop();
Instance of Symbol 107 MovieClip in Symbol 108 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._parent.xmov > 0) {
this._xscale = -100;
} else {
this._xscale = 100;
}
}
Symbol 113 MovieClip [projectile] Frame 1
stop();
Symbol 113 MovieClip [projectile] Frame 3
stop();
Symbol 113 MovieClip [projectile] Frame 4
if (_root.m_bIsBonusGenerate) {
var rnd3 = Math.floor(Math.random() * 100);
}
Symbol 113 MovieClip [projectile] Frame 7
this._xscale = 100;
Symbol 113 MovieClip [projectile] Frame 25
this.removeMovieClip();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 4
this._xscale = 100;
Symbol 132 MovieClip Frame 20
_root.deadHero = false;
_root.HeroMigaet = true;
gotoAndStop(_root.heroRazmer);
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 5
this.gotoAndStop(1);
Symbol 139 MovieClip Frame 41
this.gotoAndStop(1);
Symbol 139 MovieClip Frame 79
this.gotoAndStop(1);
Symbol 139 MovieClip Frame 113
this.gotoAndStop(1);
Symbol 139 MovieClip Frame 147
this.gotoAndStop(1);
Symbol 139 MovieClip Frame 188
this.gotoAndStop(1);
Symbol 139 MovieClip Frame 198
this.gotoAndStop(1);