Frame 1
if (_root._framesloaded < 4) {
} else {
this.gotoAndStop(3);
}
Frame 3
hard = [40];
var trail = 1;
var second = 0;
var explo = 0;
var blast = 0;
var tscore = 0;
var bonuscount = 0;
var wave = 1;
_root._rotation = 0;
hard.push([2, 0.9, 1]);
hard.push([5, 0.9, 1]);
hard.push([6, 1, 2]);
hard.push([10, 1.1, 2]);
hard.push([15, 1.1, 2]);
hard.push([20, 1.1, 3]);
hard.push([30, 1.1, 3]);
hard.push([40, 1.2, 3]);
hard.push([40, 1.1, 4]);
hard.push([40, 1.2, 4]);
hard.push([50, 1.1, 5]);
hard.push([50, 1.2, 5]);
hard.push([60, 1.3, 5]);
hard.push([60, 1.2, 6]);
hard.push([70, 1.3, 6]);
hard.push([80, 1.4, 6]);
hard.push([80, 1.4, 6]);
stop();
Frame 4
_root._rotation = 0;
var hitplacey = -100;
var hitplacex = -100;
var numEnemy = hard[_root.wave][2];
var speed = hard[_root.wave][1];
var rocks = (hard[_root.wave][0] - numEnemy);
var out = 0;
var out2 = 0;
var out3 = 0;
var out4 = 0;
var frara = 0.7;
i = 2;
while (i <= numEnemy) {
meteor1.duplicateMovieClip("meteor" + i, i + 140);
i++;
}
aplanner.duplicateMovieClip("aplannery", 200);
bonusy.duplicateMovieClip("bonus", 201);
stop();
Instance of Symbol 36 MovieClip "spaceship" in Frame 4
onClipEvent (load) {
var r = _root;
_rotation = 90;
_x = 300;
_y = 300;
var x = _x;
var y = _y;
var hoverno = 0;
var t = 0;
var last_t = 0;
var xspeed = 0;
var yspeed = 0;
var samespeed = 0;
var speed = 3;
var speedper = 0.428571428571429;
var maxspeed = 7;
var oldspeedper = 0;
var accel = 1;
var rot = 90;
var rad = 0.0174532925;
var way = 16;
var maxreached = 1;
}
onClipEvent (enterFrame) {
if (x > 733) {
x = -33;
} else if (x < -33) {
x = 733;
}
if (y < -10) {
samespeed = 0;
x = x + (way * 6);
way = way - (2 * (way - 16));
y = -10;
if (way > 32) {
way = way - 64;
}
if (way < -32) {
way = way + 64;
}
}
if (y > 395) {
samespeed = 0;
way = way - (2 * (way - 16));
y = 395;
if (way > 32) {
way = way - 64;
}
if (way < -32) {
way = way + 64;
}
}
if (Key.isDown(37)) {
samespeed = 0;
way--;
if (way > 32) {
way = way - 64;
}
if (way < -32) {
way = way + 64;
}
}
if (Key.isDown(39)) {
samespeed = 0;
way++;
if (way > 32) {
way = way - 64;
}
if (way < -32) {
way = way + 64;
}
}
if (Key.isDown(38)) {
if (speedper != 1) {
maxreached = 0;
}
oldspeedper = speedper;
speedper = speedper + 0.02;
if (speedper > 1) {
speedper = 1;
}
} else if (Key.isDown(40)) {
if (speedper != 0.2) {
maxreached = 0;
}
oldspeedper = speedper;
speedper = speedper - 0.04;
if (speedper < 0.2) {
speedper = 0.2;
}
}
if (maxreached == 0) {
maxspeed = 8 * speedper;
if (oldperspeed < perspeed) {
if (speed < maxspeed) {
speed = speed + (accel * 0.01);
}
if (speed >= maxspeed) {
speed = maxspeed;
maxreached = 1;
accel = 1;
} else {
accel++;
}
}
if (speed > maxspeed) {
speed = speed - (accel * 0.02);
}
if (speed <= maxspeed) {
speed = maxspeed;
maxreached = -1;
accel = 1;
} else {
accel++;
}
rot = way * 5.625;
_rotation = rot;
rot = rot * rad;
xspeed = speed * Math.sin(rot);
yspeed = speed * Math.cos(rot);
x = x + xspeed;
y = y - yspeed;
} else if (samespeed == 1) {
x = x + xspeed;
y = y - yspeed;
} else {
rot = way * 5.625;
_rotation = rot;
rot = rot * rad;
xspeed = speed * Math.sin(rot);
yspeed = speed * Math.cos(rot);
x = x + xspeed;
y = y - yspeed;
}
r.out = x - 18;
r.out2 = x + 18;
r.out3 = y - 18;
r.out4 = y + 18;
_x = x;
_y = y;
samespeed = 1;
updateAfterEvent();
}
Instance of Symbol 46 MovieClip "meteor1" in Frame 4
onClipEvent (load) {
function reset() {
if ((r.score / 10) > (r.rocks - r.numEnemy)) {
if (r.score == (r.rocks * 10)) {
_visible = false;
_x = -900;
r.gotoAndStop(5);
} else {
r.score = r.score + 10;
_visible = true;
_x = -900;
}
} else {
r.score = r.score + 10;
gotoAndStop (1);
angle = random(20) + 6;
if (angle < 10) {
xadd = 20;
} else {
xadd = 0;
}
_rotation = (-angle);
angle = angle * (Math.PI/180);
_y = ((random(60) * -1) - 20);
_x = ((xadd + random(510)) + (_y * Math.tan(angle)));
if (r.frara == null) {
enemySpeed = ((random(int(r.speed * 4)) / 4) / 2.1) + 1;
} else {
enemySpeed = (r.frara * ((random(int(r.speed * 4)) / 4) / 2.1)) + 1;
}
enemySpeed = int(enemySpeed * 10) / 10;
enemydir = enemySpeed * Math.tan(angle);
_visible = true;
yy = _y;
xx = _x;
}
}
var sorted = 0;
var frara = 0.7;
var angle = 0;
var xadd = 0;
var enemySpeed = 0;
var enemydir = 0;
var yy = 0;
var xx = 0;
var r = _root;
r.score = -(r.numEnemy * 10);
reset();
}
onClipEvent (enterFrame) {
yy = yy + enemySpeed;
xx = xx + enemydir;
_y = yy;
_x = xx;
if (yy < r.out4) {
if (xx < r.out2) {
if (xx > r.out) {
if (yy > r.out3) {
if (_currentframe == 1) {
_root.tscore = _root.tscore + 10;
spin = Math.abs(r.spaceship._rotation) - Math.abs(_rotation);
if (yy > 350) {
if (_root.wave == (_root.bonuscount + 1)) {
_root.bonuscount++;
}
_root.tscore = _root.tscore + 40;
r.hitplacex = xx;
r.hitplacey = yy;
r.bonus.gotoAndPlay(1);
}
if (spin > 135) {
gotoAndPlay (25);
} else if (spin < 45) {
gotoAndPlay (36);
} else if ((spin >= 45) && (spin <= 135)) {
if (r.spaceship._rotation > 0) {
gotoAndPlay (2);
} else {
gotoAndPlay (13);
}
}
}
}
}
}
}
if (yy > 440) {
if (_visible == true) {
if (sorted == 0) {
sorted = 1;
_y = 440;
gotoAndStop (47);
}
}
}
if (r.blast == 1) {
if (sorted == 0) {
if (yy < 370) {
gotoAndPlay (25);
sorted = 1;
}
}
}
}
Frame 5
_root._rotation = 0;
removeMovieClip(_root.meteor1);
removeMovieClip(_root.meteor2);
removeMovieClip(_root.meteor3);
removeMovieClip(_root.meteor4);
removeMovieClip(_root.meteor5);
removeMovieClip(_root.meteor6);
removeMovieClip(_root.meteor7);
removeMovieClip(_root.meteor8);
removeMovieClip(_root.meteor9);
removeMovieClip(_root.meteor10);
removeMovieClip(_root.meteor11);
removeMovieClip(_root.meteor12);
removeMovieClip(_root.meteor13);
removeMovieClip(_root.meteor14);
removeMovieClip(_root.meteor15);
removeMovieClip(_root.meteor);
Instance of Symbol 77 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.wave = _root.wave + 1;
_root.second = 1;
_root.explo = 0;
_root.blast = 0;
_root.score = 0;
_root.bscore = 0;
_root.dscore = 0;
_root.dbscore = 0;
if (_root.wave == 17) {
_root.gotoAndPlay(14);
} else {
_root.gotoAndPlay(4);
}
}
}
Frame 12
i = 0;
while (i <= numEnemy) {
removeMovieClip(_root.meteor);
removeMovieClip(_root.meteor1);
removeMovieClip(_root.meteor2);
removeMovieClip(_root.meteor3);
removeMovieClip(_root.meteor4);
removeMovieClip(_root.meteor5);
removeMovieClip(_root.meteor6);
removeMovieClip(_root.meteor7);
removeMovieClip(_root.meteor8);
removeMovieClip(_root.meteor9);
removeMovieClip(_root.meteor10);
removeMovieClip(_root.meteor11);
removeMovieClip(_root.meteor12);
removeMovieClip(_root.meteor13);
removeMovieClip(_root.meteor14);
removeMovieClip(_root.meteor15);
killMovieClip(_root["meteor" + i]);
i++;
}
_root.wave = _root.wave + 1;
_root.second = 1;
_root.explo = 0;
_root.blast = 0;
_root.score = 0;
_root.bscore = 0;
gotoAndPlay (4);
Frame 13
_root._rotation = 0;
_root.out = 1000;
_root.out2 = 1000;
_root.out3 = 1000;
_root.out4 = 1000;
i = 0;
while (i <= numEnemy) {
removeMovieClip(_root.meteor);
removeMovieClip(_root.meteor1);
removeMovieClip(_root.meteor2);
removeMovieClip(_root.meteor3);
removeMovieClip(_root.meteor4);
removeMovieClip(_root.meteor5);
removeMovieClip(_root.meteor6);
removeMovieClip(_root.meteor7);
removeMovieClip(_root.meteor8);
removeMovieClip(_root.meteor9);
removeMovieClip(_root.meteor10);
removeMovieClip(_root.meteor11);
removeMovieClip(_root.meteor12);
removeMovieClip(_root.meteor13);
removeMovieClip(_root.meteor14);
removeMovieClip(_root.meteor15);
killMovieClip(_root["meteor" + i]);
i++;
}
stop();
Instance of Symbol 118 MovieClip in Frame 13
onClipEvent (load) {
wavey = _root.wave;
if (wavey == 1) {
gotoAndStop (1);
}
if (wavey == 2) {
gotoAndStop (2);
}
if (wavey == 3) {
gotoAndStop (3);
}
if (wavey == 4) {
gotoAndStop (4);
}
if (wavey == 5) {
gotoAndStop (5);
}
if (wavey == 6) {
gotoAndStop (6);
}
if ((wavey == 7) || (wavey == 8)) {
gotoAndStop (7);
}
if ((wavey == 9) || (wavey == 10)) {
gotoAndStop (8);
}
if (wavey == 11) {
gotoAndStop (9);
}
if ((wavey == 12) || (wavey == 13)) {
gotoAndStop (10);
}
if (wavey == 14) {
gotoAndStop (11);
}
if (wavey == 15) {
gotoAndStop (12);
}
if (wavey == 16) {
gotoAndStop (13);
}
}
Instance of Symbol 77 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.gotoAndPlay(1);
}
}
Frame 14
_root._rotation = 0;
_root.out = 1000;
_root.out2 = 1000;
_root.out3 = 1000;
_root.out4 = 1000;
i = 0;
while (i <= numEnemy) {
removeMovieClip(_root.meteor);
removeMovieClip(_root.meteor1);
removeMovieClip(_root.meteor2);
removeMovieClip(_root.meteor3);
removeMovieClip(_root.meteor4);
removeMovieClip(_root.meteor5);
removeMovieClip(_root.meteor6);
removeMovieClip(_root.meteor7);
removeMovieClip(_root.meteor8);
removeMovieClip(_root.meteor9);
removeMovieClip(_root.meteor10);
removeMovieClip(_root.meteor11);
removeMovieClip(_root.meteor12);
removeMovieClip(_root.meteor13);
removeMovieClip(_root.meteor14);
removeMovieClip(_root.meteor15);
killMovieClip(_root["meteor" + i]);
i++;
}
stop();
Instance of Symbol 118 MovieClip in Frame 14
onClipEvent (load) {
wavey = _root.wave;
if (wavey == 1) {
gotoAndStop (1);
}
if (wavey == 2) {
gotoAndStop (2);
}
if (wavey == 3) {
gotoAndStop (3);
}
if (wavey == 4) {
gotoAndStop (4);
}
if (wavey == 5) {
gotoAndStop (5);
}
if (wavey == 6) {
gotoAndStop (6);
}
if ((wavey == 7) || (wavey == 8)) {
gotoAndStop (7);
}
if ((wavey == 9) || (wavey == 10)) {
gotoAndStop (8);
}
if (wavey == 11) {
gotoAndStop (9);
}
if ((wavey == 12) || (wavey == 13)) {
gotoAndStop (10);
}
if (wavey == 14) {
gotoAndStop (11);
}
if (wavey == 15) {
gotoAndStop (12);
}
if (wavey == 16) {
gotoAndStop (13);
}
}
Symbol 6 Button
on (release) {
_parent.prevFrame();
}
Symbol 9 Button
on (release) {
_parent.nextFrame();
}
Symbol 23 Button
on (release) {
gotoAndStop (4);
}
Symbol 45 MovieClip Frame 1
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
_root.blast = 1;
Symbol 45 MovieClip Frame 2
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 3
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 4
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 5
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
_root.aplannery._visible = 0;
Symbol 45 MovieClip Frame 6
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 7
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 8
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 9
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 10
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 11
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 12
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 13
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 14
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 15
_root._rotation = (-random(3)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 16
_root._rotation = (-random(5)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 17
_root._rotation = (-random(5)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 18
_root._rotation = (-random(5)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 19
_root._rotation = (-random(5)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 20
_root._rotation = (-random(5)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 21
_root._rotation = (-random(5)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 22
_root._rotation = (-random(5)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 23
_root._rotation = (-random(5)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 24
_root._rotation = (-random(5)) * Math.pow(-1, random(1) + 1);
Symbol 45 MovieClip Frame 25
_root._rotation = 0;
Symbol 45 MovieClip Frame 31
_root.gotoAndStop(13);
Symbol 45 MovieClip Frame 32
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 2
_root.snd.start();
Symbol 46 MovieClip Frame 12
this._visible = false;
reset();
stop();
Symbol 46 MovieClip Frame 13
_root.snd.start();
Symbol 46 MovieClip Frame 24
this._visible = false;
reset();
stop();
Symbol 46 MovieClip Frame 25
_root.snd.start();
Symbol 46 MovieClip Frame 35
this._visible = false;
reset();
stop();
Symbol 46 MovieClip Frame 36
_root.snd.start();
Symbol 46 MovieClip Frame 46
this._visible = false;
if (_root.blast == 0) {
reset();
}
stop();
Symbol 46 MovieClip Frame 47
Symbol 55 MovieClip Frame 1
this._x = _root.hitplacex;
if (_root.hitplacey > 390) {
this._y = 390;
} else {
this._y = _root.hitplacey;
}
Symbol 55 MovieClip Frame 25
stop();
Symbol 75 Button
on (press) {
_root.wave = _root.wave + 1;
_root.second = 1;
_root.explo = 0;
_root.blast = 0;
_root.score = 0;
_root.bscore = 0;
_root.dscore = 0;
_root.dbscore = 0;
if (_root.wave == 17) {
gotoAndPlay (14);
} else {
gotoAndPlay (4);
}
}
Instance of Symbol 10 MovieClip [nexttip] in Symbol 118 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
if (_root.wave > 1) {
_visible = true;
}
}
Symbol 118 MovieClip Frame 2
stop();
Instance of Symbol 10 MovieClip [nexttip] in Symbol 118 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
if (_root.wave > 2) {
_visible = true;
}
}
Symbol 118 MovieClip Frame 3
stop();
Instance of Symbol 10 MovieClip [nexttip] in Symbol 118 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
if (_root.wave > 3) {
_visible = true;
}
}
Symbol 118 MovieClip Frame 4
stop();
Instance of Symbol 10 MovieClip [nexttip] in Symbol 118 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
if (_root.wave > 4) {
_visible = true;
}
}
Symbol 118 MovieClip Frame 5
stop();
Instance of Symbol 10 MovieClip [nexttip] in Symbol 118 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
if (_root.wave > 5) {
_visible = true;
}
}
Symbol 118 MovieClip Frame 6
stop();
Instance of Symbol 10 MovieClip [nexttip] in Symbol 118 MovieClip Frame 6
onClipEvent (load) {
_visible = false;
if (_root.wave > 6) {
_visible = true;
}
}
Symbol 118 MovieClip Frame 7
stop();
Instance of Symbol 10 MovieClip [nexttip] in Symbol 118 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
if (_root.wave > 8) {
_visible = true;
}
}
Symbol 118 MovieClip Frame 8
stop();
Instance of Symbol 10 MovieClip [nexttip] in Symbol 118 MovieClip Frame 8
onClipEvent (load) {
_visible = false;
if (_root.wave > 10) {
_visible = true;
}
}
Symbol 118 MovieClip Frame 9
stop();
Instance of Symbol 10 MovieClip [nexttip] in Symbol 118 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
if (_root.wave > 11) {
_visible = true;
}
}
Symbol 118 MovieClip Frame 10
stop();
Instance of Symbol 10 MovieClip [nexttip] in Symbol 118 MovieClip Frame 10
onClipEvent (load) {
_visible = false;
if (_root.wave > 13) {
_visible = true;
}
}
Symbol 118 MovieClip Frame 11
stop();
Instance of Symbol 10 MovieClip [nexttip] in Symbol 118 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
if (_root.wave > 14) {
_visible = true;
}
}
Symbol 118 MovieClip Frame 12
stop();
Instance of Symbol 10 MovieClip [nexttip] in Symbol 118 MovieClip Frame 12
onClipEvent (load) {
_visible = false;
if (_root.wave > 15) {
_visible = true;
}
}
Symbol 118 MovieClip Frame 13
stop();
Instance of Symbol 10 MovieClip [nexttip] in Symbol 118 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
if (_root.wave > 16) {
_visible = true;
}
}
Symbol 118 MovieClip Frame 14
stop();
Symbol 124 Button
on (release) {
getURL ("http://ultrathrill.com", "_blank");
}
Symbol 153 MovieClip Frame 1
wavey = _root.wave;
if (wavey == 1) {
gotoAndStop (2);
}
if (wavey == 2) {
gotoAndStop (3);
}
if (wavey == 3) {
gotoAndStop (4);
}
if (wavey == 4) {
gotoAndStop (5);
}
if (wavey == 5) {
gotoAndStop (6);
}
if (wavey == 6) {
gotoAndStop (7);
}
if ((wavey == 7) || (wavey == 8)) {
gotoAndStop (8);
}
if ((wavey == 9) || (wavey == 10)) {
gotoAndStop (9);
}
if (wavey == 11) {
gotoAndStop (10);
}
if ((wavey == 12) || (wavey == 13)) {
gotoAndStop (11);
}
if (wavey == 14) {
gotoAndStop (12);
}
if (wavey == 15) {
gotoAndStop (13);
}
if (wavey == 16) {
gotoAndStop (14);
}
if ((wavey == 17) && (_root.bonuscount == 16)) {
gotoAndStop (16);
}
if (wavey == 17) {
gotoAndStop (15);
}
Symbol 153 MovieClip Frame 2
stop();
Symbol 153 MovieClip Frame 3
stop();
Symbol 153 MovieClip Frame 4
stop();
Symbol 153 MovieClip Frame 5
stop();
Symbol 153 MovieClip Frame 6
stop();
Symbol 153 MovieClip Frame 7
stop();
Symbol 153 MovieClip Frame 8
stop();
Symbol 153 MovieClip Frame 9
stop();
Symbol 153 MovieClip Frame 10
stop();
Symbol 153 MovieClip Frame 11
stop();
Symbol 153 MovieClip Frame 12
stop();
Symbol 153 MovieClip Frame 13
stop();
Symbol 153 MovieClip Frame 14
stop();
Symbol 153 MovieClip Frame 15
stop();
Symbol 153 MovieClip Frame 16
stop();
Symbol 161 Button
on (release) {
gotoAndPlay (1);
}