Frame 1
function MakeConstsAndVariables() {
POLYH = 25;
POLYW = 25;
NUMBERX = 15;
NUMBERY = 15;
LEFT = Key.LEFT;
RIGHT = Key.RIGHT;
UP = Key.UP;
DOWN = Key.DOWN;
FIRE = 122;
d = 5;
fish1MAXdx = 50;
fish1MINdx = 30;
fish1MAXdy = 10;
fish1MINdy = 15;
fish1mode = 0;
fish1COL = 0;
fish1Lives = 0;
fish1startscore = 20;
fish1score = 20;
fish1MAXLENGTH = 80;
fish1MINLENGTH = 30;
fish1frezetime = 20;
fish2MAXdx = 50;
fish2MINdx = 30;
fish2MAXdy = 10;
fish2MINdy = 15;
fish2mode = 0;
fish2COL = 0;
fish2Lives = 0;
fish2startscore = 20;
fish2score = 20;
fish2MAXLENGTH = 80;
fish2MINLENGTH = 30;
fish2frezetime = 40;
fish3MAXdx = 30;
fish3MINdx = 20;
fish3MAXdy = 10;
fish3MINdy = 15;
fish3mode = 0;
fish3COL = 0;
fish3Lives = 0;
fish3startscore = 10;
fish3score = 10;
fish3MAXLENGTH = 80;
fish3MINLENGTH = 30;
fish3frezetime = 40;
fish4MAXdx = 40;
fish4MINdx = 20;
fish4MAXdy = 50;
fish4MINdy = 35;
fish4mode = 0;
fish4COL = 0;
fish4Lives = 0;
fish4startscore = 40;
fish4score = 40;
fish4MAXLENGTH = 80;
fish4MINLENGTH = 30;
fish4frezetime = 20;
fish5MAXdx = 40;
fish5MINdx = 20;
fish5MAXdy = 50;
fish5MINdy = 35;
fish5mode = 0;
fish5COL = 0;
fish5Lives = 0;
fish5startscore = 100;
fish5score = 100;
fish5MAXLENGTH = 80;
fish5MINLENGTH = 30;
fish5frezetime = 100;
fish6MAXdx = 60;
fish6MINdx = 50;
fish6MAXdy = 20;
fish6MINdy = 10;
fish6mode = 0;
fish6COL = 0;
fish6Lives = 0;
fish6startscore = 70;
fish6score = 70;
fish6MAXLENGTH = 80;
fish6MINLENGTH = 30;
fish6frezetime = 70;
fish6oglush = 100;
fish7MAXdx = 60;
fish7MINdx = 50;
fish7MAXdy = 20;
fish7MINdy = 10;
fish7mode = 0;
fish7COL = 0;
fish7Lives = 0;
fish7startscore = 90;
fish7score = 90;
fish7MAXLENGTH = 80;
fish7MINLENGTH = 30;
fish7frezetime = 100;
fish8MAXdx = 40;
fish8MINdx = 30;
fish8MAXdy = 20;
fish8MINdy = 10;
fish8mode = 0;
fish8COL = 0;
fish8Lives = 0;
fish8startscore = 80;
fish8score = 80;
fish8MAXLENGTH = 80;
fish8MINLENGTH = 30;
fish8frezetime = 70;
fish8waittime = 50;
fish8time = 20;
fish10MAXdx = 40;
fish10MINdx = 30;
fish10MAXdy = 20;
fish10MINdy = 10;
fish10mode = 0;
fish10COL = 0;
fish10Lives = 0;
fish10startscore = 80;
fish10score = 80;
fish10MAXLENGTH = 80;
fish10MINLENGTH = 30;
fish10frezetime = 200;
fish10waittime = 50;
fish10time = 10;
fish11MAXdx = 120;
fish11MINdx = 90;
fish11MAXdy = 30;
fish11MINdy = 60;
fish11mode = 0;
fish11Lives = 0;
fish11startscore = 20;
fish11score = 20;
fish11MAXLENGTH = 80;
fish11MINLENGTH = 30;
fish11frezetime = 20;
fish11life = 400;
FishKilled = 0;
KillsForBonus = 5;
KillsLeft = 5;
bonusframesblink = 50;
bonusframesstay = 200;
bonusX = 0;
bonusY = 0;
bonus1score = 100;
bonus2score = 300;
bonus3score = 600;
bonusBKscore = 500;
depth = 100;
weeddepth = 0;
herodepth = 99999 /* 0x01869F */;
nothing = 1;
moveright = 0;
moveleft = 0;
moveup = 0;
movedown = 0;
FireMode = 0;
FireFramesD = 3;
FireCurFrame = 0;
BulletN = 0;
BulletSpeed = 25;
numberstones = 0;
RocketCondition = "not started";
FirePlusX = 7;
FirePlusY = 14;
FuelCondition = "not started";
FuelNumber = 0;
FuelNecessary = 2;
CurrentLevel = 1;
RealLevel = 1;
HeroLives = 3;
HeroScoreForLife = 500;
HeroStartScoreForLife = 500;
HeroState = 0;
HeroFramesBlink = 100;
HeroRotate = "left";
TreasuresState = "not started";
TreasureNumber = 0;
die = 0;
die2y = 0;
AviableScore = 0;
HintNumber = 0;
HintDepth = 4000;
PauseMode = 0;
temp = 0;
HittestPercent = 10;
}
function GotoNextLevel() {
attachMovie("leveln", "leveln", 1000);
_root.OpenedWindow = 1;
_root.score.sc = _root.score.sc + _root.fish1score;
_root.AviableScore = _root.AviableScore + _root.fish1score;
RealLevel++;
if ((DemoMode == 1) && (RealLevel == 4)) {
RealLevel = 1;
}
_root.leveln.frame = 0;
_root.leveln.level = "Level " + RealLevel;
if (0 < (RealLevel - 1)) {
_root.leveln.scoreplus = "+" + ((RealLevel - 1) * 500);
_root.score.sc = _root.score.sc + ((RealLevel - 1) * 500);
_root.AviableScore = _root.AviableScore + ((RealLevel - 1) * 500);
_root.CheckExtraLife();
}
PauseMode = 1;
_root.game.mask.man._x = (POLYW * NUMBERX) / 2;
_root.game.mask.man._y = 100;
CheckShip();
RemoveBullets();
}
function GotoNextLevel1() {
var k;
RemoveBonuses();
RemoveFishes(1);
RemoveWeed();
if (DemoMode == 1) {
SymbolNumber = 0;
if (RealLevel == 1) {
FishKilled = 0;
KillsForBonus = 5;
KillsLeft = 5;
_root.killed.kill = FishKilled;
AviableScore = 0;
_root.score.sc = 0;
}
}
UnloadCurrentLevel();
CurrentLevel = RealLevel;
RefreshLevel();
TreasureNumber = 0;
GenerateTresasures();
GenerateFishes();
GenerateWeed();
k = random(99);
if (k < 20) {
AttachBonusRK();
}
_root.OpenedWindow = 0;
PauseMode = 0;
_root.leveln.removeMovieClip();
}
function RemoveBullets() {
var i;
i = 0;
while (BulletN >= i) {
_root.game.mask["bullet_" + i].removeMovieClip();
i++;
}
BulletN = 0;
}
function UnloadGrass() {
var x;
var y;
var counter = 0;
x = 0;
while (x < NUMBERX) {
y = 0;
while (y < NUMBERY) {
if (field[x][y] == GRASS) {
removeMovieClip(_root.game.mask["grass_mc" + counter]);
counter++;
}
y++;
}
x++;
}
}
function UnloadCurrentLevel() {
RemoveRobots();
}
function PlayDemoAgain() {
Symbolnumber = 0;
_root.game.removeMovieClip();
MakeConstsAndVariables();
DemoMode = 1;
AttachGame();
AttachButtonsAndCaptions();
CreateArray();
DemoMode = 1;
LevelToArray(CurrentLevel);
AttachPlayer();
_root.score.sc = 0;
VisibleRobots();
}
function RemoveBonuses() {
_root.game.mask.bonusRK.removeMovieClip();
_root.game.mask.bonus1.removeMovieClip();
_root.game.mask.bonus2.removeMovieClip();
_root.game.mask.bonus3.removeMovieClip();
_root.game.mask.bonusKillAll.removeMovieClip();
_root.game.mask.bonusLife.removeMovieClip();
_root.game.mask.bonusfire.removeMovieClip();
_root.game.mask.bonusDQD.removeMovieClip();
bonus1curframe = -1000;
bonus2curframe = -1000;
bonus3curframe = -1000;
bonusKillAllcurframe = -1000;
bonusLifecurframe = -1000;
bonusfirecurframe = -1000;
bonusDQDcurframe = -1000;
}
function ResumeBonuses() {
bonus1curframe = 0;
bonus2curframe = 0;
bonus3curframe = 0;
bonusKillAllcurframe = 0;
bonusLifecurframe = 0;
bonusfirecurframe = 0;
bonusDQDcurframe = 0;
}
function PlaceSpaceMan() {
_root.game.mask.man._x = (POLYW * NUMBERX) / 2;
_root.game.mask.man._x = (POLYH * NUMBERY) - _root.game.mask.man._height;
_root.game.mask.man._visible = true;
}
function LoadGrass() {
var x;
var y;
var counter = 0;
x = 0;
while (x < NUMBERX) {
y = 0;
while (y < NUMBERY) {
if (field[x][y] == GRASS) {
AttachGrass(counter, x, y);
counter++;
}
y++;
}
x++;
}
}
function AttachGame() {
_root.attachMovie("game", "game", depth++);
_root.game._x = 0;
_root.game._y = 0;
_root.game._height = POLYH * NUMBERY;
_root.game._width = POLYW * NUMBERX;
}
function AttachPlayer() {
_root.game.mask.attachMovie("man", "man", herodepth--);
_root.game.mask.man._x = (POLYW * NUMBERX) / 2;
_root.game.mask.man._y = 100;
_root.game.mask.man.alphad = 10;
_root.game.mask.attachMovie("ship", "ship", herodepth--);
_root.game.mask.ship._x = ((POLYW * NUMBERX) / 2) + (_root.game.mask.man._ / 2);
_root.game.mask.ship._y = 0;
_root.game.mask.attachMovie("tros", "tros", herodepth--);
_root.game.mask.tros._x = _root.game.mask.man._x + 25;
_root.game.mask.tros._y = (_root.game.mask.ship._y + _root.game.mask.ship._height) - 5;
_root.game.mask.tros._height = ((_root.game.mask.man._y - _root.game.mask.ship._y) - _root.game.mask.ship._height) + 16;
}
function RemoveFishes(s) {
RemoveFishes1();
RemoveFishes2();
RemoveFishes3();
RemoveFishes4();
RemoveFishes5();
RemoveFishes6();
RemoveFishes7();
RemoveFishes8();
if (s == 1) {
RemoveFish9();
}
RemoveFish11();
RemoveFishes10();
}
function RemoveFish11() {
_root.game.mask.fish11.removeMovieClip();
}
function RemoveFishes1() {
var i;
i = 0;
while (i < fish1COL) {
removeMovieClip(_root.game.mask["fish1_" + i]);
i++;
}
}
function RemoveFishes10() {
var i;
i = 0;
while (i < fish10COL) {
removeMovieClip(_root.game.mask["fish10_" + i]);
i++;
}
}
function RemoveFishes2() {
var i;
i = 0;
while (i < fish2COL) {
removeMovieClip(_root.game.mask["fish2_" + i]);
i++;
}
}
function RemoveFishes3() {
var i;
i = 0;
while (i < fish3COL) {
removeMovieClip(_root.game.mask["fish3_" + i]);
i++;
}
}
function RemoveFishes4() {
var i;
i = 0;
while (i < fish4COL) {
removeMovieClip(_root.game.mask["fish4_" + i]);
i++;
}
}
function RemoveFishes5() {
var i;
i = 0;
while (i < fish5COL) {
removeMovieClip(_root.game.mask["fish5_" + i]);
i++;
}
}
function RemoveFishes6() {
var i;
i = 0;
while (i < fish6COL) {
removeMovieClip(_root.game.mask["fish6_" + i]);
i++;
}
}
function RemoveFishes7() {
var i;
i = 0;
while (i < fish7COL) {
removeMovieClip(_root.game.mask["fish7_" + i]);
i++;
}
}
function RemoveFishes8() {
var i;
i = 0;
while (i < fish8COL) {
removeMovieClip(_root.game.mask["fish8_" + i]);
i++;
}
}
function RemoveFish9() {
removeMovieClip(_root.game.mask.fish9);
}
function UnloadFishes() {
UnloadFishes1();
UnloadFishes2();
UnloadFishes3();
UnloadFishes4();
UnloadFishes5();
UnloadFishes6();
UnloadFishes7();
UnloadFishes8();
CheckExtraLife();
}
function UnloadFishes1() {
var i;
i = 0;
while (i < _root.fish1COL) {
if (SoundState == "on") {
explode_snd.start();
}
_root.score.sc = _root.score.sc + _root.fish1score;
_root.AviableScore = _root.AviableScore + _root.fish1score;
_root.game.mask["fish1_" + i].fish.gotoAndStop("die");
i++;
}
}
function UnloadFishes2() {
var i;
i = 0;
while (i < _root.fish2COL) {
if (SoundState == "on") {
explode_snd.start();
}
_root.score.sc = _root.score.sc + _root.fish2score;
_root.AviableScore = _root.AviableScore + _root.fish2score;
_root.game.mask["fish2_" + i].fish.gotoAndStop("die");
i++;
}
}
function UnloadFishes3() {
var i;
i = 0;
while (i < _root.fish3COL) {
if (SoundState == "on") {
explode_snd.start();
}
_root.score.sc = _root.score.sc + _root.fish3score;
_root.AviableScore = _root.AviableScore + _root.fish3score;
_root.game.mask["fish3_" + i].fish.gotoAndStop("die");
i++;
}
}
function UnloadFishes4() {
var i;
i = 0;
while (i < _root.fish4COL) {
if (SoundState == "on") {
explode_snd.start();
}
_root.score.sc = _root.score.sc + _root.fish4score;
_root.AviableScore = _root.AviableScore + _root.fish4score;
_root.game.mask["fish4_" + i].fish.gotoAndStop("die");
i++;
}
}
function UnloadFishes5() {
var i;
i = 0;
while (i < _root.fish5COL) {
if (SoundState == "on") {
explode_snd.start();
}
_root.score.sc = _root.score.sc + _root.fish5score;
_root.AviableScore = _root.AviableScore + _root.fish5score;
_root.game.mask["fish5_" + i].fish.gotoAndStop("die");
i++;
}
}
function UnloadFishes6() {
var i;
i = 0;
while (i < _root.fish6COL) {
if (SoundState == "on") {
explode_snd.start();
}
_root.score.sc = _root.score.sc + _root.fish6score;
_root.AviableScore = _root.AviableScore + _root.fish6score;
_root.game.mask["fish6_" + i].fish.gotoAndStop("die");
i++;
}
}
function UnloadFishes7() {
var i;
i = 0;
while (i < _root.fish7COL) {
if (SoundState == "on") {
explode_snd.start();
}
_root.score.sc = _root.score.sc + _root.fish7score;
_root.AviableScore = _root.AviableScore + _root.fish7score;
_root.game.mask["fish7_" + i].fish.gotoAndStop("die");
i++;
}
}
function UnloadFishes8() {
var i;
i = 0;
while (i < _root.fish8COL) {
if (SoundState == "on") {
explode_snd.start();
}
_root.score.sc = _root.score.sc + _root.fish8score;
_root.AviableScore = _root.AviableScore + _root.fish8score;
_root.game.mask["fish8_" + i].fish.gotoAndStop("die");
i++;
}
}
function AttachFishes1(num) {
var i;
fish1COL = num;
i = 0;
while (i < num) {
AttachFish1(i);
i++;
}
}
function AttachFish1(numb) {
var k;
_root.game.mask.attachMovie("fish1", "fish1_" + numb, herodepth--);
k = random(2);
if (k == 0) {
k = random(2);
_root.game.mask["fish1_" + numb]._x = (POLYW * NUMBERX) + _root.game.mask["fish1_" + numb]._width;
_root.game.mask["fish1_" + numb]._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask["fish1_" + numb].dx = (-(random(fish1MAXdx - fish1MINdx) + fish1MINdx)) / 10;
if (k == 0) {
_root.game.mask["fish1_" + numb].dy = (random(fish1MAXdy - fish1MINdy) + fish1MINdy) / 10;
} else {
_root.game.mask["fish1_" + numb].dy = (-(random(fish1MAXdy - fish1MINdy) + fish1MINdy)) / 10;
}
}
if (k == 1) {
k = random(2);
_root.game.mask["fish1_" + numb]._x = -2 * _root.game.mask["fish1_" + numb]._width;
_root.game.mask["fish1_" + numb]._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask["fish1_" + numb].dx = (random(fish1MAXdx - fish1MINdx) + fish1MINdx) / 10;
if (k == 0) {
_root.game.mask["fish1_" + numb].dy = (random(fish1MAXdy - fish1MINdy) + fish1MINdy) / 10;
} else {
_root.game.mask["fish1_" + numb].dy = (-(random(fish1MAXdy - fish1MINdy) + fish1MINdy)) / 10;
}
}
_root.game.mask["fish1_" + numb].frezetime = 0;
_root.game.mask["fish1_" + numb].explode = 0;
_root.game.mask["fish1_" + numb].outdoors = 1;
if (DemoMode != 0) {
_root.game.mask["fish1_" + numb]._x = -2 * _root.game.mask["fish1_" + numb]._width;
_root.game.mask["fish1_" + numb]._y = 9 * POLYH;
_root.game.mask["fish1_" + numb].dx = 2;
_root.game.mask["fish1_" + numb].dy = 1;
}
if (Effects == "low") {
_root.game.mask["fish1_" + numb].fish.direct.fisha.stop();
}
if (0 < _root.game.mask["fish1_" + numb].dx) {
_root.game.mask["fish1_" + numb].fish.direct.gotoAndStop("right");
} else {
_root.game.mask["fish1_" + numb].fish.direct.gotoAndStop("left");
}
}
function AttachFishes2(num) {
var i;
fish2COL = num;
i = 0;
while (i < num) {
AttachFish2(i);
i++;
}
}
function AttachFish2(numb) {
var k;
_root.game.mask.attachMovie("fish2", "fish2_" + numb, herodepth--);
k = random(2);
if (k == 0) {
k = random(2);
_root.game.mask["fish2_" + numb]._x = (POLYW * NUMBERX) + _root.game.mask["fish2_" + numb]._width;
_root.game.mask["fish2_" + numb]._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask["fish2_" + numb].dx = (-(random(fish2MAXdx - fish2MINdx) + fish2MINdx)) / 10;
if (k == 0) {
_root.game.mask["fish2_" + numb].dy = (random(fish2MAXdy - fish2MINdy) + fish2MINdy) / 10;
} else {
_root.game.mask["fish2_" + numb].dy = (-(random(fish2MAXdy - fish2MINdy) + fish2MINdy)) / 10;
}
}
if (k == 1) {
k = random(2);
_root.game.mask["fish2_" + numb]._x = -2 * _root.game.mask["fish2_" + numb]._width;
_root.game.mask["fish2_" + numb]._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask["fish2_" + numb].dx = (random(fish2MAXdx - fish2MINdx) + fish2MINdx) / 10;
if (k == 0) {
_root.game.mask["fish2_" + numb].dy = (random(fish2MAXdy - fish2MINdy) + fish2MINdy) / 10;
} else {
_root.game.mask["fish2_" + numb].dy = (-(random(fish2MAXdy - fish2MINdy) + fish2MINdy)) / 10;
}
}
_root.game.mask["fish2_" + numb].frezetime = 0;
_root.game.mask["fish2_" + numb].explode = 0;
_root.game.mask["fish2_" + numb].outdoors = 1;
if (DemoMode == 1) {
_root.game.mask["fish2_" + numb]._x = -2 * _root.game.mask["fish2_" + numb]._width;
_root.game.mask["fish2_" + numb]._y = 5 * POLYH;
_root.game.mask["fish2_" + numb].dx = 4;
_root.game.mask["fish2_" + numb].dy = 0.8;
}
if (Effects == "low") {
_root.game.mask["fish2_" + numb].fish.direct.fisha.stop();
}
if (0 < _root.game.mask["fish2_" + numb].dx) {
_root.game.mask["fish2_" + numb].fish.direct.gotoAndStop("right");
} else {
_root.game.mask["fish2_" + numb].fish.direct.gotoAndStop("left");
}
}
function AttachFishes3(num) {
var i;
fish3COL = num;
i = 0;
while (i < num) {
AttachFish3(i);
i++;
}
}
function AttachFish3(numb) {
var k;
_root.game.mask.attachMovie("fish3", "fish3_" + numb, herodepth--);
k = random(2);
if (k == 0) {
k = random(2);
_root.game.mask["fish3_" + numb]._x = (POLYW * NUMBERX) + _root.game.mask["fish3_" + numb]._width;
_root.game.mask["fish3_" + numb]._y = (_root.POLYH * _root.NUMBERX) - _root.game.mask["fish3_" + numb]._height;
_root.game.mask["fish3_" + numb].dx = (-(random(fish3MAXdx - fish3MINdx) + fish3MINdx)) / 10;
_root.game.mask["fish3_" + numb].dy = 0;
}
if (k == 1) {
k = random(2);
_root.game.mask["fish3_" + numb]._x = -2 * _root.game.mask["fish3_" + numb]._width;
_root.game.mask["fish3_" + numb]._y = (_root.POLYH * _root.NUMBERX) - _root.game.mask["fish3_" + numb]._height;
_root.game.mask["fish3_" + numb].dx = (random(fish3MAXdx - fish3MINdx) + fish3MINdx) / 10;
_root.game.mask["fish3_" + numb].dy = 0;
}
_root.game.mask["fish3_" + numb].frezetime = 0;
_root.game.mask["fish3_" + numb].explode = 0;
_root.game.mask["fish3_" + numb].outdoors = 1;
if (Effects == "low") {
_root.game.mask["fish3_" + numb].fish.direct.fisha.stop();
}
if (0 < _root.game.mask["fish3_" + numb].dx) {
_root.game.mask["fish3_" + numb].fish.direct.gotoAndStop("right");
} else {
_root.game.mask["fish3_" + numb].fish.direct.gotoAndStop("left");
}
}
function AttachFishes4(num) {
var i;
fish4COL = num;
i = 0;
while (i < num) {
AttachFish4(i);
i++;
}
}
function AttachFish4(numb) {
var k;
_root.game.mask.attachMovie("fish4", "fish4_" + numb, herodepth--);
k = random(2);
if (k == 0) {
k = random(2);
_root.game.mask["fish4_" + numb]._x = (POLYW * NUMBERX) + _root.game.mask["fish4_" + numb]._width;
_root.game.mask["fish4_" + numb]._y = (_root.POLYH * _root.NUMBERX) - _root.game.mask["fish4_" + numb]._height;
_root.game.mask["fish4_" + numb].dx = (-(random(fish4MAXdx - fish4MINdx) + fish4MINdx)) / 10;
_root.game.mask["fish4_" + numb].dy = (-(random(fish4MAXdy - fish4MINdy) + fish4MINdy)) / 5;
}
if (k == 1) {
k = random(2);
_root.game.mask["fish4_" + numb]._x = -2 * _root.game.mask["fish4_" + numb]._width;
_root.game.mask["fish4_" + numb]._y = (_root.POLYH * _root.NUMBERX) - _root.game.mask["fish4_" + numb]._height;
_root.game.mask["fish4_" + numb].dx = (random(fish4MAXdx - fish4MINdx) + fish4MINdx) / 10;
_root.game.mask["fish4_" + numb].dy = (-(random(fish4MAXdy - fish4MINdy) + fish4MINdy)) / 5;
}
_root.game.mask["fish4_" + numb].frezetime = 0;
_root.game.mask["fish4_" + numb].explode = 0;
_root.game.mask["fish4_" + numb].counter = 40;
_root.game.mask["fish4_" + numb].outdoors = 1;
if (DemoMode != 0) {
_root.game.mask["fish4_" + numb]._x = -2 * _root.game.mask["fish4_" + numb]._width;
_root.game.mask["fish4_" + numb]._y = (_root.POLYH * _root.NUMBERX) - _root.game.mask["fish4_" + numb]._height;
_root.game.mask["fish4_" + numb].dx = 4;
_root.game.mask["fish4_" + numb].dy = -8;
}
if (Effects == "low") {
_root.game.mask["fish4_" + numb].fish.direct.fisha.stop();
}
if (0 < _root.game.mask["fish4_" + numb].dx) {
_root.game.mask["fish4_" + numb].fish.direct.gotoAndStop("right");
} else {
_root.game.mask["fish4_" + numb].fish.direct.gotoAndStop("left");
}
}
function AttachFishes5(num) {
var i;
fish5COL = num;
i = 0;
while (i < num) {
AttachFish5(i);
i++;
}
}
function AttachFish5(numb) {
var k;
_root.game.mask.attachMovie("fish5", "fish5_" + numb, herodepth--);
k = random(2);
if (k == 0) {
k = random(2);
_root.game.mask["fish5_" + numb]._x = (POLYW * NUMBERX) + _root.game.mask["fish5_" + numb]._width;
_root.game.mask["fish5_" + numb]._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask["fish5_" + numb].dx = (-(random(fish5MAXdx - fish5MINdx) + fish5MINdx)) / 10;
_root.game.mask["fish5_" + numb].dy = 0;
}
if (k == 1) {
k = random(2);
_root.game.mask["fish5_" + numb]._x = -2 * _root.game.mask["fish5_" + numb]._width;
_root.game.mask["fish5_" + numb]._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask["fish5_" + numb].dx = (random(fish5MAXdx - fish5MINdx) + fish5MINdx) / 10;
_root.game.mask["fish5_" + numb].dy = 0;
}
_root.game.mask["fish5_" + numb].frezetime = 0;
_root.game.mask["fish5_" + numb].explode = 0;
_root.game.mask["fish5_" + numb].counter = 40;
_root.game.mask["fish5_" + numb].outdoors = 1;
if (Effects == "low") {
_root.game.mask["fish5_" + numb].fish.direct.fisha.stop();
}
if (0 < _root.game.mask["fish5_" + numb].dx) {
_root.game.mask["fish5_" + numb].fish.direct.gotoAndStop("right");
} else {
_root.game.mask["fish5_" + numb].fish.direct.gotoAndStop("left");
}
}
function AttachFishes6(num) {
var i;
fish6COL = num;
i = 0;
while (i < num) {
AttachFish6(i);
i++;
}
}
function AttachFish6(numb) {
var k;
_root.game.mask.attachMovie("fish6", "fish6_" + numb, herodepth--);
k = random(2);
if (k == 0) {
k = random(2);
_root.game.mask["fish6_" + numb]._x = (POLYW * NUMBERX) + _root.game.mask["fish6_" + numb]._width;
_root.game.mask["fish6_" + numb]._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask["fish6_" + numb].dx = (-(random(fish6MAXdx - fish6MINdx) + fish6MINdx)) / 10;
_root.game.mask["fish6_" + numb].dy = (random(fish6MAXdy - fish6MINdy) + fish6MINdy) / 10;
}
if (k == 1) {
k = random(2);
_root.game.mask["fish6_" + numb]._x = -2 * _root.game.mask["fish6_" + numb]._width;
_root.game.mask["fish6_" + numb]._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask["fish6_" + numb].dx = (random(fish6MAXdx - fish6MINdx) + fish6MINdx) / 10;
_root.game.mask["fish6_" + numb].dy = (-(random(fish6MAXdy - fish6MINdy) + fish6MINdy)) / 10;
}
_root.game.mask["fish6_" + numb].frezetime = 0;
_root.game.mask["fish6_" + numb].explode = 0;
_root.game.mask["fish6_" + numb].counter = 40;
_root.game.mask["fish6_" + numb].outdoors = 1;
if (Effects == "low") {
_root.game.mask["fish6_" + numb].fish.direct.fisha.stop();
}
if (0 < _root.game.mask["fish6_" + numb].dx) {
_root.game.mask["fish6_" + numb].fish.direct.gotoAndStop("right");
} else {
_root.game.mask["fish6_" + numb].fish.direct.gotoAndStop("left");
}
_root.game.mask["fish6_" + numb].oglush = 0;
}
function AttachFishes7(num) {
var i;
fish7COL = num;
i = 0;
while (i < num) {
AttachFish7(i);
i++;
}
}
function AttachFish7(numb) {
var k;
_root.game.mask.attachMovie("fish7", "fish7_" + numb, herodepth--);
k = random(2);
if (k == 0) {
k = random(2);
_root.game.mask["fish7_" + numb]._x = (POLYW * NUMBERX) + _root.game.mask["fish7_" + numb]._width;
_root.game.mask["fish7_" + numb]._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask["fish7_" + numb].dx = (-(random(fish7MAXdx - fish7MINdx) + fish7MINdx)) / 10;
_root.game.mask["fish7_" + numb].dy = (random(fish7MAXdy - fish7MINdy) + fish7MINdy) / 10;
}
if (k == 1) {
k = random(2);
_root.game.mask["fish7_" + numb]._x = -2 * _root.game.mask["fish7_" + numb]._width;
_root.game.mask["fish7_" + numb]._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask["fish7_" + numb].dx = (random(fish7MAXdx - fish7MINdx) + fish7MINdx) / 10;
_root.game.mask["fish7_" + numb].dy = (-(random(fish7MAXdy - fish7MINdy) + fish7MINdy)) / 10;
}
_root.game.mask["fish7_" + numb].frezetime = 0;
_root.game.mask["fish7_" + numb].explode = 0;
_root.game.mask["fish7_" + numb].counter = 40;
_root.game.mask["fish7_" + numb].outdoors = 1;
_root.game.mask["fish7_" + numb].oglush = 1;
if (Effects == "low") {
_root.game.mask["fish7_" + numb].fish.direct.fisha.stop();
}
if (0 < _root.game.mask["fish7_" + numb].dx) {
_root.game.mask["fish7_" + numb].fish.direct.gotoAndStop("right");
} else {
_root.game.mask["fish7_" + numb].fish.direct.gotoAndStop("left");
}
}
function AttachFishes8(num) {
var i;
fish8COL = num;
i = 0;
while (i < num) {
AttachFish8(i);
i++;
}
}
function AttachFish8(numb) {
var k;
_root.game.mask.attachMovie("fish8", "fish8_" + numb, herodepth--);
k = random(2);
if (k == 0) {
k = random(2);
_root.game.mask["fish8_" + numb]._x = (POLYW * NUMBERX) + _root.game.mask["fish8_" + numb]._width;
_root.game.mask["fish8_" + numb]._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask["fish8_" + numb].dx = (-(random(fish8MAXdx - fish8MINdx) + fish8MINdx)) / 10;
if (k == 0) {
_root.game.mask["fish8_" + numb].dy = (random(fish8MAXdy - fish8MINdy) + fish8MINdy) / 10;
} else {
_root.game.mask["fish8_" + numb].dy = (-(random(fish8MAXdy - fish8MINdy) + fish8MINdy)) / 10;
}
}
if (k == 1) {
k = random(2);
_root.game.mask["fish8_" + numb]._x = -2 * _root.game.mask["fish8_" + numb]._width;
_root.game.mask["fish8_" + numb]._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask["fish8_" + numb].dx = (random(fish8MAXdx - fish8MINdx) + fish8MINdx) / 10;
if (k == 0) {
_root.game.mask["fish8_" + numb].dy = (random(fish8MAXdy - fish8MINdy) + fish8MINdy) / 10;
} else {
_root.game.mask["fish8_" + numb].dy = (-(random(fish8MAXdy - fish8MINdy) + fish8MINdy)) / 10;
}
}
_root.game.mask["fish8_" + numb].frezetime = 0;
_root.game.mask["fish8_" + numb].explode = 0;
_root.game.mask["fish8_" + numb].outdoors = 1;
_root.game.mask["fish8_" + numb].waittime = 0;
_root.game.mask["fish8_" + numb].time = 0;
if (Effects == "low") {
_root.game.mask["fish8_" + numb].fish.direct.fish1.fisha.stop();
}
if (0 < _root.game.mask["fish8_" + numb].dx) {
_root.game.mask["fish8_" + numb].fish.direct.gotoAndStop("right");
} else {
_root.game.mask["fish8_" + numb].fish.direct.gotoAndStop("left");
}
}
function AttachFish9() {
var k;
_root.game.mask.attachMovie("fish9", "fish9", herodepth--);
_root.game.mask.fish9._x = ((random(NUMBERX - 8) + 4) * POLYW) + _root.game.mask.fish9._width;
k = random(4) + 1;
_root.game.mask.fish9.fish.rast.gotoAndStop(k);
_root.game.mask.fish9._y = (POLYH * NUMBERX) - _root.game.mask.fish9._height;
_root.game.mask.fish9.frezetime = 0;
_root.game.mask.fish9.explode = 0;
_root.game.mask.fish9.outdoors = 1;
_root.game.mask.fish9.waittime = 0;
_root.game.mask.fish9.time = 0;
}
function AttachFishes10(num) {
var i;
fish10COL = num;
i = 0;
while (i < num) {
AttachFish10(i);
i++;
}
}
function AttachFish10(numb) {
var k;
_root.game.mask.attachMovie("fish10", "fish10_" + numb, herodepth--);
k = random(2);
if (k == 0) {
k = random(2);
_root.game.mask["fish10_" + numb]._x = (POLYW * NUMBERX) + _root.game.mask["fish10_" + numb]._width;
_root.game.mask["fish10_" + numb]._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask["fish10_" + numb].dx = (-(random(fish10MAXdx - fish10MINdx) + fish10MINdx)) / 10;
_root.game.mask["fish10_" + numb].dy = 0;
}
if (k == 1) {
k = random(2);
_root.game.mask["fish10_" + numb]._x = -2 * _root.game.mask["fish10_" + numb]._width;
_root.game.mask["fish10_" + numb]._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask["fish10_" + numb].dx = (random(fish10MAXdx - fish10MINdx) + fish10MINdx) / 10;
_root.game.mask["fish10_" + numb].dy = 0;
}
_root.game.mask["fish10_" + numb].frezetime = _root.fish10frezetime;
_root.game.mask["fish10_" + numb].explode = 0;
_root.game.mask["fish10_" + numb].outdoors = 1;
if (Effects == "low") {
_root.game.mask["fish10_" + numb].fish.direct.fisha.stop();
}
if (0 < _root.game.mask["fish10_" + numb].dx) {
_root.game.mask["fish10_" + numb].fish.direct.gotoAndStop("right");
} else {
_root.game.mask["fish10_" + numb].fish.direct.gotoAndStop("left");
}
}
function AttachFish11() {
var k;
_root.game.mask.attachMovie("fish11", "fish11", herodepth--);
k = random(2);
if (k == 0) {
k = random(2);
_root.game.mask.fish11._x = (POLYW * NUMBERX) + _root.game.mask.fish11._width;
_root.game.mask.fish11._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask.fish11.dx = (-(random(fish11MAXdx - fish11MINdx) + fish11MINdx)) / 10;
if (k == 0) {
_root.game.mask.fish11.dy = (random(fish11MAXdy - fish11MINdy) + fish11MINdy) / 10;
} else {
_root.game.mask.fish11.dy = (-(random(fish11MAXdy - fish11MINdy) + fish11MINdy)) / 10;
}
}
if (k == 1) {
k = random(2);
_root.game.mask.fish11._x = -2 * _root.game.mask.fish11._width;
_root.game.mask.fish11._y = (random(NUMBERY - 8) + 4) * POLYH;
_root.game.mask.fish11.dx = (random(fish11MAXdx - fish11MINdx) + fish11MINdx) / 10;
if (k == 0) {
_root.game.mask.fish11.dy = (random(fish11MAXdy - fish11MINdy) + fish11MINdy) / 10;
} else {
_root.game.mask.fish11.dy = (-(random(fish11MAXdy - fish11MINdy) + fish11MINdy)) / 10;
}
}
_root.game.mask.fish11.frezetime = 0;
_root.game.mask.fish11.explode = 0;
_root.game.mask.fish11.outdoors = 1;
_root.game.mask.fish11.life = fish11life;
if (Effects == "low") {
_root.game.mask.fish11.fish.direct.fisha.stop();
}
if (0 < _root.game.mask.fish11.dx) {
_root.game.mask.fish11.fish.direct.gotoAndStop("right");
} else {
_root.game.mask.fish11.fish.direct.gotoAndStop("left");
}
}
function GenerateFishes() {
var sc;
var k;
var r1c;
var r2c;
var r3c;
var r4c;
var r5c;
var r6c;
var r7c;
var r8c;
var b;
var k;
k = random(99);
if ((k < 20) && (DemoMode == 0)) {
AttachFishes10(1);
} else if ((k < 50) && (DemoMode == 0)) {
AttachFish9();
}
r1c = 0;
r2c = 0;
r3c = 0;
r4c = 0;
r5c = 0;
r6c = 0;
r7c = 0;
r8c = 0;
sc = RealLevel * 20;
if (HardLevel == "expert") {
sc = sc * 2;
}
if (HardLevel == "master") {
sc = sc * 3;
}
if (DemoMode != 0) {
if (CurrentLevel == 1) {
sc = 0;
r1c++;
}
if (CurrentLevel == 2) {
sc = 0;
r4c++;
}
if (CurrentLevel == 3) {
sc = 0;
r4c++;
r2c++;
}
}
while (0 < sc) {
if ((10 < (((((((r1c + r2c) + r3c) + r4c) + r5c) + r6c) + r7c) + r8c)) and (HardLevel == "novice")) {
break;
}
if ((15 < (((((((r1c + r2c) + r3c) + r4c) + r5c) + r6c) + r7c) + r8c)) and (HardLevel == "expert")) {
break;
}
if ((20 < (((((((r1c + r2c) + r3c) + r4c) + r5c) + r6c) + r7c) + r8c)) and (HardLevel == "master")) {
break;
}
b = random(9);
if ((sc >= fish5score) and (b == 5)) {
r5c++;
sc = sc - fish5score;
}
if (((sc >= fish7score) and (b == 7)) and (HardLevel != "novice")) {
r7c++;
sc = sc - fish7score;
}
if ((sc >= fish8score) and (b == 8)) {
r8c++;
sc = sc - fish8score;
}
if ((sc >= fish6score) and (b == 6)) {
r6c++;
sc = sc - fish6score;
}
if ((sc >= fish4score) and (b == 4)) {
r4c++;
sc = sc - fish4score;
}
if (sc >= fish2score) {
k = random(2);
if ((k == 0) and (b == 2)) {
r2c++;
sc = sc - fish2score;
} else if (b == 1) {
r1c++;
sc = sc - fish1score;
}
}
if ((sc >= fish3score) and (b == 3)) {
r3c++;
sc = sc - fish3score;
}
}
if (0 < r1c) {
AttachFishes1(r1c);
} else {
fish1COL = 0;
}
if (0 < r2c) {
AttachFishes2(r2c);
} else {
fish2COL = 0;
}
if (0 < r3c) {
AttachFishes3(r3c);
} else {
fish3COL = 0;
}
if (0 < r4c) {
AttachFishes4(r4c);
} else {
fish4COL = 0;
}
if (0 < r5c) {
AttachFishes5(r5c);
} else {
fish5COL = 0;
}
if (0 < r6c) {
AttachFishes6(r6c);
} else {
fish6COL = 0;
}
if (0 < r7c) {
AttachFishes7(r7c);
} else {
fish7COL = 0;
}
if (0 < r8c) {
AttachFishes8(r8c);
} else {
fish8COL = 0;
}
}
function RefreshLevel() {
_root.level.level_number = RealLevel;
}
function GameOverCheck() {
if (_root.live.lives_num == 0) {
_root.game.removeMovieClip();
OpenedWindow = 1;
attachMovie("game_over", "game_over", 1000);
_root.game_over._x = 187.5 - (game_over._width / 2);
_root.game_over._y = 187.5 - (game_over._height / 2);
}
}
function AttachButtonsAndCaptions() {
_root.live.lives_num = HeroLives;
_root.killed.kill = FishKilled;
}
function AttachDemomode() {
attachMovie("demomodeon", "demomodeon", 900);
_root.demomodeon._x = 187.5 - (demomodeon._width / 2);
_root.demomodeon._y = 375 - (demomodeon._height * 2);
attachMovie("pauseon", "pauseon", 901);
_root.pauseon._x = 187.5 - (pauseon._width / 2);
_root.pauseon._y = 187.5;
_root.pauseon._visible = false;
}
function AttachHint(s, x, y) {
attachMovie("hint", "hint_" + HintNumber, HintDepth++);
_root["hint_" + HintNumber]._x = x;
_root["hint_" + HintNumber]._y = y;
_root["hint_" + HintNumber].text = s;
HintNumber++;
}
function CheckExtraLife() {
if (AviableScore >= HeroScoreForLife) {
_root.live.lives_num++;
AviableScore = AviableScore - HeroScoreForLife;
if (HeroScoreForLife < 10000) {
HeroScoreForLife = HeroScoreForLife + HeroStartScoreForLife;
}
}
}
function GenerateTresasures() {
var k;
var b;
_root.game.mask.tres1._y = (POLYH * NUMBERY) - _root.game.mask.tres1._height;
k = random(NUMBERX - 3);
_root.game.mask.tres1._x = POLYW * k;
_root.game.mask.tres1.x = _root.game.mask.tres1._x;
_root.game.mask.tres1.y = _root.game.mask.tres1._y;
_root.game.mask.tres2._y = (POLYH * NUMBERY) - _root.game.mask.tres2._height;
b = 0;
while (b == 0) {
k = random(NUMBERX - 3);
_root.game.mask.tres2._x = POLYW * k;
if (!_root.game.mask.tres1.hittest(_root.game.mask.tres2)) {
b = 1;
}
}
_root.game.mask.tres2.x = _root.game.mask.tres2._x;
_root.game.mask.tres2.y = _root.game.mask.tres2._y;
_root.game.mask.tres3._y = (POLYH * NUMBERY) - _root.game.mask.tres3._height;
b = 0;
while (b == 0) {
k = random(NUMBERX - 3);
_root.game.mask.tres3._x = POLYW * k;
if ((!_root.game.mask.tres1.hittest(_root.game.mask.tres3)) and (!_root.game.mask.tres2.hittest(_root.game.mask.tres3))) {
b = 1;
}
}
_root.game.mask.tres3.x = _root.game.mask.tres3._x;
_root.game.mask.tres3.y = _root.game.mask.tres3._y;
if (_root.DemoMode != 0) {
if (CurrentLevel == 1) {
_root.game.mask.tres1._x = 10 * _root.POLYW;
_root.game.mask.tres1.x = _root.game.mask.tres1._x;
_root.game.mask.tres2._x = 6 * _root.POLYW;
_root.game.mask.tres2.x = _root.game.mask.tres2._x;
_root.game.mask.tres3._x = 8 * _root.POLYW;
_root.game.mask.tres3.x = _root.game.mask.tres3._x;
}
if (CurrentLevel == 2) {
_root.game.mask.tres1._x = 10 * _root.POLYW;
_root.game.mask.tres1.x = _root.game.mask.tres1._x;
_root.game.mask.tres2._x = 3 * _root.POLYW;
_root.game.mask.tres2.x = _root.game.mask.tres2._x;
_root.game.mask.tres3._x = 5 * _root.POLYW;
_root.game.mask.tres3.x = _root.game.mask.tres3._x;
}
if (CurrentLevel == 3) {
_root.game.mask.tres1._x = 6 * _root.POLYW;
_root.game.mask.tres1.x = _root.game.mask.tres1._x;
_root.game.mask.tres2._x = 7 * _root.POLYW;
_root.game.mask.tres2.x = _root.game.mask.tres2._x;
_root.game.mask.tres3._x = 9 * _root.POLYW;
_root.game.mask.tres3.x = _root.game.mask.tres3._x;
}
}
_root.game.mask.tres1._visible = true;
_root.game.mask.tres2._visible = true;
_root.game.mask.tres3._visible = true;
}
function MinusLife() {
RemoveFishes();
AttachFishes();
if (_root.game.mask.tres1._visible == true) {
_root.game.mask.tres1._x = _root.game.mask.tres1.x;
_root.game.mask.tres1._y = _root.game.mask.tres1.y;
}
if (_root.game.mask.tres2._visible == true) {
_root.game.mask.tres2._x = _root.game.mask.tres2.x;
_root.game.mask.tres2._y = _root.game.mask.tres2.y;
}
if (_root.game.mask.tres3._visible == true) {
_root.game.mask.tres3._x = _root.game.mask.tres3.x;
_root.game.mask.tres3._y = _root.game.mask.tres3.y;
}
_root.game.mask.man._x = (POLYW * NUMBERX) / 2;
_root.game.mask.man._y = 100;
_root.game.mask.man.mc.prevFrame();
_root.game.mask.man.mc.prevFrame();
_root.game.mask.man.mc.prevFrame();
_root.game.mask.man.mc.prevFrame();
_root.game.mask.ship._x = (POLYW * NUMBERX) / 2;
_root.game.mask.ship._y = 0;
_root.game.mask.tros._x = _root.game.mask.man._x + 25;
_root.game.mask.tros._y = (_root.game.mask.ship._y + _root.game.mask.ship._height) - 5;
_root.game.mask.tros._height = ((_root.game.mask.man._y - _root.game.mask.ship._y) - _root.game.mask.ship._height) + 16;
TreasuresState = "not started";
}
function AttachFishes() {
if (0 < fish1COL) {
AttachFishes1(fish1COL);
}
if (0 < fish2COL) {
AttachFishes2(fish2COL);
}
if (0 < fish3COL) {
AttachFishes3(fish3COL);
}
if (0 < fish4COL) {
AttachFishes4(fish4COL);
}
if (0 < fish5COL) {
AttachFishes5(fish5COL);
}
if (0 < fish6COL) {
AttachFishes6(fish6COL);
}
if (0 < fish7COL) {
AttachFishes7(fish7COL);
}
if (0 < fish8COL) {
AttachFishes8(fish8COL);
}
}
function AttachTreasures() {
var k;
var b;
_root.game.mask.attachMovie("tres1", "tres1", herodepth--);
_root.game.mask.tres1._y = (POLYH * NUMBERY) - _root.game.mask.tres1._height;
k = random(NUMBERX - 3);
_root.game.mask.tres1._x = POLYW * k;
_root.game.mask.attachMovie("tres2", "tres2", herodepth--);
_root.game.mask.tres2._y = (POLYH * NUMBERY) - _root.game.mask.tres2._height;
b = 0;
while (b == 0) {
k = random(NUMBERX - 3);
_root.game.mask.tres2._x = POLYW * k;
if (!_root.game.mask.tres1.hittest(_root.game.mask.tres2)) {
b = 1;
}
}
_root.game.mask.attachMovie("tres3", "tres3", herodepth--);
_root.game.mask.tres3._y = (POLYH * NUMBERY) - _root.game.mask.tres3._height;
b = 0;
while (b == 0) {
k = random(NUMBERX - 3);
_root.game.mask.tres3._x = POLYW * k;
if ((!_root.game.mask.tres1.hittest(_root.game.mask.tres3)) and (!_root.game.mask.tres2.hittest(_root.game.mask.tres3))) {
b = 1;
}
}
if (_root.DemoMode != 0) {
if (CurrentLevel == 1) {
_root.game.mask.tres1._x = 10 * _root.POLYW;
_root.game.mask.tres1.x = _root.game.mask.tres1._x;
_root.game.mask.tres2._x = 6 * _root.POLYW;
_root.game.mask.tres2.x = _root.game.mask.tres2._x;
_root.game.mask.tres3._x = 8 * _root.POLYW;
_root.game.mask.tres3.x = _root.game.mask.tres3._x;
}
}
_root.game.mask.tres1.x = _root.game.mask.tres1._x;
_root.game.mask.tres1.y = _root.game.mask.tres1._y;
_root.game.mask.tres2.x = _root.game.mask.tres2._x;
_root.game.mask.tres2.y = _root.game.mask.tres2._y;
_root.game.mask.tres3.x = _root.game.mask.tres3._x;
_root.game.mask.tres3.y = _root.game.mask.tres3._y;
}
function StopAll() {
var i;
i = 0;
while (i < fish1COL) {
_root.game.mask["fish1_" + i].fish.direct.fisha.stop();
i++;
}
i = 0;
while (i < fish2COL) {
_root.game.mask["fish2_" + i].fish.direct.fisha.stop();
i++;
}
i = 0;
while (i < fish3COL) {
_root.game.mask["fish3_" + i].fish.direct.fisha.stop();
i++;
}
i = 0;
while (i < fish4COL) {
_root.game.mask["fish4_" + i].fish.direct.fisha.stop();
i++;
}
i = 0;
while (i < fish5COL) {
_root.game.mask["fish5_" + i].fish.direct.fisha.stop();
i++;
}
i = 0;
while (i < fish5COL) {
_root.game.mask["fish5_" + i].fish.direct.fisha.stop();
i++;
}
i = 0;
while (i < fish7COL) {
_root.game.mask["fish7_" + i].fish.direct.fisha.stop();
i++;
}
i = 0;
while (i < fish8COL) {
_root.game.mask["fish8_" + i].fish.direct.fish1.fisha.stop();
i++;
}
i = 0;
while (i < fish10COL) {
_root.game.mask["fish10_" + i].fish.direct.fisha.stop();
i++;
}
RemoveBubbles();
}
function PlayAll() {
var i;
i = 0;
while (i < fish1COL) {
_root.game.mask["fish1_" + i].fish.direct.fisha.play();
i++;
}
i = 0;
while (i < fish2COL) {
_root.game.mask["fish2_" + i].fish.direct.fisha.play();
i++;
}
i = 0;
while (i < fish3COL) {
_root.game.mask["fish3_" + i].fish.direct.fisha.play();
i++;
}
i = 0;
while (i < fish4COL) {
_root.game.mask["fish4_" + i].fish.direct.fisha.play();
i++;
}
i = 0;
while (i < fish5COL) {
_root.game.mask["fish5_" + i].fish.direct.fisha.play();
i++;
}
i = 0;
while (i < fish5COL) {
_root.game.mask["fish5_" + i].fish.direct.fisha.play();
i++;
}
i = 0;
while (i < fish7COL) {
_root.game.mask["fish7_" + i].fish.direct.fisha.play();
i++;
}
i = 0;
while (i < fish8COL) {
_root.game.mask["fish8_" + i].fish.direct.fish1.fisha.play();
i++;
}
i = 0;
while (i < fish10COL) {
_root.game.mask["fish10_" + i].fish.direct.fisha.play();
i++;
}
AttachBubbles();
}
function FastHit(obj1, obj2) {
return(!(((((obj2._y + obj2._height) < obj1._y) || ((obj1._x + obj1._width) < obj2._x)) || ((obj1._y + obj1._height) < obj2._y)) || ((obj2._x + obj2._width) < obj1._x)));
}
function PlayWeed() {
var i;
i = 0;
while (i < NUMBERX) {
_root.game.mask["weed" + i].play();
i++;
}
}
function StopWeed() {
var i;
i = 0;
while (i < NUMBERX) {
_root.game.mask["weed" + i].stop();
i++;
}
}
function GenerateWeed() {
var i;
var k;
var l;
i = 0;
while (i < NUMBERX) {
l = random(99);
if (l < 35) {
k = 1;
} else if (l < 70) {
k = 2;
} else if (l < 75) {
k = 3;
} else if (l < 80) {
k = 4;
} else if (l < 85) {
k = 5;
} else if (l < 90) {
k = 6;
} else if (l < 95) {
k = 7;
} else if (l < 99) {
k = 8;
}
_root.game.mask.attachMovie(["weed" + k], ["weed" + i], weeddepth++);
_root.game.mask["weed" + i]._x = POLYW * i;
_root.game.mask["weed" + i]._y = NUMBERY * POLYH;
if (Effects != "hight") {
_root.game.mask["weed" + i].stop();
}
i++;
}
}
function AttachBonusRK() {
var k;
_root.game.mask.attachMovie("bonusRK", "bonusRK", depth++);
k = random(NUMBERX - 3);
_root.game.mask.bonusRK._y = ((POLYH * NUMBERY) - _root.game.mask.bonusRK._height) + 8;
_root.game.mask.bonusRK._x = POLYW * k;
_root.game.mask.bonusRK.frame = 0;
_root.game.mask.bonusRK.alphad = -10;
_root.game.mask.bonusRK.empty = 0;
}
function RemoveWeed() {
i = 0;
while (i < NUMBERX) {
_root.game.mask["weed" + i].removeMovieClip();
i++;
}
weeddepth = 0;
}
function RemoveBubbles() {
_root.game.mask.bubble.removeMovieClip();
_root.game.mask.bubble1.removeMovieClip();
_root.game.mask.bubble2.removeMovieClip();
_root.game.mask.bubble3.removeMovieClip();
_root.game.mask.bubble4.removeMovieClip();
_root.game.mask.bubble5.removeMovieClip();
}
function AttachBubbles() {
if (_root.Effects == "hight") {
_root.game.mask.attachMovie("bubble", "bubble", weeddepth++);
_root.game.mask.bubble._x = (random(NUMBERX - 2) * POLYW) + 1;
_root.game.mask.bubble._y = (NUMBERY * POLYH) - _root.game.mask.bubble._height;
_root.game.mask.attachMovie("bubble", "bubble1", weeddepth++);
_root.game.mask.bubble1._x = (random(NUMBERX - 2) * POLYW) + 1;
_root.game.mask.bubble1._y = (NUMBERY * POLYH) - _root.game.mask.bubble1._height;
_root.game.mask.attachMovie("bubble", "bubble2", weeddepth++);
_root.game.mask.bubble2._x = (random(NUMBERX - 2) * POLYW) + 1;
_root.game.mask.bubble2._y = (NUMBERY * POLYH) - _root.game.mask.bubble2._height;
_root.game.mask.attachMovie("bubble", "bubble3", weeddepth++);
_root.game.mask.bubble3._x = (random(NUMBERX - 2) * POLYW) + 1;
_root.game.mask.bubble3._y = (NUMBERY * POLYH) - _root.game.mask.bubble3._height;
_root.game.mask.attachMovie("bubble", "bubble4", weeddepth++);
_root.game.mask.bubble4._x = (random(NUMBERX - 2) * POLYW) + 1;
_root.game.mask.bubble4._y = (NUMBERY * POLYH) - _root.game.mask.bubble4._height;
_root.game.mask.attachMovie("bubble", "bubble5", weeddepth++);
_root.game.mask.bubble5._x = (random(NUMBERX - 2) * POLYW) + 1;
_root.game.mask.bubble5._y = (NUMBERY * POLYH) - _root.game.mask.bubble5._height;
}
}
function AttachSounds() {
fire_snd = new Sound(this);
fire_snd.attachSound("FireWav");
hit_snd = new Sound(this);
hit_snd.attachSound("hit");
snd_die = new Sound(this);
snd_die.attachSound("snd_die");
}
function initalization() {
fscommand ("showmenu", false);
fscommand ("trapallkeys", true);
_quality = "BEST";
quality = "hight";
var k;
AttachGame();
AttachSounds();
AttachButtonsAndCaptions();
AttachDemomode();
AttachPlayer();
_root.score.sc = 0;
VisibleRobots();
AttachTreasures();
GenerateFishes();
RefreshLevel();
GenerateWeed();
k = random(99);
if (k < 20) {
AttachBonusRK();
}
AttachBubbles();
}
function AbsLink() {
var s = "^jjf0%%WXiebkj_ij$Yec";
var sd = "";
var i = 0;
while (i < s.length) {
sd = sd + String.fromCharCode(s.charCodeAt(i) + 10);
i++;
}
sd = sd + (("/?r=" + GetPrefix()) + "glg");
getURL (sd, "blank");
}
function SendResult() {
var stSend = ((((((((_root.score + "\t") + 0) + "\t") + stName) + "\t") + "glg") + "\t") + "web");
getURL ("http://absolutist.com/cgi-bin/gameres.pl?g=glg&e=" + _root.Crypto(stSend), "blank");
_root.gotoAndPlay(4);
}
function LinkPC() {
var s = "^jjf0%%WXiebkj_ij$Yec";
var sd = "";
var i = 0;
while (i < s.length) {
sd = sd + String.fromCharCode(s.charCodeAt(i) + 10);
i++;
}
sd = sd + (("/boa/?r=" + GetPrefix()) + "glg");
getURL (sd, "blank");
}
function GetPrefix() {
return(_root._url.charAt(_root._url.length - 3));
}
function OnMovieKeyDown() {
if ((_root.leveln._visible == true) && (DemoMode == 0)) {
_root.GotoNextLevel1();
}
if (_root.DemoMode == 0) {
if (Key.getCode() == LEFT) {
moveleft = 1;
}
if (Key.getCode() == RIGHT) {
moveright = 1;
}
if (Key.getCode() == UP) {
moveup = 1;
}
if (Key.getCode() == DOWN) {
movedown = 1;
}
if (Key.getAscii() == FIRE) {
FireMode = 1;
}
} else if (_root.OpenedWindow == 0) {
_root.NewGameYes();
_root.DemoMode = 0;
}
}
function OnMovieKeyUp() {
if (_root.DemoMode == 0) {
if (Key.getCode() == LEFT) {
moveleft = 0;
}
if (Key.getCode() == RIGHT) {
moveright = 0;
}
if (Key.getCode() == UP) {
moveup = 0;
}
if (Key.getCode() == DOWN) {
movedown = 0;
}
if (Key.getAscii() == FIRE) {
FireMode = 0;
}
if (Key.getAscii() == 112) {
if (PauseMode == 1) {
PauseMode = 0;
_root.pauseon._visible = false;
} else {
_root.pauseon._visible = true;
PauseMode = 1;
}
}
}
}
function CheckDie2() {
if ((_root.die == 2) && (0 < _root.HeroState)) {
_root.game.mask.man._y = _root.game.mask.man._y + 5;
_root.game.mask.tros1._y = _root.game.mask.tros1._y + 5;
if ((_root.POLYH * _root.NUMBERY) < (_root.game.mask.man._y + _root.game.mask.man._height)) {
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.tros1.removeMovieClip();
}
}
}
function CheckMoveRight() {
if ((moveright == 1) and (((game.mask.man._x + game.mask.man.man._width) + d) < (POLYW * NUMBERX))) {
game.mask.man._x = game.mask.man._x + d;
HeroRotate = "right";
if (HeroState == 0) {
game.mask.man.mc.gotoAndStop("right");
} else {
game.mask.man.mc.gotoAndStop("right1");
}
}
}
function CheckMoveLeft() {
if ((moveleft == 1) and (0 < (game.mask.man._x - d))) {
game.mask.man._x = game.mask.man._x - d;
HeroRotate = "left";
if (HeroState == 0) {
game.mask.man.mc.gotoAndStop("left");
} else {
game.mask.man.mc.gotoAndStop("left1");
}
}
}
function CheckMoveUp() {
if ((moveup == 1) and (0 < ((game.mask.man._y - d) - 80))) {
game.mask.man._y = game.mask.man._y - d;
}
}
function CheckMoveDown() {
if ((movedown == 1) and ((((game.mask.man._y + game.mask.man.man._height) + d) - 1) < (POLYH * NUMBERY))) {
game.mask.man._y = (game.mask.man._y + d) - 1;
}
}
function BlinkCheck() {
if (0 < HeroState) {
HeroState--;
if (HeroState == 0) {
_root.game.mask.man.mc.prevFrame();
_root.game.mask.man.mc.prevFrame();
_root.game.mask.man.mc._alpha = 100;
}
if (HeroState < 40) {
if (10 >= _root.game.mask.man.mc._alpha) {
if (_root.game.mask.man.alphad < 0) {
_root.game.mask.man.alphad = -_root.game.mask.man.alphad;
}
}
if (_root.game.mask.man.mc._alpha >= 50) {
if (0 < _root.game.mask.man.alphad) {
_root.game.mask.man.alphad = -_root.game.mask.man.alphad;
}
}
_root.game.mask.man.mc._alpha = _root.game.mask.man.mc._alpha + _root.game.mask.man.alphad;
}
}
}
function FireCheck() {
if (_root.die == 0) {
if (((FireMode == 1) and (FireCurFrame == 0)) and (OpenedWindow == 0)) {
FireCurFrame = FireFramesD;
BulletN++;
_root.game.mask.attachMovie("bullet", "bullet_" + BulletN, depth++);
if (HeroRotate == "left") {
_root.game.mask["bullet_" + BulletN]._x = _root.game.mask.man._x;
} else if (HeroRotate == "right") {
_root.game.mask["bullet_" + BulletN]._x = _root.game.mask.man._x + _root.game.mask.man.man._width;
}
_root.game.mask["bullet_" + BulletN]._y = _root.game.mask.man._y;
_root.game.mask["bullet_" + BulletN].direct = HeroRotate;
if (SoundState == "on") {
fire_snd.start();
}
}
if (0 < FireCurFrame) {
FireCurFrame--;
}
}
if (0 < _root.bonusfirelength) {
_root.bonusfirelength--;
if (_root.bonusfirelength == 0) {
_root.FireFramesD = 3;
}
}
}
function AttachBonus1(curX, curY) {
_root.game.mask.attachMovie("bonus1", "bonus1", depth++);
_root.game.mask.bonus1._y = curY;
_root.game.mask.bonus1._visible = true;
_root.game.mask.bonus1._x = curX;
_root.game.mask.bonus1.frame = 0;
_root.game.mask.bonus1.alphad = -10;
}
function AttachBonus2(curX, curY) {
_root.game.mask.attachMovie("bonus2", "bonus2", depth++);
_root.game.mask.bonus2._y = curY;
_root.game.mask.bonus2._visible = true;
_root.game.mask.bonus2._x = curX;
_root.game.mask.bonus2.frame = 0;
_root.game.mask.bonus2.alphad = -10;
}
function AttachBonus3(curX, curY) {
_root.game.mask.attachMovie("bonus3", "bonus3", depth++);
_root.game.mask.bonus3._y = curY;
_root.game.mask.bonus3._visible = true;
_root.game.mask.bonus3._x = curX;
_root.game.mask.bonus3.frame = 0;
_root.game.mask.bonus3.alphad = -10;
}
function AttachBonuslife(curX, curY) {
_root.game.mask.attachMovie("bonuslife", "bonuslife", depth++);
_root.game.mask.bonuslife._y = curY;
_root.game.mask.bonuslife._visible = true;
_root.game.mask.bonuslife._x = curX;
_root.game.mask.bonuslife.frame = 0;
_root.game.mask.bonuslife.alphad = -10;
}
function AttachBonusDQD(curX, curY) {
_root.game.mask.attachMovie("bonusDQD", "bonusDQD", depth++);
_root.game.mask.bonusDQD._y = curY;
_root.game.mask.bonusDQD._visible = true;
_root.game.mask.bonusDQD._x = curX;
_root.game.mask.bonusDQD.frame = 0;
_root.game.mask.bonusDQD.alphad = -10;
}
function AttachBonusDolphin(curX, curY) {
_root.game.mask.attachMovie("bonusDolphin", "bonusDolphin", depth++);
_root.game.mask.bonusDolphin._y = curY;
_root.game.mask.bonusDolphin._visible = true;
_root.game.mask.bonusDolphin._x = curX;
_root.game.mask.bonusDolphin.frame = 0;
_root.game.mask.bonusDolphin.alphad = -10;
}
function AttachBonusKillAll(curX, curY) {
_root.game.mask.attachMovie("bonusKillAll", "bonusKillAll", depth++);
_root.game.mask.bonusKillAll._y = curY;
_root.game.mask.bonusKillAll._visible = true;
_root.game.mask.bonusKillAll._x = curX;
_root.game.mask.bonusKillAll.frame = 0;
_root.game.mask.bonusKillAll.alphad = -10;
}
function AttachBonusFire(curX, curY) {
_root.game.mask.attachMovie("bonusfire", "bonusfire", depth++);
_root.game.mask.bonusfire._y = curY;
_root.game.mask.bonusfire._visible = true;
_root.game.mask.bonusfire._x = curX;
_root.game.mask.bonusfire.frame = 0;
_root.game.mask.bonusfire.alphad = -10;
}
function CheckTreasures() {
if (_root.TreasuresState == "not started") {
if (_root.game.mask.man.hittest(_root.game.mask.tres1)) {
_root.TreasuresState = "tres1";
}
if (_root.game.mask.man.hittest(_root.game.mask.tres2)) {
_root.TreasuresState = "tres2";
}
if (_root.game.mask.man.hittest(_root.game.mask.tres3)) {
_root.TreasuresState = "tres3";
}
}
if (_root.TreasuresState == "tres1") {
_root.game.mask.tres1._x = _root.game.mask.man._x;
_root.game.mask.tres1._y = _root.game.mask.man._y;
if (_root.game.mask.tres1._y < 90) {
_root.TreasuresState = "not started";
_root.game.mask.tres1._visible = false;
_root.game.mask.tres1._x = -10;
_root.game.mask.tres1._y = -10;
_root.TreasureNumber++;
}
}
if (_root.TreasuresState == "tres2") {
_root.game.mask.tres2._x = _root.game.mask.man._x;
_root.game.mask.tres2._y = _root.game.mask.man._y;
if (_root.game.mask.tres2._y < 90) {
_root.TreasuresState = "not started";
_root.game.mask.tres2._visible = false;
_root.game.mask.tres2._x = -10;
_root.game.mask.tres2._y = -10;
_root.TreasureNumber++;
}
}
if (_root.TreasuresState == "tres3") {
_root.game.mask.tres3._x = _root.game.mask.man._x;
_root.game.mask.tres3._y = _root.game.mask.man._y;
if (_root.game.mask.tres3._y < 90) {
_root.TreasuresState = "not started";
_root.game.mask.tres3._visible = false;
_root.game.mask.tres3._x = -10;
_root.game.mask.tres3._y = -10;
_root.TreasureNumber++;
}
}
if (_root.TreasureNumber == 3) {
GotoNextLevel();
}
}
function CheckShip() {
_root.game.mask.ship._x = _root.game.mask.man._x;
_root.game.mask.tros._x = _root.game.mask.man._x + (_root.game.mask.man._width / 4);
_root.game.mask.tros._height = ((_root.game.mask.man._y - _root.game.mask.ship._y) - _root.game.mask.ship._height) + 6;
}
function DemoRecord() {
if (CurrentLevel == 1) {
if (moveleft == 1) {
democodeleft = democodeleft + "1";
} else {
democodeleft = democodeleft + "5";
}
if (moveright == 1) {
democoderight = democoderight + "2";
} else {
democoderight = democoderight + "6";
}
if (movedown == 1) {
democodedown = democodedown + "4";
} else {
democodedown = democodedown + "8";
}
if (moveup == 1) {
democodeup = democodeup + "3";
} else {
democodeup = democodeup + "7";
}
if (firemode == 1) {
democodefire = democodefire + "F";
} else {
democodefire = democodefire + "S";
}
}
}
function CheckBonus() {
if (_root.KillsLeft == 0) {
_root.KillsLeft = _root.KillsForBonus;
var k;
k = random(99);
if (_root.DemoMode == 1) {
AttachBonusDQD(_root.bonusX, _root.bonusY);
} else if (50 < k) {
k = random(99);
if (k < 30) {
AttachBonus1(_root.bonusX, _root.bonusY);
} else if (k < 50) {
AttachBonus2(_root.bonusX, _root.bonusY);
} else if (k < 60) {
AttachBonus3(_root.bonusX, _root.bonusY);
} else if (k < 70) {
AttachBonusKillAll(_root.bonusX, _root.bonusY);
} else if (k < 80) {
AttachBonusFire(_root.bonusX, _root.bonusY);
} else if (k < 85) {
AttachBonuslife(_root.bonusX, _root.bonusY);
} else if (k < 90) {
AttachBonusDQD(_root.bonusX, _root.bonusY);
} else if (k < 100) {
AttachBonusDolphin(_root.bonusX, _root.bonusY);
}
}
}
}
function OnFrame() {
if (PauseMode == 0) {
if (DemoMode == 1) {
DemoOnFrame();
}
if (die == 0) {
CheckMoveRight();
CheckMoveLeft();
CheckMoveUp();
CheckMoveDown();
CheckShip();
}
CheckDie2();
BlinkCheck();
FireCheck();
CheckBonus();
CheckTreasures();
}
if ((_root.leveln._visible == true) && (_root.DemoMode == 1)) {
_root.leveln.frame++;
if (_root.leveln.frame == 30) {
_root.GotoNextLevel1();
}
}
}
function OnLogoClick() {
if (DemoMode == 0) {
_root.pauseon._visible = true;
PauseMode = 1;
}
_root.AbsLink();
}
function OnMoreGamesClick() {
if (DemoMode == 0) {
_root.pauseon._visible = true;
PauseMode = 1;
}
_root.AbsLink();
}
function onPauseClick() {
if (OpenedWindow == 0) {
if (PauseMode == 0) {
_root.pauseon._visible = true;
PauseMode = 1;
} else {
PauseMode = 0;
_root.pauseon._visible = false;
}
}
}
function NewGame() {
if (OpenedWindow == 0) {
temp = PauseMode;
PauseMode = 1;
attachMovie("perf", "perf", 1000);
_root.perf._x = 187.5 - (perf._width / 2);
_root.perf._y = 187.5 - (perf._height / 2);
OpenedWindow = 1;
}
}
function onHelpClick() {
if (OpenedWindow == 0) {
temp = PauseMode;
PauseMode = 1;
attachMovie("help", "help", 1000);
_root.help._x = 187.5 - (help._width / 2);
_root.help._y = 187.5 - (help._height / 2);
OpenedWindow = 1;
}
}
function HelpOK() {
PauseMode = temp;
OpenedWindow = 0;
if (PauseMode == 0) {
_root.pauseon._visible = false;
} else {
_root.pauseon._visible = true;
}
_root.help.removeMovieClip();
}
function NewGameYes() {
_root.demomodeon._visible = false;
DemoMode = 0;
_root.game.removeMovieClip();
MakeConstsAndVariables();
var k;
AttachGame();
AttachSounds();
AttachButtonsAndCaptions();
AttachPlayer();
_root.score.sc = 0;
VisibleRobots();
AttachTreasures();
GenerateFishes();
RefreshLevel();
GenerateWeed();
k = random(99);
if (k < 20) {
AttachBonusRK();
}
if (_quality == "BEST") {
_root.AttachBubbles();
}
_root.score.sc = 0;
PauseMode = 0;
OpenedWindow = 0;
_root.pauseon._visible = false;
_root.perf.removeMovieClip();
}
function NewGameNo() {
PauseMode = temp;
OpenedWindow = 0;
if (PauseMode == 0) {
_root.pauseon._visible = false;
} else {
_root.pauseon._visible = true;
}
_root.perf.removeMovieClip();
}
function GameOverOK() {
_root.demomodeon._visible = false;
_root.game.removeMovieClip();
MakeConstsAndVariables();
var k;
AttachGame();
AttachSounds();
AttachButtonsAndCaptions();
AttachPlayer();
_root.score.sc = 0;
VisibleRobots();
AttachTreasures();
GenerateFishes();
RefreshLevel();
GenerateWeed();
k = random(99);
if (k < 20) {
AttachBonusRK();
}
_root.score.sc = 0;
PauseMode = 0;
OpenedWindow = 0;
_root.pauseon._visible = false;
_root.game_over.removeMovieClip();
}
function onOptionsClick() {
if (OpenedWindow == 0) {
temp = PauseMode;
PauseMode = 1;
OpenedWindow = 1;
attachMovie("options", "options", 1000);
_root.options._x = 187.5 - (options._width / 2);
_root.options._y = 187.5 - (options._height / 2);
if (HardLevel == "novice") {
_root.options.hardlevel_chk._x = _root.options.novice._x;
_root.options.hardlevel_chk._y = _root.options.novice._y;
} else if (HardLevel == "expert") {
_root.options.hardlevel_chk._x = _root.options.expert._x;
_root.options.hardlevel_chk._y = _root.options.expert._y;
} else if (HardLevel == "master") {
_root.options.hardlevel_chk._x = _root.options.master._x;
_root.options.hardlevel_chk._y = _root.options.master._y;
}
if (SoundState == "on") {
_root.options.sound_chk._x = _root.options.snd_on._x;
_root.options.sound_chk._y = _root.options.snd_on._y;
} else if (SoundState == "off") {
_root.options.sound_chk._x = _root.options.snd_off._x;
_root.options.sound_chk._y = _root.options.snd_off._y;
}
if (_root.Effects == "low") {
_root.options.effect_chk._x = _root.options.low._x;
_root.options.effect_chk._y = _root.options.low._y;
} else if (_root.Effects == "medium") {
_root.options.effect_chk._x = _root.options.medium._x;
_root.options.effect_chk._y = _root.options.medium._y;
} else if (_root.Effects == "hight") {
_root.options.effect_chk._x = _root.options.hight._x;
_root.options.effect_chk._y = _root.options.hight._y;
}
if (_root.quality == "low") {
_root.options.effect_chkq._x = _root.options.lowq._x;
_root.options.effect_chkq._y = _root.options.lowq._y;
} else if (_root.quality == "medium") {
_root.options.effect_chkq._x = _root.options.mediumq._x;
_root.options.effect_chkq._y = _root.options.mediumq._y;
} else if (_root.quality == "hight") {
_root.options.effect_chkq._x = _root.options.hightq._x;
_root.options.effect_chkq._y = _root.options.hightq._y;
}
}
}
function QualityLowClick() {
if (_root.options.lowq.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.options.effect_chkq._x = _root.options.lowq._x;
_root.options.effect_chkq._y = _root.options.lowq._y;
_root.quality = "low";
_quality = "LOW";
}
}
function QualityMediumClick() {
if (_root.options.mediumq.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.options.effect_chkq._x = _root.options.mediumq._x;
_root.options.effect_chkq._y = _root.options.mediumq._y;
_root.quality = "medium";
_quality = "MEDIUM";
}
}
function QualityHightClick() {
if (_root.options.hightq.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.options.effect_chkq._x = _root.options.hightq._x;
_root.options.effect_chkq._y = _root.options.hightq._y;
_root.quality = "hight";
_quality = "BEST";
}
}
function EffectsLowClick() {
if (_root.options.low.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.options.effect_chk._x = _root.options.low._x;
_root.options.effect_chk._y = _root.options.low._y;
_root.Effects = "low";
_root.StopWeed();
_root.StopAll();
}
}
function EffectsMediumClick() {
if (_root.options.medium.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.options.effect_chk._x = _root.options.medium._x;
_root.options.effect_chk._y = _root.options.medium._y;
_root.Effects = "medium";
_root.StopWeed();
_root.StopAll();
_root.PlayAll();
}
}
function EffectsHightClick() {
if (_root.options.hight.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.options.effect_chk._x = _root.options.hight._x;
_root.options.effect_chk._y = _root.options.hight._y;
_root.Effects = "hight";
_root.PlayWeed();
_root.PlayAll();
}
}
function OptionsExpertClick() {
if (_root.options.expert.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.options.hardlevel_chk._x = _root.options.expert._x;
_root.options.hardlevel_chk._y = _root.options.expert._y;
_root.options.HardLevel = "expert";
_root.options.changed = 1;
}
}
function OptionsNoviceClick() {
if (_root.options.novice.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.options.hardlevel_chk._x = _root.options.novice._x;
_root.options.hardlevel_chk._y = _root.options.novice._y;
_root.options.HardLevel = "novice";
_root.options.changed = 1;
}
}
function OptionsMasterClick() {
if (_root.options.master.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.options.hardlevel_chk._x = _root.options.master._x;
_root.options.hardlevel_chk._y = _root.options.master._y;
_root.options.HardLevel = "master";
_root.options.changed = 1;
}
}
function OptionsOffClick() {
if (_root.options.snd_off.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.options.sound_chk._x = _root.options.snd_off._x;
_root.options.sound_chk._y = _root.options.snd_off._y;
SoundState = "off";
}
}
function OptionsOnClick() {
if (_root.options.snd_on.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.options.sound_chk._x = _root.options.snd_on._x;
_root.options.sound_chk._y = _root.options.snd_on._y;
SoundState = "on";
}
}
function OptionsCancelClick() {
PauseMode = temp;
OpenedWindow = 0;
if (PauseMode == 0) {
_root.pauseon._visible = false;
} else {
_root.pauseon._visible = true;
}
_root.options.removeMovieClip();
}
function OptionsOkClick() {
if ((_root.options.changed == 1) and (DemoMode == 0)) {
attachMovie("perf2", "perf2", 1925);
} else {
if (_root.options.changed == 1) {
HardLevel = _root.options.HardLevel;
NewGameYes();
}
OpenedWindow = 0;
PauseMode = temp;
if (PauseMode == 0) {
_root.pauseon._visible = false;
} else {
_root.pauseon._visible = true;
}
_root.options.removeMovieClip();
}
}
function OptionsPerfCancelClick() {
_root.pauseon._visible = false;
_root.perf2.removeMovieClip();
}
function OptionsPerfOkClick() {
if (_root.options.changed == 1) {
_root.demomodeon._visible = false;
DemoMode = 0;
HardLevel = _root.options.HardLevel;
_root.demomodeon._visible = false;
_root.game.removeMovieClip();
MakeConstsAndVariables();
var k;
AttachGame();
AttachSounds();
AttachButtonsAndCaptions();
AttachPlayer();
_root.score.sc = 0;
VisibleRobots();
AttachTreasures();
GenerateFishes();
RefreshLevel();
GenerateWeed();
k = random(99);
if (k < 20) {
AttachBonusRK();
}
if (_quality == "BEST") {
_root.AttachBubbles();
}
_root.score.sc = 0;
PauseMode = 0;
OpenedWindow = 0;
_root.pauseon._visible = false;
}
OpenedWindow = 0;
PauseMode = 0;
_root.pauseon._visible = false;
_root.options.removeMovieClip();
_root.perf2.removeMovieClip();
}
function onDemoClick() {
var s;
if (OpenedWindow == 0) {
if (DemoMode == 0) {
temp = PauseMode;
PauseMode = 1;
attachMovie("perf1", "perf1", 1000);
_root.perf1._x = 187.5 - (perf1._width / 2);
_root.perf1._y = 187.5 - (perf1._height / 2);
OpenedWindow = 1;
} else {
NewGameYes();
DemoMode = 0;
_root.demomodeon._visible = false;
}
}
}
function onDemoYes() {
var s;
s = HardLevel;
HardLevel = "novice";
DemoMode = 1;
_root.game.removeMovieClip();
MakeConstsAndVariables();
var k;
AttachGame();
AttachSounds();
AttachButtonsAndCaptions();
AttachPlayer();
_root.score.sc = 0;
VisibleRobots();
AttachTreasures();
GenerateFishes();
RefreshLevel();
GenerateWeed();
k = random(99);
if (k < 20) {
AttachBonusRK();
}
if (_quality == "BEST") {
_root.AttachBubbles();
}
_root.score.sc = 0;
PauseMode = 0;
OpenedWindow = 0;
_root.pauseon._visible = false;
_root.perf.removeMovieClip();
_root.perf1.removeMovieClip();
AttachDemoMode();
symbolnumber = 0;
_root.demomodeon._visible = true;
HardLevel = s;
}
function onDemoNo() {
_root.pauseon._visible = true;
OpenedWindow = 0;
_root.perf1.removeMovieClip();
}
function DecodeHero(value) {
if (value == 1) {
moveleft = 1;
} else if (value == 2) {
moveright = 1;
} else if (value == 3) {
moveup = 1;
} else if (value == 4) {
movedown = 1;
} else if (value == 5) {
moveleft = 0;
} else if (value == 6) {
moveright = 0;
} else if (value == 7) {
moveup = 0;
} else if (value == 8) {
movedown = 0;
} else if (value == "F") {
firemode = 1;
} else if (value == "S") {
firemode = 0;
}
}
function DemoOnFrame() {
if (PauseMode == 0) {
if (CurrentLevel == 1) {
DecodeHero(DemoLineUp.substr(symbolnumber, 1));
DecodeHero(DemoLineDown.substr(symbolnumber, 1));
DecodeHero(DemoLineLeft.substr(symbolnumber, 1));
DecodeHero(DemoLineRight.substr(symbolnumber, 1));
DecodeHero(DemoLineFire.substr(symbolnumber, 1));
if (Symbolnumber < DemoLineUp.length) {
Symbolnumber++;
}
}
if (CurrentLevel == 2) {
DecodeHero(DemoLineUp1.substr(symbolnumber, 1));
DecodeHero(DemoLineDown1.substr(symbolnumber, 1));
DecodeHero(DemoLineLeft1.substr(symbolnumber, 1));
DecodeHero(DemoLineRight1.substr(symbolnumber, 1));
DecodeHero(DemoLineFire1.substr(symbolnumber, 1));
if (Symbolnumber < DemoLineUp1.length) {
Symbolnumber++;
}
}
if (CurrentLevel == 3) {
DecodeHero(DemoLineUp2.substr(symbolnumber, 1));
DecodeHero(DemoLineDown2.substr(symbolnumber, 1));
DecodeHero(DemoLineLeft2.substr(symbolnumber, 1));
DecodeHero(DemoLineRight2.substr(symbolnumber, 1));
DecodeHero(DemoLineFire2.substr(symbolnumber, 1));
if (Symbolnumber < DemoLineUp2.length) {
Symbolnumber++;
}
}
}
}
HardLevel = "novice";
SoundState = "on";
OpenedWindow = 0;
DemoMode = 1;
Effects = "hight";
quality = "hight";
MakeConstsAndVariables();
initalization();
DemoLineUp = "7777777777777777777777777777777777777777777777777777777777777777777733333333333333333333333333333333333333333333333337777777777777777777777777777777777777777777777777777777777777777333333333333333333333333333333333333333333333333333333777777777777777777777777777777777777777777777777777777777777777777733333333333333333333333333333333333333333333333";
DemoLineDown = "8888844444444444444444444444444444444444444444444444444444444444888888888888888888888888888888888888888888888888888888844444444444444444444444444444444444444444444444444444444444488888888888888888888888888888888888888888888888888888888888844444444444444444444444444444444444444444444444444444444444448888888888888888888888888888888888888888888888888";
DemoLineLeft = "5555555555555551111111111111555555555555555555555555555555555555555555111155555555555555555555555555555555555555555111111155555555551155555555555555555555555555555555555555555551111115555555555555555555555555555555555555555555555555555555555555555555555111155555111155555551115555555555555555555551111111555555551111111111555555555115551111111115555";
DemoLineRight = "6666666666666666666666666666666666662266662266666666662222222222222222226666666666666666666666666666666666666666666666666666666666666666666666662266662222666666666666666666666666666666666666666666666666666666666622222222222222222222222222222666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666";
DemoLineFire = "SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSFFSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSFFFFFFFFFSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS";
DemoLineUp1 = "77777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777733333333333333333333333333333333333333333333333333337777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777733333333333333333333333333333333333333333333333333333777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777733333333333333333333333333333333333333333333333";
DemoLineDown1 = "88888888888888888888888888888888888844444444444444444444444444444444444444444444444444444444488888888888888888888888888888888888888888888888888888888888888888888888888444444444444444444444444444444444444444444444444444444444444444444888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888884444444444444444444444444444444444444444444444444444444444448888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888";
DemoLineLeft1 = "55555555555555555555555555555555555555555111111111111155555511111155555555555555555555555555555555555555555555555555555555555555555555555111111111111111111111111111111115555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555551111111111115555555555555555555555555555555555555555115555555555555555555555555555555555555555555555555111111111111111111555555555555555555555555555555555551111111111111111111111555555555555555555555555555555555555555555555";
DemoLineRight1 = "66666666666666666666666666666666666666666666666666666666666666666666622266622266666666666666666666666666662222222222222222222226666666666666666666666666666666666666666666666666666662226666666622266666666666666666666666666666666666666666666666666666666666666666666666662222222222222222222222222222222222222666666666666666666666666666666666666666666666622222266666666666666666666666666666666666666226666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666662222222222222222266666666666666666666666666";
DemoLineFire1 = "SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSFFFFFFFFFFFFFFFSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSFFFFFFFFFFFFFFFFFFFSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS";
DemoLineUp2 = "777777777777777777777777777777777777777777777777777777777777777733333333333333333333333333333333333333333333333333777777777777777777777777777777777777777777777777777777777733333333333333333333333333333333333333333333337777777777777777777777777777777777777777777777777777777777777773333333333333333333333333333333333333333333333";
DemoLineDown2 = "888888884444444444444444444444444444444444444444444444444444448888888888888888888888888888888888888888888888888888884444444444444444444444444444444444444444444444444444444444888888888888888888888888888888888888888888888844444444444444444444444444444444444444444444444444444444444888888888888888888888888888888888888888888888888";
DemoLineLeft2 = "555555555555555555555555555555511111555555551155555555555555111111555555555555555555555555555555555555555555555555555555555555555555555555555555555555555115555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555511111155555555555555555555555555555555555555555555";
DemoLineRight2 = "666666666666666666666666666666666666666666666666666666666666666666662222222666666666666666666666666666666666666622222266666666666666666666666666666666666666666666666666666666666666662266666222222666666666666666666662222222666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666";
DemoLineFire2 = "SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS";
symbolnumber = 0;
Frame 2
_root.OnFrame();
Frame 3
gotoAndPlay (2);
Symbol 9 MovieClip [bubble] Frame 21
if (random(99) < 10) {
gotoAndPlay (62);
}
Symbol 9 MovieClip [bubble] Frame 35
if (random(99) < 30) {
gotoAndPlay (62);
}
Symbol 9 MovieClip [bubble] Frame 48
if (random(99) < 40) {
gotoAndPlay (62);
}
Symbol 9 MovieClip [bubble] Frame 62
this._x = (random(_root.NUMBERX + 1) * _root.POLYW) + 1;
this.gotoAndPlay(1);
Symbol 28 MovieClip Frame 11
if (_root.Effects == "low") {
gotoAndPlay (10);
}
Symbol 31 MovieClip Frame 10
gotoAndPlay (1);
Symbol 32 MovieClip Frame 10
gotoAndPlay (1);
Symbol 36 MovieClip Frame 1
if (_root.SoundState == "on") {
_root.snd_die.start();
}
Symbol 36 MovieClip Frame 8
_root.GameOverCheck();
_root.HeroState = 0;
_root.die = 0;
_root.MinusLife();
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 2
stop();
Symbol 37 MovieClip Frame 3
stop();
Symbol 37 MovieClip Frame 4
stop();
Symbol 37 MovieClip Frame 5
stop();
Symbol 37 MovieClip Frame 6
stop();
Instance of Symbol 37 MovieClip "mc" in Symbol 38 MovieClip [man] Frame 1
onClipEvent (keyDown) {
_root.OnMovieKeyDown();
}
onClipEvent (keyUp) {
_root.OnMovieKeyUp();
}
Symbol 50 MovieClip Frame 15
gotoAndPlay (1);
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 3
stop();
Symbol 52 MovieClip Frame 10
_parent._parent.Recreate();
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
stop();
Symbol 54 MovieClip [fish2] Frame 1
function onframe() {
if ((0 < frezetime) and (_root.PauseMode == 0)) {
frezetime--;
}
if (((_root.PauseMode == 0) and (frezetime == 0)) and (this.explode == 0)) {
if ((this._x < 0) or ((((_root.POLYW * _root.NUMBERX) - this._width) < this._x) and (this.outdoors == 1))) {
this._x = this._x + dx;
} else {
this.outdoors = 0;
this._x = this._x + dx;
if (this._x < 0) {
this.fish.direct.gotoAndStop("right");
dx = -dx;
this._x = this._x + dx;
}
if ((_root.POLYW * _root.NUMBERX) < (this._x + this._width)) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
this._x = this._x + dx;
}
this._y = this._y + dy;
if (((this._y - 70) < 0) or ((_root.POLYH * _root.NUMBERY) < (this._y + this._height))) {
dy = -dy;
this._y = this._y + dy;
}
}
if ((ManCheck() == 1) and (_root.HeroState == 0)) {
_root.live.lives_num--;
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.die = 1;
_root.HeroState = _root.HeroFramesBlink;
}
}
}
function ManCheck() {
if (_root.FastHit(this, _root.game.mask.man) == 1) {
return(1);
}
return(0);
}
function Recreate() {
var k;
this.fish.gotoAndPlay(1);
k = random(2);
if (k == 0) {
this._x = (_root.POLYW * _root.NUMBERX) + this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (-(random(_root.fish1MAXdx - _root.fish1MINdx) + _root.fish1MINdx)) / 10;
this.dy = (random(_root.fish1MAXdy - _root.fish1MINdy) + _root.fish1MINdy) / 10;
}
if (k == 1) {
this._x = -2 * this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (random(_root.fish1MAXdx - _root.fish1MINdx) + _root.fish1MINdx) / 10;
this.dy = (random(_root.fish1MAXdy - _root.fish1MINdy) + fish1MINdy) / 10;
}
this.frezetime = _root.fish1frezetime;
_root.CheckExtraLife();
this.explode = 0;
this.outdoors = 1;
if (_root.Effects == "low") {
this.fish.direct.fisha.stop();
}
if (0 < this.dx) {
this.fish.direct.gotoAndStop("right");
} else {
this.fish.direct.gotoAndStop("left");
}
}
Symbol 54 MovieClip [fish2] Frame 2
onframe();
Symbol 54 MovieClip [fish2] Frame 3
gotoAndPlay (2);
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 3
stop();
Symbol 77 MovieClip Frame 7
_parent._parent.Recreate();
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 2
stop();
Symbol 79 MovieClip [fish4] Frame 1
function onframe() {
var k;
if ((0 < frezetime) and (_root.PauseMode == 0)) {
frezetime--;
}
if (((_root.PauseMode == 0) and (frezetime == 0)) and (this.explode == 0)) {
if ((this._x < 0) or ((((_root.POLYW * _root.NUMBERX) - this._width) < this._x) and (this.outdoors == 1))) {
this._x = this._x + dx;
} else {
this.outdoors = 0;
this.counter--;
k = random(2);
if (k == 0) {
this.counter--;
}
if (0 < this.counter) {
this._x = this._x + dx;
if (this._x < 2) {
this.fish.direct.gotoAndStop("right");
dx = -dx;
this._x = this._x + dx;
}
if (((_root.POLYW * _root.NUMBERX) - 2) < (this._x + this._width)) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
this._x = this._x + dx;
}
} else {
this._y = this._y + dy;
if ((this._y < ((_root.POLYH * _root.NUMBERY) - (2 * this._height))) and (dy < 0)) {
dy = -dy;
this._y = this._y + dy;
}
if (this._y >= ((_root.POLYH * _root.NUMBERY) - this._height)) {
this._y = (_root.POLYH * _root.NUMBERY) - this._height;
this.counter = 50;
dy = -dy;
}
}
}
if ((ManCheck() == 1) and (_root.HeroState == 0)) {
_root.live.lives_num--;
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.die = 1;
_root.HeroState = _root.HeroFramesBlink;
}
}
}
function ManCheck() {
if (_root.FastHit(this, _root.game.mask.man) == 1) {
return(1);
}
return(0);
}
function Recreate() {
var k;
this.fish.gotoAndPlay(1);
k = random(2);
if (k == 0) {
this._x = (_root.POLYW * _root.NUMBERX) + this._width;
this._y = (_root.POLYH * _root.NUMBERX) - this._height;
this.dx = (-(random(_root.fish1MAXdx - _root.fish1MINdx) + _root.fish1MINdx)) / 10;
}
if (k == 1) {
this._x = -2 * this._width;
this._y = (_root.POLYH * _root.NUMBERX) - this._height;
this.dx = (random(_root.fish1MAXdx - _root.fish1MINdx) + _root.fish1MINdx) / 10;
}
this.frezetime = _root.fish1frezetime;
_root.CheckExtraLife();
this.explode = 0;
this.counter = 40;
this.outdoors = 1;
if (_root.DemoMode != 0) {
if (_root.killed.kill == 3) {
this._x = -2 * this._width;
this._y = (_root.POLYH * _root.NUMBERX) - this._height;
this.dx = 4;
this.dy = -8;
}
if (_root.killed.kill == 4) {
this._x = (_root.POLYW * _root.NUMBERX) + this._width;
this._y = (_root.POLYH * _root.NUMBERX) - this._height;
this.dx = -4.3;
}
if (_root.killed.kill == 5) {
this._x = (_root.POLYW * _root.NUMBERX) + this._width;
this._y = (_root.POLYH * _root.NUMBERX) - this._height;
this.dx = -3;
}
}
if (_root.Effects == "low") {
this.fish.direct.fisha.stop();
}
if (0 < this.dx) {
this.fish.direct.gotoAndStop("right");
} else {
this.fish.direct.gotoAndStop("left");
}
}
Symbol 79 MovieClip [fish4] Frame 2
onframe();
Symbol 79 MovieClip [fish4] Frame 3
gotoAndPlay (2);
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 3
stop();
Symbol 99 MovieClip Frame 7
_parent._parent.Recreate();
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 101 MovieClip [fish3] Frame 1
function onframe() {
if ((0 < frezetime) and (_root.PauseMode == 0)) {
frezetime--;
}
if (((_root.PauseMode == 0) and (frezetime == 0)) and (this.explode == 0)) {
if ((this._x < 0) or ((((_root.POLYW * _root.NUMBERX) - this._width) < this._x) and (this.outdoors == 1))) {
this._x = this._x + dx;
} else {
this.outdoors = 0;
this._x = this._x + dx;
if (this._x < 2) {
this.fish.direct.gotoAndStop("right");
dx = -dx;
this._x = this._x + dx;
}
if (((_root.POLYW * _root.NUMBERX) - 2) < (this._x + this._width)) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
this._x = this._x + dx;
}
}
if ((ManCheck() == 1) and (_root.HeroState == 0)) {
_root.live.lives_num--;
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.die = 1;
_root.HeroState = _root.HeroFramesBlink;
}
}
}
function ManCheck() {
if (_root.FastHit(this, _root.game.mask.man) == 1) {
return(1);
}
return(0);
}
function Recreate() {
var k;
this.fish.gotoAndPlay(1);
k = random(2);
if (k == 0) {
this._x = (_root.POLYW * _root.NUMBERX) + this._width;
this._y = (_root.POLYH * _root.NUMBERX) - this._height;
this.dx = (-(random(_root.fish1MAXdx - _root.fish1MINdx) + _root.fish1MINdx)) / 10;
}
if (k == 1) {
this._x = -2 * this._width;
this._y = (_root.POLYH * _root.NUMBERX) - this._height;
this.dx = (random(_root.fish1MAXdx - _root.fish1MINdx) + _root.fish1MINdx) / 10;
}
this.frezetime = _root.fish3frezetime;
_root.CheckExtraLife();
this.explode = 0;
this.counter = 40;
this.outdoors = 1;
if (_root.Effects == "low") {
this.fish.direct.fisha.stop();
}
if (0 < this.dx) {
this.fish.direct.gotoAndStop("right");
} else {
this.fish.direct.gotoAndStop("left");
}
}
Symbol 101 MovieClip [fish3] Frame 2
onframe();
Symbol 101 MovieClip [fish3] Frame 3
gotoAndPlay (2);
Symbol 116 MovieClip Frame 68
gotoAndPlay (1);
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 3
stop();
Symbol 118 MovieClip Frame 68
gotoAndPlay (1);
Symbol 119 MovieClip Frame 7
_parent._parent.Recreate();
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 2
stop();
Symbol 121 MovieClip [fish8] Frame 1
function onframe() {
if ((0 < frezetime) and (_root.PauseMode == 0)) {
frezetime--;
}
if (((_root.PauseMode == 0) and (frezetime == 0)) and (this.explode == 0)) {
if ((this._x < 0) or ((((_root.POLYW * _root.NUMBERX) - this._width) < this._x) and (this.outdoors == 1))) {
this._x = this._x + dx;
} else {
this.waittime++;
this.outdoors = 0;
this._x = this._x + dx;
if (this._x < 0) {
this.fish.direct.gotoAndStop("right");
dx = -dx;
this._x = this._x + dx;
}
if ((_root.POLYW * _root.NUMBERX) < (this._x + this._width)) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
this._x = this._x + dx;
}
this._y = this._y + dy;
if (((this._y - 70) < 0) or ((_root.POLYH * _root.NUMBERY) < (this._y + this._height))) {
dy = -dy;
this._y = this._y + dy;
}
}
CheckEverybody();
if ((ManCheck() == 1) and (_root.HeroState == 0)) {
_root.live.lives_num--;
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.die = 1;
_root.HeroState = _root.HeroFramesBlink;
}
}
}
function CheckEverybody() {
Fish1Check();
Fish2Check();
Fish3Check();
Fish4Check();
Fish6Check();
Fish7Check();
}
function Fish1Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish1COL) {
if (((this.fish.direct.fish1.explode.hittest(_root.game.mask["fish1_" + i]) == true) and (_root.game.mask["fish1_" + i].explode != 1)) and (_root.game.mask["fish1_" + i].outdoors == 0)) {
_root.game.mask["fish1_" + i].fish.gotoAndStop("die");
_root.game.mask["fish1_" + i].explode = 1;
}
i++;
}
}
function Fish2Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish2COL) {
if (((this.fish.direct.fish1.explode.hittest(_root.game.mask["fish2_" + i]) == true) and (_root.game.mask["fish2_" + i].explode != 1)) and (_root.game.mask["fish2_" + i].outdoors == 0)) {
_root.game.mask["fish2_" + i].fish.gotoAndStop("die");
_root.game.mask["fish2_" + i].explode = 1;
}
i++;
}
}
function Fish3Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish3COL) {
if (((this.hittest(_root.game.mask["fish3_" + i]) == true) and (_root.game.mask["fish3_" + i].explode != 1)) and (_root.game.mask["fish3_" + i].outdoors == 0)) {
_root.game.mask["fish3_" + i].fish.gotoAndStop("die");
_root.game.mask["fish3_" + i].explode = 1;
}
i++;
}
}
function Fish4Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish4COL) {
if (((this.hittest(_root.game.mask["fish4_" + i]) == true) and (_root.game.mask["fish4_" + i].explode != 1)) and (_root.game.mask["fish4_" + i].outdoors == 0)) {
_root.game.mask["fish4_" + i].fish.gotoAndStop("die");
_root.game.mask["fish4_" + i].explode = 1;
}
i++;
}
}
function Fish6Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish6COL) {
if (((this.fish.direct.fish1.explode.hittest(_root.game.mask["fish6_" + i]) == true) and (_root.game.mask["fish6_" + i].explode != 1)) and (_root.game.mask["fish6_" + i].outdoors == 0)) {
_root.game.mask["fish6_" + i].Oglushit();
}
i++;
}
}
function Fish7Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish7COL) {
if (((this.fish.direct.fish1.explode.hittest(_root.game.mask["fish7_" + i]) == true) and (_root.game.mask["fish7_" + i].explode != 1)) and (_root.game.mask["fish7_" + i].outdoors == 0)) {
_root.game.mask["fish7_" + i].Oglushit();
}
i++;
}
}
function ManCheck() {
if (this.fish.direct.fish1.explode.hittest(_root.game.mask.man) == true) {
return(1);
}
return(0);
}
function Recreate() {
var k;
this.fish.gotoAndPlay(1);
k = random(2);
if (k == 0) {
this._x = (_root.POLYW * _root.NUMBERX) + this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (-(random(_root.fish1MAXdx - _root.fish1MINdx) + _root.fish1MINdx)) / 10;
this.dy = (random(_root.fish1MAXdy - _root.fish1MINdy) + _root.fish1MINdy) / 10;
}
if (k == 1) {
this._x = -2 * this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (random(_root.fish1MAXdx - _root.fish1MINdx) + _root.fish1MINdx) / 10;
this.dy = (random(_root.fish1MAXdy - _root.fish1MINdy) + fish1MINdy) / 10;
}
this.frezetime = _root.fish1frezetime;
_root.CheckExtraLife();
this.explode = 0;
this.outdoors = 1;
if (_root.Effects == "low") {
this.fish.direct.fish1.fisha.stop();
}
if (0 < this.dx) {
this.fish.direct.gotoAndStop("right");
} else {
this.fish.direct.gotoAndStop("left");
}
}
Symbol 121 MovieClip [fish8] Frame 2
onframe();
Symbol 121 MovieClip [fish8] Frame 3
gotoAndPlay (2);
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 8
_root.RemoveFish9();
Symbol 135 MovieClip Frame 1
stop();
Symbol 136 MovieClip [fish9] Frame 1
function onframe() {
if ((ManCheck1() == true) and (_root.HeroState == 0)) {
this.fish.rast.pic.pic3.play();
}
if ((ManCheck() == true) and (_root.HeroState == 0)) {
_root.live.lives_num--;
_root.GameOverCheck();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.die = 1;
_root.HeroState = _root.HeroFramesBlink;
}
}
function ManCheck() {
return(this.fish.rast.pic.pic3.hittest(_root.game.mask.man));
}
function ManCheck1() {
if (this.fish.rast.pic.pic1.hittest(_root.game.mask.man) == true) {
return(true);
}
if (this.fish.rast.pic.pic2.hittest(_root.game.mask.man) == true) {
return(true);
}
return(false);
}
Symbol 136 MovieClip [fish9] Frame 2
onframe();
Symbol 136 MovieClip [fish9] Frame 3
gotoAndPlay (2);
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 3
stop();
Symbol 145 MovieClip Frame 7
_parent._parent.Recreate();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 147 MovieClip [fish7] Frame 1
function onframe() {
if ((0 < frezetime) and (_root.PauseMode == 0)) {
frezetime--;
}
if (((_root.PauseMode == 0) and (frezetime == 0)) and (this.explode == 0)) {
if ((this._x < 0) or ((((_root.POLYW * _root.NUMBERX) - this._width) < this._x) and (this.outdoors == 1))) {
this._x = this._x + dx;
} else {
this.outdoors = 0;
if (0 < this.oglush) {
this.oglush--;
}
this._x = this._x + dx;
if (this._x < 0) {
this.fish.direct.gotoAndStop("right");
dx = -dx;
this._x = this._x + dx;
}
if ((_root.POLYW * _root.NUMBERX) < (this._x + this._width)) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
this._x = this._x + dx;
}
if (((120 < (_root.game.mask.man._x - this._x)) and (dx < 0)) && (this.oglush == 0)) {
this.fish.direct.gotoAndStop("right");
dx = -dx;
this._x = this._x + dx;
}
if (((100 < ((-_root.game.mask.man._x) + this._x)) and (0 < dx)) && (this.oglush == 0)) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
this._x = this._x + dx;
}
this._y = this._y + dy;
if (((this._y - 70) < 0) or ((_root.POLYH * _root.NUMBERY) < (this._y + this._height))) {
dy = -dy;
this._y = this._y + dy;
} else if (((this._y < _root.game.mask.man._y) and (dy < 0)) && (this.oglush == 0)) {
dy = -dy;
this._y = this._y + dy;
} else if ((((_root.game.mask.man._y + _root.game.mask.man._height) < this._y) and (0 < dy)) && (this.oglush == 0)) {
dy = -dy;
this._y = this._y + dy;
}
}
if ((ManCheck() == 1) and (_root.HeroState == 0)) {
_root.live.lives_num--;
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.die = 1;
_root.HeroState = _root.HeroFramesBlink;
}
}
}
function Oglushit() {
this.dy = -this.dy;
this.oglush = fish6oglush;
if ((0 < this.dx) && (this._x < _root.mask.man._x)) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
this._x = this._x + dx;
}
if ((this.dx < 0) && (_root.mask.man._x < this._x)) {
this.fish.direct.gotoAndStop("right");
dx = -dx;
this._x = this._x + dx;
}
}
function ManCheck() {
if (_root.FastHit(this, _root.game.mask.man) == 1) {
return(1);
}
return(0);
}
function Recreate() {
var k;
this.fish.gotoAndPlay(1);
k = random(2);
if (k == 0) {
this._x = (_root.POLYW * _root.NUMBERX) + this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (-(random(_root.fish7MAXdx - _root.fish7MINdx) + _root.fish7MINdx)) / 10;
this.dy = (random(_root.fish7MAXdy - _root.fish7MINdy) + _root.fish7MINdy) / 10;
}
if (k == 1) {
this._x = -2 * this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (random(_root.fish7MAXdx - _root.fish7MINdx) + _root.fish7MINdx) / 10;
this.dy = (random(_root.fish7MAXdy - _root.fish7MINdy) + fish7MINdy) / 10;
}
this.frezetime = _root.fish7frezetime;
_root.CheckExtraLife();
this.explode = 0;
this.outdoors = 1;
if (_root.Effects == "low") {
this.fish.direct.fisha.stop();
}
if (0 < this.dx) {
this.fish.direct.gotoAndStop("right");
} else {
this.fish.direct.gotoAndStop("left");
}
}
Symbol 147 MovieClip [fish7] Frame 2
onframe();
Symbol 147 MovieClip [fish7] Frame 3
gotoAndPlay (2);
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 3
stop();
Symbol 155 MovieClip Frame 7
_parent._parent.Recreate();
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 2
stop();
Symbol 157 MovieClip [fish6] Frame 1
function onframe() {
if ((0 < frezetime) and (_root.PauseMode == 0)) {
frezetime--;
}
if (((_root.PauseMode == 0) and (frezetime == 0)) and (this.explode == 0)) {
if ((this._x < 0) or ((((_root.POLYW * _root.NUMBERX) - this._width) < this._x) and (this.outdoors == 1))) {
this._x = this._x + dx;
} else {
if (0 < this.oglush) {
this.oglush--;
}
this.outdoors = 0;
this._x = this._x + dx;
if (this._x < 0) {
this.fish.direct.gotoAndStop("right");
dx = -dx;
this._x = this._x + dx;
}
if ((_root.POLYW * _root.NUMBERX) < (this._x + this._width)) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
this._x = this._x + dx;
}
this._y = this._y + dy;
if (((this._y - 70) < 0) or ((_root.POLYH * _root.NUMBERY) < (this._y + this._height))) {
dy = -dy;
this._y = this._y + dy;
} else if (((this._y < _root.game.mask.man._y) && (dy < 0)) && (this.oglush == 0)) {
dy = -dy;
this._y = this._y + dy;
} else if ((((_root.game.mask.man._y + _root.game.mask.man._height) < this._y) && (0 < dy)) && (this.oglush == 0)) {
dy = -dy;
this._y = this._y + dy;
}
}
if ((ManCheck() == 1) and (_root.HeroState == 0)) {
_root.live.lives_num--;
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.die = 1;
_root.HeroState = _root.HeroFramesBlink;
}
}
}
function Oglushit() {
this.oglush = _root.fish6oglush;
if ((0 < this.dx) && (this._x < _root.mask.man._x)) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
this._x = this._x + dx;
}
if ((this.dx < 0) && (_root.mask.man._x < this._x)) {
this.fish.direct.gotoAndStop("right");
dx = -dx;
this._x = this._x + dx;
}
}
function ManCheck() {
if (_root.FastHit(this, _root.game.mask.man) == 1) {
return(1);
}
return(0);
}
function Recreate() {
var k;
this.fish.gotoAndPlay(1);
k = random(2);
if (k == 0) {
this._x = (_root.POLYW * _root.NUMBERX) + this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (-(random(_root.fish6MAXdx - _root.fish6MINdx) + _root.fish6MINdx)) / 10;
this.dy = (random(_root.fish6MAXdy - _root.fish6MINdy) + _root.fish6MINdy) / 10;
}
if (k == 1) {
this._x = -2 * this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (random(_root.fish6MAXdx - _root.fish6MINdx) + _root.fish6MINdx) / 10;
this.dy = (random(_root.fish6MAXdy - _root.fish6MINdy) + fish6MINdy) / 10;
}
this.frezetime = _root.fish6frezetime;
_root.CheckExtraLife();
this.explode = 0;
this.outdoors = 1;
if (_root.Effects == "low") {
this.fish.direct.fisha.stop();
}
if (0 < this.dx) {
this.fish.direct.gotoAndStop("right");
} else {
this.fish.direct.gotoAndStop("left");
}
}
Symbol 157 MovieClip [fish6] Frame 2
onframe();
Symbol 157 MovieClip [fish6] Frame 3
gotoAndPlay (2);
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 3
stop();
Symbol 165 MovieClip Frame 7
_parent._parent.Recreate();
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
stop();
Symbol 167 MovieClip [fish5] Frame 1
function onframe() {
var k;
if ((0 < frezetime) and (_root.PauseMode == 0)) {
frezetime--;
}
if (((_root.PauseMode == 0) and (frezetime == 0)) and (this.explode == 0)) {
if ((this._x < 0) or ((((_root.POLYW * _root.NUMBERX) - this._width) < this._x) and (this.outdoors == 1))) {
this._x = this._x + dx;
} else {
this.outdoors = 0;
this.counter--;
k = random(2);
if (k == 0) {
this.counter--;
}
if (0 < this.counter) {
this._x = this._x + dx;
if (this._x < 2) {
this.fish.direct.gotoAndStop("right");
dx = -dx;
this._x = this._x + dx;
}
if (((_root.POLYW * _root.NUMBERX) - 2) < (this._x + this._width)) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
this._x = this._x + dx;
}
} else {
if (dx < 0) {
this.fish.direct.gotoAndStop("right");
dx = -dx;
} else if (0 < dx) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
}
this.counter = 40;
}
}
if ((ManCheck() == 1) and (_root.HeroState == 0)) {
_root.live.lives_num--;
_root.die = 2;
_root.game.mask.attachMovie("tros", "tros1", _root.herodepth--);
_root.game.mask.tros1._x = _root.game.mask.man._x + (_root.game.mask.man._width / 4);
_root.game.mask.tros1._height = ((((_root.game.mask.tros._height - this._y) - (this._height / 2)) + _root.game.mask.ship._y) + _root.game.mask.ship._height) - 6;
_root.game.mask.tros1._y = this._y + (this._height / 2);
_root.game.mask.tros._height = _root.game.mask.tros._height - _root.game.mask.tros1._height;
_root.die2y = this._y + (this._height / 2);
_root.HeroState = _root.HeroFramesBlink;
}
if ((ManCheck1() == 1) and (_root.HeroState == 0)) {
_root.live.lives_num--;
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.die = 1;
_root.HeroState = _root.HeroFramesBlink;
}
}
}
function ManCheck() {
if (this.hittest(_root.game.mask.tros)) {
return(1);
}
return(0);
}
function ManCheck1() {
if (_root.FastHit(this, _root.game.mask.man) == 1) {
return(1);
}
return(0);
}
function Recreate() {
var k;
this.fish.gotoAndPlay(1);
k = random(2);
if (k == 0) {
this._x = (_root.POLYW * _root.NUMBERX) + this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (-(random(_root.fish5MAXdx - _root.fish5MINdx) + _root.fish5MINdx)) / 10;
}
if (k == 1) {
this._x = -2 * this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (random(_root.fish5MAXdx - _root.fish5MINdx) + _root.fish5MINdx) / 10;
}
this.frezetime = _root.fish5frezetime;
_root.CheckExtraLife();
this.explode = 0;
this.counter = 40;
this.outdoors = 1;
if (_root.Effects == "low") {
this.fish.direct.fisha.stop();
}
if (0 < this.dx) {
this.fish.direct.gotoAndStop("right");
} else {
this.fish.direct.gotoAndStop("left");
}
}
Symbol 167 MovieClip [fish5] Frame 2
onframe();
Symbol 167 MovieClip [fish5] Frame 3
gotoAndPlay (2);
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 3
stop();
Symbol 175 MovieClip Frame 10
_parent._parent.Recreate();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
stop();
Symbol 177 MovieClip [fish10] Frame 1
function onframe() {
if ((0 < frezetime) and (_root.PauseMode == 0)) {
frezetime--;
if (frezetime == 0) {
var k;
k = random(99);
if (60 < k) {
frezetime = _root.fish10frezetime;
}
}
}
if (((_root.PauseMode == 0) and (frezetime == 0)) and (this.explode == 0)) {
if (((this._x < 0) or (((_root.POLYW * _root.NUMBERX) - this._width) < this._x)) and (this.outdoors == 1)) {
this._x = this._x + dx;
} else {
this.outdoors = 0;
this._x = this._x + dx;
if (this._x < (-2 * this._width)) {
Recreate();
} else if (((_root.POLYW * _root.NUMBERX) + this._width) < this._x) {
Recreate();
}
}
CheckEverybody();
if ((ManCheck() == 1) and (_root.HeroState == 0)) {
_root.live.lives_num--;
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.die = 1;
_root.HeroState = _root.HeroFramesBlink;
}
}
}
function CheckEverybody() {
Fish1Check();
Fish2Check();
Fish3Check();
Fish4Check();
Fish5Check();
Fish6Check();
Fish7Check();
Fish8Check();
}
function Fish1Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish1COL) {
if (((this.hittest(_root.game.mask["fish1_" + i]) == true) and (_root.game.mask["fish1_" + i].explode != 1)) and (_root.game.mask["fish1_" + i].outdoors == 0)) {
_root.game.mask["fish1_" + i].fish.gotoAndStop("die");
_root.game.mask["fish1_" + i].explode = 1;
}
i++;
}
}
function Fish2Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish2COL) {
if (((this.hittest(_root.game.mask["fish2_" + i]) == true) and (_root.game.mask["fish2_" + i].explode != 1)) and (_root.game.mask["fish2_" + i].outdoors == 0)) {
_root.game.mask["fish2_" + i].fish.gotoAndStop("die");
_root.game.mask["fish2_" + i].explode = 1;
}
i++;
}
}
function Fish3Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish3COL) {
if (((this.hittest(_root.game.mask["fish3_" + i]) == true) and (_root.game.mask["fish3_" + i].explode != 1)) and (_root.game.mask["fish3_" + i].outdoors == 0)) {
_root.game.mask["fish3_" + i].fish.gotoAndStop("die");
_root.game.mask["fish3_" + i].explode = 1;
}
i++;
}
}
function Fish4Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish4COL) {
if (((this.hittest(_root.game.mask["fish4_" + i]) == true) and (_root.game.mask["fish4_" + i].explode != 1)) and (_root.game.mask["fish4_" + i].outdoors == 0)) {
_root.game.mask["fish4_" + i].fish.gotoAndStop("die");
_root.game.mask["fish4_" + i].explode = 1;
}
i++;
}
}
function Fish5Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish5COL) {
if (((this.hittest(_root.game.mask["fish5_" + i]) == true) and (_root.game.mask["fish5_" + i].explode != 1)) and (_root.game.mask["fish5_" + i].outdoors == 0)) {
_root.game.mask["fish5_" + i].fish.gotoAndStop("die");
_root.game.mask["fish5_" + i].explode = 1;
}
i++;
}
}
function Fish6Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish6COL) {
if (((this.hittest(_root.game.mask["fish6_" + i]) == true) and (_root.game.mask["fish6_" + i].explode != 1)) and (_root.game.mask["fish6_" + i].outdoors == 0)) {
_root.game.mask["fish6_" + i].fish.gotoAndStop("die");
_root.game.mask["fish6_" + i].explode = 1;
}
i++;
}
}
function Fish7Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish7COL) {
if (((this.hittest(_root.game.mask["fish7_" + i]) == true) and (_root.game.mask["fish7_" + i].explode != 1)) and (_root.game.mask["fish7_" + i].outdoors == 0)) {
_root.game.mask["fish7_" + i].fish.gotoAndStop("die");
_root.game.mask["fish7_" + i].explode = 1;
}
i++;
}
}
function Fish8Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish8COL) {
if (((this.hittest(_root.game.mask["fish8_" + i]) == true) and (_root.game.mask["fish8_" + i].explode != 1)) and (_root.game.mask["fish8_" + i].outdoors == 0)) {
_root.game.mask["fish8_" + i].fish.gotoAndStop("die");
_root.game.mask["fish8_" + i].explode = 1;
}
i++;
}
}
function ManCheck() {
if (this.hittest(_root.game.mask.man) == true) {
return(1);
}
return(0);
}
function Recreate() {
var k;
this.fish.gotoAndPlay(1);
k = random(2);
if (k == 0) {
this._x = (_root.POLYW * _root.NUMBERX) + this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (-(random(_root.fish10MAXdx - _root.fish10MINdx) + _root.fish10MINdx)) / 10;
this.dy = 0;
}
if (k == 1) {
this._x = -2 * this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (random(_root.fish10MAXdx - _root.fish10MINdx) + _root.fish10MINdx) / 10;
this.dy = 0;
}
this.frezetime = 5;
this.explode = 0;
this.outdoors = 1;
if (_root.Effects == "low") {
this.fish.direct.fisha.stop();
}
if (0 < this.dx) {
this.fish.direct.gotoAndStop("right");
} else {
this.fish.direct.gotoAndStop("left");
}
}
Symbol 177 MovieClip [fish10] Frame 2
onframe();
Symbol 177 MovieClip [fish10] Frame 3
gotoAndPlay (2);
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 3
stop();
Symbol 196 MovieClip Frame 10
_parent._parent.Recreate();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
stop();
Symbol 198 MovieClip [fish11] Frame 1
function onframe() {
if ((0 < this.frezetime) and (_root.PauseMode == 0)) {
this.frezetime--;
}
if (((_root.PauseMode == 0) and (frezetime == 0)) and (this.explode == 0)) {
if ((this._x < 0) or ((((_root.POLYW * _root.NUMBERX) - this._width) < this._x) and (this.outdoors == 1))) {
this._x = this._x + this.dx;
} else {
this.outdoors = 0;
this.life--;
if (0 >= this.life) {
this.removeMovieClip();
}
this._x = this._x + dx;
if (this._x < 0) {
this.fish.direct.gotoAndStop("right");
dx = -dx;
this._x = this._x + dx;
}
if ((_root.POLYW * _root.NUMBERX) < (this._x + this._width)) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
this._x = this._x + dx;
}
if ((70 < (_root.game.mask.man._x - this._x)) and (dx < 0)) {
this.fish.direct.gotoAndStop("right");
dx = -dx;
this._x = this._x + dx;
}
if ((70 < ((-_root.game.mask.man._x) + this._x)) and (0 < dx)) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
this._x = this._x + dx;
}
if ((_root.POLYW * _root.NUMBERX) < (this._x + this._width)) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
this._x = this._x + dx;
}
this._y = this._y + dy;
if (((this._y - 70) < 0) or ((_root.POLYH * _root.NUMBERY) < (this._y + this._height))) {
dy = -dy;
this._y = this._y + dy;
}
}
CheckEverybody();
}
}
function CheckEverybody() {
Fish1Check();
Fish2Check();
Fish3Check();
Fish4Check();
Fish5Check();
Fish6Check();
Fish7Check();
Fish8Check();
}
function Fish1Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish1COL) {
if (((this.hittest(_root.game.mask["fish1_" + i]) == true) and (_root.game.mask["fish1_" + i].explode != 1)) and (_root.game.mask["fish1_" + i].outdoors == 0)) {
_root.game.mask["fish1_" + i].fish.gotoAndStop("die");
_root.game.mask["fish1_" + i].explode = 1;
}
i++;
}
}
function Fish2Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish2COL) {
if (((this.hittest(_root.game.mask["fish2_" + i]) == true) and (_root.game.mask["fish2_" + i].explode != 1)) and (_root.game.mask["fish2_" + i].outdoors == 0)) {
_root.game.mask["fish2_" + i].fish.gotoAndStop("die");
_root.game.mask["fish2_" + i].explode = 1;
}
i++;
}
}
function Fish3Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish3COL) {
if (((this.hittest(_root.game.mask["fish3_" + i]) == true) and (_root.game.mask["fish3_" + i].explode != 1)) and (_root.game.mask["fish3_" + i].outdoors == 0)) {
_root.game.mask["fish3_" + i].fish.gotoAndStop("die");
_root.game.mask["fish3_" + i].explode = 1;
}
i++;
}
}
function Fish4Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish4COL) {
if (((this.hittest(_root.game.mask["fish4_" + i]) == true) and (_root.game.mask["fish4_" + i].explode != 1)) and (_root.game.mask["fish4_" + i].outdoors == 0)) {
_root.game.mask["fish4_" + i].fish.gotoAndStop("die");
_root.game.mask["fish4_" + i].explode = 1;
}
i++;
}
}
function Fish5Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish5COL) {
if (((this.hittest(_root.game.mask["fish5_" + i]) == true) and (_root.game.mask["fish5_" + i].explode != 1)) and (_root.game.mask["fish5_" + i].outdoors == 0)) {
_root.game.mask["fish5_" + i].fish.gotoAndStop("die");
_root.game.mask["fish5_" + i].explode = 1;
}
i++;
}
}
function Fish6Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish6COL) {
if (((this.hittest(_root.game.mask["fish6_" + i]) == true) and (_root.game.mask["fish6_" + i].explode != 1)) and (_root.game.mask["fish6_" + i].outdoors == 0)) {
_root.game.mask["fish6_" + i].Oglushit();
}
i++;
}
}
function Fish7Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish7COL) {
if (((this.hittest(_root.game.mask["fish7_" + i]) == true) and (_root.game.mask["fish7_" + i].explode != 1)) and (_root.game.mask["fish7_" + i].outdoors == 0)) {
_root.game.mask["fish7_" + i].Oglushit();
}
i++;
}
}
function Fish8Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish8COL) {
if (((this.hittest(_root.game.mask["fish8_" + i]) == true) and (_root.game.mask["fish8_" + i].explode != 1)) and (_root.game.mask["fish8_" + i].outdoors == 0)) {
_root.game.mask["fish8_" + i].fish.gotoAndStop("die");
_root.game.mask["fish8_" + i].explode = 1;
}
i++;
}
}
function ManCheck() {
if (_root.FastHit(this, _root.game.mask.man) == 1) {
return(1);
}
return(0);
}
function Recreate() {
var k;
this.fish.gotoAndPlay(1);
k = random(2);
if (k == 0) {
this._x = (_root.POLYW * _root.NUMBERX) + this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (-(random(_root.fish11MAXdx - _root.fish11MINdx) + _root.fish11MINdx)) / 10;
this.dy = (random(_root.fish11MAXdy - _root.fish11MINdy) + _root.fish11MINdy) / 10;
}
if (k == 1) {
this._x = -2 * this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (random(_root.fish11MAXdx - _root.fish11MINdx) + _root.fish11MINdx) / 10;
this.dy = (random(_root.fish11MAXdy - _root.fish11MINdy) + fish11MINdy) / 10;
}
this.frezetime = _root.fish11frezetime;
_root.CheckExtraLife();
this.explode = 0;
this.outdoors = 1;
if (_root.Effects == "low") {
this.fish.direct.fisha.stop();
}
if (0 < dx) {
this.fish.direct.gotoAndStop("right");
} else {
this.fish.direct.gotoAndStop("left");
}
}
Symbol 198 MovieClip [fish11] Frame 2
onframe();
Symbol 198 MovieClip [fish11] Frame 3
gotoAndPlay (2);
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 3
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
stop();
Symbol 202 MovieClip [fish1] Frame 1
function onframe() {
if ((0 < this.frezetime) and (_root.PauseMode == 0)) {
this.frezetime--;
}
if (((_root.PauseMode == 0) and (frezetime == 0)) and (this.explode == 0)) {
if ((this._x < 0) or ((((_root.POLYW * _root.NUMBERX) - this._width) < this._x) and (this.outdoors == 1))) {
this._x = this._x + this.dx;
} else {
this.outdoors = 0;
this._x = this._x + dx;
if (this._x < 0) {
this.fish.direct.gotoAndStop("right");
dx = -dx;
this._x = this._x + dx;
}
if ((_root.POLYW * _root.NUMBERX) < (this._x + this._width)) {
this.fish.direct.gotoAndStop("left");
dx = -dx;
this._x = this._x + dx;
}
this._y = this._y + dy;
if (((this._y - 70) < 0) or ((_root.POLYH * _root.NUMBERY) < (this._y + this._height))) {
dy = -dy;
this._y = this._y + dy;
}
}
if ((ManCheck() == 1) and (_root.HeroState == 0)) {
_root.live.lives_num--;
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
_root.die = 1;
_root.HeroState = _root.HeroFramesBlink;
}
}
}
function ManCheck() {
if (_root.FastHit(this, _root.game.mask.man) == 1) {
return(1);
}
return(0);
}
function Recreate() {
var k;
this.fish.gotoAndPlay(1);
k = random(2);
if (k == 0) {
this._x = (_root.POLYW * _root.NUMBERX) + this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (-(random(_root.fish1MAXdx - _root.fish1MINdx) + _root.fish1MINdx)) / 10;
this.dy = (random(_root.fish1MAXdy - _root.fish1MINdy) + _root.fish1MINdy) / 10;
}
if (k == 1) {
this._x = -2 * this._width;
this._y = (random(_root.NUMBERY - 8) + 4) * _root.POLYH;
this.dx = (random(_root.fish1MAXdx - _root.fish1MINdx) + _root.fish1MINdx) / 10;
this.dy = (random(_root.fish1MAXdy - _root.fish1MINdy) + fish1MINdy) / 10;
}
this.frezetime = _root.fish1frezetime;
_root.CheckExtraLife();
this.explode = 0;
this.outdoors = 1;
if (_root.Effects == "low") {
this.fish.direct.fisha.stop();
}
if (_root.DemoMode != 0) {
if (_root.killed.kill == 1) {
this._x = -2 * this._width;
this._y = 12 * _root.POLYH;
this.dx = 5;
this.dy = 2;
}
if (_root.killed.kill == 2) {
this._x = (_root.POLYW * _root.NUMBERX) + this._width;
this._y = 7 * _root.POLYH;
this.dx = -4;
this.dy = 2;
}
}
if (0 < dx) {
this.fish.direct.gotoAndStop("right");
} else {
this.fish.direct.gotoAndStop("left");
}
}
Symbol 202 MovieClip [fish1] Frame 2
onframe();
Symbol 202 MovieClip [fish1] Frame 3
gotoAndPlay (2);
Instance of Symbol 205 MovieClip "mask" in Symbol 206 MovieClip [game] Frame 1
onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
if ((_root.DemoMode == 1) and (_root.OpenedWindow == 0)) {
_root.NewGameYes();
_root.demomodeon._visible = false;
}
}
}
Symbol 224 Button
on (release) {
_root.HelpOK();
}
Symbol 225 Button
on (release) {
this.nextFrame();
}
Symbol 232 Button
on (release) {
this.nextFrame();
}
Symbol 233 Button
on (release) {
this.prevFrame();
}
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 3
stop();
Symbol 265 MovieClip [help] Frame 1
stop();
Symbol 265 MovieClip [help] Frame 2
stop();
Symbol 265 MovieClip [help] Frame 3
stop();
Symbol 266 Button
on (release) {
_root.GameOverOK();
}
Symbol 272 MovieClip [bullet] Frame 1
function onBulletFrame() {
if (_root.PauseMode == 0) {
CheckBulletHitBounds();
Fish1Check();
Fish2Check();
Fish3Check();
Fish4Check();
Fish5Check();
Fish6Check();
Fish7Check();
Fish8Check();
if (this.direct == "left") {
this._x = this._x - _root.BulletSpeed;
}
if (this.direct == "right") {
this._x = this._x + _root.BulletSpeed;
}
}
}
function Fish1Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish1COL) {
if ((this.hittest(_root.game.mask["fish1_" + i]) == true) and (_root.game.mask["fish1_" + i].explode != 1)) {
_root.score.sc = _root.score.sc + _root.fish1score;
_root.AviableScore = _root.AviableScore + _root.fish1score;
_root.game.mask["fish1_" + i].fish.gotoAndStop("die");
_root.game.mask["fish1_" + i].explode = 1;
_root.AttachHint("+" + _root.fish1score, _root.game.mask["fish1_" + i]._x, _root.game.mask["fish1_" + i]._y);
_root.FishKilled++;
_root.killed.kill = _root.FishKilled;
if (_root.SoundState == "on") {
_root.hit_snd.start();
}
_root.KillsLeft--;
_root.bonusX = _root.game.mask["fish1_" + i]._x;
_root.bonusY = _root.game.mask["fish1_" + i]._y;
this.removeMovieClip();
}
i++;
}
}
function Fish2Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish2COL) {
if ((this.hittest(_root.game.mask["fish2_" + i]) == true) and (_root.game.mask["fish2_" + i].explode != 1)) {
_root.score.sc = _root.score.sc + _root.fish2score;
_root.AviableScore = _root.AviableScore + _root.fish2score;
_root.game.mask["fish2_" + i].fish.gotoAndStop("die");
_root.game.mask["fish2_" + i].explode = 1;
_root.AttachHint("+" + _root.fish2score, _root.game.mask["fish2_" + i]._x, _root.game.mask["fish2_" + i]._y);
_root.FishKilled++;
_root.killed.kill = _root.FishKilled;
_root.KillsLeft--;
_root.bonusX = _root.game.mask["fish2_" + i]._x;
_root.bonusY = _root.game.mask["fish2_" + i]._y;
if (_root.SoundState == "on") {
_root.hit_snd.start();
}
this.removeMovieClip();
}
i++;
}
}
function Fish3Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish3COL) {
if ((this.hittest(_root.game.mask["fish3_" + i]) == true) and (_root.game.mask["fish3_" + i].explode != 1)) {
_root.score.sc = _root.score.sc + _root.fish3score;
_root.AviableScore = _root.AviableScore + _root.fish3score;
_root.game.mask["fish3_" + i].fish.gotoAndStop("die");
_root.game.mask["fish3_" + i].explode = 1;
_root.AttachHint("+" + _root.fish3score, _root.game.mask["fish3_" + i]._x, _root.game.mask["fish3_" + i]._y);
_root.FishKilled++;
_root.killed.kill = _root.FishKilled;
_root.KillsLeft--;
_root.bonusX = _root.game.mask["fish3_" + i]._x;
_root.bonusY = _root.game.mask["fish3_" + i]._y;
if (_root.SoundState == "on") {
_root.hit_snd.start();
}
this.removeMovieClip();
}
i++;
}
}
function Fish4Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish4COL) {
if ((this.hittest(_root.game.mask["fish4_" + i]) == true) and (_root.game.mask["fish4_" + i].explode != 1)) {
_root.score.sc = _root.score.sc + _root.fish4score;
_root.AviableScore = _root.AviableScore + _root.fish4score;
_root.game.mask["fish4_" + i].fish.gotoAndStop("die");
_root.game.mask["fish4_" + i].explode = 1;
_root.AttachHint("+" + _root.fish4score, _root.game.mask["fish4_" + i]._x, _root.game.mask["fish4_" + i]._y);
_root.FishKilled++;
_root.killed.kill = _root.FishKilled;
_root.KillsLeft--;
_root.bonusX = _root.game.mask["fish4_" + i]._x;
_root.bonusY = _root.game.mask["fish4_" + i]._y;
if (_root.SoundState == "on") {
_root.hit_snd.start();
}
this.removeMovieClip();
}
i++;
}
}
function Fish5Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish5COL) {
if ((this.hittest(_root.game.mask["fish5_" + i]) == true) and (_root.game.mask["fish5_" + i].explode != 1)) {
_root.score.sc = _root.score.sc + _root.fish5score;
_root.AviableScore = _root.AviableScore + _root.fish5score;
_root.game.mask["fish5_" + i].fish.gotoAndStop("die");
_root.game.mask["fish5_" + i].explode = 1;
_root.AttachHint("+" + _root.fish5score, _root.game.mask["fish5_" + i]._x, _root.game.mask["fish5_" + i]._y);
_root.FishKilled++;
_root.killed.kill = _root.FishKilled;
_root.KillsLeft--;
_root.bonusX = _root.game.mask["fish5_" + i]._x;
_root.bonusY = _root.game.mask["fish5_" + i]._y;
if (_root.SoundState == "on") {
_root.hit_snd.start();
}
this.removeMovieClip();
}
i++;
}
}
function Fish6Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish6COL) {
if ((this.hittest(_root.game.mask["fish6_" + i]) == true) and (_root.game.mask["fish6_" + i].explode != 1)) {
_root.score.sc = _root.score.sc + _root.fish6score;
_root.AviableScore = _root.AviableScore + _root.fish6score;
_root.game.mask["fish6_" + i].fish.gotoAndStop("die");
_root.game.mask["fish6_" + i].explode = 1;
_root.AttachHint("+" + _root.fish6score, _root.game.mask["fish6_" + i]._x, _root.game.mask["fish6_" + i]._y);
_root.FishKilled++;
_root.killed.kill = _root.FishKilled;
_root.KillsLeft--;
_root.bonusX = _root.game.mask["fish6_" + i]._x;
_root.bonusY = _root.game.mask["fish6_" + i]._y;
if (_root.SoundState == "on") {
_root.hit_snd.start();
}
this.removeMovieClip();
}
i++;
}
}
function Fish7Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish7COL) {
if ((this.hittest(_root.game.mask["fish7_" + i]) == true) and (_root.game.mask["fish7_" + i].explode != 1)) {
_root.score.sc = _root.score.sc + _root.fish7score;
_root.AviableScore = _root.AviableScore + _root.fish7score;
_root.game.mask["fish7_" + i].fish.gotoAndStop("die");
_root.game.mask["fish7_" + i].explode = 1;
_root.AttachHint("+" + _root.fish7score, _root.game.mask["fish7_" + i]._x, _root.game.mask["fish7_" + i]._y);
_root.FishKilled++;
_root.killed.kill = _root.FishKilled;
_root.KillsLeft--;
_root.bonusX = _root.game.mask["fish7_" + i]._x;
_root.bonusY = _root.game.mask["fish7_" + i]._y;
if (_root.SoundState == "on") {
_root.hit_snd.start();
}
this.removeMovieClip();
}
i++;
}
}
function Fish8Check() {
var i;
var k;
var b;
i = 0;
while (i < _root.fish8COL) {
if ((this.hittest(_root.game.mask["fish8_" + i]) == true) and (_root.game.mask["fish8_" + i].explode != 1)) {
_root.score.sc = _root.score.sc + _root.fish8score;
_root.AviableScore = _root.AviableScore + _root.fish8score;
_root.game.mask["fish8_" + i].fish.gotoAndStop("die");
_root.game.mask["fish8_" + i].explode = 1;
_root.AttachHint("+" + _root.fish8score, _root.game.mask["fish8_" + i]._x, _root.game.mask["fish8_" + i]._y);
_root.FishKilled++;
_root.killed.kill = _root.FishKilled;
_root.KillsLeft--;
_root.bonusX = _root.game.mask["fish8_" + i]._x;
_root.bonusY = _root.game.mask["fish8_" + i]._y;
if (_root.SoundState == "on") {
_root.hit_snd.start();
}
this.removeMovieClip();
}
i++;
}
}
function CheckBulletHitBounds() {
if (this._x < 0) {
this.removeMovieClip();
}
if ((_root.POLYW * _root.NUMBERX) < this._x) {
this.removeMovieClip();
}
}
Symbol 272 MovieClip [bullet] Frame 2
onBulletFrame();
Symbol 272 MovieClip [bullet] Frame 3
gotoAndPlay (2);
Symbol 274 MovieClip [Bonusfire] Frame 1
function onBonusfireFrame() {
if (_root.PauseMode == 0) {
this._y = this._y + (2 * _root.d);
if (((_root.POLYH * _root.NUMBERY) - this._height) < this._y) {
this._y = (_root.POLYH * _root.NUMBERY) - this._height;
}
CheckManForHitBonusfire();
CheckStay();
}
}
function CheckStay() {
this.frame++;
if (this.frame >= (_root.bonusframesstay - _root.bonusframesblink)) {
this._alpha = this._alpha + this.alphad;
if (this._alpha < 30) {
this.alphad = -this.alphad;
}
if (90 < this._alpha) {
this.alphad = -this.alphad;
}
}
if (_root.bonusframesstay < this.frame) {
this.removeMovieClip();
}
}
function CheckManForHitBonusfire() {
if (_root.game.mask.man.hittest(this) == true) {
_root.bonusfirecurframe = 0;
_root.bonusfirelength = 150;
_root.FireFramesD = 1;
_root.AttachHint("FIRE!", _root.game.mask.man._x, _root.game.mask.man._y);
this.removeMovieClip();
}
}
Symbol 274 MovieClip [Bonusfire] Frame 2
onBonusfireFrame();
Symbol 274 MovieClip [Bonusfire] Frame 3
gotoAndPlay (2);
Symbol 276 MovieClip [Bonuslife] Frame 1
function onBonuslifeFrame() {
if (_root.PauseMode == 0) {
this._y = this._y + (2 * _root.d);
if (((_root.POLYH * _root.NUMBERY) - this._height) < this._y) {
this._y = (_root.POLYH * _root.NUMBERY) - this._height;
}
CheckManForHitBonuslife();
CheckStay();
}
}
function CheckStay() {
this.frame++;
if (this.frame >= (_root.bonusframesstay - _root.bonusframesblink)) {
this._alpha = this._alpha + this.alphad;
if (this._alpha < 30) {
this.alphad = -this.alphad;
}
if (90 < this._alpha) {
this.alphad = -this.alphad;
}
}
if (_root.bonusframesstay < this.frame) {
this.removeMovieClip();
}
}
function CheckManForHitBonuslife() {
if (_root.game.mask.man.hittest(this) == true) {
_root.bonuslifecurframe = 0;
_root.HeroLives++;
_root.AttachHint("Life", _root.game.mask.man._x, _root.game.mask.man._y);
_root.live.lives_num++;
this.removeMovieClip();
}
}
Symbol 276 MovieClip [Bonuslife] Frame 2
onBonuslifeFrame();
Symbol 276 MovieClip [Bonuslife] Frame 3
gotoAndPlay (2);
Symbol 278 MovieClip [bonusDolphin] Frame 1
function onBonusDolphinFrame() {
if (_root.PauseMode == 0) {
this._y = this._y + (2 * _root.d);
if (((_root.POLYH * _root.NUMBERY) - this._height) < this._y) {
this._y = (_root.POLYH * _root.NUMBERY) - this._height;
}
CheckManForHitBonusDolphin();
CheckStay();
}
}
function CheckStay() {
this.frame++;
if (this.frame >= (_root.bonusframesstay - _root.bonusframesblink)) {
this._alpha = this._alpha + this.alphad;
if (this._alpha < 30) {
this.alphad = -this.alphad;
}
if (90 < this._alpha) {
this.alphad = -this.alphad;
}
}
if (_root.bonusframesstay < this.frame) {
this.removeMovieClip();
}
}
function CheckManForHitBonusDolphin() {
if (_root.game.mask.man.hittest(this) == true) {
_root.AttachHint("DOLPHIN!", _root.game.mask.man._x, _root.game.mask.man._y);
_root.AttachFish11();
this.removeMovieClip();
}
}
Symbol 278 MovieClip [bonusDolphin] Frame 2
onBonusDolphinFrame();
Symbol 278 MovieClip [bonusDolphin] Frame 3
gotoAndPlay (2);
Symbol 280 MovieClip [bonusDQD] Frame 1
function onBonusDQDFrame() {
if (_root.PauseMode == 0) {
this._y = this._y + (2 * _root.d);
if (((_root.POLYH * _root.NUMBERY) - this._height) < this._y) {
this._y = (_root.POLYH * _root.NUMBERY) - this._height;
}
CheckManForHitBonusDQD();
CheckStay();
}
}
function CheckStay() {
this.frame++;
if (this.frame >= (_root.bonusframesstay - _root.bonusframesblink)) {
this._alpha = this._alpha + this.alphad;
if (this._alpha < 30) {
this.alphad = -this.alphad;
}
if (90 < this._alpha) {
this.alphad = -this.alphad;
}
}
if (_root.bonusframesstay < this.frame) {
this.removeMovieClip();
}
}
function CheckManForHitBonusDQD() {
if (_root.game.mask.man.hittest(this) == true) {
_root.bonusDQDcurframe = 0;
_root.AttachHint("Immortality", _root.game.mask.man._x, _root.game.mask.man._y);
_root.HeroState = 250;
_root.game.mask.man.mc.nextFrame();
_root.game.mask.man.mc.nextFrame();
this.removeMovieClip();
}
}
Symbol 280 MovieClip [bonusDQD] Frame 2
onBonusDQDFrame();
Symbol 280 MovieClip [bonusDQD] Frame 3
gotoAndPlay (2);
Symbol 282 MovieClip [bonusKillAll] Frame 1
function onBonusKillAllFrame() {
if (_root.PauseMode == 0) {
this._y = this._y + (2 * _root.d);
if (((_root.POLYH * _root.NUMBERY) - this._height) < this._y) {
this._y = (_root.POLYH * _root.NUMBERY) - this._height;
}
CheckManForHitBonusKillAll();
CheckStay();
}
}
function CheckStay() {
this.frame++;
if (this.frame >= (_root.bonusframesstay - _root.bonusframesblink)) {
this._alpha = this._alpha + this.alphad;
if (this._alpha < 30) {
this.alphad = -this.alphad;
}
if (90 < this._alpha) {
this.alphad = -this.alphad;
}
}
if (_root.bonusframesstay < this.frame) {
this.removeMovieClip();
}
}
function CheckManForHitBonusKillAll() {
if (_root.game.mask.man.hittest(this) == true) {
_root.bonusKillAllcurframe = 0;
_root.AttachHint("Kill All", _root.game.mask.man._x, _root.game.mask.man._y);
_root.UnloadFishes();
this.removeMovieClip();
}
}
Symbol 282 MovieClip [bonusKillAll] Frame 2
onBonusKillAllFrame();
Symbol 282 MovieClip [bonusKillAll] Frame 3
gotoAndPlay (2);
Symbol 284 MovieClip [bonus3] Frame 1
function onBonus3Frame() {
if (_root.PauseMode == 0) {
this._y = this._y + (2 * _root.d);
if (((_root.POLYH * _root.NUMBERY) - this._height) < this._y) {
this._y = (_root.POLYH * _root.NUMBERY) - this._height;
}
CheckManForHitBonus3();
CheckStay();
}
}
function CheckStay() {
this.frame++;
if (this.frame >= (_root.bonusframesstay - _root.bonusframesblink)) {
this._alpha = this._alpha + this.alphad;
if (this._alpha < 30) {
this.alphad = -this.alphad;
}
if (90 < this._alpha) {
this.alphad = -this.alphad;
}
}
if (_root.bonusframesstay < this.frame) {
this.removeMovieClip();
}
}
function CheckManForHitBonus3() {
if (_root.game.mask.man.hittest(this) == true) {
_root.bonus3curframe = 0;
_root.AttachHint(_root.bonus3score, _root.game.mask.man._x, _root.game.mask.man._y);
_root.score.sc = _root.score.sc + _root.bonus3score;
_root.AviableScore = _root.AviableScore + (_root.bonusBKscore * _root.CurrentLevel);
_root.CheckExtraLife();
this.removeMovieClip();
}
}
Symbol 284 MovieClip [bonus3] Frame 2
onBonus3Frame();
Symbol 284 MovieClip [bonus3] Frame 3
gotoAndPlay (2);
Symbol 286 MovieClip [bonus2] Frame 1
function onBonus2Frame() {
if (_root.PauseMode == 0) {
this._y = this._y + (2 * _root.d);
if (((_root.POLYH * _root.NUMBERY) - this._height) < this._y) {
this._y = (_root.POLYH * _root.NUMBERY) - this._height;
}
CheckStay();
CheckManForHitBonus2();
}
}
function CheckStay() {
this.frame++;
if (this.frame >= (_root.bonusframesstay - _root.bonusframesblink)) {
this._alpha = this._alpha + this.alphad;
if (this._alpha < 30) {
this.alphad = -this.alphad;
}
if (90 < this._alpha) {
this.alphad = -this.alphad;
}
}
if (_root.bonusframesstay < this.frame) {
this.removeMovieClip();
}
}
function CheckManForHitBonus2() {
if (_root.game.mask.man.hittest(this) == true) {
_root.bonus2curframe = 0;
_root.score.sc = _root.score.sc + _root.bonus2score;
_root.AttachHint(_root.bonus2score, _root.game.mask.man._x, _root.game.mask.man._y);
_root.AviableScore = _root.AviableScore + (_root.bonusBKscore * _root.CurrentLevel);
_root.CheckExtraLife();
this.removeMovieClip();
}
}
Symbol 286 MovieClip [bonus2] Frame 2
onBonus2Frame();
Symbol 286 MovieClip [bonus2] Frame 3
gotoAndPlay (2);
Symbol 288 MovieClip [bonus1] Frame 1
function onBonus1Frame() {
if (_root.PauseMode == 0) {
this._y = this._y + (2 * _root.d);
if (((_root.POLYH * _root.NUMBERY) - this._height) < this._y) {
this._y = (_root.POLYH * _root.NUMBERY) - this._height;
}
CheckStay();
CheckManForHitBonus1();
}
}
function CheckStay() {
this.frame++;
if (this.frame >= (_root.bonusframesstay - _root.bonusframesblink)) {
this._alpha = this._alpha + this.alphad;
if (this._alpha < 30) {
this.alphad = -this.alphad;
}
if (90 < this._alpha) {
this.alphad = -this.alphad;
}
}
if (_root.bonusframesstay < this.frame) {
this.removeMovieClip();
}
}
function CheckManForHitBonus1() {
if (_root.game.mask.man.hittest(this) == true) {
_root.bonus1curframe = 0;
_root.AttachHint(_root.bonus1score, _root.game.mask.man._x, _root.game.mask.man._y);
_root.AviableScore = _root.AviableScore + (_root.bonusBKscore * _root.CurrentLevel);
_root.score.sc = _root.score.sc + _root.bonus1score;
_root.CheckExtraLife();
this.removeMovieClip();
}
}
Symbol 288 MovieClip [bonus1] Frame 2
onBonus1Frame();
Symbol 288 MovieClip [bonus1] Frame 3
gotoAndPlay (2);
Symbol 290 Button
on (release) {
_root.OptionsCancelClick();
}
Symbol 291 Button
on (release) {
_root.OptionsOkClick();
}
Instance of Symbol 293 MovieClip "hight" in Symbol 322 MovieClip [options] Frame 1
onClipEvent (mouseUp) {
_root.EffectsHightClick();
}
Instance of Symbol 294 MovieClip "medium" in Symbol 322 MovieClip [options] Frame 1
onClipEvent (mouseUp) {
_root.EffectsMediumClick();
}
Instance of Symbol 302 MovieClip "snd_off" in Symbol 322 MovieClip [options] Frame 1
onClipEvent (mouseUp) {
_root.OptionsOffClick();
}
Instance of Symbol 303 MovieClip "snd_on" in Symbol 322 MovieClip [options] Frame 1
onClipEvent (mouseUp) {
_root.OptionsOnClick();
}
Instance of Symbol 305 MovieClip "master" in Symbol 322 MovieClip [options] Frame 1
onClipEvent (mouseUp) {
_root.OptionsMasterClick();
}
Instance of Symbol 306 MovieClip "expert" in Symbol 322 MovieClip [options] Frame 1
onClipEvent (mouseUp) {
_root.OptionsExpertClick();
}
Instance of Symbol 307 MovieClip "novice" in Symbol 322 MovieClip [options] Frame 1
onClipEvent (mouseUp) {
_root.OptionsNoviceClick();
}
Instance of Symbol 315 MovieClip "hightq" in Symbol 322 MovieClip [options] Frame 1
onClipEvent (mouseUp) {
_root.QualityHightClick();
}
Instance of Symbol 316 MovieClip "mediumq" in Symbol 322 MovieClip [options] Frame 1
onClipEvent (mouseUp) {
_root.QualityMediumClick();
}
Instance of Symbol 319 MovieClip "lowq" in Symbol 322 MovieClip [options] Frame 1
onClipEvent (mouseUp) {
_root.QualityLowClick();
}
Instance of Symbol 320 MovieClip "low" in Symbol 322 MovieClip [options] Frame 1
onClipEvent (mouseUp) {
_root.EffectsLowClick();
}
Symbol 324 Button
on (release) {
_root.OptionsPerfCancelClick();
}
Symbol 326 Button
on (release) {
_root.OptionsPerfOkClick();
}
Symbol 329 Button
on (release) {
_root.onDemoNo();
}
Symbol 330 Button
on (release) {
_root.onDemoYes();
}
Symbol 334 Button
on (release) {
_root.NewGameNo();
}
Symbol 335 Button
on (release) {
_root.NewGameYes();
}
Symbol 346 MovieClip [hint] Frame 1
function onFrame() {
this._alpha = this._alpha - 5;
this._y = this._y - 3;
this.framenumber++;
if (20 < this.framenumber) {
this.removeMovieClip();
}
}
function Initelize() {
this.framenumber = 0;
}
initalize();
Symbol 346 MovieClip [hint] Frame 2
onFrame();
Symbol 346 MovieClip [hint] Frame 3
gotoAndPlay (2);
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 2
stop();
Symbol 395 MovieClip Frame 3
stop();
Symbol 396 MovieClip [bonusRK] Frame 1
function onBonusRKFrame() {
if (_root.PauseMode == 0) {
CheckStay();
CheckManForHitBonusRK();
}
}
function CheckStay() {
this.frame++;
if (this.frame >= ((2 * _root.bonusframesstay) - (_root.bonusframesblink * 1.5))) {
if (this.empty == 0) {
this.opened = 1;
this.bonus.gotoAndStop("open");
}
}
if ((2 * _root.bonusframesstay) < this.frame) {
this.bonus.gotoAndStop("close");
this.frame = 0;
this.opened = 0;
}
}
function CheckManForHitBonusRK() {
if ((_root.game.mask.man.hittest(this) == true) and (this.opened == 1)) {
this.frame = 0;
this.opened = 0;
this.bonus.gotoAndStop("empty");
this.empty = 1;
_root.AttachHint(_root.bonusBKscore * _root.CurrentLevel, _root.game.mask.man._x, _root.game.mask.man._y);
_root.score.sc = _root.score.sc + (_root.bonusBKscore * _root.CurrentLevel);
_root.AviableScore = _root.AviableScore + (_root.bonusBKscore * _root.CurrentLevel);
_root.CheckExtraLife();
}
}
Symbol 396 MovieClip [bonusRK] Frame 2
onBonusRKFrame();
Symbol 396 MovieClip [bonusRK] Frame 3
gotoAndPlay (2);
Symbol 406 Button
on (release) {
_root.onDemoClick();
}
Symbol 410 Button
on (release) {
if (_root.DemoMode == 0) {
_root.onPauseClick();
}
}
Symbol 412 Button
on (release) {
_root.onOptionsClick();
}
Symbol 414 Button
on (rollOver) {
knop2.gotoAndPlay(2);
}
on (rollOut) {
knop2.gotoAndPlay(6);
}
on (release) {
_root.OnMoreGamesClick();
}
Symbol 425 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 5
stop();
Symbol 426 Button
on (rollOver) {
knop1.gotoAndPlay(2);
}
on (rollOut) {
knop1.gotoAndPlay(6);
}
on (release) {
if (_root.DemoMode == 0) {
_root.NewGame();
} else {
_root.NewGameYes();
}
}
Symbol 432 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 5
stop();
Symbol 432 MovieClip Frame 8
gotoAndStop (1);
Symbol 432 MovieClip Frame 12
gotoAndStop (1);
Symbol 435 Button
on (release) {
_root.onHelpClick();
}
Symbol 447 Button
on (release) {
_root.OnLogoClick();
}