Frame 1
stopAllSounds();
Frame 2
var kdash;
var kjump;
var kattack;
var kspec;
var kcrush;
var kup;
var kdown;
var kleft;
var kright;
var kpause;
kdash = 65;
kjump = 83;
kattack = 68;
kspec = 69;
kcrush = 13;
kup = 38;
kdown = 40;
kleft = 37;
kright = 39;
kpause = 8;
gotoAndPlay (1);
_totalframes = _framesloaded;
if (_framesloaded) {
gotoAndPlay (2521);
}
Frame 3
var xz;
var pd;
var ps;
var pe;
var px;
var py;
var pl;
var pi;
var charge;
var crusher;
var ptime;
var pwall;
var pw;
var pf;
var sx;
var sy;
var weap;
var wenergy;
var wmax;
var lmax;
boss = new Array(8);
var psn;
pst = new Array(3);
psd = new Array(3);
psx = new Array(3);
psy = new Array(3);
psf = new Array(3);
bt = new Array(10);
bg = new Array(10);
bd = new Array(10);
bs = new Array(10);
bj = new Array(10);
bx = new Array(10);
by = new Array(10);
bl = new Array(10);
btime = new Array(10);
bf = new Array(10);
var bsn;
bst = new Array(6);
bsd = new Array(6);
bsx = new Array(6);
bsy = new Array(6);
bsf = new Array(6);
blt = new Array(15);
blx = new Array(15);
bly = new Array(15);
blsx = new Array(15);
blsy = new Array(15);
var f;
var lives;
var timer;
var cframe;
var pace;
var camx;
var camy;
var h1;
var h2;
var h3;
var h4;
h1 = 1;
while (h1 < 9) {
boss[h1] = 1;
h1++;
}
boom1 = new Sound(this);
boom1.attachSound("6_boom1.au");
boom2 = new Sound(this);
boom2.attachSound("6_boom2.au");
boom3 = new Sound(this);
boom3.attachSound("6_boom3.au");
bossdeath = new Sound(this);
bossdeath.attachSound("6_bossdeath.wav");
buster = new Sound(this);
buster.attachSound("6_buster.au");
electric = new Sound(this);
electric.attachSound("6_electricity.wav");
herodeath = new Sound(this);
herodeath.attachSound("6_herodeath.wav");
jump = new Sound(this);
jump.attachSound("6_jump.au");
laser = new Sound(this);
laser.attachSound("6_laser.wav");
melee = new Sound(this);
melee.attachSound("6_melee.au");
metal = new Sound(this);
metal.attachSound("6_metalcrunch.wav");
multibeep = new Sound(this);
multibeep.attachSound("6_multiplebeep.au");
rocket = new Sound(this);
rocket.attachSound("6_rocket.au");
shothit = new Sound(this);
shothit.attachSound("6_shothit.au");
lilbuster = new Sound(this);
lilbuster.attachSound("6_LittleBuster.wav");
midbuster = new Sound(this);
midbuster.attachSound("6_MidBuster.wav");
maxbuster = new Sound(this);
maxbuster.attachSound("6_MaxBuster.wav");
lifeupsfx = new Sound(this);
lifeupsfx.attachSound("6_Blip4.wav");
teleportsfx = new Sound(this);
teleportsfx.attachSound("6_Teleport1.wav");
zeroswing = new Sound(this);
zeroswing.attachSound("6_ElectricZap2.mp3");
deliaswing = new Sound(this);
deliaswing.attachSound("6_ElectricZap.mp3");
sinattack = new Sound(this);
sinattack.attachSound("6_pacmandies.wav");
lightning = new Sound(this);
lightning.attachSound("6_lightning.mp3");
xcharge = new Sound(this);
xcharge.attachSound("6_X Charge.wav");
stopAllSounds();
Frame 4
stopAllSounds();
Frame 9
stopAllSounds();
Frame 10
lives = 3;
weap = 0;
xz = 0;
lmax = 300;
wmax = 300;
pl = lmax;
wenergy = wmax;
crusher = 100;
px = 20;
py = -200;
pd = 0;
ps = 1;
pj = 0;
ptime = 0;
pf = 2;
charge = 0;
cframe = 11;
psn = 1;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
f = 11;
timer = 1;
pace = 1;
h1 = 1;
while (h1 < 11) {
bt[h1] = 0;
bg[h1] = 0;
btime[h1] = 15;
bd[h1] = 0;
bj[h1] = 0;
bs[h1] = 0;
bl[h1] = 0;
bx[h1] = -1000;
by[h1] = -1000;
bf[h1] = 1;
h1++;
}
bsn = 1;
h1 = 1;
while (h1 < 7) {
bst[h1] = 0;
bsd[h1] = 0;
bsx[h1] = -2000;
bsy[h1] = -2000;
bsf[h1] = 7;
h1++;
}
h1 = 1;
while (h1 < 16) {
blt[h1] = 1;
blx[h1] = -2000;
bly[h1] = -2000;
blsx[h1] = 0;
blsy[h1] = 0;
h1++;
}
blt[1] = 2;
blx[1] = 690;
bly[1] = -260;
blsx[1] = 10;
blsy[1] = 120;
blt[2] = 1;
blx[2] = 400;
bly[2] = -50;
blsx[2] = 400;
blsy[2] = 50;
blt[3] = 1;
blx[3] = 610;
bly[3] = -200;
blsx[3] = 70;
blsy[3] = 20;
blt[4] = 1;
blx[4] = 750;
bly[4] = -300;
blsx[4] = 50;
blsy[4] = 200;
blt[5] = 1;
blx[5] = 450;
bly[5] = -210;
blsx[5] = 10;
blsy[5] = 10;
blt[6] = 1;
blx[6] = 350;
bly[6] = -210;
blsx[6] = 10;
blsy[6] = 10;
blt[7] = 1;
blx[7] = 50;
bly[7] = -150;
blsx[7] = 50;
blsy[7] = 50;
Frame 11
bl1._width = blsx[1] * 2;
bl1._height = blsy[1] * 2;
bl1._x = 100 + (blx[1] - camx);
bl1._y = 100 + (bly[1] - camy);
bl2._width = blsx[2] * 2;
bl2._height = blsy[2] * 2;
bl2._x = 100 + (blx[2] - camx);
bl2._y = 100 + (bly[2] - camy);
bl3._width = blsx[3] * 2;
bl3._height = blsy[3] * 2;
bl3._x = 100 + (blx[3] - camx);
bl3._y = 100 + (bly[3] - camy);
bl4._width = blsx[4] * 2;
bl4._height = blsy[4] * 2;
bl4._x = 100 + (blx[4] - camx);
bl4._y = 100 + (bly[4] - camy);
bl5._width = blsx[5] * 2;
bl5._height = blsy[5] * 2;
bl5._x = 100 + (blx[5] - camx);
bl5._y = 100 + (bly[5] - camy);
bl6._width = blsx[6] * 2;
bl6._height = blsy[6] * 2;
bl6._x = 100 + (blx[6] - camx);
bl6._y = 100 + (bly[6] - camy);
bl7._width = blsx[7] * 2;
bl7._height = blsy[7] * 2;
bl7._x = 100 + (blx[7] - camx);
bl7._y = 100 + (bly[7] - camy);
bl8._width = blsx[8] * 2;
bl8._height = blsy[8] * 2;
bl8._x = 100 + (blx[8] - camx);
bl8._y = 100 + (bly[8] - camy);
bl9._width = blsx[9] * 2;
bl9._height = blsy[9] * 2;
bl9._x = 100 + (blx[9] - camx);
bl9._y = 100 + (bly[9] - camy);
bl10._width = blsx[10] * 2;
bl10._height = blsy[10] * 2;
bl10._x = 100 + (blx[10] - camx);
bl10._y = 100 + (bly[10] - camy);
bl11._width = blsx[11] * 2;
bl11._height = blsy[11] * 2;
bl11._x = 100 + (blx[11] - camx);
bl11._y = 100 + (bly[11] - camy);
bl12._width = blsx[12] * 2;
bl12._height = blsy[12] * 2;
bl12._x = 100 + (blx[12] - camx);
bl12._y = 100 + (bly[12] - camy);
bl13._width = blsx[13] * 2;
bl13._height = blsy[13] * 2;
bl13._x = 100 + (blx[13] - camx);
bl13._y = 100 + (bly[13] - camy);
bl14._width = blsx[14] * 2;
bl14._height = blsy[14] * 2;
bl14._x = 100 + (blx[14] - camx);
bl14._y = 100 + (bly[14] - camy);
bl15._width = blsx[15] * 2;
bl15._height = blsy[15] * 2;
bl15._x = 100 + (blx[15] - camx);
bl15._y = 100 + (bly[15] - camy);
bl1.gotoAndStop(blt[1]);
bl2.gotoAndStop(blt[2]);
bl3.gotoAndStop(blt[3]);
bl4.gotoAndStop(blt[4]);
bl5.gotoAndStop(blt[5]);
bl6.gotoAndStop(blt[6]);
bl7.gotoAndStop(blt[7]);
bl8.gotoAndStop(blt[8]);
bl9.gotoAndStop(blt[9]);
bl10.gotoAndStop(blt[10]);
bl11.gotoAndStop(blt[11]);
bl12.gotoAndStop(blt[12]);
bl13.gotoAndStop(blt[13]);
bl14.gotoAndStop(blt[14]);
bl15.gotoAndStop(blt[15]);
if (Key.isDown(45)) {
xz = 0;
pd = 0;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
if (Key.isDown(36)) {
xz = 1;
pd = 0;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
if (Key.isDown(33)) {
xz = 2;
pd = 0;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
if (Key.isDown(46)) {
xz = 3;
pd = 0;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
if (Key.isDown(35)) {
xz = 4;
pd = 0;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
if (Key.isDown(34)) {
xz = 5;
pd = 0;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
if (pd == 0) {
pf = 2 + (150 * xz);
if ((xz == 4) and (charge > 0)) {
if ((charge > 0) and (charge < 7)) {
pf = 624 - charge;
}
}
if ((xz == 2) and (charge > 0)) {
if ((charge > 0) and (charge < 7)) {
pf = 324 - charge;
}
}
if ((xz == 1) and (charge > 0)) {
if ((charge > 0) and (charge < 7)) {
pf = 174 - charge;
}
if ((charge > 6) and (charge < 12)) {
pf = 185 - charge;
}
if (charge > 11) {
pf = 196 - charge;
}
if ((Key.isDown(kattack) and (ptime == 0)) and (charge < 4)) {
ptime = 2;
charge = 12;
if (((((boss[1] + boss[3]) + boss[6]) > 1) and ((pd == 0) or (pd == 1))) and (pst[psn] == 0)) {
pst[psn] = 11;
psd[psn] = pd;
psx[psn] = px + 13;
psy[psn] = py - 14;
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
}
if (((Key.isDown(kattack) and (ptime < 2)) and (charge > 6)) and (charge < 10)) {
zeroswing.start();
ptime = 2;
charge = 17;
if (((((boss[1] + boss[3]) + boss[6]) > 2) and ((pd == 0) or (pd == 1))) and (pst[psn] == 0)) {
pst[psn] = 11;
psd[psn] = pd;
psx[psn] = px + 13;
psy[psn] = py - 17;
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
}
}
if ((xz == 1) and (boss[5] > 0)) {
if ((((pst[psn] == 0) and Key.isDown(kspec)) and (((pst[1] != 13) and (pst[2] != 13)) and (pst[3] != 13))) and (wenergy > 8)) {
pst[psn] = 13;
psd[psn] = 40;
psx[psn] = px;
psy[psn] = py;
wenergy = wenergy - 8;
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
}
if (Key.isDown(kright)) {
pd = 2;
}
if (Key.isDown(kleft)) {
pd = 1;
}
if (Key.isDown(kdash)) {
pd = 4;
}
if (Key.isDown(kjump)) {
pd = 6;
pj = -9;
}
if (Key.isDown(kjump) and Key.isDown(kdash)) {
pd = 8;
pj = -9;
}
if (((xz == 2) and Key.isDown(kspec)) and (wenergy > 10)) {
electric.start();
pd = 16;
wenergy = wenergy - 10;
ps = 9;
}
if ((xz == 5) and Key.isDown(kspec)) {
electric.start();
pd = 16;
ps = 8;
}
if ((((xz == 5) and Key.isDown(kcrush)) and (ptime < 1)) and (wenergy > 19)) {
teleportsfx.start();
pd = 18;
ps = 13;
}
}
if (pd == 1) {
pf = 72 + (150 * xz);
if ((xz == 4) and (charge > 0)) {
if ((charge > 0) and (charge < 7)) {
pf = 694 - charge;
}
}
if ((xz == 2) and (charge > 0)) {
if ((charge > 0) and (charge < 7)) {
pf = 394 - charge;
}
}
if ((xz == 1) and (charge > 0)) {
if ((charge > 0) and (charge < 7)) {
pf = 244 - charge;
}
if ((charge > 6) and (charge < 12)) {
pf = 255 - charge;
}
if (charge > 11) {
pf = 266 - charge;
}
if ((Key.isDown(kattack) and (ptime == 0)) and (charge < 4)) {
ptime = 2;
charge = 12;
if (((((boss[1] + boss[3]) + boss[6]) > 1) and ((pd == 0) or (pd == 1))) and (pst[psn] == 0)) {
pst[psn] = 11;
psd[psn] = pd;
psx[psn] = px - 13;
psy[psn] = py - 14;
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
}
if (((Key.isDown(kattack) and (ptime < 2)) and (charge > 6)) and (charge < 10)) {
zeroswing.start();
ptime = 2;
charge = 17;
if (((((boss[1] + boss[3]) + boss[6]) > 2) and ((pd == 0) or (pd == 1))) and (pst[psn] == 0)) {
pst[psn] = 11;
psd[psn] = pd;
psx[psn] = px - 13;
psy[psn] = py - 17;
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
}
}
if ((xz == 1) and (boss[5] > 0)) {
if ((((pst[psn] == 0) and Key.isDown(kspec)) and (((pst[1] != 13) and (pst[2] != 13)) and (pst[3] != 13))) and (wenergy > 8)) {
pst[psn] = 13;
psd[psn] = 40;
psx[psn] = px;
psy[psn] = py;
wenergy = wenergy - 8;
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
}
if (Key.isDown(kright)) {
pd = 0;
}
if (Key.isDown(kleft)) {
pd = 3;
}
if (Key.isDown(kdash)) {
pd = 5;
}
if (Key.isDown(kjump)) {
pd = 7;
pj = -9;
}
if (Key.isDown(kjump) and Key.isDown(kdash)) {
pd = 9;
pj = -9;
}
if (((xz == 2) and Key.isDown(kspec)) and (wenergy > 10)) {
electric.start();
wenergy = wenergy - 10;
pd = 17;
ps = 9;
}
if ((xz == 5) and Key.isDown(kspec)) {
electric.start();
pd = 17;
ps = 8;
}
if ((((xz == 5) and Key.isDown(kcrush)) and (ptime < 1)) and (wenergy > 19)) {
teleportsfx.start();
pd = 19;
ps = 13;
}
}
if (pd == 2) {
if ((pace > 0) and (pace < 3)) {
pf = 3 + (150 * xz);
}
if ((pace > 2) and (pace < 5)) {
pf = 4 + (150 * xz);
}
if ((pace > 4) and (pace < 7)) {
pf = 5 + (150 * xz);
}
if ((pace > 6) and (pace < 9)) {
pf = 6 + (150 * xz);
}
if ((pace > 8) and (pace < 11)) {
pf = 7 + (150 * xz);
}
if ((pace > 10) and (pace < 13)) {
pf = 8 + (150 * xz);
}
if ((pace > 12) and (pace < 15)) {
pf = 9 + (150 * xz);
}
if ((pace > 14) and (pace < 17)) {
pf = 10 + (150 * xz);
}
px = px + 4;
if ((xz == 4) and (charge > 0)) {
pf = 624 - charge;
}
if ((xz == 2) and (charge > 0)) {
pf = 324 - charge;
px = px - 4;
}
if ((xz == 1) and (charge > 0)) {
pf = 174 - charge;
px = px - 4;
}
pd = 0;
if (Key.isDown(kright)) {
pd = 2;
}
if (Key.isDown(kleft)) {
pd = 1;
}
if (Key.isDown(kdash)) {
pd = 4;
}
if (Key.isDown(kjump)) {
pd = 6;
pj = -9;
}
if (((xz == 2) and Key.isDown(kspec)) and (wenergy > 10)) {
electric.start();
wenergy = wenergy - 10;
pd = 16;
ps = 9;
}
if ((xz == 5) and Key.isDown(kspec)) {
electric.start();
pd = 16;
ps = 8;
}
}
if (pd == 3) {
if ((pace > 0) and (pace < 3)) {
pf = 73 + (150 * xz);
}
if ((pace > 2) and (pace < 5)) {
pf = 74 + (150 * xz);
}
if ((pace > 4) and (pace < 7)) {
pf = 75 + (150 * xz);
}
if ((pace > 6) and (pace < 9)) {
pf = 76 + (150 * xz);
}
if ((pace > 8) and (pace < 11)) {
pf = 77 + (150 * xz);
}
if ((pace > 10) and (pace < 13)) {
pf = 78 + (150 * xz);
}
if ((pace > 12) and (pace < 15)) {
pf = 79 + (150 * xz);
}
if ((pace > 14) and (pace < 17)) {
pf = 80 + (150 * xz);
}
px = px - 4;
if ((xz == 4) and (charge > 0)) {
pf = 694 - charge;
}
if ((xz == 2) and (charge > 0)) {
pf = 394 - charge;
px = px + 4;
}
if ((xz == 1) and (charge > 0)) {
pf = 244 - charge;
px = px + 4;
}
pd = 1;
if (Key.isDown(kright)) {
pd = 0;
}
if (Key.isDown(kleft)) {
pd = 3;
}
if (Key.isDown(kdash)) {
pd = 5;
}
if (Key.isDown(kjump)) {
pd = 7;
pj = -9;
}
if (((xz == 2) and Key.isDown(kspec)) and (wenergy > 10)) {
electric.start();
wenergy = wenergy - 10;
pd = 17;
ps = 9;
}
if ((xz == 5) and Key.isDown(kspec)) {
electric.start();
pd = 17;
ps = 8;
}
}
if (pd == 4) {
pf = 13 + (150 * xz);
if ((xz == 4) and (charge > 0)) {
pf = 640 - charge;
}
if ((xz == 2) and (charge > 0)) {
pf = 340 - charge;
}
if ((xz == 1) and (charge > 0)) {
pf = 190 - charge;
}
px = px + 7;
pd = 0;
if (Key.isDown(kspec) and (xz == 1)) {
if (((boss[4] > 0) and (pst[psn] == 0)) and (((pst[1] != 12) and (pst[2] != 12)) and (pst[3] != 12))) {
pst[psn] = 12;
psd[psn] = 0;
psx[psn] = px + 30;
psy[psn] = py - 12;
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
}
if (Key.isDown(kdash)) {
pd = 4;
}
if (Key.isDown(kjump)) {
pd = 8;
pj = -9;
}
if (((xz == 2) and Key.isDown(kspec)) and (wenergy > 10)) {
electric.start();
wenergy = wenergy - 10;
pd = 16;
ps = 9;
}
if ((xz == 5) and Key.isDown(kspec)) {
electric.start();
pd = 16;
ps = 8;
}
}
if (pd == 5) {
pf = 83 + (150 * xz);
if ((xz == 4) and (charge > 0)) {
pf = 710 - charge;
}
if ((xz == 2) and (charge > 0)) {
pf = 410 - charge;
}
if ((xz == 1) and (charge > 0)) {
pf = 260 - charge;
}
px = px - 7;
pd = 1;
if (Key.isDown(kspec) and (xz == 1)) {
if (((boss[4] > 0) and (pst[psn] == 0)) and (((pst[1] != 12) and (pst[2] != 12)) and (pst[3] != 12))) {
pst[psn] = 12;
psd[psn] = 1;
psx[psn] = px - 30;
psy[psn] = py - 12;
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
}
if (Key.isDown(kdash)) {
pd = 5;
}
if (Key.isDown(kjump)) {
pd = 9;
pj = -9;
}
if (((xz == 2) and Key.isDown(kspec)) and (wenergy > 10)) {
electric.start();
wenergy = wenergy - 10;
pd = 17;
ps = 9;
}
if ((xz == 5) and Key.isDown(kspec)) {
electric.start();
pd = 17;
ps = 8;
}
}
if (pd == 6) {
if (pj <= 0) {
pf = 11 + (150 * xz);
}
if (pj > 0) {
pf = 12 + (150 * xz);
}
if ((xz == 4) and (charge > 0)) {
pf = 646 - charge;
}
if ((xz == 2) and (charge > 0)) {
pf = 346 - charge;
}
if ((xz == 1) and (charge > 0)) {
pf = 196 - charge;
}
if (Key.isDown(kright)) {
px = px + 4;
}
if (Key.isDown(kleft)) {
px = px - 5;
pd = 7;
}
}
if (pd == 7) {
if (pj <= 0) {
pf = 81 + (150 * xz);
}
if (pj > 0) {
pf = 82 + (150 * xz);
}
if ((xz == 4) and (charge > 0)) {
pf = 716 - charge;
}
if ((xz == 2) and (charge > 0)) {
pf = 416 - charge;
}
if ((xz == 1) and (charge > 0)) {
pf = 266 - charge;
}
if (Key.isDown(kright)) {
px = px + 4;
pd = 6;
}
if (Key.isDown(kleft)) {
px = px - 5;
}
}
if (pd == 8) {
if (pj <= 0) {
pf = 11 + (150 * xz);
}
if (pj > 0) {
pf = 12 + (150 * xz);
}
if ((xz == 4) and (charge > 0)) {
pf = 646 - charge;
}
if ((xz == 2) and (charge > 0)) {
pf = 346 - charge;
}
if ((xz == 1) and (charge > 0)) {
pf = 196 - charge;
}
if (Key.isDown(kright)) {
px = px + 7;
}
if (Key.isDown(kleft)) {
px = px - 7;
pd = 9;
}
}
if (pd == 9) {
if (pj <= 0) {
pf = 81 + (150 * xz);
}
if (pj > 0) {
pf = 82 + (150 * xz);
}
if ((xz == 4) and (charge > 0)) {
pf = 716 - charge;
}
if ((xz == 2) and (charge > 0)) {
pf = 416 - charge;
}
if ((xz == 1) and (charge > 0)) {
pf = 266 - charge;
}
if (Key.isDown(kright)) {
px = px + 7;
pd = 8;
}
if (Key.isDown(kleft)) {
px = px - 7;
}
}
if (pd == 10) {
pf = 16 + (150 * xz);
px = px + 4;
py = py - 4;
ps = ps + 1;
if (ps > 2) {
pd = 6;
pj = 2;
if (Key.isDown(kjump)) {
pd = 6;
pj = -9;
}
if ((Key.isDown(kright) and Key.isDown(kjump)) and Key.isDown(kdash)) {
pd = 8;
pj = -9;
}
if (Key.isDown(kleft) and Key.isDown(kjump)) {
pd = 7;
pj = -9;
}
if ((Key.isDown(kleft) and Key.isDown(kjump)) and Key.isDown(kdash)) {
pd = 9;
pj = -9;
}
}
}
if (pd == 11) {
pf = 86 + (150 * xz);
px = px - 5;
py = py - 4;
ps = ps + 1;
if (ps > 2) {
pd = 7;
pj = 2;
if (Key.isDown(kjump)) {
pd = 7;
pj = -9;
}
if (Key.isDown(kjump) and Key.isDown(kdash)) {
pd = 9;
pj = -9;
}
if (Key.isDown(kright) and Key.isDown(kjump)) {
pd = 6;
pj = -9;
}
if ((Key.isDown(kright) and Key.isDown(kjump)) and Key.isDown(kdash)) {
pd = 8;
pj = -9;
}
}
}
if (pd == 12) {
pf = 17 + (150 * xz);
if ((xz == 4) and (charge > 0)) {
pf = 652 - charge;
}
if ((xz == 2) and (charge > 0)) {
pf = 352 - charge;
}
if ((xz == 1) and (charge > 0)) {
pf = 202 - charge;
}
py = py + 2;
if (xz == 4) {
py = py - 2;
}
if (pwall == 0) {
pd = 6;
pj = 2;
}
if (pwall == 1) {
pd = 12;
pj = 0;
}
if (Key.isDown(kright)) {
pd = 6;
pj = 2;
px = px + 4;
}
if (Key.isDown(kjump)) {
pd = 10;
px = px + 4;
ps = 1;
}
}
if (pd == 13) {
pf = 87 + (150 * xz);
if ((xz == 4) and (charge > 0)) {
pf = 722 - charge;
}
if ((xz == 2) and (charge > 0)) {
pf = 422 - charge;
}
if ((xz == 1) and (charge > 0)) {
pf = 272 - charge;
}
py = py + 2;
if (xz == 4) {
py = py - 2;
}
if (pwall == 0) {
pd = 7;
pj = 2;
}
if (pwall == 1) {
pd = 13;
pj = 0;
}
if (Key.isDown(kleft)) {
pd = 7;
pj = 2;
px = px - 5;
}
if (Key.isDown(kjump)) {
pd = 11;
px = px - 5;
ps = 1;
}
}
if (pd == 14) {
if ((ps > -1) and (ps < 5)) {
pf = 14 + (150 * xz);
}
if ((ps > 4) and (ps < 9)) {
pf = 15 + (150 * xz);
}
if ((xz == 4) and (charge > 0)) {
pf = 658 - charge;
}
if ((xz == 2) and (charge > 0)) {
pf = 358 - charge;
}
if ((xz == 1) and (charge > 0)) {
pf = 208 - charge;
}
if (Key.isDown(38) and (ptime < 1)) {
py = py - 4;
ps = ps + 1;
if (ps > 8) {
ps = 1;
}
}
if (Key.isDown(40) and (ptime < 1)) {
py = py + 4;
ps = ps + 1;
if (ps > 8) {
ps = 1;
}
}
if (Key.isDown(kleft)) {
pd = 15;
}
if (Key.isDown(kjump)) {
pd = 6;
px = px + 12;
pj = 2;
}
}
if (pd == 15) {
if ((ps > -1) and (ps < 5)) {
pf = 84 + (150 * xz);
}
if ((ps > 4) and (ps < 9)) {
pf = 85 + (150 * xz);
}
if ((xz == 4) and (charge > 0)) {
pf = 728 - charge;
}
if ((xz == 2) and (charge > 0)) {
pf = 428 - charge;
}
if ((xz == 1) and (charge > 0)) {
pf = 278 - charge;
}
if (Key.isDown(38) and (ptime < 1)) {
py = py - 4;
ps = ps + 1;
if (ps > 8) {
ps = 1;
}
}
if (Key.isDown(40) and (ptime < 1)) {
py = py + 4;
ps = ps + 1;
if (ps > 8) {
ps = 1;
}
}
if (Key.isDown(kright)) {
pd = 14;
}
if (Key.isDown(kjump)) {
pd = 7;
px = px - 12;
pj = 2;
}
}
if ((pd > 5) and (pd < 10)) {
py = py + pj;
pj = pj + 4;
if (pj > 12) {
pj = 12;
}
if (Key.isDown(kjump)) {
pj = pj - 3;
}
}
h1 = 1;
while (h1 < 4) {
if (pst[h1] > 0) {
if ((xz == 0) or (xz == 3)) {
if (psd[h1] == 0) {
psx[h1] = psx[h1] + 10;
}
if (psd[h1] == 1) {
psx[h1] = psx[h1] - 10;
}
}
if (xz == 5) {
if (psd[h1] == 0) {
psx[h1] = psx[h1] + 8;
}
if (psd[h1] == 1) {
psx[h1] = psx[h1] - 8;
}
}
if ((((psx[h1] > (camx + 125)) or (psx[h1] < (camx - 125))) or (psy[h1] > (camy + 60))) or (psy[h1] < (camy - 110))) {
pst[h1] = 0;
psf[h1] = 13;
psx[h1] = -2000;
psy[h1] = -2000;
}
if (pst[h1] == 1) {
psf[h1] = 2;
}
if (pst[h1] == 2) {
if (psd[h1] == 0) {
if ((((((((pace == 1) or (pace == 2)) or (pace == 5)) or (pace == 6)) or (pace == 9)) or (pace == 10)) or (pace == 13)) or (pace == 14)) {
psf[h1] = 3;
}
if ((((((((pace == 3) or (pace == 4)) or (pace == 7)) or (pace == 8)) or (pace == 11)) or (pace == 12)) or (pace == 15)) or (pace == 16)) {
psf[h1] = 4;
}
}
if (psd[h1] == 1) {
if ((((((((pace == 1) or (pace == 2)) or (pace == 5)) or (pace == 6)) or (pace == 9)) or (pace == 10)) or (pace == 13)) or (pace == 14)) {
psf[h1] = 8;
}
if ((((((((pace == 3) or (pace == 4)) or (pace == 7)) or (pace == 8)) or (pace == 11)) or (pace == 12)) or (pace == 15)) or (pace == 16)) {
psf[h1] = 9;
}
}
}
if (pst[h1] == 3) {
if (psd[h1] == 0) {
if (((((pace == 1) or (pace == 5)) or (pace == 8)) or (pace == 11)) or (pace == 14)) {
psf[h1] = 5;
}
if ((((((pace == 2) or (pace == 3)) or (pace == 6)) or (pace == 9)) or (pace == 12)) or (pace == 15)) {
psf[h1] = 5;
}
if (((((pace == 4) or (pace == 7)) or (pace == 8)) or (pace == 13)) or (pace == 16)) {
psf[h1] = 7;
}
}
if (psd[h1] == 1) {
if (((((pace == 1) or (pace == 5)) or (pace == 8)) or (pace == 11)) or (pace == 14)) {
psf[h1] = 10;
}
if ((((((pace == 2) or (pace == 3)) or (pace == 6)) or (pace == 9)) or (pace == 12)) or (pace == 15)) {
psf[h1] = 11;
}
if (((((pace == 4) or (pace == 7)) or (pace == 8)) or (pace == 13)) or (pace == 16)) {
psf[h1] = 12;
}
}
}
if (pst[h1] == 4) {
if (psd[h1] == 0) {
psx[h1] = psx[h1] + 2;
if ((((((((pace == 1) or (pace == 2)) or (pace == 5)) or (pace == 6)) or (pace == 9)) or (pace == 10)) or (pace == 13)) or (pace == 14)) {
psf[h1] = 14;
}
if ((((((((pace == 3) or (pace == 4)) or (pace == 7)) or (pace == 8)) or (pace == 11)) or (pace == 12)) or (pace == 15)) or (pace == 16)) {
psf[h1] = 15;
}
}
if (psd[h1] == 1) {
psx[h1] = psx[h1] - 2;
if ((((((((pace == 1) or (pace == 2)) or (pace == 5)) or (pace == 6)) or (pace == 9)) or (pace == 10)) or (pace == 13)) or (pace == 14)) {
psf[h1] = 16;
}
if ((((((((pace == 3) or (pace == 4)) or (pace == 7)) or (pace == 8)) or (pace == 11)) or (pace == 12)) or (pace == 15)) or (pace == 16)) {
psf[h1] = 17;
}
}
}
if (pst[h1] == 5) {
psf[h1] = 18;
}
if (pst[h1] == 6) {
if (psd[h1] == 0) {
if ((((((((pace == 1) or (pace == 2)) or (pace == 5)) or (pace == 6)) or (pace == 9)) or (pace == 10)) or (pace == 13)) or (pace == 14)) {
psf[h1] = 19;
}
if ((((((((pace == 3) or (pace == 4)) or (pace == 7)) or (pace == 8)) or (pace == 11)) or (pace == 12)) or (pace == 15)) or (pace == 16)) {
psf[h1] = 20;
}
}
if (psd[h1] == 1) {
if ((((((((pace == 1) or (pace == 2)) or (pace == 5)) or (pace == 6)) or (pace == 9)) or (pace == 10)) or (pace == 13)) or (pace == 14)) {
psf[h1] = 21;
}
if ((((((((pace == 3) or (pace == 4)) or (pace == 7)) or (pace == 8)) or (pace == 11)) or (pace == 12)) or (pace == 15)) or (pace == 16)) {
psf[h1] = 22;
}
}
}
if (pst[h1] == 7) {
if (psd[h1] == 0) {
if (((((pace == 1) or (pace == 5)) or (pace == 8)) or (pace == 11)) or (pace == 14)) {
psf[h1] = 23;
}
if ((((((pace == 2) or (pace == 3)) or (pace == 6)) or (pace == 9)) or (pace == 12)) or (pace == 15)) {
psf[h1] = 24;
}
if (((((pace == 4) or (pace == 7)) or (pace == 8)) or (pace == 13)) or (pace == 16)) {
psf[h1] = 25;
}
}
if (psd[h1] == 1) {
if (((((pace == 1) or (pace == 5)) or (pace == 8)) or (pace == 11)) or (pace == 14)) {
psf[h1] = 26;
}
if ((((((pace == 2) or (pace == 3)) or (pace == 6)) or (pace == 9)) or (pace == 12)) or (pace == 15)) {
psf[h1] = 27;
}
if (((((pace == 4) or (pace == 7)) or (pace == 8)) or (pace == 13)) or (pace == 16)) {
psf[h1] = 28;
}
}
}
if (pst[h1] == 8) {
if (psd[h1] == 0) {
if ((((((((pace == 1) or (pace == 2)) or (pace == 5)) or (pace == 6)) or (pace == 9)) or (pace == 10)) or (pace == 13)) or (pace == 14)) {
psf[h1] = 29;
}
if ((((((((pace == 3) or (pace == 4)) or (pace == 7)) or (pace == 8)) or (pace == 11)) or (pace == 12)) or (pace == 15)) or (pace == 16)) {
psf[h1] = 30;
}
}
if (psd[h1] == 1) {
if ((((((((pace == 1) or (pace == 2)) or (pace == 5)) or (pace == 6)) or (pace == 9)) or (pace == 10)) or (pace == 13)) or (pace == 14)) {
psf[h1] = 31;
}
if ((((((((pace == 3) or (pace == 4)) or (pace == 7)) or (pace == 8)) or (pace == 11)) or (pace == 12)) or (pace == 15)) or (pace == 16)) {
psf[h1] = 32;
}
}
}
if (pst[h1] == 9) {
psf[h1] = 33;
psd[h1] = psd[h1] - 1;
if (psd[h1] < 3) {
pst[h1] = 0;
psf[h1] = 13;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
if (pst[h1] == 10) {
psf[h1] = 34;
psd[h1] = psd[h1] - 1;
if (psd[h1] < 3) {
pst[h1] = 0;
psf[h1] = 13;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
if (pst[h1] == 11) {
if (psd[h1] == 0) {
psf[h1] = 35;
psx[h1] = psx[h1] + 8;
if (psx[h1] > (px + 56)) {
pst[h1] = 0;
psf[h1] = 13;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
if (psd[h1] == 1) {
psf[h1] = 36;
psx[h1] = psx[h1] - 8;
if (psx[h1] < (px - 56)) {
pst[h1] = 0;
psf[h1] = 13;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
}
if (pst[h1] == 12) {
pst[h1] = 0;
psf[h1] = 13;
psx[h1] = -2000;
psy[h1] = -2000;
if ((Key.isDown(kspec) and (wenergy > 1)) and ((pd == 4) or (pd == 5))) {
pst[h1] = 12;
psy[h1] = py - 12;
wenergy = wenergy - 1;
if (psd[h1] == 0) {
psf[h1] = 37;
psx[h1] = px + 20;
}
if (psd[h1] == 1) {
psf[h1] = 38;
psx[h1] = px - 20;
}
}
}
if (pst[h1] == 13) {
psf[h1] = 39;
psx[h1] = px;
psy[h1] = py - 13;
psd[h1] = psd[h1] - 1;
if (psd[h1] < 1) {
pst[h1] = 0;
psf[h1] = 13;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
if (pst[h1] == 14) {
psf[h1] = 40;
psd[h1] = psd[h1] - 1;
if (psd[h1] < 2) {
pst[h1] = 0;
psf[h1] = 13;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
if (pst[h1] == 15) {
if (psd[h1] == 0) {
psf[h1] = 41;
psx[h1] = psx[h1] - random(8);
}
if (psd[h1] == 1) {
psf[h1] = 42;
psx[h1] = psx[h1] + random(8);
}
}
if (pst[h1] == 16) {
psf[h1] = 43;
psd[h1] = psd[h1] - 1;
if (psd[h1] < 2) {
pst[h1] = 0;
psf[h1] = 13;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
if (pst[h1] == 17) {
if (psd[h1] == 0) {
psf[h1] = 44;
psx[h1] = psx[h1] - 3;
if (psx[h1] > (px + 40)) {
pst[h1] = 0;
psf[h1] = 13;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
if (psd[h1] == 1) {
psf[h1] = 45;
psx[h1] = psx[h1] + 3;
if (psx[h1] < (px - 40)) {
pst[h1] = 0;
psf[h1] = 13;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
}
if (pst[h1] == 18) {
psf[h1] = 46;
psx[h1] = px;
psy[h1] = py - 13;
psd[h1] = psd[h1] - 1;
if (psd[h1] < 2) {
pst[h1] = 0;
psf[h1] = 13;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
if (pst[h1] == 19) {
psy[h1] = psy[h1] + 1;
if (psd[h1] == 0) {
psf[h1] = 47;
psx[h1] = psx[h1] - 5;
}
if (psd[h1] == 1) {
psf[h1] = 48;
psx[h1] = psx[h1] + 5;
}
}
if (pst[h1] == 20) {
psf[h1] = 49 + psd[h1];
if (psd[h1] == 0) {
if (psx[h1] > (camx + 80)) {
psd[h1] = random(2) + 6;
jump.start();
}
}
if (psd[h1] == 1) {
if (psx[h1] < (camx - 80)) {
psd[h1] = random(2) + 4;
jump.start();
}
}
if (psd[h1] == 2) {
psy[h1] = psy[h1] - 10;
if (psy[h1] < (camy - 80)) {
psd[h1] = (2 * random(2)) + 4;
jump.start();
}
}
if (psd[h1] == 3) {
psy[h1] = psy[h1] + 10;
if (psy[h1] > (camy + 30)) {
psd[h1] = (2 * random(2)) + 5;
jump.start();
}
}
if (psd[h1] == 4) {
psx[h1] = psx[h1] + 7;
psy[h1] = psy[h1] - 7;
if ((psx[h1] > (camx + 80)) or (psy[h1] < (camy - 80))) {
psd[h1] = (2 * random(2)) + 3;
jump.start();
}
}
if (psd[h1] == 5) {
psx[h1] = psx[h1] + 7;
psy[h1] = psy[h1] + 7;
if ((psx[h1] > (camx + 80)) or (psy[h1] > (camy + 30))) {
psd[h1] = (2 * random(2)) + 2;
jump.start();
}
}
if (psd[h1] == 6) {
psx[h1] = psx[h1] - 7;
psy[h1] = psy[h1] - 7;
if ((psx[h1] < (camx - 80)) or (psy[h1] < (camy - 80))) {
psd[h1] = (4 * random(2)) + 3;
jump.start();
}
}
if (psd[h1] == 7) {
psx[h1] = psx[h1] - 7;
psy[h1] = psy[h1] + 7;
if ((psx[h1] < (camx - 80)) or (psy[h1] > (camy + 30))) {
psd[h1] = (4 * random(2)) + 2;
jump.start();
}
}
}
if (pst[h1] == 21) {
psf[h1] = 57;
psd[h1] = psd[h1] - 1;
if (psd[h1] < 2) {
pst[h1] = 0;
psf[h1] = 13;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
}
h1++;
}
if (xz == 0) {
if ((Key.isDown(kcrush) and ((pd == 0) or (pd == 1))) and (crusher == 100)) {
i = 20;
gotoAndPlay (2201);
}
if (((Key.isDown(kspec) and (boss[weap] > 0)) and (ptime == 0)) and (pst[psn] == 0)) {
if (((weap == 1) and (wenergy > 10)) and ((pd > -1) and (pd < 6))) {
buster.start();
wenergy = wenergy - 10;
ptime = 20;
pst[psn] = 14;
psy[psn] = py - 14;
psx[psn] = px;
psd[psn] = 18;
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
if ((((weap == 2) or (weap == 6)) or (weap == 7)) and (wenergy > 6)) {
buster.start();
wenergy = wenergy - 6;
ptime = 8;
pst[psn] = weap + 13;
if ((((((((pd == 0) or (pd == 2)) or (pd == 4)) or (pd == 6)) or (pd == 8)) or (pd == 11)) or (pd == 12)) or (pd == 14)) {
psd[psn] = 0;
}
if ((((((((pd == 1) or (pd == 3)) or (pd == 5)) or (pd == 7)) or (pd == 9)) or (pd == 10)) or (pd == 13)) or (pd == 15)) {
psd[psn] = 1;
}
if ((pd == 0) or (pd == 2)) {
psx[psn] = px + 13;
psy[psn] = py - 14;
}
if ((pd == 1) or (pd == 3)) {
psx[psn] = px - 13;
psy[psn] = py - 14;
}
if (pd == 4) {
psx[psn] = px + 15;
psy[psn] = py - 10;
}
if (pd == 5) {
psx[psn] = px - 15;
psy[psn] = py - 10;
}
if ((pd == 6) or (pd == 8)) {
psx[psn] = px + 14;
psy[psn] = py - 17;
}
if ((pd == 7) or (pd == 9)) {
psx[psn] = px - 14;
psy[psn] = py - 17;
}
if (pd == 10) {
psx[psn] = px - 13;
psy[psn] = py - 16;
}
if (pd == 11) {
psx[psn] = px + 13;
psy[psn] = py - 16;
}
if ((pd == 12) or (pd == 14)) {
psx[psn] = px + 13;
psy[psn] = py - 20;
}
if ((pd == 13) or (pd == 15)) {
psx[psn] = px - 13;
psy[psn] = py - 20;
}
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
if (((weap == 3) and (wenergy > 8)) and ((pd > -1) and (pd < 4))) {
buster.start();
wenergy = wenergy - 8;
ptime = 16;
pst[psn] = 16;
psy[psn] = py;
psx[psn] = px;
psd[psn] = 11;
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
if (((weap == 4) and (wenergy > 6)) and ((pd > -1) and (pd < 6))) {
buster.start();
wenergy = wenergy - 6;
ptime = 13;
pst[psn] = 17;
psy[psn] = py - 14;
if ((((((((pd == 0) or (pd == 2)) or (pd == 4)) or (pd == 6)) or (pd == 8)) or (pd == 11)) or (pd == 12)) or (pd == 14)) {
psd[psn] = 0;
psx[psn] = px + 10;
}
if ((((((((pd == 1) or (pd == 3)) or (pd == 5)) or (pd == 7)) or (pd == 9)) or (pd == 10)) or (pd == 13)) or (pd == 15)) {
psd[psn] = 1;
psx[psn] = px - 10;
}
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
if ((weap == 5) and (wenergy > 10)) {
buster.start();
wenergy = wenergy - 10;
ptime = 85;
pst[psn] = 18;
psy[psn] = py - 13;
psx[psn] = px;
psd[psn] = 72;
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
if (((weap == 8) and (wenergy > 10)) and ((pd > -1) and (pd < 6))) {
buster.start();
wenergy = wenergy - 10;
ptime = 20;
pst[psn] = 21;
psy[psn] = py;
psx[psn] = px;
psd[psn] = 28;
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
}
if (ptime == 5) {
ptime = 0;
}
if (Key.isDown(kattack)) {
ptime = 2;
charge = charge + 1;
}
if (ptime > 0) {
pf = pf + 16;
if ((ptime == 1) and (pst[psn] == 0)) {
if (charge < 15) {
lilbuster.start();
pst[psn] = 1;
}
if ((charge > 14) and (charge < 40)) {
midbuster.start();
pst[psn] = 2;
}
if (charge > 39) {
maxbuster.start();
pst[psn] = 3;
}
charge = 0;
if ((((((((pd == 0) or (pd == 2)) or (pd == 4)) or (pd == 6)) or (pd == 8)) or (pd == 11)) or (pd == 12)) or (pd == 14)) {
psd[psn] = 0;
}
if ((((((((pd == 1) or (pd == 3)) or (pd == 5)) or (pd == 7)) or (pd == 9)) or (pd == 10)) or (pd == 13)) or (pd == 15)) {
psd[psn] = 1;
}
if ((pd == 0) or (pd == 2)) {
psx[psn] = px + 13;
psy[psn] = py - 14;
}
if ((pd == 1) or (pd == 3)) {
psx[psn] = px - 13;
psy[psn] = py - 14;
}
if (pd == 4) {
psx[psn] = px + 15;
psy[psn] = py - 10;
}
if (pd == 5) {
psx[psn] = px - 15;
psy[psn] = py - 10;
}
if ((pd == 6) or (pd == 8)) {
psx[psn] = px + 14;
psy[psn] = py - 17;
}
if ((pd == 7) or (pd == 9)) {
psx[psn] = px - 14;
psy[psn] = py - 17;
}
if (pd == 10) {
psx[psn] = px - 13;
psy[psn] = py - 16;
}
if (pd == 11) {
psx[psn] = px + 13;
psy[psn] = py - 16;
}
if ((pd == 12) or (pd == 14)) {
psx[psn] = px + 13;
psy[psn] = py - 20;
}
if ((pd == 13) or (pd == 15)) {
psx[psn] = px - 13;
psy[psn] = py - 20;
}
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
}
}
if (xz == 1) {
if ((Key.isDown(kcrush) and ((pd == 0) or (pd == 1))) and (crusher == 100)) {
i = 20;
gotoAndPlay (2101);
}
if (charge > 0) {
charge = charge - 1;
}
if ((charge == 7) or (charge == 12)) {
charge = 0;
}
if (Key.isDown(kattack)) {
if ((ptime == 0) and (charge == 0)) {
charge = 6;
zeroswing.start();
if ((((((boss[1] + boss[3]) + boss[6]) > 0) and ((pd > -1) and (pd < 4))) and (pst[psn] == 0)) and (wenergy > 2)) {
wenergy = wenergy - 2;
pst[psn] = 11;
if ((pd == 0) or (pd == 2)) {
psd[psn] = 0;
}
if ((pd == 1) or (pd == 3)) {
psd[psn] = 1;
}
if ((pd == 0) or (pd == 2)) {
psx[psn] = px + 13;
psy[psn] = py - 16;
}
if ((pd == 1) or (pd == 3)) {
psx[psn] = px - 13;
psy[psn] = py - 16;
}
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
if ((((boss[2] > 0) and ((pd == 4) or (pd == 5))) and (pst[psn] == 0)) and (wenergy > 2)) {
wenergy = wenergy - 2;
pst[psn] = 11;
psd[psn] = pd - 4;
if (pd == 4) {
psx[psn] = px + 15;
psy[psn] = py - 10;
}
if (pd == 5) {
psx[psn] = px - 15;
psy[psn] = py - 10;
}
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
if ((((boss[7] > 0) and (((pd > 5) and (pd < 10)) or ((pd > 11) and (pd < 16)))) and (pst[psn] == 0)) and (wenergy > 2)) {
wenergy = wenergy - 2;
pst[psn] = 11;
if ((((pd == 6) or (pd == 8)) or (pd == 12)) or (pd == 14)) {
psd[psn] = 0;
psx[psn] = px + 15;
psy[psn] = py - 10;
}
if ((((pd == 7) or (pd == 9)) or (pd == 13)) or (pd == 15)) {
psd[psn] = 1;
psx[psn] = px - 15;
psy[psn] = py - 10;
}
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
}
ptime = 2;
}
if ((boss[8] > 0) and (charge > 0)) {
h1 = 1;
while (h1 < 7) {
if ((bst[h1] == 1) or (bst[h1] == 2)) {
if ((((((((pd == 0) or (pd == 2)) or (pd == 4)) or (pd == 6)) or (pd == 8)) or (pd == 11)) or (pd == 12)) or (pd == 14)) {
if (((((bsx[h1] - 4) < (px + 35)) and ((bsx[h1] + 4) > px)) and ((bsy[h1] - 4) < (py + 7))) and ((bsy[h1] + 4) > (py - 32))) {
bst[h1] = 0;
bsd[h1] = 0;
bsx[h1] = -2000;
bsy[h1] = -2000;
bsf[h1] = 7;
}
}
if ((((((((pd == 1) or (pd == 3)) or (pd == 5)) or (pd == 7)) or (pd == 9)) or (pd == 10)) or (pd == 13)) or (pd == 15)) {
if (((((bsx[h1] + 4) > (px - 35)) and ((bsx[h1] - 4) < px)) and ((bsy[h1] - 4) < (py + 7))) and ((bsy[h1] + 4) > (py - 32))) {
bst[h1] = 0;
bsd[h1] = 0;
bsx[h1] = -2000;
bsy[h1] = -2000;
bsf[h1] = 7;
}
}
}
h1++;
}
}
}
if (xz == 2) {
if ((Key.isDown(kcrush) and ((pd == 0) or (pd == 1))) and (crusher == 100)) {
i = 20;
gotoAndPlay (1901);
}
if (charge > 0) {
charge = charge - 1;
}
if (Key.isDown(kattack)) {
if ((ptime == 0) and (charge == 0)) {
charge = 6;
deliaswing.start();
}
ptime = 2;
}
if (pd == 16) {
pf = 367 - ps;
ps = ps - 1;
if (ps < 1) {
pd = 0;
}
if (Key.isDown(kjump)) {
pd = 6;
pj = -10;
}
}
if (pd == 17) {
pf = 437 - ps;
ps = ps - 1;
if (ps < 1) {
pd = 1;
}
if (Key.isDown(kjump)) {
pd = 7;
pj = -10;
}
}
}
if (xz == 3) {
if ((Key.isDown(kcrush) and ((pd == 0) or (pd == 1))) and (crusher == 100)) {
i = 20;
gotoAndPlay (1701);
}
if (((Key.isDown(kspec) and (ptime < 1)) and (pst[psn] == 0)) and (wenergy > (14 - (((((((boss[1] + boss[2]) + boss[3]) + boss[4]) + boss[5]) + boss[6]) + boss[7]) + boss[8])))) {
ptime = 15;
wenergy = wenergy - (14 - (((((((boss[1] + boss[2]) + boss[3]) + boss[4]) + boss[5]) + boss[6]) + boss[7]) + boss[8]));
boom1.start();
psd[psn] = 30;
if ((((((((pd == 0) or (pd == 2)) or (pd == 4)) or (pd == 6)) or (pd == 8)) or (pd == 11)) or (pd == 12)) or (pd == 14)) {
pst[psn] = 9;
}
if ((((((((pd == 1) or (pd == 3)) or (pd == 5)) or (pd == 7)) or (pd == 9)) or (pd == 10)) or (pd == 13)) or (pd == 15)) {
pst[psn] = 10;
}
psx[psn] = px;
psy[psn] = py - 20;
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
if (ptime == 5) {
ptime = 0;
}
if (Key.isDown(kattack) and (ptime < 1)) {
ptime = 3;
}
if (ptime > 0) {
pf = pf + 16;
if ((ptime == 1) and (pst[psn] == 0)) {
buster.start();
pst[psn] = 4;
if ((((((((pd == 0) or (pd == 2)) or (pd == 4)) or (pd == 6)) or (pd == 8)) or (pd == 11)) or (pd == 12)) or (pd == 14)) {
psd[psn] = 0;
}
if ((((((((pd == 1) or (pd == 3)) or (pd == 5)) or (pd == 7)) or (pd == 9)) or (pd == 10)) or (pd == 13)) or (pd == 15)) {
psd[psn] = 1;
}
if ((pd == 0) or (pd == 2)) {
psx[psn] = px + 13;
psy[psn] = py - 14;
}
if ((pd == 1) or (pd == 3)) {
psx[psn] = px - 13;
psy[psn] = py - 14;
}
if (pd == 4) {
psx[psn] = px + 15;
psy[psn] = py - 10;
}
if (pd == 5) {
psx[psn] = px - 15;
psy[psn] = py - 10;
}
if ((pd == 6) or (pd == 8)) {
psx[psn] = px + 14;
psy[psn] = py - 17;
}
if ((pd == 7) or (pd == 9)) {
psx[psn] = px - 14;
psy[psn] = py - 17;
}
if (pd == 10) {
psx[psn] = px - 13;
psy[psn] = py - 16;
}
if (pd == 11) {
psx[psn] = px + 13;
psy[psn] = py - 16;
}
if ((pd == 12) or (pd == 14)) {
psx[psn] = px + 13;
psy[psn] = py - 20;
}
if ((pd == 13) or (pd == 15)) {
psx[psn] = px - 13;
psy[psn] = py - 20;
}
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
}
}
if (xz == 4) {
if ((Key.isDown(kcrush) and ((pd == 0) or (pd == 1))) and (crusher == 100)) {
i = 20;
gotoAndPlay (1801);
}
if ((Key.isDown(kspec) and (i < 2)) and (wenergy > 10)) {
lightning.start();
i = 30 + (5 * (((((((boss[1] + boss[2]) + boss[3]) + boss[4]) + boss[5]) + boss[6]) + boss[7]) + boss[8]));
wenergy = wenergy - 10;
}
if (charge > 0) {
charge = charge - 1;
}
if ((charge == 7) or (charge == 12)) {
charge = 0;
}
if (Key.isDown(kattack)) {
if ((ptime == 0) and (charge == 0)) {
charge = 6;
shothit.start();
}
ptime = 2;
}
}
if (xz == 5) {
if ((Key.isDown(kspec) and ((pd == 20) or (pd == 21))) and (crusher == 100)) {
i = 20;
gotoAndPlay (2001);
}
if (pd == 20) {
pf = 794;
charge = 0;
if (Key.isDown(kright)) {
px = px + 5;
}
if (Key.isDown(kleft)) {
px = px - 5;
if (ptime < 1) {
pd = 21;
}
}
if (Key.isDown(kup)) {
py = py - 4;
}
if (Key.isDown(kdown)) {
py = py + 4;
}
if (Key.isDown(kcrush) or (wenergy < 1)) {
pd = 0;
ptime = 10;
}
}
if (pd == 21) {
pf = 864;
charge = 0;
if (Key.isDown(kright)) {
px = px + 5;
if (ptime < 1) {
pd = 20;
}
}
if (Key.isDown(kleft)) {
px = px - 5;
}
if (Key.isDown(kup)) {
py = py - 4;
}
if (Key.isDown(kdown)) {
py = py + 4;
}
if (Key.isDown(kcrush) or (wenergy < 1)) {
pd = 1;
ptime = 10;
}
}
if (ptime == 3) {
ptime = 0;
}
if (((pd == 20) or (pd == 21)) and ((((pace == 3) or (pace == 7)) or (pace == 11)) or (pace == 15))) {
wenergy = wenergy - (9 - (((((((boss[1] + boss[2]) + boss[3]) + boss[4]) + boss[5]) + boss[6]) + boss[7]) + boss[8]));
}
if (Key.isDown(kattack)) {
ptime = 2;
charge = charge + 1;
}
if ((ptime > 0) and (((pd < 16) or (pd == 20)) or (pd == 21))) {
pf = pf + 16;
if (pd == 20) {
pf = 795;
}
if (pd == 21) {
pf = 865;
}
if ((ptime == 1) and (pst[psn] == 0)) {
if (charge < 15) {
lilbuster.start();
pst[psn] = 5;
}
if ((charge > 14) and (charge < 40)) {
midbuster.start();
pst[psn] = 6;
}
if (charge > 39) {
maxbuster.start();
pst[psn] = 7;
}
if ((pd == 20) or (pd == 21)) {
pst[psn] = 8;
}
charge = 0;
if (((((((((pd == 0) or (pd == 2)) or (pd == 4)) or (pd == 6)) or (pd == 8)) or (pd == 11)) or (pd == 12)) or (pd == 14)) or (pd == 20)) {
psd[psn] = 0;
}
if (((((((((pd == 1) or (pd == 3)) or (pd == 5)) or (pd == 7)) or (pd == 9)) or (pd == 10)) or (pd == 13)) or (pd == 15)) or (pd == 21)) {
psd[psn] = 1;
}
if ((pd == 0) or (pd == 2)) {
psx[psn] = px + 13;
psy[psn] = py - 16;
}
if ((pd == 1) or (pd == 3)) {
psx[psn] = px - 13;
psy[psn] = py - 16;
}
if (pd == 4) {
psx[psn] = px + 18;
psy[psn] = py - 10;
}
if (pd == 5) {
psx[psn] = px - 18;
psy[psn] = py - 10;
}
if (pd == 20) {
psx[psn] = px + 24;
psy[psn] = py - 19;
}
if (pd == 21) {
psx[psn] = px - 24;
psy[psn] = py - 19;
}
if ((pd == 6) or (pd == 8)) {
psx[psn] = px + 14;
psy[psn] = py - 18;
}
if ((pd == 7) or (pd == 9)) {
psx[psn] = px - 14;
psy[psn] = py - 18;
}
if (pd == 10) {
psx[psn] = px - 13;
psy[psn] = py - 16;
}
if (pd == 11) {
psx[psn] = px + 13;
psy[psn] = py - 16;
}
if ((pd == 12) or (pd == 14)) {
psx[psn] = px + 13;
psy[psn] = py - 20;
}
if ((pd == 13) or (pd == 15)) {
psx[psn] = px - 13;
psy[psn] = py - 20;
}
psn = psn + 1;
if (psn > 3) {
psn = 1;
}
}
}
if (pd == 16) {
pf = 792 - ps;
ps = ps - 1;
if (ps < 1) {
pd = 0;
}
if (Key.isDown(kjump)) {
pd = 6;
pj = -10;
}
}
if (pd == 17) {
pf = 862 - ps;
ps = ps - 1;
if (ps < 1) {
pd = 1;
}
if (Key.isDown(kjump)) {
pd = 7;
pj = -10;
}
}
if (pd == 18) {
pf = 792;
ps = ps - 1;
if (ps < 1) {
pd = 20;
}
}
if (pd == 19) {
pf = 862;
ps = ps - 1;
if (ps < 1) {
pd = 21;
}
}
}
if (Key.isDown(kpause)) {
gotoAndPlay(2401 + (20 * xz));
}
if ((pl < 1) or (py > 40)) {
if (lives < 1) {
gotoAndPlay (3);
}
if (lives > 0) {
lives = lives - 1;
pl = 50;
charge = 0;
gotoAndPlay (1);
}
}
h4 = 0;
pwall = 0;
h1 = 1;
while (h1 < 16) {
if (blt[h1] == 1) {
if (((((px + 8) > (blx[h1] - blsx[h1])) and ((px - 8) < (blx[h1] + blsx[h1]))) and ((py - 28) <= ((bly[h1] + blsy[h1]) + 6))) and ((py - 6) > ((bly[h1] + blsy[h1]) + 6))) {
py = (bly[h1] + blsy[h1]) + 35;
pj = 0;
}
if (((((px + 10) > (blx[h1] - blsx[h1])) and ((px - 10) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 30) < (bly[h1] + blsy[h1]))) {
if (px > blx[h1]) {
px = (blx[h1] + blsx[h1]) + 10;
}
if (px < blx[h1]) {
px = (blx[h1] - blsx[h1]) - 10;
}
}
if (((((px + 11) > (blx[h1] - blsx[h1])) and ((px - 11) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 20) < (bly[h1] + blsy[h1]))) {
pwall = 1;
if ((((((pd == 6) or (pd == 7)) or (pd == 8)) or (pd == 9)) or (pd == 12)) or (pd == 13)) {
if ((px > blx[h1]) and Key.isDown(37)) {
pd = 12;
}
if ((px < blx[h1]) and Key.isDown(39)) {
pd = 13;
}
}
}
if (((((px + 8) > (blx[h1] - blsx[h1])) and ((px - 8) < (blx[h1] + blsx[h1]))) and ((py - 22) < (bly[h1] - blsy[h1]))) and ((py + 2) >= (bly[h1] - blsy[h1]))) {
h4 = 1;
py = bly[h1] - blsy[h1];
if ((pd == 6) or (pd == 7)) {
pd = pd - 6;
}
if ((pd == 8) or (pd == 9)) {
pd = pd - 8;
}
if ((pd == 12) or (pd == 13)) {
pd = pd - 12;
}
}
}
if (blt[h1] == 2) {
if (((((px + 6) > (blx[h1] - blsx[h1])) and ((px - 6) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 20) < (bly[h1] + blsy[h1]))) {
if ((pd < 14) and (Key.isDown(kup) or Key.isDown(kdown))) {
px = blx[h1];
ps = 1;
if (((((((pd == 0) or (pd == 2)) or (pd == 4)) or (pd == 6)) or (pd == 8)) or (pd == 10)) or (pd == 12)) {
pd = 14;
}
if (((((((pd == 1) or (pd == 3)) or (pd == 5)) or (pd == 7)) or (pd == 9)) or (pd == 11)) or (pd == 13)) {
pd = 15;
}
}
if ((pd == 14) or (pd == 15)) {
if ((py - 26) < (bly[h1] - blsy[h1])) {
py = py + 4;
ps = 1;
}
if ((py - 12) > (bly[h1] + blsy[h1])) {
py = py - 4;
ps = 1;
}
}
}
}
if (blt[h1] == 3) {
if (((((px + 10) > (blx[h1] - blsx[h1])) and ((px - 10) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 30) < (bly[h1] + blsy[h1]))) {
pl = pl - 2;
}
}
if (blt[h1] == 4) {
h3 = (blx[h1] - px) / 3;
if (((((px + 2) > (blx[h1] + blsx[h1])) and ((px - 10) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 30) < (bly[h1] + blsy[h1]))) {
if (px > blx[h1]) {
px = (blx[h1] + blsx[h1]) + 10;
}
}
if (((((px + 8) > (blx[h1] - blsx[h1])) and ((px - 8) < (blx[h1] + blsx[h1]))) and ((py - 26) < (bly[h1] + blsy[h1]))) and ((py + 5) >= (bly[h1] + h3))) {
h4 = 1;
py = bly[h1] + h3;
if ((pd == 6) or (pd == 7)) {
pd = pd - 6;
}
if ((pd == 8) or (pd == 9)) {
pd = pd - 8;
}
if ((pd == 12) or (pd == 13)) {
pd = pd - 12;
}
}
}
if (blt[h1] == 5) {
h3 = (px - blx[h1]) / 3;
if (((((px - 2) < (blx[h1] - blsx[h1])) and ((px + 10) > (blx[h1] - blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 30) < (bly[h1] + blsy[h1]))) {
if (px < blx[h1]) {
px = (blx[h1] - blsx[h1]) - 10;
}
}
if (((((px + 8) > (blx[h1] - blsx[h1])) and ((px - 8) < (blx[h1] + blsx[h1]))) and ((py - 26) < (bly[h1] + blsy[h1]))) and ((py + 5) >= (bly[h1] + h3))) {
h4 = 1;
py = bly[h1] + h3;
if ((pd == 6) or (pd == 7)) {
pd = pd - 6;
}
if ((pd == 8) or (pd == 9)) {
pd = pd - 8;
}
if ((pd == 12) or (pd == 13)) {
pd = pd - 12;
}
}
}
if (blt[h1] == 6) {
if (((((px + 8) > (blx[h1] - blsx[h1])) and ((px - 8) < (blx[h1] + blsx[h1]))) and ((py - 28) <= ((bly[h1] + blsy[h1]) + 6))) and ((py - 6) > ((bly[h1] + blsy[h1]) + 6))) {
py = (bly[h1] + blsy[h1]) + 35;
pj = 0;
}
if (((((px + 10) > (blx[h1] - blsx[h1])) and ((px - 10) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 30) < (bly[h1] + blsy[h1]))) {
if (px > blx[h1]) {
px = (blx[h1] + blsx[h1]) + 10;
}
if (px < blx[h1]) {
px = (blx[h1] - blsx[h1]) - 10;
}
}
if (((((px + 11) > (blx[h1] - blsx[h1])) and ((px - 11) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 20) < (bly[h1] + blsy[h1]))) {
pwall = 1;
if ((((((pd == 6) or (pd == 7)) or (pd == 8)) or (pd == 9)) or (pd == 12)) or (pd == 13)) {
if ((px > blx[h1]) and Key.isDown(37)) {
pd = 12;
}
if ((px < blx[h1]) and Key.isDown(39)) {
pd = 13;
}
}
}
if (((((px + 8) > (blx[h1] - blsx[h1])) and ((px - 8) < (blx[h1] + blsx[h1]))) and ((py - 22) < (bly[h1] - blsy[h1]))) and ((py + 2) >= (bly[h1] - blsy[h1]))) {
h4 = 1;
py = bly[h1] - blsy[h1];
if ((timer > 0) and (timer < 61)) {
px = px + 2;
}
if ((timer > 60) and (timer < 121)) {
px = px - 2;
}
if ((pd == 6) or (pd == 7)) {
pd = pd - 6;
}
if ((pd == 8) or (pd == 9)) {
pd = pd - 8;
}
if ((pd == 12) or (pd == 13)) {
pd = pd - 12;
}
}
if ((timer > 0) and (timer < 61)) {
blx[h1] = blx[h1] + 2;
}
if ((timer > 60) and (timer < 121)) {
blx[h1] = blx[h1] - 2;
}
}
if (blt[h1] == 7) {
if (((((px + 8) > (blx[h1] - blsx[h1])) and ((px - 8) < (blx[h1] + blsx[h1]))) and ((py - 28) <= ((bly[h1] + blsy[h1]) + 6))) and ((py - 6) > ((bly[h1] + blsy[h1]) + 6))) {
py = (bly[h1] + blsy[h1]) + 35;
pj = 0;
}
if (((((px + 10) > (blx[h1] - blsx[h1])) and ((px - 10) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 30) < (bly[h1] + blsy[h1]))) {
if (px > blx[h1]) {
px = (blx[h1] + blsx[h1]) + 10;
}
if (px < blx[h1]) {
px = (blx[h1] - blsx[h1]) - 10;
}
}
if (((((px + 11) > (blx[h1] - blsx[h1])) and ((px - 11) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 20) < (bly[h1] + blsy[h1]))) {
pwall = 1;
if ((((((pd == 6) or (pd == 7)) or (pd == 8)) or (pd == 9)) or (pd == 12)) or (pd == 13)) {
if ((px > blx[h1]) and Key.isDown(37)) {
pd = 12;
}
if ((px < blx[h1]) and Key.isDown(39)) {
pd = 13;
}
}
}
if (((((px + 8) > (blx[h1] - blsx[h1])) and ((px - 8) < (blx[h1] + blsx[h1]))) and ((py - 22) < (bly[h1] - blsy[h1]))) and ((py + 2) >= (bly[h1] - blsy[h1]))) {
h4 = 1;
py = bly[h1] - blsy[h1];
if ((timer > 0) and (timer < 61)) {
px = px - 2;
}
if ((timer > 60) and (timer < 121)) {
px = px + 2;
}
if ((pd == 6) or (pd == 7)) {
pd = pd - 6;
}
if ((pd == 8) or (pd == 9)) {
pd = pd - 8;
}
if ((pd == 12) or (pd == 13)) {
pd = pd - 12;
}
}
if ((timer > 0) and (timer < 61)) {
blx[h1] = blx[h1] - 2;
}
if ((timer > 60) and (timer < 121)) {
blx[h1] = blx[h1] + 2;
}
}
if (blt[h1] == 30) {
if (((((px + 8) > (blx[h1] - blsx[h1])) and ((px - 8) < (blx[h1] + blsx[h1]))) and ((py - 28) <= ((bly[h1] + blsy[h1]) + 6))) and ((py - 6) > ((bly[h1] + blsy[h1]) + 6))) {
py = (bly[h1] + blsy[h1]) + 35;
pj = 0;
}
if (bly[h1] < 200) {
bly[h1] = bly[h1] + 15;
}
if (((((px + 10) > (blx[h1] - blsx[h1])) and ((px - 10) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 30) < (bly[h1] + blsy[h1]))) {
if (px > blx[h1]) {
px = (blx[h1] + blsx[h1]) + 10;
}
if (px < blx[h1]) {
px = (blx[h1] - blsx[h1]) - 10;
}
}
if (((((px + 11) > (blx[h1] - blsx[h1])) and ((px - 11) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 20) < (bly[h1] + blsy[h1]))) {
pwall = 1;
if ((((((pd == 6) or (pd == 7)) or (pd == 8)) or (pd == 9)) or (pd == 12)) or (pd == 13)) {
if ((px > blx[h1]) and Key.isDown(37)) {
pd = 12;
}
if ((px < blx[h1]) and Key.isDown(39)) {
pd = 13;
}
}
}
if (((((px + 8) > (blx[h1] - blsx[h1])) and ((px - 8) < (blx[h1] + blsx[h1]))) and ((py - 22) < (bly[h1] - blsy[h1]))) and ((py + 2) >= (bly[h1] - blsy[h1]))) {
h4 = 1;
py = bly[h1] - blsy[h1];
if ((pd == 6) or (pd == 7)) {
pd = pd - 6;
}
if ((pd == 8) or (pd == 9)) {
pd = pd - 8;
}
if ((pd == 12) or (pd == 13)) {
pd = pd - 12;
}
}
}
if ((blt[h1] > 10) and (blt[h1] < 30)) {
if (((((px + 8) > (blx[h1] - blsx[h1])) and ((px - 8) < (blx[h1] + blsx[h1]))) and ((py - 28) <= ((bly[h1] + blsy[h1]) + 6))) and ((py - 6) > ((bly[h1] + blsy[h1]) + 6))) {
py = (bly[h1] + blsy[h1]) + 35;
pj = 0;
}
blt[h1] = blt[h1] + 1;
if (((((px + 10) > (blx[h1] - blsx[h1])) and ((px - 10) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 30) < (bly[h1] + blsy[h1]))) {
if (px > blx[h1]) {
px = (blx[h1] + blsx[h1]) + 10;
}
if (px < blx[h1]) {
px = (blx[h1] - blsx[h1]) - 10;
}
}
if (((((px + 11) > (blx[h1] - blsx[h1])) and ((px - 11) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 20) < (bly[h1] + blsy[h1]))) {
pwall = 1;
if ((((((pd == 6) or (pd == 7)) or (pd == 8)) or (pd == 9)) or (pd == 12)) or (pd == 13)) {
if ((px > blx[h1]) and Key.isDown(37)) {
pd = 12;
}
if ((px < blx[h1]) and Key.isDown(39)) {
pd = 13;
}
}
}
if (((((px + 8) > (blx[h1] - blsx[h1])) and ((px - 8) < (blx[h1] + blsx[h1]))) and ((py - 22) < (bly[h1] - blsy[h1]))) and ((py + 2) >= (bly[h1] - blsy[h1]))) {
h4 = 1;
py = bly[h1] - blsy[h1];
if ((pd == 6) or (pd == 7)) {
pd = pd - 6;
}
if ((pd == 8) or (pd == 9)) {
pd = pd - 8;
}
if ((pd == 12) or (pd == 13)) {
pd = pd - 12;
}
}
}
if (blt[h1] == 10) {
if (((((px + 8) > (blx[h1] - blsx[h1])) and ((px - 8) < (blx[h1] + blsx[h1]))) and ((py - 28) <= ((bly[h1] + blsy[h1]) + 6))) and ((py - 6) > ((bly[h1] + blsy[h1]) + 6))) {
py = (bly[h1] + blsy[h1]) + 35;
pj = 0;
}
if (((((px + 10) > (blx[h1] - blsx[h1])) and ((px - 10) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 30) < (bly[h1] + blsy[h1]))) {
if (px > blx[h1]) {
px = (blx[h1] + blsx[h1]) + 10;
}
if (px < blx[h1]) {
px = (blx[h1] - blsx[h1]) - 10;
}
}
if (((((px + 11) > (blx[h1] - blsx[h1])) and ((px - 11) < (blx[h1] + blsx[h1]))) and ((py - 16) > (bly[h1] - blsy[h1]))) and ((py - 20) < (bly[h1] + blsy[h1]))) {
pwall = 1;
if ((((((pd == 6) or (pd == 7)) or (pd == 8)) or (pd == 9)) or (pd == 12)) or (pd == 13)) {
if ((px > blx[h1]) and Key.isDown(37)) {
pd = 12;
}
if ((px < blx[h1]) and Key.isDown(39)) {
pd = 13;
}
}
}
if (((((px + 8) > (blx[h1] - blsx[h1])) and ((px - 8) < (blx[h1] + blsx[h1]))) and ((py - 22) < (bly[h1] - blsy[h1]))) and ((py + 2) >= (bly[h1] - blsy[h1]))) {
h4 = 1;
blt[h1] = 11;
py = bly[h1] - blsy[h1];
if ((pd == 6) or (pd == 7)) {
pd = pd - 6;
}
if ((pd == 8) or (pd == 9)) {
pd = pd - 8;
}
if ((pd == 12) or (pd == 13)) {
pd = pd - 12;
}
}
}
h1++;
}
if (((h4 == 0) and (pwall == 0)) and ((pd < 14) or (pd > 15))) {
if ((((pd == 0) or (pd == 2)) or (pd == 4)) or (pd == 14)) {
pd = 6;
pj = 2;
}
if ((((pd == 1) or (pd == 3)) or (pd == 5)) or (pd == 15)) {
pd = 7;
pj = 2;
}
}
h2 = 1;
while (h2 < 11) {
if (bt[h2] > 0) {
if ((((bx[h2] > (camx - 125)) and (bx[h2] < (camx + 125))) and (by[h2] > (camy - 125))) and (by[h2] < (camy + 75))) {
if (bt[h2] == 110) {
bj[h2] = 0;
if ((((((pace == 0) or (pace == 3)) or (pace == 4)) or (pace == 7)) or (pace == 10)) or (pace == 13)) {
bf[h2] = 220;
}
if (((((pace == 1) or (pace == 5)) or (pace == 8)) or (pace == 11)) or (pace == 14)) {
bf[h2] = 221;
}
if ((((((pace == 2) or (pace == 6)) or (pace == 9)) or (pace == 12)) or (pace == 15)) or (pace == 16)) {
bf[h2] = 222;
}
}
if (bt[h2] == 1) {
if (bd[h2] == 0) {
bf[h2] = 2;
if (btime[h2] < 1) {
jump.start();
bd[h2] = 1;
btime[h2] = 20 + random(20);
bj[h2] = -10;
bs[h2] = (px - bx[h2]) / 20;
}
}
if (bd[h2] == 1) {
bf[h2] = 3;
by[h2] = by[h2] + bj[h2];
bx[h2] = bx[h2] + bs[h2];
if (bj[h2] < 0) {
bj[h2] = bj[h2] + 1;
}
}
}
if (bt[h2] == 2) {
if (bd[h2] == 0) {
if ((pace > 0) and (pace < 5)) {
bf[h2] = 4;
}
if ((pace > 4) and (pace < 9)) {
bf[h2] = 5;
}
if ((pace > 8) and (pace < 13)) {
bf[h2] = 6;
}
if ((pace > 12) and (pace < 17)) {
bf[h2] = 7;
}
bx[h2] = bx[h2] + 2;
h3 = random(50);
if ((h3 < 4) and (px < bx[h2])) {
bd[h2] = 1;
}
if (btime[h2] < 1) {
if (bst[bsn] == 0) {
laser.start();
btime[h2] = 20 + random(15);
bst[bsn] = 2;
bsd[bsn] = 0;
bsf[bsn] = 3;
bsx[bsn] = bx[h2] + 10;
bsy[bsn] = by[h2] - 12;
bsn = bsn + 1;
if (bsn > 6) {
bsn = 1;
}
}
}
}
if (bd[h2] == 1) {
if ((pace > 0) and (pace < 5)) {
bf[h2] = 74;
}
if ((pace > 4) and (pace < 9)) {
bf[h2] = 75;
}
if ((pace > 8) and (pace < 13)) {
bf[h2] = 76;
}
if ((pace > 12) and (pace < 17)) {
bf[h2] = 77;
}
bx[h2] = bx[h2] - 2;
h3 = random(50);
if ((h3 < 4) and (px > bx[h2])) {
bd[h2] = 0;
}
if (btime[h2] < 1) {
if (bst[bsn] == 0) {
laser.start();
btime[h2] = 20 + random(15);
bst[bsn] = 2;
bsd[bsn] = 1;
bsf[bsn] = 4;
bsx[bsn] = bx[h2] - 10;
bsy[bsn] = by[h2] - 12;
bsn = bsn + 1;
if (bsn > 6) {
bsn = 1;
}
}
}
}
}
if (bt[h2] == 3) {
if (bd[h2] == 0) {
if (((pace > 0) and (pace < 5)) or ((pace > 8) and (pace < 13))) {
bf[h2] = 8;
}
if (((pace > 4) and (pace < 9)) or ((pace > 12) and (pace < 17))) {
bf[h2] = 9;
}
bx[h2] = bx[h2] + 1;
if ((px - 40) < bx[h2]) {
bx[h2] = bx[h2] - 3;
}
if (px < bx[h2]) {
bd[h2] = 1;
}
by[h2] = by[h2] + 2;
if ((py - 30) < by[h2]) {
by[h2] = by[h2] - 4;
}
if (btime[h2] < 1) {
if (bst[bsn] == 0) {
laser.start();
btime[h2] = 16 + random(15);
bst[bsn] = 1;
bsd[bsn] = 5;
bsf[bsn] = 3;
bsx[bsn] = bx[h2] + 2;
bsy[bsn] = by[h2] - 6;
bsn = bsn + 1;
if (bsn > 6) {
bsn = 1;
}
}
}
}
if (bd[h2] == 1) {
if (((pace > 0) and (pace < 5)) or ((pace > 8) and (pace < 13))) {
bf[h2] = 78;
}
if (((pace > 4) and (pace < 9)) or ((pace > 12) and (pace < 17))) {
bf[h2] = 79;
}
bx[h2] = bx[h2] - 1;
if ((px + 40) > bx[h2]) {
bx[h2] = bx[h2] + 3;
}
if (px > bx[h2]) {
bd[h2] = 0;
}
by[h2] = by[h2] + 2;
if ((py - 30) < by[h2]) {
by[h2] = by[h2] - 4;
}
if (btime[h2] < 1) {
if (bst[bsn] == 0) {
laser.start();
btime[h2] = 16 + random(15);
bst[bsn] = 1;
bsd[bsn] = 7;
bsf[bsn] = 3;
bsx[bsn] = bx[h2] - 2;
bsy[bsn] = by[h2] - 6;
bsn = bsn + 1;
if (bsn > 6) {
bsn = 1;
}
}
}
}
}
if (bt[h2] == 4) {
if (bd[h2] == 0) {
if ((((((pace == 0) or (pace == 3)) or (pace == 4)) or (pace == 7)) or (pace == 10)) or (pace == 13)) {
bf[h2] = 10;
}
if (((((pace == 1) or (pace == 5)) or (pace == 8)) or (pace == 11)) or (pace == 14)) {
bf[h2] = 11;
}
if ((((((pace == 2) or (pace == 6)) or (pace == 9)) or (pace == 12)) or (pace == 15)) or (pace == 16)) {
bf[h2] = 12;
}
bx[h2] = bx[h2] + 5;
h3 = random(50);
if ((h3 < 4) and ((px + 20) < bx[h2])) {
bd[h2] = 1;
}
}
if (bd[h2] == 1) {
if ((((((pace == 0) or (pace == 3)) or (pace == 4)) or (pace == 7)) or (pace == 10)) or (pace == 13)) {
bf[h2] = 80;
}
if (((((pace == 1) or (pace == 5)) or (pace == 8)) or (pace == 11)) or (pace == 14)) {
bf[h2] = 81;
}
if ((((((pace == 2) or (pace == 6)) or (pace == 9)) or (pace == 12)) or (pace == 15)) or (pace == 16)) {
bf[h2] = 82;
}
bx[h2] = bx[h2] - 5;
h3 = random(50);
if ((h3 < 4) and ((px - 20) > bx[h2])) {
bd[h2] = 0;
}
}
}
if (bt[h2] == 5) {
if (bd[h2] == 0) {
if (((pace > 0) and (pace < 5)) or ((pace > 8) and (pace < 13))) {
bf[h2] = 13;
}
if (((pace > 4) and (pace < 9)) or ((pace > 12) and (pace < 17))) {
bf[h2] = 14;
}
if (px < bx[h2]) {
bx[h2] = bx[h2] - random(6);
}
if (px > bx[h2]) {
bx[h2] = bx[h2] + random(6);
}
by[h2] = by[h2] + random(3);
if ((py - 35) < by[h2]) {
by[h2] = (by[h2] - 1) - random(3);
}
if (btime[h2] < 1) {
if (bst[bsn] == 0) {
laser.start();
btime[h2] = 20 + random(20);
bst[bsn] = 3;
bsd[bsn] = 3;
bsf[bsn] = 5;
bsx[bsn] = bx[h2];
bsy[bsn] = by[h2] - 10;
bsn = bsn + 1;
if (bsn > 6) {
bsn = 1;
}
}
}
}
}
if (bt[h2] == 6) {
if (bd[h2] == 0) {
if ((pace > 0) and (pace < 6)) {
bf[h2] = 15;
}
if ((pace > 5) and (pace < 12)) {
bf[h2] = 16;
}
if ((pace > 11) and (pace < 17)) {
bf[h2] = 17;
}
if (px < bx[h2]) {
bx[h2] = bx[h2] - 3;
}
if (px > bx[h2]) {
bx[h2] = bx[h2] + 3;
}
if ((py - 8) < by[h2]) {
by[h2] = by[h2] - 2;
}
if ((py - 8) > by[h2]) {
by[h2] = by[h2] + 2;
}
}
}
if (bt[h2] == 7) {
if (bd[h2] == 0) {
bg[h2] = 1;
bf[h2] = 18;
if (px < bx[h2]) {
bd[h2] = 1;
}
if (btime[h2] < 1) {
bd[h2] = 2;
btime[h2] = 9;
}
}
if (bd[h2] == 1) {
bf[h2] = 88;
bg[h2] = 1;
if (px > bx[h2]) {
bd[h2] = 0;
}
if (btime[h2] < 1) {
bd[h2] = 3;
btime[h2] = 9;
}
}
if (bd[h2] == 2) {
bf[h2] = 19;
bg[h2] = 0;
if (btime[h2] < 1) {
if (bst[bsn] == 0) {
laser.start();
btime[h2] = 20 + random(15);
bd[h2] = 0;
bst[bsn] = 2;
bsd[bsn] = 0;
bsf[bsn] = 3;
bsx[bsn] = bx[h2] + 10;
bsy[bsn] = by[h2] - 14;
bsn = bsn + 1;
if (bsn > 6) {
bsn = 1;
}
}
}
}
if (bd[h2] == 3) {
bf[h2] = 89;
bg[h2] = 0;
if (btime[h2] < 1) {
if (bst[bsn] == 0) {
laser.start();
btime[h2] = 20 + random(15);
bd[h2] = 1;
bst[bsn] = 2;
bsd[bsn] = 1;
bsf[bsn] = 4;
bsx[bsn] = bx[h2] - 10;
bsy[bsn] = by[h2] - 14;
bsn = bsn + 1;
if (bsn > 6) {
bsn = 1;
}
}
}
}
}
if (bt[h2] == 8) {
if (bd[h2] == 0) {
bf[h2] = 20;
bg[h2] = 1;
if (px < bx[h2]) {
bx[h2] = bx[h2] - 3;
}
if (px > bx[h2]) {
bx[h2] = bx[h2] + 3;
}
if ((py - 35) < by[h2]) {
by[h2] = by[h2] - 2;
}
if ((py - 35) > by[h2]) {
by[h2] = by[h2] + 2;
}
if (btime[h2] < 1) {
bd[h2] = 1;
btime[h2] = 12;
}
}
if (bd[h2] == 1) {
bf[h2] = 21;
bg[h2] = 0;
if (btime[h2] == 10) {
if (bst[bsn] == 0) {
laser.start();
btime[h2] = 20 + random(25);
bd[h2] = 0;
bst[bsn] = 1;
bsd[bsn] = 3;
if (((px < (bx[h2] + 40)) and (px > (bx[h2] - 40))) and (py <= by[h2])) {
bsd[bsn] = 2;
}
if ((((py - 15) < (by[h2] - 30)) and ((py - 15) > (by[h2] + 30))) and (px < bx[h2])) {
bsd[bsn] = 1;
}
if ((((py - 15) < (by[h2] - 30)) and ((py - 15) > (by[h2] + 30))) and (px > bx[h2])) {
bsd[bsn] = 0;
}
if ((px < (bx[h2] - 30)) and ((py - 30) < by[h2])) {
bsd[bsn] = 6;
}
if ((px > (bx[h2] + 30)) and ((py + 30) < by[h2])) {
bsd[bsn] = 4;
}
if ((px < (bx[h2] - 30)) and ((py - 30) > by[h2])) {
bsd[bsn] = 7;
}
if ((px > (bx[h2] + 30)) and ((py + 30) > by[h2])) {
bsd[bsn] = 5;
}
bsf[bsn] = 2;
bsx[bsn] = bx[h2];
bsy[bsn] = by[h2] - 10;
bsn = bsn + 1;
if (bsn > 6) {
bsn = 1;
}
}
}
}
}
if (bt[h2] == 9) {
if (bd[h2] == 0) {
bf[h2] = 22;
if (px < bx[h2]) {
bd[h2] = 1;
}
if (((py - 30) < (by[h2] + 30)) and ((py - 30) > (by[h2] - 20))) {
bd[h2] = 2;
}
}
if (bd[h2] == 1) {
bf[h2] = 92;
if (px > bx[h2]) {
bd[h2] = 0;
}
if (((py - 30) < (by[h2] + 30)) and ((py - 30) > (by[h2] - 20))) {
bd[h2] = 3;
}
}
if (bd[h2] == 2) {
bf[h2] = 23 + random(2);
bx[h2] = bx[h2] + 5;
if (py < by[h2]) {
by[h2] = by[h2] - 2;
}
if (py > by[h2]) {
by[h2] = by[h2] + 2;
}
if ((px + 60) < bx[h2]) {
bd[h2] = 3;
}
}
if (bd[h2] == 3) {
bf[h2] = 93 + random(2);
bx[h2] = bx[h2] - 5;
if (py < by[h2]) {
by[h2] = by[h2] - 2;
}
if (py > by[h2]) {
by[h2] = by[h2] + 2;
}
if ((px - 60) > bx[h2]) {
bd[h2] = 2;
}
}
}
if (bt[h2] == 10) {
if (bd[h2] == 0) {
bf[h2] = 26;
jump.start();
bd[h2] = 1;
btime[h2] = 20 + random(20);
bj[h2] = -12;
}
if (bd[h2] == 1) {
if (((pace > 0) and (pace < 5)) or ((pace > 8) and (pace < 13))) {
bf[h2] = 25;
}
if (((pace > 4) and (pace < 9)) or ((pace > 12) and (pace < 17))) {
bf[h2] = 26;
}
by[h2] = by[h2] + bj[h2];
if (px < bx[h2]) {
bx[h2] = bx[h2] - 3;
}
if (px > bx[h2]) {
bx[h2] = bx[h2] + 3;
}
if (bj[h2] < 0) {
bj[h2] = bj[h2] + 1;
}
}
}
if (bt[h2] == 11) {
if (bd[h2] == 0) {
if ((pace > 0) and (pace < 6)) {
bf[h2] = 27;
}
if ((pace > 5) and (pace < 12)) {
bf[h2] = 28;
}
if ((pace > 11) and (pace < 17)) {
bf[h2] = 29;
}
if (btime[h2] < 1) {
btime[h2] = 16 + random(32);
if ((pace > 0) and (pace < 5)) {
bx[h2] = (px - 20) + random(40);
by[h2] = py - 45;
}
if ((pace > 4) and (pace < 9)) {
bx[h2] = (px - 20) + random(40);
by[h2] = py + 45;
}
if ((pace > 8) and (pace < 13)) {
bx[h2] = px - 50;
by[h2] = (py - 20) + random(40);
}
if ((pace > 12) and (pace < 17)) {
bx[h2] = px + 50;
by[h2] = (py - 20) + random(40);
}
}
}
}
if (bt[h2] == 12) {
if (bd[h2] == 0) {
if (((pace > 0) and (pace < 5)) or ((pace > 8) and (pace < 13))) {
bf[h2] = 30;
}
if (((pace > 4) and (pace < 9)) or ((pace > 12) and (pace < 17))) {
bf[h2] = 31;
}
bx[h2] = bx[h2] + 6;
}
if (bd[h2] == 1) {
if (((pace > 0) and (pace < 5)) or ((pace > 8) and (pace < 13))) {
bf[h2] = 100;
}
if (((pace > 4) and (pace < 9)) or ((pace > 12) and (pace < 17))) {
bf[h2] = 101;
}
bx[h2] = bx[h2] - 6;
}
}
if (bt[h2] == 13) {
if (bd[h2] == 0) {
bf[h2] = 32;
if (btime[h2] < 1) {
if (bst[bsn] == 0) {
bd[h2] = 1;
laser.start();
btime[h2] = 6;
bst[bsn] = 3;
bsd[bsn] = 3;
bsf[bsn] = 5;
bsx[bsn] = bx[h2];
bsy[bsn] = by[h2] - 25;
bsn = bsn + 1;
if (bsn > 6) {
bsn = 1;
}
}
}
}
if (bd[h2] == 1) {
bf[h2] = 33;
if (btime[h2] < 1) {
if (bst[bsn] == 0) {
bd[h2] = 0;
btime[h2] = 17;
}
}
}
}
if (bt[h2] == 14) {
if (bd[h2] == 0) {
if (((pace > 0) and (pace < 5)) or ((pace > 8) and (pace < 13))) {
bf[h2] = 34;
}
if (((pace > 4) and (pace < 9)) or ((pace > 12) and (pace < 17))) {
bf[h2] = 35;
}
bx[h2] = bx[h2] + 7;
if ((px + 55) < bx[h2]) {
bd[h2] = 1;
}
if (py > by[h2]) {
by[h2] = by[h2] + 2;
}
if (py < by[h2]) {
by[h2] = by[h2] - 2;
}
}
if (bd[h2] == 1) {
if (((pace > 0) and (pace < 5)) or ((pace > 8) and (pace < 13))) {
bf[h2] = 104;
}
if (((pace > 4) and (pace < 9)) or ((pace > 12) and (pace < 17))) {
bf[h2] = 105;
}
bx[h2] = bx[h2] - 7;
if ((px - 55) > bx[h2]) {
bd[h2] = 0;
}
if (py > by[h2]) {
by[h2] = by[h2] + 2;
}
if (py < by[h2]) {
by[h2] = by[h2] - 2;
}
}
}
if (bt[h2] == 15) {
if (bd[h2] == 0) {
if (((pace > 0) and (pace < 5)) or ((pace > 8) and (pace < 13))) {
bf[h2] = 36;
}
if (((pace > 4) and (pace < 9)) or ((pace > 12) and (pace < 17))) {
bf[h2] = 37;
}
bx[h2] = bx[h2] + 3;
if ((px + 55) < bx[h2]) {
bd[h2] = 1;
}
if (px > bx[h2]) {
bg[h2] = 1;
}
if (px < bx[h2]) {
bg[h2] = 0;
}
}
if (bd[h2] == 1) {
if (((pace > 0) and (pace < 5)) or ((pace > 8) and (pace < 13))) {
bf[h2] = 106;
}
if (((pace > 4) and (pace < 9)) or ((pace > 12) and (pace < 17))) {
bf[h2] = 107;
}
bx[h2] = bx[h2] - 3;
if ((px - 55) > bx[h2]) {
bd[h2] = 0;
}
if (px > bx[h2]) {
bg[h2] = 0;
}
if (px < bx[h2]) {
bg[h2] = 1;
}
}
}
if (bt[h2] == 16) {
if (bd[h2] == 0) {
bf[h2] = 38;
bg[h2] = 2;
if (((px - 10) < (bx[h2] + 15)) and ((px + 10) > (bx[h2] - 15))) {
bd[h2] = 1;
btime[h2] = 12;
}
}
if (bd[h2] == 1) {
if (((btime[h2] > 0) and (btime[h2] < 3)) or ((btime[h2] > 10) and (btime[h2] < 13))) {
bf[h2] = 39;
}
if ((btime[h2] > 2) and (btime[h2] < 11)) {
bf[h2] = 40;
}
bg[h2] = 0;
if (btime[h2] == 0) {
bd[h2] = 0;
}
}
}
if (bt[h2] == 17) {
if (bd[h2] == 0) {
bf[h2] = 41;
if (((px - 15) < (bx[h2] + 15)) and ((px + 15) > (bx[h2] - 15))) {
bt[h2] = 18;
}
}
}
if (bt[h2] == 18) {
if (bd[h2] == 0) {
bf[h2] = 42 + random(2);
}
}
if (bt[h2] == 19) {
if (bd[h2] == 0) {
bf[h2] = 44;
bg[h2] = 1;
if (btime[h2] == 0) {
bd[h2] = 2;
btime[h2] = 18;
}
}
if (bd[h2] == 2) {
if (((btime[h2] > 0) and (btime[h2] < 4)) or ((btime[h2] > 15) and (btime[h2] < 19))) {
bf[h2] = 45;
}
if (((btime[h2] > 3) and (btime[h2] < 7)) or ((btime[h2] > 12) and (btime[h2] < 16))) {
bf[h2] = 46;
}
if ((btime[h2] > 6) and (btime[h2] < 13)) {
bf[h2] = 47;
}
bg[h2] = 0;
if (btime[h2] == 8) {
if (bst[bsn] == 0) {
laser.start();
bst[bsn] = 2;
bsd[bsn] = 0;
bsf[bsn] = 3;
bsx[bsn] = bx[h2] - 5;
bsy[bsn] = by[h2] - 8;
bsn = bsn + 1;
if (bsn > 6) {
bsn = 1;
}
}
}
if (btime[h2] == 0) {
bd[h2] = 0;
btime[h2] = 15 + random(20);
}
}
if (bd[h2] == 1) {
bf[h2] = 114;
bg[h2] = 1;
if (btime[h2] == 0) {
bd[h2] = 3;
btime[h2] = 18;
}
}
if (bd[h2] == 3) {
if (((btime[h2] > 0) and (btime[h2] < 4)) or ((btime[h2] > 15) and (btime[h2] < 19))) {
bf[h2] = 115;
}
if (((btime[h2] > 3) and (btime[h2] < 7)) or ((btime[h2] > 12) and (btime[h2] < 16))) {
bf[h2] = 116;
}
if ((btime[h2] > 6) and (btime[h2] < 13)) {
bf[h2] = 117;
}
bg[h2] = 0;
if (btime[h2] == 8) {
if (bst[bsn] == 0) {
laser.start();
bst[bsn] = 2;
bsd[bsn] = 1;
bsf[bsn] = 3;
bsx[bsn] = bx[h2] + 5;
bsy[bsn] = by[h2] - 8;
bsn = bsn + 1;
if (bsn > 6) {
bsn = 1;
}
}
}
if (btime[h2] == 0) {
bd[h2] = 1;
btime[h2] = 15 + random(20);
}
}
}
if (bt[h2] == 20) {
if (bd[h2] == 0) {
bf[h2] = 48;
bg[h2] = 1;
if (px < bx[h2]) {
bd[h2] = 1;
}
if (((((py - 30) < (by[h2] + 20)) and (py > (by[h2] - 40))) and ((px - 50) < (bx[h2] + 20))) and (px > bx[h2])) {
bd[h2] = 2;
}
}
if (bd[h2] == 1) {
bf[h2] = 118;
bg[h2] = 1;
if (px > bx[h2]) {
bd[h2] = 0;
}
if (((((py - 30) < (by[h2] + 20)) and (py > (by[h2] - 40))) and ((px + 50) > (bx[h2] - 20))) and (px < bx[h2])) {
bd[h2] = 3;
}
}
if (bd[h2] == 2) {
bf[h2] = 49;
bg[h2] = 0;
bx[h2] = bx[h2] + 5;
if (py < by[h2]) {
by[h2] = by[h2] - 2;
}
if (py > by[h2]) {
by[h2] = by[h2] + 2;
}
if ((px + 60) < bx[h2]) {
bd[h2] = 3;
}
}
if (bd[h2] == 3) {
bf[h2] = 119;
bg[h2] = 0;
bx[h2] = bx[h2] - 5;
if (py < by[h2]) {
by[h2] = by[h2] - 2;
}
if (py > by[h2]) {
by[h2] = by[h2] + 2;
}
if ((px - 60) > bx[h2]) {
bd[h2] = 2;
}
}
}
if (bl[h2] > 0) {
h1 = 1;
while (h1 < 4) {
if ((pst[h1] > 0) and (bg[h2] < 2)) {
if (((pst[h1] == 1) or (pst[h1] == 4)) or (pst[h1] == 5)) {
if (((((psx[h1] - 3) < (bx[h2] + 12)) and ((psx[h1] + 3) > (bx[h2] - 12))) and ((psy[h1] - 3) < (by[h2] - 2))) and ((psy[h1] + 3) > (by[h2] - 24))) {
shothit.start();
bl[h2] = bl[h2] - 2;
if (bg[h2] == 1) {
metalcrunch.start();
bl[h2] = bl[h2] + 2;
}
pst[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
}
if ((((pst[h1] == 2) or (pst[h1] == 6)) or (pst[h1] == 20)) or (pst[h1] == 15)) {
if (((((psx[h1] - 4) < (bx[h2] + 12)) and ((psx[h1] + 4) > (bx[h2] - 12))) and ((psy[h1] - 5) < (by[h2] - 2))) and ((psy[h1] + 5) > (by[h2] - 24))) {
shothit.start();
bl[h2] = bl[h2] - 4;
if (bg[h2] == 1) {
metalcrunch.start();
bl[h2] = bl[h2] + 4;
}
if (bl[h2] > 0) {
pst[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
}
if (((pst[h1] == 3) or (pst[h1] == 7)) or (pst[h1] == 19)) {
if (((((psx[h1] - 10) < (bx[h2] + 12)) and ((psx[h1] + 10) > (bx[h2] - 12))) and ((psy[h1] - 10) < (by[h2] - 2))) and ((psy[h1] + 10) > (by[h2] - 24))) {
shothit.start();
bl[h2] = bl[h2] - 6;
if (bg[h2] == 1) {
metalcrunch.start();
bl[h2] = bl[h2] + 6;
if ((xz == 0) and (pst[h1] == 3)) {
bl[h2] = bl[h2] - 1;
}
}
if (bl[h2] > 0) {
pst[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
}
if (pst[h1] == 8) {
if (((((psx[h1] - 15) < (bx[h2] + 12)) and ((psx[h1] + 15) > (bx[h2] - 12))) and ((psy[h1] - 15) < (by[h2] - 2))) and ((psy[h1] + 15) > (by[h2] - 24))) {
shothit.start();
bl[h2] = bl[h2] - 4;
if (bg[h2] == 1) {
metalcrunch.start();
bl[h2] = bl[h2] + 4;
}
if (bl[h2] > 0) {
pst[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
}
if (((pst[h1] == 9) or (pst[h1] == 10)) and (psd[h1] > 5)) {
if (((((psx[h1] - 20) < (bx[h2] + 12)) and ((psx[h1] + 20) > (bx[h2] - 12))) and ((psy[h1] - 20) < (by[h2] - 2))) and ((psy[h1] + 20) > (by[h2] - 24))) {
if (bg[h2] == 0) {
bl[h2] = bl[h2] - random(2);
}
}
}
if (pst[h1] == 11) {
if (((((psx[h1] - 7) < (bx[h2] + 12)) and ((psx[h1] + 7) > (bx[h2] - 12))) and ((psy[h1] - 18) < (by[h2] - 2))) and ((psy[h1] + 18) > (by[h2] - 24))) {
if (bg[h2] == 0) {
shothit.start();
bl[h2] = bl[h2] - 1;
}
if (bl[h2] > 0) {
pst[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
}
if ((pst[h1] == 12) or (pst[h1] == 17)) {
if (((((psx[h1] - 15) < (bx[h2] + 12)) and ((psx[h1] + 15) > (bx[h2] - 12))) and ((psy[h1] - 18) < (by[h2] - 2))) and ((psy[h1] + 18) > (by[h2] - 24))) {
if (bg[h2] == 0) {
bl[h2] = bl[h2] - 2;
if (pst[h1] == 17) {
bl[h2] = bl[h2] - 2;
}
}
if ((bl[h2] > 0) and (pst[h1] == 17)) {
pst[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
}
}
}
if ((pst[h1] == 13) or (pst[h1] == 18)) {
if (((((psx[h1] - 22) < (bx[h2] + 12)) and ((psx[h1] + 22) > (bx[h2] - 12))) and ((psy[h1] - 22) < (by[h2] - 2))) and ((psy[h1] + 22) > (by[h2] - 24))) {
if (bg[h2] == 0) {
bl[h2] = bl[h2] - random(2);
}
}
}
if (pst[h1] == 14) {
if (((((camx - 105) < (bx[h2] + 12)) and ((camx + 105) > (bx[h2] - 12))) and ((psy[h1] - 15) < (by[h2] - 2))) and ((psy[h1] + 15) > (by[h2] - 24))) {
if (bg[h2] == 0) {
bl[h2] = bl[h2] - 1;
}
}
}
if (pst[h1] == 16) {
if (((((psx[h1] - 45) < (bx[h2] + 12)) and ((psx[h1] + 45) > (bx[h2] - 12))) and ((psy[h1] - 30) < (by[h2] - 2))) and (psy[h1] > (by[h2] - 24))) {
if (bg[h2] == 0) {
bl[h2] = bl[h2] - 1;
}
}
}
if (pst[h1] == 21) {
if (((((psx[h1] - 15) < (bx[h2] + 12)) and ((psx[h1] + 15) > (bx[h2] - 12))) and ((psy[h1] - 85) < (by[h2] - 2))) and (psy[h1] > (by[h2] - 24))) {
if (bg[h2] == 0) {
bl[h2] = bl[h2] - 1;
}
}
}
h1++;
}
}
if (((xz == 2) and ((pd == 16) or (pd == 17))) and ((ps < 7) and (ps > 2))) {
if (pd == 16) {
if ((((((px + 38) > (bx[h2] - 12)) and ((px - 8) < (bx[h2] + 12))) and (py > (by[h2] - 28))) and ((py - 26) < (by[h2] + 2))) and (bl[h2] > 0)) {
if (bg[h2] == 0) {
bl[h2] = bl[h2] - 3;
if (ps == 6) {
bl[h2] = bl[h2] - (((((((boss[1] + boss[2]) + boss[3]) + boss[4]) + boss[5]) + boss[6]) + boss[7]) + boss[8]);
}
}
}
}
if (pd == 17) {
if ((((((px - 38) < (bx[h2] + 12)) and ((px + 8) > (bx[h2] - 12))) and (py > (by[h2] - 28))) and ((py - 26) < (by[h2] + 2))) and (bl[h2] > 0)) {
if (bg[h2] == 0) {
bl[h2] = bl[h2] - 3;
if (ps == 6) {
bl[h2] = bl[h2] - (((((((boss[1] + boss[2]) + boss[3]) + boss[4]) + boss[5]) + boss[6]) + boss[7]) + boss[8]);
}
}
}
}
}
if (((xz == 5) and ((pd == 16) or (pd == 17))) and ((ps < 7) and (ps > 2))) {
if (pd == 16) {
if ((((((px + 32) > (bx[h2] - 12)) and ((px - 8) < (bx[h2] + 12))) and (py > (by[h2] - 28))) and ((py - 30) < (by[h2] + 2))) and (bl[h2] > 0)) {
if (bg[h2] == 0) {
bl[h2] = bl[h2] - 2;
}
}
}
if (pd == 17) {
if ((((((px - 32) < (bx[h2] + 12)) and ((px + 8) > (bx[h2] - 12))) and (py > (by[h2] - 28))) and ((py - 30) < (by[h2] + 2))) and (bl[h2] > 0)) {
if (bg[h2] == 0) {
bl[h2] = bl[h2] - 2;
}
}
}
}
if ((((xz == 1) or (xz == 2)) or (xz == 4)) and (charge > 0)) {
if ((((((((pd == 0) or (pd == 2)) or (pd == 4)) or (pd == 6)) or (pd == 8)) or (pd == 10)) or (pd == 12)) or (pd == 14)) {
if ((((((px + 30) > (bx[h2] - 12)) and ((px - 8) < (bx[h2] + 12))) and (py > (by[h2] - 28))) and ((py - 26) < (by[h2] + 2))) and (bl[h2] > 0)) {
if ((bg[h2] == 0) and ((xz == 1) or (xz == 2))) {
bl[h2] = bl[h2] - 1;
}
if (xz == 4) {
bl[h2] = bl[h2] - 1;
}
}
}
if ((((((((pd == 1) or (pd == 3)) or (pd == 5)) or (pd == 7)) or (pd == 9)) or (pd == 11)) or (pd == 13)) or (pd == 15)) {
if ((((((px - 30) < (bx[h2] + 12)) and ((px + 8) > (bx[h2] - 12))) and (py > (by[h2] - 28))) and ((py - 26) < (by[h2] + 2))) and (bl[h2] > 0)) {
if ((bg[h2] == 0) and ((xz == 1) or (xz == 2))) {
bl[h2] = bl[h2] - 1;
}
if (xz == 4) {
bl[h2] = bl[h2] - 1;
}
}
}
}
if (bt[h2] == 110) {
if (((((px - 10) < (bx[h2] + 6)) and ((px + 10) > (bx[h2] - 6))) and (py > (by[h2] - 25))) and ((py - 24) < by[h2])) {
lifeupsfx.start();
bt[h2] = 0;
bl[h2] = 1;
bf[h2] = 1;
bx[h2] = -1000;
by[h2] = -1000;
if (pl < lmax) {
pl = pl + 1;
}
if (pl < lmax) {
pl = pl + 1;
}
if (pl < lmax) {
pl = pl + 1;
}
if (pl < lmax) {
pl = pl + 1;
}
}
}
if (((bl[h2] > 0) and (bt[h2] > 0)) and (i < 1)) {
if (((((px - 10) < (bx[h2] + 6)) and ((px + 10) > (bx[h2] - 6))) and (py > (by[h2] - 25))) and ((py - 24) < by[h2])) {
melee.start();
pl = pl - 4;
i = 20;
}
}
if (btime[h2] > 0) {
btime[h2] = btime[h2] - 1;
}
if (bt[h2] == 100) {
bf[h2] = 215 - btime[h2];
if (btime[h2] < 1) {
bt[h2] = 0;
bf[h2] = 1;
bx[h2] = -1000;
by[h2] = -1000;
}
}
if ((bl[h2] < 1) and (bt[h2] < 100)) {
h3 = random(6);
if (h3 < 3) {
boom1.start();
}
if ((h3 > 2) and (h3 < 5)) {
boom2.start();
}
if (h3 > 4) {
boom3.start();
}
crusher = crusher + 3;
if (crusher > 100) {
crusher = 100;
}
h3 = random(12);
bt[h2] = 100;
btime[h2] = 16;
if (h3 < 2) {
bt[h2] = 110;
}
}
}
}
h2++;
}
h1 = 1;
while (h1 < 7) {
if (bst[h1] > 0) {
if (bsd[h1] == 0) {
bsx[h1] = bsx[h1] + 8;
}
if (bsd[h1] == 1) {
bsx[h1] = bsx[h1] - 8;
}
if (bsd[h1] == 2) {
bsy[h1] = bsy[h1] - 8;
}
if (bsd[h1] == 3) {
bsy[h1] = bsy[h1] + 8;
}
if (bsd[h1] == 4) {
bsx[h1] = bsx[h1] + 6;
bsy[h1] = bsy[h1] - 6;
}
if (bsd[h1] == 5) {
bsx[h1] = bsx[h1] + 6;
bsy[h1] = bsy[h1] + 6;
}
if (bsd[h1] == 6) {
bsx[h1] = bsx[h1] - 6;
bsy[h1] = bsy[h1] - 6;
}
if (bsd[h1] == 7) {
bsx[h1] = bsx[h1] - 6;
bsy[h1] = bsy[h1] + 6;
}
if ((((bsx[h1] > (camx + 125)) or (bsx[h1] < (camx - 125))) or (bsy[h1] > (camy + 70))) or (bsy[h1] < (camy - 125))) {
bst[h1] = 0;
bsf[h1] = 13;
bsx[h1] = -2000;
bsy[h1] = -2000;
}
if (bst[h1] == 1) {
bsf[h1] = 2;
if ((((((bsx[h1] + 3) > (px - 12)) and ((bsx[h1] - 3) < (px + 12))) and ((bsy[h1] + 3) > (py - 26))) and ((bsy[h1] - 3) < (py - 2))) and (i < 1)) {
melee.start();
i = 15;
pl = pl - 4;
bst[h1] = 0;
bsf[h1] = 13;
bsx[h1] = -2000;
bsy[h1] = -2000;
}
}
if (bst[h1] == 2) {
if (bsd[h1] == 0) {
bsf[h1] = 3;
}
if (bsd[h1] == 1) {
bsf[h1] = 4;
}
if ((((((bsx[h1] + 5) > (px - 12)) and ((bsx[h1] - 5) < (px + 12))) and ((bsy[h1] + 3) > (py - 26))) and ((bsy[h1] - 3) < (py - 2))) and (i < 1)) {
melee.start();
i = 15;
pl = pl - 6;
bst[h1] = 0;
bsf[h1] = 13;
bsx[h1] = -2000;
bsy[h1] = -2000;
}
}
if (bst[h1] == 3) {
bsf[h1] = 5;
if ((((((bsx[h1] + 3) > (px - 12)) and ((bsx[h1] - 3) < (px + 12))) and ((bsy[h1] + 2) > (py - 26))) and ((bsy[h1] - 2) < (py - 2))) and (i < 1)) {
melee.start();
i = 15;
pl = pl - 5;
bst[h1] = 0;
bsf[h1] = 13;
bsx[h1] = -2000;
bsy[h1] = -2000;
}
}
}
h1++;
}
if (timer == 50) {
if ((bt[1] == 0) or (bl[1] < 1)) {
bt[1] = random(6) + 1;
bg[1] = 0;
bj[1] = 0;
bd[1] = 0;
bs[1] = 0;
bl[1] = 4;
bx[1] = 300;
by[1] = -160;
}
if ((bt[2] == 0) or (bl[2] < 1)) {
bt[2] = random(6) + 7;
bg[2] = 0;
bj[2] = 0;
bd[2] = 0;
bs[2] = 0;
bl[2] = 4;
bx[2] = 480;
by[2] = -180;
}
if ((bt[3] == 0) or (bl[3] < 1)) {
bt[3] = random(6) + 12;
bg[3] = 0;
bj[3] = 0;
bd[3] = 0;
bs[3] = 0;
bl[3] = 4;
bx[3] = 540;
by[3] = -280;
}
if ((bt[4] == 0) or (bl[4] < 1)) {
bt[4] = random(17) + 1;
bg[4] = 0;
bj[4] = 0;
bd[4] = 0;
bs[4] = 0;
bl[4] = 4;
bx[4] = 620;
by[4] = -100;
}
}
h2 = 1;
while (h2 < 11) {
if ((bt[h2] > 0) and ((bl[h2] > 0) or (bt[h2] == 110))) {
if (((((((((bt[h2] == 1) or (bt[h2] == 2)) or (bt[h2] == 4)) or (bt[h2] == 7)) or (bt[h2] == 10)) or (bt[h2] == 12)) or (bt[h2] == 18)) or (bt[h2] == 20)) or (bt[h2] == 110)) {
h4 = 0;
h1 = 1;
while (h1 < 10) {
if (blt[h1] == 1) {
if (((((bx[h2] + 8) > (blx[h1] - blsx[h1])) and ((bx[h2] - 8) < (blx[h1] + blsx[h1]))) and ((by[h2] - 28) <= ((bly[h1] + blsy[h1]) + 6))) and ((by[h2] - 6) > ((bly[h1] + blsy[h1]) + 6))) {
by[h2] = (bly[h1] + blsy[h1]) + 35;
bj[h2] = 0;
}
if (((((bx[h2] + 10) > (blx[h1] - blsx[h1])) and ((bx[h2] - 10) < (blx[h1] + blsx[h1]))) and ((by[h2] - 16) > (bly[h1] - blsy[h1]))) and ((by[h2] - 30) < (bly[h1] + blsy[h1]))) {
if (bx[h2] > blx[h1]) {
bx[h2] = (blx[h1] + blsx[h1]) + 10;
if (bt[h2] == 12) {
bd[h2] = 0;
}
}
if (bx[h2] < blx[h1]) {
bx[h2] = (blx[h1] - blsx[h1]) - 10;
if (bt[h2] == 12) {
bd[h2] = 1;
}
}
}
if (((((bx[h2] + 8) > (blx[h1] - blsx[h1])) and ((bx[h2] - 8) < (blx[h1] + blsx[h1]))) and ((by[h2] - 22) < (bly[h1] - blsy[h1]))) and ((by[h2] + 2) >= (bly[h1] - blsy[h1]))) {
h4 = 1;
by[h2] = bly[h1] - blsy[h1];
if (((bt[h2] == 1) or (bt[h2] == 10)) and (bd[h2] == 1)) {
bd[h2] = 0;
}
}
}
if (blt[h1] == 4) {
h3 = (blx[h1] - bx[h2]) / 3;
if (((((bx[h2] + 2) > (blx[h1] + blsx[h1])) and ((bx[h2] - 10) < (blx[h1] + blsx[h1]))) and ((by[h2] - 16) > (bly[h1] - blsy[h1]))) and ((by[h2] - 30) < (bly[h1] + blsy[h1]))) {
if (bx[h2] > blx[h1]) {
bx[h2] = (blx[h1] + blsx[h1]) + 10;
}
}
if (((((bx[h2] + 8) > (blx[h1] - blsx[h1])) and ((bx[h2] - 8) < (blx[h1] + blsx[h1]))) and ((by[h2] - 26) < (bly[h1] + blsy[h1]))) and ((by[h2] + 5) >= (bly[h1] + h3))) {
h4 = 1;
by[h2] = bly[h1] + h3;
if (((bt[h2] == 1) or (bt[h2] == 10)) and (bd[h2] == 1)) {
bd[h2] = 0;
}
}
}
if (blt[h1] == 5) {
h3 = (bx[h2] - blx[h1]) / 3;
if (((((bx[h2] - 2) < (blx[h1] - blsx[h1])) and ((bx[h2] + 10) > (blx[h1] - blsx[h1]))) and ((by[h2] - 16) > (bly[h1] - blsy[h1]))) and ((by[h2] - 30) < (bly[h1] + blsy[h1]))) {
if (bx[h2] < blx[h1]) {
bx[h2] = (blx[h1] - blsx[h1]) - 10;
}
}
if (((((bx[h2] + 8) > (blx[h1] - blsx[h1])) and ((bx[h2] - 8) < (blx[h1] + blsx[h1]))) and ((by[h2] - 26) < (bly[h1] + blsy[h1]))) and ((by[h2] + 5) >= (bly[h1] + h3))) {
h4 = 1;
by[h2] = bly[h1] + h3;
if (((bt[h2] == 1) or (bt[h2] == 10)) and (bd[h2] == 1)) {
bd[h2] = 0;
}
}
}
if (blt[h1] == 6) {
if (((((bx[h2] + 8) > (blx[h1] - blsx[h1])) and ((bx[h2] - 8) < (blx[h1] + blsx[h1]))) and ((by[h2] - 28) <= ((bly[h1] + blsy[h1]) + 6))) and ((by[h2] - 6) > ((bly[h1] + blsy[h1]) + 6))) {
by[h2] = (bly[h1] + blsy[h1]) + 35;
bj[h2] = 0;
}
if (((((bx[h2] + 10) > (blx[h1] - blsx[h1])) and ((bx[h2] - 10) < (blx[h1] + blsx[h1]))) and ((by[h2] - 16) > (bly[h1] - blsy[h1]))) and ((by[h2] - 30) < (bly[h1] + blsy[h1]))) {
if (bx[h2] > blx[h1]) {
bx[h2] = (blx[h1] + blsx[h1]) + 10;
}
if (bx[h2] < blx[h1]) {
bx[h2] = (blx[h1] - blsx[h1]) - 10;
}
}
if (((((bx[h2] + 8) > (blx[h1] - blsx[h1])) and ((bx[h2] - 8) < (blx[h1] + blsx[h1]))) and ((by[h2] - 22) < (bly[h1] - blsy[h1]))) and ((by[h2] + 2) >= (bly[h1] - blsy[h1]))) {
h4 = 1;
by[h2] = bly[h1] - blsy[h1];
if ((timer > 0) and (timer < 61)) {
bx[h2] = bx[h2] + 2;
}
if ((timer > 60) and (timer < 121)) {
bx[h2] = bx[h2] - 2;
}
if (((bt[h2] == 1) or (bt[h2] == 10)) and (bd[h2] == 1)) {
bd[h2] = 0;
}
}
}
if (blt[h1] == 7) {
if (((((bx[h2] + 8) > (blx[h1] - blsx[h1])) and ((bx[h2] - 8) < (blx[h1] + blsx[h1]))) and ((by[h2] - 28) <= ((bly[h1] + blsy[h1]) + 6))) and ((by[h2] - 6) > ((bly[h1] + blsy[h1]) + 6))) {
by[h2] = (bly[h1] + blsy[h1]) + 35;
bj[h2] = 0;
}
if (((((bx[h2] + 10) > (blx[h1] - blsx[h1])) and ((bx[h2] - 10) < (blx[h1] + blsx[h1]))) and ((by[h2] - 16) > (bly[h1] - blsy[h1]))) and ((by[h2] - 30) < (bly[h1] + blsy[h1]))) {
if (bx[h2] > blx[h1]) {
bx[h2] = (blx[h1] + blsx[h1]) + 10;
}
if (bx[h2] < blx[h1]) {
bx[h2] = (blx[h1] - blsx[h1]) - 10;
}
}
if (((((bx[h2] + 8) > (blx[h1] - blsx[h1])) and ((bx[h2] - 8) < (blx[h1] + blsx[h1]))) and ((by[h2] - 22) < (bly[h1] - blsy[h1]))) and ((by[h2] + 2) >= (bly[h1] - blsy[h1]))) {
h4 = 1;
by[h2] = bly[h1] - blsy[h1];
if (((bt[h2] == 1) or (bt[h2] == 10)) and (bd[h2] == 1)) {
bd[h2] = 0;
}
if ((timer > 0) and (timer < 61)) {
bx[h2] = bx[h2] - 2;
}
if ((timer > 60) and (timer < 121)) {
bx[h2] = bx[h2] + 2;
}
}
}
h1++;
}
if ((h4 == 0) and (bj[h2] > -1)) {
by[h2] = by[h2] + 10;
}
}
}
h2++;
}
if (py < -470) {
py = -470;
}
if (py > 50) {
py = 50;
}
if (px < 5) {
px = 5;
}
if (px > 795) {
px = 795;
}
pace = pace + 1;
if (pace > 16) {
pace = 1;
if (wenergy < wmax) {
wenergy = wenergy + 1;
}
}
if (i > 0) {
i = i - 1;
}
if (ptime > 0) {
ptime = ptime - 1;
}
timer = timer + 1;
if (timer > 120) {
timer = 1;
}
camx = px;
if (camx < 100) {
camx = 100;
}
if (camx > 700) {
camx = 700;
}
camy = py;
if (camy < -400) {
camy = -400;
}
if (camy > -50) {
camy = -50;
}
if ((((pace == 1) or (pace == 5)) or (pace == 9)) or (pace == 13)) {
sx = -100;
sy = 100;
if (((pd > 3) and (pd < 6)) or ((pd > 7) and (pd < 10))) {
sx = px;
sy = py;
}
}
if ((charge < 15) or ((xz > 0) and (xz < 5))) {
bustercharge._x = -500;
bustercharge._y = -500;
bustercharge._alpha = 0;
}
if ((xz == 0) or (xz == 5)) {
if ((charge > 14) and (charge < 40)) {
bustercharge._x = 100 + (px - camx);
bustercharge._y = 100 + (py - camy);
bustercharge._alpha = 40;
}
if (charge > 39) {
bustercharge._x = 100 + (px - camx);
bustercharge._y = 100 + (py - camy);
bustercharge._alpha = 100;
}
}
if (i == 0) {
pc._alpha = 100;
}
if (i > 0) {
pc._alpha = 70;
}
pc._x = 100 + (px - camx);
pc._y = 100 + (py - camy);
pc.gotoAndStop(pf);
shadow._x = 100 + (sx - camx);
shadow._y = 100 + (sy - camy);
shadow.gotoAndStop(pf);
pname.gotoAndStop(xz + 1);
plb.gotoAndStop(pl);
wener.gotoAndStop(wenergy);
crushericon._x = 100 + (px - camx);
crushericon._y = 86 + (py - camy);
crushericon.gotoAndStop(crusher);
switch (xz) {
case 0 :
if (weap == 0) {
cicon.gotoAndStop(1);
}
if (weap > 0) {
cicon.gotoAndStop(weap + 6);
}
break;
case 1 :
cicon.gotoAndStop(2);
break;
case 2 :
cicon.gotoAndStop(3);
break;
case 3 :
cicon.gotoAndStop(4);
break;
case 4 :
cicon.gotoAndStop(5);
break;
case 5 :
cicon.gotoAndStop(6);
}
bg1._x = 100 + (bx[1] - camx);
bg1._y = 100 + (by[1] - camy);
bg1.gotoAndStop(bf[1]);
bg2._x = 100 + (bx[2] - camx);
bg2._y = 100 + (by[2] - camy);
bg2.gotoAndStop(bf[2]);
bg3._x = 100 + (bx[3] - camx);
bg3._y = 100 + (by[3] - camy);
bg3.gotoAndStop(bf[3]);
bg4._x = 100 + (bx[4] - camx);
bg4._y = 100 + (by[4] - camy);
bg4.gotoAndStop(bf[4]);
bg5._x = 100 + (bx[5] - camx);
bg5._y = 100 + (by[5] - camy);
bg5.gotoAndStop(bf[5]);
bg6._x = 100 + (bx[6] - camx);
bg6._y = 100 + (by[6] - camy);
bg6.gotoAndStop(bf[6]);
bg7._x = 100 + (bx[7] - camx);
bg7._y = 100 + (by[7] - camy);
bg7.gotoAndStop(bf[7]);
bg8._x = 100 + (bx[8] - camx);
bg8._y = 100 + (by[8] - camy);
bg8.gotoAndStop(bf[8]);
bg9._x = 100 + (bx[9] - camx);
bg9._y = 100 + (by[9] - camy);
bg9.gotoAndStop(bf[9]);
bg10._x = 100 + (bx[10] - camx);
bg10._y = 100 + (by[10] - camy);
bg10.gotoAndStop(bf[10]);
pb1._x = 100 + (psx[1] - camx);
pb1._y = 100 + (psy[1] - camy);
pb1.gotoAndStop(psf[1]);
pb2._x = 100 + (psx[2] - camx);
pb2._y = 100 + (psy[2] - camy);
pb2.gotoAndStop(psf[2]);
pb3._x = 100 + (psx[3] - camx);
pb3._y = 100 + (psy[3] - camy);
pb3.gotoAndStop(psf[3]);
bs1._x = 100 + (bsx[1] - camx);
bs1._y = 100 + (bsy[1] - camy);
bs1.gotoAndStop(bsf[1]);
bs2._x = 100 + (bsx[2] - camx);
bs2._y = 100 + (bsy[2] - camy);
bs2.gotoAndStop(bsf[2]);
bs3._x = 100 + (bsx[3] - camx);
bs3._y = 100 + (bsy[3] - camy);
bs3.gotoAndStop(bsf[3]);
bs4._x = 100 + (bsx[4] - camx);
bs4._y = 100 + (bsy[4] - camy);
bs4.gotoAndStop(bsf[4]);
bs5._x = 100 + (bsx[5] - camx);
bs5._y = 100 + (bsy[5] - camy);
bs5.gotoAndStop(bsf[5]);
bs6._x = 100 + (bsx[6] - camx);
bs6._y = 100 + (bsy[6] - camy);
bs6.gotoAndStop(bsf[6]);
stage._x = 500 - camx;
stage._y = -150 - camy;
stage2._x = 300 - (camx / 2);
stage2._y = -37 - (camy / 2);
Frame 12
gotoAndPlay (11);
Frame 25
gotoAndPlay (1);
Frame 1701
camx = px;
if (camx < 100) {
camx = 100;
}
if (camx > 700) {
camx = 700;
}
camy = py;
if (camy < -400) {
camy = -400;
}
if (camy > -50) {
camy = -50;
}
pc2._x = 100 + (px - camx);
pc2._y = 100 + (py - camy);
boom2.start();
Frame 1702
camx = px;
if (camx < 100) {
camx = 100;
}
if (camx > 700) {
camx = 700;
}
camy = py;
if (camy < -400) {
camy = -400;
}
if (camy > -50) {
camy = -50;
}
pc2._x = 100 + (px - camx);
pc2._y = 100 + (py - camy);
Frame 1716
boom1.start();
Frame 1730
boom1.start();
Frame 1743
boom1.start();
Frame 1757
boom1.start();
Frame 1772
boom1.start();
Frame 1787
boom3.start();
Frame 1799
h1 = 1;
while (h1 < 11) {
if ((((bx[h1] > (camx - 115)) and (bx[h1] < (camx + 115))) and (by[h1] > (camy - 115))) and (by[h1] < (camy + 65))) {
bl[h1] = bl[h1] - 30;
}
h1++;
}
crusher = 1;
Frame 1800
gotoAndPlay(f);
Frame 1801
camx = px;
if (camx < 100) {
camx = 100;
}
if (camx > 700) {
camx = 700;
}
camy = py;
if (camy < -400) {
camy = -400;
}
if (camy > -50) {
camy = -50;
}
pc2._x = 100 + (px - camx);
pc2._y = 100 + (py - camy);
Frame 1802
camx = px;
if (camx < 100) {
camx = 100;
}
if (camx > 700) {
camx = 700;
}
camy = py;
if (camy < -400) {
camy = -400;
}
if (camy > -50) {
camy = -50;
}
pc2._x = 100 + (px - camx);
pc2._y = 100 + (py - camy);
Frame 1814
sinattack.start();
Frame 1899
h1 = 1;
while (h1 < 11) {
if ((((bx[h1] > (camx - 115)) and (bx[h1] < (camx + 115))) and (by[h1] > (camy - 115))) and (by[h1] < (camy + 65))) {
bl[h1] = bl[h1] - 30;
}
h1++;
}
crusher = 1;
Frame 1900
gotoAndPlay(f);
Frame 1901
camx = px;
if (camx < 100) {
camx = 100;
}
if (camx > 700) {
camx = 700;
}
camy = py;
if (camy < -400) {
camy = -400;
}
if (camy > -50) {
camy = -50;
}
pc2._x = 100 + (px - camx);
pc2._y = 100 + (py - camy);
lightning.start();
Frame 1902
camx = px;
if (camx < 100) {
camx = 100;
}
if (camx > 700) {
camx = 700;
}
camy = py;
if (camy < -400) {
camy = -400;
}
if (camy > -50) {
camy = -50;
}
pc2._x = 100 + (px - camx);
pc2._y = 100 + (py - camy);
Frame 1952
maxbuster.start();
Frame 1959
maxbuster.start();
Frame 1965
maxbuster.start();
Frame 1970
maxbuster.start();
Frame 1980
boom3.start();
Frame 1999
h1 = 1;
while (h1 < 11) {
if ((((bx[h1] > (camx - 115)) and (bx[h1] < (camx + 115))) and (by[h1] > (camy - 115))) and (by[h1] < (camy + 65))) {
bl[h1] = bl[h1] - 30;
}
h1++;
}
crusher = 1;
Frame 2000
gotoAndPlay(f);
Frame 2001
camx = px;
if (camx < 100) {
camx = 100;
}
if (camx > 700) {
camx = 700;
}
camy = py;
if (camy < -400) {
camy = -400;
}
if (camy > -50) {
camy = -50;
}
pc2._x = 100 + (px - camx);
pc2._y = 100 + (py - camy);
bossdeath.start();
Frame 2002
camx = px;
if (camx < 100) {
camx = 100;
}
if (camx > 700) {
camx = 700;
}
camy = py;
if (camy < -400) {
camy = -400;
}
if (camy > -50) {
camy = -50;
}
pc2._x = 100 + (px - camx);
pc2._y = 100 + (py - camy);
Frame 2084
boom3.start();
Frame 2099
h1 = 1;
while (h1 < 11) {
if ((((bx[h1] > (camx - 115)) and (bx[h1] < (camx + 115))) and (by[h1] > (camy - 115))) and (by[h1] < (camy + 65))) {
bl[h1] = bl[h1] - 30;
}
h1++;
}
crusher = 1;
Frame 2100
gotoAndPlay(f);
Frame 2101
camx = px;
if (camx < 100) {
camx = 100;
}
if (camx > 700) {
camx = 700;
}
camy = py;
if (camy < -400) {
camy = -400;
}
if (camy > -50) {
camy = -50;
}
pc2._x = 100 + (px - camx);
pc2._y = 100 + (py - camy);
lightning.start();
Frame 2102
camx = px;
if (camx < 100) {
camx = 100;
}
if (camx > 700) {
camx = 700;
}
camy = py;
if (camy < -400) {
camy = -400;
}
if (camy > -50) {
camy = -50;
}
pc2._x = 100 + (px - camx);
pc2._y = 100 + (py - camy);
Frame 2121
boom3.start();
Frame 2139
boom1.start();
Frame 2155
boom1.start();
Frame 2171
boom1.start();
Frame 2186
boom2.start();
Frame 2199
h1 = 1;
while (h1 < 11) {
if ((((bx[h1] > (camx - 115)) and (bx[h1] < (camx + 115))) and (by[h1] > (camy - 115))) and (by[h1] < (camy + 65))) {
bl[h1] = bl[h1] - 30;
}
h1++;
}
crusher = 1;
Frame 2200
gotoAndPlay(f);
Frame 2201
camx = px;
if (camx < 100) {
camx = 100;
}
if (camx > 700) {
camx = 700;
}
camy = py;
if (camy < -400) {
camy = -400;
}
if (camy > -50) {
camy = -50;
}
pc2._x = 100 + (px - camx);
pc2._y = 100 + (py - camy);
xcharge.start();
Frame 2202
camx = px;
if (camx < 100) {
camx = 100;
}
if (camx > 700) {
camx = 700;
}
camy = py;
if (camy < -400) {
camy = -400;
}
if (camy > -50) {
camy = -50;
}
pc2._x = 100 + (px - camx);
pc2._y = 100 + (py - camy);
Frame 2258
lightning.start();
Frame 2272
boom2.start();
Frame 2281
boom1.start();
Frame 2292
boom3.start();
Frame 2299
h1 = 1;
while (h1 < 11) {
if ((((bx[h1] > (camx - 115)) and (bx[h1] < (camx + 115))) and (by[h1] > (camy - 115))) and (by[h1] < (camy + 65))) {
bl[h1] = bl[h1] - 30;
}
h1++;
}
crusher = 1;
Frame 2300
gotoAndPlay(f);
Frame 2410
plb.gotoAndStop(pl);
wener.gotoAndStop(wenergy);
pname.gotoAndStop(xz + 1);
if (Key.isDown(kpause)) {
gotoAndPlay (2412);
}
if (boss[1] == 0) {
xp1._x = -2000;
}
if (boss[2] == 0) {
xp2._x = -2000;
}
if (boss[3] == 0) {
xp3._x = -2000;
}
if (boss[4] == 0) {
xp4._x = -2000;
}
if (boss[5] == 0) {
xp5._x = -2000;
}
if (boss[6] == 0) {
xp6._x = -2000;
}
if (boss[7] == 0) {
xp7._x = -2000;
}
if (boss[8] == 0) {
xp8._x = -2000;
}
cweapon.gotoAndStop(weap + 1);
Frame 2411
gotoAndPlay (2410);
Frame 2420
gotoAndPlay(f);
Frame 2430
plb.gotoAndStop(pl);
wener.gotoAndStop(wenergy);
pname.gotoAndStop(xz + 1);
if (Key.isDown(kpause)) {
gotoAndPlay (2432);
}
z1.gotoAndStop(boss[1] + 1);
z2.gotoAndStop(boss[2] + 1);
z3.gotoAndStop(boss[3] + 1);
z4.gotoAndStop(boss[4] + 1);
z5.gotoAndStop(boss[5] + 1);
z6.gotoAndStop(boss[6] + 1);
z7.gotoAndStop(boss[7] + 1);
z8.gotoAndStop(boss[8] + 1);
Frame 2431
gotoAndPlay (2430);
Frame 2440
gotoAndPlay(f);
Frame 2450
plb.gotoAndStop(pl);
wener.gotoAndStop(wenergy);
pname.gotoAndStop(xz + 1);
if (Key.isDown(kpause)) {
gotoAndPlay (2452);
}
specials.gotoAndStop((((((((boss[1] + boss[2]) + boss[3]) + boss[4]) + boss[5]) + boss[6]) + boss[7]) + boss[8]) + 1);
Frame 2451
gotoAndPlay (2450);
Frame 2460
gotoAndPlay(f);
Frame 2470
plb.gotoAndStop(pl);
wener.gotoAndStop(wenergy);
pname.gotoAndStop(xz + 1);
if (Key.isDown(kpause)) {
gotoAndPlay (2472);
}
specials.gotoAndStop((((((((boss[1] + boss[2]) + boss[3]) + boss[4]) + boss[5]) + boss[6]) + boss[7]) + boss[8]) + 1);
Frame 2471
gotoAndPlay (2470);
Frame 2480
gotoAndPlay(f);
Frame 2490
plb.gotoAndStop(pl);
wener.gotoAndStop(wenergy);
pname.gotoAndStop(xz + 1);
if (Key.isDown(kpause)) {
gotoAndPlay (2492);
}
specials.gotoAndStop((((((((boss[1] + boss[2]) + boss[3]) + boss[4]) + boss[5]) + boss[6]) + boss[7]) + boss[8]) + 1);
Frame 2491
gotoAndPlay (2490);
Frame 2500
gotoAndPlay(f);
Frame 2510
plb.gotoAndStop(pl);
wener.gotoAndStop(wenergy);
pname.gotoAndStop(xz + 1);
if (Key.isDown(kpause)) {
gotoAndPlay (2512);
}
specials.gotoAndStop((((((((boss[1] + boss[2]) + boss[3]) + boss[4]) + boss[5]) + boss[6]) + boss[7]) + boss[8]) + 1);
Frame 2511
gotoAndPlay (2510);
Frame 2520
gotoAndPlay(f);
Frame 2521
h1 = 1;
Frame 2522
if ((((((((((((h1 == 27) or (h1 == 45)) or (h1 == 63)) or (h1 == 81)) or (h1 == 99)) or (h1 == 117)) or (h1 == 135)) or (h1 == 153)) or (h1 == 171)) or (h1 == 189)) or (h1 == 207)) or (h1 == 225)) {
shothit.start();
}
st1._x = st1._x - 10;
if (st1._x < -50) {
st1._x = 220 + random(20);
st1._y = 20 + random(160);
}
st2._x = st2._x - 10;
if (st2._x < -50) {
st2._x = 220 + random(20);
st2._y = 20 + random(160);
}
st3._x = st3._x - 10;
if (st3._x < -50) {
st3._x = 220 + random(20);
st3._y = 20 + random(160);
}
st4._x = st4._x - 10;
if (st4._x < -50) {
st4._x = 220 + random(20);
st4._y = 20 + random(160);
}
st5._x = st5._x - 15;
if (st5._x < -70) {
st5._x = 230 + random(20);
st5._y = 20 + random(160);
}
st6._x = st6._x - 15;
if (st6._x < -70) {
st6._x = 230 + random(20);
st6._y = 20 + random(160);
}
st7._x = st7._x - 15;
if (st7._x < -70) {
st7._x = 230 + random(20);
st7._y = 20 + random(160);
}
st8._x = st8._x - 20;
if (st8._x < -80) {
st8._x = 240 + random(20);
st8._y = 20 + random(160);
}
st9._x = st9._x - 20;
if (st9._x < -80) {
st9._x = 240 + random(20);
st9._y = 20 + random(160);
}
Frame 2523
h1 = h1 + 1;
if (h1 < 246) {
gotoAndPlay (2522);
}
Frame 2524
st1._x = st1._x - 10;
if (st1._x < -50) {
st1._x = 220 + random(20);
st1._y = 20 + random(160);
}
st2._x = st2._x - 10;
if (st2._x < -50) {
st2._x = 220 + random(20);
st2._y = 20 + random(160);
}
st3._x = st3._x - 10;
if (st3._x < -50) {
st3._x = 220 + random(20);
st3._y = 20 + random(160);
}
st4._x = st4._x - 10;
if (st4._x < -50) {
st4._x = 220 + random(20);
st4._y = 20 + random(160);
}
st5._x = st5._x - 15;
if (st5._x < -70) {
st5._x = 230 + random(20);
st5._y = 20 + random(160);
}
st6._x = st6._x - 15;
if (st6._x < -70) {
st6._x = 230 + random(20);
st6._y = 20 + random(160);
}
st7._x = st7._x - 15;
if (st7._x < -70) {
st7._x = 230 + random(20);
st7._y = 20 + random(160);
}
st8._x = st8._x - 20;
if (st8._x < -80) {
st8._x = 240 + random(20);
st8._y = 20 + random(160);
}
st9._x = st9._x - 20;
if (st9._x < -80) {
st9._x = 240 + random(20);
st9._y = 20 + random(160);
}
Frame 2525
gotoAndPlay (2524);
Frame 2527
kattack = Key.getCode();
Frame 2528
gotoAndPlay (2527);
Frame 2529
kjump = Key.getCode();
Frame 2530
gotoAndPlay (2529);
Frame 2531
kdash = Key.getCode();
Frame 2532
gotoAndPlay (2531);
Frame 2533
kup = Key.getCode();
Frame 2534
gotoAndPlay (2533);
Frame 2535
kdown = Key.getCode();
Frame 2536
gotoAndPlay (2535);
Frame 2537
kright = Key.getCode();
Frame 2538
gotoAndPlay (2537);
Frame 2539
kleft = Key.getCode();
Frame 2540
gotoAndPlay (2539);
Frame 2541
kspec = Key.getCode();
Frame 2542
gotoAndPlay (2541);
Frame 2543
kcrush = Key.getCode();
Frame 2544
gotoAndPlay (2543);
Frame 2545
kpause = Key.getCode();
Frame 2546
gotoAndPlay (2545);
Symbol 1285 Button
on (release) {
weap = 0;
psn = 1;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
Symbol 1288 Button
on (release) {
weap = 1;
psn = 1;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
Symbol 1291 Button
on (release) {
weap = 3;
psn = 1;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
Symbol 1294 Button
on (release) {
weap = 5;
psn = 1;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
Symbol 1297 Button
on (release) {
weap = 7;
psn = 1;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
Symbol 1300 Button
on (release) {
weap = 2;
psn = 1;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
Symbol 1303 Button
on (release) {
weap = 4;
psn = 1;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
Symbol 1306 Button
on (release) {
weap = 6;
psn = 1;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
Symbol 1309 Button
on (release) {
weap = 8;
psn = 1;
h1 = 1;
while (h1 < 4) {
pst[h1] = 0;
psd[h1] = 0;
psx[h1] = -2000;
psy[h1] = -2000;
psf[h1] = 13;
h1++;
}
}
Symbol 1418 Button
on (release) {
boom2.start();
gotoAndPlay (3);
}
Symbol 1422 Button
on (release) {
boom2.start();
getURL ("http://www.maelstormm.com/Games/MegamanXNext/mmxninstructions.htm", "_blank");
}
Symbol 1426 Button
on (release) {
boom2.start();
getURL ("http://www.maelstormm.com/Games/MegamanXNext/mmxninformation.htm", "_blank");
}
Symbol 1430 Button
on (release) {
boom2.start();
getURL ("http://www.maelstormm.com/Games/MegamanXNext/mmxnlinks.htm", "_blank");
}
Symbol 1434 Button
on (release) {
boom2.start();
gotoAndPlay (2527);
}
Symbol 1438 Button
on (release) {
boom2.start();
getURL ("http://www.newgrounds.com/portal/view.php?id=121614", "_blank");
}
Symbol 1445 Button
on (release) {
gotoAndPlay (2529);
}
Symbol 1447 Button
on (release) {
gotoAndPlay (2531);
}
Symbol 1449 Button
on (release) {
gotoAndPlay (2533);
}
Symbol 1451 Button
on (release) {
gotoAndPlay (2535);
}
Symbol 1453 Button
on (release) {
gotoAndPlay (2537);
}
Symbol 1455 Button
on (release) {
gotoAndPlay (2539);
}
Symbol 1457 Button
on (release) {
gotoAndPlay (2541);
}
Symbol 1459 Button
on (release) {
gotoAndPlay (2543);
}
Symbol 1461 Button
on (release) {
gotoAndPlay (2545);
}
Symbol 1463 Button
on (release) {
gotoAndPlay (2524);
}