Frame 1
_global.write_game_cookie = function (game_id, f1, f2, f3, f4) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
trace((((((((("writing cookie......name : " + game_id) + " ") + f1) + " ") + f2) + " ") + f3) + " ") + f4);
so.data.game_id = game_id;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.flush();
};
_global.read_game_cookie = function (game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
trace("no cookie....");
_level0.f1 = 0;
_level0.f2 = 0;
_level0.f3 = 0;
_level0.f4 = 0;
} else {
trace("cookie....");
result = true;
trace("reading cookie....");
_level0.checker = so.data.game_id;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
}
return(result);
};
_global.game_id = "hi-dive-hero_v2";
var exists = read_game_cookie(game_id);
if (exists == false) {
write_game_cookie(game_id, 0, 0, 0, 0);
}
_global.cookie_best1 = f1;
_global.cookie_best2 = f2;
_global.cookie_best3 = f3;
_global.cookie_best4 = f4;
Frame 2
Stage.showMenu = false;
Stage.scaleMode = "noScale";
_quality = "high";
progress.onEnterFrame = function () {
total = getBytesTotal();
my_loaded = getBytesLoaded();
if (isNaN(my_loaded) || (isNaN(total))) {
the_perc = 0;
} else {
the_perc = (my_loaded / total) * 100;
}
show.text = Math.round(the_perc) + "%";
progress.bar._xscale = the_perc;
if ((the_perc > 99) && (progress.loaded > -1)) {
gotoAndPlay ("animation");
}
};
if (!beenherebefore) {
_global.codeOfPIKEKey = 88;
_global.codeOfOPENPIKEKey = 67;
_global.codeOfTUCKKey = 86;
_global.codeOfLEFTKey = 37;
_global.codeOfRIGHTKey = 39;
_global.codeOfJUMPKey = 32;
_global.playerName = "Enter Name";
beenherebefore = true;
}
progress.bar._xscale = 0;
_global.sex = true;
_global.AudioPlaying = true;
stop();
Frame 10
Frame 182
who_to.text = "v.1.1.255";
intructions.onRelease = function () {
gotoAndPlay ("intructions");
};
playGame.onRelease = function () {
gotoAndPlay ("playGame");
};
game_cookie.l1.text = (game_cookie.l1_s.text = cookie_best1);
game_cookie.l2.text = (game_cookie.l2_s.text = cookie_best2);
game_cookie.l3.text = (game_cookie.l3_s.text = cookie_best3);
game_cookie.l4.text = (game_cookie.l4_s.text = cookie_best4);
game_cookie._x = 5;
stop();
sfx.onPress = function () {
if (sfx._currentframe == 1) {
sfx.gotoAndStop(2);
_global.AudioPlaying = false;
game.currentsound.setVolume(0);
} else {
sfx.gotoAndStop(1);
_global.AudioPlaying = true;
game.currentsound.setVolume(77);
}
};
if (_global.AudioPlaying == true) {
sfx.gotoAndStop(1);
game.currentsound.setVolume(77);
} else {
sfx.gotoAndStop(2);
game.currentsound.setVolume(0);
}
sfx.onRollOver = function () {
sfx.theBut.gotoAndStop(2);
};
sfx.onRollOut = (sfx.onReleaseOutside = function () {
sfx.theBut.gotoAndStop(1);
});
function showSex() {
if (_global.sex) {
sesso.gotoAndStop(1);
} else {
sesso.gotoAndStop(2);
}
}
sesso.onPress = function () {
_global.sex = !_global.sex;
showSex();
};
showSex();
sesso.onRollOver = function () {
sesso.theBut.gotoAndStop(2);
};
sesso.onRollOut = (sesso.onReleaseOutside = function () {
sesso.theBut.gotoAndStop(1);
});
function spaceIsPressed() {
trace("space key pressed");
_root.gotoAndPlay("instructions");
}
Instance of Symbol 237 MovieClip in Frame 182
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.spaceIsPressed();
}
}
Frame 183
game_cookie._x = -140;
Frame 185
back.onRelease = function () {
gotoAndPlay ("welcome");
};
playGame.onRelease = function () {
gotoAndPlay ("playGame");
};
stop();
function spaceIsPressed() {
trace("space key pressed");
_root.gotoAndPlay("playGame");
}
Instance of Symbol 237 MovieClip in Frame 185
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.spaceIsPressed();
}
}
Frame 186
game_cookie._x = -140;
Frame 188
function setTheVolume() {
if (_global.AudioPlaying == true) {
sfx.gotoAndStop(1);
game.currentsound.setVolume(77);
} else {
sfx.gotoAndStop(2);
game.currentsound.setVolume(0);
}
}
sfx.onPress = function () {
if (sfx._currentframe == 1) {
_global.AudioPlaying = false;
setTheVolume();
} else {
_global.AudioPlaying = true;
setTheVolume();
}
};
sfx.onRollOver = function () {
sfx.theBut.gotoAndStop(2);
};
sfx.onRollOut = (sfx.onReleaseOutside = function () {
sfx.theBut.gotoAndStop(1);
});
function showInfo() {
if (_global.infoShowing == true) {
info.gotoAndStop(1);
_root.game_state.infoMask._height = 100;
} else {
info.gotoAndStop(2);
_root.game_state.infoMask._height = 10;
}
}
if (_global.AudioPlaying == true) {
sfx.gotoAndStop(1);
} else {
sfx.gotoAndStop(2);
}
info.onPress = function () {
_global.infoShowing = !_global.infoShowing;
showInfo();
};
showInfo();
function spaceIsPressed() {
game_state.whachugondoonar();
}
function buildMap(level) {
trace("========");
trace("LEVEL: " + level);
trace("========");
game.clip = _root.game_stuff;
game.clip.setMask(_root.the_mask);
game.clipMin = 0;
game.clipMax = -3600;
game.clip._x = 0;
game.clip._y = game.clipMax;
game.counter = 0;
game.clip.attachMovie("map", "map", 11000);
var _local4 = colours[game.level][0];
var _local8 = new Color(game.clip.map.scene.colz0);
_local8.setRGB(_local4);
var _local3 = colours[game.level][1];
var _local7 = new Color(game.clip.map.scene.colz1);
_local7.setRGB(_local3);
game.clip.attachMovie("bg", "bg", 10000);
game.bgclip = game.clip.bg;
game.bgclip._x = (-game.clip._x) / 2;
game.bgclip._y = (-game.clip._y) / 2;
game.boardhite = game.clip.map["board" + level]._y;
trace("board hite: " + game.boardhite);
game.waterhite = game.clip.map.water._y + 175;
game.clip.attachMovie("water", "waterline", 13000);
game.clip.waterline._y = game.waterhite - 175;
if (_global.sex) {
hero.sex = "M";
} else {
hero.sex = "F";
}
game.clip.attachMovie("hero_jump" + hero.sex, "hero", 12000);
hero.active = false;
hero.clip = game.clip.hero;
hero.startxpos = (hero.xpos = 250);
hero.startypos = (hero.ypos = game.boardhite - 10);
hero.divePos = 1;
hero.oldPosition = 0;
hero.inPosition = false;
hero.rePosition = false;
hero.allowMove = false;
hero.bounce = null;
hero.bouncing = false;
hero.bouncespeed = 0;
hero[("lev" + level) + "Score"] = 0;
game.pointcount = 0;
game.divFact = 0;
game.divFin = null;
hero.dirRot = 0;
hero.actRot = 0;
hero.desRot = 0;
hero.scorRotL = (hero.scorRotR = null);
hero.scoreMult = 0;
hero.el1 = (hero.el2 = (hero.el3 = (hero.el4 = (hero.el5 = 0))));
hero.clip._x = hero.xpos;
hero.clip._y = hero.ypos;
game.stage = 0;
game.diveStage = 20;
game.diveOver = 22;
var _local6 = 1;
game_state._x = (_local6 - 1) * -600;
game.paused = true;
game.levelCompleted = false;
setControls();
score.gotoAndStop(hero.score + 1);
game_state.whachugondoonar = null;
game.currentsound = _root.nada;
setTheVolume();
}
function numSort(first, second) {
var _local2 = Number(first);
var _local1 = Number(second);
if (_local2 < _local1) {
return(1);
}
if (_local2 > _local1) {
return(-1);
}
return(0);
}
function stageControl() {
switch (game.stage) {
case 0 :
game.counter++;
if (game.counter > 20) {
game.paused = false;
game.counter = 0;
hero.SpeedofChange = 4;
game.stage = 1;
}
break;
case 1 :
if (hero.canJump) {
game.counter++;
if (game.counter > 50) {
var _local22 = 2;
game_state._x = (_local22 - 1) * -600;
game.counter = 0;
game.stage = 2;
}
}
break;
case 2 :
hero.divePos = 2;
game.jump = false;
if (hero.inPosition) {
game.stage = 3;
}
break;
case 3 :
if (game.jump) {
game.stage = 4;
}
break;
case 4 :
game.currentsound = _root.boing1;
game.currentsound.start();
hero.divePos = 3;
hero.jumpspeed = -hero.jumptotal;
hero.jumping = true;
game.stage = 5;
break;
case 5 :
if (hero.yspeed > 2) {
hero.divePos = 4;
hero.bouncespeed = 0;
} else if ((hero.yspeed == 0) && (hero.canJump)) {
game.currentsound = _root.bounce1;
game.currentsound.start();
game.divFin = (game.divFact = 0);
game.stage = 6;
}
break;
case 6 :
hero.divePos = 2;
game.divFact++;
var _local8 = hero.bounce / game.divFact;
if (_local8 < 0.5) {
game.stage = 7;
game.divFact = 26;
} else {
hero.bouncespeed = _local8;
}
if (game.jump) {
hero.divePos = 3;
hero.jumpspeed = -hero.jumptotal;
hero.jumping = true;
addStar(5, 25, 1, hero.xpos + 75, game.boardhite);
game.stage = 10;
}
break;
case 7 :
game.divFact--;
var _local4 = hero.bounce / game.divFact;
if (_local4 > hero.jumptotal) {
_local4 = hero.jumptotal;
} else if (_local4 < 0) {
_local4 = 0;
}
game.divFin = _local4;
if (game.divFact <= 1) {
game.stage = 8;
} else {
hero.bouncespeed = -_local4;
}
if (game.jump) {
trace("***1");
game.stage = 9;
}
break;
case 8 :
game.currentsound = _root.boing2b;
game.currentsound.start();
hero.divePos = 3;
hero.jumpspeed = (-hero.jumptotal) * 0.9;
hero.jumping = true;
addStar(0, 25, 1, hero.xpos + 75, game.boardhite);
game.stage = 10;
break;
case 9 :
game.currentsound = _root.boing202;
game.currentsound.start();
hero.divePos = 3;
hero.jumpspeed = (-hero.jumptotal) * 0.9;
var _local6 = game.divFin * hero.bounce;
if (_local6 > 6) {
_local6 = 6;
}
hero.jumpspeed = hero.jumpspeed - (_local6 / 2);
trace(_local6 + " bounce");
trace(hero.jumpspeed + " jumpspeed");
hero.jumping = true;
var _local5 = Math.round(13 + ((game.divFin / hero.bounce) * 13));
addStar(_local5, 25, 1, hero.xpos + 75, game.boardhite);
game.stage = 10;
break;
case 10 :
if (hero.yspeed > 2) {
hero.divePos = 4;
hero.bouncespeed = 0;
} else if ((hero.yspeed == 0) && (hero.canJump)) {
game.currentsound = _root.bounce2;
game.currentsound.start();
game.divFin = (game.divFact = 0);
game.stage = 16;
}
break;
case 16 :
hero.divePos = 2;
game.divFact++;
_local8 = hero.bounce / game.divFact;
if (_local8 < 0.5) {
game.divFact = 26;
game.stage = 17;
} else {
hero.bouncespeed = _local8;
}
if (game.jump) {
game.clip.attachMovie("hero_dive" + hero.sex, "hero", 12000);
setHeroPositions(5);
hero.xpos = hero.xpos + 2;
hero.ypos = hero.ypos - 74;
hero.actRot = 37;
hero.scorRotL = 0;
hero.scorRotR = 180;
hero.jumpspeed = -hero.jumptotal;
hero.jumpxspeed = hero.jumptotal;
hero.jumping = true;
addStar(5, 50, 1, hero.xpos + 120, game.boardhite);
game.stage = 20;
}
break;
case 17 :
_local4 = hero.bounce / game.divFact;
if (_local4 > hero.jumptotal) {
_local4 = hero.jumptotal;
} else if (_local4 < 0) {
_local4 = 0;
}
game.divFin = _local4;
if (game.divFact <= 1) {
trace(hero.bounce + "<=== jumpfail2");
game.stage = 18;
} else {
hero.bouncespeed = -_local4;
}
if (game.jump) {
trace("***2");
game.stage = 19;
}
game.divFact--;
break;
case 18 :
game.currentsound = _root.boing3b;
game.currentsound.start();
game.clip.attachMovie("hero_dive" + hero.sex, "hero", 12000);
setHeroPositions(5);
hero.divePos = 5;
hero.xpos = hero.xpos + 2;
hero.ypos = hero.ypos - 74;
hero.actRot = 37;
hero.scorRotL = 0;
hero.scorRotR = 180;
hero.jumpspeed = (-hero.jumptotal) * 0.8;
hero.jumpxspeed = (-hero.jumpspeed) * 1.2;
hero.jumping = true;
addStar(0, 50, 1, hero.xpos + 120, game.boardhite);
hero.scoreMult = hero[("lev" + game.level) + "Score"] / 50;
game.counter = 0;
game.stage = 20;
break;
case 19 :
game.currentsound = _root.boing3a;
game.currentsound.start();
game.clip.attachMovie("hero_dive" + hero.sex, "hero", 12000);
setHeroPositions(5);
hero.divePos = 5;
hero.xpos = hero.xpos + 2;
hero.ypos = hero.ypos - 74;
hero.actRot = 37;
hero.scorRotL = 0;
hero.scorRotR = 180;
hero.jumpspeed = (-hero.jumptotal) * 0.8;
_local6 = game.divFin * hero.bounce;
if (_local6 > 7) {
_local6 = 7;
}
hero.jumpspeed = hero.jumpspeed - (_local6 / 2);
trace(_local6 + " bounce");
trace(hero.jumpspeed + " jumpspeed");
hero.jumpxspeed = (-hero.jumpspeed) * 0.89;
hero.jumping = true;
_local5 = 26 + Math.round((game.divFin / hero.bounce) * 25);
addStar(_local5, 50, 1, hero.xpos + 120, game.boardhite);
hero.scoreMult = hero[("lev" + game.level) + "Score"] / 50;
game.counter = 0;
game.stage = 20;
break;
case 20 :
var _local25 = (hero.bounce * 10) + hero.startxpos;
if (hero.xpos < _local25) {
if (hero.ypos <= game.boardhite) {
hero.divePos = 5;
} else {
hero.divePos = 99;
}
hero.SpeedofChange = 6;
hero.actRot = hero.actRot + (6 - (4 * hero.scoreMult));
} else {
hero.SpeedofChange = 4.5;
hero.SpeedofChange = hero.SpeedofChange + hero.scoreMult;
game.clip.map.water.splash._x = hero.xpos;
}
hero.allowMove = true;
if (hero.inPosition) {
if (hero.rePosition && (hero.divePos != 7)) {
addStar(25, 25, 3, hero.xpos + 75, hero.ypos + 75);
hero.rePosition = false;
}
} else {
hero.rePosition = true;
}
if ((hero.dirRot == -1) && (hero.ypos < (game.waterhite - 175))) {
if (hero.actRot < hero.scorRotL) {
addStar(25, 25, 2, hero.xpos + 125, hero.ypos + 30);
hero.scorRotL = hero.scorRotL - 180;
if (hero.scorRotL < (hero.scorRotR - 360)) {
hero.scorRotR = hero.scorRotR - 180;
}
}
} else if ((hero.dirRot == 1) && (hero.ypos < (game.waterhite - 175))) {
if (hero.actRot > hero.scorRotR) {
addStar(25, 25, 2, hero.xpos + 125, hero.ypos + 30);
hero.scorRotR = hero.scorRotR + 180;
if (hero.scorRotR > (hero.scorRotL - 360)) {
hero.scorRotL = hero.scorRotL + 180;
}
}
}
var _local20 = hero.clip._rotation;
var _local16 = _local20 / game.pi_r;
var _local17 = Math.sin(_local16);
var _local18 = Math.cos(_local16);
var _local14 = 85;
var _local9 = _local14 * _local17;
var _local12 = _local14 * _local18;
var _local11 = hero.xpos - _local9;
var _local10 = hero.ypos + _local12;
var _local15 = hero.xpos + _local9;
var _local13 = hero.ypos - _local12;
var _local2 = game.waterhite - 175;
if (game.clip.map.water.splash1._currentframe == 1) {
if (_local13 >= _local2) {
var _local23 = Math.floor(_local13 - _local2);
trace("arm" + _local23);
game.clip.map.water.splash1._x = _local15;
game.clip.waterline.splash1._x = _local15;
game.clip.map.water.splash1.gotoAndStop(_local23);
game.clip.waterline.splash1.gotoAndStop(_local23);
}
} else if (game.clip.map.water.splash1._currentframe < game.clip.map.water.splash1._totalframes) {
var _local23 = (game.clip.map.water.splash1._currentframe = game.clip.map.water.splash1._currentframe + 1);
game.clip.map.water.splash1.gotoAndStop(_local23);
game.clip.waterline.splash1.gotoAndStop(_local23);
}
if (game.clip.map.water.splash2._currentframe == 1) {
if (hero.ypos >= _local2) {
_root.splash.start();
var _local23 = Math.floor(hero.ypos - _local2);
trace("mid" + _local23);
game.clip.map.water.splash2._x = hero.xpos;
game.clip.waterline.splash2._x = hero.xpos;
game.clip.map.water.splash2.gotoAndStop(_local23);
game.clip.waterline.splash2.gotoAndStop(_local23);
game.clip.map.water.bblz._x = hero.xpos;
game.clip.waterline.bblz._x = hero.xpos;
}
} else if (game.clip.map.water.splash2._currentframe < game.clip.map.water.splash2._totalframes) {
var _local23 = (game.clip.map.water.splash2._currentframe = game.clip.map.water.splash2._currentframe + 1);
game.clip.map.water.splash2.gotoAndStop(_local23);
game.clip.waterline.splash2.gotoAndStop(_local23);
}
if (game.clip.map.water.splash3._currentframe == 1) {
if (_local10 >= _local2) {
var _local23 = Math.floor(_local10 - _local2);
trace("leg" + _local23);
game.clip.map.water.splash3._x = _local11;
game.clip.waterline.splash3._x = _local11;
game.clip.map.water.splash3.gotoAndStop(_local23);
game.clip.waterline.splash3.gotoAndStop(_local23);
}
} else if (game.clip.map.water.splash3._currentframe < game.clip.map.water.splash3._totalframes) {
var _local23 = (game.clip.map.water.splash3._currentframe = game.clip.map.water.splash3._currentframe + 1);
game.clip.map.water.splash3.gotoAndStop(_local23);
game.clip.waterline.splash3.gotoAndStop(_local23);
}
if (hero.ypos >= (game.waterhite - 300)) {
hero.divePos = 7;
}
if (hero.ypos >= _local2) {
if (game.counter == 0) {
hero.actRot = hero.clip._rotation;
hero.allowMove = false;
trace("entry angle: " + hero.actRot);
var _local3 = Math.abs(hero.actRot);
if (((_local3 < 16) && (_local3 > 0)) && (hero.divePos == 7)) {
_local5 = Math.round(50 + (80 * ((16 - _local3) / 16)));
trace("feet first good: " + _local5);
} else if (((_local3 > 159) && (_local3 < 180)) && (hero.divePos == 7)) {
_local5 = Math.round(70 + (130 * (_local3 / 178.2)));
trace("head first good: " + _local5);
} else {
_local5 = 1;
trace("bad entry");
}
addStar(_local5, 200, 4, hero.xpos + 75, game.waterhite - 215);
game.counter = 1;
}
if (game.clip.map.water.bblz._currentframe < game.clip.map.water.bblz._totalframes) {
var _local23 = (game.clip.map.water.bblz._currentframe = game.clip.map.water.bblz._currentframe + 1);
game.clip.map.water.bblz.gotoAndStop(_local23);
}
if (game.clip.waterline.bblz._currentframe < game.clip.waterline.bblz._totalframes) {
var _local23 = (game.clip.waterline.bblz._currentframe = game.clip.waterline.bblz._currentframe + 1);
game.clip.waterline.bblz.gotoAndStop(_local23);
}
}
if (hero.ypos >= game.waterhite) {
game.stage = 21;
}
break;
case 21 :
hero.allowMove = false;
game.counter = 1;
hero.divePos = 10;
hero.actRot = hero.clip._rotation;
game.stage = 22;
if (game.clip.map.water.splash1._currentframe < game.clip.map.water.splash1._totalframes) {
var _local23 = (game.clip.map.water.splash1._currentframe = game.clip.map.water.splash1._currentframe + 1);
game.clip.map.water.splash1.gotoAndStop(_local23);
game.clip.waterline.splash1.gotoAndStop(_local23);
}
if (game.clip.map.water.splash2._currentframe < game.clip.map.water.splash2._totalframes) {
var _local23 = (game.clip.map.water.splash2._currentframe = game.clip.map.water.splash2._currentframe + 1);
game.clip.map.water.splash2.gotoAndStop(_local23);
game.clip.waterline.splash2.gotoAndStop(_local23);
}
if (game.clip.map.water.splash3._currentframe < game.clip.map.water.splash3._totalframes) {
var _local23 = (game.clip.map.water.splash3._currentframe = game.clip.map.water.splash3._currentframe + 1);
game.clip.map.water.splash3.gotoAndStop(_local23);
game.clip.waterline.splash3.gotoAndStop(_local23);
}
if (game.clip.map.water.bblz._currentframe < game.clip.map.water.bblz._totalframes) {
var _local23 = (game.clip.map.water.bblz._currentframe = game.clip.map.water.bblz._currentframe + 1);
game.clip.map.water.bblz.gotoAndStop(_local23);
}
if (game.clip.waterline.bblz._currentframe < game.clip.waterline.bblz._totalframes) {
var _local23 = (game.clip.waterline.bblz._currentframe = game.clip.waterline.bblz._currentframe + 1);
game.clip.waterline.bblz.gotoAndStop(_local23);
}
break;
case 22 :
var _local19 = Math.abs(hero.actRot);
var _local26 = returnFullAngl(hero.actRot);
hero.actRot = hero.actRot - (hero.actRot / 9);
var _local21 = 11;
if (_local19 > 65) {
if (game.counter > _local21) {
if (hero.divePos == 11) {
hero.divePos = 12;
game.counter = 0;
} else {
hero.divePos = 11;
game.counter = 0;
}
}
} else if (game.counter > _local21) {
if (hero.divePos == 16) {
hero.divePos = 15;
game.counter = 0;
} else {
hero.divePos = 16;
game.counter = 0;
}
}
game.counter++;
if (hero.ypos < (game.waterhite - 120)) {
hero.yspeed = 0;
game.stage = 23;
}
if (game.clip.map.water.splash1._currentframe < game.clip.map.water.splash1._totalframes) {
var _local23 = (game.clip.map.water.splash1._currentframe = game.clip.map.water.splash1._currentframe + 1);
game.clip.map.water.splash1.gotoAndStop(_local23);
game.clip.waterline.splash1.gotoAndStop(_local23);
}
if (game.clip.map.water.splash2._currentframe < game.clip.map.water.splash2._totalframes) {
var _local23 = (game.clip.map.water.splash2._currentframe = game.clip.map.water.splash2._currentframe + 1);
game.clip.map.water.splash2.gotoAndStop(_local23);
game.clip.waterline.splash2.gotoAndStop(_local23);
}
if (game.clip.map.water.splash3._currentframe < game.clip.map.water.splash3._totalframes) {
var _local23 = (game.clip.map.water.splash3._currentframe = game.clip.map.water.splash3._currentframe + 1);
game.clip.map.water.splash3.gotoAndStop(_local23);
game.clip.waterline.splash3.gotoAndStop(_local23);
}
if (game.clip.map.water.bblz._currentframe < game.clip.map.water.bblz._totalframes) {
var _local23 = (game.clip.map.water.bblz._currentframe = game.clip.map.water.bblz._currentframe + 1);
game.clip.map.water.bblz.gotoAndStop(_local23);
}
if (game.clip.waterline.bblz._currentframe < game.clip.waterline.bblz._totalframes) {
var _local23 = (game.clip.waterline.bblz._currentframe = game.clip.waterline.bblz._currentframe + 1);
game.clip.waterline.bblz.gotoAndStop(_local23);
}
break;
case 23 :
game.levelCompleted = true;
hero.fallspeed = 0;
var _local7 = hero[("lev" + game.level) + "Score"];
trace("hero level score:" + _local7);
var _local24 = returnLevScore();
if (_local7 >= _local24) {
nextLevel(true);
} else {
nextLevel(false);
}
if (game.clip.map.water.bblz._currentframe < game.clip.map.water.bblz._totalframes) {
var _local23 = (game.clip.map.water.bblz._currentframe = game.clip.map.water.bblz._currentframe + 1);
game.clip.map.water.bblz.gotoAndStop(_local23);
}
game.stage = 24;
break;
case 24 :
_local21 = 11;
if (game.counter > _local21) {
if (hero.divePos == 15) {
hero.divePos = 16;
game.counter = 0;
} else {
hero.divePos = 15;
game.counter = 0;
}
}
game.counter++;
if (game.clip.map.water.bblz._currentframe < game.clip.map.water.bblz._totalframes) {
var _local23 = (game.clip.map.water.bblz._currentframe = game.clip.map.water.bblz._currentframe + 1);
game.clip.map.water.bblz.gotoAndStop(_local23);
}
break;
}
}
function addStar(points, pointsMax, element, x, y) {
game.pointcount++;
var _local2 = game.clip.map["score" + game.pointcount];
var _local7 = 1 + Math.round((points / pointsMax) * 50);
_local2.colour.gotoAndStop(_local7);
_local2.symbol.gotoAndStop(element);
_local2.score.gotoAndStop(1 + points);
_local2._x = x;
_local2._y = y;
hero[("lev" + game.level) + "Score"] = hero[("lev" + game.level) + "Score"] + Math.round(points);
var _local4 = hero[("lev" + game.level) + "Score"];
var _local6 = _root[("l" + game.level) + "score"]._currentframe - 1;
if (_local6 != _local4) {
_root[("l" + game.level) + "score"].gotoAndStop(_local4 + 1);
}
switch (element) {
case 1 :
if (game.stage < 10) {
hero.el1 = points / pointsMax;
} else {
hero.el2 = points / pointsMax;
}
break;
case 2 :
hero.el3 = hero.el3 + 1;
break;
case 3 :
hero.el4 = hero.el4 + 1;
break;
case 4 :
hero.el5 = points / pointsMax;
break;
}
showScore2();
}
function inAir(whom) {
if (whom.jumping) {
whom.jumpspeed = whom.jumpspeed + game.gravity;
whom.fallspeed = 0;
whom.bouncespeed = 0;
if (whom.jumpspeed > 0) {
whom.jumpspeed = 0;
whom.bouncespeed = 0;
whom.jumping = false;
whom.canJump = false;
}
} else if (game.stage < game.diveStage) {
if (whom.ypos >= game.boardhite) {
if (!whom.canJump) {
whom.bounce = whom.fallspeed * 0.9;
trace(whom.bounce + "bounce");
}
whom.fallspeed = 0;
whom.yspeed = 0;
whom.canJump = true;
} else {
whom.fallspeed = whom.fallspeed + game.gravity;
whom.jumpspeed = 0;
whom.bouncespeed = 0;
whom.canJump = false;
}
} else if ((game.stage == game.diveOver) && (!game.levelCompleted)) {
if (whom.fallspeed > 0) {
whom.fallspeed = whom.fallspeed / 3;
}
whom.fallspeed = whom.fallspeed - 0.1;
whom.jumpspeed = 0;
whom.bouncespeed = 0;
whom.jumpxspeed = 0;
whom.canJump = false;
} else if (!game.levelCompleted) {
whom.fallspeed = whom.fallspeed + game.gravity;
whom.jumpspeed = 0;
whom.bouncespeed = 0;
whom.jumpxspeed = whom.jumpxspeed - game.gravity;
whom.canJump = false;
}
whom.yspeed = (whom.jumpspeed + whom.fallspeed) + whom.bouncespeed;
whom.xspeed = whom.jumpxspeed;
var _local2 = 27;
if (whom.yspeed > _local2) {
whom.yspeed = _local2;
} else if (whom.yspeed < (-_local2)) {
whom.yspeed = -_local2;
}
if (whom.xspeed > _local2) {
whom.xspeed = _local2;
} else if (whom.xspeed < 0) {
whom.xspeed = 0;
}
}
function returnFullAngl(ang) {
var _local1;
if (ang < 0) {
_local1 = ang + 360;
} else {
_local1 = ang;
}
return(_local1);
}
function setHeroPositions(position) {
pos = hero.positions[position];
if (game.stage >= 12) {
var _local15 = hero.clip.waist.leg1.calf.foot;
var _local2 = hero.clip.waist.leg1.calf;
var _local7 = hero.clip.waist.leg1;
var _local14 = hero.clip.waist.leg2.calf.foot;
var _local1 = hero.clip.waist.leg2.calf;
var _local4 = hero.clip.waist.leg2;
var _local5 = hero.clip.waist;
var _local10 = hero.clip.chest;
var _local13 = hero.clip.chest.arm1;
var _local8 = hero.clip.chest.arm1.forearm;
var _local11 = hero.clip.chest2.arm2;
var _local6 = hero.clip.chest2.arm2.forearm;
var _local12 = hero.clip.chest.head;
} else {
var _local15 = hero.clip.foot1;
var _local2 = hero.clip.calf1;
var _local7 = hero.clip.calf1.thigh1;
var _local14 = hero.clip.calf1.thigh1.leg2.calf.foot;
var _local1 = hero.clip.calf1.thigh1.leg2.calf;
var _local4 = hero.clip.calf1.thigh1.leg2;
var _local5 = hero.clip.calf1.thigh1.waist1;
var _local3 = hero.clip.calf1.thigh1.waist2;
var _local10 = hero.clip.calf1.thigh1.waist1.chest;
var _local9 = hero.clip.calf1.thigh1.waist2.chest;
var _local13 = hero.clip.calf1.thigh1.waist1.chest.arm1;
var _local8 = hero.clip.calf1.thigh1.waist1.chest.arm1.forearm;
var _local11 = hero.clip.calf1.thigh1.waist2.chest.arm2;
var _local6 = hero.clip.calf1.thigh1.waist2.chest.arm2.forearm;
var _local12 = hero.clip.calf1.thigh1.waist1.chest.head;
}
var _local15 = hero.clip.foot1;
var _local14 = hero.clip.calf1.thigh1.leg2.calf.foot;
_local15._rotation = pos[0];
_local2._rotation = pos[1];
_local7._rotation = pos[2];
_local14._rotation = pos[3];
_local1._rotation = pos[4];
_local4._rotation = pos[5];
_local5._rotation = pos[6];
_local3._rotation = pos[6];
_local10._rotation = pos[7];
_local9._rotation = pos[7];
_local13._rotation = pos[8];
_local8._rotation = pos[9];
_local11._rotation = pos[8];
_local6._rotation = pos[9];
_local12._rotation = pos[10];
}
function moveChar(whom) {
var _local35 = whom.xpos;
var _local33 = whom.ypos;
var _local34;
var _local32;
_local34 = _local35 + whom.xspeed;
_local32 = _local33 + whom.yspeed;
var _local2 = whom.positions[whom.divePos];
if (game.stage >= game.diveStage) {
var _local25 = whom.clip.waist.leg1.calf.foot;
var _local9 = whom.clip.waist.leg1.calf;
var _local15 = whom.clip.waist.leg1;
var _local37 = whom.clip.waist.leg2.calf.foot;
var _local8 = whom.clip.waist.leg2.calf;
var _local11 = whom.clip.waist.leg2;
var _local12 = whom.clip.waist;
var _local18 = whom.clip.chest;
var _local22 = whom.clip.chest.arm1;
var _local16 = whom.clip.chest.arm1.forearm;
var _local20 = whom.clip.chest2.arm2;
var _local13 = whom.clip.chest2.arm2.forearm;
var _local21 = whom.clip.chest.head;
} else {
var _local25 = whom.clip.foot1;
var _local9 = whom.clip.calf1;
var _local15 = whom.clip.calf1.thigh1;
var _local37 = whom.clip.calf1.thigh1.leg2.calf.foot;
var _local8 = whom.clip.calf1.thigh1.leg2.calf;
var _local11 = whom.clip.calf1.thigh1.leg2;
var _local12 = whom.clip.calf1.thigh1.waist1;
var _local27 = whom.clip.calf1.thigh1.waist2;
var _local18 = whom.clip.calf1.thigh1.waist1.chest;
var _local29 = whom.clip.calf1.thigh1.waist2.chest;
var _local22 = whom.clip.calf1.thigh1.waist1.chest.arm1;
var _local16 = whom.clip.calf1.thigh1.waist1.chest.arm1.forearm;
var _local20 = whom.clip.calf1.thigh1.waist2.chest.arm2;
var _local13 = whom.clip.calf1.thigh1.waist2.chest.arm2.forearm;
var _local21 = whom.clip.calf1.thigh1.waist1.chest.head;
}
var _local31 = _local25._rotation - _local2[0];
var _local19 = _local9._rotation - _local2[1];
var _local17 = _local15._rotation - _local2[2];
var _local28 = _local37._rotation - _local2[3];
var _local14 = _local8._rotation - _local2[4];
var _local10 = _local11._rotation - _local2[5];
var _local4 = _local12._rotation - _local2[6];
var _local7 = _local18._rotation - _local2[7];
var _local26 = returnFullAngl(_local22._rotation) - returnFullAngl(_local2[8]);
var _local38 = _local16._rotation - _local2[9];
var _local24 = returnFullAngl(_local20._rotation) - returnFullAngl(_local2[8]);
var _local36 = _local13._rotation - _local2[9];
var _local23 = _local21._rotation - _local2[10];
_local25._rotation = _local25._rotation - (_local31 / hero.SpeedofChange);
_local9._rotation = _local9._rotation - (_local19 / hero.SpeedofChange);
_local15._rotation = _local15._rotation - (_local17 / hero.SpeedofChange);
_local37._rotation = _local37._rotation - (_local28 / hero.SpeedofChange);
_local8._rotation = _local8._rotation - (_local14 / (hero.SpeedofChange + 0.1));
_local11._rotation = _local11._rotation - (_local10 / (hero.SpeedofChange + 0.3));
_local12._rotation = _local12._rotation - (_local4 / hero.SpeedofChange);
_local27._rotation = _local27._rotation - (_local4 / hero.SpeedofChange);
_local18._rotation = _local18._rotation - (_local7 / hero.SpeedofChange);
_local29._rotation = _local29._rotation - (_local7 / hero.SpeedofChange);
_local22._rotation = _local22._rotation - (_local26 / hero.SpeedofChange);
_local16._rotation = _local16._rotation - (_local38 / hero.SpeedofChange);
_local20._rotation = _local20._rotation - (_local24 / (hero.SpeedofChange + 1));
_local13._rotation = _local13._rotation - (_local36 / (hero.SpeedofChange + 2));
_local21._rotation = _local21._rotation - (_local23 / hero.SpeedofChange);
var _local30 = (((((((Math.abs(_local19) + Math.abs(_local17)) + Math.abs(_local14)) + Math.abs(_local10)) + Math.abs(_local4)) + Math.abs(_local7)) + Math.abs(_local26)) + Math.abs(_local24)) + Math.abs(_local23);
if (_local30 < 0.5) {
whom.oldPosition = hero.divePos;
whom.inPosition = true;
} else {
whom.inPosition = false;
}
whom.xpos = _local34;
whom.ypos = _local32;
var _local5;
if (((!whom.jumping) && (whom.canJump)) && (game.stage < game.diveStage)) {
_local5 = Math.round(whom.ypos - game.boardhite);
var _local25 = hero.clip.foot1;
var _local37 = hero.clip.calf1.thigh1.leg2.calf.foot;
_local25._rotation = 5 + (_local5 * 0.66);
_local37._rotation = _local25;
} else {
var _local6 = game.clip.map["board" + game.level]._currentframe;
if (_local6 > 1) {
_local5 = Math.floor(_local6 - (_local6 / 2));
}
}
game.clip.map["board" + game.level].gotoAndStop(_local5);
if (game.stage == game.diveStage) {
if (whom.dirRot != 0) {
var _local3 = whom.dirRot * (5 + hero.scoreMult);
whom.desRot = whom.desRot + (_local3 / 11);
if ((whom.desRot > _local3) || (whom.desRot < _local3)) {
whom.desRot = _local3;
}
} else {
whom.desRot = whom.desRot - (whom.desRot / 2.3);
}
whom.actRot = whom.actRot + whom.desRot;
}
whom.clip._x = whom.xpos;
whom.clip._y = whom.ypos;
whom.clip._rotation = whom.actRot;
}
function moveMap() {
var _local4;
var _local2;
var _local3 = hero.xpos - hero.startxpos;
var _local1 = hero.ypos;
if (game.stage < game.diveStage) {
_local1 = _local1 - 350;
} else {
_local1 = _local1 - game.screenadj;
if (game.screenadj > 60) {
game.screenadj = game.screenadj - (game.screenadj / 35);
}
}
_local4 = (_local3 + game.clip._x) / 9;
_local2 = (_local1 + game.clip._y) / 9;
game.clip._x = game.clip._x - _local4;
game.clip._y = game.clip._y - _local2;
if (game.clip._y < (game.clipMax - 250)) {
game.clip._y = game.clipMax - 250;
}
game.bgclip._x = (-game.clip._x) / 2;
game.bgclip._y = (-game.clip._y) / 2;
}
function nextLevel(passorfail) {
game_state.bestdive1._visible = (game_state.bestdive2._visible = (game_state.bestoverall._visible = false));
if (passorfail) {
game.currentsound = _root.cheer;
game.currentsound.start();
if ((game.level == 1) && (hero.lev1Score > cookie_best1)) {
cookie_best1 = Math.floor(hero.lev1Score);
write_game_cookie(game_id, cookie_best1, cookie_best2, cookie_best3, cookie_best4);
game_state.bestdive1._visible = true;
}
if ((game.level == 2) && (hero.lev2Score > cookie_best2)) {
cookie_best2 = Math.floor(hero.lev2Score);
write_game_cookie(game_id, cookie_best1, cookie_best2, cookie_best3, cookie_best4);
game_state.bestdive1._visible = true;
}
if ((game.level == 3) && (hero.lev3Score > cookie_best3)) {
cookie_best3 = Math.floor(hero.lev3Score);
write_game_cookie(game_id, cookie_best1, cookie_best2, cookie_best3, cookie_best4);
game_state.bestdive2._visible = true;
}
game.level++;
hero.score = 0;
hero.score = (Math.floor(hero.lev1Score) + Math.floor(hero.lev2Score)) + Math.floor(hero.lev3Score);
var _local3;
if (game.level > 3) {
_local3 = 5;
setSStext();
if (hero.score > cookie_best4) {
cookie_best4 = hero.score;
write_game_cookie(game_id, cookie_best1, cookie_best2, cookie_best3, cookie_best4);
game_state.bestdive2._visible = false;
game_state.bestoverall._visible = true;
}
game_state.whachugondoonar = null;
} else {
_local3 = 4;
game_state.whachugondoonar = function () {
game_state.whachugondoonar = null;
buildMap(game.level);
};
}
game_state._x = (_local3 - 1) * -600;
} else {
hero.score = 0;
var _local2 = 1;
while (_local2 < game.level) {
hero.score = hero.score + hero[("lev" + _local2) + "Score"];
_local2++;
}
var _local3 = 3;
game_state._x = (_local3 - 1) * -600;
setFStext();
game_state.whachugondoonar = function () {
game_state.whachugondoonar = null;
_root.gotoAndPlay("playGame");
};
}
}
function showScore2() {
var _local1 = hero[("lev" + game.level) + "Score"];
var _local2 = (1 + hero.score) + _local1;
score.gotoAndStop(_local2);
}
function showScore() {
var _local1 = score._currentframe - 1;
var _local3 = hero[("lev" + game.level) + "Score"];
var _local2 = hero.score + _local3;
if (_local2 < (_local1 - 10)) {
score.gotoAndStop(_local1 - 10);
} else if (_local2 > (_local1 + 10)) {
score.gotoAndStop(_local1 + 10);
} else if (_local2 < _local1) {
score.prevFrame();
} else if (_local2 > _local1) {
score.nextFrame();
}
}
function setFStext() {
game_state.labell1a.text = "You have scored ";
game_state.labell1a.text = game_state.labell1a.text + hero[("lev" + game.level) + "Score"];
var _local1 = returnLevScore();
game_state.labell1a.text = game_state.labell1a.text + (((" (" + _local1) + " required to continue)") + String.fromCharCode(13));
if (hero.el1 > 0.55) {
game_state.labell1a.text = game_state.labell1a.text + ("Bounce 1 was good" + String.fromCharCode(13));
} else if ((hero.el1 > 0.4) && (hero.el1 < 0.55)) {
game_state.labell1a.text = game_state.labell1a.text + ("Bounce 1 was ok" + String.fromCharCode(13));
} else {
game_state.labell1a.text = game_state.labell1a.text + ("Bounce 1 was poor" + String.fromCharCode(13));
}
if (hero.el2 > 0.55) {
game_state.labell1a.text = game_state.labell1a.text + ("Bounce 2 was good" + String.fromCharCode(13));
} else if ((hero.el2 > 0.4) && (hero.el2 < 0.55)) {
game_state.labell1a.text = game_state.labell1a.text + ("Bounce 2 was ok" + String.fromCharCode(13));
} else {
game_state.labell1a.text = game_state.labell1a.text + ("Bounce 2 was poor" + String.fromCharCode(13));
}
if (hero.el3 > game.level) {
game_state.labell1a.text = game_state.labell1a.text + ("Good number of rotations" + String.fromCharCode(13));
} else if (hero.el3 == game.level) {
game_state.labell1a.text = game_state.labell1a.text + ("Satisfactory number of rotations" + String.fromCharCode(13));
} else {
game_state.labell1a.text = game_state.labell1a.text + ("Poor number of rotations" + String.fromCharCode(13));
}
if (hero.el4 > game.level) {
game_state.labell1a.text = game_state.labell1a.text + ("Good number of positions" + String.fromCharCode(13));
} else if (hero.el4 == game.level) {
game_state.labell1a.text = game_state.labell1a.text + ("Satisfactory number of positions" + String.fromCharCode(13));
} else {
game_state.labell1a.text = game_state.labell1a.text + ("Poor number of positions" + String.fromCharCode(13));
}
if (hero.el5 >= 0.66) {
game_state.labell1a.text = game_state.labell1a.text + ("Great Entry" + String.fromCharCode(13));
} else if ((hero.el5 > 0.33) && (hero.el5 < 0.66)) {
game_state.labell1a.text = game_state.labell1a.text + ("OK Entry" + String.fromCharCode(13));
} else {
game_state.labell1a.text = game_state.labell1a.text + ("Poor Entry" + String.fromCharCode(13));
}
game_state.labell1a.text = game_state.labell1a.text + "You must complete all 3 dives successfully to submit a score";
game_state.labell1a_s.text = game_state.labell1a.text;
}
function setSStext() {
game_state.labell1.text = "You have scored ";
game_state.labell1.text = game_state.labell1.text + _root.hero.score;
game_state.labell1.text = game_state.labell1.text + (String.fromCharCode(13, 13, 13) + "");
game_state.labell1_s.text = game_state.labell1.text;
game_state.labell2.text = _global.playerName;
game_state.labell2_s.text = game_state.labell2.text;
game_state.labell2.border = true;
game_state.labell2.borderColor = 0;
game_state.labell2.maxChars = 10;
game_state.labell2.onChanged = function () {
_global.playerName = game_state.labell2.text;
game_state.labell2_s.text = game_state.labell2.text;
};
}
function setControls() {
game_state.dive_text.gotoAndStop(game.level);
game_state.nextlev.onPress = function () {
buildMap(game.level);
};
game_state.replay1.onPress = function () {
_root.gotoAndPlay("playGame");
};
game_state.menu1.onPress = (game_state.menu2.onPress = (game_state.menu3.onPress = function () {
_root.gotoAndPlay("welcome");
}));
game_state.submitt.onPress = function () {
if (_global.playerName != "Enter Name") {
game_state.score = _root.hero.score;
game_state.playerName = _global.playerName;
game_state.loadVariables("highscores_highdivehero.php?" + int(Math.random() * 100000), "POST");
game_state.submitt._visible = false;
game_state.submitt.onPress = null;
game_state.labell2._visible = (game_state.labell2_s._visible = false);
game_state.labell1.text = ((("Your score has been submitted" + String.fromCharCode(13, 13)) + "To view the scoreboard") + String.fromCharCode(13)) + "click the link beneath the game";
game_state.labell1_s.text = game_state.labell1.text;
game_state.menu3._x = 2653;
}
};
}
function returnLevScore() {
var _local1 = 170 + (game.level * 50);
return(_local1);
}
function getKeys() {
if (!game.paused) {
if (hero.allowMove) {
if (Key.isDown(codeOfPIKEKey)) {
hero.divePos = 9;
} else if (Key.isDown(codeOfOPENPIKEKey)) {
hero.divePos = 10;
} else if (Key.isDown(codeOfTUCKKey)) {
hero.divePos = 8;
} else {
hero.divePos = 7;
}
if (Key.isDown(codeOfLEFTKey)) {
hero.dirRot = -1;
} else if (Key.isDown(codeOfRIGHTKey)) {
hero.dirRot = 1;
} else {
hero.dirRot = 0;
}
}
if (Key.isDown(codeOfJUMPKey)) {
game.jump = true;
} else {
game.jump = false;
}
}
}
game = {level:1, pi_r:57.2957795130823, pi:3.14159265, gravity:0.35, maxScroll:3600, screenadj:200, diveStage:null, levelCompleted:null, paused:false};
hero = {sex:null, active:null, jumptotal:6.5, jumpspeed:0, fallspeed:0, xspeed:0, yspeed:0, jumping:false, canJump:false, SpeedofChange:null, desRot:0, actRot:0, dirRot:0, scorMult:null, divePos:1, pointCount:null, lev1Score:0, lev2Score:0, lev3Score:0, score:0};
hero.positions = new Array();
hero.positions[1] = [5, 0, 0, 5, 0, 0, 0, 0, 180, 0, -10];
hero.positions[2] = [5, 40, -80, -30, 75, 15, 90, 15, -150, 0, 20];
hero.positions[3] = [60, 0, 0, 60, 130, -80, 0, 0, 50, -20, 0];
hero.positions[4] = [5, 0, 0, 5, 0, 0, 0, 0, 180, 0, 35];
hero.positions[5] = [-35, 85, -70, -33, 90, -65, -30, 0, -150, 0, 20];
hero.positions[6] = [60, 0, 0, 60, 130, -80, 0, 0, 50, -20, 0];
hero.positions[7] = [60, 0, 0, 60, 0, 0, 5, 0, 0, 0, 0];
hero.positions[99] = [60, 0, -55, 60, 0, -55, -1, 0, 0, 0, -20];
hero.positions[8] = [60, 140, -120, 60, 140, -120, -30, 0, 135, 0, 35];
hero.positions[9] = [60, 0, -120, 60, 0, -120, -35, 0, 50, 0, 15];
hero.positions[10] = [60, 0, -110, 60, 0, -110, -20, 0, 170, 0, 5];
hero.positions[11] = [60, 0, -105, 60, 0, -115, -20, 0, 170, 0, 5];
hero.positions[12] = [60, 0, -115, 60, 0, -105, -20, 0, 170, 0, 5];
hero.positions[13] = [60, 0, 5, 60, 0, -5, 5, 0, 170, 0, -20];
hero.positions[14] = [60, 0, -5, 60, 0, 5, 5, 0, 170, 0, -20];
hero.positions[15] = [60, 0, 7, 60, 30, -30, 5, 0, 160, 10, -10];
hero.positions[16] = [60, 30, -30, 60, 0, 7, 5, 0, 170, 0, -12];
colours = new Array();
colours[0] = null;
colours[1] = ["0xccff66", "0x3399cc"];
colours[2] = ["0xff9900", "0xcc0099"];
colours[3] = ["0xcc33ff", "0x006699"];
_root.nada = new Sound();
_root.bounce1 = new Sound();
_root.bounce1.attachSound("bounce1");
_root.bounce2 = new Sound();
_root.bounce2.attachSound("bounce2");
_root.boing1 = new Sound();
_root.boing1.attachSound("boing1");
_root.boing202 = new Sound();
_root.boing202.attachSound("boing202");
_root.boing2b = new Sound();
_root.boing2b.attachSound("boing2b");
_root.boing3a = new Sound();
_root.boing3a.attachSound("boing3a");
_root.boing3b = new Sound();
_root.boing3b.attachSound("boing3b");
_root.splash = new Sound();
_root.splash.attachSound("splash");
_root.cheer = new Sound();
_root.cheer.attachSound("cheer");
l1score.gotoAndStop(1);
l2score.gotoAndStop(1);
l3score.gotoAndStop(1);
score.gotoAndStop(1);
buildMap(game.level);
_root.attachMovie("empty", "_brain", 9999);
_brain.onEnterFrame = function () {
getKeys();
stageControl();
if (!game.paused) {
if (!game.levComplete) {
inAir(hero);
}
moveChar(hero);
moveMap();
}
};
stop();
Instance of Symbol 237 MovieClip in Frame 188
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.spaceIsPressed();
}
}
Symbol 32 MovieClip [hero_jumpF] Frame 1
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
var tu = this._url.toLowerCase();
var tu2 = ((((((((((((String.fromCharCode(46) + String.fromCharCode(109)) + String.fromCharCode(111)) + String.fromCharCode(117)) + String.fromCharCode(115)) + String.fromCharCode(101)) + String.fromCharCode(98)) + String.fromCharCode(114)) + String.fromCharCode(101)) + String.fromCharCode(97)) + String.fromCharCode(107)) + String.fromCharCode(101)) + String.fromCharCode(114));
loaded = 1;
Symbol 111 MovieClip [hero_diveF] Frame 1
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 131 MovieClip [hero_jumpM] Frame 1
stop();
Symbol 137 MovieClip [hero_diveM] Frame 1
stop();
Symbol 147 Button
on (release) {
getURL ("http://www.mousebreaker.com/index.php?cdgtid-=hdh", "_blank");
}
Symbol 150 MovieClip Frame 32
gotoAndPlay (1);
Symbol 152 MovieClip Frame 7
gotoAndPlay (1);
Symbol 159 MovieClip Frame 1
Symbol 159 MovieClip Frame 19
stop();
Symbol 172 MovieClip Frame 36
gotoAndPlay (1);
Symbol 198 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 2
stop();
Symbol 221 Button
on (release) {
getURL ("http://www.mousebreaker.com/index.php?page=downloadagreement", "_self");
}
Symbol 232 Button
on (release) {
getURL ("http://www.mousebreaker.com/index.php?cdgtid=hdh", "_blank");
}
Symbol 235 Button
on (release) {
getURL ("http://www.mousebreaker.com/index.php?page=freestuff", "_blank");
}
Symbol 247 MovieClip Frame 8
gotoAndPlay (1);
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 2
stop();
Symbol 285 MovieClip Frame 3
stop();
Symbol 290 MovieClip Frame 1
stop();