Frame 1
Frame 2
stop();
str = _url;
Instance of Symbol 86 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(int((100 * _root.getBytesLoaded()) / _root.getBytesTotal()));
}
Frame 3
stop();
_root.score = 0;
_root.scriptPath = "";
resetGame();
_global.STAGEWIDTH = 500;
_global.STAGEHEIGHT = 480;
_global.BASESCORE = 70;
_global.BONUSSCORE = 100;
_global.GOAL = 400;
_global.LEVEL = 1;
_global.ZERO = true;
_global.FROZENEND = 10000;
_global.SPEEDDRINKPRICE = 250;
_global.ANTIDOTEPRICE = 30;
_global.RANGEHARPOONPRICE = 250;
_global.FREEZINGBOMBPRICE = 30;
_global.ANTIDOTETX = "POISONED FISH WILL BE LESS DAMAGING NEXT LEVEL.";
_global.FREEZINGPOTIONTX = "FREEZES FISH FOR SOME SECONDS. PRESS \"SPACEBAR\" TO USE BOMB.";
_global.SPEEDDRINKTX = "HARPOON WILL BE A LITTLE FASTER NEXT LEVEL.";
_global.RANGEHARPOONTX = "BIGGER HARPOON WILL CATCH MORE FISH NEXT LEVEL.";
_global.FISHBOMBTX = "KILLS ALL FISH IN THE SCREEN. DROP WHEN YOU DON\u2019T THINK YOU\u2019LL MAKE TO THE NEXT LEVEL.";
_root.harpoon = 0;
_root.harpoonAccel = 0;
_root.baiacu = 0;
_root.freezing = 0;
_global.addScore = function (val) {
_root.score = int(_root.score) + int(val);
if (_root.score < 0) {
_root.score = 0;
}
};
_global.randomInt = function (min, max) {
return(int(Math.random() * ((max - min) + 1)) + min);
};
_global.getDistance = function (x1, y1, x2, y2) {
var _local2 = x1 - x2;
var _local1 = y1 - y2;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
_global.getAngle = function (x1, y1, x2, y2) {
var _local2 = x1 - x2;
var _local1 = y1 - y2;
return(Math.atan2(_local1, _local2));
};
_global.markPrice = function (mc, base) {
mc.price = int(((LEVEL * base) / 3) + base);
mc.sign.val = mc.price + "$";
};
_global.setText = function (mc, tx) {
mc.tx = tx;
};
_global.unsetText = function (mc) {
mc.tx = mc.iniTx;
};
_global.addBoughtItems = function (mc) {
_root.score = _root.score - mc.price;
switch (mc.type) {
case "freezingPotion" :
_root.freezing++;
break;
case "rangeHarpoon" :
_root.harpoon = 2;
break;
case "speedDrink" :
_root.harpoonAccel = 2;
break;
case "antidote" :
_root.baiacu = 2;
}
_root.bought = true;
};
_global.notFrozen = function () {
return(_root.frozen.dead || (_root.frozen.dead == undefined));
};
_global.playSound = function (sound) {
myMusic = new Sound(_root);
myMusic.attachSound(sound);
myMusic.start(0, 1);
};
_global.resetGame = function () {
enemies.addKill(0);
fishes.addKill(0);
gameClock.addKill(0);
levelEnd.addKill(0);
};
function Timer(onChangeFunction, changeInterval, firstTick, clip) {
this.initTime = getTimer();
this.initClip(clip);
this.killTime = null;
this.milissec = 0;
this.nextChange = 0;
this.changeInterval = changeInterval;
this.onChangeFunction = onChangeFunction;
if (firstTick == undefined) {
firstTick = false;
}
this.firstTick = firstTick;
this.dead = false;
}
Timer.prototype.tick = function () {
this.milissec = getTimer() - this.initTime;
};
Timer.prototype.initClip = function (clip) {
var _local3 = randomInt(0, 1000000);
var _local4 = "clock" + _local3;
if (clip == undefined) {
clip = "timer";
}
_root.attachMovie(clip, _local4, _local3);
this.clip = _root[_local4];
this.clip.obj = this;
this.clip.onEnterFrame = function () {
this.obj.enterFrame();
};
};
Timer.prototype.addKill = function (num) {
this.killTime = num;
};
Timer.prototype.kill = function () {
if (this.killTime == null) {
return(undefined);
}
if (this.milissec >= this.killTime) {
this.clip.removeMovieClip();
this.dead = true;
}
};
Timer.prototype.change = function () {
if (this.changeInterval == undefined) {
this.changeInterval = 1 * SEC;
}
if ((this.milissec >= this.nextChange) || (this.nextChange == undefined)) {
if ((this.nextChange == 0) && (this.firstTick == false)) {
this.nextChange = this.milissec + this.changeInterval;
return(false);
}
this.nextChange = this.milissec + this.changeInterval;
return(true);
}
return(false);
};
Timer.prototype.enterFrame = function () {
this.tick();
this.kill();
if (this.change()) {
this.onChangeFunction();
}
};
fishCounter = 0;
_global.releaseFish = function () {
if (notFrozen()) {
mc = "fish" + randomInt(1, 9);
fishGenerator.fish.duplicateMovieClip("fish" + fishCounter, fishCounter);
fishGenerator["fish" + fishCounter].attachMovie(mc, "targ", 0);
fishGenerator["fish" + fishCounter].speed = (Math.random() * 1.8) + 0.8;
fishGenerator["fish" + fishCounter].fish = mc;
fishGenerator["fish" + fishCounter]._y = randomInt(0, 270);
fishGenerator["fish" + fishCounter].score = int(((fishGenerator["fish" + fishCounter]._y / 4) + BASESCORE) - Math.log(LEVEL * 5));
if (randomInt(0, 1) == 0) {
fishGenerator["fish" + fishCounter].dir = -1;
} else {
fishGenerator["fish" + fishCounter].dir = 1;
}
fishCounter++;
}
};
fishes = new Timer(releaseFish, 4000, ZERO);
releaseFish();
releaseFish();
releaseFish();
releaseFish();
enemyCounter = 0;
_global.releaseEnemy = function () {
if (notFrozen()) {
enemyNum = randomInt(1, 10);
if (LEVEL < 3) {
if (enemyNum > 4) {
enemyNum = 2;
} else {
enemyNum = 1;
}
} else if (enemyNum > 4) {
enemyNum = 2;
} else if (enemyNum > 2) {
enemyNum = 3;
} else {
enemyNum = 1;
}
mc = "enemy" + enemyNum;
enemyGenerator.fish.duplicateMovieClip("enemy" + enemyCounter, enemyCounter);
enemyGenerator["enemy" + enemyCounter].attachMovie(mc, "enemy", 0);
if (mc == "enemy2") {
enemyGenerator["enemy" + enemyCounter].score = -(randomInt(0, 100) + (1.5 * BASESCORE));
}
if ((mc == "enemy2") && (_root.baiacu > 0)) {
enemyGenerator["enemy" + enemyCounter].score = int(enemyGenerator["enemy" + enemyCounter].score / 3);
}
if (mc == "enemy1") {
enemyGenerator["enemy" + enemyCounter].speed = (Math.random() * 1.8) + 6.8;
} else {
enemyGenerator["enemy" + enemyCounter].speed = (Math.random() * 1.8) + 0.8;
}
enemyGenerator["enemy" + enemyCounter].fish = mc;
if (mc == "enemy1") {
enemyGenerator["enemy" + enemyCounter]._y = randomInt(0, 100);
}
if (mc == "enemy1") {
enemyGenerator["enemy" + enemyCounter].score = int((enemyGenerator["enemy" + enemyCounter]._y / 5) + (1.5 * BASESCORE));
} else {
enemyGenerator["enemy" + enemyCounter]._y = randomInt(0, 280);
}
if (randomInt(0, 1) == 0) {
enemyGenerator["enemy" + enemyCounter].dir = -1;
} else {
enemyGenerator["enemy" + enemyCounter].dir = 1;
}
enemyCounter++;
}
};
Frame 7
resetGame();
Frame 12
stop();
resetGame();
_root.harpoon--;
_root.harpoonAccel--;
_root.baiacu--;
enemies = new Timer(releaseEnemy, int(3000 / Math.log(LEVEL + 1)), ZERO);
if (level <= 3) {
fishes = new Timer(releaseFish, 4000, ZERO);
}
if (level > 3) {
fishes = new Timer(releaseFish, 3000, ZERO);
}
releaseFish();
releaseFish();
_global.tickGameClock = function () {
_root.time--;
};
gameClock = new Timer(tickGameClock, 1000);
_root.time = 60;
_global.killLevel = function () {
if (_root.score >= GOAL) {
_root.store.play();
} else {
_root.gameover.play();
}
};
levelEnd = new Timer(killLevel, 60000);
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (load) {
this.gotoAndPlay(randomInt(0, 30));
}
Instance of Symbol 201 MovieClip in Frame 12
onClipEvent (load) {
if (_root.freezing <= 0) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
}
Frame 17
resetGame();
stop();
var nextGoal = (1000 + int((LEVEL - 3) * 150));
if (nextGoal > 2000) {
_global.GOAL = _global.GOAL + 2000;
} else {
_global.GOAL = _global.GOAL + nextGoal;
}
_global.LEVEL = _global.LEVEL + 1;
_root.bought = false;
Instance of Symbol 215 MovieClip in Frame 17
onClipEvent (load) {
function chanceItems(num) {
usedItems = new Array();
var _local3 = 1;
while (_local3 <= num) {
itemNum = randomInt(1, _root.items.length);
while (usedItems[itemNum] != undefined) {
itemNum++;
if (itemNum > _root.items.length()) {
itemNum = 1;
}
}
this["spot" + _local3].attachMovie(_root.items[itemNum - 1], "item", 0);
this["spot" + _local3].item.type = _root.items[itemNum - 1];
usedItems[itemNum] = _root.items[itemNum - 1];
_local3++;
}
}
_root.items = ["freezingPotion", "speedDrink", "antidote", "rangeHarpoon"];
if (LEVEL >= 3) {
num = randomInt(1, 2);
} else {
num = randomInt(1, 4);
}
chanceItems(num);
}
Frame 22
stop();
resetGame();
stop();
_root.gotoandstop("hiScoresAddName");
Frame 46
if (false) {
}
Instance of Symbol 254 MovieClip "hiScoresBoard" in Frame 59
onClipEvent (load) {
function showScores(success) {
if (success) {
var _local3 = 0;
for (node in this.childNodes) {
_local3++;
_root.hiScoresBoard.hiscore.duplicateMovieClip("hiscore" + _local3, _local3);
_root.hiScoresBoard["hiscore" + _local3]._y = (_root.hiScoresBoard["hiscore" + _local3]._height + 5) * (_local3 - 1);
_root.hiScoresBoard["hiscore" + _local3].num = "# " + _local3;
_root.hiScoresBoard["hiscore" + _local3].name = this.childNodes[node].attributes.NAME;
_root.hiScoresBoard["hiscore" + _local3].score = this.childNodes[node].attributes.VALUE;
}
}
}
this.iniy = this._y;
var hiScoresXML = new XML();
hiScoresXML.onLoad = showScores;
_root.scriptPath + "scripts/showScores.php?gameId=1";
}
Instance of Symbol 264 MovieClip in Frame 59
onClipEvent (enterFrame) {
var maxY = ((_parent.line._y + _parent.line._height) - this._height);
_parent.hiScoresBoard._y = _parent.line._y - (((this._y - _parent.line._y) * (_parent.hiScoresBoard.iniy + _parent.hiScoresBoard._height)) / _parent.line._height);
this._y = this._y - _parent.hiScoresBoard.scroll;
if (this._y > maxY) {
this._y = maxY;
}
if (this._y < _parent.line._y) {
this._y = _parent.line._y;
}
}
Frame 59
if (false) {
}
Symbol 4 MovieClip [SmoothDrawSymbol] Frame 1
#initclip 1
_global.SmoothDrawClass = function () {
if (this._name != undefined) {
this.init();
}
};
Object.registerClass("SmoothDrawSymbol", SmoothDrawClass);
var p = ((SmoothDrawClass.prototype = new MovieClip()));
p.init = function () {
super.init();
this.moveTo(0, 0);
};
p.smoothTo = function (x, y) {
var _local3 = this.px;
var _local2 = this.py;
this.px = x;
this.py = y;
var _local5 = (_local3 + x) / 2;
var _local4 = (_local2 + y) / 2;
this.curveTo(_local3, _local2, _local5, _local4);
};
p.endSmooth = function () {
this.smoothTo(this.px, this.py);
};
p.moveTo = function (x, y) {
super.moveTo(x, y);
this.px = x;
this.py = y;
};
delete p;
#endinitclip
Symbol 9 MovieClip Frame 9
gotoAndPlay (1);
Symbol 11 MovieClip Frame 18
gotoAndPlay (1);
Symbol 14 MovieClip [fish1] Frame 1
stop();
Symbol 14 MovieClip [fish1] Frame 2
blow = true;
Symbol 14 MovieClip [fish1] Frame 24
_parent.removeMovieClip();
Symbol 16 MovieClip [fish2] Frame 1
stop();
Symbol 16 MovieClip [fish2] Frame 2
blow = true;
Symbol 16 MovieClip [fish2] Frame 11
_parent.removeMovieClip();
Symbol 18 MovieClip [fish4] Frame 1
stop();
Symbol 18 MovieClip [fish4] Frame 2
blow = true;
Symbol 18 MovieClip [fish4] Frame 11
_parent.removeMovieClip();
Symbol 21 MovieClip Frame 17
gotoAndPlay (1);
Symbol 22 MovieClip [fish5] Frame 1
stop();
Symbol 22 MovieClip [fish5] Frame 2
blow = true;
Symbol 22 MovieClip [fish5] Frame 11
_parent.removeMovieClip();
Symbol 24 MovieClip [fish6] Frame 1
stop();
Symbol 24 MovieClip [fish6] Frame 2
blow = true;
Symbol 24 MovieClip [fish6] Frame 11
_parent.removeMovieClip();
Symbol 26 MovieClip [fish7] Frame 1
stop();
Symbol 26 MovieClip [fish7] Frame 2
blow = true;
Symbol 26 MovieClip [fish7] Frame 11
_parent.removeMovieClip();
Symbol 28 MovieClip [fish8] Frame 1
stop();
Symbol 28 MovieClip [fish8] Frame 2
blow = true;
Symbol 28 MovieClip [fish8] Frame 11
_parent.removeMovieClip();
Symbol 30 MovieClip [fish9] Frame 1
stop();
Symbol 30 MovieClip [fish9] Frame 2
blow = true;
Symbol 30 MovieClip [fish9] Frame 11
_parent.removeMovieClip();
Symbol 35 Button
on (rollOver, dragOver) {
setText(_root.baloon, RANGEHARPOONTX);
}
on (rollOut, dragOut) {
unsetText(_root.baloon);
}
on (release) {
addBoughtItems(this);
this.play();
}
Symbol 38 Button
on (rollOver, dragOver) {
setText(_root.baloon, RANGEHARPOONTX);
}
on (rollOut, dragOut) {
unsetText(_root.baloon);
}
on (release) {
addBoughtItems("rangeHarpoon");
this.play();
}
Symbol 39 MovieClip [rangeHarpoon] Frame 1
markPrice(this, RANGEHARPOONPRICE);
stop();
Symbol 39 MovieClip [rangeHarpoon] Frame 5
stop();
Symbol 43 Button
on (rollOver, dragOver) {
setText(_root.baloon, ANTIDOTETX);
}
on (rollOut, dragOut) {
unsetText(_root.baloon);
}
on (release) {
addBoughtItems(this);
this.play();
}
Symbol 44 Button
on (rollOver, dragOver) {
setText(_root.baloon, ANTIDOTETX);
}
on (rollOut, dragOut) {
unsetText(_root.baloon);
}
on (release) {
addBoughtItems("antidote");
this.play();
}
Symbol 45 MovieClip [antidote] Frame 1
markPrice(this, ANTIDOTEPRICE);
stop();
Symbol 45 MovieClip [antidote] Frame 5
stop();
Symbol 49 Button
on (rollOver, dragOver) {
setText(_root.baloon, FREEZINGPOTIONTX);
}
on (rollOut, dragOut) {
unsetText(_root.baloon);
}
on (release) {
addBoughtItems(this);
this.play();
}
Symbol 50 Button
on (rollOver, dragOver) {
setText(_root.baloon, FREEZINGPOTIONTX);
}
on (rollOut, dragOut) {
unsetText(_root.baloon);
}
on (release) {
addBoughtItems("freezingPotion");
this.play();
}
Symbol 51 MovieClip [freezingpotion] Frame 1
markPrice(this, FREEZINGBOMBPRICE);
stop();
Symbol 51 MovieClip [freezingpotion] Frame 5
stop();
Symbol 55 Button
on (rollOver, dragOver) {
setText(_root.baloon, SPEEDDRINKTX);
}
on (rollOut, dragOut) {
unsetText(_root.baloon);
}
on (release) {
addBoughtItems(this);
this.play();
}
Symbol 56 Button
on (rollOver, dragOver) {
setText(_root.baloon, SPEEDDRINKTX);
}
on (rollOut, dragOut) {
unsetText(_root.baloon);
}
on (release) {
addBoughtItems("speedDrink");
this.play();
}
Symbol 57 MovieClip [speedDrink] Frame 1
markPrice(this, SPEEDDRINKPRICE);
stop();
Symbol 57 MovieClip [speedDrink] Frame 5
this.removeMovieClip();
Symbol 58 MovieClip [SChainSymbol] Frame 1
#initclip 2
function SChainClass() {
this.setLength(5);
this.strength = 0.95;
this.friction = 0.5;
this.slidingFriction = 0.5;
this.gravity = 0.3;
this.restLength = 5;
}
function Anchor(x, y) {
if (x != undefined) {
this.x = x;
this.y = y;
} else {
this.x = Math.random() * 1;
this.y = Math.random() * 1;
}
this.xv = 0;
this.yv = 0;
this.isFixed = false;
}
var p = ((SChainClass.prototype = new SmoothDrawClass()));
Object.registerClass("SChainSymbol", SChainClass);
p.setLength = function (l) {
this.anchors = [];
this.anchors[0] = new Anchor(0, 0);
var _local2 = 1;
while (_local2 < 4) {
this.anchors[_local2] = new Anchor();
_local2++;
}
this.anchors[4] = new Anchor(0, 0);
this.anchors[0].isFixed = true;
this.anchors[4].isFixed = true;
};
p.onEnterFrame = function () {
var _local15 = this.anchors.length;
this.anchors[0].x = _root.boat.gun.harpoon._y - 8;
this.anchors[0].y = _root.boat.gun.harpoon._x - 10;
var _local6 = 0;
while (_local6 < (_local15 - 1)) {
var _local5 = this.anchors[_local6];
var _local4 = this.anchors[_local6 + 1];
var _local10 = _local5.x;
var _local8 = _local5.y;
var _local9 = _local4.x;
var _local7 = _local4.y;
var _local14 = getDistance(_local10, _local8, _local9, _local7);
var _local3 = getAngle(_local10, _local8, _local9, _local7) - (Math.PI/2);
var _local13 = (this.restLength - _local14) * this.strength;
var _local12 = (Math.sin(_local3) * _local13) / 2;
var _local11 = (Math.cos(_local3) * _local13) / 2;
if (!_local5.isFixed) {
_local5.xv = _local5.xv - (_local12 / 2);
_local5.yv = _local5.yv + (_local11 / 2);
}
if (!_local4.isFixed) {
_local4.xv = _local4.xv + (_local12 / 2);
_local4.yv = _local4.yv - (_local11 / 2);
}
_local6++;
}
_local6 = 0;
while (_local6 < _local15) {
var _local3 = this.anchors[_local6];
if (!_local3.isFixed) {
_local3.yv = _local3.yv + this.gravity;
_local3.xv = _local3.xv * this.friction;
_local3.yv = _local3.yv * this.friction;
_local3.x = _local3.x + _local3.xv;
_local3.y = _local3.y + _local3.yv;
}
if (_local3.x < 0) {
_local3.x = 0;
_local3.xv = _local3.xv * (-this.friction);
_local3.vy = _local3.vy * this.slidingFriction;
}
if (_local3.x > Stage.width) {
_local3.x = Stage.width;
_local3.xv = _local3.xv * (-this.friction);
_local3.vy = _local3.vy * this.slidingFriction;
}
if (_local3.y < 0) {
_local3.y = 0;
_local3.yv = _local3.yv * (-this.friction);
_local3.vx = _local3.vx * this.slidingFriction;
}
if (_local3.y > Stage.height) {
_local3.y = Stage.height;
_local3.yv = _local3.yv * (-this.friction);
_local3.vx = _local3.vx * this.slidingFriction;
}
_local6++;
}
this.render();
};
p.render = function () {
var _local4 = this.anchors;
this.clear();
this.lineStyle(1, 6710886, 50);
this.moveTo(_local4[0].x, _local4[0].y);
var _local5 = _local4.length;
var _local2 = 1;
while (_local2 < _local5) {
var _local3 = _local4[_local2];
this.smoothTo(_local3.x, _local3.y);
_local2++;
}
this.endSmooth();
};
#endinitclip
Symbol 60 MovieClip [fish3] Frame 1
stop();
Symbol 60 MovieClip [fish3] Frame 2
blow = true;
Symbol 60 MovieClip [fish3] Frame 11
_parent.removeMovieClip();
Symbol 63 MovieClip [enemy3] Frame 1
stop();
Symbol 63 MovieClip [enemy3] Frame 11
for (mc in _root.fishGenerator) {
if (mc != fish) {
_root.fishGenerator[mc].targ.gotoAndPlay("blow");
break;
}
}
Symbol 63 MovieClip [enemy3] Frame 25
var i = 0;
for (mc in _root.fishGenerator) {
if (mc != fish) {
i++;
}
}
if (i >= 2) {
gotoAndPlay ("loop");
} else {
_parent.removeMovieClip();
}
Symbol 63 MovieClip [enemy3] Frame 26
this.removeMovieClip();
Symbol 77 MovieClip [enemy1] Frame 1
stop();
Symbol 77 MovieClip [enemy1] Frame 52
gotoAndStop (1);
Symbol 86 MovieClip Frame 100
_root.nextFrame();
Symbol 89 MovieClip Frame 17
stop();
Instance of Symbol 94 MovieClip "fish" in Symbol 95 MovieClip Frame 1
onClipEvent (enterFrame) {
if (notFrozen()) {
if ((this._name != "fish") && (caught != true)) {
this._x = this._x + (this.dir * this.speed);
if ((this._x > STAGEWIDTH) && (this.dir > 0)) {
this.removeMovieClip();
}
if ((this._x < 0) && (this.dir < 0)) {
this.removeMovieClip();
}
this._alpha = 100;
}
time = 1;
total = 1 + (FROZENEND / 1000);
_root.frozenClock = "";
} else {
_root.frozenClock = "FREEZING BOMB\nCOUNTDOWN:\n" + int(total - (time / 30));
time++;
if (_root.frozen.milissec > (FROZENEND - 4000)) {
if (this._alpha <= 99) {
this._alpha = this._alpha + 5;
} else {
this._alpha = 40;
}
} else {
this._alpha = 50;
}
}
if (this.caught == true) {
this._x = localToGlobal(_root.boat.gun.harpoon._x);
this._y = localToGlobal(_root.boat.gun.harpoon._y);
}
}
onClipEvent (load) {
if (this.dir < 0) {
this._x = STAGEWIDTH;
this._xscale = -this._xscale;
}
}
Symbol 97 Button
on (release) {
_root.game.play();
}
Symbol 99 Button
on (release) {
_root.instructions.play();
}
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 25
_root.gotoAndStop(this._name);
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 78
_root.gotoAndStop(this._name);
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 78
_root.gotoAndStop(this._name);
Symbol 129 Button
on (release) {
_root.init.play();
}
Symbol 148 MovieClip Frame 1
if (prevJump < _parent.jump) {
if (_parent._currentframe > 80) {
_parent.gotoAndStop(_parent._currentFrame - 80);
}
}
if ((_parent._currentframe + _parent.jump) < 160) {
_parent.gotoAndStop(_parent._currentframe + _parent.jump);
} else {
_parent.gotoAndStop(1);
}
var prevJump = _parent.jump;
Symbol 156 MovieClip Frame 1
if (jump > 2) {
jump = jump - 2;
} else {
jump = 1;
}
Instance of Symbol 148 MovieClip "controler" in Symbol 156 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 58 MovieClip [SChainSymbol] in Symbol 157 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
strength = 0.1;
}
Symbol 160 MovieClip Frame 1
!!!ERROR
Symbol 163 MovieClip Frame 1
!!!ERROR
Symbol 165 MovieClip Frame 1
stop();
this.inix = _x;
this.iniy = _y;
iniAccel = 20;
Instance of Symbol 163 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
if (_root.harpoon > 0) {
this.nextFrame();
_parent.targ.nextFrame();
}
}
Symbol 165 MovieClip Frame 2
points = 0;
for (mc in caughtFish) {
addScore(caughtFish[mc].score);
if (caughtFish[mc].score < 0) {
points = points + caughtFish[mc].score;
}
_parent._parent.points.val = int(_parent._parent.points.val) + int(caughtFish[mc].score);
caughtFish[mc].removeMovieClip();
}
if (points < 0) {
_parent._parent.penalty.val = "POISONED FISH!\n" + points;
_parent._parent.penalty.play();
playSound("penalty");
_parent._parent.points.val = "";
} else if (_parent._parent.points.val != "") {
_parent._parent.points.play();
playSound("points");
}
_parent.retract = false;
_parent.rest = false;
this._x = inix;
this._y = iniy;
Symbol 165 MovieClip Frame 10
!!!ERROR
Symbol 165 MovieClip Frame 11
play();
accel = accel - (Math.log(accel) / 7.5);
if (((!this.hitTest(_root.floor)) && (!this.hitTest(_root.left))) && (!this.hitTest(_root.right))) {
this._y = this._y + accel;
} else {
_parent.rest = true;
}
Symbol 165 MovieClip Frame 12
!!!ERROR
Symbol 165 MovieClip Frame 16
if (_root.harpoonAccel > 0) {
accel = iniAccel / 1.05;
} else {
accel = iniAccel / 2.5;
}
_parent.retract = true;
nextFrame();
Symbol 165 MovieClip Frame 17
play();
accel = accel - Math.log(accel / 5);
if (!this.hitTest(_root.gun)) {
this._y = this._y - accel;
} else {
_parent.fire = false;
_parent.retract = false;
gotoAndStop ("ini");
_root.boat.boat.jump = 5;
}
Symbol 165 MovieClip Frame 18
!!!ERROR
Symbol 167 MovieClip Frame 1
!!!ERROR
Instance of Symbol 165 MovieClip "harpoon" in Symbol 167 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!_parent.retract) && (!_parent.rest)) {
for (mc in _root.fishGenerator) {
if (_root.fishGenerator[mc].hitTest(targ) && (!_root.fishGenerator[mc].targ.blow)) {
var fishName = randomInt(0, 1000);
this.caughtFish.attachMovie(_root.fishGenerator[mc].fish, fishName, randomInt(0, 1000));
this.caughtFish[fishName].score = _root.fishGenerator[mc].score;
_root.fishGenerator[mc].removeMovieClip();
fishCount++;
if (fishCount > 1) {
var a = {x:this._x, y:this._y};
_parent.localToGlobal(a);
_parent._parent.bonus._y = a.y;
_parent._parent.bonus._x = a.x;
addScore(fishCount * BONUSSCORE);
_parent._parent.bonus.val = "BONUS!\n" + (fishCount * BONUSSCORE);
_parent._parent.bonus.play();
}
}
}
for (mc in _root.enemyGenerator) {
if (_root.enemyGenerator[mc].hitTest(targ)) {
if (_root.enemyGenerator[mc].fish != "enemy3") {
var fishName = randomInt(0, 1000);
this.caughtFish.attachMovie(_root.enemyGenerator[mc].fish, fishName, randomInt(0, 1000));
this.caughtFish[fishName].score = _root.enemyGenerator[mc].score;
_root.enemyGenerator[mc].removeMovieClip();
} else {
_root.enemyGenerator[mc].enemy.play();
}
}
}
} else {
fishCount = 0;
for (mc in _root.enemyGenerator) {
if (_root.enemyGenerator[mc].enemy.targ.hitTest(this) && (_root.enemyGenerator[mc].fish == "enemy1")) {
for (mc2 in this.caughtFish) {
this.caughtFish[mc2].removeMovieClip();
playSound("crunch");
_root.enemyGenerator[mc].enemy.gotoAndPlay("crunch");
}
}
}
}
}
onClipEvent (load) {
!!!ERROR
Symbol 169 MovieClip Frame 1
!!!ERROR
Symbol 177 MovieClip Frame 1
!!!ERROR
Symbol 177 MovieClip Frame 66
_root.frozen = new _root.Timer();
_root.frozen.addKill(10000);
Instance of Symbol 156 MovieClip "boat" in Symbol 178 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 167 MovieClip "gun" in Symbol 178 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((((this._rotation + (3 * this.rotate)) > -70) && ((this._rotation + (3 * this.rotate)) < 70)) && (!fire)) && (!retract)) {
this._rotation = this._rotation + (3 * this.rotate);
this._y = _parent.boat.controler._y + 110;
} else {
this.rotate = 0;
}
}
onClipEvent (load) {
function rotateHarpoon(dir) {
if ((!fire) && (!retract)) {
this.rotate = dir;
}
}
function fireHarpoon() {
if ((!fire) && (!retract)) {
harpoon.gotoAndPlay("fire");
_root.boat.boat.jump = 10;
}
}
function retractHarpoon() {
if (!retract) {
harpoon.gotoAndPlay("retract");
}
}
function dropBomb() {
if (_root.freezing > 0) {
_root.freezing--;
_parent.freezing.gotoAndPlay("fire");
}
}
}
onClipEvent (keyDown) {
if (Key.isDown(40)) {
fireHarpoon();
}
if (Key.isDown(38)) {
retractHarpoon();
}
if (Key.isDown(37)) {
rotateHarpoon(1);
}
if (Key.isDown(39)) {
rotateHarpoon(-1);
}
if (Key.isDown(32)) {
dropBomb();
}
updateAfterEvent();
}
onClipEvent (keyUp) {
!!!ERROR
Symbol 212 MovieClip Frame 10
!!!ERROR
Symbol 213 Button
on (press) {
if (_root.bought) {
hand.play();
} else {
game.play();
}
}
Symbol 219 MovieClip Frame 1
!!!ERROR
Symbol 229 MovieClip Frame 1
!!!ERROR
Symbol 235 MovieClip Frame 1
!!!ERROR
Symbol 235 MovieClip Frame 39
_root.game.play();
_root.bought = false;
stop();
Symbol 242 Button
on (release) {
sendscore = new LoadVars();
sendscore.gname = "fishermansam";
sendscore.gscore = _root.score;
sendscore.send("index.php?act=Arcade&do=newscore", "_self", "POST");
stop();
}
Symbol 245 MovieClip Frame 1
!!!ERROR
Symbol 260 Button
on (rollOver, dragOver) {
!!!ERROR
Symbol 261 Button
on (rollOver, dragOver) {
!!!ERROR
Symbol 263 Button
on (press) {
this.startDrag(false, this._x, _parent.line._y, this._x, (_parent.line._y + _parent.line._height) - this._height);
}
on (release) {
!!!ERROR