Frame 1
stop();
Instance of Symbol 78 MovieClip in Frame 1
onClipEvent (load) {
fscommand ("allowScale", false);
}
Symbol 4 MovieClip Frame 12
_parent._parent.removeMovieClip();
Symbol 5 MovieClip Frame 60
gotoAndPlay (1);
Symbol 5 MovieClip Frame 61
stop();
Symbol 6 MovieClip Frame 60
gotoAndPlay (1);
Symbol 6 MovieClip Frame 61
stop();
Symbol 9 MovieClip Frame 12
_parent._parent.removeMovieClip();
Symbol 10 MovieClip Frame 60
gotoAndPlay (1);
Symbol 10 MovieClip Frame 61
stop();
Symbol 11 MovieClip Frame 60
gotoAndPlay (1);
Symbol 11 MovieClip Frame 61
stop();
Symbol 13 MovieClip Frame 12
_parent._parent.removeMovieClip();
Symbol 14 MovieClip Frame 60
gotoAndPlay (1);
Symbol 14 MovieClip Frame 61
stop();
Symbol 15 MovieClip Frame 60
gotoAndPlay (1);
Symbol 15 MovieClip Frame 61
stop();
Symbol 16 MovieClip [NEWrock] Frame 1
stop();
Instance of Symbol 7 MovieClip in Symbol 16 MovieClip [NEWrock] Frame 1
onClipEvent (load) {
_parent._x = random(200) - 100;
_parent._y = random(200) - 100;
_parent.xvel = ((random(200) - 100) / 100) * _root.rockSpeed;
_parent.yvel = ((random(200) - 100) / 100) * _root.RockSpeed;
iwana = random(8) + 1;
wanadone = 0;
_root.score = _root.score + (iwana * 10);
_root.score2 = _root.score2 + (iwana * 10);
}
onClipEvent (enterFrame) {
if (dead != 1) {
if (wanadone == 0) {
if (_parent._currentFrame == iwana) {
_parent.stop();
wanadone = 1;
} else {
_parent.play();
}
} else {
if (_parent.rock.hitTest(_root.mainGame.laser)) {
_root.mainGame.ship.laserBuffer = 0;
if (3 < _parent._currentFrame) {
_parent.gotoAndStop(_parent._currentFrame - 3);
_root.mainGame.laser.removeMovieClip();
_root.score = _root.score + 20;
} else {
_parent.rock.gotoAndStop(61);
_root.mainGame.laser.removeMovieClip();
dead = 1;
_root.score = _root.score + 30;
}
}
if (_parent.rock.hitTest(_root.mainGame.laser2)) {
_root.mainGame.ship.laserBuffer2 = 0;
if (3 < _parent._currentFrame) {
_parent.gotoAndStop(_parent._currentFrame - 3);
_root.mainGame.laser2.removeMovieClip();
_root.score2 = _root.score2 + 20;
} else {
_parent.rock.gotoAndStop(61);
_root.mainGame.laser2.removeMovieClip();
dead = 1;
_root.score = _root.score + 30;
}
} else if (_parent.rock.hitTest(_root.mainGame.ship)) {
if (wanadone == 1) {
if (_root.mainGame.ship.dead != 1) {
_root.mainGame.ship.dead = 1;
_parent.rock.gotoAndStop(61);
_root.mainGame.laser.removeMovieClip();
dead = 1;
_root.score = _root.score + 50;
}
}
} else if (_parent.rock.hitTest(_root.mainGame.ship2)) {
if (wanadone == 1) {
if (_root.mainGame.ship2.dead != 1) {
_root.mainGame.ship2.dead = 1;
_parent.rock.gotoAndStop(61);
_root.mainGame.laser2.removeMovieClip();
dead = 1;
_root.score2 = _root.score2 + 50;
}
}
}
}
if (100 < _parent._x) {
_parent._x = -100;
}
if (_parent._x < -100) {
_parent._x = 100;
}
if (100 < _parent._y) {
_parent._y = -100;
}
if (_parent._y < -100) {
_parent._y = 100;
}
_parent._x = _parent._x + _parent.xvel;
_parent._y = _parent._y + _parent.yvel;
}
}
Symbol 16 MovieClip [NEWrock] Frame 2
stop();
Symbol 16 MovieClip [NEWrock] Frame 3
stop();
Symbol 16 MovieClip [NEWrock] Frame 4
stop();
Symbol 16 MovieClip [NEWrock] Frame 5
stop();
Symbol 16 MovieClip [NEWrock] Frame 6
stop();
Symbol 16 MovieClip [NEWrock] Frame 7
stop();
Symbol 16 MovieClip [NEWrock] Frame 8
stop();
Symbol 16 MovieClip [NEWrock] Frame 9
stop();
Instance of Symbol 18 MovieClip in Symbol 22 MovieClip [laser] Frame 1
onClipEvent (load) {
rd = (rd = 57.2957795130823);
if (_parent._name == "laser") {
_parent._rotation = _root.maingame.ship._rotation;
_parent._x = _root.mainGame.ship._x;
_parent._y = _root.mainGame.ship._y;
} else {
_parent._rotation = _root.maingame.ship2._rotation;
_parent._x = _root.mainGame.ship2._x;
_parent._y = _root.mainGame.ship2._y;
}
xvel = xvel - (5 * Math.cos((_parent._rotation + 90) / rd));
yvel = yvel - (5 * Math.sin((_parent._rotation + 90) / rd));
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + xvel;
_parent._y = _parent._y + yvel;
if (100 < _parent._x) {
_parent._x = -100;
}
if (_parent._x < -100) {
_parent._x = 100;
}
if (100 < _parent._y) {
_parent._y = -100;
}
if (_parent._y < -100) {
_parent._y = 100;
}
}
Symbol 22 MovieClip [laser] Frame 43
stop();
Instance of Symbol 21 MovieClip in Symbol 22 MovieClip [laser] Frame 43
onClipEvent (load) {
_parent.removeMovieClip();
}
Instance of Symbol 24 MovieClip in Symbol 39 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE)) {
_root.mainGame.gotoAndStop(2);
}
}
Symbol 39 MovieClip Frame 125
stop();
Symbol 47 Button
on (release) {
_root.noplayer2 = 0;
_root.mainGame.gotoAndStop(3);
}
Symbol 51 Button
on (release) {
_root.noplayer2 = 1;
_root.mainGame.gotoAndStop(3);
}
Symbol 52 MovieClip Frame 9
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
_root.message = "Player 1 got " + _root.score;
if (_root.noplayer2 == 1) {
_root.message2 = "";
} else {
_root.message2 = "Player 2 got " + _root.score2;
}
Symbol 61 MovieClip Frame 13
stop();
Instance of Symbol 59 MovieClip in Symbol 61 MovieClip Frame 13
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE)) {
_root.mainGame.ship._x = -20;
_root.mainGame.ship._y = -20;
_root.mainGame.ship.dead = 0;
_root.score = 0;
if (_root.noplayer2 != 1) {
_root.mainGame.ship2._x = 20;
_root.mainGame.ship2._y = 20;
_root.mainGame.ship2.dead = 0;
_root.score2 = 0;
}
_root.gameOverBusy = 0;
_root.rockspeed = 1;
_parent.gotoAndStop(1);
}
}
Symbol 68 MovieClip Frame 12
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 3
stop();
Symbol 69 MovieClip Frame 4
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 74 MovieClip Frame 3
stop();
Symbol 74 MovieClip Frame 4
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 76 MovieClip Frame 3
stop();
Instance of Symbol 61 MovieClip "gameover" in Symbol 76 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.gameOverBusy == 1) {
if (this._currentFrame == 1) {
this.gotoAndPlay(1);
}
} else if (_parent.ship.dead == 1) {
if (_parent.ship2.dead == 1) {
_root.gameOverBusy = 1;
this.gotoAndPlay(1);
}
}
}
Instance of Symbol 63 MovieClip "shipshadow" in Symbol 76 MovieClip Frame 3
onClipEvent (enterFrame) {
this._x = _parent.ship._x + 8;
this._y = _parent.ship._y + 16;
this._rotation = _parent.ship._rotation;
}
Instance of Symbol 69 MovieClip "ship" in Symbol 76 MovieClip Frame 3
onClipEvent (load) {
rd = 57.2957795130823;
this.stop();
_root.score = 0;
_x = -20;
_y = -20;
_rotation = 0;
}
onClipEvent (enterFrame) {
if (dead == 1) {
this.gotoAndStop(4);
_parent.shipShadow._visible = false;
} else {
laserBuffer = laserBuffer - 1;
_parent.shipShadow._visible = true;
if (Key.isDown(Key.LEFT)) {
this._rotation = this._rotation - 10;
}
if (Key.isDown(Key.RIGHT)) {
this._rotation = this._rotation + 10;
}
if (Key.isDown(Key.CONTROL)) {
if (0 >= laserBuffer) {
_parent.attachMovie("laser", "laser", 50);
laserBuffer = 35;
}
}
if (Key.isDown(Key.UP)) {
xvel = xvel - Math.cos((this._rotation + 90) / rd);
yvel = yvel - Math.sin((this._rotation + 90) / rd);
this.gotoAndStop(2);
} else if (Key.isDown(Key.DOWN)) {
xvel = xvel + Math.cos((this._rotation + 90) / rd);
yvel = yvel + Math.sin((this._rotation + 90) / rd);
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
}
yvel = yvel * 0.9;
xvel = xvel * 0.9;
_y = (_y + yvel);
_x = (_x + xvel);
if (100 < _x) {
_x = -100;
}
if (_x < -100) {
_x = 100;
}
if (100 < _y) {
_y = -100;
}
if (_y < -100) {
_y = 100;
}
}
Instance of Symbol 70 MovieClip in Symbol 76 MovieClip Frame 3
onClipEvent (load) {
_parent.counter = 1;
_parent.counter++;
_parent.attachMovie("NEWrock", _parent.counter, _parent.counter);
_parent.counter++;
_parent.attachMovie("NEWrock", _parent.counter, _parent.counter);
_parent.counter++;
_parent.attachMovie("NEWrock", _parent.counter, _parent.counter);
timer = 150;
time = 100;
_root.rockspeed = 1;
}
onClipEvent (enterFrame) {
timer--;
if (0 >= timer) {
_parent.counter++;
_parent.attachMovie("NEWrock", "rock" + _parent.counter, _parent.counter);
timer = time;
time = time * 0.95;
rockspeed = rockspeed * 2;
_root.score = _root.score + 5;
_root.score2 = _root.score2 + 5;
if (time < 15) {
time = 15;
}
}
if (_parent.counter >= 25) {
_parent.counter = 1;
}
}
Instance of Symbol 72 MovieClip "shipshadow2" in Symbol 76 MovieClip Frame 3
onClipEvent (enterFrame) {
this._x = _parent.ship2._x + 8;
this._y = _parent.ship2._y + 16;
this._rotation = _parent.ship2._rotation;
}
Instance of Symbol 74 MovieClip "ship2" in Symbol 76 MovieClip Frame 3
onClipEvent (load) {
rd = 57.2957795130823;
this.stop();
_root.score2 = 0;
_x = 20;
_y = 20;
_rotation = 0;
}
onClipEvent (enterFrame) {
if (_root.noplayer2 == 1) {
dead = 1;
_root.score2 = "";
}
if (dead == 1) {
this.gotoAndStop(4);
_parent.shipShadow2._visible = false;
} else {
laserBuffer = laserBuffer - 1;
_parent.shipShadow2._visible = true;
if (Key.isDown(65)) {
this._rotation = this._rotation - 10;
}
if (Key.isDown(68)) {
this._rotation = this._rotation + 10;
}
if (Key.isDown(Key.SPACE)) {
if (0 >= laserBuffer) {
_parent.attachMovie("laser", "laser2", 51);
laserBuffer = 35;
}
}
if (Key.isDown(87)) {
xvel = xvel - Math.cos((this._rotation + 90) / rd);
yvel = yvel - Math.sin((this._rotation + 90) / rd);
this.gotoAndStop(2);
} else if (Key.isDown(83)) {
xvel = xvel + Math.cos((this._rotation + 90) / rd);
yvel = yvel + Math.sin((this._rotation + 90) / rd);
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
}
yvel = yvel * 0.9;
xvel = xvel * 0.9;
_y = (_y + yvel);
_x = (_x + xvel);
if (100 < _x) {
_x = -100;
}
if (_x < -100) {
_x = 100;
}
if (100 < _y) {
_y = -100;
}
if (_y < -100) {
_y = 100;
}
}