Frame 1
stop();
_root.highscore = 0;
Frame 2
MovieClip.prototype.val = function (n) {
return(((n > 0) ? 1 : (((n < 0) ? -1 : 0))));
};
ar = new Array();
_root.score = 0;
a = 50;
i = 0;
while (i <= 550) {
a = a + ((random(3) - 1) * 20);
ar[i / 20] = Math.abs(a);
i = i + 20;
}
l = ar.length;
_root.onEnterFrame = function () {
if (_currentframe == 2) {
_root.createEmptyMovieClip("t", 2);
_root.createEmptyMovieClip("t2", -2);
_root.createEmptyMovieClip("b", 1);
_root.createEmptyMovieClip("b2", -10);
t.lineStyle(2, "0x000000");
t2.lineStyle(0, "0x000000", 0);
b.lineStyle(2, "0x000000");
b2.lineStyle(0, "0x000000", 0);
t.beginFill("0x00DF00");
t2.beginFill("0x00DF00", 0);
b.beginFill("0x00DF00");
b2.beginFill("0x000000", 0);
_root.bgt.setMask(t);
_root.bgb.setMask(b);
t.moveTo(0, 0);
t2.moveTo(0, 0);
b.moveTo(0, 400);
b2.moveTo(0, 400);
i = 0;
while (i < l) {
t.curveTo((i * 20) + 5, ar[i] - 3, i * 20, ar[i] + (((i + _root.score) % 25) ? 10 : 75));
t2.curveTo((i * 20) + 5, ar[i] - 3, i * 20, ar[i] + (((i + _root.score) % 25) ? 10 : 75));
b.curveTo((i * 20) + 5, ar[i] + Math.max(150, 300 - (_root.score / 10)), i * 20, (ar[i] + Math.max(150, 300 - (_root.score / 10))) - ((((i + _root.score) + 12) % 25) ? 5 : 25));
b2.curveTo((i * 20) + 5, ar[i] + Math.max(150, 300 - (_root.score / 10)), i * 20, (ar[i] + Math.max(150, 300 - (_root.score / 10))) - ((((i + _root.score) + 12) % 25) ? 5 : 25));
i++;
}
ar = ar.slice(1, l);
ar.push(Math.min(200, Math.abs(ar[l - 2] + (val(random(int(3 + (_root.score / 250))) - int((3 + (_root.score / 250)) / 2)) * 20))));
t.lineTo(550, 0);
t2.lineTo(550, 0);
b.lineTo(550, 400);
b2.lineTo(550, 400);
t.lineTo(0, 0);
t2.lineTo(0, 0);
b.lineTo(0, 400);
b2.lineTo(0, 400);
t.endFill();
t2.endFill();
b.endFill();
b2.endFill();
i = _root.obsticle._height / -2;
while (i <= (_root.obsticle._height / 2)) {
if (_root.b2.hitTest(_root.dragon._x + i, _root.dragon._y + 10, true) || (_root.t2.hitTest(_root.dragon._x + i, _root.dragon._y - 10, true))) {
_root.play();
}
i++;
}
_root.score++;
_root.sc = "score: " + _root.score;
((_root.score > _root.highscore) ? ((_root.highscore = _root.score)) : null);
if (!(score % 100)) {
_root.obsticle._x = 560;
_root.obsticle._y = ar[l - 1] + (Math.max(75, 300 - (_root.score / 20)) / 2);
}
}
};
Instance of Symbol 42 MovieClip "dragon" in Frame 2
onClipEvent (load) {
y = (mouse = 0);
}
onClipEvent (mouseDown) {
mouse = true;
}
onClipEvent (mouseUp) {
mouse = false;
}
onClipEvent (enterFrame) {
(mouse ? (this.play()) : null);
y = Math.min(Math.max(-9, y), 9);
_y = (_y - ((y = y + ((mouse * 2) - 1))));
_rotation = (180 - y);
i = -23;
while (i <= 23) {
if (this.hitTest(_root.obsticle._x, _root.obsticle._y - i, true)) {
_root.play();
}
i++;
}
}
Instance of Symbol 45 MovieClip "obsticle" in Frame 2
onClipEvent (enterFrame) {
_height = (55 - int(score / 40));
_x = (_x - 20);
}
Frame 3
stop();
_root.t2.clear();
_root.b2.clear();
_root.t.clear();
_root.b.clear();
stopAllSounds();
i = 0;
onEnterFrame = function () {
i++;
_root.hs = (((int(i / 24) % 2) && (_root.highscore == _root.score)) ? "New HighScore!" : ((("score: " + _root.score) + " highScore: ") + _root.highscore));
};
Symbol 13 MovieClip Frame 1
with (_parent) {
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.useHandCursor = true;
getURL("http://www.gamesofgondor.com/", "_blank");
}
};
}
Symbol 19 Button
on (release) {
_root.nextFrame();
}
Symbol 23 Button
on (press) {
_quality = "low";
}
Symbol 24 Button
on (press) {
_quality = "medium";
}
Symbol 25 Button
on (press) {
_quality = "high";
}
Symbol 26 MovieClip Frame 1
Stage.showMenu = false;
stop();
Instance of Symbol 13 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (load) {
w = _width;
}
onClipEvent (enterFrame) {
_width = ((_root.getBytesLoaded() / _root.getBytesTotal()) * w);
_parent.mid._width = (_width / w) * 269.6;
_parent.right._x = _parent.mid._x + _parent.mid._width;
(int(_root.getBytesLoaded() / _root.getBytesTotal()) ? (_parent.nextFrame()) : null);
}
Symbol 26 MovieClip Frame 2
Stage.showMenu = true;
Instance of Symbol 13 MovieClip in Symbol 26 MovieClip Frame 2
onClipEvent (load) {
w = _width;
}
onClipEvent (enterFrame) {
_width = ((_root.getBytesLoaded() / _root.getBytesTotal()) * w);
_parent.mid._width = (_width / w) * 269.6;
_parent.right._x = _parent.mid._x + _parent.mid._width;
(int(_root.getBytesLoaded() / _root.getBytesTotal()) ? (_parent.nextFrame()) : null);
}
Symbol 42 MovieClip Frame 1
stop();
Symbol 49 Button
on (release) {
getURL ("http://www.purevolume.com/adamberry", "_blank");
}
Symbol 50 Button
on (release) {
_root.prevFrame();
}
Symbol 56 Button
on (release) {
getURL ("http://www.burstfilms.com/bbs/index.php?", "_blank");
}