Frame 1
loader = {};
Frame 2
loader.loadedbytes = getBytesLoaded();
loader.totalbytes = getBytesTotal();
loader.loadedkbytes = Math.ceil(loadedbytes / 1000);
loader.totalkbytes = Math.ceil(totalbytes / 1000);
if (loader.loadedbytes == loader.totalbytes) {
gotoAndPlay (4);
}
frame = int(loader.loadedbytes / (loader.totalbytes / 100));
loadBar.bar._width = frame;
Frame 3
gotoAndPlay (2);
Frame 4
isometricAS = function (maxx, maxz) {
var _local1 = this;
_local1.maxx = maxx;
_local1.maxz = maxz;
_local1.theta = 30;
_local1.alpha = 45;
_local1.theta = _local1.theta * (Math.PI/180);
_local1.alpha = _local1.alpha * (Math.PI/180);
_local1.sinTheta = Math.sin(_local1.theta);
_local1.cosTheta = Math.cos(_local1.theta);
_local1.sinAlpha = Math.sin(_local1.alpha);
_local1.cosAlpha = Math.cos(_local1.alpha);
};
isometricAS.prototype.mapToScreen = function (xpp, ypp, zpp) {
var _local1 = this;
var _local3 = ypp;
var xp = ((xpp * _local1.cosAlpha) + (zpp * _local1.sinAlpha));
var _local2 = (zpp * _local1.cosAlpha) - (xpp * _local1.sinAlpha);
var x = xp;
var y = ((_local3 * _local1.cosTheta) - (_local2 * _local1.sinTheta));
return([x, y]);
};
isometricAS.prototype.mapToIsoWorld = function (screenX, screenY) {
var _local1 = this;
var _local2 = ((screenX / _local1.cosAlpha) - (screenY / (_local1.sinAlpha * _local1.sinTheta))) * (1 / ((_local1.cosAlpha / _local1.sinAlpha) + (_local1.sinAlpha / _local1.cosAlpha)));
var _local3 = (1 / _local1.cosAlpha) * (screenX - (_local2 * _local1.sinAlpha));
return([_local3, _local2]);
};
isometricAS.prototype.calculateDepth = function (x, y, z) {
var _local2 = x;
var _local3 = 5;
_local2 = Math.abs(_local2) * _local3;
var y = Math.abs(y);
var z = (Math.abs(z) * _local3);
var _local1 = this.maxx;
var b = this.maxz;
var floor = ((_local1 * (b - 1)) + _local2);
var depth = (((_local1 * (z - 1)) + _local2) + (floor * y));
return(depth);
};
loadMovieNum ("http://media.gamerival.com/games/maps1-5.swf", 1);
bounce = new Sound();
bounce.attachSound("bounce");
pickup = new Sound();
pickup.attachSound("pickup");
score = new Sound();
score.attachSound("score");
splash = new Sound();
splash.attachSound("splash");
clock = new Sound();
clock.attachSound("clock");
ouch = new Sound();
ouch.attachSound("ouch");
ambience = new Sound();
ambience.attachSound("ambience");
music = new Sound();
music.attachSound("music");
iceBreak = new Sound();
iceBreak.attachSound("iceBreak");
squish = new Sound();
squish.attachSound("squish");
mmm = new Sound();
mmm.attachSound("mmm");
jaws = new Sound();
jaws.attachSound("jaws");
crunch = new Sound();
crunch.attachSound("crunch");
beat = new Sound();
beat.attachSound("beat");
amb = new Sound();
amb.attachSound("amb");
grunt = new Sound();
grunt.attachSound("grunting");
sealS = new Sound();
sealS.attachSound("SealS");
maxx = 14;
maxz = 14;
iso = new isometricAS(maxx, maxz);
mainSound = true;
quality = true;
titleVisible = false;
Frame 5
music.start(0, 99);
play.onRelease = function () {
gotoAndPlay (6);
};
play.onRollOver = function () {
play.gotoAndStop(2);
};
play.onRollOut = function () {
play.gotoAndStop(1);
};
help.onRelease = function () {
_root.attachMovie("instruct", "instruct", 19900);
instruct._x = 300;
instruct._y = 215;
};
help.onRollOver = function () {
help.gotoAndStop(2);
};
help.onRollOut = function () {
help.gotoAndStop(1);
};
options.onRelease = function () {
_root.attachMovie("option", "option", 19901);
option._x = 300;
option._y = 215;
if (mainSound) {
option.of.gotoAndStop(2);
} else {
option.o.gotoAndStop(2);
}
if (quality) {
option.l.gotoAndStop(2);
} else {
option.h.gotoAndStop(2);
}
};
options.onRollOver = function () {
options.gotoAndStop(2);
};
options.onRollOut = function () {
options.gotoAndStop(1);
};
_root.onEnterFrame = function () {
};
stop();
Frame 6
function change() {
clearInterval(inter);
gotoAndPlay (7);
}
skip.onRelease = function () {
clearInterval(inter);
clearInterval(interval);
music.stop();
gotoAndPlay (70);
};
var inter = setInterval(change, 2000);
_root.onEnterFrame = function () {
if (nextF) {
gotoAndPlay (7);
}
};
stop();
Frame 7
_root.onEnterFrame = function () {
fins._x = fins._x - 7;
if (fins._x < -60) {
gotoAndPlay (8);
}
};
stop();
Frame 8
function showBubbles() {
if (bubbles == 1) {
mainPen.gotoAndStop("sSD");
bubble._x = 149;
bubble._y = 258;
bubble.gotoAndStop(2);
bubbles = 2;
} else if (bubbles == 2) {
bubble._x = 144;
bubble._y = 357;
bubble.gotoAndStop(3);
bubbles = 3;
} else if (bubbles == 3) {
bubble._x = 186;
bubble._y = 238;
bubble.gotoAndStop(4);
bubbles = 4;
} else if (bubbles == 4) {
music.setVolume(50);
interval = setInterval(iceSound, 2000);
bubble._x = 207;
bubble._y = 336;
bubble.gotoAndStop(5);
bubbles = 5;
} else if (bubbles == 5) {
gotoAndPlay (9);
clearInterval(inter);
}
}
function iceSound() {
iceBreak.start();
clearInterval(interval);
}
mainPen.gotoAndStop("sSU");
var myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"244", ga:"0", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
var k = 1;
while (k < 4) {
var myColor = new Color(_root["p" + k].scarf);
myColor.setTransform(myColorTransform);
k++;
}
delete myColor;
delete myColorTransform;
var myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"0", ga:"100", gb:"244", ba:"0", bb:"90", aa:"100", ab:"0"};
var k = 4;
while (k < 7) {
var myColor = new Color(_root["p" + k].scarf);
myColor.setTransform(myColorTransform);
k++;
}
delete myColor;
delete myColorTransform;
var myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"220", ga:"100", gb:"244", ba:"0", bb:"0", aa:"100", ab:"0"};
var k = 7;
while (k < 10) {
var myColor = new Color(_root["p" + k].scarf);
myColor.setTransform(myColorTransform);
k++;
}
delete myColor;
delete myColorTransform;
var bubbles = 1;
var inter = setInterval(showBubbles, 3300);
_root.onEnterFrame = function () {
};
stop();
Frame 9
function change() {
clearInterval(inter);
gotoAndPlay (10);
}
var myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"244", ga:"50", gb:"0", ba:"50", bb:"0", aa:"100", ab:"0"};
var myColor = new Color(p1.scarf);
myColor.setTransform(myColorTransform);
myColorTransform = {ra:"20", rb:"0", ga:"100", gb:"244", ba:"20", bb:"90", aa:"100", ab:"0"};
myColor = new Color(p2.scarf);
myColor.setTransform(myColorTransform);
myColorTransform = {ra:"100", rb:"220", ga:"100", gb:"244", ba:"50", bb:"0", aa:"100", ab:"0"};
myColor = new Color(p3.scarf);
myColor.setTransform(myColorTransform);
delete myColor;
delete myColorTransform;
var inter = setInterval(change, 2500);
_root.onEnterFrame = function () {
};
stop();
Frame 65
function change() {
clearInterval(inter);
gotoAndPlay (66);
}
repeated = 0;
var inter = setInterval(change, 1000);
_root.onEnterFrame = function () {
};
stop();
Frame 66
function change() {
clearInterval(inter);
repeated++;
if (repeated >= 4) {
gotoAndPlay (68);
} else {
gotoAndPlay (67);
}
}
music.setVolume(100);
var myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"244", ga:"50", gb:"0", ba:"50", bb:"0", aa:"100", ab:"0"};
var myColor = new Color(p1.scarf);
myColor.setTransform(myColorTransform);
myColorTransform = {ra:"20", rb:"0", ga:"100", gb:"244", ba:"20", bb:"90", aa:"100", ab:"0"};
myColor = new Color(p2.scarf);
myColor.setTransform(myColorTransform);
myColorTransform = {ra:"100", rb:"220", ga:"100", gb:"244", ba:"50", bb:"0", aa:"100", ab:"0"};
myColor = new Color(p3.scarf);
myColor.setTransform(myColorTransform);
delete myColor;
delete myColorTransform;
var inter = setInterval(change, 1500);
_root.onEnterFrame = function () {
};
stop();
Frame 67
function change() {
clearInterval(inter);
repeated++;
if (repeated >= 4) {
gotoAndPlay (68);
} else {
gotoAndPlay (66);
}
}
var myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"244", ga:"50", gb:"0", ba:"50", bb:"0", aa:"100", ab:"0"};
var myColor = new Color(p1.scarf);
myColor.setTransform(myColorTransform);
myColorTransform = {ra:"20", rb:"0", ga:"100", gb:"244", ba:"20", bb:"90", aa:"100", ab:"0"};
myColor = new Color(p2.scarf);
myColor.setTransform(myColorTransform);
myColorTransform = {ra:"100", rb:"220", ga:"100", gb:"244", ba:"50", bb:"0", aa:"100", ab:"0"};
myColor = new Color(p3.scarf);
myColor.setTransform(myColorTransform);
delete myColor;
delete myColorTransform;
var inter = setInterval(change, 1000);
_root.onEnterFrame = function () {
};
stop();
Frame 68
function change() {
clearInterval(inter);
gotoAndPlay (69);
}
bubb.gotoAndPlay(2);
var inter = setInterval(change, 2500);
_root.onEnterFrame = function () {
};
stop();
Frame 69
function change() {
if (go == 1) {
bubb.gotoAndStop(3);
go++;
} else {
clearInterval(inter);
go++;
}
}
bubb.gotoAndStop(4);
var myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"244", ga:"50", gb:"0", ba:"50", bb:"0", aa:"100", ab:"0"};
var myColor = new Color(p1.scarf);
myColor.setTransform(myColorTransform);
myColorTransform = {ra:"20", rb:"0", ga:"100", gb:"244", ba:"20", bb:"90", aa:"100", ab:"0"};
myColor = new Color(p2.scarf);
myColor.setTransform(myColorTransform);
myColorTransform = {ra:"100", rb:"220", ga:"100", gb:"244", ba:"50", bb:"0", aa:"100", ab:"0"};
myColor = new Color(p3.scarf);
myColor.setTransform(myColorTransform);
delete myColor;
delete myColorTransform;
var inter = setInterval(change, 2800);
var alph = 0;
var go = 1;
_root.onEnterFrame = function () {
if (go == 3) {
fader._alpha = alph;
alph = alph + 1.5;
if ((alph >= 100) && (go == 3)) {
go++;
gotoAndPlay (70);
music.stop();
}
}
};
stop();
Frame 70
function buildWorld(maxx, maxz) {
world = new Object();
world.maxx = maxx;
world.maxz = maxz;
world.cellWidth = 30;
world.width = maxx * world.cellWidth;
world.length = (-maxz) * world.cellWidth;
world.path = _root.ground;
world.level = 1;
world.levelIndex = 0;
world.ambience = 0;
var _local2 = random(3);
world.map = _level1.levels[_local2 + world.levelIndex];
world.sM = false;
world.sMap = 0;
if (mainSound) {
world.sound = true;
} else {
world.sound = false;
}
var _local1 = world.path;
buildFloor(_local1);
}
function buildCharacter(path) {
world.char = new Object();
world.char.tempx = 30;
world.char.tempy = 0;
world.char.tempz = -30;
world.char.accel = 0.11;
world.char.xmov = 0;
world.char.zmov = 0;
world.char.clip = path;
world.char.score = 0;
world.char.lives = 4;
world.char.frame = 1;
world.char.pETL = 0;
world.char.dir = 1;
world.char.mousePushed = false;
world.char.playingR = false;
world.char.playingL = false;
world.char.playingD = false;
world.char.playingU = false;
world.char.health = 3;
world.char.hit = false;
world.char.timeUP = false;
world.char.inWater = false;
info.health.gotoAndStop(world.char.health);
world.char.fish = world.map[0][0][2];
info.fish.text = world.char.fish;
world.char.splash = false;
world.char.bonus = false;
world.char.fishCaught = [];
world.char.nextLife = 15000;
var _local2 = 1;
while (_local2 < 15) {
var _local1 = 1;
while (_local1 < 15) {
if (_local2 == 1) {
world.char.fishCaught[_local1] = [];
}
world.char.fishCaught[_local1][_local2] = 0;
_local1++;
}
_local2++;
}
world.char.beenInWater = false;
positionCharacter();
}
function buildCharacterAfterDeath(path) {
world.char.tempx = 30;
world.char.tempy = 0;
world.char.tempz = -30;
world.char.accel = 0.1;
world.char.xmov = 0;
world.char.zmov = 0;
world.char.clip = path;
world.char.frame = 1;
world.char.mousePushed = false;
world.char.hit = false;
info.health.gotoAndStop(world.char.health);
world.char.fish = world.map[0][0][2];
info.fish.text = world.char.fish;
world.char.health = 3;
world.char.splash = false;
world.char.bonus = false;
info.health.gotoAndStop(world.char.health);
positionCharacter();
}
function positionCharacter() {
world.char.x = world.char.tempx;
world.char.y = world.char.tempy;
world.char.z = world.char.tempz;
var _local1 = iso.mapToScreen(world.char.x, world.char.y, world.char.z);
world.char.clip._x = _local1[0];
world.char.clip._y = _local1[1];
}
function buildFloor(path) {
var tF = 2;
world.tiles = [];
world.movingTiles = [];
world.seals = [];
var movingTileCount = 0;
var _local2 = 0;
var nextMTIndex = 2;
var nextSIndex = 1;
var y = 0;
var _local3 = 1;
while (_local3 <= world.maxz) {
var _local1 = 1;
while (_local1 <= world.maxx) {
if (_local3 == 1) {
world.tiles[_local1] = [];
}
var depth = iso.calculateDepth(_local1, y, _local3);
var name = ((("cell" + _local1) + "_") + _local3);
path.attachMovie("tile", name, depth);
var clip = path[name];
var typeTile = world.map[_local1 - 1][_local3 - 1][1];
var x = ((_local1 - 1) * world.cellWidth);
var z = ((-(_local3 - 1)) * world.cellWidth);
if ((((_local3 == 1) || (_local1 == 1)) || (_local1 == 14)) || (_local3 == 14)) {
clip.gotoAndStop(2);
} else if (typeTile == 0) {
clip.gotoAndStop(2);
tF++;
if (tf > 145) {
tf = 2;
}
} else {
clip.tt.gotoAndStop(tF);
tF++;
if (tf > 145) {
tf = 2;
}
}
if (typeTile == 0.1) {
clip.gotoAndStop(2);
}
if (typeTile == 15) {
path.attachMovie("bouncer", ("b" + _local1) + _local3, depth + 1);
var temp = iso.mapToScreen(x, y, z);
path[("b" + _local1) + _local3]._x = temp[0];
path[("b" + _local1) + _local3]._y = temp[1];
}
if (((typeTile > 1) && (typeTile < 16)) && (typeTile != 15)) {
clip.gotoAndStop(3);
clip.block.gotoAndStop(world.map[_local1 - 1][_local3 - 1][0]);
}
if (world.map[_local1 - 1][_local3 - 1][2] == 7) {
path.attachMovie("pUp2", ("b" + x) + z, depth + 4);
var temp = iso.mapToScreen(x, y, z);
path[("b" + x) + z]._x = temp[0];
path[("b" + x) + z]._y = temp[1];
path[("b" + x) + z].gotoAndStop(1);
path[("b" + x) + z].map = world.map[_local1 - 1][_local3 - 1][3];
if (_local3 == 1) {
path[("b" + x) + z].gotoAndStop(1);
} else {
path[("b" + x) + z].gotoAndStop(3);
}
if (_local1 == 1) {
path[("b" + x) + z].gotoAndStop(4);
} else if (_local1 == 14) {
path[("b" + x) + z].gotoAndStop(2);
}
var pUp = 7;
} else {
var pUp = 0;
}
world.tiles[_local1][_local3] = {x:x, y:y, z:z, depth:depth, clip:clip, typeTile:typeTile, pUp:pUp, seal:false, name:name};
if (typeTile == 32) {
_local2++;
ground.attachMovie("seal", "seal" + _local2, 50);
var temp = iso.mapToScreen(x, y, z);
ground["seal" + _local2]._x = temp[0];
ground["seal" + _local2]._y = temp[1];
ground["seal" + _local2].swapDepths(depth + 1);
world.seals[0] = _local2;
ground["seal" + _local2].dir = world.map[_local1 - 1][_local3 - 1][2];
ground["seal" + _local2].tile2 = world.map[_local1 - 1][_local3 - 1][3] * world.cellWidth;
ground["seal" + _local2].x = x;
ground["seal" + _local2].z = z;
if (ground["seal" + _local2].dir == 1) {
ground["seal" + _local2].tile1 = _local1 * world.cellWidth;
if (ground["seal" + _local2].tile2 > ground["seal" + _local2].tile1) {
ground["seal" + _local2].speed = world.map[_local1 - 1][_local3 - 1][4] * -1;
ground["seal" + _local2].dir2 = 0;
} else {
var temp = ground["seal" + _local2].tile2;
ground["seal" + _local2].tile2 = ground["seal" + _local2].tile1;
ground["seal" + _local2].tile1 = temp;
ground["seal" + _local2].dir2 = 1;
ground["seal" + _local2].speed = world.map[_local1 - 1][_local3 - 1][4];
ground["seal" + _local2].gotoAndPlay("gL");
}
} else {
ground["seal" + _local2].tile1 = _local3 * world.cellWidth;
if (ground["seal" + _local2].tile2 > ground["seal" + _local2].tile1) {
ground["seal" + _local2].speed = world.map[_local1 - 1][_local3 - 1][4];
ground["seal" + _local2].dir2 = 2;
ground["seal" + _local2].gotoAndPlay("gD");
} else {
var temp = ground["seal" + _local2].tile2;
ground["seal" + _local2].tile2 = ground["seal" + _local2].tile1;
ground["seal" + _local2].tile1 = temp;
ground["seal" + _local2].dir2 = 3;
ground["seal" + _local2].gotoAndPlay("gU");
ground["seal" + _local2].speed = world.map[_local1 - 1][_local3 - 1][4] * -1;
}
}
ground["seal" + _local2].oldTile = name;
nextSIndex++;
world.tiles[_local1][_local3].seal = true;
}
if (typeTile == -1) {
path.attachMovie("bridge", ("b" + _local1) + _local3, depth + 3);
var temp = iso.mapToScreen(x, -32.5, z);
path[("b" + _local1) + _local3]._x = temp[0];
path[("b" + _local1) + _local3]._y = temp[1];
}
if (typeTile == -3) {
movingTileCount++;
clip.gotoAndStop(5);
world.movingTiles[0] = movingTileCount;
world.movingTiles[1] = false;
world.movingTiles[nextMTIndex] = _local1;
world.movingTiles[nextMTIndex + 1] = _local3;
nextMTIndex = nextMTIndex + 2;
}
var temp = iso.mapToScreen(x, y, z);
clip._x = temp[0];
clip._y = temp[1];
if ((typeTile > 19) && (typeTile != 32)) {
if (typeTile == 20) {
clip.gotoAndStop(1);
y = 0;
}
if (typeTile == 21) {
clip.gotoAndStop(3);
clip.block.gotoAndStop(1);
y = -16;
}
if (typeTile == 22) {
clip.gotoAndStop(3);
clip.block.gotoAndStop(2);
y = -32;
}
if (typeTile == 23) {
clip.gotoAndStop(3);
clip.block.gotoAndStop(3);
y = -48;
}
path.attachMovie("exit", ("b" + _local1) + _local3, depth + 1);
var temp = iso.mapToScreen(x, y, z);
path[("b" + _local1) + _local3]._x = temp[0];
path[("b" + _local1) + _local3]._y = temp[1];
y = 0;
}
if ((typeTile > 15) && (typeTile < 20)) {
switch (typeTile) {
case 16 :
clip.gotoAndStop(1);
y = 0;
break;
case 17 :
clip.gotoAndStop(3);
clip.block.gotoAndStop(1);
y = -16;
break;
case 18 :
clip.gotoAndStop(3);
clip.block.gotoAndStop(2);
y = -32;
break;
case 19 :
clip.gotoAndStop(3);
clip.block.gotoAndStop(3);
y = -48;
}
path.attachMovie("vortex", ("b" + _local1) + _local3, depth + 1);
var temp = iso.mapToScreen(x, y, z);
path[("b" + _local1) + _local3]._x = temp[0];
path[("b" + _local1) + _local3]._y = temp[1];
y = 0;
}
_local1++;
}
_local3++;
}
var pUpps = world.map[0][0][3];
var bonuses = 0;
while (bonuses < pUpps) {
var xChance = (random(14) + 1);
var zChance = (random(14) + 1);
var type1 = world.tiles[xChance][zChance];
while (((type1.pUp != 0) || (type1.typeTile > 2.8)) || (type1.typeTile < 1)) {
xChance = random(14) + 1;
zChance = random(14) + 1;
type1 = world.tiles[xChance][zChance];
}
switch (type1.typeTile) {
case 1 :
y = 0;
break;
case 2 :
y = -16;
break;
case 2.3 :
y = -32;
break;
case 2.8 :
y = -48;
}
x = world.tiles[xChance][zChance].x;
z = world.tiles[xChance][zChance].z;
depth = world.tiles[xChance][zChance].depth;
world.tiles[xChance][zChance].pUp = 1;
var chance = random(10);
if (chance == 6) {
var puptype = (random(3) + 6);
if (pupType == 8) {
pupType = 9;
}
if (pupType == 7) {
pupType = 8;
}
world.tiles[xChance][zChance].pUp = puptype;
path.attachMovie("pUp3", ("b" + x) + z, depth + 4);
var temp = iso.mapToScreen(x, y, z);
path[("b" + x) + z]._x = temp[0];
path[("b" + x) + z]._y = temp[1];
if (puptype == 6) {
path[("b" + x) + z].gotoAndStop(1);
} else if (puptype == 8) {
path[("b" + x) + z].gotoAndStop(2);
} else {
path[("b" + x) + z].gotoAndStop(3);
}
} else {
var puptype = 1;
if (world.level > 3) {
var puptype = (random(2) + 1);
world.tiles[xChance][zChance].pUp = puptype;
}
if (world.level > 5) {
var puptype = (random(3) + 1);
world.tiles[xChance][zChance].pUp = puptype;
}
if (world.level > 10) {
var puptype = (random(4) + 1);
world.tiles[xChance][zChance].pUp = puptype;
}
if (world.level > 15) {
var tu = random(18);
if (tu == 12) {
var puptype = 10;
world.tiles[xChance][zChance].pUp = 10;
puptype = 6;
} else {
var puptype = (random(5) + 1);
world.tiles[xChance][zChance].pUp = puptype;
}
}
path.attachMovie("pUp1", ("b" + x) + z, depth + 4);
var temp = iso.mapToScreen(x, y, z);
path[("b" + x) + z]._x = temp[0];
path[("b" + x) + z]._y = temp[1];
path[("b" + x) + z].gotoAndStop(puptype);
}
y = 0;
bonuses++;
}
ground.attachMovie("aFin", "fin", 100);
ground.fin.x = 405;
ground.fin.z = -405;
ground.fin.dir = 2;
ground.fin.gotoAndPlay("gL");
ground.fin.swapDepths(world.tiles[14][14].depth + 2);
var temp = iso.mapToScreen(ground.fin.x, 0, ground.fin.z);
ground.fin._x = temp[0];
ground.fin._y = temp[1];
}
function buildInnerFloor(xTile, zTile, map) {
_root.ground.removeMovieClip();
_root.attachMovie("ground", "ground", 5000);
ground._x = 275;
ground._y = 68;
var temp = iso.mapToScreen(15, 0, -15);
_root.ground.attachMovie("gr", "gr", 130);
_root.ground.gr._x = temp[0];
_root.ground.gr._y = temp[1];
ground.attachMovie("ball", "bally", 138);
if (zTile == 1) {
world.char.tempx = (xTile * 30) - 35;
world.char.tempy = 0;
world.char.tempz = -360;
} else if (zTile == 14) {
world.char.tempx = (xTile * 30) - 25;
world.char.tempy = 0;
world.char.tempz = -30;
} else if (xTile == 1) {
world.char.tempx = 360;
world.char.tempy = 0;
world.char.tempz = ((zTile * 30) * -1) + 30;
} else if (xTile == 14) {
world.char.tempx = 35;
world.char.tempy = 0;
world.char.tempz = ((zTile * 30) * -1) + 30;
}
positionCharacter();
world.char.xmov = 0;
world.char.zmov = 0;
delete world.movingTiles;
delete world.seals;
var tF = 2;
world.movingTiles = [];
world.seals = [];
var movingTileCount = 0;
var _local2 = 0;
var nextMTIndex = 2;
var nextSIndex = 1;
var path = _root.ground;
var y = 0;
var _local3 = 1;
while (_local3 <= world.maxz) {
var _local1 = 1;
while (_local1 <= world.maxx) {
if (_local3 == 1) {
world.tiles[_local1] = [];
}
var depth = iso.calculateDepth(_local1, y, _local3);
var name = ((("cell" + _local1) + "_") + _local3);
path.attachMovie("tile", name, depth);
var clip = path[name];
var typeTile = map[_local1 - 1][_local3 - 1][1];
var x = ((_local1 - 1) * world.cellWidth);
var z = ((-(_local3 - 1)) * world.cellWidth);
if ((((_local3 == 1) || (_local1 == 1)) || (_local1 == 14)) || (_local3 == 14)) {
clip.gotoAndStop(2);
} else if (typeTile == 0) {
clip.gotoAndStop(2);
tF++;
if (tf > 145) {
tf = 2;
}
} else {
clip.tt.gotoAndStop(tF);
tF++;
if (tf > 145) {
tf = 2;
}
}
if (typeTile == 0.1) {
clip.gotoAndStop(2);
}
if (typeTile == 15) {
path.attachMovie("bouncer", ("b" + _local1) + _local3, depth + 1);
var temp = iso.mapToScreen(x, y, z);
path[("b" + _local1) + _local3]._x = temp[0];
path[("b" + _local1) + _local3]._y = temp[1];
}
if (((typeTile > 1) && (typeTile < 16)) && (typeTile != 15)) {
clip.gotoAndStop(3);
clip.block.gotoAndStop(map[_local1 - 1][_local3 - 1][0]);
}
if (map[_local1 - 1][_local3 - 1][2] == 7) {
path.attachMovie("pUp2", ("b" + x) + z, depth + 4);
var temp = iso.mapToScreen(x, y, z);
path[("b" + x) + z]._x = temp[0];
path[("b" + x) + z]._y = temp[1];
path[("b" + x) + z].gotoAndStop(1);
path[("b" + x) + z].map = map[_local1 - 1][_local3 - 1][3];
if (_local3 == 1) {
path[("b" + x) + z].gotoAndStop(1);
} else {
path[("b" + x) + z].gotoAndStop(3);
}
if (_local1 == 1) {
path[("b" + x) + z].gotoAndStop(4);
} else if (_local1 == 14) {
path[("b" + x) + z].gotoAndStop(2);
}
var pUp = 7;
} else {
var pUp = 0;
}
world.tiles[_local1][_local3] = {x:x, y:y, z:z, depth:depth, clip:clip, typeTile:typeTile, pUp:pUp, seal:false, name:name};
if (typeTile == 32) {
_local2++;
ground.attachMovie("seal", "seal" + _local2, 50);
var temp = iso.mapToScreen(x, y, z);
ground["seal" + _local2]._x = temp[0];
ground["seal" + _local2]._y = temp[1];
ground["seal" + _local2].swapDepths(depth + 1);
world.seals[0] = _local2;
ground["seal" + _local2].dir = map[_local1 - 1][_local3 - 1][2];
ground["seal" + _local2].tile2 = map[_local1 - 1][_local3 - 1][3] * world.cellWidth;
ground["seal" + _local2].x = x;
ground["seal" + _local2].z = z;
if (ground["seal" + _local2].dir == 1) {
ground["seal" + _local2].tile1 = _local1 * world.cellWidth;
if (ground["seal" + _local2].tile2 > ground["seal" + _local2].tile1) {
ground["seal" + _local2].speed = map[_local1 - 1][_local3 - 1][4] * -1;
ground["seal" + _local2].dir2 = 0;
} else {
var temp = ground["seal" + _local2].tile2;
ground["seal" + _local2].tile2 = ground["seal" + _local2].tile1;
ground["seal" + _local2].tile1 = temp;
ground["seal" + _local2].dir2 = 1;
ground["seal" + _local2].speed = map[_local1 - 1][_local3 - 1][4];
ground["seal" + _local2].gotoAndPlay("gL");
}
} else {
ground["seal" + _local2].tile1 = _local3 * world.cellWidth;
if (ground["seal" + _local2].tile2 > ground["seal" + _local2].tile1) {
ground["seal" + _local2].speed = map[_local1 - 1][_local3 - 1][4];
ground["seal" + _local2].dir2 = 2;
ground["seal" + _local2].gotoAndPlay("gD");
} else {
var temp = ground["seal" + _local2].tile2;
ground["seal" + _local2].tile2 = ground["seal" + _local2].tile1;
ground["seal" + _local2].tile1 = temp;
ground["seal" + _local2].dir2 = 3;
ground["seal" + _local2].gotoAndPlay("gU");
ground["seal" + _local2].speed = map[_local1 - 1][_local3 - 1][4] * -1;
}
}
ground["seal" + _local2].oldTile = name;
nextSIndex++;
world.tiles[_local1][_local3].seal = true;
}
if (typeTile == -1) {
path.attachMovie("bridge", ("b" + _local1) + _local3, depth + 3);
var temp = iso.mapToScreen(x, -32.5, z);
path[("b" + _local1) + _local3]._x = temp[0];
path[("b" + _local1) + _local3]._y = temp[1];
}
if (typeTile == -3) {
movingTileCount++;
clip.gotoAndStop(5);
world.movingTiles[0] = movingTileCount;
world.movingTiles[1] = false;
world.movingTiles[nextMTIndex] = _local1;
world.movingTiles[nextMTIndex + 1] = _local3;
nextMTIndex = nextMTIndex + 2;
}
var temp = iso.mapToScreen(x, y, z);
clip._x = temp[0];
clip._y = temp[1];
if ((typeTile > 19) && (typeTile != 32)) {
if (typeTile == 20) {
clip.gotoAndStop(1);
y = 0;
}
if (typeTile == 21) {
clip.gotoAndStop(3);
clip.block.gotoAndStop(1);
y = -16;
}
if (typeTile == 22) {
clip.gotoAndStop(3);
clip.block.gotoAndStop(2);
y = -32;
}
if (typeTile == 23) {
clip.gotoAndStop(3);
clip.block.gotoAndStop(3);
y = -48;
}
if (world.char.fishCaught[_local1][_local3] == 0) {
path.attachMovie("exit", ("b" + _local1) + _local3, depth + 1);
var temp = iso.mapToScreen(x, y, z);
path[("b" + _local1) + _local3]._x = temp[0];
path[("b" + _local1) + _local3]._y = temp[1];
}
y = 0;
}
if ((typeTile > 15) && (typeTile < 20)) {
switch (typeTile) {
case 16 :
clip.gotoAndStop(1);
y = 0;
break;
case 17 :
clip.gotoAndStop(3);
clip.block.gotoAndStop(1);
y = -16;
break;
case 18 :
clip.gotoAndStop(3);
clip.block.gotoAndStop(2);
y = -32;
break;
case 19 :
clip.gotoAndStop(3);
clip.block.gotoAndStop(3);
y = -48;
}
path.attachMovie("vortex", ("b" + _local1) + _local3, depth + 1);
var temp = iso.mapToScreen(x, y, z);
path[("b" + _local1) + _local3]._x = temp[0];
path[("b" + _local1) + _local3]._y = temp[1];
y = 0;
}
_local1++;
}
_local3++;
}
var pUpps = world.map[0][0][3];
var bonuses = 0;
while (bonuses < pUpps) {
var xChance = (random(14) + 1);
var zChance = (random(14) + 1);
var type1 = world.tiles[xChance][zChance];
while (((type1.pUp != 0) || (type1.typeTile > 2.8)) || (type1.typeTile < 1)) {
xChance = random(14) + 1;
zChance = random(14) + 1;
type1 = world.tiles[xChance][zChance];
}
switch (type1.typeTile) {
case 1 :
y = 0;
break;
case 2 :
y = -16;
break;
case 2.3 :
y = -32;
break;
case 2.8 :
y = -48;
}
x = world.tiles[xChance][zChance].x;
z = world.tiles[xChance][zChance].z;
depth = world.tiles[xChance][zChance].depth;
world.tiles[xChance][zChance].pUp = 1;
var chance = random(10);
if (chance == 6) {
var puptype = (random(3) + 6);
if (pupType == 8) {
pupType = 9;
}
if (pupType == 7) {
pupType = 8;
}
world.tiles[xChance][zChance].pUp = puptype;
path.attachMovie("pUp3", ("b" + x) + z, depth + 4);
var temp = iso.mapToScreen(x, y, z);
path[("b" + x) + z]._x = temp[0];
path[("b" + x) + z]._y = temp[1];
if (puptype == 6) {
path[("b" + x) + z].gotoAndStop(1);
} else if (puptype == 8) {
path[("b" + x) + z].gotoAndStop(2);
} else {
path[("b" + x) + z].gotoAndStop(3);
}
} else {
var puptype = 1;
if (world.level > 3) {
var puptype = (random(2) + 1);
world.tiles[xChance][zChance].pUp = puptype;
}
if (world.level > 5) {
var puptype = (random(3) + 1);
world.tiles[xChance][zChance].pUp = puptype;
}
if (world.level > 10) {
var puptype = (random(4) + 1);
world.tiles[xChance][zChance].pUp = puptype;
}
if (world.level > 15) {
var tu = random(18);
if (tu == 12) {
var puptype = 10;
world.tiles[xChance][zChance].pUp = 10;
puptype = 6;
} else {
var puptype = (random(5) + 1);
world.tiles[xChance][zChance].pUp = puptype;
}
}
path.attachMovie("pUp1", ("b" + x) + z, depth + 4);
var temp = iso.mapToScreen(x, y, z);
path[("b" + x) + z]._x = temp[0];
path[("b" + x) + z]._y = temp[1];
path[("b" + x) + z].gotoAndStop(puptype);
}
y = 0;
bonuses++;
}
ground.attachMovie("aFin", "fin", 100);
ground.fin.x = 405;
ground.fin.z = -405;
ground.fin.dir = 2;
ground.fin.gotoAndPlay("gL");
ground.fin.swapDepths(world.tiles[14][14].depth + 2);
var temp = iso.mapToScreen(ground.fin.x, 0, ground.fin.z);
ground.fin._x = temp[0];
ground.fin._y = temp[1];
}
function detectObjects() {
var x = world.char.tempx;
var z = ((Math.abs(world.char.tempz) + 5) + world.char.zmov);
var _local2 = Math.round(x / world.cellWidth) + 1;
var _local3 = Math.round(z / world.cellWidth) + 1;
var _local1 = world.tiles[_local2][_local3].typeTile;
if (((_local1 > 1) && (_local1 != 6)) && (_local1 != 32)) {
if (_local1 == 15) {
world.char.tempz = world.char.tempz + 15;
world.char.zmov = world.char.zmov * -1.5;
ground[("b" + _local2) + _local3].gotoAndPlay("bounce");
if (world.sound) {
grunt.start();
bounce.start();
}
}
if (world.char.tempy == 0) {
if ((_local1 < 15) || (_local1 > 16)) {
if (_local1 != 20) {
world.char.zmov = -0.5;
}
}
} else if (world.char.tempy == -16) {
if (((_local1 == 2.3) || (_local1 == 2.8)) || (_local1 > 17)) {
if (_local1 != 21) {
world.char.zmov = -0.5;
}
}
} else if (world.char.tempy == -32) {
if ((_local1 == 2.8) || (_local1 > 18)) {
if (_local1 != 22) {
world.char.zmov = -0.5;
}
}
}
}
var depth1 = world.tiles[_local2][_local3].depth;
x = (world.char.tempx + 15) + world.char.xmov;
_local2 = Math.round(x / world.cellWidth) + 1;
_local3 = Math.round(z / world.cellWidth) + 1;
var depth2 = world.tiles[_local2][_local3].depth;
_local1 = world.tiles[_local2][_local3].typeTile;
if (((_local1 != 5) && (_local1 > 1)) && (_local1 != 32)) {
if (_local1 == 15) {
world.char.tempx = world.char.tempx - 15;
world.char.xmov = world.char.xmov * -1.5;
ground[("b" + _local2) + _local3].gotoAndPlay("bounce");
if (world.sound) {
grunt.start();
bounce.start();
}
}
if (world.char.tempy == 0) {
if ((_local1 < 15) || (_local1 > 16)) {
if (_local1 != 20) {
world.char.xmov = -0.5;
depth2 = 0;
}
}
} else if (world.char.tempy == -16) {
if (((_local1 == 2.3) || (_local1 == 2.8)) || (_local1 > 17)) {
if (_local1 != 21) {
world.char.xmov = -0.5;
depth2 = 0;
}
}
} else if (world.char.tempy == -32) {
if ((_local1 == 2.8) || (_local1 > 18)) {
if (_local1 != 22) {
world.char.xmov = -0.5;
depth2 = 0;
}
}
}
}
x = (world.char.tempx - 15) + world.char.xmov;
_local2 = Math.round(x / world.cellWidth) + 1;
_local3 = Math.round(z / world.cellWidth) + 1;
var depth3 = world.tiles[_local2][_local3].depth;
_local1 = world.tiles[_local2][_local3].typeTile;
if (((_local1 != 3) && (_local1 > 1)) && (_local1 != 32)) {
if (_local1 == 15) {
world.char.tempx = world.char.tempx + 15;
world.char.xmov = world.char.xmov * -1.5;
ground[("b" + _local2) + _local3].gotoAndPlay("bounce");
if (world.sound) {
grunt.start();
bounce.start();
}
}
if (world.char.tempy == 0) {
if ((_local1 < 15) || (_local1 > 16)) {
if (_local1 != 20) {
world.char.xmov = 0.5;
depth3 = 0;
}
}
} else if (world.char.tempy == -16) {
if (((_local1 == 2.3) || (_local1 == 2.8)) || (_local1 > 17)) {
if (_local1 != 21) {
world.char.xmov = 0.5;
depth3 = 0;
}
}
} else if (world.char.tempy == -32) {
if ((_local1 == 2.8) || (_local1 > 18)) {
if (_local1 != 22) {
world.char.xmov = 0.5;
depth3 = 0;
}
}
}
}
var finalDepth = Math.max(depth1, depth2);
finalDepth = Math.max(depth2, depth3);
if (finalDepth == 0) {
x = world.char.tempx;
z = Math.abs(world.char.tempz) - 5;
_local2 = Math.round(x / world.cellWidth) + 1;
_local3 = Math.round(z / world.cellWidth) + 1;
finalDepth = world.tiles[_local2][_local3].depth;
}
world.char.clip.swapDepths(finalDepth + 2);
x = world.char.tempx;
z = (Math.abs(world.char.tempz) - 15) - world.char.zmov;
_local2 = Math.round(x / world.cellWidth) + 1;
_local3 = Math.round(z / world.cellWidth) + 1;
_local1 = world.tiles[_local2][_local3].typeTile;
if (((_local1 != 4) && (_local1 > 1)) && (_local1 != 32)) {
if (_local1 == 15) {
world.char.tempz = world.char.tempz - 15;
world.char.zmov = world.char.zmov * -1.5;
ground[("b" + _local2) + _local3].gotoAndPlay("bounce");
if (world.sound) {
grunt.start();
bounce.start();
}
}
if (world.char.tempy == 0) {
if ((_local1 < 15) || (_local1 > 16)) {
if (_local1 != 20) {
world.char.zmov = 0.5;
}
}
} else if (world.char.tempy == -16) {
if (((_local1 == 2.3) || (_local1 == 2.8)) || (_local1 > 17)) {
if (_local1 != 21) {
world.char.zmov = 0.5;
}
}
} else if (world.char.tempy == -32) {
if ((_local1 == 2.8) || (_local1 > 18)) {
if (_local1 != 22) {
world.char.zmov = 0.5;
}
}
}
}
x = world.char.tempx;
z = Math.abs(world.char.tempz);
_local2 = Math.round(x / world.cellWidth) + 1;
_local3 = Math.round(z / world.cellWidth) + 1;
_local1 = world.tiles[_local2][_local3];
switch (_local1.typeTile) {
case 0 :
if (!world.char.splash) {
ground.bally.removeMovieClip();
ground.attachMovie("splashIT", "splashIT", world.tiles[_local2][_local3].depth + 3);
var temp = iso.mapToScreen((_local2 * 30) - 15, 0, ((_local3 * 30) * -1) + 15);
ground.splashIT._x = temp[0];
ground.splashIT._y = temp[1];
world.char.splash = true;
if (world.sound) {
splash.start();
}
}
break;
case -3 :
if ((!world.movingTiles[1]) && (!world.char.splash)) {
ground.bally.removeMovieClip();
ground.attachMovie("splashIT", "splashIT", world.tiles[_local2][_local3].depth + 3);
var temp = iso.mapToScreen((_local2 * 30) - 15, 0, ((_local3 * 30) * -1) + 15);
ground.splashIT._x = temp[0];
ground.splashIT._y = temp[1];
world.char.splash = true;
if (world.sound) {
splash.start();
}
}
break;
case 1 :
if (world.char.tempy < 0) {
if (world.char.xmov < 0) {
world.char.tempx = world.char.tempx - 5;
} else {
world.char.tempx = world.char.tempx + 5;
}
if (world.char.zmov > 0) {
world.char.tempz = world.char.tempz - 5;
} else {
world.char.tempz = world.char.tempz + 5;
}
world.char.clip.swapDepths(world.tiles[_local2][_local3].depth + 2);
}
if (_local1.pUp > 0) {
pUpPickup(_local1, _local2, _local3);
}
world.char.tempy = 0;
break;
case 2 :
if (world.char.tempy < -16) {
if (world.char.xmov < 0) {
world.char.tempx = world.char.tempx - 5;
} else {
world.char.tempx = world.char.tempx + 5;
}
if (world.char.zmov > 0) {
world.char.tempz = world.char.tempz - 5;
} else {
world.char.tempz = world.char.tempz + 5;
}
world.char.clip.swapDepths(world.tiles[_local2][_local3].depth + 2);
}
if (world.char.tempy < 0) {
world.char.tempy = -16;
}
if (_local1.pUp > 0) {
pUpPickup(_local1, _local2, _local3);
}
break;
case 2.3 :
if (world.char.tempy < -32) {
if (world.char.xmov < 0) {
world.char.tempx = world.char.tempx - 5;
} else {
world.char.tempx = world.char.tempx + 5;
}
if (world.char.zmov > 0) {
world.char.tempz = world.char.tempz - 5;
} else {
world.char.tempz = world.char.tempz + 5;
}
world.char.clip.swapDepths(world.tiles[_local2][_local3].depth + 2);
}
if (world.char.tempy < 0) {
world.char.tempy = -32;
}
if (_local1.pUp > 0) {
pUpPickup(_local1, _local2, _local3);
}
break;
case 2.8 :
if (world.char.tempy < 0) {
world.char.tempy = -48;
}
if (_local1.pUp > 0) {
pUpPickup(_local1, _local2, _local3);
}
break;
case 3 :
var x = Math.abs(world.tiles[_local2][_local3].x);
var fRight = (x + 15);
var ans = (((fRight - world.char.tempx) / 2) * -1);
world.char.tempy = ans;
break;
case 4 :
var z = Math.abs(world.tiles[_local2][_local3].z);
var fRight = (z + 15);
var ans = (((fRight + world.char.tempz) / 2) * -1);
world.char.tempy = ans;
break;
case 5 :
var x = Math.abs(world.tiles[_local2][_local3].x);
var fRight = (x - 15);
var ans = (((world.char.tempx - fRight) / 2) * -1);
world.char.tempy = ans;
break;
case 6 :
var z = Math.abs(world.tiles[_local2][_local3].z);
var fRight = (z - 15);
var ans = (((fRight + world.char.tempz) / 2) - 2);
world.char.tempy = ans;
break;
case 7 :
var x = Math.abs(world.tiles[_local2][_local3].x);
var fRight = (x + 15);
var ans = ((18 + ((fRight - world.char.tempx) / 2)) * -1);
world.char.tempy = ans;
break;
case 8 :
var z = Math.abs(world.tiles[_local2][_local3].z);
var fRight = (z + 15);
var ans = ((18 + ((fRight + world.char.tempz) / 2)) * -1);
world.char.tempy = ans;
break;
case 9 :
var x = Math.abs(world.tiles[_local2][_local3].x);
var fRight = (x - 15);
var ans = ((18 + ((world.char.tempx - fRight) / 2)) * -1);
world.char.tempy = ans;
break;
case 10 :
var z = Math.abs(world.tiles[_local2][_local3].z);
var fRight = (z - 15);
var ans = ((((fRight + world.char.tempz) / 2) - 18) - 2);
world.char.tempy = ans;
break;
case 11 :
var x = Math.abs(world.tiles[_local2][_local3].x);
var fRight = (x + 15);
var ans = ((36 + ((fRight - world.char.tempx) / 2)) * -1);
world.char.tempy = ans;
break;
case 12 :
var z = Math.abs(world.tiles[_local2][_local3].z);
var fRight = (z + 15);
var ans = ((36 + ((fRight + world.char.tempz) / 2)) * -1);
world.char.tempy = ans;
break;
case 13 :
var x = Math.abs(world.tiles[_local2][_local3].x);
var fRight = (x - 15);
var ans = ((36 + ((world.char.tempx - fRight) / 2)) * -1);
world.char.tempy = ans;
break;
case 14 :
var z = Math.abs(world.tiles[_local2][_local3].z);
var fRight = (z - 15);
var ans = ((((fRight + world.char.tempz) / 2) - 36) - 2);
world.char.tempy = ans;
break;
case -1 :
if (world.char.tempy < 0) {
world.char.clip.swapDepths(world.tiles[_local2][_local3 + 1].depth + 4);
} else {
world.char.clip.swapDepths(world.tiles[_local2][_local3].depth + 2);
}
}
if ((_local1.typeTile > 15) && (_local1.typeTile < 20)) {
penguinHit();
}
if (_local1.typeTile > 19) {
var tileOn = _root.ground[("b" + _local2) + _local3];
if ((_local1.typeTile < 24) && (tileOn._visible)) {
world.char.fishCaught[_local2][_local3] = 1;
tileOn._visible = false;
var chance = random(3);
if ((chance == 2) && (world.sound)) {
mmm.start();
} else if (world.sound) {
squish.start();
}
world.char.fish--;
info.fish.text = world.char.fish;
if (world.char.fish == 0) {
gotoAndPlay (72);
}
}
}
}
function fellInWater() {
var _local2 = 1;
while (_local2 < 15) {
var _local1 = 1;
while (_local1 < 15) {
world.char.fishCaught[_local1][_local2] = 0;
_local1++;
}
_local2++;
}
world.char.lives--;
info.lives.life.text = "x" + world.char.lives;
if (world.char.lives > 0) {
clearInterval(intervalID);
clearInterval(world.inter);
ground.removeMovieClip();
_root.attachMovie("ground", "ground", 5000);
ground._x = 275;
ground._y = 68;
var _local3 = iso.mapToScreen(15, 0, -15);
ground.attachMovie("gr", "gr", 130);
ground.gr._x = _local3[0];
ground.gr._y = _local3[1];
ground.attachMovie("ball", "bally", 138);
buildCharacterAfterDeath(_root.ground.bally);
buildFloor(_root.ground);
titleVisible = true;
if (world.char.timeUP) {
mouse.show();
arrow.stopDrag();
arrow._x = -500;
arrow._y = -500;
world.char.timeUP = false;
_root.attachMovie("timeUP", "rg", 9000);
} else {
attachMovie("ready&Go", "rg", 9000);
}
rg._x = 275;
rg._y = 200;
rg.level.text = world.level;
timer.seconds = world.map[0][0][5];
timer.MTUpdate = 0;
timer.minute = world.map[0][0][4];
world.char.splash = false;
world.char.bonus = false;
} else {
ground.removeMovieClip();
cf();
}
}
function cf() {
gotoAndPlay (74);
}
function pUpPickup(path, xTile, zTile) {
var _local1 = path;
var _local2 = _root;
if (_local1.pUp != 5) {
if (world.sM) {
var _local3 = world.sMap[0][0][3];
_local3--;
world.sMap[0][0][3] = _local3;
} else {
var _local3 = map[0][0][3];
_local3--;
map[0][0][3] = _local3;
}
}
if (_local1.pUp == 1) {
if (world.sound) {
pickup.start();
}
_local2.ground[("b" + _local1.x) + _local1.z].removeMovieClip();
if (world.char.bonus) {
world.char.pETL = world.char.pETL + 300;
} else {
world.char.pETL = world.char.pETL + 100;
}
_local1.pUp = 0;
} else if (_local1.pUp == 2) {
if (world.sound) {
pickup.start();
}
_local2.ground[("b" + _local1.x) + _local1.z].removeMovieClip();
if (world.char.bonus) {
world.char.pETL = world.char.pETL + 600;
} else {
world.char.pETL = world.char.pETL + 200;
}
_local1.pUp = 0;
} else if (_local1.pUp == 3) {
if (world.sound) {
pickup.start();
}
_local2.ground[("b" + _local1.x) + _local1.z].removeMovieClip();
if (world.char.bonus) {
world.char.pETL = world.char.pETL + 900;
} else {
world.char.pETL = world.char.pETL + 300;
}
_local1.pUp = 0;
} else if (_local1.pUp == 4) {
if (world.sound) {
pickup.start();
}
_local2.ground[("b" + _local1.x) + _local1.z].removeMovieClip();
if (world.char.bonus) {
world.char.pETL = world.char.pETL + 1500;
} else {
world.char.pETL = world.char.pETL + 500;
}
_local1.pUp = 0;
} else if (_local1.pUp == 7) {
if (_local2.ground[("b" + _local1.x) + _local1.z].map != 0) {
world.sM = true;
world.sMap = _local2.ground[("b" + _local1.x) + _local1.z].map;
buildInnerFloor(xTile, zTile, _local2.ground[("b" + _local1.x) + _local1.z].map);
} else {
world.sM = false;
buildInnerFloor(xTile, zTile, world.map);
}
} else if (_local1.pUp == 6) {
_local2.ground[("b" + _local1.x) + _local1.z].removeMovieClip();
if (world.sound) {
clock.start();
}
timer.seconds = timer.seconds + 10;
if (timer.seconds > 60) {
timer.minute++;
timer.seconds = timer.seconds - 60;
}
_local1.pUp = 0;
if (timer.seconds < 10) {
info.time.text = (timer.minute + ":0") + timer.seconds;
} else {
info.time.text = (timer.minute + ":") + timer.seconds;
}
} else if (_local1.pUp == 5) {
if (world.sound) {
pickup.start();
}
_local2.ground[("b" + _local1.x) + _local1.z].removeMovieClip();
if (world.char.bonus) {
world.char.pETL = world.char.pETL + 1200;
} else {
world.char.pETL = world.char.pETL + 400;
}
_local1.pUp = 0;
} else if (_local1.pUp == 8) {
if (world.char.health < 3) {
if (world.sound) {
pickup.start();
}
_local2.ground[("b" + _local1.x) + _local1.z].removeMovieClip();
world.char.health++;
info.health.gotoAndStop(world.char.health);
_local1.pUp = 0;
}
} else if (_local1.pUp == 9) {
if (world.sound) {
pickup.start();
}
_local2.ground[("b" + _local1.x) + _local1.z].removeMovieClip();
world.char.bonus = true;
_local1.pUp = 0;
} else if (_local1.pUp == 10) {
if (world.sound) {
pickup.start();
}
_local2.ground[("b" + _local1.x) + _local1.z].removeMovieClip();
if (world.char.bonus) {
world.char.pETL = world.char.pETL + 3000;
} else {
world.char.pETL = world.char.pETL + 1000;
}
_local1.pUp = 0;
}
}
function changeFrames() {
gotoAndPlay (71);
}
function moveSeals() {
var q = (world.seals[0] + 1);
var _local3 = 1;
while (_local3 < q) {
var _local1 = ground["seal" + _local3];
if (_local1.dir == 1) {
_local1.x = _local1.x - _local1.speed;
} else {
_local1.z = _local1.z - _local1.speed;
}
var temp = iso.mapToScreen(_local1.x, 0, _local1.z);
_local1._x = temp[0];
_local1._y = temp[1];
if (_local1.dir2 == 0) {
if (((((!world.char.hit) && (world.char.tempx > (_local1.x - 30))) && (world.char.tempx < _local1.x)) && (world.char.tempz > (_local1.z - 20))) && (world.char.tempz < (_local1.z + 20))) {
if (world.sound) {
sealS.start();
}
penguinHit();
}
if (_local1.x > _local1.tile2) {
_local1.speed = _local1.speed * -1;
_local1.dir2 = 1;
_local1.gotoAndPlay("gL");
}
} else if (_local1.dir2 == 1) {
if (((((!world.char.hit) && (world.char.tempx > (_local1.x - 50))) && (world.char.tempx < (_local1.x - 20))) && (world.char.tempz > (_local1.z - 20))) && (world.char.tempz < (_local1.z + 20))) {
if (world.sound) {
sealS.start();
}
penguinHit();
}
if (_local1.x < _local1.tile1) {
_local1.speed = _local1.speed * -1;
_local1.dir2 = 0;
_local1.gotoAndPlay("gR");
}
}
if (_local1.dir2 == 2) {
if (((((!world.char.hit) && (world.char.tempx > (_local1.x - 20))) && (world.char.tempx < (_local1.x + 20))) && (world.char.tempz > (_local1.z - 20))) && (world.char.tempz < (_local1.z + 20))) {
if (world.sound) {
sealS.start();
}
penguinHit();
}
if (_local1.z < (_local1.tile2 * -1)) {
_local1.speed = _local1.speed * -1;
_local1.dir2 = 3;
_local1.gotoAndPlay("gU");
}
} else if (_local1.dir2 == 3) {
if (((((!world.char.hit) && (world.char.tempx < (_local1.x + 20))) && (world.char.tempx > (_local1.x - 20))) && (world.char.tempz > (_local1.z + 20))) && (world.char.tempz < (_local1.z + 40))) {
if (world.sound) {
sealS.start();
}
penguinHit();
}
if (_local1.z > (_local1.tile1 * -1)) {
_local1.speed = _local1.speed * -1;
_local1.dir2 = 2;
_local1.gotoAndPlay("gD");
}
}
var x = _local1.x;
var z = Math.abs(_local1.z);
var _local2 = Math.round(x / world.cellWidth) + 1;
var zTile = (Math.round(z / world.cellWidth) + 1);
if (world.tiles[_local2][zTile].name != _local1.oldTile) {
ground[_local1.oldTile].seal = false;
_local1.oldTile = world.tiles[_local2][zTile].name;
ground[_local1.oldTile].seal = true;
_local1.swapDepths(world.tiles[_local2][zTile].depth + 1);
}
_local3++;
}
}
function moveWhale() {
if (ground.fin.dir == 0) {
ground.fin.x = ground.fin.x + 4;
if (ground.fin.x > 405) {
ground.fin.dir = 1;
ground.fin.gotoAndPlay("gD");
ground.fin.swapDepths(world.tiles[14][14].depth + 2);
}
} else if (ground.fin.dir == 1) {
ground.fin.z = ground.fin.z - 4;
if (ground.fin.z < -405) {
ground.fin.dir = 2;
ground.fin.gotoAndPlay("gL");
}
} else if (ground.fin.dir == 2) {
ground.fin.x = ground.fin.x - 4;
if (ground.fin.x < 15) {
ground.fin.dir = 3;
ground.fin.gotoAndPlay("gU");
ground.fin.swapDepths(world.tiles[1][1].depth + 2);
}
} else {
ground.fin.z = ground.fin.z + 4;
if (ground.fin.z > -15) {
ground.fin.dir = 0;
ground.fin.gotoAndPlay("gR");
ground.fin.swapDepths(world.tiles[1][1].depth + 2);
}
}
var _local1 = iso.mapToScreen(ground.fin.x, 0, ground.fin.z);
ground.fin._x = _local1[0];
ground.fin._y = _local1[1];
}
function penguinHit() {
if (world.sound) {
ouch.start();
}
var _local2 = new Color(world.char.clip);
var _local1 = {};
_local1 = {ra:"100", rb:"244", ga:"50", gb:"100", ba:"50", bb:"100", aa:"100", ab:"0"};
_local2.setTransform(_local1);
world.char.xmov = world.char.xmov * -1.1;
world.char.zmov = world.char.zmov * -1.1;
world.char.health--;
if (world.char.health < 1) {
fellInWater();
} else {
info.health.gotoAndStop(world.char.health);
intervalID = setInterval(penNotHit, 1000);
world.char.hit = true;
}
}
function penNotHit() {
world.char.hit = false;
var _local2 = new Color(world.char.clip);
var _local1 = {};
_local1 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local2.setTransform(_local1);
clearInterval(intervalID);
}
function chngFrame() {
ground.splashIT.removeMovieClip();
gotoAndPlay (73);
}
function time() {
timer.seconds--;
if ((timer.seconds < 0) && (timer.minute > 0)) {
timer.seconds = 59;
timer.minute--;
} else if ((timer.seconds == 0) && (timer.minute == 0)) {
if (world.char.inWater) {
world.char.inWater = false;
arrow2.removeMovieClip();
_root.attachMovie("arrow", "arrow", 20001);
arrow.startDrag(lockCenter);
arrow._x = _xmouse;
arrow._y = _ymouse;
penguin.removeMovieClip();
whaleW.removeMovieClip();
whaleX.removeMovieClip();
jaws.stop();
world.char.timeUP = true;
fellInWater();
world.char.splash = true;
if (world.char.lives > 0) {
gotoAndPlay (71);
}
} else {
world.char.timeUP = true;
fellInWater();
}
}
if (timer.seconds < 10) {
if ((timer.minute == 0) && (world.sound)) {
beat.start();
}
info.time.text = (timer.minute + ":0") + timer.seconds;
} else {
info.time.text = (timer.minute + ":") + timer.seconds;
}
timer.MTUpdate++;
if (timer.MTUpdate == 2) {
var q = ((world.movingTiles[0] * 2) + 1);
var _local1 = 2;
while (_local1 <= q) {
var _local3 = world.movingTiles[_local1];
var _local2 = world.movingTiles[_local1 + 1];
world.tiles[_local3][_local2].clip.mt.gotoAndPlay("grow");
world.movingTiles[1] = true;
_local1 = _local1 + 2;
}
} else if (timer.MTUpdate == 4) {
var q = ((world.movingTiles[0] * 2) + 1);
var _local1 = 2;
while (_local1 <= q) {
var _local3 = world.movingTiles[_local1];
var _local2 = world.movingTiles[_local1 + 1];
world.tiles[_local3][_local2].clip.mt.gotoAndPlay("shrink");
world.movingTiles[1] = false;
_local1 = _local1 + 2;
}
timer.MTUpdate = 0;
}
}
function ambience() {
clearInterval(world.ambience);
var _local1 = random(5);
_local1 = _local1 + 10;
_local1 = _local1 * 1000;
world.ambience = setInterval(ambience, _local1);
if ((!world.char.inWater) && (world.sound)) {
amb.start();
}
_local1 = _local1++;
}
function mousePressed() {
world.char.mousePushed = true;
if (world.char.dir == 1) {
if (world.char.zmov > 0) {
world.char.zmov = world.char.zmov - world.char.accel;
} else if (world.char.zmov < 0) {
world.char.zmov = world.char.zmov + world.char.accel;
}
world.char.xmov = world.char.xmov + world.char.accel;
} else if (world.char.dir == 2) {
if (world.char.xmov > 0) {
world.char.xmov = world.char.xmov - world.char.accel;
} else if (world.char.xmov < 0) {
world.char.xmov = world.char.xmov + world.char.accel;
}
world.char.zmov = world.char.zmov + world.char.accel;
} else if (world.char.dir == 3) {
if (world.char.zmov > 0) {
world.char.zmov = world.char.zmov - world.char.accel;
} else if (world.char.zmov < 0) {
world.char.zmov = world.char.zmov + world.char.accel;
}
world.char.xmov = world.char.xmov - world.char.accel;
} else {
if (world.char.xmov > 0) {
world.char.xmov = world.char.xmov - world.char.accel;
} else if (world.char.xmov < 0) {
world.char.xmov = world.char.xmov + world.char.accel;
}
world.char.zmov = world.char.zmov - world.char.accel;
}
}
function playerWon() {
gotoAndPlay (75);
}
_root.attachMovie("ground", "ground", 5000);
ground._x = 275;
ground._y = 68;
buildWorld(maxx, maxz);
ground.attachMovie("ball", "bally", 138);
_root.attachMovie("arrow", "arrow", 20000);
arrow.startDrag(lockCenter);
arrow._x = _xmouse;
arrow._y = _ymouse;
mouse.hide();
buildCharacter(_root.ground.bally);
_root.attachMovie("info", "info", 12515);
info._x = 274.9;
info._y = 379;
opt.onRelease = function () {
clearInterval(world.inter);
titleVisible = true;
mouse.show();
arrow.stopDrag();
arrow._x = -500;
arrow._y = -500;
_root.attachMovie("option", "option", 19901);
option._x = 300;
option._y = 215;
if (mainSound) {
option.of.gotoAndStop(2);
} else {
option.o.gotoAndStop(2);
}
if (quality) {
option.l.gotoAndStop(2);
} else {
option.h.gotoAndStop(2);
}
};
timer = {};
Frame 71
mouse.hide();
arrow.startDrag();
arrow._x = _xmouse;
arrow._y = _ymouse;
Mouse.removeListener(mouseListener);
mouseListener = new Object();
mouseListener.onMouseMove = function () {
updateAfterEvent();
var _local3 = _xmouse - (ground.bally._x + 275);
var _local2 = _ymouse - (ground.bally._y + 60);
var _local1 = Math.atan2(_local2, _local3);
_local1 = _local1 * 57.2957795130823;
if ((_local1 < 90) && (_local1 > 0)) {
world.char.dir = 1;
_local1 = 30;
if ((world.char.xmov == 0) && (world.char.zmov == 0)) {
world.char.clip.gotoAndStop("sSR");
} else if (!world.char.playingR) {
world.char.playingR = true;
world.char.playingL = false;
world.char.playingD = false;
world.char.playingU = false;
world.char.clip.gotoAndPlay("wR");
}
} else if ((_local1 > 90) && (_local1 < 180)) {
world.char.dir = 2;
_local1 = 150;
if ((world.char.xmov == 0) && (world.char.zmov == 0)) {
world.char.clip.gotoAndStop("sSD");
} else if (!world.char.playingD) {
world.char.playingR = false;
world.char.playingL = false;
world.char.playingD = true;
world.char.playingU = false;
world.char.clip.gotoAndPlay("wD");
}
} else if ((_local1 > -180) && (_local1 < -90)) {
world.char.dir = 3;
_local1 = 220;
if ((world.char.xmov == 0) && (world.char.zmov == 0)) {
world.char.clip.gotoAndStop("sSL");
} else if (!world.char.playingL) {
world.char.playingR = false;
world.char.playingL = true;
world.char.playingD = false;
world.char.playingU = false;
world.char.clip.gotoAndPlay("wL");
}
} else {
world.char.dir = 4;
_local1 = 335;
if ((world.char.xmov == 0) && (world.char.zmov == 0)) {
world.char.clip.gotoAndStop("sSU");
} else if (!world.char.playingU) {
world.char.playingR = false;
world.char.playingL = false;
world.char.playingD = false;
world.char.playingU = true;
world.char.clip.gotoAndPlay("wU");
}
}
arrow._rotation = _local1;
};
mouseListener.onMouseDown = function () {
mousePressed();
};
mouseListener.onMouseUp = function () {
world.char.mousePushed = false;
};
Mouse.addListener(mouseListener);
if (!world.char.splash) {
timer.seconds = world.map[0][0][5];
timer.MTUpdate = 0;
timer.minute = world.map[0][0][4];
info.time.text = (timer.minute + ":") + timer.seconds;
info.health.gotoAndStop(3);
info.fish.text = world.char.fish;
titleVisible = true;
if ((world.level == 1) && (world.char.lives >= 4)) {
mouse.show();
arrow.stopDrag();
arrow._x = -500;
arrow._y = -500;
attachMovie("level1Help", "rg", 9000);
rg.go.onRelease = function () {
var _local1 = _root;
mouse.hide();
_local1.arrow.startDrag();
_local1.arrow._x = _xmouse;
_local1.arrow._y = _ymouse;
_local1.titleVisible = false;
_local1.world.inter = setInterval(_local1.time, 1000);
_local1.rg.removeMovieClip();
};
} else {
attachMovie("ready&Go", "rg", 9000);
}
rg._x = 275;
rg._y = 200;
rg.level.text = world.level;
} else {
world.char.splash = false;
}
info.lives.gotoAndStop(world.char.lives);
ambience();
_root.onEnterFrame = function () {
if (!titleVisible) {
var _local1 = random(500);
if (_local1 == 255) {
ambience.start();
}
moveSeals();
moveWhale();
if (world.char.mousePushed) {
mousePressed();
} else {
if (world.char.xmov != 0) {
world.char.xmov = world.char.xmov * 0.95;
}
if (world.char.zmov != 0) {
world.char.zmov = world.char.zmov * 0.95;
}
if (((world.char.xmov > 0) && (world.char.xmov < 1)) || ((world.char.xmov < 0) && (world.char.xmov > -1))) {
world.char.xmov = 0;
}
if (((world.char.zmov > 0) && (world.char.zmov < 1)) || ((world.char.zmov < 0) && (world.char.zmov > -1))) {
world.char.zmov = 0;
}
if ((world.char.xmov == 0) && (world.char.zmov == 0)) {
world.char.playingR = false;
world.char.playingL = false;
world.char.playingU = false;
world.char.playingD = false;
}
}
detectObjects();
if (world.char.xmov > 20) {
world.char.xmov = 20;
}
if (world.char.xmov < -20) {
world.char.xmov = -20;
}
if (world.char.zmov > 20) {
world.char.zmov = 20;
}
if (world.char.zmov < -20) {
world.char.zmov = -20;
}
world.char.tempx = world.char.tempx + world.char.xmov;
world.char.tempz = world.char.tempz - world.char.zmov;
positionCharacter();
info.score.text = world.char.score + world.char.pETL;
}
};
stop();
Frame 72
var h = 1;
while (h < 15) {
var g = 1;
while (g < 15) {
world.char.fishCaught[g][h] = 0;
g++;
}
h++;
}
clearInterval(world.inter);
mouse.show();
arrow.stopDrag();
arrow._x = -500;
arrow._y = -500;
titleVisible = true;
_root.attachMovie("menu", "m", 18000);
m._x = 270;
m._y = 210;
var countTime = 0;
var count = 0;
var tempScore = world.char.score;
world.char.score = world.char.score + (((timer.seconds + (timer.minute * 60)) * 2) + world.char.pETL);
if (world.level == 5) {
world.levelIndex = 0;
loadMovieNum ("http://media.gamerival.com/games/maps6-10.swf", 1);
}
if (world.level == 10) {
world.levelIndex = 0;
loadMovieNum ("http://media.gamerival.com/games/maps11-15.swf", 1);
}
if (world.level == 15) {
world.levelIndex = 0;
loadMovieNum ("http://media.gamerival.com/games/maps16-20.swf", 1);
}
if (world.level == 20) {
world.levelIndex = 0;
loadMovieNum ("http://media.gamerival.com/games/maps21-25.swf", 1);
}
if (world.char.score >= world.char.nextLife) {
world.char.lives++;
info.lives.life.text = "x" + world.char.lives;
world.char.nextLife = world.char.nextLife + 15000;
}
_root.onEnterFrame = function () {
if ((m._currentFrame == 33) && (countTime == 0)) {
m.level.text = world.level;
m.level1.text = world.level;
m.time.text = timer.seconds;
m.score.text = "0";
m.tscore.text = tempScore;
countTime = 1;
if (world.sound) {
_root.score.start(0, 35);
}
count = timer.seconds;
if (timer.minute > 0) {
count = count + (timer.minute * 60);
}
}
if (countTime == 1) {
count--;
if (count == 0) {
countTime = 2;
count = 0;
tempScore = tempScore + 2;
m.tscore.text = tempScore;
m.time.text = count;
} else {
m.time.text = count;
tempScore = tempScore + 2;
m.tscore.text = tempScore;
}
}
if (countTime == 2) {
if (count == world.char.pETL) {
countTime = 3;
count = 0;
score.stop();
} else {
count = count + 10;
var t = 0;
m.score.text = count;
tempScore = tempScore + 10;
m.tscore.text = tempScore;
}
}
};
stop();
Frame 73
function updateWhale() {
var _local3 = penguin._x - whaleW._x;
var _local2 = penguin._y - whaleW._y;
var _local1 = Math.atan2(_local2, _local3);
_local1 = (_local1 * 180) / Math.PI;
if ((_local1 < -90) || (_local1 > 90)) {
if (whaleW.dir == 1) {
whaleW.gotoAndPlay("l");
whaleW.dir = 0;
}
} else if (whaleW.dir == 0) {
whaleW.gotoAndPlay("r");
whaleW.dir = 1;
}
whaleW._rotation = _local1;
_local1 = (_local1 * Math.PI) / 180;
whaleW._x = whaleW._x + (whaleW.speed * Math.cos(_local1));
whaleW._y = whaleW._y + (whaleW.speed * Math.sin(_local1));
whaleW.speed = whaleW.speed + 0.1;
if (whaleW.speed > whaleW.topSpeed) {
whaleW.speed = whaleW.topSpeed;
}
}
function updateWhale2() {
var _local3 = penguin._x - whaleX._x;
var _local2 = penguin._y - whaleX._y;
var _local1 = Math.atan2(_local2, _local3);
_local1 = (_local1 * 180) / Math.PI;
if ((_local1 < -90) || (_local1 > 90)) {
if (whaleX.dir == 1) {
whaleX.gotoAndPlay("l");
whaleX.dir = 0;
}
} else if (whaleX.dir == 0) {
whaleX.gotoAndPlay("r");
whaleX.dir = 1;
}
whaleX._rotation = _local1;
_local1 = (_local1 * Math.PI) / 180;
whaleX._x = whaleX._x + (whaleX.speed * Math.cos(_local1));
whaleX._y = whaleX._y + (whaleX.speed * Math.sin(_local1));
whaleX.speed = whaleX.speed + 0.1;
if (whaleX.speed > whaleX.topSpeed) {
whaleX.speed = whaleX.topSpeed;
}
}
function mouseDowner() {
var _local1 = penguin._rotation;
_local1 = (_local1 * Math.PI) / 180;
penguin._x = penguin._x + (penguin.speed * Math.cos(_local1));
penguin._y = penguin._y + (penguin.speed * Math.sin(_local1));
penguin.speed = penguin.speed + 0.1;
}
function mouseUpper() {
if (penguin.speed > 0.1) {
var _local1 = penguin._rotation;
_local1 = (_local1 * Math.PI) / 180;
penguin._x = penguin._x + (penguin.speed * Math.cos(_local1));
penguin._y = penguin._y + (penguin.speed * Math.sin(_local1));
penguin.speed = penguin.speed - 0.15;
if (penguin.speed < 0.1) {
penguin.speed = 0.1;
}
}
}
Mouse.removeListener(mouseListener);
mouseListener = new Object();
mouseListener.onMouseMove = function () {
updateAfterEvent();
var _local3 = _root._xmouse - penguin._x;
var _local2 = _root._ymouse - penguin._y;
var _local1 = Math.atan2(_local2, _local3);
_local1 = (_local1 * 180) / Math.PI;
penguin._rotation = _local1;
arrow2._rotation = _local1;
if ((_local1 < -90) || (_local1 > 90)) {
if (penguin.dir == 1) {
penguin.gotoAndPlay("l");
penguin.dir = 0;
}
} else if (penguin.dir == 0) {
penguin.gotoAndPlay("r");
penguin.dir = 1;
}
};
mouseListener.onMouseDown = function () {
mouseDowner();
penguin.md = true;
};
mouseListener.onMouseUp = function () {
penguin.md = false;
};
Mouse.addListener(mouseListener);
ground._x = -500;
ground._y = -500;
titleVisible = true;
_root.attachMovie("penguinW", "penguin", 500);
penguin._x = 50;
penguin._y = 350;
penguin.dir = 1;
penguin.speed = 0.1;
_root.attachMovie("whaleW", "whaleW", 502);
whaleW._x = 560;
whaleW._y = 70;
whaleW._xscale = 135;
whaleW._yscale = 135;
whaleW.speed = 0.1;
if (world.level < 5) {
whaleW.topSpeed = 2.8;
} else if (world.level < 7) {
whaleW.topSpeed = 3.2;
} else if (world.level < 12) {
whaleW.topSpeed = 3.7;
} else if (world.level < 30) {
whaleW.topSpeed = 3.3;
}
whaleW.dir = 1;
if (world.level > 12) {
_root.attachMovie("whaleW", "whaleX", 503);
whaleX._x = 10;
whaleX._y = 70;
whaleX._xscale = 135;
whaleX._yscale = 135;
whaleX.speed = 0.1;
whaleX.topSpeed = 3.7;
whaleX.dir = 1;
}
arrow.removeMovieClip();
_root.attachMovie("arrow2", "arrow2", 20001);
arrow2.startDrag(lockCenter);
arrow2._x = _xmouse;
arrow2._y = _ymouse;
if (world.sound) {
jaws.start(0, 50);
}
world.char.inWater = true;
safeTP = true;
if (!world.char.beenInWater) {
clearInterval(world.inter);
var xdiff = (penguin._x - whaleW._x);
var ydiff = (penguin._y - whaleW._y);
var angle = Math.atan2(ydiff, xdiff);
angle = (angle * 180) / Math.PI;
if ((angle < -90) || (angle > 90)) {
if (whaleW.dir == 1) {
whaleW.gotoAndPlay("l");
whaleW.dir = 0;
}
} else if (whaleW.dir == 0) {
whaleW.gotoAndPlay("r");
whaleW.dir = 1;
}
whaleW._rotation = angle;
safeTP = false;
mouse.show();
arrow2.stopDrag();
arrow2._x = -500;
arrow2._y = -500;
attachMovie("waterHelp", "rg", 9000);
rg._x = 275;
rg._y = 200;
rg.go.onRelease = function () {
var _local1 = _root;
mouse.hide();
_local1.arrow2.startDrag();
_local1.arrow2._x = _xmouse;
_local1.arrow2._y = _ymouse;
_local1.safeTP = true;
_local1.world.inter = setInterval(_local1.time, 1000);
_local1.world.char.beenInWater = true;
_local1.rg.removeMovieClip();
};
}
_root.onEnterFrame = function () {
var _local2 = _root;
if (safeTP) {
updateWhale();
if (world.level > 12) {
updateWhale2();
if (whaleX.hitter.hitTest(penguin.hitter)) {
world.char.inWater = false;
arrow2.removeMovieClip();
_local2.attachMovie("arrow", "arrow", 20001);
arrow.startDrag(lockCenter);
arrow._x = _xmouse;
arrow._y = _ymouse;
penguin.removeMovieClip();
whaleW.removeMovieClip();
whaleX.removeMovieClip();
jaws.stop();
if (world.sound) {
crunch.start();
}
fellInWater();
if (world.char.lives > 0) {
gotoAndPlay (71);
}
}
}
if (penguin.md) {
mouseDowner();
} else {
mouseUpper();
}
if (penguin.speed > 5) {
penguin.speed = 5;
}
if (penguin._x < 20) {
penguin._x = 20;
} else if (penguin._x > 530) {
penguin._x = 530;
}
if (penguin._y < 15) {
penguin._y = 15;
} else if (penguin._y > 390) {
penguin._y = 390;
}
if (penguin.hitTest(arrow3)) {
world.char.inWater = false;
arrow2.removeMovieClip();
_local2.attachMovie("arrow", "arrow", 20001);
arrow.startDrag(lockCenter);
arrow._x = _xmouse;
arrow._y = _ymouse;
ground.attachMovie("ball", "bally", 138);
world.char.tempx = 30;
world.char.tempy = 0;
world.char.tempz = -30;
world.char.xmov = 0;
world.char.zmov = 0;
world.char.x = world.char.tempx;
world.char.y = world.char.tempy;
world.char.z = world.char.tempz;
var _local1 = iso.mapToScreen(world.char.x, world.char.y, world.char.z);
world.char.clip._x = _local1[0];
world.char.clip._y = _local1[1];
penguin.removeMovieClip();
whaleW.removeMovieClip();
whaleX.removeMovieClip();
ground._x = 275;
ground._y = 68;
titleVisible = false;
world.char.splash = true;
world.char.mousePushed = false;
jaws.stop();
gotoAndPlay (71);
}
if (whaleW.hitter.hitTest(penguin.hitter)) {
world.char.inWater = false;
arrow2.removeMovieClip();
_local2.attachMovie("arrow", "arrow", 20001);
arrow.startDrag(lockCenter);
arrow._x = _xmouse;
arrow._y = _ymouse;
penguin.removeMovieClip();
whaleW.removeMovieClip();
whaleX.removeMovieClip();
jaws.stop();
if (world.sound) {
crunch.start();
}
fellInWater();
if (world.char.lives > 0) {
gotoAndPlay (71);
}
}
}
};
stop();
Frame 74
info.removemovieclip();
world.char.score = world.char.score + world.char.pETL;
score = world.char.score;
gcode = _level0.gcode;
if (score == 0) {
score = 5;
}
_root.score = score;
_root.gameover = 1;
stop();
Frame 75
mainPen.gotoandstop("sSD");
var myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"244", ga:"0", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
var k = 1;
while (k < 4) {
var myColor = new Color(_root["p" + k].scarf);
myColor.setTransform(myColorTransform);
k++;
}
delete eval (myColor);
delete eval (myColorTransform);
var myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"0", ga:"100", gb:"244", ba:"0", bb:"90", aa:"100", ab:"0"};
var k = 4;
while (k < 7) {
var myColor = new Color(_root["p" + k].scarf);
myColor.setTransform(myColorTransform);
k++;
}
delete eval (myColor);
delete eval (myColorTransform);
var myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"220", ga:"100", gb:"244", ba:"0", bb:"0", aa:"100", ab:"0"};
var k = 7;
while (k < 10) {
var myColor = new Color(_root["p" + k].scarf);
myColor.setTransform(myColorTransform);
k++;
}
delete eval (myColor);
delete eval (myColorTransform);
var bubbles = 1;
cheer = new Sound();
cheer.attachSound("cheer");
cheer.start();
world.char.score = world.char.score + world.char.pETL;
score = world.char.score;
gcode = _level0.gcode;
if (score == 0) {
score = 5;
}
_root.score = score;
_root.gameover = 1;
stop();
Symbol 18 MovieClip [bouncer] Frame 1
stop();
Symbol 18 MovieClip [bouncer] Frame 7
gotoAndStop (1);
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
stop();
Symbol 24 MovieClip Frame 3
stop();
Symbol 24 MovieClip Frame 4
stop();
Symbol 24 MovieClip Frame 5
stop();
Symbol 24 MovieClip Frame 6
stop();
Symbol 24 MovieClip Frame 7
stop();
Symbol 24 MovieClip Frame 8
stop();
Symbol 24 MovieClip Frame 9
stop();
Symbol 24 MovieClip Frame 10
stop();
Symbol 24 MovieClip Frame 11
stop();
Symbol 24 MovieClip Frame 12
stop();
Symbol 24 MovieClip Frame 13
stop();
Symbol 24 MovieClip Frame 14
stop();
Symbol 24 MovieClip Frame 15
stop();
Symbol 24 MovieClip Frame 16
stop();
Symbol 24 MovieClip Frame 17
stop();
Symbol 24 MovieClip Frame 18
stop();
Symbol 24 MovieClip Frame 19
stop();
Symbol 24 MovieClip Frame 20
stop();
Symbol 24 MovieClip Frame 21
stop();
Symbol 24 MovieClip Frame 22
stop();
Symbol 24 MovieClip Frame 23
stop();
Symbol 24 MovieClip Frame 24
stop();
Symbol 24 MovieClip Frame 25
stop();
Symbol 24 MovieClip Frame 26
stop();
Symbol 24 MovieClip Frame 27
stop();
Symbol 24 MovieClip Frame 28
stop();
Symbol 24 MovieClip Frame 29
stop();
Symbol 24 MovieClip Frame 30
stop();
Symbol 24 MovieClip Frame 31
stop();
Symbol 24 MovieClip Frame 32
stop();
Symbol 24 MovieClip Frame 33
stop();
Symbol 24 MovieClip Frame 34
stop();
Symbol 24 MovieClip Frame 35
stop();
Symbol 24 MovieClip Frame 36
stop();
Symbol 24 MovieClip Frame 37
stop();
Symbol 24 MovieClip Frame 38
stop();
Symbol 24 MovieClip Frame 39
stop();
Symbol 24 MovieClip Frame 40
stop();
Symbol 24 MovieClip Frame 41
stop();
Symbol 24 MovieClip Frame 42
stop();
Symbol 24 MovieClip Frame 43
stop();
Symbol 24 MovieClip Frame 44
stop();
Symbol 24 MovieClip Frame 45
stop();
Symbol 24 MovieClip Frame 46
stop();
Symbol 24 MovieClip Frame 47
stop();
Symbol 24 MovieClip Frame 48
stop();
Symbol 24 MovieClip Frame 49
stop();
Symbol 24 MovieClip Frame 50
stop();
Symbol 24 MovieClip Frame 51
stop();
Symbol 24 MovieClip Frame 52
stop();
Symbol 24 MovieClip Frame 53
stop();
Symbol 24 MovieClip Frame 54
stop();
Symbol 24 MovieClip Frame 55
stop();
Symbol 24 MovieClip Frame 56
stop();
Symbol 24 MovieClip Frame 57
stop();
Symbol 24 MovieClip Frame 58
stop();
Symbol 24 MovieClip Frame 59
stop();
Symbol 24 MovieClip Frame 60
stop();
Symbol 24 MovieClip Frame 61
stop();
Symbol 24 MovieClip Frame 62
stop();
Symbol 24 MovieClip Frame 63
stop();
Symbol 24 MovieClip Frame 64
stop();
Symbol 24 MovieClip Frame 65
stop();
Symbol 24 MovieClip Frame 66
stop();
Symbol 24 MovieClip Frame 67
stop();
Symbol 24 MovieClip Frame 68
stop();
Symbol 24 MovieClip Frame 69
stop();
Symbol 24 MovieClip Frame 70
stop();
Symbol 24 MovieClip Frame 71
stop();
Symbol 24 MovieClip Frame 72
stop();
Symbol 24 MovieClip Frame 73
stop();
Symbol 24 MovieClip Frame 74
stop();
Symbol 24 MovieClip Frame 75
stop();
Symbol 24 MovieClip Frame 76
stop();
Symbol 24 MovieClip Frame 77
stop();
Symbol 24 MovieClip Frame 78
stop();
Symbol 24 MovieClip Frame 79
stop();
Symbol 24 MovieClip Frame 80
stop();
Symbol 24 MovieClip Frame 81
stop();
Symbol 24 MovieClip Frame 82
stop();
Symbol 24 MovieClip Frame 83
stop();
Symbol 24 MovieClip Frame 84
stop();
Symbol 24 MovieClip Frame 85
stop();
Symbol 24 MovieClip Frame 86
stop();
Symbol 24 MovieClip Frame 87
stop();
Symbol 24 MovieClip Frame 88
stop();
Symbol 24 MovieClip Frame 89
stop();
Symbol 24 MovieClip Frame 90
stop();
Symbol 24 MovieClip Frame 91
stop();
Symbol 24 MovieClip Frame 92
stop();
Symbol 24 MovieClip Frame 93
stop();
Symbol 24 MovieClip Frame 94
stop();
Symbol 24 MovieClip Frame 95
stop();
Symbol 24 MovieClip Frame 96
stop();
Symbol 24 MovieClip Frame 97
stop();
Symbol 24 MovieClip Frame 98
stop();
Symbol 24 MovieClip Frame 99
stop();
Symbol 24 MovieClip Frame 100
stop();
Symbol 24 MovieClip Frame 101
stop();
Symbol 24 MovieClip Frame 102
stop();
Symbol 24 MovieClip Frame 103
stop();
Symbol 24 MovieClip Frame 104
stop();
Symbol 24 MovieClip Frame 105
stop();
Symbol 24 MovieClip Frame 106
stop();
Symbol 24 MovieClip Frame 107
stop();
Symbol 24 MovieClip Frame 108
stop();
Symbol 24 MovieClip Frame 109
stop();
Symbol 24 MovieClip Frame 110
stop();
Symbol 24 MovieClip Frame 111
stop();
Symbol 24 MovieClip Frame 112
stop();
Symbol 24 MovieClip Frame 113
stop();
Symbol 24 MovieClip Frame 114
stop();
Symbol 24 MovieClip Frame 115
stop();
Symbol 24 MovieClip Frame 116
stop();
Symbol 24 MovieClip Frame 117
stop();
Symbol 24 MovieClip Frame 118
stop();
Symbol 24 MovieClip Frame 119
stop();
Symbol 24 MovieClip Frame 120
stop();
Symbol 24 MovieClip Frame 121
stop();
Symbol 24 MovieClip Frame 122
stop();
Symbol 24 MovieClip Frame 123
stop();
Symbol 24 MovieClip Frame 124
stop();
Symbol 24 MovieClip Frame 125
stop();
Symbol 24 MovieClip Frame 126
stop();
Symbol 24 MovieClip Frame 127
stop();
Symbol 24 MovieClip Frame 128
stop();
Symbol 24 MovieClip Frame 129
stop();
Symbol 24 MovieClip Frame 130
stop();
Symbol 24 MovieClip Frame 131
stop();
Symbol 24 MovieClip Frame 132
stop();
Symbol 24 MovieClip Frame 133
stop();
Symbol 24 MovieClip Frame 134
stop();
Symbol 24 MovieClip Frame 135
stop();
Symbol 24 MovieClip Frame 136
stop();
Symbol 24 MovieClip Frame 137
stop();
Symbol 24 MovieClip Frame 138
stop();
Symbol 24 MovieClip Frame 139
stop();
Symbol 24 MovieClip Frame 140
stop();
Symbol 24 MovieClip Frame 141
stop();
Symbol 24 MovieClip Frame 142
stop();
Symbol 24 MovieClip Frame 143
stop();
Symbol 24 MovieClip Frame 144
stop();
Symbol 24 MovieClip Frame 145
stop();
Symbol 190 MovieClip Frame 5
stop();
Symbol 190 MovieClip Frame 10
stop();
Symbol 23 MovieClip [tile] Frame 1
stop();
Symbol 23 MovieClip [tile] Frame 2
stop();
Symbol 23 MovieClip [tile] Frame 3
stop();
Symbol 23 MovieClip [tile] Frame 4
stop();
Symbol 23 MovieClip [tile] Frame 5
stop();
Symbol 204 MovieClip [timeUP] Frame 1
go.onRelease = function () {
var _local1 = _root;
_local1.world.inter = setInterval(_local1.time, 1000);
_local1.arrow.startDrag();
_local1.arrow._x = _local1._xmouse;
_local1.arrow._y = _local1._ymouse;
mouse.hide();
_local1.world.char.timeUP = false;
_local1.titleVisible = false;
_local1.rg.removeMovieClip();
};
Symbol 214 MovieClip [ready&Go] Frame 60
_root.titleVisible = false;
_root.world.inter = setInterval(_root.time, 1000);
_root.rg.removeMovieClip();
Symbol 224 MovieClip [seal] Frame 7
gotoAndPlay ("gr");
Symbol 224 MovieClip [seal] Frame 14
gotoAndPlay ("gD");
Symbol 224 MovieClip [seal] Frame 21
gotoAndPlay ("gL");
Symbol 224 MovieClip [seal] Frame 28
gotoAndPlay ("gU");
Symbol 237 MovieClip [menu] Frame 33
go.onRelease = function () {
_root.score.stop();
gotoAndPlay (34);
};
mL = new Object();
mL.onKeyDown = function () {
if (Key.isDown(32) || (Key.isDown(13))) {
_root.score.stop();
gotoAndPlay (34);
Key.removeListener(mL);
}
};
Key.addListener(mL);
stop();
Symbol 237 MovieClip [menu] Frame 60
_root.ground.removeMovieClip();
_root.world.level++;
_root.world.levelIndex = _root.world.levelIndex + 3;
if ((((_root.world.level == 6) || (_root.world.level == 11)) || (_root.world.level == 16)) || (_root.world.level == 21)) {
_root.world.levelIndex = 0;
}
if (_root.world.level > 25) {
_root.info.removeMovieClip();
clearInterval(_root.world.inter);
_root.ground.removeMovieClip();
_root.playerWon();
this.removeMovieClip();
} else {
var mapThisRound = random(3);
_root.world.map = _root._level1.levels[mapThisRound + _root.world.levelIndex];
_root.attachMovie("ground", "ground", 5000);
_root.ground._x = 275;
_root.ground._y = 68;
var temp = _root.iso.mapToScreen(15, 0, -15);
_root.ground.attachMovie("gr", "gr", 130);
_root.ground.gr._x = temp[0];
_root.ground.gr._y = temp[1];
_root.ground.attachMovie("ball", "bally", 138);
_root.buildCharacterAfterDeath(_root.ground.bally);
_root.buildFloor(_root.ground);
_root.info.lives.gotoAndStop(world.char.lives);
_root.info.time.text = "1:30";
_root.info.score.text = _root.world.char.score;
_root.changeFrames();
_root.world.char.pETL = 0;
_root.timer.minute = 1;
_root.timer.endTime = getTimer() + 30000;
_root.world.char.bonus = false;
this.removeMovieClip();
}
stop();
Symbol 255 MovieClip [splashIT] Frame 7
_root.chngFrame();
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 2
stop();
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 2
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
stop();
Symbol 262 MovieClip [option] Frame 1
h.onRelease = function () {
_quality = "HIGH";
_root.quality = true;
h.gotoAndStop(1);
l.gotoAndStop(2);
};
l.onRelease = function () {
_quality = "LOW";
_root.quality = false;
h.gotoAndStop(2);
l.gotoAndStop(1);
};
o.onRelease = function () {
var _local1 = _root;
if (_local1.titleVisible) {
_local1.world.sound = true;
} else {
_local1.music.stop();
_local1.music.start(0, 99);
}
_local1.mainSound = true;
o.gotoAndStop(1);
of.gotoAndStop(2);
};
of.onRelease = function () {
var _local1 = _root;
if (_local1.titleVisible) {
_local1.world.sound = false;
} else {
_local1.music.stop();
}
_local1.mainSound = false;
o.gotoAndStop(2);
of.gotoAndStop(1);
};
done.onRelease = function () {
var _local1 = _root;
if (_local1.titleVisible) {
_local1.world.inter = setInterval(_local1.time, 1000);
mouse.hide();
_local1.arrow.startDrag();
_local1.arrow._x = _local1._xmouse;
_local1.arrow._y = _local1._ymouse;
_local1.titleVisible = false;
}
_local1.option.removeMovieClip();
};
stop();
Symbol 284 MovieClip [pUp2] Frame 1
stop();
Symbol 284 MovieClip [pUp2] Frame 2
stop();
Symbol 284 MovieClip [pUp2] Frame 3
stop();
Symbol 284 MovieClip [pUp2] Frame 4
stop();
Symbol 290 MovieClip [pUp3] Frame 1
stop();
Symbol 290 MovieClip [pUp3] Frame 2
stop();
Symbol 290 MovieClip [pUp3] Frame 3
stop();
Symbol 297 MovieClip [pUp1] Frame 1
stop();
Symbol 297 MovieClip [pUp1] Frame 2
stop();
Symbol 297 MovieClip [pUp1] Frame 3
stop();
Symbol 297 MovieClip [pUp1] Frame 4
stop();
Symbol 297 MovieClip [pUp1] Frame 5
stop();
Symbol 297 MovieClip [pUp1] Frame 6
stop();
Symbol 311 MovieClip [aFin] Frame 7
gotoAndPlay ("gR");
Symbol 311 MovieClip [aFin] Frame 14
gotoAndPlay ("gD");
Symbol 311 MovieClip [aFin] Frame 21
gotoAndPlay ("gL");
Symbol 311 MovieClip [aFin] Frame 28
gotoAndPlay ("gU");
Symbol 328 MovieClip [ball] Frame 1
stop();
Symbol 328 MovieClip [ball] Frame 6
gotoAndPlay ("wR");
Symbol 328 MovieClip [ball] Frame 7
stop();
Symbol 328 MovieClip [ball] Frame 12
gotoAndPlay ("wL");
Symbol 328 MovieClip [ball] Frame 13
stop();
Symbol 328 MovieClip [ball] Frame 18
gotoAndPlay ("wU");
Symbol 328 MovieClip [ball] Frame 19
stop();
Symbol 328 MovieClip [ball] Frame 24
gotoAndPlay ("wD");
Symbol 357 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 2
stop();
Symbol 357 MovieClip Frame 3
stop();
Symbol 364 MovieClip [instruct] Frame 1
done.onRelease = function () {
_root.instruct.removeMovieClip();
};
next.onRelease = function () {
gotoAndStop (2);
};
stop();
Symbol 364 MovieClip [instruct] Frame 2
done.onRelease = function () {
_root.instruct.removeMovieClip();
};
next.onRelease = function () {
gotoAndStop (3);
};
prev.onRelease = function () {
gotoAndStop (1);
};
stop();
Symbol 364 MovieClip [instruct] Frame 3
done.onRelease = function () {
_root.instruct.removeMovieClip();
};
prev.onRelease = function () {
gotoAndStop (2);
};
p1.gotoAndStop(5);
p2.gotoAndStop(2);
p3.gotoAndStop(3);
p4.gotoAndStop(6);
stop();
Symbol 379 MovieClip [penguinW] Frame 4
gotoAndPlay ("r");
Symbol 379 MovieClip [penguinW] Frame 8
gotoAndPlay ("l");
Symbol 388 MovieClip [whaleW] Frame 5
gotoAndPlay ("r");
Symbol 388 MovieClip [whaleW] Frame 10
gotoAndPlay ("l");
Symbol 408 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "antadvent";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype != 2) {
_root.is_a_challenge = 0;
} else {
_root.is_a_challenge = 1;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.score));
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 423 MovieClip Frame 1
stop();
Symbol 423 MovieClip Frame 2
stop();
Symbol 427 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 2
stop();
Symbol 431 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 2
stop();
Symbol 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 2
stop();
Symbol 457 MovieClip Frame 3
stop();
Symbol 457 MovieClip Frame 4
stop();
Symbol 457 MovieClip Frame 5
stop();
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 2
stop();
Symbol 475 MovieClip Frame 3
stop();
Symbol 475 MovieClip Frame 4
stop();
Symbol 501 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 1
h.onRelease = function () {
_quality = "HIGH";
_root.quality = true;
h.gotoAndStop(1);
l.gotoAndStop(2);
};
l.onRelease = function () {
_quality = "LOW";
_root.quality = false;
h.gotoAndStop(2);
l.gotoAndStop(1);
};
o.onRelease = function () {
var _local1 = _root;
if (_local1.titleVisible) {
_local1.world.sound = true;
} else {
_local1.mainSound = true;
_local1.music.stop();
_local1.music.start(0, 99);
}
o.gotoAndStop(1);
of.gotoAndStop(2);
};
of.onRelease = function () {
var _local1 = _root;
if (_local1.titleVisible) {
_local1.world.sound = false;
} else {
_local1.music.stop();
_local1.mainSound = false;
}
o.gotoAndStop(2);
of.gotoAndStop(1);
};
done.onRelease = function () {
var _local1 = _root;
if (_local1.titleVisible) {
_local1.world.inter = setInterval(_local1.time, 1000);
mouse.hide();
_local1.arrow.startDrag();
_local1.arrow._x = _local1._xmouse;
_local1.arrow._y = _local1._ymouse;
_local1.titleVisible = false;
}
_local1.option.removeMovieClip();
};
stop();