Frame 1
lineStyle(8, 0, 100);
x = (score = 0);
SPACING = 220;
stop();
_root.setMask(masku);
points = new Array(200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200);
i = 0;
while (i < 11) {
y = ((Math.random() * (100 + ((400 - SPACING) / 5))) + (Math.sin(getTimer() / 1000) * 50)) + ((11 - i) * 10);
points.push(y);
points.shift();
i++;
}
_root.onEnterFrame = function () {
if ((x % 10) == 0) {
y = (Math.random() * (100 + ((400 - SPACING) / 5))) + (Math.sin(getTimer() / 1000) * 50);
points.push(y);
points.shift();
}
clear();
beginFill(35071, 100);
moveTo(0, 400);
i = 0;
while (i < 11) {
lineTo((62 * i) - ((x % 10) * 6.2), points[i] + SPACING);
i++;
}
lineTo(551, 400);
lineTo(0, 400);
endFill();
beginFill(35071, 100);
moveTo(0, 0);
i = 0;
while (i < 11) {
lineTo((62 * i) - ((x % 10) * 6.2), points[i] - (SPACING / 2));
i++;
}
lineTo(551, 0);
lineTo(0, 0);
endFill();
x = x + 2;
if (SPACING > 110) {
SPACING = SPACING - 0.04;
}
i = 0;
while (i < 11) {
if (waha.hit.hitTest((62 * i) - ((x % 10) * 6.2), points[i] + SPACING, false) or waha.hit.hitTest((62 * i) - ((x % 10) * 6.2), points[i] - (SPACING / 2), false)) {
gotoAndPlay (2);
}
i++;
}
score++;
scoremon.swapDepths(1048575);
};
Instance of Symbol 15 MovieClip "waha" in Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
_y = (_y - 4);
}
if (Key.isDown(40)) {
_y = (_y + 4);
}
if (Key.isDown(37)) {
_x = (_x - 4);
}
if (Key.isDown(39)) {
_x = (_x + 4);
}
if (_x < 0) {
_x = 0;
} else if (_x > 530) {
_x = 530;
}
if (_y < 0) {
_y = 0;
} else if (_y > 300) {
_y = 300;
}
}
Frame 2
stop();
stopAllSounds();
_root.onEnterFrame = function () {
};
_root.clear();
Symbol 3 MovieClip [cloud1] Frame 1
onEnterFrame = function () {
this._x = this._x - 25;
if (this._x < -200) {
this.unloadMovie();
}
};
Symbol 6 MovieClip [cloud2] Frame 1
onEnterFrame = function () {
this._x = this._x - 32;
if (this._x < -200) {
this.unloadMovie();
}
};
Symbol 16 MovieClip Frame 1
stop();
onEnterFrame = function () {
if ((Math.random() * 100) < 2) {
attachMovie("cloud1", ("clouds" + getTimer()) + "LOL", this.getNextHighestDepth(), {_x:700, _y:Math.random() * 370, _xscale:80 + (40 * Math.random())});
}
if ((Math.random() * 100) < 2) {
attachMovie("cloud2", ("clouds2" + getTimer()) + "LAWL", this.getNextHighestDepth(), {_x:700, _y:Math.random() * 370, _xscale:80 + (40 * Math.random())});
}
};
Symbol 26 Button
on (release) {
gotoAndStop (1);
}
on (keyPress "<Space>") {
gotoAndStop (1);
}
on (keyPress "<Enter>") {
gotoAndStop (1);
}