Combined Code
frame 1 {
stop();
}
movieClip 1 {
}
movieClip 3 {
frame 1 {
tx = _x;
ty = _y;
dx = speed * Math.cos(_rotation * Math.PI / 180);
dy = speed * Math.sin(_rotation * Math.PI / 180);
if (_x < 100) {
speed = 0;
}
age = 0;
immature = 30;
onEnterFrame = function () {
if (age > _root.game.tailLength) {
removeMovieClip(this);
}
tx += dx;
ty += dy;
_x = tx;
_y = ty;
if (speed != 0) {
if (_x < -8 || _x > 808 || _y < -8 || _y > 608) {
removeMovieClip(this);
}
}
if (!_root.game.dead) {
cx = _x - _root.game.player._x;
if (cx < 8 && cx > -8) {
cy = _y - _root.game.player._y;
if (cy < 8 && cy > -8) {
if (cx * cx + cy * cy < 64 && immature < 0) {
_root.game.dead = true;
_root.fade.play();
removeMovieClip(_root.game.player);
}
}
}
}
--immature;
++age;
};
}
}
movieClip 5 {
}
movieClip 9 {
frame 468 {
with (_root.game) {
}
}
frame 488 {
_x = Math.random() * 800;
_y = Math.random() * 600;
}
}
movieClip 11 {
frame 1 {
tx = _x;
ty = _y;
dx = speed * Math.cos(_rotation * Math.PI / 180);
dy = speed * Math.sin(_rotation * Math.PI / 180);
if (_x < 100) {
speed = 0;
}
onEnterFrame = function () {
tx += dx;
ty += dy;
_x = tx;
_y = ty;
if (speed != 0) {
if (_x < -8 || _x > 808 || _y < -8 || _y > 608) {
removeMovieClip(this);
}
}
dx *= 0.999;
dy *= 0.999;
if (!_root.game.dead) {
cx = _x - _root.game.player._x;
if (cx < 8 && cx > -8) {
cy = _y - _root.game.player._y;
if (cy < 8 && cy > -8) {
if (cx * cx + cy * cy < 64) {
_root.game.dead = true;
_root.fade.play();
removeMovieClip(_root.game.player);
}
}
}
}
};
}
}
movieClip 12 {
frame 1 {
rotationSpeed = 2;
moveSpeed = 2;
dead = false;
i = 0;
tailLength = 30;
h = 0;
fade.depth = 1000000000;
onEnterFrame = function () {
if (Key.isDown(37)) {
player._rotation -= rotationSpeed;
}
if (Key.isDown(39)) {
player._rotation += rotationSpeed;
}
if (player._x < 0) {
player._x = 800;
}
if (player._x > 800) {
player._x = 0;
}
if (player._y < 0) {
player._y = 600;
}
if (player._y > 600) {
player._y = 0;
}
player._x += moveSpeed * Math.cos(player._rotation * Math.PI / 180);
player._y += moveSpeed * Math.sin(player._rotation * Math.PI / 180);
++i;
if (!dead) {
duplicateMovieClip(particle, 'prt' + i, i);
_root.game['prt' + i]._x = player._x;
_root.game['prt' + i]._y = player._y;
_root.game['prt' + i]._rotation = player._rotation + 180 + 10 * Math.sin(i / 5);
_root.game['prt' + i].speed = 1;
}
if ((i + 20) / 488 == Math.floor((i + 20) / 488)) {
tailLength += 50;
p = 0;
while (p < 100) {
++h;
duplicateMovieClip(bombparticle, 'bmbprt' + h, h);
_root.game['bmbprt' + h]._rotation = (h / 100) * 360;
_root.game['bmbprt' + h]._x = bomb._x;
_root.game['bmbprt' + h]._y = bomb._y;
_root.game['bmbprt' + h].speed = 1;
++p;
}
}
};
}
}
movieClip 14 {
}
movieClip 15 {
frame 1 {
stop();
}
frame 300 {
stop();
_root.play();
}
}
// unknown tag 88 length 67
button 20 {
on (release) {
_root.play();
if (_currentframe < 140) {
gotoAndPlay(240 - _currentframe);
}
}
on (keyPress '<Space>') {
_root.play();
if (_currentframe < 140) {
gotoAndPlay(240 - _currentframe);
}
}
}
frame 140 {
stop();
}