Frame 1
stop();
Frame 3
i = 1;
while (i < 10) {
removeMovieClip(_root["eny" + i]);
removeMovieClip(_root["bmb" + i]);
removeMovieClip(_root["enb" + i]);
removeMovieClip(_root["bul" + i]);
removeMovieClip(_root["ppup" + i]);
i++;
}
stopAllSounds();
boss = 0;
bss = 0;
MovieClip.prototype.makepal = function () {
with (this) {
this.col1 = new Object();
this.col1 = {ra:r1, rb:r2, ga:g1, gb:g2, ba:b1, bb:b2, aa:"100", ab:"0"};
this.col2 = new Object();
this.col2 = {ra:xr1, rb:xr2, ga:xg1, gb:xg2, ba:xb1, bb:xb2, aa:"100", ab:"0"};
}
};
stop();
gfx = 2;
lev = 1;
plv = 5;
bup = 5;
powup = 0;
upg = 1;
maxlife = 5;
if (qw < 1) {
_quality = "high";
}
if (qw == 1) {
_quality = "low";
}
if (qw == 2) {
_quality = "medium";
}
if (qw == 3) {
_quality = "high";
}
life = 5;
MovieClip.prototype.coler = function () {
this.clr = new Color(this);
this.clr.setTransform(this._parent._parent._parent._parent.col1);
};
MovieClip.prototype.coler2 = function () {
this.clr = new Color(this);
this.clr.setTransform(this._parent._parent._parent._parent.col2);
};
Frame 4
ck++;
if (ck > 0) {
i = 1;
while (i < 6) {
if (i < 3) {
ck = -8;
} else {
ck = -40;
}
if (_root.hitTest(_root["eny" + i]) == false) {
duplicateMovieClip (enemy, "eny" + i, 10.2 + i);
_root["eny" + i]._x = 600;
if (boss > (12 + bss)) {
_root["eny" + i].boss = 1;
lev++;
boss = 0;
bss = 10;
ck = -200;
_root.colnex = 1;
}
i = 20;
}
i++;
}
}
cbk++;
if (cbk > 10) {
cbk = -10;
p = random(3);
if (p == 1) {
i = 1;
while (i < 4) {
if (_root.hitTest(_root["bmb" + i]) == false) {
duplicateMovieClip (bombs, "bmb" + i, 30.3 + i);
_root["bmb" + i]._x = 600;
_root["bmb" + i]._y = random(230) + 70;
i = 20;
}
i++;
}
}
}
if (life < 0) {
gotoAndPlay (7);
}
Frame 5
gotoAndPlay (4);
Frame 6
gotoAndPlay (4);
Frame 7
stopAllSounds();
/:rex.gotoAndPlay(10);
stop();
Frame 8
stopAllSounds();
i = 1;
while (i < 10) {
removeMovieClip(_root["eny" + i]);
removeMovieClip(_root["bmb" + i]);
removeMovieClip(_root["enb" + i]);
removeMovieClip(_root["bul" + i]);
removeMovieClip(_root["ppup" + i]);
i++;
}
Mouse.show();
gotoAndPlay (9);
Frame 9
_quality = "high";
locdatnam = SharedObject.getLocal("robotatack");
name = locdatnam.data.name;
Frame 10
ssss = (("Your score is " + sc) + " on level ") + lev;
stop();
Symbol 3 MovieClip Frame 1
polosa._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (polosa._xscale == 100) {
_root.gotoAndPlay(2);
}
Symbol 3 MovieClip Frame 2
gotoAndPlay (1);
Symbol 34 Button
on (release) {
_quality = "high";
_root.qw = 3;
}
Symbol 36 Button
on (release) {
_quality = "medium";
_root.qw = 2;
}
Symbol 38 Button
on (release) {
_quality = "low";
_root.qw = 1;
}
Symbol 40 MovieClip Frame 2
stop();
Symbol 50 Button
on (release) {
_root.gotoAndPlay(4);
}
Symbol 54 Button
on (release) {
getURL ("http://www.rubilon.kulichki.com", "_blank");
}
Symbol 57 MovieClip Frame 1
if (_name == "back") {
gotoAndStop (15);
} else {
xs = random(2);
ys = random(2);
if (xs == 1) {
_xscale = -100;
}
if (ys == 1) {
_yscale = -100;
}
}
Symbol 57 MovieClip Frame 2
_x = (_x - 9);
if (_x < -600) {
removeMovieClip(this);
}
Symbol 57 MovieClip Frame 3
gotoAndPlay (2);
Symbol 58 MovieClip Frame 1
ck++;
if (ck > 0) {
ck = -5;
dp++;
if (dp > 40) {
dp = 1;
}
duplicateMovieClip (back, "bk" + dp, dp);
}
Symbol 60 MovieClip Frame 1
if (_name == "back") {
gotoAndStop (15);
} else {
xs = random(2);
ys = random(2);
if (xs == 1) {
_xscale = -100;
}
if (ys == 1) {
_yscale = -100;
}
}
Symbol 60 MovieClip Frame 2
_x = (_x - 15);
if (_x < -600) {
removeMovieClip(this);
}
Symbol 60 MovieClip Frame 3
gotoAndPlay (2);
Symbol 61 MovieClip Frame 1
ck++;
if (ck > 0) {
ck = -5;
dp++;
if (dp > 20) {
dp = 1;
}
duplicateMovieClip (back, "bk" + dp, dp);
}
Symbol 64 MovieClip Frame 1
_visible = 0;
Symbol 78 MovieClip Frame 1
stop();
pg = Math.floor(_root.upg);
if (_root.upg > 40) {
pg = 40;
_yscale = (60 + _root.upg);
}
if (_root.spec > 0) {
if ((_root.upg + _root.spec) > 40) {
pg = 40;
_yscale = ((60 + _root.upg) + (_root.spec * 2));
} else {
pg = Math.floor(_root.upg + _root.spec);
}
}
gotoAndStop(pg + (_root.powup * 40));
Symbol 79 MovieClip Frame 1
if (_name == "bullet") {
stop();
} else {
power = _root.upg;
if (_root.spec > 0) {
_root.spec = _root.spec - 1;
_root.pxs = _root.pxs + 2.5;
_y = (_y + ((Math.cos(_root.pxs) * _root.spec) * 2));
if (_root.spec == 1) {
_root.pxs = 0;
}
_root.powup++;
if (_root.powup > 2) {
_root.powup = 0;
}
power = _root.upg + _root.spec;
}
_root.snd.gotoAndPlay((_root.powup + 1) * 3);
gotoAndPlay (2);
}
Symbol 79 MovieClip Frame 2
_x = (_x + 50);
if (_root.spec > 1) {
rem = 0;
}
if ((_x > 600) or (rem == 1)) {
removeMovieClip(this);
}
Symbol 79 MovieClip Frame 3
gotoAndPlay (2);
Symbol 81 MovieClip Frame 1
_root.dwn = 0;
ddd = 0;
_root.clc = 0;
_visible = 0;
Symbol 81 MovieClip Frame 2
this.onMouseDown = function () {
ddd = 1;
};
this.onMouseUp = function () {
_root.clc = 1;
};
Symbol 81 MovieClip Frame 3
if (ddd == 1) {
_root.dwn++;
}
if (_root.clc == 0) {
gotoAndPlay (2);
}
Symbol 87 MovieClip Frame 1
coler();
Symbol 89 MovieClip Frame 1
coler2();
Symbol 92 MovieClip Frame 1
coler();
Symbol 94 MovieClip Frame 1
coler2();
Symbol 95 MovieClip Frame 1
gotoAndStop(_parent._parent._parent.eny);
Symbol 101 MovieClip Frame 1
coler2();
Symbol 103 MovieClip Frame 1
coler();
Symbol 106 MovieClip Frame 1
coler2();
Symbol 108 MovieClip Frame 1
coler();
Symbol 109 MovieClip Frame 1
gotoAndStop(_parent._parent._parent.eny);
Symbol 115 MovieClip Frame 1
coler();
Symbol 117 MovieClip Frame 1
coler2();
Symbol 120 MovieClip Frame 1
coler();
Symbol 122 MovieClip Frame 1
coler2();
Symbol 123 MovieClip Frame 1
gotoAndStop(_parent._parent._parent.eny);
Symbol 128 MovieClip Frame 1
coler();
Symbol 130 MovieClip Frame 1
coler2();
Symbol 132 MovieClip Frame 1
coler2();
Symbol 134 MovieClip Frame 1
coler();
Symbol 135 MovieClip Frame 1
gotoAndStop(_parent._parent._parent.eny);
Symbol 140 MovieClip Frame 1
coler();
Symbol 142 MovieClip Frame 1
coler2();
Symbol 143 MovieClip Frame 1
gotoAndStop(_parent._parent._parent.eny);
Symbol 148 MovieClip Frame 1
coler();
Symbol 150 MovieClip Frame 1
coler2();
Symbol 151 MovieClip Frame 1
gotoAndStop(_parent._parent._parent.eny);
Symbol 156 MovieClip Frame 1
coler();
Symbol 158 MovieClip Frame 1
coler2();
Symbol 160 MovieClip Frame 1
coler();
Symbol 162 MovieClip Frame 1
coler2();
Symbol 163 MovieClip Frame 1
gotoAndStop(_parent._parent._parent.eny);
Symbol 165 MovieClip Frame 18
stop();
Symbol 167 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 168 MovieClip Frame 6
stop();
Symbol 169 MovieClip Frame 4
_parent.gotoAndStop(1);
Symbol 172 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 177 MovieClip Frame 1
if (../../..:boss == 1) {
gotoAndStop(Math.floor(../../..:p / 2));
} else {
gotoAndStop(../../..:p);
}
Symbol 178 MovieClip Frame 2
if (ck < 3) {
_xscale = (_xscale - 20);
_yscale = (_yscale - 30);
gotoAndPlay (1);
ck++;
} else {
stop();
}
Symbol 179 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 1
_visible = 0;
Symbol 186 MovieClip Frame 8
stop();
Symbol 189 MovieClip Frame 1
_rotation = random(360);
Symbol 189 MovieClip Frame 10
stop();
Symbol 192 MovieClip Frame 1
_rotation = random(360);
Symbol 192 MovieClip Frame 8
stop();
Symbol 194 MovieClip Frame 1
function hit() {
if (this.obl.hitTest(_root.rex.obl) == true) {
_root.rex.hit = 1;
_x = (_x + 5);
spd = -4;
gotoAndPlay (6);
life = life - mislife;
}
i = 1;
while (i < 4) {
if (this.obl.hitTest(_root["bul" + i]) == true) {
life = life - ((_root["bul" + i].power / 50) + 0.2);
_root["bul" + i].rem = 1;
gotoAndPlay (6);
}
i++;
}
}
function hitflash() {
if (life < 0) {
_root.boss++;
gotoAndPlay (10);
ys = 3;
stunt.gotoAndStop(3);
} else {
hit();
}
}
function cpu() {
if (bk > 10) {
if (_x > _root.rex._x) {
ep = 1;
while (ep < 6) {
if (_root.hitTest(_root["enb" + ep]) == false) {
duplicateMovieClip (_root.buleny, "enb" + ep, ep + 60.1);
_root["enb" + ep]._x = _x;
_root["enb" + ep]._y = _y - 20;
_root["enb" + ep].upgn = p;
ep = 10;
if (mk == 1) {
if (_root.rex._y > _y) {
ys = 6;
}
if (_root.rex._y < _y) {
ys = -6;
}
}
if (mk == 2) {
ys = random(2);
if (ys == 1) {
ys = 6;
} else {
ys = -6;
}
}
bk = (-random(30)) - 10;
stunt.gotoAndStop(5);
}
ep++;
}
}
}
if (bk > -5) {
if (_y < 40) {
ys = 6;
}
if (_y > 330) {
ys = -6;
}
_y = (_y + ys);
if (bk > 5) {
if (ys > 0) {
ys--;
}
if (ys < 0) {
ys++;
}
}
}
}
function cpub() {
if (bk > 10) {
ep = 1;
while (ep < 6) {
if (_root.hitTest(_root["enb" + ep]) == false) {
duplicateMovieClip (_root.buleny, "enb" + ep, ep + 60.1);
_root["enb" + ep]._x = _x;
_root["enb" + ep]._y = _y - 20;
_root["enb" + ep].upgn = p / 2;
sp++;
if (sp < 3) {
_root["enb" + ep].boss = 1;
bk = -3;
} else {
bk = 9;
sp = 0;
}
ep = 10;
stunt.gotoAndStop(5);
}
ep++;
}
}
if (_y < 40) {
ys = 6;
}
if (_y > 330) {
ys = -6;
}
_y = (_y + ys);
_x = (_x + spd);
if (_x < 275) {
if (spd < 7) {
spd++;
}
}
if (_x > 500) {
if (spd > -7) {
spd--;
}
}
}
sp = random(10) + 10;
_y = 300;
stunt.stop();
if (_root.gfx == 1) {
eny = 3 + random(2);
}
if (_root.gfx == 2) {
eny = 6 + random(2);
}
if (_name == "enemy") {
gotoAndStop (17);
}
yd = random(235) + 70;
p = random(_root.lev) + 1;
_root.pp++;
if (_root.pp > 4) {
p = _root.lev;
_root.pp = 0;
}
if (boss == 1) {
p = Math.floor(_root.lev * 3);
sp = 10;
ys = random(2);
if (ys == 1) {
ys = 6;
} else {
ys = -6;
}
spd = -7;
} else {
spd = random(2) + 2;
mk = random(2) + 1;
}
_xscale = (p + 30);
_yscale = _xscale;
life = (p * 4) - 2;
mislife = life / 5;
if (boss == 1) {
mislife = life / (20 + (p * 2));
}
r1 = 100;
r2 = 0;
b1 = 100;
b2 = 0;
g1 = 100;
g2 = 0;
xr1 = 100;
xr2 = 0;
xb1 = 100;
xb2 = 0;
xg1 = 100;
xg2 = 0;
if ((p == 1) or (p == 11)) {
r2 = random(200) + 50;
g2 = r2 / 1.5;
xr2 = 0;
xb2 = random(70) + 15;
xg2 = xb2 / 2;
}
if ((p == 2) or (p == 12)) {
g2 = random(100) + 50;
b2 = 100;
xr2 = random(70) + 20;
xb1 = 60;
xg1 = 60;
xg2 = xr2 / 1.2;
xb2 = xr2 / 2;
}
if ((p == 3) or (p == 13)) {
g2 = random(100) + 50;
r2 = g2 / 4;
xr1 = 0;
xb2 = random(40) + 10;
xg1 = 60;
}
if ((p == 4) or (p == 14)) {
r2 = random(150) + 70;
g2 = (r2 / 1.2) - 50;
b2 = (r2 / 2) - 50;
xb2 = random(100) + 30;
xr2 = (xb2 / 2) - 50;
xg2 = (xb2 / 2) - 50;
}
if ((p == 5) or (p == 15)) {
r2 = random(100) + 150;
b2 = r2 / 2;
g2 = r2 / 2;
xr1 = 0;
xg2 = random(50) + 10;
}
if ((p == 6) or (p == 16)) {
r2 = random(150) + 100;
g2 = r2 / 1.5;
xr1 = 0;
xg2 = random(50) + 10;
}
if ((p == 7) or (p == 17)) {
b2 = random(200) + 50;
g2 = 50;
xr2 = random(50) + 10;
xb1 = 0;
xg1 = 0;
}
if ((p == 8) or (p == 18)) {
r2 = 50;
b2 = random(100) + 150;
g2 = b2 - 50;
xr1 = 0;
xg1 = 20;
}
if ((p == 9) or (p == 19)) {
r2 = random(250) + 50;
g2 = r2 / 1.5;
xb1 = random(50);
xg1 = xb1;
xr2 = random(50) + 20;
}
if ((p == 10) or (p == 20)) {
r2 = random(150) + 50;
g2 = r2;
b2 = r2 + 20;
xb1 = 0;
xr1 = random(50) + 50;
xr2 = random(50);
xg1 = xr1 / 4;
}
if (boss == 1) {
r1 = 100;
r2 = 150;
b1 = 100;
b2 = 150;
g1 = 100;
g2 = 150;
xr1 = 0;
xr2 = 0;
xb1 = 100;
xb2 = 0;
xg1 = 40;
xg2 = 0;
}
makepal();
clrp = new Color(this);
colp = new Object();
Symbol 194 MovieClip Frame 2
if (ck < 1) {
dep = getDepth(this);
i = 1;
while (i <= 5) {
dep1 = getDepth(_root["eny" + i]);
if (dep1 < dep) {
this.swapDepths(_root["eny" + i]);
}
i++;
}
}
this.setMask(_root.mask);
ck++;
dub.gotoAndStop(ck);
if (ck > 15) {
_root.edp++;
if (_root.edp > 6) {
_root.edp = 1;
}
gotoAndPlay (4);
_y = yd;
}
_y = (_y - ((_y - yd) / 15));
Symbol 194 MovieClip Frame 3
gotoAndPlay (2);
Symbol 194 MovieClip Frame 4
hitflash();
bk++;
if (boss != 1) {
_x = (_x - (spd + sp));
if (spd < 2) {
spd++;
}
if (sp > 0) {
sp--;
}
if (_x < 150) {
spd++;
if (_x < 0) {
removeMovieClip(this);
}
}
cpu();
} else {
cpub();
}
Symbol 194 MovieClip Frame 5
gotoAndPlay (4);
Symbol 194 MovieClip Frame 6
_root.score.sc1++;
_root.score.gotoAndPlay(1);
hitflash();
bk = bk + 0.4;
_x = (_x - 4);
colp = {ra:100, rb:random(300), ga:100, gb:random(300), ba:100, bb:random(300), aa:"100", ab:"0"};
clrp.setTransform(colp);
Symbol 194 MovieClip Frame 7
hitflash();
_x = (_x + 4);
colp = {ra:100, rb:random(200), ga:100, gb:random(200), ba:100, bb:random(200), aa:"100", ab:"0"};
clrp.setTransform(colp);
Symbol 194 MovieClip Frame 8
colp = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:"100", ab:"0"};
clrp.setTransform(colp);
gotoAndPlay (4);
Symbol 194 MovieClip Frame 10
colp = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:"100", ab:"0"};
clrp.setTransform(colp);
gotoAndPlay (11);
Symbol 194 MovieClip Frame 11
_x = (_x + (10 - (ckd * 2)));
stunt.gotoAndStop(3);
Symbol 194 MovieClip Frame 12
ckd++;
_x = (_x + (10 - (ckd * 2)));
rr = rr + 100;
colp = {ra:100, rb:rr, ga:100, gb:rr / 4, ba:100, bb:0, aa:"100", ab:"0"};
clrp.setTransform(colp);
Symbol 194 MovieClip Frame 13
if (ckd < 2) {
gotoAndPlay (11);
}
Symbol 194 MovieClip Frame 14
_root.score.sc1 = _root.score.sc1 + (p * 10);
_root.score.gotoAndPlay(1);
_root.bons++;
if (_x < 500) {
xs = (500 - _x) / 7;
}
if (_root.bons > 1) {
_root.bons = 0;
}
if (_root.bons == 1) {
i = 1;
while (i < 4) {
if (_root.hitTest(_root["ppup" + i]) == false) {
duplicateMovieClip (_root.powerup, "ppup" + i, 50.234 + i);
_root["ppup" + i]._x = _x - 4;
_root["ppup" + i]._y = _y - 15;
i = 10;
}
i++;
}
}
if (boss == 1) {
i = 4;
duplicateMovieClip (_root.powerup, "ppup" + i, 50.234 + i);
_root["ppup" + i]._x = _x - 24;
_root["ppup" + i]._y = _y - 20;
_root["ppup" + i].bb = 3;
i = 5;
duplicateMovieClip (_root.powerup, "ppup" + i, 50.234 + i);
_root["ppup" + i]._x = _x + 16;
_root["ppup" + i]._y = _y - 20;
_root["ppup" + i].bb = 5;
i = 6;
duplicateMovieClip (_root.powerup, "ppup" + i, 50.234 + i);
_root["ppup" + i]._x = _x + 4;
_root["ppup" + i]._y = _y + 15;
_root["ppup" + i].bb = 1;
}
colp = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:"100", ab:"0"};
clrp.setTransform(colp);
if (boss == 1) {
_xscale = (_xscale * 1.3);
_yscale = (_yscale * 1.3);
_root.music.play();
}
_root.snd.gotoAndPlay(27);
Symbol 194 MovieClip Frame 15
_x = (_x - 5);
Symbol 194 MovieClip Frame 16
dk++;
if (boss == 1) {
if (((dk == 3) or (dk == 6)) or (dk == 9)) {
_x = (_x + 10);
if ((bsb < ((p / 3) - 2)) and (dk > 7)) {
dk = -1;
bsb++;
}
_root.score.sc1 = _root.score.sc1 + (p * 10);
bl++;
duplicateMovieClip (_root.blow, "bl" + bl, 500 + bl);
_root["bl" + bl]._x = (_x - (dk * 20)) + 30;
_root["bl" + bl]._y = (_y - random(80)) + 40;
_root.snd.gotoAndPlay(27);
}
}
if (dk < 9) {
gotoAndPlay (15);
} else {
removeMovieClip(this);
}
Symbol 197 MovieClip Frame 1
_visible = 0;
Symbol 201 MovieClip Frame 1
stop();
gotoAndStop(Math.floor(_parent.upgn));
Symbol 202 MovieClip Frame 1
if (_name == "buleny") {
gotoAndStop (10);
} else {
if (boss != 1) {
_root.snd.gotoAndPlay(12);
}
if (boss == 1) {
_root.snd.gotoAndPlay(33);
delta_x = _x - _root.rex._x;
delta_y = _y - _root.rex._y;
trg = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
ys = ys - (10 * Math.cos(trg * (Math.PI/180)));
xs = xs + (10 * Math.sin(trg * (Math.PI/180)));
gotoAndPlay (11);
} else {
gotoAndPlay (2);
}
}
Symbol 202 MovieClip Frame 2
_x = (_x - (10 + spd));
if (_x < 0) {
removeMovieClip(this);
}
if ((this.buli.obl1.hitTest(_root.rex.obl) == true) or (this.buli.obl2.hitTest(_root.rex.obl) == true)) {
_root.rex.hit = 1;
gotoAndPlay (5);
}
Symbol 202 MovieClip Frame 3
gotoAndPlay (2);
Symbol 202 MovieClip Frame 4
removeMovieClip(this);
Symbol 202 MovieClip Frame 5
upgn = upgn - 1;
if (upgn < 1) {
removeMovieClip(this);
}
_xscale = (_xscale - (_xscale / 100));
_yscale = _xscale;
Symbol 202 MovieClip Frame 6
_x = (_x - 5);
Symbol 202 MovieClip Frame 7
gotoAndPlay (3);
Symbol 202 MovieClip Frame 11
_x = (_x + xs);
_y = (_y + ys);
if ((((_x < 0) or (_x > 550)) or (_y < 0)) or (_y > 400)) {
removeMovieClip(this);
}
if ((this.buli.obl1.hitTest(_root.rex.obl) == true) or (this.buli.obl2.hitTest(_root.rex.obl) == true)) {
_root.rex.hit = 1;
gotoAndPlay (14);
}
Symbol 202 MovieClip Frame 12
gotoAndPlay (11);
Symbol 202 MovieClip Frame 13
removeMovieClip(this);
Symbol 202 MovieClip Frame 14
upgn = upgn - 3;
if (upgn < 1) {
removeMovieClip(this);
}
_xscale = (_xscale - (_xscale / 70));
_yscale = _xscale;
Symbol 202 MovieClip Frame 15
_x = (_x + (xs / 2));
_y = (_y + (ys / 2));
Symbol 202 MovieClip Frame 16
gotoAndPlay (11);
Symbol 213 MovieClip Frame 1
gp = _parent._parent.p;
while (gp > 7) {
gp = gp - 7;
}
gotoAndStop(gp);
Symbol 214 MovieClip Frame 1
if (_root.gfx == 1) {
gotoAndStop (2);
}
if (_root.gfx == 2) {
gotoAndStop (3);
}
Symbol 216 MovieClip Frame 1
_visible = 0;
Symbol 218 MovieClip Frame 1
function hit() {
if (this.obl.hitTest(_root.rex.obl) == true) {
_root.rex.hit = 1;
_x = (_x - 5);
life = life - mislife;
gotoAndPlay (6);
}
i = 1;
while (i < 4) {
if (this.obl.hitTest(_root["bul" + i]) == true) {
life = life - ((_root["bul" + i].power / 50) + 0.2);
_root["bul" + i].rem = 1;
gotoAndPlay (6);
}
i++;
}
}
function hitflash() {
if (life < 0) {
gotoAndPlay (10);
ys = 3;
stunt.gotoAndStop(3);
} else {
hit();
}
}
this.setMask(_root.mask);
if (_name == "bombs") {
gotoAndStop (15);
}
spd = random(10) + 3;
spd = 15;
p = random(_root.lev) + 1;
_xscale = ((p * 5) + 100);
_yscale = _xscale;
life = (p * 4) - 2;
mislife = life / 5;
clrp = new Color(this);
colp = new Object();
Symbol 218 MovieClip Frame 2
_rotation = (_rotation - 15);
_x = (_x - spd);
hitflash();
if (_x < -20) {
removeMovieClip(this);
}
Symbol 218 MovieClip Frame 3
gotoAndPlay (2);
Symbol 218 MovieClip Frame 6
_root.score.sc1++;
colp = {ra:100, rb:random(300), ga:100, gb:random(300), ba:100, bb:random(300), aa:"100", ab:"0"};
clrp.setTransform(colp);
hitflash();
_x = (_x - 2);
Symbol 218 MovieClip Frame 7
colp = {ra:100, rb:random(100) + 100, ga:100, gb:random(100) + 100, ba:100, bb:random(100) + 100, aa:"100", ab:"0"};
clrp.setTransform(colp);
hitflash();
_rotation = (_rotation - 5);
_x = (_x - 2);
Symbol 218 MovieClip Frame 8
colp = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:"100", ab:"0"};
clrp.setTransform(colp);
gotoAndPlay (2);
Symbol 218 MovieClip Frame 10
_root.score.sc1 = _root.score.sc1 + (p * 5);
_rotation = 0;
_root.score.gotoAndPlay(1);
_root.snd.gotoAndPlay(36);
colp = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:"100", ab:"0"};
clrp.setTransform(colp);
i = 1;
while (i < 4) {
if (_root.hitTest(_root["ppup" + i]) == false) {
duplicateMovieClip (_root.powerup, "ppup" + i, 50.234 + i);
_root["ppup" + i]._x = _x - 4;
_root["ppup" + i]._y = _y - 15;
_root.bmk++;
if (_root.bmk > 3) {
_root.bmk = 1;
}
bb = 4;
if (_root.bmk == 3) {
bb = 3;
}
ff = random(7);
if (ff == 1) {
bb = 1;
}
_root["ppup" + i].bb = bb;
i = 10;
}
i++;
}
Symbol 218 MovieClip Frame 11
_x = (_x - 5);
Symbol 218 MovieClip Frame 12
dk++;
if (dk < 9) {
gotoAndPlay (11);
} else {
removeMovieClip(this);
}
Symbol 220 MovieClip Frame 1
if (_name == "powerup") {
gotoAndStop (15);
} else {
gotoAndPlay (2);
}
Symbol 220 MovieClip Frame 2
if (bb < 1) {
bb = random(2) + 1;
}
if (bb == 1) {
gotoAndPlay (3);
}
if (bb == 2) {
gotoAndPlay (5);
}
if (bb == 3) {
gotoAndPlay (7);
}
if (bb == 4) {
gotoAndPlay (9);
}
if (bb == 5) {
gotoAndPlay (11);
}
Symbol 220 MovieClip Frame 3
if (this.hitTest(_root.rex.obl)) {
_root.snd.gotoAndPlay(15);
removeMovieClip(this);
_root.powup++;
if (_root.powup > 2) {
_root.powup = 0;
}
if (_root.upg > 40) {
_root.upg = _root.upg + 0.5;
} else {
_root.upg++;
}
}
_x = (_x - 5);
if (_x < 0) {
removeMovieClip(this);
}
Symbol 220 MovieClip Frame 4
gotoAndPlay (3);
Symbol 220 MovieClip Frame 5
if (this.hitTest(_root.rex.obl)) {
_root.score.sc1 = _root.score.sc1 + 5;
_root.score.gotoAndPlay(1);
_root.snd.gotoAndPlay(18);
removeMovieClip(this);
_root.rex.spd = _root.rex.spd + 0.5;
if (_root.rex.spd > 40) {
_root.rex.spd = 40;
}
}
_x = (_x - 5);
if (_x < 0) {
removeMovieClip(this);
}
Symbol 220 MovieClip Frame 6
gotoAndPlay (5);
Symbol 220 MovieClip Frame 7
if (this.hitTest(_root.rex.obl)) {
_root.snd.gotoAndPlay(24);
_root.life = _root.life + 5;
with (_root) {
if (life > maxlife) {
life = maxlife;
}
}
removeMovieClip(this);
}
_x = (_x - 5);
if (_x < 0) {
removeMovieClip(this);
}
Symbol 220 MovieClip Frame 8
gotoAndPlay (7);
Symbol 220 MovieClip Frame 9
if (this.hitTest(_root.rex.obl)) {
_root.snd.gotoAndPlay(21);
removeMovieClip(this);
_root.spa++;
if (_root.spa > 4) {
_root.spec = 30;
_root.spa = 0;
}
}
_x = (_x - 5);
if (_x < 0) {
removeMovieClip(this);
}
Symbol 220 MovieClip Frame 10
gotoAndPlay (9);
Symbol 220 MovieClip Frame 11
if (this.hitTest(_root.rex.obl)) {
_root.snd.gotoAndPlay(30);
_root.maxlife++;
_root.life = _root.life + 3;
with (_root) {
if (life > maxlife) {
life = maxlife;
}
}
removeMovieClip(this);
_root.spa++;
if (_root.spa > 4) {
_root.spec = 30;
_root.spa = 0;
}
}
_x = (_x - 5);
if (_x < 0) {
removeMovieClip(this);
}
Symbol 220 MovieClip Frame 12
gotoAndPlay (11);
Symbol 222 MovieClip Frame 1
unloadMovie (this);
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 5
stop();
Symbol 233 MovieClip Frame 8
stop();
Symbol 233 MovieClip Frame 11
stop();
Symbol 233 MovieClip Frame 14
stop();
Symbol 233 MovieClip Frame 17
stop();
Symbol 233 MovieClip Frame 20
stop();
Symbol 233 MovieClip Frame 23
stop();
Symbol 233 MovieClip Frame 26
stop();
Symbol 233 MovieClip Frame 29
stop();
Symbol 233 MovieClip Frame 32
stop();
Symbol 233 MovieClip Frame 35
stop();
Symbol 233 MovieClip Frame 38
stop();
Symbol 233 MovieClip Frame 41
stop();
Symbol 234 MovieClip Frame 10
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 1
spd = 15;
stunt.stop();
if (_root.gfx == 1) {
eny = 2;
}
if (_root.gfx == 2) {
eny = 5;
}
Symbol 236 MovieClip Frame 4
gotoSpotX = _root._xmouse;
gotoSpotY = _root._ymouse;
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
trg = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
if (Math.sqrt((delta_x * delta_x) + (delta_y * delta_y)) > spd) {
_y = (_y - (spd * Math.cos(trg * (Math.PI/180))));
_x = (_x + (spd * Math.sin(trg * (Math.PI/180))));
} else {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x > 510) {
_x = 510;
}
if (_x < 30) {
_x = 30;
}
if (_y > 330) {
_y = 330;
}
if (_y < 55) {
_y = 55;
}
if (Key.isDown(65)) {
shoot++;
} else {
shoot = 0;
}
if ((_root.dwn == 1) or (shoot == 1)) {
amf = 10;
}
amf--;
if (amf > 0) {
bf++;
if (bf > 0) {
fire = 1;
bf = -2;
}
}
if (fire == 1) {
dp = 1;
while (dp < 4) {
if (_root.hitTest(_root["bul" + dp]) == false) {
fire = 0;
stunt.gotoAndStop(2);
stunt.rob.gotoAndPlay(1);
duplicateMovieClip (_root.bullet, "bul" + dp, dp + 40.4);
_root["bul" + dp]._x = _x + 20;
_root["bul" + dp]._y = _y - 20;
dp = 10;
}
dp++;
}
}
if (hit == 1) {
gotoAndPlay (6);
}
Symbol 236 MovieClip Frame 5
gotoAndPlay (4);
Symbol 236 MovieClip Frame 6
_x = (_x - 4);
_root.life--;
_root.snd.gotoAndPlay(39);
Symbol 236 MovieClip Frame 7
_x = (_x - 4);
hit = 0;
Symbol 236 MovieClip Frame 8
gotoAndPlay (4);
Symbol 236 MovieClip Frame 10
_y = (_y + (5 + ys));
ys++;
if (_y > 440) {
unloadMovie (stunt);
}
ckd = ckd + 1;
if (ckd > 60) {
Set("/:sc", /:score.sc1 + 1);
/:gotoAndPlay(8);
}
Symbol 236 MovieClip Frame 11
gotoAndPlay (10);
Symbol 241 MovieClip Frame 1
lf = (_root.life / _root.maxlife) * 100;
if (lf < 0) {
lf = 0;
}
life._xscale = lf;
lfpc = Math.floor(life._xscale) + "%";
Symbol 241 MovieClip Frame 2
gotoAndPlay (1);
Symbol 242 MovieClip Frame 1
if (Key.isDown(32)) {
p++;
if (p == 1) {
ps++;
if (ps == 2) {
ps = 0;
_root.play();
i = 1;
while (i < 6) {
_root["eny" + i].play();
i++;
}
i = 1;
while (i < 4) {
_root["bmb" + i].play();
i++;
}
i = 1;
while (i < 4) {
_root["bul" + i].play();
i++;
}
i = 1;
while (i < 6) {
_root["enb" + i].play();
i++;
}
i = 1;
while (i < 7) {
_root["ppup" + i].play();
i++;
}
_root.rex.play();
}
}
} else {
p = 0;
}
if (ps == 1) {
_root.stop();
i = 1;
while (i < 6) {
_root["eny" + i].stop();
i++;
}
i = 1;
while (i < 4) {
_root["bmb" + i].stop();
i++;
}
i = 1;
while (i < 4) {
_root["bul" + i].stop();
i++;
}
i = 1;
while (i < 6) {
_root["enb" + i].stop();
i++;
}
i = 1;
while (i < 7) {
_root["ppup" + i].stop();
i++;
}
_root.rex.stop();
}
Symbol 242 MovieClip Frame 2
gotoAndPlay (1);
Symbol 245 MovieClip Frame 2
ck = 0;
stop();
Symbol 245 MovieClip Frame 4
ck++;
Symbol 245 MovieClip Frame 5
if (ck < 60) {
gotoAndPlay (4);
}
Symbol 245 MovieClip Frame 6
ck = 0;
stop();
Symbol 245 MovieClip Frame 8
stop();
Symbol 245 MovieClip Frame 10
ck++;
Symbol 245 MovieClip Frame 11
if (ck < 60) {
gotoAndPlay (10);
}
Symbol 246 MovieClip Frame 1
if (_name == "blow") {
gotoAndStop (11);
}
Symbol 246 MovieClip Frame 10
removeMovieClip(this);
Symbol 248 MovieClip Frame 1
sc3 = (("Level " + _root.lev) + " Score ") + sc2;
Symbol 248 MovieClip Frame 2
if (score < sc1) {
gotoAndPlay (1);
sc2 = sc2 + (Math.floor((sc1 - sc2) / 10) + 1);
} else {
stop();
}
Symbol 250 MovieClip Frame 1
_visible = 0;
Symbol 255 Button
on (release) {
/:gotoAndPlay(3);
}