Frame 16
function link1() {
getURL ("http://www.daa-studios.com", "_blank");
}
function link2() {
getURL ("http://www.newgrounds.com", "_blank");
}
var myContextMenu = new ContextMenu(menuHandler);
myContextMenu.hideBuiltInItems();
var year = new Date();
myContextMenu.customItems.push(new ContextMenuItem((" brought to you by \u00A92007-" + year.getFullYear()) + " DAA Studios", link1));
myContextMenu.customItems.push(new ContextMenuItem("In association with Newgrounds.com", link2));
menu = myContextMenu;
exp_sound12 = new Sound();
exp_sound12.attachSound("theme");
var numberOfLoops = 999;
exp_sound12.start(0, numberOfLoops);
stop();
Frame 25
stop();
deaths = 0;
lvl = 1;
score = 0;
Frame 31
stop();
gotkey = 0;
Instance of Symbol 69 MovieClip "Player" in Frame 31
onClipEvent (load) {
hero_speed = 3;
radius = 13;
exp_sound = new Sound();
exp_sound.attachSound("die");
exp_sound2 = new Sound();
exp_sound2.attachSound("coin");
exp_sound3 = new Sound();
exp_sound3.attachSound("spikes");
onEnterFrame = function () {
xspeed = 0;
yspeed = 0;
if (Key.isDown(65)) {
Player.play;
xspeed = xspeed - hero_speed;
}
if (Key.isDown(68)) {
xspeed = xspeed + hero_speed;
}
if (Key.isDown(87)) {
yspeed = yspeed - hero_speed;
}
if (Key.isDown(83)) {
yspeed = yspeed + hero_speed;
}
if ((xspeed != 0) and (yspeed != 0)) {
xspeed = xspeed * 0.707;
yspeed = yspeed * 0.707;
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
switch (xspeed) {
case hero_speed :
this._rotation = 90;
break;
case -hero_speed :
this._rotation = -90;
break;
default :
switch (yspeed) {
case hero_speed :
this._rotation = 180;
break;
case -hero_speed :
this._rotation = 0;
break;
case hero_speed * 0.707 :
if (xspeed == (hero_speed * 0.707)) {
this._rotation = 135;
}
if ((xspeed = xspeed - (hero_speed * 0.707))) {
this._rotation = -135;
}
break;
case (-hero_speed) * 0.707 :
if (xspeed == (hero_speed * 0.707)) {
this._rotation = 45;
}
if (!((xspeed = xspeed - (hero_speed * 0.707)))) {
break;
}
this._rotation = -45;
}
}
while (_root.wall.hitTest(_x, _y + radius, true)) {
_y = (_y-1);
}
while (_root.wall.hitTest(_x, _y - radius, true)) {
_y = (_y+1);
}
while (_root.wall.hitTest(_x - radius, _y, true)) {
_x = (_x+1);
}
while (_root.wall.hitTest(_x + radius, _y, true)) {
_x = (_x-1);
}
if (((_root.enemy.hitTest(_x, _y + radius, true) or _root.enemy.hitTest(_x, _y - radius, true)) or _root.enemy.hitTest(_x + radius, _y, true)) or _root.enemy.hitTest(_x - radius, _y, true)) {
_x = -35;
_y = 357.4;
_root.deaths++;
exp_sound.start();
}
if (((_root.spikes.hitTest(_x, _y + radius, true) or _root.spikes.hitTest(_x, _y - radius, true)) or _root.spikes.hitTest(_x + radius, _y, true)) or _root.spikes.hitTest(_x - radius, _y, true)) {
_x = -35;
_y = 357.4;
_root.deaths++;
exp_sound3.start();
}
if (((_root.door.hitTest(_x, _y + radius, true) or _root.door.hitTest(_x, _y - radius, true)) or _root.door.hitTest(_x + radius, _y, true)) or _root.door.hitTest(_x - radius, _y, true)) {
_root.lvl++;
_root.gotoAndStop("fade2");
}
if (_root.coin.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin._x = -100;
exp_sound2.start();
}
if (_root.coin2.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin2._x = -100;
exp_sound2.start();
}
if (_root.coin3.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin3._x = -100;
exp_sound2.start();
}
if (_root.key.hitTest(_x, _y, true)) {
_root.gotkey = 1;
_root.key._x = -100;
}
if (((_root.lockeddoor.hitTest(_x, _y + radius, true) or _root.lockeddoor.hitTest(_x, _y - radius, true)) or _root.lockeddoor.hitTest(_x + radius, _y, true)) or _root.lockeddoor.hitTest(_x - radius, _y, true)) {
if (_root.gotkey == 1) {
_root.lockeddoor._x = -100;
} else {
_y = (_y + 3);
}
}
};
}
Frame 46
stop();
Instance of Symbol 69 MovieClip "Player" in Frame 46
onClipEvent (load) {
hero_speed = 3;
radius = 13;
exp_sound = new Sound();
exp_sound.attachSound("die");
exp_sound2 = new Sound();
exp_sound2.attachSound("coin");
exp_sound3 = new Sound();
exp_sound3.attachSound("spikes");
onEnterFrame = function () {
xspeed = 0;
yspeed = 0;
if (Key.isDown(65)) {
Player.play;
xspeed = xspeed - hero_speed;
}
if (Key.isDown(68)) {
xspeed = xspeed + hero_speed;
}
if (Key.isDown(87)) {
yspeed = yspeed - hero_speed;
}
if (Key.isDown(83)) {
yspeed = yspeed + hero_speed;
}
if ((xspeed != 0) and (yspeed != 0)) {
xspeed = xspeed * 0.707;
yspeed = yspeed * 0.707;
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
switch (xspeed) {
case hero_speed :
this._rotation = 90;
break;
case -hero_speed :
this._rotation = -90;
break;
default :
switch (yspeed) {
case hero_speed :
this._rotation = 180;
break;
case -hero_speed :
this._rotation = 0;
break;
case hero_speed * 0.707 :
if (xspeed == (hero_speed * 0.707)) {
this._rotation = 135;
}
if ((xspeed = xspeed - (hero_speed * 0.707))) {
this._rotation = -135;
}
break;
case (-hero_speed) * 0.707 :
if (xspeed == (hero_speed * 0.707)) {
this._rotation = 45;
}
if (!((xspeed = xspeed - (hero_speed * 0.707)))) {
break;
}
this._rotation = -45;
}
}
while (_root.wall.hitTest(_x, _y + radius, true)) {
_y = (_y-1);
}
while (_root.wall.hitTest(_x, _y - radius, true)) {
_y = (_y+1);
}
while (_root.wall.hitTest(_x - radius, _y, true)) {
_x = (_x+1);
}
while (_root.wall.hitTest(_x + radius, _y, true)) {
_x = (_x-1);
}
if (((_root.enemy.hitTest(_x, _y + radius, true) or _root.enemy.hitTest(_x, _y - radius, true)) or _root.enemy.hitTest(_x + radius, _y, true)) or _root.enemy.hitTest(_x - radius, _y, true)) {
_x = 500;
_y = 435;
_root.deaths++;
exp_sound.start();
}
if (((_root.spikes.hitTest(_x, _y + radius, true) or _root.spikes.hitTest(_x, _y - radius, true)) or _root.spikes.hitTest(_x + radius, _y, true)) or _root.spikes.hitTest(_x - radius, _y, true)) {
_x = 500;
_y = 435;
_root.deaths++;
exp_sound3.start();
}
if (((_root.door.hitTest(_x, _y + radius, true) or _root.door.hitTest(_x, _y - radius, true)) or _root.door.hitTest(_x + radius, _y, true)) or _root.door.hitTest(_x - radius, _y, true)) {
_root.lvl++;
_root.gotoAndStop("fade3");
}
if (_root.coin.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin._x = -100;
exp_sound2.start();
}
if (_root.coin2.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin2._x = -100;
exp_sound2.start();
}
if (_root.coin3.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin3._x = -100;
exp_sound2.start();
}
};
}
Frame 64
stop();
gotkey = 0;
Instance of Symbol 69 MovieClip "Player" in Frame 64
onClipEvent (load) {
hero_speed = 3;
radius = 13;
exp_sound = new Sound();
exp_sound.attachSound("die");
exp_sound2 = new Sound();
exp_sound2.attachSound("coin");
exp_sound3 = new Sound();
exp_sound3.attachSound("spikes");
exp_sound4 = new Sound();
exp_sound4.attachSound("unlock");
onEnterFrame = function () {
xspeed = 0;
yspeed = 0;
if (Key.isDown(65)) {
Player.play;
xspeed = xspeed - hero_speed;
}
if (Key.isDown(68)) {
xspeed = xspeed + hero_speed;
}
if (Key.isDown(87)) {
yspeed = yspeed - hero_speed;
}
if (Key.isDown(83)) {
yspeed = yspeed + hero_speed;
}
if ((xspeed != 0) and (yspeed != 0)) {
xspeed = xspeed * 0.707;
yspeed = yspeed * 0.707;
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
switch (xspeed) {
case hero_speed :
this._rotation = 90;
break;
case -hero_speed :
this._rotation = -90;
break;
default :
switch (yspeed) {
case hero_speed :
this._rotation = 180;
break;
case -hero_speed :
this._rotation = 0;
break;
case hero_speed * 0.707 :
if (xspeed == (hero_speed * 0.707)) {
this._rotation = 135;
}
if ((xspeed = xspeed - (hero_speed * 0.707))) {
this._rotation = -135;
}
break;
case (-hero_speed) * 0.707 :
if (xspeed == (hero_speed * 0.707)) {
this._rotation = 45;
}
if (!((xspeed = xspeed - (hero_speed * 0.707)))) {
break;
}
this._rotation = -45;
}
}
while (_root.wall.hitTest(_x, _y + radius, true)) {
_y = (_y-1);
}
while (_root.wall.hitTest(_x, _y - radius, true)) {
_y = (_y+1);
}
while (_root.wall.hitTest(_x - radius, _y, true)) {
_x = (_x+1);
}
while (_root.wall.hitTest(_x + radius, _y, true)) {
_x = (_x-1);
}
if (((_root.enemy.hitTest(_x, _y + radius, true) or _root.enemy.hitTest(_x, _y - radius, true)) or _root.enemy.hitTest(_x + radius, _y, true)) or _root.enemy.hitTest(_x - radius, _y, true)) {
_x = 40;
_y = 430;
_root.deaths++;
exp_sound.start();
}
if (((_root.spikes.hitTest(_x, _y + radius, true) or _root.spikes.hitTest(_x, _y - radius, true)) or _root.spikes.hitTest(_x + radius, _y, true)) or _root.spikes.hitTest(_x - radius, _y, true)) {
_x = 40;
_y = 430;
_root.deaths++;
exp_sound3.start();
}
if (((_root.spikes2.hitTest(_x, _y + radius, true) or _root.spikes2.hitTest(_x, _y - radius, true)) or _root.spikes2.hitTest(_x + radius, _y, true)) or _root.spikes2.hitTest(_x - radius, _y, true)) {
_x = 40;
_y = 430;
_root.deaths++;
exp_sound3.start();
}
if (((_root.door.hitTest(_x, _y + radius, true) or _root.door.hitTest(_x, _y - radius, true)) or _root.door.hitTest(_x + radius, _y, true)) or _root.door.hitTest(_x - radius, _y, true)) {
_root.lvl++;
_root.gotoAndStop("fade4");
}
if (_root.coin.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin._x = -100;
exp_sound2.start();
}
if (_root.coin2.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin2._x = -100;
exp_sound2.start();
}
if (_root.coin3.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin3._x = -100;
exp_sound2.start();
}
if (_root.key.hitTest(_x, _y, true)) {
_root.gotkey = 1;
_root.key._x = -100;
exp_sound2.start();
}
if (((_root.lockeddoor.hitTest(_x, _y + radius, true) or _root.lockeddoor.hitTest(_x, _y - radius, true)) or _root.lockeddoor.hitTest(_x + radius, _y, true)) or _root.lockeddoor.hitTest(_x - radius, _y, true)) {
if (_root.gotkey == 1) {
_root.lockeddoor._x = -100;
exp_sound4.start();
} else {
_y = (_y + 3);
}
}
};
}
Frame 86
stop();
gotkey = 0;
Instance of Symbol 69 MovieClip "Player" in Frame 86
onClipEvent (load) {
hero_speed = 3;
radius = 13;
exp_sound = new Sound();
exp_sound.attachSound("die");
exp_sound2 = new Sound();
exp_sound2.attachSound("coin");
exp_sound3 = new Sound();
exp_sound3.attachSound("spikes");
exp_sound4 = new Sound();
exp_sound4.attachSound("unlock");
onEnterFrame = function () {
xspeed = 0;
yspeed = 0;
if (Key.isDown(65)) {
Player.play;
xspeed = xspeed - hero_speed;
}
if (Key.isDown(68)) {
xspeed = xspeed + hero_speed;
}
if (Key.isDown(87)) {
yspeed = yspeed - hero_speed;
}
if (Key.isDown(83)) {
yspeed = yspeed + hero_speed;
}
if ((xspeed != 0) and (yspeed != 0)) {
xspeed = xspeed * 0.707;
yspeed = yspeed * 0.707;
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
switch (xspeed) {
case hero_speed :
this._rotation = 90;
break;
case -hero_speed :
this._rotation = -90;
break;
default :
switch (yspeed) {
case hero_speed :
this._rotation = 180;
break;
case -hero_speed :
this._rotation = 0;
break;
case hero_speed * 0.707 :
if (xspeed == (hero_speed * 0.707)) {
this._rotation = 135;
}
if ((xspeed = xspeed - (hero_speed * 0.707))) {
this._rotation = -135;
}
break;
case (-hero_speed) * 0.707 :
if (xspeed == (hero_speed * 0.707)) {
this._rotation = 45;
}
if (!((xspeed = xspeed - (hero_speed * 0.707)))) {
break;
}
this._rotation = -45;
}
}
while (_root.wall.hitTest(_x, _y + radius, true)) {
_y = (_y-1);
}
while (_root.wall.hitTest(_x, _y - radius, true)) {
_y = (_y+1);
}
while (_root.wall.hitTest(_x - radius, _y, true)) {
_x = (_x+1);
}
while (_root.wall.hitTest(_x + radius, _y, true)) {
_x = (_x-1);
}
if (((_root.enemy.hitTest(_x, _y + radius, true) or _root.enemy.hitTest(_x, _y - radius, true)) or _root.enemy.hitTest(_x + radius, _y, true)) or _root.enemy.hitTest(_x - radius, _y, true)) {
_x = 590;
_y = 30;
_root.deaths++;
exp_sound.start();
}
if (((_root.spikes.hitTest(_x, _y + radius, true) or _root.spikes.hitTest(_x, _y - radius, true)) or _root.spikes.hitTest(_x + radius, _y, true)) or _root.spikes.hitTest(_x - radius, _y, true)) {
_x = 590;
_y = 30;
_root.deaths++;
exp_sound3.start();
}
if (((_root.spikes2.hitTest(_x, _y + radius, true) or _root.spikes2.hitTest(_x, _y - radius, true)) or _root.spikes2.hitTest(_x + radius, _y, true)) or _root.spikes2.hitTest(_x - radius, _y, true)) {
_x = 590;
_y = 30;
_root.deaths++;
exp_sound3.start();
}
if (((_root.door.hitTest(_x, _y + radius, true) or _root.door.hitTest(_x, _y - radius, true)) or _root.door.hitTest(_x + radius, _y, true)) or _root.door.hitTest(_x - radius, _y, true)) {
_root.lvl++;
_root.gotoAndStop("fade5");
}
if (_root.coin.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin._x = -100;
exp_sound2.start();
}
if (_root.coin2.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin2._x = -100;
exp_sound2.start();
}
if (_root.coin3.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin3._x = -100;
exp_sound2.start();
}
if (_root.key.hitTest(_x, _y, true)) {
_root.gotkey = 1;
_root.key._x = -100;
exp_sound2.start();
}
if (((_root.lockeddoor.hitTest(_x, _y + radius, true) or _root.lockeddoor.hitTest(_x, _y - radius, true)) or _root.lockeddoor.hitTest(_x + radius, _y, true)) or _root.lockeddoor.hitTest(_x - radius, _y, true)) {
if (_root.gotkey == 1) {
_root.lockeddoor._x = -100;
exp_sound4.start();
} else {
_x = (_x - 3);
}
}
};
}
Frame 101
stop();
gotkey = 0;
Instance of Symbol 69 MovieClip "Player" in Frame 101
onClipEvent (load) {
hero_speed = 3;
radius = 13;
exp_sound = new Sound();
exp_sound.attachSound("die");
exp_sound2 = new Sound();
exp_sound2.attachSound("coin");
exp_sound3 = new Sound();
exp_sound3.attachSound("spikes");
exp_sound4 = new Sound();
exp_sound4.attachSound("unlock");
onEnterFrame = function () {
xspeed = 0;
yspeed = 0;
if (Key.isDown(65)) {
Player.play;
xspeed = xspeed - hero_speed;
}
if (Key.isDown(68)) {
xspeed = xspeed + hero_speed;
}
if (Key.isDown(87)) {
yspeed = yspeed - hero_speed;
}
if (Key.isDown(83)) {
yspeed = yspeed + hero_speed;
}
if ((xspeed != 0) and (yspeed != 0)) {
xspeed = xspeed * 0.707;
yspeed = yspeed * 0.707;
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
switch (xspeed) {
case hero_speed :
this._rotation = 90;
break;
case -hero_speed :
this._rotation = -90;
break;
default :
switch (yspeed) {
case hero_speed :
this._rotation = 180;
break;
case -hero_speed :
this._rotation = 0;
break;
case hero_speed * 0.707 :
if (xspeed == (hero_speed * 0.707)) {
this._rotation = 135;
}
if ((xspeed = xspeed - (hero_speed * 0.707))) {
this._rotation = -135;
}
break;
case (-hero_speed) * 0.707 :
if (xspeed == (hero_speed * 0.707)) {
this._rotation = 45;
}
if (!((xspeed = xspeed - (hero_speed * 0.707)))) {
break;
}
this._rotation = -45;
}
}
while (_root.wall.hitTest(_x, _y + radius, true)) {
_y = (_y-1);
}
while (_root.wall.hitTest(_x, _y - radius, true)) {
_y = (_y+1);
}
while (_root.wall.hitTest(_x - radius, _y, true)) {
_x = (_x+1);
}
while (_root.wall.hitTest(_x + radius, _y, true)) {
_x = (_x-1);
}
if (((_root.enemy.hitTest(_x, _y + radius, true) or _root.enemy.hitTest(_x, _y - radius, true)) or _root.enemy.hitTest(_x + radius, _y, true)) or _root.enemy.hitTest(_x - radius, _y, true)) {
_x = 508;
_y = 450;
_root.deaths++;
exp_sound.start();
}
if (((_root.spikes.hitTest(_x, _y + radius, true) or _root.spikes.hitTest(_x, _y - radius, true)) or _root.spikes.hitTest(_x + radius, _y, true)) or _root.spikes.hitTest(_x - radius, _y, true)) {
_x = 508;
_y = 450;
_root.deaths++;
exp_sound3.start();
}
if (((_root.spikes2.hitTest(_x, _y + radius, true) or _root.spikes2.hitTest(_x, _y - radius, true)) or _root.spikes2.hitTest(_x + radius, _y, true)) or _root.spikes2.hitTest(_x - radius, _y, true)) {
_x = 508;
_y = 450;
_root.deaths++;
exp_sound3.start();
}
if (((_root.door.hitTest(_x, _y + radius, true) or _root.door.hitTest(_x, _y - radius, true)) or _root.door.hitTest(_x + radius, _y, true)) or _root.door.hitTest(_x - radius, _y, true)) {
_root.lvl++;
_root.gotoAndStop("end");
}
if (_root.coin.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin._x = -100;
exp_sound2.start();
}
if (_root.coin2.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin2._x = -100;
exp_sound2.start();
}
if (_root.coin3.hitTest(_x, _y, true)) {
_root.score = _root.score + 500;
_root.coin3._x = -100;
exp_sound2.start();
}
if (_root.key.hitTest(_x, _y, true)) {
_root.gotkey = 1;
_root.key._x = -100;
exp_sound2.start();
}
if (((_root.lockeddoor.hitTest(_x, _y + radius, true) or _root.lockeddoor.hitTest(_x, _y - radius, true)) or _root.lockeddoor.hitTest(_x + radius, _y, true)) or _root.lockeddoor.hitTest(_x - radius, _y, true)) {
if (_root.gotkey == 1) {
_root.lockeddoor._x = -100;
exp_sound4.start();
} else {
_x = (_x + 3);
}
}
};
}
Frame 117
stop();
totalscore = Math.round(score / (0.5 * (deaths + 1)));
exp_sound12.stop();
exp_sound13 = new Sound();
exp_sound13.attachSound("victory");
exp_sound13.start();
Instance of Symbol 139 MovieClip "rank2" in Frame 123
onClipEvent (load) {
if (_root.totalscore <= 1499) {
_visible = false;
}
}
Instance of Symbol 142 MovieClip "rank3" in Frame 123
onClipEvent (load) {
if (_root.totalscore <= 3999) {
_visible = false;
}
}
Instance of Symbol 145 MovieClip "rank4" in Frame 123
onClipEvent (load) {
if (_root.totalscore <= 9999) {
_visible = false;
}
}
Symbol 23 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay ("loaded");
}
Symbol 23 MovieClip Frame 2
gotoAndPlay (1);
Symbol 23 MovieClip Frame 40
_root.gotoAndStop("prestart");
Symbol 31 Button
on (release) {
getURL ("http://www.daa-studios.com", _blank);
}
Symbol 35 Button
on (release) {
_root.gotoAndStop("about");
}
Symbol 38 Button
on (release) {
_root.gotoAndStop("instructions");
}
Symbol 41 Button
on (release) {
play();
}
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 40
_root.gotoAndStop("fade1");
Symbol 47 MovieClip Frame 80
_root.gotoAndStop("lvl1");
Symbol 50 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 80
_root.gotoAndStop("lvl2");
Symbol 86 MovieClip Frame 80
_root.gotoAndStop("lvl3");
Symbol 103 MovieClip Frame 80
_root.gotoAndStop("lvl4");
Symbol 112 MovieClip Frame 80
_root.gotoAndStop("lvl5");
Symbol 133 Button
on (release) {
_root.gotoAndStop("rank");
}
Symbol 148 Button
on (release) {
_root.gotoAndStop("prestart");
}
Symbol 153 Button
on (release) {
gotoAndStop ("instructions2");
}
Symbol 159 Button
on (release) {
gotoAndStop ("start");
}