Frame 1
totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
if (percentDone >= 100) {
_root.gotoAndPlay(4);
} else {
_root.Balk._width = 2 * percentDone;
}
Frame 2
gotoAndPlay (1);
Frame 4
function gotoOphyr() {
getURL ("http://www.ophyr.nl", "_blank");
}
stopAllSounds();
_root.winName = "Devlin";
_root.soundOn = true;
_root.musicOn = true;
mainmusic = new Sound();
mainmusic.attachSound("main");
if (_root.musicOn) {
mainmusic.start(0, 800);
}
himusic = new Sound();
himusic.attachSound("highscores");
var myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
var link = new ContextMenuItem("www.ophyr.nl", gotoOphyr);
myContextMenu.customItems.push(link);
_root.menu = myContextMenu;
Instance of Symbol 83 MovieClip in Frame 4
onClipEvent (enterFrame) {
if ((Math.random() * 10) < 0.04) {
gotoAndPlay (5);
}
}
Frame 5
_quality = "HIGH";
stop();
Frame 6
_root._quality = "LOW";
_root.paused = false;
stopAllSounds();
stop();
Instance of Symbol 38 MovieClip "area" in Frame 6
onClipEvent (load) {
music = new Sound();
music.attachSound("freaky");
if (_root.musicOn) {
music.start(0, 800);
}
jumpSound = new Sound();
jumpSound.attachSound("jump");
jumpSound.setVolume(80);
bounceSound = new Sound();
bounceSound.attachSound("bounce");
bounceSound.setVolume(80);
dieSound = new Sound();
dieSound.attachSound("die");
dieSound.setVolume(80);
shootSound = new Sound();
shootSound.attachSound("shoot");
shootSound.setVolume(80);
_root.wingSound = new Sound();
_root.wingSound.attachSound("wings");
enemyappearSound = new Sound();
enemyappearSound.attachSound("enemyappear");
enemyappearSound.setVolume(80);
keyListener = new Object();
Key.addListener(keyListener);
keyListener.onKeyDown = function () {
KeyDown(Key.getCode());
};
keyListener.onKeyUp = function () {
KeyUp(Key.getCode());
};
KeyDown = function (keyCode) {
switch (keyCode) {
case 37 :
_root.moveLeft = true;
break;
case 39 :
_root.moveRight = true;
break;
case 38 :
_root.jump = true;
break;
case 80 :
togglePause();
}
};
KeyUp = function (keyCode) {
switch (keyCode) {
case 37 :
_root.moveLeft = false;
break;
case 39 :
_root.moveRight = false;
break;
case 38 :
_root.jump = false;
}
};
createDemon = function () {
_root.demondead = false;
this.attachMovie("demon", "demon", 40, {_x:0, _y:-100, yspeed:0, yacc:0.3, maxyspeed:-3, jumpspeed:6, state:"falling", walkSpeed:2, groundWalkSpeed:2, airWalkSpeed:2, speed:0, bounce:0, onEnterFrame:demonAliveEnterFrame});
demon.gotoAndStop(8);
};
checkHit = function (demon, row) {
x = 0;
while (x <= 9) {
var _local1 = "n" + x;
if (demon.hitTest(row[_local1])) {
return(true);
}
x++;
}
return(false);
};
jump = function (demon) {
if (demon.state != "falling") {
if (_root.soundOn) {
jumpSound.start(0, 1);
}
demon.state = "falling";
demon.yspeed = demon.jumpspeed;
}
};
demonDeadEnterFrame = function () {
if (_root.lives <= 0) {
_root.finalScore = _root.score;
unInitLevel();
_root.gotoAndStop(9);
} else {
unloadRows();
unloadEnemies();
initLevel();
setLevel();
createDemon();
_root.gotoAndStop(6);
}
};
demonDies = function (demon, object) {
if (!_root.demondead) {
if (_root.soundOn) {
dieSound.start(0, 1);
}
this.demon.gotoAndStop(8);
if (_root.level > 3) {
_root.lives--;
}
if (object == undefined) {
demon.yspeed = 8;
demon.yacc = 0.5;
demon.onEnterFrame = demonDeath;
} else {
_root.demondead = true;
var _local3 = 0;
while (_local3 < 30) {
removeObject(_root.blockRows[_local3]);
if (_root.enemies[_local3] != object) {
removeObject(_root.enemies[_local3]);
}
_local3++;
}
demon.yspeed = 8;
demon.yacc = 0.5;
demon.onEnterFrame = demonDeath;
}
}
};
demonDeath = function () {
if (!_root.paused) {
if (this._y < 365) {
this.yspeed = this.yspeed - this.yacc;
this._y = this._y - this.yspeed;
} else {
demon.onEnterFrame = demonDeadEnterFrame;
}
}
};
demonAliveEnterFrame = function () {
if ((!_root.paused) && (!_root.demondead)) {
if (this.state == "walking") {
if (this.walkSpeed != this.groundWalkSpeed) {
this.walkSpeed = this.groundWalkSpeed;
}
if (_root.jump) {
jump(demon);
}
if (_root.moveLeft || (_root.moveRight)) {
if (_root.moveLeft && (!_root.moveRight)) {
if (this._x > -92.5) {
this._x = this._x - this.walkSpeed;
} else {
this._x = -92.5;
}
if (this._currentframe != 3) {
this.gotoAndStop(3);
}
} else if (_root.moveRight && (!_root.moveLeft)) {
if (this._x < 92.5) {
this._x = this._x + this.walkSpeed;
} else {
this._x = 92.5;
}
if (this._currentframe != 1) {
this.gotoAndStop(1);
}
}
} else if (this._currentframe == 1) {
this.gotoAndStop(Math.floor(Math.random() * 1) + 4);
} else if (this._currentframe == 3) {
this.gotoAndStop(Math.floor(Math.random() * 1) + 6);
}
this._y = this._y - _root.blockScrollSpeed;
if ((this._y >= 150) && (_root.beatGame == false)) {
demonDies(this, undefined);
}
if ((this._y >= 150) && (_root.beatGame == true)) {
_root.finalScore = _root.score;
_root.finalScore = _root.finalScore + (_root.lives * 500);
unInitLevel();
trace("Finished");
_root.gotoAndStop(11);
}
if ((this._y <= -135) && (this.state == "walking")) {
demonDies(this, undefined);
}
} else if (this.state == "falling") {
if (this.walkSpeed != this.airWalkSpeed) {
this.walkSpeed = this.airWalkSpeed;
}
if (_root.moveLeft || (_root.moveRight)) {
if (_root.moveLeft && (!_root.moveRight)) {
if (this._x > -92.5) {
this._x = this._x - this.walkSpeed;
} else {
this._x = -92.5;
}
if (this._currentframe != 3) {
this.gotoAndStop(3);
}
} else if (_root.moveRight && (!_root.moveLeft)) {
if (this._x < 92.5) {
this._x = this._x + this.walkSpeed;
} else {
this._x = 92.5;
}
if (this._currentframe != 1) {
this.gotoAndStop(1);
}
}
} else if (this._currentframe == 1) {
this.gotoAndStop(Math.floor(Math.random() * 2) + 4);
} else if (this._currentframe == 3) {
this.gotoAndStop(Math.floor(Math.random() * 2) + 6);
}
if ((this.yspeed - this.yacc) > this.maxyspeed) {
this.yspeed = this.yspeed - this.yacc;
} else {
this.yspeed = this.maxyspeed;
}
this._y = this._y - this.yspeed;
if ((this._y >= 150) && (_root.beatGame == false)) {
demonDies(this, undefined);
}
if ((this._y >= 150) && (_root.beatGame == true)) {
_root.finalScore = _root.score;
_root.finalScore = _root.finalScore + (_root.lives * 500);
unInitLevel();
_root.gotoAndStop(11);
}
if ((this._y <= -135) && (this.state == "walking")) {
demonDies(this, undefined);
}
}
if (this.myRow == undefined) {
i = 0;
while (i <= 29) {
var _local3 = _root.blockRows[i];
if ((_local3 != undefined) && (_local3._y > this._y)) {
if (this.hitTest(_local3) && (this.yspeed < -2)) {
if (checkHit(this, _local3)) {
if (this._y <= -150) {
demonDies(this, undefined);
}
this._y = _local3._y - 10;
this.state = "walking";
this.bounce = 0;
this.yspeed = 0;
this.myRow = _local3;
break;
}
}
}
i++;
}
} else if (!checkHit(this, this.myRow)) {
this.myRow = undefined;
this.state = "falling";
}
}
checkHitEnemy(this);
};
checkHitEnemy = function (demon) {
var _local5 = 0;
var _local3 = 0;
while (_local3 <= 29) {
var _local4 = _root.enemies[_local3];
if (demon.hitTest(_local4) && (_local4.alive)) {
if (demon._y <= _local4._y) {
if (demon.state == "falling") {
demon.bounce++;
if (_root.level > 3) {
_local5 = _local4.points * demon.bounce;
_root.score = _root.score + _local5;
}
} else if (_root.level > 3) {
_local5 = _local4.points;
_root.score = _root.score + _local5;
}
if (_root.soundOn) {
bounceSound.start(0, 1);
}
spawnWings(_root.enemies[_local3]._x, _root.enemies[_local3]._y, _root.enemies[_local3].isBlack, _local5);
_root.enemies[_local3].alive = false;
if (_root.jump && (demon.state == "falling")) {
demon.yspeed = 9;
} else if ((!_root.jump) && (demon.state == "falling")) {
demon.yspeed = 6;
}
break;
}
demonDies(demon, _local4);
}
_local3++;
}
};
createRow = function (iterator, gaps) {
var _local3 = "row" + iterator;
this.attachMovie("row", _local3, iterator, {i:0, gaps:[gaps], done:false, numGaps:gaps, myArrayIndex:iterator});
_root.blockRows[iterator] = this[_local3];
initRow(this[_local3]);
};
initRow = function (row) {
while (!row.done) {
var nm = ("n" + Math.floor(Math.random() * 10));
if (eval (row[nm])) {
row.i++;
row[nm].swapDepths(1000);
row[nm].removeMovieClip();
if (row.i >= row.numGaps) {
row.done = true;
}
}
}
i = 0;
while (i <= 9) {
var prevblock = ("n" + (i - 1));
var nextblock = ("n" + (i + 1));
var blockname = ("n" + i);
if (((!eval (row[nextblock])) && (!eval (row[prevblock]))) && ((i > 0) && (i < 9))) {
row[blockname].gotoAndStop(4);
row[blockname].single.gotoAndStop(Math.floor(Math.random() * 7) + 1);
} else if ((((!eval (row[nextblock])) && (eval (row[prevblock]))) && (i != 9)) || ((i == 0) && (!eval (row[nextblock])))) {
row[blockname].gotoAndStop(3);
row[blockname].edge.gotoAndStop(Math.floor(Math.random() * 5) + 1);
} else if (((eval (row[nextblock]) && (!eval (row[prevblock]))) && (i != 0)) || ((i == 9) && (!eval (row[prevblock])))) {
row[blockname].gotoAndStop(2);
row[blockname].edge.gotoAndStop(Math.floor(Math.random() * 5) + 1);
} else {
row[blockname].block.gotoAndStop(Math.floor(Math.random() * 5) + 1);
}
i++;
}
row._x = 0;
row._y = 170;
row.onEnterFrame = rowEnterFrame;
};
rowEnterFrame = function () {
if ((!_root.paused) && (!_root.demondead)) {
if (this._y > -170) {
this._y = this._y - _root.blockScrollSpeed;
} else {
_root.blockRow[this.myArrayIndex] = undefined;
this.swapDepths(1000);
this.removeMovieClip();
}
}
};
createEnemy = function (layer, type) {
var _local3 = "enemy" + layer;
var _local4 = false;
var _local2 = enemyAliveEnterFrame;
var _local5 = 10;
if (type == "enemyblack") {
_local2 = blackEnemyAliveEnterFrame;
_local4 = true;
_local5 = 20;
}
this.attachMovie(type, _local3, layer, {alive:true, yspeed:(Math.random() * 3) + 1, ydec:((Math.random() * 4) / 100) + 0.02, remainTime:Math.floor(Math.random() * 150) + 30, _x:85 - (Math.random() * 170), _y:165, points:_local5, exitDir:"", onEnterFrame:_local2, isBlack:_local4, hasShot:false});
return(this[_local3]);
};
killEnemy = function (enemy) {
enemy._rotation = enemy._rotation + 180;
enemy.gotoAndStop(40);
enemy._y = enemy._y - 15;
enemy.alive = false;
enemy.ydec = 0.5;
enemy.yspeed = 7;
enemy.onEnterFrame = enemyDeadEnterFrame;
};
spawnWings = function (x, y, black, points) {
var _local3 = _root.wingsCounter;
var _local4 = "wing";
if ((_root.wingsCounter + 2) > 80) {
_root.wingsCounter = 50;
} else {
_root.wingsCounter = _root.wingsCounter + 3;
}
nm1 = "wing" + _local3;
nm2 = "wing" + (_local3 + 1);
nm3 = "sc" + (_local3 + 2);
if (black) {
_local4 = "wingblack";
}
this.attachMovie("sc", nm3, _local3 + 2, {pts:"+" + points, _x:x, _y:y, onEnterFrame:scoreEnterFrame});
this.attachMovie(_local4, nm1, _local3, {_x:x + 2, _y:y, _rotation:Math.random() * 360, onEnterFrame:wingEnterFrame, yacc:0.02, yspeed:0, xspeed:0.2});
this.attachMovie(_local4, nm2, _local3 + 1, {_x:x - 2, _y:y, _rotation:Math.random() * 360, onEnterFrame:wingEnterFrame, yacc:0.02, yspeed:0, xspeed:-0.2});
};
scoreEnterFrame = function () {
this._y--;
};
wingEnterFrame = function () {
this.yspeed = this.yspeed + this.yacc;
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
};
enemyDeadEnterFrame = function () {
if ((!_root.paused) && (!_root.demondead)) {
if (this._y <= (150 + this._height)) {
this.yspeed = this.yspeed - this.ydec;
this._y = this._y - this.yspeed;
} else {
this.swapDepths(1000);
this.removeMovieClip();
}
}
};
enemyAliveEnterFrame = function () {
if ((!_root.paused) && (!_root.demondead)) {
if (this.alive) {
if (this.yspeed > 0) {
this._y = this._y - this.yspeed;
if ((this.yspeed - this.ydec) > 0) {
this.yspeed = this.yspeed - this.ydec;
} else {
this.yspeed = 0;
}
if (this._y < -150) {
this.onEnterFrame = begone;
}
} else if (this.yspeed == 0) {
if (this.exitDir == "") {
if ((this._y + 7.5) >= 0) {
this.exitDir = "up";
} else {
this.exitDir = "down";
}
}
this.remainTime--;
if (this.remainTime == 0) {
if (this.exitDir == "up") {
this.ydec = -this.ydec;
}
this.onEnterFrame = begone;
}
}
} else if (!this.alive) {
killEnemy(this);
}
}
};
blackEnemyAliveEnterFrame = function () {
if ((!_root.paused) && (!_root.demondead)) {
if (this.alive) {
if (this.yspeed > 0) {
this._y = this._y - this.yspeed;
if ((this.yspeed - this.ydec) > 0) {
this.yspeed = this.yspeed - this.ydec;
} else {
this.yspeed = 0;
}
} else if (this.yspeed == 0) {
if (this.exitDir == "") {
this.shootTime = Math.floor(Math.random() * this.remainTime);
if ((this._y + 7.5) >= 0) {
this.exitDir = "up";
} else {
this.exitDir = "down";
}
}
if (this.remainTime == this.shootTime) {
shoot(this);
}
this.remainTime--;
if (this.remainTime == 0) {
if (this.exitDir == "up") {
this.ydec = -this.ydec;
}
this.onEnterFrame = begone;
}
}
} else if (!this.alive) {
killEnemy(this);
}
}
};
shoot = function (enemy) {
if (!enemy.hasShot) {
enemy.hasShot = true;
var _local7 = enemy._parent;
var _local13 = _local7.demon;
var _local2 = 0;
while (_local2 < 30) {
if (_root.tridents[_local2] == undefined) {
break;
}
_local2++;
}
var _local8 = "trident" + _local2;
var _local10 = _local13._x;
var _local9 = _local13._y;
var _local6 = enemy._x;
var _local5 = enemy._y;
var _local3;
_local3 = 90 - (57.2957795130823 * Math.atan2(_local10 - _local6, _local9 - _local5));
if (((_local3 <= -45) && (_local3 >= -135)) || ((_local3 >= 225) && (_local3 <= 315))) {
} else {
if (_root.soundOn) {
shootSound.start(0, 1);
}
_root.tridents[_local2] = _local7.attachMovie("trident", _local8, _local2 + 200, {_rotation:_local3, speed:4, onEnterFrame:tridentEnterFrame, _x:_local6, _y:_local5, index:_local2, demon:_local13});
}
}
};
tridentEnterFrame = function () {
if ((!_root.paused) && (!_root.demondead)) {
if ((((this._y < -160) || (this._y > 160)) || (this._x > 110)) || (this._x < -110)) {
_root.tridents[this.index] = undefined;
removeObject(this);
}
if (this.hitTest(demon)) {
removeObject(this);
demonDies(demon, undefined);
}
this._y = this._y + (this.speed * Math.sin(this._rotation * (Math.PI/180)));
this._x = this._x + (this.speed * Math.cos(this._rotation * (Math.PI/180)));
}
};
begone = function () {
if ((!_root.paused) && (!_root.demondead)) {
this.yspeed = this.yspeed - this.ydec;
if ((this._y >= (150 + this._height)) || (this._y <= -150)) {
removeObject(this);
} else {
this.yspeed = this.yspeed - this.ydec;
this._y = this._y - this.yspeed;
}
if (!this.alive) {
killEnemy(this);
}
}
};
togglePause = function () {
_root.paused = !_root.paused;
this.pausedclip._visible = _root.paused;
var _local3 = 0;
if (_root.paused) {
while (_local3 < 30) {
_root.enemies[_local3]._alpha = 30;
_root.blockRows[_local3]._alpha = 30;
_local3++;
}
this.demon._alpha = 30;
} else {
while (_local3 < 30) {
_root.enemies[_local3]._alpha = 100;
_root.blockRows[_local3]._alpha = 100;
_local3++;
}
this.demon._alpha = 100;
}
};
level10Function = function () {
if (_root.level == 10) {
this.front.swapDepths(5000);
if (this.front._y > 104) {
this.front._y = this.front._y - (this.front._height / 1000);
}
if (this.back._y > 56) {
this.back._y = this.back._y - (this.back._height / 1000);
}
if ((this.back._y <= 56) && (this.front._y <= 104)) {
_root.beatGame = true;
}
}
};
gameCycle = function () {
if ((!_root.paused) && (!_root.demondead)) {
buildRows();
level10Function();
}
};
buildRows = function () {
if (_root.level < 10) {
_root.levelCounter++;
_root.timeLeft = Math.round((_root.nextLevel - _root.levelCounter) / 60);
if (_root.levelCounter >= _root.nextLevel) {
this.levelUp = true;
}
}
if (lifeCycle >= lifeCycleTime) {
lifeCycle = 0;
demonSpawnTime = Math.floor(Math.random() * lifeCycleTime);
if (this.levelUp) {
this.levelUp = false;
gameLevelUp();
_root.levelCounter = 0;
lifeCycle = lifeCycleTime;
} else if (_root.randomGaps) {
createRow(blockIterator, Math.floor(Math.random() * _root.numGaps) + 1);
} else {
createRow(blockIterator, _root.numGaps);
}
if (blockIterator >= 29) {
blockIterator = 0;
} else {
blockIterator++;
}
} else {
lifeCycle++;
if ((lifeCycle == demonSpawnTime) && ((Math.random() * 10) <= _root.level)) {
if (!_root.beatGame) {
if (_root.level >= 6) {
if (((Math.random() * 16) - (10 - _root.level)) > 10) {
spawnEnemy("enemyblack");
} else {
spawnEnemy("enemy");
}
} else {
spawnEnemy("enemy");
}
}
}
}
};
gameLevelUp = function () {
if (_root.level < 10) {
_root.level++;
setLevel();
_root.nextLevel = 600 * _root.level;
}
};
unloadRows = function () {
var _local2 = 0;
while (_local2 < 30) {
removeObject(_root.blockRows[_local2]);
_local2++;
}
};
unloadEnemies = function () {
var _local2 = 0;
while (_local2 < 30) {
removeObject(_root.enemies[_local2]);
_local2++;
}
};
removeObject = function (object) {
object._visible = false;
object.swapDepths(1000);
object.removeMovieClip();
};
spawnEnemy = function (type) {
var created = false;
var i = 0;
while (i <= 29) {
if (!eval (_root.enemies[i])) {
_root.enemies[i] = createEnemy(i + 100, type);
if (_root.soundOn) {
enemyappearSound.start(0, 1);
}
created = true;
break;
}
i++;
}
if (!created) {
trace("Unable to create enemy");
}
};
setGameVars = function (gspeed, blockscroll, gaps, randomgaps) {
this.gameSpeed = gspeed;
_root.blockScrollSpeed = blockscroll;
_root.numGaps = gaps;
_root.randomGaps = randomgaps;
this.lifeCycle = gameSpeed;
this.lifeCycleTime = gameSpeed;
this.levelUp = false;
};
setLevel = function () {
switch (_root.level) {
case 1 :
setGameVars(120, 0.5, 3, false);
break;
case 2 :
setGameVars(140, 0.5, 4, false);
break;
case 3 :
setGameVars(80, 1, 5, true);
break;
case 4 :
setGameVars(70, 1.5, 5, false);
if (_root.HUD.training._visible) {
removeObject(_root.HUD.training);
}
break;
case 5 :
setGameVars(70, 1.5, 7, true);
break;
case 6 :
setGameVars(60, 1.5, 8, true);
break;
case 7 :
setGameVars(40, 2, 8, true);
break;
case 8 :
setGameVars(50, 2, 8, true);
break;
case 9 :
setGameVars(30, 2, 9, false);
break;
case 10 :
setGameVars(40, 2.5, 10, false);
}
};
initLevel = function () {
this.pausedclip._visible = _root.paused;
blockIterator = 0;
_root.levelCounter = 0;
_root.nextLevel = 600 * _root.level;
_root.wingsCounter = 50;
_root.moveLeft = false;
_root.moveRight = false;
_root.jump = false;
};
unInitLevel = function () {
Key.removeListener(keyListener);
keyListener = undefined;
music = undefined;
jumpSound = undefined;
bounceSound = undefined;
dieSound = undefined;
shootSound = undefined;
_root.wingSound = undefined;
enemyappearSound = undefined;
_root.paused = undefined;
removeObject(this.pausedclip);
blockIterator = undefined;
_root.levelCounter = undefined;
_root.nextLevel = undefined;
_root.wingsCounter = undefined;
_root.moveLeft = undefined;
_root.moveRight = undefined;
_root.jump = undefined;
unloadRows();
unloadEnemies();
this.gameSpeed = undefined;
_root.blockScrollSpeed = undefined;
_root.numGaps = undefined;
_root.randomGaps = undefined;
this.lifeCycle = undefined;
this.lifeCycleTime = undefined;
this.levelUp = undefined;
};
initLevel();
setLevel();
createDemon();
}
onClipEvent (enterFrame) {
gameCycle();
}
Instance of Symbol 209 MovieClip "HUD" in Frame 6
onClipEvent (load) {
this.swapdepths(999);
}
Frame 9
_root._quality = "HIGH";
stopAllSounds();
deathmusic = new Sound();
deathmusic.attachSound("gameover");
if (_root.musicOn) {
deathmusic.start(0, 800);
}
_root.Table.scoretable.filename = "scores/hellboundscores.sco";
_root.Table.scoretable.scoresize = 10;
_root.Table.scoretable.viewtype = "FLASH";
_root.Table.scoretable.loadVariables("http://www.ophyr.nl/scores/scores.php", "GET");
Instance of Symbol 190 MovieClip "Table" in Frame 9
onClipEvent (load) {
this._visible = false;
}
Frame 10
_root.Table.scoretable.filename = "scores/hellboundscores.sco";
_root.Table.scoretable.scoresize = 10;
_root.Table.scoretable.viewtype = "FLASH";
_root.Table.scoretable.loadVariables("http://www.ophyr.nl/scores/scores.php", "GET");
_root.Table.scoretable.filename = "scores/hellboundscores.sco";
_root.Table.scoretable.scoresize = 10;
_root.Table.scoretable.action = "INSERT";
_root.Table.scoretable.viewtype = "FLASH";
_root.Table.scoretable.winname = "None";
_root.Table.scoretable.winscore = "0";
_root.Table.scoretable.loadVariables("http://www.ophyr.nl/scores/scores.php", "GET");
Frame 11
stopAllSounds();
Frame 12
music = new Sound();
music.attachSound("freaky");
music.start(0, 800);
_quality = "HIGH";
Instance of Symbol 303 MovieClip "Table" in Frame 13
onClipEvent (load) {
this._visible = false;
}
Symbol 3 MovieClip [wingblack] Frame 50
this.swapDepths(1000);
this.removeMovieClip();
Symbol 6 MovieClip [wing] Frame 50
this.swapDepths(1000);
this.removeMovieClip();
Symbol 76 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
stop();
Instance of Symbol 83 MovieClip in Symbol 86 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((Math.random() * 10) < 0.04) {
gotoAndPlay (2);
}
}
Symbol 86 MovieClip Frame 28
stop();
Symbol 107 MovieClip [enemy] Frame 10
if (!_root.paused) {
if (_root.soundOn) {
_root.wingSound.start(0, 1);
}
}
Symbol 107 MovieClip [enemy] Frame 30
if (!_root.paused) {
if (_root.soundOn) {
_root.wingSound.start(0, 1);
}
}
Symbol 107 MovieClip [enemy] Frame 39
gotoAndPlay (1);
Symbol 116 MovieClip [enemyblack] Frame 10
if (!_root.paused) {
if (_root.soundOn) {
_root.wingSound.start(0, 1);
}
}
Symbol 116 MovieClip [enemyblack] Frame 30
if (!_root.paused) {
if (_root.soundOn) {
_root.wingSound.start(0, 1);
}
}
Symbol 116 MovieClip [enemyblack] Frame 39
gotoAndPlay (1);
Symbol 127 Button
on (release) {
_root.Table.scoretable.filename = "scores/hellboundscores.sco";
_root.Table.scoretable.scoresize = 10;
_root.Table.scoretable.action = "INSERT";
_root.Table.scoretable.viewtype = "FLASH";
_root.Table.scoretable.winname = winName.Name.text;
_root.Table.scoretable.winscore = winScore.Score.text;
_root.Table.scoretable.loadVariables("http://www.ophyr.nl/scores/scores.php", "GET");
_root.enterHighScore._visible = false;
_root.Table._visible = true;
stopAllSounds();
himusic = new Sound();
himusic.attachSound("highscores");
if (_root.musicOn) {
himusic.start(0, 800);
}
}
Symbol 149 Button
on (release) {
stopAllSounds();
mainmusic = new Sound();
mainmusic.attachSound("main");
if (_root.musicOn) {
mainmusic.start(0, 800);
}
_root.gotoAndStop(5);
}
Symbol 186 Button
on (release) {
stopAllSounds();
mainmusic = new Sound();
mainmusic.attachSound("main");
if (_root.musicOn) {
mainmusic.start(0, 800);
}
_root.gotoAndStop(5);
}
Symbol 208 Button
on (release) {
_root.level = 4;
training._visible = false;
_root.area.unloadRows();
_root.area.unloadEnemies();
_root.area.initLevel();
_root.area.setLevel();
_root.area.createDemon();
_root.gotoAndStop(6);
training.swapDepths(1000);
training.removeMovieClip();
}
Symbol 213 MovieClip [sc] Frame 75
stop();
this.swapDepths(1000);
this.removeMovieClip();
Symbol 265 MovieClip Frame 50
stop();
Symbol 277 Button
on (release) {
_root.score = 0;
_root.gems = 0;
_root.level = 4;
_root.timeLeft = 0;
_root.lives = 3;
_root.moveLeft = false;
_root.moveRight = false;
_root.jump = false;
_root.finalScore = 0;
_root.beatGame = false;
_root.blockRows = undefined;
_root.enemies = undefined;
_root.tridents = undefined;
_root.blockRows = new Array(30);
_root.enemies = new Array(30);
_root.tridents = new Array(30);
_root.gotoAndStop(6);
}
Symbol 278 Button
on (release) {
_root.score = 0;
_root.gems = 0;
_root.level = 9;
_root.timeLeft = 0;
_root.lives = 3;
_root.moveLeft = false;
_root.moveRight = false;
_root.jump = false;
_root.finalScore = 0;
_root.beatGame = false;
_root.blockRows = undefined;
_root.enemies = undefined;
_root.tridents = undefined;
_root.blockRows = new Array(30);
_root.enemies = new Array(30);
_root.tridents = new Array(30);
_root.level = 1;
_root.gotoAndStop(6);
}
Symbol 279 Button
on (release) {
_root.gotoAndStop(7);
}
Symbol 280 Button
on (release) {
stopAllSounds();
if (_root.musicOn) {
himusic.start(0, 800);
}
_root.gotoAndStop(10);
}
Symbol 281 Button
on (release) {
_root.gotoAndStop(8);
}
Symbol 285 Button
on (release) {
_root.musicOn = !_root.musicOn;
mask.sndmask._visible = !mask.sndmask._visible;
if (!_root.musicOn) {
stopAllSounds();
} else {
music = new Sound();
music.attachSound("freaky");
if (_root.musicOn) {
music.start(0, 800);
}
}
}
Instance of Symbol 287 MovieClip "mask" in Symbol 288 MovieClip Frame 1
onClipEvent (load) {
this.sndmask._visible = !_root.musicOn;
}
Symbol 291 Button
on (release) {
mask.sndmask._visible = !mask.sndmask._visible;
_root.soundOn = !_root.soundOn;
}
Instance of Symbol 287 MovieClip "mask" in Symbol 292 MovieClip Frame 1
onClipEvent (load) {
this.sndmask._visible = !_root.soundOn;
}
Symbol 296 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 314 MovieClip Frame 445
_root.gotoAndStop(12);
Symbol 330 Button
on (release) {
_root.gotoAndStop(13);
}
Symbol 335 Button
on (release) {
_root.Table.scoretable.filename = "scores/hellboundscores.sco";
_root.Table.scoretable.scoresize = 10;
_root.Table.scoretable.action = "INSERT";
_root.Table.scoretable.viewtype = "FLASH";
_root.Table.scoretable.winname = winName.Name.text;
_root.Table.scoretable.winscore = winScore.Score.text;
_root.Table.scoretable.loadVariables("http://www.ophyr.nl/scores/scores.php", "GET");
stopAllSounds();
himusic = new Sound();
himusic.attachSound("highscores");
if (_root.musicOn) {
himusic.start(0, 800);
}
_root.gotoAndStop(10);
}