Frame 1
Stage.showmenu = false;
Frame 2
stop();
Frame 3
stop();
Frame 4
stop();
Frame 5
Set("/:score", "0");
Instance of Symbol 81 MovieClip "ship" in Frame 5
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
}
if (Key.isDown(32) && (timer == 0)) {
timer = 3;
if (_root.shot1.alive == 0) {
with (_root.shot1) {
xv = 15 * Math.sin(0.017453 * this.angle);
yv = -15 * Math.cos(0.017453 * this.angle);
alive = 15;
}
setProperty(_root.shot1, _x , this._x);
setProperty(_root.shot1, _y , this._y);
} else if (_root.shot2.alive == 0) {
with (_root.shot2) {
xv = 15 * Math.sin(0.017453 * this.angle);
yv = -15 * Math.cos(0.017453 * this.angle);
alive = 15;
}
setProperty(_root.shot2, _x , this._x);
setProperty(_root.shot2, _y , this._y);
} else if (_root.shot3.alive == 0) {
with (_root.shot3) {
xv = 15 * Math.sin(0.017453 * this.angle);
yv = -15 * Math.cos(0.017453 * this.angle);
alive = 15;
}
setProperty(_root.shot3, _x , this._x);
setProperty(_root.shot3, _y , this._y);
} else if (_root.shot4.alive == 0) {
with (_root.shot4) {
xv = 15 * Math.sin(0.017453 * this.angle);
yv = -15 * Math.cos(0.017453 * this.angle);
alive = 15;
}
setProperty(_root.shot4, _x , this._x);
setProperty(_root.shot4, _y , this._y);
}
}
if (Key.isDown(39)) {
torque = 5;
} else if (Key.isDown(37)) {
torque = -5;
} else {
torque = 0;
}
}
onClipEvent (load) {
xmax = 490;
xmin = 10;
ymax = 390;
ymin = 10;
angle = 0;
xv = 0;
x = 0;
y = 0;
yv = 0;
xa = 0;
ya = 0;
v = 0;
visc = 0.02;
drag = 0;
score = 0;
timer = 0;
}
onClipEvent (enterFrame) {
rtorque = 0.5 * AngVelocity;
AngAcceleration = torque - rtorque;
AngVelocity = AngVelocity + AngAcceleration;
angle = angle + AngVelocity;
if (angle < 0) {
angle = angle + 360;
}
if (angle > 360) {
angle = angle - 360;
}
v = Math.sqrt((xv * xv) + (yv * yv));
drag = visc * v;
if (Key.isDown(38)) {
force = 1;
gotoAndStop (10);
} else {
force = 0;
gotoAndStop (9);
}
xa = ((drag * xv) * -1) + (force * Math.sin(0.017453 * angle));
ya = ((drag * yv) * -1) - (force * Math.cos(0.017453 * angle));
xv = xv + xa;
yv = yv + ya;
if (xmin >= _x) {
_x = (_x + (xmax - 10));
}
if (_x >= xmax) {
_x = (_x - (xmax - 10));
}
if (ymin >= _y) {
_y = (_y + (ymax - 10));
}
if (_y >= ymax) {
_y = (_y - (ymax - 10));
}
_y = (_y + yv);
_x = (_x + xv);
_rotation = angle;
}
Frame 484
stopAllSounds();
Frame 485
Set("/:total", /:score);
Frame 490
stop();
Symbol 17 Button
on (release) {
_root.play();
}
Symbol 18 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 18 MovieClip Frame 2
gotoAndPlay (1);
Symbol 21 Button
on (release) {
getURL ("http://mooseisloose.co.uk", "_blank");
}
Symbol 24 Button
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 32 Button
on (release) {
gotoAndPlay (5);
}
Symbol 37 Button
on (release) {
gotoAndStop (3);
}
Symbol 42 Button
on (release) {
gotoAndStop (4);
}
Symbol 47 Button
on (release) {
getURL ("http://mooseisloose.co.uk", "_blank");
}
Symbol 53 Button
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 63 Button
on (release) {
prevFrame();
}
Symbol 65 Button
on (release) {
gotoAndStop (2);
}
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 11
var /:score = (Number(/:score) + 1);
Symbol 77 MovieClip Frame 12
stop();
Instance of Symbol 77 MovieClip "rock3" in Symbol 78 MovieClip Frame 1
onClipEvent (load) {
alive = 1;
xmax = 300;
xmin = 7;
ymax = 450;
ymin = 12;
angle = 0;
_x = (500 * Math.random());
if ((_x < 20) || (_x > 480)) {
_y = (400 * Math.random());
} else {
_y = 20;
}
xv = (6 * Math.random()) - 3;
yv = (6 * Math.random()) - 3;
hit = 0;
}
onClipEvent (enterFrame) {
if (alive) {
_visible = true;
} else {
_visible = true;
}
if (alive) {
if (xmin >= _x) {
_x = (_x + (xmax - 10));
}
if (_x >= xmax) {
_x = (_x - (xmax - 10));
}
if (ymin >= _y) {
_y = (_y + (ymax - 10));
}
if (_y >= ymax) {
_y = (_y - (ymax - 10));
}
_x = (_x + xv);
_y = (_y + yv);
hit = 0;
if (_root.shot1.alive && (hit == 0)) {
if (this.hitTest(_root.shot1)) {
_root.shot1.alive = 0;
hit = 1;
}
}
if (_root.shot2.alive && (hit == 0)) {
if (this.hitTest(_root.shot2)) {
_root.shot2.alive = 0;
hit = 1;
}
}
if (_root.shot3.alive && (hit == 0)) {
if (this.hitTest(_root.shot3)) {
_root.shot3.alive = 0;
hit = 1;
}
}
if (_root.shot4.alive && (hit == 0)) {
if (this.hitTest(_root.shot4)) {
_root.shot4.alive = 0;
hit = 1;
}
}
if (this.hitTest(_root.ship)) {
hit = 1;
}
if (hit) {
gotoAndPlay (2);
with (_root.rock3m1) {
alive = 1;
_x = this._x;
_y = this._y;
}
with (_root.rock3m2) {
alive = 1;
_x = this._x;
_y = this._y;
}
alive = 0;
_root.ship.score = _root.ship.score + 20;
} else {
gotoAndPlay (1);
}
}
}
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 2
stop();
Symbol 85 Button
on (press) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Symbol 92 Button
on (release) {
gotoAndStop (2);
}